@gouvfr-lasuite/ui-kit 0.19.9 → 0.19.10

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
@@ -19,7 +19,7 @@
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,P,Z,q,Z),L[Z+P]=!0)}if(Z=null,$!==void 0&&(r($),Z=""+$),a(R)&&(r(R.key),Z=""+R.key),"key"in R){$={};for(var Y in R)Y!=="key"&&($[Y]=R[Y])}else $=R;return Z&&l($,typeof M=="function"?M.displayName||M.name||"Unknown":M),c(M,Z,N,T,i(),$,j,V)}function f(M){typeof M=="object"&&M!==null&&M.$$typeof===g&&M._store&&(M._store.validated=1)}var p=u,g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),D=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,U=Array.isArray,k=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(M){return M()}};var W,_={},I=p.react_stack_bottom_frame.bind(p,o)(),z=k(n(o)),L={};$r.Fragment=h,$r.jsx=function(M,R,$,P,T){var N=1e4>D.recentlyCreatedOwnerStacks++;return d(M,R,$,!1,P,T,N?Error("react-stack-top-frame"):I,N?k(n(M)):z)},$r.jsxs=function(M,R,$,P,T){var N=1e4>D.recentlyCreatedOwnerStacks++;return d(M,R,$,!0,P,T,N?Error("react-stack-top-frame"):I,N?k(n(M)):z)}}()),$r}var Nl;function I1(){return Nl||(Nl=1,process.env.NODE_ENV==="production"?fn.exports=T1():fn.exports=k1()),fn.exports}var v=I1();const O1={share:{copyLink:"Copy link",ok:"OK",shareButton:"Share",modalTitle:"Share folder",modalAriaLabel:"Share modal",access:{delete:"Remove access"},cannot_view:{message:"You can view this item but you need additional access to view its members or modify the settings."},invitations:{title:"Pending invitations"},members:{title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},item:{add:"Add"},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search user"},linkSettings:{title:"Link settings",reach:{choices:{public:{title:"Public",description:"Anyone with the link can access the document"},authenticated:{title:"Authenticated",description:"Only authenticated users can access the document"},restricted:{title:"Private",description:"Only users of the space can access the document"}}},role:{choices:{reader:{title:"Reader"},editor:{title:"Editor"}}}}},laGaufre:{label:"Digital LaSuite services",closeLabel:"Close the menu",viewMoreLabel:"View more",viewLessLabel:"View less",loadingText:"Loading…",newWindowLabelSuffix:" (new window)",headerLabel:"About"},userMenu:{term_of_service:"Terms of service",manage_account:"Manage account",open:"Open user menu",close:"Close user menu",accountSettings:"Account settings",logout:"Logout",dialogTitle:"User menu"},treeView:{viewMore:"Load more elements"},footer:{logo:{alt:"Logo of the French government"}},onboarding:{skip:"Skip",next:"Next",previous:"Previous",complete:"Understood",stepLabel:"Step {current} of {total}: {title}",currentStepSuffix:" (current)",contentRegionLabel:"Step {current} of {total} content"}},N1={components:O1},M1={share:{copyLink:"Copier le lien",ok:"OK",modalTitle:"Partage",modalAriaLabel:"Modale de partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},cannot_view:{message:"Vous pouvez voir cet élément mais vous avez besoin d'un accès supplémentaire pour voir ses membres ou modifier les paramètres."},invitations:{title:"Invitations en attente"},members:{title_plural:"Partagé entre {count} personnes",title_singular:"Partagé entre {count} personne",load_more:"Afficher plus"},item:{add:"Ajouter"},search:{placeholder:"Rechercher un utilisateur",group_name:"Résultat de la recherche d'utilisateur"},user:{no_result:"Aucun résultat",placeholder:"Rechercher un utilisateur"},linkSettings:{title:"Paramètres du lien",reach:{choices:{public:{title:"Public",description:"N'importe qui avec le lien peut accéder au document"},restricted:{title:"Privé",description:"Seules les personnes avec accès peuvent l'ouvrir à l'aide du lien"},authenticated:{title:"Authenticated",description:"Seuls les utilisateurs authentifiés peuvent accéder au document"}}},role:{choices:{reader:{title:"Lecture seule"},editor:{title:"Édition"}}}}},laGaufre:{label:"Services de la Suite numérique",closeLabel:"Fermer le menu",loadingText:"Chargement…",viewMoreLabel:"Voir plus",viewLessLabel:"Voir moins",newWindowLabelSuffix:" (nouvelle fenêtre)",headerLabel:"À propos"},userMenu:{term_of_service:"Conditions d'utilisation",open:"Ouvrir le menu utilisateur",close:"Fermer le menu utilisateur",accountSettings:"Paramètres du compte",logout:"Déconnexion",dialogTitle:"Menu utilisateur",manage_account:"Gérer le compte"},treeView:{viewMore:"Charger plus d'éléments"},footer:{logo:{alt:"Logo du gouvernement français"}},onboarding:{skip:"Passer",next:"Suivant",previous:"Précédent",complete:"Compris",stepLabel:"Étape {current} sur {total} : {title}",currentStepSuffix:" (actuelle)",contentRegionLabel:"Contenu de l'étape {current} sur {total}"}},R1={components:M1};function Yi(t){return t&&typeof t=="object"&&!Array.isArray(t)}function gr(t,...e){if(!e.length)return t;const r=e.shift();if(Yi(t)&&Yi(r))for(const n in r)Yi(r[n])?(t[n]||Object.assign(t,{[n]:{}}),gr(t[n],r[n])):Object.assign(t,{[n]:r[n]});return gr(t,...e)}const xc={"en-US":gr(X.enUS,N1),"fr-FR":gr(X.frFR,R1)},B1=t=>v.jsx(X.CunninghamProvider,{customLocales:xc,...t}),L1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='192'%20height='48'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='m60.986%2021.454%201.156-1.076c.833%201.059%201.819%201.605%202.94%201.605%201.293%200%202.04-.82%202.04-1.912%200-2.56-5.626-2.253-5.626-6.059%200-1.74%201.428-3.209%203.45-3.209%201.684%200%202.908.768%203.792%201.946l-1.19%201.041c-.697-1.007-1.547-1.553-2.584-1.553-1.105%200-1.836.751-1.836%201.74%200%202.578%205.627%202.254%205.627%206.077%200%202.031-1.581%203.363-3.655%203.363-1.768%200-3.077-.666-4.114-1.963Zm10.817-5.735H70.46l1.445-4.574h1.649l-1.751%204.574Zm4.818-3.465c-.56%200-1.02-.46-1.02-1.024a1.026%201.026%200%200%201%201.02-1.007c.56%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.73%2010.838V14.49h1.444v8.602H75.89Zm3.767-4.3c0-2.51%201.717-4.643%204.403-4.643%201.24%200%202.26.46%203.043%201.297V10.29h1.445v12.801h-1.445v-.955c-.782.836-1.802%201.297-3.043%201.297-2.686%200-4.403-2.134-4.403-4.643Zm1.53%200c0%201.825%201.224%203.276%203.043%203.276%201.19%200%202.21-.58%202.873-1.604v-3.345c-.68-1.042-1.7-1.605-2.873-1.605-1.82%200-3.043%201.45-3.043%203.277Zm18.023%202.884c-.8%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921H92.36v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.07.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v.973c.697-.768%201.581-1.314%202.856-1.314%201.921%200%203.349%201.297%203.349%203.738v5.205h-1.462v-5.154c0-1.536-.85-2.424-2.176-2.424-1.241%200-2.023.717-2.567%201.622v5.956h-1.445Zm11.052-2.884V15.82h-1.615V14.49h1.615v-2.15h1.462v2.15h2.975v1.331h-2.975v4.387c0%201.348.68%201.724%201.717%201.724.561%200%20.952-.069%201.275-.205v1.297c-.408.17-.867.239-1.479.239-1.904%200-2.975-.956-2.975-3.055Zm7.377-7.954c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm3.377-8.602h1.615v-1.058c0-1.844%201.207-3.14%203.043-3.14.952%200%201.7.34%202.21.835l-.901%201.059a1.638%201.638%200%200%200-1.292-.58c-.935%200-1.598.682-1.598%201.792v1.092h2.975v1.331h-2.975v7.271h-1.462v-7.27h-1.615V14.49Zm8.543-2.236c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm12.115-1.416c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v1.075c.629-.75%201.411-1.246%202.499-1.246.272%200%20.527.034.731.103v1.502a3.1%203.1%200%200%200-.85-.12c-1.122%200-1.853.58-2.38%201.451v5.837h-1.445Zm13.685.342c-1.683%200-2.822-.956-2.822-2.458%200-1.331.986-2.287%202.822-2.577l2.873-.478v-.598c0-1.195-.85-1.877-2.057-1.877-1.003%200-1.836.444-2.329%201.195l-1.088-.837c.748-1.024%201.955-1.655%203.451-1.655%202.176%200%203.468%201.28%203.468%203.174v5.77h-1.445V22c-.646.905-1.717%201.434-2.873%201.434Zm-1.377-2.51c0%20.735.629%201.298%201.615%201.298%201.139%200%202.04-.598%202.635-1.588v-1.638l-2.533.444c-1.19.188-1.717.734-1.717%201.485Zm7.252-6.434h1.564l2.737%207.083%202.737-7.083h1.564l-3.349%208.602h-1.904l-3.349-8.602Zm17.856%207.186c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm10.185%206.673a2.891%202.891%200%200%200%202.431-1.28l1.156.888c-.799%201.075-2.04%201.758-3.604%201.758-2.839%200-4.658-2.134-4.658-4.643s1.819-4.642%204.658-4.642c1.547%200%202.805.7%203.604%201.758l-1.156.887a2.917%202.917%200%200%200-2.448-1.28c-1.836%200-3.145%201.45-3.145%203.277%200%201.843%201.309%203.277%203.162%203.277ZM61.854%2040.161V27.51h4.158c2.772%200%204.464%201.428%204.464%203.777%200%202.331-1.692%203.76-4.464%203.76H64.41v5.114h-2.556Zm4.266-10.464h-1.71v3.162h1.71c1.08%200%201.728-.578%201.728-1.608%200-.958-.648-1.554-1.728-1.554Zm6.129%2010.464v-9.109h2.286v.904c.594-.615%201.368-1.084%202.394-1.084.306%200%20.576.054.792.126v2.404a3.922%203.922%200%200%200-1.008-.127c-1.116%200-1.836.614-2.178%201.175v5.71h-2.286Zm11.386-9.47c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm13.172-.235c1.44%200%202.574-.704%203.294-1.735l2.016%201.555c-1.152%201.572-3.024%202.584-5.31%202.584-3.978%200-6.696-3.072-6.696-6.687%200-3.614%202.718-6.686%206.696-6.686%202.286%200%204.158%201.03%205.31%202.566l-2.016%201.572c-.72-1.03-1.854-1.735-3.294-1.735-2.376%200-4.068%201.862-4.068%204.283%200%202.422%201.692%204.283%204.068%204.283Zm11.366-7.427c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm7.018%201.808v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm11.091%200v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm19.444-1.482c-.846%201.138-2.25%201.843-3.96%201.843-3.222%200-5.04-2.259-5.04-4.916%200-2.692%201.692-4.915%204.662-4.915%202.52%200%204.176%201.698%204.176%204.084%200%20.506-.072.994-.144%201.301h-6.354c.144%201.5%201.188%202.386%202.736%202.386.99%200%201.8-.434%202.286-1.085l1.638%201.302Zm-4.338-6.073c-1.116%200-1.872.543-2.178%201.735h4.086c-.036-.903-.702-1.735-1.908-1.735Zm10.696%205.747c.882%200%201.584-.433%202.016-1.066l1.818%201.392c-.846%201.12-2.178%201.843-3.834%201.843-3.132%200-5.004-2.259-5.004-4.916%200-2.656%201.872-4.915%205.004-4.915%201.656%200%202.988.723%203.834%201.843l-1.818%201.392c-.432-.633-1.116-1.067-2.052-1.067-1.494%200-2.592%201.157-2.592%202.747%200%201.609%201.098%202.747%202.628%202.747Zm6.204-1.518V33.15h-1.692v-2.097h1.692v-2.277h2.304v2.277h2.772v2.097h-2.772v3.686c0%201.012.54%201.41%201.44%201.41.63%200%201.044-.072%201.35-.199v2.006c-.45.199-.99.29-1.746.29-2.268%200-3.348-1.284-3.348-3.507Z'/%3e%3cpath%20fill='%23000091'%20d='M37.992%2014.155%2022.998%205.442%208.004%2014.237a.607.607%200%200%200-.306.527V31.78a.67.67%200%200%200%20.306.526l14.992%208.635L37.99%2032.2a.667.667%200%200%200%20.306-.526v-16.99a.608.608%200%200%200-.304-.53Z'/%3e%3cpath%20fill='%23FCC63A'%20d='m17.641%2014.656-5.029%208.663-4.557-9.212%205.39-3.125%204.49%203.173-.294.502Zm20.656%2017.049V14.679a.604.604%200%200%200-.306-.526L22.998%205.442'/%3e%3cpath%20fill='%230063CB'%20d='M7.7%2031.705%2023%205.442v35.504l-14.996-8.64a.667.667%200%200%201-.306-.526V14.765l.002%2016.94Zm24.67-20.819%205.457%203.168-4.489%209.187-5.387-9.273%204.418-3.083v.001Z'/%3e%3cpath%20fill='%23fff'%20d='M42.606%2011.348%2023.416.284a.93.93%200%200%200-.832%200L3.394%2011.348a.89.89%200%200%200-.394.698v22.088a.891.891%200%200%200%20.394.703l19.189%2011.064a.929.929%200%200%200%20.832%200l19.191-11.064a.888.888%200%200%200%20.394-.703V12.046a.893.893%200%200%200-.394-.698ZM13.789%2029.176h.079c-.042%200-.079.007-.079.05%200%20.1.151%200%20.2.1a.91.91%200%200%200-.629.277c0%20.05.1.05.151.05-.075.1-.226.05-.277.153a.176.176%200%200%200%20.1.05c-.05%200-.1%200-.1.05v.153c-.126%200-.176.1-.277.15.2.153.327%200%20.528%200-.528.201-.956.482-1.484.633-.1%200%200%20.15-.1.15.151.101.227-.05.377-.05-.654.38-1.333.703-2.037%201.138a.353.353%200%200%200-.1.201h-.2c-.1.05-.05.177-.151.278.226.15.5-.2.654%200%20.05%200-.1.05-.2.05-.05%200-.05.1-.1.1H9.99c-.1.076-.2.127-.2.278a.22.22%200%200%200-.226.1%209%209%200%200%200%203.144-.58%207.687%207.687%200%200%200%202.088-1.566.177.177%200%200%201%20.05.1c-.147.439-.43.82-.806%201.084-.277.153-.478.38-.7.481a4.05%204.05%200%200%200-.428.277c-.632.198-1.281.337-1.939.414l-.305.044c-.225.033-.449.07-.671.109l-1.993-1.143a.648.648%200%200%201-.288-.413.568.568%200%200%200%20.094-.063.267.267%200%200%200-.113-.071v-.653a12.74%2012.74%200%200%200%203.038-.945%208.731%208.731%200%200%200-3.037-1.349v-1.52c.555.09%201.103.222%201.639.393a6.41%206.41%200%200%201%201.182.58c.147.14.307.268.478.379a.908.908%200%200%200%20.8.05h.33a3.954%203.954%200%200%200%201.937-.909c0%20.05.05.05.1.05-.078.4-.223.785-.428%201.137.003.05-.048.152.053.203Zm2.817%203.584c.251-.1.4-.277.629-.378-.05.05-.05.151-.1.201a3.71%203.71%200%200%200-.528.402%2016%2016%200%200%200-1.585%201.616c-.252.302-.528.58-.8.859-.096.09-.2.172-.31.246l-2.527-1.456c.36.03.721.013%201.076-.053.294-.084.58-.193.855-.329v.1c.7-.277%201.232-.909%201.937-1.136.025%200%20.126.1.226.05a1.885%201.885%200%200%201%201.509-.702c0%20.05%200%20.1.05.1h.025c-.151.127-.327.251-.5.378-.057.053-.007.102.043.102Zm-8.908-6.188v-.187a5.795%205.795%200%200%201%201.588-.188c.158-.026.32-.026.478%200a5.84%205.84%200%200%200-2.066.375Zm30.6%205.109a.67.67%200%200%201-.306.526L27.913%2038.08a32.214%2032.214%200%200%201-3.408-1.189%202.847%202.847%200%200%201-.05-2.254c.08-.309.198-.607.352-.886.025-.025.05-.05.05-.076a.025.025%200%200%200%20.025-.025%204.33%204.33%200%200%201%20.377-.558l.015-.015.02-.02.015-.016c0-.025.025-.05.05-.076.025-.052.075-.077.1-.127a3.78%203.78%200%200%201%20.579-.502c.213-.077.431-.136.654-.178.811.06%201.617.171%202.415.33a.753.753%200%200%201%20.277.1c.301.06.612.041.905-.05a1.135%201.135%200%200%200%20.855-.709%201.22%201.22%200%200%200%20.05-1.064c-.178-.276-.013-.438.181-.592l.068-.055c.086-.06.164-.134.231-.216.126-.254-.1-.402-.151-.633-.05-.1-.226-.05-.327-.2.352-.152.855-.433.629-.861-.151-.228-.377-.633-.1-.86.352-.201.855-.152%201.006-.483a1.146%201.146%200%200%200-.292-1.088l-.075-.108a4.776%204.776%200%200%201-.211-.322%206.934%206.934%200%200%200-.528-.76%204.32%204.32%200%200%201-.528-1.014c-.151-.378.05-.708.05-1.087a6.397%206.397%200%200%200-.327-2.153c-.126-.354-.176-.734-.327-1.064a1.127%201.127%200%200%200-.226-.582.376.376%200%200%201%200-.329c.205-.145.399-.306.579-.482a.571.571%200%200%200-.2-.707c-.327-.152-.3.329-.528.43h-.151c-.05-.126.05-.177.151-.278%200-.05%200-.151-.05-.151-.2%200-.377-.052-.428-.152a3.956%203.956%200%200%200-1.861-1.291c.188.058.382.091.579.1.338.072.69.036%201.006-.1.227-.077.277-.482.377-.709a.806.806%200%200%200-.151-.634%202.192%202.192%200%200%200-.906-.759%209.094%209.094%200%200%201-.679-.354.952.952%200%200%200-.251-.127c-2.965-1.49-9.069-.2-9.534%200h-.009a8.23%208.23%200%200%200-1.249.477%203.92%203.92%200%200%200-2.365%202.475%203.84%203.84%200%200%200-1.333%201.515c-.428.804-1.056%201.515-.956%202.424.1.783.277%201.49.428%202.298.043.273.11.542.2.803.1.278%200%20.632.151.859.075.15.025.328.227.43v.2c.05.05.05.1.151.1v.202c.435.424.807.91%201.107%201.44.1.276-.478.15-.7.05a5.983%205.983%200%200%201-1.132-.96.177.177%200%200%200-.051.1c.2.354.906.783.528%201.01-.2.1-.428-.151-.629.05-.05.077%200%20.178%200%20.278-.277-.2-.578-.1-.855-.2-.2-.05-.252-.429-.478-.429a15.135%2015.135%200%200%200-1.811-.328%2015.1%2015.1%200%200%200-1.739-.161V14.766a.61.61%200%200%201%20.306-.526l14.987-8.796%2014.994%208.712a.606.606%200%200%201%20.306.526V31.68Zm-7.954-8.295a.325.325%200%200%201-.282.15c-.1.085-.194.176-.282.274.1%200%200%20.15.1.15-.205.224.077.697-.205.796-.37.1-.758.1-1.127%200a.721.721%200%200%201%20.167-.016h.085a.38.38%200%200%200%20.337-.133v-.2c0-.05-.051-.05-.1-.05a.16.16%200%200%201-.1.05.225.225%200%200%200-.154-.201.804.804%200%200%201-.718-.274.668.668%200%200%201%20.436-.05c.128%200%20.077-.225.231-.324h.154c.307-.373.871-.473.974-.846%200-.1-.282-.1-.487-.15a2.253%202.253%200%200%200-.82.05c-.36.05-.712.142-1.051.274.28-.206.592-.366.923-.472.232-.09.473-.158.718-.201l.132-.026.133-.027a.968.968%200%200%201%20.556%200c.231.1.615.1.666.248.1.275-.154.548-.435.747-.057.08.149.136.149.231Z'/%3e%3cpath%20fill='%23FCC63A'%20d='M55.56%200H30c-1.105%200-2%20.899-2%202.008v9.34c0%201.108.895%202.007%202%202.007h25.56c1.105%200%202-.899%202-2.008V2.008a2.004%202.004%200%200%200-2-2.008Z'/%3e%3cpath%20fill='%23161616'%20d='M30.562%2011.213V2.325h2.921c.97%200%201.732.237%202.289.711.565.474.847%201.122.847%201.943%200%20.813-.282%201.456-.847%201.93-.557.474-1.32.71-2.289.71h-1.125v3.594h-1.796Zm2.997-7.351h-1.201v2.221h1.2c.38%200%20.675-.097.886-.29.22-.197.329-.476.329-.84%200-.338-.11-.605-.329-.8-.21-.194-.506-.291-.885-.291Zm4.671%207.35V2.326h2.707c.97%200%201.736.237%202.301.711.565.474.847%201.122.847%201.943%200%20.532-.126.999-.379%201.396a2.4%202.4%200%200%201-1.037.902l2.782%203.936h-2.15L40.949%207.62h-.923v3.593H38.23Zm2.808-7.35h-1.012v2.221h1.012c.38%200%20.674-.097.885-.29.21-.197.316-.476.316-.84%200-.338-.105-.605-.316-.8-.21-.194-.506-.291-.885-.291Zm9.511-1.79c.69%200%201.323.126%201.896.38.582.254%201.08.593%201.492%201.016.414.423.734.923.962%201.498a4.81%204.81%200%200%201%20.341%201.803c0%20.635-.114%201.24-.341%201.815a4.504%204.504%200%200%201-.962%201.486%204.67%204.67%200%200%201-1.492%201.015c-.598.26-1.244.39-1.896.382a4.721%204.721%200%200%201-3.402-1.397%204.504%204.504%200%200%201-.961-1.486%204.892%204.892%200%200%201-.342-1.815c0-.635.114-1.236.342-1.803a4.473%204.473%200%200%201%20.961-1.498%204.72%204.72%200%200%201%203.402-1.397Zm0%207.706a2.79%202.79%200%200%200%201.138-.229c.354-.16.653-.371.898-.634.252-.271.45-.589.594-.953.145-.38.218-.785.215-1.193a3.193%203.193%200%200%200-.215-1.18%202.805%202.805%200%200%200-.595-.953A2.547%202.547%200%200%200%2051.687%204a2.664%202.664%200%200%200-1.138-.24c-.413%200-.797.08-1.151.24a2.678%202.678%200%200%200-.91.635c-.254.276-.451.6-.582.952a3.193%203.193%200%200%200-.215%201.181c0%20.423.071.82.215%201.193.143.364.337.682.581.953.253.262.557.474.91.634.355.153.739.23%201.152.23Z'/%3e%3c/svg%3e",j1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='190'%20height='48'%20fill='none'%3e%3cpath%20fill='%23929292'%20d='m57.986%2021.454%201.156-1.076c.833%201.059%201.819%201.605%202.94%201.605%201.293%200%202.04-.82%202.04-1.912%200-2.56-5.626-2.253-5.626-6.059%200-1.74%201.428-3.209%203.45-3.209%201.684%200%202.908.768%203.792%201.946l-1.19%201.041c-.697-1.007-1.547-1.553-2.584-1.553-1.105%200-1.836.751-1.836%201.74%200%202.578%205.627%202.254%205.627%206.077%200%202.031-1.581%203.363-3.655%203.363-1.768%200-3.077-.666-4.114-1.963Zm10.817-5.735H67.46l1.445-4.574h1.649l-1.751%204.574Zm4.818-3.465c-.56%200-1.02-.46-1.02-1.024a1.026%201.026%200%200%201%201.02-1.007c.56%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.73%2010.838V14.49h1.444v8.602H72.89Zm3.767-4.3c0-2.51%201.717-4.643%204.403-4.643%201.24%200%202.26.46%203.043%201.297V10.29h1.445v12.801h-1.445v-.955c-.782.836-1.802%201.297-3.043%201.297-2.686%200-4.403-2.134-4.403-4.643Zm1.53%200c0%201.825%201.224%203.276%203.043%203.276%201.19%200%202.21-.58%202.873-1.604v-3.345c-.68-1.042-1.7-1.605-2.873-1.605-1.82%200-3.043%201.45-3.043%203.277Zm18.023%202.884c-.8%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921H89.36v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.07.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v.973c.697-.768%201.581-1.314%202.856-1.314%201.921%200%203.349%201.297%203.349%203.738v5.205h-1.462v-5.154c0-1.536-.85-2.424-2.176-2.424-1.241%200-2.023.717-2.567%201.622v5.956h-1.445Zm11.052-2.884V15.82h-1.615V14.49h1.615v-2.15h1.462v2.15h2.975v1.331h-2.975v4.387c0%201.348.68%201.724%201.717%201.724.561%200%20.952-.069%201.275-.205v1.297c-.408.17-.867.239-1.479.239-1.904%200-2.975-.956-2.975-3.055Zm7.377-7.954c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm3.377-8.602h1.615v-1.058c0-1.844%201.207-3.14%203.043-3.14.952%200%201.7.34%202.21.835l-.901%201.059a1.638%201.638%200%200%200-1.292-.58c-.935%200-1.598.682-1.598%201.792v1.092h2.975v1.331h-2.975v7.271h-1.462v-7.27h-1.615V14.49Zm8.543-2.236c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm12.115-1.416c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v1.075c.629-.75%201.411-1.246%202.499-1.246.272%200%20.527.034.731.103v1.502a3.1%203.1%200%200%200-.85-.12c-1.122%200-1.853.58-2.38%201.451v5.837h-1.445Zm13.685.342c-1.683%200-2.822-.956-2.822-2.458%200-1.331.986-2.287%202.822-2.577l2.873-.478v-.598c0-1.195-.85-1.877-2.057-1.877-1.003%200-1.836.444-2.329%201.195l-1.088-.837c.748-1.024%201.955-1.655%203.451-1.655%202.176%200%203.468%201.28%203.468%203.174v5.77h-1.445V22c-.646.905-1.717%201.434-2.873%201.434Zm-1.377-2.51c0%20.735.629%201.298%201.615%201.298%201.139%200%202.04-.598%202.635-1.588v-1.638l-2.533.444c-1.19.188-1.717.734-1.717%201.485Zm7.252-6.434h1.564l2.737%207.083%202.737-7.083h1.564l-3.349%208.602h-1.904l-3.349-8.602Zm17.856%207.186c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm10.185%206.673a2.891%202.891%200%200%200%202.431-1.28l1.156.888c-.799%201.075-2.04%201.758-3.604%201.758-2.839%200-4.658-2.134-4.658-4.643s1.819-4.642%204.658-4.642c1.547%200%202.805.7%203.604%201.758l-1.156.887a2.917%202.917%200%200%200-2.448-1.28c-1.836%200-3.145%201.45-3.145%203.277%200%201.843%201.309%203.277%203.162%203.277ZM58.854%2040.161V27.51h4.158c2.772%200%204.464%201.428%204.464%203.777%200%202.331-1.692%203.76-4.464%203.76H61.41v5.114h-2.556Zm4.266-10.464h-1.71v3.162h1.71c1.08%200%201.728-.578%201.728-1.608%200-.958-.648-1.554-1.728-1.554Zm6.129%2010.464v-9.109h2.286v.904c.594-.615%201.368-1.084%202.394-1.084.306%200%20.576.054.792.126v2.404a3.922%203.922%200%200%200-1.008-.127c-1.116%200-1.836.614-2.178%201.175v5.71h-2.286Zm11.386-9.47c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm13.172-.235c1.44%200%202.574-.704%203.294-1.735l2.016%201.555c-1.152%201.572-3.024%202.584-5.31%202.584-3.978%200-6.696-3.072-6.696-6.687%200-3.614%202.718-6.686%206.696-6.686%202.286%200%204.158%201.03%205.31%202.566l-2.016%201.572c-.72-1.03-1.854-1.735-3.294-1.735-2.376%200-4.068%201.862-4.068%204.283%200%202.422%201.692%204.283%204.068%204.283Zm11.366-7.427c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm7.018%201.808v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm11.091%200v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm19.444-1.482c-.846%201.138-2.25%201.843-3.96%201.843-3.222%200-5.04-2.259-5.04-4.916%200-2.692%201.692-4.915%204.662-4.915%202.52%200%204.176%201.698%204.176%204.084%200%20.506-.072.994-.144%201.301h-6.354c.144%201.5%201.188%202.386%202.736%202.386.99%200%201.8-.434%202.286-1.085l1.638%201.302Zm-4.338-6.073c-1.116%200-1.872.543-2.178%201.735h4.086c-.036-.903-.702-1.735-1.908-1.735Zm10.696%205.747c.882%200%201.584-.433%202.016-1.066l1.818%201.392c-.846%201.12-2.178%201.843-3.834%201.843-3.132%200-5.004-2.259-5.004-4.916%200-2.656%201.872-4.915%205.004-4.915%201.656%200%202.988.723%203.834%201.843l-1.818%201.392c-.432-.633-1.116-1.067-2.052-1.067-1.494%200-2.592%201.157-2.592%202.747%200%201.609%201.098%202.747%202.628%202.747Zm6.204-1.518V33.15h-1.692v-2.097h1.692v-2.277h2.304v2.277h2.772v2.097h-2.772v3.686c0%201.012.54%201.41%201.44%201.41.63%200%201.044-.072%201.35-.199v2.006c-.45.199-.99.29-1.746.29-2.268%200-3.348-1.284-3.348-3.507Z'/%3e%3cpath%20fill='%237C7C7C'%20d='M34.992%2014.155%2019.998%205.442%205.004%2014.237a.607.607%200%200%200-.306.527V31.78a.67.67%200%200%200%20.306.526l14.992%208.635L34.99%2032.2a.667.667%200%200%200%20.306-.526v-16.99a.608.608%200%200%200-.304-.53Z'/%3e%3cpath%20fill='%23F6F6F6'%20d='M14.641%2014.656%209.612%2023.32l-4.557-9.212%205.39-3.125%204.49%203.173-.294.502Zm20.656%2017.049V14.679a.604.604%200%200%200-.306-.526L19.998%205.442'/%3e%3cpath%20fill='%23929292'%20d='M4.7%2031.705%2020%205.442v35.504l-14.996-8.64a.667.667%200%200%201-.306-.526V14.765l.002%2016.94Zm24.67-20.819%205.457%203.168-4.489%209.187-5.387-9.273%204.418-3.083v.001Z'/%3e%3cpath%20fill='%23CECECE'%20d='M39.606%2011.348%2020.416.284a.93.93%200%200%200-.832%200L.394%2011.348a.89.89%200%200%200-.394.698v22.088a.891.891%200%200%200%20.394.703l19.189%2011.064a.929.929%200%200%200%20.832%200l19.191-11.064a.888.888%200%200%200%20.394-.703V12.046a.893.893%200%200%200-.394-.698ZM10.789%2029.176h.079c-.042%200-.079.007-.079.05%200%20.1.151%200%20.2.1a.91.91%200%200%200-.629.277c0%20.05.1.05.151.05-.075.1-.226.05-.277.153a.176.176%200%200%200%20.1.05c-.05%200-.1%200-.1.05v.153c-.126%200-.176.1-.277.15.2.153.327%200%20.528%200-.528.201-.956.482-1.484.633-.1%200%200%20.15-.1.15.151.101.227-.05.377-.05-.654.38-1.333.703-2.037%201.138a.353.353%200%200%200-.1.201h-.2c-.1.05-.05.177-.151.278.226.15.5-.2.654%200%20.05%200-.1.05-.2.05-.05%200-.05.1-.1.1H6.99c-.1.076-.2.127-.2.278a.22.22%200%200%200-.226.1%209%209%200%200%200%203.144-.58%207.687%207.687%200%200%200%202.088-1.566.177.177%200%200%201%20.05.1c-.147.439-.43.82-.806%201.084-.277.153-.478.38-.7.481a4.05%204.05%200%200%200-.428.277c-.632.198-1.281.337-1.939.414l-.305.044c-.225.033-.449.07-.671.109l-1.993-1.143a.648.648%200%200%201-.288-.413.568.568%200%200%200%20.094-.063.267.267%200%200%200-.113-.071v-.653a12.74%2012.74%200%200%200%203.038-.945%208.731%208.731%200%200%200-3.037-1.349v-1.52c.555.09%201.103.222%201.639.393.413.152.809.346%201.182.58.147.14.307.268.478.379a.908.908%200%200%200%20.8.05h.33a3.954%203.954%200%200%200%201.937-.909c0%20.05.05.05.1.05-.078.4-.223.785-.428%201.137.003.05-.048.152.053.203Zm2.817%203.584c.251-.1.4-.277.629-.378-.05.05-.05.151-.1.201a3.71%203.71%200%200%200-.528.402%2016%2016%200%200%200-1.585%201.616c-.252.302-.528.58-.8.859-.096.09-.2.172-.31.246L8.385%2034.25c.36.03.721.013%201.076-.053.294-.084.58-.193.855-.329v.1c.7-.277%201.232-.909%201.937-1.136.025%200%20.126.1.226.05a1.885%201.885%200%200%201%201.509-.702c0%20.05%200%20.1.05.1h.025c-.151.127-.327.251-.5.378-.057.053-.007.102.043.102Zm-8.908-6.188v-.187a5.795%205.795%200%200%201%201.588-.188c.158-.026.32-.026.478%200a5.84%205.84%200%200%200-2.066.375Zm30.6%205.109a.67.67%200%200%201-.306.526L24.913%2038.08a32.214%2032.214%200%200%201-3.408-1.189%202.847%202.847%200%200%201-.05-2.254c.08-.309.198-.607.352-.886.025-.025.05-.05.05-.076a.025.025%200%200%200%20.025-.025%204.33%204.33%200%200%201%20.377-.558l.015-.015.02-.02.015-.016c0-.025.025-.05.05-.076.025-.052.075-.077.1-.127a3.78%203.78%200%200%201%20.579-.502c.213-.077.431-.136.654-.178.811.06%201.617.171%202.415.33a.753.753%200%200%201%20.277.1c.301.06.612.041.905-.05a1.135%201.135%200%200%200%20.855-.709%201.22%201.22%200%200%200%20.05-1.064c-.178-.276-.013-.438.181-.592l.068-.055c.086-.06.164-.134.231-.216.126-.254-.1-.402-.151-.633-.05-.1-.226-.05-.327-.2.352-.152.855-.433.629-.861-.151-.228-.377-.633-.1-.86.352-.201.855-.152%201.006-.483a1.146%201.146%200%200%200-.292-1.088l-.075-.108a4.776%204.776%200%200%201-.211-.322%206.934%206.934%200%200%200-.528-.76%204.32%204.32%200%200%201-.528-1.014c-.151-.378.05-.708.05-1.087a6.397%206.397%200%200%200-.327-2.153c-.126-.354-.176-.734-.327-1.064a1.127%201.127%200%200%200-.226-.582.376.376%200%200%201%200-.329c.205-.145.399-.306.579-.482a.571.571%200%200%200-.2-.707c-.327-.152-.3.329-.528.43h-.151c-.05-.126.05-.177.151-.278%200-.05%200-.151-.05-.151-.2%200-.377-.052-.428-.152a3.956%203.956%200%200%200-1.861-1.291c.188.058.382.091.579.1.338.072.69.036%201.006-.1.227-.077.277-.482.377-.709a.806.806%200%200%200-.151-.634%202.192%202.192%200%200%200-.906-.759%209.094%209.094%200%200%201-.679-.354.952.952%200%200%200-.251-.127c-2.965-1.49-9.069-.2-9.534%200h-.009a8.23%208.23%200%200%200-1.249.477%203.92%203.92%200%200%200-2.365%202.475%203.84%203.84%200%200%200-1.333%201.515c-.428.804-1.056%201.515-.956%202.424.1.783.277%201.49.428%202.298.043.273.11.542.2.803.1.278%200%20.632.151.859.075.15.025.328.227.43v.2c.05.05.05.1.151.1v.202c.435.424.807.91%201.107%201.44.1.276-.478.15-.7.05a5.983%205.983%200%200%201-1.132-.96.177.177%200%200%200-.051.1c.2.354.906.783.528%201.01-.2.1-.428-.151-.629.05-.05.077%200%20.178%200%20.278-.277-.2-.578-.1-.855-.2-.2-.05-.252-.429-.478-.429a15.135%2015.135%200%200%200-1.811-.328%2015.1%2015.1%200%200%200-1.739-.161V14.766a.61.61%200%200%201%20.306-.526l14.987-8.796%2014.994%208.712a.606.606%200%200%201%20.306.526V31.68Zm-7.954-8.295a.325.325%200%200%201-.282.15c-.1.085-.194.176-.282.274.1%200%200%20.15.1.15-.205.224.077.697-.205.796-.37.1-.758.1-1.127%200a.721.721%200%200%201%20.167-.016h.085a.38.38%200%200%200%20.337-.133v-.2c0-.05-.051-.05-.1-.05a.16.16%200%200%201-.1.05.225.225%200%200%200-.154-.201.804.804%200%200%201-.718-.274.668.668%200%200%201%20.436-.05c.128%200%20.077-.225.231-.324h.154c.307-.373.871-.473.974-.846%200-.1-.282-.1-.487-.15a2.253%202.253%200%200%200-.82.05c-.36.05-.712.142-1.051.274.28-.206.592-.366.923-.472.232-.09.473-.158.718-.201l.132-.026.133-.027a.968.968%200%200%201%20.556%200c.231.1.615.1.666.248.1.275-.154.548-.435.747-.057.08.149.136.149.231Z'/%3e%3cpath%20fill='%23DDD'%20d='M52.56%200H27c-1.105%200-2%20.899-2%202.008v9.34c0%201.108.895%202.007%202%202.007h25.56c1.105%200%202-.899%202-2.008V2.008a2.004%202.004%200%200%200-2-2.008Z'/%3e%3cpath%20fill='%23929292'%20d='M27.562%2011.213V2.325h2.921c.97%200%201.732.237%202.289.711.565.474.847%201.122.847%201.943%200%20.813-.282%201.456-.847%201.93-.557.474-1.32.71-2.289.71h-1.125v3.594h-1.796Zm2.997-7.351h-1.201v2.221h1.2c.38%200%20.675-.097.886-.29.22-.197.329-.476.329-.84%200-.338-.11-.605-.329-.8-.21-.194-.506-.291-.885-.291Zm4.671%207.35V2.326h2.707c.97%200%201.736.237%202.301.711.565.474.847%201.122.847%201.943%200%20.532-.126.999-.379%201.396a2.4%202.4%200%200%201-1.037.902l2.782%203.936h-2.15L37.949%207.62h-.923v3.593H35.23Zm2.808-7.35h-1.012v2.221h1.012c.38%200%20.674-.097.885-.29.21-.197.316-.476.316-.84%200-.338-.105-.605-.316-.8-.21-.194-.506-.291-.885-.291Zm9.511-1.79c.69%200%201.323.126%201.896.38.582.254%201.08.593%201.492%201.016.414.423.734.923.962%201.498a4.81%204.81%200%200%201%20.341%201.803c0%20.635-.114%201.24-.341%201.815a4.504%204.504%200%200%201-.962%201.486%204.67%204.67%200%200%201-1.492%201.015c-.598.26-1.244.39-1.896.382a4.721%204.721%200%200%201-3.402-1.397%204.504%204.504%200%200%201-.961-1.486%204.892%204.892%200%200%201-.342-1.815c0-.635.114-1.236.342-1.803a4.473%204.473%200%200%201%20.961-1.498%204.72%204.72%200%200%201%203.402-1.397Zm0%207.706a2.79%202.79%200%200%200%201.138-.229c.354-.16.653-.371.898-.634.252-.271.45-.589.594-.953.145-.38.218-.785.215-1.193a3.193%203.193%200%200%200-.215-1.18%202.805%202.805%200%200%200-.595-.953A2.547%202.547%200%200%200%2048.687%204a2.664%202.664%200%200%200-1.138-.24c-.413%200-.797.08-1.151.24a2.678%202.678%200%200%200-.91.635c-.254.276-.451.6-.582.952a3.193%203.193%200%200%200-.215%201.181c0%20.423.071.82.215%201.193.143.364.337.682.581.953.253.262.557.474.91.634.355.153.739.23%201.152.23Z'/%3e%3c/svg%3e",Sc=({disabled:t,onClick:e})=>v.jsx(X.Button,{disabled:t,className:"pro-connect-button",onClick:e,style:{backgroundImage:`url("${t?j1:L1}")`}});u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);const K1=u.createContext({}),ne=typeof document<"u"?u.useLayoutEffect:()=>{};var Xi;const H1=(Xi=u.useInsertionEffect)!==null&&Xi!==void 0?Xi:ne;function be(t){const e=u.useRef(null);return H1(()=>{e.current=t},[t]),u.useCallback((...r)=>{const n=e.current;return n==null?void 0:n(...r)},[])}function V1(t){let[e,r]=u.useState(t),n=u.useRef(null),i=be(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}e===a.value?i():r(a.value)});ne(()=>{n.current&&i()});let o=be(a=>{n.current=a(e),i()});return[e,o]}const Zn={prefix:String(Math.round(Math.random()*1e10)),current:0},Fc=u.createContext(Zn),z1=u.createContext(!1);let U1=!!(typeof window<"u"&&window.document&&window.document.createElement),Ji=new WeakMap;function W1(t=!1){let e=u.useContext(Fc),r=u.useRef(null);if(r.current===null&&!t){var n,i;let o=(i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(n=i.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(o){let a=Ji.get(o);a==null?Ji.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==a.state&&(e.current=a.id,Ji.delete(o))}r.current=++e.current}return r.current}function Z1(t){let e=u.useContext(Fc);e===Zn&&!U1&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=W1(!!t),n=e===Zn&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function G1(t){let e=u.useId(),[r]=u.useState(sn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Zn.prefix}`;return t||`${n}-${e}`}const q1=typeof u.useId=="function"?G1:Z1;function Y1(){return!1}function X1(){return!0}function J1(t){return()=>{}}function sn(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(J1,Y1,X1):u.useContext(z1)}let Q1=!!(typeof window<"u"&&window.document&&window.document.createElement),sr=new Map,Br;typeof FinalizationRegistry<"u"&&(Br=new FinalizationRegistry(t=>{sr.delete(t)}));function Se(t){let[e,r]=u.useState(t),n=u.useRef(null),i=q1(e),o=u.useRef(null);if(Br&&Br.register(o,i),Q1){const a=sr.get(i);a&&!a.includes(n)?a.push(n):sr.set(i,[n])}return ne(()=>{let a=i;return()=>{Br&&Br.unregister(o),sr.delete(a)}},[i]),u.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),i}function e5(t,e){if(t===e)return t;let r=sr.get(t);if(r)return r.forEach(i=>i.current=e),e;let n=sr.get(e);return n?(n.forEach(i=>i.current=t),t):e}function ht(t=[]){let e=Se(),[r,n]=V1(e),i=u.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return ne(i,[e,i,...t]),r}function gt(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const ae=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Te=t=>t&&"window"in t&&t.window===t?t:ae(t).defaultView||window;function t5(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function r5(t){return t5(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let n5=!1;function pi(){return n5}function ue(t,e){if(!pi())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:r5(r)?r=r.host:r=r.parentNode}return!1}const De=(t=document)=>{var e;if(!pi())return t.activeElement;let r=t.activeElement;for(;r&&"shadowRoot"in r&&(!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement);)r=r.shadowRoot.activeElement;return r};function oe(t){return pi()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class i5{get currentNode(){return this._currentNode}set currentNode(e){if(!ue(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=e,i=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=n,l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(l),l.currentNode=i,this._currentSetFor.add(l),n=i=a.host}else n=n.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=r}get doc(){return this._doc}firstChild(){let e=this.currentNode,r=this.nextNode();return ue(e,r)?(r&&(this.currentNode=r),r):(this.currentNode=e,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const r=e.previousNode();if(r){if(r.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(r)),o===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,r,n,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const s=a.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var l;if(typeof this.filter=="function")return this.filter(a);if(!((l=this.filter)===null||l===void 0)&&l.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=r,this.filter=i??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(e.createTreeWalker(r,n,this._acceptNode));const o=r.shadowRoot;if(o){const a=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function o5(t,e,r,n){return pi()?new i5(t,e,r,n):t.createTreeWalker(e,r,n)}function $c(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=$c(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ve(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=$c(t))&&(n&&(n+=" "),n+=e);return n}function ie(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let i in n){let o=e[i],a=n[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=gt(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?e[i]=ve(o,a):i==="id"&&o&&a?e.id=e5(o,a):e[i]=a!==void 0?a:o}}return e}function ka(...t){return t.length===1&&t[0]?t[0]:e=>{let r=!1;const n=t.map(i=>{const o=Ml(i,e);return r||(r=typeof o=="function"),o});if(r)return()=>{n.forEach((i,o)=>{typeof i=="function"?i():Ml(t[o],null)})}}}function Ml(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const a5=new Set(["id"]),l5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),s5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),c5=new Set(["dir","lang","hidden","inert","translate"]),Rl=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),u5=/^(data-.*)$/;function he(t,e={}){let{labelable:r,isLink:n,global:i,events:o=i,propNames:a}=e,l={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a5.has(s)||r&&l5.has(s)||n&&s5.has(s)||i&&c5.has(s)||o&&Rl.has(s)||s.endsWith("Capture")&&Rl.has(s.slice(0,-7))||a!=null&&a.has(s)||u5.test(s))&&(l[s]=t[s]);return l}function Ve(t){if(d5())t.focus({preventScroll:!0});else{let e=f5(t);t.focus(),h5(e)}}let hn=null;function d5(){if(hn==null){hn=!1;try{document.createElement("div").focus({get preventScroll(){return hn=!0,!0}})}catch{}}return hn}function f5(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function h5(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}function gi(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let r=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(r)&&r.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function Ia(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function rt(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const vt=rt(function(){return Ia(/^Mac/i)}),p5=rt(function(){return Ia(/^iPhone/i)}),_c=rt(function(){return Ia(/^iPad/i)||vt()&&navigator.maxTouchPoints>1}),vi=rt(function(){return p5()||_c()}),g5=rt(function(){return vt()||vi()}),Oa=rt(function(){return gi(/AppleWebKit/i)&&!Pc()}),Pc=rt(function(){return gi(/Chrome/i)}),Na=rt(function(){return gi(/Android/i)}),v5=rt(function(){return gi(/Firefox/i)}),b5=u.createContext({isNative:!0,open:C5,useHref:t=>t});function bi(){return u.useContext(b5)}function m5(t,e){let r=t.getAttribute("target");return(!r||r==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Pt(t,e,r=!0){var n,i;let{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}=e;v5()&&(!((i=window.event)===null||i===void 0||(n=i.type)===null||n===void 0)&&n.startsWith("key"))&&t.target==="_blank"&&(vt()?o=!0:a=!0);let c=Oa()&&vt()&&!_c()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});Pt.isOpening=r,Ve(t),t.dispatchEvent(c),Pt.isOpening=!1}Pt.isOpening=!1;function y5(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function C5(t,e){y5(t,r=>Pt(r,e))}function Ma(t){let e=bi();var r;const n=e.useHref((r=t==null?void 0:t.href)!==null&&r!==void 0?r:"");return{href:t!=null&&t.href?n:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}function E5(t,e,r,n){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&m5(t.currentTarget,t)&&r&&(t.preventDefault(),e.open(t.currentTarget,t,r,n))}let ut=new Map,zo=new Set;function Bl(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{if(!t(n)||!n.target)return;let i=ut.get(n.target);i||(i=new Set,ut.set(n.target,i),n.target.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{if(!t(n)||!n.target)return;let i=ut.get(n.target);if(i&&(i.delete(n.propertyName),i.size===0&&(n.target.removeEventListener("transitioncancel",r),ut.delete(n.target)),ut.size===0)){for(let o of zo)o();zo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Bl():document.addEventListener("DOMContentLoaded",Bl));function w5(){for(const[t]of ut)"isConnected"in t&&!t.isConnected&&ut.delete(t)}function Ac(t){requestAnimationFrame(()=>{w5(),ut.size===0?t():zo.add(t)})}function mi(){let t=u.useRef(new Map),e=u.useCallback((i,o,a,l)=>{let s=l!=null&&l.once?(...c)=>{t.current.delete(a),a(...c)}:a;t.current.set(a,{type:o,eventTarget:i,fn:s,options:l}),i.addEventListener(o,s,l)},[]),r=u.useCallback((i,o,a,l)=>{var s;let c=((s=t.current.get(a))===null||s===void 0?void 0:s.fn)||a;i.removeEventListener(o,c,l),t.current.delete(a)},[]),n=u.useCallback(()=>{t.current.forEach((i,o)=>{r(i.eventTarget,i.type,o,i.options)})},[r]);return u.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function yi(t,e){let{id:r,"aria-label":n,"aria-labelledby":i}=t;return r=Se(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!n&&!i&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":i}}function nt(t){const e=u.useRef(null),r=u.useRef(void 0),n=u.useCallback(i=>{if(typeof t=="function"){const o=t,a=o(i);return()=>{typeof a=="function"?a():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return u.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,r.current&&(r.current(),r.current=void 0),i!=null&&(r.current=n(i))}}),[n])}function Ll(t,e){const r=u.useRef(!0),n=u.useRef(null);ne(()=>(r.current=!0,()=>{r.current=!1}),[]),ne(()=>{r.current?r.current=!1:(!n.current||e.some((i,o)=>!Object.is(i,n[o])))&&t(),n.current=e},e)}function D5(){return typeof window.ResizeObserver<"u"}function Uo(t){const{ref:e,box:r,onResize:n}=t;u.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(D5()){const o=new window.ResizeObserver(a=>{a.length&&n()});return o.observe(i,{box:r}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e,r])}function Tc(t,e){ne(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Zr(t,e){if(!t)return!1;let r=window.getComputedStyle(t),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&e&&(n=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),n}function kc(t,e){let r=t;for(Zr(r,e)&&(r=r.parentElement);r&&!Zr(r,e);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function x5(t,e){const r=[];for(;t&&t!==document.documentElement;)Zr(t,e)&&r.push(t),t=t.parentElement;return r}let S5=0;const Qi=new Map;function F5(t){let[e,r]=u.useState();return ne(()=>{if(!t)return;let n=Qi.get(t);if(n)r(n.element.id);else{let i=`react-aria-description-${S5++}`;r(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),n={refCount:0,element:o},Qi.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Qi.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function pn(t,e,r,n){let i=be(r),o=r==null;u.useEffect(()=>{if(o||!t.current)return;let a=t.current;return a.addEventListener(e,i,n),()=>{a.removeEventListener(e,i,n)}},[t,e,n,o,i])}function Ic(t,e){let r=jl(t,e,"left"),n=jl(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,a=t.scrollLeft,l=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(t),y=a+parseInt(c,10),h=l+parseInt(s,10),b=y+t.clientWidth,m=h+t.clientHeight,C=parseInt(d,10)||0,E=parseInt(p,10)||0,F=parseInt(f,10)||0,x=parseInt(g,10)||0;r<=a+x?a=r-parseInt(c,10)-x:r+i>b-F&&(a+=r+i-b+F),n<=h+C?l=n-parseInt(s,10)-C:n+o>m-E&&(l+=n+o-m+E),t.scrollLeft=a,t.scrollTop=l}function jl(t,e,r){const n=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[n],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[n];break}e=e.offsetParent}return i}function Kl(t,e){if(t&&document.contains(t)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let s=x5(t);for(let c of s)Ic(c,t)}else{var r;let{left:s,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(c-f)>1){var n,i,o;e==null||(i=e.containingElement)===null||i===void 0||(n=i.scrollIntoView)===null||n===void 0||n.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function Wo(t){return t.pointerType===""&&t.isTrusted?!0:Na()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function $5(t){return!Na()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function _5(t,e,r){let n=be(()=>{r&&r(e)});u.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",n),()=>{o==null||o.removeEventListener("reset",n)}},[t,n])}function P5(t){const e=u.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const A5="react-aria-clear-focus",T5="react-aria-focus";function rr(t){return vt()?t.metaKey:t.ctrlKey}function k5(t,e=!0){let[r,n]=u.useState(!0),i=r&&e;return ne(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Oc(t,i,u.useCallback(()=>n(!1),[])),i}function I5(t,e){let[r,n]=u.useState(e?"open":"closed");switch(r){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let i=r==="exiting";return Oc(t,i,u.useCallback(()=>{n(o=>o==="exiting"?"closed":o)},[])),i}function Oc(t,e,r){ne(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){r();return}let n=t.current.getAnimations();if(n.length===0){r();return}let i=!1;return Promise.all(n.map(o=>o.finished)).then(()=>{i||Mt.flushSync(()=>{r()})}).catch(()=>{}),()=>{i=!0}}},[t,e,r])}const O5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function N5(t){const e=Te(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,i=r!=="none"&&n!=="hidden"&&n!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:a,visibility:l}=o(t);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function M5(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Ra(t,e){return O5?t.checkVisibility()&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&N5(t)&&M5(t,e)&&(!t.parentElement||Ra(t.parentElement,t))}const Ba=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],R5=Ba.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ba.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const B5=Ba.join(':not([hidden]):not([tabindex="-1"]),');function Nc(t){return t.matches(R5)&&Ra(t)&&!Mc(t)}function L5(t){return t.matches(B5)&&Ra(t)&&!Mc(t)}function Mc(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function Ci(t,e,r){let[n,i]=u.useState(t||e),o=u.useRef(t!==void 0),a=t!==void 0;u.useEffect(()=>{let c=o.current;c!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let l=a?t:n,s=u.useCallback((c,...d)=>{let f=(p,...g)=>{r&&(Object.is(l,p)||r(p,...g)),a||(l=p)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let h=c(a?l:g,...y);return f(h,...d),a?g:h})):(a||i(c),f(c,...d))},[a,l,r]);return[l,s]}function Zo(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}const Gr=Symbol("default");function it({values:t,children:e}){for(let[r,n]of t)e=u.createElement(r.Provider,{value:n},e);return e}function Fe(t){let{className:e,style:r,children:n,defaultClassName:i,defaultChildren:o,defaultStyle:a,values:l}=t;return u.useMemo(()=>{let s,c,d;return typeof e=="function"?s=e({...l,defaultClassName:i}):s=e,typeof r=="function"?c=r({...l,defaultStyle:a||{}}):c=r,typeof n=="function"?d=n({...l,defaultChildren:o}):n==null?d=o:d=n,{className:s??i,style:c||a?{...a,...c}:void 0,children:d??o,"data-rac":""}},[e,r,n,i,o,a,l])}function Ei(t,e){let r=u.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||Gr;if(!r.slots[n]){let i=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return r.slots[n]}return r}function Xe(t,e,r){let n=Ei(r,t.slot)||{},{ref:i,...o}=n,a=nt(u.useMemo(()=>ka(e,i),[e,i])),l=ie(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?l.style=s=>{let c=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...c},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:l.style={...o.style,...t.style}),[l,a]}function La(t=!0){let[e,r]=u.useState(t),n=u.useRef(!1),i=u.useCallback(o=>{n.current=!0,r(!!o)},[]);return ne(()=>{n.current||r(!1)},[]),[i,e]}function j5(t){const e=/^(data-.*)$/;let r={};for(const n in t)e.test(n)||(r[n]=t[n]);return r}class ja{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new ja(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,r){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=e,this.key=r}}class Ka{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),i=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?r.get(i.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r==null?void 0:r.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}UNSTABLE_filter(e){let r=new Ka,n=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),a=null;for(let l of this.getChildren(i.key))if(Hl(l,e,this,r)){let s=l.clone();a==null&&(o.firstChildKey=s.key),r.firstKey==null&&(r.firstKey=o.key),a&&a.parentKey===s.parentKey?(a.nextKey=s.key,s.prevKey=a.key):s.prevKey=null,s.nextKey=null,r.addNode(s),a=s}a&&(a.type!=="header"?(o.lastChildKey=a.key,n==null?o.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=o.key,o.prevKey=n.key),o.nextKey=null,n=o,r.addNode(o)):(r.firstKey===o.key&&(r.firstKey=null),r.removeNode(a.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=o.key,o.prevKey=n.key,n=o,r.addNode(o))}else{let o=i.clone();Hl(o,e,this,r)&&(r.firstKey==null&&(r.firstKey=o.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===o.parentKey?(n.nextKey=o.key,o.prevKey=n.key):o.prevKey=null,o.nextKey=null,r.addNode(o),n=o)}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let i;n.prevKey!=null&&(i=r.getItem(n.prevKey),i.nextKey=null),r.removeNode(n.key),n=i}return r.lastKey=(n==null?void 0:n.key)||null,r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Hl(t,e,r,n){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...r.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return n.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class Rc{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(r),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class cr extends Rc{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof cr?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,r,n;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof cr?this.parentNode.node.key:null;var a;o.prevKey=(a=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&a!==void 0?a:null;var l;o.nextKey=(l=i==null?void 0:i.node.key)!==null&&l!==void 0?l:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(r=this.firstVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&c!==void 0?c:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let p=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(p!==i.node.colIndex){let g=i.getMutableNode();g.colIndex=p}}}setProps(e,r,n,i){let o=this.getMutableNode(),{value:a,textValue:l,id:s,...c}=e;if(c.ref=r,o.props=c,o.rendered=n,o.render=i,o.value=a,o.textValue=l||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}c.colSpan!=null&&(o.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(r){let n=r==="none";if(e.isHidden!==n){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let a=e.previousVisibleSibling,l=e.nextVisibleSibling;a&&e.ownerDocument.markDirty(a),l&&e.ownerDocument.markDirty(l),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new ja(e,`react-aria-${++r.nodeId}`)}}class K5 extends Rc{get isConnected(){return this.isMounted}createElement(e){return new cr(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof cr&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof cr&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,r,n,i;this.nextCollection.commit((n=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&n!==void 0?n:null,(i=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function Bc(t){let{children:e,items:r,idScope:n,addIdAndValue:i,dependencies:o=[]}=t,a=u.useMemo(()=>new WeakMap,o);return u.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let d of r){let f=a.get(d);if(!f){f=e(d);var l,s;let p=(s=(l=f.props.id)!==null&&l!==void 0?l:d.key)!==null&&s!==void 0?s:d.id;if(p==null)throw new Error("Could not determine key for item");n&&(p=n+":"+p),f=u.cloneElement(f,i?{key:p,id:p,value:d}:{key:p}),a.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,r,a,n,i])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Gn=u.createContext(!1);function H5(t){if(u.useContext(Gn))return u.createElement(u.Fragment,null,t.children);let r=u.createElement(Gn.Provider,{value:!0},t.children);return u.createElement("template",{"data-react-aria-hidden":!0},r)}function Ha(t){let e=(r,n)=>u.useContext(Gn)?null:t(r,n);return e.displayName=t.displayName||t.name,u.forwardRef(e)}function V5(){return u.useContext(Gn)}function Va(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function Lc(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function jc(t){let e=u.useRef({isFocused:!1,observer:null});ne(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=be(n=>{t==null||t(n)});return u.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=n.target,o=a=>{if(e.current.isFocused=!1,i.disabled){let l=Va(a);r(l)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var a;(a=e.current.observer)===null||a===void 0||a.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let qn=!1;function Vl(t){for(;t&&!Nc(t);)t=t.parentElement;let e=Te(t),r=e.document.activeElement;if(!r||r===t)return;qn=!0;let n=!1,i=d=>{(d.target===r||n)&&d.stopImmediatePropagation()},o=d=>{(d.target===r||n)&&(d.stopImmediatePropagation(),!t&&!n&&(n=!0,Ve(r),s()))},a=d=>{(d.target===t||n)&&d.stopImmediatePropagation()},l=d=>{(d.target===t||n)&&(d.stopImmediatePropagation(),n||(n=!0,Ve(r),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",l,!0),e.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",l,!0),e.removeEventListener("focus",a,!0),qn=!1,n=!1},c=requestAnimationFrame(s);return s}let or="default",Go="",On=new WeakMap;function zl(t){if(vi()){if(or==="default"){const e=ae(t);Go=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}or="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";On.set(t,t.style[e]),t.style[e]="none"}}function eo(t){if(vi()){if(or!=="disabled")return;or="restoring",setTimeout(()=>{Ac(()=>{if(or==="restoring"){const e=ae(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Go||""),Go="",or="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&On.has(t)){let e=On.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),On.delete(t)}}const za=u.createContext({register:()=>{}});za.displayName="PressResponderContext";function z5(t,e){return e.get?e.get.call(t):e.value}function Kc(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function U5(t,e){var r=Kc(t,e,"get");return z5(t,r)}function W5(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Z5(t,e,r){W5(t,e),e.set(t,r)}function G5(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Ul(t,e,r){var n=Kc(t,e,"set");return G5(t,n,r),r}function q5(t){let e=u.useContext(za);if(e){let{register:r,...n}=e;t=ie(n,t),r()}return Tc(e,t.ref),t}var gn=new WeakMap;class vn{continuePropagation(){Ul(this,gn,!1)}get shouldStopPropagation(){return U5(this,gn)}constructor(e,r,n,i){Z5(this,gn,{writable:!0,value:void 0}),Ul(this,gn,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:n.currentTarget;const l=a==null?void 0:a.getBoundingClientRect();let s,c=0,d,f=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,f=n.clientY),l&&(d!=null&&f!=null?(s=d-l.left,c=f-l.top):(s=l.width/2,c=l.height/2)),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c}}const Wl=Symbol("linkClicked"),Zl="react-aria-pressable-style",Gl="data-react-aria-pressable";function wi(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:o,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...g}=q5(t),[y,h]=u.useState(!1),b=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:C}=mi(),E=be((D,B)=>{let U=b.current;if(l||U.didFirePressStart)return!1;let k=!0;if(U.isTriggeringEvent=!0,n){let W=new vn("pressstart",B,D);n(W),k=W.shouldStopPropagation}return r&&r(!0),U.isTriggeringEvent=!1,U.didFirePressStart=!0,h(!0),k}),F=be((D,B,U=!0)=>{let k=b.current;if(!k.didFirePressStart)return!1;k.didFirePressStart=!1,k.isTriggeringEvent=!0;let W=!0;if(i){let _=new vn("pressend",B,D);i(_),W=_.shouldStopPropagation}if(r&&r(!1),h(!1),e&&U&&!l){let _=new vn("press",B,D);e(_),W&&(W=_.shouldStopPropagation)}return k.isTriggeringEvent=!1,W}),x=be((D,B)=>{let U=b.current;if(l)return!1;if(o){U.isTriggeringEvent=!0;let k=new vn("pressup",B,D);return o(k),U.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),w=be(D=>{let B=b.current;if(B.isPressed&&B.target){B.didFirePressStart&&B.pointerType!=null&&F(mt(B.target,D),B.pointerType,!1),B.isPressed=!1,B.isOverTarget=!1,B.activePointerId=null,B.pointerType=null,C(),f||eo(B.target);for(let U of B.disposables)U();B.disposables=[]}}),S=be(D=>{d&&w(D)}),O=be(D=>{a==null||a(D)}),K=be((D,B)=>{if(a){let U=new MouseEvent("click",D);Lc(U,B),a(Va(U))}}),H=u.useMemo(()=>{let D=b.current,B={onKeyDown(k){if(to(k.nativeEvent,k.currentTarget)&&ue(k.currentTarget,oe(k.nativeEvent))){var W;Xl(oe(k.nativeEvent),k.key)&&k.preventDefault();let _=!0;if(!D.isPressed&&!k.repeat){D.target=k.currentTarget,D.isPressed=!0,D.pointerType="keyboard",_=E(k,"keyboard");let I=k.currentTarget,z=L=>{to(L,I)&&!L.repeat&&ue(I,oe(L))&&D.target&&x(mt(D.target,L),"keyboard")};m(ae(k.currentTarget),"keyup",gt(z,U),!0)}_&&k.stopPropagation(),k.metaKey&&vt()&&((W=D.metaKeyEvents)===null||W===void 0||W.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(k){if(!(k&&!ue(k.currentTarget,oe(k.nativeEvent)))&&k&&k.button===0&&!D.isTriggeringEvent&&!Pt.isOpening){let W=!0;if(l&&k.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||Wo(k.nativeEvent))){let _=E(k,"virtual"),I=x(k,"virtual"),z=F(k,"virtual");O(k),W=_&&I&&z}else if(D.isPressed&&D.pointerType!=="keyboard"){let _=D.pointerType||k.nativeEvent.pointerType||"virtual",I=x(mt(k.currentTarget,k),_),z=F(mt(k.currentTarget,k),_,!0);W=I&&z,D.isOverTarget=!1,O(k),w(k)}D.ignoreEmulatedMouseEvents=!1,W&&k.stopPropagation()}}},U=k=>{var W;if(D.isPressed&&D.target&&to(k,D.target)){var _;Xl(oe(k),k.key)&&k.preventDefault();let z=oe(k),L=ue(D.target,oe(k));F(mt(D.target,k),"keyboard",L),L&&K(k,D.target),C(),k.key!=="Enter"&&Ua(D.target)&&ue(D.target,z)&&!k[Wl]&&(k[Wl]=!0,Pt(D.target,k,!1)),D.isPressed=!1,(_=D.metaKeyEvents)===null||_===void 0||_.delete(k.key)}else if(k.key==="Meta"&&(!((W=D.metaKeyEvents)===null||W===void 0)&&W.size)){var I;let z=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let L of z.values())(I=D.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){B.onPointerDown=_=>{if(_.button!==0||!ue(_.currentTarget,oe(_.nativeEvent)))return;if($5(_.nativeEvent)){D.pointerType="virtual";return}D.pointerType=_.pointerType;let I=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=_.pointerId,D.target=_.currentTarget,f||zl(D.target),I=E(_,D.pointerType);let z=oe(_.nativeEvent);"releasePointerCapture"in z&&z.releasePointerCapture(_.pointerId),m(ae(_.currentTarget),"pointerup",k,!1),m(ae(_.currentTarget),"pointercancel",W,!1)}I&&_.stopPropagation()},B.onMouseDown=_=>{if(ue(_.currentTarget,oe(_.nativeEvent))&&_.button===0){if(c){let I=Vl(_.target);I&&D.disposables.push(I)}_.stopPropagation()}},B.onPointerUp=_=>{!ue(_.currentTarget,oe(_.nativeEvent))||D.pointerType==="virtual"||_.button===0&&!D.isPressed&&x(_,D.pointerType||_.pointerType)},B.onPointerEnter=_=>{_.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,E(mt(D.target,_),D.pointerType))},B.onPointerLeave=_=>{_.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,F(mt(D.target,_),D.pointerType,!1),S(_))};let k=_=>{if(_.pointerId===D.activePointerId&&D.isPressed&&_.button===0&&D.target){if(ue(D.target,oe(_))&&D.pointerType!=null){let I=!1,z=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(I?w(_):(Ve(D.target),D.target.click()))},80);m(_.currentTarget,"click",()=>I=!0,!0),D.disposables.push(()=>clearTimeout(z))}else w(_);D.isOverTarget=!1}},W=_=>{w(_)};B.onDragStart=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&w(_)}}else if(process.env.NODE_ENV==="test"){B.onMouseDown=_=>{if(_.button!==0||!ue(_.currentTarget,oe(_.nativeEvent)))return;if(D.ignoreEmulatedMouseEvents){_.stopPropagation();return}if(D.isPressed=!0,D.isOverTarget=!0,D.target=_.currentTarget,D.pointerType=Wo(_.nativeEvent)?"virtual":"mouse",Mt.flushSync(()=>E(_,D.pointerType))&&_.stopPropagation(),c){let z=Vl(_.target);z&&D.disposables.push(z)}m(ae(_.currentTarget),"mouseup",k,!1)},B.onMouseEnter=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;let I=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,I=E(_,D.pointerType)),I&&_.stopPropagation()},B.onMouseLeave=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;let I=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,I=F(_,D.pointerType,!1),S(_)),I&&_.stopPropagation()},B.onMouseUp=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&!D.ignoreEmulatedMouseEvents&&_.button===0&&!D.isPressed&&x(_,D.pointerType||"mouse")};let k=_=>{if(_.button===0){if(D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&D.target.contains(_.target)&&D.pointerType!=null||w(_),D.isOverTarget=!1}};B.onTouchStart=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;let I=Y5(_.nativeEvent);if(!I)return;D.activePointerId=I.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=_.currentTarget,D.pointerType="touch",f||zl(D.target),E(at(D.target,_),D.pointerType)&&_.stopPropagation(),m(Te(_.currentTarget),"scroll",W,!0)},B.onTouchMove=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;if(!D.isPressed){_.stopPropagation();return}let I=ql(_.nativeEvent,D.activePointerId),z=!0;I&&Yl(I,_.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,z=E(at(D.target,_),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,z=F(at(D.target,_),D.pointerType,!1),S(at(D.target,_))),z&&_.stopPropagation()},B.onTouchEnd=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;if(!D.isPressed){_.stopPropagation();return}let I=ql(_.nativeEvent,D.activePointerId),z=!0;I&&Yl(I,_.currentTarget)&&D.pointerType!=null?(x(at(D.target,_),D.pointerType),z=F(at(D.target,_),D.pointerType),K(_.nativeEvent,D.target)):D.isOverTarget&&D.pointerType!=null&&(z=F(at(D.target,_),D.pointerType,!1)),z&&_.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!f&&eo(D.target),C()},B.onTouchCancel=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&(_.stopPropagation(),D.isPressed&&w(at(D.target,_)))};let W=_=>{D.isPressed&&ue(oe(_),D.target)&&w({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};B.onDragStart=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&w(_)}}return B},[m,l,c,C,f,w,S,F,E,x,O,K]);return u.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const D=ae(p.current);if(!D||!D.head||D.getElementById(Zl))return;const B=D.createElement("style");B.id=Zl,B.textContent=`
22
+ <%s key={someKey} {...props} />`,P,Z,q,Z),L[Z+P]=!0)}if(Z=null,$!==void 0&&(r($),Z=""+$),a(R)&&(r(R.key),Z=""+R.key),"key"in R){$={};for(var Y in R)Y!=="key"&&($[Y]=R[Y])}else $=R;return Z&&l($,typeof M=="function"?M.displayName||M.name||"Unknown":M),c(M,Z,N,T,i(),$,j,V)}function f(M){typeof M=="object"&&M!==null&&M.$$typeof===g&&M._store&&(M._store.validated=1)}var p=u,g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),D=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,U=Array.isArray,k=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(M){return M()}};var W,_={},I=p.react_stack_bottom_frame.bind(p,o)(),z=k(n(o)),L={};$r.Fragment=h,$r.jsx=function(M,R,$,P,T){var N=1e4>D.recentlyCreatedOwnerStacks++;return d(M,R,$,!1,P,T,N?Error("react-stack-top-frame"):I,N?k(n(M)):z)},$r.jsxs=function(M,R,$,P,T){var N=1e4>D.recentlyCreatedOwnerStacks++;return d(M,R,$,!0,P,T,N?Error("react-stack-top-frame"):I,N?k(n(M)):z)}}()),$r}var Nl;function I1(){return Nl||(Nl=1,process.env.NODE_ENV==="production"?fn.exports=T1():fn.exports=k1()),fn.exports}var v=I1();const O1={share:{copyLink:"Copy link",ok:"OK",shareButton:"Share",modalTitle:"Share folder",modalAriaLabel:"Share modal",access:{delete:"Remove access"},cannot_view:{message:"You can view this item but you need additional access to view its members or modify the settings."},invitations:{title:"Pending invitations"},members:{title_plural:"Shared between {count} people",title_singular:"Shared between {count} person",load_more:"Show more "},item:{add:"Add"},search:{placeholder:"Search user",group_name:"Search user result"},user:{no_result:"No result",placeholder:"Search for a user to invite"},linkSettings:{title:"Link settings",reach:{choices:{public:{title:"Public",description:"Anyone with the link can access the document"},authenticated:{title:"Authenticated",description:"Only authenticated users can access the document"},restricted:{title:"Private",description:"Only users of the space can access the document"}}},role:{choices:{reader:{title:"Reader"},editor:{title:"Editor"}}}}},laGaufre:{label:"Digital LaSuite services",closeLabel:"Close the menu",viewMoreLabel:"View more",viewLessLabel:"View less",loadingText:"Loading…",newWindowLabelSuffix:" (new window)",headerLabel:"About"},userMenu:{term_of_service:"Terms of service",manage_account:"Manage account",open:"Open user menu",close:"Close user menu",accountSettings:"Account settings",logout:"Logout",dialogTitle:"User menu"},treeView:{viewMore:"Load more elements"},footer:{logo:{alt:"Logo of the French government"}},onboarding:{skip:"Skip",next:"Next",previous:"Previous",complete:"Understood",stepLabel:"Step {current} of {total}: {title}",currentStepSuffix:" (current)",contentRegionLabel:"Step {current} of {total} content"}},N1={components:O1},M1={share:{copyLink:"Copier le lien",ok:"OK",modalTitle:"Partage",modalAriaLabel:"Modale de partage",shareButton:"Partager",access:{delete:"Retirer l'accès"},cannot_view:{message:"Vous pouvez voir cet élément mais vous avez besoin d'un accès supplémentaire pour voir ses membres ou modifier les paramètres."},invitations:{title:"Invitations en attente"},members:{title_plural:"Partagé entre {count} personnes",title_singular:"Partagé entre {count} personne",load_more:"Afficher plus"},item:{add:"Ajouter"},search:{placeholder:"Rechercher un utilisateur",group_name:"Résultat de la recherche d'utilisateur"},user:{no_result:"Aucun résultat",placeholder:"Rechercher un utilisateur à inviter"},linkSettings:{title:"Paramètres du lien",reach:{choices:{public:{title:"Public",description:"N'importe qui avec le lien peut accéder au document"},restricted:{title:"Privé",description:"Seules les personnes avec accès peuvent l'ouvrir à l'aide du lien"},authenticated:{title:"Authenticated",description:"Seuls les utilisateurs authentifiés peuvent accéder au document"}}},role:{choices:{reader:{title:"Lecture seule"},editor:{title:"Édition"}}}}},laGaufre:{label:"Services de la Suite numérique",closeLabel:"Fermer le menu",loadingText:"Chargement…",viewMoreLabel:"Voir plus",viewLessLabel:"Voir moins",newWindowLabelSuffix:" (nouvelle fenêtre)",headerLabel:"À propos"},userMenu:{term_of_service:"Conditions d'utilisation",open:"Ouvrir le menu utilisateur",close:"Fermer le menu utilisateur",accountSettings:"Paramètres du compte",logout:"Déconnexion",dialogTitle:"Menu utilisateur",manage_account:"Gérer le compte"},treeView:{viewMore:"Charger plus d'éléments"},footer:{logo:{alt:"Logo du gouvernement français"}},onboarding:{skip:"Passer",next:"Suivant",previous:"Précédent",complete:"Compris",stepLabel:"Étape {current} sur {total} : {title}",currentStepSuffix:" (actuelle)",contentRegionLabel:"Contenu de l'étape {current} sur {total}"}},R1={components:M1};function Yi(t){return t&&typeof t=="object"&&!Array.isArray(t)}function gr(t,...e){if(!e.length)return t;const r=e.shift();if(Yi(t)&&Yi(r))for(const n in r)Yi(r[n])?(t[n]||Object.assign(t,{[n]:{}}),gr(t[n],r[n])):Object.assign(t,{[n]:r[n]});return gr(t,...e)}const xc={"en-US":gr(X.enUS,N1),"fr-FR":gr(X.frFR,R1)},B1=t=>v.jsx(X.CunninghamProvider,{customLocales:xc,...t}),L1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='192'%20height='48'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='m60.986%2021.454%201.156-1.076c.833%201.059%201.819%201.605%202.94%201.605%201.293%200%202.04-.82%202.04-1.912%200-2.56-5.626-2.253-5.626-6.059%200-1.74%201.428-3.209%203.45-3.209%201.684%200%202.908.768%203.792%201.946l-1.19%201.041c-.697-1.007-1.547-1.553-2.584-1.553-1.105%200-1.836.751-1.836%201.74%200%202.578%205.627%202.254%205.627%206.077%200%202.031-1.581%203.363-3.655%203.363-1.768%200-3.077-.666-4.114-1.963Zm10.817-5.735H70.46l1.445-4.574h1.649l-1.751%204.574Zm4.818-3.465c-.56%200-1.02-.46-1.02-1.024a1.026%201.026%200%200%201%201.02-1.007c.56%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.73%2010.838V14.49h1.444v8.602H75.89Zm3.767-4.3c0-2.51%201.717-4.643%204.403-4.643%201.24%200%202.26.46%203.043%201.297V10.29h1.445v12.801h-1.445v-.955c-.782.836-1.802%201.297-3.043%201.297-2.686%200-4.403-2.134-4.403-4.643Zm1.53%200c0%201.825%201.224%203.276%203.043%203.276%201.19%200%202.21-.58%202.873-1.604v-3.345c-.68-1.042-1.7-1.605-2.873-1.605-1.82%200-3.043%201.45-3.043%203.277Zm18.023%202.884c-.8%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921H92.36v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.07.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v.973c.697-.768%201.581-1.314%202.856-1.314%201.921%200%203.349%201.297%203.349%203.738v5.205h-1.462v-5.154c0-1.536-.85-2.424-2.176-2.424-1.241%200-2.023.717-2.567%201.622v5.956h-1.445Zm11.052-2.884V15.82h-1.615V14.49h1.615v-2.15h1.462v2.15h2.975v1.331h-2.975v4.387c0%201.348.68%201.724%201.717%201.724.561%200%20.952-.069%201.275-.205v1.297c-.408.17-.867.239-1.479.239-1.904%200-2.975-.956-2.975-3.055Zm7.377-7.954c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm3.377-8.602h1.615v-1.058c0-1.844%201.207-3.14%203.043-3.14.952%200%201.7.34%202.21.835l-.901%201.059a1.638%201.638%200%200%200-1.292-.58c-.935%200-1.598.682-1.598%201.792v1.092h2.975v1.331h-2.975v7.271h-1.462v-7.27h-1.615V14.49Zm8.543-2.236c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm12.115-1.416c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v1.075c.629-.75%201.411-1.246%202.499-1.246.272%200%20.527.034.731.103v1.502a3.1%203.1%200%200%200-.85-.12c-1.122%200-1.853.58-2.38%201.451v5.837h-1.445Zm13.685.342c-1.683%200-2.822-.956-2.822-2.458%200-1.331.986-2.287%202.822-2.577l2.873-.478v-.598c0-1.195-.85-1.877-2.057-1.877-1.003%200-1.836.444-2.329%201.195l-1.088-.837c.748-1.024%201.955-1.655%203.451-1.655%202.176%200%203.468%201.28%203.468%203.174v5.77h-1.445V22c-.646.905-1.717%201.434-2.873%201.434Zm-1.377-2.51c0%20.735.629%201.298%201.615%201.298%201.139%200%202.04-.598%202.635-1.588v-1.638l-2.533.444c-1.19.188-1.717.734-1.717%201.485Zm7.252-6.434h1.564l2.737%207.083%202.737-7.083h1.564l-3.349%208.602h-1.904l-3.349-8.602Zm17.856%207.186c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm10.185%206.673a2.891%202.891%200%200%200%202.431-1.28l1.156.888c-.799%201.075-2.04%201.758-3.604%201.758-2.839%200-4.658-2.134-4.658-4.643s1.819-4.642%204.658-4.642c1.547%200%202.805.7%203.604%201.758l-1.156.887a2.917%202.917%200%200%200-2.448-1.28c-1.836%200-3.145%201.45-3.145%203.277%200%201.843%201.309%203.277%203.162%203.277ZM61.854%2040.161V27.51h4.158c2.772%200%204.464%201.428%204.464%203.777%200%202.331-1.692%203.76-4.464%203.76H64.41v5.114h-2.556Zm4.266-10.464h-1.71v3.162h1.71c1.08%200%201.728-.578%201.728-1.608%200-.958-.648-1.554-1.728-1.554Zm6.129%2010.464v-9.109h2.286v.904c.594-.615%201.368-1.084%202.394-1.084.306%200%20.576.054.792.126v2.404a3.922%203.922%200%200%200-1.008-.127c-1.116%200-1.836.614-2.178%201.175v5.71h-2.286Zm11.386-9.47c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm13.172-.235c1.44%200%202.574-.704%203.294-1.735l2.016%201.555c-1.152%201.572-3.024%202.584-5.31%202.584-3.978%200-6.696-3.072-6.696-6.687%200-3.614%202.718-6.686%206.696-6.686%202.286%200%204.158%201.03%205.31%202.566l-2.016%201.572c-.72-1.03-1.854-1.735-3.294-1.735-2.376%200-4.068%201.862-4.068%204.283%200%202.422%201.692%204.283%204.068%204.283Zm11.366-7.427c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm7.018%201.808v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm11.091%200v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm19.444-1.482c-.846%201.138-2.25%201.843-3.96%201.843-3.222%200-5.04-2.259-5.04-4.916%200-2.692%201.692-4.915%204.662-4.915%202.52%200%204.176%201.698%204.176%204.084%200%20.506-.072.994-.144%201.301h-6.354c.144%201.5%201.188%202.386%202.736%202.386.99%200%201.8-.434%202.286-1.085l1.638%201.302Zm-4.338-6.073c-1.116%200-1.872.543-2.178%201.735h4.086c-.036-.903-.702-1.735-1.908-1.735Zm10.696%205.747c.882%200%201.584-.433%202.016-1.066l1.818%201.392c-.846%201.12-2.178%201.843-3.834%201.843-3.132%200-5.004-2.259-5.004-4.916%200-2.656%201.872-4.915%205.004-4.915%201.656%200%202.988.723%203.834%201.843l-1.818%201.392c-.432-.633-1.116-1.067-2.052-1.067-1.494%200-2.592%201.157-2.592%202.747%200%201.609%201.098%202.747%202.628%202.747Zm6.204-1.518V33.15h-1.692v-2.097h1.692v-2.277h2.304v2.277h2.772v2.097h-2.772v3.686c0%201.012.54%201.41%201.44%201.41.63%200%201.044-.072%201.35-.199v2.006c-.45.199-.99.29-1.746.29-2.268%200-3.348-1.284-3.348-3.507Z'/%3e%3cpath%20fill='%23000091'%20d='M37.992%2014.155%2022.998%205.442%208.004%2014.237a.607.607%200%200%200-.306.527V31.78a.67.67%200%200%200%20.306.526l14.992%208.635L37.99%2032.2a.667.667%200%200%200%20.306-.526v-16.99a.608.608%200%200%200-.304-.53Z'/%3e%3cpath%20fill='%23FCC63A'%20d='m17.641%2014.656-5.029%208.663-4.557-9.212%205.39-3.125%204.49%203.173-.294.502Zm20.656%2017.049V14.679a.604.604%200%200%200-.306-.526L22.998%205.442'/%3e%3cpath%20fill='%230063CB'%20d='M7.7%2031.705%2023%205.442v35.504l-14.996-8.64a.667.667%200%200%201-.306-.526V14.765l.002%2016.94Zm24.67-20.819%205.457%203.168-4.489%209.187-5.387-9.273%204.418-3.083v.001Z'/%3e%3cpath%20fill='%23fff'%20d='M42.606%2011.348%2023.416.284a.93.93%200%200%200-.832%200L3.394%2011.348a.89.89%200%200%200-.394.698v22.088a.891.891%200%200%200%20.394.703l19.189%2011.064a.929.929%200%200%200%20.832%200l19.191-11.064a.888.888%200%200%200%20.394-.703V12.046a.893.893%200%200%200-.394-.698ZM13.789%2029.176h.079c-.042%200-.079.007-.079.05%200%20.1.151%200%20.2.1a.91.91%200%200%200-.629.277c0%20.05.1.05.151.05-.075.1-.226.05-.277.153a.176.176%200%200%200%20.1.05c-.05%200-.1%200-.1.05v.153c-.126%200-.176.1-.277.15.2.153.327%200%20.528%200-.528.201-.956.482-1.484.633-.1%200%200%20.15-.1.15.151.101.227-.05.377-.05-.654.38-1.333.703-2.037%201.138a.353.353%200%200%200-.1.201h-.2c-.1.05-.05.177-.151.278.226.15.5-.2.654%200%20.05%200-.1.05-.2.05-.05%200-.05.1-.1.1H9.99c-.1.076-.2.127-.2.278a.22.22%200%200%200-.226.1%209%209%200%200%200%203.144-.58%207.687%207.687%200%200%200%202.088-1.566.177.177%200%200%201%20.05.1c-.147.439-.43.82-.806%201.084-.277.153-.478.38-.7.481a4.05%204.05%200%200%200-.428.277c-.632.198-1.281.337-1.939.414l-.305.044c-.225.033-.449.07-.671.109l-1.993-1.143a.648.648%200%200%201-.288-.413.568.568%200%200%200%20.094-.063.267.267%200%200%200-.113-.071v-.653a12.74%2012.74%200%200%200%203.038-.945%208.731%208.731%200%200%200-3.037-1.349v-1.52c.555.09%201.103.222%201.639.393a6.41%206.41%200%200%201%201.182.58c.147.14.307.268.478.379a.908.908%200%200%200%20.8.05h.33a3.954%203.954%200%200%200%201.937-.909c0%20.05.05.05.1.05-.078.4-.223.785-.428%201.137.003.05-.048.152.053.203Zm2.817%203.584c.251-.1.4-.277.629-.378-.05.05-.05.151-.1.201a3.71%203.71%200%200%200-.528.402%2016%2016%200%200%200-1.585%201.616c-.252.302-.528.58-.8.859-.096.09-.2.172-.31.246l-2.527-1.456c.36.03.721.013%201.076-.053.294-.084.58-.193.855-.329v.1c.7-.277%201.232-.909%201.937-1.136.025%200%20.126.1.226.05a1.885%201.885%200%200%201%201.509-.702c0%20.05%200%20.1.05.1h.025c-.151.127-.327.251-.5.378-.057.053-.007.102.043.102Zm-8.908-6.188v-.187a5.795%205.795%200%200%201%201.588-.188c.158-.026.32-.026.478%200a5.84%205.84%200%200%200-2.066.375Zm30.6%205.109a.67.67%200%200%201-.306.526L27.913%2038.08a32.214%2032.214%200%200%201-3.408-1.189%202.847%202.847%200%200%201-.05-2.254c.08-.309.198-.607.352-.886.025-.025.05-.05.05-.076a.025.025%200%200%200%20.025-.025%204.33%204.33%200%200%201%20.377-.558l.015-.015.02-.02.015-.016c0-.025.025-.05.05-.076.025-.052.075-.077.1-.127a3.78%203.78%200%200%201%20.579-.502c.213-.077.431-.136.654-.178.811.06%201.617.171%202.415.33a.753.753%200%200%201%20.277.1c.301.06.612.041.905-.05a1.135%201.135%200%200%200%20.855-.709%201.22%201.22%200%200%200%20.05-1.064c-.178-.276-.013-.438.181-.592l.068-.055c.086-.06.164-.134.231-.216.126-.254-.1-.402-.151-.633-.05-.1-.226-.05-.327-.2.352-.152.855-.433.629-.861-.151-.228-.377-.633-.1-.86.352-.201.855-.152%201.006-.483a1.146%201.146%200%200%200-.292-1.088l-.075-.108a4.776%204.776%200%200%201-.211-.322%206.934%206.934%200%200%200-.528-.76%204.32%204.32%200%200%201-.528-1.014c-.151-.378.05-.708.05-1.087a6.397%206.397%200%200%200-.327-2.153c-.126-.354-.176-.734-.327-1.064a1.127%201.127%200%200%200-.226-.582.376.376%200%200%201%200-.329c.205-.145.399-.306.579-.482a.571.571%200%200%200-.2-.707c-.327-.152-.3.329-.528.43h-.151c-.05-.126.05-.177.151-.278%200-.05%200-.151-.05-.151-.2%200-.377-.052-.428-.152a3.956%203.956%200%200%200-1.861-1.291c.188.058.382.091.579.1.338.072.69.036%201.006-.1.227-.077.277-.482.377-.709a.806.806%200%200%200-.151-.634%202.192%202.192%200%200%200-.906-.759%209.094%209.094%200%200%201-.679-.354.952.952%200%200%200-.251-.127c-2.965-1.49-9.069-.2-9.534%200h-.009a8.23%208.23%200%200%200-1.249.477%203.92%203.92%200%200%200-2.365%202.475%203.84%203.84%200%200%200-1.333%201.515c-.428.804-1.056%201.515-.956%202.424.1.783.277%201.49.428%202.298.043.273.11.542.2.803.1.278%200%20.632.151.859.075.15.025.328.227.43v.2c.05.05.05.1.151.1v.202c.435.424.807.91%201.107%201.44.1.276-.478.15-.7.05a5.983%205.983%200%200%201-1.132-.96.177.177%200%200%200-.051.1c.2.354.906.783.528%201.01-.2.1-.428-.151-.629.05-.05.077%200%20.178%200%20.278-.277-.2-.578-.1-.855-.2-.2-.05-.252-.429-.478-.429a15.135%2015.135%200%200%200-1.811-.328%2015.1%2015.1%200%200%200-1.739-.161V14.766a.61.61%200%200%201%20.306-.526l14.987-8.796%2014.994%208.712a.606.606%200%200%201%20.306.526V31.68Zm-7.954-8.295a.325.325%200%200%201-.282.15c-.1.085-.194.176-.282.274.1%200%200%20.15.1.15-.205.224.077.697-.205.796-.37.1-.758.1-1.127%200a.721.721%200%200%201%20.167-.016h.085a.38.38%200%200%200%20.337-.133v-.2c0-.05-.051-.05-.1-.05a.16.16%200%200%201-.1.05.225.225%200%200%200-.154-.201.804.804%200%200%201-.718-.274.668.668%200%200%201%20.436-.05c.128%200%20.077-.225.231-.324h.154c.307-.373.871-.473.974-.846%200-.1-.282-.1-.487-.15a2.253%202.253%200%200%200-.82.05c-.36.05-.712.142-1.051.274.28-.206.592-.366.923-.472.232-.09.473-.158.718-.201l.132-.026.133-.027a.968.968%200%200%201%20.556%200c.231.1.615.1.666.248.1.275-.154.548-.435.747-.057.08.149.136.149.231Z'/%3e%3cpath%20fill='%23FCC63A'%20d='M55.56%200H30c-1.105%200-2%20.899-2%202.008v9.34c0%201.108.895%202.007%202%202.007h25.56c1.105%200%202-.899%202-2.008V2.008a2.004%202.004%200%200%200-2-2.008Z'/%3e%3cpath%20fill='%23161616'%20d='M30.562%2011.213V2.325h2.921c.97%200%201.732.237%202.289.711.565.474.847%201.122.847%201.943%200%20.813-.282%201.456-.847%201.93-.557.474-1.32.71-2.289.71h-1.125v3.594h-1.796Zm2.997-7.351h-1.201v2.221h1.2c.38%200%20.675-.097.886-.29.22-.197.329-.476.329-.84%200-.338-.11-.605-.329-.8-.21-.194-.506-.291-.885-.291Zm4.671%207.35V2.326h2.707c.97%200%201.736.237%202.301.711.565.474.847%201.122.847%201.943%200%20.532-.126.999-.379%201.396a2.4%202.4%200%200%201-1.037.902l2.782%203.936h-2.15L40.949%207.62h-.923v3.593H38.23Zm2.808-7.35h-1.012v2.221h1.012c.38%200%20.674-.097.885-.29.21-.197.316-.476.316-.84%200-.338-.105-.605-.316-.8-.21-.194-.506-.291-.885-.291Zm9.511-1.79c.69%200%201.323.126%201.896.38.582.254%201.08.593%201.492%201.016.414.423.734.923.962%201.498a4.81%204.81%200%200%201%20.341%201.803c0%20.635-.114%201.24-.341%201.815a4.504%204.504%200%200%201-.962%201.486%204.67%204.67%200%200%201-1.492%201.015c-.598.26-1.244.39-1.896.382a4.721%204.721%200%200%201-3.402-1.397%204.504%204.504%200%200%201-.961-1.486%204.892%204.892%200%200%201-.342-1.815c0-.635.114-1.236.342-1.803a4.473%204.473%200%200%201%20.961-1.498%204.72%204.72%200%200%201%203.402-1.397Zm0%207.706a2.79%202.79%200%200%200%201.138-.229c.354-.16.653-.371.898-.634.252-.271.45-.589.594-.953.145-.38.218-.785.215-1.193a3.193%203.193%200%200%200-.215-1.18%202.805%202.805%200%200%200-.595-.953A2.547%202.547%200%200%200%2051.687%204a2.664%202.664%200%200%200-1.138-.24c-.413%200-.797.08-1.151.24a2.678%202.678%200%200%200-.91.635c-.254.276-.451.6-.582.952a3.193%203.193%200%200%200-.215%201.181c0%20.423.071.82.215%201.193.143.364.337.682.581.953.253.262.557.474.91.634.355.153.739.23%201.152.23Z'/%3e%3c/svg%3e",j1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='190'%20height='48'%20fill='none'%3e%3cpath%20fill='%23929292'%20d='m57.986%2021.454%201.156-1.076c.833%201.059%201.819%201.605%202.94%201.605%201.293%200%202.04-.82%202.04-1.912%200-2.56-5.626-2.253-5.626-6.059%200-1.74%201.428-3.209%203.45-3.209%201.684%200%202.908.768%203.792%201.946l-1.19%201.041c-.697-1.007-1.547-1.553-2.584-1.553-1.105%200-1.836.751-1.836%201.74%200%202.578%205.627%202.254%205.627%206.077%200%202.031-1.581%203.363-3.655%203.363-1.768%200-3.077-.666-4.114-1.963Zm10.817-5.735H67.46l1.445-4.574h1.649l-1.751%204.574Zm4.818-3.465c-.56%200-1.02-.46-1.02-1.024a1.026%201.026%200%200%201%201.02-1.007c.56%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.73%2010.838V14.49h1.444v8.602H72.89Zm3.767-4.3c0-2.51%201.717-4.643%204.403-4.643%201.24%200%202.26.46%203.043%201.297V10.29h1.445v12.801h-1.445v-.955c-.782.836-1.802%201.297-3.043%201.297-2.686%200-4.403-2.134-4.403-4.643Zm1.53%200c0%201.825%201.224%203.276%203.043%203.276%201.19%200%202.21-.58%202.873-1.604v-3.345c-.68-1.042-1.7-1.605-2.873-1.605-1.82%200-3.043%201.45-3.043%203.277Zm18.023%202.884c-.8%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921H89.36v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.07.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v.973c.697-.768%201.581-1.314%202.856-1.314%201.921%200%203.349%201.297%203.349%203.738v5.205h-1.462v-5.154c0-1.536-.85-2.424-2.176-2.424-1.241%200-2.023.717-2.567%201.622v5.956h-1.445Zm11.052-2.884V15.82h-1.615V14.49h1.615v-2.15h1.462v2.15h2.975v1.331h-2.975v4.387c0%201.348.68%201.724%201.717%201.724.561%200%20.952-.069%201.275-.205v1.297c-.408.17-.867.239-1.479.239-1.904%200-2.975-.956-2.975-3.055Zm7.377-7.954c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm3.377-8.602h1.615v-1.058c0-1.844%201.207-3.14%203.043-3.14.952%200%201.7.34%202.21.835l-.901%201.059a1.638%201.638%200%200%200-1.292-.58c-.935%200-1.598.682-1.598%201.792v1.092h2.975v1.331h-2.975v7.271h-1.462v-7.27h-1.615V14.49Zm8.543-2.236c-.561%200-1.02-.46-1.02-1.024a1.024%201.024%200%200%201%201.02-1.007c.561%200%201.003.46%201.003%201.007a1.01%201.01%200%200%201-1.003%201.024Zm-.731%2010.838V14.49h1.445v8.602h-1.445Zm12.115-1.416c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm6.274%207.697V14.49h1.445v1.075c.629-.75%201.411-1.246%202.499-1.246.272%200%20.527.034.731.103v1.502a3.1%203.1%200%200%200-.85-.12c-1.122%200-1.853.58-2.38%201.451v5.837h-1.445Zm13.685.342c-1.683%200-2.822-.956-2.822-2.458%200-1.331.986-2.287%202.822-2.577l2.873-.478v-.598c0-1.195-.85-1.877-2.057-1.877-1.003%200-1.836.444-2.329%201.195l-1.088-.837c.748-1.024%201.955-1.655%203.451-1.655%202.176%200%203.468%201.28%203.468%203.174v5.77h-1.445V22c-.646.905-1.717%201.434-2.873%201.434Zm-1.377-2.51c0%20.735.629%201.298%201.615%201.298%201.139%200%202.04-.598%202.635-1.588v-1.638l-2.533.444c-1.19.188-1.717.734-1.717%201.485Zm7.252-6.434h1.564l2.737%207.083%202.737-7.083h1.564l-3.349%208.602h-1.904l-3.349-8.602Zm17.856%207.186c-.799%201.075-2.074%201.758-3.672%201.758-2.89%200-4.675-2.134-4.675-4.643%200-2.611%201.666-4.642%204.318-4.642%202.329%200%203.842%201.587%203.842%203.738%200%20.34-.051.682-.102.921h-6.562v.034c0%201.895%201.292%203.277%203.213%203.277a3.143%203.143%200%200%200%202.567-1.28l1.071.837Zm-4.012-6.281c-1.394%200-2.38.785-2.72%202.27h5.083c-.051-1.246-.952-2.27-2.363-2.27Zm10.185%206.673a2.891%202.891%200%200%200%202.431-1.28l1.156.888c-.799%201.075-2.04%201.758-3.604%201.758-2.839%200-4.658-2.134-4.658-4.643s1.819-4.642%204.658-4.642c1.547%200%202.805.7%203.604%201.758l-1.156.887a2.917%202.917%200%200%200-2.448-1.28c-1.836%200-3.145%201.45-3.145%203.277%200%201.843%201.309%203.277%203.162%203.277ZM58.854%2040.161V27.51h4.158c2.772%200%204.464%201.428%204.464%203.777%200%202.331-1.692%203.76-4.464%203.76H61.41v5.114h-2.556Zm4.266-10.464h-1.71v3.162h1.71c1.08%200%201.728-.578%201.728-1.608%200-.958-.648-1.554-1.728-1.554Zm6.129%2010.464v-9.109h2.286v.904c.594-.615%201.368-1.084%202.394-1.084.306%200%20.576.054.792.126v2.404a3.922%203.922%200%200%200-1.008-.127c-1.116%200-1.836.614-2.178%201.175v5.71h-2.286Zm11.386-9.47c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm13.172-.235c1.44%200%202.574-.704%203.294-1.735l2.016%201.555c-1.152%201.572-3.024%202.584-5.31%202.584-3.978%200-6.696-3.072-6.696-6.687%200-3.614%202.718-6.686%206.696-6.686%202.286%200%204.158%201.03%205.31%202.566l-2.016%201.572c-.72-1.03-1.854-1.735-3.294-1.735-2.376%200-4.068%201.862-4.068%204.283%200%202.422%201.692%204.283%204.068%204.283Zm11.366-7.427c2.952%200%204.968%202.186%204.968%204.915%200%202.73-2.016%204.916-4.968%204.916s-4.968-2.187-4.968-4.916c0-2.729%202.016-4.915%204.968-4.915Zm.036%207.662c1.458%200%202.556-1.174%202.556-2.747%200-1.59-1.098-2.747-2.556-2.747-1.512%200-2.628%201.157-2.628%202.747%200%201.59%201.116%202.747%202.628%202.747Zm7.018%201.808v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm11.091%200v-9.109h2.286v.723c.63-.614%201.476-1.084%202.682-1.084%201.962%200%203.528%201.355%203.528%204.048v5.422h-2.322v-5.332c0-1.21-.666-1.97-1.782-1.97-1.152%200-1.764.777-2.106%201.356v5.946h-2.286Zm19.444-1.482c-.846%201.138-2.25%201.843-3.96%201.843-3.222%200-5.04-2.259-5.04-4.916%200-2.692%201.692-4.915%204.662-4.915%202.52%200%204.176%201.698%204.176%204.084%200%20.506-.072.994-.144%201.301h-6.354c.144%201.5%201.188%202.386%202.736%202.386.99%200%201.8-.434%202.286-1.085l1.638%201.302Zm-4.338-6.073c-1.116%200-1.872.543-2.178%201.735h4.086c-.036-.903-.702-1.735-1.908-1.735Zm10.696%205.747c.882%200%201.584-.433%202.016-1.066l1.818%201.392c-.846%201.12-2.178%201.843-3.834%201.843-3.132%200-5.004-2.259-5.004-4.916%200-2.656%201.872-4.915%205.004-4.915%201.656%200%202.988.723%203.834%201.843l-1.818%201.392c-.432-.633-1.116-1.067-2.052-1.067-1.494%200-2.592%201.157-2.592%202.747%200%201.609%201.098%202.747%202.628%202.747Zm6.204-1.518V33.15h-1.692v-2.097h1.692v-2.277h2.304v2.277h2.772v2.097h-2.772v3.686c0%201.012.54%201.41%201.44%201.41.63%200%201.044-.072%201.35-.199v2.006c-.45.199-.99.29-1.746.29-2.268%200-3.348-1.284-3.348-3.507Z'/%3e%3cpath%20fill='%237C7C7C'%20d='M34.992%2014.155%2019.998%205.442%205.004%2014.237a.607.607%200%200%200-.306.527V31.78a.67.67%200%200%200%20.306.526l14.992%208.635L34.99%2032.2a.667.667%200%200%200%20.306-.526v-16.99a.608.608%200%200%200-.304-.53Z'/%3e%3cpath%20fill='%23F6F6F6'%20d='M14.641%2014.656%209.612%2023.32l-4.557-9.212%205.39-3.125%204.49%203.173-.294.502Zm20.656%2017.049V14.679a.604.604%200%200%200-.306-.526L19.998%205.442'/%3e%3cpath%20fill='%23929292'%20d='M4.7%2031.705%2020%205.442v35.504l-14.996-8.64a.667.667%200%200%201-.306-.526V14.765l.002%2016.94Zm24.67-20.819%205.457%203.168-4.489%209.187-5.387-9.273%204.418-3.083v.001Z'/%3e%3cpath%20fill='%23CECECE'%20d='M39.606%2011.348%2020.416.284a.93.93%200%200%200-.832%200L.394%2011.348a.89.89%200%200%200-.394.698v22.088a.891.891%200%200%200%20.394.703l19.189%2011.064a.929.929%200%200%200%20.832%200l19.191-11.064a.888.888%200%200%200%20.394-.703V12.046a.893.893%200%200%200-.394-.698ZM10.789%2029.176h.079c-.042%200-.079.007-.079.05%200%20.1.151%200%20.2.1a.91.91%200%200%200-.629.277c0%20.05.1.05.151.05-.075.1-.226.05-.277.153a.176.176%200%200%200%20.1.05c-.05%200-.1%200-.1.05v.153c-.126%200-.176.1-.277.15.2.153.327%200%20.528%200-.528.201-.956.482-1.484.633-.1%200%200%20.15-.1.15.151.101.227-.05.377-.05-.654.38-1.333.703-2.037%201.138a.353.353%200%200%200-.1.201h-.2c-.1.05-.05.177-.151.278.226.15.5-.2.654%200%20.05%200-.1.05-.2.05-.05%200-.05.1-.1.1H6.99c-.1.076-.2.127-.2.278a.22.22%200%200%200-.226.1%209%209%200%200%200%203.144-.58%207.687%207.687%200%200%200%202.088-1.566.177.177%200%200%201%20.05.1c-.147.439-.43.82-.806%201.084-.277.153-.478.38-.7.481a4.05%204.05%200%200%200-.428.277c-.632.198-1.281.337-1.939.414l-.305.044c-.225.033-.449.07-.671.109l-1.993-1.143a.648.648%200%200%201-.288-.413.568.568%200%200%200%20.094-.063.267.267%200%200%200-.113-.071v-.653a12.74%2012.74%200%200%200%203.038-.945%208.731%208.731%200%200%200-3.037-1.349v-1.52c.555.09%201.103.222%201.639.393.413.152.809.346%201.182.58.147.14.307.268.478.379a.908.908%200%200%200%20.8.05h.33a3.954%203.954%200%200%200%201.937-.909c0%20.05.05.05.1.05-.078.4-.223.785-.428%201.137.003.05-.048.152.053.203Zm2.817%203.584c.251-.1.4-.277.629-.378-.05.05-.05.151-.1.201a3.71%203.71%200%200%200-.528.402%2016%2016%200%200%200-1.585%201.616c-.252.302-.528.58-.8.859-.096.09-.2.172-.31.246L8.385%2034.25c.36.03.721.013%201.076-.053.294-.084.58-.193.855-.329v.1c.7-.277%201.232-.909%201.937-1.136.025%200%20.126.1.226.05a1.885%201.885%200%200%201%201.509-.702c0%20.05%200%20.1.05.1h.025c-.151.127-.327.251-.5.378-.057.053-.007.102.043.102Zm-8.908-6.188v-.187a5.795%205.795%200%200%201%201.588-.188c.158-.026.32-.026.478%200a5.84%205.84%200%200%200-2.066.375Zm30.6%205.109a.67.67%200%200%201-.306.526L24.913%2038.08a32.214%2032.214%200%200%201-3.408-1.189%202.847%202.847%200%200%201-.05-2.254c.08-.309.198-.607.352-.886.025-.025.05-.05.05-.076a.025.025%200%200%200%20.025-.025%204.33%204.33%200%200%201%20.377-.558l.015-.015.02-.02.015-.016c0-.025.025-.05.05-.076.025-.052.075-.077.1-.127a3.78%203.78%200%200%201%20.579-.502c.213-.077.431-.136.654-.178.811.06%201.617.171%202.415.33a.753.753%200%200%201%20.277.1c.301.06.612.041.905-.05a1.135%201.135%200%200%200%20.855-.709%201.22%201.22%200%200%200%20.05-1.064c-.178-.276-.013-.438.181-.592l.068-.055c.086-.06.164-.134.231-.216.126-.254-.1-.402-.151-.633-.05-.1-.226-.05-.327-.2.352-.152.855-.433.629-.861-.151-.228-.377-.633-.1-.86.352-.201.855-.152%201.006-.483a1.146%201.146%200%200%200-.292-1.088l-.075-.108a4.776%204.776%200%200%201-.211-.322%206.934%206.934%200%200%200-.528-.76%204.32%204.32%200%200%201-.528-1.014c-.151-.378.05-.708.05-1.087a6.397%206.397%200%200%200-.327-2.153c-.126-.354-.176-.734-.327-1.064a1.127%201.127%200%200%200-.226-.582.376.376%200%200%201%200-.329c.205-.145.399-.306.579-.482a.571.571%200%200%200-.2-.707c-.327-.152-.3.329-.528.43h-.151c-.05-.126.05-.177.151-.278%200-.05%200-.151-.05-.151-.2%200-.377-.052-.428-.152a3.956%203.956%200%200%200-1.861-1.291c.188.058.382.091.579.1.338.072.69.036%201.006-.1.227-.077.277-.482.377-.709a.806.806%200%200%200-.151-.634%202.192%202.192%200%200%200-.906-.759%209.094%209.094%200%200%201-.679-.354.952.952%200%200%200-.251-.127c-2.965-1.49-9.069-.2-9.534%200h-.009a8.23%208.23%200%200%200-1.249.477%203.92%203.92%200%200%200-2.365%202.475%203.84%203.84%200%200%200-1.333%201.515c-.428.804-1.056%201.515-.956%202.424.1.783.277%201.49.428%202.298.043.273.11.542.2.803.1.278%200%20.632.151.859.075.15.025.328.227.43v.2c.05.05.05.1.151.1v.202c.435.424.807.91%201.107%201.44.1.276-.478.15-.7.05a5.983%205.983%200%200%201-1.132-.96.177.177%200%200%200-.051.1c.2.354.906.783.528%201.01-.2.1-.428-.151-.629.05-.05.077%200%20.178%200%20.278-.277-.2-.578-.1-.855-.2-.2-.05-.252-.429-.478-.429a15.135%2015.135%200%200%200-1.811-.328%2015.1%2015.1%200%200%200-1.739-.161V14.766a.61.61%200%200%201%20.306-.526l14.987-8.796%2014.994%208.712a.606.606%200%200%201%20.306.526V31.68Zm-7.954-8.295a.325.325%200%200%201-.282.15c-.1.085-.194.176-.282.274.1%200%200%20.15.1.15-.205.224.077.697-.205.796-.37.1-.758.1-1.127%200a.721.721%200%200%201%20.167-.016h.085a.38.38%200%200%200%20.337-.133v-.2c0-.05-.051-.05-.1-.05a.16.16%200%200%201-.1.05.225.225%200%200%200-.154-.201.804.804%200%200%201-.718-.274.668.668%200%200%201%20.436-.05c.128%200%20.077-.225.231-.324h.154c.307-.373.871-.473.974-.846%200-.1-.282-.1-.487-.15a2.253%202.253%200%200%200-.82.05c-.36.05-.712.142-1.051.274.28-.206.592-.366.923-.472.232-.09.473-.158.718-.201l.132-.026.133-.027a.968.968%200%200%201%20.556%200c.231.1.615.1.666.248.1.275-.154.548-.435.747-.057.08.149.136.149.231Z'/%3e%3cpath%20fill='%23DDD'%20d='M52.56%200H27c-1.105%200-2%20.899-2%202.008v9.34c0%201.108.895%202.007%202%202.007h25.56c1.105%200%202-.899%202-2.008V2.008a2.004%202.004%200%200%200-2-2.008Z'/%3e%3cpath%20fill='%23929292'%20d='M27.562%2011.213V2.325h2.921c.97%200%201.732.237%202.289.711.565.474.847%201.122.847%201.943%200%20.813-.282%201.456-.847%201.93-.557.474-1.32.71-2.289.71h-1.125v3.594h-1.796Zm2.997-7.351h-1.201v2.221h1.2c.38%200%20.675-.097.886-.29.22-.197.329-.476.329-.84%200-.338-.11-.605-.329-.8-.21-.194-.506-.291-.885-.291Zm4.671%207.35V2.326h2.707c.97%200%201.736.237%202.301.711.565.474.847%201.122.847%201.943%200%20.532-.126.999-.379%201.396a2.4%202.4%200%200%201-1.037.902l2.782%203.936h-2.15L37.949%207.62h-.923v3.593H35.23Zm2.808-7.35h-1.012v2.221h1.012c.38%200%20.674-.097.885-.29.21-.197.316-.476.316-.84%200-.338-.105-.605-.316-.8-.21-.194-.506-.291-.885-.291Zm9.511-1.79c.69%200%201.323.126%201.896.38.582.254%201.08.593%201.492%201.016.414.423.734.923.962%201.498a4.81%204.81%200%200%201%20.341%201.803c0%20.635-.114%201.24-.341%201.815a4.504%204.504%200%200%201-.962%201.486%204.67%204.67%200%200%201-1.492%201.015c-.598.26-1.244.39-1.896.382a4.721%204.721%200%200%201-3.402-1.397%204.504%204.504%200%200%201-.961-1.486%204.892%204.892%200%200%201-.342-1.815c0-.635.114-1.236.342-1.803a4.473%204.473%200%200%201%20.961-1.498%204.72%204.72%200%200%201%203.402-1.397Zm0%207.706a2.79%202.79%200%200%200%201.138-.229c.354-.16.653-.371.898-.634.252-.271.45-.589.594-.953.145-.38.218-.785.215-1.193a3.193%203.193%200%200%200-.215-1.18%202.805%202.805%200%200%200-.595-.953A2.547%202.547%200%200%200%2048.687%204a2.664%202.664%200%200%200-1.138-.24c-.413%200-.797.08-1.151.24a2.678%202.678%200%200%200-.91.635c-.254.276-.451.6-.582.952a3.193%203.193%200%200%200-.215%201.181c0%20.423.071.82.215%201.193.143.364.337.682.581.953.253.262.557.474.91.634.355.153.739.23%201.152.23Z'/%3e%3c/svg%3e",Sc=({disabled:t,onClick:e})=>v.jsx(X.Button,{disabled:t,className:"pro-connect-button",onClick:e,style:{backgroundImage:`url("${t?j1:L1}")`}});u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);const K1=u.createContext({}),ne=typeof document<"u"?u.useLayoutEffect:()=>{};var Xi;const H1=(Xi=u.useInsertionEffect)!==null&&Xi!==void 0?Xi:ne;function be(t){const e=u.useRef(null);return H1(()=>{e.current=t},[t]),u.useCallback((...r)=>{const n=e.current;return n==null?void 0:n(...r)},[])}function V1(t){let[e,r]=u.useState(t),n=u.useRef(null),i=be(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}e===a.value?i():r(a.value)});ne(()=>{n.current&&i()});let o=be(a=>{n.current=a(e),i()});return[e,o]}const Zn={prefix:String(Math.round(Math.random()*1e10)),current:0},Fc=u.createContext(Zn),z1=u.createContext(!1);let U1=!!(typeof window<"u"&&window.document&&window.document.createElement),Ji=new WeakMap;function W1(t=!1){let e=u.useContext(Fc),r=u.useRef(null);if(r.current===null&&!t){var n,i;let o=(i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(n=i.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(o){let a=Ji.get(o);a==null?Ji.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==a.state&&(e.current=a.id,Ji.delete(o))}r.current=++e.current}return r.current}function Z1(t){let e=u.useContext(Fc);e===Zn&&!U1&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=W1(!!t),n=e===Zn&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function G1(t){let e=u.useId(),[r]=u.useState(sn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Zn.prefix}`;return t||`${n}-${e}`}const q1=typeof u.useId=="function"?G1:Z1;function Y1(){return!1}function X1(){return!0}function J1(t){return()=>{}}function sn(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(J1,Y1,X1):u.useContext(z1)}let Q1=!!(typeof window<"u"&&window.document&&window.document.createElement),sr=new Map,Br;typeof FinalizationRegistry<"u"&&(Br=new FinalizationRegistry(t=>{sr.delete(t)}));function Se(t){let[e,r]=u.useState(t),n=u.useRef(null),i=q1(e),o=u.useRef(null);if(Br&&Br.register(o,i),Q1){const a=sr.get(i);a&&!a.includes(n)?a.push(n):sr.set(i,[n])}return ne(()=>{let a=i;return()=>{Br&&Br.unregister(o),sr.delete(a)}},[i]),u.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),i}function e5(t,e){if(t===e)return t;let r=sr.get(t);if(r)return r.forEach(i=>i.current=e),e;let n=sr.get(e);return n?(n.forEach(i=>i.current=t),t):e}function ht(t=[]){let e=Se(),[r,n]=V1(e),i=u.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return ne(i,[e,i,...t]),r}function gt(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const ae=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Te=t=>t&&"window"in t&&t.window===t?t:ae(t).defaultView||window;function t5(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function r5(t){return t5(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let n5=!1;function pi(){return n5}function ue(t,e){if(!pi())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:r5(r)?r=r.host:r=r.parentNode}return!1}const De=(t=document)=>{var e;if(!pi())return t.activeElement;let r=t.activeElement;for(;r&&"shadowRoot"in r&&(!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement);)r=r.shadowRoot.activeElement;return r};function oe(t){return pi()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class i5{get currentNode(){return this._currentNode}set currentNode(e){if(!ue(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=e,i=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=n,l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(l),l.currentNode=i,this._currentSetFor.add(l),n=i=a.host}else n=n.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=r}get doc(){return this._doc}firstChild(){let e=this.currentNode,r=this.nextNode();return ue(e,r)?(r&&(this.currentNode=r),r):(this.currentNode=e,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const r=e.previousNode();if(r){if(r.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(r)),o===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,r,n,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const s=a.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var l;if(typeof this.filter=="function")return this.filter(a);if(!((l=this.filter)===null||l===void 0)&&l.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=r,this.filter=i??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(e.createTreeWalker(r,n,this._acceptNode));const o=r.shadowRoot;if(o){const a=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function o5(t,e,r,n){return pi()?new i5(t,e,r,n):t.createTreeWalker(e,r,n)}function $c(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=$c(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ve(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=$c(t))&&(n&&(n+=" "),n+=e);return n}function ie(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let i in n){let o=e[i],a=n[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=gt(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?e[i]=ve(o,a):i==="id"&&o&&a?e.id=e5(o,a):e[i]=a!==void 0?a:o}}return e}function ka(...t){return t.length===1&&t[0]?t[0]:e=>{let r=!1;const n=t.map(i=>{const o=Ml(i,e);return r||(r=typeof o=="function"),o});if(r)return()=>{n.forEach((i,o)=>{typeof i=="function"?i():Ml(t[o],null)})}}}function Ml(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}const a5=new Set(["id"]),l5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),s5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),c5=new Set(["dir","lang","hidden","inert","translate"]),Rl=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),u5=/^(data-.*)$/;function he(t,e={}){let{labelable:r,isLink:n,global:i,events:o=i,propNames:a}=e,l={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a5.has(s)||r&&l5.has(s)||n&&s5.has(s)||i&&c5.has(s)||o&&Rl.has(s)||s.endsWith("Capture")&&Rl.has(s.slice(0,-7))||a!=null&&a.has(s)||u5.test(s))&&(l[s]=t[s]);return l}function Ve(t){if(d5())t.focus({preventScroll:!0});else{let e=f5(t);t.focus(),h5(e)}}let hn=null;function d5(){if(hn==null){hn=!1;try{document.createElement("div").focus({get preventScroll(){return hn=!0,!0}})}catch{}}return hn}function f5(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function h5(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}function gi(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let r=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(r)&&r.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function Ia(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function rt(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const vt=rt(function(){return Ia(/^Mac/i)}),p5=rt(function(){return Ia(/^iPhone/i)}),_c=rt(function(){return Ia(/^iPad/i)||vt()&&navigator.maxTouchPoints>1}),vi=rt(function(){return p5()||_c()}),g5=rt(function(){return vt()||vi()}),Oa=rt(function(){return gi(/AppleWebKit/i)&&!Pc()}),Pc=rt(function(){return gi(/Chrome/i)}),Na=rt(function(){return gi(/Android/i)}),v5=rt(function(){return gi(/Firefox/i)}),b5=u.createContext({isNative:!0,open:C5,useHref:t=>t});function bi(){return u.useContext(b5)}function m5(t,e){let r=t.getAttribute("target");return(!r||r==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Pt(t,e,r=!0){var n,i;let{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}=e;v5()&&(!((i=window.event)===null||i===void 0||(n=i.type)===null||n===void 0)&&n.startsWith("key"))&&t.target==="_blank"&&(vt()?o=!0:a=!0);let c=Oa()&&vt()&&!_c()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});Pt.isOpening=r,Ve(t),t.dispatchEvent(c),Pt.isOpening=!1}Pt.isOpening=!1;function y5(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function C5(t,e){y5(t,r=>Pt(r,e))}function Ma(t){let e=bi();var r;const n=e.useHref((r=t==null?void 0:t.href)!==null&&r!==void 0?r:"");return{href:t!=null&&t.href?n:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}function E5(t,e,r,n){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&m5(t.currentTarget,t)&&r&&(t.preventDefault(),e.open(t.currentTarget,t,r,n))}let ut=new Map,zo=new Set;function Bl(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{if(!t(n)||!n.target)return;let i=ut.get(n.target);i||(i=new Set,ut.set(n.target,i),n.target.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{if(!t(n)||!n.target)return;let i=ut.get(n.target);if(i&&(i.delete(n.propertyName),i.size===0&&(n.target.removeEventListener("transitioncancel",r),ut.delete(n.target)),ut.size===0)){for(let o of zo)o();zo.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Bl():document.addEventListener("DOMContentLoaded",Bl));function w5(){for(const[t]of ut)"isConnected"in t&&!t.isConnected&&ut.delete(t)}function Ac(t){requestAnimationFrame(()=>{w5(),ut.size===0?t():zo.add(t)})}function mi(){let t=u.useRef(new Map),e=u.useCallback((i,o,a,l)=>{let s=l!=null&&l.once?(...c)=>{t.current.delete(a),a(...c)}:a;t.current.set(a,{type:o,eventTarget:i,fn:s,options:l}),i.addEventListener(o,s,l)},[]),r=u.useCallback((i,o,a,l)=>{var s;let c=((s=t.current.get(a))===null||s===void 0?void 0:s.fn)||a;i.removeEventListener(o,c,l),t.current.delete(a)},[]),n=u.useCallback(()=>{t.current.forEach((i,o)=>{r(i.eventTarget,i.type,o,i.options)})},[r]);return u.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function yi(t,e){let{id:r,"aria-label":n,"aria-labelledby":i}=t;return r=Se(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!n&&!i&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":i}}function nt(t){const e=u.useRef(null),r=u.useRef(void 0),n=u.useCallback(i=>{if(typeof t=="function"){const o=t,a=o(i);return()=>{typeof a=="function"?a():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return u.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,r.current&&(r.current(),r.current=void 0),i!=null&&(r.current=n(i))}}),[n])}function Ll(t,e){const r=u.useRef(!0),n=u.useRef(null);ne(()=>(r.current=!0,()=>{r.current=!1}),[]),ne(()=>{r.current?r.current=!1:(!n.current||e.some((i,o)=>!Object.is(i,n[o])))&&t(),n.current=e},e)}function D5(){return typeof window.ResizeObserver<"u"}function Uo(t){const{ref:e,box:r,onResize:n}=t;u.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(D5()){const o=new window.ResizeObserver(a=>{a.length&&n()});return o.observe(i,{box:r}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e,r])}function Tc(t,e){ne(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function Zr(t,e){if(!t)return!1;let r=window.getComputedStyle(t),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&e&&(n=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),n}function kc(t,e){let r=t;for(Zr(r,e)&&(r=r.parentElement);r&&!Zr(r,e);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function x5(t,e){const r=[];for(;t&&t!==document.documentElement;)Zr(t,e)&&r.push(t),t=t.parentElement;return r}let S5=0;const Qi=new Map;function F5(t){let[e,r]=u.useState();return ne(()=>{if(!t)return;let n=Qi.get(t);if(n)r(n.element.id);else{let i=`react-aria-description-${S5++}`;r(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),n={refCount:0,element:o},Qi.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Qi.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function pn(t,e,r,n){let i=be(r),o=r==null;u.useEffect(()=>{if(o||!t.current)return;let a=t.current;return a.addEventListener(e,i,n),()=>{a.removeEventListener(e,i,n)}},[t,e,n,o,i])}function Ic(t,e){let r=jl(t,e,"left"),n=jl(t,e,"top"),i=e.offsetWidth,o=e.offsetHeight,a=t.scrollLeft,l=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(t),y=a+parseInt(c,10),h=l+parseInt(s,10),b=y+t.clientWidth,m=h+t.clientHeight,C=parseInt(d,10)||0,E=parseInt(p,10)||0,F=parseInt(f,10)||0,x=parseInt(g,10)||0;r<=a+x?a=r-parseInt(c,10)-x:r+i>b-F&&(a+=r+i-b+F),n<=h+C?l=n-parseInt(s,10)-C:n+o>m-E&&(l+=n+o-m+E),t.scrollLeft=a,t.scrollTop=l}function jl(t,e,r){const n=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[n],e.offsetParent!==t);){if(e.offsetParent.contains(t)){i-=t[n];break}e=e.offsetParent}return i}function Kl(t,e){if(t&&document.contains(t)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let s=x5(t);for(let c of s)Ic(c,t)}else{var r;let{left:s,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(c-f)>1){var n,i,o;e==null||(i=e.containingElement)===null||i===void 0||(n=i.scrollIntoView)===null||n===void 0||n.call(i,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}}}function Wo(t){return t.pointerType===""&&t.isTrusted?!0:Na()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function $5(t){return!Na()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function _5(t,e,r){let n=be(()=>{r&&r(e)});u.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",n),()=>{o==null||o.removeEventListener("reset",n)}},[t,n])}function P5(t){const e=u.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const A5="react-aria-clear-focus",T5="react-aria-focus";function rr(t){return vt()?t.metaKey:t.ctrlKey}function k5(t,e=!0){let[r,n]=u.useState(!0),i=r&&e;return ne(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Oc(t,i,u.useCallback(()=>n(!1),[])),i}function I5(t,e){let[r,n]=u.useState(e?"open":"closed");switch(r){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let i=r==="exiting";return Oc(t,i,u.useCallback(()=>{n(o=>o==="exiting"?"closed":o)},[])),i}function Oc(t,e,r){ne(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){r();return}let n=t.current.getAnimations();if(n.length===0){r();return}let i=!1;return Promise.all(n.map(o=>o.finished)).then(()=>{i||Mt.flushSync(()=>{r()})}).catch(()=>{}),()=>{i=!0}}},[t,e,r])}const O5=typeof Element<"u"&&"checkVisibility"in Element.prototype;function N5(t){const e=Te(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,i=r!=="none"&&n!=="hidden"&&n!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:a,visibility:l}=o(t);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function M5(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Ra(t,e){return O5?t.checkVisibility()&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&N5(t)&&M5(t,e)&&(!t.parentElement||Ra(t.parentElement,t))}const Ba=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],R5=Ba.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ba.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const B5=Ba.join(':not([hidden]):not([tabindex="-1"]),');function Nc(t){return t.matches(R5)&&Ra(t)&&!Mc(t)}function L5(t){return t.matches(B5)&&Ra(t)&&!Mc(t)}function Mc(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function Ci(t,e,r){let[n,i]=u.useState(t||e),o=u.useRef(t!==void 0),a=t!==void 0;u.useEffect(()=>{let c=o.current;c!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let l=a?t:n,s=u.useCallback((c,...d)=>{let f=(p,...g)=>{r&&(Object.is(l,p)||r(p,...g)),a||(l=p)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let h=c(a?l:g,...y);return f(h,...d),a?g:h})):(a||i(c),f(c,...d))},[a,l,r]);return[l,s]}function Zo(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}const Gr=Symbol("default");function it({values:t,children:e}){for(let[r,n]of t)e=u.createElement(r.Provider,{value:n},e);return e}function Fe(t){let{className:e,style:r,children:n,defaultClassName:i,defaultChildren:o,defaultStyle:a,values:l}=t;return u.useMemo(()=>{let s,c,d;return typeof e=="function"?s=e({...l,defaultClassName:i}):s=e,typeof r=="function"?c=r({...l,defaultStyle:a||{}}):c=r,typeof n=="function"?d=n({...l,defaultChildren:o}):n==null?d=o:d=n,{className:s??i,style:c||a?{...a,...c}:void 0,children:d??o,"data-rac":""}},[e,r,n,i,o,a,l])}function Ei(t,e){let r=u.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||Gr;if(!r.slots[n]){let i=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return r.slots[n]}return r}function Xe(t,e,r){let n=Ei(r,t.slot)||{},{ref:i,...o}=n,a=nt(u.useMemo(()=>ka(e,i),[e,i])),l=ie(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?l.style=s=>{let c=typeof o.style=="function"?o.style(s):o.style,d={...s.defaultStyle,...c},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:l.style={...o.style,...t.style}),[l,a]}function La(t=!0){let[e,r]=u.useState(t),n=u.useRef(!1),i=u.useCallback(o=>{n.current=!0,r(!!o)},[]);return ne(()=>{n.current||r(!1)},[]),[i,e]}function j5(t){const e=/^(data-.*)$/;let r={};for(const n in t)e.test(n)||(r[n]=t[n]);return r}class ja{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new ja(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,r){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=e,this.key=r}}class Ka{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),i=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?r.get(i.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r==null?void 0:r.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e==null?void 0:e.key)!==null&&r!==void 0?r:null}getItem(e){var r;return(r=this.keyMap.get(e))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}UNSTABLE_filter(e){let r=new Ka,n=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),a=null;for(let l of this.getChildren(i.key))if(Hl(l,e,this,r)){let s=l.clone();a==null&&(o.firstChildKey=s.key),r.firstKey==null&&(r.firstKey=o.key),a&&a.parentKey===s.parentKey?(a.nextKey=s.key,s.prevKey=a.key):s.prevKey=null,s.nextKey=null,r.addNode(s),a=s}a&&(a.type!=="header"?(o.lastChildKey=a.key,n==null?o.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=o.key,o.prevKey=n.key),o.nextKey=null,n=o,r.addNode(o)):(r.firstKey===o.key&&(r.firstKey=null),r.removeNode(a.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=o.key,o.prevKey=n.key,n=o,r.addNode(o))}else{let o=i.clone();Hl(o,e,this,r)&&(r.firstKey==null&&(r.firstKey=o.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===o.parentKey?(n.nextKey=o.key,o.prevKey=n.key):o.prevKey=null,o.nextKey=null,r.addNode(o),n=o)}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let i;n.prevKey!=null&&(i=r.getItem(n.prevKey),i.nextKey=null),r.removeNode(n.key),n=i}return r.lastKey=(n==null?void 0:n.key)||null,r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Hl(t,e,r,n){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let i=[...r.getChildren(t.key)][0];if(i&&e(i.textValue)){let o=i.clone();return n.addNode(o),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class Rc{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(r),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class cr extends Rc{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof cr?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,r,n;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof cr?this.parentNode.node.key:null;var a;o.prevKey=(a=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&a!==void 0?a:null;var l;o.nextKey=(l=i==null?void 0:i.node.key)!==null&&l!==void 0?l:null,o.hasChildNodes=!!this.firstChild;var s;o.firstChildKey=(s=(r=this.firstVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null;var c;if(o.lastChildKey=(c=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&c!==void 0?c:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let p=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(p!==i.node.colIndex){let g=i.getMutableNode();g.colIndex=p}}}setProps(e,r,n,i){let o=this.getMutableNode(),{value:a,textValue:l,id:s,...c}=e;if(c.ref=r,o.props=c,o.rendered=n,o.render=i,o.value=a,o.textValue=l||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}c.colSpan!=null&&(o.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(r){let n=r==="none";if(e.isHidden!==n){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let a=e.previousVisibleSibling,l=e.nextVisibleSibling;a&&e.ownerDocument.markDirty(a),l&&e.ownerDocument.markDirty(l),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new ja(e,`react-aria-${++r.nodeId}`)}}class K5 extends Rc{get isConnected(){return this.isMounted}createElement(e){return new cr(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof cr&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof cr&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,r,n,i;this.nextCollection.commit((n=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&n!==void 0?n:null,(i=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function Bc(t){let{children:e,items:r,idScope:n,addIdAndValue:i,dependencies:o=[]}=t,a=u.useMemo(()=>new WeakMap,o);return u.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let d of r){let f=a.get(d);if(!f){f=e(d);var l,s;let p=(s=(l=f.props.id)!==null&&l!==void 0?l:d.key)!==null&&s!==void 0?s:d.id;if(p==null)throw new Error("Could not determine key for item");n&&(p=n+":"+p),f=u.cloneElement(f,i?{key:p,id:p,value:d}:{key:p}),a.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,r,a,n,i])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Gn=u.createContext(!1);function H5(t){if(u.useContext(Gn))return u.createElement(u.Fragment,null,t.children);let r=u.createElement(Gn.Provider,{value:!0},t.children);return u.createElement("template",{"data-react-aria-hidden":!0},r)}function Ha(t){let e=(r,n)=>u.useContext(Gn)?null:t(r,n);return e.displayName=t.displayName||t.name,u.forwardRef(e)}function V5(){return u.useContext(Gn)}function Va(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function Lc(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function jc(t){let e=u.useRef({isFocused:!1,observer:null});ne(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=be(n=>{t==null||t(n)});return u.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=n.target,o=a=>{if(e.current.isFocused=!1,i.disabled){let l=Va(a);r(l)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var a;(a=e.current.observer)===null||a===void 0||a.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let qn=!1;function Vl(t){for(;t&&!Nc(t);)t=t.parentElement;let e=Te(t),r=e.document.activeElement;if(!r||r===t)return;qn=!0;let n=!1,i=d=>{(d.target===r||n)&&d.stopImmediatePropagation()},o=d=>{(d.target===r||n)&&(d.stopImmediatePropagation(),!t&&!n&&(n=!0,Ve(r),s()))},a=d=>{(d.target===t||n)&&d.stopImmediatePropagation()},l=d=>{(d.target===t||n)&&(d.stopImmediatePropagation(),n||(n=!0,Ve(r),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",l,!0),e.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",l,!0),e.removeEventListener("focus",a,!0),qn=!1,n=!1},c=requestAnimationFrame(s);return s}let or="default",Go="",On=new WeakMap;function zl(t){if(vi()){if(or==="default"){const e=ae(t);Go=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}or="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";On.set(t,t.style[e]),t.style[e]="none"}}function eo(t){if(vi()){if(or!=="disabled")return;or="restoring",setTimeout(()=>{Ac(()=>{if(or==="restoring"){const e=ae(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Go||""),Go="",or="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&On.has(t)){let e=On.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),On.delete(t)}}const za=u.createContext({register:()=>{}});za.displayName="PressResponderContext";function z5(t,e){return e.get?e.get.call(t):e.value}function Kc(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function U5(t,e){var r=Kc(t,e,"get");return z5(t,r)}function W5(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Z5(t,e,r){W5(t,e),e.set(t,r)}function G5(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Ul(t,e,r){var n=Kc(t,e,"set");return G5(t,n,r),r}function q5(t){let e=u.useContext(za);if(e){let{register:r,...n}=e;t=ie(n,t),r()}return Tc(e,t.ref),t}var gn=new WeakMap;class vn{continuePropagation(){Ul(this,gn,!1)}get shouldStopPropagation(){return U5(this,gn)}constructor(e,r,n,i){Z5(this,gn,{writable:!0,value:void 0}),Ul(this,gn,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:n.currentTarget;const l=a==null?void 0:a.getBoundingClientRect();let s,c=0,d,f=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,f=n.clientY),l&&(d!=null&&f!=null?(s=d-l.left,c=f-l.top):(s=l.width/2,c=l.height/2)),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c}}const Wl=Symbol("linkClicked"),Zl="react-aria-pressable-style",Gl="data-react-aria-pressable";function wi(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:o,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...g}=q5(t),[y,h]=u.useState(!1),b=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:m,removeAllGlobalListeners:C}=mi(),E=be((D,B)=>{let U=b.current;if(l||U.didFirePressStart)return!1;let k=!0;if(U.isTriggeringEvent=!0,n){let W=new vn("pressstart",B,D);n(W),k=W.shouldStopPropagation}return r&&r(!0),U.isTriggeringEvent=!1,U.didFirePressStart=!0,h(!0),k}),F=be((D,B,U=!0)=>{let k=b.current;if(!k.didFirePressStart)return!1;k.didFirePressStart=!1,k.isTriggeringEvent=!0;let W=!0;if(i){let _=new vn("pressend",B,D);i(_),W=_.shouldStopPropagation}if(r&&r(!1),h(!1),e&&U&&!l){let _=new vn("press",B,D);e(_),W&&(W=_.shouldStopPropagation)}return k.isTriggeringEvent=!1,W}),x=be((D,B)=>{let U=b.current;if(l)return!1;if(o){U.isTriggeringEvent=!0;let k=new vn("pressup",B,D);return o(k),U.isTriggeringEvent=!1,k.shouldStopPropagation}return!0}),w=be(D=>{let B=b.current;if(B.isPressed&&B.target){B.didFirePressStart&&B.pointerType!=null&&F(mt(B.target,D),B.pointerType,!1),B.isPressed=!1,B.isOverTarget=!1,B.activePointerId=null,B.pointerType=null,C(),f||eo(B.target);for(let U of B.disposables)U();B.disposables=[]}}),S=be(D=>{d&&w(D)}),O=be(D=>{a==null||a(D)}),K=be((D,B)=>{if(a){let U=new MouseEvent("click",D);Lc(U,B),a(Va(U))}}),H=u.useMemo(()=>{let D=b.current,B={onKeyDown(k){if(to(k.nativeEvent,k.currentTarget)&&ue(k.currentTarget,oe(k.nativeEvent))){var W;Xl(oe(k.nativeEvent),k.key)&&k.preventDefault();let _=!0;if(!D.isPressed&&!k.repeat){D.target=k.currentTarget,D.isPressed=!0,D.pointerType="keyboard",_=E(k,"keyboard");let I=k.currentTarget,z=L=>{to(L,I)&&!L.repeat&&ue(I,oe(L))&&D.target&&x(mt(D.target,L),"keyboard")};m(ae(k.currentTarget),"keyup",gt(z,U),!0)}_&&k.stopPropagation(),k.metaKey&&vt()&&((W=D.metaKeyEvents)===null||W===void 0||W.set(k.key,k.nativeEvent))}else k.key==="Meta"&&(D.metaKeyEvents=new Map)},onClick(k){if(!(k&&!ue(k.currentTarget,oe(k.nativeEvent)))&&k&&k.button===0&&!D.isTriggeringEvent&&!Pt.isOpening){let W=!0;if(l&&k.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||Wo(k.nativeEvent))){let _=E(k,"virtual"),I=x(k,"virtual"),z=F(k,"virtual");O(k),W=_&&I&&z}else if(D.isPressed&&D.pointerType!=="keyboard"){let _=D.pointerType||k.nativeEvent.pointerType||"virtual",I=x(mt(k.currentTarget,k),_),z=F(mt(k.currentTarget,k),_,!0);W=I&&z,D.isOverTarget=!1,O(k),w(k)}D.ignoreEmulatedMouseEvents=!1,W&&k.stopPropagation()}}},U=k=>{var W;if(D.isPressed&&D.target&&to(k,D.target)){var _;Xl(oe(k),k.key)&&k.preventDefault();let z=oe(k),L=ue(D.target,oe(k));F(mt(D.target,k),"keyboard",L),L&&K(k,D.target),C(),k.key!=="Enter"&&Ua(D.target)&&ue(D.target,z)&&!k[Wl]&&(k[Wl]=!0,Pt(D.target,k,!1)),D.isPressed=!1,(_=D.metaKeyEvents)===null||_===void 0||_.delete(k.key)}else if(k.key==="Meta"&&(!((W=D.metaKeyEvents)===null||W===void 0)&&W.size)){var I;let z=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let L of z.values())(I=D.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){B.onPointerDown=_=>{if(_.button!==0||!ue(_.currentTarget,oe(_.nativeEvent)))return;if($5(_.nativeEvent)){D.pointerType="virtual";return}D.pointerType=_.pointerType;let I=!0;if(!D.isPressed){D.isPressed=!0,D.isOverTarget=!0,D.activePointerId=_.pointerId,D.target=_.currentTarget,f||zl(D.target),I=E(_,D.pointerType);let z=oe(_.nativeEvent);"releasePointerCapture"in z&&z.releasePointerCapture(_.pointerId),m(ae(_.currentTarget),"pointerup",k,!1),m(ae(_.currentTarget),"pointercancel",W,!1)}I&&_.stopPropagation()},B.onMouseDown=_=>{if(ue(_.currentTarget,oe(_.nativeEvent))&&_.button===0){if(c){let I=Vl(_.target);I&&D.disposables.push(I)}_.stopPropagation()}},B.onPointerUp=_=>{!ue(_.currentTarget,oe(_.nativeEvent))||D.pointerType==="virtual"||_.button===0&&!D.isPressed&&x(_,D.pointerType||_.pointerType)},B.onPointerEnter=_=>{_.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,E(mt(D.target,_),D.pointerType))},B.onPointerLeave=_=>{_.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,F(mt(D.target,_),D.pointerType,!1),S(_))};let k=_=>{if(_.pointerId===D.activePointerId&&D.isPressed&&_.button===0&&D.target){if(ue(D.target,oe(_))&&D.pointerType!=null){let I=!1,z=setTimeout(()=>{D.isPressed&&D.target instanceof HTMLElement&&(I?w(_):(Ve(D.target),D.target.click()))},80);m(_.currentTarget,"click",()=>I=!0,!0),D.disposables.push(()=>clearTimeout(z))}else w(_);D.isOverTarget=!1}},W=_=>{w(_)};B.onDragStart=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&w(_)}}else if(process.env.NODE_ENV==="test"){B.onMouseDown=_=>{if(_.button!==0||!ue(_.currentTarget,oe(_.nativeEvent)))return;if(D.ignoreEmulatedMouseEvents){_.stopPropagation();return}if(D.isPressed=!0,D.isOverTarget=!0,D.target=_.currentTarget,D.pointerType=Wo(_.nativeEvent)?"virtual":"mouse",Mt.flushSync(()=>E(_,D.pointerType))&&_.stopPropagation(),c){let z=Vl(_.target);z&&D.disposables.push(z)}m(ae(_.currentTarget),"mouseup",k,!1)},B.onMouseEnter=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;let I=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!0,I=E(_,D.pointerType)),I&&_.stopPropagation()},B.onMouseLeave=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;let I=!0;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=!1,I=F(_,D.pointerType,!1),S(_)),I&&_.stopPropagation()},B.onMouseUp=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&!D.ignoreEmulatedMouseEvents&&_.button===0&&!D.isPressed&&x(_,D.pointerType||"mouse")};let k=_=>{if(_.button===0){if(D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=!1;return}D.target&&D.target.contains(_.target)&&D.pointerType!=null||w(_),D.isOverTarget=!1}};B.onTouchStart=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;let I=Y5(_.nativeEvent);if(!I)return;D.activePointerId=I.identifier,D.ignoreEmulatedMouseEvents=!0,D.isOverTarget=!0,D.isPressed=!0,D.target=_.currentTarget,D.pointerType="touch",f||zl(D.target),E(at(D.target,_),D.pointerType)&&_.stopPropagation(),m(Te(_.currentTarget),"scroll",W,!0)},B.onTouchMove=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;if(!D.isPressed){_.stopPropagation();return}let I=ql(_.nativeEvent,D.activePointerId),z=!0;I&&Yl(I,_.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!0,z=E(at(D.target,_),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=!1,z=F(at(D.target,_),D.pointerType,!1),S(at(D.target,_))),z&&_.stopPropagation()},B.onTouchEnd=_=>{if(!ue(_.currentTarget,oe(_.nativeEvent)))return;if(!D.isPressed){_.stopPropagation();return}let I=ql(_.nativeEvent,D.activePointerId),z=!0;I&&Yl(I,_.currentTarget)&&D.pointerType!=null?(x(at(D.target,_),D.pointerType),z=F(at(D.target,_),D.pointerType),K(_.nativeEvent,D.target)):D.isOverTarget&&D.pointerType!=null&&(z=F(at(D.target,_),D.pointerType,!1)),z&&_.stopPropagation(),D.isPressed=!1,D.activePointerId=null,D.isOverTarget=!1,D.ignoreEmulatedMouseEvents=!0,D.target&&!f&&eo(D.target),C()},B.onTouchCancel=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&(_.stopPropagation(),D.isPressed&&w(at(D.target,_)))};let W=_=>{D.isPressed&&ue(oe(_),D.target)&&w({currentTarget:D.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};B.onDragStart=_=>{ue(_.currentTarget,oe(_.nativeEvent))&&w(_)}}return B},[m,l,c,C,f,w,S,F,E,x,O,K]);return u.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const D=ae(p.current);if(!D||!D.head||D.getElementById(Zl))return;const B=D.createElement("style");B.id=Zl,B.textContent=`
23
23
  @layer {
24
24
  [${Gl}] {
25
25
  touch-action: pan-x pan-y pinch-zoom;
@@ -95,5 +95,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
95
95
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nb(t,e){if(t){if(typeof t=="string")return ec(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ec(t,e)}}function ec(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ib(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function ob(t){if(Array.isArray(t))return t}function ab(t,e,r){var n=Kt(),i=eb(t,e),o=q6(t);Nt(function(){var l=d6(o,i,n),s=tb(l,2),c=s[0],d=s[1];return e.receiveHandlerId(c),r.receiveHandlerId(c),d},[n,e,i,r,o.map(function(a){return a.toString()}).join("|")])}function lb(){var t=Kt();return u.useMemo(function(){return new Q8(t)},[t])}function sb(t){var e=Kt(),r=u.useMemo(function(){return new u6(e.getBackend())},[e]);return Nt(function(){return r.dropTargetOptions=t||null,r.reconnect(),function(){return r.disconnectDropTarget()}},[t]),r}function cb(t){return u.useMemo(function(){return t.hooks.dropTarget()},[t])}function Xf(t,e){var r=Gf(t,e),n=lb(),i=sb(r.options);return ab(r,n,i),[Yf(r.collect,n,i),cb(i)]}function ub(t,e){return pb(t)||hb(t,e)||fb(t,e)||db()}function db(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
96
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fb(t,e){if(t){if(typeof t=="string")return tc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tc(t,e)}}function tc(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hb(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,l;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(s){o=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function pb(t){if(Array.isArray(t))return t}function gb(t){var e=Kt(),r=e.getMonitor(),n=qf(r,t),i=ub(n,2),o=i[0],a=i[1];return u.useEffect(function(){return r.subscribeToOffsetChange(a)}),u.useEffect(function(){return r.subscribeToStateChange(a)}),o}function Jf(t){var e=null,r=function(){return e==null&&(e=t()),e};return r}function vb(t,e){return t.filter(function(r){return r!==e})}function bb(t,e){var r=new Set,n=function(a){return r.add(a)};t.forEach(n),e.forEach(n);var i=[];return r.forEach(function(o){return i.push(o)}),i}function mb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Cb(t,e,r){return e&&yb(t.prototype,e),t}function rc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Eb=function(){function t(e){mb(this,t),rc(this,"entered",[]),rc(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return Cb(t,[{key:"enter",value:function(r){var n=this,i=this.entered.length,o=function(l){return n.isNodeInDocument(l)&&(!l.contains||l.contains(r))};return this.entered=bb(this.entered.filter(o),[r]),i===0&&this.entered.length>0}},{key:"leave",value:function(r){var n=this.entered.length;return this.entered=vb(this.entered.filter(this.isNodeInDocument),r),n>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t}(),wb=Jf(function(){return/firefox/i.test(navigator.userAgent)}),Qf=Jf(function(){return!!window.safari});function Db(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Sb(t,e,r){return e&&xb(t.prototype,e),t}function Rr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var nc=function(){function t(e,r){Db(this,t),Rr(this,"xs",void 0),Rr(this,"ys",void 0),Rr(this,"c1s",void 0),Rr(this,"c2s",void 0),Rr(this,"c3s",void 0);for(var n=e.length,i=[],o=0;o<n;o++)i.push(o);i.sort(function(O,K){return e[O]<e[K]?-1:1});for(var a=[],l=[],s,c,d=0;d<n-1;d++)s=e[d+1]-e[d],c=r[d+1]-r[d],a.push(s),l.push(c/s);for(var f=[l[0]],p=0;p<a.length-1;p++){var g=l[p],y=l[p+1];if(g*y<=0)f.push(0);else{s=a[p];var h=a[p+1],b=s+h;f.push(3*b/((b+h)/g+(b+s)/y))}}f.push(l[l.length-1]);for(var m=[],C=[],E,F=0;F<f.length-1;F++){E=l[F];var x=f[F],w=1/a[F],S=x+f[F+1]-E-E;m.push((E-x-S)*w),C.push(S*w*w)}this.xs=e,this.ys=r,this.c1s=f,this.c2s=m,this.c3s=C}return Sb(t,[{key:"interpolate",value:function(r){var n=this.xs,i=this.ys,o=this.c1s,a=this.c2s,l=this.c3s,s=n.length-1;if(r===n[s])return i[s];for(var c=0,d=l.length-1,f;c<=d;){f=Math.floor(.5*(c+d));var p=n[f];if(p<r)c=f+1;else if(p>r)d=f-1;else return i[f]}s=Math.max(0,d);var g=r-n[s],y=g*g;return i[s]+o[s]*g+a[s]*y+l[s]*g*y}}]),t}(),Fb=1;function e1(t){var e=t.nodeType===Fb?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top,i=r.left;return{x:i,y:n}}function Pn(t){return{x:t.clientX,y:t.clientY}}function $b(t){var e;return t.nodeName==="IMG"&&(wb()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function _b(t,e,r,n){var i=t?e.width:r,o=t?e.height:n;return Qf()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function Pb(t,e,r,n,i){var o=$b(e),a=o?t:e,l=e1(a),s={x:r.x-l.x,y:r.y-l.y},c=t.offsetWidth,d=t.offsetHeight,f=n.anchorX,p=n.anchorY,g=_b(o,e,c,d),y=g.dragPreviewWidth,h=g.dragPreviewHeight,b=function(){var S=new nc([0,.5,1],[s.y,s.y/d*h,s.y+h-d]),O=S.interpolate(p);return Qf()&&o&&(O+=(window.devicePixelRatio-1)*h),O},m=function(){var S=new nc([0,.5,1],[s.x,s.x/c*y,s.x+y-c]);return S.interpolate(f)},C=i.offsetX,E=i.offsetY,F=C===0||C,x=E===0||E;return{x:F?C:m(),y:x?E:b()}}var t1="__NATIVE_FILE__",r1="__NATIVE_URL__",n1="__NATIVE_TEXT__",i1="__NATIVE_HTML__";const ic=Object.freeze(Object.defineProperty({__proto__:null,FILE:t1,HTML:i1,TEXT:n1,URL:r1},Symbol.toStringTag,{value:"Module"}));function Mo(t,e,r){var n=e.reduce(function(i,o){return i||t.getData(o)},"");return n??r}var er;function An(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $a=(er={},An(er,t1,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),An(er,i1,{exposeProperties:{html:function(e,r){return Mo(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),An(er,r1,{exposeProperties:{urls:function(e,r){return Mo(e,r,"").split(`
97
97
  `)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),An(er,n1,{exposeProperties:{text:function(e,r){return Mo(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),er);function Ab(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function kb(t,e,r){return e&&Tb(t.prototype,e),t}function oc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ib=function(){function t(e){Ab(this,t),oc(this,"item",void 0),oc(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return kb(t,[{key:"initializeExposedProperties",value:function(){var r=this;Object.keys(this.config.exposeProperties).forEach(function(n){Object.defineProperty(r.item,n,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(n,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(r){var n=this;if(r){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:n.config.exposeProperties[o](r,n.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,i)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(r,n){return n===r.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();function Ob(t,e){var r=new Ib($a[t]);return r.loadDataTransfer(e),r}function Ro(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys($a).filter(function(r){var n=$a[r].matchesTypes;return n.some(function(i){return e.indexOf(i)>-1})})[0]||null}function Nb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Rb(t,e,r){return e&&Mb(t.prototype,e),t}function Bo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Bb=function(){function t(e,r){Nb(this,t),Bo(this,"ownerDocument",null),Bo(this,"globalContext",void 0),Bo(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=r}return Rb(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var r;return(r=this.globalContext)!==null&&r!==void 0&&r.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var r;return((r=this.optionsArgs)===null||r===void 0?void 0:r.rootElement)||this.window}}]),t}();function ac(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function lc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ac(Object(r),!0).forEach(function(n){ee(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ac(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Lb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Kb(t,e,r){return e&&jb(t.prototype,e),t}function ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Hb=function(){function t(e,r,n){var i=this;Lb(this,t),ee(this,"options",void 0),ee(this,"actions",void 0),ee(this,"monitor",void 0),ee(this,"registry",void 0),ee(this,"enterLeaveCounter",void 0),ee(this,"sourcePreviewNodes",new Map),ee(this,"sourcePreviewNodeOptions",new Map),ee(this,"sourceNodes",new Map),ee(this,"sourceNodeOptions",new Map),ee(this,"dragStartSourceIds",null),ee(this,"dropTargetIds",[]),ee(this,"dragEnterTargetIds",[]),ee(this,"currentNativeSource",null),ee(this,"currentNativeHandle",null),ee(this,"currentDragSourceNode",null),ee(this,"altKeyPressed",!1),ee(this,"mouseMoveTimeoutTimer",null),ee(this,"asyncEndDragFrameId",null),ee(this,"dragOverTargetIds",null),ee(this,"lastClientOffset",null),ee(this,"hoverRafId",null),ee(this,"getSourceClientOffset",function(o){var a=i.sourceNodes.get(o);return a&&e1(a)||null}),ee(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),ee(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),ee(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),ee(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var a=i.dragStartSourceIds;i.dragStartSourceIds=null;var l=Pn(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:l});var s=o.dataTransfer,c=Ro(s);if(i.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){var d=i.monitor.getSourceId(),f=i.sourceNodes.get(d),p=i.sourcePreviewNodes.get(d)||f;if(p){var g=i.getCurrentSourcePreviewNodeOptions(),y=g.anchorX,h=g.anchorY,b=g.offsetX,m=g.offsetY,C={anchorX:y,anchorY:h},E={offsetX:b,offsetY:m},F=Pb(f,p,l,C,E);s.setDragImage(p,F.x,F.y)}}try{s==null||s.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var x=i.getCurrentSourcePreviewNodeOptions(),w=x.captureDraggingState;w?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(c)i.beginDragNativeItem(c);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),ee(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var a=i.enterLeaveCounter.enter(o.target);if(!(!a||i.monitor.isDragging())){var l=o.dataTransfer,s=Ro(l);s&&i.beginDragNativeItem(s,l)}}),ee(this,"handleTopDragEnter",function(o){var a=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,a.length>0&&i.actions.hover(a,{clientOffset:Pn(o)});var l=a.some(function(s){return i.monitor.canDropOnTarget(s)});l&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),ee(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),ee(this,"handleTopDragOver",function(o){var a=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=Pn(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(a||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var l=(a||[]).some(function(s){return i.monitor.canDropOnTarget(s)});l?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),ee(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var a=i.enterLeaveCounter.leave(o.target);a&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),ee(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var a;o.preventDefault(),(a=i.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}else Ro(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),ee(this,"handleTopDrop",function(o){var a=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(a,{clientOffset:Pn(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),ee(this,"handleSelectStart",function(o){var a=o.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(o.preventDefault(),a.dragDrop()))}),this.options=new Bb(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Eb(this.isNodeInDocument)}return Kb(t,[{key:"profile",value:function(){var r,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((r=this.dragStartSourceIds)===null||r===void 0?void 0:r.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var r=this.rootElement;if(r!==void 0){if(r.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");r.__isReactDndBackendSetUp=!0,this.addEventListeners(r)}}},{key:"teardown",value:function(){var r=this.rootElement;if(r!==void 0&&(r.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(r,n,i){var o=this;return this.sourcePreviewNodeOptions.set(r,i),this.sourcePreviewNodes.set(r,n),function(){o.sourcePreviewNodes.delete(r),o.sourcePreviewNodeOptions.delete(r)}}},{key:"connectDragSource",value:function(r,n,i){var o=this;this.sourceNodes.set(r,n),this.sourceNodeOptions.set(r,i);var a=function(c){return o.handleDragStart(c,r)},l=function(c){return o.handleSelectStart(c)};return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",l),function(){o.sourceNodes.delete(r),o.sourceNodeOptions.delete(r),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",l),n.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(r,n){var i=this,o=function(c){return i.handleDragEnter(c,r)},a=function(c){return i.handleDragOver(c,r)},l=function(c){return i.handleDrop(c,r)};return n.addEventListener("dragenter",o),n.addEventListener("dragover",a),n.addEventListener("drop",l),function(){n.removeEventListener("dragenter",o),n.removeEventListener("dragover",a),n.removeEventListener("drop",l)}}},{key:"addEventListeners",value:function(r){r.addEventListener&&(r.addEventListener("dragstart",this.handleTopDragStart),r.addEventListener("dragstart",this.handleTopDragStartCapture,!0),r.addEventListener("dragend",this.handleTopDragEndCapture,!0),r.addEventListener("dragenter",this.handleTopDragEnter),r.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.addEventListener("dragover",this.handleTopDragOver),r.addEventListener("dragover",this.handleTopDragOverCapture,!0),r.addEventListener("drop",this.handleTopDrop),r.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(r){r.removeEventListener&&(r.removeEventListener("dragstart",this.handleTopDragStart),r.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),r.removeEventListener("dragend",this.handleTopDragEndCapture,!0),r.removeEventListener("dragenter",this.handleTopDragEnter),r.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.removeEventListener("dragover",this.handleTopDragOver),r.removeEventListener("dragover",this.handleTopDragOverCapture,!0),r.removeEventListener("drop",this.handleTopDrop),r.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(r);return lc({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(r);return lc({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}},{key:"isDraggingNativeItem",value:function(){var r=this.monitor.getItemType();return Object.keys(ic).some(function(n){return ic[n]===r})}},{key:"beginDragNativeItem",value:function(r,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=Ob(r,n),this.currentNativeHandle=this.registry.addSource(r,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(r){var n=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=r;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=n.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",n.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var r;(r=this.window)===null||r===void 0||r.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(r,n){r.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}},{key:"handleDragEnter",value:function(r,n){this.dragEnterTargetIds.unshift(n)}},{key:"handleDragOver",value:function(r,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}},{key:"handleDrop",value:function(r,n){this.dropTargetIds.unshift(n)}}]),t}(),Tn;function Vb(){return Tn||(Tn=new Image,Tn.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Tn}var zb=function(e,r,n){return new Hb(e,r,n)};function Ub(t){const e=ke(),r=e.selectedIds,[n,i,o]=G6(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const a=e.isSelected(t.id)?Array.from(r):[t.id];return e.dispatch(Er.dragStart(t.id,a)),{id:t.id,dragIds:a}},end:()=>{e.hideCursor(),e.dispatch(Er.dragEnd())}}),[r,t]);return u.useEffect(()=>{o(Vb())},[o]),i}function Wb(t,e){const r=t.getBoundingClientRect(),n=e.x-Math.round(r.x),i=e.y-Math.round(r.y),o=r.height,a=i<o/2,l=!a,s=o/4,c=i>s&&i<o-s;return{x:n,inTopHalf:a,inBottomHalf:l,inMiddle:c,atTop:!c&&a,atBottom:!c&&l}}function Zb(t,e,r,n){return t?t.isInternal?n.atTop?[e,t]:n.inMiddle?[t,t]:[t,r]:n.inTopHalf?[e,t]:[t,r]:[e,null]}function kn(t,e){return{parentId:t||null,index:e}}function tr(t,e){return{type:"line",index:t,level:e}}function Gb(t){return{type:"highlight",id:t}}function Lo(t,e){var r;let n=t;for(;n.parent&&n.level>e;)n=n.parent;const i=((r=n.parent)===null||r===void 0?void 0:r.id)||null,o=Pf(n)+1;return{parentId:i,index:o}}function o1(t){var e;const r=Wb(t.element,t.offset),n=t.indent,i=Math.round(Math.max(0,r.x-n)/n),{node:o,nextNode:a,prevNode:l}=t,[s,c]=Zb(o,l,a,r);if(o&&o.isInternal&&r.inMiddle)return{drop:kn(o.id,null),cursor:Gb(o.id)};if(!s)return{drop:kn((e=c==null?void 0:c.parent)===null||e===void 0?void 0:e.id,0),cursor:tr(0,0)};if(Sf(s)){const d=Ln(i,(c==null?void 0:c.level)||0,s.level);return{drop:Lo(s,d),cursor:tr(s.rowIndex+1,d)}}if(Ff(s)){const d=Ln(i,(c==null?void 0:c.level)||0,s.level);return{drop:Lo(s,d),cursor:tr(s.rowIndex+1,d)}}if($f(s)){const d=Ln(i,0,s.level+1);return d>s.level?{drop:kn(s.id,0),cursor:tr(s.rowIndex+1,d)}:{drop:Lo(s,d),cursor:tr(s.rowIndex+1,d)}}return{drop:kn(s==null?void 0:s.id,0),cursor:tr(s.rowIndex+1,s.level+1)}}function qb(t,e){const r=ke(),[n,i]=Xf(()=>({accept:"NODE",canDrop:()=>r.canDrop(),hover:(o,a)=>{const l=a.getClientOffset();if(!t.current||!l)return;const{cursor:s,drop:c}=o1({element:t.current,offset:l,indent:r.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&r.dispatch(Er.hovering(c.parentId,c.index)),a.canDrop()?s&&r.showCursor(s):r.hideCursor()},drop:(o,a)=>{if(!a.canDrop())return null;let{parentId:l,index:s,dragIds:c}=r.state.dnd;Of(r.props.onMove,{dragIds:c,parentId:l===ln?null:l,index:s===null?0:s,dragNodes:r.dragNodes,parentNode:r.get(l)}),r.open(l)}}),[e,t.current,r.props]);return i}function Yb(t){const e=ke(),r=e.at(t);if(!r)throw new Error(`Could not find node for index: ${t}`);return u.useMemo(()=>{const n=r.clone();return e.visibleNodes[t]=n,n},[...Object.values(r.state),r])}const Xb=u.memo(function({index:e,style:r}){xf(),b7();const n=ke(),i=Yb(e),o=u.useRef(null),a=Ub(i),l=qb(o,i),s=u.useCallback(h=>{o.current=h,l(h)},[l]),c=n.indent*i.level,d=u.useMemo(()=>({paddingLeft:c}),[c]),f=u.useMemo(()=>{var h,b;return Object.assign(Object.assign({},r),{top:parseFloat(r.top)+((b=(h=n.props.padding)!==null&&h!==void 0?h:n.props.paddingTop)!==null&&b!==void 0?b:0)})},[r,n.props.padding,n.props.paddingTop]),p={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:f,tabIndex:-1,className:n.props.rowClassName};u.useEffect(()=>{var h;!i.isEditing&&i.isFocused&&((h=o.current)===null||h===void 0||h.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const g=n.renderNode,y=n.renderRow;return v.jsx(y,{node:i,innerRef:s,attrs:p,children:v.jsx(g,{node:i,tree:n,style:d,dragHandle:a})})});let jo="",sc=null;function a1(){xf();const t=ke();return v.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var r;if(t.isEditing)return;if(e.key==="Backspace"){if(!t.props.onDelete)return;const i=Array.from(t.selectedIds);if(i.length>1){let o=t.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=t.lastNode),t.focus(o,{scroll:!1}),t.delete(Array.from(i))}else{const o=t.focusedNode;if(o){const a=o.nextSibling,l=o.parent;t.focus(a||l,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),Af(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),Tf(e.currentTarget);return}if(e.key==="ArrowDown"){e.preventDefault();const i=t.nextNode;if(e.metaKey){t.select(t.focusedNode),t.activate(t.focusedNode);return}else if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.firstNode);return}}if(e.key==="ArrowUp"){e.preventDefault();const i=t.prevNode;if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.lastNode);return}}if(e.key==="ArrowRight"){const i=t.focusedNode;if(!i)return;i.isInternal&&i.isOpen?t.focus(t.nextNode):i.isInternal&&t.open(i.id);return}if(e.key==="ArrowLeft"){const i=t.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?t.close(i.id):!((r=i.parent)===null||r===void 0)&&r.isRoot||t.focus(i.parent);return}if(e.key==="a"&&e.metaKey&&!t.props.disableMultiSelection){e.preventDefault(),t.selectAll();return}if(e.key==="a"&&!e.metaKey&&t.props.onCreate){t.createLeaf();return}if(e.key==="A"&&!e.metaKey){if(!t.props.onCreate)return;t.createInternal();return}if(e.key==="Home"){e.preventDefault(),t.focus(t.firstNode);return}if(e.key==="End"){e.preventDefault(),t.focus(t.lastNode);return}if(e.key==="Enter"){const i=t.focusedNode;if(!i||!i.isEditable||!t.props.onRename)return;setTimeout(()=>{i&&t.edit(i)});return}if(e.key===" "){e.preventDefault();const i=t.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(e.key==="*"){const i=t.focusedNode;if(!i)return;t.openSiblings(i);return}if(e.key==="PageUp"){e.preventDefault(),t.pageUp();return}e.key==="PageDown"&&(e.preventDefault(),t.pageDown()),clearTimeout(sc),jo+=e.key,sc=setTimeout(()=>{jo=""},600);const n=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(jo):!1});n&&t.focus(n.id)},children:v.jsx(ev,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.height,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:e=>{var r;return((r=t.visibleNodes[e])===null||r===void 0?void 0:r.id)||e},outerElementType:nv,innerElementType:av,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:Xb})})}function cc(t){return t.isFiltered?Qb(t.root,t.isMatch.bind(t)):Jb(t.root)}function Jb(t){const e=[];function r(n){var i;n.level>=0&&e.push(n),n.isOpen&&((i=n.children)===null||i===void 0||i.forEach(r))}return r(t),e.forEach(l1),e}function Qb(t,e){const r={},n=[];function i(a){if(!a.isRoot&&e(a)){r[a.id]=!0;let s=a.parent;for(;s;)r[s.id]=!0,s=s.parent}if(a.children)for(let s of a.children)i(s)}function o(a){var l;a.level>=0&&r[a.id]&&n.push(a),a.isOpen&&((l=a.children)===null||l===void 0||l.forEach(o))}return i(t),o(t),n.forEach(l1),n}function l1(t,e){t.rowIndex=e}const uc=t=>t.reduce((e,r,n)=>(e[r.id]=n,e),{});var Ko=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function l(d){try{c(n.next(d))}catch(f){a(f)}}function s(d){try{c(n.throw(d))}catch(f){a(f)}}function c(d){d.done?o(d.value):i(d.value).then(l,s)}c((n=n.apply(t,e||[])).next())})};const{safeRun:ye,identify:Je,identifyNull:je}=D7;class pr{constructor(e,r,n,i){this.store=e,this.props=r,this.list=n,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=y0(this),this.visibleNodes=cc(this),this.idToIndex=uc(this.visibleNodes)}update(e){this.props=e,this.root=y0(this),this.visibleNodes=cc(this),this.idToIndex=uc(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!==null&&e!==void 0?e:300}get height(){var e;return(e=this.props.height)!==null&&e!==void 0?e:500}get indent(){var e;return(e=this.props.indent)!==null&&e!==void 0?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!==null&&e!==void 0?e:24}get overscanCount(){var e;return(e=this.props.overscanCount)!==null&&e!==void 0?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var e;const r=(e=this.props.searchMatch)!==null&&e!==void 0?e:(n,i)=>JSON.stringify(Object.values(n.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase());return n=>r(n,this.searchTerm)}accessChildren(e){var r;const n=this.props.childrenAccessor||"children";return(r=Vr(e,n))!==null&&r!==void 0?r:null}accessId(e){const r=this.props.idAccessor||"id",n=Vr(e,r);if(!n)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return n}get firstNode(){var e;return(e=this.visibleNodes[0])!==null&&e!==void 0?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!==null&&e!==void 0?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!==null&&e!==void 0?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!==null&&e!==void 0?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,r){var n;if(e===null||r===null)return[];const i=(n=this.indexOf(e))!==null&&n!==void 0?n:0,o=this.indexOf(r);if(o===null)return[];const a=Math.min(i,o),l=Math.max(i,o);return this.visibleNodes.slice(a,l+1)}indexOf(e){const r=If(e);return r?this.idToIndex[r]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return Ko(this,arguments,void 0,function*(e={}){var r,n;const i=e.parentId===void 0?Rf(this):e.parentId,o=(r=e.index)!==null&&r!==void 0?r:Mf(this),a=(n=e.type)!==null&&n!==void 0?n:"leaf",l=yield ye(this.props.onCreate,{type:a,parentId:i,index:o,parentNode:this.get(i)});l&&(this.focus(l),setTimeout(()=>{this.edit(l).then(()=>{this.select(l),this.activate(l)})}))})}delete(e){return Ko(this,void 0,void 0,function*(){if(!e)return;const n=(Array.isArray(e)?e:[e]).map(Je),i=n.map(o=>this.get(o)).filter(o=>!!o);yield ye(this.props.onDelete,{nodes:i,ids:n})})}edit(e){const r=Je(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(r),this.dispatch(_o(r)),new Promise(n=>{pr.editPromise=n})}submit(e,r){return Ko(this,void 0,void 0,function*(){if(!e)return;const n=Je(e);yield ye(this.props.onRename,{id:n,name:r,node:this.get(n)}),this.dispatch(_o(null)),this.resolveEdit({cancelled:!1,value:r}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(_o(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const r=this.get(je(e));r&&ye(this.props.onActivate,r)}resolveEdit(e){const r=pr.editPromise;r&&r(e),pr.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let r of Array.from(this.selectedIds)){const n=this.get(r);n&&e.push(n)}return e}focus(e,r={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(Yt(Je(e))),r.scroll!==!1&&this.scrollTo(e),this.focusedNode&&ye(this.props.onFocus,this.focusedNode)))}pageUp(){var e,r;const n=this.visibleStartIndex,o=this.visibleStopIndex-n;let a=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;a>n?a=n:a=Math.max(n-o,0),this.focus(this.at(a))}pageDown(){var e,r;const n=this.visibleStartIndex,i=this.visibleStopIndex,o=i-n;let a=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;a<i?a=i:a=Math.min(a+o,this.visibleNodes.length-1),this.focus(this.at(a))}select(e,r={}){if(!e)return;const n=r.focus!==!1,i=Je(e);n&&this.dispatch(Yt(i)),this.dispatch(Le.only(i)),this.dispatch(Le.anchor(i)),this.dispatch(Le.mostRecent(i)),this.scrollTo(i,r.align),this.focusedNode&&n&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const r=Je(e);this.dispatch(Le.remove(r)),ye(this.props.onSelect,this.selectedNodes)}selectMulti(e){const r=this.get(je(e));r&&(this.dispatch(Yt(r.id)),this.dispatch(Le.add(r.id)),this.dispatch(Le.anchor(r.id)),this.dispatch(Le.mostRecent(r.id)),this.scrollTo(r),this.focusedNode&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const r=Je(e),{anchor:n,mostRecent:i}=this.state.nodes.selection;this.dispatch(Yt(r)),this.dispatch(Le.remove(this.nodesBetween(n,i))),this.dispatch(Le.add(this.nodesBetween(n,je(r)))),this.dispatch(Le.mostRecent(r)),this.scrollTo(r),this.focusedNode&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ye(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(Yt((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&ye(this.props.onFocus,this.focusedNode),ye(this.props.onSelect,this.selectedNodes)}setSelection(e){var r;const n=new Set((r=e.ids)===null||r===void 0?void 0:r.map(Je)),i=je(e.anchor),o=je(e.mostRecent);this.dispatch(Le.set({ids:n,anchor:i,mostRecent:o})),ye(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:e}=this.state.dnd;switch(e.type){case"highlight":return e.id;default:return null}}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(e=>this.get(e)).filter(e=>!!e)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){var e;if(this.isFiltered)return!1;const r=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,n=this.dragNodes,i=this.props.disableDrop;for(const o of n)if(!o||!r||o.isInternal&&_f(r,o))return!1;return typeof i=="function"?!i({parentNode:r,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!r.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(Er.cursor({type:"none"}))}showCursor(e){this.dispatch(Er.cursor(e))}open(e){const r=je(e);r&&(this.isOpen(r)||(this.dispatch(ya.open(r,this.isFiltered)),ye(this.props.onToggle,r)))}close(e){const r=je(e);r&&this.isOpen(r)&&(this.dispatch(ya.close(r,this.isFiltered)),ye(this.props.onToggle,r))}toggle(e){const r=je(e);if(r)return this.isOpen(r)?this.close(r):this.open(r)}openParents(e){const r=je(e);if(!r)return;const n=Cl(this.root,r);let i=n==null?void 0:n.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const r=e.parent;if(!r)this.toggle(e.id);else if(r.children){const n=e.isOpen;for(let i of r.children)i.isInternal&&(n?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){ci(this.root,e=>{e.isInternal&&e.open()})}closeAll(){ci(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,r="smart"){if(!e)return;const n=Je(e);return this.openParents(n),Nf(()=>n in this.idToIndex).then(()=>{var i;const o=this.idToIndex[n];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,r))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!(!((e=this.props.searchTerm)===null||e===void 0)&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var r,n,i;if(!e)return!1;if(e===ln)return!0;const o=(r=this.props.openByDefault)!==null&&r!==void 0?r:!0;return this.isFiltered?(n=this.state.nodes.open.filtered[e])!==null&&n!==void 0?n:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const r=this.props.disableEdit||(()=>!1);return!Vr(e,r)}isDraggable(e){const r=this.props.disableDrag||(()=>!1);return!Vr(e,r)}isDragging(e){const r=je(e);return r?this.state.nodes.drag.id===r:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const r=je(e);if(!r)return!1;const{destinationParentId:n,destinationIndex:i}=this.state.nodes.drag;return r===n&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(Yt(e.id))}onBlur(){this.dispatch(I7())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||a1}get renderRow(){return this.props.renderRow||_7}get renderNode(){return this.props.children||P7}get renderDragPreview(){return this.props.renderDragPreview||Bf}get renderCursor(){return this.props.renderCursor||$7}}function we(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var em=typeof Symbol=="function"&&Symbol.observable||"@@observable",dc=em,Ho=()=>Math.random().toString(36).substring(7).split("").join("."),tm={INIT:`@@redux/INIT${Ho()}`,REPLACE:`@@redux/REPLACE${Ho()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ho()}`},_t=tm;function s1(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function rm(t){if(t===void 0)return"undefined";if(t===null)return"null";const e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(om(t))return"date";if(im(t))return"error";const r=nm(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function nm(t){return typeof t.constructor=="function"?t.constructor.name:null}function im(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function om(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function st(t){let e=typeof t;return process.env.NODE_ENV!=="production"&&(e=rm(t)),e}function c1(t,e,r){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?we(2):`Expected the root reducer to be a function. Instead, received: '${st(t)}'`);if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?we(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?we(1):`Expected the enhancer to be a function. Instead, received: '${st(r)}'`);return r(c1)(t,e)}let n=t,i=e,o=new Map,a=o,l=0,s=!1;function c(){a===o&&(a=new Map,o.forEach((b,m)=>{a.set(m,b)}))}function d(){if(s)throw new Error(process.env.NODE_ENV==="production"?we(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?we(4):`Expected the listener to be a function. Instead, received: '${st(b)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?we(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let m=!0;c();const C=l++;return a.set(C,b),function(){if(m){if(s)throw new Error(process.env.NODE_ENV==="production"?we(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");m=!1,c(),a.delete(C),o=null}}}function p(b){if(!s1(b))throw new Error(process.env.NODE_ENV==="production"?we(7):`Actions must be plain objects. Instead, the actual type was: '${st(b)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof b.type>"u")throw new Error(process.env.NODE_ENV==="production"?we(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof b.type!="string")throw new Error(process.env.NODE_ENV==="production"?we(17):`Action "type" property must be a string. Instead, the actual type was: '${st(b.type)}'. Value was: '${b.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?we(9):"Reducers may not dispatch actions.");try{s=!0,i=n(i,b)}finally{s=!1}return(o=a).forEach(C=>{C()}),b}function g(b){if(typeof b!="function")throw new Error(process.env.NODE_ENV==="production"?we(10):`Expected the nextReducer to be a function. Instead, received: '${st(b)}`);n=b,p({type:_t.REPLACE})}function y(){const b=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?we(11):`Expected the observer to be an object. Instead, received: '${st(m)}'`);function C(){const F=m;F.next&&F.next(d())}return C(),{unsubscribe:b(C)}},[dc](){return this}}}return p({type:_t.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:g,[dc]:y}}function fc(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function am(t,e,r,n){const i=Object.keys(e),o=r&&r.type===_t.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!s1(t))return`The ${o} has unexpected type of "${st(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(t).filter(l=>!e.hasOwnProperty(l)&&!n[l]);if(a.forEach(l=>{n[l]=!0}),!(r&&r.type===_t.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function lm(t){Object.keys(t).forEach(e=>{const r=t[e];if(typeof r(void 0,{type:_t.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?we(12):`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:_t.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?we(13):`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${_t.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function hc(t){const e=Object.keys(t),r={};for(let a=0;a<e.length;a++){const l=e[a];process.env.NODE_ENV!=="production"&&typeof t[l]>"u"&&fc(`No reducer provided for key "${l}"`),typeof t[l]=="function"&&(r[l]=t[l])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{lm(r)}catch(a){o=a}return function(l={},s){if(o)throw o;if(process.env.NODE_ENV!=="production"){const f=am(l,r,s,i);f&&fc(f)}let c=!1;const d={};for(let f=0;f<n.length;f++){const p=n[f],g=r[p],y=l[p],h=g(y,s);if(typeof h>"u"){const b=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?we(14):`When called with an action of type ${b?`"${String(b)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[p]=h,c=c||h!==y}return c=c||n.length!==Object.keys(l).length,c?d:l}}function sm(t=Cr().nodes.drag,e){switch(e.type){case"DND_DRAG_START":return Object.assign(Object.assign({},t),{id:e.id,selectedIds:e.dragIds});case"DND_DRAG_END":return Object.assign(Object.assign({},t),{id:null,destinationParentId:null,destinationIndex:null,selectedIds:[]});case"DND_HOVERING":return e.parentId!==t.destinationParentId||e.index!=t.destinationIndex?Object.assign(Object.assign({},t),{destinationParentId:e.parentId,destinationIndex:e.index}):t;default:return t}}const cm=hc({nodes:hc({focus:O7,edit:k7,open:N7,selection:M7,drag:sm}),dnd:R7}),um=Cr();function dm({treeProps:t,imperativeHandle:e,children:r}){const n=u.useRef(null),i=u.useRef(null),o=u.useRef(c1(cm,Cr(t))),a=Za.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>um),l=u.useMemo(()=>new pr(o.current,t,n,i),[]),s=u.useRef(0);return u.useMemo(()=>{s.current+=1,l.update(t)},[...Object.values(t),a.nodes.open]),u.useImperativeHandle(e,()=>l),u.useEffect(()=>{l.props.selection?l.select(l.props.selection,{focus:!1}):l.deselectAll()},[l.props.selection]),u.useEffect(()=>{l.props.searchTerm||o.current.dispatch(ya.clear(!0))},[l.props.searchTerm]),v.jsx(Cf.Provider,{value:l,children:v.jsx(Df.Provider,{value:s.current,children:v.jsx(Ef.Provider,{value:a.nodes,children:v.jsx(wf.Provider,{value:a.dnd,children:v.jsx(V8,Object.assign({backend:zb,options:{rootElement:l.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:r}))})})})})}function fm(){const t=ke(),[,e]=Xf(()=>({accept:"NODE",canDrop:(r,n)=>n.isOver({shallow:!0})?t.canDrop():!1,hover:(r,n)=>{if(!n.isOver({shallow:!0}))return;const i=n.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:a}=o1({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});a&&t.dispatch(Er.hovering(a.parentId,a.index)),n.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function hm(t){return fm(),t.children}function pm(){const e=ke().props.renderContainer||a1;return v.jsx(v.Fragment,{children:v.jsx(e,{})})}function gm(){const t=ke(),{offset:e,mouse:r,item:n,isDragging:i}=gb(a=>({offset:a.getSourceClientOffset(),mouse:a.getClientOffset(),item:a.getItem(),isDragging:a.isDragging()})),o=t.props.renderDragPreview||Bf;return v.jsx(o,{offset:e,mouse:r,id:(n==null?void 0:n.id)||null,dragIds:(n==null?void 0:n.dragIds)||[],isDragging:i})}class vm{constructor(e){this.root=bm(e)}get data(){var e,r;return(r=(e=this.root.children)===null||e===void 0?void 0:e.map(n=>n.data))!==null&&r!==void 0?r:[]}create(e){const r=e.parentId?this.find(e.parentId):this.root;if(!r)return null;r.addChild(e.data,e.index)}move(e){const r=this.find(e.id),n=e.parentId?this.find(e.parentId):this.root;!r||!n||(n.addChild(r.data,e.index),r.drop())}update(e){const r=this.find(e.id);r&&r.update(e.changes)}drop(e){const r=this.find(e.id);r&&r.drop()}find(e,r=this.root){if(!r)return null;if(r.id===e)return r;if(r.children){for(let n of r.children){const i=this.find(e,n);if(i)return i}return null}return null}}function bm(t){const e=new u1({id:"ROOT"},null);return e.children=t.map(r=>$l(r,e)),e}function $l(t,e){const r=new u1(t,e);return t.children&&(r.children=t.children.map(n=>$l(n,r))),r}class u1{constructor(e,r){this.data=e,this.parent=r,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,r){var n,i;const o=$l(e,this);this.children=(n=this.children)!==null&&n!==void 0?n:[],this.children.splice(r,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(r,0,e)}removeChild(e){var r,n;(r=this.children)===null||r===void 0||r.splice(e,1),(n=this.data.children)===null||n===void 0||n.splice(e,1)}update(e){if(this.hasParent()){const r=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),r),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let mm=0;function ym(t){const[e,r]=u.useState(t),n=u.useMemo(()=>new vm(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)n.move({id:d,parentId:c.parentId,index:c.index});r(n.data)},onRename:({name:c,id:d})=>{n.update({id:d,changes:{name:c}}),r(n.data)},onCreate:({parentId:c,index:d,type:f})=>{const p={id:`simple-tree-id-${mm++}`,name:""};return f==="internal"&&(p.children=[]),n.create({parentId:c,index:d,data:p}),r(n.data),p},onDelete:c=>{c.ids.forEach(d=>n.drop({id:d})),r(n.data)}}]}function Cm(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
98
- Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,r]=ym(t.initialData);return Object.assign(Object.assign(Object.assign({},t),r),{data:e})}else return t}function Em(t,e){const r=Cm(t);return v.jsxs(dm,{treeProps:r,imperativeHandle:e,children:[v.jsx(hm,{children:v.jsx(pm,{})}),v.jsx(gm,{})]})}const wm=u.forwardRef(Em),d1=({top:t,left:e})=>v.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function Dm(t,e){var r=u.useRef(null),n=u.useRef(null);n.current=e;var i=u.useRef(null);u.useEffect(function(){o()});var o=u.useCallback(function(){var a=i.current,l=n.current,s=a||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===t||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return u.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),u.useCallback(function(a){i.current=a,o()},[o])}function pc(t,e,r){return t[e]?t[e][0]?t[e][0][r]:t[e][r]:e==="contentBoxSize"?t.contentRect[r==="inlineSize"?"width":"height"]:void 0}function xm(t){t===void 0&&(t={});var e=t.onResize,r=u.useRef(void 0);r.current=e;var n=t.round||Math.round,i=u.useRef(),o=u.useState({width:void 0,height:void 0}),a=o[0],l=o[1],s=u.useRef(!1);u.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var c=u.useRef({width:void 0,height:void 0}),d=Dm(u.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==n)&&(i.current={box:t.box,round:n,instance:new ResizeObserver(function(p){var g=p[0],y=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=pc(g,y,"inlineSize"),b=pc(g,y,"blockSize"),m=h?n(h):void 0,C=b?n(b):void 0;if(c.current.width!==m||c.current.height!==C){var E={width:m,height:C};c.current.width=m,c.current.height=C,r.current?r.current(E):s.current||l(E)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,n]),t.ref);return u.useMemo(function(){return{ref:d,width:a.width,height:a.height}},[d,a.width,a.height])}var se=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t.SIMPLE_NODE="simpleNode",t.VIEW_MORE="viewMore",t))(se||{}),wt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(wt||{});const fi=t=>t?t.nodeType===se.SEPARATOR:!1,hi=t=>t?t.nodeType===se.TITLE:!1,f1=t=>t?t.nodeType===se.VIEW_MORE:!1,zr=t=>!fi(t)&&!hi(t)&&!f1(t),h1=(t,e,r)=>{const{t:n}=X.useCunningham(),{remove:i,update:o,insert:a,insertBefore:l,insertAfter:s,append:c,prepend:d,getItem:f,move:p,items:g}=dp({initialItems:JSON.parse(JSON.stringify(t)),getKey:R=>R.id,getChildren:R=>R.children||[]}),[y,h]=u.useState(),b=(R=[])=>{const $=g.map(T=>T.key);i(...$);const P=JSON.parse(JSON.stringify(R));P.length>0&&a(null,0,...P),h(void 0)},m=R=>{const $=f(R);$&&h($.value)},C=(R,$,P)=>{var T,N,j,V;if(R){const Z=f(R);if(Z){const q=(N=Z.children)==null?void 0:N[((T=Z.children)==null?void 0:T.length)-1];let Y=P??((j=Z.children)==null?void 0:j.length)??0;P===((V=Z.children)==null?void 0:V.length)&&q&&q.value.nodeType===se.VIEW_MORE&&(Y=Y-1),a(R,Y,$)}}else a(null,P??g.length,$)},E=R=>{var $;return($=f(R))==null?void 0:$.value},F=(R,$)=>{var Z,q;const P=f(R);if(!P){console.error("No item found");return}let T=((Z=P.children)==null?void 0:Z.map(Y=>Y.value))??null;const N=$.childrenCount??P.value.childrenCount??0;if((T==null?void 0:T.length)===0&&N>0&&(T=null),$.children){const Y=[...T??[],...$.children],le=new Map;for(const G of Y)le.set(G.id,G);T=Array.from(le.values())}T&&(T=T.sort((Y,le)=>Y.nodeType===se.VIEW_MORE&&le.nodeType!==se.VIEW_MORE?1:Y.nodeType!==se.VIEW_MORE&&le.nodeType===se.VIEW_MORE?-1:0));const j=((q=$.pagination)==null?void 0:q.hasMore)??!1;T&&(T=T.filter(Y=>Y.nodeType!==se.VIEW_MORE)),j&&T&&T.push({id:`view-more-${R}`,nodeType:se.VIEW_MORE,label:n("components.treeView.viewMore")});const V={...P.value,...$,children:T,childrenCount:(T==null?void 0:T.length)??N};o(R,V)},x=R=>{i(R)},w=R=>{i(...R)},S=async R=>{if(!e){console.error("No refresh callback provided");return}try{const $=await e(R);F(R,$)}catch($){console.error("error while refreshing node:",$)}},O=(R,$)=>{a(null,$??g.length,R)},K=(R,$)=>{a(null,$??g.length,...R)},H=(R,$)=>{const P=f(R);if(!P){console.error("No item found");return}const T={...P.value,children:$,childrenCount:$.length,hasLoadedChildren:$.length>0};o(R,T)},D=R=>{const $=[],P=f(R);if(!P)return[];$.push(P.value);const T=N=>{const j=B(N);if(!j)return;const V=f(j);V&&($.push(V.value),T(j))};return T(R),$.reverse()},B=R=>{var $;return(($=f(R))==null?void 0:$.parentKey)??null},U=R=>{const $=B(R);if(!$)return null;const P=f($);return P?P.value:null},k=(R,$)=>{l(R,$)},W=(R,$)=>{s(R,$)},_=(R,$)=>{c(R,$)},I=(R,$)=>{d(R,$)},z=(R,$,P)=>{p(R,$,P)},L=R=>{z(R.sourceId,R.newParentId,R.index)},M=async R=>{var Y;if(!r)return console.error("No load paginated children callback provided"),[];const $=f(R);if(!$){console.error("No parent found");return}const T=(((Y=$==null?void 0:$.value.pagination)==null?void 0:Y.currentPage)??0)+1,N=await r(R,T);if(!N){console.error("No result found");return}const j=N.children,V=N.pagination,Z=T,q=(V==null?void 0:V.hasMore)??!1;F(R,{children:j,hasLoadedChildren:!0,pagination:{currentPage:Z,hasMore:q}})};return u.useEffect(()=>{const R=$=>{$.forEach(P=>{var T;if(P.children&&P.children.length>0){const N=P.value.hasLoadedChildren||((T=P.children)==null?void 0:T.length)>0||P.value.children&&P.value.children.length>0;P.value.children=P.children.map(V=>V.value);const j=N?P.children.length:P.value.childrenCount??0;P.value.childrenCount=j,N&&!P.value.hasLoadedChildren&&(P.value.hasLoadedChildren=!0),R(P.children)}else{const j=P.value.hasLoadedChildren||P.value.children&&P.value.children.length>0?0:P.value.childrenCount;P.value.children=[],P.value.childrenCount=j}})};R(g)},[g]),{nodes:g,addChild:C,updateNode:F,deleteNode:x,deleteNodes:w,addRootNode:O,addRootNodes:K,selectedNode:y,setSelectedNode:h,refreshNode:S,setChildren:H,insertBeforeNode:k,insertAfterNode:W,handleMove:L,prependToNode:I,moveNode:z,appendToNode:_,move:p,resetTree:b,handleLoadChildren:M,selectNodeById:m,getParent:U,getNode:E,getParentId:B,getAncestors:D}},_l=u.createContext(null),Sm=({children:t,onRefresh:e,initialNodeId:r,onLoadChildren:n,initialTreeData:i})=>{const o=u.useRef(null),[a,l]=u.useState(null),[s,c]=u.useState(r??null),d=h1(i??[],e,n);return v.jsx(_l.Provider,{value:{treeApiRef:o,treeData:d,root:a,initialTargetId:s,setInitialTargetId:c,setRoot:l},children:t})},Pl=()=>{const t=u.useContext(_l);if(!t)throw new Error("TreeContext not found");return t},Fm=({initialOpenState:t,dndRootElement:e,selectedNodeId:r,rootNodeId:n,renderNode:i,canDrop:o,canDrag:a,afterMove:l,beforeMove:s,paddingTop:c=10,paddingBottom:d=10,rowProps:f})=>{const[p,g]=u.useState(400),{ref:y,width:h}=xm(),b=Pl(),m=(b==null?void 0:b.treeData.nodes)??[];u.useEffect(()=>{const x=document.querySelector(".c__tree-view"),w=x==null?void 0:x.firstElementChild;let S=null;return x&&w&&(S=new ResizeObserver(()=>{if(w&&w instanceof HTMLElement){const O=w.style.height;g(parseInt(O,10)+20)}}),S.observe(w)),()=>S==null?void 0:S.disconnect()},[]);const C=x=>{var $,P,T,N;const w=JSON.parse(JSON.stringify(m)),S=x.dragNodes[0],O=x.parentId?(($=x.parentNode)==null?void 0:$.data.children)??[]:w,K=x.dragNodes[0].data.value.id,H=x.dragNodes[0].data,D=(P=x.parentNode)==null?void 0:P.data;if((D==null?void 0:D.value.nodeType)===se.TITLE||(D==null?void 0:D.value.nodeType)===se.SEPARATOR||(D==null?void 0:D.value.nodeType)===se.VIEW_MORE)return null;const B=H.parentKey??n,U=x.parentId??n;let k=x.index+0,W=null,_=U;const I=((N=(T=S.parent)==null?void 0:T.children)==null?void 0:N.findIndex(j=>j.data.value.id===K))??0;if(B===U){if(I===k)return null;k=k<I?k:k-1}const z=x.index-1,L=O[z],M=x.index,R=O[M];return x.index===0?(_=x.parentId??n,W=wt.FIRST_CHILD):!D&&x.index===1&&!zr(L.value)?(_=n,k=1,W=wt.FIRST_CHILD):x.index===O.length?(_=_??n,W=wt.LAST_CHILD):L&&zr(L.value)?(_=L.value.id,W=wt.RIGHT):R&&zr(R.value)&&(W=wt.LEFT,_=R.value.id),W&&_?{targetModeId:_,mode:W,oldParentId:B,index:k,newParentId:x.parentId,sourceId:K}:null},E=x=>{const w=C(x);w&&(s?s(w,()=>{b==null||b.treeData.handleMove(w),l==null||l(w)}):(b==null||b.treeData.handleMove(w),l==null||l(w)))},F=u.useCallback(x=>a?!a(x):!1,[a]);if(b)return v.jsx("div",{ref:y,style:{height:p},className:"c__tree-view--container",children:v.jsx(wm,{dndRootElement:e,data:m,ref:b.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:E,height:p,width:h,paddingTop:c,paddingBottom:d,rowHeight:34,disableDrag:F,disableDrop:({parentNode:x,dragNodes:w,index:S})=>{var B,U,k;if(o&&!o({parentNode:x,dragNodes:w,index:S}))return x.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(x.data.value.canDrop=!1),!0;const O=w[0];if(O&&O.isDragging&&O.willReceiveDrop||((B=x.data.value)==null?void 0:B.nodeType)===se.TITLE||((U=x.data.value)==null?void 0:U.nodeType)===se.SEPARATOR||((k=x.data.value)==null?void 0:k.nodeType)===se.VIEW_MORE)return!0;if(x.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const W=m[S-1],_=m[S],I=m[S+1],z=fi(W==null?void 0:W.value),L=fi(_==null?void 0:_.value),M=hi(W==null?void 0:W.value),R=hi(_==null?void 0:_.value),$=zr(I==null?void 0:I.value);return!!(S===0&&(L||R)||z&&R&&$||M&&L&&$)}const K=x==null?void 0:x.isOpen,H=(x==null?void 0:x.data.value.childrenCount)&&x.data.value.childrenCount>0||(x==null?void 0:x.data.children)&&x.data.children.length>0;if(!H)return x.data.value.canDrop=!0,!1;let D=x.data.value.childrenCount&&x.data.value.childrenCount>0&&(x==null?void 0:x.data.children)&&x.data.children.length>0;return D=D??!0,!K&&!D&&H?(x.data.value.canDrop=!0,!0):(x.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:r,renderCursor:d1,renderRow:x=>v.jsx($m,{...x,customRowProps:f}),rowClassName:"c__tree-view--row",children:i})})},$m=({children:t,customRowProps:e,...r})=>{const n=r.node.data.value.nodeType===se.TITLE,i=r.node.data.value.nodeType===se.SEPARATOR,o=r.node.data.value.nodeType===se.VIEW_MORE,{onKeyDown:a,onClick:l,...s}=e??{},{style:c}=r.attrs,d={...c},f=p=>{a==null||a(p);const g=p.target;if(g){const y=g.closest(".actions"),b=g.closest('button, a[href], input, textarea, select, [role="menuitem"], [role="button"]');if(y||b)return}if((p.key==="Enter"||p.key===" ")&&p.currentTarget.click(),p.key==="F2"){p.preventDefault();const y=p.currentTarget.querySelector("button");y&&y.focus()}};return n||i||o?u.createElement("div",{...r.attrs,key:r.node.id,style:d,ref:r.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{l==null||l(p),r.node.handleClick(p)},onKeyDown:a,...s},t):u.createElement("div",{...r.attrs,style:d,key:r.node.id,ref:r.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{l==null||l(p),p.preventDefault(),p.stopPropagation(),r.node.select()},onKeyDown:f,...s},v.jsx("div",{className:"c__tree-view--row-content",children:t}))},_m=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",p1=_m?u.useLayoutEffect:u.useEffect;function g1(t){const e=u.useRef(t);return p1(()=>{e.current=t}),u.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}function gc(t,e){e===void 0&&(e=[t]);const r=u.useRef(t);return p1(()=>{r.current!==t&&(r.current=t)},e),r}function Pm(t){const e=g1(t),r=u.useRef(null),n=u.useCallback(i=>{i!==r.current&&(e==null||e(i,r.current)),r.current=i},[]);return[r,n]}let Vo={};function Am(t,e){return u.useMemo(()=>{const r=Vo[t]==null?0:Vo[t]+1;return Vo[t]=r,t+"-"+r},[t,e])}var Wr;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(Wr||(Wr={}));function vc(){}const Tm=Object.freeze({x:0,y:0});var lr;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(lr||(lr={}));var bc;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(bc||(bc={}));var ct;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(ct||(ct={}));ct.Space,ct.Enter,ct.Esc,ct.Space,ct.Enter,ct.Tab;var mc;(function(t){t[t.RightClick=2]="RightClick"})(mc||(mc={}));var yc;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(yc||(yc={}));var Cc;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(Cc||(Cc={}));lr.Backward+"",lr.Forward+"",lr.Backward+"",lr.Forward+"";var _a;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(_a||(_a={}));var Pa;(function(t){t.Optimized="optimized"})(Pa||(Pa={}));function km(t){let{callback:e,disabled:r}=t;const n=g1(e),i=u.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(n)},[r]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}_a.WhileDragging,Pa.Optimized;const Im={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:vc,draggableNodes:new Map,over:null,measureDroppableContainers:vc},Om=u.createContext(Im);({...Tm});var Ec;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Ec||(Ec={}));const Nm="Droppable",Mm={timeout:25};function Rm(t){let{data:e,disabled:r=!1,id:n,resizeObserverConfig:i}=t;const o=Am(Nm),{active:a,dispatch:l,over:s,measureDroppableContainers:c}=u.useContext(Om),d=u.useRef({disabled:r}),f=u.useRef(!1),p=u.useRef(null),g=u.useRef(null),{disabled:y,updateMeasurementsFor:h,timeout:b}={...Mm,...i},m=gc(h??n),C=u.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),g.current=null},b)},[b]),E=km({callback:C,disabled:y||!a}),F=u.useCallback((O,K)=>{E&&(K&&(E.unobserve(K),f.current=!1),O&&E.observe(O))},[E]),[x,w]=Pm(F),S=gc(e);return u.useEffect(()=>{!E||!x.current||(E.disconnect(),f.current=!1,E.observe(x.current))},[x,E]),u.useEffect(()=>(l({type:Wr.RegisterDroppable,element:{id:n,key:o,disabled:r,node:x,rect:p,data:S}}),()=>l({type:Wr.UnregisterDroppable,key:o,id:n})),[n]),u.useEffect(()=>{r!==d.current.disabled&&(l({type:Wr.SetDroppableDisabled,id:n,key:o,disabled:r}),d.current.disabled=r)},[n,o,r,l]),{active:a,rect:p,isOver:(s==null?void 0:s.id)===n,node:x,over:s,setNodeRef:w}}const Bm=t=>{const{isOver:e,setNodeRef:r}=Rm({id:t.id,data:t.data});return u.useEffect(()=>{var n;(n=t.onOver)==null||n.call(t,e,t.data)},[e,t.data,t.onOver]),v.jsx("div",{className:"c__dnd--droppable",ref:r,children:t.children})},Lm=({children:t,itemProps:e,testId:r,onClick:n,onKeyDown:i,node:o,dragHandle:a,style:l,forceLoading:s})=>{var O,K;const{t:c}=X.useCunningham(),d=Pl(),f=u.useRef(null),[p,g]=u.useState(!1),[y,h]=u.useState(!1),[b,m]=u.useState(!1),C=s??p,E=o.willReceiveDrop||b,F=o.data.value.childrenCount!==void 0&&o.data.value.childrenCount>0||(((O=o.data.children)==null?void 0:O.length)??0)>0,x=((K=o.children)==null?void 0:K.length)??!1,w=o.isLeaf||!F,S=u.useCallback(H=>{H.stopPropagation(),o.data.value.nodeType===se.VIEW_MORE&&(h(!0),d==null||d.treeData.handleLoadChildren(o.data.parentKey).then(()=>h(!1)).catch(()=>h(!1)))},[o.data.value.nodeType,o.data.parentKey,d==null?void 0:d.treeData]);return u.useEffect(()=>{w||x||o.data.value.hasLoadedChildren||o.isOpen&&(g(!0),d==null||d.treeData.handleLoadChildren(o.data.value.id).then(()=>g(!1)))},[o.isOpen,w,x,o.data.value.hasLoadedChildren,o.data.value.id,d==null?void 0:d.treeData]),u.useEffect(()=>(E&&!o.isOpen&&!o.isDragging&&(f.current=setTimeout(()=>{o.open()},500)),()=>{f.current&&clearTimeout(f.current)}),[E,o.isOpen,o.isDragging,o]),o.data.value.nodeType===se.SEPARATOR?v.jsx("div",{className:"c__tree-view--node__separator","data-testid":r}):o.data.value.nodeType===se.TITLE?v.jsx("div",{className:"c__tree-view--node__title","data-testid":r,children:o.data.value.headerTitle}):o.data.value.nodeType===se.VIEW_MORE?v.jsx("div",{className:"c__tree-view--row-content","data-testid":r,children:v.jsx("div",{className:"c__tree-view--node",style:l,children:v.jsxs("div",{role:"button",className:"c__tree-view--node__view-more-button",style:{paddingLeft:0,marginLeft:20},onClick:S,children:[y?v.jsx("div",{className:"c__tree-view--node__loading",children:v.jsx(li,{})}):v.jsx("span",{className:"material-icons c__tree-view--node__view-more-button__icon",children:"arrow_downward"}),v.jsxs("span",{className:"c__tree-view--node__view-more-text",children:[o.data.value.nodeType===se.VIEW_MORE,c("components.treeView.viewMore")]})]})})}):v.jsx(Bm,{id:o.id,data:{data:o.data,nodeApi:o},onOver:m,children:v.jsxs("div",{onClick:H=>{if(!H.target.closest(".c__tree-view--node")){H.stopPropagation();return}n==null||n()},onKeyDown:H=>{i==null||i(H),H.target.closest(".c__tree-view--node")||H.stopPropagation()},ref:a,style:l,className:ve("c__tree-view--node",{...o.state,simpleNode:o.data.value.nodeType===se.SIMPLE_NODE,canDrop:o.data.value.canDrop??!0,externalDrop:b}),"data-testid":r,...e,children:[w&&v.jsx("div",{className:"c__tree-view--node__leaf"}),!w&&v.jsxs(v.Fragment,{children:[C&&v.jsx("div",{className:"c__tree-view--node__loading",children:v.jsx(li,{})}),!C&&v.jsx("span",{onClick:H=>{H.stopPropagation(),o.toggle()},className:"c__tree-view--node__arrow material-icons",children:o.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},jm=({children:t,uppercased:e=!1,type:r="accent",className:n,...i})=>v.jsx("div",{className:ve(n,"c__badge",{"c__badge--uppercased":e,[`c__badge--${r}`]:r}),...i,children:t});function Km(t){u.useEffect(()=>{if(!t)return;let e=!1;const r=()=>Array.from(t.querySelectorAll("button")).filter(a=>!a.disabled&&a.getAttribute("aria-disabled")!=="true"),n=a=>{const l=a.key==="ArrowLeft"||a.key==="ArrowRight",s=a.key===" ";if(!(a.target instanceof HTMLElement))return;if(s){const h=a.target.closest("button");h instanceof HTMLButtonElement&&t.contains(h)&&h.click();return}if(!l)return;const d=a.target.closest("button");if(!(d instanceof HTMLButtonElement&&t.contains(d)))return;const p=r(),g=p.indexOf(d);if(g<0)return;a.preventDefault(),a.stopPropagation();const y=a.key==="ArrowRight"?(g+1)%p.length:(g-1+p.length)%p.length;p[y].focus(),e=!0},i=a=>{e&&((a.key===" "||a.key==="Enter")&&(a.preventDefault(),a.stopPropagation()),e=!1)},o={capture:!0};return t.addEventListener("keydown",n,o),t.addEventListener("keyup",i,o),()=>{t.removeEventListener("keydown",n,o),t.removeEventListener("keyup",i,o)}},[t])}const Zi=({roles:t,onSelect:e,canUpdate:r=!0,selectedRole:n,isOpen:i,onOpenChange:o,roleTopMessage:a,onDelete:l,canDelete:s=!0})=>{const{t:c}=X.useCunningham(),d=t.find(p=>p.value===n),f=u.useMemo(()=>!l&&!s?t:[...t,{type:"separator"},{label:c("components.share.access.delete"),callback:l,isDisabled:!s}],[t,l,c,s]);return r?v.jsx(Yr,{isOpen:i,shouldCloseOnInteractOutside:p=>!p.closest(".c__access-role-dropdown"),onOpenChange:o,options:f,selectedValues:[n],onSelectValue:e,topMessage:a,children:v.jsx(X.Button,{className:"c__access-role-dropdown","data-testid":"access-role-dropdown-button",size:"small",color:"brand",variant:"tertiary",icon:v.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{o==null||o(!i)},children:d==null?void 0:d.label})}):v.jsx("span",{className:"c__access-role-dropdown__role-label-can-not-update",children:d==null?void 0:d.label})},v1=({users:t,onRemoveUser:e,rightActions:r,onShare:n,shareButtonLabel:i,roles:o,selectedRole:a,onSelectRole:l})=>{const{t:s}=X.useCunningham(),[c,d]=u.useState(!1);return v.jsxs("div",{className:"c__add-share-user-list","data-testid":"selected-users-list",children:[v.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>v.jsx(b1,{user:f,onRemoveUser:e},f.id))}),v.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[r,v.jsx(Zi,{roles:o,selectedRole:a,onSelect:l,isOpen:c,onOpenChange:d,canDelete:!1,onDelete:void 0}),v.jsx(X.Button,{onClick:n,children:i??s("components.share.shareButton")})]})]})},b1=({user:t,onRemoveUser:e})=>v.jsxs("div",{className:"c__add-share-user-item","data-testid":"selected-user-item",children:[v.jsx("span",{children:t.full_name||t.email}),v.jsx(X.Button,{variant:"tertiary",color:"neutral",size:"nano",onClick:()=>e==null?void 0:e(t),icon:v.jsx("span",{className:"material-icons",children:"close"})})]}),Aa=["gray","brand","red","orange","brown","green","blue-1","blue-2","pink","yellow","purple"],m1=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),Al=t=>{let e=0;for(let r=0;r<t.length;r++)e+=t.charCodeAt(r);return Aa[e%Aa.length]},Gi=({fullName:t,size:e="medium",forceColor:r,backgroundColor:n})=>{const i=m1(t),o=n||Al(t);return v.jsx("div",{style:{backgroundColor:r||void 0},className:ve(`c__avatar ${e}`,{[o]:!r&&o}),children:v.jsx("div",{className:"c__avatar__initials",children:i})})},qi=({fullName:t,email:e,showEmail:r=!0})=>{const n=t&&t!==""?t:e??"";return v.jsxs("div",{className:"c__user-row",children:[v.jsx(Gi,{fullName:n,size:"small"}),v.jsxs("div",{className:"c__user-row__info",children:[v.jsx("span",{className:"c__user-row__name",children:t}),r&&e&&v.jsx("span",{className:ve("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},Ta=({user:t})=>{const{t:e}=X.useCunningham();return v.jsx(Ki,{testId:"search-user-item",left:v.jsx(qi,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:v.jsxs("div",{className:"c__search-user-item-right",children:[v.jsx("span",{children:e("components.share.item.add")}),v.jsx("span",{className:"material-icons",children:"add"})]})})},y1=({accessData:t,accessRoleKey:e="role",roles:r,updateRole:n,deleteAccess:i,canUpdate:o=!0,roleTopMessage:a})=>{const l=mr(),s=t.is_explicit!==!1&&t.can_delete!==!1;return v.jsx("div",{className:"c__share-member-item",children:v.jsx(Ki,{testId:"share-member-item",left:v.jsx(qi,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:v.jsx("div",{className:"c__share-member-item__right",children:v.jsx(Zi,{roles:r,selectedRole:t[e],onSelect:c=>n==null?void 0:n(t,c),isOpen:l.isOpen,onOpenChange:l.setIsOpen,canUpdate:o,roleTopMessage:a,canDelete:s,onDelete:i?()=>i(t):void 0})})})})},C1=({invitation:t,roles:e,updateRole:r,deleteInvitation:n,canUpdate:i=!0,roleTopMessage:o})=>{const a=mr();return v.jsx("div",{className:"c__share-member-item",children:v.jsx(Ki,{testId:"share-invitation-item",left:v.jsx(qi,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:v.jsx("div",{className:"c__share-member-item__right",children:v.jsx(Zi,{roles:e,selectedRole:t.role,onSelect:l=>r==null?void 0:r(t,l),isOpen:a.isOpen,canUpdate:i,onOpenChange:a.setIsOpen,roleTopMessage:o,onDelete:n?()=>n(t):void 0})})})})},E1=t=>{const{t:e}=X.useCunningham();return{t:r=>(t==null?void 0:t[r])??e(r)}},Hm=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:v.jsx("path",{fill:"currentColor",d:"M18 18c.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.446 1.446 0 0 0 18 15c-.417 0-.77.146-1.063.438A1.446 1.446 0 0 0 16.5 16.5c0 .417.146.77.438 1.063.291.291.645.437 1.062.437Zm0 3c.5 0 .967-.117 1.4-.35a3.011 3.011 0 0 0 1.075-.975 4.455 4.455 0 0 0-1.2-.512 5.048 5.048 0 0 0-2.55 0 4.445 4.445 0 0 0-1.2.512c.283.417.642.742 1.075.975.433.233.9.35 1.4.35ZM9 8h6V6c0-.833-.292-1.542-.875-2.125A2.893 2.893 0 0 0 12 3c-.833 0-1.542.292-2.125.875A2.893 2.893 0 0 0 9 6v2Zm3.25 14H6c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 4 20V10c0-.55.196-1.02.588-1.412A1.926 1.926 0 0 1 6 8h1V6c0-1.383.487-2.563 1.463-3.538C9.438 1.487 10.617 1 12 1s2.563.488 3.537 1.462C16.512 3.438 17 4.617 17 6v2h1c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412v1.3a5.7 5.7 0 0 0-.938-.225A7.006 7.006 0 0 0 18 11v-1H6v10h5.3c.133.4.267.746.4 1.038.133.291.317.612.55.962ZM18 23c-1.383 0-2.563-.488-3.537-1.462C13.488 20.562 13 19.383 13 18s.488-2.563 1.463-3.537C15.438 13.488 16.617 13 18 13s2.563.488 3.538 1.463C22.512 15.438 23 16.617 23 18s-.488 2.563-1.462 3.538C20.562 22.512 19.383 23 18 23Z"})}),Vm=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:v.jsx("path",{fill:"currentColor",d:"M12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm-1-2.05V18c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 9 16v-1l-4.8-4.8c-.05.3-.096.6-.138.9-.041.3-.062.6-.062.9 0 2.017.662 3.783 1.987 5.3 1.325 1.517 2.996 2.4 5.013 2.65Zm6.9-2.55c.333-.367.633-.762.9-1.188a7.45 7.45 0 0 0 .662-1.325c.175-.458.309-.929.4-1.412.092-.483.138-.975.138-1.475a7.845 7.845 0 0 0-1.363-4.475A7.701 7.701 0 0 0 15 4.6V5c0 .55-.196 1.02-.588 1.412A1.926 1.926 0 0 1 13 7h-2v2c0 .283-.096.52-.287.713A.968.968 0 0 1 10 10H8v2h6c.283 0 .52.096.713.287.191.192.287.43.287.713v3h1c.433 0 .825.13 1.175.387.35.259.592.596.725 1.013Z"})}),zm=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:v.jsx("path",{fill:"currentColor",d:"M12 22a9.676 9.676 0 0 1-3.875-.788 10.144 10.144 0 0 1-3.188-2.15 10.142 10.142 0 0 1-2.15-3.187A9.676 9.676 0 0 1 2 12c0-1.383.263-2.68.788-3.887a10.183 10.183 0 0 1 2.15-3.175 10.143 10.143 0 0 1 3.187-2.15A9.676 9.676 0 0 1 12 2c.533 0 1.046.038 1.537.112.492.075.98.188 1.463.338V5c0 .55-.196 1.02-.588 1.412A1.926 1.926 0 0 1 13 7h-2v2c0 .283-.096.52-.287.713A.968.968 0 0 1 10 10H8v2h6c.283 0 .52.096.713.287.191.192.287.43.287.713v3h1c.45 0 .846.133 1.188.4.341.267.579.6.712 1a8.68 8.68 0 0 0 1.538-2.462A7.621 7.621 0 0 0 20 12c0-.183-.008-.35-.025-.5a7.406 7.406 0 0 0-.075-.5h2.05c.033.183.05.35.05.5v.5a9.676 9.676 0 0 1-.788 3.875 10.143 10.143 0 0 1-2.15 3.188 10.184 10.184 0 0 1-3.175 2.15A9.649 9.649 0 0 1 12 22Zm-1-2.05V18c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 9 16v-1l-4.8-4.8c-.05.3-.096.6-.138.9-.041.3-.062.6-.062.9 0 2.067.67 3.846 2.013 5.337C7.354 18.83 9.017 19.7 11 19.95ZM18 9a.968.968 0 0 1-.712-.287A.967.967 0 0 1 17 8V5a.97.97 0 0 1 .288-.713A.968.968 0 0 1 18 4V3c0-.55.196-1.02.587-1.413A1.926 1.926 0 0 1 20 1c.55 0 1.02.196 1.413.587.39.393.587.863.587 1.413v1a.97.97 0 0 1 .712.287c.192.192.288.43.288.713v3a.97.97 0 0 1-.288.713A.968.968 0 0 1 22 9h-4Zm1-5h2V3a.967.967 0 0 0-.288-.712A.968.968 0 0 0 20 2a.968.968 0 0 0-.712.288A.967.967 0 0 0 19 3v1Z"})}),In=t=>{switch(t){case"public":return v.jsx(Vm,{});case"restricted":return v.jsx(Hm,{});case"authenticated":return v.jsx(zm,{});default:return null}},Um=({linkReachChoices:t=[],canUpdate:e,linkReach:r="public",onUpdateLinkReach:n,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:a="reader",onUpdateLinkRole:l,customTranslations:s,topLinkReachMessage:c,topLinkRoleMessage:d})=>{const f=mr(),p=mr(),[g,y]=u.useState([r]),h=g[0],[b,m]=u.useState([a]),C=b[0],{t:E}=E1(s),F=u.useMemo(()=>t.map(D=>({icon:D.icon??In(D.value),value:D.value,label:E("components.share.linkSettings.reach.choices."+D.value+".title"),...D})),[t]),x=u.useMemo(()=>F.find(D=>D.value===h),[F,h]),w=u.useMemo(()=>o.map(D=>({value:D.value,label:E("components.share.linkSettings.role.choices."+D.value+".title"),...D})),[o]),S=u.useMemo(()=>w.find(D=>D.value===C),[w,C]);u.useEffect(()=>{y([r])},[r]);const O=i&&o.length>0,K=()=>v.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?v.jsx(Yr,{onSelectValue:D=>{y([D]),n==null||n(D)},options:F,isOpen:f.isOpen,topMessage:c,onOpenChange:f.setIsOpen,selectedValues:g,children:v.jsxs(X.Button,{variant:"tertiary",icon:In(h),iconPosition:"left","data-testid":"share-link-reach-dropdown-button",onClick:()=>{e&&f.setIsOpen(!f.isOpen)},children:[x==null?void 0:x.label,v.jsx("span",{className:"material-icons",children:f.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):v.jsxs("span",{className:"c__share-modal__link-settings__content__select__value disabled",children:[In("public"),x==null?void 0:x.label]})}),H=()=>O?v.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?v.jsx(Yr,{onSelectValue:D=>{m([D]),l==null||l(D)},options:w,isOpen:p.isOpen,onOpenChange:p.setIsOpen,selectedValues:b,topMessage:d,children:v.jsx(X.Button,{variant:"tertiary","data-testid":"share-link-role-dropdown-button",icon:v.jsx("span",{className:"material-icons",children:p.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&p.setIsOpen(!p.isOpen)},size:"small",children:S==null?void 0:S.label})}):v.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value disabled",children:[In(C),S==null?void 0:S.label]})}):null;return v.jsxs("div",{className:"c__share-modal__link-settings","data-testid":"share-link-settings",children:[v.jsx("span",{className:"c__share-modal__link-settings__title",children:E("components.share.linkSettings.title")}),v.jsxs("div",{className:"c__share-modal__link-settings__content",children:[K(),v.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:E(`components.share.linkSettings.reach.choices.${h}.description`)}),H()]}),v.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:E(`components.share.linkSettings.reach.choices.${h}.description`)})]})},Wm=({searchUsersResult:t,children:e,outsideSearchContent:r,accesses:n=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:a=!0,canView:l=!0,hasNextInvitations:s=!1,hideInvitations:c=!1,hideMembers:d=!1,cannotViewChildren:f,customTranslations:p,...g})=>{var T,N;if(!(c&&d)){if(!g.invitationRoles)throw new Error("invitationRoles is required");if(!g.onSearchUsers)throw new Error("onSearchUsers is required")}if(!c&&!g.onInviteUser)throw new Error("onInviteUser is required");if(a&&!l)throw new Error("canView cannot be false if canUpdate is true");const{t:y}=X.useCunningham(),{isMobile:h}=ot(),b=u.useRef(null),[m,C]=u.useState("400px"),E=u.useRef(null),[F,x]=u.useState(""),[w,S]=u.useState(""),[O,K]=u.useState([]),[H,D]=u.useState(((N=(T=g.invitationRoles)==null?void 0:T[0])==null?void 0:N.value)??""),B=h?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",U=j=>{if(b.current&&clearTimeout(b.current),j===""){S(""),g.onSearchUsers("");return}b.current=setTimeout(()=>{g.onSearchUsers(j),S(j)},300)},k=j=>{x(j),U(j)},W=w!==""||O.length>0,_=u.useCallback(j=>{K(V=>[...V,j]),x(""),S(""),g.onSearchUsers("")},[g]),I=j=>{K(V=>V.filter(Z=>Z.id!==j.id))},z=u.useMemo(()=>{const j=t==null?void 0:t.filter(G=>!O.includes(G));let V=y(w!==""?"components.share.user.no_result":"components.share.user.placeholder");const q=(G=>!!G.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/))(w??"")&&!(j!=null&&j.some(G=>G.email===w)),Y={id:w,full_name:"",email:w};return q&&(V=void 0),{groupName:y("components.share.search.group_name"),elements:j??[],showWhenEmpty:!0,emptyString:V,endActions:q?[{content:v.jsx(Ta,{user:Y}),onSelect:()=>void _(Y)}]:void 0}},[t,w,y,O,_]),L=j=>{var le;const Z=(j==null?void 0:j.clientHeight)??0,q=((le=E.current)==null?void 0:le.clientHeight)??0,Y=`calc(${B} - ${Z}px - ${q}px - 70px - 10px)`;C(Y)},M=!c&&!W&&!g.loading&&i.length>0,R=!d&&!W&&!g.loading&&n.length>0,P=l?c&&d?"empty":"search":"cannot_view";return v.jsx(X.Modal,{title:g.modalTitle??y("components.share.modalTitle"),isOpen:g.isOpen,onClose:g.onClose,"aria-label":y("components.share.modalAriaLabel"),closeOnClickOutside:!0,size:h?X.ModalSize.FULL:X.ModalSize.LARGE,children:v.jsxs("div",{className:"c__share-modal no-padding",children:[a&&O.length>0&&v.jsx("div",{className:"c__share-modal__selected-users",ref:E,children:v.jsx(v1,{users:O,onRemoveUser:I,roles:g.invitationRoles,selectedRole:H,onSelectRole:D,onShare:()=>{g.onInviteUser(O,H),K([])}})}),P==="cannot_view"&&v.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:m},children:[v.jsx("div",{className:"c__share-modal__cannot-view__content",children:v.jsx("p",{children:g.cannotViewMessage??y("components.share.cannot_view.message")})}),f]}),P==="search"&&v.jsx(mf,{onFilter:k,inputValue:F,showInput:a,loading:g.loading,placeholder:y("components.share.user.placeholder"),children:v.jsxs("div",{style:{height:m,overflowY:"auto"},children:[W&&v.jsx("div",{className:"c__share-modal__search-users","data-testid":"search-users-list",children:v.jsx(yf,{group:z,onSelect:j=>{_(j)},renderElement:j=>v.jsx(Ta,{user:j})})}),!W&&e,M&&v.jsxs("div",{className:"c__share-modal__invitations","data-testid":"invitations-list",children:[v.jsx("span",{className:"c__share-modal__invitations-title",children:y("components.share.invitations.title")}),i.map(j=>{var V;return v.jsx(C1,{invitation:j,roles:g.invitationRoles,updateRole:g.onUpdateInvitation,deleteInvitation:g.onDeleteInvitation,canUpdate:a,roleTopMessage:(V=g.invitationRoleTopMessage)==null?void 0:V.call(g,j)},j.id)}),v.jsx(wc,{show:s,onShowMore:g.onLoadNextInvitations})]}),R&&v.jsxs("div",{className:"c__share-modal__members","data-testid":"members-list",children:[v.jsx("span",{className:"c__share-modal__members-title",children:y(n.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:n.length})}),n.map(j=>{var V,Z;return v.jsx(y1,{accessData:j,accessRoleKey:g.accessRoleKey??"role",canUpdate:a,roleTopMessage:(V=g.accessRoleTopMessage)==null?void 0:V.call(g,j),roles:((Z=g.getAccessRoles)==null?void 0:Z.call(g,j))??g.invitationRoles,updateRole:g.onUpdateAccess,deleteAccess:g.onDeleteAccess},j.id)}),v.jsx(wc,{show:o,onShowMore:g.onLoadNextMembers})]})]})}),v.jsx("div",{ref:L,children:!W&&v.jsxs("div",{className:"c__share-modal__footer",children:[g.linkSettings&&v.jsx(Um,{linkReachChoices:g.linkReachChoices,canUpdate:a,onUpdateLinkReach:g.onUpdateLinkReach,linkReach:g.linkReach,linkRoleChoices:g.linkRoleChoices,linkRole:g.linkRole,onUpdateLinkRole:g.onUpdateLinkRole,showLinkRole:g.showLinkRole,customTranslations:p,topLinkReachMessage:g.topLinkReachMessage,topLinkRoleMessage:g.topLinkRoleMessage}),r]})})]})})},wc=({show:t,onShowMore:e})=>{const{t:r}=X.useCunningham();return t?v.jsx("div",{className:"c__share-modal__show-more-button",children:v.jsx(X.Button,{variant:"tertiary",size:"small",icon:v.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:r("components.share.members.load_more")})}):null},Zm=({onCopyLink:t,onOk:e})=>{const{t:r}=X.useCunningham();return v.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[v.jsx(X.Button,{variant:"secondary",icon:v.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:r("components.share.copyLink")}),v.jsx(X.Button,{variant:"primary",onClick:e,children:r("components.share.ok")})]})},w1=({user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})=>{const o=!!n||!!i,{t:a}=X.useCunningham(),l=t?t.full_name??t.email:void 0,s=l?Al(l):void 0;return t?v.jsx(v.Fragment,{children:v.jsxs("div",{className:"user-menu__content__body",children:[v.jsxs("div",{className:"user-menu__content__body__user-info",style:{"--gradient-color":`var(--c--contextuals--background--palette--${s}--primary)`},children:[v.jsx(Gi,{fullName:l}),v.jsx("div",{className:"user-menu__content__identity__name",children:t.full_name?v.jsxs(v.Fragment,{children:[v.jsx("p",{className:"user-menu__content__identity__name",children:v.jsx("strong",{children:t.full_name})}),v.jsx("p",{className:"user-menu__content__identity__email",children:t.email})]}):v.jsx("p",{className:"user-menu__content__identity__email",children:v.jsx("strong",{children:t.email})})})]}),r&&v.jsxs(v.Fragment,{children:[v.jsx(an,{withPadding:!1}),v.jsx("div",{className:"user-menu__content__body__settings",children:e.map(c=>v.jsx(D1,{label:c.label,icon:c.icon,onClick:c.onClick},c.label))})]}),o&&v.jsxs(v.Fragment,{children:[v.jsx(an,{withPadding:!1}),v.jsxs("div",{className:"user-menu__actions user-menu__actions--mobile",children:[n&&v.jsx("div",{className:"user-menu__actions__left",children:n}),i&&v.jsx("div",{className:"user-menu__actions__right",children:v.jsx(X.Button,{variant:"tertiary",target:"_blank",href:i,size:"small",color:"neutral",children:a("components.userMenu.term_of_service")})})]})]})]})}):null},Gm=({...t})=>{const{t:e}=X.useCunningham(),r=S1();return v.jsxs(v.Fragment,{children:[v.jsx(x1,{user:t.user,...r}),v.jsx(X.Modal,{isOpen:r.openState,onClose:()=>r.setOpenState(!1),"aria-label":e("components.userMenu.dialogTitle"),size:X.ModalSize.FULL,children:v.jsxs("div",{className:"user-menu__popover user-menu__popover--mobile",children:[v.jsx(X.Button,{variant:"tertiary",className:"user-menu__close-button",onClick:r.toggleUserMenu,"aria-label":e("components.userMenu.close"),color:"neutral",icon:v.jsx(Jr,{name:"close"}),size:"small"}),v.jsx(w1,{...t}),v.jsx("div",{className:"user-menu__footer--mobile",children:v.jsx(X.Button,{variant:"primary",onClick:r.toggleUserMenu,children:e("components.share.ok")})})]})})]})},qm=({user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})=>{const{t:o}=X.useCunningham(),a=S1();return v.jsxs(v.Fragment,{children:[v.jsx(x1,{user:t,...a}),v.jsx(Pi,{className:"c__dropdown-menu user-menu__popover",triggerRef:a.triggerRef,isOpen:a.openState,onOpenChange:a.setOpenState,children:v.jsx(Rp,{"aria-label":o("components.userMenu.dialogTitle"),children:v.jsx(w1,{user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})})})]})},Ym=({user:t,settingsCTA:e,logout:r,termOfServiceUrl:n,actions:i})=>{const{t:o}=X.useCunningham(),{isTablet:a}=ot(),l=u.useMemo(()=>{const c=[];return e&&c.push({label:o("components.userMenu.manage_account"),icon:"settings",onClick:typeof e=="function"?e:typeof e=="string"?()=>window.open(e,"_blank","noopener,noreferrer"):void 0}),r&&c.push({label:o("components.userMenu.logout"),icon:"logout",onClick:r}),c},[e,r,o]),s=l.length>0;return t?v.jsx(v.Fragment,{children:a?v.jsx(Gm,{user:t,settingsItems:l,showSettings:s,actions:i,termOfServiceUrl:n}):v.jsx(qm,{user:t,settingsItems:l,showSettings:s,actions:i,termOfServiceUrl:n})}):null},D1=({label:t,icon:e,onClick:r})=>v.jsxs("div",{className:"user-menu__item",onClick:r,children:[v.jsx(Jr,{name:e}),v.jsx("span",{className:"user-menu__item__label",children:t})]}),x1=({user:t,triggerRef:e,id:r,openState:n,toggleUserMenu:i})=>{const{t:o}=X.useCunningham();return t?v.jsx(X.Button,{variant:"tertiary",size:"small",ref:e,id:r,onClick:i,"aria-label":o(n?"components.userMenu.close":"components.userMenu.open"),title:o(n?"components.userMenu.close":"components.userMenu.open"),children:v.jsx(Gi,{fullName:t.full_name??t.email})}):null},S1=()=>{const t=u.useId(),[e,r]=u.useState(!1),n=()=>{r(!e)},i=u.useRef(null);return{id:t,openState:e,setOpenState:r,toggleUserMenu:n,triggerRef:i}},Tl=(t,e)=>e&&t.activeIcon?t.activeIcon:t.icon,F1=u.forwardRef(({step:t,isActive:e,onClick:r,index:n,ariaLabel:i},o)=>{const a=Tl(t,e);return v.jsxs("button",{ref:o,type:"button",className:ve("c__onboarding-modal__step",{"c__onboarding-modal__step--active":e}),onClick:r,"aria-current":e?"step":void 0,"aria-label":i,tabIndex:e?0:-1,"data-testid":`onboarding-step-${n}`,children:[v.jsx("div",{className:"c__onboarding-modal__step__icon","aria-hidden":"true",children:a}),v.jsxs("div",{className:"c__onboarding-modal__step__content",children:[v.jsx("span",{className:"c__onboarding-modal__step__title",children:t.title}),t.description&&v.jsx("div",{className:"c__onboarding-modal__step__description-wrapper",children:v.jsx("span",{className:"c__onboarding-modal__step__description",children:t.description})})]})]})});F1.displayName="OnboardingStepItem";const Xm=200,$1=({isOpen:t,size:e=X.ModalSize.LARGE,appName:r,mainTitle:n,steps:i,initialStep:o=0,footerLink:a,hideContent:l,onSkip:s,onComplete:c,onClose:d,labels:f})=>{const{t:p}=X.useCunningham(),{isMobile:g}=ot(),[y,h]=u.useState(o),[b,m]=u.useState(o),[C,E]=u.useState(!1),F=u.useRef([]),x=u.useRef(null),w=u.useRef(null),S=y===i.length-1,O=y===0,K=(f==null?void 0:f.skip)??p("components.onboarding.skip"),H=(f==null?void 0:f.next)??p("components.onboarding.next"),D=(f==null?void 0:f.previous)??p("components.onboarding.previous"),B=(f==null?void 0:f.complete)??p("components.onboarding.complete"),U=i[b],k=!l&&!!(U!=null&&U.content),W=u.useCallback((T,N)=>{const j=p("components.onboarding.stepLabel").replace("{current}",String(T+1)).replace("{total}",String(i.length)).replace("{title}",N);return T===y?j+p("components.onboarding.currentStepSuffix"):j},[p,i.length,y]),_=u.useCallback(()=>p("components.onboarding.contentRegionLabel").replace("{current}",String(b+1)).replace("{total}",String(i.length)),[p,b,i.length]);u.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]),u.useEffect(()=>{const T=F.current[y];T&&T.scrollIntoView({behavior:"smooth",block:"nearest"})},[y]),u.useEffect(()=>{if(t){w.current&&(clearTimeout(w.current),w.current=null),h(o),m(o),E(!1);const T=setTimeout(()=>{requestAnimationFrame(()=>{const N=F.current[o];N&&!g&&N.focus()})},150);return()=>clearTimeout(T)}},[t,o,g]);const I=u.useCallback(T=>{T!==y&&(w.current&&clearTimeout(w.current),E(!0),h(T),w.current=setTimeout(()=>{m(T),E(!1),w.current=null},Xm))},[y]);u.useEffect(()=>{const T=x.current;if(!T)return;const N=j=>{if(j.key!=="ArrowUp"&&j.key!=="ArrowDown"||!j.target.closest(".c__onboarding-modal__step"))return;j.preventDefault();const Z=j.key==="ArrowDown"?(y+1)%i.length:(y-1+i.length)%i.length;I(Z),setTimeout(()=>{var q;(q=F.current[Z])==null||q.focus()},0)};return T.addEventListener("keydown",N),()=>T.removeEventListener("keydown",N)},[y,i.length,I]);const z=u.useCallback(()=>{S?c():I(y+1)},[S,c,I,y]),L=u.useCallback(()=>{O||I(y-1)},[O,I,y]),M=u.useCallback(()=>{s==null||s()},[s]);if(i.length===0)return null;const R=Math.max(0,Math.min(o,i.length-1));R!==o&&process.env.NODE_ENV==="development"&&console.warn(`OnboardingModal: initialStep (${o}) is out of bounds. Using ${R} instead.`);const $=a?v.jsxs("a",{className:"c__onboarding-modal__footer-link",target:"_blank",href:a.href,onClick:T=>{a.onClick&&(a.href||T.preventDefault(),a.onClick())},children:[v.jsx("span",{className:"material-icons","aria-hidden":"true",children:"info"}),v.jsx("span",{className:"c__onboarding-modal__footer-link__label",children:a.label})]}):void 0,P=v.jsxs(v.Fragment,{children:[g&&!O&&v.jsx(X.Button,{variant:"secondary",onClick:L,"data-testid":"onboarding-previous",children:D}),s&&v.jsx(X.Button,{variant:"tertiary",onClick:M,"data-testid":"onboarding-skip",children:K}),v.jsx(X.Button,{variant:"primary",onClick:z,"data-testid":"onboarding-next",children:S?B:H})]});return v.jsx(X.Modal,{isOpen:t,onClose:d,size:g?X.ModalSize.FULL:e,closeOnClickOutside:!0,title:"","aria-label":n,leftActions:$,rightActions:P,children:v.jsxs("div",{className:"c__onboarding-modal","data-testid":"onboarding-modal",children:[v.jsxs("div",{className:"c__onboarding-modal__header",children:[r&&v.jsx("div",{className:"c__onboarding-modal__app-name",children:r}),v.jsx("h2",{className:"c__onboarding-modal__main-title",children:n})]}),v.jsxs("div",{className:ve("c__onboarding-modal__body",{"c__onboarding-modal__body--text-only":!k}),children:[v.jsx("div",{ref:x,className:"c__onboarding-modal__steps",role:"tablist","aria-orientation":"vertical","aria-label":n,children:i.map((T,N)=>v.jsx(F1,{ref:j=>{F.current[N]=j},step:T,index:N,totalSteps:i.length,isActive:N===y,ariaLabel:W(N,T.title),onClick:()=>I(N)},N))}),k&&v.jsx("div",{className:"c__onboarding-modal__content",role:"tabpanel","aria-live":"polite","aria-atomic":"true","aria-label":_(),children:v.jsx("div",{className:ve("c__onboarding-modal__content-inner",{"c__onboarding-modal__content-inner--fading":C}),children:U==null?void 0:U.content})}),(k||l)&&v.jsxs("div",{className:"c__onboarding-modal__mobile-step",children:[v.jsx("div",{className:"c__onboarding-modal__mobile-step__icon","aria-hidden":"true",children:U&&Tl(U,!0)}),v.jsxs("div",{className:"c__onboarding-modal__mobile-step__content",children:[v.jsx("span",{className:"c__onboarding-modal__mobile-step__title",children:U==null?void 0:U.title}),(U==null?void 0:U.description)&&v.jsx("span",{className:"c__onboarding-modal__mobile-step__description",children:U.description})]})]})]})]})})},Jm=({steps:t,...e})=>v.jsx($1,{...e,steps:t,size:X.ModalSize.MEDIUM,hideContent:!0}),Qm=(t,e={})=>Ti.getThemesFromGlobals(gr(Xr,t),{...e,overrides:gr(ki,e.overrides??{})});Object.defineProperty(exports,"ModalSize",{enumerable:!0,get:()=>X.ModalSize});exports.AVATAR_COLORS=Aa;exports.AccessRoleDropdown=Zi;exports.Badge=jm;exports.ContextMenu=qp;exports.ContextMenuProvider=Gp;exports.CunninghamProvider=B1;exports.CustomTabs=v7;exports.DropdownMenu=Yr;exports.Filter=Jp;exports.Footer=Xp;exports.Header=cd;exports.Hero=e3;exports.HomeGutter=t3;exports.HorizontalSeparator=an;exports.Icon=Jr;exports.IconSize=xe;exports.IconType=ii;exports.InvitationUserSelectorItem=b1;exports.InvitationUserSelectorList=v1;exports.LaGaufre=f3;exports.LaGaufreV2=od;exports.Label=Id;exports.LanguagePicker=sd;exports.LeftPanel=ud;exports.MainLayout=ng;exports.OnboardingModal=$1;exports.ProConnectButton=Sc;exports.QuickSearch=mf;exports.QuickSearchGroup=yf;exports.QuickSearchInput=bf;exports.QuickSearchItem=Bn;exports.QuickSearchItemTemplate=Ki;exports.ReleaseNoteModal=Jm;exports.SearchUserItem=Ta;exports.ShareInvitationItem=C1;exports.ShareMemberItem=y1;exports.ShareModal=Wm;exports.ShareModalCopyLinkFooter=Zm;exports.Spinner=li;exports.TreeApi=pr;exports.TreeContext=_l;exports.TreeProvider=Sm;exports.TreeView=Fm;exports.TreeViewItem=Lm;exports.TreeViewMoveModeEnum=wt;exports.TreeViewNodeTypeEnum=se;exports.TreeViewSeparator=d1;exports.UserAvatar=Gi;exports.UserMenu=Ym;exports.UserMenuItem=D1;exports.UserRow=qi;exports.VerticalSeparator=g7;exports.WithLabel=og;exports.anctGlobals=id;exports.containerSizeMap=ld;exports.cunninghamConfig=fa;exports.dsfrGlobals=nd;exports.getContainerSize=D3;exports.getIconSize=x3;exports.getStepIcon=Tl;exports.getUIKitThemesFromGlobals=Qm;exports.getUserColor=Al;exports.getUserInitials=m1;exports.headerHeight=ig;exports.iconSizeMap=ad;exports.isNode=zr;exports.isSeparator=fi;exports.isTitle=hi;exports.isViewMore=f1;exports.locales=xc;exports.useArrowRoving=Km;exports.useContextMenuContext=Q2;exports.useCustomTranslations=E1;exports.useDropdownMenu=mr;exports.useResponsive=ot;exports.useTree=h1;exports.useTreeContext=Pl;exports.whiteLabelGlobals=rd;
98
+ Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,r]=ym(t.initialData);return Object.assign(Object.assign(Object.assign({},t),r),{data:e})}else return t}function Em(t,e){const r=Cm(t);return v.jsxs(dm,{treeProps:r,imperativeHandle:e,children:[v.jsx(hm,{children:v.jsx(pm,{})}),v.jsx(gm,{})]})}const wm=u.forwardRef(Em),d1=({top:t,left:e})=>v.jsx("div",{className:"c__tree-view__cursor",style:{top:t-2,left:e+10,width:`calc(100% - ${24+e}px)`}});function Dm(t,e){var r=u.useRef(null),n=u.useRef(null);n.current=e;var i=u.useRef(null);u.useEffect(function(){o()});var o=u.useCallback(function(){var a=i.current,l=n.current,s=a||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===t||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:t,cleanup:s?t(s):void 0})},[t]);return u.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),u.useCallback(function(a){i.current=a,o()},[o])}function pc(t,e,r){return t[e]?t[e][0]?t[e][0][r]:t[e][r]:e==="contentBoxSize"?t.contentRect[r==="inlineSize"?"width":"height"]:void 0}function xm(t){t===void 0&&(t={});var e=t.onResize,r=u.useRef(void 0);r.current=e;var n=t.round||Math.round,i=u.useRef(),o=u.useState({width:void 0,height:void 0}),a=o[0],l=o[1],s=u.useRef(!1);u.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var c=u.useRef({width:void 0,height:void 0}),d=Dm(u.useCallback(function(f){return(!i.current||i.current.box!==t.box||i.current.round!==n)&&(i.current={box:t.box,round:n,instance:new ResizeObserver(function(p){var g=p[0],y=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=pc(g,y,"inlineSize"),b=pc(g,y,"blockSize"),m=h?n(h):void 0,C=b?n(b):void 0;if(c.current.width!==m||c.current.height!==C){var E={width:m,height:C};c.current.width=m,c.current.height=C,r.current?r.current(E):s.current||l(E)}})}),i.current.instance.observe(f,{box:t.box}),function(){i.current&&i.current.instance.unobserve(f)}},[t.box,n]),t.ref);return u.useMemo(function(){return{ref:d,width:a.width,height:a.height}},[d,a.width,a.height])}var se=(t=>(t.NODE="node",t.SEPARATOR="separator",t.TITLE="title",t.SIMPLE_NODE="simpleNode",t.VIEW_MORE="viewMore",t))(se||{}),wt=(t=>(t.FIRST_CHILD="first-child",t.LAST_CHILD="last-child",t.LEFT="left",t.RIGHT="right",t))(wt||{});const fi=t=>t?t.nodeType===se.SEPARATOR:!1,hi=t=>t?t.nodeType===se.TITLE:!1,f1=t=>t?t.nodeType===se.VIEW_MORE:!1,zr=t=>!fi(t)&&!hi(t)&&!f1(t),h1=(t,e,r)=>{const{t:n}=X.useCunningham(),{remove:i,update:o,insert:a,insertBefore:l,insertAfter:s,append:c,prepend:d,getItem:f,move:p,items:g}=dp({initialItems:JSON.parse(JSON.stringify(t)),getKey:R=>R.id,getChildren:R=>R.children||[]}),[y,h]=u.useState(),b=(R=[])=>{const $=g.map(T=>T.key);i(...$);const P=JSON.parse(JSON.stringify(R));P.length>0&&a(null,0,...P),h(void 0)},m=R=>{const $=f(R);$&&h($.value)},C=(R,$,P)=>{var T,N,j,V;if(R){const Z=f(R);if(Z){const q=(N=Z.children)==null?void 0:N[((T=Z.children)==null?void 0:T.length)-1];let Y=P??((j=Z.children)==null?void 0:j.length)??0;P===((V=Z.children)==null?void 0:V.length)&&q&&q.value.nodeType===se.VIEW_MORE&&(Y=Y-1),a(R,Y,$)}}else a(null,P??g.length,$)},E=R=>{var $;return($=f(R))==null?void 0:$.value},F=(R,$)=>{var Z,q;const P=f(R);if(!P){console.error("No item found");return}let T=((Z=P.children)==null?void 0:Z.map(Y=>Y.value))??null;const N=$.childrenCount??P.value.childrenCount??0;if((T==null?void 0:T.length)===0&&N>0&&(T=null),$.children){const Y=[...T??[],...$.children],le=new Map;for(const G of Y)le.set(G.id,G);T=Array.from(le.values())}T&&(T=T.sort((Y,le)=>Y.nodeType===se.VIEW_MORE&&le.nodeType!==se.VIEW_MORE?1:Y.nodeType!==se.VIEW_MORE&&le.nodeType===se.VIEW_MORE?-1:0));const j=((q=$.pagination)==null?void 0:q.hasMore)??!1;T&&(T=T.filter(Y=>Y.nodeType!==se.VIEW_MORE)),j&&T&&T.push({id:`view-more-${R}`,nodeType:se.VIEW_MORE,label:n("components.treeView.viewMore")});const V={...P.value,...$,children:T,childrenCount:(T==null?void 0:T.length)??N};o(R,V)},x=R=>{i(R)},w=R=>{i(...R)},S=async R=>{if(!e){console.error("No refresh callback provided");return}try{const $=await e(R);F(R,$)}catch($){console.error("error while refreshing node:",$)}},O=(R,$)=>{a(null,$??g.length,R)},K=(R,$)=>{a(null,$??g.length,...R)},H=(R,$)=>{const P=f(R);if(!P){console.error("No item found");return}const T={...P.value,children:$,childrenCount:$.length,hasLoadedChildren:$.length>0};o(R,T)},D=R=>{const $=[],P=f(R);if(!P)return[];$.push(P.value);const T=N=>{const j=B(N);if(!j)return;const V=f(j);V&&($.push(V.value),T(j))};return T(R),$.reverse()},B=R=>{var $;return(($=f(R))==null?void 0:$.parentKey)??null},U=R=>{const $=B(R);if(!$)return null;const P=f($);return P?P.value:null},k=(R,$)=>{l(R,$)},W=(R,$)=>{s(R,$)},_=(R,$)=>{c(R,$)},I=(R,$)=>{d(R,$)},z=(R,$,P)=>{p(R,$,P)},L=R=>{z(R.sourceId,R.newParentId,R.index)},M=async R=>{var Y;if(!r)return console.error("No load paginated children callback provided"),[];const $=f(R);if(!$){console.error("No parent found");return}const T=(((Y=$==null?void 0:$.value.pagination)==null?void 0:Y.currentPage)??0)+1,N=await r(R,T);if(!N){console.error("No result found");return}const j=N.children,V=N.pagination,Z=T,q=(V==null?void 0:V.hasMore)??!1;F(R,{children:j,hasLoadedChildren:!0,pagination:{currentPage:Z,hasMore:q}})};return u.useEffect(()=>{const R=$=>{$.forEach(P=>{var T;if(P.children&&P.children.length>0){const N=P.value.hasLoadedChildren||((T=P.children)==null?void 0:T.length)>0||P.value.children&&P.value.children.length>0;P.value.children=P.children.map(V=>V.value);const j=N?P.children.length:P.value.childrenCount??0;P.value.childrenCount=j,N&&!P.value.hasLoadedChildren&&(P.value.hasLoadedChildren=!0),R(P.children)}else{const j=P.value.hasLoadedChildren||P.value.children&&P.value.children.length>0?0:P.value.childrenCount;P.value.children=[],P.value.childrenCount=j}})};R(g)},[g]),{nodes:g,addChild:C,updateNode:F,deleteNode:x,deleteNodes:w,addRootNode:O,addRootNodes:K,selectedNode:y,setSelectedNode:h,refreshNode:S,setChildren:H,insertBeforeNode:k,insertAfterNode:W,handleMove:L,prependToNode:I,moveNode:z,appendToNode:_,move:p,resetTree:b,handleLoadChildren:M,selectNodeById:m,getParent:U,getNode:E,getParentId:B,getAncestors:D}},_l=u.createContext(null),Sm=({children:t,onRefresh:e,initialNodeId:r,onLoadChildren:n,initialTreeData:i})=>{const o=u.useRef(null),[a,l]=u.useState(null),[s,c]=u.useState(r??null),d=h1(i??[],e,n);return v.jsx(_l.Provider,{value:{treeApiRef:o,treeData:d,root:a,initialTargetId:s,setInitialTargetId:c,setRoot:l},children:t})},Pl=()=>{const t=u.useContext(_l);if(!t)throw new Error("TreeContext not found");return t},Fm=({initialOpenState:t,dndRootElement:e,selectedNodeId:r,rootNodeId:n,renderNode:i,canDrop:o,canDrag:a,afterMove:l,beforeMove:s,paddingTop:c=10,paddingBottom:d=10,rowProps:f})=>{const[p,g]=u.useState(400),{ref:y,width:h}=xm(),b=Pl(),m=(b==null?void 0:b.treeData.nodes)??[];u.useEffect(()=>{const x=document.querySelector(".c__tree-view"),w=x==null?void 0:x.firstElementChild;let S=null;return x&&w&&(S=new ResizeObserver(()=>{if(w&&w instanceof HTMLElement){const O=w.style.height;g(parseInt(O,10)+20)}}),S.observe(w)),()=>S==null?void 0:S.disconnect()},[]);const C=x=>{var $,P,T,N;const w=JSON.parse(JSON.stringify(m)),S=x.dragNodes[0],O=x.parentId?(($=x.parentNode)==null?void 0:$.data.children)??[]:w,K=x.dragNodes[0].data.value.id,H=x.dragNodes[0].data,D=(P=x.parentNode)==null?void 0:P.data;if((D==null?void 0:D.value.nodeType)===se.TITLE||(D==null?void 0:D.value.nodeType)===se.SEPARATOR||(D==null?void 0:D.value.nodeType)===se.VIEW_MORE)return null;const B=H.parentKey??n,U=x.parentId??n;let k=x.index+0,W=null,_=U;const I=((N=(T=S.parent)==null?void 0:T.children)==null?void 0:N.findIndex(j=>j.data.value.id===K))??0;if(B===U){if(I===k)return null;k=k<I?k:k-1}const z=x.index-1,L=O[z],M=x.index,R=O[M];return x.index===0?(_=x.parentId??n,W=wt.FIRST_CHILD):!D&&x.index===1&&!zr(L.value)?(_=n,k=1,W=wt.FIRST_CHILD):x.index===O.length?(_=_??n,W=wt.LAST_CHILD):L&&zr(L.value)?(_=L.value.id,W=wt.RIGHT):R&&zr(R.value)&&(W=wt.LEFT,_=R.value.id),W&&_?{targetModeId:_,mode:W,oldParentId:B,index:k,newParentId:x.parentId,sourceId:K}:null},E=x=>{const w=C(x);w&&(s?s(w,()=>{b==null||b.treeData.handleMove(w),l==null||l(w)}):(b==null||b.treeData.handleMove(w),l==null||l(w)))},F=u.useCallback(x=>a?!a(x):!1,[a]);if(b)return v.jsx("div",{ref:y,style:{height:p},className:"c__tree-view--container",children:v.jsx(wm,{dndRootElement:e,data:m,ref:b.treeApiRef,openByDefault:!1,selectionFollowsFocus:!1,disableMultiSelection:!0,disableEdit:!0,className:"c__tree-view",idAccessor:"key",onMove:E,height:p,width:h,paddingTop:c,paddingBottom:d,rowHeight:34,disableDrag:F,disableDrop:({parentNode:x,dragNodes:w,index:S})=>{var B,U,k;if(o&&!o({parentNode:x,dragNodes:w,index:S}))return x.id!=="__REACT_ARBORIST_INTERNAL_ROOT__"&&(x.data.value.canDrop=!1),!0;const O=w[0];if(O&&O.isDragging&&O.willReceiveDrop||((B=x.data.value)==null?void 0:B.nodeType)===se.TITLE||((U=x.data.value)==null?void 0:U.nodeType)===se.SEPARATOR||((k=x.data.value)==null?void 0:k.nodeType)===se.VIEW_MORE)return!0;if(x.id==="__REACT_ARBORIST_INTERNAL_ROOT__"){const W=m[S-1],_=m[S],I=m[S+1],z=fi(W==null?void 0:W.value),L=fi(_==null?void 0:_.value),M=hi(W==null?void 0:W.value),R=hi(_==null?void 0:_.value),$=zr(I==null?void 0:I.value);return!!(S===0&&(L||R)||z&&R&&$||M&&L&&$)}const K=x==null?void 0:x.isOpen,H=(x==null?void 0:x.data.value.childrenCount)&&x.data.value.childrenCount>0||(x==null?void 0:x.data.children)&&x.data.children.length>0;if(!H)return x.data.value.canDrop=!0,!1;let D=x.data.value.childrenCount&&x.data.value.childrenCount>0&&(x==null?void 0:x.data.children)&&x.data.children.length>0;return D=D??!0,!K&&!D&&H?(x.data.value.canDrop=!0,!0):(x.data.value.canDrop=!0,!1)},initialOpenState:t,overscanCount:20,selection:r,renderCursor:d1,renderRow:x=>v.jsx($m,{...x,customRowProps:f}),rowClassName:"c__tree-view--row",children:i})})},$m=({children:t,customRowProps:e,...r})=>{const n=r.node.data.value.nodeType===se.TITLE,i=r.node.data.value.nodeType===se.SEPARATOR,o=r.node.data.value.nodeType===se.VIEW_MORE,{onKeyDown:a,onClick:l,...s}=e??{},{style:c}=r.attrs,d={...c},f=p=>{a==null||a(p);const g=p.target;if(g){const y=g.closest(".actions"),b=g.closest('button, a[href], input, textarea, select, [role="menuitem"], [role="button"]');if(y||b)return}if((p.key==="Enter"||p.key===" ")&&p.currentTarget.click(),p.key==="F2"){p.preventDefault();const y=p.currentTarget.querySelector("button");y&&y.focus()}};return n||i||o?u.createElement("div",{...r.attrs,key:r.node.id,style:d,ref:r.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{l==null||l(p),r.node.handleClick(p)},onKeyDown:a,...s},t):u.createElement("div",{...r.attrs,style:d,key:r.node.id,ref:r.innerRef,onFocus:p=>p.stopPropagation(),onClick:p=>{l==null||l(p),p.preventDefault(),p.stopPropagation(),r.node.select()},onKeyDown:f,...s},v.jsx("div",{className:"c__tree-view--row-content",children:t}))},_m=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",p1=_m?u.useLayoutEffect:u.useEffect;function g1(t){const e=u.useRef(t);return p1(()=>{e.current=t}),u.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}function gc(t,e){e===void 0&&(e=[t]);const r=u.useRef(t);return p1(()=>{r.current!==t&&(r.current=t)},e),r}function Pm(t){const e=g1(t),r=u.useRef(null),n=u.useCallback(i=>{i!==r.current&&(e==null||e(i,r.current)),r.current=i},[]);return[r,n]}let Vo={};function Am(t,e){return u.useMemo(()=>{const r=Vo[t]==null?0:Vo[t]+1;return Vo[t]=r,t+"-"+r},[t,e])}var Wr;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(Wr||(Wr={}));function vc(){}const Tm=Object.freeze({x:0,y:0});var lr;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(lr||(lr={}));var bc;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(bc||(bc={}));var ct;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(ct||(ct={}));ct.Space,ct.Enter,ct.Esc,ct.Space,ct.Enter,ct.Tab;var mc;(function(t){t[t.RightClick=2]="RightClick"})(mc||(mc={}));var yc;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(yc||(yc={}));var Cc;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(Cc||(Cc={}));lr.Backward+"",lr.Forward+"",lr.Backward+"",lr.Forward+"";var _a;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(_a||(_a={}));var Pa;(function(t){t.Optimized="optimized"})(Pa||(Pa={}));function km(t){let{callback:e,disabled:r}=t;const n=g1(e),i=u.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(n)},[r]);return u.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}_a.WhileDragging,Pa.Optimized;const Im={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:vc,draggableNodes:new Map,over:null,measureDroppableContainers:vc},Om=u.createContext(Im);({...Tm});var Ec;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Ec||(Ec={}));const Nm="Droppable",Mm={timeout:25};function Rm(t){let{data:e,disabled:r=!1,id:n,resizeObserverConfig:i}=t;const o=Am(Nm),{active:a,dispatch:l,over:s,measureDroppableContainers:c}=u.useContext(Om),d=u.useRef({disabled:r}),f=u.useRef(!1),p=u.useRef(null),g=u.useRef(null),{disabled:y,updateMeasurementsFor:h,timeout:b}={...Mm,...i},m=gc(h??n),C=u.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),g.current=null},b)},[b]),E=km({callback:C,disabled:y||!a}),F=u.useCallback((O,K)=>{E&&(K&&(E.unobserve(K),f.current=!1),O&&E.observe(O))},[E]),[x,w]=Pm(F),S=gc(e);return u.useEffect(()=>{!E||!x.current||(E.disconnect(),f.current=!1,E.observe(x.current))},[x,E]),u.useEffect(()=>(l({type:Wr.RegisterDroppable,element:{id:n,key:o,disabled:r,node:x,rect:p,data:S}}),()=>l({type:Wr.UnregisterDroppable,key:o,id:n})),[n]),u.useEffect(()=>{r!==d.current.disabled&&(l({type:Wr.SetDroppableDisabled,id:n,key:o,disabled:r}),d.current.disabled=r)},[n,o,r,l]),{active:a,rect:p,isOver:(s==null?void 0:s.id)===n,node:x,over:s,setNodeRef:w}}const Bm=t=>{const{isOver:e,setNodeRef:r}=Rm({id:t.id,data:t.data});return u.useEffect(()=>{var n;(n=t.onOver)==null||n.call(t,e,t.data)},[e,t.data,t.onOver]),v.jsx("div",{className:"c__dnd--droppable",ref:r,children:t.children})},Lm=({children:t,itemProps:e,testId:r,onClick:n,onKeyDown:i,node:o,dragHandle:a,style:l,forceLoading:s})=>{var O,K;const{t:c}=X.useCunningham(),d=Pl(),f=u.useRef(null),[p,g]=u.useState(!1),[y,h]=u.useState(!1),[b,m]=u.useState(!1),C=s??p,E=o.willReceiveDrop||b,F=o.data.value.childrenCount!==void 0&&o.data.value.childrenCount>0||(((O=o.data.children)==null?void 0:O.length)??0)>0,x=((K=o.children)==null?void 0:K.length)??!1,w=o.isLeaf||!F,S=u.useCallback(H=>{H.stopPropagation(),o.data.value.nodeType===se.VIEW_MORE&&(h(!0),d==null||d.treeData.handleLoadChildren(o.data.parentKey).then(()=>h(!1)).catch(()=>h(!1)))},[o.data.value.nodeType,o.data.parentKey,d==null?void 0:d.treeData]);return u.useEffect(()=>{w||x||o.data.value.hasLoadedChildren||o.isOpen&&(g(!0),d==null||d.treeData.handleLoadChildren(o.data.value.id).then(()=>g(!1)))},[o.isOpen,w,x,o.data.value.hasLoadedChildren,o.data.value.id,d==null?void 0:d.treeData]),u.useEffect(()=>(E&&!o.isOpen&&!o.isDragging&&(f.current=setTimeout(()=>{o.open()},500)),()=>{f.current&&clearTimeout(f.current)}),[E,o.isOpen,o.isDragging,o]),o.data.value.nodeType===se.SEPARATOR?v.jsx("div",{className:"c__tree-view--node__separator","data-testid":r}):o.data.value.nodeType===se.TITLE?v.jsx("div",{className:"c__tree-view--node__title","data-testid":r,children:o.data.value.headerTitle}):o.data.value.nodeType===se.VIEW_MORE?v.jsx("div",{className:"c__tree-view--row-content","data-testid":r,children:v.jsx("div",{className:"c__tree-view--node",style:l,children:v.jsxs("div",{role:"button",className:"c__tree-view--node__view-more-button",style:{paddingLeft:0,marginLeft:20},onClick:S,children:[y?v.jsx("div",{className:"c__tree-view--node__loading",children:v.jsx(li,{})}):v.jsx("span",{className:"material-icons c__tree-view--node__view-more-button__icon",children:"arrow_downward"}),v.jsxs("span",{className:"c__tree-view--node__view-more-text",children:[o.data.value.nodeType===se.VIEW_MORE,c("components.treeView.viewMore")]})]})})}):v.jsx(Bm,{id:o.id,data:{data:o.data,nodeApi:o},onOver:m,children:v.jsxs("div",{onClick:H=>{if(!H.target.closest(".c__tree-view--node")){H.stopPropagation();return}n==null||n()},onKeyDown:H=>{i==null||i(H),H.target.closest(".c__tree-view--node")||H.stopPropagation()},ref:a,style:l,className:ve("c__tree-view--node",{...o.state,simpleNode:o.data.value.nodeType===se.SIMPLE_NODE,canDrop:o.data.value.canDrop??!0,externalDrop:b}),"data-testid":r,...e,children:[w&&v.jsx("div",{className:"c__tree-view--node__leaf"}),!w&&v.jsxs(v.Fragment,{children:[C&&v.jsx("div",{className:"c__tree-view--node__loading",children:v.jsx(li,{})}),!C&&v.jsx("span",{onClick:H=>{H.stopPropagation(),o.toggle()},className:"c__tree-view--node__arrow material-icons",children:o.isOpen?"keyboard_arrow_down":"keyboard_arrow_right"})]}),t]})})},jm=({children:t,uppercased:e=!1,type:r="accent",className:n,...i})=>v.jsx("div",{className:ve(n,"c__badge",{"c__badge--uppercased":e,[`c__badge--${r}`]:r}),...i,children:t});function Km(t){u.useEffect(()=>{if(!t)return;let e=!1;const r=()=>Array.from(t.querySelectorAll("button")).filter(a=>!a.disabled&&a.getAttribute("aria-disabled")!=="true"),n=a=>{const l=a.key==="ArrowLeft"||a.key==="ArrowRight",s=a.key===" ";if(!(a.target instanceof HTMLElement))return;if(s){const h=a.target.closest("button");h instanceof HTMLButtonElement&&t.contains(h)&&h.click();return}if(!l)return;const d=a.target.closest("button");if(!(d instanceof HTMLButtonElement&&t.contains(d)))return;const p=r(),g=p.indexOf(d);if(g<0)return;a.preventDefault(),a.stopPropagation();const y=a.key==="ArrowRight"?(g+1)%p.length:(g-1+p.length)%p.length;p[y].focus(),e=!0},i=a=>{e&&((a.key===" "||a.key==="Enter")&&(a.preventDefault(),a.stopPropagation()),e=!1)},o={capture:!0};return t.addEventListener("keydown",n,o),t.addEventListener("keyup",i,o),()=>{t.removeEventListener("keydown",n,o),t.removeEventListener("keyup",i,o)}},[t])}const Zi=({roles:t,onSelect:e,canUpdate:r=!0,selectedRole:n,isOpen:i,onOpenChange:o,roleTopMessage:a,onDelete:l,canDelete:s=!0})=>{const{t:c}=X.useCunningham(),d=t.find(p=>p.value===n),f=u.useMemo(()=>!l&&!s?t:[...t,{type:"separator"},{label:c("components.share.access.delete"),callback:l,isDisabled:!s}],[t,l,c,s]);return r?v.jsx(Yr,{isOpen:i,shouldCloseOnInteractOutside:p=>!p.closest(".c__access-role-dropdown"),onOpenChange:o,options:f,selectedValues:[n],onSelectValue:e,topMessage:a,children:v.jsx(X.Button,{className:"c__access-role-dropdown","data-testid":"access-role-dropdown-button",size:"small",color:"brand",variant:"tertiary",icon:v.jsx("span",{className:"material-icons",children:i?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{o==null||o(!i)},children:d==null?void 0:d.label})}):v.jsx("span",{className:"c__access-role-dropdown__role-label-can-not-update",children:d==null?void 0:d.label})},v1=({users:t,onRemoveUser:e,rightActions:r,onShare:n,shareButtonLabel:i,roles:o,selectedRole:a,onSelectRole:l})=>{const{t:s}=X.useCunningham(),[c,d]=u.useState(!1);return v.jsxs("div",{className:"c__add-share-user-list","data-testid":"selected-users-list",children:[v.jsx("div",{className:"c__add-share-user-list__items",children:t.map(f=>v.jsx(b1,{user:f,onRemoveUser:e},f.id))}),v.jsxs("div",{className:"c__add-share-user-list__right-actions",children:[r,v.jsx(Zi,{roles:o,selectedRole:a,onSelect:l,isOpen:c,onOpenChange:d,canDelete:!1,onDelete:void 0}),v.jsx(X.Button,{onClick:n,children:i??s("components.share.shareButton")})]})]})},b1=({user:t,onRemoveUser:e})=>v.jsxs("div",{className:"c__add-share-user-item","data-testid":"selected-user-item",children:[v.jsx("span",{children:t.full_name||t.email}),v.jsx(X.Button,{variant:"tertiary",color:"neutral",size:"nano",onClick:()=>e==null?void 0:e(t),icon:v.jsx("span",{className:"material-icons",children:"close"})})]}),Aa=["gray","brand","red","orange","brown","green","blue-1","blue-2","pink","yellow","purple"],m1=t=>t.split(/[\s-_]+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),Al=t=>{let e=0;for(let r=0;r<t.length;r++)e+=t.charCodeAt(r);return Aa[e%Aa.length]},Gi=({fullName:t,size:e="medium",forceColor:r,backgroundColor:n})=>{const i=m1(t),o=n||Al(t);return v.jsx("div",{style:{backgroundColor:r||void 0},className:ve(`c__avatar ${e}`,{[o]:!r&&o}),children:v.jsx("div",{className:"c__avatar__initials",children:i})})},qi=({fullName:t,email:e,showEmail:r=!0})=>{const n=t&&t!==""?t:e??"";return v.jsxs("div",{className:"c__user-row",children:[v.jsx(Gi,{fullName:n,size:"small"}),v.jsxs("div",{className:"c__user-row__info",children:[v.jsx("span",{className:"c__user-row__name",children:t}),r&&e&&v.jsx("span",{className:ve("c__user-row__email",{"has-only-email":e&&(t===""||!t)}),children:e})]})]})},Ta=({user:t})=>{const{t:e}=X.useCunningham();return v.jsx(Ki,{testId:"search-user-item",left:v.jsx(qi,{fullName:t.full_name,email:t.email}),alwaysShowRight:!1,right:v.jsxs("div",{className:"c__search-user-item-right",children:[v.jsx("span",{children:e("components.share.item.add")}),v.jsx("span",{className:"material-icons",children:"add"})]})})},y1=({accessData:t,accessRoleKey:e="role",roles:r,updateRole:n,deleteAccess:i,canUpdate:o=!0,roleTopMessage:a})=>{const l=mr(),s=t.is_explicit!==!1&&t.can_delete!==!1;return v.jsx("div",{className:"c__share-member-item",children:v.jsx(Ki,{testId:"share-member-item",left:v.jsx(qi,{fullName:t.user.full_name,email:t.user.email,showEmail:!0}),alwaysShowRight:!0,right:v.jsx("div",{className:"c__share-member-item__right",children:v.jsx(Zi,{roles:r,selectedRole:t[e],onSelect:c=>n==null?void 0:n(t,c),isOpen:l.isOpen,onOpenChange:l.setIsOpen,canUpdate:o,roleTopMessage:a,canDelete:s,onDelete:i?()=>i(t):void 0})})})})},C1=({invitation:t,roles:e,updateRole:r,deleteInvitation:n,canUpdate:i=!0,roleTopMessage:o})=>{const a=mr();return v.jsx("div",{className:"c__share-member-item",children:v.jsx(Ki,{testId:"share-invitation-item",left:v.jsx(qi,{fullName:"",email:t.email,showEmail:!0}),alwaysShowRight:!0,right:v.jsx("div",{className:"c__share-member-item__right",children:v.jsx(Zi,{roles:e,selectedRole:t.role,onSelect:l=>r==null?void 0:r(t,l),isOpen:a.isOpen,canUpdate:i,onOpenChange:a.setIsOpen,roleTopMessage:o,onDelete:n?()=>n(t):void 0})})})})},E1=t=>{const{t:e}=X.useCunningham();return{t:r=>(t==null?void 0:t[r])??e(r)}},Hm=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:v.jsx("path",{fill:"currentColor",d:"M18 18c.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.446 1.446 0 0 0 18 15c-.417 0-.77.146-1.063.438A1.446 1.446 0 0 0 16.5 16.5c0 .417.146.77.438 1.063.291.291.645.437 1.062.437Zm0 3c.5 0 .967-.117 1.4-.35a3.011 3.011 0 0 0 1.075-.975 4.455 4.455 0 0 0-1.2-.512 5.048 5.048 0 0 0-2.55 0 4.445 4.445 0 0 0-1.2.512c.283.417.642.742 1.075.975.433.233.9.35 1.4.35ZM9 8h6V6c0-.833-.292-1.542-.875-2.125A2.893 2.893 0 0 0 12 3c-.833 0-1.542.292-2.125.875A2.893 2.893 0 0 0 9 6v2Zm3.25 14H6c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 4 20V10c0-.55.196-1.02.588-1.412A1.926 1.926 0 0 1 6 8h1V6c0-1.383.487-2.563 1.463-3.538C9.438 1.487 10.617 1 12 1s2.563.488 3.537 1.462C16.512 3.438 17 4.617 17 6v2h1c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412v1.3a5.7 5.7 0 0 0-.938-.225A7.006 7.006 0 0 0 18 11v-1H6v10h5.3c.133.4.267.746.4 1.038.133.291.317.612.55.962ZM18 23c-1.383 0-2.563-.488-3.537-1.462C13.488 20.562 13 19.383 13 18s.488-2.563 1.463-3.537C15.438 13.488 16.617 13 18 13s2.563.488 3.538 1.463C22.512 15.438 23 16.617 23 18s-.488 2.563-1.462 3.538C20.562 22.512 19.383 23 18 23Z"})}),Vm=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:v.jsx("path",{fill:"currentColor",d:"M12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm-1-2.05V18c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 9 16v-1l-4.8-4.8c-.05.3-.096.6-.138.9-.041.3-.062.6-.062.9 0 2.017.662 3.783 1.987 5.3 1.325 1.517 2.996 2.4 5.013 2.65Zm6.9-2.55c.333-.367.633-.762.9-1.188a7.45 7.45 0 0 0 .662-1.325c.175-.458.309-.929.4-1.412.092-.483.138-.975.138-1.475a7.845 7.845 0 0 0-1.363-4.475A7.701 7.701 0 0 0 15 4.6V5c0 .55-.196 1.02-.588 1.412A1.926 1.926 0 0 1 13 7h-2v2c0 .283-.096.52-.287.713A.968.968 0 0 1 10 10H8v2h6c.283 0 .52.096.713.287.191.192.287.43.287.713v3h1c.433 0 .825.13 1.175.387.35.259.592.596.725 1.013Z"})}),zm=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:v.jsx("path",{fill:"currentColor",d:"M12 22a9.676 9.676 0 0 1-3.875-.788 10.144 10.144 0 0 1-3.188-2.15 10.142 10.142 0 0 1-2.15-3.187A9.676 9.676 0 0 1 2 12c0-1.383.263-2.68.788-3.887a10.183 10.183 0 0 1 2.15-3.175 10.143 10.143 0 0 1 3.187-2.15A9.676 9.676 0 0 1 12 2c.533 0 1.046.038 1.537.112.492.075.98.188 1.463.338V5c0 .55-.196 1.02-.588 1.412A1.926 1.926 0 0 1 13 7h-2v2c0 .283-.096.52-.287.713A.968.968 0 0 1 10 10H8v2h6c.283 0 .52.096.713.287.191.192.287.43.287.713v3h1c.45 0 .846.133 1.188.4.341.267.579.6.712 1a8.68 8.68 0 0 0 1.538-2.462A7.621 7.621 0 0 0 20 12c0-.183-.008-.35-.025-.5a7.406 7.406 0 0 0-.075-.5h2.05c.033.183.05.35.05.5v.5a9.676 9.676 0 0 1-.788 3.875 10.143 10.143 0 0 1-2.15 3.188 10.184 10.184 0 0 1-3.175 2.15A9.649 9.649 0 0 1 12 22Zm-1-2.05V18c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0 1 9 16v-1l-4.8-4.8c-.05.3-.096.6-.138.9-.041.3-.062.6-.062.9 0 2.067.67 3.846 2.013 5.337C7.354 18.83 9.017 19.7 11 19.95ZM18 9a.968.968 0 0 1-.712-.287A.967.967 0 0 1 17 8V5a.97.97 0 0 1 .288-.713A.968.968 0 0 1 18 4V3c0-.55.196-1.02.587-1.413A1.926 1.926 0 0 1 20 1c.55 0 1.02.196 1.413.587.39.393.587.863.587 1.413v1a.97.97 0 0 1 .712.287c.192.192.288.43.288.713v3a.97.97 0 0 1-.288.713A.968.968 0 0 1 22 9h-4Zm1-5h2V3a.967.967 0 0 0-.288-.712A.968.968 0 0 0 20 2a.968.968 0 0 0-.712.288A.967.967 0 0 0 19 3v1Z"})}),In=t=>{switch(t){case"public":return v.jsx(Vm,{});case"restricted":return v.jsx(Hm,{});case"authenticated":return v.jsx(zm,{});default:return null}},Um=({linkReachChoices:t=[],canUpdate:e,linkReach:r="public",onUpdateLinkReach:n,showLinkRole:i=!1,linkRoleChoices:o=[],linkRole:a="reader",onUpdateLinkRole:l,customTranslations:s,topLinkReachMessage:c,topLinkRoleMessage:d})=>{const f=mr(),p=mr(),[g,y]=u.useState([r]),h=g[0],[b,m]=u.useState([a]),C=b[0],{t:E}=E1(s),F=u.useMemo(()=>t.map(D=>({icon:D.icon??In(D.value),value:D.value,label:E("components.share.linkSettings.reach.choices."+D.value+".title"),...D})),[t]),x=u.useMemo(()=>F.find(D=>D.value===h),[F,h]),w=u.useMemo(()=>o.map(D=>({value:D.value,label:E("components.share.linkSettings.role.choices."+D.value+".title"),...D})),[o]),S=u.useMemo(()=>w.find(D=>D.value===C),[w,C]);u.useEffect(()=>{y([r])},[r]);const O=i&&o.length>0,K=()=>v.jsx("div",{className:"c__share-modal__link-settings__content__select",children:e?v.jsx(Yr,{onSelectValue:D=>{y([D]),n==null||n(D)},options:F,isOpen:f.isOpen,topMessage:c,onOpenChange:f.setIsOpen,selectedValues:g,children:v.jsxs(X.Button,{variant:"tertiary",icon:In(h),iconPosition:"left","data-testid":"share-link-reach-dropdown-button",onClick:()=>{e&&f.setIsOpen(!f.isOpen)},children:[x==null?void 0:x.label,v.jsx("span",{className:"material-icons",children:f.isOpen?"arrow_drop_up":"arrow_drop_down"})]})}):v.jsxs("span",{className:"c__share-modal__link-settings__content__select__value disabled",children:[In("public"),x==null?void 0:x.label]})}),H=()=>O?v.jsx("div",{className:"c__share-modal__link-settings__content__select-role",children:e?v.jsx(Yr,{onSelectValue:D=>{m([D]),l==null||l(D)},options:w,isOpen:p.isOpen,onOpenChange:p.setIsOpen,selectedValues:b,topMessage:d,children:v.jsx(X.Button,{variant:"tertiary","data-testid":"share-link-role-dropdown-button",icon:v.jsx("span",{className:"material-icons",children:p.isOpen?"arrow_drop_up":"arrow_drop_down"}),iconPosition:"right",onClick:()=>{e&&p.setIsOpen(!p.isOpen)},size:"small",children:S==null?void 0:S.label})}):v.jsxs("span",{className:"c__share-modal__link-settings__content__select-role__value disabled",children:[In(C),S==null?void 0:S.label]})}):null;return v.jsxs("div",{className:"c__share-modal__link-settings","data-testid":"share-link-settings",children:[v.jsx("span",{className:"c__share-modal__link-settings__title",children:E("components.share.linkSettings.title")}),v.jsxs("div",{className:"c__share-modal__link-settings__content",children:[K(),v.jsx("div",{className:"c__share-modal__link-settings__content__description desktop",children:E(`components.share.linkSettings.reach.choices.${h}.description`)}),H()]}),v.jsx("div",{className:"c__share-modal__link-settings__content__description mobile",children:E(`components.share.linkSettings.reach.choices.${h}.description`)})]})},Wm=({searchUsersResult:t,children:e,outsideSearchContent:r,accesses:n=[],invitations:i=[],hasNextMembers:o=!1,canUpdate:a=!0,canView:l=!0,hasNextInvitations:s=!1,hideInvitations:c=!1,hideMembers:d=!1,cannotViewChildren:f,customTranslations:p,...g})=>{var T,N;if(!(c&&d)){if(!g.invitationRoles)throw new Error("invitationRoles is required");if(!g.onSearchUsers)throw new Error("onSearchUsers is required")}if(!c&&!g.onInviteUser)throw new Error("onInviteUser is required");if(a&&!l)throw new Error("canView cannot be false if canUpdate is true");const{t:y}=X.useCunningham(),{isMobile:h}=ot(),b=u.useRef(null),[m,C]=u.useState("400px"),E=u.useRef(null),[F,x]=u.useState(""),[w,S]=u.useState(""),[O,K]=u.useState([]),[H,D]=u.useState(((N=(T=g.invitationRoles)==null?void 0:T[0])==null?void 0:N.value)??""),B=h?"calc(100dvh - 32px)":"min(690px, calc(100dvh - 2em - 12px - 32px))",U=j=>{if(b.current&&clearTimeout(b.current),j===""){S(""),g.onSearchUsers("");return}b.current=setTimeout(()=>{g.onSearchUsers(j),S(j)},300)},k=j=>{x(j),U(j)},W=w!==""||O.length>0,_=u.useCallback(j=>{K(V=>[...V,j]),x(""),S(""),g.onSearchUsers("")},[g]),I=j=>{K(V=>V.filter(Z=>Z.id!==j.id))},z=u.useMemo(()=>{const j=t==null?void 0:t.filter(G=>!O.includes(G));let V=y(w!==""?"components.share.user.no_result":"components.share.user.placeholder");const q=(G=>!!G.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/))(w??"")&&!(j!=null&&j.some(G=>G.email===w)),Y={id:w,full_name:"",email:w};return q&&(V=void 0),{groupName:y("components.share.search.group_name"),elements:j??[],showWhenEmpty:!0,emptyString:V,endActions:q?[{content:v.jsx(Ta,{user:Y}),onSelect:()=>void _(Y)}]:void 0}},[t,w,y,O,_]),L=j=>{var le;const Z=(j==null?void 0:j.clientHeight)??0,q=((le=E.current)==null?void 0:le.clientHeight)??0,Y=`calc(${B} - ${Z}px - ${q}px - 70px - 10px)`;C(Y)},M=!c&&!W&&!g.loading&&i.length>0,R=!d&&!W&&!g.loading&&n.length>0,P=l?c&&d?"empty":"search":"cannot_view";return v.jsx(X.Modal,{title:g.modalTitle??y("components.share.modalTitle"),isOpen:g.isOpen,onClose:g.onClose,"aria-label":y("components.share.modalAriaLabel"),closeOnClickOutside:!0,size:h?X.ModalSize.FULL:X.ModalSize.LARGE,children:v.jsxs("div",{className:"c__share-modal no-padding",children:[a&&O.length>0&&v.jsx("div",{className:"c__share-modal__selected-users",ref:E,children:v.jsx(v1,{users:O,onRemoveUser:I,roles:g.invitationRoles,selectedRole:H,onSelectRole:D,onShare:()=>{g.onInviteUser(O,H),K([])}})}),P==="cannot_view"&&v.jsxs("div",{className:"c__share-modal__cannot-view",style:{height:m},children:[v.jsx("div",{className:"c__share-modal__cannot-view__content",children:v.jsx("p",{children:g.cannotViewMessage??y("components.share.cannot_view.message")})}),f]}),P==="search"&&v.jsx(mf,{onFilter:k,inputValue:F,showInput:a,loading:g.loading,placeholder:y("components.share.user.placeholder"),children:v.jsxs("div",{style:{height:m,overflowY:"auto"},children:[W&&v.jsx("div",{className:"c__share-modal__search-users","data-testid":"search-users-list",children:v.jsx(yf,{group:z,onSelect:j=>{_(j)},renderElement:j=>v.jsx(Ta,{user:j})})}),!W&&e,M&&v.jsxs("div",{className:"c__share-modal__invitations","data-testid":"invitations-list",children:[v.jsx("span",{className:"c__share-modal__invitations-title",children:y("components.share.invitations.title")}),i.map(j=>{var V;return v.jsx(C1,{invitation:j,roles:g.invitationRoles,updateRole:g.onUpdateInvitation,deleteInvitation:g.onDeleteInvitation,canUpdate:a,roleTopMessage:(V=g.invitationRoleTopMessage)==null?void 0:V.call(g,j)},j.id)}),v.jsx(wc,{show:s,onShowMore:g.onLoadNextInvitations})]}),R&&v.jsxs("div",{className:"c__share-modal__members","data-testid":"members-list",children:[v.jsx("span",{className:"c__share-modal__members-title",children:y(n.length>1?"components.share.members.title_plural":"components.share.members.title_singular",{count:n.length})}),n.map(j=>{var V,Z;return v.jsx(y1,{accessData:j,accessRoleKey:g.accessRoleKey??"role",canUpdate:a,roleTopMessage:(V=g.accessRoleTopMessage)==null?void 0:V.call(g,j),roles:((Z=g.getAccessRoles)==null?void 0:Z.call(g,j))??g.invitationRoles,updateRole:g.onUpdateAccess,deleteAccess:g.onDeleteAccess},j.id)}),v.jsx(wc,{show:o,onShowMore:g.onLoadNextMembers})]})]})}),v.jsx("div",{ref:L,children:!W&&v.jsxs("div",{className:"c__share-modal__footer",children:[g.linkSettings&&v.jsx(Um,{linkReachChoices:g.linkReachChoices,canUpdate:a,onUpdateLinkReach:g.onUpdateLinkReach,linkReach:g.linkReach,linkRoleChoices:g.linkRoleChoices,linkRole:g.linkRole,onUpdateLinkRole:g.onUpdateLinkRole,showLinkRole:g.showLinkRole,customTranslations:p,topLinkReachMessage:g.topLinkReachMessage,topLinkRoleMessage:g.topLinkRoleMessage}),r]})})]})})},wc=({show:t,onShowMore:e})=>{const{t:r}=X.useCunningham();return t?v.jsx("div",{className:"c__share-modal__show-more-button",children:v.jsx(X.Button,{variant:"tertiary",size:"small",icon:v.jsx("span",{className:"material-icons",children:"arrow_downward"}),onClick:e,children:r("components.share.members.load_more")})}):null},Zm=({onCopyLink:t,onOk:e})=>{const{t:r}=X.useCunningham();return v.jsxs("div",{className:"c__share-modal__copy-link-footer",children:[v.jsx(X.Button,{variant:"secondary",icon:v.jsx("span",{className:"material-icons",children:"link"}),onClick:t,children:r("components.share.copyLink")}),v.jsx(X.Button,{variant:"primary",onClick:e,children:r("components.share.ok")})]})},w1=({user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})=>{const o=!!n||!!i,{t:a}=X.useCunningham(),l=t?t.full_name??t.email:void 0,s=l?Al(l):void 0;return t?v.jsx(v.Fragment,{children:v.jsxs("div",{className:"user-menu__content__body",children:[v.jsxs("div",{className:"user-menu__content__body__user-info",style:{"--gradient-color":`var(--c--contextuals--background--palette--${s}--primary)`},children:[v.jsx(Gi,{fullName:l}),v.jsx("div",{className:"user-menu__content__identity",children:t.full_name?v.jsxs(v.Fragment,{children:[v.jsx("p",{className:"user-menu__content__identity__name",children:v.jsx("strong",{children:t.full_name})}),v.jsx("p",{className:"user-menu__content__identity__email",children:t.email})]}):v.jsx("p",{className:"user-menu__content__identity__email",children:v.jsx("strong",{children:t.email})})})]}),r&&v.jsxs(v.Fragment,{children:[v.jsx(an,{withPadding:!1}),v.jsx("div",{className:"user-menu__content__body__settings",children:e.map(c=>v.jsx(D1,{label:c.label,icon:c.icon,onClick:c.onClick},c.label))})]}),o&&v.jsxs(v.Fragment,{children:[v.jsx(an,{withPadding:!1}),v.jsxs("div",{className:"user-menu__actions user-menu__actions--mobile",children:[n&&v.jsx("div",{className:"user-menu__actions__left",children:n}),i&&v.jsx("div",{className:"user-menu__actions__right",children:v.jsx(X.Button,{variant:"tertiary",target:"_blank",href:i,size:"small",color:"neutral",children:a("components.userMenu.term_of_service")})})]})]})]})}):null},Gm=({...t})=>{const{t:e}=X.useCunningham(),r=S1();return v.jsxs(v.Fragment,{children:[v.jsx(x1,{user:t.user,...r}),v.jsx(X.Modal,{isOpen:r.openState,onClose:()=>r.setOpenState(!1),"aria-label":e("components.userMenu.dialogTitle"),size:X.ModalSize.FULL,children:v.jsxs("div",{className:"user-menu__popover user-menu__popover--mobile",children:[v.jsx(X.Button,{variant:"tertiary",className:"user-menu__close-button",onClick:r.toggleUserMenu,"aria-label":e("components.userMenu.close"),color:"neutral",icon:v.jsx(Jr,{name:"close"}),size:"small"}),v.jsx(w1,{...t}),v.jsx("div",{className:"user-menu__footer--mobile",children:v.jsx(X.Button,{variant:"primary",onClick:r.toggleUserMenu,children:e("components.share.ok")})})]})})]})},qm=({user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})=>{const{t:o}=X.useCunningham(),a=S1();return v.jsxs(v.Fragment,{children:[v.jsx(x1,{user:t,...a}),v.jsx(Pi,{className:"c__dropdown-menu user-menu__popover",triggerRef:a.triggerRef,isOpen:a.openState,onOpenChange:a.setOpenState,children:v.jsx(Rp,{"aria-label":o("components.userMenu.dialogTitle"),children:v.jsx(w1,{user:t,settingsItems:e,showSettings:r,actions:n,termOfServiceUrl:i})})})]})},Ym=({user:t,settingsCTA:e,logout:r,termOfServiceUrl:n,actions:i})=>{const{t:o}=X.useCunningham(),{isTablet:a}=ot(),l=u.useMemo(()=>{const c=[];return e&&c.push({label:o("components.userMenu.manage_account"),icon:"settings",onClick:typeof e=="function"?e:typeof e=="string"?()=>window.open(e,"_blank","noopener,noreferrer"):void 0}),r&&c.push({label:o("components.userMenu.logout"),icon:"logout",onClick:r}),c},[e,r,o]),s=l.length>0;return t?v.jsx(v.Fragment,{children:a?v.jsx(Gm,{user:t,settingsItems:l,showSettings:s,actions:i,termOfServiceUrl:n}):v.jsx(qm,{user:t,settingsItems:l,showSettings:s,actions:i,termOfServiceUrl:n})}):null},D1=({label:t,icon:e,onClick:r})=>v.jsxs("div",{className:"user-menu__item",onClick:r,children:[v.jsx(Jr,{name:e}),v.jsx("span",{className:"user-menu__item__label",children:t})]}),x1=({user:t,triggerRef:e,id:r,openState:n,toggleUserMenu:i})=>{const{t:o}=X.useCunningham();return t?v.jsx(X.Button,{className:"user-menu__button",variant:"tertiary",ref:e,id:r,onClick:i,"aria-label":o(n?"components.userMenu.close":"components.userMenu.open"),title:o(n?"components.userMenu.close":"components.userMenu.open"),children:v.jsx(Gi,{size:"small",fullName:t.full_name??t.email})}):null},S1=()=>{const t=u.useId(),[e,r]=u.useState(!1),n=()=>{r(!e)},i=u.useRef(null);return{id:t,openState:e,setOpenState:r,toggleUserMenu:n,triggerRef:i}},Tl=(t,e)=>e&&t.activeIcon?t.activeIcon:t.icon,F1=u.forwardRef(({step:t,isActive:e,onClick:r,index:n,ariaLabel:i},o)=>{const a=Tl(t,e);return v.jsxs("button",{ref:o,type:"button",className:ve("c__onboarding-modal__step",{"c__onboarding-modal__step--active":e}),onClick:r,"aria-current":e?"step":void 0,"aria-label":i,tabIndex:e?0:-1,"data-testid":`onboarding-step-${n}`,children:[v.jsx("div",{className:"c__onboarding-modal__step__icon","aria-hidden":"true",children:a}),v.jsxs("div",{className:"c__onboarding-modal__step__content",children:[v.jsx("span",{className:"c__onboarding-modal__step__title",children:t.title}),t.description&&v.jsx("div",{className:"c__onboarding-modal__step__description-wrapper",children:v.jsx("span",{className:"c__onboarding-modal__step__description",children:t.description})})]})]})});F1.displayName="OnboardingStepItem";const Xm=200,$1=({isOpen:t,size:e=X.ModalSize.LARGE,appName:r,mainTitle:n,steps:i,initialStep:o=0,footerLink:a,hideContent:l,onSkip:s,onComplete:c,onClose:d,labels:f})=>{const{t:p}=X.useCunningham(),{isMobile:g}=ot(),[y,h]=u.useState(o),[b,m]=u.useState(o),[C,E]=u.useState(!1),F=u.useRef([]),x=u.useRef(null),w=u.useRef(null),S=y===i.length-1,O=y===0,K=(f==null?void 0:f.skip)??p("components.onboarding.skip"),H=(f==null?void 0:f.next)??p("components.onboarding.next"),D=(f==null?void 0:f.previous)??p("components.onboarding.previous"),B=(f==null?void 0:f.complete)??p("components.onboarding.complete"),U=i[b],k=!l&&!!(U!=null&&U.content),W=u.useCallback((T,N)=>{const j=p("components.onboarding.stepLabel").replace("{current}",String(T+1)).replace("{total}",String(i.length)).replace("{title}",N);return T===y?j+p("components.onboarding.currentStepSuffix"):j},[p,i.length,y]),_=u.useCallback(()=>p("components.onboarding.contentRegionLabel").replace("{current}",String(b+1)).replace("{total}",String(i.length)),[p,b,i.length]);u.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]),u.useEffect(()=>{const T=F.current[y];T&&T.scrollIntoView({behavior:"smooth",block:"nearest"})},[y]),u.useEffect(()=>{if(t){w.current&&(clearTimeout(w.current),w.current=null),h(o),m(o),E(!1);const T=setTimeout(()=>{requestAnimationFrame(()=>{const N=F.current[o];N&&!g&&N.focus()})},150);return()=>clearTimeout(T)}},[t,o,g]);const I=u.useCallback(T=>{T!==y&&(w.current&&clearTimeout(w.current),E(!0),h(T),w.current=setTimeout(()=>{m(T),E(!1),w.current=null},Xm))},[y]);u.useEffect(()=>{const T=x.current;if(!T)return;const N=j=>{if(j.key!=="ArrowUp"&&j.key!=="ArrowDown"||!j.target.closest(".c__onboarding-modal__step"))return;j.preventDefault();const Z=j.key==="ArrowDown"?(y+1)%i.length:(y-1+i.length)%i.length;I(Z),setTimeout(()=>{var q;(q=F.current[Z])==null||q.focus()},0)};return T.addEventListener("keydown",N),()=>T.removeEventListener("keydown",N)},[y,i.length,I]);const z=u.useCallback(()=>{S?c():I(y+1)},[S,c,I,y]),L=u.useCallback(()=>{O||I(y-1)},[O,I,y]),M=u.useCallback(()=>{s==null||s()},[s]);if(i.length===0)return null;const R=Math.max(0,Math.min(o,i.length-1));R!==o&&process.env.NODE_ENV==="development"&&console.warn(`OnboardingModal: initialStep (${o}) is out of bounds. Using ${R} instead.`);const $=a?v.jsxs("a",{className:"c__onboarding-modal__footer-link",target:"_blank",href:a.href,onClick:T=>{a.onClick&&(a.href||T.preventDefault(),a.onClick())},children:[v.jsx("span",{className:"material-icons","aria-hidden":"true",children:"info"}),v.jsx("span",{className:"c__onboarding-modal__footer-link__label",children:a.label})]}):void 0,P=v.jsxs(v.Fragment,{children:[g&&!O&&v.jsx(X.Button,{variant:"secondary",onClick:L,"data-testid":"onboarding-previous",children:D}),s&&v.jsx(X.Button,{variant:"tertiary",onClick:M,"data-testid":"onboarding-skip",children:K}),v.jsx(X.Button,{variant:"primary",onClick:z,"data-testid":"onboarding-next",children:S?B:H})]});return v.jsx(X.Modal,{isOpen:t,onClose:d,size:g?X.ModalSize.FULL:e,closeOnClickOutside:!0,title:"","aria-label":n,leftActions:$,rightActions:P,children:v.jsxs("div",{className:"c__onboarding-modal","data-testid":"onboarding-modal",children:[v.jsxs("div",{className:"c__onboarding-modal__header",children:[r&&v.jsx("div",{className:"c__onboarding-modal__app-name",children:r}),v.jsx("h2",{className:"c__onboarding-modal__main-title",children:n})]}),v.jsxs("div",{className:ve("c__onboarding-modal__body",{"c__onboarding-modal__body--text-only":!k}),children:[v.jsx("div",{ref:x,className:"c__onboarding-modal__steps",role:"tablist","aria-orientation":"vertical","aria-label":n,children:i.map((T,N)=>v.jsx(F1,{ref:j=>{F.current[N]=j},step:T,index:N,totalSteps:i.length,isActive:N===y,ariaLabel:W(N,T.title),onClick:()=>I(N)},N))}),k&&v.jsx("div",{className:"c__onboarding-modal__content",role:"tabpanel","aria-live":"polite","aria-atomic":"true","aria-label":_(),children:v.jsx("div",{className:ve("c__onboarding-modal__content-inner",{"c__onboarding-modal__content-inner--fading":C}),children:U==null?void 0:U.content})}),(k||l)&&v.jsxs("div",{className:"c__onboarding-modal__mobile-step",children:[v.jsx("div",{className:"c__onboarding-modal__mobile-step__icon","aria-hidden":"true",children:U&&Tl(U,!0)}),v.jsxs("div",{className:"c__onboarding-modal__mobile-step__content",children:[v.jsx("span",{className:"c__onboarding-modal__mobile-step__title",children:U==null?void 0:U.title}),(U==null?void 0:U.description)&&v.jsx("span",{className:"c__onboarding-modal__mobile-step__description",children:U.description})]})]})]})]})})},Jm=({steps:t,...e})=>v.jsx($1,{...e,steps:t,size:X.ModalSize.MEDIUM,hideContent:!0}),Qm=(t,e={})=>Ti.getThemesFromGlobals(gr(Xr,t),{...e,overrides:gr(ki,e.overrides??{})});Object.defineProperty(exports,"ModalSize",{enumerable:!0,get:()=>X.ModalSize});exports.AVATAR_COLORS=Aa;exports.AccessRoleDropdown=Zi;exports.Badge=jm;exports.ContextMenu=qp;exports.ContextMenuProvider=Gp;exports.CunninghamProvider=B1;exports.CustomTabs=v7;exports.DropdownMenu=Yr;exports.Filter=Jp;exports.Footer=Xp;exports.Header=cd;exports.Hero=e3;exports.HomeGutter=t3;exports.HorizontalSeparator=an;exports.Icon=Jr;exports.IconSize=xe;exports.IconType=ii;exports.InvitationUserSelectorItem=b1;exports.InvitationUserSelectorList=v1;exports.LaGaufre=f3;exports.LaGaufreV2=od;exports.Label=Id;exports.LanguagePicker=sd;exports.LeftPanel=ud;exports.MainLayout=ng;exports.OnboardingModal=$1;exports.ProConnectButton=Sc;exports.QuickSearch=mf;exports.QuickSearchGroup=yf;exports.QuickSearchInput=bf;exports.QuickSearchItem=Bn;exports.QuickSearchItemTemplate=Ki;exports.ReleaseNoteModal=Jm;exports.SearchUserItem=Ta;exports.ShareInvitationItem=C1;exports.ShareMemberItem=y1;exports.ShareModal=Wm;exports.ShareModalCopyLinkFooter=Zm;exports.Spinner=li;exports.TreeApi=pr;exports.TreeContext=_l;exports.TreeProvider=Sm;exports.TreeView=Fm;exports.TreeViewItem=Lm;exports.TreeViewMoveModeEnum=wt;exports.TreeViewNodeTypeEnum=se;exports.TreeViewSeparator=d1;exports.UserAvatar=Gi;exports.UserMenu=Ym;exports.UserMenuItem=D1;exports.UserRow=qi;exports.VerticalSeparator=g7;exports.WithLabel=og;exports.anctGlobals=id;exports.containerSizeMap=ld;exports.cunninghamConfig=fa;exports.dsfrGlobals=nd;exports.getContainerSize=D3;exports.getIconSize=x3;exports.getStepIcon=Tl;exports.getUIKitThemesFromGlobals=Qm;exports.getUserColor=Al;exports.getUserInitials=m1;exports.headerHeight=ig;exports.iconSizeMap=ad;exports.isNode=zr;exports.isSeparator=fi;exports.isTitle=hi;exports.isViewMore=f1;exports.locales=xc;exports.useArrowRoving=Km;exports.useContextMenuContext=Q2;exports.useCustomTranslations=E1;exports.useDropdownMenu=mr;exports.useResponsive=ot;exports.useTree=h1;exports.useTreeContext=Pl;exports.whiteLabelGlobals=rd;
99
99
  //# sourceMappingURL=index.cjs.map