@gouvfr-lasuite/ui-kit 0.8.0 → 0.8.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
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),pe=require("@openfun/cunningham-react"),Wt=require("react-dom");function lc(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const _=lc(c),lh=lc(Wt);function ah(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var mr={exports:{}},jn={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),se=require("@openfun/cunningham-react"),Rt=require("react-dom");function Hu(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const D=Hu(c),F2=Hu(Rt);function K2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rr={exports:{}},xn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Pa;function sh(){if(Pa)return jn;Pa=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:l,ref:i!==void 0?i:null,props:o}}return jn.Fragment=e,jn.jsx=n,jn.jsxs=n,jn}var Hn={};/**
9
+ */var la;function j2(){if(la)return xn;la=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:l,ref:i!==void 0?i:null,props:o}}return xn.Fragment=e,xn.jsx=n,xn.jsxs=n,xn}var $n={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,21 +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 Da;function uh(){return Da||(Da=1,process.env.NODE_ENV!=="production"&&function(){function t(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===I?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case E:return"Fragment";case $:return"Portal";case L:return"Profiler";case T:return"StrictMode";case M:return"Suspense";case B:return"SuspenseList"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case A:return(D.displayName||"Context")+".Provider";case z:return(D._context.displayName||"Context")+".Consumer";case w:var Y=D.render;return D=D.displayName,D||(D=Y.displayName||Y.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case R:return Y=D.displayName||null,Y!==null?Y:t(D.type)||"Memo";case U:Y=D._payload,D=D._init;try{return t(D(Y))}catch{}}return null}function e(D){return""+D}function n(D){try{e(D);var Y=!1}catch{Y=!0}if(Y){Y=console;var Z=Y.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return Z.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),e(D)}}function r(){}function i(){if(F===0){K=console.log,V=console.info,W=console.warn,X=console.error,Q=console.group,oe=console.groupCollapsed,q=console.groupEnd;var D={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}F++}function o(){if(F--,F===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},D,{value:K}),info:j({},D,{value:V}),warn:j({},D,{value:W}),error:j({},D,{value:X}),group:j({},D,{value:Q}),groupCollapsed:j({},D,{value:oe}),groupEnd:j({},D,{value:q})})}0>F&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function l(D){if(fe===void 0)try{throw Error()}catch(Z){var Y=Z.stack.trim().match(/\n( *(at )?)/);fe=Y&&Y[1]||"",re=-1<Z.stack.indexOf(`
18
- at`)?" (<anonymous>)":-1<Z.stack.indexOf("@")?"@unknown:0:0":""}return`
19
- `+fe+D+re}function a(D,Y){if(!D||me)return"";var Z=ie.get(D);if(Z!==void 0)return Z;me=!0,Z=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var ae=null;ae=G.H,G.H=null,i();try{var $e={DetermineComponentFrameRoot:function(){try{if(Y){var vt=function(){throw Error()};if(Object.defineProperty(vt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(vt,[])}catch(lt){var vr=lt}Reflect.construct(D,[],vt)}else{try{vt.call()}catch(lt){vr=lt}D.call(vt.prototype)}}else{try{throw Error()}catch(lt){vr=lt}(vt=D())&&typeof vt.catch=="function"&&vt.catch(function(){})}}catch(lt){if(lt&&vr&&typeof lt.stack=="string")return[lt.stack,vr.stack]}return[null,null]}};$e.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var ge=Object.getOwnPropertyDescriptor($e.DetermineComponentFrameRoot,"name");ge&&ge.configurable&&Object.defineProperty($e.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var ee=$e.DetermineComponentFrameRoot(),ot=ee[0],Jt=ee[1];if(ot&&Jt){var Te=ot.split(`
20
- `),Pt=Jt.split(`
21
- `);for(ee=ge=0;ge<Te.length&&!Te[ge].includes("DetermineComponentFrameRoot");)ge++;for(;ee<Pt.length&&!Pt[ee].includes("DetermineComponentFrameRoot");)ee++;if(ge===Te.length||ee===Pt.length)for(ge=Te.length-1,ee=Pt.length-1;1<=ge&&0<=ee&&Te[ge]!==Pt[ee];)ee--;for(;1<=ge&&0<=ee;ge--,ee--)if(Te[ge]!==Pt[ee]){if(ge!==1||ee!==1)do if(ge--,ee--,0>ee||Te[ge]!==Pt[ee]){var Fn=`
22
- `+Te[ge].replace(" at new "," at ");return D.displayName&&Fn.includes("<anonymous>")&&(Fn=Fn.replace("<anonymous>",D.displayName)),typeof D=="function"&&ie.set(D,Fn),Fn}while(1<=ge&&0<=ee);break}}}finally{me=!1,G.H=ae,o(),Error.prepareStackTrace=Z}return Te=(Te=D?D.displayName||D.name:"")?l(Te):"",typeof D=="function"&&ie.set(D,Te),Te}function s(D){if(D==null)return"";if(typeof D=="function"){var Y=D.prototype;return a(D,!(!Y||!Y.isReactComponent))}if(typeof D=="string")return l(D);switch(D){case M:return l("Suspense");case B:return l("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case w:return D=a(D.render,!1),D;case R:return s(D.type);case U:Y=D._payload,D=D._init;try{return s(D(Y))}catch{}}return""}function u(){var D=G.A;return D===null?null:D.getOwner()}function d(D){if(H.call(D,"key")){var Y=Object.getOwnPropertyDescriptor(D,"key").get;if(Y&&Y.isReactWarning)return!1}return D.key!==void 0}function f(D,Y){function Z(){gt||(gt=!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)",Y))}Z.isReactWarning=!0,Object.defineProperty(D,"key",{get:Z,configurable:!0})}function p(){var D=t(this.type);return xe[D]||(xe[D]=!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.")),D=this.props.ref,D!==void 0?D:null}function g(D,Y,Z,ae,$e,ge){return Z=ge.ref,D={$$typeof:P,type:D,key:Y,props:ge,_owner:$e},(Z!==void 0?Z:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:p}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function y(D,Y,Z,ae,$e,ge){if(typeof D=="string"||typeof D=="function"||D===E||D===L||D===T||D===M||D===B||D===x||typeof D=="object"&&D!==null&&(D.$$typeof===U||D.$$typeof===R||D.$$typeof===A||D.$$typeof===z||D.$$typeof===w||D.$$typeof===O||D.getModuleId!==void 0)){var ee=Y.children;if(ee!==void 0)if(ae)if(k(ee)){for(ae=0;ae<ee.length;ae++)h(ee[ae],D);Object.freeze&&Object.freeze(ee)}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 h(ee,D)}else ee="",(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),D===null?ae="null":k(D)?ae="array":D!==void 0&&D.$$typeof===P?(ae="<"+(t(D.type)||"Unknown")+" />",ee=" Did you accidentally export a JSX literal instead of a component?"):ae=typeof D,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ae,ee);if(H.call(Y,"key")){ee=t(D);var ot=Object.keys(Y).filter(function(Te){return Te!=="key"});ae=0<ot.length?"{key: someKey, "+ot.join(": ..., ")+": ...}":"{key: someKey}",Kn[ee+ae]||(ot=0<ot.length?"{"+ot.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var aa;function H2(){return aa||(aa=1,process.env.NODE_ENV!=="production"&&function(){function t(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===F?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case h:return"Fragment";case g:return"Profiler";case v:return"StrictMode";case $:return"Suspense";case w:return"SuspenseList";case H:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case b:return"Portal";case S:return(_.displayName||"Context")+".Provider";case C:return(_._context.displayName||"Context")+".Consumer";case P:var M=_.render;return _=_.displayName,_||(_=M.displayName||M.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case x:return M=_.displayName||null,M!==null?M:t(_.type)||"Memo";case R:M=_._payload,_=_._init;try{return t(_(M))}catch{}}return null}function e(_){return""+_}function n(_){try{e(_);var M=!1}catch{M=!0}if(M){M=console;var T=M.error,N=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return T.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),e(_)}}function r(_){if(_===h)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===R)return"<...>";try{var M=t(_);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function i(){var _=E.A;return _===null?null:_.getOwner()}function o(){return Error("react-stack-top-frame")}function l(_){if(L.call(_,"key")){var M=Object.getOwnPropertyDescriptor(_,"key").get;if(M&&M.isReactWarning)return!1}return _.key!==void 0}function a(_,M){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)",M))}T.isReactWarning=!0,Object.defineProperty(_,"key",{get:T,configurable:!0})}function s(){var _=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.")),_=this.props.ref,_!==void 0?_:null}function u(_,M,T,N,j,K,z,U){return T=K.ref,_={$$typeof:m,type:_,key:M,props:K,_owner:j},(T!==void 0?T:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:s}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function d(_,M,T,N,j,K,z,U){var G=M.children;if(G!==void 0)if(N)if(V(G)){for(N=0;N<G.length;N++)f(G[N]);Object.freeze&&Object.freeze(G)}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(G);if(L.call(M,"key")){G=t(_);var Y=Object.keys(M).filter(function(pe){return pe!=="key"});N=0<Y.length?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}",W[G+N]||(Y=0<Y.length?"{"+Y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
23
18
  let props = %s;
24
19
  <%s {...props} />
25
20
  React keys must be passed directly to JSX without using spread:
26
21
  let props = %s;
27
- <%s key={someKey} {...props} />`,ae,ee,ot,ee),Kn[ee+ae]=!0)}if(ee=null,Z!==void 0&&(n(Z),ee=""+Z),d(Y)&&(n(Y.key),ee=""+Y.key),"key"in Y){Z={};for(var Jt in Y)Jt!=="key"&&(Z[Jt]=Y[Jt])}else Z=Y;return ee&&f(Z,typeof D=="function"?D.displayName||D.name||"Unknown":D),g(D,ee,ge,$e,u(),Z)}function h(D,Y){if(typeof D=="object"&&D&&D.$$typeof!==Je){if(k(D))for(var Z=0;Z<D.length;Z++){var ae=D[Z];v(ae)&&m(ae,Y)}else if(v(D))D._store&&(D._store.validated=1);else if(D===null||typeof D!="object"?Z=null:(Z=N&&D[N]||D["@@iterator"],Z=typeof Z=="function"?Z:null),typeof Z=="function"&&Z!==D.entries&&(Z=Z.call(D),Z!==D))for(;!(D=Z.next()).done;)v(D.value)&&m(D.value,Y)}}function v(D){return typeof D=="object"&&D!==null&&D.$$typeof===P}function m(D,Y){if(D._store&&!D._store.validated&&D.key==null&&(D._store.validated=1,Y=S(Y),!gr[Y])){gr[Y]=!0;var Z="";D&&D._owner!=null&&D._owner!==u()&&(Z=null,typeof D._owner.tag=="number"?Z=t(D._owner.type):typeof D._owner.name=="string"&&(Z=D._owner.name),Z=" It was passed a child from "+Z+".");var ae=G.getCurrentStack;G.getCurrentStack=function(){var $e=s(D.type);return ae&&($e+=ae()||""),$e},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',Y,Z),G.getCurrentStack=ae}}function S(D){var Y="",Z=u();return Z&&(Z=t(Z.type))&&(Y=`
28
-
29
- Check the render method of \``+Z+"`."),Y||(D=t(D))&&(Y=`
30
-
31
- Check the top-level render call using <`+D+">."),Y}var C=c,P=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),A=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),N=Symbol.iterator,I=Symbol.for("react.client.reference"),G=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,j=Object.assign,O=Symbol.for("react.client.reference"),k=Array.isArray,F=0,K,V,W,X,Q,oe,q;r.__reactDisabledLog=!0;var fe,re,me=!1,ie=new(typeof WeakMap=="function"?WeakMap:Map),Je=Symbol.for("react.client.reference"),gt,xe={},Kn={},gr={};Hn.Fragment=E,Hn.jsx=function(D,Y,Z,ae,$e){return y(D,Y,Z,!1,ae,$e)},Hn.jsxs=function(D,Y,Z,ae,$e){return y(D,Y,Z,!0,ae,$e)}}()),Hn}var Ta;function ch(){return Ta||(Ta=1,process.env.NODE_ENV==="production"?mr.exports=sh():mr.exports=uh()),mr.exports}var b=ch();const dh={alert:{close_aria_label:"Delete alert",expand_aria_label:"Expand alert",shrink_aria_label:"Shrink alert"},pagination:{goto_label:"Go to page",goto_label_aria:"Go to any page",next_aria:"Go to next page",previous_aria:"Go to previous page",goto_page_aria:"Go to page {page}",current_page_aria:"You are currently on page {page}"},datagrid:{empty:"This table is empty",empty_alt:"Illustration of an empty table",loader_aria:"Loading data",rows_selection_aria:"All rows selection",row_selection_aria:"Row selection"},provider:{test:"This is a test: {name}"},forms:{input:{password:{show_password:"Show password",hide_password:"Hide password"}},select:{toggle_button_aria_label:"Toggle dropdown",clear_button_aria_label:"Clear selection",clear_all_button_aria_label:"Clear all selections",menu_empty_placeholder:"No options available"},file_uploader:{delete_file_name:"Delete file {name}",delete_file:"Delete file",uploading:"Uploading...",caption:"Drag and drop or ",browse_files:"Browse files"},date_picker:{toggle_button_aria_label_open:"Open calendar",toggle_button_aria_label_close:"Close calendar",clear_button_aria_label:"Clear date",next_month_button_aria_label:"Next month",next_year_button_aria_label:"Next year",previous_month_button_aria_label:"Previous month",previous_year_button_aria_label:"Previous year",year_select_button_aria_label:"Select a year",month_select_button_aria_label:"Select a month"}},modals:{helpers:{delete_confirmation:{title:"Are you sure?",children:"Are you sure to delete this item?",cancel:"Cancel",delete:"Delete"},confirmation:{title:"Are you sure?",children:"Are you sure you want to do that?",cancel:"Cancel",yes:"Yes"},disclaimer:{title:"Disclaimer",children:"This is a disclaimer",ok:"Ok"}}}},fh={components:dh},hh={alert:{close_aria_label:"Supprimer l'alerte",expand_aria_label:"Ouvrir l'alerte",shrink_aria_label:"Fermer l'alerte"},pagination:{goto_label:"Aller à",goto_label_aria:"Aller à la page",next_aria:"Aller à la page suivante",previous_aria:"Aller à la page précédente",goto_page_aria:"Aller à la page {page}",current_page_aria:"Vous êtes actuellement sur la page {page}"},datagrid:{empty:"Ce tableau est vide",empty_alt:"Illustration d'un tableau vide",loader_aria:"Loading data"},provider:{test:"Ceci est un test : {name}"},forms:{select:{toggle_button_aria_label:"Ouvrir le menu",clear_button_aria_label:"Effacer la sélection",clear_all_button_aria_label:"Effacer toutes les sélections",menu_empty_placeholder:"Aucun choix disponible"},file_uploader:{delete_file_name:"Supprimer le fichier {name}",delete_file:"Supprimer le fichier",uploading:"Upload en cours ...",caption:"Glisser-déposer ou ",browse_files:"Parcourir"},date_picker:{toggle_button_aria_label_open:"Ouvrir le calendrier",toggle_button_aria_label_close:"Fermer le calendrier",clear_button_aria_label:"Effacer la date",next_month_button_aria_label:"Mois suivant",next_year_button_aria_label:"Année suivante",previous_month_button_aria_label:"Mois précédent",previous_year_button_aria_label:"Année précédente",year_select_button_aria_label:"Sélectionner une année",month_select_button_aria_label:"Sélectionner un mois"}}},ph={components:hh},gh={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",access:{delete:"Remove access"},invitations:{title:"Pending invitations"},members:{title:"Members",title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},item:{add:"Add"}},footer:{links:{legal:"Legal mentions",personal_data:"Personal data and cookies",accessibility:"Accessibility"},mention:"Unless otherwise stated, all content on this site is under the",license:"etalab-2.0 license"}},vh={components:gh},mh={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},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"}},footer:{links:{legal:"Mentions Légales",personal_data:"Données personnelles et cookies",accessibility:"Accessibilité"},mention:"Sauf mention contraire, tout le contenu de ce site est sous",license:"licence etalab-2.0"}},yh={components:mh};function qi(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Zr(t,...e){if(!e.length)return t;const n=e.shift();if(qi(t)&&qi(n))for(const r in n)qi(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Zr(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Zr(t,...e)}function ac(){return{"en-US":Zr(fh,vh),"fr-FR":Zr(ph,yh)}}const bh=t=>{const e=ac();return b.jsx(pe.CunninghamProvider,{theme:"dsfr",customLocales:e,...t})},sc=({disabled:t,onClick:e})=>b.jsx(pe.Button,{disabled:t,className:"pro-connect-button",onClick:e}),ue=typeof document<"u"?c.useLayoutEffect:()=>{};function be(t){const e=c.useRef(null);return ue(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Sh(t){let[e,n]=c.useState(t),r=c.useRef(null),i=be(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});ue(()=>{r.current&&i()});let o=be(l=>{r.current=l(e),i()});return[e,o]}const Xr={prefix:String(Math.round(Math.random()*1e10)),current:0},uc=c.createContext(Xr),Ch=c.createContext(!1);let wh=!!(typeof window<"u"&&window.document&&window.document.createElement),Yi=new WeakMap;function xh(t=!1){let e=c.useContext(uc),n=c.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=c.__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=Yi.get(o);l==null?Yi.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Yi.delete(o))}n.current=++e.current}return n.current}function Eh(t){let e=c.useContext(uc);e===Xr&&!wh&&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=xh(!!t),r=e===Xr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function $h(t){let e=c.useId(),[n]=c.useState(Dl()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Xr.prefix}`;return t||`${r}-${e}`}const Ph=typeof c.useId=="function"?$h:Eh;function Dh(){return!1}function Th(){return!0}function _h(t){return()=>{}}function Dl(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(_h,Dh,Th):c.useContext(Ch)}let Ih=!!(typeof window<"u"&&window.document&&window.document.createElement),Cn=new Map,Yn;typeof FinalizationRegistry<"u"&&(Yn=new FinalizationRegistry(t=>{Cn.delete(t)}));function Ie(t){let[e,n]=c.useState(t),r=c.useRef(null),i=Ph(e),o=c.useRef(null);if(Yn&&Yn.register(o,i),Ih){const l=Cn.get(i);l&&!l.includes(r)?l.push(r):Cn.set(i,[r])}return ue(()=>{let l=i;return()=>{Yn&&Yn.unregister(o),Cn.delete(l)}},[i]),c.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function Oh(t,e){if(t===e)return t;let n=Cn.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=Cn.get(e);return r?(r.forEach(i=>i.current=t),t):e}function Nt(t=[]){let e=Ie(),[n,r]=Sh(e),i=c.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return ue(i,[e,i,...t]),n}function At(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const ce=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Re=t=>t&&"window"in t&&t.window===t?t:ce(t).defaultView||window;function kh(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Nh(t){return kh(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Rh=!1;function mi(){return Rh}function he(t,e){if(!mi())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:Nh(n)?n=n.host:n=n.parentNode}return!1}const _e=(t=document)=>{var e;if(!mi())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 se(t){return mi()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class Mh{get currentNode(){return this._currentNode}set currentNode(e){if(!he(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 he(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 u=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),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 Lh(t,e,n,r){return mi()?new Mh(t,e,n,r):t.createTreeWalker(e,n,r)}function cc(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=cc(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Me(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=cc(t))&&(r&&(r+=" "),r+=e);return r}function le(...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]=At(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Me(o,l):i==="id"&&o&&l?e.id=Oh(o,l):e[i]=l!==void 0?l:o}}return e}function Tl(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const Ah=new Set(["id"]),Kh=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Fh=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),jh=/^(data-.*)$/;function Se(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(Ah.has(l)||n&&Kh.has(l)||r&&Fh.has(l)||i!=null&&i.has(l)||jh.test(l))&&(o[l]=t[l]);return o}function Ze(t){if(Hh())t.focus({preventScroll:!0});else{let e=zh(t);t.focus(),Vh(e)}}let yr=null;function Hh(){if(yr==null){yr=!1;try{document.createElement("div").focus({get preventScroll(){return yr=!0,!0}})}catch{}}return yr}function zh(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 Vh(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function yi(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 _l(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 ft(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const Et=ft(function(){return _l(/^Mac/i)}),Bh=ft(function(){return _l(/^iPhone/i)}),dc=ft(function(){return _l(/^iPad/i)||Et()&&navigator.maxTouchPoints>1}),bi=ft(function(){return Bh()||dc()}),Uh=ft(function(){return Et()||bi()}),Il=ft(function(){return yi(/AppleWebKit/i)&&!fc()}),fc=ft(function(){return yi(/Chrome/i)}),Ol=ft(function(){return yi(/Android/i)}),Wh=ft(function(){return yi(/Firefox/i)}),Gh=c.createContext({isNative:!0,open:Yh,useHref:t=>t});function Si(){return c.useContext(Gh)}function Kt(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;Wh()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(Et()?o=!0:l=!0);let u=Il()&&Et()&&!dc()&&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});Kt.isOpening=n,Ze(t),t.dispatchEvent(u),Kt.isOpening=!1}Kt.isOpening=!1;function qh(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 Yh(t,e){qh(t,n=>Kt(n,e))}function kl(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 hn=new Map,Ho=new Set;function _a(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=hn.get(r.target);i||(i=new Set,hn.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=hn.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),hn.delete(r.target)),hn.size===0)){for(let o of Ho)o();Ho.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?_a():document.addEventListener("DOMContentLoaded",_a));function hc(t){requestAnimationFrame(()=>{hn.size===0?t():Ho.add(t)})}function Ci(){let t=c.useRef(new Map),e=c.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...u)=>{t.current.delete(l),l(...u)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=c.useCallback((i,o,l,a)=>{var s;let u=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,u,a),t.current.delete(l)},[]),r=c.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function wi(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Ie(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 ht(t){const e=c.useRef(null);return c.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function Ia(t,e){const n=c.useRef(!0),r=c.useRef(null);ue(()=>(n.current=!0,()=>{n.current=!1}),[]),ue(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Zh(){return typeof window.ResizeObserver<"u"}function zo(t){const{ref:e,box:n,onResize:r}=t;c.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(Zh()){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 pc(t,e){ue(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function or(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 gc(t,e){let n=t;for(or(n,e)&&(n=n.parentElement);n&&!or(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Xh(t,e){const n=[];for(;t&&t!==document.documentElement;)or(t,e)&&n.push(t),t=t.parentElement;return n}let Jh=0;const Zi=new Map;function Qh(t){let[e,n]=c.useState();return ue(()=>{if(!t)return;let r=Zi.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${Jh++}`;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},Zi.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Zi.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function br(t,e,n,r){let i=be(n),o=n==null;c.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 vc(t,e){let n=Oa(t,e,"left"),r=Oa(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(t),y=l+parseInt(u,10),h=a+parseInt(s,10),v=y+t.clientWidth,m=h+t.clientHeight,S=parseInt(d,10)||0,C=parseInt(p,10)||0,P=parseInt(f,10)||0,$=parseInt(g,10)||0;n<=l+$?l=n-parseInt(u,10)-$:n+i>v-P&&(l+=n+i-v+P),r<=h+S?a=r-parseInt(s,10)-S:r+o>m-C&&(a+=r+o-m+C),t.scrollLeft=l,t.scrollTop=a}function Oa(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 ka(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=Xh(t);for(let u of s)vc(u,t)}else{var n;let{left:s,top:u}=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(u-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 Vo(t){return t.mozInputSource===0&&t.isTrusted?!0:Ol()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function ep(t){return!Ol()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function tp(t,e,n){let r=c.useRef(e),i=be(()=>{n&&n(r.current)});c.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 np(t){const e=c.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const rp="react-aria-clear-focus",ip="react-aria-focus";function pn(t){return Et()?t.metaKey:t.ctrlKey}function op(t,e=!0){let[n,r]=c.useState(!0),i=n&&e;return ue(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),mc(t,i,c.useCallback(()=>r(!1),[])),i}function lp(t,e){let[n,r]=c.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 mc(t,i,c.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function mc(t,e,n){ue(()=>{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||Wt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const Nl=["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"])'],ap=Nl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Nl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const sp=Nl.join(':not([hidden]):not([tabindex="-1"]),');function yc(t){return t.matches(ap)}function up(t){return t.matches(sp)}function cp(t,e,n){let[r,i]=c.useState(t||e),o=c.useRef(t!==void 0),l=t!==void 0;c.useEffect(()=>{let u=o.current;u!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=c.useCallback((u,...d)=>{let f=(p,...g)=>{n&&(Object.is(a,p)||n(p,...g)),l||(a=p)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let h=u(l?a:g,...y);return f(h,...d),l?g:h})):(l||i(u),f(u,...d))},[l,a,n]);return[a,s]}function Bo(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const Rl=Symbol("default");function $t({values:t,children:e}){for(let[n,r]of t)e=c.createElement(n.Provider,{value:r},e);return e}function Le(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a}=t;return c.useMemo(()=>{let s,u,d;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?u=n({...a,defaultStyle:l||{}}):u=n,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:s??i,style:u||l?{...l,...u}:void 0,children:d??o,"data-rac":""}},[e,n,r,i,o,l,a])}function xi(t,e){let n=c.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||Rl;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 pt(t,e,n){let r=xi(n,t.slot)||{},{ref:i,...o}=r,l=ht(c.useMemo(()=>Tl(e,i),[e,i])),a=le(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 u=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...u},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:a.style={...o.style,...t.style}),[a,l]}function Ml(t=!0){let[e,n]=c.useState(t),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,n(!!o)},[]);return ue(()=>{r.current||n(!1)},[]),[i,e]}function dp(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class Ll{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new Ll(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 Al{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 Al,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(Na(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();Na(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 Na(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 bc{*[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 wn extends bc{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof wn?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 wn?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 u;if(o.lastChildKey=(u=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let p=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(p!==i.node.colIndex){let g=i.getMutableNode();g.colIndex=p}}}setProps(e,n,r,i){let o=this.getMutableNode(),{value:l,textValue:a,id:s,...u}=e;if(u.ref=n,o.props=u,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(typeof u.children=="string"?u.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}u.colSpan!=null&&(o.colSpan=u.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 Ll(e,`react-aria-${++n.nodeId}`)}}class fp extends bc{get isConnected(){return this.isMounted}createElement(e){return new wn(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 wn&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof wn&&(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 Sc(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(n&&typeof e=="function"){let u=[];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=c.cloneElement(f,i?{key:p,id:p,value:d}:{key:p}),l.set(d,f)}u.push(f)}return u}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 Jr=c.createContext(!1);function hp(t){if(c.useContext(Jr))return c.createElement(c.Fragment,null,t.children);let n=c.createElement(Jr.Provider,{value:!0},t.children);return c.createElement("template",{"data-react-aria-hidden":!0},n)}function Kl(t){let e=(n,r)=>c.useContext(Jr)?null:t(n,r);return e.displayName=t.displayName||t.name,c.forwardRef(e)}function pp(){return c.useContext(Jr)}const gp=typeof document<"u"?c.useLayoutEffect:()=>{},Qr={prefix:String(Math.round(Math.random()*1e10)),current:0},Cc=c.createContext(Qr),vp=c.createContext(!1);let mp=!!(typeof window<"u"&&window.document&&window.document.createElement),Xi=new WeakMap;function yp(t=!1){let e=c.useContext(Cc),n=c.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=c.__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=Xi.get(o);l==null?Xi.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Xi.delete(o))}n.current=++e.current}return n.current}function bp(t){let e=c.useContext(Cc);e===Qr&&!mp&&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=yp(!!t),r=e===Qr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function Sp(t){let e=c.useId(),[n]=c.useState(Fl()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Qr.prefix}`;return t||`${r}-${e}`}c.useId;function Cp(){return!1}function wp(){return!0}function xp(t){return()=>{}}function Fl(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(xp,Cp,wp):c.useContext(vp)}function Ep(t,e){return e.get?e.get.call(t):e.value}function wc(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function $p(t,e){var n=wc(t,e,"get");return Ep(t,n)}function Pp(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Dp(t,e,n){Pp(t,e),e.set(t,n)}function Tp(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 Ra(t,e,n){var r=wc(t,e,"set");return Tp(t,r,n),n}let Ma=c.createContext(null);var Sr={exports:{}},Ji={};/**
22
+ <%s key={someKey} {...props} />`,N,G,Y,G),W[G+N]=!0)}if(G=null,T!==void 0&&(n(T),G=""+T),l(M)&&(n(M.key),G=""+M.key),"key"in M){T={};for(var Q in M)Q!=="key"&&(T[Q]=M[Q])}else T=M;return G&&a(T,typeof _=="function"?_.displayName||_.name||"Unknown":_),u(_,G,K,j,i(),T,z,U)}function f(_){typeof _=="object"&&_!==null&&_.$$typeof===m&&_._store&&(_._store.validated=1)}var p=c,m=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),g=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"),x=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),E=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,V=Array.isArray,A=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(_){return _()}};var B,I={},O=p["react-stack-bottom-frame"].bind(p,o)(),k=A(r(o)),W={};$n.Fragment=h,$n.jsx=function(_,M,T,N,j){var K=1e4>E.recentlyCreatedOwnerStacks++;return d(_,M,T,!1,N,j,K?Error("react-stack-top-frame"):O,K?A(r(_)):k)},$n.jsxs=function(_,M,T,N,j){var K=1e4>E.recentlyCreatedOwnerStacks++;return d(_,M,T,!0,N,j,K?Error("react-stack-top-frame"):O,K?A(r(_)):k)}}()),$n}var sa;function z2(){return sa||(sa=1,process.env.NODE_ENV==="production"?rr.exports=j2():rr.exports=H2()),rr.exports}var y=z2();const V2={alert:{close_aria_label:"Delete alert",expand_aria_label:"Expand alert",shrink_aria_label:"Shrink alert"},pagination:{goto_label:"Go to page",goto_label_aria:"Go to any page",next_aria:"Go to next page",previous_aria:"Go to previous page",goto_page_aria:"Go to page {page}",current_page_aria:"You are currently on page {page}"},datagrid:{empty:"This table is empty",empty_alt:"Illustration of an empty table",loader_aria:"Loading data",rows_selection_aria:"All rows selection",row_selection_aria:"Row selection"},provider:{test:"This is a test: {name}"},forms:{input:{password:{show_password:"Show password",hide_password:"Hide password"}},select:{toggle_button_aria_label:"Toggle dropdown",clear_button_aria_label:"Clear selection",clear_all_button_aria_label:"Clear all selections",menu_empty_placeholder:"No options available"},file_uploader:{delete_file_name:"Delete file {name}",delete_file:"Delete file",uploading:"Uploading...",caption:"Drag and drop or ",browse_files:"Browse files"},date_picker:{toggle_button_aria_label_open:"Open calendar",toggle_button_aria_label_close:"Close calendar",clear_button_aria_label:"Clear date",next_month_button_aria_label:"Next month",next_year_button_aria_label:"Next year",previous_month_button_aria_label:"Previous month",previous_year_button_aria_label:"Previous year",year_select_button_aria_label:"Select a year",month_select_button_aria_label:"Select a month"}},modals:{helpers:{delete_confirmation:{title:"Are you sure?",children:"Are you sure to delete this item?",cancel:"Cancel",delete:"Delete"},confirmation:{title:"Are you sure?",children:"Are you sure you want to do that?",cancel:"Cancel",yes:"Yes"},disclaimer:{title:"Disclaimer",children:"This is a disclaimer",ok:"Ok"}}}},B2={components:V2},U2={alert:{close_aria_label:"Supprimer l'alerte",expand_aria_label:"Ouvrir l'alerte",shrink_aria_label:"Fermer l'alerte"},pagination:{goto_label:"Aller à",goto_label_aria:"Aller à la page",next_aria:"Aller à la page suivante",previous_aria:"Aller à la page précédente",goto_page_aria:"Aller à la page {page}",current_page_aria:"Vous êtes actuellement sur la page {page}"},datagrid:{empty:"Ce tableau est vide",empty_alt:"Illustration d'un tableau vide",loader_aria:"Loading data"},provider:{test:"Ceci est un test : {name}"},forms:{select:{toggle_button_aria_label:"Ouvrir le menu",clear_button_aria_label:"Effacer la sélection",clear_all_button_aria_label:"Effacer toutes les sélections",menu_empty_placeholder:"Aucun choix disponible"},file_uploader:{delete_file_name:"Supprimer le fichier {name}",delete_file:"Supprimer le fichier",uploading:"Upload en cours ...",caption:"Glisser-déposer ou ",browse_files:"Parcourir"},date_picker:{toggle_button_aria_label_open:"Ouvrir le calendrier",toggle_button_aria_label_close:"Fermer le calendrier",clear_button_aria_label:"Effacer la date",next_month_button_aria_label:"Mois suivant",next_year_button_aria_label:"Année suivante",previous_month_button_aria_label:"Mois précédent",previous_year_button_aria_label:"Année précédente",year_select_button_aria_label:"Sélectionner une année",month_select_button_aria_label:"Sélectionner un mois"}}},W2={components:U2},G2={share:{copyLink:"Copy link",ok:"Ok",shareButton:"Share",modalTitle:"Share folder",access:{delete:"Remove access"},invitations:{title:"Pending invitations"},members:{title:"Members",title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},item:{add:"Add"}},footer:{links:{legal:"Legal mentions",personal_data:"Personal data and cookies",accessibility:"Accessibility"},mention:"Unless otherwise stated, all content on this site is under the",license:"etalab-2.0 license"}},q2={components:G2},Y2={share:{copyLink:"Copier le lien",ok:"Ok",modalTitle:"Partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},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"}},footer:{links:{legal:"Mentions Légales",personal_data:"Données personnelles et cookies",accessibility:"Accessibilité"},mention:"Sauf mention contraire, tout le contenu de ce site est sous",license:"licence etalab-2.0"}},Z2={components:Y2};function Ni(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Lr(t,...e){if(!e.length)return t;const n=e.shift();if(Ni(t)&&Ni(n))for(const r in n)Ni(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Lr(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Lr(t,...e)}function zu(){return{"en-US":Lr(B2,q2),"fr-FR":Lr(W2,Z2)}}const X2=t=>{const e=zu();return y.jsx(se.CunninghamProvider,{theme:"dsfr",customLocales:e,...t})},Vu=({disabled:t,onClick:e})=>y.jsx(se.Button,{disabled:t,className:"pro-connect-button",onClick:e}),ne=typeof document<"u"?c.useLayoutEffect:()=>{};function fe(t){const e=c.useRef(null);return ne(()=>{e.current=t},[t]),c.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function J2(t){let[e,n]=c.useState(t),r=c.useRef(null),i=fe(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():n(l.value)});ne(()=>{r.current&&i()});let o=fe(l=>{r.current=l(e),i()});return[e,o]}const Ar={prefix:String(Math.round(Math.random()*1e10)),current:0},Bu=c.createContext(Ar),Q2=c.createContext(!1);let eh=!!(typeof window<"u"&&window.document&&window.document.createElement),Ri=new WeakMap;function th(t=!1){let e=c.useContext(Bu),n=c.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=c.__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=Ri.get(o);l==null?Ri.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Ri.delete(o))}n.current=++e.current}return n.current}function nh(t){let e=c.useContext(Bu);e===Ar&&!eh&&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=th(!!t),r=e===Ar&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function rh(t){let e=c.useId(),[n]=c.useState(Jn()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ar.prefix}`;return t||`${r}-${e}`}const ih=typeof c.useId=="function"?rh:nh;function oh(){return!1}function lh(){return!0}function ah(t){return()=>{}}function Jn(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(ah,oh,lh):c.useContext(Q2)}let sh=!!(typeof window<"u"&&window.document&&window.document.createElement),on=new Map,Nn;typeof FinalizationRegistry<"u"&&(Nn=new FinalizationRegistry(t=>{on.delete(t)}));function Se(t){let[e,n]=c.useState(t),r=c.useRef(null),i=ih(e),o=c.useRef(null);if(Nn&&Nn.register(o,i),sh){const l=on.get(i);l&&!l.includes(r)?l.push(r):on.set(i,[r])}return ne(()=>{let l=i;return()=>{Nn&&Nn.unregister(o),on.delete(l)}},[i]),c.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function uh(t,e){if(t===e)return t;let n=on.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=on.get(e);return r?(r.forEach(i=>i.current=t),t):e}function Et(t=[]){let e=Se(),[n,r]=J2(e),i=c.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return ne(i,[e,i,...t]),n}function Pt(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const oe=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:oe(t).defaultView||window;function ch(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function dh(t){return ch(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let fh=!1;function ti(){return fh}function ae(t,e){if(!ti())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:dh(n)?n=n.host:n=n.parentNode}return!1}const Ce=(t=document)=>{var e;if(!ti())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 ie(t){return ti()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class hh{get currentNode(){return this._currentNode}set currentNode(e){if(!ae(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 ae(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 u=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),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 ph(t,e,n,r){return ti()?new hh(t,e,n,r):t.createTreeWalker(e,n,r)}function Uu(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=Uu(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Uu(t))&&(r&&(r+=" "),r+=e);return r}function re(...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]=Pt(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Pe(o,l):i==="id"&&o&&l?e.id=uh(o,l):e[i]=l!==void 0?l:o}}return e}function ul(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=ua(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():ua(t[o],null)})}}}function ua(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const vh=new Set(["id"]),gh=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),mh=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),bh=/^(data-.*)$/;function he(t,e={}){let{labelable:n,isLink:r,propNames:i}=e,o={};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(vh.has(l)||n&&gh.has(l)||r&&mh.has(l)||i!=null&&i.has(l)||bh.test(l))&&(o[l]=t[l]);return o}function ze(t){if(yh())t.focus({preventScroll:!0});else{let e=Ch(t);t.focus(),Sh(e)}}let ir=null;function yh(){if(ir==null){ir=!1;try{document.createElement("div").focus({get preventScroll(){return ir=!0,!0}})}catch{}}return ir}function Ch(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 Sh(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function ni(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 cl(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 et(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const ft=et(function(){return cl(/^Mac/i)}),Eh=et(function(){return cl(/^iPhone/i)}),Wu=et(function(){return cl(/^iPad/i)||ft()&&navigator.maxTouchPoints>1}),ri=et(function(){return Eh()||Wu()}),wh=et(function(){return ft()||ri()}),dl=et(function(){return ni(/AppleWebKit/i)&&!Gu()}),Gu=et(function(){return ni(/Chrome/i)}),fl=et(function(){return ni(/Android/i)}),xh=et(function(){return ni(/Firefox/i)}),$h=c.createContext({isNative:!0,open:Dh,useHref:t=>t});function ii(){return c.useContext($h)}function Dt(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:a,shiftKey:s}=e;xh()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(ft()?o=!0:l=!0);let u=dl()&&ft()&&!Wu()&&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});Dt.isOpening=n,ze(t),t.dispatchEvent(u),Dt.isOpening=!1}Dt.isOpening=!1;function Ph(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 Dh(t,e){Ph(t,n=>Dt(n,e))}function hl(t){let e=ii();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 st=new Map,wo=new Set;function ca(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{if(!t(r)||!r.target)return;let i=st.get(r.target);i||(i=new Set,st.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=st.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),st.delete(r.target)),st.size===0)){for(let o of wo)o();wo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ca():document.addEventListener("DOMContentLoaded",ca));function Th(){for(const[t]of st)"isConnected"in t&&!t.isConnected&&st.delete(t)}function qu(t){requestAnimationFrame(()=>{Th(),st.size===0?t():wo.add(t)})}function oi(){let t=c.useRef(new Map),e=c.useCallback((i,o,l,a)=>{let s=a!=null&&a.once?(...u)=>{t.current.delete(l),l(...u)}:l;t.current.set(l,{type:o,eventTarget:i,fn:s,options:a}),i.addEventListener(o,s,a)},[]),n=c.useCallback((i,o,l,a)=>{var s;let u=((s=t.current.get(l))===null||s===void 0?void 0:s.fn)||l;i.removeEventListener(o,u,a),t.current.delete(l)},[]),r=c.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function li(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Se(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 tt(t){const e=c.useRef(null),n=c.useRef(void 0),r=c.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 c.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 da(t,e){const n=c.useRef(!0),r=c.useRef(null);ne(()=>(n.current=!0,()=>{n.current=!1}),[]),ne(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function _h(){return typeof window.ResizeObserver<"u"}function xo(t){const{ref:e,box:n,onResize:r}=t;c.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(_h()){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 Yu(t,e){ne(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Vn(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 Zu(t,e){let n=t;for(Vn(n,e)&&(n=n.parentElement);n&&!Vn(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Ih(t,e){const n=[];for(;t&&t!==document.documentElement;)Vn(t,e)&&n.push(t),t=t.parentElement;return n}let Oh=0;const Mi=new Map;function kh(t){let[e,n]=c.useState();return ne(()=>{if(!t)return;let r=Mi.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${Oh++}`;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},Mi.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Mi.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function or(t,e,n,r){let i=fe(n),o=n==null;c.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 Xu(t,e){let n=fa(t,e,"left"),r=fa(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=t.scrollLeft,a=t.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:m}=getComputedStyle(t),b=l+parseInt(u,10),h=a+parseInt(s,10),v=b+t.clientWidth,g=h+t.clientHeight,C=parseInt(d,10)||0,S=parseInt(p,10)||0,P=parseInt(f,10)||0,$=parseInt(m,10)||0;n<=l+$?l=n-parseInt(u,10)-$:n+i>v-P&&(l+=n+i-v+P),r<=h+C?a=r-parseInt(s,10)-C:r+o>g-S&&(a+=r+o-g+S),t.scrollLeft=l,t.scrollTop=a}function fa(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 ha(t,e){if(t&&document.contains(t)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=Ih(t);for(let u of s)Xu(u,t)}else{var n;let{left:s,top:u}=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(u-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:fl()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Nh(t){return!fl()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Rh(t,e,n){let r=c.useRef(e),i=fe(()=>{n&&n(r.current)});c.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 Mh(t){const e=c.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const Lh="react-aria-clear-focus",Ah="react-aria-focus";function Jt(t){return ft()?t.metaKey:t.ctrlKey}function Fh(t,e=!0){let[n,r]=c.useState(!0),i=n&&e;return ne(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Ju(t,i,c.useCallback(()=>r(!1),[])),i}function Kh(t,e){let[n,r]=c.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 Ju(t,i,c.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Ju(t,e,n){ne(()=>{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||Rt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const pl=["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"])'],jh=pl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";pl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Hh=pl.join(':not([hidden]):not([tabindex="-1"]),');function Qu(t){return t.matches(jh)}function zh(t){return t.matches(Hh)}function ai(t,e,n){let[r,i]=c.useState(t||e),o=c.useRef(t!==void 0),l=t!==void 0;c.useEffect(()=>{let u=o.current;u!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=c.useCallback((u,...d)=>{let f=(p,...m)=>{n&&(Object.is(a,p)||n(p,...m)),l||(a=p)};typeof u=="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((m,...b)=>{let h=u(l?a:m,...b);return f(h,...d),l?m:h})):(l||i(u),f(u,...d))},[l,a,n]);return[a,s]}function Po(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}const vl=Symbol("default");function ht({values:t,children:e}){for(let[n,r]of t)e=c.createElement(n.Provider,{value:r},e);return e}function De(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:a}=t;return c.useMemo(()=>{let s,u,d;return typeof e=="function"?s=e({...a,defaultClassName:i}):s=e,typeof n=="function"?u=n({...a,defaultStyle:l||{}}):u=n,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:s??i,style:u||l?{...l,...u}:void 0,children:d??o,"data-rac":""}},[e,n,r,i,o,l,a])}function si(t,e){let n=c.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||vl;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 nt(t,e,n){let r=si(n,t.slot)||{},{ref:i,...o}=r,l=tt(c.useMemo(()=>ul(e,i),[e,i])),a=re(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 u=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...u},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:a.style={...o.style,...t.style}),[a,l]}function gl(t=!0){let[e,n]=c.useState(t),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,n(!!o)},[]);return ne(()=>{r.current||n(!1)},[]),[i,e]}function Vh(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}class ml{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new ml(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 bl{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 bl,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(pa(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();pa(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 pa(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 ec{*[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 ln extends ec{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof ln?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 ln?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 u;if(o.lastChildKey=(u=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u: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 m=i.getMutableNode();m.colIndex=p}}}setProps(e,n,r,i){let o=this.getMutableNode(),{value:l,textValue:a,id:s,...u}=e;if(u.ref=n,o.props=u,o.rendered=r,o.render=i,o.value=l,o.textValue=a||(typeof u.children=="string"?u.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}u.colSpan!=null&&(o.colSpan=u.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 ml(e,`react-aria-${++n.nodeId}`)}}class Bh extends ec{get isConnected(){return this.isMounted}createElement(e){return new ln(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 ln&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof ln&&(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 tc(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(n&&typeof e=="function"){let u=[];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=c.cloneElement(f,i?{key:p,id:p,value:d}:{key:p}),l.set(d,f)}u.push(f)}return u}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 Fr=c.createContext(!1);function Uh(t){if(c.useContext(Fr))return c.createElement(c.Fragment,null,t.children);let n=c.createElement(Fr.Provider,{value:!0},t.children);return c.createElement("template",{"data-react-aria-hidden":!0},n)}function yl(t){let e=(n,r)=>c.useContext(Fr)?null:t(n,r);return e.displayName=t.displayName||t.name,c.forwardRef(e)}function Wh(){return c.useContext(Fr)}function Cl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function nc(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function rc(t){let e=c.useRef({isFocused:!1,observer:null});ne(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=fe(r=>{t==null||t(r)});return c.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=Cl(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 Kr=!1;function va(t){for(;t&&!Qu(t);)t=t.parentElement;let e=Me(t),n=e.document.activeElement;if(!n||n===t)return;Kr=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,ze(n),s()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,ze(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(u),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),Kr=!1,r=!1},u=requestAnimationFrame(s);return s}let tn="default",Do="",wr=new WeakMap;function ga(t){if(ri()){if(tn==="default"){const e=oe(t);Do=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}tn="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";wr.set(t,t.style[e]),t.style[e]="none"}}function Li(t){if(ri()){if(tn!=="disabled")return;tn="restoring",setTimeout(()=>{qu(()=>{if(tn==="restoring"){const e=oe(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Do||""),Do="",tn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&wr.has(t)){let e=wr.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),wr.delete(t)}}const Sl=c.createContext({register:()=>{}});Sl.displayName="PressResponderContext";function Gh(t,e){return e.get?e.get.call(t):e.value}function ic(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function qh(t,e){var n=ic(t,e,"get");return Gh(t,n)}function Yh(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Zh(t,e,n){Yh(t,e),e.set(t,n)}function Xh(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 ma(t,e,n){var r=ic(t,e,"set");return Xh(t,r,n),n}function Jh(t){let e=c.useContext(Sl);if(e){let{register:n,...r}=e;t=re(r,t),n()}return Yu(e,t.ref),t}var lr=new WeakMap;class ar{continuePropagation(){ma(this,lr,!1)}get shouldStopPropagation(){return qh(this,lr)}constructor(e,n,r,i){Zh(this,lr,{writable:!0,value:void 0}),ma(this,lr,!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,u=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,u=f-a.top):(s=a.width/2,u=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=u}}const ba=Symbol("linkClicked"),ya="react-aria-pressable-style",Ca="data-react-aria-pressable";function ui(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...m}=Jh(t),[b,h]=c.useState(!1),v=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:g,removeAllGlobalListeners:C}=oi(),S=fe((E,L)=>{let V=v.current;if(a||V.didFirePressStart)return!1;let A=!0;if(V.isTriggeringEvent=!0,r){let B=new ar("pressstart",L,E);r(B),A=B.shouldStopPropagation}return n&&n(!0),V.isTriggeringEvent=!1,V.didFirePressStart=!0,h(!0),A}),P=fe((E,L,V=!0)=>{let A=v.current;if(!A.didFirePressStart)return!1;A.didFirePressStart=!1,A.isTriggeringEvent=!0;let B=!0;if(i){let I=new ar("pressend",L,E);i(I),B=I.shouldStopPropagation}if(n&&n(!1),h(!1),e&&V&&!a){let I=new ar("press",L,E);e(I),B&&(B=I.shouldStopPropagation)}return A.isTriggeringEvent=!1,B}),$=fe((E,L)=>{let V=v.current;if(a)return!1;if(o){V.isTriggeringEvent=!0;let A=new ar("pressup",L,E);return o(A),V.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),w=fe(E=>{let L=v.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&P(pt(L.target,E),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,C(),f||Li(L.target);for(let V of L.disposables)V();L.disposables=[]}}),x=fe(E=>{d&&w(E)}),R=fe(E=>{l==null||l(E)}),H=fe((E,L)=>{if(l){let V=new MouseEvent("click",E);nc(V,L),l(Cl(V))}}),F=c.useMemo(()=>{let E=v.current,L={onKeyDown(A){if(Ai(A.nativeEvent,A.currentTarget)&&ae(A.currentTarget,ie(A.nativeEvent))){var B;wa(ie(A.nativeEvent),A.key)&&A.preventDefault();let I=!0;if(!E.isPressed&&!A.repeat){E.target=A.currentTarget,E.isPressed=!0,E.pointerType="keyboard",I=S(A,"keyboard");let O=A.currentTarget,k=W=>{Ai(W,O)&&!W.repeat&&ae(O,ie(W))&&E.target&&$(pt(E.target,W),"keyboard")};g(oe(A.currentTarget),"keyup",Pt(k,V),!0)}I&&A.stopPropagation(),A.metaKey&&ft()&&((B=E.metaKeyEvents)===null||B===void 0||B.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(E.metaKeyEvents=new Map)},onClick(A){if(!(A&&!ae(A.currentTarget,ie(A.nativeEvent)))&&A&&A.button===0&&!E.isTriggeringEvent&&!Dt.isOpening){let B=!0;if(a&&A.preventDefault(),!E.ignoreEmulatedMouseEvents&&!E.isPressed&&(E.pointerType==="virtual"||$o(A.nativeEvent))){let I=S(A,"virtual"),O=$(A,"virtual"),k=P(A,"virtual");R(A),B=I&&O&&k}else if(E.isPressed&&E.pointerType!=="keyboard"){let I=E.pointerType||A.nativeEvent.pointerType||"virtual",O=$(pt(A.currentTarget,A),I),k=P(pt(A.currentTarget,A),I,!0);B=O&&k,E.isOverTarget=!1,R(A),w(A)}E.ignoreEmulatedMouseEvents=!1,B&&A.stopPropagation()}}},V=A=>{var B;if(E.isPressed&&E.target&&Ai(A,E.target)){var I;wa(ie(A),A.key)&&A.preventDefault();let k=ie(A),W=ae(E.target,ie(A));P(pt(E.target,A),"keyboard",W),W&&H(A,E.target),C(),A.key!=="Enter"&&El(E.target)&&ae(E.target,k)&&!A[ba]&&(A[ba]=!0,Dt(E.target,A,!1)),E.isPressed=!1,(I=E.metaKeyEvents)===null||I===void 0||I.delete(A.key)}else if(A.key==="Meta"&&(!((B=E.metaKeyEvents)===null||B===void 0)&&B.size)){var O;let k=E.metaKeyEvents;E.metaKeyEvents=void 0;for(let W of k.values())(O=E.target)===null||O===void 0||O.dispatchEvent(new KeyboardEvent("keyup",W))}};if(typeof PointerEvent<"u"){L.onPointerDown=I=>{if(I.button!==0||!ae(I.currentTarget,ie(I.nativeEvent)))return;if(Nh(I.nativeEvent)){E.pointerType="virtual";return}E.pointerType=I.pointerType;let O=!0;if(!E.isPressed){E.isPressed=!0,E.isOverTarget=!0,E.activePointerId=I.pointerId,E.target=I.currentTarget,f||ga(E.target),O=S(I,E.pointerType);let k=ie(I.nativeEvent);"releasePointerCapture"in k&&k.releasePointerCapture(I.pointerId),g(oe(I.currentTarget),"pointerup",A,!1),g(oe(I.currentTarget),"pointercancel",B,!1)}O&&I.stopPropagation()},L.onMouseDown=I=>{if(ae(I.currentTarget,ie(I.nativeEvent))&&I.button===0){if(u){let O=va(I.target);O&&E.disposables.push(O)}I.stopPropagation()}},L.onPointerUp=I=>{!ae(I.currentTarget,ie(I.nativeEvent))||E.pointerType==="virtual"||I.button===0&&!E.isPressed&&$(I,E.pointerType||I.pointerType)},L.onPointerEnter=I=>{I.pointerId===E.activePointerId&&E.target&&!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,S(pt(E.target,I),E.pointerType))},L.onPointerLeave=I=>{I.pointerId===E.activePointerId&&E.target&&E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,P(pt(E.target,I),E.pointerType,!1),x(I))};let A=I=>{if(I.pointerId===E.activePointerId&&E.isPressed&&I.button===0&&E.target){if(ae(E.target,ie(I))&&E.pointerType!=null){let O=!1,k=setTimeout(()=>{E.isPressed&&E.target instanceof HTMLElement&&(O?w(I):(ze(E.target),E.target.click()))},80);g(I.currentTarget,"click",()=>O=!0,!0),E.disposables.push(()=>clearTimeout(k))}else w(I);E.isOverTarget=!1}},B=I=>{w(I)};L.onDragStart=I=>{ae(I.currentTarget,ie(I.nativeEvent))&&w(I)}}else if(process.env.NODE_ENV==="test"){L.onMouseDown=I=>{if(I.button!==0||!ae(I.currentTarget,ie(I.nativeEvent)))return;if(E.ignoreEmulatedMouseEvents){I.stopPropagation();return}if(E.isPressed=!0,E.isOverTarget=!0,E.target=I.currentTarget,E.pointerType=$o(I.nativeEvent)?"virtual":"mouse",Rt.flushSync(()=>S(I,E.pointerType))&&I.stopPropagation(),u){let k=va(I.target);k&&E.disposables.push(k)}g(oe(I.currentTarget),"mouseup",A,!1)},L.onMouseEnter=I=>{if(!ae(I.currentTarget,ie(I.nativeEvent)))return;let O=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!0,O=S(I,E.pointerType)),O&&I.stopPropagation()},L.onMouseLeave=I=>{if(!ae(I.currentTarget,ie(I.nativeEvent)))return;let O=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!1,O=P(I,E.pointerType,!1),x(I)),O&&I.stopPropagation()},L.onMouseUp=I=>{ae(I.currentTarget,ie(I.nativeEvent))&&!E.ignoreEmulatedMouseEvents&&I.button===0&&!E.isPressed&&$(I,E.pointerType||"mouse")};let A=I=>{if(I.button===0){if(E.ignoreEmulatedMouseEvents){E.ignoreEmulatedMouseEvents=!1;return}E.target&&E.target.contains(I.target)&&E.pointerType!=null||w(I),E.isOverTarget=!1}};L.onTouchStart=I=>{if(!ae(I.currentTarget,ie(I.nativeEvent)))return;let O=Qh(I.nativeEvent);if(!O)return;E.activePointerId=O.identifier,E.ignoreEmulatedMouseEvents=!0,E.isOverTarget=!0,E.isPressed=!0,E.target=I.currentTarget,E.pointerType="touch",f||ga(E.target),S(it(E.target,I),E.pointerType)&&I.stopPropagation(),g(Me(I.currentTarget),"scroll",B,!0)},L.onTouchMove=I=>{if(!ae(I.currentTarget,ie(I.nativeEvent)))return;if(!E.isPressed){I.stopPropagation();return}let O=Sa(I.nativeEvent,E.activePointerId),k=!0;O&&Ea(O,I.currentTarget)?!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,k=S(it(E.target,I),E.pointerType)):E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,k=P(it(E.target,I),E.pointerType,!1),x(it(E.target,I))),k&&I.stopPropagation()},L.onTouchEnd=I=>{if(!ae(I.currentTarget,ie(I.nativeEvent)))return;if(!E.isPressed){I.stopPropagation();return}let O=Sa(I.nativeEvent,E.activePointerId),k=!0;O&&Ea(O,I.currentTarget)&&E.pointerType!=null?($(it(E.target,I),E.pointerType),k=P(it(E.target,I),E.pointerType),H(I.nativeEvent,E.target)):E.isOverTarget&&E.pointerType!=null&&(k=P(it(E.target,I),E.pointerType,!1)),k&&I.stopPropagation(),E.isPressed=!1,E.activePointerId=null,E.isOverTarget=!1,E.ignoreEmulatedMouseEvents=!0,E.target&&!f&&Li(E.target),C()},L.onTouchCancel=I=>{ae(I.currentTarget,ie(I.nativeEvent))&&(I.stopPropagation(),E.isPressed&&w(it(E.target,I)))};let B=I=>{E.isPressed&&ae(ie(I),E.target)&&w({currentTarget:E.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=I=>{ae(I.currentTarget,ie(I.nativeEvent))&&w(I)}}return L},[g,a,u,C,f,w,x,P,S,$,R,H]);return c.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const E=oe(p.current);if(!E||!E.head||E.getElementById(ya))return;const L=E.createElement("style");L.id=ya,L.textContent=`
23
+ @layer {
24
+ [${Ca}] {
25
+ touch-action: pan-x pan-y pinch-zoom;
26
+ }
27
+ }
28
+ `.trim(),E.head.prepend(L)},[p]),c.useEffect(()=>{let E=v.current;return()=>{var L;f||Li((L=E.target)!==null&&L!==void 0?L:void 0);for(let V of E.disposables)V();E.disposables=[]}},[f]),{isPressed:s||b,pressProps:re(m,F,{[Ca]:!0})}}function El(t){return t.tagName==="A"&&t.hasAttribute("href")}function Ai(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&&!oc(i,n)||i instanceof Me(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&El(i))&&n!=="Enter")}function Qh(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Sa(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 it(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 pt(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 ep(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 tp(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ea(t,e){let n=e.getBoundingClientRect(),r=ep(t);return tp(n,r)}function np(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!El(t)}function wa(t,e){return t instanceof HTMLInputElement?!oc(t,e):np(t)}const rp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function oc(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":rp.has(t.type)}let Mt=null,To=new Set,jn=new Map,Tt=!1,_o=!1;const ip={Tab:!0,Escape:!0};function ci(t,e){for(let n of To)n(t,e)}function op(t){return!(t.metaKey||!ft()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function jr(t){Tt=!0,op(t)&&(Mt="keyboard",ci("keyboard",t))}function ke(t){Mt="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Tt=!0,ci("pointer",t))}function lc(t){$o(t)&&(Tt=!0,Mt="virtual")}function ac(t){t.target===window||t.target===document||Kr||!t.isTrusted||(!Tt&&!_o&&(Mt="virtual",ci("virtual",t)),Tt=!1,_o=!1)}function sc(){Kr||(Tt=!1,_o=!0)}function Io(t){if(typeof window>"u"||typeof document>"u"||jn.get(Me(t)))return;const e=Me(t),n=oe(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Tt=!0,r.apply(this,arguments)},n.addEventListener("keydown",jr,!0),n.addEventListener("keyup",jr,!0),n.addEventListener("click",lc,!0),e.addEventListener("focus",ac,!0),e.addEventListener("blur",sc,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ke,!0),n.addEventListener("pointermove",ke,!0),n.addEventListener("pointerup",ke,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ke,!0),n.addEventListener("mousemove",ke,!0),n.addEventListener("mouseup",ke,!0)),e.addEventListener("beforeunload",()=>{uc(t)},{once:!0}),jn.set(e,{focus:r})}const uc=(t,e)=>{const n=Me(t),r=oe(t);e&&r.removeEventListener("DOMContentLoaded",e),jn.has(n)&&(n.HTMLElement.prototype.focus=jn.get(n).focus,r.removeEventListener("keydown",jr,!0),r.removeEventListener("keyup",jr,!0),r.removeEventListener("click",lc,!0),n.removeEventListener("focus",ac,!0),n.removeEventListener("blur",sc,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ke,!0),r.removeEventListener("pointermove",ke,!0),r.removeEventListener("pointerup",ke,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ke,!0),r.removeEventListener("mousemove",ke,!0),r.removeEventListener("mouseup",ke,!0)),jn.delete(n))};function lp(t){const e=oe(t);let n;return e.readyState!=="loading"?Io(t):(n=()=>{Io(t)},e.addEventListener("DOMContentLoaded",n)),()=>uc(t,n)}typeof document<"u"&&lp();function fn(){return Mt!=="pointer"}function Hr(){return Mt}function cc(t){Mt=t,ci(t,null)}const ap=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sp(t,e,n){let r=oe(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&&!ap.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!ip[n.key])}function up(t,e,n){Io(),c.useEffect(()=>{let r=(i,o)=>{sp(!!(n!=null&&n.isTextInput),i,o)&&t(fn())};return To.add(r),()=>{To.delete(r)}},e)}function hn(t){const e=oe(t),n=Ce(e);if(Hr()==="virtual"){let r=n;qu(()=>{Ce(e)===r&&t.isConnected&&ze(t)})}else ze(t)}function wl(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=rc(o),a=c.useCallback(s=>{const u=oe(s.target),d=u?Ce(u):Ce();s.target===s.currentTarget&&d===ie(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 xa(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 dc(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:xa(t.onKeyDown),onKeyUp:xa(t.onKeyUp)}}}let Oo=c.createContext(null);function cp(t){let e=c.useContext(Oo)||{};Yu(e,t);let{ref:n,...r}=e;return r}function fc(t,e){let{focusProps:n}=wl(t),{keyboardProps:r}=dc(t),i=re(n,r),o=cp(e),l=t.isDisabled?{}:o,a=c.useRef(t.autoFocus);c.useEffect(()=>{a.current&&e.current&&hn(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:re({...i,tabIndex:s},l)}}function dp({children:t}){let e=c.useMemo(()=>({register:()=>{}}),[]);return c.createElement(Sl.Provider,{value:e},t)}function di(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=oi(),s=c.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]),u=rc(s),d=c.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=oe(f.target),m=Ce(p);if(!o.current.isFocusWithin&&m===ie(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,u(f);let b=f.currentTarget;l(p,"focus",h=>{if(o.current.isFocusWithin&&!ae(b,h.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});nc(v,b);let g=Cl(v);s(g)}},{capture:!0})}},[r,i,u,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let zr=!1,Fi=0;function ko(){zr=!0,setTimeout(()=>{zr=!1},50)}function $a(t){t.pointerType==="touch"&&ko()}function fp(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",$a):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",ko),Fi++,()=>{Fi--,!(Fi>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",$a):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",ko))}}function yn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(fp,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=oi(),{hoverProps:d,triggerHoverEnd:f}=c.useMemo(()=>{let p=(h,v)=>{if(a.pointerType=v,i||v==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let g=h.currentTarget;a.target=g,s(oe(h.target),"pointerover",C=>{a.isHovered&&a.target&&!ae(a.target,C.target)&&m(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:g,pointerType:v}),n&&n(!0),l(!0)},m=(h,v)=>{let g=a.target;a.pointerType="",a.target=null,!(v==="touch"||!a.isHovered||!g)&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:g,pointerType:v}),n&&n(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=h=>{zr&&h.pointerType==="mouse"||p(h,h.pointerType)},b.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&m(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!zr&&p(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&m(h,"mouse")}),{hoverProps:b,triggerHoverEnd:m}},[e,n,r,i,a,s,u]);return c.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function hp(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=fe(s=>{n&&sr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=fe(s=>{n&&n(s)});c.useEffect(()=>{let s=o.current;if(r)return;const u=e.current,d=oe(u);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&sr(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=m=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&sr(m,e)&&a(m),s.isPointerDown=!1},p=m=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&sr(m,e)&&a(m),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 sr(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 pp=500;function hc(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=pp,accessibilityDescription:l}=t;const a=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=oi(),{pressProps:d}=ui({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})),oe(p.target).activeElement!==p.target&&ze(p.target),i&&i({...p,type:"longpress"}),a.current=void 0},o),p.pointerType==="touch")){let m=b=>{b.preventDefault()};s(p.target,"contextmenu",m,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=kh(i&&!e?l:void 0);return{longPressProps:re(d,f)}}var ur={exports:{}},Ki={};/**
32
29
  * @license React
33
30
  * use-sync-external-store-shim.production.js
34
31
  *
@@ -36,7 +33,7 @@ Check the top-level render call using <`+D+">."),Y}var C=c,P=Symbol.for("react.t
36
33
  *
37
34
  * This source code is licensed under the MIT license found in the
38
35
  * LICENSE file in the root directory of this source tree.
39
- */var La;function _p(){if(La)return Ji;La=1;var t=c;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 g=p(),y=r({inst:{value:g,getSnapshot:p}}),h=y[0].inst,v=y[1];return o(function(){h.value=g,h.getSnapshot=p,s(h)&&v({inst:h})},[f,g,p]),i(function(){return s(h)&&v({inst:h}),f(function(){s(h)&&v({inst:h})})},[f]),l(g),g}function s(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!n(f,g)}catch{return!0}}function u(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Ji.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Ji}var Qi={};/**
36
+ */var Pa;function vp(){if(Pa)return Ki;Pa=1;var t=c;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 m=p(),b=r({inst:{value:m,getSnapshot:p}}),h=b[0].inst,v=b[1];return o(function(){h.value=m,h.getSnapshot=p,s(h)&&v({inst:h})},[f,m,p]),i(function(){return s(h)&&v({inst:h}),f(function(){s(h)&&v({inst:h})})},[f]),l(m),m}function s(f){var p=f.getSnapshot;f=f.value;try{var m=p();return!n(f,m)}catch{return!0}}function u(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Ki.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Ki}var ji={};/**
40
37
  * @license React
41
38
  * use-sync-external-store-shim.development.js
42
39
  *
@@ -44,12 +41,12 @@ Check the top-level render call using <`+D+">."),Y}var C=c,P=Symbol.for("react.t
44
41
  *
45
42
  * This source code is licensed under the MIT license found in the
46
43
  * LICENSE file in the root directory of this source tree.
47
- */var Aa;function Ip(){return Aa||(Aa=1,process.env.NODE_ENV!=="production"&&function(){function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}function e(g,y){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=y();if(!f){var v=y();o(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=l({inst:{value:h,getSnapshot:y}});var m=v[0].inst,S=v[1];return s(function(){m.value=h,m.getSnapshot=y,n(m)&&S({inst:m})},[g,h,y]),a(function(){return n(m)&&S({inst:m}),g(function(){n(m)&&S({inst:m})})},[g]),u(h),h}function n(g){var y=g.getSnapshot;g=g.value;try{var h=y();return!o(g,h)}catch{return!0}}function r(g,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,u=i.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Qi.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())}()),Qi}var Ka;function Op(){return Ka||(Ka=1,process.env.NODE_ENV==="production"?Sr.exports=_p():Sr.exports=Ip()),Sr.exports}var jl=Op();const xc=c.createContext(!1),lr=c.createContext(null);function Ei(t){if(c.useContext(lr))return t.content;let{collection:n,document:r}=Mp(t.createCollection);return c.createElement(c.Fragment,null,c.createElement(hp,null,c.createElement(lr.Provider,{value:r},t.content)),c.createElement(kp,{render:t.children,collection:n}))}function kp({collection:t,render:e}){return e(t)}function Np(t,e,n){let r=Fl(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?n():e(),[e,n]);return jl.useSyncExternalStore(t,o)}const Rp=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:Np;function Mp(t){let[e]=c.useState(()=>new fp((t==null?void 0:t())||new Al)),n=c.useCallback(l=>e.subscribe(l),[e]),r=c.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Rp(n,r,i);return gp(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Uo=c.createContext(null);function Lp(t,e,n,r,i,o){let l=c.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=c.useContext(Uo);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?c.createElement(Uo.Provider,{value:s},i):null}return c.createElement(t,{ref:l},i)}function $i(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{let l=c.useContext(Ma);if(!c.useContext(xc)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return Lp(t,i,o,"children"in i?i.children:null,null,s=>c.createElement(Ma.Provider,{value:l},c.createElement(n,{node:s})))});return r.displayName=e.name,r}function Ap(t){return Sc({...t,addIdAndValue:!0})}const Fa=c.createContext(null);function Hl(t){let e=c.useContext(Fa),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=Ap({...t,idScope:r,dependencies:n});return c.useContext(lr)&&(i=c.createElement(Kp,null,i)),e=c.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),c.createElement(Fa.Provider,{value:e},i)}function Kp({children:t}){let e=c.useContext(lr),n=c.useMemo(()=>c.createElement(lr.Provider,{value:null},c.createElement(xc.Provider,{value:!0},t)),[t]);return Fl()?c.createElement(Uo.Provider,{value:e},n):Wt.createPortal(n,e)}function zl(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function Ec(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function $c(t){let e=c.useRef({isFocused:!1,observer:null});ue(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=be(r=>{t==null||t(r)});return c.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=zl(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 ei=!1;function ja(t){for(;t&&!yc(t);)t=t.parentElement;let e=Re(t),n=e.document.activeElement;if(!n||n===t)return;ei=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!t&&!r&&(r=!0,Ze(n),s()))},l=d=>{(d.target===t||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===t||r)&&(d.stopImmediatePropagation(),r||(r=!0,Ze(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(u),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",l,!0),ei=!1,r=!1},u=requestAnimationFrame(s);return s}let mn="default",Wo="",Ar=new WeakMap;function Ha(t){if(bi()){if(mn==="default"){const e=ce(t);Wo=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}mn="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Ar.set(t,t.style[e]),t.style[e]="none"}}function eo(t){if(bi()){if(mn!=="disabled")return;mn="restoring",setTimeout(()=>{hc(()=>{if(mn==="restoring"){const e=ce(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Wo||""),Wo="",mn="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Ar.has(t)){let e=Ar.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Ar.delete(t)}}const Vl=c.createContext({register:()=>{}});Vl.displayName="PressResponderContext";function Fp(t){let e=c.useContext(Vl);if(e){let{register:n,...r}=e;t=le(r,t),n()}return pc(e,t.ref),t}var Cr=new WeakMap;class wr{continuePropagation(){Ra(this,Cr,!1)}get shouldStopPropagation(){return $p(this,Cr)}constructor(e,n,r,i){Dp(this,Cr,{writable:!0,value:void 0}),Ra(this,Cr,!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,u=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,u=f-a.top):(s=a.width/2,u=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=u}}const za=Symbol("linkClicked");function Pi(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...g}=Fp(t),[y,h]=c.useState(!1),v=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:S}=Ci(),C=be((w,M)=>{let B=v.current;if(a||B.didFirePressStart)return!1;let R=!0;if(B.isTriggeringEvent=!0,r){let U=new wr("pressstart",M,w);r(U),R=U.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,h(!0),R}),P=be((w,M,B=!0)=>{let R=v.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let U=!0;if(i){let x=new wr("pressend",M,w);i(x),U=x.shouldStopPropagation}if(n&&n(!1),h(!1),e&&B&&!a){let x=new wr("press",M,w);e(x),U&&(U=x.shouldStopPropagation)}return R.isTriggeringEvent=!1,U}),$=be((w,M)=>{let B=v.current;if(a)return!1;if(o){B.isTriggeringEvent=!0;let R=new wr("pressup",M,w);return o(R),B.isTriggeringEvent=!1,R.shouldStopPropagation}return!0}),E=be(w=>{let M=v.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&P(Qt(M.target,w),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,S(),f||eo(M.target);for(let B of M.disposables)B();M.disposables=[]}}),T=be(w=>{d&&E(w)}),L=be(w=>{l==null||l(w)}),z=be((w,M)=>{if(l){let B=new MouseEvent("click",w);Ec(B,M),l(zl(B))}}),A=c.useMemo(()=>{let w=v.current,M={onKeyDown(R){if(to(R.nativeEvent,R.currentTarget)&&he(R.currentTarget,se(R.nativeEvent))){var U;Ua(se(R.nativeEvent),R.key)&&R.preventDefault();let x=!0;if(!w.isPressed&&!R.repeat){w.target=R.currentTarget,w.isPressed=!0,w.pointerType="keyboard",x=C(R,"keyboard");let N=R.currentTarget,I=G=>{to(G,N)&&!G.repeat&&he(N,se(G))&&w.target&&$(Qt(w.target,G),"keyboard")};m(ce(R.currentTarget),"keyup",At(I,B),!0)}x&&R.stopPropagation(),R.metaKey&&Et()&&((U=w.metaKeyEvents)===null||U===void 0||U.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(R){if(!(R&&!he(R.currentTarget,se(R.nativeEvent)))&&R&&R.button===0&&!w.isTriggeringEvent&&!Kt.isOpening){let U=!0;if(a&&R.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||Vo(R.nativeEvent))){let x=C(R,"virtual"),N=$(R,"virtual"),I=P(R,"virtual");L(R),U=x&&N&&I}else if(w.isPressed&&w.pointerType!=="keyboard"){let x=w.pointerType||R.nativeEvent.pointerType||"virtual";U=P(Qt(R.currentTarget,R),x,!0),w.isOverTarget=!1,L(R),E(R)}w.ignoreEmulatedMouseEvents=!1,U&&R.stopPropagation()}}},B=R=>{var U;if(w.isPressed&&w.target&&to(R,w.target)){var x;Ua(se(R),R.key)&&R.preventDefault();let I=se(R),G=he(w.target,se(R));P(Qt(w.target,R),"keyboard",G),G&&z(R,w.target),S(),R.key!=="Enter"&&Bl(w.target)&&he(w.target,I)&&!R[za]&&(R[za]=!0,Kt(w.target,R,!1)),w.isPressed=!1,(x=w.metaKeyEvents)===null||x===void 0||x.delete(R.key)}else if(R.key==="Meta"&&(!((U=w.metaKeyEvents)===null||U===void 0)&&U.size)){var N;let I=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let G of I.values())(N=w.target)===null||N===void 0||N.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){M.onPointerDown=x=>{if(x.button!==0||!he(x.currentTarget,se(x.nativeEvent)))return;if(ep(x.nativeEvent)){w.pointerType="virtual";return}w.pointerType=x.pointerType;let N=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=x.pointerId,w.target=x.currentTarget,f||Ha(w.target),N=C(x,w.pointerType);let I=se(x.nativeEvent);"releasePointerCapture"in I&&I.releasePointerCapture(x.pointerId),m(ce(x.currentTarget),"pointerup",R,!1),m(ce(x.currentTarget),"pointercancel",U,!1)}N&&x.stopPropagation()},M.onMouseDown=x=>{if(he(x.currentTarget,se(x.nativeEvent))&&x.button===0){if(u){let N=ja(x.target);N&&w.disposables.push(N)}x.stopPropagation()}},M.onPointerUp=x=>{!he(x.currentTarget,se(x.nativeEvent))||w.pointerType==="virtual"||x.button===0&&$(x,w.pointerType||x.pointerType)},M.onPointerEnter=x=>{x.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,C(Qt(w.target,x),w.pointerType))},M.onPointerLeave=x=>{x.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,P(Qt(w.target,x),w.pointerType,!1),T(x))};let R=x=>{if(x.pointerId===w.activePointerId&&w.isPressed&&x.button===0&&w.target){if(he(w.target,se(x))&&w.pointerType!=null){let N=!1,I=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(N?E(x):(Ze(w.target),w.target.click()))},80);m(x.currentTarget,"click",()=>N=!0,!0),w.disposables.push(()=>clearTimeout(I))}else E(x);w.isOverTarget=!1}},U=x=>{E(x)};M.onDragStart=x=>{he(x.currentTarget,se(x.nativeEvent))&&E(x)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=x=>{if(x.button!==0||!he(x.currentTarget,se(x.nativeEvent)))return;if(w.ignoreEmulatedMouseEvents){x.stopPropagation();return}if(w.isPressed=!0,w.isOverTarget=!0,w.target=x.currentTarget,w.pointerType=Vo(x.nativeEvent)?"virtual":"mouse",Wt.flushSync(()=>C(x,w.pointerType))&&x.stopPropagation(),u){let I=ja(x.target);I&&w.disposables.push(I)}m(ce(x.currentTarget),"mouseup",R,!1)},M.onMouseEnter=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;let N=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!0,N=C(x,w.pointerType)),N&&x.stopPropagation()},M.onMouseLeave=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;let N=!0;w.isPressed&&!w.ignoreEmulatedMouseEvents&&w.pointerType!=null&&(w.isOverTarget=!1,N=P(x,w.pointerType,!1),T(x)),N&&x.stopPropagation()},M.onMouseUp=x=>{he(x.currentTarget,se(x.nativeEvent))&&!w.ignoreEmulatedMouseEvents&&x.button===0&&$(x,w.pointerType||"mouse")};let R=x=>{if(x.button===0){if(w.ignoreEmulatedMouseEvents){w.ignoreEmulatedMouseEvents=!1;return}w.target&&w.target.contains(x.target)&&w.pointerType!=null||E(x),w.isOverTarget=!1}};M.onTouchStart=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;let N=jp(x.nativeEvent);if(!N)return;w.activePointerId=N.identifier,w.ignoreEmulatedMouseEvents=!0,w.isOverTarget=!0,w.isPressed=!0,w.target=x.currentTarget,w.pointerType="touch",f||Ha(w.target),C(mt(w.target,x),w.pointerType)&&x.stopPropagation(),m(Re(x.currentTarget),"scroll",U,!0)},M.onTouchMove=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;if(!w.isPressed){x.stopPropagation();return}let N=Va(x.nativeEvent,w.activePointerId),I=!0;N&&Ba(N,x.currentTarget)?!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,I=C(mt(w.target,x),w.pointerType)):w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,I=P(mt(w.target,x),w.pointerType,!1),T(mt(w.target,x))),I&&x.stopPropagation()},M.onTouchEnd=x=>{if(!he(x.currentTarget,se(x.nativeEvent)))return;if(!w.isPressed){x.stopPropagation();return}let N=Va(x.nativeEvent,w.activePointerId),I=!0;N&&Ba(N,x.currentTarget)&&w.pointerType!=null?($(mt(w.target,x),w.pointerType),I=P(mt(w.target,x),w.pointerType),z(x.nativeEvent,w.target)):w.isOverTarget&&w.pointerType!=null&&(I=P(mt(w.target,x),w.pointerType,!1)),I&&x.stopPropagation(),w.isPressed=!1,w.activePointerId=null,w.isOverTarget=!1,w.ignoreEmulatedMouseEvents=!0,w.target&&!f&&eo(w.target),S()},M.onTouchCancel=x=>{he(x.currentTarget,se(x.nativeEvent))&&(x.stopPropagation(),w.isPressed&&E(mt(w.target,x)))};let U=x=>{w.isPressed&&he(se(x),w.target)&&E({currentTarget:w.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=x=>{he(x.currentTarget,se(x.nativeEvent))&&E(x)}}return M},[m,a,u,S,f,E,T,P,C,$,L,z]);return c.useEffect(()=>{let w=p==null?void 0:p.current;w&&w instanceof Re(w).Element&&Re(w).getComputedStyle(w).touchAction==="auto"&&(w.style.touchAction="pan-x pan-y pinch-zoom")},[p]),c.useEffect(()=>{let w=v.current;return()=>{var M;f||eo((M=w.target)!==null&&M!==void 0?M:void 0);for(let B of w.disposables)B();w.disposables=[]}},[f]),{isPressed:s||y,pressProps:le(g,A)}}function Bl(t){return t.tagName==="A"&&t.hasAttribute("href")}function to(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Re(i).HTMLInputElement&&!Pc(i,n)||i instanceof Re(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Bl(i))&&n!=="Enter")}function jp(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Va(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 mt(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 Qt(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 Hp(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 zp(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Ba(t,e){let n=e.getBoundingClientRect(),r=Hp(t);return zp(n,r)}function Vp(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Bl(t)}function Ua(t,e){return t instanceof HTMLInputElement?!Pc(t,e):Vp(t)}const Bp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Pc(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Bp.has(t.type)}let Gt=null,Go=new Set,nr=new Map,Ft=!1,qo=!1;const Up={Tab:!0,Escape:!0};function Di(t,e){for(let n of Go)n(t,e)}function Wp(t){return!(t.metaKey||!Et()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function ti(t){Ft=!0,Wp(t)&&(Gt="keyboard",Di("keyboard",t))}function He(t){Gt="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(Ft=!0,Di("pointer",t))}function Dc(t){Vo(t)&&(Ft=!0,Gt="virtual")}function Tc(t){t.target===window||t.target===document||ei||!t.isTrusted||(!Ft&&!qo&&(Gt="virtual",Di("virtual",t)),Ft=!1,qo=!1)}function _c(){ei||(Ft=!1,qo=!0)}function Yo(t){if(typeof window>"u"||nr.get(Re(t)))return;const e=Re(t),n=ce(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ft=!0,r.apply(this,arguments)},n.addEventListener("keydown",ti,!0),n.addEventListener("keyup",ti,!0),n.addEventListener("click",Dc,!0),e.addEventListener("focus",Tc,!0),e.addEventListener("blur",_c,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",He,!0),n.addEventListener("pointermove",He,!0),n.addEventListener("pointerup",He,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",He,!0),n.addEventListener("mousemove",He,!0),n.addEventListener("mouseup",He,!0)),e.addEventListener("beforeunload",()=>{Ic(t)},{once:!0}),nr.set(e,{focus:r})}const Ic=(t,e)=>{const n=Re(t),r=ce(t);e&&r.removeEventListener("DOMContentLoaded",e),nr.has(n)&&(n.HTMLElement.prototype.focus=nr.get(n).focus,r.removeEventListener("keydown",ti,!0),r.removeEventListener("keyup",ti,!0),r.removeEventListener("click",Dc,!0),n.removeEventListener("focus",Tc,!0),n.removeEventListener("blur",_c,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",He,!0),r.removeEventListener("pointermove",He,!0),r.removeEventListener("pointerup",He,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",He,!0),r.removeEventListener("mousemove",He,!0),r.removeEventListener("mouseup",He,!0)),nr.delete(n))};function Gp(t){const e=ce(t);let n;return e.readyState!=="loading"?Yo(t):(n=()=>{Yo(t)},e.addEventListener("DOMContentLoaded",n)),()=>Ic(t,n)}typeof document<"u"&&Gp();function Tn(){return Gt!=="pointer"}function ni(){return Gt}function Oc(t){Gt=t,Di(t,null)}const qp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Yp(t,e,n){let r=ce(n==null?void 0:n.target);const i=typeof window<"u"?Re(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Re(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Re(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Re(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||r.activeElement instanceof i&&!qp.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof a&&!Up[n.key])}function Zp(t,e,n){Yo(),c.useEffect(()=>{let r=(i,o)=>{Yp(!!(n!=null&&n.isTextInput),i,o)&&t(Tn())};return Go.add(r),()=>{Go.delete(r)}},e)}function _n(t){const e=ce(t),n=_e(e);if(ni()==="virtual"){let r=n;hc(()=>{_e(e)===r&&t.isConnected&&Ze(t)})}else Ze(t)}function Ul(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=c.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),l=$c(o),a=c.useCallback(s=>{const u=ce(s.target),d=u?_e(u):_e();s.target===s.currentTarget&&d===se(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 Wa(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 kc(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Wa(t.onKeyDown),onKeyUp:Wa(t.onKeyUp)}}}let Xp=c.createContext(null);function Jp(t){let e=c.useContext(Xp)||{};pc(e,t);let{ref:n,...r}=e;return r}function Nc(t,e){let{focusProps:n}=Ul(t),{keyboardProps:r}=kc(t),i=le(n,r),o=Jp(e),l=t.isDisabled?{}:o,a=c.useRef(t.autoFocus);c.useEffect(()=>{a.current&&e.current&&_n(e.current),a.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:le({...i,tabIndex:s},l)}}function Qp({children:t}){let e=c.useMemo(()=>({register:()=>{}}),[]);return c.createElement(Vl.Provider,{value:e},t)}function Ti(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=c.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=Ci(),s=c.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]),u=$c(s),d=c.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=ce(f.target),g=_e(p);if(!o.current.isFocusWithin&&g===se(f.nativeEvent)){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,u(f);let y=f.currentTarget;l(p,"focus",h=>{if(o.current.isFocusWithin&&!he(y,h.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:h.target});Ec(v,y);let m=zl(v);s(m)}},{capture:!0})}},[r,i,u,l,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let ri=!1,no=0;function Zo(){ri=!0,setTimeout(()=>{ri=!1},50)}function Ga(t){t.pointerType==="touch"&&Zo()}function eg(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Ga):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Zo),no++,()=>{no--,!(no>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ga):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Zo))}}function Mn(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(eg,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Ci(),{hoverProps:d,triggerHoverEnd:f}=c.useMemo(()=>{let p=(h,v)=>{if(a.pointerType=v,i||v==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let m=h.currentTarget;a.target=m,s(ce(h.target),"pointerover",S=>{a.isHovered&&a.target&&!he(a.target,S.target)&&g(S,S.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:m,pointerType:v}),n&&n(!0),l(!0)},g=(h,v)=>{let m=a.target;a.pointerType="",a.target=null,!(v==="touch"||!a.isHovered||!m)&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:m,pointerType:v}),n&&n(!1),l(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=h=>{ri&&h.pointerType==="mouse"||p(h,h.pointerType)},y.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,h.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!ri&&p(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&g(h,"mouse")}),{hoverProps:y,triggerHoverEnd:g}},[e,n,r,i,a,s,u]);return c.useEffect(()=>{i&&f({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:d,isHovered:o}}function tg(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=be(s=>{n&&xr(s,e)&&(i&&i(s),o.current.isPointerDown=!0)}),a=be(s=>{n&&n(s)});c.useEffect(()=>{let s=o.current;if(r)return;const u=e.current,d=ce(u);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&xr(p,e)&&a(p),s.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("pointerup",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&xr(g,e)&&a(g),s.isPointerDown=!1},p=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&xr(g,e)&&a(g),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 xr(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 ng=500;function Rc(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=ng,accessibilityDescription:l}=t;const a=c.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:u}=Ci(),{pressProps:d}=Pi({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})),ce(p.target).activeElement!==p.target&&Ze(p.target),i&&i({...p,type:"longpress"}),a.current=void 0},o),p.pointerType==="touch")){let g=y=>{y.preventDefault()};s(p.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Qh(i&&!e?l:void 0);return{longPressProps:le(d,f)}}const rg=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ig=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function og(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 rg.has(n.script)}let e=t.split("-")[0];return ig.has(e)}const lg=Symbol.for("react-aria.i18n.locale");function Mc(){let t=typeof window<"u"&&window[lg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:og(t)?"rtl":"ltr"}}let Xo=Mc(),Zn=new Set;function qa(){Xo=Mc();for(let t of Zn)t(Xo)}function ag(){let t=Dl(),[e,n]=c.useState(Xo);return c.useEffect(()=>(Zn.size===0&&window.addEventListener("languagechange",qa),Zn.add(n),()=>{Zn.delete(n),Zn.size===0&&window.removeEventListener("languagechange",qa)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const sg=c.createContext(null);function qt(){let t=ag();return c.useContext(sg)||t}var nt=function(){return nt=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},nt.apply(this,arguments)};function Lc(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 ug(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 cg=Symbol.for("react-aria.i18n.locale"),dg=Symbol.for("react-aria.i18n.strings");let en;class _i{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=fg(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[cg];if(en===void 0){let i=window[dg];if(!i)return null;en={};for(let o in i)en[o]=new _i({[n]:i[o]},n)}let r=en==null?void 0:en[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 fg(t,e,n="en-US"){if(e[t])return e[t];let r=hg(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function hg(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const Ya=new Map,Za=new Map;class pg{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=Ya.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),Ya.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=Za.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Za.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 Xa=new WeakMap;function gg(t){let e=Xa.get(t);return e||(e=new _i(t),Xa.set(t,e)),e}function vg(t,e){return e&&_i.getGlobalDictionaryForPackage(e)||gg(t)}function Ac(t,e){let{locale:n}=qt(),r=vg(t,e);return c.useMemo(()=>new pg(n,r),[n,r])}let ro=new Map;function Wl(t){let{locale:e}=qt(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(ro.has(n))return ro.get(n);let r=new Intl.Collator(e,t);return ro.set(n,r),r}function mg(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:p,target:g,rel:y,type:h="button"}=t,v;n==="button"?v={type:h,disabled:r}:v={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?g: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:m,isPressed:S}=Pi({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:u,ref:e}),{focusableProps:C}=Nc(t,e);d&&(C.tabIndex=r?-1:C.tabIndex);let P=le(C,m,Se(t,{labelable:!0}));return{isPressed:S,buttonProps:le(v,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"]})}}const Kc=7e3;let Qe=null;function Ja(t,e="assertive",n=Kc){Qe?Qe.announce(t,e,n):(Qe=new yg,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Qe.announce(t,e,n):setTimeout(()=>{Qe!=null&&Qe.isAttached()&&(Qe==null||Qe.announce(t,e,n))},100))}class yg{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=Kc){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))}}function bg(t,e,n){let{validationBehavior:r,focus:i}=t;ue(()=>{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(Cg(n.current))}});let o=be(()=>{e.resetValidation()}),l=be(s=>{var u;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!s.defaultPrevented&&n&&d&&wg(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),Oc("keyboard")}s.preventDefault()}),a=be(()=>{e.commitValidation()});c.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let u=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),u==null||u.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),u==null||u.removeEventListener("reset",o)}},[n,l,a,o,r])}function Sg(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 Cg(t){return{isInvalid:!t.validity.valid,validationDetails:Sg(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function wg(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function Fc(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Ie(e);let l=Ie(),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=wi({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function xg(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=Fc(t),a=Nt([!!e,!!n,r,i]),s=Nt([!!e,!!n,r,i]);return l=le(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const Qa={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 jc(t={}){let{style:e,isFocusable:n}=t,[r,i]=c.useState(!1),{focusWithinProps:o}=Ti({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=c.useMemo(()=>r?e:e?{...Qa,...e}:Qa,[r]);return{visuallyHiddenProps:{...o,style:l}}}function Eg(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=jc(t);return c.createElement(n,le(o,l),e)}const rt={top:"top",bottom:"top",left:"left",right:"left"},ii={top:"bottom",bottom:"top",left:"right",right:"left"},$g={top:"left",left:"top"},Jo={top:"height",left:"width"},Hc={width:"totalWidth",height:"totalHeight"},Er={};let Ce=typeof document<"u"?window.visualViewport:null;function es(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let u=((s=Ce==null?void 0:Ce.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=Ce==null?void 0:Ce.width)!==null&&d!==void 0?d:r;var f;n=(f=Ce==null?void 0:Ce.height)!==null&&f!==void 0?f:i,a.top=y.scrollTop||t.scrollTop,a.left=y.scrollLeft||t.scrollLeft,Ce&&(o=Ce.offsetTop,l=Ce.offsetLeft)}else({width:e,height:n,top:o,left:l}=xn(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(Il()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u){a.top=0,a.left=0;var p;o=(p=Ce==null?void 0:Ce.pageTop)!==null&&p!==void 0?p:0;var g;l=(g=Ce==null?void 0:Ce.pageLeft)!==null&&g!==void 0?g:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function Pg(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function ts(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,u=r[Jo[t]],d=r.scroll[rt[t]]+o,f=u+r.scroll[rt[t]]-o,p=e-s+l[t]-r[rt[t]],g=e-s+n+l[t]-r[rt[t]];return p<d?d-p:g>f?Math.max(f-g,d-p):0}function Dg(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 ns(t){if(Er[t])return Er[t];let[e,n]=t.split(" "),r=rt[e]||"right",i=$g[r];rt[n]||(n="center");let o=Jo[r],l=Jo[i];return Er[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},Er[t]}function io(t,e,n,r,i,o,l,a,s,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:g,size:y,crossSize:h}=r,v={};var m;v[g]=(m=t[g])!==null&&m!==void 0?m:0;var S,C,P,$;f==="center"?v[g]+=(((S=t[h])!==null&&S!==void 0?S:0)-((C=n[h])!==null&&C!==void 0?C:0))/2:f!==g&&(v[g]+=((P=t[h])!==null&&P!==void 0?P:0)-(($=n[h])!==null&&$!==void 0?$:0)),v[g]+=o;const E=t[g]-n[h]+s+u,T=t[g]+t[h]-s-u;if(v[g]=Bo(v[g],E,T),d===p){const L=a?l[y]:e[Hc[y]];v[ii[p]]=Math.floor(L-t[p]+i)}else v[p]=Math.floor(t[p]+t[y]+i);return v}function Tg(t,e,n,r,i,o,l,a){const s=r?n.height:e[Hc.height];var u;let d=t.top!=null?n.top+t.top:n.top+(s-((u=t.bottom)!==null&&u!==void 0?u:0)-l);var f,p,g,y,h,v;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)+((g=i.bottom)!==null&&g!==void 0?g: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)+((v=i.bottom)!==null&&v!==void 0?v:0)+o));return Math.min(e.height-o*2,m)}function rs(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var u,d;if(l===a)return Math.max(0,n[a]-t[a]-((u=t.scroll[a])!==null&&u!==void 0?u:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[ii[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[ii[a]]-i)}function _g(t,e,n,r,i,o,l,a,s,u,d,f,p,g,y,h){let v=ns(t),{size:m,crossAxis:S,crossSize:C,placement:P,crossPlacement:$}=v,E=io(e,a,n,v,d,f,u,p,y,h),T=d,L=rs(a,u,e,i,o+d,v);if(l&&r[m]>L){let F=ns(`${ii[P]} ${$}`),K=io(e,a,n,F,d,f,u,p,y,h);rs(a,u,e,i,o+d,F)>L&&(v=F,E=K,T=d)}let z="bottom";v.axis==="top"?v.placement==="top"?z="top":v.placement==="bottom"&&(z="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?z="bottom":v.crossPlacement==="bottom"&&(z="top"));let A=ts(S,E[S],n[C],a,s,o,u);E[S]+=A;let w=Tg(E,a,u,p,i,o,n.height,z);g&&g<w&&(w=g),n.height=Math.min(n.height,w),E=io(e,a,n,v,T,f,u,p,y,h),A=ts(S,E[S],n[C],a,s,o,u),E[S]+=A;let M={},B=e[S]+.5*e[C]-E[S]-i[rt[S]];const R=y/2+h;var U,x,N,I;const G=rt[S]==="left"?((U=i.left)!==null&&U!==void 0?U:0)+((x=i.right)!==null&&x!==void 0?x:0):((N=i.top)!==null&&N!==void 0?N:0)+((I=i.bottom)!==null&&I!==void 0?I:0),H=n[C]-G-y/2-h,j=e[S]+y/2-(E[S]+i[rt[S]]),O=e[S]+e[C]-y/2-(E[S]+i[rt[S]]),k=Bo(B,j,O);return M[S]=Bo(k,R,H),{position:E,maxHeight:w,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:v.placement}}function Ig(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,g=r instanceof HTMLElement?Og(r):document.documentElement,y=g===document.documentElement;const h=window.getComputedStyle(g).position;let v=!!h&&h!=="static",m=y?xn(n):is(n,g);if(!y){let{marginTop:M,marginLeft:B}=window.getComputedStyle(n);m.top+=parseInt(M,10)||0,m.left+=parseInt(B,10)||0}let S=xn(r),C=Dg(r);var P,$;S.width+=((P=C.left)!==null&&P!==void 0?P:0)+(($=C.right)!==null&&$!==void 0?$:0);var E,T;S.height+=((E=C.top)!==null&&E!==void 0?E:0)+((T=C.bottom)!==null&&T!==void 0?T:0);let L=Pg(i),z=es(a),A=es(g),w=a.tagName==="BODY"?xn(g):is(g,a);return g.tagName==="HTML"&&a.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),_g(e,m,S,L,C,o,l,z,A,w,s,u,v,d,f,p)}function xn(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 is(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=xn(t);let i=xn(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 Og(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!os(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!os(e);)e=e.parentElement;return e||document.documentElement}function os(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 zc=new WeakMap;function kg(t){let{triggerRef:e,isOpen:n,onClose:r}=t;c.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||zc.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let ve=typeof document<"u"?window.visualViewport:null;function Ng(t){let{direction:e}=qt(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:y,maxHeight:h,arrowBoundaryOffset:v=0}=t,[m,S]=c.useState(null),C=[p,l,i.current,r.current,o.current,a,s,u,d,f,g,e,h,v,n],P=c.useRef(ve==null?void 0:ve.scale);c.useEffect(()=>{g&&(P.current=ve==null?void 0:ve.scale)},[g]);let $=c.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!u||(ve==null?void 0:ve.scale)!==P.current)return;let A=null;if(o.current&&o.current.contains(document.activeElement)){var w;let I=(w=document.activeElement)===null||w===void 0?void 0:w.getBoundingClientRect(),G=o.current.getBoundingClientRect();var M;if(A={type:"top",offset:((M=I==null?void 0:I.top)!==null&&M!==void 0?M:0)-G.top},A.offset>G.height/2){A.type="bottom";var B;A.offset=((B=I==null?void 0:I.bottom)!==null&&B!==void 0?B:0)-G.bottom}}let R=i.current;if(!h&&i.current){var U;R.style.top="0px",R.style.bottom="";var x;R.style.maxHeight=((x=(U=window.visualViewport)===null||U===void 0?void 0:U.height)!==null&&x!==void 0?x:window.innerHeight)+"px"}let N=Ig({placement:Mg(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:u,offset:d,crossOffset:f,maxHeight:h,arrowSize:n,arrowBoundaryOffset:v});if(N.position){if(R.style.top="",R.style.bottom="",R.style.left="",R.style.right="",Object.keys(N.position).forEach(I=>R.style[I]=N.position[I]+"px"),R.style.maxHeight=N.maxHeight!=null?N.maxHeight+"px":"",A&&document.activeElement&&o.current){let I=document.activeElement.getBoundingClientRect(),G=o.current.getBoundingClientRect(),H=I[A.type]-G[A.type];o.current.scrollTop+=H-A.offset}S(N)}},C);ue($,C),Rg($),zo({ref:i,onResize:$}),zo({ref:r,onResize:$});let E=c.useRef(!1);ue(()=>{let A,w=()=>{E.current=!0,clearTimeout(A),A=setTimeout(()=>{E.current=!1},500),$()},M=()=>{E.current&&w()};return ve==null||ve.addEventListener("resize",w),ve==null||ve.addEventListener("scroll",M),()=>{ve==null||ve.removeEventListener("resize",w),ve==null||ve.removeEventListener("scroll",M)}},[$]);let T=c.useCallback(()=>{E.current||y==null||y()},[y,E]);kg({triggerRef:r,isOpen:g,onClose:y&&T});var L,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...m==null?void 0:m.position,maxHeight:(L=m==null?void 0:m.maxHeight)!==null&&L!==void 0?L:"100vh"}},placement:(z=m==null?void 0:m.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m==null?void 0:m.arrowOffsetLeft,top:m==null?void 0:m.arrowOffsetTop}},updatePosition:$}}function Rg(t){ue(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Mg(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Lg(t){const e=Re(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 Ag(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 Vc(t,e){return t.nodeName!=="#comment"&&Lg(t)&&Ag(t,e)&&(!t.parentElement||Vc(t.parentElement,t))}const ls=c.createContext(null),Qo="react-aria-focus-scope-restore";let de=null;function Gl(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=c.useRef(null),l=c.useRef(null),a=c.useRef([]),{parentNode:s}=c.useContext(ls)||{},u=c.useMemo(()=>new tl({scopeRef:a}),[a]);ue(()=>{let p=s||ye.root;if(ye.getTreeNode(p.scopeRef)&&de&&!oi(de,p.scopeRef)){let g=ye.getTreeNode(de);g&&(p=g)}p.addChild(u),ye.addNode(u)},[u,s]),ue(()=>{let p=ye.getTreeNode(a);p&&(p.contain=!!n)},[n]),ue(()=>{var p;let g=(p=o.current)===null||p===void 0?void 0:p.nextSibling,y=[],h=v=>v.stopPropagation();for(;g&&g!==l.current;)y.push(g),g.addEventListener(Qo,h),g=g.nextSibling;return a.current=y,()=>{for(let v of y)v.removeEventListener(Qo,h)}},[e]),zg(a,r,n),Fg(a,n),Vg(a,r,n),Hg(a,i),c.useEffect(()=>{const p=_e(ce(a.current?a.current[0]:void 0));let g=null;if(Ue(p,a.current)){for(let y of ye.traverse())y.scopeRef&&Ue(p,y.scopeRef.current)&&(g=y);g===ye.getTreeNode(a)&&(de=g.scopeRef)}},[a]),ue(()=>()=>{var p,g,y;let h=(y=(g=ye.getTreeNode(a))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(a===de||oi(a,de))&&(!h||ye.getTreeNode(h))&&(de=h),ye.removeTreeNode(a)},[a]);let d=c.useMemo(()=>Kg(a),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return c.createElement(ls.Provider,{value:f},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Kg(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||_e(ce((a=n[0])!==null&&a!==void 0?a:void 0)),u=n[0].previousElementSibling,d=Ot(n),f=it(d,{tabbable:i,accept:l},n);f.currentNode=Ue(s,n)?s:u;let p=f.nextNode();return!p&&o&&(f.currentNode=u,p=f.nextNode()),p&&ct(p,!0),p},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||_e(ce((a=n[0])!==null&&a!==void 0?a:void 0)),u=n[n.length-1].nextElementSibling,d=Ot(n),f=it(d,{tabbable:i,accept:l},n);f.currentNode=Ue(s,n)?s:u;let p=f.previousNode();return!p&&o&&(f.currentNode=u,p=f.previousNode()),p&&ct(p,!0),p},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ot(n),l=it(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&ct(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ot(n),l=it(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&ct(a,!0),a}}}function Ot(t){return t[0].parentElement}function Xn(t){let e=ye.getTreeNode(de);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Fg(t,e){let n=c.useRef(void 0),r=c.useRef(void 0);ue(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=ce(i?i[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Xn(t)||u.isComposing)return;let d=_e(o),f=t.current;if(!f||!Ue(d,f))return;let p=Ot(f),g=it(p,{tabbable:!0},f);if(!d)return;g.currentNode=d;let y=u.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),y&&ct(y,!0)},a=u=>{(!de||oi(de,t))&&Ue(se(u),t.current)?(de=t,n.current=se(u)):Xn(t)&&!wt(se(u),t)?n.current?n.current.focus():de&&de.current&&el(de.current):Xn(t)&&(n.current=se(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=ni(),f=(d==="virtual"||d===null)&&Ol()&&fc(),p=_e(o);if(!f&&p&&Xn(t)&&!wt(p,t)){de=t;let y=se(u);if(y&&y.isConnected){var g;n.current=y,(g=n.current)===null||g===void 0||g.focus()}else de.current&&el(de.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",s,!1))}},[t,e]),ue(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Bc(t){return wt(t)}function Ue(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function wt(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ye.traverse(ye.getTreeNode(e)))if(n&&Ue(t,n.current))return!0;return!1}function jg(t){return wt(t,de)}function oi(t,e){var n;let r=(n=ye.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function ct(t,e=!1){if(t!=null&&!e)try{_n(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Uc(t,e=!0){let n=t[0].previousElementSibling,r=Ot(t),i=it(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ot(t),i=it(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function el(t,e=!0){ct(Uc(t,e))}function Hg(t,e){const n=c.useRef(e);c.useEffect(()=>{if(n.current){de=t;const r=ce(t.current?t.current[0]:void 0);!Ue(_e(r),de.current)&&t.current&&el(t.current)}n.current=!1},[t])}function zg(t,e,n){ue(()=>{if(e||n)return;let r=t.current;const i=ce(r?r[0]:void 0);let o=l=>{let a=se(l);Ue(a,t.current)?de=t:Bc(a)||(de=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 as(t){let e=ye.getTreeNode(de);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Vg(t,e,n){const r=c.useRef(typeof document<"u"?_e(ce(t.current?t.current[0]:void 0)):null);ue(()=>{let i=t.current;const o=ce(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!de||oi(de,t))&&Ue(_e(o),t.current)&&(de=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]),ue(()=>{const i=ce(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Xn(t)||l.isComposing)return;let a=i.activeElement;if(!wt(a,t)||!as(t))return;let s=ye.getTreeNode(t);if(!s)return;let u=s.nodeToRestore,d=it(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===i.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!wt(f,t))&&u){d.currentNode=u;do f=l.shiftKey?d.previousNode():d.nextNode();while(wt(f,t));l.preventDefault(),l.stopPropagation(),f?ct(f,!0):Bc(u)?ct(u,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),ue(()=>{const i=ce(t.current?t.current[0]:void 0);if(!e)return;let o=ye.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=ye.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,u=_e(i);if(e&&s&&(u&&wt(u,t)||u===i.body&&as(t))){let d=ye.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){ss(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&ye.getTreeNode(f.scopeRef)){let p=Uc(f.scopeRef.current,!0);ss(p);return}f=f.parent}}})}}}},[t,e])}function ss(t){t.dispatchEvent(new CustomEvent(Qo,{bubbles:!0,cancelable:!0}))&&ct(t)}function it(t,e,n){let r=e!=null&&e.tabbable?up:yc,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=ce(i),l=Lh(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)&&Vc(a)&&(!n||Ue(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 ql{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 tl({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&&Ue(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 ql;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 tl({scopeRef:null}),this.fastMap.set(null,this.root)}}class tl{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 ye=new ql;function Ln(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=c.useRef({isFocused:!1,isFocusVisible:e||Tn()}),[o,l]=c.useState(!1),[a,s]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=c.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=c.useCallback(g=>{i.current.isFocused=g,l(g),u()},[u]);Zp(g=>{i.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=Ul({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Ti({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}function Bg(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=c.useState(!1);return ue(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=it(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 Wc(t){let e=Gg(ce(t));e!==t&&(e&&Ug(e,t),t&&Wg(t,e))}function Ug(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Wg(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Gg(t){let e=_e(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const et=[];function qg(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;c.useEffect(()=>{if(i&&!et.includes(e))return et.push(e),()=>{let y=et.indexOf(e);y>=0&&et.splice(y,1)}},[i,e]);let s=()=>{et[et.length-1]===e&&n&&n()},u=y=>{(!a||a(y.target))&&et[et.length-1]===e&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!a||a(y.target))&&(et[et.length-1]===e&&(y.stopPropagation(),y.preventDefault()),s())},f=y=>{y.key==="Escape"&&!l&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};tg({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Ti({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||jg(y.relatedTarget)||(!a||a(y.relatedTarget))&&(n==null||n())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:g}}}function Yg(t,e,n){let{type:r}=t,{isOpen:i}=e;c.useEffect(()=>{n&&n.current&&zc.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=Ie();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const oo=typeof document<"u"&&window.visualViewport,Zg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let $r=0,lo;function Xg(t={}){let{isDisabled:e}=t;ue(()=>{if(!e)return $r++,$r===1&&(bi()?lo=Qg():lo=Jg()),()=>{$r--,$r===0&&lo()}},[e])}function Jg(){return At(yn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),yn(document.documentElement,"overflow","hidden"))}function Qg(){let t,e,n=u=>{t=gc(u.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=yn(t,"overscrollBehavior","contain"))},r=u=>{if(!t||t===document.documentElement||t===document.body){u.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&u.preventDefault()},i=()=>{e&&e()},o=u=>{let d=u.target;e5(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",oo&&(oo.height<window.innerHeight?requestAnimationFrame(()=>{us(d)}):oo.addEventListener("resize",()=>us(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=At(zn(window,"scroll",u),yn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),yn(document.documentElement,"overflow","hidden"),yn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=At(zn(document,"touchstart",n,{passive:!1,capture:!0}),zn(document,"touchmove",r,{passive:!1,capture:!0}),zn(document,"touchend",i,{passive:!1,capture:!0}),zn(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function yn(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function zn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function us(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=gc(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 e5(t){return t instanceof HTMLInputElement&&!Zg.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const t5=c.createContext({});function n5(){var t;return(t=c.useContext(t5))!==null&&t!==void 0?t:{}}var Gc={};Gc={dismiss:"تجاهل"};var qc={};qc={dismiss:"Отхвърляне"};var Yc={};Yc={dismiss:"Odstranit"};var Zc={};Zc={dismiss:"Luk"};var Xc={};Xc={dismiss:"Schließen"};var Jc={};Jc={dismiss:"Απόρριψη"};var Qc={};Qc={dismiss:"Dismiss"};var ed={};ed={dismiss:"Descartar"};var td={};td={dismiss:"Lõpeta"};var nd={};nd={dismiss:"Hylkää"};var rd={};rd={dismiss:"Rejeter"};var id={};id={dismiss:"התעלם"};var od={};od={dismiss:"Odbaci"};var ld={};ld={dismiss:"Elutasítás"};var ad={};ad={dismiss:"Ignora"};var sd={};sd={dismiss:"閉じる"};var ud={};ud={dismiss:"무시"};var cd={};cd={dismiss:"Atmesti"};var dd={};dd={dismiss:"Nerādīt"};var fd={};fd={dismiss:"Lukk"};var hd={};hd={dismiss:"Negeren"};var pd={};pd={dismiss:"Zignoruj"};var gd={};gd={dismiss:"Descartar"};var vd={};vd={dismiss:"Dispensar"};var md={};md={dismiss:"Revocare"};var yd={};yd={dismiss:"Пропустить"};var bd={};bd={dismiss:"Zrušiť"};var Sd={};Sd={dismiss:"Opusti"};var Cd={};Cd={dismiss:"Odbaci"};var wd={};wd={dismiss:"Avvisa"};var xd={};xd={dismiss:"Kapat"};var Ed={};Ed={dismiss:"Скасувати"};var $d={};$d={dismiss:"取消"};var Pd={};Pd={dismiss:"關閉"};var Dd={};Dd={"ar-AE":Gc,"bg-BG":qc,"cs-CZ":Yc,"da-DK":Zc,"de-DE":Xc,"el-GR":Jc,"en-US":Qc,"es-ES":ed,"et-EE":td,"fi-FI":nd,"fr-FR":rd,"he-IL":id,"hr-HR":od,"hu-HU":ld,"it-IT":ad,"ja-JP":sd,"ko-KR":ud,"lt-LT":cd,"lv-LV":dd,"nb-NO":fd,"nl-NL":hd,"pl-PL":pd,"pt-BR":gd,"pt-PT":vd,"ro-RO":md,"ru-RU":yd,"sk-SK":bd,"sl-SI":Sd,"sr-SP":Cd,"sv-SE":wd,"tr-TR":xd,"uk-UA":Ed,"zh-CN":$d,"zh-TW":Pd};function r5(t){return t&&t.__esModule?t.default:t}function cs(t){let{onDismiss:e,...n}=t,r=Ac(r5(Dd),"@react-aria/overlays"),i=wi(n,r.format("dismiss")),o=()=>{e&&e()};return c.createElement(Eg,null,c.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let Vn=new WeakMap,ke=[];function i5(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 u=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(p.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(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 u;let d=(u=Vn.get(s))!==null&&u!==void 0?u:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),Vn.set(s,d+1))};ke.length&&ke[ke.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let u of s)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of u.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 ke.push(a),()=>{l.disconnect();for(let s of r){let u=Vn.get(s);u!=null&&(u===1?(s.removeAttribute("aria-hidden"),Vn.delete(s)):Vn.set(s,u-1))}a===ke[ke.length-1]?(ke.pop(),ke.length&&ke[ke.length-1].observe()):ke.splice(ke.indexOf(a),1)}}function o5(t){let e=ke[ke.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,u=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=qg({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:p,arrowProps:g,placement:y}=Ng({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!u?e.close:null});return Xg({isDisabled:o||!e.isOpen}),ue(()=>{if(e.isOpen&&r.current){var h,v;return o?o5((h=i==null?void 0:i.current)!==null&&h!==void 0?h:r.current):i5([(v=i==null?void 0:i.current)!==null&&v!==void 0?v:r.current])}},[o,e.isOpen,r,i]),{popoverProps:le(d,p),arrowProps:g,underlayProps:f,placement:y}}const a5=c.createContext(null);function ds(t){let e=Dl(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=c.useState(!1),l=c.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=n5();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=c.createElement(Gl,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=c.createElement(a5.Provider,{value:l},c.createElement(Qp,null,s)),Wt.createPortal(s,n)}const Yl=new WeakMap;function s5(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function u5(t,e){let n=Yl.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${s5(e)}`}function nl(t){return Uh()?t.altKey:t.ctrlKey}function Kr(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 Td=new WeakMap;function c5(t){let e=Ie();return Td.set(t,e),e}function d5(t){return Td.get(t)}const f5=1e3;function _d(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let a=h5(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=""},f5)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function h5(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Id(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:g,scrollRef:y=r,linkBehavior:h="action"}=t,{direction:v}=qt(),m=Si(),S=x=>{var N;if(x.altKey&&x.key==="Tab"&&x.preventDefault(),!(!((N=r.current)===null||N===void 0)&&N.contains(x.target)))return;const I=(q,fe)=>{if(q!=null){if(e.isLink(q)&&h==="selection"&&u&&!nl(x)){Wt.flushSync(()=>{e.setFocusedKey(q,fe)});let re=Kr(r,q),me=e.getItemProps(q);re&&m.open(re,x,me.href,me.routerOptions);return}if(e.setFocusedKey(q,fe),e.isLink(q)&&h==="override")return;x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&!nl(x)&&e.replaceSelection(q)}};switch(x.key){case"ArrowDown":if(n.getKeyBelow){var G,H,j;let q=e.focusedKey!=null?(G=n.getKeyBelow)===null||G===void 0?void 0:G.call(n,e.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);q==null&&o&&(q=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q))}break;case"ArrowUp":if(n.getKeyAbove){var O,k,F;let q=e.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,e.focusedKey):(k=n.getLastKey)===null||k===void 0?void 0:k.call(n);q==null&&o&&(q=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q))}break;case"ArrowLeft":if(n.getKeyLeftOf){var K,V,W;let q=e.focusedKey!=null?(K=n.getKeyLeftOf)===null||K===void 0?void 0:K.call(n,e.focusedKey):null;q==null&&o&&(q=v==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,e.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var X,Q,oe;let q=e.focusedKey!=null?(X=n.getKeyRightOf)===null||X===void 0?void 0:X.call(n,e.focusedKey):null;q==null&&o&&(q=v==="rtl"?(Q=n.getLastKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey):(oe=n.getFirstKey)===null||oe===void 0?void 0:oe.call(n,e.focusedKey)),q!=null&&(x.preventDefault(),I(q,v==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&x.shiftKey)return;x.preventDefault();let q=n.getFirstKey(e.focusedKey,pn(x));e.setFocusedKey(q),q!=null&&(pn(x)&&x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&e.replaceSelection(q))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&x.shiftKey)return;x.preventDefault();let q=n.getLastKey(e.focusedKey,pn(x));e.setFocusedKey(q),q!=null&&(pn(x)&&x.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&e.replaceSelection(q))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let q=n.getKeyPageBelow(e.focusedKey);q!=null&&(x.preventDefault(),I(q))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let q=n.getKeyPageAbove(e.focusedKey);q!=null&&(x.preventDefault(),I(q))}break;case"a":pn(x)&&e.selectionMode==="multiple"&&a!==!0&&(x.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(x.stopPropagation(),x.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(x.shiftKey)r.current.focus();else{let q=it(r.current,{tabbable:!0}),fe,re;do re=q.lastChild(),re&&(fe=re);while(re);fe&&!fe.contains(document.activeElement)&&Ze(fe)}break}}},C=c.useRef({top:0,left:0});br(y,"scroll",g?void 0:()=>{var x,N,I,G;C.current={top:(I=(x=y.current)===null||x===void 0?void 0:x.scrollTop)!==null&&I!==void 0?I:0,left:(G=(N=y.current)===null||N===void 0?void 0:N.scrollLeft)!==null&&G!==void 0?G:0}});let P=x=>{if(e.isFocused){x.currentTarget.contains(x.target)||e.setFocused(!1);return}if(x.currentTarget.contains(x.target)){if(e.setFocused(!0),e.focusedKey==null){var N,I;let j=k=>{k!=null&&(e.setFocusedKey(k),u&&!e.isSelected(k)&&e.replaceSelection(k))},O=x.relatedTarget;var G,H;O&&x.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?j((G=e.lastSelectedKey)!==null&&G!==void 0?G:(N=n.getLastKey)===null||N===void 0?void 0:N.call(n)):j((H=e.firstSelectedKey)!==null&&H!==void 0?H:(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n))}else!g&&y.current&&(y.current.scrollTop=C.current.top,y.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&y.current){let j=Kr(r,e.focusedKey);j instanceof HTMLElement&&(!j.contains(document.activeElement)&&!f&&Ze(j),ni()==="keyboard"&&ka(j,{containingElement:r.current}))}}},$=x=>{x.currentTarget.contains(x.relatedTarget)||e.setFocused(!1)},E=c.useRef(!1);br(r,ip,f?x=>{let{detail:N}=x;x.stopPropagation(),e.setFocused(!0),(N==null?void 0:N.focusStrategy)==="first"&&(E.current=!0)}:void 0);let T=be(()=>{var x,N;let I=(N=(x=n.getFirstKey)===null||x===void 0?void 0:x.call(n))!==null&&N!==void 0?N:null;I==null?(Wc(r.current),e.collection.size>0&&(E.current=!1)):(e.setFocusedKey(I),E.current=!1)});Ia(()=>{E.current&&T()},[e.collection,T]);let L=be(()=>{e.collection.size>0&&(E.current=!1)});Ia(()=>{L()},[e.focusedKey,L]),br(r,rp,f?x=>{var N;x.stopPropagation(),e.setFocused(!1),!((N=x.detail)===null||N===void 0)&&N.clearFocusKey&&e.setFocusedKey(null)}:void 0);const z=c.useRef(i),A=c.useRef(!1);c.useEffect(()=>{if(z.current){var x,N;let H=null;var I;i==="first"&&(H=(I=(x=n.getFirstKey)===null||x===void 0?void 0:x.call(n))!==null&&I!==void 0?I:null);var G;i==="last"&&(H=(G=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n))!==null&&G!==void 0?G:null);let j=e.selectedKeys;if(j.size){for(let O of j)if(e.canSelectItem(O)){H=O;break}}e.setFocused(!0),e.setFocusedKey(H),H==null&&!f&&r.current&&_n(r.current),e.collection.size>0&&(z.current=!1,A.current=!0)}});let w=c.useRef(e.focusedKey);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==w.current||A.current)&&y.current&&r.current){let x=ni(),N=Kr(r,e.focusedKey);if(!(N instanceof HTMLElement))return;(x==="keyboard"||A.current)&&(vc(y.current,N),x!=="virtual"&&ka(N,{containingElement:r.current}))}!f&&e.isFocused&&e.focusedKey==null&&w.current!=null&&r.current&&_n(r.current),w.current=e.focusedKey,A.current=!1}),br(r,"react-aria-focus-scope-restore",x=>{x.preventDefault(),e.setFocused(!0)});let M={onKeyDown:S,onFocus:P,onBlur:$,onMouseDown(x){y.current===x.target&&x.preventDefault()}},{typeSelectProps:B}=_d({keyboardDelegate:n,selectionManager:e});d||(M=le(B,M));let R;f||(R=e.focusedKey==null?0:-1);let U=c5(e.collection);return{collectionProps:le(M,{tabIndex:R,"data-collection":U})}}function Zl(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=Si();e=Ie(e);let g=I=>{if(I.pointerType==="keyboard"&&nl(I))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let G=n.getItemProps(r);p.open(i.current,I,G.href,G.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):I&&I.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||I&&(pn(I)||I.pointerType==="touch"||I.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Wc(i.current):a?a():document.activeElement!==i.current&&i.current&&_n(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(I){I.target===i.current&&n.setFocusedKey(r)}}:s&&(y.onMouseDown=I=>{I.preventDefault()});let h=n.isLink(r)&&f==="override",v=n.isLink(r)&&f!=="selection"&&f!=="none",m=!s&&n.canSelectItem(r)&&!h,S=(u||v)&&!s,C=S&&(n.selectionBehavior==="replace"?!m:!m||n.isEmpty),P=S&&m&&n.selectionBehavior==="replace",$=C||P,E=c.useRef(null),T=$&&m,L=c.useRef(!1),z=c.useRef(!1),A=I=>{if(u&&u(),v&&i.current){let G=n.getItemProps(r);p.open(i.current,I,G.href,G.routerOptions)}},w={ref:i};o?(w.onPressStart=I=>{E.current=I.pointerType,L.current=T,I.pointerType==="keyboard"&&(!$||hs())&&g(I)},d?(w.onPressUp=C?void 0:I=>{I.pointerType==="mouse"&&m&&g(I)},w.onPress=C?A:I=>{I.pointerType!=="keyboard"&&I.pointerType!=="mouse"&&m&&g(I)}):w.onPress=I=>{if(C||P&&I.pointerType!=="mouse"){if(I.pointerType==="keyboard"&&!fs())return;A(I)}else I.pointerType!=="keyboard"&&m&&g(I)}):(w.onPressStart=I=>{E.current=I.pointerType,L.current=T,z.current=C,m&&(I.pointerType==="mouse"&&!C||I.pointerType==="keyboard"&&(!S||hs()))&&g(I)},w.onPress=I=>{(I.pointerType==="touch"||I.pointerType==="pen"||I.pointerType==="virtual"||I.pointerType==="keyboard"&&$&&fs()||I.pointerType==="mouse"&&z.current)&&($?A(I):m&&g(I))}),y["data-collection"]=d5(n.collection),y["data-key"]=r,w.preventFocusOnPress=l,l&&(w=le(w,{onPressStart(I){I.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(I){I.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:M,isPressed:B}=Pi(w),R=P?I=>{E.current==="mouse"&&(I.stopPropagation(),I.preventDefault(),A(I))}:void 0,{longPressProps:U}=Rc({isDisabled:!T,onLongPress(I){I.pointerType==="touch"&&(g(I),n.setSelectionBehavior("toggle"))}}),x=I=>{E.current==="touch"&&L.current&&I.preventDefault()},N=n.isLink(r)?I=>{Kt.isOpening||I.preventDefault()}:void 0;return{itemProps:le(y,m||C||l?M:{},T?U:{},{onDoubleClick:R,onDragStartCapture:x,onClick:N,id:e},l?{onMouseDown:I=>I.preventDefault()}:void 0),isPressed:B,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:m,hasAction:$}}function fs(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function hs(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class ps{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?Kr(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 Xl{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&&!or(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&&!or(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 ps(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 ps(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Od(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=Wl({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,u=c.useMemo(()=>o||new Xl({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=Id({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:d}}function p5(t,e,n){let r=Se(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=Od({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=Ti({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Ie(t.id);Yl.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:u,fieldProps:d}=Fc({...t,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:le(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...le(d,l)})}}function kd(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function g5(t){return v5(t)}function v5(t,e){for(let n of t)return n}function ao(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...gs(t,e),e],i=[...gs(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 gs(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 vs=new WeakMap;function Nd(t){let e=vs.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(kd(o,t)):n++};return r(t),vs.set(t,n),n}function m5(t,e,n){var r,i;let{key:o}=t,l=Yl.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var u;let d=(u=t.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(o);var f;let p=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var g;let y=(g=t.shouldFocusOnHover)!==null&&g!==void 0?g:l==null?void 0:l.shouldFocusOnHover;var h;let v=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:l==null?void 0:l.shouldUseVirtualFocus;var m;let S=(m=t.isVirtualized)!==null&&m!==void 0?m:l==null?void 0:l.isVirtualized,C=Nt(),P=Nt(),$={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};Et()&&Il()||($["aria-label"]=t["aria-label"],$["aria-labelledby"]=C,$["aria-describedby"]=P);let E=e.collection.getItem(o);if(S){let N=Number(E==null?void 0:E.index);$["aria-posinset"]=Number.isNaN(N)?void 0:N+1,$["aria-setsize"]=Nd(e.collection)}let T=l!=null&&l.onAction?()=>{var N;return l==null||(N=l.onAction)===null||N===void 0?void 0:N.call(l,o)}:void 0,L=u5(e,o),{itemProps:z,isPressed:A,isFocused:w,hasAction:M,allowsSelection:B}=Zl({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&y,isVirtualized:S,shouldUseVirtualFocus:v,isDisabled:s,onAction:T||!(E==null||(r=E.props)===null||r===void 0)&&r.onAction?At(E==null||(i=E.props)===null||i===void 0?void 0:i.onAction,T):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:L}),{hoverProps:R}=Mn({isDisabled:s||!y,onHoverStart(){Tn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),U=Se(E==null?void 0:E.props);delete U.id;let x=kl(E==null?void 0:E.props);return{optionProps:{...$,...le(U,z,R,x),id:L},labelProps:{id:C},descriptionProps:{id:P},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&Tn(),isSelected:d,isDisabled:s,isPressed:A,allowsSelection:B,hasAction:M}}function y5(t){let{heading:e,"aria-label":n}=t,r=Ie();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var Rd={};Rd={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Md={};Md={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Ld={};Ld={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Ad={};Ad={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Kd={};Kd={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Fd={};Fd={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var jd={};jd={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Hd={};Hd={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var zd={};zd={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Vd={};Vd={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Bd={};Bd={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Ud={};Ud={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Wd={};Wd={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Gd={};Gd={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var qd={};qd={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Yd={};Yd={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Zd={};Zd={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Xd={};Xd={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Jd={};Jd={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Qd={};Qd={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var ef={};ef={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var tf={};tf={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var nf={};nf={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var rf={};rf={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var of={};of={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var lf={};lf={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var af={};af={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var sf={};sf={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var uf={};uf={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var cf={};cf={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var df={};df={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ff={};ff={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var hf={};hf={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var pf={};pf={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var gf={};gf={"ar-AE":Rd,"bg-BG":Md,"cs-CZ":Ld,"da-DK":Ad,"de-DE":Kd,"el-GR":Fd,"en-US":jd,"es-ES":Hd,"et-EE":zd,"fi-FI":Vd,"fr-FR":Bd,"he-IL":Ud,"hr-HR":Wd,"hu-HU":Gd,"it-IT":qd,"ja-JP":Yd,"ko-KR":Zd,"lt-LT":Xd,"lv-LV":Jd,"nb-NO":Qd,"nl-NL":ef,"pl-PL":tf,"pt-BR":nf,"pt-PT":rf,"ro-RO":of,"ru-RU":lf,"sk-SK":af,"sl-SI":sf,"sr-SP":uf,"sv-SE":cf,"tr-TR":df,"uk-UA":ff,"zh-CN":hf,"zh-TW":pf};function b5(t){return t&&t.__esModule?t.default:t}function S5(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=Ie(),{triggerProps:a,overlayProps:s}=Yg({type:r},e,n),u=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),e.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},d=Ac(b5(gf),"@react-aria/menu"),{longPressProps:f}=Rc({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&(Ze(g.target),e.open(g.pointerType==="virtual"?"first":null))},onPress(g){g.pointerType==="touch"&&!i&&(Ze(g.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?p:f,id:l,onKeyDown:u},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const vf=new WeakMap;function C5(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=Se(t,{labelable:!0}),{listProps:s}=Od({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return vf.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:le(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:u=>{var d;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,u))}})}}function w5(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:p,onHoverStart:g,onHoverChange:y,onHoverEnd:h,onKeyDown:v,onKeyUp:m,onFocus:S,onFocusChange:C,onBlur:P,selectionManager:$=e.selectionManager}=t,E=!!a,T=E&&t["aria-expanded"]==="true";var L;let z=(L=t.isDisabled)!==null&&L!==void 0?L:$.isDisabled(i);var A;let w=(A=t.isSelected)!==null&&A!==void 0?A:$.isSelected(i),M=vf.get(e),B=e.collection.getItem(i),R=t.onClose||M.onClose,U=Si(),x=ie=>{var Je;if(!E){if(!(B==null||(Je=B.props)===null||Je===void 0)&&Je.onAction?B.props.onAction():t.onAction&&t.onAction(i),M.onAction){let gt=M.onAction;gt(i)}ie.target instanceof HTMLAnchorElement&&B&&U.open(ie.target,ie,B.props.href,B.props.routerOptions)}},N="menuitem";E||($.selectionMode==="single"?N="menuitemradio":$.selectionMode==="multiple"&&(N="menuitemcheckbox"));let I=Nt(),G=Nt(),H=Nt(),j={id:r,"aria-disabled":z||void 0,role:N,"aria-label":t["aria-label"],"aria-labelledby":I,"aria-describedby":[G,H].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};$.selectionMode!=="none"&&!E&&(j["aria-checked"]=w),l&&(j["aria-posinset"]=B==null?void 0:B.index,j["aria-setsize"]=Nd(e.collection));let O=ie=>{ie.pointerType==="keyboard"&&x(ie),s==null||s(ie)},k=()=>{!E&&R&&(o??($.selectionMode!=="multiple"||$.isLink(i)))&&R()},F=ie=>{ie.pointerType==="mouse"&&(x(ie),k()),u==null||u(ie)},K=ie=>{ie.pointerType!=="keyboard"&&ie.pointerType!=="mouse"&&(x(ie),k()),d==null||d(ie)},{itemProps:V,isFocused:W}=Zl({id:r,selectionManager:$,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:M.shouldUseVirtualFocus}),{pressProps:X,isPressed:Q}=Pi({onPressStart:O,onPress:K,onPressUp:F,onPressChange:f,onPressEnd:p,isDisabled:z}),{hoverProps:oe}=Mn({isDisabled:z,onHoverStart(ie){!Tn()&&!(T&&a)&&($.setFocused(!0),$.setFocusedKey(i)),g==null||g(ie)},onHoverChange:y,onHoverEnd:h}),{keyboardProps:q}=kc({onKeyDown:ie=>{if(ie.repeat){ie.continuePropagation();return}switch(ie.key){case" ":!z&&$.selectionMode==="none"&&!E&&o!==!1&&R&&R();break;case"Enter":!z&&o!==!1&&!E&&R&&R();break;default:E||ie.continuePropagation(),v==null||v(ie);break}},onKeyUp:m}),{focusProps:fe}=Ul({onBlur:P,onFocus:S,onFocusChange:C}),re=Se(B==null?void 0:B.props);delete re.id;let me=kl(B==null?void 0:B.props);return{menuItemProps:{...j,...le(re,me,E?{onFocus:V.onFocus,"data-collection":V["data-collection"],"data-key":V["data-key"]}:V,X,oe,q,fe,M.shouldUseVirtualFocus||E?{onMouseDown:ie=>ie.preventDefault()}:void 0),tabIndex:V.tabIndex!=null&&T&&!M.shouldUseVirtualFocus?-1:V.tabIndex},labelProps:{id:I},descriptionProps:{id:G},keyboardShortcutProps:{id:H},isFocused:W,isFocusVisible:W&&$.isFocused&&Tn()&&!T,isSelected:w,isPressed:Q,isDisabled:z}}function x5(t){let{heading:e,"aria-label":n}=t,r=Ie();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const mf=new WeakMap;function E5(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=Wl({usage:"search",sensitivity:"base"}),u=c.useMemo(()=>r||new Xl(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:d,menuProps:f}=S5({isDisabled:i,type:"listbox"},e,n),p=L=>{switch(L.key){case"ArrowLeft":{var z,A;L.preventDefault();let B=e.selectedKey!=null?(z=u.getKeyAbove)===null||z===void 0?void 0:z.call(u,e.selectedKey):(A=u.getFirstKey)===null||A===void 0?void 0:A.call(u);B&&e.setSelectedKey(B);break}case"ArrowRight":{var w,M;L.preventDefault();let B=e.selectedKey!=null?(w=u.getKeyBelow)===null||w===void 0?void 0:w.call(u,e.selectedKey):(M=u.getFirstKey)===null||M===void 0?void 0:M.call(u);B&&e.setSelectedKey(B);break}}},{typeSelectProps:g}=_d({keyboardDelegate:u,selectionManager:e.selectionManager,onTypeSelect(L){e.setSelectedKey(L)}}),{isInvalid:y,validationErrors:h,validationDetails:v}=e.displayValidation,{labelProps:m,fieldProps:S,descriptionProps:C,errorMessageProps:P}=xg({...t,labelElementType:"span",isInvalid:y,errorMessage:t.errorMessage||h});g.onKeyDown=g.onKeyDownCapture,delete g.onKeyDownCapture;let $=Se(t,{labelable:!0}),E=le(g,d,S),T=Ie();return mf.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...m,onClick:()=>{if(!t.isDisabled){var L;(L=n.current)===null||L===void 0||L.focus(),Oc("keyboard")}}},triggerProps:le($,{...E,isDisabled:i,onKeyDown:At(E.onKeyDown,p,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[T,E["aria-labelledby"],E["aria-label"]&&!E["aria-labelledby"]?E.id:null].filter(Boolean).join(" "),onFocus(L){e.isFocused||(t.onFocus&&t.onFocus(L),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(L){e.isOpen||(t.onBlur&&t.onBlur(L),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:T},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:L=>{L.currentTarget.contains(L.relatedTarget)||(t.onBlur&&t.onBlur(L),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[S["aria-labelledby"],E["aria-label"]&&!S["aria-labelledby"]?E.id:null].filter(Boolean).join(" ")},descriptionProps:C,errorMessageProps:P,isInvalid:y,validationErrors:h,validationDetails:v}}function $5(t,e,n){let r=mf.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:u}=jc();tp(t.selectRef,e.selectedKey,e.setSelectedKey),bg({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...u,"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 P5(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=c.useRef(null),{containerProps:a,selectProps:s}=$5({...t,selectRef:l},e,n);var u;return e.collection.size<=300?c.createElement("div",{...a,"data-testid":"hidden-select-container"},c.createElement("label",null,r,c.createElement("select",{...s,ref:l},c.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return c.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?c.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(u=e.selectedKey)!==null&&u!==void 0?u:""}):null}function D5(t){let e=Se(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const yf=new WeakMap;function li(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${yf.get(t)}-${n}-${e}`):""}function T5(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,u=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=Zl({selectionManager:l,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=li(e,r,"tab"),g=li(e,r,"tabpanel"),{tabIndex:y}=d,h=e.collection.getItem(r),v=Se(h==null?void 0:h.props,{labelable:!0});delete v.id;let m=kl(h==null?void 0:h.props),{focusableProps:S}=Nc({isDisabled:u},n);return{tabProps:le(v,S,m,d,{id:p,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?g:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:s,isDisabled:u,isPressed:f}}function _5(t,e,n){let r=Bg(n)?void 0:0;var i;const o=li(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=wi({...t,id:o,"aria-labelledby":li(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:le(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class I5{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 O5(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=qt(),u=c.useMemo(()=>new I5(o,s,r,a),[o,a,r,s]),{collectionProps:d}=Id({ref:n,selectionManager:l,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ie();yf.set(e,f);let p=wi({...t,id:f});return{tabListProps:{...le(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const bf=c.createContext({}),k5=Kl(function(e,n){[e,n]=pt(e,n,bf);let{elementType:r="label",...i}=e;return c.createElement(r,{className:"react-aria-Label",...i,ref:n})}),N5=c.createContext(null),R5=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Sf=c.createContext({}),M5=Kl(function(e,n){[e,n]=pt(e,n,Sf),e=L5(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=mg(e,n),{focusProps:a,isFocused:s,isFocusVisible:u}=Ln(e),{hoverProps:d,isHovered:f}=Mn({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:i??!1},g=Le({...e,values:p,defaultClassName:"react-aria-Button"}),y=Ie(o.id),h=Ie(),v=o["aria-labelledby"];i&&(v?v=`${v} ${h}`:o["aria-label"]&&(v=`${y} ${h}`));let m=c.useRef(i);return c.useEffect(()=>{let S={"aria-labelledby":v||y};(!m.current&&s&&i||m.current&&s&&!i)&&Ja(S,"assertive"),m.current=i},[i,s,v,y]),c.createElement("button",{...Se(e,{propNames:R5}),...le(o,a,d),...g,type:o.type==="submit"&&i?"button":o.type,id:y,ref:n,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},c.createElement(N5.Provider,{value:{id:h}},g.children))});function L5(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 Jl=c.createContext({}),A5=c.createContext(null);function Ii(t,e,n){let[r,i]=c.useState(t||e),o=c.useRef(t!==void 0),l=t!==void 0;c.useEffect(()=>{let u=o.current;u!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let a=l?t:r,s=c.useCallback((u,...d)=>{let f=(p,...g)=>{n&&(Object.is(a,p)||n(p,...g)),l||(a=p)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let h=u(l?a:g,...y);return f(h,...d),l?g:h})):(l||i(u),f(u,...d))},[l,a,n]);return[a,s]}const Cf={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},wf={...Cf,customError:!0,valid:!1},Bn={isInvalid:!1,validationDetails:Cf,validationErrors:[]},K5=c.createContext({}),ms="__formValidationState"+Date.now();function F5(t){if(t[ms]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[ms];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return j5(t)}function j5(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:wf}:null,u=c.useMemo(()=>{if(!l||i==null)return null;let A=H5(l,i);return ys(A)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=c.useContext(K5),f=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(A=>rl(d[A])):rl(d[r]):[],[d,r]),[p,g]=c.useState(d),[y,h]=c.useState(!1);d!==p&&(g(d),h(!1));let v=c.useMemo(()=>ys(y?[]:f),[y,f]),m=c.useRef(Bn),[S,C]=c.useState(Bn),P=c.useRef(Bn),$=()=>{if(!E)return;T(!1);let A=u||o||m.current;so(A,P.current)||(P.current=A,C(A))},[E,T]=c.useState(!1);return c.useEffect($),{realtimeValidation:s||v||u||o||Bn,displayValidation:a==="native"?s||v||S:s||v||u||o||S,updateValidation(A){a==="aria"&&!so(S,A)?C(A):m.current=A},resetValidation(){let A=Bn;so(A,P.current)||(P.current=A,C(A)),a==="native"&&T(!1),h(!0)},commitValidation(){a==="native"&&T(!0),h(!0)}}}function rl(t){return t?Array.isArray(t)?t:[t]:[]}function H5(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return rl(n)}return[]}function ys(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:wf}:null}function so(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)}class z5{build(e,n){return this.context=n,bs(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(c.isValidElement(n)&&n.type===c.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=[];c.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(c.isValidElement(e.element)&&e.element.type===c.Fragment){let v=[];c.Children.forEach(e.element.props.children,S=>{v.push(S)});var o;let m=(o=e.index)!==null&&o!==void 0?o:0;for(const S of v)yield*this.getFullNode({element:S,index:m++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=i?i.key:null,yield v;return}l=n.renderer(e.value)}if(c.isValidElement(l)){let v=l.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let P=l.type;throw new Error(`Unknown element <${P}> in collection.`)}let m=v.getCollectionNode(l.props,this.context);var a;let S=(a=e.index)!==null&&a!==void 0?a:0,C=m.next();for(;!C.done&&C.value;){let P=C.value;e.index=S;var s;let $=(s=P.key)!==null&&s!==void 0?s:null;$==null&&($=P.element?null:this.getKey(l,e,n,r));let T=[...this.getFullNode({...P,key:$,index:S,wrapper:V5(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${l.key}`:l.key,i)];for(let L of T){var u,d;L.value=(d=(u=P.value)!==null&&u!==void 0?u:e.value)!==null&&d!==void 0?d:null,L.value&&this.cache.set(L.value,L);var f;if(e.type&&L.type!==e.type)throw new Error(`Unsupported type <${uo(L.type)}> in <${uo((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${uo(e.type)}> is supported.`);S++,yield L}C=m.next(T)}return}if(e.key==null||e.type==null)return;let p=this;var g,y;let h={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(y=e.textValue)!==null&&y!==void 0?y:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:bs(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let m of e.childNodes()){m.key!=null&&(m.key=`${h.key}${m.key}`);let S=p.getFullNode({...m,index:v},p.getChildState(n,m),h.key,h);for(let C of S)v++,yield C}})};yield h}constructor(){this.cache=new WeakMap}}function bs(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 V5(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function uo(t){return t[0].toUpperCase()+t.slice(1)}function xf(t,e,n){let r=c.useMemo(()=>new z5,[]),{children:i,items:o,collection:l}=t;return c.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function B5(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function U5(t){return W5(t)}function W5(t,e){for(let n of t)return n}function co(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...Ss(t,e),e],i=[...Ss(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 Ss(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}class Cs{*[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}}let st=class Ef extends Set{constructor(e,n,r){super(e),e instanceof Ef?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function G5(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function $f(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>ws(t.selectedKeys),[t.selectedKeys]),p=c.useMemo(()=>ws(t.defaultSelectedKeys,new st),[t.defaultSelectedKeys]),[g,y]=Ii(f,p,t.onSelectionChange),h=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,m]=c.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let S=c.useRef(i);return c.useEffect(()=>{i!==S.current&&(m(i),S.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(C){l.current=C,a(C)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(C,P="first"){s.current=C,u.current=P,d(C)},selectedKeys:g,setSelectedKeys(C){(r||!G5(C,g))&&y(C)},disabledKeys:h,disabledBehavior:o}}function ws(t,e){return t?t==="all"?"all":new st(t):e}let Pf=class Df{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&&co(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&&co(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 st([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new st(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?co(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 st(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 st([n],n,n):new st;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new st;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=U5(B5(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 st)}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 Df(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 Tf(t){let{filter:e,layoutDelegate:n}=t,r=$f(t),i=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=c.useCallback(u=>e?new Cs(e(u)):new Cs(u),[e]),l=c.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=xf(t,o,l),s=c.useMemo(()=>new Pf(a,r,{layoutDelegate:n}),[a,r,n]);return _f(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function q5(t,e){let n=c.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return _f(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function _f(t,e){const n=c.useRef(null);c.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 S=n.current.getItem(m);return(S==null?void 0:S.type)==="item"?S:null}).filter(m=>m!==null),p=[...t.getKeys()].map(m=>{const S=t.getItem(m);return(S==null?void 0:S.type)==="item"?S:null}).filter(m=>m!==null);var r,i;const g=((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(g>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-g+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,v=!1;for(;y>=0;){if(!e.isDisabled(p[y].key)){h=p[y];break}if(y<p.length-1&&!v)y++;else{v=!0;var s,u;y>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(y=(u=d==null?void 0:d.index)!==null&&u!==void 0?u:0),y--}}e.setFocusedKey(h?h.key:null)}n.current=t},[t,e])}function If(t){var e;let[n,r]=Ii(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=Tf({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{if(u==="all")return;var d;let f=(d=u.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 Ql(t){let[e,n]=Ii(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),i=c.useCallback(()=>{n(!1)},[n]),o=c.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function Y5(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=h=>{var v;return(v=h.id)!==null&&v!==void 0?v:h.key},getChildren:i=h=>h.children}=t,[o,l]=c.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[u,d]=c.useState(new Set(n||[]));function f(h=[],v,m){return h==null&&(h=[]),{items:h.map(S=>{let C={key:r(S),parentKey:m,value:S,children:null};return C.children=f(i(S),v,C.key).items,v.set(C.key,C),C}),nodeMap:v}}function p(h,v,m,S){let C=S.get(v);if(!C)return{items:h,nodeMap:S};let P=new Map(S),$=m(C);for($==null?y(C,P):g($,P);C&&C.parentKey;){let T=P.get(C.parentKey),L={key:T.key,parentKey:T.parentKey,value:T.value,children:null},z=T.children;$==null&&z&&(z=z.filter(A=>A!==C));var E;L.children=(E=z==null?void 0:z.map(A=>A===C?$:A))!==null&&E!==void 0?E:null,P.set(L.key,L),$=L,C=T}return $==null&&(h=h.filter(T=>T!==C)),{items:h.map(T=>T===C?$:T),nodeMap:P}}function g(h,v){if(v.set(h.key,h),h.children)for(let m of h.children)g(m,v)}function y(h,v){if(v.delete(h.key),h.children)for(let m of h.children)y(m,v)}return{items:a,selectedKeys:u,setSelectedKeys:d,getItem(h){return s.get(h)},insert(h,v,...m){l(({items:S,nodeMap:C})=>{let{items:P,nodeMap:$}=f(m,C,h);return h==null?{items:[...S.slice(0,v),...P,...S.slice(v)],nodeMap:$}:p(S,h,E=>({key:E.key,parentKey:E.parentKey,value:E.value,children:[...E.children.slice(0,v),...P,...E.children.slice(v)]}),$)})},insertBefore(h,...v){let m=s.get(h);if(!m)return;let S=s.get(m.parentKey),P=(S?S.children:a).indexOf(m);var $;this.insert(($=S==null?void 0:S.key)!==null&&$!==void 0?$:null,P,...v)},insertAfter(h,...v){let m=s.get(h);if(!m)return;let S=s.get(m.parentKey),P=(S?S.children:a).indexOf(m);var $;this.insert(($=S==null?void 0:S.key)!==null&&$!==void 0?$:null,P+1,...v)},prepend(h,...v){this.insert(h,0,...v)},append(h,...v){if(h==null)this.insert(null,a.length,...v);else{let m=s.get(h);if(!m)return;this.insert(h,m.children.length,...v)}},remove(...h){if(h.length===0)return;let v=a,m=s,S;for(let P of h)S=p(v,P,()=>null,m),m=S.nodeMap,v=S.items;l(S);let C=new Set(u);for(let P of u)S.nodeMap.has(P)||C.delete(P);d(C)},removeSelectedItems(){this.remove(...u)},move(h,v,m){l(({items:S,nodeMap:C})=>{let P=C.get(h);if(!P)return{items:S,nodeMap:C};let{items:$,nodeMap:E}=p(S,h,()=>null,C);const T={...P,parentKey:v};return v==null?(E.set(T.key,T),{items:[...$.slice(0,m),T,...$.slice(m)],nodeMap:E}):p($,v,L=>({key:L.key,parentKey:L.parentKey,value:L.value,children:[...L.children.slice(0,m),T,...L.children.slice(m)]}),E)})},update(h,v){l(({items:m,nodeMap:S})=>p(m,h,C=>{let P={key:C.key,parentKey:C.parentKey,value:v,children:null},$=f(i(v),S,P.key);return P.children=$.items,P},S))}}}function Z5(t){let e=Ql(t),[n,r]=c.useState(null),[i,o]=c.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(u=null){r(u),e.open()},toggle(u=null){r(u),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(u,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),u])},closeSubmenu:(u,d)=>{o(f=>f[d]===u?f.slice(0,d):f)}}}function X5(t){let e=Ql(t),[n,r]=c.useState(null),i=If({...t,onSelectionChange:s=>{t.onSelectionChange!=null&&t.onSelectionChange(s),e.close(),o.commitValidation()}}),o=F5({...t,value:i.selectedKey}),[l,a]=c.useState(!1);return{...o,...i,...e,focusStrategy:n,open(s=null){i.collection.size!==0&&(r(s),e.open())},toggle(s=null){i.collection.size!==0&&(r(s),e.toggle())},isFocused:l,setFocused:a}}function J5(t){var e,n;let r=If({...t,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:xs(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=c.useRef(l);return c.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=xs(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 xs(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 Q5{*[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 ev(t){let{onExpandedChange:e}=t,[n,r]=Ii(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=$f(t),o=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=xf(t,c.useCallback(s=>new Q5(s,{expandedKeys:n}),[n]),null);return c.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(tv(n,s))},setExpandedKeys:r,selectionManager:new Pf(l,i)}}function tv(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const nv=c.createContext(null),il=c.createContext(null),Of=c.createContext(null),kf={CollectionRoot({collection:t,renderDropIndicator:e}){return Es(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Es(t,e,n)}};function Es(t,e,n){return Sc({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 c.createElement(c.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 Yt=c.createContext(kf);function Nf(t){return c.useMemo(()=>t!=null?new Set([t]):null,[t])}const Oi=c.createContext({}),Rf=c.createContext(null),rv=c.forwardRef(function(e,n){let{render:r}=c.useContext(Rf);return c.createElement(c.Fragment,null,r(e,n))});function Mf(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=c.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):c.createElement(rv,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function iv(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 c.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const Lf=c.createContext({}),ea=c.createContext({}),Af=$i("separator",function(e,n){[e,n]=pt(e,n,ea);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,u=r||"hr";u==="hr"&&i==="vertical"&&(u="div");let{separatorProps:d}=D5({...s,elementType:r,orientation:i});return c.createElement(u,{...Se(e),...d,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),ta=c.createContext(null),fr=c.createContext(null),ov=c.forwardRef(function(e,n){[e,n]=pt(e,n,ta);let r=c.useContext(fr);return r?c.createElement(Kf,{state:r,props:e,listBoxRef:n}):c.createElement(Ei,{content:c.createElement(Hl,e)},i=>c.createElement(lv,{props:e,listBoxRef:n,collection:i}))});function lv({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=c.useContext(Yt),i=Tf({...t,layoutDelegate:r});return c.createElement(Kf,{state:i,props:t,listBoxRef:e})}function Kf({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(il)||{};e=c.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=ht(c.useMemo(()=>Tl(n,o!==void 0?o:null),[o,n]));let u=q5(t,r),{collection:d,selectionManager:f}=u,p=!!(l!=null&&l.useDraggableCollectionState),g=!!(l!=null&&l.useDroppableCollectionState),{direction:y}=qt(),{disabledBehavior:h,disabledKeys:v}=f,m=Wl({usage:"search",sensitivity:"base"}),{isVirtualized:S,layoutDelegate:C,dropTargetDelegate:P,CollectionRoot:$}=c.useContext(Yt),E=c.useMemo(()=>e.keyboardDelegate||new Xl({collection:d,collator:m,ref:n,disabledKeys:v,disabledBehavior:h,layout:a,orientation:s,direction:y,layoutDelegate:C}),[d,m,n,h,v,s,y,e.keyboardDelegate,a,C]),{listBoxProps:T}=p5({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:S},u,n),L=c.useRef(p),z=c.useRef(g);c.useEffect(()=>{process.env.NODE_ENV!=="production"&&(L.current!==p&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),z.current!==g&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,g]);let A,w,M,B=!1,R=null,U=c.useRef(null);if(p&&l){A=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?U:void 0}),l.useDraggableCollection({},A,n);let O=l.DragPreview;R=l.renderDragPreview?c.createElement(O,{ref:U},l.renderDragPreview):null}if(g&&l){w=l.useDroppableCollectionState({collection:d,selectionManager:f});let O=l.dropTargetDelegate||P||new l.ListDropTargetDelegate(d,n,{orientation:s,layout:a,direction:y});M=l.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:O},w,n),B=w.isDropTarget({type:"root"})}let{focusProps:x,isFocused:N,isFocusVisible:I}=Ln(),G={isDropTarget:B,isEmpty:u.collection.size===0,isFocused:N,isFocusVisible:I,layout:e.layout||"stack",state:u},H=Le({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:G}),j=null;return u.collection.size===0&&e.renderEmptyState&&(j=c.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(G))),c.createElement(Gl,null,c.createElement("div",{...Se(e),...le(T,x,M==null?void 0:M.collectionProps),...H,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":B||void 0,"data-empty":u.collection.size===0||void 0,"data-focused":N||void 0,"data-focus-visible":I||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},c.createElement($t,{values:[[ta,e],[fr,u],[Oi,{dragAndDropHooks:l,dragState:A,dropState:w}],[ea,{elementType:"div"}],[Rf,{render:uv}],[Of,{name:"ListBoxSection",render:av}]]},c.createElement($,{collection:d,scrollRef:n,persistedKeys:iv(f,l,w),renderDropIndicator:Mf(l,w)})),j,R))}function av(t,e,n,r="react-aria-ListBoxSection"){let i=c.useContext(fr),{dragAndDropHooks:o,dropState:l}=c.useContext(Oi),{CollectionBranch:a}=c.useContext(Yt),[s,u]=Ml();var d;let{headingProps:f,groupProps:p}=y5({heading:u,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),g=Le({defaultClassName:r,className:t.className,style:t.style,values:{}});return c.createElement("section",{...Se(t),...p,...g,ref:e},c.createElement(Lf.Provider,{value:{...f,ref:s}},c.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:Mf(o,l)})))}const sv=$i("item",function(e,n,r){let i=ht(n),o=c.useContext(fr),{dragAndDropHooks:l,dragState:a,dropState:s}=c.useContext(Oi),{optionProps:u,labelProps:d,descriptionProps:f,...p}=m5({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:g,isHovered:y}=Mn({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 v=null;s&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let m=a&&a.isDragging(r.key),S=Le({...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:m,isDropTarget:v==null?void 0:v.isDropTarget}});c.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 C=e.href?"a":"div";return c.createElement(C,{...le(u,g,h==null?void 0:h.dragProps,v==null?void 0:v.dropProps),...S,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":m||void 0,"data-drop-target":(v==null?void 0:v.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},c.createElement($t,{values:[[Jl,{slots:{[Rl]:d,label:d,description:f}}]]},S.children))});function uv(t,e){e=ht(e);let{dragAndDropHooks:n,dropState:r}=c.useContext(Oi),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:c.createElement(dv,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function cv(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=Le({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return c.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const dv=c.forwardRef(cv),fv=c.createContext({placement:"bottom"}),Ff=c.createContext(null),$s=c.createContext(null),jf=c.forwardRef(function(e,n){[e,n]=pt(e,n,Ff);let r=c.useContext(Hf),i=Ql(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=lp(n,o.isOpen)||e.isExiting||!1,a=pp(),{direction:s}=qt();if(a){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),c.createElement(c.Fragment,null,u)}return o&&!o.isOpen&&!l?null:c.createElement(hv,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function hv({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=c.useRef(null),[o,l]=c.useState(0),a=c.useRef(null),s=c.useContext($s),u=s&&r.trigger==="SubmenuTrigger";ue(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:p,arrowProps:g,placement:y}=l5({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:u?s:a},t),h=r.popoverRef,v=op(h,!!y)||r.isEntering||!1,m=Le({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:y,isEntering:v,isExiting:e}}),S=!r.isNonModal||r.trigger==="SubmenuTrigger",[C,P]=c.useState(!1);ue(()=>{h.current&&P(S&&!h.current.querySelector("[role=dialog]"))},[h,S]),c.useEffect(()=>{C&&h.current&&!h.current.contains(document.activeElement)&&_n(h.current)},[C,h]);let $={...f.style,...m.style},E=c.createElement("div",{...le(Se(r),f),...m,role:C?"dialog":void 0,tabIndex:C?-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":y,"data-entering":v||void 0,"data-exiting":e||void 0},!r.isNonModal&&c.createElement(cs,{onDismiss:t.close}),c.createElement(fv.Provider,{value:{...g,placement:y,ref:i}},m.children),c.createElement(cs,{onDismiss:t.close}));if(!u)return c.createElement(ds,{...r,shouldContainFocus:C,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&c.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),c.createElement("div",{ref:a,style:{display:"contents"}},c.createElement($s.Provider,{value:a},E)));var T;return c.createElement(ds,{...r,shouldContainFocus:C,isExiting:e,portalContainer:(T=n??(s==null?void 0:s.current))!==null&&T!==void 0?T:void 0},E)}const pv=c.createContext({});class qe extends Set{constructor(e,n,r){super(e),e instanceof qe?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function gv(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function vv(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>Ps(t.selectedKeys),[t.selectedKeys]),p=c.useMemo(()=>Ps(t.defaultSelectedKeys,new qe),[t.defaultSelectedKeys]),[g,y]=cp(f,p,t.onSelectionChange),h=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,m]=c.useState(i);i==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let S=c.useRef(i);return c.useEffect(()=>{i!==S.current&&(m(i),S.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:m,get isFocused(){return l.current},setFocused(C){l.current=C,a(C)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(C,P="first"){s.current=C,u.current=P,d(C)},selectedKeys:g,setSelectedKeys(C){(r||!gv(C,g))&&y(C)},disabledKeys:h,disabledBehavior:o}}function Ps(t,e){return t?t==="all"?"all":new qe(t):e}class na{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&&ao(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&&ao(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 qe([n],n,n);else{let l=this.state.selectedKeys;var i;let a=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new qe(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?ao(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 qe(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 qe([n],n,n):new qe;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new qe;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=g5(kd(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 qe)}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 na(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}}const mv=c.createContext(null),ra=c.createContext(null),Ds=c.createContext(null),ai=c.createContext(null),yv=c.createContext(null),bv=c.forwardRef(function(e,n){return[e,n]=pt(e,n,mv),c.createElement(Ei,{content:c.createElement(Hl,e)},r=>c.createElement(Sv,{props:e,collection:r,menuRef:n}))});function Sv({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(il)||{};n=ht(c.useMemo(()=>Tl(n,o!==void 0?o:null),[o,n]));let l=c.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=ev({...t,collection:l,children:void 0}),s=c.useContext(Ds),{isVirtualized:u,CollectionRoot:d}=c.useContext(Yt),{menuProps:f}=C5({...t,...i,isVirtualized:u,onClose:t.onClose||(s==null?void 0:s.close)},a,n),p=Le({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),g=null;return a.collection.size===0&&t.renderEmptyState&&(g=c.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),c.createElement(Gl,null,c.createElement("div",{...Se(t),...f,...p,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},c.createElement($t,{values:[[ra,a],[ea,{elementType:"div"}],[Of,{name:"MenuSection",render:wv}],[yv,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[ol,null],[il,null],[ai,a.selectionManager],[Ds,s??Z5({})]]},c.createElement(d,{collection:a.collection,persistedKeys:Nf(a.selectionManager.focusedKey),scrollRef:n})),g))}class Cv extends na{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 wv(t,e,n,r="react-aria-MenuSection"){var i,o;let l=c.useContext(ra),{CollectionBranch:a}=c.useContext(Yt),[s,u]=Ml();var d;let{headingProps:f,groupProps:p}=x5({heading:u,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),g=Le({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=c.useContext(ai),h=vv(t),v=t.selectionMode!=null?new Cv(y,h):y;return c.createElement("section",{...Se(t),...p,...g,ref:e},c.createElement($t,{values:[[Lf,{...f,ref:s}],[ai,v]]},c.createElement(a,{collection:l.collection,parent:n})))}const ol=c.createContext(null),Ts=$i("item",function(e,n,r){var i;[e,n]=pt(e,n,ol);let o=(i=xi(ol))===null||i===void 0?void 0:i.id,l=c.useContext(ra),a=ht(n),s=c.useContext(ai),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...g}=w5({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:y,isHovered:h}=Mn({isDisabled:g.isDisabled}),v=Le({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...g,isHovered:h,isFocusVisible:g.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),m=e.href?"a":"div";return c.createElement(m,{...le(u,y),...v,ref:a,"data-disabled":g.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":g.isFocused||void 0,"data-focus-visible":g.isFocusVisible||void 0,"data-pressed":g.isPressed||void 0,"data-selected":g.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},c.createElement($t,{values:[[Jl,{slots:{[Rl]:d,label:d,description:f}}],[pv,p]]},v.children))}),Hf=c.createContext(null),zf=c.createContext(null),Vf=c.createContext(null),xv=c.forwardRef(function(e,n){[e,n]=pt(e,n,zf);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=c.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 c.createElement(Ei,{content:a},s=>c.createElement(Ev,{props:e,collection:s,selectRef:n}))});function Ev({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=xi(nv)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=X5({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:u}=Ln({within:!0}),d=c.useRef(null),[f,p]=Ml(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:g,triggerProps:y,valueProps:h,menuProps:v,descriptionProps:m,errorMessageProps:S,...C}=E5({...dp(t),label:p,validationBehavior:l},a,d),[P,$]=c.useState(null),E=c.useCallback(()=>{d.current&&$(d.current.offsetWidth+"px")},[d]);zo({ref:d,onResize:E});let T=c.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:C.isInvalid||!1,isRequired:t.isRequired||!1}),[a.isOpen,a.isFocused,s,t.isDisabled,C.isInvalid,t.isRequired]),L=Le({...t,values:T,defaultClassName:"react-aria-Select"}),z=Se(t);delete z.id;let A=c.useRef(null);return c.createElement($t,{values:[[zf,t],[Vf,a],[$v,h],[bf,{...g,ref:f,elementType:"span"}],[Sf,{...y,ref:d,isPressed:a.isOpen}],[Hf,a],[Ff,{trigger:"Select",triggerRef:d,scrollRef:A,placement:"bottom start",style:{"--trigger-width":P},"aria-labelledby":v["aria-labelledby"]}],[ta,{...v,ref:A}],[fr,a],[Jl,{slots:{description:m,errorMessage:S}}],[A5,C]]},c.createElement("div",{...z,...L,...u,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":C.isInvalid||void 0,"data-required":t.isRequired||void 0}),c.createElement(P5,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const $v=c.createContext(null),ki=c.createContext(null),In=c.createContext(null),Pv=c.forwardRef(function(e,n){[e,n]=pt(e,n,ki);let{children:r,orientation:i="horizontal"}=e;return r=c.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),c.createElement(Ei,{content:r},o=>c.createElement(Dv,{props:e,collection:o,tabsRef:n}))});function Dv({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=J5({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Ln({within:!0}),s=c.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),u=Le({...t,defaultClassName:"react-aria-Tabs",values:s});return c.createElement("div",{...Se(t),...o,...u,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},c.createElement($t,{values:[[ki,t],[In,i]]},u.children))}const Tv=c.forwardRef(function(e,n){return c.useContext(In)?c.createElement(_v,{props:e,forwardedRef:n}):c.createElement(Hl,e)});function _v({props:t,forwardedRef:e}){let n=c.useContext(In),{CollectionRoot:r}=c.useContext(Yt),{orientation:i="horizontal",keyboardActivation:o="automatic"}=xi(ki),l=ht(e),{tabListProps:a}=O5({...t,orientation:i,keyboardActivation:o},n,l),s=Le({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=Se(t);return delete u.id,c.createElement("div",{...u,...a,ref:l,...s,"data-orientation":i||void 0},c.createElement(r,{collection:n.collection,persistedKeys:Nf(n.selectionManager.focusedKey)}))}const Iv=$i("item",(t,e,n)=>{let r=c.useContext(In),i=ht(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=T5({key:n.key,...t},r,i),{focusProps:u,isFocused:d,isFocusVisible:f}=Ln(),{hoverProps:p,isHovered:g}=Mn({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=Le({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:g}}),h=n.props.href?"a":"div";return c.createElement(h,{...le(o,u,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":g||void 0},y.children)}),Ov=Kl(function(e,n){const r=c.useContext(In);let i=ht(n),{tabPanelProps:o}=_5(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=Ln(),u=r.selectedKey===e.id,d=Le({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!u,state:r}});if(!u&&!e.shouldForceMount)return null;let f=Se(e);delete f.id;let p=u?le(f,o,l,d):d;return c.createElement("div",{...p,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:np(!u),"data-inert":u?void 0:"true"},c.createElement($t,{values:[[ki,null],[In,null]]},c.createElement(Yt.Provider,{value:kf},d.children)))}),hr=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=c.useId(),u=f=>{n==null||n(f)},d=c.useRef(null);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"c__dropdown-menu-trigger",ref:d,id:s,onClick:f=>{f.stopPropagation(),f.preventDefault()},children:r}),b.jsx(jf,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:u,children:b.jsxs(bv,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&b.jsx(Ts,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:b.jsxs(c.Fragment,{children:[b.jsxs(Ts,{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),u(!1)},isDisabled:f.isDisabled,children:[f.icon,b.jsx("div",{className:"c__dropdown-menu-item__label","aria-label":f.label,children:f.label}),(f.isChecked||f.value&&i.includes(f.value))&&b.jsx("span",{className:"material-icons checked",children:"check"})]},f.label),f.showSeparator&&b.jsx(Af,{})]},f.label))]})})]})},On=()=>{const[t,e]=c.useState(!1);return{isOpen:t,setIsOpen:e}},_s="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",kv="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",Nv=()=>{const{t}=pe.useCunningham();return b.jsxs("footer",{className:"c__footer",children:[b.jsx("div",{className:"c__footer__stripe"}),b.jsxs("div",{className:"c__footer__content",children:[b.jsxs("div",{className:"c__footer__content__top",children:[b.jsx("div",{children:b.jsx("div",{className:"c__footer__content__top__logo",children:b.jsx("img",{className:"c__footer__logo",alt:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:kv})})}),b.jsx("div",{className:"c__footer__content__top__links",children:[{label:"legifrance.gouv.fr",href:"https://legifrance.gouv.fr/"},{label:"info.gouv.fr",href:"https://info.gouv.fr/"},{label:"service-public.fr",href:"https://service-public.fr/"},{label:"data.gouv.fr",href:"https://data.gouv.fr/"}].map(({label:e,href:n})=>b.jsxs("a",{href:n,target:"_blank",children:[b.jsx("span",{children:e}),b.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:_s})]},e))})]}),b.jsx("div",{className:"c__footer__content__middle",children:[{label:t("components.footer.links.legal"),href:"/legal-notice"},{label:t("components.footer.links.personal_data"),href:"/personal-data-cookies"},{label:t("components.footer.links.accessibility"),href:"/accessibility"}].map(({label:e,href:n})=>b.jsx("a",{href:n,children:b.jsx("span",{children:e})},e))}),b.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",b.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[b.jsx("span",{children:t("components.footer.license")}),b.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:_s})]})]})]})]})},Rv=t=>b.jsx(xv,{...t,className:"c__filter",children:b.jsx(Mv,{...t})}),Mv=t=>{const e=c.useContext(Vf),n=e!=null&&e.selectedItem?t.options.find(r=>{var i;return r.value===((i=e.selectedItem)==null?void 0:i.key)}):null;return b.jsxs(b.Fragment,{children:[b.jsxs(M5,{className:Me("c__filter__button",{"c__filter__button--active":!!n}),children:[b.jsx(k5,{className:"c__filter__label",children:n?b.jsxs(b.Fragment,{children:[t.label," : ",n.label]}):b.jsx(b.Fragment,{children:t.label})}),b.jsx("span",{"aria-hidden":"true",className:Me("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),b.jsx(jf,{className:"c__dropdown-menu",children:b.jsx(ov,{children:t.options.map(r=>b.jsxs(c.Fragment,{children:[b.jsx(sv,{id:r.value,className:"c__dropdown-menu-item",children:b.jsxs("div",{className:"c__filter__item",children:[r.render?r.render():r.label,(t.selectedKey===r.value||r.isChecked)&&b.jsx("span",{className:"material-icons checked",children:"check"})]})},r.value),r.showSeparator&&b.jsx(Af,{})]},r.value))})})]})},Lv=({logo:t,mainButton:e,banner:n,title:r,subtitle:i})=>b.jsx("div",{className:"c__hero",children:b.jsxs("div",{className:"c__hero__display",children:[b.jsxs("div",{className:"c__hero__display__captions",children:[t,b.jsx("h2",{children:r}),b.jsx("span",{children:i}),e||b.jsx(sc,{})]}),b.jsx("img",{src:n,alt:""})]})}),Av=({children:t})=>b.jsx("div",{className:"c__home-gutter",children:t}),Bf=(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:Bf(t[i],r.slice(1),n)},Kv={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},Fv={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"}},jv={label:"Les services de La Suite numérique"},Hv={homepageLinkTitle:"Accueil - {serviceName}"},zv={newWindow:"{title} - nouvelle fenêtre"},Vv={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},Uf={email:Kv,footer:Fv,gaufre:jv,header:Hv,links:zv,proconnect:Vv},Bv=c.createContext(Uf);function Uv(){const t=c.useContext(Bv)||Uf;return{t:function(e,n={}){const r=Bf(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 b.jsx(b.Fragment,{children:o.map((l,a)=>l in n?b.jsx(c.Fragment,{children:n[l]},a):l)})}return r}}}const Wv={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},Gv=({variant:t})=>{const{t:e}=Uv(),n=t?Wv[t]:"";return b.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")})},qv=()=>b.jsxs(b.Fragment,{children:[b.jsx("script",{src:"https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js",id:"lasuite-gaufre-script",async:!0,defer:!0}),b.jsx(Gv,{variant:"small"})]}),Wf=({languages:t})=>{const{isOpen:e,setIsOpen:n}=On();return b.jsx(hr,{options:t,isOpen:e,onOpenChange:n,children:b.jsxs(pe.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[b.jsx("span",{className:"material-icons",children:"translate"}),b.jsx("span",{className:"c__language-picker__label",children:"Français"}),b.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},Gf=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=pe.useCunningham();return b.jsxs("div",{className:"c__header",children:[b.jsx("div",{className:"c__header__toggle-menu",children:b.jsx(pe.Button,{size:"medium",onClick:r,"aria-label":o(i?"Close the menu":"Open the menu"),color:"tertiary-text",icon:b.jsx("span",{className:"material-icons clr-primary-800",children:i?"close":"menu"})})}),b.jsx("div",{className:"c__header__left",children:t}),b.jsxs("div",{className:"c__header__right",children:[n&&b.jsx("div",{className:"c__header__right__language-picker",children:b.jsx(Wf,{languages:n})}),e]})]})},ll={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)"},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)"}}}}}},An=()=>{const[t,e]=c.useState(window.innerWidth),n=parseInt(ll.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(ll.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};c.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}},qf=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=An();return n?b.jsx("div",{className:"c__left-panel",children:t}):b.jsx("div",{className:Me("c__left-panel__mobile",{open:e}),children:t})},{createElement:kn,createContext:Yv,createRef:vS,forwardRef:Yf,useCallback:Oe,useContext:Zf,useEffect:Rt,useImperativeHandle:Xf,useLayoutEffect:Zv,useMemo:Xv,useRef:Ne,useState:En}=_,Is=_[`useId${Math.random()}`.slice(0,5)],Jv=Zv,Ni=Yv(null);Ni.displayName="PanelGroupContext";const Mt=Jv,Qv=typeof Is=="function"?Is:()=>null;let em=0;function ia(t=null){const e=Qv(),n=Ne(t||e||null);return n.current===null&&(n.current=""+em++),t??n.current}function Jf({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:u,onExpand:d,onResize:f,order:p,style:g,tagName:y="div",...h}){const v=Zf(Ni);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:m,expandPanel:S,getPanelSize:C,getPanelStyle:P,groupId:$,isPanelCollapsed:E,reevaluatePanelConstraints:T,registerPanel:L,resizePanel:z,unregisterPanel:A}=v,w=ia(l),M=Ne({callbacks:{onCollapse:u,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:w,idIsFromProps:l!==void 0,order:p});Ne({didLogMissingDefaultSizeWarning:!1}),Mt(()=>{const{callbacks:R,constraints:U}=M.current,x={...U};M.current.id=w,M.current.idIsFromProps=l!==void 0,M.current.order=p,R.onCollapse=u,R.onExpand=d,R.onResize=f,U.collapsedSize=n,U.collapsible=r,U.defaultSize=i,U.maxSize=a,U.minSize=s,(x.collapsedSize!==U.collapsedSize||x.collapsible!==U.collapsible||x.maxSize!==U.maxSize||x.minSize!==U.minSize)&&T(M.current,x)}),Mt(()=>{const R=M.current;return L(R),()=>{A(R)}},[p,w,L,A]),Xf(o,()=>({collapse:()=>{m(M.current)},expand:R=>{S(M.current,R)},getId(){return w},getSize(){return C(M.current)},isCollapsed(){return E(M.current)},isExpanded(){return!E(M.current)},resize:R=>{z(M.current,R)}}),[m,S,C,E,w,z]);const B=P(M.current,i);return kn(y,{...h,children:t,className:e,id:l,style:{...B,...g},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":$,"data-panel-id":w,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1)})}const al=Yf((t,e)=>kn(Jf,{...t,forwardedRef:e}));Jf.displayName="Panel";al.displayName="forwardRef(Panel)";let sl=null,kt=null;function tm(t,e){if(e){const n=(e&r0)!==0,r=(e&i0)!==0,i=(e&o0)!==0,o=(e&l0)!==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 nm(){kt!==null&&(document.head.removeChild(kt),sl=null,kt=null)}function fo(t,e){const n=tm(t,e);sl!==n&&(sl=n,kt===null&&(kt=document.createElement("style"),document.head.appendChild(kt)),kt.innerHTML=`*{cursor: ${n}!important;}`)}function Qf(t){return t.type==="keydown"}function e0(t){return t.type.startsWith("pointer")}function t0(t){return t.type.startsWith("mouse")}function Ri(t){if(e0(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(t0(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function rm(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function im(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 om(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:Ns(t),b:Ns(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;te(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:ks(Os(n.a)),b:ks(Os(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 lm=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function am(t){var e;const n=getComputedStyle((e=n0(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function sm(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||am(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"||lm.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Os(t){let e=t.length;for(;e--;){const n=t[e];if(te(n,"Missing node"),sm(n))return n}return null}function ks(t){return t&&Number(getComputedStyle(t).zIndex)||0}function Ns(t){const e=[];for(;t;)e.push(t),t=n0(t);return e}function n0(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const r0=1,i0=2,o0=4,l0=8,um=rm()==="coarse";let Ye=[],$n=!1,Ct=new Map,Mi=new Map;const ar=new Set;function cm(t,e,n,r,i){var o;const{ownerDocument:l}=e,a={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=Ct.get(l))!==null&&o!==void 0?o:0;return Ct.set(l,s+1),ar.add(a),si(),function(){var d;Mi.delete(t),ar.delete(a);const f=(d=Ct.get(l))!==null&&d!==void 0?d:1;if(Ct.set(l,f-1),si(),f===1&&Ct.delete(l),Ye.includes(a)){const p=Ye.indexOf(a);p>=0&&Ye.splice(p,1),la(),i("up",!0,null)}}}function Rs(t){const{target:e}=t,{x:n,y:r}=Ri(t);$n=!0,oa({target:e,x:n,y:r}),si(),Ye.length>0&&(ui("down",t),t.preventDefault(),t.stopPropagation())}function Un(t){const{x:e,y:n}=Ri(t);if($n&&t.buttons===0&&($n=!1,ui("up",t)),!$n){const{target:r}=t;oa({target:r,x:e,y:n})}ui("move",t),la(),Ye.length>0&&t.preventDefault()}function tn(t){const{target:e}=t,{x:n,y:r}=Ri(t);Mi.clear(),$n=!1,Ye.length>0&&t.preventDefault(),ui("up",t),oa({target:e,x:n,y:r}),la(),si()}function oa({target:t,x:e,y:n}){Ye.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),ar.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:u,right:d,top:f}=a,p=um?l.coarse:l.fine;if(e>=u-p&&e<=d+p&&n>=f-p&&n<=s+p){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&om(r,o)>0){let y=r,h=!1;for(;y&&!y.contains(o);){if(im(y.getBoundingClientRect(),a)){h=!0;break}y=y.parentElement}if(h)return}Ye.push(i)}})}function ho(t,e){Mi.set(t,e)}function la(){let t=!1,e=!1;Ye.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;Mi.forEach(r=>{n|=r}),t&&e?fo("intersection",n):t?fo("horizontal",n):e?fo("vertical",n):nm()}function si(){Ct.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",tn),n.removeEventListener("pointerdown",Rs),n.removeEventListener("pointerleave",Un),n.removeEventListener("pointermove",Un)}),window.removeEventListener("pointerup",tn),window.removeEventListener("pointercancel",tn),ar.size>0&&($n?(Ye.length>0&&Ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",tn),n.addEventListener("pointerleave",Un),n.addEventListener("pointermove",Un))}),window.addEventListener("pointerup",tn),window.addEventListener("pointercancel",tn)):Ct.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",Rs,{capture:!0}),n.addEventListener("pointermove",Un))}))}function ui(t,e){ar.forEach(n=>{const{setResizeHandlerState:r}=n,i=Ye.includes(n);r(t,i,e)})}function dm(){const[t,e]=En(0);return Oe(()=>e(n=>n+1),[])}function te(t,e){if(!t)throw console.error(e),Error(e)}const aa=10;function jt(t,e,n=aa){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ut(t,e,n=aa){return jt(t,e,n)===0}function Ae(t,e,n){return jt(t,e,n)===0}function fm(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(!Ae(i,o,n))return!1}return!0}function bn({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];te(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(jt(n,a)<0)if(o){const s=(i+a)/2;jt(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(aa)),n}function Jn({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(Ae(t,0))return e;const l=[...e],[a,s]=r;te(a!=null,"Invalid first pivot index"),te(s!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const f=t<0?s:a,p=n[f];te(p,`Panel constraints not found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const v=e[f];if(te(v!=null,`Previous layout not found for panel index ${f}`),Ae(v,g)){const m=h-v;jt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}{const f=t<0?a:s,p=n[f];te(p,`No panel constraints found for index ${f}`);const{collapsedSize:g=0,collapsible:y,minSize:h=0}=p;if(y){const v=e[f];if(te(v!=null,`Previous layout not found for panel index ${f}`),Ae(v,h)){const m=v-g;jt(m,Math.abs(t))>0&&(t=t<0?0-m:m)}}}}{const f=t<0?1:-1;let p=t<0?s:a,g=0;for(;;){const h=e[p];te(h!=null,`Previous layout not found for panel index ${p}`);const m=bn({panelConstraints:n,panelIndex:p,size:100})-h;if(g+=m,p+=f,p<0||p>=n.length)break}const y=Math.min(Math.abs(t),Math.abs(g));t=t<0?0-y:y}{let p=t<0?a:s;for(;p>=0&&p<n.length;){const g=Math.abs(t)-Math.abs(u),y=e[p];te(y!=null,`Previous layout not found for panel index ${p}`);const h=y-g,v=bn({panelConstraints:n,panelIndex:p,size:h});if(!Ae(y,v)&&(u+=y-v,l[p]=v,u.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(fm(i,l))return i;{const f=t<0?s:a,p=e[f];te(p!=null,`Previous layout not found for panel index ${f}`);const g=p+u,y=bn({panelConstraints:n,panelIndex:f,size:g});if(l[f]=y,!Ae(y,g)){let h=g-y,m=t<0?s:a;for(;m>=0&&m<n.length;){const S=l[m];te(S!=null,`Previous layout not found for panel index ${m}`);const C=S+h,P=bn({panelConstraints:n,panelIndex:m,size:C});if(Ae(S,P)||(h-=P-S,l[m]=P),Ae(h,0))break;t>0?m--:m++}}}const d=l.reduce((f,p)=>p+f,0);return Ae(d,100)?l:i}function hm({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];te(a!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:g}=f,{maxSize:y=100,minSize:h=0}=g;p===a?(r=h,i=y):(o+=h,l+=y)});const s=Math.min(i,100-o),u=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:u,valueNow:d}}function sr(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function a0(t,e,n=document){const i=sr(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function s0(t,e,n){const r=a0(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function u0(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 Li(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function pm(t,e,n,r=document){var i,o,l,a;const s=Li(e,r),u=sr(t,r),d=s?u.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 gm({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){Ne({didWarnAboutMissingResizeHandle:!1}),Mt(()=>{if(!o)return;const a=sr(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:u,valueMin:d,valueNow:f}=hm({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),p=a[s];if(p!=null){const g=i[s];te(g,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",g.id),p.setAttribute("aria-valuemax",""+Math.round(u)),p.setAttribute("aria-valuemin",""+Math.round(d)),p.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,u)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),Rt(()=>{if(!o)return;const a=e.current;te(a,"Eager values not found");const{panelDataArray:s}=a,u=u0(n,o);te(u!=null,`No group found for id "${n}"`);const d=sr(n,o);te(d,`No resize handles found for group id "${n}"`);const f=d.map(p=>{const g=p.getAttribute("data-panel-resize-handle-id");te(g,"Resize handle element has no handle id attribute");const[y,h]=pm(n,g,s,o);if(y==null||h==null)return()=>{};const v=m=>{if(!m.defaultPrevented)switch(m.key){case"Enter":{m.preventDefault();const S=s.findIndex(C=>C.id===y);if(S>=0){const C=s[S];te(C,`No panel data found for index ${S}`);const P=r[S],{collapsedSize:$=0,collapsible:E,minSize:T=0}=C.constraints;if(P!=null&&E){const L=Jn({delta:Ae(P,$)?T-$:$-P,initialLayout:r,panelConstraints:s.map(z=>z.constraints),pivotIndices:s0(n,g,o),prevLayout:r,trigger:"keyboard"});r!==L&&l(L)}}break}}};return p.addEventListener("keydown",v),()=>{p.removeEventListener("keydown",v)}});return()=>{f.forEach(p=>p())}},[o,t,e,n,r,i,l])}function Ms(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 c0(t,e){const n=t==="horizontal",{x:r,y:i}=Ri(e);return n?r:i}function vm(t,e,n,r,i){const o=n==="horizontal",l=Li(e,i);te(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");te(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const u=c0(n,t),d=u0(a,i);te(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),p=o?f.width:f.height;return(u-s)/p*100}function mm(t,e,n,r,i,o){if(Qf(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:vm(t,e,n,r,o)}function ym({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];te(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];te(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,u=i/s;r++,e[o]=u,i-=u}return e}function nn(t,e,n){e.forEach((r,i)=>{const o=t[i];te(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:u=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:p,onExpand:g,onResize:y}=l;y&&y(r,f),d&&(p||g)&&(g&&(f==null||ut(f,u))&&!ut(r,u)&&g(),p&&(f==null||!ut(f,u))&&ut(r,u)&&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 bm({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 Sm(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function Ls(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 d0(t){return`react-resizable-panels:${t}`}function f0(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 h0(t,e){try{const n=d0(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function Cm(t,e,n){var r,i;const o=(r=h0(t,n))!==null&&r!==void 0?r:{},l=f0(e);return(i=o[l])!==null&&i!==void 0?i:null}function wm(t,e,n,r,i){var o;const l=d0(t),a=f0(e),s=(o=h0(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(u){console.error(u)}}function As({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(!Ae(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];te(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];te(l!=null,`No layout data found for index ${o}`);const a=bn({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!Ae(i,0))for(let o=0;o<e.length;o++){const l=n[o];te(l!=null,`No layout data found for index ${o}`);const a=l+i,s=bn({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,Ae(i,0)))break}return n}const xm=100,Qn={getItem:t=>(Ls(Qn),Qn.getItem(t)),setItem:(t,e)=>{Ls(Qn),Qn.setItem(t,e)}},Ks={};function p0({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=Qn,style:u,tagName:d="div",...f}){const p=ia(o),g=Ne(null),[y,h]=En(null),[v,m]=En([]),S=dm(),C=Ne({}),P=Ne(new Map),$=Ne(0),E=Ne({autoSaveId:t,direction:r,dragState:y,id:p,keyboardResizeBy:a,onLayout:l,storage:s}),T=Ne({layout:v,panelDataArray:[],panelDataArrayChanged:!1});Ne({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),Xf(i,()=>({getId:()=>E.current.id,getLayout:()=>{const{layout:k}=T.current;return k},setLayout:k=>{const{onLayout:F}=E.current,{layout:K,panelDataArray:V}=T.current,W=As({layout:k,panelConstraints:V.map(X=>X.constraints)});Ms(K,W)||(m(W),T.current.layout=W,F&&F(W),nn(V,W,C.current))}}),[]),Mt(()=>{E.current.autoSaveId=t,E.current.direction=r,E.current.dragState=y,E.current.id=p,E.current.onLayout=l,E.current.storage=s}),gm({committedValuesRef:E,eagerValuesRef:T,groupId:p,layout:v,panelDataArray:T.current.panelDataArray,setLayout:m,panelGroupElement:g.current}),Rt(()=>{const{panelDataArray:k}=T.current;if(t){if(v.length===0||v.length!==k.length)return;let F=Ks[t];F==null&&(F=Sm(wm,xm),Ks[t]=F);const K=[...k],V=new Map(P.current);F(t,K,V,v,s)}},[t,v,s]),Rt(()=>{});const L=Oe(k=>{const{onLayout:F}=E.current,{layout:K,panelDataArray:V}=T.current;if(k.constraints.collapsible){const W=V.map(q=>q.constraints),{collapsedSize:X=0,panelSize:Q,pivotIndices:oe}=Dt(V,k,K);if(te(Q!=null,`Panel size not found for panel "${k.id}"`),!ut(Q,X)){P.current.set(k.id,Q);const fe=gn(V,k)===V.length-1?Q-X:X-Q,re=Jn({delta:fe,initialLayout:K,panelConstraints:W,pivotIndices:oe,prevLayout:K,trigger:"imperative-api"});Pr(K,re)||(m(re),T.current.layout=re,F&&F(re),nn(V,re,C.current))}}},[]),z=Oe((k,F)=>{const{onLayout:K}=E.current,{layout:V,panelDataArray:W}=T.current;if(k.constraints.collapsible){const X=W.map(me=>me.constraints),{collapsedSize:Q=0,panelSize:oe=0,minSize:q=0,pivotIndices:fe}=Dt(W,k,V),re=F??q;if(ut(oe,Q)){const me=P.current.get(k.id),ie=me!=null&&me>=re?me:re,gt=gn(W,k)===W.length-1?oe-ie:ie-oe,xe=Jn({delta:gt,initialLayout:V,panelConstraints:X,pivotIndices:fe,prevLayout:V,trigger:"imperative-api"});Pr(V,xe)||(m(xe),T.current.layout=xe,K&&K(xe),nn(W,xe,C.current))}}},[]),A=Oe(k=>{const{layout:F,panelDataArray:K}=T.current,{panelSize:V}=Dt(K,k,F);return te(V!=null,`Panel size not found for panel "${k.id}"`),V},[]),w=Oe((k,F)=>{const{panelDataArray:K}=T.current,V=gn(K,k);return bm({defaultSize:F,dragState:y,layout:v,panelData:K,panelIndex:V})},[y,v]),M=Oe(k=>{const{layout:F,panelDataArray:K}=T.current,{collapsedSize:V=0,collapsible:W,panelSize:X}=Dt(K,k,F);return te(X!=null,`Panel size not found for panel "${k.id}"`),W===!0&&ut(X,V)},[]),B=Oe(k=>{const{layout:F,panelDataArray:K}=T.current,{collapsedSize:V=0,collapsible:W,panelSize:X}=Dt(K,k,F);return te(X!=null,`Panel size not found for panel "${k.id}"`),!W||jt(X,V)>0},[]),R=Oe(k=>{const{panelDataArray:F}=T.current;F.push(k),F.sort((K,V)=>{const W=K.order,X=V.order;return W==null&&X==null?0:W==null?-1:X==null?1:W-X}),T.current.panelDataArrayChanged=!0,S()},[S]);Mt(()=>{if(T.current.panelDataArrayChanged){T.current.panelDataArrayChanged=!1;const{autoSaveId:k,onLayout:F,storage:K}=E.current,{layout:V,panelDataArray:W}=T.current;let X=null;if(k){const oe=Cm(k,W,K);oe&&(P.current=new Map(Object.entries(oe.expandToSizes)),X=oe.layout)}X==null&&(X=ym({panelDataArray:W}));const Q=As({layout:X,panelConstraints:W.map(oe=>oe.constraints)});Ms(V,Q)||(m(Q),T.current.layout=Q,F&&F(Q),nn(W,Q,C.current))}}),Mt(()=>{const k=T.current;return()=>{k.layout=[]}},[]);const U=Oe(k=>{let F=!1;const K=g.current;return K&&window.getComputedStyle(K,null).getPropertyValue("direction")==="rtl"&&(F=!0),function(W){W.preventDefault();const X=g.current;if(!X)return()=>null;const{direction:Q,dragState:oe,id:q,keyboardResizeBy:fe,onLayout:re}=E.current,{layout:me,panelDataArray:ie}=T.current,{initialLayout:Je}=oe??{},gt=s0(q,k,X);let xe=mm(W,k,Q,oe,fe,X);const Kn=Q==="horizontal";Kn&&F&&(xe=-xe);const gr=ie.map(Z=>Z.constraints),D=Jn({delta:xe,initialLayout:Je??me,panelConstraints:gr,pivotIndices:gt,prevLayout:me,trigger:Qf(W)?"keyboard":"mouse-or-touch"}),Y=!Pr(me,D);(e0(W)||t0(W))&&$.current!=xe&&($.current=xe,!Y&&xe!==0?Kn?ho(k,xe<0?r0:i0):ho(k,xe<0?o0:l0):ho(k,0)),Y&&(m(D),T.current.layout=D,re&&re(D),nn(ie,D,C.current))}},[]),x=Oe((k,F)=>{const{onLayout:K}=E.current,{layout:V,panelDataArray:W}=T.current,X=W.map(me=>me.constraints),{panelSize:Q,pivotIndices:oe}=Dt(W,k,V);te(Q!=null,`Panel size not found for panel "${k.id}"`);const fe=gn(W,k)===W.length-1?Q-F:F-Q,re=Jn({delta:fe,initialLayout:V,panelConstraints:X,pivotIndices:oe,prevLayout:V,trigger:"imperative-api"});Pr(V,re)||(m(re),T.current.layout=re,K&&K(re),nn(W,re,C.current))},[]),N=Oe((k,F)=>{const{layout:K,panelDataArray:V}=T.current,{collapsedSize:W=0,collapsible:X}=F,{collapsedSize:Q=0,collapsible:oe,maxSize:q=100,minSize:fe=0}=k.constraints,{panelSize:re}=Dt(V,k,K);re!=null&&(X&&oe&&ut(re,W)?ut(W,Q)||x(k,Q):re<fe?x(k,fe):re>q&&x(k,q))},[x]),I=Oe((k,F)=>{const{direction:K}=E.current,{layout:V}=T.current;if(!g.current)return;const W=Li(k,g.current);te(W,`Drag handle element not found for id "${k}"`);const X=c0(K,F);h({dragHandleId:k,dragHandleRect:W.getBoundingClientRect(),initialCursorPosition:X,initialLayout:V})},[]),G=Oe(()=>{h(null)},[]),H=Oe(k=>{const{panelDataArray:F}=T.current,K=gn(F,k);K>=0&&(F.splice(K,1),delete C.current[k.id],T.current.panelDataArrayChanged=!0,S())},[S]),j=Xv(()=>({collapsePanel:L,direction:r,dragState:y,expandPanel:z,getPanelSize:A,getPanelStyle:w,groupId:p,isPanelCollapsed:M,isPanelExpanded:B,reevaluatePanelConstraints:N,registerPanel:R,registerResizeHandle:U,resizePanel:x,startDragging:I,stopDragging:G,unregisterPanel:H,panelGroupElement:g.current}),[L,y,r,z,A,w,p,M,B,N,R,U,x,I,G,H]),O={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return kn(Ni.Provider,{value:j},kn(d,{...f,children:e,className:n,id:o,ref:g,style:{...O,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const g0=Yf((t,e)=>kn(p0,{...t,forwardedRef:e}));p0.displayName="PanelGroup";g0.displayName="forwardRef(PanelGroup)";function gn(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function Dt(t,e,n){const r=gn(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Em({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){Rt(()=>{if(t||n==null||r==null)return;const i=Li(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");te(a,`No group element found for id "${a}"`);const s=sr(a,r),u=a0(a,e,r);te(u!==null,`No resize element found for id "${e}"`);const d=l.shiftKey?u>0?u-1:s.length-1:u+1<s.length?u+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function v0({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:u=0,tagName:d="div",...f}){var p,g;const y=Ne(null),h=Ne({onDragging:l});Rt(()=>{h.current.onDragging=l});const v=Zf(Ni);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:m,groupId:S,registerResizeHandle:C,startDragging:P,stopDragging:$,panelGroupElement:E}=v,T=ia(i),[L,z]=En("inactive"),[A,w]=En(!1),[M,B]=En(null),R=Ne({state:L});Mt(()=>{R.current.state=L}),Rt(()=>{if(n)B(null);else{const I=C(T);B(()=>I)}},[n,T,C]);const U=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,x=(g=r==null?void 0:r.fine)!==null&&g!==void 0?g:5;return Rt(()=>{if(n||M==null)return;const I=y.current;return te(I,"Element ref not attached"),cm(T,I,m,{coarse:U,fine:x},(H,j,O)=>{if(j)switch(H){case"down":{z("drag"),te(O,'Expected event to be defined for "down" action'),P(T,O);const{onDragging:k}=h.current;k&&k(!0);break}case"move":{const{state:k}=R.current;k!=="drag"&&z("hover"),te(O,'Expected event to be defined for "move" action'),M(O);break}case"up":{z("hover"),$();const{onDragging:k}=h.current;k&&k(!1);break}}else z("inactive")})},[U,m,n,x,C,T,M,P,$]),Em({disabled:n,handleId:T,resizeHandler:M,panelGroupElement:E}),kn(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:u,"data-panel-group-direction":m,"data-panel-group-id":S,"data-resize-handle":"","data-resize-handle-active":L==="drag"?"pointer":A?"keyboard":void 0,"data-resize-handle-state":L,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":T})}v0.displayName="PanelResizeHandle";const $m=({children:t,isOpen:e})=>{const{isDesktop:n}=An();return n?b.jsx("div",{className:Me("c__right-panel",{open:e}),children:t}):b.jsx("div",{className:Me("c__right-panel__mobile",{open:e}),children:t})},Pm=(t,e,n)=>{const[r,i]=c.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return c.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},Dm=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...u})=>{const[d,f]=Pm(!1,u.isLeftPanelOpen,u.setIsLeftPanelOpen),{isDesktop:p}=An(),g=c.useRef(null),[y,h]=c.useState(Dr(300,p)),[v,m]=c.useState(Dr(450,p)),S=()=>{f(!d)};c.useEffect(()=>{const $=()=>{const E=Math.round(Dr(300,p)),T=Math.round(Math.min(Dr(450,p),40));h(p?E:0),m(a?T:E)};return $(),window.addEventListener("resize",()=>{$()}),()=>{window.removeEventListener("resize",$)}},[p,a]);const C=p?!n:!0,P=p?!n:d;return b.jsxs("div",{className:"c__main-layout",children:[b.jsx("div",{className:"c__main-layout__header",children:b.jsx(Gf,{onTogglePanel:S,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),b.jsx("div",{className:"c__main-layout__content",children:b.jsxs(g0,{autoSaveId:"persistance",direction:"horizontal",children:[C&&b.jsxs(b.Fragment,{children:[b.jsx(al,{ref:g,order:0,defaultSize:y,minSize:y,maxSize:v,children:b.jsx(qf,{isOpen:P,children:r})}),p&&b.jsx(v0,{className:"bg-greyscale-200",style:{width:"1px"}})]}),b.jsx(al,{order:1,children:b.jsxs("div",{className:"c__main-layout__content__center",children:[b.jsx("div",{className:"c__main-layout__content__center__children",children:e}),b.jsx($m,{isOpen:s,children:i})]})})]})})]})},Dr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},Tm=52,sa=({size:t="sm"})=>b.jsx("div",{className:["c__spinner",t].join(" ")}),m0=({children:t,text:e,...n})=>b.jsxs("div",{className:"suite__label__container",children:[b.jsx("label",{...n,children:t}),e&&b.jsx("span",{className:"suite__label__container__description",children:e})]}),_m=({label:t,text:e,labelSide:n="right",children:r})=>b.jsxs("div",{className:Me("c__with-label",{[n]:!0}),children:[b.jsx(m0,{children:t,text:e}),r]});var Fs=1,Im=.9,Om=.8,km=.17,po=.1,go=.999,Nm=.9999,Rm=.99,Mm=/[\\\/_+.#"@\[\(\{&]/,Lm=/[\\\/_+.#"@\[\(\{&]/g,Am=/[\s-]/,y0=/[\s-]/g;function ul(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Fs:Rm;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),u=n.indexOf(s,i),d=0,f,p,g,y;u>=0;)f=ul(t,e,n,r,u+1,o+1,l),f>d&&(u===i?f*=Fs:Mm.test(t.charAt(u-1))?(f*=Om,g=t.slice(i,u-1).match(Lm),g&&i>0&&(f*=Math.pow(go,g.length))):Am.test(t.charAt(u-1))?(f*=Im,y=t.slice(i,u-1).match(y0),y&&i>0&&(f*=Math.pow(go,y.length))):(f*=km,i>0&&(f*=Math.pow(go,u-i))),t.charAt(u)!==e.charAt(o)&&(f*=Nm)),(f<po&&n.charAt(u-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(u-1)!==r.charAt(o))&&(p=ul(t,e,n,r,u+1,o+2,l),p*po>f&&(f=p*po)),f>d&&(d=f),u=n.indexOf(s,u+1);return l[a]=d,d}function js(t){return t.toLowerCase().replace(y0," ")}function Km(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,ul(t,e,js(t),js(e),0,0,{})}function xt(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 Hs(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function b0(...t){return e=>{let n=!1;const r=t.map(i=>{const o=Hs(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():Hs(t[i],null)}}}}function Zt(...t){return _.useCallback(b0(...t),t)}function Fm(t,e){const n=_.createContext(e),r=o=>{const{children:l,...a}=o,s=_.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:s,children:l})};r.displayName=t+"Provider";function i(o){const l=_.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 jm(t,e=[]){let n=[];function r(o,l){const a=_.createContext(l),s=n.length;n=[...n,l];const u=f=>{var m;const{scope:p,children:g,...y}=f,h=((m=p==null?void 0:p[t])==null?void 0:m[s])||a,v=_.useMemo(()=>y,Object.values(y));return b.jsx(h.Provider,{value:v,children:g})};u.displayName=o+"Provider";function d(f,p){var h;const g=((h=p==null?void 0:p[t])==null?void 0:h[s])||a,y=_.useContext(g);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}const i=()=>{const o=n.map(l=>_.createContext(l));return function(a){const s=(a==null?void 0:a[t])||o;return _.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[r,Hm(i,...e)]}function Hm(...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:u})=>{const f=s(o)[`__scope${u}`];return{...a,...f}},{});return _.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var ci=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},zm=_.useId||(()=>{}),Vm=0;function dt(t){const[e,n]=_.useState(zm());return ci(()=>{n(r=>r??String(Vm++))},[t]),e?`radix-${e}`:""}function Ht(t){const e=_.useRef(t);return _.useEffect(()=>{e.current=t}),_.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function Bm({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=Um({defaultProp:e,onChange:n}),o=t!==void 0,l=o?t:r,a=Ht(n),s=_.useCallback(u=>{if(o){const f=typeof u=="function"?u(t):u;f!==t&&a(f)}else i(u)},[o,t,i,a]);return[l,s]}function Um({defaultProp:t,onChange:e}){const n=_.useState(t),[r]=n,i=_.useRef(r),o=Ht(e);return _.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var ua=_.forwardRef((t,e)=>{const{children:n,...r}=t,i=_.Children.toArray(n),o=i.find(Gm);if(o){const l=o.props.children,a=i.map(s=>s===o?_.Children.count(l)>1?_.Children.only(null):_.isValidElement(l)?l.props.children:null:s);return b.jsx(cl,{...r,ref:e,children:_.isValidElement(l)?_.cloneElement(l,void 0,a):null})}return b.jsx(cl,{...r,ref:e,children:n})});ua.displayName="Slot";var cl=_.forwardRef((t,e)=>{const{children:n,...r}=t;if(_.isValidElement(n)){const i=Ym(n),o=qm(r,n.props);return n.type!==_.Fragment&&(o.ref=e?b0(e,i):i),_.cloneElement(n,o)}return _.Children.count(n)>1?_.Children.only(null):null});cl.displayName="SlotClone";var Wm=({children:t})=>b.jsx(b.Fragment,{children:t});function Gm(t){return _.isValidElement(t)&&t.type===Wm}function qm(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)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function Ym(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 Zm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ee=Zm.reduce((t,e)=>{const n=_.forwardRef((r,i)=>{const{asChild:o,...l}=r,a=o?ua:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(a,{...l,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Xm(t,e){t&&lh.flushSync(()=>t.dispatchEvent(e))}function Jm(t,e=globalThis==null?void 0:globalThis.document){const n=Ht(t);_.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 Qm="DismissableLayer",dl="dismissableLayer.update",e1="dismissableLayer.pointerDownOutside",t1="dismissableLayer.focusOutside",zs,S0=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C0=_.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,u=_.useContext(S0),[d,f]=_.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=_.useState({}),y=Zt(e,T=>f(T)),h=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(v),S=d?h.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,P=S>=m,$=i1(T=>{const L=T.target,z=[...u.branches].some(A=>A.contains(L));!P||z||(i==null||i(T),l==null||l(T),T.defaultPrevented||a==null||a())},p),E=o1(T=>{const L=T.target;[...u.branches].some(A=>A.contains(L))||(o==null||o(T),l==null||l(T),T.defaultPrevented||a==null||a())},p);return Jm(T=>{S===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},p),_.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zs=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Vs(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=zs)}},[d,p,n,u]),_.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Vs())},[d,u]),_.useEffect(()=>{const T=()=>g({});return document.addEventListener(dl,T),()=>document.removeEventListener(dl,T)},[]),b.jsx(Ee.div,{...s,ref:y,style:{pointerEvents:C?P?"auto":"none":void 0,...t.style},onFocusCapture:xt(t.onFocusCapture,E.onFocusCapture),onBlurCapture:xt(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:xt(t.onPointerDownCapture,$.onPointerDownCapture)})});C0.displayName=Qm;var n1="DismissableLayerBranch",r1=_.forwardRef((t,e)=>{const n=_.useContext(S0),r=_.useRef(null),i=Zt(e,r);return _.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),b.jsx(Ee.div,{...t,ref:i})});r1.displayName=n1;function i1(t,e=globalThis==null?void 0:globalThis.document){const n=Ht(t),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){w0(e1,n,u,{discrete:!0})};const u={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 o1(t,e=globalThis==null?void 0:globalThis.document){const n=Ht(t),r=_.useRef(!1);return _.useEffect(()=>{const i=o=>{o.target&&!r.current&&w0(t1,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 Vs(){const t=new CustomEvent(dl);document.dispatchEvent(t)}function w0(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?Xm(i,o):i.dispatchEvent(o)}var vo="focusScope.autoFocusOnMount",mo="focusScope.autoFocusOnUnmount",Bs={bubbles:!1,cancelable:!0},l1="FocusScope",x0=_.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=_.useState(null),u=Ht(i),d=Ht(o),f=_.useRef(null),p=Zt(e,h=>s(h)),g=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let h=function(C){if(g.paused||!a)return;const P=C.target;a.contains(P)?f.current=P:yt(f.current,{select:!0})},v=function(C){if(g.paused||!a)return;const P=C.relatedTarget;P!==null&&(a.contains(P)||yt(f.current,{select:!0}))},m=function(C){if(document.activeElement===document.body)for(const $ of C)$.removedNodes.length>0&&yt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const S=new MutationObserver(m);return a&&S.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),S.disconnect()}}},[r,a,g.paused]),_.useEffect(()=>{if(a){Ws.add(g);const h=document.activeElement;if(!a.contains(h)){const m=new CustomEvent(vo,Bs);a.addEventListener(vo,u),a.dispatchEvent(m),m.defaultPrevented||(a1(f1(E0(a)),{select:!0}),document.activeElement===h&&yt(a))}return()=>{a.removeEventListener(vo,u),setTimeout(()=>{const m=new CustomEvent(mo,Bs);a.addEventListener(mo,d),a.dispatchEvent(m),m.defaultPrevented||yt(h??document.body,{select:!0}),a.removeEventListener(mo,d),Ws.remove(g)},0)}}},[a,u,d,g]);const y=_.useCallback(h=>{if(!n&&!r||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,m=document.activeElement;if(v&&m){const S=h.currentTarget,[C,P]=s1(S);C&&P?!h.shiftKey&&m===P?(h.preventDefault(),n&&yt(C,{select:!0})):h.shiftKey&&m===C&&(h.preventDefault(),n&&yt(P,{select:!0})):m===S&&h.preventDefault()}},[n,r,g.paused]);return b.jsx(Ee.div,{tabIndex:-1,...l,ref:p,onKeyDown:y})});x0.displayName=l1;function a1(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(yt(r,{select:e}),document.activeElement!==n)return}function s1(t){const e=E0(t),n=Us(e,t),r=Us(e.reverse(),t);return[n,r]}function E0(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 Us(t,e){for(const n of t)if(!u1(n,{upTo:e}))return n}function u1(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 c1(t){return t instanceof HTMLInputElement&&"select"in t}function yt(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&c1(t)&&e&&t.select()}}var Ws=d1();function d1(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Gs(t,e),t.unshift(e)},remove(e){var n;t=Gs(t,e),(n=t[0])==null||n.resume()}}}function Gs(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function f1(t){return t.filter(e=>e.tagName!=="A")}var h1="Portal",$0=_.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=_.useState(!1);ci(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Wt.createPortal(b.jsx(Ee.div,{...r,ref:e}),l):null});$0.displayName=h1;function p1(t,e){return _.useReducer((n,r)=>e[n][r]??n,t)}var Ai=t=>{const{present:e,children:n}=t,r=g1(e),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),o=Zt(r.ref,v1(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:o}):null};Ai.displayName="Presence";function g1(t){const[e,n]=_.useState(),r=_.useRef({}),i=_.useRef(t),o=_.useRef("none"),l=t?"mounted":"unmounted",[a,s]=p1(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const u=Tr(r.current);o.current=a==="mounted"?u:"none"},[a]),ci(()=>{const u=r.current,d=i.current;if(d!==t){const p=o.current,g=Tr(u);t?s("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),ci(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,f=g=>{const h=Tr(r.current).includes(g.animationName);if(g.target===e&&h&&(s("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},p=g=>{g.target===e&&(o.current=Tr(r.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:_.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Tr(t){return(t==null?void 0:t.animationName)||"none"}function v1(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 yo=0;function m1(){_.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??qs()),document.body.insertAdjacentElement("beforeend",t[1]??qs()),yo++,()=>{yo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),yo--}},[])}function qs(){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 Fr="right-scroll-bar-position",jr="width-before-scroll-bar",y1="with-scroll-bars-hidden",b1="--removed-body-scroll-bar-size";function bo(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function S1(t,e){var n=c.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 C1=typeof window<"u"?_.useLayoutEffect:_.useEffect,Ys=new WeakMap;function w1(t,e){var n=S1(null,function(r){return t.forEach(function(i){return bo(i,r)})});return C1(function(){var r=Ys.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||bo(a,null)}),o.forEach(function(a){i.has(a)||bo(a,l)})}Ys.set(n,t)},[t]),n}function x1(t){return t}function E1(t,e){e===void 0&&(e=x1);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)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return i}function $1(t){t===void 0&&(t={});var e=E1(null);return e.options=nt({async:!0,ssr:!1},t),e}var P0=function(t){var e=t.sideCar,n=Lc(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 _.createElement(r,nt({},n))};P0.isSideCarExport=!0;function P1(t,e){return t.useMedium(e),P0}var D0=$1(),So=function(){},Ki=_.forwardRef(function(t,e){var n=_.useRef(null),r=_.useState({onScrollCapture:So,onWheelCapture:So,onTouchMoveCapture:So}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,g=t.noIsolation,y=t.inert,h=t.allowPinchZoom,v=t.as,m=v===void 0?"div":v,S=t.gapMode,C=Lc(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=p,$=w1([n,e]),E=nt(nt({},C),i);return _.createElement(_.Fragment,null,d&&_.createElement(P,{sideCar:D0,removeScrollBar:u,shards:f,noIsolation:g,inert:y,setCallbacks:o,allowPinchZoom:!!h,lockRef:n,gapMode:S}),l?_.cloneElement(_.Children.only(a),nt(nt({},E),{ref:$})):_.createElement(m,nt({},E,{className:s,ref:$}),a))});Ki.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ki.classNames={fullWidth:jr,zeroRight:Fr};var D1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function T1(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=D1();return e&&t.setAttribute("nonce",e),t}function _1(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function I1(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var O1=function(){var t=0,e=null;return{add:function(n){t==0&&(e=T1())&&(_1(e,n),I1(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},k1=function(){var t=O1();return function(e,n){_.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},T0=function(){var t=k1(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},N1={left:0,top:0,right:0,gap:0},Co=function(t){return parseInt(t||"",10)||0},R1=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[Co(n),Co(r),Co(i)]},M1=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return N1;var e=R1(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])}},L1=T0(),Pn="data-scroll-locked",A1=function(t,e,n,r){var i=t.left,o=t.top,l=t.right,a=t.gap;return n===void 0&&(n="margin"),`
48
- .`.concat(y1,` {
44
+ */var Da;function gp(){return Da||(Da=1,process.env.NODE_ENV!=="production"&&function(){function t(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}function e(m,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 v=b();o(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=l({inst:{value:h,getSnapshot:b}});var g=v[0].inst,C=v[1];return s(function(){g.value=h,g.getSnapshot=b,n(g)&&C({inst:g})},[m,h,b]),a(function(){return n(g)&&C({inst:g}),m(function(){n(g)&&C({inst:g})})},[m]),u(h),h}function n(m){var b=m.getSnapshot;m=m.value;try{var h=b();return!o(m,h)}catch{return!0}}function r(m,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,o=typeof Object.is=="function"?Object.is:t,l=i.useState,a=i.useEffect,s=i.useLayoutEffect,u=i.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;ji.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())}()),ji}var Ta;function mp(){return Ta||(Ta=1,process.env.NODE_ENV==="production"?ur.exports=vp():ur.exports=gp()),ur.exports}var xl=mp();const pc=c.createContext(!1),Bn=c.createContext(null);function fi(t){if(c.useContext(Bn))return t.content;let{collection:n,document:r}=Sp(t.createCollection);return c.createElement(c.Fragment,null,c.createElement(Uh,null,c.createElement(Bn.Provider,{value:r},t.content)),c.createElement(bp,{render:t.children,collection:n}))}function bp({collection:t,render:e}){return e(t)}function yp(t,e,n){let r=Jn(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?n():e(),[e,n]);return xl.useSyncExternalStore(t,o)}const Cp=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:yp;function Sp(t){let[e]=c.useState(()=>new Bh((t==null?void 0:t())||new bl)),n=c.useCallback(l=>e.subscribe(l),[e]),r=c.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=Cp(n,r,i);return ne(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const No=c.createContext(null);function Ep(t,e,n,r,i,o){let l=c.useCallback(s=>{s==null||s.setProps(e,n,r,o)},[e,n,r,o]),a=c.useContext(No);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?c.createElement(No.Provider,{value:s},i):null}return c.createElement(t,{ref:l},i)}function hi(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{let l=c.useContext(Oo);if(!c.useContext(pc)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return Ep(t,i,o,"children"in i?i.children:null,null,s=>c.createElement(Oo.Provider,{value:l},c.createElement(n,{node:s})))});return r.displayName=e.name,r}function wp(t){return tc({...t,addIdAndValue:!0})}const _a=c.createContext(null);function $l(t){let e=c.useContext(_a),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope||(e==null?void 0:e.idScope),i=wp({...t,idScope:r,dependencies:n});return c.useContext(Bn)&&(i=c.createElement(xp,null,i)),e=c.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),c.createElement(_a.Provider,{value:e},i)}function xp({children:t}){let e=c.useContext(Bn),n=c.useMemo(()=>c.createElement(Bn.Provider,{value:null},c.createElement(pc.Provider,{value:!0},t)),[t]);return Jn()?c.createElement(No.Provider,{value:e},n):Rt.createPortal(n,e)}const $p=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Pp=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Dp(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 $p.has(n.script)}let e=t.split("-")[0];return Pp.has(e)}const Tp=Symbol.for("react-aria.i18n.locale");function vc(){let t=typeof window<"u"&&window[Tp]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Dp(t)?"rtl":"ltr"}}let Ro=vc(),Rn=new Set;function Ia(){Ro=vc();for(let t of Rn)t(Ro)}function _p(){let t=Jn(),[e,n]=c.useState(Ro);return c.useEffect(()=>(Rn.size===0&&window.addEventListener("languagechange",Ia),Rn.add(n),()=>{Rn.delete(n),Rn.size===0&&window.removeEventListener("languagechange",Ia)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Ip=c.createContext(null);function Lt(){let t=_p();return c.useContext(Ip)||t}var Ge=function(){return Ge=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},Ge.apply(this,arguments)};function gc(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 Op(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 kp=Symbol.for("react-aria.i18n.locale"),Np=Symbol.for("react-aria.i18n.strings");let jt;class pi{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=Rp(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[kp];if(jt===void 0){let i=window[Np];if(!i)return null;jt={};for(let o in i)jt[o]=new pi({[n]:i[o]},n)}let r=jt==null?void 0:jt[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 Rp(t,e,n="en-US"){if(e[t])return e[t];let r=Mp(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function Mp(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const Oa=new Map,ka=new Map;class Lp{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=Oa.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),Oa.set(o,l));let a=l.select(e);return i=n[a]||n.other,typeof i=="function"?i():i}number(e){let n=ka.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ka.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 Na=new WeakMap;function Ap(t){let e=Na.get(t);return e||(e=new pi(t),Na.set(t,e)),e}function Fp(t,e){return e&&pi.getGlobalDictionaryForPackage(e)||Ap(t)}function mc(t,e){let{locale:n}=Lt(),r=Fp(t,e);return c.useMemo(()=>new Lp(n,r),[n,r])}let Hi=new Map;function Pl(t){let{locale:e}=Lt(),n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Hi.has(n))return Hi.get(n);let r=new Intl.Collator(e,t);return Hi.set(n,r),r}function Kp(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:p,target:m,rel:b,type:h="button"}=t,v;n==="button"?v={type:h,disabled:r}:v={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?m: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:g,isPressed:C}=ui({onPressStart:o,onPressEnd:l,onPressChange:s,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:u,ref:e}),{focusableProps:S}=fc(t,e);d&&(S.tabIndex=r?-1:S.tabIndex);let P=re(S,g,he(t,{labelable:!0}));return{isPressed:C,buttonProps:re(v,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 jp(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 Hp(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 bc(t,e){return t.nodeName!=="#comment"&&jp(t)&&Hp(t,e)&&(!t.parentElement||bc(t.parentElement,t))}const Ra=c.createContext(null),Mo="react-aria-focus-scope-restore";let le=null;function Dl(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=c.useRef(null),l=c.useRef(null),a=c.useRef([]),{parentNode:s}=c.useContext(Ra)||{},u=c.useMemo(()=>new Ao({scopeRef:a}),[a]);ne(()=>{let p=s||de.root;if(de.getTreeNode(p.scopeRef)&&le&&!Vr(le,p.scopeRef)){let m=de.getTreeNode(le);m&&(p=m)}p.addChild(u),de.addNode(u)},[u,s]),ne(()=>{let p=de.getTreeNode(a);p&&(p.contain=!!n)},[n]),ne(()=>{var p;let m=(p=o.current)===null||p===void 0?void 0:p.nextSibling,b=[],h=v=>v.stopPropagation();for(;m&&m!==l.current;)b.push(m),m.addEventListener(Mo,h),m=m.nextSibling;return a.current=b,()=>{for(let v of b)v.removeEventListener(Mo,h)}},[e]),Wp(a,r,n),Vp(a,n),Gp(a,r,n),Up(a,i),c.useEffect(()=>{const p=Ce(oe(a.current?a.current[0]:void 0));let m=null;if(Ae(p,a.current)){for(let b of de.traverse())b.scopeRef&&Ae(p,b.scopeRef.current)&&(m=b);m===de.getTreeNode(a)&&(le=m.scopeRef)}},[a]),ne(()=>()=>{var p,m,b;let h=(b=(m=de.getTreeNode(a))===null||m===void 0||(p=m.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(a===le||Vr(a,le))&&(!h||de.getTreeNode(h))&&(le=h),de.removeTreeNode(a)},[a]);let d=c.useMemo(()=>zp(a),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return c.createElement(Ra.Provider,{value:f},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function zp(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Ce(oe((a=n[0])!==null&&a!==void 0?a:void 0)),u=n[0].previousElementSibling,d=yt(n),f=qe(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:u;let p=f.nextNode();return!p&&o&&(f.currentNode=u,p=f.nextNode()),p&&Je(p,!0),p},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var a;let s=r||Ce(oe((a=n[0])!==null&&a!==void 0?a:void 0)),u=n[n.length-1].nextElementSibling,d=yt(n),f=qe(d,{tabbable:i,accept:l},n);f.currentNode=Ae(s,n)?s:u;let p=f.previousNode();return!p&&o&&(f.currentNode=u,p=f.previousNode()),p&&Je(p,!0),p},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=yt(n),l=qe(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&Je(a,!0),a},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=yt(n),l=qe(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&Je(a,!0),a}}}function yt(t){return t[0].parentElement}function Mn(t){let e=de.getTreeNode(le);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Vp(t,e){let n=c.useRef(void 0),r=c.useRef(void 0);ne(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=oe(i?i[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Mn(t)||u.isComposing)return;let d=Ce(o),f=t.current;if(!f||!Ae(d,f))return;let p=yt(f),m=qe(p,{tabbable:!0},f);if(!d)return;m.currentNode=d;let b=u.shiftKey?m.previousNode():m.nextNode();b||(m.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=u.shiftKey?m.previousNode():m.nextNode()),u.preventDefault(),b&&Je(b,!0)},a=u=>{(!le||Vr(le,t))&&Ae(ie(u),t.current)?(le=t,n.current=ie(u)):Mn(t)&&!ct(ie(u),t)?n.current?n.current.focus():le&&le.current&&Lo(le.current):Mn(t)&&(n.current=ie(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=Hr(),f=(d==="virtual"||d===null)&&fl()&&Gu(),p=Ce(o);if(!f&&p&&Mn(t)&&!ct(p,t)){le=t;let b=ie(u);if(b&&b.isConnected){var m;n.current=b,(m=n.current)===null||m===void 0||m.focus()}else le.current&&Lo(le.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",s,!1))}},[t,e]),ne(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function yc(t){return ct(t)}function Ae(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function ct(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of de.traverse(de.getTreeNode(e)))if(n&&Ae(t,n.current))return!0;return!1}function Bp(t){return ct(t,le)}function Vr(t,e){var n;let r=(n=de.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Je(t,e=!1){if(t!=null&&!e)try{hn(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Cc(t,e=!0){let n=t[0].previousElementSibling,r=yt(t),i=qe(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=yt(t),i=qe(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Lo(t,e=!0){Je(Cc(t,e))}function Up(t,e){const n=c.useRef(e);c.useEffect(()=>{if(n.current){le=t;const r=oe(t.current?t.current[0]:void 0);!Ae(Ce(r),le.current)&&t.current&&Lo(t.current)}n.current=!1},[t])}function Wp(t,e,n){ne(()=>{if(e||n)return;let r=t.current;const i=oe(r?r[0]:void 0);let o=l=>{let a=ie(l);Ae(a,t.current)?le=t:yc(a)||(le=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 Ma(t){let e=de.getTreeNode(le);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Gp(t,e,n){const r=c.useRef(typeof document<"u"?Ce(oe(t.current?t.current[0]:void 0)):null);ne(()=>{let i=t.current;const o=oe(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!le||Vr(le,t))&&Ae(Ce(o),t.current)&&(le=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]),ne(()=>{const i=oe(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Mn(t)||l.isComposing)return;let a=i.activeElement;if(!ct(a,t)||!Ma(t))return;let s=de.getTreeNode(t);if(!s)return;let u=s.nodeToRestore,d=qe(i.body,{tabbable:!0});d.currentNode=a;let f=l.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===i.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!ct(f,t))&&u){d.currentNode=u;do f=l.shiftKey?d.previousNode():d.nextNode();while(ct(f,t));l.preventDefault(),l.stopPropagation(),f?Je(f,!0):yc(u)?Je(u,!0):a.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),ne(()=>{const i=oe(t.current?t.current[0]:void 0);if(!e)return;let o=de.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=de.getTreeNode(t);if(!a)return;let s=a.nodeToRestore,u=Ce(i);if(e&&s&&(u&&ct(u,t)||u===i.body&&Ma(t))){let d=de.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){La(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&de.getTreeNode(f.scopeRef)){let p=Cc(f.scopeRef.current,!0);La(p);return}f=f.parent}}})}}}},[t,e])}function La(t){t.dispatchEvent(new CustomEvent(Mo,{bubbles:!0,cancelable:!0}))&&Je(t)}function qe(t,e,n){let r=e!=null&&e.tabbable?zh:Qu,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=oe(i),l=ph(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)&&bc(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 Tl{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 Ao({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 Tl;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 Ao({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ao{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 de=new Tl;function Cn(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=c.useRef({isFocused:!1,isFocusVisible:e||fn()}),[o,l]=c.useState(!1),[a,s]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=c.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),d=c.useCallback(m=>{i.current.isFocused=m,l(m),u()},[u]);up(m=>{i.current.isFocusVisible=m,u()},[],{isTextInput:n});let{focusProps:f}=wl({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=di({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}function qp(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=c.useState(!1);return ne(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let a=qe(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 Sc(t){let e=Xp(oe(t));e!==t&&(e&&Yp(e,t),t&&Zp(t,e))}function Yp(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Zp(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Xp(t){let e=Ce(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Ec=7e3;let Be=null;function Aa(t,e="assertive",n=Ec){Be?Be.announce(t,e,n):(Be=new Jp,(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 Jp{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=Ec){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 wc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},xc={...wc,customError:!0,valid:!1},Pn={isInvalid:!1,validationDetails:wc,validationErrors:[]},Qp=c.createContext({}),Fa="__formValidationState"+Date.now();function ev(t){if(t[Fa]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Fa];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return tv(t)}function tv(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:xc}:null,u=c.useMemo(()=>{if(!l||i==null)return null;let F=nv(l,i);return Ka(F)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=c.useContext(Qp),f=c.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>Fo(d[F])):Fo(d[r]):[],[d,r]),[p,m]=c.useState(d),[b,h]=c.useState(!1);d!==p&&(m(d),h(!1));let v=c.useMemo(()=>Ka(b?[]:f),[b,f]),g=c.useRef(Pn),[C,S]=c.useState(Pn),P=c.useRef(Pn),$=()=>{if(!w)return;x(!1);let F=u||o||g.current;zi(F,P.current)||(P.current=F,S(F))},[w,x]=c.useState(!1);return c.useEffect($),{realtimeValidation:s||v||u||o||Pn,displayValidation:a==="native"?s||v||C:s||v||u||o||C,updateValidation(F){a==="aria"&&!zi(C,F)?S(F):g.current=F},resetValidation(){let F=Pn;zi(F,P.current)||(P.current=F,S(F)),a==="native"&&x(!1),h(!0)},commitValidation(){a==="native"&&x(!0),h(!0)}}}function Fo(t){return t?Array.isArray(t)?t:[t]:[]}function nv(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Fo(n)}return[]}function Ka(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:xc}:null}function zi(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 rv(t,e,n){let{validationBehavior:r,focus:i}=t;ne(()=>{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(ov(n.current))}});let o=fe(()=>{e.resetValidation()}),l=fe(s=>{var u;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!s.defaultPrevented&&n&&d&&lv(d)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),cc("keyboard")}s.preventDefault()}),a=fe(()=>{e.commitValidation()});c.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let u=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),u==null||u.addEventListener("reset",o),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),u==null||u.removeEventListener("reset",o)}},[n,l,a,o,r])}function iv(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 ov(t){return{isInvalid:!t.validity.valid,validationDetails:iv(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function lv(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function $c(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Se(e);let l=Se(),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=li({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function av(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=$c(t),a=Et([!!e,!!n,r,i]),s=Et([!!e,!!n,r,i]);return l=re(l,{"aria-describedby":[a,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}const ja={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 Pc(t={}){let{style:e,isFocusable:n}=t,[r,i]=c.useState(!1),{focusWithinProps:o}=di({isDisabled:!n,onFocusWithinChange:a=>i(a)}),l=c.useMemo(()=>r?e:e?{...ja,...e}:ja,[r]);return{visuallyHiddenProps:{...o,style:l}}}function sv(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=Pc(t);return c.createElement(n,re(o,l),e)}const Ye={top:"top",bottom:"top",left:"left",right:"left"},Br={top:"bottom",bottom:"top",left:"right",right:"left"},uv={top:"left",left:"top"},Ko={top:"height",left:"width"},Dc={width:"totalWidth",height:"totalHeight"},cr={};let ve=typeof document<"u"?window.visualViewport:null;function Ha(t){let e=0,n=0,r=0,i=0,o=0,l=0,a={};var s;let u=((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}=an(t)),a.top=t.scrollTop,a.left=t.scrollLeft,r=e,i=n;if(dl()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u){a.top=0,a.left=0;var p;o=(p=ve==null?void 0:ve.pageTop)!==null&&p!==void 0?p:0;var m;l=(m=ve==null?void 0:ve.pageLeft)!==null&&m!==void 0?m:0}return{width:e,height:n,totalWidth:r,totalHeight:i,scroll:a,top:o,left:l}}function cv(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function za(t,e,n,r,i,o,l){var a;let s=(a=i.scroll[t])!==null&&a!==void 0?a:0,u=r[Ko[t]],d=r.scroll[Ye[t]]+o,f=u+r.scroll[Ye[t]]-o,p=e-s+l[t]-r[Ye[t]],m=e-s+n+l[t]-r[Ye[t]];return p<d?d-p:m>f?Math.max(f-m,d-p):0}function dv(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 Va(t){if(cr[t])return cr[t];let[e,n]=t.split(" "),r=Ye[e]||"right",i=uv[r];Ye[n]||(n="center");let o=Ko[r],l=Ko[i];return cr[t]={placement:e,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:l},cr[t]}function Vi(t,e,n,r,i,o,l,a,s,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:m,size:b,crossSize:h}=r,v={};var g;v[m]=(g=t[m])!==null&&g!==void 0?g:0;var C,S,P,$;f==="center"?v[m]+=(((C=t[h])!==null&&C!==void 0?C:0)-((S=n[h])!==null&&S!==void 0?S:0))/2:f!==m&&(v[m]+=((P=t[h])!==null&&P!==void 0?P:0)-(($=n[h])!==null&&$!==void 0?$:0)),v[m]+=o;const w=t[m]-n[h]+s+u,x=t[m]+t[h]-s-u;if(v[m]=Po(v[m],w,x),d===p){const R=a?l[b]:e[Dc[b]];v[Br[p]]=Math.floor(R-t[p]+i)}else v[p]=Math.floor(t[p]+t[b]+i);return v}function fv(t,e,n,r,i,o,l,a){const s=r?n.height:e[Dc.height];var u;let d=t.top!=null?n.top+t.top:n.top+(s-((u=t.bottom)!==null&&u!==void 0?u:0)-l);var f,p,m,b,h,v;let g=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)+((m=i.bottom)!==null&&m!==void 0?m: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)+((v=i.bottom)!==null&&v!==void 0?v:0)+o));return Math.min(e.height-o*2,g)}function Ba(t,e,n,r,i,o){let{placement:l,axis:a,size:s}=o;var u,d;if(l===a)return Math.max(0,n[a]-t[a]-((u=t.scroll[a])!==null&&u!==void 0?u:0)+e[a]-((d=r[a])!==null&&d!==void 0?d:0)-r[Br[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[Br[a]]-i)}function hv(t,e,n,r,i,o,l,a,s,u,d,f,p,m,b,h){let v=Va(t),{size:g,crossAxis:C,crossSize:S,placement:P,crossPlacement:$}=v,w=Vi(e,a,n,v,d,f,u,p,b,h),x=d,R=Ba(a,u,e,i,o+d,v);if(l&&r[g]>R){let j=Va(`${Br[P]} ${$}`),K=Vi(e,a,n,j,d,f,u,p,b,h);Ba(a,u,e,i,o+d,j)>R&&(v=j,w=K,x=d)}let H="bottom";v.axis==="top"?v.placement==="top"?H="top":v.placement==="bottom"&&(H="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?H="bottom":v.crossPlacement==="bottom"&&(H="top"));let F=za(C,w[C],n[S],a,s,o,u);w[C]+=F;let E=fv(w,a,u,p,i,o,n.height,H);m&&m<E&&(E=m),n.height=Math.min(n.height,E),w=Vi(e,a,n,v,x,f,u,p,b,h),F=za(C,w[C],n[S],a,s,o,u),w[C]+=F;let L={},V=e[C]+.5*e[S]-w[C]-i[Ye[C]];const A=b/2+h;var B,I,O,k;const W=Ye[C]==="left"?((B=i.left)!==null&&B!==void 0?B:0)+((I=i.right)!==null&&I!==void 0?I:0):((O=i.top)!==null&&O!==void 0?O:0)+((k=i.bottom)!==null&&k!==void 0?k:0),_=n[S]-W-b/2-h,M=e[C]+b/2-(w[C]+i[Ye[C]]),T=e[C]+e[S]-b/2-(w[C]+i[Ye[C]]),N=Po(V,M,T);return L[C]=Po(N,A,_),{position:w,maxHeight:E,arrowOffsetLeft:L.left,arrowOffsetTop:L.top,placement:v.placement}}function pv(t){let{placement:e,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,m=r instanceof HTMLElement?vv(r):document.documentElement,b=m===document.documentElement;const h=window.getComputedStyle(m).position;let v=!!h&&h!=="static",g=b?an(n):Ua(n,m);if(!b){let{marginTop:L,marginLeft:V}=window.getComputedStyle(n);g.top+=parseInt(L,10)||0,g.left+=parseInt(V,10)||0}let C=an(r),S=dv(r);var P,$;C.width+=((P=S.left)!==null&&P!==void 0?P:0)+(($=S.right)!==null&&$!==void 0?$:0);var w,x;C.height+=((w=S.top)!==null&&w!==void 0?w:0)+((x=S.bottom)!==null&&x!==void 0?x:0);let R=cv(i),H=Ha(a),F=Ha(m),E=a.tagName==="BODY"?an(m):Ua(m,a);return m.tagName==="HTML"&&a.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),hv(e,g,C,R,S,o,l,H,F,E,s,u,v,d,f,p)}function an(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 Ua(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=an(t);let i=an(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 vv(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Wa(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Wa(e);)e=e.parentElement;return e||document.documentElement}function Wa(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 Tc=new WeakMap;function gv(t){let{triggerRef:e,isOpen:n,onClose:r}=t;c.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||Tc.get(e.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,e])}let ce=typeof document<"u"?window.visualViewport:null;function mv(t){let{direction:e}=Lt(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:b,maxHeight:h,arrowBoundaryOffset:v=0}=t,[g,C]=c.useState(null),S=[p,l,i.current,r.current,o.current,a,s,u,d,f,m,e,h,v,n],P=c.useRef(ce==null?void 0:ce.scale);c.useEffect(()=>{m&&(P.current=ce==null?void 0:ce.scale)},[m]);let $=c.useCallback(()=>{if(p===!1||!m||!i.current||!r.current||!u||(ce==null?void 0:ce.scale)!==P.current)return;let F=null;if(o.current&&o.current.contains(document.activeElement)){var E;let k=(E=document.activeElement)===null||E===void 0?void 0:E.getBoundingClientRect(),W=o.current.getBoundingClientRect();var L;if(F={type:"top",offset:((L=k==null?void 0:k.top)!==null&&L!==void 0?L:0)-W.top},F.offset>W.height/2){F.type="bottom";var V;F.offset=((V=k==null?void 0:k.bottom)!==null&&V!==void 0?V:0)-W.bottom}}let A=i.current;if(!h&&i.current){var B;A.style.top="0px",A.style.bottom="";var I;A.style.maxHeight=((I=(B=window.visualViewport)===null||B===void 0?void 0:B.height)!==null&&I!==void 0?I:window.innerHeight)+"px"}let O=pv({placement:yv(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:a,shouldFlip:s,boundaryElement:u,offset:d,crossOffset:f,maxHeight:h,arrowSize:n,arrowBoundaryOffset:v});if(O.position){if(A.style.top="",A.style.bottom="",A.style.left="",A.style.right="",Object.keys(O.position).forEach(k=>A.style[k]=O.position[k]+"px"),A.style.maxHeight=O.maxHeight!=null?O.maxHeight+"px":"",F&&document.activeElement&&o.current){let k=document.activeElement.getBoundingClientRect(),W=o.current.getBoundingClientRect(),_=k[F.type]-W[F.type];o.current.scrollTop+=_-F.offset}C(O)}},S);ne($,S),bv($),xo({ref:i,onResize:$}),xo({ref:r,onResize:$});let w=c.useRef(!1);ne(()=>{let F,E=()=>{w.current=!0,clearTimeout(F),F=setTimeout(()=>{w.current=!1},500),$()},L=()=>{w.current&&E()};return ce==null||ce.addEventListener("resize",E),ce==null||ce.addEventListener("scroll",L),()=>{ce==null||ce.removeEventListener("resize",E),ce==null||ce.removeEventListener("scroll",L)}},[$]);let x=c.useCallback(()=>{w.current||b==null||b()},[b,w]);gv({triggerRef:r,isOpen:m,onClose:b&&x});var R,H;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...g==null?void 0:g.position,maxHeight:(R=g==null?void 0:g.maxHeight)!==null&&R!==void 0?R:"100vh"}},placement:(H=g==null?void 0:g.placement)!==null&&H!==void 0?H:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:g==null?void 0:g.arrowOffsetLeft,top:g==null?void 0:g.arrowOffsetTop}},updatePosition:$}}function bv(t){ne(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function yv(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Ue=[];function Cv(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=t;c.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()},u=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())};hp({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=di({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||Bp(b.relatedTarget)||(!a||a(b.relatedTarget))&&(n==null||n())}}),m=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:m}}}function Sv(t,e,n){let{type:r}=t,{isOpen:i}=e;c.useEffect(()=>{n&&n.current&&Tc.set(n.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=Se();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const Bi=typeof document<"u"&&window.visualViewport,Ev=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let dr=0,Ui;function wv(t={}){let{isDisabled:e}=t;ne(()=>{if(!e)return dr++,dr===1&&(ri()?Ui=$v():Ui=xv()),()=>{dr--,dr===0&&Ui()}},[e])}function xv(){let t=window.innerWidth-document.documentElement.clientWidth;return Pt(t>0&&("scrollbarGutter"in document.documentElement.style?Ct(document.documentElement,"scrollbarGutter","stable"):Ct(document.documentElement,"paddingRight",`${t}px`)),Ct(document.documentElement,"overflow","hidden"))}function $v(){let t,e,n=u=>{t=Zu(u.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=Ct(t,"overscrollBehavior","contain"))},r=u=>{if(!t||t===document.documentElement||t===document.body){u.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&u.preventDefault()},i=()=>{e&&e()},o=u=>{let d=u.target;Pv(d)&&(a(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Bi&&(Bi.height<window.innerHeight?requestAnimationFrame(()=>{Ga(d)}):Bi.addEventListener("resize",()=>Ga(d),{once:!0}))}))},l=null,a=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;l=Pt(Dn(window,"scroll",u),Ct(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ct(document.documentElement,"overflow","hidden"),Ct(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Pt(Dn(document,"touchstart",n,{passive:!1,capture:!0}),Dn(document,"touchmove",r,{passive:!1,capture:!0}),Dn(document,"touchend",i,{passive:!1,capture:!0}),Dn(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),s()}}function Ct(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Dn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Ga(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Zu(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 Pv(t){return t instanceof HTMLInputElement&&!Ev.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const Dv=c.createContext({});function Tv(){var t;return(t=c.useContext(Dv))!==null&&t!==void 0?t:{}}var _c={};_c={dismiss:"تجاهل"};var Ic={};Ic={dismiss:"Отхвърляне"};var Oc={};Oc={dismiss:"Odstranit"};var kc={};kc={dismiss:"Luk"};var Nc={};Nc={dismiss:"Schließen"};var Rc={};Rc={dismiss:"Απόρριψη"};var Mc={};Mc={dismiss:"Dismiss"};var Lc={};Lc={dismiss:"Descartar"};var Ac={};Ac={dismiss:"Lõpeta"};var Fc={};Fc={dismiss:"Hylkää"};var Kc={};Kc={dismiss:"Rejeter"};var jc={};jc={dismiss:"התעלם"};var Hc={};Hc={dismiss:"Odbaci"};var zc={};zc={dismiss:"Elutasítás"};var Vc={};Vc={dismiss:"Ignora"};var Bc={};Bc={dismiss:"閉じる"};var Uc={};Uc={dismiss:"무시"};var Wc={};Wc={dismiss:"Atmesti"};var Gc={};Gc={dismiss:"Nerādīt"};var qc={};qc={dismiss:"Lukk"};var Yc={};Yc={dismiss:"Negeren"};var Zc={};Zc={dismiss:"Zignoruj"};var Xc={};Xc={dismiss:"Descartar"};var Jc={};Jc={dismiss:"Dispensar"};var Qc={};Qc={dismiss:"Revocare"};var ed={};ed={dismiss:"Пропустить"};var td={};td={dismiss:"Zrušiť"};var nd={};nd={dismiss:"Opusti"};var rd={};rd={dismiss:"Odbaci"};var id={};id={dismiss:"Avvisa"};var od={};od={dismiss:"Kapat"};var ld={};ld={dismiss:"Скасувати"};var ad={};ad={dismiss:"取消"};var sd={};sd={dismiss:"關閉"};var ud={};ud={"ar-AE":_c,"bg-BG":Ic,"cs-CZ":Oc,"da-DK":kc,"de-DE":Nc,"el-GR":Rc,"en-US":Mc,"es-ES":Lc,"et-EE":Ac,"fi-FI":Fc,"fr-FR":Kc,"he-IL":jc,"hr-HR":Hc,"hu-HU":zc,"it-IT":Vc,"ja-JP":Bc,"ko-KR":Uc,"lt-LT":Wc,"lv-LV":Gc,"nb-NO":qc,"nl-NL":Yc,"pl-PL":Zc,"pt-BR":Xc,"pt-PT":Jc,"ro-RO":Qc,"ru-RU":ed,"sk-SK":td,"sl-SI":nd,"sr-SP":rd,"sv-SE":id,"tr-TR":od,"uk-UA":ld,"zh-CN":ad,"zh-TW":sd};function _v(t){return t&&t.__esModule?t.default:t}function qa(t){let{onDismiss:e,...n}=t,r=mc(_v(ud),"@react-aria/overlays"),i=li(n,r.format("dismiss")),o=()=>{e&&e()};return c.createElement(sv,null,c.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let Tn=new WeakMap,xe=[];function Iv(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 u=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let m of n)if(p.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(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 u;let d=(u=Tn.get(s))!==null&&u!==void 0?u:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),r.add(s),Tn.set(s,d+1))};xe.length&&xe[xe.length-1].disconnect(),i(e);let l=new MutationObserver(s=>{for(let u of s)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of u.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 xe.push(a),()=>{l.disconnect();for(let s of r){let u=Tn.get(s);u!=null&&(u===1?(s.removeAttribute("aria-hidden"),Tn.delete(s)):Tn.set(s,u-1))}a===xe[xe.length-1]?(xe.pop(),xe.length&&xe[xe.length-1].observe()):xe.splice(xe.indexOf(a),1)}}function Ov(t){let e=xe[xe.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function kv(t,e){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:o,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=t,u=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=Cv({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!o||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},i??r),{overlayProps:p,arrowProps:m,placement:b}=mv({...s,targetRef:n,overlayRef:r,isOpen:e.isOpen,onClose:o&&!u?e.close:null});return wv({isDisabled:o||!e.isOpen}),ne(()=>{if(e.isOpen&&r.current){var h,v;return o?Ov((h=i==null?void 0:i.current)!==null&&h!==void 0?h:r.current):Iv([(v=i==null?void 0:i.current)!==null&&v!==void 0?v:r.current])}},[o,e.isOpen,r,i]),{popoverProps:re(d,p),arrowProps:m,underlayProps:f,placement:b}}const Nv=c.createContext(null);function Ya(t){let e=Jn(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=c.useState(!1),l=c.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=Tv();if(!t.portalContainer&&a&&(n=a()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=c.createElement(Dl,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},s)),s=c.createElement(Nv.Provider,{value:l},c.createElement(dp,null,s)),Rt.createPortal(s,n)}const _l=new WeakMap;function Rv(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Mv(t,e){let n=_l.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Rv(e)}`}function jo(t){return wh()?t.altKey:t.ctrlKey}function xr(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 cd=new WeakMap;function Lv(t){let e=Se();return cd.set(t,e),e}function Av(t){return cd.get(t)}const Fv=1e3;function dd(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=c.useRef({search:"",timeout:void 0}).current,o=l=>{let a=Kv(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=""},Fv)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Kv(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function fd(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:m,scrollRef:b=r,linkBehavior:h="action"}=t,{direction:v}=Lt(),g=ii(),C=O=>{var k;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((k=r.current)===null||k===void 0)&&k.contains(O.target)))return;const W=(q,te)=>{if(q!=null){if(e.isLink(q)&&h==="selection"&&u&&!jo(O)){Rt.flushSync(()=>{e.setFocusedKey(q,te)});let ue=xr(r,q),ee=e.getItemProps(q);ue&&g.open(ue,O,ee.href,ee.routerOptions);return}if(e.setFocusedKey(q,te),e.isLink(q)&&h==="override")return;O.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&!jo(O)&&e.replaceSelection(q)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var _,M,T;let q=e.focusedKey!=null?(_=n.getKeyBelow)===null||_===void 0?void 0:_.call(n,e.focusedKey):(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n);q==null&&o&&(q=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n,e.focusedKey)),q!=null&&(O.preventDefault(),W(q))}break;case"ArrowUp":if(n.getKeyAbove){var N,j,K;let q=e.focusedKey!=null?(N=n.getKeyAbove)===null||N===void 0?void 0:N.call(n,e.focusedKey):(j=n.getLastKey)===null||j===void 0?void 0:j.call(n);q==null&&o&&(q=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,e.focusedKey)),q!=null&&(O.preventDefault(),W(q))}break;case"ArrowLeft":if(n.getKeyLeftOf){var z,U,G;let q=e.focusedKey!=null?(z=n.getKeyLeftOf)===null||z===void 0?void 0:z.call(n,e.focusedKey):null;q==null&&o&&(q=v==="rtl"?(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n,e.focusedKey):(G=n.getLastKey)===null||G===void 0?void 0:G.call(n,e.focusedKey)),q!=null&&(O.preventDefault(),W(q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Y,Q,pe;let q=e.focusedKey!=null?(Y=n.getKeyRightOf)===null||Y===void 0?void 0:Y.call(n,e.focusedKey):null;q==null&&o&&(q=v==="rtl"?(Q=n.getLastKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey):(pe=n.getFirstKey)===null||pe===void 0?void 0:pe.call(n,e.focusedKey)),q!=null&&(O.preventDefault(),W(q,v==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&O.shiftKey)return;O.preventDefault();let q=n.getFirstKey(e.focusedKey,Jt(O));e.setFocusedKey(q),q!=null&&(Jt(O)&&O.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&e.replaceSelection(q))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&O.shiftKey)return;O.preventDefault();let q=n.getLastKey(e.focusedKey,Jt(O));e.setFocusedKey(q),q!=null&&(Jt(O)&&O.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(q):u&&e.replaceSelection(q))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let q=n.getKeyPageBelow(e.focusedKey);q!=null&&(O.preventDefault(),W(q))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let q=n.getKeyPageAbove(e.focusedKey);q!=null&&(O.preventDefault(),W(q))}break;case"a":Jt(O)&&e.selectionMode==="multiple"&&a!==!0&&(O.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(O.shiftKey)r.current.focus();else{let q=qe(r.current,{tabbable:!0}),te,ue;do ue=q.lastChild(),ue&&(te=ue);while(ue);te&&!te.contains(document.activeElement)&&ze(te)}break}}},S=c.useRef({top:0,left:0});or(b,"scroll",m?void 0:()=>{var O,k,W,_;S.current={top:(W=(O=b.current)===null||O===void 0?void 0:O.scrollTop)!==null&&W!==void 0?W:0,left:(_=(k=b.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&_!==void 0?_:0}});let P=O=>{if(e.isFocused){O.currentTarget.contains(O.target)||e.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(e.setFocused(!0),e.focusedKey==null){var k,W;let T=j=>{j!=null&&(e.setFocusedKey(j),u&&!e.isSelected(j)&&e.replaceSelection(j))},N=O.relatedTarget;var _,M;N&&O.currentTarget.compareDocumentPosition(N)&Node.DOCUMENT_POSITION_FOLLOWING?T((_=e.lastSelectedKey)!==null&&_!==void 0?_:(k=n.getLastKey)===null||k===void 0?void 0:k.call(n)):T((M=e.firstSelectedKey)!==null&&M!==void 0?M:(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n))}else!m&&b.current&&(b.current.scrollTop=S.current.top,b.current.scrollLeft=S.current.left);if(e.focusedKey!=null&&b.current){let T=xr(r,e.focusedKey);T instanceof HTMLElement&&(!T.contains(document.activeElement)&&!f&&ze(T),Hr()==="keyboard"&&ha(T,{containingElement:r.current}))}}},$=O=>{O.currentTarget.contains(O.relatedTarget)||e.setFocused(!1)},w=c.useRef(!1);or(r,Ah,f?O=>{let{detail:k}=O;O.stopPropagation(),e.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(w.current=!0)}:void 0);let x=fe(()=>{var O,k;let W=(k=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&k!==void 0?k:null;W==null?(Sc(r.current),e.collection.size>0&&(w.current=!1)):(e.setFocusedKey(W),w.current=!1)});da(()=>{w.current&&x()},[e.collection,x]);let R=fe(()=>{e.collection.size>0&&(w.current=!1)});da(()=>{R()},[e.focusedKey,R]),or(r,Lh,f?O=>{var k;O.stopPropagation(),e.setFocused(!1),!((k=O.detail)===null||k===void 0)&&k.clearFocusKey&&e.setFocusedKey(null)}:void 0);const H=c.useRef(i),F=c.useRef(!1);c.useEffect(()=>{if(H.current){var O,k;let M=null;var W;i==="first"&&(M=(W=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&W!==void 0?W:null);var _;i==="last"&&(M=(_=(k=n.getLastKey)===null||k===void 0?void 0:k.call(n))!==null&&_!==void 0?_:null);let T=e.selectedKeys;if(T.size){for(let N of T)if(e.canSelectItem(N)){M=N;break}}e.setFocused(!0),e.setFocusedKey(M),M==null&&!f&&r.current&&hn(r.current),e.collection.size>0&&(H.current=!1,F.current=!0)}});let E=c.useRef(e.focusedKey),L=c.useRef(null);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==E.current||F.current)&&b.current&&r.current){let O=Hr(),k=xr(r,e.focusedKey);if(!(k instanceof HTMLElement))return;(O==="keyboard"||F.current)&&(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{b.current&&(Xu(b.current,k),O!=="virtual"&&ha(k,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&E.current!=null&&r.current&&hn(r.current),E.current=e.focusedKey,F.current=!1}),c.useEffect(()=>()=>{L.current&&cancelAnimationFrame(L.current)},[]),or(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),e.setFocused(!0)});let V={onKeyDown:C,onFocus:P,onBlur:$,onMouseDown(O){b.current===O.target&&O.preventDefault()}},{typeSelectProps:A}=dd({keyboardDelegate:n,selectionManager:e});d||(V=re(A,V));let B;f||(B=e.focusedKey==null?0:-1);let I=Lv(e.collection);return{collectionProps:re(V,{tabIndex:B,"data-collection":I})}}function Il(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=ii();e=Se(e);let m=k=>{if(k.pointerType==="keyboard"&&jo(k))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let W=n.getItemProps(r);p.open(i.current,k,W.href,W.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&&(Jt(k)||k.pointerType==="touch"||k.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};c.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Sc(i.current):a?a():document.activeElement!==i.current&&i.current&&hn(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",v=n.isLink(r)&&f!=="selection"&&f!=="none",g=!s&&n.canSelectItem(r)&&!h,C=(u||v)&&!s,S=C&&(n.selectionBehavior==="replace"?!g:!g||n.isEmpty),P=C&&g&&n.selectionBehavior==="replace",$=S||P,w=c.useRef(null),x=$&&g,R=c.useRef(!1),H=c.useRef(!1),F=k=>{if(u&&u(),v&&i.current){let W=n.getItemProps(r);p.open(i.current,k,W.href,W.routerOptions)}},E={ref:i};o?(E.onPressStart=k=>{w.current=k.pointerType,R.current=x,k.pointerType==="keyboard"&&(!$||Xa())&&m(k)},d?(E.onPressUp=S?void 0:k=>{k.pointerType==="mouse"&&g&&m(k)},E.onPress=S?F:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&g&&m(k)}):E.onPress=k=>{if(S||P&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!Za())return;F(k)}else k.pointerType!=="keyboard"&&g&&m(k)}):(E.onPressStart=k=>{w.current=k.pointerType,R.current=x,H.current=S,g&&(k.pointerType==="mouse"&&!S||k.pointerType==="keyboard"&&(!C||Xa()))&&m(k)},E.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&$&&Za()||k.pointerType==="mouse"&&H.current)&&($?F(k):g&&m(k))}),b["data-collection"]=Av(n.collection),b["data-key"]=r,E.preventFocusOnPress=l,l&&(E=re(E,{onPressStart(k){k.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(k){k.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:L,isPressed:V}=ui(E),A=P?k=>{w.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),F(k))}:void 0,{longPressProps:B}=hc({isDisabled:!x,onLongPress(k){k.pointerType==="touch"&&(m(k),n.setSelectionBehavior("toggle"))}}),I=k=>{w.current==="touch"&&R.current&&k.preventDefault()},O=n.isLink(r)?k=>{Dt.isOpening||k.preventDefault()}:void 0;return{itemProps:re(b,g||S||l&&!s?L:{},x?B:{},{onDoubleClick:A,onDragStartCapture:I,onClick:O,id:e},l?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:V,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:g,hasAction:$}}function Za(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Xa(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class Ja{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=e!=null?xr(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 Ol{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&&!Vn(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&&!Vn(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 Ja(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 Ja(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function hd(t){let{selectionManager:e,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=t,a=Pl({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,u=c.useMemo(()=>o||new Ol({collection:n,disabledKeys:r,disabledBehavior:s,ref:i,collator:a,layoutDelegate:l}),[o,l,n,r,i,a,s]),{collectionProps:d}=fd({...t,ref:i,selectionManager:e,keyboardDelegate:u});return{listProps:d}}function jv(t,e,n){let r=he(t,{labelable:!0}),i=t.selectionBehavior||"toggle",o=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:l}=hd({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=di({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=Se(t.id);_l.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:o});let{labelProps:u,fieldProps:d}=$c({...t,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:re(r,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...re(d,l)})}}class Hv{build(e,n){return this.context=n,Qa(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(c.isValidElement(n)&&n.type===c.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=[];c.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(c.isValidElement(e.element)&&e.element.type===c.Fragment){let v=[];c.Children.forEach(e.element.props.children,C=>{v.push(C)});var o;let g=(o=e.index)!==null&&o!==void 0?o:0;for(const C of v)yield*this.getFullNode({element:C,index:g++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=i?i.key:null,yield v;return}l=n.renderer(e.value)}if(c.isValidElement(l)){let v=l.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let P=l.type;throw new Error(`Unknown element <${P}> in collection.`)}let g=v.getCollectionNode(l.props,this.context);var a;let C=(a=e.index)!==null&&a!==void 0?a:0,S=g.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 x=[...this.getFullNode({...P,key:$,index:C,wrapper:zv(e.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${l.key}`:l.key,i)];for(let R of x){var u,d;R.value=(d=(u=P.value)!==null&&u!==void 0?u: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 <${Wi(R.type)}> in <${Wi((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Wi(e.type)}> is supported.`);C++,yield R}S=g.next(x)}return}if(e.key==null||e.type==null)return;let p=this;var m,b;let h={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(m=e.value)!==null&&m!==void 0?m: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:Qa(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let g of e.childNodes()){g.key!=null&&(g.key=`${h.key}${g.key}`);let C=p.getFullNode({...g,index:v},p.getChildState(n,g),h.key,h);for(let S of C)v++,yield S}})};yield h}constructor(){this.cache=new WeakMap}}function Qa(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 zv(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Wi(t){return t[0].toUpperCase()+t.slice(1)}function pd(t,e,n){let r=c.useMemo(()=>new Hv,[]),{children:i,items:o,collection:l}=t;return c.useMemo(()=>{if(l)return l;let s=r.build({children:i,items:o},n);return e(s)},[r,i,o,l,n,e])}function vd(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Vv(t){return Bv(t)}function Bv(t,e){for(let n of t)return n}function Gi(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...es(t,e),e],i=[...es(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 es(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 ts=new WeakMap;function gd(t){let e=ts.get(t);if(e!=null)return e;let n=0,r=i=>{for(let o of i)o.type==="section"?r(vd(o,t)):o.type==="item"&&n++};return r(t),ts.set(t,n),n}function Uv(t,e,n){var r,i;let{key:o}=t,l=_l.get(e);var a;let s=(a=t.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(o);var u;let d=(u=t.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(o);var f;let p=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var m;let b=(m=t.shouldFocusOnHover)!==null&&m!==void 0?m:l==null?void 0:l.shouldFocusOnHover;var h;let v=(h=t.shouldUseVirtualFocus)!==null&&h!==void 0?h:l==null?void 0:l.shouldUseVirtualFocus;var g;let C=(g=t.isVirtualized)!==null&&g!==void 0?g:l==null?void 0:l.isVirtualized,S=Et(),P=Et(),$={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};ft()&&dl()||($["aria-label"]=t["aria-label"],$["aria-labelledby"]=S,$["aria-describedby"]=P);let w=e.collection.getItem(o);if(C){let O=Number(w==null?void 0:w.index);$["aria-posinset"]=Number.isNaN(O)?void 0:O+1,$["aria-setsize"]=gd(e.collection)}let x=l!=null&&l.onAction?()=>{var O;return l==null||(O=l.onAction)===null||O===void 0?void 0:O.call(l,o)}:void 0,R=Mv(e,o),{itemProps:H,isPressed:F,isFocused:E,hasAction:L,allowsSelection:V}=Il({selectionManager:e.selectionManager,key:o,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&b,isVirtualized:C,shouldUseVirtualFocus:v,isDisabled:s,onAction:x||!(w==null||(r=w.props)===null||r===void 0)&&r.onAction?Pt(w==null||(i=w.props)===null||i===void 0?void 0:i.onAction,x):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:R}),{hoverProps:A}=yn({isDisabled:s||!b,onHoverStart(){fn()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(o))}}),B=he(w==null?void 0:w.props);delete B.id;let I=hl(w==null?void 0:w.props);return{optionProps:{...$,...re(B,H,A,I),id:R},labelProps:{id:S},descriptionProps:{id:P},isFocused:E,isFocusVisible:E&&e.selectionManager.isFocused&&fn(),isSelected:d,isDisabled:s,isPressed:F,allowsSelection:V,hasAction:L}}function Wv(t){let{heading:e,"aria-label":n}=t,r=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}var md={};md={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var bd={};bd={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var yd={};yd={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Cd={};Cd={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Sd={};Sd={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Ed={};Ed={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var wd={};wd={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var xd={};xd={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var $d={};$d={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Pd={};Pd={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Dd={};Dd={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Td={};Td={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var _d={};_d={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Id={};Id={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Od={};Od={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var kd={};kd={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Nd={};Nd={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Rd={};Rd={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Md={};Md={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Ld={};Ld={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Ad={};Ad={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Fd={};Fd={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Kd={};Kd={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var jd={};jd={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Hd={};Hd={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var zd={};zd={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Vd={};Vd={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Bd={};Bd={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Ud={};Ud={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Wd={};Wd={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Gd={};Gd={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var qd={};qd={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Yd={};Yd={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Zd={};Zd={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Xd={};Xd={"ar-AE":md,"bg-BG":bd,"cs-CZ":yd,"da-DK":Cd,"de-DE":Sd,"el-GR":Ed,"en-US":wd,"es-ES":xd,"et-EE":$d,"fi-FI":Pd,"fr-FR":Dd,"he-IL":Td,"hr-HR":_d,"hu-HU":Id,"it-IT":Od,"ja-JP":kd,"ko-KR":Nd,"lt-LT":Rd,"lv-LV":Md,"nb-NO":Ld,"nl-NL":Ad,"pl-PL":Fd,"pt-BR":Kd,"pt-PT":jd,"ro-RO":Hd,"ru-RU":zd,"sk-SK":Vd,"sl-SI":Bd,"sr-SP":Ud,"sv-SE":Wd,"tr-TR":Gd,"uk-UA":qd,"zh-CN":Yd,"zh-TW":Zd};function Gv(t){return t&&t.__esModule?t.default:t}function qv(t,e,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=t,l=Se(),{triggerProps:a,overlayProps:s}=Sv({type:r},e,n),u=m=>{if(!i&&!(o==="longPress"&&!m.altKey)&&n&&n.current)switch(m.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),e.toggle("last");break;default:"continuePropagation"in m&&m.continuePropagation()}},d=mc(Gv(Xd),"@react-aria/menu"),{longPressProps:f}=hc({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!i&&(ze(m.target),e.open(m.pointerType==="virtual"?"first":null))},onPress(m){m.pointerType==="touch"&&!i&&(ze(m.target),e.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?p:f,id:l,onKeyDown:u},menuProps:{...s,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const Jd=new WeakMap;function Yv(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=he(t,{labelable:!0}),{listProps:s}=hd({...l,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Jd.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:re(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:u=>{var d;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=s.onKeyDown)===null||d===void 0||d.call(s,u))}})}}function Zv(t,e,n){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":a,onPressStart:s,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:p,onHoverStart:m,onHoverChange:b,onHoverEnd:h,onKeyDown:v,onKeyUp:g,onFocus:C,onFocusChange:S,onBlur:P,selectionManager:$=e.selectionManager}=t,w=!!a,x=w&&t["aria-expanded"]==="true";var R;let H=(R=t.isDisabled)!==null&&R!==void 0?R:$.isDisabled(i);var F;let E=(F=t.isSelected)!==null&&F!==void 0?F:$.isSelected(i),L=Jd.get(e),V=e.collection.getItem(i),A=t.onClose||L.onClose,B=ii(),I=ee=>{var rt;if(!w){if(!(V==null||(rt=V.props)===null||rt===void 0)&&rt.onAction?V.props.onAction():t.onAction&&t.onAction(i),L.onAction){let En=L.onAction;En(i)}ee.target instanceof HTMLAnchorElement&&V&&B.open(ee.target,ee,V.props.href,V.props.routerOptions)}},O="menuitem";w||($.selectionMode==="single"?O="menuitemradio":$.selectionMode==="multiple"&&(O="menuitemcheckbox"));let k=Et(),W=Et(),_=Et(),M={id:r,"aria-disabled":H||void 0,role:O,"aria-label":t["aria-label"],"aria-labelledby":k,"aria-describedby":[W,_].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":a,"aria-expanded":t["aria-expanded"]};$.selectionMode!=="none"&&!w&&(M["aria-checked"]=E),l&&(M["aria-posinset"]=V==null?void 0:V.index,M["aria-setsize"]=gd(e.collection));let T=ee=>{ee.pointerType==="keyboard"&&I(ee),s==null||s(ee)},N=()=>{!w&&A&&(o??($.selectionMode!=="multiple"||$.isLink(i)))&&A()},j=ee=>{ee.pointerType==="mouse"&&(I(ee),N()),u==null||u(ee)},K=ee=>{ee.pointerType!=="keyboard"&&ee.pointerType!=="mouse"&&(I(ee),N()),d==null||d(ee)},{itemProps:z,isFocused:U}=Il({id:r,selectionManager:$,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:L.shouldUseVirtualFocus}),{pressProps:G,isPressed:Y}=ui({onPressStart:T,onPress:K,onPressUp:j,onPressChange:f,onPressEnd:p,isDisabled:H}),{hoverProps:Q}=yn({isDisabled:H,onHoverStart(ee){!fn()&&!(x&&a)&&($.setFocused(!0),$.setFocusedKey(i)),m==null||m(ee)},onHoverChange:b,onHoverEnd:h}),{keyboardProps:pe}=dc({onKeyDown:ee=>{if(ee.repeat){ee.continuePropagation();return}switch(ee.key){case" ":!H&&$.selectionMode==="none"&&!w&&o!==!1&&A&&A();break;case"Enter":!H&&o!==!1&&!w&&A&&A();break;default:w||ee.continuePropagation(),v==null||v(ee);break}},onKeyUp:g}),{focusProps:q}=wl({onBlur:P,onFocus:C,onFocusChange:S}),te=he(V==null?void 0:V.props);delete te.id;let ue=hl(V==null?void 0:V.props);return{menuItemProps:{...M,...re(te,ue,w?{onFocus:z.onFocus,"data-collection":z["data-collection"],"data-key":z["data-key"]}:z,G,Q,pe,q,L.shouldUseVirtualFocus||w?{onMouseDown:ee=>ee.preventDefault()}:void 0),tabIndex:z.tabIndex!=null&&x&&!L.shouldUseVirtualFocus?-1:z.tabIndex},labelProps:{id:k},descriptionProps:{id:W},keyboardShortcutProps:{id:_},isFocused:U,isFocusVisible:U&&$.isFocused&&fn()&&!x,isSelected:E,isPressed:Y,isDisabled:H}}function Xv(t){let{heading:e,"aria-label":n}=t,r=Se();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?r:void 0}}}const Qd=new WeakMap;function Jv(t,e,n){let{keyboardDelegate:r,isDisabled:i,isRequired:o,name:l,validationBehavior:a="aria"}=t,s=Pl({usage:"search",sensitivity:"base"}),u=c.useMemo(()=>r||new Ol(e.collection,e.disabledKeys,n,s),[r,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:d,menuProps:f}=qv({isDisabled:i,type:"listbox"},e,n),p=R=>{switch(R.key){case"ArrowLeft":{var H,F;R.preventDefault();let V=e.selectedKey!=null?(H=u.getKeyAbove)===null||H===void 0?void 0:H.call(u,e.selectedKey):(F=u.getFirstKey)===null||F===void 0?void 0:F.call(u);V&&e.setSelectedKey(V);break}case"ArrowRight":{var E,L;R.preventDefault();let V=e.selectedKey!=null?(E=u.getKeyBelow)===null||E===void 0?void 0:E.call(u,e.selectedKey):(L=u.getFirstKey)===null||L===void 0?void 0:L.call(u);V&&e.setSelectedKey(V);break}}},{typeSelectProps:m}=dd({keyboardDelegate:u,selectionManager:e.selectionManager,onTypeSelect(R){e.setSelectedKey(R)}}),{isInvalid:b,validationErrors:h,validationDetails:v}=e.displayValidation,{labelProps:g,fieldProps:C,descriptionProps:S,errorMessageProps:P}=av({...t,labelElementType:"span",isInvalid:b,errorMessage:t.errorMessage||h});m.onKeyDown=m.onKeyDownCapture,delete m.onKeyDownCapture;let $=he(t,{labelable:!0}),w=re(m,d,C),x=Se();return Qd.set(e,{isDisabled:i,isRequired:o,name:l,validationBehavior:a}),{labelProps:{...g,onClick:()=>{if(!t.isDisabled){var R;(R=n.current)===null||R===void 0||R.focus(),cc("keyboard")}}},triggerProps:re($,{...w,isDisabled:i,onKeyDown:Pt(w.onKeyDown,p,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[x,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:x},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:v}}function Qv(t,e,n){let r=Qd.get(e)||{},{autoComplete:i,name:o=r.name,isDisabled:l=r.isDisabled}=t,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:u}=Pc();Rh(t.selectRef,e.selectedKey,e.setSelectedKey),rv({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...u,"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 eg(t){let{state:e,triggerRef:n,label:r,name:i,isDisabled:o}=t,l=c.useRef(null),{containerProps:a,selectProps:s}=Qv({...t,selectRef:l},e,n);var u;return e.collection.size<=300?c.createElement("div",{...a,"data-testid":"hidden-select-container"},c.createElement("label",null,r,c.createElement("select",{...s,ref:l},c.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return c.createElement("option",{key:f.key,value:f.key},f.textValue)})))):i?c.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:o,value:(u=e.selectedKey)!==null&&u!==void 0?u:""}):null}function tg(t){let e=he(t,{labelable:!0}),n;return t.orientation==="vertical"&&(n="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":n}}:{separatorProps:e}}const ef=new WeakMap;function Ur(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${ef.get(t)}-${n}-${e}`):""}function ng(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:a}=e,s=r===a,u=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:d,isPressed:f}=Il({selectionManager:l,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=Ur(e,r,"tab"),m=Ur(e,r,"tabpanel"),{tabIndex:b}=d,h=e.collection.getItem(r),v=he(h==null?void 0:h.props,{labelable:!0});delete v.id;let g=hl(h==null?void 0:h.props),{focusableProps:C}=fc({isDisabled:u},n);return{tabProps:re(v,C,g,d,{id:p,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?m:void 0,tabIndex:u?void 0:b,role:"tab"}),isSelected:s,isDisabled:u,isPressed:f}}function rg(t,e,n){let r=qp(n)?void 0:0;var i;const o=Ur(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=li({...t,id:o,"aria-labelledby":Ur(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:re(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class ig{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 og(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:a}=e,{direction:s}=Lt(),u=c.useMemo(()=>new ig(o,s,r,a),[o,a,r,s]),{collectionProps:d}=fd({ref:n,selectionManager:l,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Se();ef.set(e,f);let p=li({...t,id:f});return{tabListProps:{...re(d,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const tf=c.createContext({}),lg=yl(function(e,n){[e,n]=nt(e,n,tf);let{elementType:r="label",...i}=e;return c.createElement(r,{className:"react-aria-Label",...i,ref:n})}),ag=c.createContext(null),sg=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),nf=c.createContext({}),ug=yl(function(e,n){[e,n]=nt(e,n,nf),e=cg(e);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=Kp(e,n),{focusProps:a,isFocused:s,isFocusVisible:u}=Cn(e),{hoverProps:d,isHovered:f}=yn({...e,isDisabled:e.isDisabled||i}),p={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:i??!1},m=De({...e,values:p,defaultClassName:"react-aria-Button"}),b=Se(o.id),h=Se(),v=o["aria-labelledby"];i&&(v?v=`${v} ${h}`:o["aria-label"]&&(v=`${b} ${h}`));let g=c.useRef(i);return c.useEffect(()=>{let C={"aria-labelledby":v||b};(!g.current&&s&&i||g.current&&s&&!i)&&Aa(C,"assertive"),g.current=i},[i,s,v,b]),c.createElement("button",{...he(e,{propNames:sg}),...re(o,a,d),...m,type:o.type==="submit"&&i?"button":o.type,id:b,ref:n,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},c.createElement(ag.Provider,{value:{id:h}},m.children))});function cg(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 kl=c.createContext({}),dg=c.createContext(null);class ns{*[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 fg(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Nl(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=c.useRef(!1),[,a]=c.useState(!1),s=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>rs(t.selectedKeys),[t.selectedKeys]),p=c.useMemo(()=>rs(t.defaultSelectedKeys,new je),[t.defaultSelectedKeys]),[m,b]=ai(f,p,t.onSelectionChange),h=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,g]=c.useState(i);i==="replace"&&v==="toggle"&&typeof m=="object"&&m.size===0&&g("replace");let C=c.useRef(i);return c.useEffect(()=>{i!==C.current&&(g(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:g,get isFocused(){return l.current},setFocused(S){l.current=S,a(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,P="first"){s.current=S,u.current=P,d(S)},selectedKeys:m,setSelectedKeys(S){(r||!fg(S,m))&&b(S)},disabledKeys:h,disabledBehavior:o}}function rs(t,e){return t?t==="all"?"all":new je(t):e}class Qn{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&&Gi(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&&Gi(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?Gi(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=Vv(vd(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 Qn(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 rf(t){let{filter:e,layoutDelegate:n}=t,r=Nl(t),i=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=c.useCallback(u=>e?new ns(e(u)):new ns(u),[e]),l=c.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=pd(t,o,l),s=c.useMemo(()=>new Qn(a,r,{layoutDelegate:n}),[a,r,n]);return of(a,s),{collection:a,disabledKeys:i,selectionManager:s}}function hg(t,e){let n=c.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),r=t.selectionManager.withCollection(n);return of(n,r),{collection:n,selectionManager:r,disabledKeys:t.disabledKeys}}function of(t,e){const n=c.useRef(null);c.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(g=>{const C=n.current.getItem(g);return(C==null?void 0:C.type)==="item"?C:null}).filter(g=>g!==null),p=[...t.getKeys()].map(g=>{const C=t.getItem(g);return(C==null?void 0:C.type)==="item"?C:null}).filter(g=>g!==null);var r,i;const m=((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(m>1?Math.max(((o=d==null?void 0:d.index)!==null&&o!==void 0?o:0)-m+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,v=!1;for(;b>=0;){if(!e.isDisabled(p[b].key)){h=p[b];break}if(b<p.length-1&&!v)b++;else{v=!0;var s,u;b>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(b=(u=d==null?void 0:d.index)!==null&&u!==void 0?u:0),b--}}e.setFocusedKey(h?h.key:null)}n.current=t},[t,e])}function lf(t){var e;let[n,r]=ai(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=c.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:a}=rf({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{if(u==="all")return;var d;let f=(d=u.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 Rl(t){let[e,n]=ai(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=c.useCallback(()=>{n(!0)},[n]),i=c.useCallback(()=>{n(!1)},[n]),o=c.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function pg(t){let{initialItems:e=[],initialSelectedKeys:n,getKey:r=h=>{var v;return(v=h.id)!==null&&v!==void 0?v:h.key},getChildren:i=h=>h.children}=t,[o,l]=c.useState(()=>f(e,new Map)),{items:a,nodeMap:s}=o,[u,d]=c.useState(new Set(n||[]));function f(h=[],v,g){return h==null&&(h=[]),{items:h.map(C=>{let S={key:r(C),parentKey:g??null,value:C,children:null};return S.children=f(i(C),v,S.key).items,v.set(S.key,S),S}),nodeMap:v}}function p(h,v,g,C){let S=v==null?null:C.get(v);if(S==null)return{items:h,nodeMap:C};let P=new Map(C),$=g(S);for($==null?b(S,P):m($,P);S&&S.parentKey;){let x=P.get(S.parentKey),R={key:x.key,parentKey:x.parentKey,value:x.value,children:null},H=x.children;$==null&&H&&(H=H.filter(F=>F!==S));var w;R.children=(w=H==null?void 0:H.map(F=>F===S?$:F))!==null&&w!==void 0?w:null,P.set(R.key,R),$=R,S=x}return $==null&&(h=h.filter(x=>x!==S)),{items:h.map(x=>x===S?$:x),nodeMap:P}}function m(h,v){if(v.set(h.key,h),h.children)for(let g of h.children)m(g,v)}function b(h,v){if(v.delete(h.key),h.children)for(let g of h.children)b(g,v)}return{items:a,selectedKeys:u,setSelectedKeys:d,getItem(h){return s.get(h)},insert(h,v,...g){l(({items:C,nodeMap:S})=>{let{items:P,nodeMap:$}=f(g,S,h);return h==null?{items:[...C.slice(0,v),...P,...C.slice(v)],nodeMap:$}:p(C,h,w=>({key:w.key,parentKey:w.parentKey,value:w.value,children:[...w.children.slice(0,v),...P,...w.children.slice(v)]}),$)})},insertBefore(h,...v){let g=s.get(h);if(!g)return;let C=s.get(g.parentKey),P=(C?C.children:a).indexOf(g);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,P,...v)},insertAfter(h,...v){let g=s.get(h);if(!g)return;let C=s.get(g.parentKey),P=(C?C.children:a).indexOf(g);var $;this.insert(($=C==null?void 0:C.key)!==null&&$!==void 0?$:null,P+1,...v)},prepend(h,...v){this.insert(h,0,...v)},append(h,...v){if(h==null)this.insert(null,a.length,...v);else{let g=s.get(h);if(!g)return;this.insert(h,g.children.length,...v)}},remove(...h){if(h.length===0)return;let v=a,g=s,C;for(let P of h)C=p(v,P,()=>null,g),g=C.nodeMap,v=C.items;l(C);let S=new Set(u);for(let P of u)C.nodeMap.has(P)||S.delete(P);d(S)},removeSelectedItems(){this.remove(...u)},move(h,v,g){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 x={...P,parentKey:v};return v==null?(m(x,w),{items:[...$.slice(0,g),x,...$.slice(g)],nodeMap:w}):p($,v,R=>({key:R.key,parentKey:R.parentKey,value:R.value,children:[...R.children.slice(0,g),x,...R.children.slice(g)]}),w)})},moveBefore(h,v){l(g=>{let{items:C,nodeMap:S}=g,P=S.get(h);if(!P)return g;var $;let w=($=P.parentKey)!==null&&$!==void 0?$:null,x=null;var R;w!=null&&(x=(R=S.get(w))!==null&&R!==void 0?R:null);let H=x!=null&&x.children?x.children.indexOf(P):C.indexOf(P);return is(g,v,x,H,p,m)})},moveAfter(h,v){l(g=>{let{items:C,nodeMap:S}=g,P=S.get(h);if(!P)return g;var $;let w=($=P.parentKey)!==null&&$!==void 0?$:null,x=null;var R;w!=null&&(x=(R=S.get(w))!==null&&R!==void 0?R:null);let H=x!=null&&x.children?x.children.indexOf(P):C.indexOf(P);return H++,is(g,v,x,H,p,m)})},update(h,v){l(({items:g,nodeMap:C})=>p(g,h,S=>{let P={key:S.key,parentKey:S.parentKey,value:v,children:null},$=f(i(v),C,P.key);return P.children=$.items,P},C))}}}function is(t,e,n,r,i,o){let{items:l,nodeMap:a}=t,s=n,u=new Set(e);for(;(s==null?void 0:s.parentKey)!=null;){if(u.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],m=new Map,b=[],h=l,v=a,g=0;function C(w,{inorder:x,postorder:R}){x==null||x(w);var H;if(w!=null)for(let F of(H=w.children)!==null&&H!==void 0?H:[])C(F,{inorder:x,postorder:R}),R==null||R(F)}function S(w){p.includes(w.key)&&m.set(w.key,g++)}function P(w){if(p.includes(w.key)){var x;b.push({...v.get(w.key),parentKey:(x=n==null?void 0:n.key)!==null&&x!==void 0?x:null});let{items:R,nodeMap:H}=i(h,w.key,()=>null,v);h=R,v=H}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,x)=>m.get(w.key)>m.get(x.key)?1:-1);return!n||n.key==null?($.forEach(w=>{o(w,v)}),{items:[...h.slice(0,r),...$,...h.slice(r)],nodeMap:v}):i(h,n.key,w=>({key:w.key,parentKey:w.parentKey,value:w.value,children:[...w.children.slice(0,r),...$,...w.children.slice(r)]}),v)}function vg(t){let e=Rl(t),[n,r]=c.useState(null),[i,o]=c.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:n,...e,open(u=null){r(u),e.open()},toggle(u=null){r(u),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(u,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),u])},closeSubmenu:(u,d)=>{o(f=>f[d]===u?f.slice(0,d):f)}}}function gg(t){let e=Rl(t),[n,r]=c.useState(null),i=lf({...t,onSelectionChange:u=>{t.onSelectionChange!=null&&t.onSelectionChange(u),e.close(),o.commitValidation()}}),o=ev({...t,value:i.selectedKey}),[l,a]=c.useState(!1),s=c.useMemo(()=>{var u;return i.collection.size===0||i.collection.size===1&&((u=i.collection.getItem(i.collection.getFirstKey()))===null||u===void 0?void 0:u.type)==="loader"},[i.collection]);return{...o,...i,...e,focusStrategy:n,open(u=null){s||(r(u),e.open())},toggle(u=null){s||(r(u),e.toggle())},isFocused:l,setFocused:a}}function mg(t){var e,n;let r=lf({...t,onSelectionChange:t.onSelectionChange?s=>{var u;s!=null&&((u=t.onSelectionChange)===null||u===void 0||u.call(t,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:os(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=c.useRef(l);return c.useEffect(()=>{let s=l;t.selectedKey==null&&(i.isEmpty||s==null||!o.getItem(s))&&(s=os(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 os(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 bg{*[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 yg(t){let{onExpandedChange:e}=t,[n,r]=ai(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),i=Nl(t),o=c.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=pd(t,c.useCallback(s=>new bg(s,{expandedKeys:n}),[n]),null);return c.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:o,toggleKey:s=>{r(Cg(n,s))},setExpandedKeys:r,selectionManager:new Qn(l,i)}}function Cg(t,e){let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}const Sg=c.createContext(null),Ho=c.createContext(null),af=c.createContext(null),sf={CollectionRoot({collection:t,renderDropIndicator:e}){return ls(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return ls(t,e,n)}};function ls(t,e,n){return tc({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 c.createElement(c.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 At=c.createContext(sf);function uf(t){return c.useMemo(()=>t!=null?new Set([t]):null,[t])}const vi=c.createContext({}),cf=c.createContext(null),Eg=c.forwardRef(function(e,n){let{render:r}=c.useContext(cf);return c.createElement(c.Fragment,null,r(e,n))});function df(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=c.useCallback(l=>{if(i||e!=null&&e.isDropTarget(l))return r?r(l):c.createElement(Eg,{target:l})},[e==null?void 0:e.target,i,r]);return t!=null&&t.useDropIndicator?o:void 0}function wg(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 c.useMemo(()=>new Set([o,l].filter(s=>s!=null)),[o,l])}const ff=c.createContext({}),Ml=c.createContext({}),hf=hi("separator",function(e,n){[e,n]=nt(e,n,Ml);let{elementType:r,orientation:i,style:o,className:l,slot:a,...s}=e,u=r||"hr";u==="hr"&&i==="vertical"&&(u="div");let{separatorProps:d}=tg({...s,elementType:r,orientation:i});return c.createElement(u,{...he(e),...d,style:o,className:l??"react-aria-Separator",ref:n,slot:a||void 0})}),Ll=c.createContext(null),er=c.createContext(null),xg=c.forwardRef(function(e,n){[e,n]=nt(e,n,Ll);let r=c.useContext(er);return r?c.createElement(pf,{state:r,props:e,listBoxRef:n}):c.createElement(fi,{content:c.createElement($l,e)},i=>c.createElement($g,{props:e,listBoxRef:n,collection:i}))});function $g({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:r}=c.useContext(At),i=rf({...t,layoutDelegate:r});return c.createElement(pf,{state:i,props:t,listBoxRef:e})}function pf({state:t,props:e,listBoxRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(Ho)||{};e=c.useMemo(()=>i?{...e,...i}:e,[e,i]);let{dragAndDropHooks:l,layout:a="stack",orientation:s="vertical"}=e;n=tt(c.useMemo(()=>ul(n,o!==void 0?o:null),[o,n]));let u=hg(t,r),{collection:d,selectionManager:f}=u,p=!!(l!=null&&l.useDraggableCollectionState),m=!!(l!=null&&l.useDroppableCollectionState),{direction:b}=Lt(),{disabledBehavior:h,disabledKeys:v}=f,g=Pl({usage:"search",sensitivity:"base"}),{isVirtualized:C,layoutDelegate:S,dropTargetDelegate:P,CollectionRoot:$}=c.useContext(At),w=c.useMemo(()=>e.keyboardDelegate||new Ol({collection:d,collator:g,ref:n,disabledKeys:v,disabledBehavior:h,layout:a,orientation:s,direction:b,layoutDelegate:S}),[d,g,n,h,v,s,b,e.keyboardDelegate,a,S]),{listBoxProps:x}=jv({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:w,isVirtualized:C},u,n),R=c.useRef(p),H=c.useRef(m);c.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."),H.current!==m&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,m]);let F,E,L,V=!1,A=null,B=c.useRef(null);if(p&&l){F=l.useDraggableCollectionState({collection:d,selectionManager:f,preview:l.renderDragPreview?B:void 0}),l.useDraggableCollection({},F,n);let T=l.DragPreview;A=l.renderDragPreview?c.createElement(T,{ref:B},l.renderDragPreview):null}if(m&&l){E=l.useDroppableCollectionState({collection:d,selectionManager:f});let T=l.dropTargetDelegate||P||new l.ListDropTargetDelegate(d,n,{orientation:s,layout:a,direction:b});L=l.useDroppableCollection({keyboardDelegate:w,dropTargetDelegate:T},E,n),V=E.isDropTarget({type:"root"})}let{focusProps:I,isFocused:O,isFocusVisible:k}=Cn(),W={isDropTarget:V,isEmpty:u.collection.size===0,isFocused:O,isFocusVisible:k,layout:e.layout||"stack",state:u},_=De({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:W}),M=null;return u.collection.size===0&&e.renderEmptyState&&(M=c.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(W))),c.createElement(Dl,null,c.createElement("div",{...he(e),...re(x,I,L==null?void 0:L.collectionProps),..._,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":V||void 0,"data-empty":u.collection.size===0||void 0,"data-focused":O||void 0,"data-focus-visible":k||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},c.createElement(ht,{values:[[Ll,e],[er,u],[vi,{dragAndDropHooks:l,dragState:F,dropState:E}],[Ml,{elementType:"div"}],[cf,{render:Tg}],[af,{name:"ListBoxSection",render:Pg}]]},c.createElement($,{collection:d,scrollRef:n,persistedKeys:wg(f,l,E),renderDropIndicator:df(l,E)})),M,A))}function Pg(t,e,n,r="react-aria-ListBoxSection"){let i=c.useContext(er),{dragAndDropHooks:o,dropState:l}=c.useContext(vi),{CollectionBranch:a}=c.useContext(At),[s,u]=gl();var d;let{headingProps:f,groupProps:p}=Wv({heading:u,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),m=De({defaultClassName:r,className:t.className,style:t.style,values:{}});return c.createElement("section",{...he(t),...p,...m,ref:e},c.createElement(ff.Provider,{value:{...f,ref:s}},c.createElement(a,{collection:i.collection,parent:n,renderDropIndicator:df(o,l)})))}const Dg=hi("item",function(e,n,r){let i=tt(n),o=c.useContext(er),{dragAndDropHooks:l,dragState:a,dropState:s}=c.useContext(vi),{optionProps:u,labelProps:d,descriptionProps:f,...p}=Uv({key:r.key,"aria-label":e==null?void 0:e["aria-label"]},o,i),{hoverProps:m,isHovered:b}=yn({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 v=null;s&&l&&(v=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,i));let g=a&&a.isDragging(r.key),C=De({...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:g,isDropTarget:v==null?void 0:v.isDropTarget}});c.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 c.createElement(S,{...re(u,m,h==null?void 0:h.dragProps,v==null?void 0:v.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":g||void 0,"data-drop-target":(v==null?void 0:v.isDropTarget)||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},c.createElement(ht,{values:[[kl,{slots:{[vl]:d,label:d,description:f}}]]},C.children))});function Tg(t,e){e=tt(e);let{dragAndDropHooks:n,dropState:r}=c.useContext(vi),{dropIndicatorProps:i,isHidden:o,isDropTarget:l}=n.useDropIndicator(t,r,e);return o?null:c.createElement(Ig,{...t,dropIndicatorProps:i,isDropTarget:l,ref:e})}function _g(t,e){let{dropIndicatorProps:n,isDropTarget:r,...i}=t,o=De({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return c.createElement("div",{...n,...o,role:"option",ref:e,"data-drop-target":r||void 0})}const Ig=c.forwardRef(_g),Og=c.createContext({placement:"bottom"}),vf=c.createContext(null),as=c.createContext(null),gf=c.forwardRef(function(e,n){[e,n]=nt(e,n,vf);let r=c.useContext(mf),i=Rl(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,l=Kh(n,o.isOpen)||e.isExiting||!1,a=Wh(),{direction:s}=Lt();if(a){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),c.createElement(c.Fragment,null,u)}return o&&!o.isOpen&&!l?null:c.createElement(kg,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:l,dir:s})});function kg({state:t,isExiting:e,UNSTABLE_portalContainer:n,...r}){let i=c.useRef(null),[o,l]=c.useState(0),a=c.useRef(null),s=c.useContext(as),u=s&&r.trigger==="SubmenuTrigger";ne(()=>{i.current&&t.isOpen&&l(i.current.getBoundingClientRect().width)},[t.isOpen,i]);var d;let{popoverProps:f,underlayProps:p,arrowProps:m,placement:b}=kv({...r,offset:(d=r.offset)!==null&&d!==void 0?d:8,arrowSize:o,groupRef:u?s:a},t),h=r.popoverRef,v=Fh(h,!!b)||r.isEntering||!1,g=De({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:b,isEntering:v,isExiting:e}}),C=!r.isNonModal||r.trigger==="SubmenuTrigger",[S,P]=c.useState(!1);ne(()=>{h.current&&P(C&&!h.current.querySelector("[role=dialog]"))},[h,C]),c.useEffect(()=>{S&&h.current&&!h.current.contains(document.activeElement)&&hn(h.current)},[S,h]);let $={...f.style,...g.style},w=c.createElement("div",{...re(he(r),f),...g,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":v||void 0,"data-exiting":e||void 0},!r.isNonModal&&c.createElement(qa,{onDismiss:t.close}),c.createElement(Og.Provider,{value:{...m,placement:b,ref:i}},g.children),c.createElement(qa,{onDismiss:t.close}));if(!u)return c.createElement(Ya,{...r,shouldContainFocus:S,isExiting:e,portalContainer:n},!r.isNonModal&&t.isOpen&&c.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),c.createElement("div",{ref:a,style:{display:"contents"}},c.createElement(as.Provider,{value:a},w)));var x;return c.createElement(Ya,{...r,shouldContainFocus:S,isExiting:e,portalContainer:(x=n??(s==null?void 0:s.current))!==null&&x!==void 0?x:void 0},w)}const Ng=c.createContext({}),Rg=c.createContext(null),Al=c.createContext(null),ss=c.createContext(null),Wr=c.createContext(null),Mg=c.createContext(null),Lg=c.forwardRef(function(e,n){return[e,n]=nt(e,n,Rg),c.createElement(fi,{content:c.createElement($l,e)},r=>c.createElement(Ag,{props:e,collection:r,menuRef:n}))});function Ag({props:t,collection:e,menuRef:n}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(Ho)||{};n=tt(c.useMemo(()=>ul(n,o!==void 0?o:null),[o,n]));let l=c.useMemo(()=>r?e.UNSTABLE_filter(r):e,[e,r]),a=yg({...t,collection:l,children:void 0}),s=c.useContext(ss),{isVirtualized:u,CollectionRoot:d}=c.useContext(At),{menuProps:f}=Yv({...t,...i,isVirtualized:u,onClose:t.onClose||(s==null?void 0:s.close)},a,n),p=De({defaultClassName:"react-aria-Menu",className:t.className,style:t.style,values:{isEmpty:a.collection.size===0}}),m=null;return a.collection.size===0&&t.renderEmptyState&&(m=c.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState())),c.createElement(Dl,null,c.createElement("div",{...he(t),...f,...p,ref:n,slot:t.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:t.onScroll},c.createElement(ht,{values:[[Al,a],[Ml,{elementType:"div"}],[af,{name:"MenuSection",render:Kg}],[Mg,{parentMenuRef:n,shouldUseVirtualFocus:i==null?void 0:i.shouldUseVirtualFocus}],[zo,null],[Ho,null],[Wr,a.selectionManager],[ss,s??vg({})]]},c.createElement(d,{collection:a.collection,persistedKeys:uf(a.selectionManager.focusedKey),scrollRef:n})),m))}class Fg extends Qn{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 Kg(t,e,n,r="react-aria-MenuSection"){var i,o;let l=c.useContext(Al),{CollectionBranch:a}=c.useContext(At),[s,u]=gl();var d;let{headingProps:f,groupProps:p}=Xv({heading:u,"aria-label":(d=n.props["aria-label"])!==null&&d!==void 0?d:void 0}),m=De({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=c.useContext(Wr),h=Nl(t),v=t.selectionMode!=null?new Fg(b,h):b;return c.createElement("section",{...he(t),...p,...m,ref:e},c.createElement(ht,{values:[[ff,{...f,ref:s}],[Wr,v]]},c.createElement(a,{collection:l.collection,parent:n})))}const zo=c.createContext(null),us=hi("item",function(e,n,r){var i;[e,n]=nt(e,n,zo);let o=(i=si(zo))===null||i===void 0?void 0:i.id,l=c.useContext(Al),a=tt(n),s=c.useContext(Wr),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...m}=Zv({...e,id:o,key:r.key,selectionManager:s},l,a),{hoverProps:b,isHovered:h}=yn({isDisabled:m.isDisabled}),v=De({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...m,isHovered:h,isFocusVisible:m.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),g=e.href?"a":"div";return c.createElement(g,{...re(u,b),...v,ref:a,"data-disabled":m.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":m.isFocusVisible||void 0,"data-pressed":m.isPressed||void 0,"data-selected":m.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},c.createElement(ht,{values:[[kl,{slots:{[vl]:d,label:d,description:f}}],[Ng,p]]},v.children))}),mf=c.createContext(null),bf=c.createContext(null),yf=c.createContext(null),jg=c.forwardRef(function(e,n){[e,n]=nt(e,n,bf);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:l=!1}=e,a=c.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 c.createElement(fi,{content:a},s=>c.createElement(Hg,{props:e,collection:s,selectRef:n}))});function Hg({props:t,selectRef:e,collection:n}){let{validationBehavior:r}=si(Sg)||{};var i,o;let l=(o=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",a=gg({...t,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:u}=Cn({within:!0}),d=c.useRef(null),[f,p]=gl(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:m,triggerProps:b,valueProps:h,menuProps:v,descriptionProps:g,errorMessageProps:C,...S}=Jv({...Vh(t),label:p,validationBehavior:l},a,d),[P,$]=c.useState(null),w=c.useCallback(()=>{d.current&&$(d.current.offsetWidth+"px")},[d]);xo({ref:d,onResize:w});let x=c.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=De({...t,values:x,defaultClassName:"react-aria-Select"}),H=he(t);delete H.id;let F=c.useRef(null);return c.createElement(ht,{values:[[bf,t],[yf,a],[zg,h],[tf,{...m,ref:f,elementType:"span"}],[nf,{...b,ref:d,isPressed:a.isOpen}],[mf,a],[vf,{trigger:"Select",triggerRef:d,scrollRef:F,placement:"bottom start",style:{"--trigger-width":P},"aria-labelledby":v["aria-labelledby"]}],[Ll,{...v,ref:F}],[er,a],[kl,{slots:{description:g,errorMessage:C}}],[dg,S]]},c.createElement("div",{...H,...R,...u,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}),c.createElement(eg,{autoComplete:t.autoComplete,state:a,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const zg=c.createContext(null),gi=c.createContext(null),pn=c.createContext(null),Vg=c.forwardRef(function(e,n){[e,n]=nt(e,n,gi);let{children:r,orientation:i="horizontal"}=e;return r=c.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),c.createElement(fi,{content:r},o=>c.createElement(Bg,{props:e,collection:o,tabsRef:n}))});function Bg({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=mg({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:a}=Cn({within:!0}),s=c.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:a}),[r,l,a]),u=De({...t,defaultClassName:"react-aria-Tabs",values:s});return c.createElement("div",{...he(t),...o,...u,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},c.createElement(ht,{values:[[gi,t],[pn,i]]},u.children))}const Ug=c.forwardRef(function(e,n){return c.useContext(pn)?c.createElement(Wg,{props:e,forwardedRef:n}):c.createElement($l,e)});function Wg({props:t,forwardedRef:e}){let n=c.useContext(pn),{CollectionRoot:r}=c.useContext(At),{orientation:i="horizontal",keyboardActivation:o="automatic"}=si(gi),l=tt(e),{tabListProps:a}=og({...t,orientation:i,keyboardActivation:o},n,l),s=De({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=he(t);return delete u.id,c.createElement("div",{...u,...a,ref:l,...s,"data-orientation":i||void 0},c.createElement(r,{collection:n.collection,persistedKeys:uf(n.selectionManager.focusedKey)}))}const Gg=hi("item",(t,e,n)=>{let r=c.useContext(pn),i=tt(e),{tabProps:o,isSelected:l,isDisabled:a,isPressed:s}=ng({key:n.key,...t},r,i),{focusProps:u,isFocused:d,isFocusVisible:f}=Cn(),{hoverProps:p,isHovered:m}=yn({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),b=De({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:a,isFocused:d,isFocusVisible:f,isPressed:s,isHovered:m}}),h=n.props.href?"a":"div";return c.createElement(h,{...re(o,u,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":m||void 0},b.children)}),qg=yl(function(e,n){const r=c.useContext(pn);let i=tt(n),{tabPanelProps:o}=rg(e,r,i),{focusProps:l,isFocused:a,isFocusVisible:s}=Cn(),u=r.selectedKey===e.id,d=De({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!u,state:r}});if(!u&&!e.shouldForceMount)return null;let f=he(e);delete f.id;let p=u?re(f,o,l,d):d;return c.createElement("div",{...p,ref:i,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:Mh(!u),"data-inert":u?void 0:"true"},c.createElement(ht,{values:[[gi,null],[pn,null]]},c.createElement(At.Provider,{value:sf},d.children)))}),tr=({options:t,isOpen:e=!1,onOpenChange:n,children:r,selectedValues:i=[],onSelectValue:o,topMessage:l,shouldCloseOnInteractOutside:a})=>{const s=c.useId(),u=f=>{n==null||n(f)},d=c.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(gf,{triggerRef:d,style:{marginTop:"0px"},isOpen:e,shouldCloseOnInteractOutside:a,onOpenChange:u,children:y.jsxs(Lg,{className:"c__dropdown-menu","aria-labelledby":s,children:[l&&y.jsx(us,{className:"c__dropdown-menu-item-top-message",children:l}),t.map(f=>f.isHidden?null:y.jsxs(c.Fragment,{children:[y.jsxs(us,{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),u(!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(hf,{})]},f.label))]})})]})},vn=()=>{const[t,e]=c.useState(!1);return{isOpen:t,setIsOpen:e}},cs="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",Yg="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",Zg=()=>{const{t}=se.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:"",width:"0",height:"0",decoding:"async","data-nimg":"1",src:Yg})})}),y.jsx("div",{className:"c__footer__content__top__links",children:[{label:"legifrance.gouv.fr",href:"https://legifrance.gouv.fr/"},{label:"info.gouv.fr",href:"https://info.gouv.fr/"},{label:"service-public.fr",href:"https://service-public.fr/"},{label:"data.gouv.fr",href:"https://data.gouv.fr/"}].map(({label:e,href:n})=>y.jsxs("a",{href:n,target:"_blank",children:[y.jsx("span",{children:e}),y.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:cs})]},e))})]}),y.jsx("div",{className:"c__footer__content__middle",children:[{label:t("components.footer.links.legal"),href:"/legal-notice"},{label:t("components.footer.links.personal_data"),href:"/personal-data-cookies"},{label:t("components.footer.links.accessibility"),href:"/accessibility"}].map(({label:e,href:n})=>y.jsx("a",{href:n,children:y.jsx("span",{children:e})},e))}),y.jsxs("p",{className:"c__footer__content__mention",children:[t("components.footer.mention")," ",y.jsxs("a",{href:"https://github.com/etalab/licence-ouverte/blob/master/LO.md",target:"__blank",children:[y.jsx("span",{children:t("components.footer.license")}),y.jsx("img",{alt:"",width:"18",decoding:"async","data-nimg":"1",src:cs})]})]})]})]})},Xg=t=>y.jsx(jg,{...t,className:"c__filter",children:y.jsx(Jg,{...t})}),Jg=t=>{const e=c.useContext(yf),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(ug,{className:Pe("c__filter__button",{"c__filter__button--active":!!n}),children:[y.jsx(lg,{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:Pe("material-icons c__filter__button__icon",{opened:e==null?void 0:e.isOpen}),children:"keyboard_arrow_down"})]}),y.jsx(gf,{className:"c__dropdown-menu",children:y.jsx(xg,{children:t.options.map(r=>y.jsxs(c.Fragment,{children:[y.jsx(Dg,{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(hf,{})]},r.value))})})]})},Qg=({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(Vu,{})]}),y.jsx("img",{src:n,alt:""})]})}),e5=({children:t})=>y.jsx("div",{className:"c__home-gutter",children:t}),Cf=(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:Cf(t[i],r.slice(1),n)},t5={placeholder:"Entrez votre adresse e-mail",srLabel:"Adresse e-mail",submit:"Suivant",title:"Connexion avec {linebreak}votre adresse e-mail"},n5={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"}},r5={label:"Les services de La Suite numérique"},i5={homepageLinkTitle:"Accueil - {serviceName}"},o5={newWindow:"{title} - nouvelle fenêtre"},l5={help:"Qu'est-ce que ProConnect ?",loginWith:"S’identifier avec",loginWithProconnect:"{loginWith} {proconnect}",or:"ou",title:"Connexion avec ProConnect"},Sf={email:t5,footer:n5,gaufre:r5,header:i5,links:o5,proconnect:l5},a5=c.createContext(Sf);function s5(){const t=c.useContext(a5)||Sf;return{t:function(e,n={}){const r=Cf(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(c.Fragment,{children:n[l]},a):l)})}return r}}}const u5={responsive:"lasuite-gaufre-btn--responsive",small:"lasuite-gaufre-btn--small"},c5=({variant:t})=>{const{t:e}=s5(),n=t?u5[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")})},d5=()=>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(c5,{variant:"small"})]}),Ef=({languages:t})=>{const{isOpen:e,setIsOpen:n}=vn();return y.jsx(tr,{options:t,isOpen:e,onOpenChange:n,children:y.jsxs(se.Button,{onClick:()=>n(!e),color:"primary-text",className:"c__language-picker",children:[y.jsx("span",{className:"material-icons",children:"translate"}),y.jsx("span",{className:"c__language-picker__label",children:"Français"}),y.jsx("span",{className:"material-icons",children:e?"arrow_drop_up":"arrow_drop_down"})]})})},wf=({leftIcon:t,rightIcon:e,languages:n,onTogglePanel:r,isPanelOpen:i})=>{const{t:o}=se.useCunningham();return y.jsxs("div",{className:"c__header",children:[y.jsx("div",{className:"c__header__toggle-menu",children:y.jsx(se.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(Ef,{languages:n})}),e]})]})},Vo={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)"},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)"}}}}}},Sn=()=>{const[t,e]=c.useState(window.innerWidth),n=parseInt(Vo.themes.default.theme.breakpoints.mobile.replace("px","")),r=parseInt(Vo.themes.default.theme.breakpoints.tablet.replace("px","")),i=()=>{e(window.innerWidth)};c.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}},xf=({children:t,isOpen:e=!1})=>{const{isDesktop:n}=Sn();return n?y.jsx("div",{className:"c__left-panel",children:t}):y.jsx("div",{className:Pe("c__left-panel__mobile",{open:e}),children:t})},{createElement:gn,createContext:f5,forwardRef:$f,useCallback:we,useContext:Pf,useEffect:wt,useImperativeHandle:Df,useLayoutEffect:h5,useMemo:p5,useRef:$e,useState:sn}=D,ds=D[`useId${Math.random()}`.slice(0,5)],v5=h5,mi=f5(null);mi.displayName="PanelGroupContext";const xt=v5,g5=typeof ds=="function"?ds:()=>null;let m5=0;function Fl(t=null){const e=g5(),n=$e(t||e||null);return n.current===null&&(n.current=""+m5++),t??n.current}function Tf({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:u,onExpand:d,onResize:f,order:p,style:m,tagName:b="div",...h}){const v=Pf(mi);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:g,expandPanel:C,getPanelSize:S,getPanelStyle:P,groupId:$,isPanelCollapsed:w,reevaluatePanelConstraints:x,registerPanel:R,resizePanel:H,unregisterPanel:F}=v,E=Fl(l),L=$e({callbacks:{onCollapse:u,onExpand:d,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:E,idIsFromProps:l!==void 0,order:p});$e({didLogMissingDefaultSizeWarning:!1}),xt(()=>{const{callbacks:A,constraints:B}=L.current,I={...B};L.current.id=E,L.current.idIsFromProps=l!==void 0,L.current.order=p,A.onCollapse=u,A.onExpand=d,A.onResize=f,B.collapsedSize=n,B.collapsible=r,B.defaultSize=i,B.maxSize=a,B.minSize=s,(I.collapsedSize!==B.collapsedSize||I.collapsible!==B.collapsible||I.maxSize!==B.maxSize||I.minSize!==B.minSize)&&x(L.current,I)}),xt(()=>{const A=L.current;return R(A),()=>{F(A)}},[p,E,R,F]),Df(o,()=>({collapse:()=>{g(L.current)},expand:A=>{C(L.current,A)},getId(){return E},getSize(){return S(L.current)},isCollapsed(){return w(L.current)},isExpanded(){return!w(L.current)},resize:A=>{H(L.current,A)}}),[g,C,S,w,E,H]);const V=P(L.current,i);return gn(b,{...h,children:t,className:e,id:l,style:{...V,...m},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":$,"data-panel-id":E,"data-panel-size":parseFloat(""+V.flexGrow).toFixed(1)})}const Bo=$f((t,e)=>gn(Tf,{...t,forwardedRef:e}));Tf.displayName="Panel";Bo.displayName="forwardRef(Panel)";let Uo=null,St=null;function b5(t,e){if(e){const n=(e&Nf)!==0,r=(e&Rf)!==0,i=(e&Mf)!==0,o=(e&Lf)!==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 y5(){St!==null&&(document.head.removeChild(St),Uo=null,St=null)}function qi(t,e){const n=b5(t,e);Uo!==n&&(Uo=n,St===null&&(St=document.createElement("style"),document.head.appendChild(St)),St.innerHTML=`*{cursor: ${n}!important;}`)}function _f(t){return t.type==="keydown"}function If(t){return t.type.startsWith("pointer")}function Of(t){return t.type.startsWith("mouse")}function bi(t){if(If(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(Of(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function C5(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function S5(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 E5(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:ps(t),b:ps(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;X(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:hs(fs(n.a)),b:hs(fs(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 w5=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function x5(t){var e;const n=getComputedStyle((e=kf(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function $5(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||x5(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"||w5.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function fs(t){let e=t.length;for(;e--;){const n=t[e];if(X(n,"Missing node"),$5(n))return n}return null}function hs(t){return t&&Number(getComputedStyle(t).zIndex)||0}function ps(t){const e=[];for(;t;)e.push(t),t=kf(t);return e}function kf(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const Nf=1,Rf=2,Mf=4,Lf=8,P5=C5()==="coarse";let He=[],un=!1,ut=new Map,yi=new Map;const Un=new Set;function D5(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),Un.add(a),Gr(),function(){var d;yi.delete(t),Un.delete(a);const f=(d=ut.get(l))!==null&&d!==void 0?d:1;if(ut.set(l,f-1),Gr(),f===1&&ut.delete(l),He.includes(a)){const p=He.indexOf(a);p>=0&&He.splice(p,1),jl(),i("up",!0,null)}}}function vs(t){const{target:e}=t,{x:n,y:r}=bi(t);un=!0,Kl({target:e,x:n,y:r}),Gr(),He.length>0&&(qr("down",t),t.preventDefault(),t.stopPropagation())}function _n(t){const{x:e,y:n}=bi(t);if(un&&t.buttons===0&&(un=!1,qr("up",t)),!un){const{target:r}=t;Kl({target:r,x:e,y:n})}qr("move",t),jl(),He.length>0&&t.preventDefault()}function Ht(t){const{target:e}=t,{x:n,y:r}=bi(t);yi.clear(),un=!1,He.length>0&&t.preventDefault(),qr("up",t),Kl({target:e,x:n,y:r}),jl(),Gr()}function Kl({target:t,x:e,y:n}){He.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Un.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:u,right:d,top:f}=a,p=P5?l.coarse:l.fine;if(e>=u-p&&e<=d+p&&n>=f-p&&n<=s+p){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&E5(r,o)>0){let b=r,h=!1;for(;b&&!b.contains(o);){if(S5(b.getBoundingClientRect(),a)){h=!0;break}b=b.parentElement}if(h)return}He.push(i)}})}function Yi(t,e){yi.set(t,e)}function jl(){let t=!1,e=!1;He.forEach(r=>{const{direction:i}=r;i==="horizontal"?t=!0:e=!0});let n=0;yi.forEach(r=>{n|=r}),t&&e?qi("intersection",n):t?qi("horizontal",n):e?qi("vertical",n):y5()}function Gr(){ut.forEach((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",Ht),n.removeEventListener("pointerdown",vs),n.removeEventListener("pointerleave",_n),n.removeEventListener("pointermove",_n)}),window.removeEventListener("pointerup",Ht),window.removeEventListener("pointercancel",Ht),Un.size>0&&(un?(He.length>0&&ut.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",Ht),n.addEventListener("pointerleave",_n),n.addEventListener("pointermove",_n))}),window.addEventListener("pointerup",Ht),window.addEventListener("pointercancel",Ht)):ut.forEach((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",vs,{capture:!0}),n.addEventListener("pointermove",_n))}))}function qr(t,e){Un.forEach(n=>{const{setResizeHandlerState:r}=n,i=He.includes(n);r(t,i,e)})}function T5(){const[t,e]=sn(0);return we(()=>e(n=>n+1),[])}function X(t,e){if(!t)throw console.error(e),Error(e)}const Hl=10;function _t(t,e,n=Hl){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function Xe(t,e,n=Hl){return _t(t,e,n)===0}function Te(t,e,n){return _t(t,e,n)===0}function _5(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(!Te(i,o,n))return!1}return!0}function nn({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];X(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(_t(n,a)<0)if(o){const s=(i+a)/2;_t(n,s)<0?n=i:n=a}else n=a;return n=Math.min(l,n),n=parseFloat(n.toFixed(Hl)),n}function Ln({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(Te(t,0))return e;const l=[...e],[a,s]=r;X(a!=null,"Invalid first pivot index"),X(s!=null,"Invalid second pivot index");let u=0;if(o==="keyboard"){{const f=t<0?s:a,p=n[f];X(p,`Panel constraints not found for index ${f}`);const{collapsedSize:m=0,collapsible:b,minSize:h=0}=p;if(b){const v=e[f];if(X(v!=null,`Previous layout not found for panel index ${f}`),Te(v,m)){const g=h-v;_t(g,Math.abs(t))>0&&(t=t<0?0-g:g)}}}{const f=t<0?a:s,p=n[f];X(p,`No panel constraints found for index ${f}`);const{collapsedSize:m=0,collapsible:b,minSize:h=0}=p;if(b){const v=e[f];if(X(v!=null,`Previous layout not found for panel index ${f}`),Te(v,h)){const g=v-m;_t(g,Math.abs(t))>0&&(t=t<0?0-g:g)}}}}{const f=t<0?1:-1;let p=t<0?s:a,m=0;for(;;){const h=e[p];X(h!=null,`Previous layout not found for panel index ${p}`);const g=nn({panelConstraints:n,panelIndex:p,size:100})-h;if(m+=g,p+=f,p<0||p>=n.length)break}const b=Math.min(Math.abs(t),Math.abs(m));t=t<0?0-b:b}{let p=t<0?a:s;for(;p>=0&&p<n.length;){const m=Math.abs(t)-Math.abs(u),b=e[p];X(b!=null,`Previous layout not found for panel index ${p}`);const h=b-m,v=nn({panelConstraints:n,panelIndex:p,size:h});if(!Te(b,v)&&(u+=b-v,l[p]=v,u.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?p--:p++}}if(_5(i,l))return i;{const f=t<0?s:a,p=e[f];X(p!=null,`Previous layout not found for panel index ${f}`);const m=p+u,b=nn({panelConstraints:n,panelIndex:f,size:m});if(l[f]=b,!Te(b,m)){let h=m-b,g=t<0?s:a;for(;g>=0&&g<n.length;){const C=l[g];X(C!=null,`Previous layout not found for panel index ${g}`);const S=C+h,P=nn({panelConstraints:n,panelIndex:g,size:S});if(Te(C,P)||(h-=P-C,l[g]=P),Te(h,0))break;t>0?g--:g++}}}const d=l.reduce((f,p)=>p+f,0);return Te(d,100)?l:i}function I5({layout:t,panelsArray:e,pivotIndices:n}){let r=0,i=100,o=0,l=0;const a=n[0];X(a!=null,"No pivot index found"),e.forEach((f,p)=>{const{constraints:m}=f,{maxSize:b=100,minSize:h=0}=m;p===a?(r=h,i=b):(o+=h,l+=b)});const s=Math.min(i,100-o),u=Math.max(r,100-l),d=t[a];return{valueMax:s,valueMin:u,valueNow:d}}function Wn(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function Af(t,e,n=document){const i=Wn(t,n).findIndex(o=>o.getAttribute("data-panel-resize-handle-id")===e);return i??null}function Ff(t,e,n){const r=Af(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Kf(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 Ci(t,e=document){const n=e.querySelector(`[data-panel-resize-handle-id="${t}"]`);return n||null}function O5(t,e,n,r=document){var i,o,l,a;const s=Ci(e,r),u=Wn(t,r),d=s?u.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 k5({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){$e({didWarnAboutMissingResizeHandle:!1}),xt(()=>{if(!o)return;const a=Wn(n,o);for(let s=0;s<i.length-1;s++){const{valueMax:u,valueMin:d,valueNow:f}=I5({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),p=a[s];if(p!=null){const m=i[s];X(m,`No panel data found for index "${s}"`),p.setAttribute("aria-controls",m.id),p.setAttribute("aria-valuemax",""+Math.round(u)),p.setAttribute("aria-valuemin",""+Math.round(d)),p.setAttribute("aria-valuenow",f!=null?""+Math.round(f):"")}}return()=>{a.forEach((s,u)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[n,r,i,o]),wt(()=>{if(!o)return;const a=e.current;X(a,"Eager values not found");const{panelDataArray:s}=a,u=Kf(n,o);X(u!=null,`No group found for id "${n}"`);const d=Wn(n,o);X(d,`No resize handles found for group id "${n}"`);const f=d.map(p=>{const m=p.getAttribute("data-panel-resize-handle-id");X(m,"Resize handle element has no handle id attribute");const[b,h]=O5(n,m,s,o);if(b==null||h==null)return()=>{};const v=g=>{if(!g.defaultPrevented)switch(g.key){case"Enter":{g.preventDefault();const C=s.findIndex(S=>S.id===b);if(C>=0){const S=s[C];X(S,`No panel data found for index ${C}`);const P=r[C],{collapsedSize:$=0,collapsible:w,minSize:x=0}=S.constraints;if(P!=null&&w){const R=Ln({delta:Te(P,$)?x-$:$-P,initialLayout:r,panelConstraints:s.map(H=>H.constraints),pivotIndices:Ff(n,m,o),prevLayout:r,trigger:"keyboard"});r!==R&&l(R)}}break}}};return p.addEventListener("keydown",v),()=>{p.removeEventListener("keydown",v)}});return()=>{f.forEach(p=>p())}},[o,t,e,n,r,i,l])}function gs(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 jf(t,e){const n=t==="horizontal",{x:r,y:i}=bi(e);return n?r:i}function N5(t,e,n,r,i){const o=n==="horizontal",l=Ci(e,i);X(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute("data-panel-group-id");X(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const u=jf(n,t),d=Kf(a,i);X(d,`No group element found for id "${a}"`);const f=d.getBoundingClientRect(),p=o?f.width:f.height;return(u-s)/p*100}function R5(t,e,n,r,i,o){if(_f(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:N5(t,e,n,r,o)}function M5({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];X(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];X(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=t.length-r,u=i/s;r++,e[o]=u,i-=u}return e}function zt(t,e,n){e.forEach((r,i)=>{const o=t[i];X(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:u=0,collapsible:d}=a,f=n[s];if(f==null||r!==f){n[s]=r;const{onCollapse:p,onExpand:m,onResize:b}=l;b&&b(r,f),d&&(p||m)&&(m&&(f==null||Xe(f,u))&&!Xe(r,u)&&m(),p&&(f==null||!Xe(f,u))&&Xe(r,u)&&p())}})}function fr(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 L5({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 A5(t,e=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function ms(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 Hf(t){return`react-resizable-panels:${t}`}function zf(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 Vf(t,e){try{const n=Hf(t),r=e.getItem(n);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function F5(t,e,n){var r,i;const o=(r=Vf(t,n))!==null&&r!==void 0?r:{},l=zf(e);return(i=o[l])!==null&&i!==void 0?i:null}function K5(t,e,n,r,i){var o;const l=Hf(t),a=zf(e),s=(o=Vf(t,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(u){console.error(u)}}function bs({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(!Te(r,100)&&n.length>0)for(let o=0;o<e.length;o++){const l=n[o];X(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];X(l!=null,`No layout data found for index ${o}`);const a=nn({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,n[o]=a)}if(!Te(i,0))for(let o=0;o<e.length;o++){const l=n[o];X(l!=null,`No layout data found for index ${o}`);const a=l+i,s=nn({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,n[o]=s,Te(i,0)))break}return n}const j5=100,An={getItem:t=>(ms(An),An.getItem(t)),setItem:(t,e)=>{ms(An),An.setItem(t,e)}},ys={};function Bf({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=An,style:u,tagName:d="div",...f}){const p=Fl(o),m=$e(null),[b,h]=sn(null),[v,g]=sn([]),C=T5(),S=$e({}),P=$e(new Map),$=$e(0),w=$e({autoSaveId:t,direction:r,dragState:b,id:p,keyboardResizeBy:a,onLayout:l,storage:s}),x=$e({layout:v,panelDataArray:[],panelDataArrayChanged:!1});$e({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),Df(i,()=>({getId:()=>w.current.id,getLayout:()=>{const{layout:N}=x.current;return N},setLayout:N=>{const{onLayout:j}=w.current,{layout:K,panelDataArray:z}=x.current,U=bs({layout:N,panelConstraints:z.map(G=>G.constraints)});gs(K,U)||(g(U),x.current.layout=U,j&&j(U),zt(z,U,S.current))}}),[]),xt(()=>{w.current.autoSaveId=t,w.current.direction=r,w.current.dragState=b,w.current.id=p,w.current.onLayout=l,w.current.storage=s}),k5({committedValuesRef:w,eagerValuesRef:x,groupId:p,layout:v,panelDataArray:x.current.panelDataArray,setLayout:g,panelGroupElement:m.current}),wt(()=>{const{panelDataArray:N}=x.current;if(t){if(v.length===0||v.length!==N.length)return;let j=ys[t];j==null&&(j=A5(K5,j5),ys[t]=j);const K=[...N],z=new Map(P.current);j(t,K,z,v,s)}},[t,v,s]),wt(()=>{});const R=we(N=>{const{onLayout:j}=w.current,{layout:K,panelDataArray:z}=x.current;if(N.constraints.collapsible){const U=z.map(pe=>pe.constraints),{collapsedSize:G=0,panelSize:Y,pivotIndices:Q}=vt(z,N,K);if(X(Y!=null,`Panel size not found for panel "${N.id}"`),!Xe(Y,G)){P.current.set(N.id,Y);const q=Qt(z,N)===z.length-1?Y-G:G-Y,te=Ln({delta:q,initialLayout:K,panelConstraints:U,pivotIndices:Q,prevLayout:K,trigger:"imperative-api"});fr(K,te)||(g(te),x.current.layout=te,j&&j(te),zt(z,te,S.current))}}},[]),H=we((N,j)=>{const{onLayout:K}=w.current,{layout:z,panelDataArray:U}=x.current;if(N.constraints.collapsible){const G=U.map(ue=>ue.constraints),{collapsedSize:Y=0,panelSize:Q=0,minSize:pe=0,pivotIndices:q}=vt(U,N,z),te=j??pe;if(Xe(Q,Y)){const ue=P.current.get(N.id),ee=ue!=null&&ue>=te?ue:te,En=Qt(U,N)===U.length-1?Q-ee:ee-Q,Ee=Ln({delta:En,initialLayout:z,panelConstraints:G,pivotIndices:q,prevLayout:z,trigger:"imperative-api"});fr(z,Ee)||(g(Ee),x.current.layout=Ee,K&&K(Ee),zt(U,Ee,S.current))}}},[]),F=we(N=>{const{layout:j,panelDataArray:K}=x.current,{panelSize:z}=vt(K,N,j);return X(z!=null,`Panel size not found for panel "${N.id}"`),z},[]),E=we((N,j)=>{const{panelDataArray:K}=x.current,z=Qt(K,N);return L5({defaultSize:j,dragState:b,layout:v,panelData:K,panelIndex:z})},[b,v]),L=we(N=>{const{layout:j,panelDataArray:K}=x.current,{collapsedSize:z=0,collapsible:U,panelSize:G}=vt(K,N,j);return X(G!=null,`Panel size not found for panel "${N.id}"`),U===!0&&Xe(G,z)},[]),V=we(N=>{const{layout:j,panelDataArray:K}=x.current,{collapsedSize:z=0,collapsible:U,panelSize:G}=vt(K,N,j);return X(G!=null,`Panel size not found for panel "${N.id}"`),!U||_t(G,z)>0},[]),A=we(N=>{const{panelDataArray:j}=x.current;j.push(N),j.sort((K,z)=>{const U=K.order,G=z.order;return U==null&&G==null?0:U==null?-1:G==null?1:U-G}),x.current.panelDataArrayChanged=!0,C()},[C]);xt(()=>{if(x.current.panelDataArrayChanged){x.current.panelDataArrayChanged=!1;const{autoSaveId:N,onLayout:j,storage:K}=w.current,{layout:z,panelDataArray:U}=x.current;let G=null;if(N){const Q=F5(N,U,K);Q&&(P.current=new Map(Object.entries(Q.expandToSizes)),G=Q.layout)}G==null&&(G=M5({panelDataArray:U}));const Y=bs({layout:G,panelConstraints:U.map(Q=>Q.constraints)});gs(z,Y)||(g(Y),x.current.layout=Y,j&&j(Y),zt(U,Y,S.current))}}),xt(()=>{const N=x.current;return()=>{N.layout=[]}},[]);const B=we(N=>{let j=!1;const K=m.current;return K&&window.getComputedStyle(K,null).getPropertyValue("direction")==="rtl"&&(j=!0),function(U){U.preventDefault();const G=m.current;if(!G)return()=>null;const{direction:Y,dragState:Q,id:pe,keyboardResizeBy:q,onLayout:te}=w.current,{layout:ue,panelDataArray:ee}=x.current,{initialLayout:rt}=Q??{},En=Ff(pe,N,G);let Ee=R5(U,N,Y,Q,q,G);const ia=Y==="horizontal";ia&&j&&(Ee=-Ee);const L2=ee.map(A2=>A2.constraints),wn=Ln({delta:Ee,initialLayout:rt??ue,panelConstraints:L2,pivotIndices:En,prevLayout:ue,trigger:_f(U)?"keyboard":"mouse-or-touch"}),oa=!fr(ue,wn);(If(U)||Of(U))&&$.current!=Ee&&($.current=Ee,!oa&&Ee!==0?ia?Yi(N,Ee<0?Nf:Rf):Yi(N,Ee<0?Mf:Lf):Yi(N,0)),oa&&(g(wn),x.current.layout=wn,te&&te(wn),zt(ee,wn,S.current))}},[]),I=we((N,j)=>{const{onLayout:K}=w.current,{layout:z,panelDataArray:U}=x.current,G=U.map(ue=>ue.constraints),{panelSize:Y,pivotIndices:Q}=vt(U,N,z);X(Y!=null,`Panel size not found for panel "${N.id}"`);const q=Qt(U,N)===U.length-1?Y-j:j-Y,te=Ln({delta:q,initialLayout:z,panelConstraints:G,pivotIndices:Q,prevLayout:z,trigger:"imperative-api"});fr(z,te)||(g(te),x.current.layout=te,K&&K(te),zt(U,te,S.current))},[]),O=we((N,j)=>{const{layout:K,panelDataArray:z}=x.current,{collapsedSize:U=0,collapsible:G}=j,{collapsedSize:Y=0,collapsible:Q,maxSize:pe=100,minSize:q=0}=N.constraints,{panelSize:te}=vt(z,N,K);te!=null&&(G&&Q&&Xe(te,U)?Xe(U,Y)||I(N,Y):te<q?I(N,q):te>pe&&I(N,pe))},[I]),k=we((N,j)=>{const{direction:K}=w.current,{layout:z}=x.current;if(!m.current)return;const U=Ci(N,m.current);X(U,`Drag handle element not found for id "${N}"`);const G=jf(K,j);h({dragHandleId:N,dragHandleRect:U.getBoundingClientRect(),initialCursorPosition:G,initialLayout:z})},[]),W=we(()=>{h(null)},[]),_=we(N=>{const{panelDataArray:j}=x.current,K=Qt(j,N);K>=0&&(j.splice(K,1),delete S.current[N.id],x.current.panelDataArrayChanged=!0,C())},[C]),M=p5(()=>({collapsePanel:R,direction:r,dragState:b,expandPanel:H,getPanelSize:F,getPanelStyle:E,groupId:p,isPanelCollapsed:L,isPanelExpanded:V,reevaluatePanelConstraints:O,registerPanel:A,registerResizeHandle:B,resizePanel:I,startDragging:k,stopDragging:W,unregisterPanel:_,panelGroupElement:m.current}),[R,b,r,H,F,E,p,L,V,O,A,B,I,k,W,_]),T={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return gn(mi.Provider,{value:M},gn(d,{...f,children:e,className:n,id:o,ref:m,style:{...T,...u},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const Uf=$f((t,e)=>gn(Bf,{...t,forwardedRef:e}));Bf.displayName="PanelGroup";Uf.displayName="forwardRef(PanelGroup)";function Qt(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function vt(t,e,n){const r=Qt(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],l=n[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function H5({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){wt(()=>{if(t||n==null||r==null)return;const i=Ci(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");X(a,`No group element found for id "${a}"`);const s=Wn(a,r),u=Af(a,e,r);X(u!==null,`No resize element found for id "${e}"`);const d=l.shiftKey?u>0?u-1:s.length-1:u+1<s.length?u+1:0;s[d].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,t,e,n])}function Wf({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:l,onFocus:a,style:s={},tabIndex:u=0,tagName:d="div",...f}){var p,m;const b=$e(null),h=$e({onDragging:l});wt(()=>{h.current.onDragging=l});const v=Pf(mi);if(v===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:g,groupId:C,registerResizeHandle:S,startDragging:P,stopDragging:$,panelGroupElement:w}=v,x=Fl(i),[R,H]=sn("inactive"),[F,E]=sn(!1),[L,V]=sn(null),A=$e({state:R});xt(()=>{A.current.state=R}),wt(()=>{if(n)V(null);else{const k=S(x);V(()=>k)}},[n,x,S]);const B=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,I=(m=r==null?void 0:r.fine)!==null&&m!==void 0?m:5;return wt(()=>{if(n||L==null)return;const k=b.current;return X(k,"Element ref not attached"),D5(x,k,g,{coarse:B,fine:I},(_,M,T)=>{if(M)switch(_){case"down":{H("drag"),X(T,'Expected event to be defined for "down" action'),P(x,T);const{onDragging:N}=h.current;N&&N(!0);break}case"move":{const{state:N}=A.current;N!=="drag"&&H("hover"),X(T,'Expected event to be defined for "move" action'),L(T);break}case"up":{H("hover"),$();const{onDragging:N}=h.current;N&&N(!1);break}}else H("inactive")})},[B,g,n,I,S,x,L,P,$]),H5({disabled:n,handleId:x,resizeHandler:L,panelGroupElement:w}),gn(d,{...f,children:t,className:e,id:i,onBlur:()=>{E(!1),o==null||o()},onFocus:()=>{E(!0),a==null||a()},ref:b,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...s},tabIndex:u,"data-panel-group-direction":g,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":R==="drag"?"pointer":F?"keyboard":void 0,"data-resize-handle-state":R,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":x})}Wf.displayName="PanelResizeHandle";const z5=({children:t,isOpen:e})=>{const{isDesktop:n}=Sn();return n?y.jsx("div",{className:Pe("c__right-panel",{open:e}),children:t}):y.jsx("div",{className:Pe("c__right-panel__mobile",{open:e}),children:t})},V5=(t,e,n)=>{const[r,i]=c.useState(typeof e>"u"?t:e),o=l=>{n?n(l):i(l)};return c.useEffect(()=>{n&&typeof e<"u"&&e!==r&&i(e)},[e]),[r,o]},B5=({icon:t,children:e,hideLeftPanelOnDesktop:n=!1,leftPanelContent:r,rightPanelContent:i,rightHeaderContent:o,languages:l,enableResize:a=!1,rightPanelIsOpen:s=!1,...u})=>{const[d,f]=V5(!1,u.isLeftPanelOpen,u.setIsLeftPanelOpen),{isDesktop:p}=Sn(),m=c.useRef(null),[b,h]=c.useState(hr(300,p)),[v,g]=c.useState(hr(450,p)),C=()=>{f(!d)};c.useEffect(()=>{const $=()=>{const w=Math.round(hr(300,p)),x=Math.round(Math.min(hr(450,p),40));h(p?w:0),g(a?x: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(wf,{onTogglePanel:C,isPanelOpen:d,rightIcon:o,leftIcon:t,languages:l})}),y.jsx("div",{className:"c__main-layout__content",children:y.jsxs(Uf,{autoSaveId:"persistance",direction:"horizontal",children:[S&&y.jsxs(y.Fragment,{children:[y.jsx(Bo,{ref:m,order:0,defaultSize:b,minSize:b,maxSize:v,children:y.jsx(xf,{isOpen:P,children:r})}),p&&y.jsx(Wf,{className:"bg-greyscale-200",style:{width:"1px"}})]}),y.jsx(Bo,{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(z5,{isOpen:s,children:i})]})})]})})]})},hr=(t,e)=>{if(!e)return 0;const n=window.innerWidth;return t/n*100},U5=52,zl=({size:t="sm"})=>y.jsx("div",{className:["c__spinner",t].join(" ")}),Gf=({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})]}),W5=({label:t,text:e,labelSide:n="right",children:r})=>y.jsxs("div",{className:Pe("c__with-label",{[n]:!0}),children:[y.jsx(Gf,{children:t,text:e}),r]});var Cs=1,G5=.9,q5=.8,Y5=.17,Zi=.1,Xi=.999,Z5=.9999,X5=.99,J5=/[\\\/_+.#"@\[\(\{&]/,Q5=/[\\\/_+.#"@\[\(\{&]/g,em=/[\s-]/,qf=/[\s-]/g;function Wo(t,e,n,r,i,o,l){if(o===e.length)return i===t.length?Cs:X5;var a=`${i},${o}`;if(l[a]!==void 0)return l[a];for(var s=r.charAt(o),u=n.indexOf(s,i),d=0,f,p,m,b;u>=0;)f=Wo(t,e,n,r,u+1,o+1,l),f>d&&(u===i?f*=Cs:J5.test(t.charAt(u-1))?(f*=q5,m=t.slice(i,u-1).match(Q5),m&&i>0&&(f*=Math.pow(Xi,m.length))):em.test(t.charAt(u-1))?(f*=G5,b=t.slice(i,u-1).match(qf),b&&i>0&&(f*=Math.pow(Xi,b.length))):(f*=Y5,i>0&&(f*=Math.pow(Xi,u-i))),t.charAt(u)!==e.charAt(o)&&(f*=Z5)),(f<Zi&&n.charAt(u-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(u-1)!==r.charAt(o))&&(p=Wo(t,e,n,r,u+1,o+2,l),p*Zi>f&&(f=p*Zi)),f>d&&(d=f),u=n.indexOf(s,u+1);return l[a]=d,d}function Ss(t){return t.toLowerCase().replace(qf," ")}function tm(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Wo(t,e,Ss(t),Ss(e),0,0,{})}function dt(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 Es(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Yf(...t){return e=>{let n=!1;const r=t.map(i=>{const o=Es(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():Es(t[i],null)}}}}function Ft(...t){return D.useCallback(Yf(...t),t)}function nm(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 rm(t,e=[]){let n=[];function r(o,l){const a=D.createContext(l),s=n.length;n=[...n,l];const u=f=>{var g;const{scope:p,children:m,...b}=f,h=((g=p==null?void 0:p[t])==null?void 0:g[s])||a,v=D.useMemo(()=>b,Object.values(b));return y.jsx(h.Provider,{value:v,children:m})};u.displayName=o+"Provider";function d(f,p){var h;const m=((h=p==null?void 0:p[t])==null?void 0:h[s])||a,b=D.useContext(m);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,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,im(i,...e)]}function im(...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:u})=>{const f=s(o)[`__scope${u}`];return{...a,...f}},{});return D.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var Gn=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},om=D[" useId ".trim().toString()]||(()=>{}),lm=0;function Qe(t){const[e,n]=D.useState(om());return Gn(()=>{n(r=>r??String(lm++))},[t]),e?`radix-${e}`:""}var am=D[" useInsertionEffect ".trim().toString()]||Gn;function sm({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,o,l]=um({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 u=D.useCallback(d=>{var f;if(a){const p=cm(d)?d(t):d;p!==t&&((f=l.current)==null||f.call(l,p))}else o(d)},[a,t,o,l]);return[s,u]}function um({defaultProp:t,onChange:e}){const[n,r]=D.useState(t),i=D.useRef(n),o=D.useRef(e);return am(()=>{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 cm(t){return typeof t=="function"}function Zf(t){const e=dm(t),n=D.forwardRef((r,i)=>{const{children:o,...l}=r,a=D.Children.toArray(o),s=a.find(hm);if(s){const u=s.props.children,d=a.map(f=>f===s?D.Children.count(u)>1?D.Children.only(null):D.isValidElement(u)?u.props.children:null:f);return y.jsx(e,{...l,ref:i,children:D.isValidElement(u)?D.cloneElement(u,void 0,d):null})}return y.jsx(e,{...l,ref:i,children:o})});return n.displayName=`${t}.Slot`,n}function dm(t){const e=D.forwardRef((n,r)=>{const{children:i,...o}=n;if(D.isValidElement(i)){const l=vm(i),a=pm(o,i.props);return i.type!==D.Fragment&&(a.ref=r?Yf(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 fm=Symbol("radix.slottable");function hm(t){return D.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===fm}function pm(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 vm(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 gm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=gm.reduce((t,e)=>{const n=Zf(`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 mm(t,e){t&&F2.flushSync(()=>t.dispatchEvent(e))}function qn(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 bm(t,e=globalThis==null?void 0:globalThis.document){const n=qn(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 ym="DismissableLayer",Go="dismissableLayer.update",Cm="dismissableLayer.pointerDownOutside",Sm="dismissableLayer.focusOutside",ws,Xf=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jf=D.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=t,u=D.useContext(Xf),[d,f]=D.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=D.useState({}),b=Ft(e,x=>f(x)),h=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=h.indexOf(v),C=d?h.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,P=C>=g,$=xm(x=>{const R=x.target,H=[...u.branches].some(F=>F.contains(R));!P||H||(i==null||i(x),l==null||l(x),x.defaultPrevented||a==null||a())},p),w=$m(x=>{const R=x.target;[...u.branches].some(F=>F.contains(R))||(o==null||o(x),l==null||l(x),x.defaultPrevented||a==null||a())},p);return bm(x=>{C===u.layers.size-1&&(r==null||r(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},p),D.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ws=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),xs(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ws)}},[d,p,n,u]),D.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),xs())},[d,u]),D.useEffect(()=>{const x=()=>m({});return document.addEventListener(Go,x),()=>document.removeEventListener(Go,x)},[]),y.jsx(me.div,{...s,ref:b,style:{pointerEvents:S?P?"auto":"none":void 0,...t.style},onFocusCapture:dt(t.onFocusCapture,w.onFocusCapture),onBlurCapture:dt(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:dt(t.onPointerDownCapture,$.onPointerDownCapture)})});Jf.displayName=ym;var Em="DismissableLayerBranch",wm=D.forwardRef((t,e)=>{const n=D.useContext(Xf),r=D.useRef(null),i=Ft(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})});wm.displayName=Em;function xm(t,e=globalThis==null?void 0:globalThis.document){const n=qn(t),r=D.useRef(!1),i=D.useRef(()=>{});return D.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){Qf(Cm,n,u,{discrete:!0})};const u={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 $m(t,e=globalThis==null?void 0:globalThis.document){const n=qn(t),r=D.useRef(!1);return D.useEffect(()=>{const i=o=>{o.target&&!r.current&&Qf(Sm,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 xs(){const t=new CustomEvent(Go);document.dispatchEvent(t)}function Qf(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?mm(i,o):i.dispatchEvent(o)}var Ji="focusScope.autoFocusOnMount",Qi="focusScope.autoFocusOnUnmount",$s={bubbles:!1,cancelable:!0},Pm="FocusScope",e0=D.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=t,[a,s]=D.useState(null),u=qn(i),d=qn(o),f=D.useRef(null),p=Ft(e,h=>s(h)),m=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(r){let h=function(S){if(m.paused||!a)return;const P=S.target;a.contains(P)?f.current=P:ot(f.current,{select:!0})},v=function(S){if(m.paused||!a)return;const P=S.relatedTarget;P!==null&&(a.contains(P)||ot(f.current,{select:!0}))},g=function(S){if(document.activeElement===document.body)for(const $ of S)$.removedNodes.length>0&&ot(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const C=new MutationObserver(g);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),C.disconnect()}}},[r,a,m.paused]),D.useEffect(()=>{if(a){Ds.add(m);const h=document.activeElement;if(!a.contains(h)){const g=new CustomEvent(Ji,$s);a.addEventListener(Ji,u),a.dispatchEvent(g),g.defaultPrevented||(Dm(km(t0(a)),{select:!0}),document.activeElement===h&&ot(a))}return()=>{a.removeEventListener(Ji,u),setTimeout(()=>{const g=new CustomEvent(Qi,$s);a.addEventListener(Qi,d),a.dispatchEvent(g),g.defaultPrevented||ot(h??document.body,{select:!0}),a.removeEventListener(Qi,d),Ds.remove(m)},0)}}},[a,u,d,m]);const b=D.useCallback(h=>{if(!n&&!r||m.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,g=document.activeElement;if(v&&g){const C=h.currentTarget,[S,P]=Tm(C);S&&P?!h.shiftKey&&g===P?(h.preventDefault(),n&&ot(S,{select:!0})):h.shiftKey&&g===S&&(h.preventDefault(),n&&ot(P,{select:!0})):g===C&&h.preventDefault()}},[n,r,m.paused]);return y.jsx(me.div,{tabIndex:-1,...l,ref:p,onKeyDown:b})});e0.displayName=Pm;function Dm(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(ot(r,{select:e}),document.activeElement!==n)return}function Tm(t){const e=t0(t),n=Ps(e,t),r=Ps(e.reverse(),t);return[n,r]}function t0(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 Ps(t,e){for(const n of t)if(!_m(n,{upTo:e}))return n}function _m(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 Im(t){return t instanceof HTMLInputElement&&"select"in t}function ot(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&Im(t)&&e&&t.select()}}var Ds=Om();function Om(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Ts(t,e),t.unshift(e)},remove(e){var n;t=Ts(t,e),(n=t[0])==null||n.resume()}}}function Ts(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function km(t){return t.filter(e=>e.tagName!=="A")}var Nm="Portal",n0=D.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,o]=D.useState(!1);Gn(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?Rt.createPortal(y.jsx(me.div,{...r,ref:e}),l):null});n0.displayName=Nm;function Rm(t,e){return D.useReducer((n,r)=>e[n][r]??n,t)}var Si=t=>{const{present:e,children:n}=t,r=Mm(e),i=typeof n=="function"?n({present:r.isPresent}):D.Children.only(n),o=Ft(r.ref,Lm(i));return typeof n=="function"||r.isPresent?D.cloneElement(i,{ref:o}):null};Si.displayName="Presence";function Mm(t){const[e,n]=D.useState(),r=D.useRef(null),i=D.useRef(t),o=D.useRef("none"),l=t?"mounted":"unmounted",[a,s]=Rm(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const u=pr(r.current);o.current=a==="mounted"?u:"none"},[a]),Gn(()=>{const u=r.current,d=i.current;if(d!==t){const p=o.current,m=pr(u);t?s("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),Gn(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,f=m=>{const h=pr(r.current).includes(m.animationName);if(m.target===e&&h&&(s("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},p=m=>{m.target===e&&(o.current=pr(r.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(u),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(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function pr(t){return(t==null?void 0:t.animationName)||"none"}function Lm(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 eo=0;function Am(){D.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??_s()),document.body.insertAdjacentElement("beforeend",t[1]??_s()),eo++,()=>{eo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),eo--}},[])}function _s(){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 $r="right-scroll-bar-position",Pr="width-before-scroll-bar",Fm="with-scroll-bars-hidden",Km="--removed-body-scroll-bar-size";function to(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function jm(t,e){var n=c.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 Hm=typeof window<"u"?D.useLayoutEffect:D.useEffect,Is=new WeakMap;function zm(t,e){var n=jm(null,function(r){return t.forEach(function(i){return to(i,r)})});return Hm(function(){var r=Is.get(n);if(r){var i=new Set(r),o=new Set(t),l=n.current;i.forEach(function(a){o.has(a)||to(a,null)}),o.forEach(function(a){i.has(a)||to(a,l)})}Is.set(n,t)},[t]),n}function Vm(t){return t}function Bm(t,e){e===void 0&&(e=Vm);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)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return i}function Um(t){t===void 0&&(t={});var e=Bm(null);return e.options=Ge({async:!0,ssr:!1},t),e}var r0=function(t){var e=t.sideCar,n=gc(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,Ge({},n))};r0.isSideCarExport=!0;function Wm(t,e){return t.useMedium(e),r0}var i0=Um(),no=function(){},Ei=D.forwardRef(function(t,e){var n=D.useRef(null),r=D.useState({onScrollCapture:no,onWheelCapture:no,onTouchMoveCapture:no}),i=r[0],o=r[1],l=t.forwardProps,a=t.children,s=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noRelative,b=t.noIsolation,h=t.inert,v=t.allowPinchZoom,g=t.as,C=g===void 0?"div":g,S=t.gapMode,P=gc(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=p,w=zm([n,e]),x=Ge(Ge({},P),i);return D.createElement(D.Fragment,null,d&&D.createElement($,{sideCar:i0,removeScrollBar:u,shards:f,noRelative:m,noIsolation:b,inert:h,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:S}),l?D.cloneElement(D.Children.only(a),Ge(Ge({},x),{ref:w})):D.createElement(C,Ge({},x,{className:s,ref:w}),a))});Ei.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ei.classNames={fullWidth:Pr,zeroRight:$r};var Gm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qm(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Gm();return e&&t.setAttribute("nonce",e),t}function Ym(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Zm(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Xm=function(){var t=0,e=null;return{add:function(n){t==0&&(e=qm())&&(Ym(e,n),Zm(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Jm=function(){var t=Xm();return function(e,n){D.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},o0=function(){var t=Jm(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},Qm={left:0,top:0,right:0,gap:0},ro=function(t){return parseInt(t||"",10)||0},e1=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[ro(n),ro(r),ro(i)]},t1=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Qm;var e=e1(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])}},n1=o0(),cn="data-scroll-locked",r1=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
+ .`.concat(Fm,` {
49
46
  overflow: hidden `).concat(r,`;
50
47
  padding-right: `).concat(a,"px ").concat(r,`;
51
48
  }
52
- body[`).concat(Pn,`] {
49
+ body[`).concat(cn,`] {
53
50
  overflow: hidden `).concat(r,`;
54
51
  overscroll-behavior: contain;
55
52
  `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -62,41 +59,41 @@ Check the top-level render call using <`+D+">."),Y}var C=c,P=Symbol.for("react.t
62
59
  `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
63
60
  }
64
61
 
65
- .`).concat(Fr,` {
62
+ .`).concat($r,` {
66
63
  right: `).concat(a,"px ").concat(r,`;
67
64
  }
68
65
 
69
- .`).concat(jr,` {
66
+ .`).concat(Pr,` {
70
67
  margin-right: `).concat(a,"px ").concat(r,`;
71
68
  }
72
69
 
73
- .`).concat(Fr," .").concat(Fr,` {
70
+ .`).concat($r," .").concat($r,` {
74
71
  right: 0 `).concat(r,`;
75
72
  }
76
73
 
77
- .`).concat(jr," .").concat(jr,` {
74
+ .`).concat(Pr," .").concat(Pr,` {
78
75
  margin-right: 0 `).concat(r,`;
79
76
  }
80
77
 
81
- body[`).concat(Pn,`] {
82
- `).concat(b1,": ").concat(a,`px;
78
+ body[`).concat(cn,`] {
79
+ `).concat(Km,": ").concat(a,`px;
83
80
  }
84
- `)},Zs=function(){var t=parseInt(document.body.getAttribute(Pn)||"0",10);return isFinite(t)?t:0},K1=function(){_.useEffect(function(){return document.body.setAttribute(Pn,(Zs()+1).toString()),function(){var t=Zs()-1;t<=0?document.body.removeAttribute(Pn):document.body.setAttribute(Pn,t.toString())}},[])},F1=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;K1();var o=_.useMemo(function(){return M1(i)},[i]);return _.createElement(L1,{styles:A1(o,!e,i,n?"":"!important")})},fl=!1;if(typeof window<"u")try{var _r=Object.defineProperty({},"passive",{get:function(){return fl=!0,!0}});window.addEventListener("test",_r,_r),window.removeEventListener("test",_r,_r)}catch{fl=!1}var rn=fl?{passive:!1}:!1,j1=function(t){return t.tagName==="TEXTAREA"},_0=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!j1(t)&&n[e]==="visible")},H1=function(t){return _0(t,"overflowY")},z1=function(t){return _0(t,"overflowX")},Xs=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=I0(t,r);if(i){var o=O0(t,r),l=o[1],a=o[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},V1=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},B1=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},I0=function(t,e){return t==="v"?H1(e):z1(e)},O0=function(t,e){return t==="v"?V1(e):B1(e)},U1=function(t,e){return t==="h"&&e==="rtl"?-1:1},W1=function(t,e,n,r,i){var o=U1(t,window.getComputedStyle(e).direction),l=o*r,a=n.target,s=e.contains(a),u=!1,d=l>0,f=0,p=0;do{var g=O0(t,a),y=g[0],h=g[1],v=g[2],m=h-v-o*y;(y||m)&&I0(t,a)&&(f+=m,p+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!s&&a!==document.body||s&&(e.contains(a)||e===a));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(u=!0),u},Ir=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Js=function(t){return[t.deltaX,t.deltaY]},Qs=function(t){return t&&"current"in t?t.current:t},G1=function(t,e){return t[0]===e[0]&&t[1]===e[1]},q1=function(t){return`
81
+ `)},Os=function(){var t=parseInt(document.body.getAttribute(cn)||"0",10);return isFinite(t)?t:0},i1=function(){D.useEffect(function(){return document.body.setAttribute(cn,(Os()+1).toString()),function(){var t=Os()-1;t<=0?document.body.removeAttribute(cn):document.body.setAttribute(cn,t.toString())}},[])},o1=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;i1();var o=D.useMemo(function(){return t1(i)},[i]);return D.createElement(n1,{styles:r1(o,!e,i,n?"":"!important")})},qo=!1;if(typeof window<"u")try{var vr=Object.defineProperty({},"passive",{get:function(){return qo=!0,!0}});window.addEventListener("test",vr,vr),window.removeEventListener("test",vr,vr)}catch{qo=!1}var Vt=qo?{passive:!1}:!1,l1=function(t){return t.tagName==="TEXTAREA"},l0=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!l1(t)&&n[e]==="visible")},a1=function(t){return l0(t,"overflowY")},s1=function(t){return l0(t,"overflowX")},ks=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=a0(t,r);if(i){var o=s0(t,r),l=o[1],a=o[2];if(l>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},u1=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},c1=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},a0=function(t,e){return t==="v"?a1(e):s1(e)},s0=function(t,e){return t==="v"?u1(e):c1(e)},d1=function(t,e){return t==="h"&&e==="rtl"?-1:1},f1=function(t,e,n,r,i){var o=d1(t,window.getComputedStyle(e).direction),l=o*r,a=n.target,s=e.contains(a),u=!1,d=l>0,f=0,p=0;do{if(!a)break;var m=s0(t,a),b=m[0],h=m[1],v=m[2],g=h-v-o*b;(b||g)&&a0(t,a)&&(f+=g,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)&&(u=!0),u},gr=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Ns=function(t){return[t.deltaX,t.deltaY]},Rs=function(t){return t&&"current"in t?t.current:t},h1=function(t,e){return t[0]===e[0]&&t[1]===e[1]},p1=function(t){return`
85
82
  .block-interactivity-`.concat(t,` {pointer-events: none;}
86
83
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
87
- `)},Y1=0,on=[];function Z1(t){var e=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(Y1++)[0],o=_.useState(T0)[0],l=_.useRef(t);_.useEffect(function(){l.current=t},[t]),_.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var h=ug([t.lockRef.current],(t.shards||[]).map(Qs),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=_.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!l.current.allowPinchZoom;var m=Ir(h),S=n.current,C="deltaX"in h?h.deltaX:S[0]-m[0],P="deltaY"in h?h.deltaY:S[1]-m[1],$,E=h.target,T=Math.abs(C)>Math.abs(P)?"h":"v";if("touches"in h&&T==="h"&&E.type==="range")return!1;var L=Xs(T,E);if(!L)return!0;if(L?$=T:($=T==="v"?"h":"v",L=Xs(T,E)),!L)return!1;if(!r.current&&"changedTouches"in h&&(C||P)&&(r.current=$),!$)return!0;var z=r.current||$;return W1(z,v,h,z==="h"?C:P)},[]),s=_.useCallback(function(h){var v=h;if(!(!on.length||on[on.length-1]!==o)){var m="deltaY"in v?Js(v):Ir(v),S=e.current.filter(function($){return $.name===v.type&&($.target===v.target||v.target===$.shadowParent)&&G1($.delta,m)})[0];if(S&&S.should){v.cancelable&&v.preventDefault();return}if(!S){var C=(l.current.shards||[]).map(Qs).filter(Boolean).filter(function($){return $.contains(v.target)}),P=C.length>0?a(v,C[0]):!l.current.noIsolation;P&&v.cancelable&&v.preventDefault()}}},[]),u=_.useCallback(function(h,v,m,S){var C={name:h,delta:v,target:m,should:S,shadowParent:X1(m)};e.current.push(C),setTimeout(function(){e.current=e.current.filter(function(P){return P!==C})},1)},[]),d=_.useCallback(function(h){n.current=Ir(h),r.current=void 0},[]),f=_.useCallback(function(h){u(h.type,Js(h),h.target,a(h,t.lockRef.current))},[]),p=_.useCallback(function(h){u(h.type,Ir(h),h.target,a(h,t.lockRef.current))},[]);_.useEffect(function(){return on.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,rn),document.addEventListener("touchmove",s,rn),document.addEventListener("touchstart",d,rn),function(){on=on.filter(function(h){return h!==o}),document.removeEventListener("wheel",s,rn),document.removeEventListener("touchmove",s,rn),document.removeEventListener("touchstart",d,rn)}},[]);var g=t.removeScrollBar,y=t.inert;return _.createElement(_.Fragment,null,y?_.createElement(o,{styles:q1(i)}):null,g?_.createElement(F1,{gapMode:t.gapMode}):null)}function X1(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const J1=P1(D0,Z1);var k0=_.forwardRef(function(t,e){return _.createElement(Ki,nt({},t,{ref:e,sideCar:J1}))});k0.classNames=Ki.classNames;var Q1=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},ln=new WeakMap,Or=new WeakMap,kr={},wo=0,N0=function(t){return t&&(t.host||N0(t.parentNode))},ey=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=N0(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})},ty=function(t,e,n,r){var i=ey(e,Array.isArray(t)?t:[t]);kr[n]||(kr[n]=new WeakMap);var o=kr[n],l=[],a=new Set,s=new Set(i),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};i.forEach(u);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 g=p.getAttribute(r),y=g!==null&&g!=="false",h=(ln.get(p)||0)+1,v=(o.get(p)||0)+1;ln.set(p,h),o.set(p,v),l.push(p),h===1&&y&&Or.set(p,!0),v===1&&p.setAttribute(n,"true"),y||p.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",p,m)}})};return d(e),a.clear(),wo++,function(){l.forEach(function(f){var p=ln.get(f)-1,g=o.get(f)-1;ln.set(f,p),o.set(f,g),p||(Or.has(f)||f.removeAttribute(r),Or.delete(f)),g||f.removeAttribute(n)}),wo--,wo||(ln=new WeakMap,ln=new WeakMap,Or=new WeakMap,kr={})}},ny=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=Q1(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),ty(r,i,n,"aria-hidden")):function(){return null}},ca="Dialog",[R0,mS]=jm(ca),[ry,Xe]=R0(ca),M0=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,a=_.useRef(null),s=_.useRef(null),[u=!1,d]=Bm({prop:r,defaultProp:i,onChange:o});return b.jsx(ry,{scope:e,triggerRef:a,contentRef:s,contentId:dt(),titleId:dt(),descriptionId:dt(),open:u,onOpenChange:d,onOpenToggle:_.useCallback(()=>d(f=>!f),[d]),modal:l,children:n})};M0.displayName=ca;var L0="DialogTrigger",iy=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Xe(L0,n),o=Zt(e,i.triggerRef);return b.jsx(Ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ha(i.open),...r,ref:o,onClick:xt(t.onClick,i.onOpenToggle)})});iy.displayName=L0;var da="DialogPortal",[oy,A0]=R0(da,{forceMount:void 0}),K0=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,o=Xe(da,e);return b.jsx(oy,{scope:e,forceMount:n,children:_.Children.map(r,l=>b.jsx(Ai,{present:n||o.open,children:b.jsx($0,{asChild:!0,container:i,children:l})}))})};K0.displayName=da;var di="DialogOverlay",F0=_.forwardRef((t,e)=>{const n=A0(di,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Xe(di,t.__scopeDialog);return o.modal?b.jsx(Ai,{present:r||o.open,children:b.jsx(ly,{...i,ref:e})}):null});F0.displayName=di;var ly=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Xe(di,n);return b.jsx(k0,{as:ua,allowPinchZoom:!0,shards:[i.contentRef],children:b.jsx(Ee.div,{"data-state":ha(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),zt="DialogContent",j0=_.forwardRef((t,e)=>{const n=A0(zt,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Xe(zt,t.__scopeDialog);return b.jsx(Ai,{present:r||o.open,children:o.modal?b.jsx(ay,{...i,ref:e}):b.jsx(sy,{...i,ref:e})})});j0.displayName=zt;var ay=_.forwardRef((t,e)=>{const n=Xe(zt,t.__scopeDialog),r=_.useRef(null),i=Zt(e,n.contentRef,r);return _.useEffect(()=>{const o=r.current;if(o)return ny(o)},[]),b.jsx(H0,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xt(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:xt(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&o.preventDefault()}),onFocusOutside:xt(t.onFocusOutside,o=>o.preventDefault())})}),sy=_.forwardRef((t,e)=>{const n=Xe(zt,t.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return b.jsx(H0,{...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,u;(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;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),H0=_.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=t,a=Xe(zt,n),s=_.useRef(null),u=Zt(e,s);return m1(),b.jsxs(b.Fragment,{children:[b.jsx(x0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:b.jsx(C0,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ha(a.open),...l,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(fy,{titleId:a.titleId}),b.jsx(py,{contentRef:s,descriptionId:a.descriptionId})]})]})}),fa="DialogTitle",uy=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Xe(fa,n);return b.jsx(Ee.h2,{id:i.titleId,...r,ref:e})});uy.displayName=fa;var z0="DialogDescription",cy=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Xe(z0,n);return b.jsx(Ee.p,{id:i.descriptionId,...r,ref:e})});cy.displayName=z0;var V0="DialogClose",dy=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Xe(V0,n);return b.jsx(Ee.button,{type:"button",...r,ref:e,onClick:xt(t.onClick,()=>i.onOpenChange(!1))})});dy.displayName=V0;function ha(t){return t?"open":"closed"}var B0="DialogTitleWarning",[yS,U0]=Fm(B0,{contentName:zt,titleName:fa,docsSlug:"dialog"}),fy=({titleId:t})=>{const e=U0(B0),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
84
+ `)},v1=0,Bt=[];function g1(t){var e=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),i=D.useState(v1++)[0],o=D.useState(o0)[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=Op([t.lockRef.current],(t.shards||[]).map(Rs),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=D.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!l.current.allowPinchZoom;var g=gr(h),C=n.current,S="deltaX"in h?h.deltaX:C[0]-g[0],P="deltaY"in h?h.deltaY:C[1]-g[1],$,w=h.target,x=Math.abs(S)>Math.abs(P)?"h":"v";if("touches"in h&&x==="h"&&w.type==="range")return!1;var R=ks(x,w);if(!R)return!0;if(R?$=x:($=x==="v"?"h":"v",R=ks(x,w)),!R)return!1;if(!r.current&&"changedTouches"in h&&(S||P)&&(r.current=$),!$)return!0;var H=r.current||$;return f1(H,v,h,H==="h"?S:P)},[]),s=D.useCallback(function(h){var v=h;if(!(!Bt.length||Bt[Bt.length-1]!==o)){var g="deltaY"in v?Ns(v):gr(v),C=e.current.filter(function($){return $.name===v.type&&($.target===v.target||v.target===$.shadowParent)&&h1($.delta,g)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var S=(l.current.shards||[]).map(Rs).filter(Boolean).filter(function($){return $.contains(v.target)}),P=S.length>0?a(v,S[0]):!l.current.noIsolation;P&&v.cancelable&&v.preventDefault()}}},[]),u=D.useCallback(function(h,v,g,C){var S={name:h,delta:v,target:g,should:C,shadowParent:m1(g)};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(P){return P!==S})},1)},[]),d=D.useCallback(function(h){n.current=gr(h),r.current=void 0},[]),f=D.useCallback(function(h){u(h.type,Ns(h),h.target,a(h,t.lockRef.current))},[]),p=D.useCallback(function(h){u(h.type,gr(h),h.target,a(h,t.lockRef.current))},[]);D.useEffect(function(){return Bt.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Vt),document.addEventListener("touchmove",s,Vt),document.addEventListener("touchstart",d,Vt),function(){Bt=Bt.filter(function(h){return h!==o}),document.removeEventListener("wheel",s,Vt),document.removeEventListener("touchmove",s,Vt),document.removeEventListener("touchstart",d,Vt)}},[]);var m=t.removeScrollBar,b=t.inert;return D.createElement(D.Fragment,null,b?D.createElement(o,{styles:p1(i)}):null,m?D.createElement(o1,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function m1(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const b1=Wm(i0,g1);var u0=D.forwardRef(function(t,e){return D.createElement(Ei,Ge({},t,{ref:e,sideCar:b1}))});u0.classNames=Ei.classNames;var y1=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Ut=new WeakMap,mr=new WeakMap,br={},io=0,c0=function(t){return t&&(t.host||c0(t.parentNode))},C1=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=c0(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})},S1=function(t,e,n,r){var i=C1(e,Array.isArray(t)?t:[t]);br[n]||(br[n]=new WeakMap);var o=br[n],l=[],a=new Set,s=new Set(i),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};i.forEach(u);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 m=p.getAttribute(r),b=m!==null&&m!=="false",h=(Ut.get(p)||0)+1,v=(o.get(p)||0)+1;Ut.set(p,h),o.set(p,v),l.push(p),h===1&&b&&mr.set(p,!0),v===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",p,g)}})};return d(e),a.clear(),io++,function(){l.forEach(function(f){var p=Ut.get(f)-1,m=o.get(f)-1;Ut.set(f,p),o.set(f,m),p||(mr.has(f)||f.removeAttribute(r),mr.delete(f)),m||f.removeAttribute(n)}),io--,io||(Ut=new WeakMap,Ut=new WeakMap,mr=new WeakMap,br={})}},E1=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=y1(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),S1(r,i,n,"aria-hidden")):function(){return null}},wi="Dialog",[d0,O7]=rm(wi),[w1,Ve]=d0(wi),f0=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,a=D.useRef(null),s=D.useRef(null),[u,d]=sm({prop:r,defaultProp:i??!1,onChange:o,caller:wi});return y.jsx(w1,{scope:e,triggerRef:a,contentRef:s,contentId:Qe(),titleId:Qe(),descriptionId:Qe(),open:u,onOpenChange:d,onOpenToggle:D.useCallback(()=>d(f=>!f),[d]),modal:l,children:n})};f0.displayName=wi;var h0="DialogTrigger",x1=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ve(h0,n),o=Ft(e,i.triggerRef);return y.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ul(i.open),...r,ref:o,onClick:dt(t.onClick,i.onOpenToggle)})});x1.displayName=h0;var Vl="DialogPortal",[$1,p0]=d0(Vl,{forceMount:void 0}),v0=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,o=Ve(Vl,e);return y.jsx($1,{scope:e,forceMount:n,children:D.Children.map(r,l=>y.jsx(Si,{present:n||o.open,children:y.jsx(n0,{asChild:!0,container:i,children:l})}))})};v0.displayName=Vl;var Yr="DialogOverlay",g0=D.forwardRef((t,e)=>{const n=p0(Yr,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Ve(Yr,t.__scopeDialog);return o.modal?y.jsx(Si,{present:r||o.open,children:y.jsx(D1,{...i,ref:e})}):null});g0.displayName=Yr;var P1=Zf("DialogOverlay.RemoveScroll"),D1=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ve(Yr,n);return y.jsx(u0,{as:P1,allowPinchZoom:!0,shards:[i.contentRef],children:y.jsx(me.div,{"data-state":Ul(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),It="DialogContent",m0=D.forwardRef((t,e)=>{const n=p0(It,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=Ve(It,t.__scopeDialog);return y.jsx(Si,{present:r||o.open,children:o.modal?y.jsx(T1,{...i,ref:e}):y.jsx(_1,{...i,ref:e})})});m0.displayName=It;var T1=D.forwardRef((t,e)=>{const n=Ve(It,t.__scopeDialog),r=D.useRef(null),i=Ft(e,n.contentRef,r);return D.useEffect(()=>{const o=r.current;if(o)return E1(o)},[]),y.jsx(b0,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dt(t.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:dt(t.onPointerDownOutside,o=>{const l=o.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&o.preventDefault()}),onFocusOutside:dt(t.onFocusOutside,o=>o.preventDefault())})}),_1=D.forwardRef((t,e)=>{const n=Ve(It,t.__scopeDialog),r=D.useRef(!1),i=D.useRef(!1);return y.jsx(b0,{...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,u;(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;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),b0=D.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=t,a=Ve(It,n),s=D.useRef(null),u=Ft(e,s);return Am(),y.jsxs(y.Fragment,{children:[y.jsx(e0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:y.jsx(Jf,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ul(a.open),...l,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(N1,{titleId:a.titleId}),y.jsx(M1,{contentRef:s,descriptionId:a.descriptionId})]})]})}),Bl="DialogTitle",I1=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ve(Bl,n);return y.jsx(me.h2,{id:i.titleId,...r,ref:e})});I1.displayName=Bl;var y0="DialogDescription",O1=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ve(y0,n);return y.jsx(me.p,{id:i.descriptionId,...r,ref:e})});O1.displayName=y0;var C0="DialogClose",k1=D.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=Ve(C0,n);return y.jsx(me.button,{type:"button",...r,ref:e,onClick:dt(t.onClick,()=>i.onOpenChange(!1))})});k1.displayName=C0;function Ul(t){return t?"open":"closed"}var S0="DialogTitleWarning",[k7,E0]=nm(S0,{contentName:It,titleName:Bl,docsSlug:"dialog"}),N1=({titleId:t})=>{const e=E0(S0),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
88
85
 
89
86
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
90
87
 
91
- For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return _.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},hy="DialogDescriptionWarning",py=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${U0(hy).contentName}}.`;return _.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},gy=M0,vy=K0,my=F0,yy=j0,Wn='[cmdk-group=""]',xo='[cmdk-group-items=""]',by='[cmdk-group-heading=""]',pa='[cmdk-item=""]',eu=`${pa}:not([aria-disabled="true"])`,hl="cmdk-item-select",Tt="data-value",Sy=(t,e,n)=>Km(t,e,n),W0=_.createContext(void 0),pr=()=>_.useContext(W0),G0=_.createContext(void 0),ga=()=>_.useContext(G0),q0=_.createContext(void 0),Y0=_.forwardRef((t,e)=>{let n=vn(()=>{var O,k;return{search:"",value:(k=(O=t.value)!=null?O:t.defaultValue)!=null?k:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=vn(()=>new Set),i=vn(()=>new Map),o=vn(()=>new Map),l=vn(()=>new Set),a=Z0(t),{label:s,children:u,value:d,onValueChange:f,filter:p,shouldFilter:g,loop:y,disablePointerSelection:h=!1,vimBindings:v=!0,...m}=t,S=dt(),C=dt(),P=dt(),$=_.useRef(null),E=Oy();Vt(()=>{if(d!==void 0){let O=d.trim();n.current.value=O,T.emit()}},[d]),Vt(()=>{E(6,B)},[]);let T=_.useMemo(()=>({subscribe:O=>(l.current.add(O),()=>l.current.delete(O)),snapshot:()=>n.current,setState:(O,k,F)=>{var K,V,W;if(!Object.is(n.current[O],k)){if(n.current[O]=k,O==="search")M(),A(),E(1,w);else if(O==="value"&&(F||E(5,B),((K=a.current)==null?void 0:K.value)!==void 0)){let X=k??"";(W=(V=a.current).onValueChange)==null||W.call(V,X);return}T.emit()}},emit:()=>{l.current.forEach(O=>O())}}),[]),L=_.useMemo(()=>({value:(O,k,F)=>{var K;k!==((K=o.current.get(O))==null?void 0:K.value)&&(o.current.set(O,{value:k,keywords:F}),n.current.filtered.items.set(O,z(k,F)),E(2,()=>{A(),T.emit()}))},item:(O,k)=>(r.current.add(O),k&&(i.current.has(k)?i.current.get(k).add(O):i.current.set(k,new Set([O]))),E(3,()=>{M(),A(),n.current.value||w(),T.emit()}),()=>{o.current.delete(O),r.current.delete(O),n.current.filtered.items.delete(O);let F=R();E(4,()=>{M(),(F==null?void 0:F.getAttribute("id"))===O&&w(),T.emit()})}),group:O=>(i.current.has(O)||i.current.set(O,new Set),()=>{o.current.delete(O),i.current.delete(O)}),filter:()=>a.current.shouldFilter,label:s||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:S,inputId:P,labelId:C,listInnerRef:$}),[]);function z(O,k){var F,K;let V=(K=(F=a.current)==null?void 0:F.filter)!=null?K:Sy;return O?V(O,n.current.search,k):0}function A(){if(!n.current.search||a.current.shouldFilter===!1)return;let O=n.current.filtered.items,k=[];n.current.filtered.groups.forEach(K=>{let V=i.current.get(K),W=0;V.forEach(X=>{let Q=O.get(X);W=Math.max(Q,W)}),k.push([K,W])});let F=$.current;U().sort((K,V)=>{var W,X;let Q=K.getAttribute("id"),oe=V.getAttribute("id");return((W=O.get(oe))!=null?W:0)-((X=O.get(Q))!=null?X:0)}).forEach(K=>{let V=K.closest(xo);V?V.appendChild(K.parentElement===V?K:K.closest(`${xo} > *`)):F.appendChild(K.parentElement===F?K:K.closest(`${xo} > *`))}),k.sort((K,V)=>V[1]-K[1]).forEach(K=>{var V;let W=(V=$.current)==null?void 0:V.querySelector(`${Wn}[${Tt}="${encodeURIComponent(K[0])}"]`);W==null||W.parentElement.appendChild(W)})}function w(){let O=U().find(F=>F.getAttribute("aria-disabled")!=="true"),k=O==null?void 0:O.getAttribute(Tt);T.setState("value",k||void 0)}function M(){var O,k,F,K;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let V=0;for(let W of r.current){let X=(k=(O=o.current.get(W))==null?void 0:O.value)!=null?k:"",Q=(K=(F=o.current.get(W))==null?void 0:F.keywords)!=null?K:[],oe=z(X,Q);n.current.filtered.items.set(W,oe),oe>0&&V++}for(let[W,X]of i.current)for(let Q of X)if(n.current.filtered.items.get(Q)>0){n.current.filtered.groups.add(W);break}n.current.filtered.count=V}function B(){var O,k,F;let K=R();K&&(((O=K.parentElement)==null?void 0:O.firstChild)===K&&((F=(k=K.closest(Wn))==null?void 0:k.querySelector(by))==null||F.scrollIntoView({block:"nearest"})),K.scrollIntoView({block:"nearest"}))}function R(){var O;return(O=$.current)==null?void 0:O.querySelector(`${pa}[aria-selected="true"]`)}function U(){var O;return Array.from(((O=$.current)==null?void 0:O.querySelectorAll(eu))||[])}function x(O){let k=U()[O];k&&T.setState("value",k.getAttribute(Tt))}function N(O){var k;let F=R(),K=U(),V=K.findIndex(X=>X===F),W=K[V+O];(k=a.current)!=null&&k.loop&&(W=V+O<0?K[K.length-1]:V+O===K.length?K[0]:K[V+O]),W&&T.setState("value",W.getAttribute(Tt))}function I(O){let k=R(),F=k==null?void 0:k.closest(Wn),K;for(;F&&!K;)F=O>0?_y(F,Wn):Iy(F,Wn),K=F==null?void 0:F.querySelector(eu);K?T.setState("value",K.getAttribute(Tt)):N(O)}let G=()=>x(U().length-1),H=O=>{O.preventDefault(),O.metaKey?G():O.altKey?I(1):N(1)},j=O=>{O.preventDefault(),O.metaKey?x(0):O.altKey?I(-1):N(-1)};return _.createElement(Ee.div,{ref:e,tabIndex:-1,...m,"cmdk-root":"",onKeyDown:O=>{var k;if((k=m.onKeyDown)==null||k.call(m,O),!O.defaultPrevented)switch(O.key){case"n":case"j":{v&&O.ctrlKey&&H(O);break}case"ArrowDown":{H(O);break}case"p":case"k":{v&&O.ctrlKey&&j(O);break}case"ArrowUp":{j(O);break}case"Home":{O.preventDefault(),x(0);break}case"End":{O.preventDefault(),G();break}case"Enter":if(!O.nativeEvent.isComposing&&O.keyCode!==229){O.preventDefault();let F=R();if(F){let K=new Event(hl);F.dispatchEvent(K)}}}}},_.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:Ny},s),Fi(t,O=>_.createElement(G0.Provider,{value:T},_.createElement(W0.Provider,{value:L},O))))}),Cy=_.forwardRef((t,e)=>{var n,r;let i=dt(),o=_.useRef(null),l=_.useContext(q0),a=pr(),s=Z0(t),u=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Vt(()=>{if(!u)return a.item(i,l==null?void 0:l.id)},[u]);let d=X0(i,o,[t.value,t.children,o],t.keywords),f=ga(),p=Bt(E=>E.value&&E.value===d.current),g=Bt(E=>u||a.filter()===!1?!0:E.search?E.filtered.items.get(i)>0:!0);_.useEffect(()=>{let E=o.current;if(!(!E||t.disabled))return E.addEventListener(hl,y),()=>E.removeEventListener(hl,y)},[g,t.onSelect,t.disabled]);function y(){var E,T;h(),(T=(E=s.current).onSelect)==null||T.call(E,d.current)}function h(){f.setState("value",d.current,!0)}if(!g)return null;let{disabled:v,value:m,onSelect:S,forceMount:C,keywords:P,...$}=t;return _.createElement(Ee.div,{ref:cr([o,e]),...$,id:i,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||a.getDisablePointerSelection()?void 0:h,onClick:v?void 0:y},t.children)}),wy=_.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=dt(),a=_.useRef(null),s=_.useRef(null),u=dt(),d=pr(),f=Bt(g=>i||d.filter()===!1?!0:g.search?g.filtered.groups.has(l):!0);Vt(()=>d.group(l),[]),X0(l,a,[t.value,t.heading,s]);let p=_.useMemo(()=>({id:l,forceMount:i}),[i]);return _.createElement(Ee.div,{ref:cr([a,e]),...o,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&_.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),Fi(t,g=>_.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},_.createElement(q0.Provider,{value:p},g))))}),xy=_.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=_.useRef(null),o=Bt(l=>!l.search);return!n&&!o?null:_.createElement(Ee.div,{ref:cr([i,e]),...r,"cmdk-separator":"",role:"separator"})}),Ey=_.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=ga(),l=Bt(d=>d.search),a=Bt(d=>d.value),s=pr(),u=_.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${pa}[${Tt}="${encodeURIComponent(a)}"]`);return f==null?void 0:f.getAttribute("id")},[]);return _.useEffect(()=>{t.value!=null&&o.setState("search",t.value)},[t.value]),_.createElement(Ee.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":u,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)}})}),$y=_.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=_.useRef(null),l=_.useRef(null),a=pr();return _.useEffect(()=>{if(l.current&&o.current){let s=l.current,u=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let p=s.offsetHeight;u.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),_.createElement(Ee.div,{ref:cr([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},Fi(t,s=>_.createElement("div",{ref:cr([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),Py=_.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return _.createElement(gy,{open:n,onOpenChange:r},_.createElement(vy,{container:l},_.createElement(my,{"cmdk-overlay":"",className:i}),_.createElement(yy,{"aria-label":t.label,"cmdk-dialog":"",className:o},_.createElement(Y0,{ref:e,...a}))))}),Dy=_.forwardRef((t,e)=>Bt(n=>n.filtered.count===0)?_.createElement(Ee.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),Ty=_.forwardRef((t,e)=>{let{progress:n,children:r,label:i="Loading...",...o}=t;return _.createElement(Ee.div,{ref:e,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},Fi(t,l=>_.createElement("div",{"aria-hidden":!0},l)))}),ur=Object.assign(Y0,{List:$y,Item:Cy,Input:Ey,Group:wy,Separator:xy,Dialog:Py,Empty:Dy,Loading:Ty});function _y(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function Iy(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function Z0(t){let e=_.useRef(t);return Vt(()=>{e.current=t}),e}var Vt=typeof window>"u"?_.useEffect:_.useLayoutEffect;function vn(t){let e=_.useRef();return e.current===void 0&&(e.current=t()),e}function cr(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function Bt(t){let e=ga(),n=()=>t(e.snapshot());return jl.useSyncExternalStore(e.subscribe,n,n)}function X0(t,e,n,r=[]){let i=_.useRef(),o=pr();return Vt(()=>{var l;let a=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():i.current}})(),s=r.map(u=>u.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(Tt,a),i.current=a}),i}var Oy=()=>{let[t,e]=_.useState(),n=vn(()=>new Map);return Vt(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function ky(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function Fi({asChild:t,children:e},n){return t&&_.isValidElement(e)?_.cloneElement(ky(e),{ref:e.ref},n(e.props.children)):n(e)}var Ny={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const pl=({withPadding:t=!0})=>b.jsx("div",{className:Me("c__horizontal-separator",{"with-padding":t})}),J0=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=pe.useCunningham();return i?b.jsxs(b.Fragment,{children:[i,o&&b.jsx(pl,{})]}):b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"quick-search-input-container",children:[!t&&b.jsx("span",{className:"material-icons",children:"search"}),t&&b.jsx("div",{children:b.jsx(sa,{size:"md"})}),b.jsx(ur.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&b.jsx(pl,{withPadding:!0})]})},Ry=t=>{let e=!1;return c.Children.forEach(t,n=>{e=e||!!n}),e},Q0=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=c.useRef(null);return b.jsx(b.Fragment,{children:b.jsx("div",{className:"quick-search-container",children:b.jsxs(ur,{label:o,shouldFilter:!1,ref:s,children:[i&&b.jsx(J0,{loading:r,withSeparator:Ry(a),inputValue:n,onFilter:t,placeholder:l,children:e}),b.jsx(ur.List,{children:b.jsx("div",{children:a})})]})})})},Hr=({children:t,onSelect:e,id:n})=>b.jsx(ur.Item,{value:n,onSelect:e,children:t}),e2=({group:t,onSelect:e,renderElement:n})=>{var r,i;return!t.showWhenEmpty&&t.elements.length===0?null:b.jsx("div",{className:"pt-base",children:b.jsxs(ur.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>b.jsx(Hr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>b.jsx(Hr,{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)=>b.jsx(Hr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.emptyString&&t.elements.length===0&&b.jsx("span",{className:"ml-b clr-greyscale-500",children:t.emptyString})]},t.groupName)})},ji=({alwaysShowRight:t=!1,left:e,right:n})=>{const{isDesktop:r}=An();return b.jsxs("div",{className:"c__quick-search-item-template",children:[b.jsx("div",{className:"c__quick-search-item-template__left",children:e}),r&&n&&b.jsx("div",{className:Me("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},My=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:b.jsx("div",{className:Me("c__tabs",{"c__tabs__full-width":n}),children:b.jsxs(Pv,{defaultSelectedKey:e,children:[b.jsx(Tv,{"aria-label":"History of Ancient Rome",children:t.map(r=>b.jsxs(Iv,{id:r.id,children:[r.icon&&b.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>b.jsx(Ov,{id:r.id,children:r.content},r.id))]})}),t2=c.createContext(null);function Ke(){const t=c.useContext(t2);if(t===null)throw new Error("No Tree Api Provided");return t}const n2=c.createContext(null);function Ly(){const t=c.useContext(n2);if(t===null)throw new Error("Provide a NodesContext");return t}const r2=c.createContext(null);function Ay(){const t=c.useContext(r2);if(t===null)throw new Error("Provide a DnDContext");return t}const i2=c.createContext(0);function o2(){c.useContext(i2)}function zr(t,e,n){return Math.max(Math.min(t,n),e)}function l2(t){return t&&t.isLeaf}function a2(t){return t&&t.isInternal&&!t.isOpen}function s2(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const u2=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},c2=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function Ky(){}function va(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=va(n,e);if(r)return r}return null}function fi(t,e){if(e(t),t.children)for(let n of t.children)fi(n,e)}function d2(t){const e=h2(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=Fy(e,r);break}n==null||n.focus()}function f2(t){const e=h2(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=jy(e,r);break}n==null||n.focus()}function Fy(t,e){return e+1<t.length?t[e+1]:t[0]}function jy(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function h2(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 er(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function p2(t){return t===null?null:_t(t)}function _t(t){return typeof t=="string"?t:t.id}function Hy(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function g2(t,...e){if(t)return t(...e)}function v2(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function m2(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 y2(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const zy=Object.freeze(Object.defineProperty({__proto__:null,access:er,bound:zr,dfs:va,focusNextElement:d2,focusPrevElement:f2,getInsertIndex:m2,getInsertParentId:y2,identify:_t,identifyNull:p2,indexOf:c2,isClosed:a2,isDescendant:u2,isItem:l2,isOpenWithEmptyChildren:s2,mergeRefs:Hy,noop:Ky,safeRun:g2,waitFor:v2,walk:fi},Symbol.toStringTag,{value:"Module"})),Vy={display:"flex",alignItems:"center",zIndex:1},By={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},Uy={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},Wy=c.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 b.jsxs("div",{style:Object.assign(Object.assign({},Vy),i),children:[b.jsx("div",{style:Object.assign({},Uy)}),b.jsx("div",{style:Object.assign({},By)})]})});function Gy({node:t,attrs:e,innerRef:n,children:r}){return b.jsx("div",Object.assign({},e,{ref:n,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:r}))}function qy(t){return b.jsxs("div",{ref:t.dragHandle,style:t.style,children:[b.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?b.jsx(Zy,Object.assign({},t)):b.jsx(Yy,Object.assign({},t))]})}function Yy(t){return b.jsx(b.Fragment,{children:b.jsx("span",{children:t.node.data.name})})}function Zy({node:t}){const e=c.useRef();return c.useEffect(()=>{var n,r;(n=e.current)===null||n===void 0||n.focus(),(r=e.current)===null||r===void 0||r.select()},[]),b.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 Eo(t){return{type:"EDIT",id:t}}function Xy(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function an(t){return{type:"FOCUS",id:t}}function Jy(){return{type:"TREE_BLUR"}}function Qy(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 hi{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===dr}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 hi(Object.assign({},this))}edit(){return this.tree.edit(this)}}const dr="__REACT_ARBORIST_INTERNAL_ROOT__";function tu(t){var e;function n(o,l,a){const s=t.accessId(o),u=new hi({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(u.children=d.map(f=>n(f,l+1,u))),u}const r=new hi({tree:t,id:dr,data:{id:dr},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 gl={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 nu(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 eb(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:nu(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:nu(t.unfiltered,e)}):t}const Nn=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}}},We={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:_t(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(_t)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(_t)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:_t(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:_t(t)})};function tb(t=Nn().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 Rn={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 nb(t=Nn().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 Nn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const rb={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},ib=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},ob=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function b2({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return b.jsxs(lb,{isDragging:i,children:[b.jsx(ab,{offset:t,children:b.jsx(ub,{id:n,dragIds:r})}),b.jsx(sb,{mouse:e,count:r.length})]})}const lb=c.memo(function(e){return e.isDragging?b.jsx("div",{style:rb,children:e.children}):null});function ab(t){return b.jsx("div",{className:"row preview",style:ib(t.offset),children:t.children})}function sb(t){const{count:e,mouse:n}=t;return e>1?b.jsx("div",{className:"selected-count",style:ob(n),children:e}):null}const ub=c.memo(function(e){const n=Ke(),r=n.get(e.id);return r?b.jsx(n.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function vl(){return vl=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},vl.apply(null,arguments)}function ru(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ml(t,e){return ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ml(t,e)}function cb(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ml(t,e)}var iu=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function db(t,e){return!!(t===e||iu(t)&&iu(e))}function fb(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!db(t[n],e[n]))return!1;return!0}function $o(t,e){e===void 0&&(e=fb);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 hb=typeof performance=="object"&&typeof performance.now=="function",ou=hb?function(){return performance.now()}:function(){return Date.now()};function lu(t){cancelAnimationFrame(t.id)}function pb(t,e){var n=ou();function r(){ou()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var Po=-1;function au(t){if(t===void 0&&(t=!1),Po===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),Po=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Po}var sn=null;function su(t){if(t===void 0&&(t=!1),sn===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?sn="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?sn="negative":sn="positive-ascending"),document.body.removeChild(e),sn}return sn}process.env.NODE_ENV;var gb=150,vb=function(e,n){return e},Vr=null,Br=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Vr=new WeakSet,Br=new WeakSet);function mb(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,u=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){cb(p,f);function p(y){var h;return h=f.call(this,y)||this,h._instanceProps=s(h.props,ru(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:ru(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=$o(function(v,m,S,C){return h.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:m,visibleStartIndex:S,visibleStopIndex:C})}),h._callOnScroll=void 0,h._callOnScroll=$o(function(v,m,S){return h.props.onScroll({scrollDirection:v,scrollOffset:m,scrollUpdateWasRequested:S})}),h._getItemStyle=void 0,h._getItemStyle=function(v){var m=h.props,S=m.direction,C=m.itemSize,P=m.layout,$=h._getItemStyleCache(u&&C,u&&P,u&&S),E;if($.hasOwnProperty(v))E=$[v];else{var T=n(h.props,v,h._instanceProps),L=i(h.props,v,h._instanceProps),z=S==="horizontal"||P==="horizontal",A=S==="rtl",w=z?T:0;$[v]=E={position:"absolute",left:A?void 0:w,right:A?w:void 0,top:z?0:T,height:z?"100%":L,width:z?L:"100%"}}return E},h._getItemStyleCache=void 0,h._getItemStyleCache=$o(function(v,m,S){return{}}),h._onScrollHorizontal=function(v){var m=v.currentTarget,S=m.clientWidth,C=m.scrollLeft,P=m.scrollWidth;h.setState(function($){if($.scrollOffset===C)return null;var E=h.props.direction,T=C;if(E==="rtl")switch(su()){case"negative":T=-C;break;case"positive-descending":T=P-S-C;break}return T=Math.max(0,Math.min(T,P-S)),{isScrolling:!0,scrollDirection:$.scrollOffset<T?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(v){var m=v.currentTarget,S=m.clientHeight,C=m.scrollHeight,P=m.scrollTop;h.setState(function($){if($.scrollOffset===P)return null;var E=Math.max(0,Math.min(P,C-S));return{isScrolling:!0,scrollDirection:$.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(v){var m=h.props.outerRef;h._outerRef=v,typeof m=="function"?m(v):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=v)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&lu(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=pb(h._resetIsScrolling,gb)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}p.getDerivedStateFromProps=function(h,v){return yb(h,v),d(h),null};var g=p.prototype;return g.scrollTo=function(h){h=Math.max(0,h),this.setState(function(v){return v.scrollOffset===h?null:{scrollDirection:v.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(h,v){v===void 0&&(v="auto");var m=this.props,S=m.itemCount,C=m.layout,P=this.state.scrollOffset;h=Math.max(0,Math.min(h,S-1));var $=0;if(this._outerRef){var E=this._outerRef;C==="vertical"?$=E.scrollWidth>E.clientWidth?au():0:$=E.scrollHeight>E.clientHeight?au():0}this.scrollTo(o(this.props,h,v,P,this._instanceProps,$))},g.componentDidMount=function(){var h=this.props,v=h.direction,m=h.initialScrollOffset,S=h.layout;if(typeof m=="number"&&this._outerRef!=null){var C=this._outerRef;v==="horizontal"||S==="horizontal"?C.scrollLeft=m:C.scrollTop=m}this._callPropsCallbacks()},g.componentDidUpdate=function(){var h=this.props,v=h.direction,m=h.layout,S=this.state,C=S.scrollOffset,P=S.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var $=this._outerRef;if(v==="horizontal"||m==="horizontal")if(v==="rtl")switch(su()){case"negative":$.scrollLeft=-C;break;case"positive-ascending":$.scrollLeft=C;break;default:var E=$.clientWidth,T=$.scrollWidth;$.scrollLeft=T-E-C;break}else $.scrollLeft=C;else $.scrollTop=C}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&lu(this._resetIsScrollingTimeoutId)},g.render=function(){var h=this.props,v=h.children,m=h.className,S=h.direction,C=h.height,P=h.innerRef,$=h.innerElementType,E=h.innerTagName,T=h.itemCount,L=h.itemData,z=h.itemKey,A=z===void 0?vb:z,w=h.layout,M=h.outerElementType,B=h.outerTagName,R=h.style,U=h.useIsScrolling,x=h.width,N=this.state.isScrolling,I=S==="horizontal"||w==="horizontal",G=I?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),j=H[0],O=H[1],k=[];if(T>0)for(var F=j;F<=O;F++)k.push(c.createElement(v,{data:L,key:A(F,L),index:F,isScrolling:U?N:void 0,style:this._getItemStyle(F)}));var K=r(this.props,this._instanceProps);return c.createElement(M||B||"div",{className:m,onScroll:G,ref:this._outerRefSetter,style:vl({position:"relative",height:C,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:S},R)},c.createElement($||E||"div",{children:k,ref:P,style:{height:I?"100%":K,pointerEvents:N?"none":void 0,width:I?K:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var v=this._getRangeToRender(),m=v[0],S=v[1],C=v[2],P=v[3];this._callOnItemsRendered(m,S,C,P)}}if(typeof this.props.onScroll=="function"){var $=this.state,E=$.scrollDirection,T=$.scrollOffset,L=$.scrollUpdateWasRequested;this._callOnScroll(E,T,L)}},g._getRangeToRender=function(){var h=this.props,v=h.itemCount,m=h.overscanCount,S=this.state,C=S.isScrolling,P=S.scrollDirection,$=S.scrollOffset;if(v===0)return[0,0,0,0];var E=l(this.props,$,this._instanceProps),T=a(this.props,E,$,this._instanceProps),L=!C||P==="backward"?Math.max(1,m):1,z=!C||P==="forward"?Math.max(1,m):1;return[Math.max(0,E-L),Math.max(0,Math.min(v-1,T+z)),E,T]},p}(c.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var yb=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,u=e.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Br&&!Br.has(d)&&(Br.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":Vr&&!Vr.has(d)&&(Vr.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 u!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(u===null?"null":typeof u)+'" 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.'))}},bb=mb({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,u=e.itemCount,d=e.itemSize,f=e.layout,p=e.width,g=a==="horizontal"||f==="horizontal",y=g?p:s,h=Math.max(0,u*d-y),v=Math.min(h,n*d),m=Math.max(0,n*d-y+d+l);switch(r==="smart"&&(i>=m-y&&i<=v+y?r="auto":r="center"),r){case"start":return v;case"end":return m;case"center":{var S=Math.round(m+(v-m)/2);return S<Math.ceil(y/2)?0:S>h+Math.floor(y/2)?h:S}case"auto":default:return i>=m&&i<=v?i:i<m?m:v}},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,u=e.width,d=i==="horizontal"||s==="horizontal",f=n*a,p=d?u:o,g=Math.ceil((p+r-f)/a);return Math.max(0,Math.min(l-1,n+g-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 Sb(){var t,e;const n=Ke(),i=Ay().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 b.jsx(s,{top:l,left:a,indent:o})}var Cb=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 wb=c.forwardRef(function(e,n){const{children:r}=e,i=Cb(e,["children"]),o=Ke();return b.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[b.jsx(xb,{}),r]}))}),xb=()=>{const t=Ke();return b.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:b.jsx(Sb,{})})};var Eb=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 $b=c.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=Eb(e,["style"]);const u=Ke(),d=(i=(r=u.props.padding)!==null&&r!==void 0?r:u.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=u.props.padding)!==null&&o!==void 0?o:u.props.paddingBottom)!==null&&l!==void 0?l:0;return b.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},a),{height:`${parseFloat(a.height)+d+f}px`})},s))});var S2=c.createContext({dragDropManager:void 0}),ze;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(ze||(ze={}));function J(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 ma="dnd-core/INIT_COORDS",Hi="dnd-core/BEGIN_DRAG",ya="dnd-core/PUBLISH_DRAG_SOURCE",zi="dnd-core/HOVER",Vi="dnd-core/DROP",Bi="dnd-core/END_DRAG";function uu(t,e){return{type:ma,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Ur(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ur=function(n){return typeof n}:Ur=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ur(t)}function Pb(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n},t)}function Db(t,e){return t.filter(function(n){return n!==e})}function C2(t){return Ur(t)==="object"}function Tb(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 _b(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var Ib={type:ma,payload:{clientOffset:null,sourceClientOffset:null}};function Ob(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(),u=t.getRegistry();t.dispatch(uu(l)),kb(n,s,u);var d=Mb(n,s);if(d===null){t.dispatch(Ib);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");Nb(a),f=a(d)}t.dispatch(uu(l,f));var p=u.getSource(d),g=p.beginDrag(s,d);if(g!=null){Rb(g),u.pinSource(d);var y=u.getSourceType(d);return{type:Hi,payload:{itemType:y,item:g,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function kb(t,e,n){J(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){J(n.getSource(r),"Expected sourceIds to be registered.")})}function Nb(t){J(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Rb(t){J(C2(t),"Item must be an object.")}function Mb(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 Lb(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:ya}}}function yl(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function Ab(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;Kb(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();Fb(o,l,a);var s=l.getItemType();return jb(o,a,s),Hb(o,l,a),{type:zi,payload:{targetIds:o,clientOffset:i||null}}}}function Kb(t){J(Array.isArray(t),"Expected targetIds to be an array.")}function Fb(t,e,n){J(e.isDragging(),"Cannot call hover while not dragging."),J(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];J(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);J(o,"Expected targetIds to be registered.")}}function jb(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);yl(o,n)||t.splice(r,1)}}function Hb(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function cu(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 du(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cu(Object(n),!0).forEach(function(r){zb(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vb(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();Bb(r);var o=Gb(r);o.forEach(function(l,a){var s=Ub(l,a,i,r),u={type:Vi,payload:{dropResult:du(du({},n),s)}};t.dispatch(u)})}}function Bb(t){J(t.isDragging(),"Cannot call drop while not dragging."),J(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Ub(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return Wb(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function Wb(t){J(typeof t>"u"||C2(t),"Drop result must either be an object or undefined.")}function Gb(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function qb(t){return function(){var n=t.getMonitor(),r=t.getRegistry();Yb(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:Bi}}}function Yb(t){J(t.isDragging(),"Cannot call endDrag while not dragging.")}function Zb(t){return{beginDrag:Ob(t),publishDragSource:Lb(t),hover:Ab(t),drop:Vb(t),endDrag:qb(t)}}function Xb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jb(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 Qb(t,e,n){return Jb(t.prototype,e),t}function Gn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var e9=function(){function t(e,n){var r=this;Xb(this,t),Gn(this,"store",void 0),Gn(this,"monitor",void 0),Gn(this,"backend",void 0),Gn(this,"isSetUp",!1),Gn(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 Qb(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),u=0;u<a;u++)s[u]=arguments[u];var d=l.apply(n,s);typeof d<"u"&&r(d)}}var o=Zb(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 Fe(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 fu=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Do=function(){return Math.random().toString(36).substring(7).split("").join(".")},hu={INIT:"@@redux/INIT"+Do(),REPLACE:"@@redux/REPLACE"+Do(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Do()}};function t9(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 n9(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(o9(t))return"date";if(i9(t))return"error";var n=r9(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 r9(t){return typeof t.constructor=="function"?t.constructor.name:null}function i9(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function o9(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function un(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=n9(t)),e}function w2(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"?Fe(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"?Fe(1):"Expected the enhancer to be a function. Instead, received: '"+un(n)+"'");return n(w2)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Fe(2):"Expected the root reducer to be a function. Instead, received: '"+un(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function u(){a===l&&(a=l.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Fe(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"?Fe(4):"Expected the listener to be a function. Instead, received: '"+un(h)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Fe(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;return u(),a.push(h),function(){if(v){if(s)throw new Error(process.env.NODE_ENV==="production"?Fe(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,u();var S=a.indexOf(h);a.splice(S,1),l=null}}}function p(h){if(!t9(h))throw new Error(process.env.NODE_ENV==="production"?Fe(7):"Actions must be plain objects. Instead, the actual type was: '"+un(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"?Fe(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"?Fe(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,h)}finally{s=!1}for(var v=l=a,m=0;m<v.length;m++){var S=v[m];S()}return h}function g(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Fe(10):"Expected the nextReducer to be a function. Instead, received: '"+un(h));i=h,p({type:hu.REPLACE})}function y(){var h,v=f;return h={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?Fe(11):"Expected the observer to be an object. Instead, received: '"+un(S)+"'");function C(){S.next&&S.next(d())}C();var P=v(C);return{unsubscribe:P}}},h[fu]=function(){return this},h}return p({type:hu.INIT}),r={dispatch:p,subscribe:f,getState:d,replaceReducer:g},r[fu]=y,r}var l9=function(e,n){return e===n};function a9(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function s9(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l9;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 pu(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 gu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pu(Object(n),!0).forEach(function(r){u9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function u9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vu={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function c9(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vu,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case ma:case Hi:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case zi:return a9(t.clientOffset,n.clientOffset)?t:gu(gu({},t),{},{clientOffset:n.clientOffset});case Bi:case Vi:return vu;default:return t}}var ba="dnd-core/ADD_SOURCE",Sa="dnd-core/ADD_TARGET",Ca="dnd-core/REMOVE_SOURCE",Ui="dnd-core/REMOVE_TARGET";function d9(t){return{type:ba,payload:{sourceId:t}}}function f9(t){return{type:Sa,payload:{targetId:t}}}function h9(t){return{type:Ca,payload:{sourceId:t}}}function p9(t){return{type:Ui,payload:{targetId:t}}}function mu(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 je(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mu(Object(n),!0).forEach(function(r){g9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function g9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v9={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function m9(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v9,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Hi:return je(je({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case ya:return je(je({},t),{},{isSourcePublic:!0});case zi:return je(je({},t),{},{targetIds:n.targetIds});case Ui:return t.targetIds.indexOf(n.targetId)===-1?t:je(je({},t),{},{targetIds:Db(t.targetIds,n.targetId)});case Vi:return je(je({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Bi:return je(je({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function y9(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case ba:case Sa:return t+1;case Ca:case Ui:return t-1;default:return t}}var pi=[],wa=[];pi.__IS_NONE__=!0;wa.__IS_ALL__=!0;function b9(t,e){if(t===pi)return!1;if(t===wa||typeof e>"u")return!0;var n=_b(e,t);return n.length>0}function S9(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case zi:break;case ba:case Sa:case Ui:case Ca:return pi;case Hi:case ya:case Bi:case Vi:default:return wa}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=Tb(r,o),a=l.length>0||!s9(r,o);if(!a)return pi;var s=o[o.length-1],u=r[r.length-1];return s!==u&&(s&&l.push(s),u&&l.push(u)),l}function C9(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function yu(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 bu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yu(Object(n),!0).forEach(function(r){w9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function w9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x9(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:S9(t.dirtyHandlerIds,{type:e.type,payload:bu(bu({},e.payload),{},{prevTargetIds:Pb(t,"dragOperation.targetIds",[])})}),dragOffset:c9(t.dragOffset,e),refCount:y9(t.refCount,e),dragOperation:m9(t.dragOperation,e),stateId:C9(t.stateId)}}function E9(t,e){return{x:t.x+e.x,y:t.y+e.y}}function x2(t,e){return{x:t.x-e.x,y:t.y-e.y}}function $9(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:x2(E9(e,r),n)}function P9(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:x2(e,n)}function D9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T9(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 _9(t,e,n){return T9(t.prototype,e),t}function Su(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var I9=function(){function t(e,n){D9(this,t),Su(this,"store",void 0),Su(this,"registry",void 0),this.store=e,this.registry=n}return _9(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;J(typeof n=="function","listener must be a function."),J(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var u=r.store.getState(),d=u.stateId;try{var f=d===l||d===l+1&&!b9(u.dirtyHandlerIds,o);f||n()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;J(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 J(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(J(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 yl(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(J(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&&!yl(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 $9(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return P9(this.store.getState().dragOffset)}}]),t}(),O9=0;function k9(){return O9++}function Wr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wr=function(n){return typeof n}:Wr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wr(t)}function N9(t){J(typeof t.canDrag=="function","Expected canDrag to be a function."),J(typeof t.beginDrag=="function","Expected beginDrag to be a function."),J(typeof t.endDrag=="function","Expected endDrag to be a function.")}function R9(t){J(typeof t.canDrop=="function","Expected canDrop to be a function."),J(typeof t.hover=="function","Expected hover to be a function."),J(typeof t.drop=="function","Expected beginDrag to be a function.")}function bl(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return bl(n,!1)});return}J(typeof t=="string"||Wr(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 Cu=typeof global<"u"?global:self,E2=Cu.MutationObserver||Cu.WebKitMutationObserver;function $2(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function M9(t){let e=1;const n=new E2(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const L9=typeof E2=="function"?M9:$2;class A9{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=L9(this.flush),this.requestErrorThrow=$2(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class K9{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 F9{create(e){const n=this.freeTasks,r=n.length?n.pop():new K9(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const P2=new A9,j9=new F9(P2.registerPendingError);function H9(t){P2.enqueueTask(j9.create(t))}function z9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function V9(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 B9(t,e,n){return V9(t.prototype,e),t}function cn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U9(t,e){return Y9(t)||q9(t,e)||G9(t,e)||W9()}function W9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G9(t,e){if(t){if(typeof t=="string")return wu(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 wu(t,e)}}function wu(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 q9(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 Y9(t){if(Array.isArray(t))return t}function Z9(t){var e=k9().toString();switch(t){case ze.SOURCE:return"S".concat(e);case ze.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function xu(t){switch(t[0]){case"S":return ze.SOURCE;case"T":return ze.TARGET;default:J(!1,"Cannot parse handler ID: ".concat(t))}}function Eu(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done,l=U9(i.value,2),a=l[1];if(a===e)return!0;r=!!o}while(!r);return!1}var X9=function(){function t(e){z9(this,t),cn(this,"types",new Map),cn(this,"dragSources",new Map),cn(this,"dropTargets",new Map),cn(this,"pinnedSourceId",null),cn(this,"pinnedSource",null),cn(this,"store",void 0),this.store=e}return B9(t,[{key:"addSource",value:function(n,r){bl(n),N9(r);var i=this.addHandler(ze.SOURCE,n,r);return this.store.dispatch(d9(i)),i}},{key:"addTarget",value:function(n,r){bl(n,!0),R9(r);var i=this.addHandler(ze.TARGET,n,r);return this.store.dispatch(f9(i)),i}},{key:"containsHandler",value:function(n){return Eu(this.dragSources,n)||Eu(this.dropTargets,n)}},{key:"getSource",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;J(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 J(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}},{key:"getSourceType",value:function(n){return J(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}},{key:"getTargetType",value:function(n){return J(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}},{key:"isSourceId",value:function(n){var r=xu(n);return r===ze.SOURCE}},{key:"isTargetId",value:function(n){var r=xu(n);return r===ze.TARGET}},{key:"removeSource",value:function(n){var r=this;J(this.getSource(n),"Expected an existing source."),this.store.dispatch(h9(n)),H9(function(){r.dragSources.delete(n),r.types.delete(n)})}},{key:"removeTarget",value:function(n){J(this.getTarget(n),"Expected an existing target."),this.store.dispatch(p9(n)),this.dropTargets.delete(n),this.types.delete(n)}},{key:"pinSource",value:function(n){var r=this.getSource(n);J(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}},{key:"unpinSource",value:function(){J(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(n,r,i){var o=Z9(n);return this.types.set(o,r),n===ze.SOURCE?this.dragSources.set(o,i):n===ze.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function J9(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=Q9(r),o=new I9(i,new X9(i)),l=new e9(i,o),a=t(l,e,n);return l.receiveBackend(a),l}function Q9(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return w2(x9,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var e4=["children"];function t4(t,e){return o4(t)||i4(t,e)||r4(t,e)||n4()}function n4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
93
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r4(t,e){if(t){if(typeof t=="string")return $u(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 $u(t,e)}}function $u(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 i4(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 o4(t){if(Array.isArray(t))return t}function l4(t,e){if(t==null)return{};var n=a4(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 a4(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 Pu=0,Gr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),s4=c.memo(function(e){var n=e.children,r=l4(e,e4),i=u4(r),o=t4(i,2),l=o[0],a=o[1];return c.useEffect(function(){if(a){var s=D2();return++Pu,function(){--Pu===0&&(s[Gr]=null)}}},[]),b.jsx(S2.Provider,Object.assign({value:l},{children:n}),void 0)});function u4(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=c4(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function c4(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D2(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Gr]||(i[Gr]={dragDropManager:J9(t,e,n,r)}),i[Gr]}function D2(){return typeof global<"u"?global:window}function d4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f4(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 h4(t,e,n){return f4(t.prototype,e),t}function Du(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var To=!1,_o=!1,p4=function(){function t(e){d4(this,t),Du(this,"internalMonitor",void 0),Du(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return h4(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){J(!To,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return To=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{To=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;J(!_o,"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 _o=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{_o=!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 g4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v4(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 m4(t,e,n){return v4(t.prototype,e),t}function Tu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Io=!1,y4=function(){function t(e){g4(this,t),Tu(this,"internalMonitor",void 0),Tu(this,"targetId",null),this.internalMonitor=e.getMonitor()}return m4(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;J(!Io,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Io=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Io=!1}}},{key:"isOver",value:function(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 b4(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 S4(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(!c.isValidElement(e)){var r=e;return t(r,n),r}var i=e;b4(i);var o=n?function(l){return t(l,n)}:t;return C4(i,o)}}function T2(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=S4(r);e[n]=function(){return i}}}),e}function _u(t,e){typeof t=="function"?t(e):t.current=e}function C4(t,e){var n=t.ref;return J(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?c.cloneElement(t,{ref:function(i){_u(n,i),_u(e,i)}}):c.cloneElement(t,{ref:e})}function qr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qr=function(n){return typeof n}:qr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qr(t)}function Sl(t){return t!==null&&qr(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Cl(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 u=o[s];if(!a(u))return!1;var d=t[u],f=e[u];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function w4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x4(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 E4(t,e,n){return x4(t.prototype,e),t}function Pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $4=function(){function t(e){var n=this;w4(this,t),Pe(this,"hooks",T2({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,Sl(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,Sl(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),Pe(this,"handlerId",null),Pe(this,"dragSourceRef",null),Pe(this,"dragSourceNode",void 0),Pe(this,"dragSourceOptionsInternal",null),Pe(this,"dragSourceUnsubscribe",void 0),Pe(this,"dragPreviewRef",null),Pe(this,"dragPreviewNode",void 0),Pe(this,"dragPreviewOptionsInternal",null),Pe(this,"dragPreviewUnsubscribe",void 0),Pe(this,"lastConnectedHandlerId",null),Pe(this,"lastConnectedDragSource",null),Pe(this,"lastConnectedDragSourceOptions",null),Pe(this,"lastConnectedDragPreview",null),Pe(this,"lastConnectedDragPreviewOptions",null),Pe(this,"backend",void 0),this.backend=e}return E4(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!Cl(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Cl(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 P4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D4(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 T4(t,e,n){return D4(t.prototype,e),t}function tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _4=function(){function t(e){var n=this;P4(this,t),tt(this,"hooks",T2({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,Sl(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}})),tt(this,"handlerId",null),tt(this,"dropTargetRef",null),tt(this,"dropTargetNode",void 0),tt(this,"dropTargetOptionsInternal",null),tt(this,"unsubscribeDropTarget",void 0),tt(this,"lastConnectedHandlerId",null),tt(this,"lastConnectedDropTarget",null),tt(this,"lastConnectedDropTargetOptions",null),tt(this,"backend",void 0),this.backend=e}return T4(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!Cl(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 I4(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function O4(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var Ut=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Yr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yr=function(n){return typeof n}:Yr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yr(t)}function k4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N4(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 R4(t,e,n){return N4(t.prototype,e),t}function Oo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var M4=function(){function t(e,n,r){k4(this,t),Oo(this,"spec",void 0),Oo(this,"monitor",void 0),Oo(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return R4(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Yr(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 L4(t,e,n){var r=c.useMemo(function(){return new M4(t,e,n)},[e,n]);return c.useEffect(function(){r.spec=t},[t]),r}function Xt(){var t=c.useContext(S2),e=t.dragDropManager;return J(e!=null,"Expected drag drop context"),e}function A4(t){return c.useMemo(function(){var e=t.type;return J(e!=null,"spec.type must be defined"),e},[t])}function K4(t,e){return z4(t)||H4(t,e)||j4(t,e)||F4()}function F4(){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 j4(t,e){if(t){if(typeof t=="string")return Iu(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 Iu(t,e)}}function Iu(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 H4(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 z4(t){if(Array.isArray(t))return t}function V4(t,e,n){var r=Xt(),i=L4(t,e,n),o=A4(t);Ut(function(){if(o!=null){var a=O4(o,i,r),s=K4(a,2),u=s[0],d=s[1];return e.receiveHandlerId(u),n.receiveHandlerId(u),d}},[r,e,n,i,o])}function B4(t){return q4(t)||G4(t)||W4(t)||U4()}function U4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
95
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W4(t,e){if(t){if(typeof t=="string")return wl(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 wl(t,e)}}function G4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function q4(t){if(Array.isArray(t))return wl(t)}function wl(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 _2(t,e){var n=B4(e||[]);return e==null&&typeof t!="function"&&n.push(t),c.useMemo(function(){return typeof t=="function"?t():t},n)}function Y4(){var t=Xt();return c.useMemo(function(){return new p4(t)},[t])}function Z4(t,e){var n=Xt(),r=c.useMemo(function(){return new $4(n.getBackend())},[n]);return Ut(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),Ut(function(){return r.dragPreviewOptions=e||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,e]),r}var ko,Ou;function X4(){return Ou||(Ou=1,ko=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}),ko}var J4=X4();const Q4=ah(J4);function e3(t,e){return i3(t)||r3(t,e)||n3(t,e)||t3()}function t3(){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 n3(t,e){if(t){if(typeof t=="string")return ku(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 ku(t,e)}}function ku(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 r3(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 i3(t){if(Array.isArray(t))return t}function I2(t,e,n){var r=c.useState(function(){return e(t)}),i=e3(r,2),o=i[0],l=i[1],a=c.useCallback(function(){var s=e(t);Q4(o,s)||(l(s),n&&n())},[o,t,n]);return Ut(a),[o,a]}function o3(t,e){return u3(t)||s3(t,e)||a3(t,e)||l3()}function l3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
97
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a3(t,e){if(t){if(typeof t=="string")return Nu(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 Nu(t,e)}}function Nu(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 s3(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 u3(t){if(Array.isArray(t))return t}function c3(t,e,n){var r=I2(t,e,n),i=o3(r,2),o=i[0],l=i[1];return Ut(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(l,{handlerIds:[s]})},[t,l]),o}function O2(t,e,n){return c3(e,t||function(){return{}},function(){return n.reconnect()})}function d3(t){return c.useMemo(function(){return t.hooks.dragSource()},[t])}function f3(t){return c.useMemo(function(){return t.hooks.dragPreview()},[t])}function h3(t,e){var n=_2(t,e);J(!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=Y4(),i=Z4(n.options,n.previewOptions);return V4(n,r,i),[O2(n.collect,r,i),d3(i),f3(i)]}function p3(t){var e=t.accept;return c.useMemo(function(){return J(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function g3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v3(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 m3(t,e,n){return v3(t.prototype,e),t}function Ru(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y3=function(){function t(e,n){g3(this,t),Ru(this,"spec",void 0),Ru(this,"monitor",void 0),this.spec=e,this.monitor=n}return m3(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 b3(t,e){var n=c.useMemo(function(){return new y3(t,e)},[e]);return c.useEffect(function(){n.spec=t},[t]),n}function S3(t,e){return E3(t)||x3(t,e)||w3(t,e)||C3()}function C3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
98
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w3(t,e){if(t){if(typeof t=="string")return Mu(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 Mu(t,e)}}function Mu(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 x3(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 E3(t){if(Array.isArray(t))return t}function $3(t,e,n){var r=Xt(),i=b3(t,e),o=p3(t);Ut(function(){var a=I4(o,i,r),s=S3(a,2),u=s[0],d=s[1];return e.receiveHandlerId(u),n.receiveHandlerId(u),d},[r,e,i,n,o.map(function(l){return l.toString()}).join("|")])}function P3(){var t=Xt();return c.useMemo(function(){return new y4(t)},[t])}function D3(t){var e=Xt(),n=c.useMemo(function(){return new _4(e.getBackend())},[e]);return Ut(function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}},[t]),n}function T3(t){return c.useMemo(function(){return t.hooks.dropTarget()},[t])}function k2(t,e){var n=_2(t,e),r=P3(),i=D3(n.options);return $3(n,r,i),[O2(n.collect,r,i),T3(i)]}function _3(t,e){return N3(t)||k3(t,e)||O3(t,e)||I3()}function I3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
99
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O3(t,e){if(t){if(typeof t=="string")return Lu(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 Lu(t,e)}}function Lu(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 k3(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 N3(t){if(Array.isArray(t))return t}function R3(t){var e=Xt(),n=e.getMonitor(),r=I2(n,t),i=_3(r,2),o=i[0],l=i[1];return c.useEffect(function(){return n.subscribeToOffsetChange(l)}),c.useEffect(function(){return n.subscribeToStateChange(l)}),o}function N2(t){var e=null,n=function(){return e==null&&(e=t()),e};return n}function M3(t,e){return t.filter(function(n){return n!==e})}function L3(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 A3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K3(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 F3(t,e,n){return K3(t.prototype,e),t}function Au(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var j3=function(){function t(e){A3(this,t),Au(this,"entered",[]),Au(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return F3(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=L3(this.entered.filter(o),[n]),i===0&&this.entered.length>0}},{key:"leave",value:function(n){var r=this.entered.length;return this.entered=M3(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),H3=N2(function(){return/firefox/i.test(navigator.userAgent)}),R2=N2(function(){return!!window.safari});function z3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function V3(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 B3(t,e,n){return V3(t.prototype,e),t}function qn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ku=function(){function t(e,n){z3(this,t),qn(this,"xs",void 0),qn(this,"ys",void 0),qn(this,"c1s",void 0),qn(this,"c2s",void 0),qn(this,"c3s",void 0);for(var r=e.length,i=[],o=0;o<r;o++)i.push(o);i.sort(function(L,z){return e[L]<e[z]?-1:1});for(var l=[],a=[],s,u,d=0;d<r-1;d++)s=e[d+1]-e[d],u=n[d+1]-n[d],l.push(s),a.push(u/s);for(var f=[a[0]],p=0;p<l.length-1;p++){var g=a[p],y=a[p+1];if(g*y<=0)f.push(0);else{s=l[p];var h=l[p+1],v=s+h;f.push(3*v/((v+h)/g+(v+s)/y))}}f.push(a[a.length-1]);for(var m=[],S=[],C,P=0;P<f.length-1;P++){C=a[P];var $=f[P],E=1/l[P],T=$+f[P+1]-C-C;m.push((C-$-T)*E),S.push(T*E*E)}this.xs=e,this.ys=n,this.c1s=f,this.c2s=m,this.c3s=S}return B3(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 u=0,d=a.length-1,f;u<=d;){f=Math.floor(.5*(u+d));var p=r[f];if(p<n)u=f+1;else if(p>n)d=f-1;else return i[f]}s=Math.max(0,d);var g=n-r[s],y=g*g;return i[s]+o[s]*g+l[s]*y+a[s]*g*y}}]),t}(),U3=1;function M2(t){var e=t.nodeType===U3?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top,i=n.left;return{x:i,y:r}}function Nr(t){return{x:t.clientX,y:t.clientY}}function W3(t){var e;return t.nodeName==="IMG"&&(H3()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function G3(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return R2()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function q3(t,e,n,r,i){var o=W3(e),l=o?t:e,a=M2(l),s={x:n.x-a.x,y:n.y-a.y},u=t.offsetWidth,d=t.offsetHeight,f=r.anchorX,p=r.anchorY,g=G3(o,e,u,d),y=g.dragPreviewWidth,h=g.dragPreviewHeight,v=function(){var T=new Ku([0,.5,1],[s.y,s.y/d*h,s.y+h-d]),L=T.interpolate(p);return R2()&&o&&(L+=(window.devicePixelRatio-1)*h),L},m=function(){var T=new Ku([0,.5,1],[s.x,s.x/u*y,s.x+y-u]);return T.interpolate(f)},S=i.offsetX,C=i.offsetY,P=S===0||S,$=C===0||C;return{x:P?S:m(),y:$?C:v()}}var L2="__NATIVE_FILE__",A2="__NATIVE_URL__",K2="__NATIVE_TEXT__",F2="__NATIVE_HTML__";const Fu=Object.freeze(Object.defineProperty({__proto__:null,FILE:L2,HTML:F2,TEXT:K2,URL:A2},Symbol.toStringTag,{value:"Module"}));function No(t,e,n){var r=e.reduce(function(i,o){return i||t.getData(o)},"");return r??n}var dn;function Rr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xl=(dn={},Rr(dn,L2,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),Rr(dn,F2,{exposeProperties:{html:function(e,n){return No(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),Rr(dn,A2,{exposeProperties:{urls:function(e,n){return No(e,n,"").split(`
100
- `)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Rr(dn,K2,{exposeProperties:{text:function(e,n){return No(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),dn);function Y3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z3(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 X3(t,e,n){return Z3(t.prototype,e),t}function ju(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var J3=function(){function t(e){Y3(this,t),ju(this,"item",void 0),ju(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return X3(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 Q3(t,e){var n=new J3(xl[t]);return n.loadDataTransfer(e),n}function Ro(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(xl).filter(function(n){var r=xl[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function e7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t7(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 n7(t,e,n){return t7(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 r7=function(){function t(e,n){e7(this,t),Mo(this,"ownerDocument",null),Mo(this,"globalContext",void 0),Mo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return n7(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 Hu(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 zu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hu(Object(n),!0).forEach(function(r){ne(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function i7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o7(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 l7(t,e,n){return o7(t.prototype,e),t}function ne(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a7=function(){function t(e,n,r){var i=this;i7(this,t),ne(this,"options",void 0),ne(this,"actions",void 0),ne(this,"monitor",void 0),ne(this,"registry",void 0),ne(this,"enterLeaveCounter",void 0),ne(this,"sourcePreviewNodes",new Map),ne(this,"sourcePreviewNodeOptions",new Map),ne(this,"sourceNodes",new Map),ne(this,"sourceNodeOptions",new Map),ne(this,"dragStartSourceIds",null),ne(this,"dropTargetIds",[]),ne(this,"dragEnterTargetIds",[]),ne(this,"currentNativeSource",null),ne(this,"currentNativeHandle",null),ne(this,"currentDragSourceNode",null),ne(this,"altKeyPressed",!1),ne(this,"mouseMoveTimeoutTimer",null),ne(this,"asyncEndDragFrameId",null),ne(this,"dragOverTargetIds",null),ne(this,"lastClientOffset",null),ne(this,"hoverRafId",null),ne(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&M2(l)||null}),ne(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),ne(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),ne(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),ne(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=Nr(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,u=Ro(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),p=i.sourcePreviewNodes.get(d)||f;if(p){var g=i.getCurrentSourcePreviewNodeOptions(),y=g.anchorX,h=g.anchorY,v=g.offsetX,m=g.offsetY,S={anchorX:y,anchorY:h},C={offsetX:v,offsetY:m},P=q3(f,p,a,S,C);s.setDragImage(p,P.x,P.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var $=i.getCurrentSourcePreviewNodeOptions(),E=$.captureDraggingState;E?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(u)i.beginDragNativeItem(u);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),ne(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ne(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=Ro(a);s&&i.beginDragNativeItem(s,a)}}),ne(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:Nr(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),ne(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),ne(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=Nr(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"))}),ne(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),ne(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 Ro(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),ne(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:Nr(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),ne(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 r7(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new j3(this.isNodeInDocument)}return l7(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(u){return o.handleDragStart(u,n)},a=function(u){return o.handleSelectStart(u)};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(u){return i.handleDragEnter(u,n)},l=function(u){return i.handleDragOver(u,n)},a=function(u){return i.handleDrop(u,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 zu({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 zu({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(Fu).some(function(r){return Fu[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Q3(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}(),Mr;function s7(){return Mr||(Mr=new Image,Mr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Mr}var u7=function(e,n,r){return new a7(e,n,r)};function c7(t){const e=Ke(),n=e.selectedIds,[r,i,o]=h3(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const l=e.isSelected(t.id)?Array.from(n):[t.id];return e.dispatch(Rn.dragStart(t.id,l)),{id:t.id,dragIds:l}},end:()=>{e.hideCursor(),e.dispatch(Rn.dragEnd())}}),[n,t]);return c.useEffect(()=>{o(s7())},[o]),i}function d7(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,u=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:u,atTop:!u&&l,atBottom:!u&&a}}function f7(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 Lr(t,e){return{parentId:t||null,index:e}}function fn(t,e){return{type:"line",index:t,level:e}}function h7(t){return{type:"highlight",id:t}}function Lo(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=c2(r)+1;return{parentId:i,index:o}}function j2(t){var e;const n=d7(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,u]=f7(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:Lr(o.id,null),cursor:h7(o.id)};if(!s)return{drop:Lr((e=u==null?void 0:u.parent)===null||e===void 0?void 0:e.id,0),cursor:fn(0,0)};if(l2(s)){const d=zr(i,(u==null?void 0:u.level)||0,s.level);return{drop:Lo(s,d),cursor:fn(s.rowIndex+1,d)}}if(a2(s)){const d=zr(i,(u==null?void 0:u.level)||0,s.level);return{drop:Lo(s,d),cursor:fn(s.rowIndex+1,d)}}if(s2(s)){const d=zr(i,0,s.level+1);return d>s.level?{drop:Lr(s.id,0),cursor:fn(s.rowIndex+1,d)}:{drop:Lo(s,d),cursor:fn(s.rowIndex+1,d)}}return{drop:Lr(s==null?void 0:s.id,0),cursor:fn(s.rowIndex+1,s.level+1)}}function p7(t,e){const n=Ke(),[r,i]=k2(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:u}=j2({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});u&&n.dispatch(Rn.hovering(u.parentId,u.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:u}=n.state.dnd;g2(n.props.onMove,{dragIds:u,parentId:a===dr?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 g7(t){const e=Ke(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return c.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const v7=c.memo(function({index:e,style:n}){o2(),Ly();const r=Ke(),i=g7(e),o=c.useRef(null),l=c7(i),a=p7(o,i),s=c.useCallback(h=>{o.current=h,a(h)},[a]),u=r.indent*i.level,d=c.useMemo(()=>({paddingLeft:u}),[u]),f=c.useMemo(()=>{var h,v;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((v=(h=r.props.padding)!==null&&h!==void 0?h:r.props.paddingTop)!==null&&v!==void 0?v: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};c.useEffect(()=>{var h;!i.isEditing&&i.isFocused&&((h=o.current)===null||h===void 0||h.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const g=r.renderNode,y=r.renderRow;return b.jsx(y,{node:i,innerRef:s,attrs:p,children:b.jsx(g,{node:i,tree:r,style:d,dragHandle:l})})});let Ao="",Vu=null;function H2(){o2();const t=Ke();return b.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var 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(),d2(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),f2(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(Vu),Ao+=e.key,Vu=setTimeout(()=>{Ao=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(Ao):!1});r&&t.focus(r.id)},children:b.jsx(bb,{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:wb,innerElementType:$b,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:v7})})}function Bu(t){return t.isFiltered?y7(t.root,t.isMatch.bind(t)):m7(t.root)}function m7(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(z2),e}function y7(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(z2),r}function z2(t,e){t.rowIndex=e}const Uu=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var Ko=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{u(r.next(d))}catch(f){l(f)}}function s(d){try{u(r.throw(d))}catch(f){l(f)}}function u(d){d.done?o(d.value):i(d.value).then(a,s)}u((r=r.apply(t,e||[])).next())})};const{safeRun:we,identify:at,identifyNull:Ge}=zy;class Dn{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=tu(this),this.visibleNodes=Bu(this),this.idToIndex=Uu(this.visibleNodes)}update(e){this.props=e,this.root=tu(this),this.visibleNodes=Bu(this),this.idToIndex=Uu(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=er(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=er(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=p2(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 Ko(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?y2(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:m2(this),l=(r=e.type)!==null&&r!==void 0?r:"leaf",a=yield we(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 Ko(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(at),i=r.map(o=>this.get(o)).filter(o=>!!o);yield we(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=at(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(Eo(n)),new Promise(r=>{Dn.editPromise=r})}submit(e,n){return Ko(this,void 0,void 0,function*(){if(!e)return;const r=at(e);yield we(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(Eo(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(Eo(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(Ge(e));n&&we(this.props.onActivate,n)}resolveEdit(e){const n=Dn.editPromise;n&&n(e),Dn.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(an(at(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&we(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=at(e);r&&this.dispatch(an(i)),this.dispatch(We.only(i)),this.dispatch(We.anchor(i)),this.dispatch(We.mostRecent(i)),this.scrollTo(i,n.align),this.focusedNode&&r&&we(this.props.onFocus,this.focusedNode),we(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const n=at(e);this.dispatch(We.remove(n)),we(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(Ge(e));n&&(this.dispatch(an(n.id)),this.dispatch(We.add(n.id)),this.dispatch(We.anchor(n.id)),this.dispatch(We.mostRecent(n.id)),this.scrollTo(n),this.focusedNode&&we(this.props.onFocus,this.focusedNode),we(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const n=at(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(an(n)),this.dispatch(We.remove(this.nodesBetween(r,i))),this.dispatch(We.add(this.nodesBetween(r,Ge(n)))),this.dispatch(We.mostRecent(n)),this.scrollTo(n),this.focusedNode&&we(this.props.onFocus,this.focusedNode),we(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),we(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(an((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&we(this.props.onFocus,this.focusedNode),we(this.props.onSelect,this.selectedNodes)}setSelection(e){var n;const r=new Set((n=e.ids)===null||n===void 0?void 0:n.map(at)),i=Ge(e.anchor),o=Ge(e.mostRecent);this.dispatch(We.set({ids:r,anchor:i,mostRecent:o})),we(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&&u2(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(Rn.cursor({type:"none"}))}showCursor(e){this.dispatch(Rn.cursor(e))}open(e){const n=Ge(e);n&&(this.isOpen(n)||(this.dispatch(gl.open(n,this.isFiltered)),we(this.props.onToggle,n)))}close(e){const n=Ge(e);n&&this.isOpen(n)&&(this.dispatch(gl.close(n,this.isFiltered)),we(this.props.onToggle,n))}toggle(e){const n=Ge(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=Ge(e);if(!n)return;const r=va(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(){fi(this.root,e=>{e.isInternal&&e.open()})}closeAll(){fi(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=at(e);return this.openParents(r),v2(()=>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===dr)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!er(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!er(e,n)}isDragging(e){const n=Ge(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=Ge(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(an(e.id))}onBlur(){this.dispatch(Jy())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||H2}get renderRow(){return this.props.renderRow||Gy}get renderNode(){return this.props.children||qy}get renderDragPreview(){return this.props.renderDragPreview||b2}get renderCursor(){return this.props.renderCursor||Wy}}function De(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 b7=typeof Symbol=="function"&&Symbol.observable||"@@observable",Wu=b7,Fo=()=>Math.random().toString(36).substring(7).split("").join("."),S7={INIT:`@@redux/INIT${Fo()}`,REPLACE:`@@redux/REPLACE${Fo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fo()}`},Lt=S7;function V2(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 C7(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(E7(t))return"date";if(x7(t))return"error";const n=w7(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 w7(t){return typeof t.constructor=="function"?t.constructor.name:null}function x7(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function E7(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function bt(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=C7(t)),e}function B2(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?De(2):`Expected the root reducer to be a function. Instead, received: '${bt(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?De(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"?De(1):`Expected the enhancer to be a function. Instead, received: '${bt(n)}'`);return n(B2)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function u(){l===o&&(l=new Map,o.forEach((v,m)=>{l.set(m,v)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?De(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?De(4):`Expected the listener to be a function. Instead, received: '${bt(v)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?De(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;u();const S=a++;return l.set(S,v),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?De(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,u(),l.delete(S),o=null}}}function p(v){if(!V2(v))throw new Error(process.env.NODE_ENV==="production"?De(7):`Actions must be plain objects. Instead, the actual type was: '${bt(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?De(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?De(17):`Action "type" property must be a string. Instead, the actual type was: '${bt(v.type)}'. Value was: '${v.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?De(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,v)}finally{s=!1}return(o=l).forEach(S=>{S()}),v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?De(10):`Expected the nextReducer to be a function. Instead, received: '${bt(v)}`);r=v,p({type:Lt.REPLACE})}function y(){const v=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?De(11):`Expected the observer to be an object. Instead, received: '${bt(m)}'`);function S(){const P=m;P.next&&P.next(d())}return S(),{unsubscribe:v(S)}},[Wu](){return this}}}return p({type:Lt.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:g,[Wu]:y}}function Gu(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function $7(t,e,n,r){const i=Object.keys(e),o=n&&n.type===Lt.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(!V2(t))return`The ${o} has unexpected type of "${bt(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===Lt.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 P7(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:Lt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?De(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:Lt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?De(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Lt.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 qu(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"&&Gu(`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{P7(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=$7(a,n,s,i);f&&Gu(f)}let u=!1;const d={};for(let f=0;f<r.length;f++){const p=r[f],g=n[p],y=a[p],h=g(y,s);if(typeof h>"u"){const v=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?De(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[p]=h,u=u||h!==y}return u=u||r.length!==Object.keys(a).length,u?d:a}}function D7(t=Nn().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 T7=qu({nodes:qu({focus:Qy,edit:Xy,open:eb,selection:tb,drag:D7}),dnd:nb}),_7=Nn();function I7({treeProps:t,imperativeHandle:e,children:n}){const r=c.useRef(null),i=c.useRef(null),o=c.useRef(B2(T7,Nn(t))),l=jl.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>_7),a=c.useMemo(()=>new Dn(o.current,t,r,i),[]),s=c.useRef(0);return c.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),c.useImperativeHandle(e,()=>a),c.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),c.useEffect(()=>{a.props.searchTerm||o.current.dispatch(gl.clear(!0))},[a.props.searchTerm]),b.jsx(t2.Provider,{value:a,children:b.jsx(i2.Provider,{value:s.current,children:b.jsx(n2.Provider,{value:l.nodes,children:b.jsx(r2.Provider,{value:l.dnd,children:b.jsx(s4,Object.assign({backend:u7,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function O7(){const t=Ke(),[,e]=k2(()=>({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}=j2({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});l&&t.dispatch(Rn.hovering(l.parentId,l.index)),r.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function k7(t){return O7(),t.children}function N7(){const e=Ke().props.renderContainer||H2;return b.jsx(b.Fragment,{children:b.jsx(e,{})})}function R7(){const t=Ke(),{offset:e,mouse:n,item:r,isDragging:i}=R3(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||b2;return b.jsx(o,{offset:e,mouse:n,id:(r==null?void 0:r.id)||null,dragIds:(r==null?void 0:r.dragIds)||[],isDragging:i})}class M7{constructor(e){this.root=L7(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 L7(t){const e=new U2({id:"ROOT"},null);return e.children=t.map(n=>xa(n,e)),e}function xa(t,e){const n=new U2(t,e);return t.children&&(n.children=t.children.map(r=>xa(r,n))),n}class U2{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=xa(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 A7=0;function K7(t){const[e,n]=c.useState(t),r=c.useMemo(()=>new M7(e),[e]);return[e,{onMove:u=>{for(const d of u.dragIds)r.move({id:d,parentId:u.parentId,index:u.index});n(r.data)},onRename:({name:u,id:d})=>{r.update({id:d,changes:{name:u}}),n(r.data)},onCreate:({parentId:u,index:d,type:f})=>{const p={id:`simple-tree-id-${A7++}`,name:""};return f==="internal"&&(p.children=[]),r.create({parentId:u,index:d,data:p}),n(r.data),p},onDelete:u=>{u.ids.forEach(d=>r.drop({id:d})),n(r.data)}}]}function F7(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.
101
- Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,n]=K7(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function j7(t,e){const n=F7(t);return b.jsxs(I7,{treeProps:n,imperativeHandle:e,children:[b.jsx(k7,{children:b.jsx(N7,{})}),b.jsx(R7,{})]})}const H7=c.forwardRef(j7),W2=({top:t,left:e})=>b.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function z7(t,e){var n=c.useRef(null),r=c.useRef(null);r.current=e;var i=c.useRef(null);c.useEffect(function(){o()});var o=c.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 c.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),c.useCallback(function(l){i.current=l,o()},[o])}function Yu(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 V7(t){t===void 0&&(t={});var e=t.onResize,n=c.useRef(void 0);n.current=e;var r=t.round||Math.round,i=c.useRef(),o=c.useState({width:void 0,height:void 0}),l=o[0],a=o[1],s=c.useRef(!1);c.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=c.useRef({width:void 0,height:void 0}),d=z7(c.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 g=p[0],y=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=Yu(g,y,"inlineSize"),v=Yu(g,y,"blockSize"),m=h?r(h):void 0,S=v?r(v):void 0;if(u.current.width!==m||u.current.height!==S){var C={width:m,height:S};u.current.width=m,u.current.height=S,n.current?n.current(C):s.current||a(C)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,r]),t.ref);return c.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var Be=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t))(Be||{}),It=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(It||{});const gi=t=>t?t.nodeType===Be.SEPARATOR:!1,vi=t=>t?t.nodeType===Be.TITLE:!1,tr=t=>!gi(t)&&!vi(t),G2=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:l,insertAfter:a,append:s,prepend:u,getItem:d,move:f,items:p}=Y5({initialItems:JSON.parse(JSON.stringify(t)),getKey:H=>H.id,getChildren:H=>H.children||[]}),[g,y]=c.useState(),h=(H=[])=>{const j=p.map(k=>k.key);r(...j);const O=JSON.parse(JSON.stringify(H));O.length>0&&o(null,0,...O),y(void 0)},v=H=>{const j=d(H);j&&y(j.value)},m=(H,j,O)=>{var k;if(H){const F=d(H);F&&o(H,O??((k=F.children)==null?void 0:k.length)??0,j)}else o(null,O??p.length,j)},S=H=>{var j;return(j=d(H))==null?void 0:j.value},C=(H,j)=>{var V;const O=d(H);if(!O){console.error("No item found");return}let k=((V=O.children)==null?void 0:V.map(W=>W.value))??null;const F=j.childrenCount??O.value.childrenCount??0;if((k==null?void 0:k.length)===0&&F>0&&(k=null),j.children&&(k=[...k??[],...j.children]),j.children){const W=new Set(j.children.map(X=>X.id));k=j.children.filter(X=>!W.has(X.id)),k=[...k??[],...j.children]}const K={...O.value,...j,children:k,childrenCount:(k==null?void 0:k.length)??F};i(H,K)},P=H=>{r(H)},$=H=>{r(...H)},E=async H=>{if(!e){console.error("No refresh callback provided");return}try{const j=await e(H);C(H,j)}catch(j){console.error("error while refreshing node:",j)}},T=(H,j)=>{o(null,j??p.length,H)},L=(H,j)=>{o(null,j??p.length,...H)},z=(H,j)=>{const O=d(H);if(!O){console.error("No item found");return}const k={...O.value,children:j,childrenCount:j.length,hasLoadedChildren:j.length>0};i(H,k)},A=H=>{const j=[],O=d(H);if(!O)return[];j.push(O.value);const k=F=>{const K=w(F);if(!K)return;const V=d(K);V&&(j.push(V.value),k(K))};return k(H),j.reverse()},w=H=>{var j;return((j=d(H))==null?void 0:j.parentKey)??null},M=H=>{const j=w(H);if(!j)return null;const O=d(j);return O?O.value:null},B=(H,j)=>{l(H,j)},R=(H,j)=>{a(H,j)},U=(H,j)=>{s(H,j)},x=(H,j)=>{u(H,j)},N=(H,j,O)=>{f(H,j,O)},I=H=>{N(H.sourceId,H.newParentId,H.index)},G=async H=>{if(!n)return[];const j=await n(H);return C(H,{children:j,hasLoadedChildren:!0,childrenCount:j.length}),j};return c.useEffect(()=>{const H=j=>{j.forEach(O=>{var k;if(O.children&&O.children.length>0){const F=O.value.hasLoadedChildren||((k=O.children)==null?void 0:k.length)>0||O.value.children&&O.value.children.length>0;O.value.children=O.children.map(V=>V.value);const K=F?O.children.length:O.value.childrenCount??0;O.value.childrenCount=K,F&&!O.value.hasLoadedChildren&&(O.value.hasLoadedChildren=!0),H(O.children)}else{const K=O.value.hasLoadedChildren||O.value.children&&O.value.children.length>0?0:O.value.childrenCount;O.value.children=[],O.value.childrenCount=K}})};H(p)},[p]),{nodes:p,addChild:m,updateNode:C,deleteNode:P,deleteNodes:$,addRootNode:T,addRootNodes:L,selectedNode:g,setSelectedNode:y,refreshNode:E,setChildren:z,insertBeforeNode:B,insertAfterNode:R,handleMove:I,prependToNode:x,moveNode:N,appendToNode:U,move:f,resetTree:h,handleLoadChildren:G,selectNodeById:v,getParent:M,getNode:S,getParentId:w,getAncestors:A}},Ea=c.createContext(null),B7=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=c.useRef(null),[l,a]=c.useState(null),[s,u]=c.useState(n??null),d=G2(i??[],e,r);return b.jsx(Ea.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:u,setRoot:a},children:t})},$a=()=>{const t=c.useContext(Ea);if(!t)throw new Error("TreeContext not found");return t},U7=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:l,beforeMove:a})=>{const[s,u]=c.useState(400),{ref:d,width:f}=V7(),p=$a(),g=(p==null?void 0:p.treeData.nodes)??[];c.useEffect(()=>{const m=document.querySelector(".c__tree-view"),S=m==null?void 0:m.firstElementChild;let C=null;return m&&S&&(C=new ResizeObserver(()=>{if(S&&S instanceof HTMLElement){const P=S.style.height;u(parseInt(P,10)+20)}}),C.observe(S)),()=>C==null?void 0:C.disconnect()},[]);const y=m=>{var I,G,H,j;const S=JSON.parse(JSON.stringify(g)),C=m.dragNodes[0],P=m.parentId?((I=m.parentNode)==null?void 0:I.data.children)??[]:S,$=m.dragNodes[0].data.value.id,E=m.dragNodes[0].data,T=(G=m.parentNode)==null?void 0:G.data;if((T==null?void 0:T.value.nodeType)===Be.TITLE||(T==null?void 0:T.value.nodeType)===Be.SEPARATOR)return null;const L=E.parentKey??n,z=m.parentId??n;let A=m.index+0,w=null,M=z;const B=((j=(H=C.parent)==null?void 0:H.children)==null?void 0:j.findIndex(O=>O.data.value.id===$))??0;if(L===z){if(B===A)return null;A=A<B?A:A-1}const R=m.index-1,U=P[R],x=m.index,N=P[x];return m.index===0?(M=m.parentId??n,w=It.FIRST_CHILD):!T&&m.index===1&&!tr(U.value)?(M=n,A=1,w=It.FIRST_CHILD):m.index===P.length?(M=M??n,w=It.LAST_CHILD):U&&tr(U.value)?(M=U.value.id,w=It.RIGHT):N&&tr(N.value)&&(w=It.LEFT,M=N.value.id),w&&M?{targetModeId:M,mode:w,oldParentId:L,index:A,newParentId:m.parentId,sourceId:$}:null},h=m=>{const S=y(m);S&&(a?a(S,()=>{p==null||p.treeData.handleMove(S),l==null||l(S)}):(p==null||p.treeData.handleMove(S),l==null||l(S)))},v=c.useCallback(m=>o?!o(m):!1,[o]);if(p)return b.jsx("div",{ref:d,style:{height:s},className:"c__tree-view--container",children:b.jsx(H7,{data:g,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:v,disableDrop:({parentNode:m,dragNodes:S,index:C})=>{var L,z;if(i&&!i({parentNode:m,dragNodes:S,index:C}))return m.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(m.data.value.canDrop=!1),!0;const P=S[0];if(P&&P.isDragging&&P.willReceiveDrop||((L=m.data.value)==null?void 0:L.nodeType)===Be.TITLE||((z=m.data.value)==null?void 0:z.nodeType)===Be.SEPARATOR)return!0;if(m.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const A=g[C-1],w=g[C],M=g[C+1],B=gi(A==null?void 0:A.value),R=gi(w==null?void 0:w.value),U=vi(A==null?void 0:A.value),x=vi(w==null?void 0:w.value),N=tr(M==null?void 0:M.value);return!!(C===0&&(R||x)||B&&x&&N||U&&R&&N)}const $=m==null?void 0:m.isOpen,E=(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(!E)return m.data.value.canDrop=!0,!1;let T=m.data.value.childrenCount&&m.data.value.childrenCount>0&&(m==null?void 0:m.data.children)&&m.data.children.length>0;return T=T??!0,!$&&!T&&E?(m.data.value.canDrop=!0,!0):(m.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:e,renderCursor:W2,renderRow:W7,rowClassName:"c__tree-view--row",children:r})})},W7=({children:t,...e})=>{const n=e.node.data.value.nodeType===Be.TITLE,r=e.node.data.value.nodeType===Be.SEPARATOR,{style:i}=e.attrs,o={...i};return n||r?c.createElement("div",{...e.attrs,key:e.node.id,style:o,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},t):c.createElement("div",{...e.attrs,style:o,key:e.node.id,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},b.jsx("div",{className:"c__tree-view--row-content",children:t}))},G7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function q7(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function Y7(t){return"nodeType"in t}function Z7(t){var e,n;return t?q7(t)?t:Y7(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}const q2=G7?c.useLayoutEffect:c.useEffect;function Y2(t){const e=c.useRef(t);return q2(()=>{e.current=t}),c.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 Zu(t,e){e===void 0&&(e=[t]);const n=c.useRef(t);return q2(()=>{n.current!==t&&(n.current=t)},e),n}function X7(t){const e=Y2(t),n=c.useRef(null),r=c.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let jo={};function J7(t,e){return c.useMemo(()=>{const n=jo[t]==null?0:jo[t]+1;return jo[t]=n,t+"-"+n},[t,e])}var rr;(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"})(rr||(rr={}));function Xu(){}const Q7=Object.freeze({x:0,y:0});function eS(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function tS(t,e,n){const r=eS(e);if(!r)return t;const{scaleX:i,scaleY:o,x:l,y:a}=r,s=t.left-l-(1-i)*parseFloat(n),u=t.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=i?t.width/i:t.width,f=o?t.height/o:t.height;return{width:d,height:f,top:u,right:s+d,bottom:u+f,left:s}}const nS={ignoreTransform:!1};function Z2(t,e){e===void 0&&(e=nS);let n=t.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:d}=Z7(t).getComputedStyle(t);u&&(n=tS(n,u,d))}const{top:r,left:i,width:o,height:l,bottom:a,right:s}=n;return{top:r,left:i,width:o,height:l,bottom:a,right:s}}function Ju(t){return Z2(t,{ignoreTransform:!0})}var Sn;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Sn||(Sn={}));var Qu;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(Qu||(Qu={}));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 ec;(function(t){t[t.RightClick=2]="RightClick"})(ec||(ec={}));var tc;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(tc||(tc={}));var nc;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(nc||(nc={}));Sn.Backward+"",Sn.Forward+"",Sn.Backward+"",Sn.Forward+"";var El;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(El||(El={}));var $l;(function(t){t.Optimized="optimized"})($l||($l={}));function rS(t){let{callback:e,disabled:n}=t;const r=Y2(e),i=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return c.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}El.WhileDragging,$l.Optimized;const iS={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Xu,draggableNodes:new Map,over:null,measureDroppableContainers:Xu},oS=c.createContext(iS);({...Q7});var rc;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(rc||(rc={}));const lS="Droppable",aS={timeout:25};function sS(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=J7(lS),{active:l,dispatch:a,over:s,measureDroppableContainers:u}=c.useContext(oS),d=c.useRef({disabled:n}),f=c.useRef(!1),p=c.useRef(null),g=c.useRef(null),{disabled:y,updateMeasurementsFor:h,timeout:v}={...aS,...i},m=Zu(h??r),S=c.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(m.current)?m.current:[m.current]),g.current=null},v)},[v]),C=rS({callback:S,disabled:y||!l}),P=c.useCallback((L,z)=>{C&&(z&&(C.unobserve(z),f.current=!1),L&&C.observe(L))},[C]),[$,E]=X7(P),T=Zu(e);return c.useEffect(()=>{!C||!$.current||(C.disconnect(),f.current=!1,C.observe($.current))},[$,C]),c.useEffect(()=>(a({type:rr.RegisterDroppable,element:{id:r,key:o,disabled:n,node:$,rect:p,data:T}}),()=>a({type:rr.UnregisterDroppable,key:o,id:r})),[r]),c.useEffect(()=>{n!==d.current.disabled&&(a({type:rr.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:E}}const uS=t=>{const{isOver:e,setNodeRef:n}=sS({id:t.id,data:t.data});return c.useEffect(()=>{var r;(r=t.onOver)==null||r.call(t,e,t.data)},[e,t.data,t.onOver]),b.jsx("div",{className:"c__dnd--droppable",ref:n,children:t.children})},cS=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var C,P;const l=$a(),a=c.useRef(null),[s,u]=c.useState(!1),[d,f]=c.useState(!1),p=o??s,g=n.willReceiveDrop||d,y=n.data.value.childrenCount!==void 0&&n.data.value.childrenCount>0||(((C=n.data.children)==null?void 0:C.length)??0)>0,h=((P=n.children)==null?void 0:P.length)??!1,v=n.isLeaf||!y,m=c.useCallback(async()=>{if(!v){if(h||n.data.value.hasLoadedChildren){n.toggle();return}u(!0),await(l==null?void 0:l.treeData.handleLoadChildren(n.data.value.id)),u(!1),n.open()}},[v,h,n,l==null?void 0:l.treeData]),S=c.useCallback($=>{$&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{m()},500)),a.current&&!$&&clearTimeout(a.current)},[m,n.isOpen,n.isDragging]);return c.useEffect(()=>{S(g)},[g,S]),n.data.value.nodeType===Be.SEPARATOR?b.jsx("div",{className:"c__tree-view--node__separator"}):n.data.value.nodeType===Be.TITLE?b.jsx("div",{className:"c__tree-view--node__title",children:n.data.value.headerTitle}):b.jsx(uS,{id:n.id,data:{data:n.data,nodeApi:n},onOver:f,children:b.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:Me("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:d}),children:[v&&b.jsx("div",{className:"c__tree-view--node__leaf"}),!v&&b.jsxs(b.Fragment,{children:[p&&b.jsx("div",{className:"c__tree-view--node__loading",children:b.jsx(sa,{})}),!p&&b.jsx("span",{onClick:$=>{$.stopPropagation(),m()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})};var Ve=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(Ve||{}),ir=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(ir||{});const dS=({name:t,size:e,className:n,color:r,type:i=ir.FILLED,...o})=>{const l=Me("",{[`icon--${e}`]:e!==void 0,[`material-icons-${i}`]:i!==ir.OUTLINED,"material-icons":i===ir.OUTLINED},n),a={color:r,fontSize:typeof e=="number"?`${e}px`:void 0};return b.jsx("span",{className:l,style:a,...o,children:t})},X2={[Ve.X_SMALL]:11,[Ve.SMALL]:16,[Ve.MEDIUM]:24,[Ve.LARGE]:32,[Ve.X_LARGE]:40},J2={[Ve.X_SMALL]:16,[Ve.SMALL]:24,[Ve.MEDIUM]:32,[Ve.LARGE]:40,[Ve.X_LARGE]:48},fS=t=>J2[t]??24,hS=t=>X2[t]??24,Wi=({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?b.jsx(hr,{isOpen:i,shouldCloseOnInteractOutside:s=>!s.closest(".c__access-role-dropdown"),onOpenChange:o,options:t,selectedValues:[r],onSelectValue:e,topMessage:l,children:b.jsxs("div",{role:"button",className:"c__access-role-dropdown",onClick:()=>{o==null||o(!i)},children:[b.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label}),b.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"})]})}):b.jsx("span",{className:"fs-s clr-greyscale-600",children:a==null?void 0:a.label})},Q2=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=pe.useCunningham(),[u,d]=c.useState(!1);return b.jsxs("div",{className:"c__add-share-user-list",children:[b.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>b.jsx(eh,{user:f,onRemoveUser:e},f.id))}),b.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,b.jsx(Wi,{roles:o,selectedRole:l,onSelect:a,isOpen:u,onOpenChange:d}),b.jsx(pe.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},eh=({user:t,onRemoveUser:e})=>b.jsxs("div",{className:"c__add-share-user-item",children:[b.jsx("span",{children:t.full_name||t.email}),b.jsx(pe.Button,{color:"tertiary-text",size:"nano",onClick:()=>e==null?void 0:e(t),icon:b.jsx("span",{className:"material-icons",children:"close"})})]}),ic=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],th=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),nh=t=>{let e=0;for(let n=0;n<t.length;n++)e+=t.charCodeAt(n);return ic[e%ic.length]},rh=({fullName:t,size:e="medium",forceColor:n})=>{const r=th(t),i=nh(t);return b.jsx("div",{style:{backgroundColor:n||void 0},className:Me(`c__avatar ${e}`,{[i]:!n&&i}),children:b.jsx("div",{className:"c__avatar__initials",children:r})})},Gi=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return b.jsxs("div",{className:"c__user-row",children:[b.jsx(rh,{fullName:r,size:"small"}),b.jsxs("div",{className:"c__user-row__info",children:[b.jsx("span",{className:"c__user-row__name",children:t}),n&&e&&b.jsx("span",{className:Me("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},Pl=({user:t})=>{const{t:e}=pe.useCunningham();return b.jsx(ji,{left:b.jsx(Gi,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:b.jsxs("div",{className:"c__search-user-item-right",children:[b.jsx("span",{children:e("components.share.item.add")}),b.jsx("span",{className:"material-icons",children:"add"})]})})},ih=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=pe.useCunningham(),a=On(),s=On(),u=c.useMemo(()=>{const f=[];return r&&f.push({label:l("components.share.access.delete"),icon:b.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 b.jsx("div",{className:"c__share-member-item",children:b.jsx(ji,{left:b.jsx(Gi,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:b.jsxs("div",{className:"c__share-member-item__right",children:[b.jsx(Wi,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,onOpenChange:a.setIsOpen,canUpdate:i,roleTopMessage:o}),u.length>0&&i&&b.jsx(hr,{options:u,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:b.jsx(pe.Button,{color:"primary-text",onClick:d,size:"small",icon:b.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},oh=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=pe.useCunningham(),a=On(),s=On(),u=[{label:l("components.share.access.delete"),callback:()=>r==null?void 0:r(t),isDisabled:!i,icon:b.jsx("span",{className:"material-icons",children:"back_hand"})}],d=()=>{const f=s.isOpen;s.setIsOpen(!f)};return b.jsx("div",{className:"c__share-member-item",children:b.jsx(ji,{left:b.jsx(Gi,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:b.jsxs("div",{className:"c__share-member-item__right",children:[b.jsx(Wi,{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&&b.jsx(hr,{options:u,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:b.jsx(pe.Button,{color:"primary-text",onClick:d,size:"small",icon:b.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},pS=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,hasNextInvitations:a=!1,...s})=>{const{t:u}=pe.useCunningham(),{isMobile:d}=An(),f=c.useRef(null),[p,g]=c.useState("400px"),y=c.useRef(null),[h,v]=c.useState(""),[m,S]=c.useState(""),[C,P]=c.useState([]),[$,E]=c.useState(s.invitationRoles[0].value??""),T=d?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",L=N=>{if(f.current&&clearTimeout(f.current),N===""){S(""),s.onSearchUsers("");return}f.current=setTimeout(()=>{s.onSearchUsers(N),S(N)},300)},z=N=>{v(N),L(N)},A=m!==""||C.length>0,w=c.useCallback(N=>{P(I=>[...I,N]),v(""),S(""),s.onSearchUsers("")},[s]),M=N=>{P(I=>I.filter(G=>G.id!==N.id))},B=c.useMemo(()=>{const N=t==null?void 0:t.filter(k=>!C.includes(k));let I=u(m!==""?"components.share.user.no_result":"components.share.user.placeholder");const H=(k=>!!k.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,}))$/))(m??"")&&!(N!=null&&N.some(k=>k.email===m)),j={id:m,full_name:"",email:m};return H&&(I=void 0),{groupName:u("components.share.search.group_name"),elements:N??[],showWhenEmpty:!0,emptyString:I,endActions:H?[{content:b.jsx(Pl,{user:j}),onSelect:()=>void w(j)}]:void 0}},[t,m,u,C,w]),R=N=>{var O;const G=(N==null?void 0:N.clientHeight)??0,H=((O=y.current)==null?void 0:O.clientHeight)??0,j=`calc(${T} - ${G}px - ${H}px - 70px - 10px)`;g(j)},U=!A&&!s.loading&&i.length>0,x=!A&&!s.loading&&r.length>0;return b.jsx(pe.Modal,{title:s.modalTitle??u("components.share.modalTitle"),isOpen:s.isOpen,onClose:s.onClose,closeOnClickOutside:!0,size:d?pe.ModalSize.FULL:pe.ModalSize.LARGE,children:b.jsxs("div",{children:[l&&C.length>0&&b.jsx("div",{className:"c__share-modal__selected-users",ref:y,children:b.jsx(Q2,{users:C,onRemoveUser:M,roles:s.invitationRoles,selectedRole:$,onSelectRole:E,onShare:()=>{s.onInviteUser(C,$),P([])}})}),b.jsx(Q0,{onFilter:z,inputValue:h,showInput:l,loading:s.loading,placeholder:u("components.share.user.placeholder"),children:b.jsxs("div",{style:{height:p,overflowY:"auto"},children:[A&&b.jsx("div",{className:"c__share-modal__search-users",children:b.jsx(e2,{group:B,onSelect:N=>{w(N)},renderElement:N=>b.jsx(Pl,{user:N})})}),!A&&e,U&&b.jsxs("div",{className:"c__share-modal__invitations",children:[b.jsx("span",{className:"c__share-modal__invitations-title",children:u("components.share.invitations.title")}),i.map(N=>{var I;return b.jsx(oh,{invitation:N,roles:s.invitationRoles,updateRole:s.onUpdateInvitation,deleteInvitation:s.onDeleteInvitation,canUpdate:l,roleTopMessage:(I=s.invitationRoleTopMessage)==null?void 0:I.call(s,N)},N.id)}),b.jsx(oc,{show:a,onShowMore:s.onLoadNextInvitations})]}),x&&b.jsxs("div",{className:"c__share-modal__members",children:[b.jsx("span",{className:"c__share-modal__members-title",children:u(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(N=>{var I,G;return b.jsx(ih,{accessData:N,canUpdate:l,roleTopMessage:(I=s.accessRoleTopMessage)==null?void 0:I.call(s,N),roles:((G=s.getAccessRoles)==null?void 0:G.call(s,N))??s.invitationRoles,updateRole:s.onUpdateAccess,deleteAccess:s.onDeleteAccess},N.id)}),b.jsx(oc,{show:o,onShowMore:s.onLoadNextMembers})]})]})}),b.jsx("div",{ref:R,children:!A&&b.jsx(b.Fragment,{children:n})})]})})},oc=({show:t,onShowMore:e})=>{const{t:n}=pe.useCunningham();return t?b.jsx("div",{className:"c__share-modal__show-more-button",children:b.jsx(pe.Button,{color:"primary-text",size:"small",icon:b.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:n("components.share.members.load_more")})}):null},gS=({onCopyLink:t,onOk:e})=>{const{t:n}=pe.useCunningham();return b.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[b.jsx(pe.Button,{color:"tertiary",icon:b.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),b.jsx(pe.Button,{color:"primary",onClick:e,children:n("components.share.ok")})]})};exports.AccessRoleDropdown=Wi;exports.CunninghamProvider=bh;exports.CustomTabs=My;exports.DropdownMenu=hr;exports.Filter=Rv;exports.Footer=Nv;exports.Header=Gf;exports.Hero=Lv;exports.HomeGutter=Av;exports.HorizontalSeparator=pl;exports.Icon=dS;exports.IconSize=Ve;exports.IconType=ir;exports.InvitationUserSelectorItem=eh;exports.InvitationUserSelectorList=Q2;exports.LaGaufre=qv;exports.Label=m0;exports.LanguagePicker=Wf;exports.LeftPanel=qf;exports.MainLayout=Dm;exports.ProConnectButton=sc;exports.QuickSearch=Q0;exports.QuickSearchGroup=e2;exports.QuickSearchInput=J0;exports.QuickSearchItem=Hr;exports.QuickSearchItemTemplate=ji;exports.SearchUserItem=Pl;exports.ShareInvitationItem=oh;exports.ShareMemberItem=ih;exports.ShareModal=pS;exports.ShareModalCopyLinkFooter=gS;exports.Spinner=sa;exports.TreeApi=Dn;exports.TreeContext=Ea;exports.TreeProvider=B7;exports.TreeView=U7;exports.TreeViewItem=cS;exports.TreeViewMoveModeEnum=It;exports.TreeViewNodeTypeEnum=Be;exports.TreeViewSeparator=W2;exports.UserAvatar=rh;exports.UserRow=Gi;exports.WithLabel=_m;exports.containerSizeMap=J2;exports.cunninghamConfig=ll;exports.getContainerSize=fS;exports.getIconSize=hS;exports.getLocales=ac;exports.getUserColor=nh;exports.getUserInitials=th;exports.headerHeight=Tm;exports.iconSizeMap=X2;exports.isNode=tr;exports.isSeparator=gi;exports.isTitle=vi;exports.useDropdownMenu=On;exports.useResponsive=An;exports.useTree=G2;exports.useTreeContext=$a;
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},R1="DialogDescriptionWarning",M1=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${E0(R1).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},L1=f0,A1=v0,F1=g0,K1=m0,In='[cmdk-group=""]',oo='[cmdk-group-items=""]',j1='[cmdk-group-heading=""]',Wl='[cmdk-item=""]',Ms=`${Wl}:not([aria-disabled="true"])`,Yo="cmdk-item-select",gt="data-value",H1=(t,e,n)=>tm(t,e,n),w0=D.createContext(void 0),nr=()=>D.useContext(w0),x0=D.createContext(void 0),Gl=()=>D.useContext(x0),$0=D.createContext(void 0),P0=D.forwardRef((t,e)=>{let n=en(()=>{var T,N;return{search:"",value:(N=(T=t.value)!=null?T:t.defaultValue)!=null?N:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=en(()=>new Set),i=en(()=>new Map),o=en(()=>new Map),l=en(()=>new Set),a=D0(t),{label:s,children:u,value:d,onValueChange:f,filter:p,shouldFilter:m,loop:b,disablePointerSelection:h=!1,vimBindings:v=!0,...g}=t,C=Qe(),S=Qe(),P=Qe(),$=D.useRef(null),w=J1();Ot(()=>{if(d!==void 0){let T=d.trim();n.current.value=T,x.emit()}},[d]),Ot(()=>{w(6,V)},[]);let x=D.useMemo(()=>({subscribe:T=>(l.current.add(T),()=>l.current.delete(T)),snapshot:()=>n.current,setState:(T,N,j)=>{var K,z,U;if(!Object.is(n.current[T],N)){if(n.current[T]=N,T==="search")L(),F(),w(1,E);else if(T==="value"&&(j||w(5,V),((K=a.current)==null?void 0:K.value)!==void 0)){let G=N??"";(U=(z=a.current).onValueChange)==null||U.call(z,G);return}x.emit()}},emit:()=>{l.current.forEach(T=>T())}}),[]),R=D.useMemo(()=>({value:(T,N,j)=>{var K;N!==((K=o.current.get(T))==null?void 0:K.value)&&(o.current.set(T,{value:N,keywords:j}),n.current.filtered.items.set(T,H(N,j)),w(2,()=>{F(),x.emit()}))},item:(T,N)=>(r.current.add(T),N&&(i.current.has(N)?i.current.get(N).add(T):i.current.set(N,new Set([T]))),w(3,()=>{L(),F(),n.current.value||E(),x.emit()}),()=>{o.current.delete(T),r.current.delete(T),n.current.filtered.items.delete(T);let j=A();w(4,()=>{L(),(j==null?void 0:j.getAttribute("id"))===T&&E(),x.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 H(T,N){var j,K;let z=(K=(j=a.current)==null?void 0:j.filter)!=null?K:H1;return T?z(T,n.current.search,N):0}function F(){if(!n.current.search||a.current.shouldFilter===!1)return;let T=n.current.filtered.items,N=[];n.current.filtered.groups.forEach(K=>{let z=i.current.get(K),U=0;z.forEach(G=>{let Y=T.get(G);U=Math.max(Y,U)}),N.push([K,U])});let j=$.current;B().sort((K,z)=>{var U,G;let Y=K.getAttribute("id"),Q=z.getAttribute("id");return((U=T.get(Q))!=null?U:0)-((G=T.get(Y))!=null?G:0)}).forEach(K=>{let z=K.closest(oo);z?z.appendChild(K.parentElement===z?K:K.closest(`${oo} > *`)):j.appendChild(K.parentElement===j?K:K.closest(`${oo} > *`))}),N.sort((K,z)=>z[1]-K[1]).forEach(K=>{var z;let U=(z=$.current)==null?void 0:z.querySelector(`${In}[${gt}="${encodeURIComponent(K[0])}"]`);U==null||U.parentElement.appendChild(U)})}function E(){let T=B().find(j=>j.getAttribute("aria-disabled")!=="true"),N=T==null?void 0:T.getAttribute(gt);x.setState("value",N||void 0)}function L(){var T,N,j,K;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let z=0;for(let U of r.current){let G=(N=(T=o.current.get(U))==null?void 0:T.value)!=null?N:"",Y=(K=(j=o.current.get(U))==null?void 0:j.keywords)!=null?K:[],Q=H(G,Y);n.current.filtered.items.set(U,Q),Q>0&&z++}for(let[U,G]of i.current)for(let Y of G)if(n.current.filtered.items.get(Y)>0){n.current.filtered.groups.add(U);break}n.current.filtered.count=z}function V(){var T,N,j;let K=A();K&&(((T=K.parentElement)==null?void 0:T.firstChild)===K&&((j=(N=K.closest(In))==null?void 0:N.querySelector(j1))==null||j.scrollIntoView({block:"nearest"})),K.scrollIntoView({block:"nearest"}))}function A(){var T;return(T=$.current)==null?void 0:T.querySelector(`${Wl}[aria-selected="true"]`)}function B(){var T;return Array.from(((T=$.current)==null?void 0:T.querySelectorAll(Ms))||[])}function I(T){let N=B()[T];N&&x.setState("value",N.getAttribute(gt))}function O(T){var N;let j=A(),K=B(),z=K.findIndex(G=>G===j),U=K[z+T];(N=a.current)!=null&&N.loop&&(U=z+T<0?K[K.length-1]:z+T===K.length?K[0]:K[z+T]),U&&x.setState("value",U.getAttribute(gt))}function k(T){let N=A(),j=N==null?void 0:N.closest(In),K;for(;j&&!K;)j=T>0?Z1(j,In):X1(j,In),K=j==null?void 0:j.querySelector(Ms);K?x.setState("value",K.getAttribute(gt)):O(T)}let W=()=>I(B().length-1),_=T=>{T.preventDefault(),T.metaKey?W():T.altKey?k(1):O(1)},M=T=>{T.preventDefault(),T.metaKey?I(0):T.altKey?k(-1):O(-1)};return D.createElement(me.div,{ref:e,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:T=>{var N;if((N=g.onKeyDown)==null||N.call(g,T),!T.defaultPrevented)switch(T.key){case"n":case"j":{v&&T.ctrlKey&&_(T);break}case"ArrowDown":{_(T);break}case"p":case"k":{v&&T.ctrlKey&&M(T);break}case"ArrowUp":{M(T);break}case"Home":{T.preventDefault(),I(0);break}case"End":{T.preventDefault(),W();break}case"Enter":if(!T.nativeEvent.isComposing&&T.keyCode!==229){T.preventDefault();let j=A();if(j){let K=new Event(Yo);j.dispatchEvent(K)}}}}},D.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:eb},s),xi(t,T=>D.createElement(x0.Provider,{value:x},D.createElement(w0.Provider,{value:R},T))))}),z1=D.forwardRef((t,e)=>{var n,r;let i=Qe(),o=D.useRef(null),l=D.useContext($0),a=nr(),s=D0(t),u=(r=(n=s.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Ot(()=>{if(!u)return a.item(i,l==null?void 0:l.id)},[u]);let d=T0(i,o,[t.value,t.children,o],t.keywords),f=Gl(),p=kt(w=>w.value&&w.value===d.current),m=kt(w=>u||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(Yo,b),()=>w.removeEventListener(Yo,b)},[m,t.onSelect,t.disabled]);function b(){var w,x;h(),(x=(w=s.current).onSelect)==null||x.call(w,d.current)}function h(){f.setState("value",d.current,!0)}if(!m)return null;let{disabled:v,value:g,onSelect:C,forceMount:S,keywords:P,...$}=t;return D.createElement(me.div,{ref:Zn([o,e]),...$,id:i,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||a.getDisablePointerSelection()?void 0:h,onClick:v?void 0:b},t.children)}),V1=D.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:i,...o}=t,l=Qe(),a=D.useRef(null),s=D.useRef(null),u=Qe(),d=nr(),f=kt(m=>i||d.filter()===!1?!0:m.search?m.filtered.groups.has(l):!0);Ot(()=>d.group(l),[]),T0(l,a,[t.value,t.heading,s]);let p=D.useMemo(()=>({id:l,forceMount:i}),[i]);return D.createElement(me.div,{ref:Zn([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:u},n),xi(t,m=>D.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},D.createElement($0.Provider,{value:p},m))))}),B1=D.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,i=D.useRef(null),o=kt(l=>!l.search);return!n&&!o?null:D.createElement(me.div,{ref:Zn([i,e]),...r,"cmdk-separator":"",role:"separator"})}),U1=D.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,i=t.value!=null,o=Gl(),l=kt(d=>d.search),a=kt(d=>d.value),s=nr(),u=D.useMemo(()=>{var d;let f=(d=s.listInnerRef.current)==null?void 0:d.querySelector(`${Wl}[${gt}="${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":u,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)}})}),W1=D.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...i}=t,o=D.useRef(null),l=D.useRef(null),a=nr();return D.useEffect(()=>{if(l.current&&o.current){let s=l.current,u=o.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let p=s.offsetHeight;u.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(s),()=>{cancelAnimationFrame(d),f.unobserve(s)}}},[]),D.createElement(me.div,{ref:Zn([o,e]),...i,"cmdk-list":"",role:"listbox","aria-label":r,id:a.listId},xi(t,s=>D.createElement("div",{ref:Zn([l,a.listInnerRef]),"cmdk-list-sizer":""},s)))}),G1=D.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:l,...a}=t;return D.createElement(L1,{open:n,onOpenChange:r},D.createElement(A1,{container:l},D.createElement(F1,{"cmdk-overlay":"",className:i}),D.createElement(K1,{"aria-label":t.label,"cmdk-dialog":"",className:o},D.createElement(P0,{ref:e,...a}))))}),q1=D.forwardRef((t,e)=>kt(n=>n.filtered.count===0)?D.createElement(me.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),Y1=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},xi(t,l=>D.createElement("div",{"aria-hidden":!0},l)))}),Yn=Object.assign(P0,{List:W1,Item:z1,Input:U1,Group:V1,Separator:B1,Dialog:G1,Empty:q1,Loading:Y1});function Z1(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function X1(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function D0(t){let e=D.useRef(t);return Ot(()=>{e.current=t}),e}var Ot=typeof window>"u"?D.useEffect:D.useLayoutEffect;function en(t){let e=D.useRef();return e.current===void 0&&(e.current=t()),e}function Zn(t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function kt(t){let e=Gl(),n=()=>t(e.snapshot());return xl.useSyncExternalStore(e.subscribe,n,n)}function T0(t,e,n,r=[]){let i=D.useRef(),o=nr();return Ot(()=>{var l;let a=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():i.current}})(),s=r.map(u=>u.trim());o.value(t,a,s),(l=e.current)==null||l.setAttribute(gt,a),i.current=a}),i}var J1=()=>{let[t,e]=D.useState(),n=en(()=>new Map);return Ot(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,i)=>{n.current.set(r,i),e({})}};function Q1(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function xi({asChild:t,children:e},n){return t&&D.isValidElement(e)?D.cloneElement(Q1(e),{ref:e.ref},n(e.props.children)):n(e)}var eb={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Zo=({withPadding:t=!0})=>y.jsx("div",{className:Pe("c__horizontal-separator",{"with-padding":t})}),_0=({loading:t,inputValue:e,onFilter:n,placeholder:r,children:i,withSeparator:o=!0})=>{const{t:l}=se.useCunningham();return i?y.jsxs(y.Fragment,{children:[i,o&&y.jsx(Zo,{})]}):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(zl,{size:"md"})}),y.jsx(Yn.Input,{autoFocus:!0,"aria-label":l("Quick search input"),onClick:a=>{a.stopPropagation()},role:"combobox",value:e,placeholder:r,onValueChange:n})]}),o&&y.jsx(Zo,{withPadding:!0})]})},tb=t=>{let e=!1;return c.Children.forEach(t,n=>{e=e||!!n}),e},I0=({onFilter:t,inputContent:e,inputValue:n,loading:r,showInput:i=!0,label:o,placeholder:l,children:a})=>{const s=c.useRef(null);return y.jsx(y.Fragment,{children:y.jsx("div",{className:"quick-search-container",children:y.jsxs(Yn,{label:o,shouldFilter:!1,ref:s,children:[i&&y.jsx(_0,{loading:r,withSeparator:tb(a),inputValue:n,onFilter:t,placeholder:l,children:e}),y.jsx(Yn.List,{children:y.jsx("div",{children:a})})]})})})},Dr=({children:t,onSelect:e,id:n})=>y.jsx(Yn.Item,{value:n,onSelect:e,children:t}),O0=({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(Yn.Group,{heading:t.groupName,forceMount:!1,children:[(r=t.startActions)==null?void 0:r.map((o,l)=>y.jsx(Dr,{onSelect:o.onSelect,children:o.content},`${t.groupName}-action-${l}`)),t.elements.map((o,l)=>y.jsx(Dr,{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(Dr,{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}=Sn();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:Pe("c__quick-search-item-template__right",{"always-show-right":t,"show-right-on-focus":!t}),children:n})]})},nb=({tabs:t,defaultSelectedTab:e,fullWidth:n=!1})=>t.length===0?null:y.jsx("div",{className:Pe("c__tabs",{"c__tabs__full-width":n}),children:y.jsxs(Vg,{defaultSelectedKey:e,children:[y.jsx(Ug,{"aria-label":"History of Ancient Rome",children:t.map(r=>y.jsxs(Gg,{id:r.id,children:[r.icon&&y.jsx("span",{className:"material-icons",children:r.icon}),r.label]},r.id))}),t.map(r=>y.jsx(qg,{id:r.id,children:r.content},r.id))]})}),k0=c.createContext(null);function _e(){const t=c.useContext(k0);if(t===null)throw new Error("No Tree Api Provided");return t}const N0=c.createContext(null);function rb(){const t=c.useContext(N0);if(t===null)throw new Error("Provide a NodesContext");return t}const R0=c.createContext(null);function ib(){const t=c.useContext(R0);if(t===null)throw new Error("Provide a DnDContext");return t}const M0=c.createContext(0);function L0(){c.useContext(M0)}function Tr(t,e,n){return Math.max(Math.min(t,n),e)}function A0(t){return t&&t.isLeaf}function F0(t){return t&&t.isInternal&&!t.isOpen}function K0(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const j0=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},H0=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function ob(){}function ql(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=ql(n,e);if(r)return r}return null}function Zr(t,e){if(e(t),t.children)for(let n of t.children)Zr(n,e)}function z0(t){const e=B0(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=lb(e,r);break}n==null||n.focus()}function V0(t){const e=B0(t);let n;for(let r=0;r<e.length;++r)if(e[r]===t){n=ab(e,r);break}n==null||n.focus()}function lb(t,e){return e+1<t.length?t[e+1]:t[0]}function ab(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function B0(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 Fn(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function U0(t){return t===null?null:mt(t)}function mt(t){return typeof t=="string"?t:t.id}function sb(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function W0(t,...e){if(t)return t(...e)}function G0(t){return new Promise((e,n)=>{let r=0;function i(){r+=1,r===100&&n(),t()?e():setTimeout(i,10)}i()})}function q0(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 Y0(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const ub=Object.freeze(Object.defineProperty({__proto__:null,access:Fn,bound:Tr,dfs:ql,focusNextElement:z0,focusPrevElement:V0,getInsertIndex:q0,getInsertParentId:Y0,identify:mt,identifyNull:U0,indexOf:H0,isClosed:F0,isDescendant:j0,isItem:A0,isOpenWithEmptyChildren:K0,mergeRefs:sb,noop:ob,safeRun:W0,waitFor:G0,walk:Zr},Symbol.toStringTag,{value:"Module"})),cb={display:"flex",alignItems:"center",zIndex:1},db={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},fb={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},hb=c.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({},cb),i),children:[y.jsx("div",{style:Object.assign({},fb)}),y.jsx("div",{style:Object.assign({},db)})]})});function pb({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 vb(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(mb,Object.assign({},t)):y.jsx(gb,Object.assign({},t))]})}function gb(t){return y.jsx(y.Fragment,{children:y.jsx("span",{children:t.node.data.name})})}function mb({node:t}){const e=c.useRef();return c.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 lo(t){return{type:"EDIT",id:t}}function bb(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function Wt(t){return{type:"FOCUS",id:t}}function yb(){return{type:"TREE_BLUR"}}function Cb(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 Xr{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===Xn}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 Xr(Object.assign({},this))}edit(){return this.tree.edit(this)}}const Xn="__REACT_ARBORIST_INTERNAL_ROOT__";function Ls(t){var e;function n(o,l,a){const s=t.accessId(o),u=new Xr({tree:t,data:o,level:l,parent:a,id:s,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(u.children=d.map(f=>n(f,l+1,u))),u}const r=new Xr({tree:t,id:Xn,data:{id:Xn},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 Xo={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 As(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 Sb(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:As(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:As(t.unfiltered,e)}):t}const mn=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:mt(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(mt)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(mt)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:mt(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:mt(t)})};function Eb(t=mn().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 wb(t=mn().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 mn().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const xb={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},$b=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e}px, ${n}px)`}},Pb=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:`translate(${e+10}px, ${n+10}px)`}};function Z0({offset:t,mouse:e,id:n,dragIds:r,isDragging:i}){return y.jsxs(Db,{isDragging:i,children:[y.jsx(Tb,{offset:t,children:y.jsx(Ib,{id:n,dragIds:r})}),y.jsx(_b,{mouse:e,count:r.length})]})}const Db=c.memo(function(e){return e.isDragging?y.jsx("div",{style:xb,children:e.children}):null});function Tb(t){return y.jsx("div",{className:"row preview",style:$b(t.offset),children:t.children})}function _b(t){const{count:e,mouse:n}=t;return e>1?y.jsx("div",{className:"selected-count",style:Pb(n),children:e}):null}const Ib=c.memo(function(e){const n=_e(),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 Jo(){return Jo=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},Jo.apply(null,arguments)}function Fs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qo(t,e){return Qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qo(t,e)}function Ob(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Qo(t,e)}var Ks=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function kb(t,e){return!!(t===e||Ks(t)&&Ks(e))}function Nb(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!kb(t[n],e[n]))return!1;return!0}function ao(t,e){e===void 0&&(e=Nb);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 Rb=typeof performance=="object"&&typeof performance.now=="function",js=Rb?function(){return performance.now()}:function(){return Date.now()};function Hs(t){cancelAnimationFrame(t.id)}function Mb(t,e){var n=js();function r(){js()-n>=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var so=-1;function zs(t){if(t===void 0&&(t=!1),so===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),so=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return so}var Gt=null;function Vs(t){if(t===void 0&&(t=!1),Gt===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?Gt="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Gt="negative":Gt="positive-ascending"),document.body.removeChild(e),Gt}return Gt}process.env.NODE_ENV;var Lb=150,Ab=function(e,n){return e},_r=null,Ir=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(_r=new WeakSet,Ir=new WeakSet);function Fb(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,l=t.getStartIndexForOffset,a=t.getStopIndexForStartIndex,s=t.initInstanceProps,u=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=function(f){Ob(p,f);function p(b){var h;return h=f.call(this,b)||this,h._instanceProps=s(h.props,Fs(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:Fs(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=ao(function(v,g,C,S){return h.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:g,visibleStartIndex:C,visibleStopIndex:S})}),h._callOnScroll=void 0,h._callOnScroll=ao(function(v,g,C){return h.props.onScroll({scrollDirection:v,scrollOffset:g,scrollUpdateWasRequested:C})}),h._getItemStyle=void 0,h._getItemStyle=function(v){var g=h.props,C=g.direction,S=g.itemSize,P=g.layout,$=h._getItemStyleCache(u&&S,u&&P,u&&C),w;if($.hasOwnProperty(v))w=$[v];else{var x=n(h.props,v,h._instanceProps),R=i(h.props,v,h._instanceProps),H=C==="horizontal"||P==="horizontal",F=C==="rtl",E=H?x:0;$[v]=w={position:"absolute",left:F?void 0:E,right:F?E:void 0,top:H?0:x,height:H?"100%":R,width:H?R:"100%"}}return w},h._getItemStyleCache=void 0,h._getItemStyleCache=ao(function(v,g,C){return{}}),h._onScrollHorizontal=function(v){var g=v.currentTarget,C=g.clientWidth,S=g.scrollLeft,P=g.scrollWidth;h.setState(function($){if($.scrollOffset===S)return null;var w=h.props.direction,x=S;if(w==="rtl")switch(Vs()){case"negative":x=-S;break;case"positive-descending":x=P-C-S;break}return x=Math.max(0,Math.min(x,P-C)),{isScrolling:!0,scrollDirection:$.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(v){var g=v.currentTarget,C=g.clientHeight,S=g.scrollHeight,P=g.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(v){var g=h.props.outerRef;h._outerRef=v,typeof g=="function"?g(v):g!=null&&typeof g=="object"&&g.hasOwnProperty("current")&&(g.current=v)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&Hs(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=Mb(h._resetIsScrolling,Lb)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}p.getDerivedStateFromProps=function(h,v){return Kb(h,v),d(h),null};var m=p.prototype;return m.scrollTo=function(h){h=Math.max(0,h),this.setState(function(v){return v.scrollOffset===h?null:{scrollDirection:v.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},m.scrollToItem=function(h,v){v===void 0&&(v="auto");var g=this.props,C=g.itemCount,S=g.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?zs():0:$=w.scrollHeight>w.clientHeight?zs():0}this.scrollTo(o(this.props,h,v,P,this._instanceProps,$))},m.componentDidMount=function(){var h=this.props,v=h.direction,g=h.initialScrollOffset,C=h.layout;if(typeof g=="number"&&this._outerRef!=null){var S=this._outerRef;v==="horizontal"||C==="horizontal"?S.scrollLeft=g:S.scrollTop=g}this._callPropsCallbacks()},m.componentDidUpdate=function(){var h=this.props,v=h.direction,g=h.layout,C=this.state,S=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var $=this._outerRef;if(v==="horizontal"||g==="horizontal")if(v==="rtl")switch(Vs()){case"negative":$.scrollLeft=-S;break;case"positive-ascending":$.scrollLeft=S;break;default:var w=$.clientWidth,x=$.scrollWidth;$.scrollLeft=x-w-S;break}else $.scrollLeft=S;else $.scrollTop=S}this._callPropsCallbacks()},m.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Hs(this._resetIsScrollingTimeoutId)},m.render=function(){var h=this.props,v=h.children,g=h.className,C=h.direction,S=h.height,P=h.innerRef,$=h.innerElementType,w=h.innerTagName,x=h.itemCount,R=h.itemData,H=h.itemKey,F=H===void 0?Ab:H,E=h.layout,L=h.outerElementType,V=h.outerTagName,A=h.style,B=h.useIsScrolling,I=h.width,O=this.state.isScrolling,k=C==="horizontal"||E==="horizontal",W=k?this._onScrollHorizontal:this._onScrollVertical,_=this._getRangeToRender(),M=_[0],T=_[1],N=[];if(x>0)for(var j=M;j<=T;j++)N.push(c.createElement(v,{data:R,key:F(j,R),index:j,isScrolling:B?O:void 0,style:this._getItemStyle(j)}));var K=r(this.props,this._instanceProps);return c.createElement(L||V||"div",{className:g,onScroll:W,ref:this._outerRefSetter,style:Jo({position:"relative",height:S,width:I,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},A)},c.createElement($||w||"div",{children:N,ref:P,style:{height:k?"100%":K,pointerEvents:O?"none":void 0,width:k?K:"100%"}}))},m._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var v=this._getRangeToRender(),g=v[0],C=v[1],S=v[2],P=v[3];this._callOnItemsRendered(g,C,S,P)}}if(typeof this.props.onScroll=="function"){var $=this.state,w=$.scrollDirection,x=$.scrollOffset,R=$.scrollUpdateWasRequested;this._callOnScroll(w,x,R)}},m._getRangeToRender=function(){var h=this.props,v=h.itemCount,g=h.overscanCount,C=this.state,S=C.isScrolling,P=C.scrollDirection,$=C.scrollOffset;if(v===0)return[0,0,0,0];var w=l(this.props,$,this._instanceProps),x=a(this.props,w,$,this._instanceProps),R=!S||P==="backward"?Math.max(1,g):1,H=!S||P==="forward"?Math.max(1,g):1;return[Math.max(0,w-R),Math.max(0,Math.min(v-1,x+H)),w,x]},p}(c.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Kb=function(e,n){var r=e.children,i=e.direction,o=e.height,l=e.layout,a=e.innerTagName,s=e.outerTagName,u=e.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||s!=null)&&Ir&&!Ir.has(d)&&(Ir.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":_r&&!_r.has(d)&&(_r.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 u!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(u===null?"null":typeof u)+'" 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.'))}},jb=Fb({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,u=e.itemCount,d=e.itemSize,f=e.layout,p=e.width,m=a==="horizontal"||f==="horizontal",b=m?p:s,h=Math.max(0,u*d-b),v=Math.min(h,n*d),g=Math.max(0,n*d-b+d+l);switch(r==="smart"&&(i>=g-b&&i<=v+b?r="auto":r="center"),r){case"start":return v;case"end":return g;case"center":{var C=Math.round(g+(v-g)/2);return C<Math.ceil(b/2)?0:C>h+Math.floor(b/2)?h:C}case"auto":default:return i>=g&&i<=v?i:i<g?g:v}},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,u=e.width,d=i==="horizontal"||s==="horizontal",f=n*a,p=d?u:o,m=Math.ceil((p+r-f)/a);return Math.max(0,Math.min(l-1,n+m-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 Hb(){var t,e;const n=_e(),i=ib().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 zb=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 Vb=c.forwardRef(function(e,n){const{children:r}=e,i=zb(e,["children"]),o=_e();return y.jsxs("div",Object.assign({ref:n},i,{onClick:l=>{l.currentTarget===l.target&&o.deselectAll()},children:[y.jsx(Bb,{}),r]}))}),Bb=()=>{const t=_e();return y.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:y.jsx(Hb,{})})};var Ub=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 Wb=c.forwardRef(function(e,n){var r,i,o,l,{style:a}=e,s=Ub(e,["style"]);const u=_e(),d=(i=(r=u.props.padding)!==null&&r!==void 0?r:u.props.paddingTop)!==null&&i!==void 0?i:0,f=(l=(o=u.props.padding)!==null&&o!==void 0?o:u.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 X0=c.createContext({dragDropManager:void 0}),Ne;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Ne||(Ne={}));function Z(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 Yl="dnd-core/INIT_COORDS",Pi="dnd-core/BEGIN_DRAG",Zl="dnd-core/PUBLISH_DRAG_SOURCE",Di="dnd-core/HOVER",Ti="dnd-core/DROP",_i="dnd-core/END_DRAG";function Bs(t,e){return{type:Yl,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function Or(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Or=function(n){return typeof n}:Or=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Or(t)}function Gb(t,e,n){return e.split(".").reduce(function(r,i){return r&&r[i]?r[i]:n||null},t)}function qb(t,e){return t.filter(function(n){return n!==e})}function J0(t){return Or(t)==="object"}function Yb(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 Zb(t,e){return t.filter(function(n){return e.indexOf(n)>-1})}var Xb={type:Yl,payload:{clientOffset:null,sourceClientOffset:null}};function Jb(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(),u=t.getRegistry();t.dispatch(Bs(l)),Qb(n,s,u);var d=ny(n,s);if(d===null){t.dispatch(Xb);return}var f=null;if(l){if(!a)throw new Error("getSourceClientOffset must be defined");ey(a),f=a(d)}t.dispatch(Bs(l,f));var p=u.getSource(d),m=p.beginDrag(s,d);if(m!=null){ty(m),u.pinSource(d);var b=u.getSourceType(d);return{type:Pi,payload:{itemType:b,item:m,sourceId:d,clientOffset:l||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}}function Qb(t,e,n){Z(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Z(n.getSource(r),"Expected sourceIds to be registered.")})}function ey(t){Z(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ty(t){Z(J0(t),"Item must be an object.")}function ny(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 ry(t){return function(){var n=t.getMonitor();if(n.isDragging())return{type:Zl}}}function el(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(n){return n===e}):t===e}function iy(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.clientOffset;oy(n);var o=n.slice(0),l=t.getMonitor(),a=t.getRegistry();ly(o,l,a);var s=l.getItemType();return ay(o,a,s),sy(o,l,a),{type:Di,payload:{targetIds:o,clientOffset:i||null}}}}function oy(t){Z(Array.isArray(t),"Expected targetIds to be an array.")}function ly(t,e,n){Z(e.isDragging(),"Cannot call hover while not dragging."),Z(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var i=t[r];Z(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");var o=n.getTarget(i);Z(o,"Expected targetIds to be registered.")}}function ay(t,e,n){for(var r=t.length-1;r>=0;r--){var i=t[r],o=e.getTargetType(i);el(o,n)||t.splice(r,1)}}function sy(t,e,n){t.forEach(function(r){var i=n.getTarget(r);i.hover(e,r)})}function Us(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 Ws(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Us(Object(n),!0).forEach(function(r){uy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function uy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cy(t){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getMonitor(),i=t.getRegistry();dy(r);var o=py(r);o.forEach(function(l,a){var s=fy(l,a,i,r),u={type:Ti,payload:{dropResult:Ws(Ws({},n),s)}};t.dispatch(u)})}}function dy(t){Z(t.isDragging(),"Cannot call drop while not dragging."),Z(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function fy(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return hy(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function hy(t){Z(typeof t>"u"||J0(t),"Drop result must either be an object or undefined.")}function py(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function vy(t){return function(){var n=t.getMonitor(),r=t.getRegistry();gy(n);var i=n.getSourceId();if(i!=null){var o=r.getSource(i,!0);o.endDrag(n,i),r.unpinSource()}return{type:_i}}}function gy(t){Z(t.isDragging(),"Cannot call endDrag while not dragging.")}function my(t){return{beginDrag:Jb(t),publishDragSource:ry(t),hover:iy(t),drop:cy(t),endDrag:vy(t)}}function by(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yy(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 Cy(t,e,n){return e&&yy(t.prototype,e),t}function On(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sy=function(){function t(e,n){var r=this;by(this,t),On(this,"store",void 0),On(this,"monitor",void 0),On(this,"backend",void 0),On(this,"isSetUp",!1),On(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 Cy(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),u=0;u<a;u++)s[u]=arguments[u];var d=l.apply(n,s);typeof d<"u"&&r(d)}}var o=my(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 Ie(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Gs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),qs=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ys={INIT:"@@redux/INIT"+qs(),REPLACE:"@@redux/REPLACE"+qs()};function Ey(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 wy(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(Py(t))return"date";if($y(t))return"error";var n=xy(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 xy(t){return typeof t.constructor=="function"?t.constructor.name:null}function $y(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Py(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function qt(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=wy(t)),e}function Q0(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"?Ie(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(1):"Expected the enhancer to be a function. Instead, received: '"+qt(n)+"'");return n(Q0)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(2):"Expected the root reducer to be a function. Instead, received: '"+qt(t)+"'");var i=t,o=e,l=[],a=l,s=!1;function u(){a===l&&(a=l.slice())}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(4):"Expected the listener to be a function. Instead, received: '"+qt(h)+"'");if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;return u(),a.push(h),function(){if(v){if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,u();var C=a.indexOf(h);a.splice(C,1),l=null}}}function p(h){if(!Ey(h))throw new Error(process.env.NODE_ENV==="production"?Ie(7):"Actions must be plain objects. Instead, the actual type was: '"+qt(h)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof h.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ie(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(s)throw new Error(process.env.NODE_ENV==="production"?Ie(9):"Reducers may not dispatch actions.");try{s=!0,o=i(o,h)}finally{s=!1}for(var v=l=a,g=0;g<v.length;g++){var C=v[g];C()}return h}function m(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Ie(10):"Expected the nextReducer to be a function. Instead, received: '"+qt(h));i=h,p({type:Ys.REPLACE})}function b(){var h,v=f;return h={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(process.env.NODE_ENV==="production"?Ie(11):"Expected the observer to be an object. Instead, received: '"+qt(C)+"'");function S(){C.next&&C.next(d())}S();var P=v(S);return{unsubscribe:P}}},h[Gs]=function(){return this},h}return p({type:Ys.INIT}),r={dispatch:p,subscribe:f,getState:d,replaceReducer:m},r[Gs]=b,r}var Dy=function(e,n){return e===n};function Ty(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function _y(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dy;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 Zs(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 Xs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zs(Object(n),!0).forEach(function(r){Iy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Iy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Js={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Oy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Js,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Yl:case Pi:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Di:return Ty(t.clientOffset,n.clientOffset)?t:Xs(Xs({},t),{},{clientOffset:n.clientOffset});case _i:case Ti:return Js;default:return t}}var Xl="dnd-core/ADD_SOURCE",Jl="dnd-core/ADD_TARGET",Ql="dnd-core/REMOVE_SOURCE",Ii="dnd-core/REMOVE_TARGET";function ky(t){return{type:Xl,payload:{sourceId:t}}}function Ny(t){return{type:Jl,payload:{targetId:t}}}function Ry(t){return{type:Ql,payload:{sourceId:t}}}function My(t){return{type:Ii,payload:{targetId:t}}}function Qs(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 Oe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qs(Object(n),!0).forEach(function(r){Ly(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ly(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ay={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Fy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ay,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case Pi:return Oe(Oe({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Zl:return Oe(Oe({},t),{},{isSourcePublic:!0});case Di:return Oe(Oe({},t),{},{targetIds:n.targetIds});case Ii:return t.targetIds.indexOf(n.targetId)===-1?t:Oe(Oe({},t),{},{targetIds:qb(t.targetIds,n.targetId)});case Ti:return Oe(Oe({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case _i:return Oe(Oe({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function Ky(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Xl:case Jl:return t+1;case Ql:case Ii:return t-1;default:return t}}var Jr=[],ea=[];Jr.__IS_NONE__=!0;ea.__IS_ALL__=!0;function jy(t,e){if(t===Jr)return!1;if(t===ea||typeof e>"u")return!0;var n=Zb(e,t);return n.length>0}function Hy(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Di:break;case Xl:case Jl:case Ii:case Ql:return Jr;case Pi:case Zl:case _i:case Ti:default:return ea}var e=t.payload,n=e.targetIds,r=n===void 0?[]:n,i=e.prevTargetIds,o=i===void 0?[]:i,l=Yb(r,o),a=l.length>0||!_y(r,o);if(!a)return Jr;var s=o[o.length-1],u=r[r.length-1];return s!==u&&(s&&l.push(s),u&&l.push(u)),l}function zy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function eu(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 tu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eu(Object(n),!0).forEach(function(r){Vy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Vy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function By(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Hy(t.dirtyHandlerIds,{type:e.type,payload:tu(tu({},e.payload),{},{prevTargetIds:Gb(t,"dragOperation.targetIds",[])})}),dragOffset:Oy(t.dragOffset,e),refCount:Ky(t.refCount,e),dragOperation:Fy(t.dragOperation,e),stateId:zy(t.stateId)}}function Uy(t,e){return{x:t.x+e.x,y:t.y+e.y}}function e2(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Wy(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return!e||!n||!r?null:e2(Uy(e,r),n)}function Gy(t){var e=t.clientOffset,n=t.initialClientOffset;return!e||!n?null:e2(e,n)}function qy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yy(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 Zy(t,e,n){return e&&Yy(t.prototype,e),t}function nu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xy=function(){function t(e,n){qy(this,t),nu(this,"store",void 0),nu(this,"registry",void 0),this.store=e,this.registry=n}return Zy(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;Z(typeof n=="function","listener must be a function."),Z(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var l=this.store.getState().stateId,a=function(){var u=r.store.getState(),d=u.stateId;try{var f=d===l||d===l+1&&!jy(u.dirtyHandlerIds,o);f||n()}finally{l=d}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(n){var r=this;Z(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 Z(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(Z(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 el(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(Z(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&&!el(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 Wy(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Gy(this.store.getState().dragOffset)}}]),t}(),Jy=0;function Qy(){return Jy++}function kr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kr=function(n){return typeof n}:kr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kr(t)}function e9(t){Z(typeof t.canDrag=="function","Expected canDrag to be a function."),Z(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Z(typeof t.endDrag=="function","Expected endDrag to be a function.")}function t9(t){Z(typeof t.canDrop=="function","Expected canDrop to be a function."),Z(typeof t.hover=="function","Expected hover to be a function."),Z(typeof t.drop=="function","Expected beginDrag to be a function.")}function tl(t,e){if(e&&Array.isArray(t)){t.forEach(function(n){return tl(n,!1)});return}Z(typeof t=="string"||kr(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 ru=typeof global<"u"?global:self,t2=ru.MutationObserver||ru.WebKitMutationObserver;function n2(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function n9(t){let e=1;const n=new t2(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const r9=typeof t2=="function"?n9:n2;class i9{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=r9(this.flush),this.requestErrorThrow=n2(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class o9{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 l9{create(e){const n=this.freeTasks,r=n.length?n.pop():new o9(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const r2=new i9,a9=new l9(r2.registerPendingError);function s9(t){r2.enqueueTask(a9.create(t))}function u9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c9(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 d9(t,e,n){return e&&c9(t.prototype,e),t}function Yt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f9(t,e){return g9(t)||v9(t,e)||p9(t,e)||h9()}function h9(){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 p9(t,e){if(t){if(typeof t=="string")return iu(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 iu(t,e)}}function iu(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 v9(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 g9(t){if(Array.isArray(t))return t}function m9(t){var e=Qy().toString();switch(t){case Ne.SOURCE:return"S".concat(e);case Ne.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function ou(t){switch(t[0]){case"S":return Ne.SOURCE;case"T":return Ne.TARGET;default:Z(!1,"Cannot parse handler ID: ".concat(t))}}function lu(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done,l=f9(i.value,2),a=l[1];if(a===e)return!0;r=!!o}while(!r);return!1}var b9=function(){function t(e){u9(this,t),Yt(this,"types",new Map),Yt(this,"dragSources",new Map),Yt(this,"dropTargets",new Map),Yt(this,"pinnedSourceId",null),Yt(this,"pinnedSource",null),Yt(this,"store",void 0),this.store=e}return d9(t,[{key:"addSource",value:function(n,r){tl(n),e9(r);var i=this.addHandler(Ne.SOURCE,n,r);return this.store.dispatch(ky(i)),i}},{key:"addTarget",value:function(n,r){tl(n,!0),t9(r);var i=this.addHandler(Ne.TARGET,n,r);return this.store.dispatch(Ny(i)),i}},{key:"containsHandler",value:function(n){return lu(this.dragSources,n)||lu(this.dropTargets,n)}},{key:"getSource",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Z(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 Z(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}},{key:"getSourceType",value:function(n){return Z(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}},{key:"getTargetType",value:function(n){return Z(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}},{key:"isSourceId",value:function(n){var r=ou(n);return r===Ne.SOURCE}},{key:"isTargetId",value:function(n){var r=ou(n);return r===Ne.TARGET}},{key:"removeSource",value:function(n){var r=this;Z(this.getSource(n),"Expected an existing source."),this.store.dispatch(Ry(n)),s9(function(){r.dragSources.delete(n),r.types.delete(n)})}},{key:"removeTarget",value:function(n){Z(this.getTarget(n),"Expected an existing target."),this.store.dispatch(My(n)),this.dropTargets.delete(n),this.types.delete(n)}},{key:"pinSource",value:function(n){var r=this.getSource(n);Z(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}},{key:"unpinSource",value:function(){Z(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(n,r,i){var o=m9(n);return this.types.set(o,r),n===Ne.SOURCE?this.dragSources.set(o,i):n===Ne.TARGET&&this.dropTargets.set(o,i),o}}]),t}();function y9(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=C9(r),o=new Xy(i,new b9(i)),l=new Sy(i,o),a=t(l,e,n);return l.receiveBackend(a),l}function C9(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Q0(By,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var S9=["children"];function E9(t,e){return P9(t)||$9(t,e)||x9(t,e)||w9()}function w9(){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 x9(t,e){if(t){if(typeof t=="string")return au(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 au(t,e)}}function au(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 $9(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 P9(t){if(Array.isArray(t))return t}function D9(t,e){if(t==null)return{};var n=T9(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 T9(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 su=0,Nr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),_9=c.memo(function(e){var n=e.children,r=D9(e,S9),i=I9(r),o=E9(i,2),l=o[0],a=o[1];return c.useEffect(function(){if(a){var s=i2();return++su,function(){--su===0&&(s[Nr]=null)}}},[]),y.jsx(X0.Provider,Object.assign({value:l},{children:n}),void 0)});function I9(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var n=O9(t.backend,t.context,t.options,t.debugMode),r=!t.context;return[n,r]}function O9(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i2(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;return i[Nr]||(i[Nr]={dragDropManager:y9(t,e,n,r)}),i[Nr]}function i2(){return typeof global<"u"?global:window}function k9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N9(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 R9(t,e,n){return e&&N9(t.prototype,e),t}function uu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uo=!1,co=!1,M9=function(){function t(e){k9(this,t),uu(this,"internalMonitor",void 0),uu(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return R9(t,[{key:"receiveHandlerId",value:function(n){this.sourceId=n}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Z(!uo,"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 uo=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{uo=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Z(!co,"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 co=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{co=!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 L9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A9(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 F9(t,e,n){return e&&A9(t.prototype,e),t}function cu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fo=!1,K9=function(){function t(e){L9(this,t),cu(this,"internalMonitor",void 0),cu(this,"targetId",null),this.internalMonitor=e.getMonitor()}return F9(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;Z(!fo,"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 fo=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{fo=!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 j9(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 H9(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(!c.isValidElement(e)){var r=e;return t(r,n),r}var i=e;j9(i);var o=n?function(l){return t(l,n)}:t;return z9(i,o)}}function o2(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=H9(r);e[n]=function(){return i}}}),e}function du(t,e){typeof t=="function"?t(e):t.current=e}function z9(t,e){var n=t.ref;return Z(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?c.cloneElement(t,{ref:function(i){du(n,i),du(e,i)}}):c.cloneElement(t,{ref:e})}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 nl(t){return t!==null&&Rr(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function rl(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 u=o[s];if(!a(u))return!1;var d=t[u],f=e[u];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function V9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B9(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 U9(t,e,n){return e&&B9(t.prototype,e),t}function be(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var W9=function(){function t(e){var n=this;V9(this,t),be(this,"hooks",o2({dragSource:function(i,o){n.clearDragSource(),n.dragSourceOptions=o||null,nl(i)?n.dragSourceRef=i:n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,o){n.clearDragPreview(),n.dragPreviewOptions=o||null,nl(i)?n.dragPreviewRef=i:n.dragPreviewNode=i,n.reconnectDragPreview()}})),be(this,"handlerId",null),be(this,"dragSourceRef",null),be(this,"dragSourceNode",void 0),be(this,"dragSourceOptionsInternal",null),be(this,"dragSourceUnsubscribe",void 0),be(this,"dragPreviewRef",null),be(this,"dragPreviewNode",void 0),be(this,"dragPreviewOptionsInternal",null),be(this,"dragPreviewUnsubscribe",void 0),be(this,"lastConnectedHandlerId",null),be(this,"lastConnectedDragSource",null),be(this,"lastConnectedDragSourceOptions",null),be(this,"lastConnectedDragPreview",null),be(this,"lastConnectedDragPreviewOptions",null),be(this,"backend",void 0),this.backend=e}return U9(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!rl(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!rl(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 G9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q9(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 Y9(t,e,n){return e&&q9(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 Z9=function(){function t(e){var n=this;G9(this,t),We(this,"hooks",o2({dropTarget:function(i,o){n.clearDropTarget(),n.dropTargetOptions=o,nl(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 Y9(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!rl(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 X9(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function J9(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}var Nt=typeof window<"u"?c.useLayoutEffect:c.useEffect;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 Q9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e4(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 t4(t,e,n){return e&&e4(t.prototype,e),t}function ho(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var n4=function(){function t(e,n,r){Q9(this,t),ho(this,"spec",void 0),ho(this,"monitor",void 0),ho(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}return t4(t,[{key:"beginDrag",value:function(){var n,r=this.spec,i=this.monitor,o=null;return Mr(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 r4(t,e,n){var r=c.useMemo(function(){return new n4(t,e,n)},[e,n]);return c.useEffect(function(){r.spec=t},[t]),r}function Kt(){var t=c.useContext(X0),e=t.dragDropManager;return Z(e!=null,"Expected drag drop context"),e}function i4(t){return c.useMemo(function(){var e=t.type;return Z(e!=null,"spec.type must be defined"),e},[t])}function o4(t,e){return u4(t)||s4(t,e)||a4(t,e)||l4()}function l4(){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 a4(t,e){if(t){if(typeof t=="string")return fu(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 fu(t,e)}}function fu(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 s4(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 u4(t){if(Array.isArray(t))return t}function c4(t,e,n){var r=Kt(),i=r4(t,e,n),o=i4(t);Nt(function(){if(o!=null){var a=J9(o,i,r),s=o4(a,2),u=s[0],d=s[1];return e.receiveHandlerId(u),n.receiveHandlerId(u),d}},[r,e,n,i,o])}function d4(t){return v4(t)||p4(t)||h4(t)||f4()}function f4(){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 h4(t,e){if(t){if(typeof t=="string")return il(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 il(t,e)}}function p4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function v4(t){if(Array.isArray(t))return il(t)}function il(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 l2(t,e){var n=d4(e||[]);return e==null&&typeof t!="function"&&n.push(t),c.useMemo(function(){return typeof t=="function"?t():t},n)}function g4(){var t=Kt();return c.useMemo(function(){return new M9(t)},[t])}function m4(t,e){var n=Kt(),r=c.useMemo(function(){return new W9(n.getBackend())},[n]);return Nt(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),Nt(function(){return r.dragPreviewOptions=e||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,e]),r}var po,hu;function b4(){return hu||(hu=1,po=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}),po}var y4=b4();const C4=K2(y4);function S4(t,e){return $4(t)||x4(t,e)||w4(t,e)||E4()}function E4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
93
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w4(t,e){if(t){if(typeof t=="string")return pu(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 pu(t,e)}}function pu(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 x4(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 $4(t){if(Array.isArray(t))return t}function a2(t,e,n){var r=c.useState(function(){return e(t)}),i=S4(r,2),o=i[0],l=i[1],a=c.useCallback(function(){var s=e(t);C4(o,s)||(l(s),n&&n())},[o,t,n]);return Nt(a),[o,a]}function P4(t,e){return I4(t)||_4(t,e)||T4(t,e)||D4()}function D4(){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 T4(t,e){if(t){if(typeof t=="string")return vu(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 vu(t,e)}}function vu(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 _4(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 I4(t){if(Array.isArray(t))return t}function O4(t,e,n){var r=a2(t,e,n),i=P4(r,2),o=i[0],l=i[1];return Nt(function(){var s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(l,{handlerIds:[s]})},[t,l]),o}function s2(t,e,n){return O4(e,t||function(){return{}},function(){return n.reconnect()})}function k4(t){return c.useMemo(function(){return t.hooks.dragSource()},[t])}function N4(t){return c.useMemo(function(){return t.hooks.dragPreview()},[t])}function R4(t,e){var n=l2(t,e);Z(!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=g4(),i=m4(n.options,n.previewOptions);return c4(n,r,i),[s2(n.collect,r,i),k4(i),N4(i)]}function M4(t){var e=t.accept;return c.useMemo(function(){return Z(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function L4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A4(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 F4(t,e,n){return e&&A4(t.prototype,e),t}function gu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var K4=function(){function t(e,n){L4(this,t),gu(this,"spec",void 0),gu(this,"monitor",void 0),this.spec=e,this.monitor=n}return F4(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 j4(t,e){var n=c.useMemo(function(){return new K4(t,e)},[e]);return c.useEffect(function(){n.spec=t},[t]),n}function H4(t,e){return U4(t)||B4(t,e)||V4(t,e)||z4()}function z4(){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 V4(t,e){if(t){if(typeof t=="string")return mu(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 mu(t,e)}}function mu(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 B4(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 U4(t){if(Array.isArray(t))return t}function W4(t,e,n){var r=Kt(),i=j4(t,e),o=M4(t);Nt(function(){var a=X9(o,i,r),s=H4(a,2),u=s[0],d=s[1];return e.receiveHandlerId(u),n.receiveHandlerId(u),d},[r,e,i,n,o.map(function(l){return l.toString()}).join("|")])}function G4(){var t=Kt();return c.useMemo(function(){return new K9(t)},[t])}function q4(t){var e=Kt(),n=c.useMemo(function(){return new Z9(e.getBackend())},[e]);return Nt(function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}},[t]),n}function Y4(t){return c.useMemo(function(){return t.hooks.dropTarget()},[t])}function u2(t,e){var n=l2(t,e),r=G4(),i=q4(n.options);return W4(n,r,i),[s2(n.collect,r,i),Y4(i)]}function Z4(t,e){return e3(t)||Q4(t,e)||J4(t,e)||X4()}function X4(){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 J4(t,e){if(t){if(typeof t=="string")return bu(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 bu(t,e)}}function bu(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 Q4(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 e3(t){if(Array.isArray(t))return t}function t3(t){var e=Kt(),n=e.getMonitor(),r=a2(n,t),i=Z4(r,2),o=i[0],l=i[1];return c.useEffect(function(){return n.subscribeToOffsetChange(l)}),c.useEffect(function(){return n.subscribeToStateChange(l)}),o}function c2(t){var e=null,n=function(){return e==null&&(e=t()),e};return n}function n3(t,e){return t.filter(function(n){return n!==e})}function r3(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 i3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o3(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 l3(t,e,n){return e&&o3(t.prototype,e),t}function yu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a3=function(){function t(e){i3(this,t),yu(this,"entered",[]),yu(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return l3(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=r3(this.entered.filter(o),[n]),i===0&&this.entered.length>0}},{key:"leave",value:function(n){var r=this.entered.length;return this.entered=n3(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),s3=c2(function(){return/firefox/i.test(navigator.userAgent)}),d2=c2(function(){return!!window.safari});function u3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c3(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 d3(t,e,n){return e&&c3(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 Cu=function(){function t(e,n){u3(this,t),kn(this,"xs",void 0),kn(this,"ys",void 0),kn(this,"c1s",void 0),kn(this,"c2s",void 0),kn(this,"c3s",void 0);for(var r=e.length,i=[],o=0;o<r;o++)i.push(o);i.sort(function(R,H){return e[R]<e[H]?-1:1});for(var l=[],a=[],s,u,d=0;d<r-1;d++)s=e[d+1]-e[d],u=n[d+1]-n[d],l.push(s),a.push(u/s);for(var f=[a[0]],p=0;p<l.length-1;p++){var m=a[p],b=a[p+1];if(m*b<=0)f.push(0);else{s=l[p];var h=l[p+1],v=s+h;f.push(3*v/((v+h)/m+(v+s)/b))}}f.push(a[a.length-1]);for(var g=[],C=[],S,P=0;P<f.length-1;P++){S=a[P];var $=f[P],w=1/l[P],x=$+f[P+1]-S-S;g.push((S-$-x)*w),C.push(x*w*w)}this.xs=e,this.ys=n,this.c1s=f,this.c2s=g,this.c3s=C}return d3(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 u=0,d=a.length-1,f;u<=d;){f=Math.floor(.5*(u+d));var p=r[f];if(p<n)u=f+1;else if(p>n)d=f-1;else return i[f]}s=Math.max(0,d);var m=n-r[s],b=m*m;return i[s]+o[s]*m+l[s]*b+a[s]*m*b}}]),t}(),f3=1;function f2(t){var e=t.nodeType===f3?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top,i=n.left;return{x:i,y:r}}function yr(t){return{x:t.clientX,y:t.clientY}}function h3(t){var e;return t.nodeName==="IMG"&&(s3()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function p3(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return d2()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function v3(t,e,n,r,i){var o=h3(e),l=o?t:e,a=f2(l),s={x:n.x-a.x,y:n.y-a.y},u=t.offsetWidth,d=t.offsetHeight,f=r.anchorX,p=r.anchorY,m=p3(o,e,u,d),b=m.dragPreviewWidth,h=m.dragPreviewHeight,v=function(){var x=new Cu([0,.5,1],[s.y,s.y/d*h,s.y+h-d]),R=x.interpolate(p);return d2()&&o&&(R+=(window.devicePixelRatio-1)*h),R},g=function(){var x=new Cu([0,.5,1],[s.x,s.x/u*b,s.x+b-u]);return x.interpolate(f)},C=i.offsetX,S=i.offsetY,P=C===0||C,$=S===0||S;return{x:P?C:g(),y:$?S:v()}}var h2="__NATIVE_FILE__",p2="__NATIVE_URL__",v2="__NATIVE_TEXT__",g2="__NATIVE_HTML__";const Su=Object.freeze(Object.defineProperty({__proto__:null,FILE:h2,HTML:g2,TEXT:v2,URL:p2},Symbol.toStringTag,{value:"Module"}));function vo(t,e,n){var r=e.reduce(function(i,o){return i||t.getData(o)},"");return r??n}var Zt;function Cr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ol=(Zt={},Cr(Zt,h2,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),Cr(Zt,g2,{exposeProperties:{html:function(e,n){return vo(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),Cr(Zt,p2,{exposeProperties:{urls:function(e,n){return vo(e,n,"").split(`
97
+ `)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Cr(Zt,v2,{exposeProperties:{text:function(e,n){return vo(e,n,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),Zt);function g3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m3(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 b3(t,e,n){return e&&m3(t.prototype,e),t}function Eu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y3=function(){function t(e){g3(this,t),Eu(this,"item",void 0),Eu(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return b3(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 C3(t,e){var n=new y3(ol[t]);return n.loadDataTransfer(e),n}function go(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(ol).filter(function(n){var r=ol[n].matchesTypes;return r.some(function(i){return e.indexOf(i)>-1})})[0]||null}function S3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E3(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 w3(t,e,n){return e&&E3(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 x3=function(){function t(e,n){S3(this,t),mo(this,"ownerDocument",null),mo(this,"globalContext",void 0),mo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}return w3(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 wu(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 xu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wu(Object(n),!0).forEach(function(r){J(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P3(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 D3(t,e,n){return e&&P3(t.prototype,e),t}function J(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T3=function(){function t(e,n,r){var i=this;$3(this,t),J(this,"options",void 0),J(this,"actions",void 0),J(this,"monitor",void 0),J(this,"registry",void 0),J(this,"enterLeaveCounter",void 0),J(this,"sourcePreviewNodes",new Map),J(this,"sourcePreviewNodeOptions",new Map),J(this,"sourceNodes",new Map),J(this,"sourceNodeOptions",new Map),J(this,"dragStartSourceIds",null),J(this,"dropTargetIds",[]),J(this,"dragEnterTargetIds",[]),J(this,"currentNativeSource",null),J(this,"currentNativeHandle",null),J(this,"currentDragSourceNode",null),J(this,"altKeyPressed",!1),J(this,"mouseMoveTimeoutTimer",null),J(this,"asyncEndDragFrameId",null),J(this,"dragOverTargetIds",null),J(this,"lastClientOffset",null),J(this,"hoverRafId",null),J(this,"getSourceClientOffset",function(o){var l=i.sourceNodes.get(o);return l&&f2(l)||null}),J(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),J(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),J(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),J(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),J(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var l=i.dragStartSourceIds;i.dragStartSourceIds=null;var a=yr(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:a});var s=o.dataTransfer,u=go(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 m=i.getCurrentSourcePreviewNodeOptions(),b=m.anchorX,h=m.anchorY,v=m.offsetX,g=m.offsetY,C={anchorX:b,anchorY:h},S={offsetX:v,offsetY:g},P=v3(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(u)i.beginDragNativeItem(u);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),J(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),J(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var l=i.enterLeaveCounter.enter(o.target);if(!(!l||i.monitor.isDragging())){var a=o.dataTransfer,s=go(a);s&&i.beginDragNativeItem(s,a)}}),J(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:yr(o)});var a=l.some(function(s){return i.monitor.canDropOnTarget(s)});a&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),J(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),J(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=yr(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"))}),J(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var l=i.enterLeaveCounter.leave(o.target);l&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),J(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 go(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),J(this,"handleTopDrop",function(o){var l=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(l,{clientOffset:yr(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),J(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 x3(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new a3(this.isNodeInDocument)}return D3(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(u){return o.handleDragStart(u,n)},a=function(u){return o.handleSelectStart(u)};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(u){return i.handleDragEnter(u,n)},l=function(u){return i.handleDragOver(u,n)},a=function(u){return i.handleDrop(u,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 xu({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 xu({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}},{key:"isDraggingNativeItem",value:function(){var n=this.monitor.getItemType();return Object.keys(Su).some(function(r){return Su[r]===n})}},{key:"beginDragNativeItem",value:function(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=C3(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}(),Sr;function _3(){return Sr||(Sr=new Image,Sr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Sr}var I3=function(e,n,r){return new T3(e,n,r)};function O3(t){const e=_e(),n=e.selectedIds,[r,i,o]=R4(()=>({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 c.useEffect(()=>{o(_3())},[o]),i}function k3(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,u=i>s&&i<o-s;return{x:r,inTopHalf:l,inBottomHalf:a,inMiddle:u,atTop:!u&&l,atBottom:!u&&a}}function N3(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 Xt(t,e){return{type:"line",index:t,level:e}}function R3(t){return{type:"highlight",id:t}}function bo(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=H0(r)+1;return{parentId:i,index:o}}function m2(t){var e;const n=k3(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,u]=N3(o,a,l,n);if(o&&o.isInternal&&n.inMiddle)return{drop:Er(o.id,null),cursor:R3(o.id)};if(!s)return{drop:Er((e=u==null?void 0:u.parent)===null||e===void 0?void 0:e.id,0),cursor:Xt(0,0)};if(A0(s)){const d=Tr(i,(u==null?void 0:u.level)||0,s.level);return{drop:bo(s,d),cursor:Xt(s.rowIndex+1,d)}}if(F0(s)){const d=Tr(i,(u==null?void 0:u.level)||0,s.level);return{drop:bo(s,d),cursor:Xt(s.rowIndex+1,d)}}if(K0(s)){const d=Tr(i,0,s.level+1);return d>s.level?{drop:Er(s.id,0),cursor:Xt(s.rowIndex+1,d)}:{drop:bo(s,d),cursor:Xt(s.rowIndex+1,d)}}return{drop:Er(s==null?void 0:s.id,0),cursor:Xt(s.rowIndex+1,s.level+1)}}function M3(t,e){const n=_e(),[r,i]=u2(()=>({accept:"NODE",canDrop:()=>n.canDrop(),hover:(o,l)=>{const a=l.getClientOffset();if(!t.current||!a)return;const{cursor:s,drop:u}=m2({element:t.current,offset:a,indent:n.indent,node:e,prevNode:e.prev,nextNode:e.next});u&&n.dispatch(bn.hovering(u.parentId,u.index)),l.canDrop()?s&&n.showCursor(s):n.hideCursor()},drop:(o,l)=>{if(!l.canDrop())return null;let{parentId:a,index:s,dragIds:u}=n.state.dnd;W0(n.props.onMove,{dragIds:u,parentId:a===Xn?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 L3(t){const e=_e(),n=e.at(t);if(!n)throw new Error(`Could not find node for index: ${t}`);return c.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const A3=c.memo(function({index:e,style:n}){L0(),rb();const r=_e(),i=L3(e),o=c.useRef(null),l=O3(i),a=M3(o,i),s=c.useCallback(h=>{o.current=h,a(h)},[a]),u=r.indent*i.level,d=c.useMemo(()=>({paddingLeft:u}),[u]),f=c.useMemo(()=>{var h,v;return Object.assign(Object.assign({},n),{top:parseFloat(n.top)+((v=(h=r.props.padding)!==null&&h!==void 0?h:r.props.paddingTop)!==null&&v!==void 0?v: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};c.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 m=r.renderNode,b=r.renderRow;return y.jsx(b,{node:i,innerRef:s,attrs:p,children:y.jsx(m,{node:i,tree:r,style:d,dragHandle:l})})});let yo="",$u=null;function b2(){L0();const t=_e();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(),z0(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),V0(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($u),yo+=e.key,$u=setTimeout(()=>{yo=""},600);const r=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(yo):!1});r&&t.focus(r.id)},children:y.jsx(jb,{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:Vb,innerElementType:Wb,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:A3})})}function Pu(t){return t.isFiltered?K3(t.root,t.isMatch.bind(t)):F3(t.root)}function F3(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(y2),e}function K3(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(y2),r}function y2(t,e){t.rowIndex=e}const Du=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});var Co=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{u(r.next(d))}catch(f){l(f)}}function s(d){try{u(r.throw(d))}catch(f){l(f)}}function u(d){d.done?o(d.value):i(d.value).then(a,s)}u((r=r.apply(t,e||[])).next())})};const{safeRun:ge,identify:Ze,identifyNull:Ke}=ub;class dn{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=Ls(this),this.visibleNodes=Pu(this),this.idToIndex=Du(this.visibleNodes)}update(e){this.props=e,this.root=Ls(this),this.visibleNodes=Pu(this),this.idToIndex=Du(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=Fn(e,r))!==null&&n!==void 0?n:null}accessId(e){const n=this.props.idAccessor||"id",r=Fn(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=U0(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 Co(this,arguments,void 0,function*(e={}){var n,r;const i=e.parentId===void 0?Y0(this):e.parentId,o=(n=e.index)!==null&&n!==void 0?n:q0(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 Co(this,void 0,void 0,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(Ze),i=r.map(o=>this.get(o)).filter(o=>!!o);yield ge(this.props.onDelete,{nodes:i,ids:r})})}edit(e){const n=Ze(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(lo(n)),new Promise(r=>{dn.editPromise=r})}submit(e,n){return Co(this,void 0,void 0,function*(){if(!e)return;const r=Ze(e);yield ge(this.props.onRename,{id:r,name:n,node:this.get(r)}),this.dispatch(lo(null)),this.resolveEdit({cancelled:!1,value:n}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(lo(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=dn.editPromise;n&&n(e),dn.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(Wt(Ze(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=Ze(e);r&&this.dispatch(Wt(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=Ze(e);this.dispatch(Fe.remove(n)),ge(this.props.onSelect,this.selectedNodes)}selectMulti(e){const n=this.get(Ke(e));n&&(this.dispatch(Wt(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=Ze(e),{anchor:r,mostRecent:i}=this.state.nodes.selection;this.dispatch(Wt(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(Wt((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(Ze)),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&&j0(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(Xo.open(n,this.isFiltered)),ge(this.props.onToggle,n)))}close(e){const n=Ke(e);n&&this.isOpen(n)&&(this.dispatch(Xo.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=ql(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(){Zr(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Zr(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=Ze(e);return this.openParents(r),G0(()=>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===Xn)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!Fn(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!Fn(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(Wt(e.id))}onBlur(){this.dispatch(yb())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||b2}get renderRow(){return this.props.renderRow||pb}get renderNode(){return this.props.children||vb}get renderDragPreview(){return this.props.renderDragPreview||Z0}get renderCursor(){return this.props.renderCursor||hb}}function ye(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 j3=typeof Symbol=="function"&&Symbol.observable||"@@observable",Tu=j3,So=()=>Math.random().toString(36).substring(7).split("").join("."),H3={INIT:`@@redux/INIT${So()}`,REPLACE:`@@redux/REPLACE${So()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${So()}`},$t=H3;function C2(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 z3(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(U3(t))return"date";if(B3(t))return"error";const n=V3(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 V3(t){return typeof t.constructor=="function"?t.constructor.name:null}function B3(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function U3(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function lt(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=z3(t)),e}function S2(t,e,n){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?ye(2):`Expected the root reducer to be a function. Instead, received: '${lt(t)}'`);if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ye(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"?ye(1):`Expected the enhancer to be a function. Instead, received: '${lt(n)}'`);return n(S2)(t,e)}let r=t,i=e,o=new Map,l=o,a=0,s=!1;function u(){l===o&&(l=new Map,o.forEach((v,g)=>{l.set(g,v)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?ye(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?ye(4):`Expected the listener to be a function. Instead, received: '${lt(v)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?ye(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 g=!0;u();const C=a++;return l.set(C,v),function(){if(g){if(s)throw new Error(process.env.NODE_ENV==="production"?ye(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,u(),l.delete(C),o=null}}}function p(v){if(!C2(v))throw new Error(process.env.NODE_ENV==="production"?ye(7):`Actions must be plain objects. Instead, the actual type was: '${lt(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?ye(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?ye(17):`Action "type" property must be a string. Instead, the actual type was: '${lt(v.type)}'. Value was: '${v.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?ye(9):"Reducers may not dispatch actions.");try{s=!0,i=r(i,v)}finally{s=!1}return(o=l).forEach(C=>{C()}),v}function m(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?ye(10):`Expected the nextReducer to be a function. Instead, received: '${lt(v)}`);r=v,p({type:$t.REPLACE})}function b(){const v=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(process.env.NODE_ENV==="production"?ye(11):`Expected the observer to be an object. Instead, received: '${lt(g)}'`);function C(){const P=g;P.next&&P.next(d())}return C(),{unsubscribe:v(C)}},[Tu](){return this}}}return p({type:$t.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:m,[Tu]:b}}function _u(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function W3(t,e,n,r){const i=Object.keys(e),o=n&&n.type===$t.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!C2(t))return`The ${o} has unexpected type of "${lt(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===$t.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 G3(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:$t.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?ye(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:$t.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?ye(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${$t.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Iu(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"&&_u(`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{G3(n)}catch(l){o=l}return function(a={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=W3(a,n,s,i);f&&_u(f)}let u=!1;const d={};for(let f=0;f<r.length;f++){const p=r[f],m=n[p],b=a[p],h=m(b,s);if(typeof h>"u"){const v=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?ye(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[p]=h,u=u||h!==b}return u=u||r.length!==Object.keys(a).length,u?d:a}}function q3(t=mn().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 Y3=Iu({nodes:Iu({focus:Cb,edit:bb,open:Sb,selection:Eb,drag:q3}),dnd:wb}),Z3=mn();function X3({treeProps:t,imperativeHandle:e,children:n}){const r=c.useRef(null),i=c.useRef(null),o=c.useRef(S2(Y3,mn(t))),l=xl.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>Z3),a=c.useMemo(()=>new dn(o.current,t,r,i),[]),s=c.useRef(0);return c.useMemo(()=>{s.current+=1,a.update(t)},[...Object.values(t),l.nodes.open]),c.useImperativeHandle(e,()=>a),c.useEffect(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),c.useEffect(()=>{a.props.searchTerm||o.current.dispatch(Xo.clear(!0))},[a.props.searchTerm]),y.jsx(k0.Provider,{value:a,children:y.jsx(M0.Provider,{value:s.current,children:y.jsx(N0.Provider,{value:l.nodes,children:y.jsx(R0.Provider,{value:l.dnd,children:y.jsx(_9,Object.assign({backend:I3,options:{rootElement:a.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:n}))})})})})}function J3(){const t=_e(),[,e]=u2(()=>({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}=m2({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 Q3(t){return J3(),t.children}function e7(){const e=_e().props.renderContainer||b2;return y.jsx(y.Fragment,{children:y.jsx(e,{})})}function t7(){const t=_e(),{offset:e,mouse:n,item:r,isDragging:i}=t3(l=>({offset:l.getSourceClientOffset(),mouse:l.getClientOffset(),item:l.getItem(),isDragging:l.isDragging()})),o=t.props.renderDragPreview||Z0;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 n7{constructor(e){this.root=r7(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 r7(t){const e=new E2({id:"ROOT"},null);return e.children=t.map(n=>ta(n,e)),e}function ta(t,e){const n=new E2(t,e);return t.children&&(n.children=t.children.map(r=>ta(r,n))),n}class E2{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=ta(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 i7=0;function o7(t){const[e,n]=c.useState(t),r=c.useMemo(()=>new n7(e),[e]);return[e,{onMove:u=>{for(const d of u.dragIds)r.move({id:d,parentId:u.parentId,index:u.index});n(r.data)},onRename:({name:u,id:d})=>{r.update({id:d,changes:{name:u}}),n(r.data)},onCreate:({parentId:u,index:d,type:f})=>{const p={id:`simple-tree-id-${i7++}`,name:""};return f==="internal"&&(p.children=[]),r.create({parentId:u,index:d,data:p}),n(r.data),p},onDelete:u=>{u.ids.forEach(d=>r.drop({id:d})),n(r.data)}}]}function l7(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]=o7(t.initialData);return Object.assign(Object.assign(Object.assign({},t),n),{data:e})}else return t}function a7(t,e){const n=l7(t);return y.jsxs(X3,{treeProps:n,imperativeHandle:e,children:[y.jsx(Q3,{children:y.jsx(e7,{})}),y.jsx(t7,{})]})}const s7=c.forwardRef(a7),w2=({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 u7(t,e){var n=c.useRef(null),r=c.useRef(null);r.current=e;var i=c.useRef(null);c.useEffect(function(){o()});var o=c.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 c.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),c.useCallback(function(l){i.current=l,o()},[o])}function Ou(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 c7(t){t===void 0&&(t={});var e=t.onResize,n=c.useRef(void 0);n.current=e;var r=t.round||Math.round,i=c.useRef(),o=c.useState({width:void 0,height:void 0}),l=o[0],a=o[1],s=c.useRef(!1);c.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=c.useRef({width:void 0,height:void 0}),d=u7(c.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 m=p[0],b=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=Ou(m,b,"inlineSize"),v=Ou(m,b,"blockSize"),g=h?r(h):void 0,C=v?r(v):void 0;if(u.current.width!==g||u.current.height!==C){var S={width:g,height:C};u.current.width=g,u.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 c.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||{}),bt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(bt||{});const Qr=t=>t?t.nodeType===Le.SEPARATOR:!1,ei=t=>t?t.nodeType===Le.TITLE:!1,Kn=t=>!Qr(t)&&!ei(t),x2=(t,e,n)=>{const{remove:r,update:i,insert:o,insertBefore:l,insertAfter:a,append:s,prepend:u,getItem:d,move:f,items:p}=pg({initialItems:JSON.parse(JSON.stringify(t)),getKey:_=>_.id,getChildren:_=>_.children||[]}),[m,b]=c.useState(),h=(_=[])=>{const M=p.map(N=>N.key);r(...M);const T=JSON.parse(JSON.stringify(_));T.length>0&&o(null,0,...T),b(void 0)},v=_=>{const M=d(_);M&&b(M.value)},g=(_,M,T)=>{var N;if(_){const j=d(_);j&&o(_,T??((N=j.children)==null?void 0:N.length)??0,M)}else o(null,T??p.length,M)},C=_=>{var M;return(M=d(_))==null?void 0:M.value},S=(_,M)=>{var z;const T=d(_);if(!T){console.error("No item found");return}let N=((z=T.children)==null?void 0:z.map(U=>U.value))??null;const j=M.childrenCount??T.value.childrenCount??0;if((N==null?void 0:N.length)===0&&j>0&&(N=null),M.children&&(N=[...N??[],...M.children]),M.children){const U=new Set(M.children.map(G=>G.id));N=M.children.filter(G=>!U.has(G.id)),N=[...N??[],...M.children]}const K={...T.value,...M,children:N,childrenCount:(N==null?void 0:N.length)??j};i(_,K)},P=_=>{r(_)},$=_=>{r(..._)},w=async _=>{if(!e){console.error("No refresh callback provided");return}try{const M=await e(_);S(_,M)}catch(M){console.error("error while refreshing node:",M)}},x=(_,M)=>{o(null,M??p.length,_)},R=(_,M)=>{o(null,M??p.length,..._)},H=(_,M)=>{const T=d(_);if(!T){console.error("No item found");return}const N={...T.value,children:M,childrenCount:M.length,hasLoadedChildren:M.length>0};i(_,N)},F=_=>{const M=[],T=d(_);if(!T)return[];M.push(T.value);const N=j=>{const K=E(j);if(!K)return;const z=d(K);z&&(M.push(z.value),N(K))};return N(_),M.reverse()},E=_=>{var M;return((M=d(_))==null?void 0:M.parentKey)??null},L=_=>{const M=E(_);if(!M)return null;const T=d(M);return T?T.value:null},V=(_,M)=>{l(_,M)},A=(_,M)=>{a(_,M)},B=(_,M)=>{s(_,M)},I=(_,M)=>{u(_,M)},O=(_,M,T)=>{f(_,M,T)},k=_=>{O(_.sourceId,_.newParentId,_.index)},W=async _=>{if(!n)return[];const M=await n(_);return S(_,{children:M,hasLoadedChildren:!0,childrenCount:M.length}),M};return c.useEffect(()=>{const _=M=>{M.forEach(T=>{var N;if(T.children&&T.children.length>0){const j=T.value.hasLoadedChildren||((N=T.children)==null?void 0:N.length)>0||T.value.children&&T.value.children.length>0;T.value.children=T.children.map(z=>z.value);const K=j?T.children.length:T.value.childrenCount??0;T.value.childrenCount=K,j&&!T.value.hasLoadedChildren&&(T.value.hasLoadedChildren=!0),_(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}})};_(p)},[p]),{nodes:p,addChild:g,updateNode:S,deleteNode:P,deleteNodes:$,addRootNode:x,addRootNodes:R,selectedNode:m,setSelectedNode:b,refreshNode:w,setChildren:H,insertBeforeNode:V,insertAfterNode:A,handleMove:k,prependToNode:I,moveNode:O,appendToNode:B,move:f,resetTree:h,handleLoadChildren:W,selectNodeById:v,getParent:L,getNode:C,getParentId:E,getAncestors:F}},na=c.createContext(null),d7=({children:t,onRefresh:e,initialNodeId:n,onLoadChildren:r,initialTreeData:i})=>{const o=c.useRef(null),[l,a]=c.useState(null),[s,u]=c.useState(n??null),d=x2(i??[],e,r);return y.jsx(na.Provider,{value:{treeApiRef:o,treeData:d,root:l,initialTargetId:s,setInitialTargetId:u,setRoot:a},children:t})},ra=()=>{const t=c.useContext(na);if(!t)throw new Error("TreeContext not found");return t},f7=({initialOpenState:t,selectedNodeId:e,rootNodeId:n,renderNode:r,canDrop:i,canDrag:o,afterMove:l,beforeMove:a})=>{const[s,u]=c.useState(400),{ref:d,width:f}=c7(),p=ra(),m=(p==null?void 0:p.treeData.nodes)??[];c.useEffect(()=>{const g=document.querySelector(".c__tree-view"),C=g==null?void 0:g.firstElementChild;let S=null;return g&&C&&(S=new ResizeObserver(()=>{if(C&&C instanceof HTMLElement){const P=C.style.height;u(parseInt(P,10)+20)}}),S.observe(C)),()=>S==null?void 0:S.disconnect()},[]);const b=g=>{var k,W,_,M;const C=JSON.parse(JSON.stringify(m)),S=g.dragNodes[0],P=g.parentId?((k=g.parentNode)==null?void 0:k.data.children)??[]:C,$=g.dragNodes[0].data.value.id,w=g.dragNodes[0].data,x=(W=g.parentNode)==null?void 0:W.data;if((x==null?void 0:x.value.nodeType)===Le.TITLE||(x==null?void 0:x.value.nodeType)===Le.SEPARATOR)return null;const R=w.parentKey??n,H=g.parentId??n;let F=g.index+0,E=null,L=H;const V=((M=(_=S.parent)==null?void 0:_.children)==null?void 0:M.findIndex(T=>T.data.value.id===$))??0;if(R===H){if(V===F)return null;F=F<V?F:F-1}const A=g.index-1,B=P[A],I=g.index,O=P[I];return g.index===0?(L=g.parentId??n,E=bt.FIRST_CHILD):!x&&g.index===1&&!Kn(B.value)?(L=n,F=1,E=bt.FIRST_CHILD):g.index===P.length?(L=L??n,E=bt.LAST_CHILD):B&&Kn(B.value)?(L=B.value.id,E=bt.RIGHT):O&&Kn(O.value)&&(E=bt.LEFT,L=O.value.id),E&&L?{targetModeId:L,mode:E,oldParentId:R,index:F,newParentId:g.parentId,sourceId:$}:null},h=g=>{const C=b(g);C&&(a?a(C,()=>{p==null||p.treeData.handleMove(C),l==null||l(C)}):(p==null||p.treeData.handleMove(C),l==null||l(C)))},v=c.useCallback(g=>o?!o(g):!1,[o]);if(p)return y.jsx("div",{ref:d,style:{height:s},className:"c__tree-view--container",children:y.jsx(s7,{data:m,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:v,disableDrop:({parentNode:g,dragNodes:C,index:S})=>{var R,H;if(i&&!i({parentNode:g,dragNodes:C,index:S}))return g.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(g.data.value.canDrop=!1),!0;const P=C[0];if(P&&P.isDragging&&P.willReceiveDrop||((R=g.data.value)==null?void 0:R.nodeType)===Le.TITLE||((H=g.data.value)==null?void 0:H.nodeType)===Le.SEPARATOR)return!0;if(g.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const F=m[S-1],E=m[S],L=m[S+1],V=Qr(F==null?void 0:F.value),A=Qr(E==null?void 0:E.value),B=ei(F==null?void 0:F.value),I=ei(E==null?void 0:E.value),O=Kn(L==null?void 0:L.value);return!!(S===0&&(A||I)||V&&I&&O||B&&A&&O)}const $=g==null?void 0:g.isOpen,w=(g==null?void 0:g.data.value.childrenCount)&&g.data.value.childrenCount>0||(g==null?void 0:g.data.children)&&g.data.children.length>0;if(!w)return g.data.value.canDrop=!0,!1;let x=g.data.value.childrenCount&&g.data.value.childrenCount>0&&(g==null?void 0:g.data.children)&&g.data.children.length>0;return x=x??!0,!$&&!x&&w?(g.data.value.canDrop=!0,!0):(g.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:e,renderCursor:w2,renderRow:h7,rowClassName:"c__tree-view--row",children:r})})},h7=({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?c.createElement("div",{...e.attrs,key:e.node.id,style:o,ref:e.innerRef,onFocus:l=>l.stopPropagation(),onClick:e.node.handleClick},t):c.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}))},p7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$2=p7?c.useLayoutEffect:c.useEffect;function P2(t){const e=c.useRef(t);return $2(()=>{e.current=t}),c.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 ku(t,e){e===void 0&&(e=[t]);const n=c.useRef(t);return $2(()=>{n.current!==t&&(n.current=t)},e),n}function v7(t){const e=P2(t),n=c.useRef(null),r=c.useCallback(i=>{i!==n.current&&(e==null||e(i,n.current)),n.current=i},[]);return[n,r]}let Eo={};function g7(t,e){return c.useMemo(()=>{const n=Eo[t]==null?0:Eo[t]+1;return Eo[t]=n,t+"-"+n},[t,e])}var Hn;(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"})(Hn||(Hn={}));function Nu(){}const m7=Object.freeze({x:0,y:0});var rn;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(rn||(rn={}));var Ru;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(Ru||(Ru={}));var at;(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"})(at||(at={}));at.Space,at.Enter,at.Esc,at.Space,at.Enter,at.Tab;var Mu;(function(t){t[t.RightClick=2]="RightClick"})(Mu||(Mu={}));var Lu;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(Lu||(Lu={}));var Au;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(Au||(Au={}));rn.Backward+"",rn.Forward+"",rn.Backward+"",rn.Forward+"";var ll;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(ll||(ll={}));var al;(function(t){t.Optimized="optimized"})(al||(al={}));function b7(t){let{callback:e,disabled:n}=t;const r=P2(e),i=c.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return c.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}ll.WhileDragging,al.Optimized;const y7={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Nu,draggableNodes:new Map,over:null,measureDroppableContainers:Nu},C7=c.createContext(y7);({...m7});var Fu;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Fu||(Fu={}));const S7="Droppable",E7={timeout:25};function w7(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const o=g7(S7),{active:l,dispatch:a,over:s,measureDroppableContainers:u}=c.useContext(C7),d=c.useRef({disabled:n}),f=c.useRef(!1),p=c.useRef(null),m=c.useRef(null),{disabled:b,updateMeasurementsFor:h,timeout:v}={...E7,...i},g=ku(h??r),C=c.useCallback(()=>{if(!f.current){f.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),m.current=null},v)},[v]),S=b7({callback:C,disabled:b||!l}),P=c.useCallback((R,H)=>{S&&(H&&(S.unobserve(H),f.current=!1),R&&S.observe(R))},[S]),[$,w]=v7(P),x=ku(e);return c.useEffect(()=>{!S||!$.current||(S.disconnect(),f.current=!1,S.observe($.current))},[$,S]),c.useEffect(()=>(a({type:Hn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:$,rect:p,data:x}}),()=>a({type:Hn.UnregisterDroppable,key:o,id:r})),[r]),c.useEffect(()=>{n!==d.current.disabled&&(a({type:Hn.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 x7=t=>{const{isOver:e,setNodeRef:n}=w7({id:t.id,data:t.data});return c.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})},$7=({children:t,onClick:e,node:n,dragHandle:r,style:i,forceLoading:o})=>{var S,P;const l=ra(),a=c.useRef(null),[s,u]=c.useState(!1),[d,f]=c.useState(!1),p=o??s,m=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,v=n.isLeaf||!b,g=c.useCallback(async()=>{if(!v){if(h||n.data.value.hasLoadedChildren){n.toggle();return}u(!0),await(l==null?void 0:l.treeData.handleLoadChildren(n.data.value.id)),u(!1),n.open()}},[v,h,n,l==null?void 0:l.treeData]),C=c.useCallback($=>{$&&!n.isOpen&&!n.isDragging&&(a.current=setTimeout(()=>{g()},500)),a.current&&!$&&clearTimeout(a.current)},[g,n.isOpen,n.isDragging]);return c.useEffect(()=>{C(m)},[m,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(x7,{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:Pe("c__tree-view--node",{...n.state,canDrop:n.data.value.canDrop??!0,externalDrop:d}),children:[v&&y.jsx("div",{className:"c__tree-view--node__leaf"}),!v&&y.jsxs(y.Fragment,{children:[p&&y.jsx("div",{className:"c__tree-view--node__loading",children:y.jsx(zl,{})}),!p&&y.jsx("span",{onClick:$=>{$.stopPropagation(),g()},className:"c__tree-view--node__arrow material-icons",children:n.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})};var Re=(t=>(t.X_SMALL="xsmall",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large",t.X_LARGE="xlarge",t))(Re||{}),zn=(t=>(t.OUTLINED="outlined",t.FILLED="filled",t))(zn||{});const P7=({name:t,size:e,className:n,color:r,type:i=zn.FILLED,...o})=>{const l=Pe("",{[`icon--${e}`]:e!==void 0,[`material-icons-${i}`]:i!==zn.OUTLINED,"material-icons":i===zn.OUTLINED},n),a={color:r,fontSize:typeof e=="number"?`${e}px`:void 0};return y.jsx("span",{className:l,style:a,...o,children:t})},D2={[Re.X_SMALL]:11,[Re.SMALL]:16,[Re.MEDIUM]:24,[Re.LARGE]:32,[Re.X_LARGE]:40},T2={[Re.X_SMALL]:16,[Re.SMALL]:24,[Re.MEDIUM]:32,[Re.LARGE]:40,[Re.X_LARGE]:48},D7=t=>T2[t]??24,T7=t=>D2[t]??24,Oi=({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(tr,{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})},_2=({users:t,onRemoveUser:e,rightActions:n,onShare:r,shareButtonLabel:i,roles:o,selectedRole:l,onSelectRole:a})=>{const{t:s}=se.useCunningham(),[u,d]=c.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(I2,{user:f,onRemoveUser:e},f.id))}),y.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[n,y.jsx(Oi,{roles:o,selectedRole:l,onSelect:a,isOpen:u,onOpenChange:d}),y.jsx(se.Button,{onClick:r,children:i??s("components.share.shareButton")})]})]})},I2=({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(se.Button,{color:"tertiary-text",size:"nano",onClick:()=>e==null?void 0:e(t),icon:y.jsx("span",{className:"material-icons",children:"close"})})]}),Ku=["purple","blue","green","yellow","orange","red","brown","cyan","gold","olive","rose"],O2=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),k2=t=>{let e=0;for(let n=0;n<t.length;n++)e+=t.charCodeAt(n);return Ku[e%Ku.length]},N2=({fullName:t,size:e="medium",forceColor:n})=>{const r=O2(t),i=k2(t);return y.jsx("div",{style:{backgroundColor:n||void 0},className:Pe(`c__avatar ${e}`,{[i]:!n&&i}),children:y.jsx("div",{className:"c__avatar__initials",children:r})})},ki=({fullName:t,email:e,showEmail:n=!0})=>{const r=t&&t!==""?t:e??"";return y.jsxs("div",{className:"c__user-row",children:[y.jsx(N2,{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:Pe("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},sl=({user:t})=>{const{t:e}=se.useCunningham();return y.jsx($i,{left:y.jsx(ki,{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"})]})})},R2=({accessData:t,roles:e,updateRole:n,deleteAccess:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=se.useCunningham(),a=vn(),s=vn(),u=c.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(ki,{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(Oi,{roles:e,selectedRole:t.role,onSelect:f=>n==null?void 0:n(t,f),isOpen:a.isOpen,onOpenChange:a.setIsOpen,canUpdate:i,roleTopMessage:o}),u.length>0&&i&&y.jsx(tr,{options:u,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:y.jsx(se.Button,{color:"primary-text",onClick:d,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},M2=({invitation:t,roles:e,updateRole:n,deleteInvitation:r,canUpdate:i=!0,roleTopMessage:o})=>{const{t:l}=se.useCunningham(),a=vn(),s=vn(),u=[{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(ki,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:y.jsxs("div",{className:"c__share-member-item__right",children:[y.jsx(Oi,{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(tr,{options:u,isOpen:s.isOpen,onOpenChange:s.setIsOpen,children:y.jsx(se.Button,{color:"primary-text",onClick:d,size:"small",icon:y.jsx("span",{className:"material-icons toto",children:"more_horiz"})})})]})})})},_7=({searchUsersResult:t,children:e,outsideSearchContent:n,accesses:r=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:l=!0,hasNextInvitations:a=!1,...s})=>{const{t:u}=se.useCunningham(),{isMobile:d}=Sn(),f=c.useRef(null),[p,m]=c.useState("400px"),b=c.useRef(null),[h,v]=c.useState(""),[g,C]=c.useState(""),[S,P]=c.useState([]),[$,w]=c.useState(s.invitationRoles[0].value??""),x=d?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",R=O=>{if(f.current&&clearTimeout(f.current),O===""){C(""),s.onSearchUsers("");return}f.current=setTimeout(()=>{s.onSearchUsers(O),C(O)},300)},H=O=>{v(O),R(O)},F=g!==""||S.length>0,E=c.useCallback(O=>{P(k=>[...k,O]),v(""),C(""),s.onSearchUsers("")},[s]),L=O=>{P(k=>k.filter(W=>W.id!==O.id))},V=c.useMemo(()=>{const O=t==null?void 0:t.filter(N=>!S.includes(N));let k=u(g!==""?"components.share.user.no_result":"components.share.user.placeholder");const _=(N=>!!N.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,}))$/))(g??"")&&!(O!=null&&O.some(N=>N.email===g)),M={id:g,full_name:"",email:g};return _&&(k=void 0),{groupName:u("components.share.search.group_name"),elements:O??[],showWhenEmpty:!0,emptyString:k,endActions:_?[{content:y.jsx(sl,{user:M}),onSelect:()=>void E(M)}]:void 0}},[t,g,u,S,E]),A=O=>{var T;const W=(O==null?void 0:O.clientHeight)??0,_=((T=b.current)==null?void 0:T.clientHeight)??0,M=`calc(${x} - ${W}px - ${_}px - 70px - 10px)`;m(M)},B=!F&&!s.loading&&i.length>0,I=!F&&!s.loading&&r.length>0;return y.jsx(se.Modal,{title:s.modalTitle??u("components.share.modalTitle"),isOpen:s.isOpen,onClose:s.onClose,closeOnClickOutside:!0,size:d?se.ModalSize.FULL:se.ModalSize.LARGE,children:y.jsxs("div",{children:[l&&S.length>0&&y.jsx("div",{className:"c__share-modal__selected-users",ref:b,children:y.jsx(_2,{users:S,onRemoveUser:L,roles:s.invitationRoles,selectedRole:$,onSelectRole:w,onShare:()=>{s.onInviteUser(S,$),P([])}})}),y.jsx(I0,{onFilter:H,inputValue:h,showInput:l,loading:s.loading,placeholder:u("components.share.user.placeholder"),children:y.jsxs("div",{style:{height:p,overflowY:"auto"},children:[F&&y.jsx("div",{className:"c__share-modal__search-users",children:y.jsx(O0,{group:V,onSelect:O=>{E(O)},renderElement:O=>y.jsx(sl,{user:O})})}),!F&&e,B&&y.jsxs("div",{className:"c__share-modal__invitations",children:[y.jsx("span",{className:"c__share-modal__invitations-title",children:u("components.share.invitations.title")}),i.map(O=>{var k;return y.jsx(M2,{invitation:O,roles:s.invitationRoles,updateRole:s.onUpdateInvitation,deleteInvitation:s.onDeleteInvitation,canUpdate:l,roleTopMessage:(k=s.invitationRoleTopMessage)==null?void 0:k.call(s,O)},O.id)}),y.jsx(ju,{show:a,onShowMore:s.onLoadNextInvitations})]}),I&&y.jsxs("div",{className:"c__share-modal__members",children:[y.jsx("span",{className:"c__share-modal__members-title",children:u(r.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:r.length})}),r.map(O=>{var k,W;return y.jsx(R2,{accessData:O,canUpdate:l,roleTopMessage:(k=s.accessRoleTopMessage)==null?void 0:k.call(s,O),roles:((W=s.getAccessRoles)==null?void 0:W.call(s,O))??s.invitationRoles,updateRole:s.onUpdateAccess,deleteAccess:s.onDeleteAccess},O.id)}),y.jsx(ju,{show:o,onShowMore:s.onLoadNextMembers})]})]})}),y.jsx("div",{ref:A,children:!F&&y.jsx(y.Fragment,{children:n})})]})})},ju=({show:t,onShowMore:e})=>{const{t:n}=se.useCunningham();return t?y.jsx("div",{className:"c__share-modal__show-more-button",children:y.jsx(se.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},I7=({onCopyLink:t,onOk:e})=>{const{t:n}=se.useCunningham();return y.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[y.jsx(se.Button,{color:"tertiary",icon:y.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:n("components.share.copyLink")}),y.jsx(se.Button,{color:"primary",onClick:e,children:n("components.share.ok")})]})};exports.AccessRoleDropdown=Oi;exports.CunninghamProvider=X2;exports.CustomTabs=nb;exports.DropdownMenu=tr;exports.Filter=Xg;exports.Footer=Zg;exports.Header=wf;exports.Hero=Qg;exports.HomeGutter=e5;exports.HorizontalSeparator=Zo;exports.Icon=P7;exports.IconSize=Re;exports.IconType=zn;exports.InvitationUserSelectorItem=I2;exports.InvitationUserSelectorList=_2;exports.LaGaufre=d5;exports.Label=Gf;exports.LanguagePicker=Ef;exports.LeftPanel=xf;exports.MainLayout=B5;exports.ProConnectButton=Vu;exports.QuickSearch=I0;exports.QuickSearchGroup=O0;exports.QuickSearchInput=_0;exports.QuickSearchItem=Dr;exports.QuickSearchItemTemplate=$i;exports.SearchUserItem=sl;exports.ShareInvitationItem=M2;exports.ShareMemberItem=R2;exports.ShareModal=_7;exports.ShareModalCopyLinkFooter=I7;exports.Spinner=zl;exports.TreeApi=dn;exports.TreeContext=na;exports.TreeProvider=d7;exports.TreeView=f7;exports.TreeViewItem=$7;exports.TreeViewMoveModeEnum=bt;exports.TreeViewNodeTypeEnum=Le;exports.TreeViewSeparator=w2;exports.UserAvatar=N2;exports.UserRow=ki;exports.WithLabel=W5;exports.containerSizeMap=T2;exports.cunninghamConfig=Vo;exports.getContainerSize=D7;exports.getIconSize=T7;exports.getLocales=zu;exports.getUserColor=k2;exports.getUserInitials=O2;exports.headerHeight=U5;exports.iconSizeMap=D2;exports.isNode=Kn;exports.isSeparator=Qr;exports.isTitle=ei;exports.useDropdownMenu=vn;exports.useResponsive=Sn;exports.useTree=x2;exports.useTreeContext=ra;
102
99
  //# sourceMappingURL=index.cjs.map