@imagile-dev/toil-ui 0.1.0-beta.4 → 0.1.0-beta.6

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.
Files changed (61) hide show
  1. package/README.md +529 -180
  2. package/dist/app/assets/400-3Dshv1o0.css +1 -0
  3. package/dist/app/assets/400-BlzPh-5d.css +1 -0
  4. package/dist/app/assets/400-CPrO1MiG.css +1 -0
  5. package/dist/app/assets/400-CbHxiUkt.css +1 -0
  6. package/dist/app/assets/400-D153RTnK.css +1 -0
  7. package/dist/app/assets/600-B0bH0tPL.css +1 -0
  8. package/dist/app/assets/600-BC2hxnnO.css +1 -0
  9. package/dist/app/assets/600-BR9-_eiK.css +1 -0
  10. package/dist/app/assets/600-BsKsKkx5.css +1 -0
  11. package/dist/app/assets/600-Czj0FyAy.css +1 -0
  12. package/dist/app/assets/600-D452fNA9.css +1 -0
  13. package/dist/app/assets/600-D6SrDV1i.css +1 -0
  14. package/dist/app/assets/600-DBby7xF7.css +1 -0
  15. package/dist/app/assets/700-DlBBsyxq.css +1 -0
  16. package/dist/app/assets/700-Dr8Emwbw.css +1 -0
  17. package/dist/app/assets/Graph-CAQkpyYr.js +7 -0
  18. package/dist/app/assets/PowershellMan-DldYCOOP.js +1 -0
  19. package/dist/app/assets/gallery-447w4Nva.js +1 -0
  20. package/dist/app/assets/graph-CPXdI5ap.js +13 -0
  21. package/dist/app/assets/graph-CpctQRjW.css +1 -0
  22. package/dist/app/assets/index-CGVZr4kM.css +1 -0
  23. package/dist/app/assets/index-lUb0DGcI.js +732 -0
  24. package/dist/app/assets/jsx-runtime-DyZJNswf.js +1 -0
  25. package/dist/app/assets/latin-400-BVAlDo0s.css +1 -0
  26. package/dist/app/assets/latin-400-_vizA_-6.css +1 -0
  27. package/dist/app/assets/latin-600-BcF9gTYO.css +1 -0
  28. package/dist/app/assets/latin-600-Cv5fXBpv.css +1 -0
  29. package/dist/app/assets/latin-600-yBvtfTSt.css +1 -0
  30. package/dist/app/assets/latin-800-DN-4L033.css +1 -0
  31. package/dist/app/assets/sample-app-DEDGRcL1.js +27 -0
  32. package/dist/app/assets/series-B2reSWoM.svg +10 -0
  33. package/dist/app/assets/series-CRHwxbpo.svg +10 -0
  34. package/dist/app/assets/series-CppUGsOL.svg +10 -0
  35. package/dist/app/assets/series-DVzjwDhp.svg +10 -0
  36. package/dist/app/assets/series-zigaZBZX.svg +10 -0
  37. package/dist/app/assets/{source-serif-4-cyrillic-600-normal-DFnC3vAY.woff → source-serif-4-cyrillic-600-normal-CHh5eQWW.woff} +0 -0
  38. package/dist/app/assets/{source-serif-4-cyrillic-ext-600-normal-DiT2IGQm.woff → source-serif-4-cyrillic-ext-600-normal-h2VnbV3V.woff} +0 -0
  39. package/dist/app/assets/{source-serif-4-greek-600-normal-DhXQw1Kl.woff → source-serif-4-greek-600-normal-OkzgCkGB.woff} +0 -0
  40. package/dist/app/assets/{source-serif-4-latin-600-normal-DMD1h6_f.woff → source-serif-4-latin-600-normal-DeJomR3S.woff} +0 -0
  41. package/dist/app/assets/{source-serif-4-latin-ext-600-normal-C6NNqpJh.woff → source-serif-4-latin-ext-600-normal-B2fExS53.woff} +0 -0
  42. package/dist/app/assets/source-serif-4-latin-ext-600-normal-pa-C5Dkf.woff2 +0 -0
  43. package/dist/app/assets/source-serif-4-vietnamese-600-normal-B33FcZBi.woff2 +0 -0
  44. package/dist/app/assets/{source-serif-4-vietnamese-600-normal-B0WJbuqT.woff → source-serif-4-vietnamese-600-normal-CKUOBVO_.woff} +0 -0
  45. package/dist/app/assets/theme-BxDF9UoZ.css +1 -0
  46. package/dist/app/assets/theme-zHGs48Oo.css +1 -0
  47. package/dist/app/assets/unread-27QyAoLL.css +1 -0
  48. package/dist/app/assets/unread-Cpm8TUDq.js +4 -0
  49. package/dist/app/index.html +7 -2
  50. package/dist/server/toil-ui.js +21912 -10488
  51. package/package.json +19 -17
  52. package/dist/app/assets/Graph-8jUpxY5T.js +0 -7
  53. package/dist/app/assets/PowershellMan-D_GfPDDt.js +0 -1
  54. package/dist/app/assets/index-BJY6F1XS.js +0 -504
  55. package/dist/app/assets/index-BWejFOaT.css +0 -1
  56. package/dist/app/assets/press-start-2p-latin-400-normal-KLytu4cr.woff +0 -0
  57. package/dist/app/assets/press-start-2p-latin-400-normal-_wFEWmAB.woff2 +0 -0
  58. package/dist/app/assets/source-serif-4-latin-ext-600-normal-0sIUyHMO.woff2 +0 -0
  59. package/dist/app/assets/source-serif-4-vietnamese-600-normal-CznyfUKR.woff2 +0 -0
  60. package/dist/app/assets/theme-Bd9rCh2b.css +0 -1
  61. package/dist/app/assets/theme-hbyLw_lf.css +0 -1
@@ -0,0 +1,13 @@
1
+ import{i as e,n as t,r as n,t as r}from"./jsx-runtime-DyZJNswf.js";import{A as i,F as a,I as o,J as s,M as c,Q as l,S as u,Z as d,a as f,at as p,ct as m,d as h,i as g,it as _,j as v,k as y,nt as b,ot as x,q as S,s as C,t as w,tt as T,w as E,y as D,z as O}from"./unread-Cpm8TUDq.js";var k=n((e=>{var n=t();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),A=n(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=k()})),j=e(t(),1);function M(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var N=typeof document<`u`?j.useLayoutEffect:()=>{},ee={prefix:String(Math.round(Math.random()*1e10)),current:0},te=j.createContext(ee),ne=j.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var P=new WeakMap;function F(e=!1){let t=(0,j.useContext)(te),n=(0,j.useRef)(null);if(n.current===null&&!e){let e=j.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=P.get(e);n==null?P.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,P.delete(e))}n.current=++t.current}return n.current}function I(e){let t=(0,j.useContext)(te),n=F(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function re(e){let t=j.useId(),[n]=(0,j.useState)(se()),r=n?`react-aria`:`react-aria${ee.prefix}`;return e||`${r}-${t}`}var L=typeof j.useId==`function`?re:I;function ie(){return!1}function ae(){return!0}function oe(e){return()=>{}}function se(){return typeof j.useSyncExternalStore==`function`?j.useSyncExternalStore(oe,ie,ae):(0,j.useContext)(ne)}function ce(e){let[t,n]=(0,j.useState)(e),r=(0,j.useRef)(t),i=(0,j.useRef)(null),a=(0,j.useRef)(()=>{if(!i.current)return;let e=i.current.next();e.done?i.current=null:r.current===e.value?a.current():n(e.value)});return N(()=>{r.current=t,i.current&&a.current()}),[t,(0,j.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}var le=!!(typeof window<`u`&&window.document&&window.document.createElement),ue=new Map,de;typeof FinalizationRegistry<`u`&&(de=new FinalizationRegistry(e=>{ue.delete(e)}));var fe=new WeakMap;function R(e){let[t,n]=(0,j.useState)(e),r=(0,j.useRef)(null),i=L(t),a=(0,j.useRef)(null),o=fe.get(a);if(de&&o!==i&&(o!=null&&de.unregister(a),de.register(a,i,a),fe.set(a,i)),le){let e=ue.get(i);e&&!e.includes(r)?e.push(r):ue.set(i,[r])}return N(()=>{let e=i;return()=>{de&&(de.unregister(a),fe.delete(a)),ue.delete(e)}},[i]),(0,j.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function pe(e,t){if(e===t)return e;let n=ue.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=ue.get(t);return r?(r.forEach(t=>t.current=e),e):t}function me(e=[]){let t=R(),[n,r]=ce(t),i=(0,j.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return N(i,[t,i,...e]),n}function he(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=ge(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():ge(e[n],null)})}}}function ge(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function _e(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_e(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function ve(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_e(e))&&(r&&(r+=` `),r+=t);return r}function z(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=M(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=ve(n,i):e===`id`&&n&&i?t.id=pe(n,i):e===`ref`&&n&&i?t.ref=he(n,i):t[e]=i===void 0?n:i}}return t}function ye(e){let t=(0,j.useRef)(null),n=(0,j.useRef)(void 0),r=(0,j.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,j.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}var be=e(A(),1),xe=Symbol(`default`);function Se({values:e,children:t}){for(let[n,r]of e)t=j.createElement(n.Provider,{value:r},t);return t}function Ce(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:c}=e;return(0,j.useMemo)(()=>{let e,l,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,l=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:l||o?{...o,...l}:void 0,children:u??a,"data-rac":``,render:c?e=>c(e,s):void 0}},[t,n,r,i,a,o,s,c])}function we(e,t){let n=(0,j.useContext)(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||xe;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function Te(e,t,n){let{ref:r,...i}=we(n,e.slot)||{},a=ye((0,j.useMemo)(()=>he(t,r),[t,r])),o=z(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function Ee(e=!0){let[t,n]=(0,j.useState)(e),r=(0,j.useRef)(!1),i=(0,j.useCallback)(e=>{r.current=!0,n(!!e)},[]);return N(()=>{r.current||n(!1)},[]),[i,t]}function De(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function Oe(e,t,n){let{render:r,...i}=t,a=(0,j.useRef)(null),o=(0,j.useMemo)(()=>he(n,a),[n,a]);N(()=>{},[e,r]);let s={...i,ref:o};return r?r(s,void 0):j.createElement(e,s)}var ke={},B=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=ke[t];return n||(n=(0,j.forwardRef)(Oe.bind(null,t)),ke[t]=n),n}}),Ae=`react-aria-clear-focus`,je=`react-aria-focus`,V=e=>Ne(e)?e.document:Pe(e)?e:e?.ownerDocument??(typeof document<`u`?document:void 0),H=e=>V(e)?.defaultView??(typeof window<`u`?window:void 0);function Me(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function Ne(e){return typeof e==`object`&&!!e&&`window`in e&&e.window===e}function Pe(e){return Me(e)&&e.nodeType===9}function Fe(e){return Me(e)&&e.nodeType===11&&`host`in e}function Ie(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let e of i)e.addEventListener(t,n,r);return()=>{for(let e of i)e.removeEventListener(t,n,r)}}function Le(e,t,n,r){if(e==null)return()=>{};let i=[],a=Array.isArray(e)?e:[e];for(let e of a){let a=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);e.style.setProperty(t,n,r),i.unshift(()=>{a?e.style.setProperty(t,a,o):e.style.removeProperty(t)})}return()=>{for(let e of i)e()}}var Re=!1;function ze(){return Re}function U(e,t){if(!ze())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!=null;){if(n===e)return!0;n=typeof n.assignedElements!=`function`&&n.assignedSlot?.parentNode?n.assignedSlot.parentNode:Fe(n)?n.host:n.parentNode}return!1}var W=(e=document)=>{if(!ze())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function G(e){if(ze()&&e.target instanceof Element&&e.target.shadowRoot){if(`composedPath`in e)return e.composedPath()[0]??null;if(`composedPath`in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function Be(e,t){if(t===null)return[];t??=H(e);let n=[t];if(!ze()||!e||e===t)return n;let r=`getRootNode`in t?t.getRootNode():null,i=e.getRootNode()??null;for(;Fe(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function Ve(e){if(!e)return!1;let t=e.getRootNode(),n=H(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function He(e){let t=Ge(V(e));t!==e&&(t&&Ue(t,e),e&&We(e,t))}function Ue(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function We(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function Ge(e){let t=W(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}function Ke(e){e.focus({preventScroll:!0})}var qe=typeof Element<`u`&&`checkVisibility`in Element.prototype;function Je(e){let t=H(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=H(e),{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function Ye(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function Xe(e,t){return qe?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&Je(e)&&Ye(e,t)&&(!e.parentElement||Xe(e.parentElement,e))}var Ze=[`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`],Qe=Ze.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;Ze.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var $e=Ze.join(`:not([hidden]):not([tabindex="-1"]),`);function et(e,t){return e.matches(Qe)&&!nt(e)&&(t?.skipVisibilityCheck||Xe(e))}function tt(e){return e.matches($e)&&Xe(e)&&!nt(e)}function nt(e){let t=e;for(;t!=null;){if(t instanceof H(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function rt(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function it(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function at(e){let t=(0,j.useRef)({isFocused:!1,observer:null});return N(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,j.useCallback)(n=>{let r=G(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=rt(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===W()?null:W();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e})),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}var ot=!1;function st(e){for(;e&&!et(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=W(H(e).document);if(!t||t===e)return;let n=e?.getRootNode(),r=n!=null&&Fe(n)?n:H(e),i=t=>t===e||Me(t)&&U(e,t),a=e=>e===t||t!=null&&Me(e)&&U(t,e);ot=!0;let o=!1,s=e=>{(a(G(e))||o)&&e.stopImmediatePropagation()},c=n=>{(a(G(n))||o)&&(n.stopImmediatePropagation(),!e&&!o&&(o=!0,Ke(t),d()))},l=e=>{(i(G(e))||o)&&e.stopImmediatePropagation()},u=e=>{(i(G(e))||o)&&(e.stopImmediatePropagation(),o||(o=!0,Ke(t),d()))};r.addEventListener(`blur`,s,!0),r.addEventListener(`focusout`,c,!0),r.addEventListener(`focusin`,u,!0),r.addEventListener(`focus`,l,!0);let d=()=>{cancelAnimationFrame(f),r.removeEventListener(`blur`,s,!0),r.removeEventListener(`focusout`,c,!0),r.removeEventListener(`focusin`,u,!0),r.removeEventListener(`focus`,l,!0),ot=!1,o=!1},f=requestAnimationFrame(d);return d}function ct(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function lt(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function ut(e){let t=null;return()=>(t??=e(),t)}var dt=ut(function(){return lt(/^Mac/i)}),ft=ut(function(){return lt(/^iPhone/i)}),pt=ut(function(){return lt(/^iPad/i)||dt()&&navigator.maxTouchPoints>1}),mt=ut(function(){return ft()||pt()}),ht=ut(function(){return dt()||mt()}),gt=ut(function(){return ct(/AppleWebKit/i)&&(mt()||!_t())}),_t=ut(function(){return ct(/Chrome|CriOS|CrMo/i)}),vt=ut(function(){return ct(/Android/i)});function yt(e){return e.pointerType===``&&e.isTrusted?!0:vt()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function bt(e){return!vt()&&e.width===0&&e.height===0||vt()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}var xt=(0,j.createContext)({isNative:!0,open:Et,useHref:e=>e});function St(){return(0,j.useContext)(xt)}function Ct(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function wt(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t,s=gt()&&dt()&&!pt()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});wt.isOpening=n,Ke(e),e.dispatchEvent(s),wt.isOpening=!1}wt.isOpening=!1;function Tt(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function Et(e,t){Tt(e,e=>wt(e,t))}function Dt(e){let t=St().useHref(e?.href??``),n={};if(e)for(let r of[`href`,`target`,`rel`,`download`,`ping`,`referrerPolicy`])r in e&&e[r]!==void 0&&(n[r]=r===`href`?t:e[r]);return n}function Ot(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Ct(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}var kt=null,At=`keyboard`,jt=new Set,Mt=new Map,Nt=!1,Pt=!1,Ft={Tab:!0,Escape:!0};function It(e,t){for(let n of jt)n(e,t)}function Lt(e){return!(e.metaKey||!dt()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function Rt(e){Nt=!0,!wt.isOpening&&Lt(e)&&(kt=`keyboard`,At=`keyboard`,It(`keyboard`,e))}function zt(e){kt=`pointer`,At=`pointerType`in e?e.pointerType:`mouse`,(e.type===`mousedown`||e.type===`pointerdown`)&&(Nt=!0,It(`pointer`,e))}function Bt(e){!wt.isOpening&&yt(e)&&(Nt=!0,kt=`virtual`,At=`virtual`)}function Vt(e){if(ot)return;let t=G(e),n=H(t),r=V(t);t===n?Pt=!0:t!==r&&e.isTrusted&&(!Nt&&!Pt&&(kt=`virtual`,At=`virtual`,It(`virtual`,e)),Nt=!1,Pt=!1)}function Ht(){ot||(Nt=!1,Pt=!0)}function Ut(e){let t=W(V(G(e)));queueMicrotask(()=>{W(V(G(e)))!==t&&Yt(`keyboard`)})}function Wt(e){if(typeof window>`u`||typeof document>`u`)return;let t=H(e),n=V(e);if(Mt.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Nt=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,Rt,!0),n.addEventListener(`keyup`,Rt,!0),n.addEventListener(`click`,Bt,!0),n.addEventListener(`invalid`,Ut,!0),t.addEventListener(`focus`,Vt,!0),t.addEventListener(`blur`,Ht,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,zt,!0),n.addEventListener(`pointermove`,zt,!0),n.addEventListener(`pointerup`,zt,!0)),t.addEventListener(`beforeunload`,()=>{Gt(e)},{once:!0}),Mt.set(t,{focus:r})}var Gt=(e,t)=>{let n=H(e),r=V(e);t&&r.removeEventListener(`DOMContentLoaded`,t),Mt.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Mt.get(n).focus}),r.removeEventListener(`keydown`,Rt,!0),r.removeEventListener(`keyup`,Rt,!0),r.removeEventListener(`click`,Bt,!0),r.removeEventListener(`invalid`,Ut,!0),n.removeEventListener(`focus`,Vt,!0),n.removeEventListener(`blur`,Ht,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,zt,!0),r.removeEventListener(`pointermove`,zt,!0),r.removeEventListener(`pointerup`,zt,!0)),Mt.delete(n))};function Kt(e){let t=V(e),n;return t.readyState===`loading`?(n=()=>{Wt(e)},t.addEventListener(`DOMContentLoaded`,n)):Wt(e),()=>Gt(e,n)}typeof document<`u`&&Kt();function qt(){return kt!==`pointer`}function Jt(){return kt}function Yt(e){kt=e,At=e===`pointer`?`mouse`:e,It(e,null)}function Xt(){return At}var Zt=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Qt(e,t,n){let r=n?G(n):void 0,i=V(r),a=H(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=W(i);return e=e||u instanceof o&&!Zt.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!Ft[n.key])}function $t(e,t,n){Wt(),(0,j.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{Qt(!!n?.isTextInput,t,r)&&e(qt())};return jt.add(t),()=>{jt.delete(t)}},t)}var en={};en={collectionLabel:`مقترحات`};var tn={};tn={collectionLabel:`Предложения`};var nn={};nn={collectionLabel:`Návrhy`};var rn={};rn={collectionLabel:`Forslag`};var an={};an={collectionLabel:`Empfehlungen`};var on={};on={collectionLabel:`Προτάσεις`};var sn={};sn={collectionLabel:`Suggestions`};var cn={};cn={collectionLabel:`Sugerencias`};var ln={};ln={collectionLabel:`Soovitused`};var un={};un={collectionLabel:`Ehdotukset`};var dn={};dn={collectionLabel:`Suggestions`};var fn={};fn={collectionLabel:`הצעות`};var pn={};pn={collectionLabel:`Prijedlozi`};var mn={};mn={collectionLabel:`Javaslatok`};var hn={};hn={collectionLabel:`Suggerimenti`};var gn={};gn={collectionLabel:`候補`};var _n={};_n={collectionLabel:`제안`};var vn={};vn={collectionLabel:`Pasiūlymai`};var yn={};yn={collectionLabel:`Ieteikumi`};var bn={};bn={collectionLabel:`Forslag`};var xn={};xn={collectionLabel:`Suggesties`};var Sn={};Sn={collectionLabel:`Sugestie`};var Cn={};Cn={collectionLabel:`Sugestões`};var wn={};wn={collectionLabel:`Sugestões`};var Tn={};Tn={collectionLabel:`Sugestii`};var En={};En={collectionLabel:`Предложения`};var Dn={};Dn={collectionLabel:`Návrhy`};var On={};On={collectionLabel:`Predlogi`};var kn={};kn={collectionLabel:`Predlozi`};var An={};An={collectionLabel:`Förslag`};var jn={};jn={collectionLabel:`Öneriler`};var Mn={};Mn={collectionLabel:`Пропозиції`};var Nn={};Nn={collectionLabel:`建议`};var Pn={};Pn={collectionLabel:`建議`};var Fn={};Fn={"ar-AE":en,"bg-BG":tn,"cs-CZ":nn,"da-DK":rn,"de-DE":an,"el-GR":on,"en-US":sn,"es-ES":cn,"et-EE":ln,"fi-FI":un,"fr-FR":dn,"he-IL":fn,"hr-HR":pn,"hu-HU":mn,"it-IT":hn,"ja-JP":gn,"ko-KR":_n,"lt-LT":vn,"lv-LV":yn,"nb-NO":bn,"nl-NL":xn,"pl-PL":Sn,"pt-BR":Cn,"pt-PT":wn,"ro-RO":Tn,"ru-RU":En,"sk-SK":Dn,"sl-SI":On,"sr-SP":kn,"sv-SE":An,"tr-TR":jn,"uk-UA":Mn,"zh-CN":Nn,"zh-TW":Pn};function In(e,t){let n=H(t),r=V(t);if(r==null||n==null)return;let i,a=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=r.querySelector(a);return o&&o instanceof n.HTMLMetaElement&&(e===`csp-nonce`&&o.nonce&&(i??=o.nonce||void 0),o.content&&(i??=o.content||void 0)),e===`csp-nonce`&&(i??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),i}var Ln=100,Rn=600,K={isOpen:!1,screenWidth:0,screenHeight:0,screenAngle:0,screenTimeout:0,startTimeStamp:0,endTimeStamp:0,resizeTimeStamp:0,resizeTimeout:0},zn=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Bn(){let e=Number(window.visualViewport?.width??window.innerWidth),t=Number(window.visualViewport?.height??window.innerHeight),n=Number(window.visualViewport?.scale??1);return{width:e*n,height:t*n,angle:window.screen.orientation?.angle??0}}function Vn(e){K.resizeTimeStamp<=e.timeStamp+50&&(K.resizeTimeStamp=e.timeStamp+150,window.clearTimeout(K.resizeTimeout),K.resizeTimeout=window.setTimeout(Hn,150))}function Hn(){let e=In(`viewport`);if(vt()&&e?.includes(`overlays-content`))return;let t=performance.now(),n=Bn(),r=t-K.startTimeStamp,i=K.screenHeight-n.height,a=K.screenAngle-n.angle;Math.abs(a)%180&&K.screenWidth-n.height<Ln&&(K.screenWidth=n.width,K.screenHeight=n.height,K.screenAngle=n.angle,i=0),r>Rn&&(window.clearTimeout(K.screenTimeout),K.screenTimeout=window.setTimeout(()=>{let e=qn(document.hasFocus()?W():null),t=Bn();Math.abs(K.screenAngle-t.angle)%180||K.isOpen&&e||(K.screenWidth=t.width,K.screenHeight=t.height,K.screenAngle=t.angle,K.isOpen=!1)},Rn)),r<=Rn&&i>=Ln&&(K.endTimeStamp=t),K.isOpen=i>=Ln}function Un(){let e=Bn(),t=K.screenAngle-e.angle;if(Math.abs(t)%180&&!K.isOpen){let e=K.screenWidth;K.screenWidth=K.screenHeight,K.screenHeight=e}K.isOpen||(K.screenAngle=e.angle)}function Wn(e){let t=qn(G(e)),n=performance.now(),r=Bn(),i=K.screenHeight-r.height;i<Ln&&t&&(K.screenWidth=r.width,K.screenHeight=r.height,K.screenAngle=r.angle,K.startTimeStamp=n),t&&window.clearTimeout(K.screenTimeout),i>=Ln&&t&&(K.endTimeStamp=n)}function Gn(){let e=Bn();Ie(window.visualViewport,`resize`,gt()?Hn:Vn),Ie(window.screen.orientation,`change`,Un),Ie(window,`focus`,Wn,{capture:!0,passive:!0}),K.screenWidth=e.width,K.screenHeight=e.height,K.screenAngle=e.angle}typeof document<`u`&&(document.readyState===`loading`?Ie(document,`DOMContentLoaded`,Gn):Gn());function Kn(){let e=In(`viewport`);return vt()&&e?.includes(`overlays-content`)?!1:K.isOpen?!0:K.startTimeStamp?K.endTimeStamp>=K.startTimeStamp?!0:performance.now()-K.startTimeStamp<=Rn?K.endTimeStamp>0||window.navigator.maxTouchPoints>0:!1:window.navigator.maxTouchPoints>0}function qn(e){if(!(e instanceof Element)||!et(e))return!1;let t=e instanceof HTMLTextAreaElement,n=e instanceof HTMLElement&&e.isContentEditable,r=e instanceof HTMLInputElement&&!zn.has(e.type);return t||n||r}function Jn(e){return dt()?e.metaKey:e.ctrlKey}function Yn(){return K.isOpen}var Xn=j.useInsertionEffect??N;function Zn(e){let t=(0,j.useRef)(null);return Xn(()=>{t.current=e},[e]),(0,j.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function Qn(e,t,n,r){let i=Zn(n),a=n==null;(0,j.useEffect)(()=>{if(!(a||e.current==null))return Ie(e.current,t,i,r)},[e,t,r,a])}function $n(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=R(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}var er=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),tr=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function nr(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n=typeof t.getTextInfo==`function`?t.getTextInfo():t.textInfo;if(n)return n.direction===`rtl`;if(t.script)return er.has(t.script)}let t=e.split(`-`)[0];return tr.has(t)}var rr=Symbol.for(`react-aria.i18n.locale`);function ir(){let e=typeof window<`u`&&window[rr]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:nr(e)?`rtl`:`ltr`}}var ar=ir(),or=new Set;function sr(){ar=ir();for(let e of or)e(ar)}function cr(){let e=se(),[t,n]=(0,j.useState)(ar);return(0,j.useEffect)(()=>(or.size===0&&window.addEventListener(`languagechange`,sr),or.add(n),()=>{or.delete(n),or.size===0&&window.removeEventListener(`languagechange`,sr)}),[]),e?{locale:typeof window<`u`&&window[rr]||`en-US`,direction:`ltr`}:t}var lr=j.createContext(null);function ur(){let e=cr();return(0,j.useContext)(lr)||e}var dr=Symbol.for(`react-aria.i18n.locale`),fr=Symbol.for(`react-aria.i18n.strings`),pr=void 0,mr=class e{constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=hr(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[dr];if(pr===void 0){let t=window[fr];if(!t)return null;pr={};for(let r in t)pr[r]=new e({[n]:t[r]},n)}let r=pr?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}};function hr(e,t,n=`en-US`){if(t[e])return t[e];let r=gr(e),i=_r(e);if(i&&t[`${r}-${i}`])return t[`${r}-${i}`];if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function gr(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}function _r(e){if(Intl.Locale)return new Intl.Locale(e).script}var vr=new Map,yr=new Map,br=class{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=vr.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),vr.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=yr.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),yr.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},xr=new WeakMap;function Sr(e){let t=xr.get(e);return t||(t=new mr(e),xr.set(e,t)),t}function Cr(e,t){return t&&mr.getGlobalDictionaryForPackage(t)||Sr(e)}function wr(e,t){let{locale:n}=ur(),r=Cr(e,t);return(0,j.useMemo)(()=>new br(n,r),[n,r])}function Tr(e){return e&&e.__esModule?e.default:e}function Er(e,t){let{inputRef:n,collectionRef:r,filter:i,disableAutoFocusFirst:a=!1,disableVirtualFocus:o=!1}=e,s=R(),c=(0,j.useRef)(void 0),l=(0,j.useRef)(!1),u=(0,j.useRef)(null),d=Jt()===`virtual`&&(mt()||vt()),[f,p]=(0,j.useState)(!d&&!o),[m,h]=(0,j.useState)(!1),[g,_]=(0,j.useState)(!1);(0,j.useEffect)(()=>()=>clearTimeout(c.current),[]);let v=Zn(e=>{!e.isTrusted&&f&&n.current&&W(V(n.current))!==n.current&&Xt()!==`touch`&&n.current.focus();let i=G(e);!e.isTrusted&&i&&u.current!==i.id&&(clearTimeout(c.current),i===r.current?u.current&&!document.getElementById(u.current)&&(u.current=null,t.setFocusedNodeId(null)):l.current?(u.current=i.id,c.current=setTimeout(()=>{t.setFocusedNodeId(i.id)},500)):(u.current=i.id,t.setFocusedNodeId(i.id)),l.current=!1)}),[y,b]=(0,j.useState)(null),x=(0,j.useCallback)(e=>{b(e),e==null?h(!1):(e.getAttribute(`tabindex`)!=null&&p(!1),h(!0))},[]);N(()=>(y?.addEventListener(`focusin`,v),()=>{y?.removeEventListener(`focusin`,v)}),[y]);let S=ye((0,j.useMemo)(()=>he(r,x),[r,x])),C=(0,j.useCallback)(()=>{r.current?(l.current=!0,r.current?.dispatchEvent(new CustomEvent(je,{cancelable:!0,bubbles:!0,detail:{focusStrategy:`first`}}))):_(!0)},[r]),w=(0,j.useCallback)(e=>{_(!1),He(W()),u.current=null,t.setFocusedNodeId(null);let n=new CustomEvent(Ae,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:e}});clearTimeout(c.current),l.current=!1,r.current?.dispatchEvent(n)},[r,t]),T=(0,j.useRef)(``);Qn(n,`beforeinput`,e=>{let{inputType:t}=e;T.current=t});let E=e=>{(T.current===`insertText`||T.current===`insertCompositionText`||T.current===`insertFromComposition`)&&!a?C():T.current&&(T.current.includes(`insert`)||T.current.includes(`delete`)||T.current.includes(`history`))&&(w(!0),Ge(document)===n.current&&We(n.current,null)),t.setInputValue(e)},D=(0,j.useRef)(null),O=e=>{if(D.current=G(e),e.nativeEvent.isComposing)return;let t=u.current;switch(t!==null&&V(n.current).getElementById(t)==null&&(u.current=null,t=null),e.key){case`a`:if(Jn(e))return;break;case`Escape`:if(e.isDefaultPrevented())return;break;case` `:return;case`Tab`:`continuePropagation`in e&&e.continuePropagation();return;case`Home`:case`End`:case`PageDown`:case`PageUp`:case`ArrowUp`:case`ArrowDown`:case`ArrowRight`:case`ArrowLeft`:{if((e.key===`Home`||e.key===`End`)&&t==null&&e.shiftKey)return;if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(t==null){e.isPropagationStopped()||e.stopPropagation();return}break}e.preventDefault();let n=new CustomEvent(je,{cancelable:!0,bubbles:!0});r.current?.dispatchEvent(n);break}}e.isPropagationStopped()||e.stopPropagation();let i=!0;if(r.current!==null){if(t==null)i=r.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1;else{let n=document.getElementById(t);n&&(i=n?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1)}}if(i)switch(e.key){case`ArrowLeft`:case`ArrowRight`:w();break;case`Enter`:t!=null&&document.getElementById(t)?.dispatchEvent(new PointerEvent(`click`,e.nativeEvent))}else e.preventDefault()},k=Zn(e=>{if(G(e)===D.current){e.stopImmediatePropagation();let t=u.current;t==null?r.current?.dispatchEvent(new KeyboardEvent(e.type,e)):document.getElementById(t)?.dispatchEvent(new KeyboardEvent(e.type,e))}});(0,j.useEffect)(()=>(document.addEventListener(`keyup`,k,!0),()=>{document.removeEventListener(`keyup`,k,!0)}),[]);let A=$n({id:s,"aria-label":wr(Tr(Fn),`@react-aria/autocomplete`).format(`collectionLabel`)}),M=(0,j.useCallback)((e,n)=>!i||i(e,t.inputValue,n),[t.inputValue,i]),ee=e=>{if(!e.isTrusted)return;let t=u.current?document.getElementById(u.current):null;t&&Ue(t,e.relatedTarget)},te=e=>{if(e.isTrusted&&u.current&&document.getElementById(u.current)){let t=G(e);queueMicrotask(()=>{Ue(t,r.current),We(r.current,t)})}},ne=e=>{e.button===0&&e.pointerType!==`touch`&&u.current!=null&&n.current!=null&&G(e)===n.current&&w()},P={value:t.inputValue,onChange:E},F={onKeyDown:O,"aria-activedescendant":t.focusedNodeId??void 0,onBlur:ee,onFocus:te,onPointerDown:ne};return P={...P,...f&&m&&F,enterKeyHint:`go`,"aria-controls":m?s:void 0,"aria-autocomplete":`list`,autoCorrect:`off`,spellCheck:`false`,autoComplete:`off`},{inputProps:P,collectionProps:z(A,{shouldUseVirtualFocus:f,disallowTypeAhead:f,autoFocus:g?`first`:!1}),collectionRef:S,filter:i==null?void 0:M}}var Dr=j.useInsertionEffect??j.useLayoutEffect;function Or(e,t,n){let[r,i]=(0,j.useState)(e||t),a=(0,j.useRef)(r),o=(0,j.useRef)(e!==void 0),s=e!==void 0;(0,j.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;Dr(()=>{a.current=c});let[,l]=(0,j.useReducer)(()=>({}),{});return[c,(0,j.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function kr(e){let{onInputChange:t,inputValue:n,defaultInputValue:r=``}=e,i=e=>{t&&t(e)},[a,o]=(0,j.useState)(null),[s,c]=Or(n,r,i);return{inputValue:s,setInputValue:c,focusedNodeId:a,setFocusedNodeId:o}}var Ar=(0,j.createContext)(null),jr=(0,j.createContext)(null),Mr=(0,j.createContext)(null),Nr=(0,j.createContext)(null);function Pr(e){e=z(we(Ar,e.slot),e);let{filter:t,disableAutoFocusFirst:n}=e,r=kr(e),i=(0,j.useRef)(null),a=(0,j.useRef)(null),{inputProps:o,collectionProps:s,collectionRef:c,filter:l}=Er({...De(e),filter:t,disableAutoFocusFirst:n,inputRef:i,collectionRef:a},r);return j.createElement(Se,{values:[[jr,r],[Nr,{...o,ref:i}],[Mr,{...s,filter:l,ref:c}]]},e.children)}var Fr=class{constructor(e){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=this.constructor.type,this.key=e}get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(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}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}},Ir=class extends Fr{filter(e,t,n){let[r,i]=Hr(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},Lr=class extends Fr{static{this.type=`header`}},Rr=class extends Fr{static{this.type=`loader`}},zr=class extends Ir{static{this.type=`item`}filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},Br=class extends Ir{static{this.type=`section`}filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},Vr=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=Hr(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function Hr(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey==null?null:e.getItem(o.nextKey)}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e==null?a=null:(a=t.getItem(e),a.nextKey=null)}return[i?.key??null,a?.key??null]}var Ur=class{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[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(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}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??=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.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),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.isConnected&&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}},Wr=class e extends Ur{constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.parentNode.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let e=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&e!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=e}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,e[`aria-label`]&&(a[`aria-label`]=e[`aria-label`]),a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},Gr=class extends Ur{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.keyOwners=new Map,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new Wr(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription||(this.queuedRender=!1,this.updateCollection()),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof Wr&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Wr?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??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,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),this.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0,this.keyOwners.clear())}};function Kr(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,j.useMemo)(()=>void 0,[t]),s=(0,j.useMemo)(()=>new WeakMap,[...a,o]);return(0,j.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=qr(a)?a:null,o=n?s.get(n):null;if(!o){o=t(a);let c=o.props.id??a?.key??a?.id;r!=null&&o.props.id==null&&c!=null&&(c=r+`:`+c);let l=c??e.length;o=(0,j.cloneElement)(o,i?{key:l,id:c,value:a}:{key:l}),n&&s.set(n,o)}e.push(o)}return e}if(typeof t!=`function`)return t},[t,n,s,r,i])}function qr(e){switch(typeof e){case`object`:return e!=null;case`function`:case`symbol`:return!0;default:return!1}}var Jr=new Map,Yr=new Set;function Xr(e){return`propertyName`in e}function Zr(e){let t=G(e);if(!Xr(e)||!t)return;let n=Jr.get(t);n||(n=new Set,Jr.set(t,n),t.addEventListener(`transitioncancel`,Qr,{once:!0})),n.add(e.propertyName)}function Qr(e){let t=G(e);if(!Xr(e)||!t)return;let n=Jr.get(t);if(n&&(n.delete(e.propertyName),n.size===0&&(t.removeEventListener(`transitioncancel`,Qr),Jr.delete(t)),Jr.size===0))for(let e of Yr)e(!0),Yr.delete(e)}function $r(){Ie(document,`transitionrun`,Zr),Ie(document,`transitionend`,Qr)}function ei(){for(let[e]of Jr)`isConnected`in e&&!e.isConnected&&Jr.delete(e)}typeof document<`u`&&(document.readyState===`loading`?Ie(document,`DOMContentLoaded`,$r):$r());function ti(e){let t=window.requestAnimationFrame(()=>{if(ei(),Jr.size===0)return e(!1);Yr.add(e)});return()=>{window.cancelAnimationFrame(t),Yr.delete(e)}}function ni(e){if(!e.isConnected)return;let t=V(e);if(Jt()===`virtual`){let n=W(t);ti(()=>{let r=W(t);(r===n||r===t.body)&&e.isConnected&&Ke(e)})}else Ke(e)}function ri(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,j.useCallback)(e=>{if(G(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=at(a),s=(0,j.useCallback)(e=>{let t=G(e),r=V(t),a=r?W(r):W();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function ii(e){if(e)return t=>{let n=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation==`function`&&t.continuePropagation()},isPropagationStopped(){return n}}),n&&!(typeof t.isPropagationStopped==`function`&&t.isPropagationStopped())&&t.stopPropagation()}}var ai=new Set([`shift`,`alt`,`control`,`meta`,`mod`]),oi=[`Alt`,`Control`,`Meta`,`Shift`];function si(e){let t=new Set;return e.alt&&t.add(`Alt`),e.shift&&t.add(`Shift`),e.ctrl&&t.add(`Control`),e.meta&&t.add(`Meta`),e.mod&&t.add(dt()?`Meta`:`Control`),t}function ci(e){let t=new Set;return e.altKey&&t.add(`Alt`),e.ctrlKey&&t.add(`Control`),e.metaKey&&t.add(`Meta`),e.shiftKey&&t.add(`Shift`),t}function li(e){return oi.filter(t=>e.has(t))}function ui(e){let t=e.split(`+`).reduce((e,t)=>{let n=t.toLowerCase();return ai.has(n)?n===`shift`?e.shift=!0:n===`alt`?e.alt=!0:n===`control`?e.ctrl=!0:n===`meta`?e.meta=!0:n===`mod`&&(e.mod=!0):e.key=t,e},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:``});if(t.key===``)throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function di(e){return e.toLowerCase()}var fi={space:` `,esc:`escape`,del:`delete`,ins:`insert`,left:`arrowleft`,right:`arrowright`,up:`arrowup`,down:`arrowdown`,pageup:`pageup`,pagedown:`pagedown`};function pi(e){let t=di(e);return fi[t]??t}function mi(e){let t=li(si(e)),n=pi(e.key);return t.length>0?`${t.join(`+`)}+${n}`:n}function hi(e){let t=li(ci(e)),n=di(e.key);return(t.length>0?`${t.join(`+`)}+`:``)+n}function gi(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=ui(n);t.set(mi(e),r)}return e=>{let n=hi(e),r=t.get(n),i=r?.(e);i===void 0&&r!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i==`boolean`&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&e.preventDefault(),(!r||i?.shouldContinuePropagation)&&e.continuePropagation()}}function _i(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let o=gi(t),s=ii(e=>{U(e.currentTarget,G(e))?e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r?e.continuePropagation():o(e):e.continuePropagation()}),c=ii(e=>{U(e.currentTarget,G(e))&&(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing),e.continuePropagation()});i=e.onKeyDown?M(e.onKeyDown,s):s,a=e.onKeyUp?M(e.onKeyUp,c):c}else i=ii(e.onKeyDown),a=ii(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function vi(e,t){N(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}var yi=j.createContext(null);function bi(e){let t=(0,j.useContext)(yi)||{};vi(t,e);let{ref:n,...r}=t;return r}var xi=j.forwardRef(function(e,t){let{children:n,...r}=e,i=ye(t),a={...r,ref:i};return j.createElement(yi.Provider,{value:a},n)});function Si(e,t){let{focusProps:n}=ri(e),{keyboardProps:r}=_i(e),i=z(n,r),a=bi(t),o=e.isDisabled?{}:a,s=(0,j.useRef)(e.autoFocus);(0,j.useEffect)(()=>{s.current&&t.current&&ni(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:z({...i,tabIndex:c},o)}}var Ci=(0,j.forwardRef)(({children:e,...t},n)=>{n=ye(n);let{focusableProps:r}=Si(t,n),i=j.Children.only(e);(0,j.useEffect)(()=>{},[n,t.isDisabled]);let a=i.props.ref;return j.cloneElement(i,{...z(r,i.props),ref:he(a,n)})});typeof HTMLTemplateElement<`u`&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));var wi=(0,j.createContext)(!1);function Ti(e){if((0,j.useContext)(wi))return j.createElement(j.Fragment,null,e.children);let t=j.createElement(wi.Provider,{value:!0},e.children);return j.createElement(`template`,null,t)}function Ei(e){let t=(t,n)=>(0,j.useContext)(wi)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,j.forwardRef)(t)}function Di(){return(0,j.useContext)(wi)}var Oi=n((e=>{var n=t();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useState,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=n.useSyncExternalStore===void 0?f:n.useSyncExternalStore})),ki=n(((e,t)=>{t.exports=Oi()})),Ai=ki(),ji=(0,j.createContext)(!1),Mi=(0,j.createContext)(null);function Ni(e){if((0,j.useContext)(Mi))return e.content;let{collection:t,document:n}=Li(e.createCollection);return j.createElement(j.Fragment,null,j.createElement(Ti,null,j.createElement(Mi.Provider,{value:n},e.content)),j.createElement(Pi,{render:e.children,collection:t}))}function Pi({collection:e,render:t}){return t(e)}function Fi(e,t,n){let r=se(),i=(0,j.useRef)(r);i.current=r;let a=(0,j.useCallback)(()=>i.current?n():t(),[t,n]);return(0,Ai.useSyncExternalStore)(e,a)}var Ii=typeof j.useSyncExternalStore==`function`?j.useSyncExternalStore:Fi;function Li(e){let[t]=(0,j.useState)(()=>new Gr(e?.()||new Vr));return{collection:Ii((0,j.useCallback)(e=>t.subscribe(e),[t]),(0,j.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,j.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}var Ri=(0,j.createContext)(null);function zi(e){return class extends Fr{static{this.type=e}}}function Bi(e,t,n,r,i,a){typeof e==`string`&&(e=zi(e));let o=(0,j.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,j.useContext)(Ri);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?j.createElement(Ri.Provider,{value:o},i):null}return j.createElement(e.type,{ref:o},i)}function Vi(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,j.forwardRef)((r,i)=>{let a=(0,j.useContext)(yi);if(!(0,j.useContext)(ji)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return Bi(e,r,i,`children`in r?r.children:null,null,e=>j.createElement(yi.Provider,{value:a},j.createElement(n,{node:e})))});return r.displayName=t.name,r}function Hi(e,t,n=Ui){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,j.forwardRef)((t,i)=>Bi(e,t,i,null,n(t),e=>j.createElement(r,{node:e}))??j.createElement(j.Fragment,null));return i.displayName=t.name,i}function Ui(e){return Kr({...e,addIdAndValue:!0})}var Wi=(0,j.createContext)(null);function Gi(e){let t=(0,j.useContext)(Wi),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=Ui({...e,idScope:r,dependencies:n});return(0,j.useContext)(Mi)&&(i=j.createElement(Ki,null,i)),t=(0,j.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),j.createElement(Wi.Provider,{value:t},i)}function Ki({children:e}){let t=(0,j.useContext)(Mi),n=(0,j.useMemo)(()=>j.createElement(Mi.Provider,{value:null},j.createElement(ji.Provider,{value:!0},e)),[e]);return se()?j.createElement(Ri.Provider,{value:t},n):(0,be.createPortal)(n,t)}var qi=(0,j.createContext)(null),Ji={CollectionRoot({collection:e,renderDropIndicator:t}){return Yi(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Yi(e,t,n)}};function Yi(e,t,n){return Kr({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){if(t.type===`content`)return j.createElement(j.Fragment,null);let r=t.render(t);return!n||t.type!==`item`?r:j.createElement(j.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,Xi(e,t,n))}})}function Xi(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r?.type===`item`&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,j.isValidElement)(t)&&s.push((0,j.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}var Zi=(0,j.createContext)(Ji);function Qi(e){return(0,j.useMemo)(()=>e==null?null:new Set([e]),[e])}var $i=new Set([`id`]),ea=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),ta=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),na=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`,`suppressHydrationWarning`]),ra=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`.split(`.`)),ia=/^(data-.*)$/;function q(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&($i.has(t)||n&&ea.has(t)||r&&ta.has(t)||i&&na.has(t)||a&&(ra.has(t)||t.endsWith(`Capture`)&&ra.has(t.slice(0,-7)))||o?.has(t)||ia.test(t))&&(s[t]=e[t]);return s}var aa=`default`,oa=``,sa=new WeakMap;function ca(e){if(mt()&&gt()){if(aa==="default"){let t=V(e);oa=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}aa=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;sa.set(e,e.style[t]),e.style[t]=`none`}}function la(e){if(mt()&&gt()){if(aa!==`disabled`)return;aa=`restoring`,setTimeout(()=>{ti(()=>{if(aa===`restoring`){let t=V(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=oa||``),oa=``,aa=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&sa.has(e)){let t=sa.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),sa.delete(e)}}var ua=new WeakMap;function da(e){let t=V(e),n=ua.get(t);return n??=In(`csp-nonce`,t),n!==void 0&&ua.set(t,n),n}var fa=j.createContext({register:()=>{}});fa.displayName=`PressResponderContext`;function pa(){let e=(0,j.useRef)(new Map),t=(0,j.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,j.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,j.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,j.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ma(e){let t=(0,j.useContext)(fa);if(t){let{register:n,ref:r,...i}=t;e=z(i,e),n()}return vi(t,e.ref),e}var ha=class{#e;constructor(e,t,n,r){this.#e=!0;let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}},ga=Symbol(`linkClicked`),_a=`react-aria-pressable-style`,va=`data-react-aria-pressable`;function ya(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=ma(e),[m,h]=(0,j.useState)(!1),g=(0,j.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=pa(),y=(0,j.useCallback)((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new ha(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a},[s,r,n]),b=(0,j.useCallback)((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new ha(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new ha(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c},[s,i,n,t]),x=Zn(b),S=Zn((0,j.useCallback)((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new ha(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,a])),C=(0,j.useCallback)(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(Sa(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||la(t.target);for(let e of t.disposables)e();t.disposables=[]}},[d,v,b]),w=Zn(C);(0,j.useEffect)(()=>{s&&g.current.isPressed&&w({currentTarget:g.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let T=(0,j.useCallback)(e=>{u&&C(e)},[u,C]),E=(0,j.useCallback)(e=>{s||o?.(e)},[s,o]),D=(0,j.useCallback)((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);it(n,t),o(rt(n))}},[s,o]),O=(0,j.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(xa(t.nativeEvent,t.currentTarget)&&U(t.currentTarget,G(t))){wa(G(t),t.key)&&t.preventDefault();let r=!0;!e.isPressed&&!t.repeat&&(e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,r=y(t,`keyboard`));let i=t.currentTarget;_(V(t.currentTarget),`keyup`,M(t=>{xa(t,i)&&!t.repeat&&U(i,G(t))&&e.target&&S(Sa(e.target,t),`keyboard`)},n),!0),r&&t.stopPropagation(),t.metaKey&&dt()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||U(t.currentTarget,G(t)))&&t&&t.button===0&&!e.isTriggeringEvent&&!wt.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||yt(t.nativeEvent))){let e=y(t,`virtual`),r=S(t,`virtual`),i=x(t,`virtual`);E(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=S(Sa(t.currentTarget,t),r),a=x(Sa(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,E(t),w(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&xa(t,e.target)){wa(G(t),t.key)&&t.preventDefault();let n=G(t),r=U(e.target,n);x(Sa(e.target,t),`keyboard`,r),r&&D(t,e.target),v(),t.key!==`Enter`&&ba(e.target)&&U(e.target,n)&&!t[ga]&&(t[ga]=!0,wt(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if(t.key===`Meta`&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())e.target?.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!U(t.currentTarget,G(t)))return;if(bt(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||ca(e.target),i=y(t,e.pointerType);let a=G(t);`releasePointerCapture`in a&&(`hasPointerCapture`in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),_(V(t.currentTarget),`pointerup`,n,!1),_(V(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(U(t.currentTarget,G(t))&&t.button===0){if(l){let n=st(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{U(t.currentTarget,G(t))&&e.pointerType!==`virtual`&&t.button===0&&!e.isPressed&&S(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(Sa(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,x(Sa(e.target,t),e.pointerType,!1),T(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(U(e.target,G(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?w(t):(Ke(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else w(t);e.isOverTarget=!1}},r=e=>{w(e)};t.onDragStart=e=>{U(e.currentTarget,G(e))&&w(e)}}return t},[_,s,l,v,d,T,y,E,D]);return(0,j.useEffect)(()=>{if(!f)return;let e=V(f.current);if(!e||!e.head||e.getElementById(_a))return;let t=e.createElement(`style`);t.id=_a;let n=da(e);n&&(t.nonce=n),t.textContent=`
2
+ @layer {
3
+ [${va}] {
4
+ touch-action: pan-x pan-y pinch-zoom;
5
+ }
6
+ }
7
+ `.trim(),e.head.prepend(t)},[f]),(0,j.useEffect)(()=>{let e=g.current;return()=>{d||la(e.target??void 0);for(let t of e.disposables)t();e.disposables=[]}},[d]),{isPressed:c||m,pressProps:z(p,O,{[va]:!0})}}function ba(e){return e.tagName===`A`&&e.hasAttribute(`href`)}function xa(e,t){let{key:n,code:r}=e,i=t,a=i.getAttribute(`role`);return(n===`Enter`||n===` `||n===`Spacebar`||r===`Space`)&&!(i instanceof H(i).HTMLInputElement&&!Ea(i,n)||i instanceof H(i).HTMLTextAreaElement||i.isContentEditable)&&!((a===`link`||!a&&ba(i))&&n!==`Enter`)}function Sa(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function Ca(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!==`submit`&&e.type!==`reset`:!ba(e)}function wa(e,t){return dt()&&t===`Enter`?!1:e instanceof HTMLInputElement?t===`Enter`&&(e.type===`checkbox`||e.type===`radio`)?!1:!Ea(e,t):Ca(e)}var Ta=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Ea(e,t){return e.type===`checkbox`||e.type===`radio`?t===` `:Ta.has(e.type)}function Da(e,t){let{elementType:n=`a`,onPress:r,onPressStart:i,onPressEnd:a,onPressChange:o,onClick:s,isDisabled:c,...l}=e,u={};n!==`a`&&(u={role:`link`,tabIndex:c?void 0:0});let{focusableProps:d}=Si(e,t),{pressProps:f,isPressed:p}=ya({onPress:r,onPressStart:i,onPressEnd:a,onPressChange:o,onClick:s,isDisabled:c,ref:t}),m=q(l,{labelable:!0}),h=z(d,f),g=St();return{isPressed:p,linkProps:z(m,Dt(e),{...h,...u,"aria-disabled":c||void 0,"aria-current":e[`aria-current`],onClick:t=>{f.onClick?.(t),Ot(t,g,e.href,e.routerOptions)}})}}function Oa(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,j.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=pa(),c=(0,j.useCallback)(e=>{U(e.currentTarget,G(e))&&a.current.isFocusWithin&&!U(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=at(c),u=(0,j.useCallback)(e=>{if(!U(e.currentTarget,G(e)))return;let t=G(e),n=V(t),s=W(n);if(!a.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let t=e.currentTarget;o(n,`focus`,e=>{let r=G(e);if(a.current.isFocusWithin&&!U(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});it(e,t);let i=rt(e);c(i)}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}function ka(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,j.useRef)({isFocused:!1,isFocusVisible:t||qt()}),[a,o]=(0,j.useState)(!1),[s,c]=(0,j.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,j.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,j.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=qt(),o(e),l()},[l]);$t(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=ri({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=Oa({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var Aa=!1,ja=0;function Ma(){Aa=!0,setTimeout(()=>{Aa=!1},500)}function Na(e){e.pointerType===`touch`&&Ma()}function Pa(){let e=V(null);if(e!==void 0)return ja===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,Na),ja++,()=>{ja--,ja>0||typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,Na)}}function Fa(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,j.useState)(!1),s=(0,j.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,j.useEffect)(Pa,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=pa(),{hoverProps:u,triggerHoverEnd:d}=(0,j.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!U(e.currentTarget,G(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(V(G(e)),`pointerover`,e=>{s.isHovered&&s.target&&!U(s.target,G(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,t!==`touch`&&s.isHovered&&i&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{Aa&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&U(e.currentTarget,G(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,j.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}var Ia=(0,j.createContext)(null),La=(0,j.forwardRef)(function(e,t){[e,t]=Te(e,t,Ia);let n=e.href&&!e.isDisabled?`a`:`span`,{linkProps:r,isPressed:i}=Da({...e,elementType:n},t),a=B[n],{hoverProps:o,isHovered:s}=Fa(e),{focusProps:c,isFocused:l,isFocusVisible:u}=ka(),d=Ce({...e,defaultClassName:`react-aria-Link`,values:{isCurrent:!!e[`aria-current`],isDisabled:e.isDisabled||!1,isPressed:i,isHovered:s,isFocused:l,isFocusVisible:u}}),f=q(e,{global:!0});return delete f.onClick,j.createElement(a,{ref:t,slot:e.slot||void 0,...z(f,d,r,o,c),"data-focused":l||void 0,"data-hovered":s||void 0,"data-pressed":i||void 0,"data-focus-visible":u||void 0,"data-current":!!e[`aria-current`]||void 0,"data-disabled":e.isDisabled||void 0},d.children)});function Ra(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}var za=(0,j.createContext)(null),Ba=7e3,Va=null;function Ha(e,t=`assertive`,n=Ba){Va?Va.announce(e,t,n):(Va=new Ua,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?Va.announce(e,t,n):setTimeout(()=>{Va?.isAttached()&&Va?.announce(e,t,n)},100))}var Ua=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=Ba){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}};function Wa(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=ya({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=Si(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=z(y,_,q(e,{labelable:!0}));return{isPressed:v,buttonProps:z(g,b,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}var Ga=(0,j.createContext)({}),Ka=Ei(function(e,t){[e,t]=Te(e,t,Ga);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=Wa(e,t);i=Ja(i,r);let{focusProps:o,isFocused:s,isFocusVisible:c}=ka(e),{hoverProps:l,isHovered:u}=Fa({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=Ce({...e,values:d,defaultClassName:`react-aria-Button`}),p=R(i.id),m=R(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,j.useRef)(r);(0,j.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&Ha(e,`assertive`),g.current=r},[r,s,h,p]);let _=q(e,{global:!0});return delete _.onClick,j.createElement(B.button,{...z(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},j.createElement(za.Provider,{value:{id:m}},f.children))}),qa=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Ja(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!qa.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}var Ya=(0,j.createContext)({}),Xa=(0,j.forwardRef)(function(e,t){[e,t]=Te(e,t,Ya);let{children:n,level:r=3,className:i,...a}=e,o=B[`h${r}`];return j.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),Za=(0,j.createContext)({}),Qa=Ei(function(e,t){[e,t]=Te(e,t,Za);let{elementType:n=`span`,...r}=e,i=B[n];return j.createElement(i,{className:`react-aria-Text`,...r,ref:t})});function $a(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!==`hidden`&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function eo(e,t){let n=e;for($a(n,t)&&(n=n.parentElement);n&&!$a(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function to(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&($a(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function no(e,t,n={}){e!==t&&ro(e,t,t.getBoundingClientRect(),n)}function ro(e,t,n,r={}){let{block:i=`nearest`,inline:a=`nearest`}=r,o=e.scrollTop,s=e.scrollLeft,c=e.getBoundingClientRect(),l=window.getComputedStyle(t),u=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,f=e===d,p=e===d?0:c.top,m=e===d?e.clientHeight:c.bottom,h=e===d?0:c.left,g=e===d?e.clientWidth:c.right,_=parseFloat(l.scrollMarginTop)||0,v=parseFloat(l.scrollMarginBottom)||0,y=parseFloat(l.scrollMarginLeft)||0,b=parseFloat(l.scrollMarginRight)||0,x=parseFloat(u.scrollPaddingTop)||0,S=parseFloat(u.scrollPaddingBottom)||0,C=parseFloat(u.scrollPaddingLeft)||0,w=parseFloat(u.scrollPaddingRight)||0,T=parseFloat(u.borderTopWidth)||0,E=parseFloat(u.borderBottomWidth)||0,D=parseFloat(u.borderLeftWidth)||0,O=parseFloat(u.borderRightWidth)||0,k=n.top-_,A=n.bottom+v,j=n.left-y,M=n.right+b,N=e===d?0:D+O,ee=e===d?0:T+E,te=e===d?0:e.offsetWidth-e.clientWidth-N,ne=e===d?0:e.offsetHeight-e.clientHeight-ee,P=p+(f?0:T)+x,F=m-(f?0:E)-S-ne,I=h+(f?0:D)+C,re=g-(f?0:O)-w;mt()&&gt()||u.direction===`ltr`?re-=te:u.direction===`rtl`&&(I+=te);let L=k<P||A>F,ie=j<I||M>re;if(L&&i===`start`)o+=k-P;else if(L&&i===`center`)o+=(k+A)/2-(P+F)/2;else if(L&&i===`end`)o+=A-F;else if(L&&i===`nearest`){let e=k-P,t=A-F;o+=Math.abs(e)<=Math.abs(t)?e:t}if(ie&&a===`start`)s+=j-I;else if(ie&&a===`center`)s+=(j+M)/2-(I+re)/2;else if(ie&&a===`end`)s+=M-re;else if(ie&&a===`nearest`){let e=j-I,t=M-re;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:o})}function io(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if(window.getComputedStyle(t).overflow!==`hidden`){let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:`nearest`});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(r-a)>1)&&(n?.scrollIntoView?.({block:`center`,inline:`center`}),e.scrollIntoView?.({block:`nearest`}))}else{let{left:t,top:r}=e.getBoundingClientRect(),i=to(e,!0);for(let t of i)no(t,e);let{left:a,top:o}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(r-o)>1){i=n?to(n,!0):[];for(let e of i)no(e,n,{block:`center`,inline:`center`});for(let t of to(e,!0))no(t,e)}}}}var ao=0,oo=new Map;function so(e){let[t,n]=(0,j.useState)();return N(()=>{if(!e)return;let t=oo.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${ao++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},oo.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),oo.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}var co={border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`};function lo(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,j.useState)(!1),{focusWithinProps:a}=Oa({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,j.useMemo)(()=>r?t:t?{...co,...t}:co,[r]);return{visuallyHiddenProps:{...a,style:o}}}function uo(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=lo(e);return j.createElement(n,z(a,o),t)}var fo=(0,j.createContext)({}),po=Vi(Lr,function(e,t){return[e,t]=Te(e,t,fo),j.createElement(B.header,{className:`react-aria-Header`,...e,ref:t},e.children)}),mo=(0,j.createContext)(null);function ho(e){let t=(0,j.useRef)({});return j.createElement(mo.Provider,{value:t},e.children)}var go=(0,j.createContext)({isSelected:!1});function _o(e){let t=q(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var vo=(0,j.createContext)({}),yo=Vi(class extends Fr{static{this.type=`separator`}filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},function(e,t){[e,t]=Te(e,t,vo);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let l=B[c],{separatorProps:u}=_o({...s,elementType:n,orientation:r}),d=q(e,{global:!0});return j.createElement(l,{render:e.render,...z(d,u),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),bo=class{constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if(typeof this.filter==`function`)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!U(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return U(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){let 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 e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function xo(e,t,n,r){return ze()?new bo(e,t,n,r):e.createTreeWalker(t,n,r)}var So=j.createContext(null),Co=`react-aria-focus-scope-restore`,J=null;function wo(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,j.useRef)(null),o=(0,j.useRef)(null),s=(0,j.useRef)([]),{parentNode:c}=(0,j.useContext)(So)||{},l=(0,j.useMemo)(()=>new Ko({scopeRef:s}),[s]);N(()=>{let e=c||Y.root;if(Y.getTreeNode(e.scopeRef)&&J&&!Fo(J,e.scopeRef)){let t=Y.getTreeNode(J);t&&(e=t)}e.addChild(l),Y.addNode(l)},[l,c]),N(()=>{let e=Y.getTreeNode(s);e&&(e.contain=!!n)},[n]),N(()=>{let e=a.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==o.current;)t.push(e),e.addEventListener(Co,n),e=e.nextSibling;return s.current=t,()=>{for(let e of t)e.removeEventListener(Co,n)}},[t]),Bo(s,r,n),Ao(s,n),Ho(s,r,n),zo(s,i),(0,j.useEffect)(()=>{let e=W(V(s.current?s.current[0]:void 0)),t=null;if(Mo(e,s.current)){for(let n of Y.traverse())n.scopeRef&&Mo(e,n.scopeRef.current)&&(t=n);t===Y.getTreeNode(s)&&(J=t.scopeRef)}},[s]),N(()=>()=>{let e=Y.getTreeNode(s)?.parent?.scopeRef??null;s!==J&&!Fo(s,J)||e&&!Y.getTreeNode(e)||(J=e),Y.removeTreeNode(s)},[s]);let u=(0,j.useMemo)(()=>To(s),[]),d=(0,j.useMemo)(()=>({focusManager:u,parentNode:l}),[l,u]);return j.createElement(So.Provider,{value:d},j.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,j.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function To(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||W(V(n[0]??void 0)),c=n[0].previousElementSibling,l=Wo(Eo(n),{tabbable:i,accept:o},n);l.currentNode=Mo(s,n)?s:c;let u=l.nextNode();return!u&&a&&(l.currentNode=c,u=l.nextNode()),u&&Io(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||W(V(n[0]??void 0)),c=n[n.length-1].nextElementSibling,l=Wo(Eo(n),{tabbable:i,accept:o},n);l.currentNode=Mo(s,n)?s:c;let u=l.previousNode();return!u&&a&&(l.currentNode=c,u=l.previousNode()),u&&Io(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Wo(Eo(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&Io(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Wo(Eo(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&Io(o,!0),o}}}function Eo(e){return e[0].parentElement}function Do(e){let t=Y.getTreeNode(J);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Oo(e){if(!e.form)return Array.from(V(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=H(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function ko(e){if(e.checked)return!0;let t=Oo(e);return t.length>0&&!t.some(e=>e.checked)}function Ao(e,t){let n=(0,j.useRef)(void 0),r=(0,j.useRef)(void 0);N(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=V(i?i[0]:void 0),o=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!Do(e)||t.isComposing)return;let n=W(a),r=e.current;if(!r||!Mo(n,r))return;let i=Wo(Eo(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&(Io(o,!0),o instanceof H(o).HTMLInputElement&&o.select())},s=t=>{(!J||Fo(J,e))&&Mo(G(t),e.current)?(J=e,n.current=G(t)):Do(e)&&!No(G(t),e)?n.current?Io(n.current):J&&J.current&&Ro(J.current):Do(e)&&(n.current=G(t))},c=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=Jt(),i=(r===`virtual`||r===null)&&vt()&&_t(),o=W(a);if(!i&&o&&Do(e)&&!No(o,e)){J=e;let r=G(t);r&&r.isConnected?(n.current=r,Io(n.current)):J.current&&Ro(J.current)}})};return a.addEventListener(`keydown`,o,!1),a.addEventListener(`focusin`,s,!1),i?.forEach(e=>e.addEventListener(`focusin`,s,!1)),i?.forEach(e=>e.addEventListener(`focusout`,c,!1)),()=>{a.removeEventListener(`keydown`,o,!1),a.removeEventListener(`focusin`,s,!1),i?.forEach(e=>e.removeEventListener(`focusin`,s,!1)),i?.forEach(e=>e.removeEventListener(`focusout`,c,!1))}},[e,t]),N(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function jo(e){return No(e)}function Mo(e,t){return!e||!t?!1:t.some(t=>U(t,e))}function No(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of Y.traverse(Y.getTreeNode(t)))if(n&&Mo(e,n.current))return!0;return!1}function Po(e){return No(e,J)}function Fo(e,t){let n=Y.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Io(e,t=!1){if(e!=null&&!t)try{ni(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Lo(e,t=!0){let n=e[0].previousElementSibling,r=Eo(e),i=Wo(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=Eo(e),i=Wo(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Ro(e,t=!0){Io(Lo(e,t))}function zo(e,t){let n=j.useRef(t);(0,j.useEffect)(()=>{n.current&&(J=e,!Mo(W(V(e.current?e.current[0]:void 0)),J.current)&&e.current&&Ro(e.current)),n.current=!1},[e])}function Bo(e,t,n){N(()=>{if(t||n)return;let r=e.current,i=V(r?r[0]:void 0),a=t=>{let n=G(t);Mo(n,e.current)?J=e:jo(n)||(J=null)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,t,n])}function Vo(e){let t=Y.getTreeNode(J);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Ho(e,t,n){let r=(0,j.useRef)(typeof document<`u`?W(V(e.current?e.current[0]:void 0)):null);N(()=>{let r=e.current,i=V(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!J||Fo(J,e))&&Mo(W(i),e.current)&&(J=e)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,n]),N(()=>{let r=V(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!Do(e)||t.isComposing)return;let n=r.activeElement;if(!No(n,e)||!Vo(e))return;let i=Y.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=Wo(r.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==r.body||(a=void 0,i.nodeToRestore=void 0),(!s||!No(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(No(s,e));t.preventDefault(),t.stopPropagation(),s?Io(s,!0):jo(a)?Io(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),N(()=>{let n=V(e.current?e.current[0]:void 0);if(!t)return;let i=Y.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=Y.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=W(n);if(t&&i&&(a&&No(a,e)||a===n.body&&Vo(e))){let t=Y.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){Uo(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&Y.getTreeNode(n.scopeRef)){let e=Lo(n.scopeRef.current,!0);if(e){Uo(e);return}}n=n.parent}}})}}},[e,t])}function Uo(e){e.dispatchEvent(new CustomEvent(Co,{bubbles:!0,cancelable:!0}))&&Io(e)}function Wo(e,t,n){let r=t?.tabbable?tt:et,i=V(e?.nodeType===Node.ELEMENT_NODE?e:null),a=xo(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return U(t?.from,e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!ko(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||Mo(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}var Go=class e{constructor(){this.fastMap=new Map,this.root=new Ko({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new Ko({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&Mo(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}},Ko=class{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}},Y=new Go;function qo(e){return ht()?e.altKey:e.ctrlKey}function Jo(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}var Yo=new WeakMap;function Xo(e){let t=R();return Yo.set(e,t),t}function Zo(e){return Yo.get(e)}var Qo=1e3;function $o(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,j.useRef)({search:``,timeout:void 0});return(0,j.useEffect)(()=>{let e=i.current.timeout;return()=>{clearTimeout(e)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{if(i.current.search.length>0&&e.key===` `){if(e.preventDefault(),(!(`continuePropagation`in e)||`continuePropagation`in e&&!e.isPropagationStopped())&&e.stopPropagation(),i.current.search+=` `,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.current.search,n.focusedKey);e??=t.getKeyForSearch(i.current.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},Qo)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{let a=es(e.key);if(!(!a||e.ctrlKey||e.metaKey||e.altKey||!U(e.currentTarget,G(e))||i.current.search.length===0&&a===` `)){if(i.current.search+=a,t.getKeyForSearch!=null){let a=t.getKeyForSearch(i.current.search,n.focusedKey);if(a??=t.getKeyForSearch(i.current.search),a!=null)n.setFocusedKey(a),r&&r(a),e.preventDefault(),`continuePropagation`in e||e.stopPropagation();else{i.current.search=``,clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=``},Qo)}}:void 0}}}function es(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function ts(e,t){let n=(0,j.useRef)(!0),r=(0,j.useRef)(null);N(()=>(n.current=!0,()=>{n.current=!1}),[]),N(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function ns(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,scrollRef:p=r,linkBehavior:m=`action`,UNSTABLE_focusOnEntry:h}=e,{direction:g}=ur(),_=St(),v=(e,n,i)=>{if(n!=null){if(t.isLink(n)&&m===`selection`&&l&&!qo(e)){(0,be.flushSync)(()=>{t.setFocusedKey(n,i)});let a=Jo(r,n),o=t.getItemProps(n);if(a){_.open(a,e,o.href,o.routerOptions);return}return!1}if(t.setFocusedKey(n,i),t.isLink(n)&&m===`override`)return!1;if(e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(n);return}if(l&&!qo(e)){t.replaceSelection(n);return}}return!1},y=e=>{if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyBelow?.(t.focusedKey);if(r==null&&a&&(r=n.getFirstKey?.(t.focusedKey)),r!=null){v(e,r);return}}return!1},b=e=>{if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.():n.getKeyAbove?.(t.focusedKey);if(r==null&&a&&(r=n.getLastKey?.(t.focusedKey)),r!=null){v(e,r);return}}return!1},x=e=>{if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getFirstKey(t.focusedKey,Jn(e));if(t.setFocusedKey(r),r!=null){if(Jn(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},S=e=>{if(n.getKeyLeftOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyLeftOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),r!=null){v(e,r,g===`rtl`?`first`:`last`);return}}return!1},C=e=>{if(n.getKeyRightOf){let r=t.focusedKey==null?n.getFirstKey?.():n.getKeyRightOf?.(t.focusedKey);if(r==null&&a&&(r=g===`rtl`?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),r!=null){v(e,r,g===`rtl`?`last`:`first`);return}}return!1},w=e=>{if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getLastKey(t.focusedKey,Jn(e));if(t.setFocusedKey(r),r!=null){if(Jn(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},T=e=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);if(r!=null)return v(e,r)}return!1},E=e=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);if(r!=null)return v(e,r)}return!1},D=()=>{if(t.selectionMode===`multiple`&&s!==!0)t.selectAll();else return!1},O=()=>{if(c===`clearSelection`&&!o&&t.selectedKeys.size!==0)t.clearSelection();else return!1},k=()=>{if(!f&&r.current){let e=Wo(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);let i=W();t&&(!Ve(t)||i&&!tt(i))&&Ke(t)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},A=()=>(!f&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),M=(e,t)=>({[dt()?e+`+Shift+Alt`:e+`+Shift+Control`]:t,[e+`+Shift`]:t,[dt()?e+`+Alt`:e+`+Control`]:t,[e]:t}),{keyboardProps:N}=_i({shortcuts:{...M(`ArrowDown`,y),...M(`ArrowUp`,b),...M(`ArrowLeft`,S),...M(`ArrowRight`,C),...M(`PageDown`,T),...M(`PageUp`,E)},allowRepeats:!0}),{keyboardProps:ee}=_i({shortcuts:{...M(`Home`,x),...M(`End`,w),"Mod+A":D,Escape:O,Tab:k,"Tab+Shift":A}}),te=(0,j.useRef)({top:0,left:0});Qn(p,`scroll`,()=>{te.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let ne=e=>{if(t.isFocused){U(e.currentTarget,G(e))||t.setFocused(!1);return}if(!U(e.currentTarget,G(e)))return;let i=Jt();t.setFocused(!0);let a=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))};if(h&&(i===`keyboard`||i===`virtual`))a(h===`first`?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let r=e.relatedTarget;r&&e.currentTarget.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?a(t.lastSelectedKey??n.getLastKey?.()):a(t.firstSelectedKey??n.getFirstKey?.())}else p.current&&(p.current.scrollTop=te.current.top,p.current.scrollLeft=te.current.left);if(t.focusedKey!=null&&p.current){let e=Jo(r,t.focusedKey);e instanceof HTMLElement&&(!Ve(e)&&!d&&Ke(e),(i===`keyboard`||h&&i===`virtual`)&&io(e,{containingElement:r.current}))}},P=e=>{U(e.currentTarget,e.relatedTarget)||t.setFocused(!1)},F=(0,j.useRef)(!1);Qn(r,je,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(F.current=!0)}:void 0);let I=n.getFirstKey?.()??null;ts(()=>{if(F.current){if(I==null){let e=W();He(r.current),We(e,null),t.collection.size>0&&(F.current=!1)}else t.setFocusedKey(I),F.current=!1}},[I,t.collection.size]),ts(()=>{t.collection.size>0&&(F.current=!1)},[t.focusedKey]),Qn(r,Ae,d?e=>{e.stopPropagation(),t.setFocused(!1),e.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let re=(0,j.useRef)(i),L=(0,j.useRef)(!1);(0,j.useEffect)(()=>{if(re.current){let e=null;i===`first`&&(e=n.getFirstKey?.()??null),i===`last`&&(e=n.getLastKey?.()??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e!=null&&l&&!a.size&&t.canSelectItem(e)&&t.replaceSelection(e),e==null&&!d&&r.current&&ni(r.current),t.collection.size>0&&(re.current=!1,L.current=!0)}});let ie=(0,j.useRef)(t.focusedKey),ae=(0,j.useRef)(null);(0,j.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==ie.current||L.current)&&p.current&&r.current){let e=Jt(),n=Jo(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||L.current)&&(ae.current&&cancelAnimationFrame(ae.current),ae.current=requestAnimationFrame(()=>{p.current&&(no(p.current,n),e!==`virtual`&&io(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&ie.current!=null&&r.current&&ni(r.current),ie.current=t.focusedKey,L.current=!1}),(0,j.useEffect)(()=>()=>{ae.current&&cancelAnimationFrame(ae.current)},[]),Qn(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let oe={...z(ee,N),onFocus:ne,onBlur:P,onMouseDown(e){p.current===G(e)&&e.preventDefault()}},{typeSelectProps:se}=$o({keyboardDelegate:n,selectionManager:t});u||(oe=z(se,oe));let ce;d||(ce=t.focusedKey==null?0:-1);let le=Xo(t.collection);return{collectionProps:z(oe,{tabIndex:ce,"data-collection":le})}}var rs=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:Jo(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}},is=class{constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new rs(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new rs(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findNextNonDisabled(e,t,n=!1){let r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e?.type===`item`&&(n||!this.isDisabled(e)))return r;r=t(r)}return null}getNextKey(e,t){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,e=>this.collection.getKeyAfter(e),t?.includeDisabled)}getPreviousKey(e,t){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,e=>this.collection.getKeyBefore(e),t?.includeDisabled)}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}isReversed(e){let t=this.getNextKey(e),n=Jo(this.ref,e);if(t!=null){let e=Jo(this.ref,t);return!n||!e?!1:n.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(r!=null){let e=Jo(this.ref,r);return!n||!e?!1:e.getBoundingClientRect().top>n.getBoundingClientRect().top}return!1}getKeyBelow(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getPreviousKey(e,t):this.getNextKey(e,t)}getKeyAbove(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getNextKey(e,t):this.getPreviousKey(e,t)}getNextColumn(e,t,n){return t?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,t){let n=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`,t):null}getKeyLeftOf(e,t){let n=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!$a(t))return this.getFirstKey();let i=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=this.layoutDelegate.getVisibleRect(),t=r?n.y-e.height:Math.max(0,n.y+n.height-e.height);for(;n&&n.y>t&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!$a(t))return this.getLastKey();let i=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}},as=new Map;function os(e){let{locale:t}=ur(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(as.has(n))return as.get(n);let r=new Intl.Collator(t,e);return as.set(n,r),r}function ss(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o,orientation:s}=e,c=os({usage:`search`,sensitivity:`base`}),l=t.disabledBehavior,u=(0,j.useMemo)(()=>a||new is({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:c,layoutDelegate:o,orientation:s}),[a,o,n,r,i,c,l,s]),{collectionProps:d}=ns({...e,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}var cs=500;function ls(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:o=cs,accessibilityDescription:s}=e,c=(0,j.useRef)(void 0),{addGlobalListener:l,removeAllGlobalListeners:u}=pa(),d=e=>n?e.pointerType===n:e.pointerType===`mouse`||e.pointerType===`touch`,{pressProps:f}=ya({isDisabled:t,onPressStart(e){if(e.continuePropagation(),d(e)){r&&r({...e,type:`longpressstart`}),c.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent(`pointercancel`,{bubbles:!0})),l(e.target,`click`,e=>e.preventDefault(),{once:!0}),V(e.target).activeElement!==e.target&&Ke(e.target),a&&a({...e,type:`longpress`}),c.current=void 0},o),e.pointerType===`touch`&&l(e.target,`contextmenu`,e=>e.preventDefault(),{once:!0});let t=H(e.target);l(t,`pointerup`,()=>{setTimeout(()=>{u()},100)},{once:!0})}},onPressEnd(e){c.current&&clearTimeout(c.current),i&&d(e)&&i({...e,type:`longpressend`})}});return{longPressProps:z(f,so(a&&!t?s:void 0))}}function us(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=St();t=R(t);let p=e=>{if(e.pointerType===`keyboard`&&qo(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(Jn(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,j.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?He(i.current):s?s():W()!==i.current&&i.current&&ni(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){G(e)===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()}),(0,j.useEffect)(()=>{c&&n.focusedKey===r&&n.setFocusedKey(null)},[n,c,r]);let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),x=y&&v&&n.selectionBehavior===`replace`,S=b||x,C=(0,j.useRef)(null),w=S&&v,T=(0,j.useRef)(!1),E=(0,j.useRef)(!1),D=n.getItemProps(r),O=e=>{l&&(l(),i.current?.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))),_&&i.current&&f.open(i.current,e,D.href,D.routerOptions)},k={ref:i};a?(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,e.pointerType===`keyboard`&&(!S||fs(e.key))&&p(e)},u?(k.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},k.onPress=b?O:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):k.onPress=e=>{if(b||x&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!ds(e.key))return;O(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,E.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||fs(e.key)))&&p(e)},k.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&S&&ds(e.key)||e.pointerType===`mouse`&&E.current)&&(S?O(e):v&&p(e))});let A=Zo(n.collection);if(m[`data-collection`]=A,m[`data-key`]=r,k.preventFocusOnPress=o,o&&(k=z(k,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),D)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])D[e]&&(k[e]=M(k[e],D[e]));let{pressProps:N,isPressed:ee}=ya(k),te=x?e=>{C.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:ne}=ls({isDisabled:!w,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),P=e=>{C.current===`touch`&&T.current&&e.preventDefault()},F=d!==`none`&&n.isLink(r)?e=>{wt.isOpening||e.preventDefault()}:void 0,I=z(m,v||b||o&&!c?N:{},w?ne:{},{onDoubleClick:te,onDragStartCapture:P,onClick:F,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),re=e=>{let t=e;for(;t&&t!==i.current;){let e=t.getAttribute(`data-collection`);if(e!=null)return e!==A;t=t.parentElement}return tt(e)},L=I.onPointerDown;I.onPointerDown=e=>{let t=G(e);t&&t!==i.current&&re(t)?e.stopPropagation():L?.(e)};let ie=I.onMouseDown;return I.onMouseDown=e=>{let t=G(e);t&&t!==i.current&&re(t)?e.stopPropagation():ie?.(e)},{itemProps:I,isPressed:ee,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:S}}function ds(e){return e===`Enter`}function fs(e){return e===` `}function ps(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function ms(e){return hs(e,0)}function hs(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function gs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[..._s(e,t),t],i=[..._s(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function _s(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var vs=new WeakMap;function ys(e){let t=vs.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(ps(i,e)):i.type===`item`&&n++};return r(e),vs.set(e,n),n}function bs(e){let t=j.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}var xs=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function Ss(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Cs(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,j.useRef)(!1),[,s]=(0,j.useState)(!1),c=(0,j.useRef)(null),l=(0,j.useRef)(null),[,u]=(0,j.useState)(null),[d,f]=Or((0,j.useMemo)(()=>ws(e.selectedKeys),[e.selectedKeys]),(0,j.useMemo)(()=>ws(e.defaultSelectedKeys,new xs),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,j.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,j.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,j.useRef)(i);return(0,j.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!Ss(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function ws(e,t){return e?e===`all`?`all`:new xs(e):t}var Ts=class e{constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null,this.fullCollection=n?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&gs(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&gs(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new xs([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new xs(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?gs(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new xs(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),this.disallowEmptySelection&&n.size===0||this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new xs([t],t,t):new xs;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new xs;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],n=r=>{for(;r!=null;){if(this.canSelectItemIn(r,e)){let i=e.getItem(r);i?.type===`item`&&t.push(r),i?.hasChildNodes&&(this.allowsCellSelection||i.type!==`item`)&&n(ms(ps(i,e))?.key??null)}r=e.getKeyAfter(r)}};return n(e.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new xs)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=t.getItem(e);return!(!n||n?.props?.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!==`selection`}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}},Es=class{build(e,t){return this.context=t,Ds(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(j.isValidElement(t)&&t.type===j.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];j.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(j.isValidElement(e.element)&&e.element.type===j.Fragment){let i=[];j.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(j.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:Os(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${ks(t.type)}> in <${ks(r?.type??`unknown parent type`)}>. Only <${ks(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:(r?.level??0)+ +(r?.type===`item`),index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Ds(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}};function Ds(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function Os(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function ks(e){return e[0].toUpperCase()+e.slice(1)}function As(e,t,n){let r=(0,j.useMemo)(()=>new Es,[]),{children:i,items:a,collection:o}=e;return(0,j.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function js(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a=`end`}=e,o=(0,j.useRef)(null),s=Zn(e=>{for(let t of e)t.isIntersecting&&r&&r()});N(()=>{if(t.current){let e=100*i,n=a===`start`?`${e}% 0px 0px 0px`:`0px ${e}% ${e}% ${e}%`;o.current=new IntersectionObserver(s,{root:eo(t?.current),rootMargin:n}),o.current.observe(t.current)}return()=>{o.current&&o.current.disconnect()}},[n,t,i,a])}var Ms=(0,j.createContext)({placement:`bottom`}),Ns=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype;function Ps(e){return e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer!==void 0}var Fs=new WeakMap,Is=[];function Ls(e,t){let n=H(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&Ns,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=new Set;if(ze()){let t=i.getRootNode();for(let n of e){let e=n.getRootNode();for(;Fe(e)&&e!==t;)u.add(e),e=e.host.getRootNode()}}let d=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(U(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=xo(V(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&f(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)f(e),e=n.nextNode()}},f=e=>{let t=Fs.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),Fs.set(e,t+1))};Is.length&&Is[Is.length-1].disconnect(),d(i);let p=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>U(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&Ps(e)?o.add(e):e instanceof Element&&d(e);if(ze()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});p.observe(i,{childList:!0,subtree:!0});let m=new Set;if(ze())for(let e of u){let t=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>U(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&Ps(e)?o.add(e):e instanceof Element&&d(e);if(ze()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});t.observe(e,{childList:!0,subtree:!0}),m.add(t)}let h={visibleNodes:o,hiddenNodes:s,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return Is.push(h),()=>{if(p.disconnect(),ze())for(let e of m)e.disconnect();for(let e of s){let t=Fs.get(e);t!=null&&(t===1?(l(e,!1),Fs.delete(e)):Fs.set(e,t-1))}h===Is[Is.length-1]?(Is.pop(),Is.length&&Is[Is.length-1].observe()):Is.splice(Is.indexOf(h),1)}}function Rs(e){let t=Is[Is.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var zs={top:`top`,bottom:`top`,left:`left`,right:`left`},Bs={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Vs={top:`left`,left:`top`},Hs={top:`height`,left:`width`},Us={width:`totalWidth`,height:`totalHeight`},Ws={},Gs=()=>typeof document<`u`?window.visualViewport:null;function Ks(e,t){let n=0,r=0,i=0,a=0,o=0,s=0,c={},l=(t?.scale??1)>1;if(e.tagName===`BODY`||e.tagName===`HTML`){let l=document.documentElement;i=l.clientWidth,a=l.clientHeight,n=t?.width??i,r=t?.height??a,c.top=l.scrollTop||e.scrollTop,c.left=l.scrollLeft||e.scrollLeft,t&&(o=Math.max(0,t.pageTop-(c.top??0)),s=Math.max(0,t.pageLeft-(c.left??0)))}else({width:n,height:r,top:o,left:s}=rc(e,!1)),c.top=e.scrollTop,c.left=e.scrollLeft,i=n,a=r;return gt()&&(e.tagName===`BODY`||e.tagName===`HTML`)&&l&&(c.top=0,c.left=0,o=t?.pageTop??0,s=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:a,scroll:c,top:o,left:s}}function qs(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Js(e,t,n,r,i,a,o){let s=i.scroll[e]??0,c=r[Hs[e]],l=o[e]+r.scroll[zs[e]]+a,u=o[e]+r.scroll[zs[e]]+c-a,d=t-s+r.scroll[zs[e]]+o[e]-r[zs[e]],f=t-s+n+r.scroll[zs[e]]+o[e]-r[zs[e]];return d<l?l-d:f>u?Math.max(u-f,l-d):0}function Ys(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Xs(e){if(Ws[e])return Ws[e];let[t,n]=e.split(` `),r=zs[t]||`right`,i=Vs[r];zs[n]||(n=`center`);let a=Hs[r],o=Hs[i];return Ws[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},Ws[e]}function Zs(e,t,n,r,i,a,o,s,c,l,u){let{placement:d,crossPlacement:f,axis:p,crossAxis:m,size:h,crossSize:g}=r,_={};_[m]=e[m]??0,f===`center`?_[m]+=((e[g]??0)-(n[g]??0))/2:f!==m&&(_[m]+=(e[g]??0)-(n[g]??0)),_[m]+=a;let v=e[m]-n[g]+c+l,y=e[m]+e[g]-c-l;if(_[m]=Ra(_[m],v,y),d===p){let t=s?u[h]:u[Us[h]];_[Bs[p]]=Math.floor(t-e[p]+i)}else _[p]=Math.floor(e[p]+e[h]+i);return _}function Qs(e,t,n,r,i,a,o,s,c,l,u){let d=(e.top==null?c[Us.height]-(e.bottom??0)-o:e.top)-(c.scroll.top??0),f=l?n.top:0,p={top:Math.max(t.top+f,(u?.offsetTop??t.top)+f),bottom:Math.min(t.top+t.height+f,(u?.offsetTop??0)+(u?.height??0))};return s===`top`?Math.max(0,d+o-p.top-((i.top??0)+(i.bottom??0)+a)):Math.max(0,p.bottom-d-((i.top??0)+(i.bottom??0)+a))}function $s(e,t,n,r,i,a,o,s){let{placement:c,axis:l,size:u}=a;return c===l?Math.max(0,n[l]-(o.scroll[l]??0)-(e[l]+(s?t[l]:0))-(r[l]??0)-r[Bs[l]]-i):Math.max(0,e[u]+e[l]+(s?t[l]:0)-n[l]-n[u]+(o.scroll[l]??0)-(r[l]??0)-r[Bs[l]]-i)}function ec(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=Xs(e),{size:y,crossAxis:b,crossSize:x,placement:S,crossPlacement:C}=v,w=Zs(t,s,n,v,u,d,l,f,m,h,c),T=u,E=$s(s,l,t,i,a+u,v,c,g);if(o&&n[y]>E){let e=Xs(`${Bs[S]} ${C}`),r=Zs(t,s,n,e,u,d,l,f,m,h,c);$s(s,l,t,i,a+u,e,c,g)>E&&(v=e,w=r,T=u)}let D=`bottom`;v.axis===`top`?v.placement===`top`?D=`top`:v.placement===`bottom`&&(D=`bottom`):v.crossAxis===`top`&&(v.crossPlacement===`top`?D=`bottom`:v.crossPlacement===`bottom`&&(D=`top`));let O=Js(b,w[b],n[x],s,c,a,l);w[b]+=O;let k=Qs(w,s,l,f,i,a,n.height,D,c,g,_);p&&p<k&&(k=p),n.height=Math.min(n.height,k),w=Zs(t,s,n,v,T,d,l,f,m,h,c),O=Js(b,w[b],n[x],s,c,a,l),w[b]+=O;let A={},j=t[b]-w[b]-i[zs[b]],M=j+.5*t[x],N=m/2+h,ee=zs[b]===`left`?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),te=n[x]-ee-m/2-h;A[b]=Ra(Ra(M,t[b]+m/2-(w[b]+i[zs[b]]),t[b]+t[x]-m/2-(w[b]+i[zs[b]])),N,te),{placement:S,crossPlacement:C}=v,m?j=A[b]:C===`right`?j+=t[x]:C===`center`&&(j+=t[x]/2);let ne=S===`left`||S===`top`?n[y]:0,P={x:S===`top`||S===`bottom`?j:ne,y:S===`left`||S===`right`?j:ne};return{position:w,maxHeight:k,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:S,triggerAnchorPoint:P}}function tc(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:c,crossOffset:l,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:f=0,targetRect:p}=e,m=Gs(),h=r instanceof HTMLElement?ac(r):document.documentElement,g=h===document.documentElement,_=window.getComputedStyle(h).position,v=!!_&&_!==`static`,y=g?rc(n,!1,p):ic(n,h,!1,p);if(!g){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);y.top+=parseInt(e,10)||0,y.left+=parseInt(t,10)||0}let b=rc(r,!0),x=Ys(r);b.width+=(x.left??0)+(x.right??0),b.height+=(x.top??0)+(x.bottom??0);let S=qs(i),C=Ks(s,m),w=Ks(h,m),T;if((s.tagName===`BODY`||s.tagName===`HTML`)&&!g){let e=nc(h,!1);T={top:-(e.top-C.top),left:-(e.left-C.left),width:0,height:0}}else T=(s.tagName===`BODY`||s.tagName===`HTML`)&&g?{top:0,left:0,width:0,height:0}:ic(s,h,!1);let E=U(s,h);return ec(t,y,b,S,x,a,o,C,w,T,c,l,v,u,d,f,E,m)}function nc(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function rc(e,t,n){let{top:r,left:i,width:a,height:o}=n||nc(e,t),{scrollTop:s,scrollLeft:c,clientTop:l,clientLeft:u}=document.documentElement;return{top:r+s-l,left:i+c-u,width:a,height:o}}function ic(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position===`fixed`)a=r||nc(e,n);else{a=rc(e,n,r);let i=rc(t,n),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=i.top,a.left-=i.left}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function ac(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position===`static`&&!oc(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!oc(t);)t=t.parentElement;return t||document.documentElement}function oc(e){let t=window.getComputedStyle(e);return t.transform!==`none`||/transform|perspective/.test(t.willChange)||t.filter!==`none`||t.contain===`paint`||`backdropFilter`in t&&t.backdropFilter!==`none`||`WebkitBackdropFilter`in t&&t.WebkitBackdropFilter!==`none`}var sc=new WeakMap;function cc(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,j.useEffect)(()=>!n||r===null?void 0:Ie(Be(t.current),`scroll`,e=>{let n=G(e);if(!t.current||n instanceof Node&&!U(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let i=r||sc.get(t.current);i&&i()},!0),[n,r,t])}function lc(){return window.ResizeObserver!==void 0}function uc(e){let{ref:t,box:n,onResize:r}=e,i=Zn(r);(0,j.useEffect)(()=>{let e=t?.current;if(e){if(lc()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}}},[t,n])}var dc=typeof document<`u`?window.visualViewport:null;function fc(e){let{direction:t}=ur(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:o=i,placement:s=`bottom`,containerPadding:c=12,shouldFlip:l=!0,boundaryElement:u=typeof document<`u`?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:_=0,getTargetRect:v}=e,[y,b]=(0,j.useState)(null),x=[p,s,i.current,r.current,a?.current,o.current,c,l,u,d,f,m,t,g,_,n],S=(0,j.useRef)(dc?.scale);(0,j.useEffect)(()=>{m&&(S.current=dc?.scale)},[m]);let C=(0,j.useCallback)(()=>{if(p===!1||!m||!i.current||!r.current||!u||dc?.scale!==S.current)return;let e=null;if(o.current&&Ve(o.current)){let t=W()?.getBoundingClientRect(),n=o.current.getBoundingClientRect();e={type:`top`,offset:(t?.top??0)-n.top},e.offset>n.height/2&&(e.type=`bottom`,e.offset=(t?.bottom??0)-n.bottom)}let h=i.current;!g&&i.current&&(h.style.top=`0px`,h.style.bottom=``,h.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+`px`);let y=tc({placement:mc(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:c,shouldFlip:l,boundaryElement:u,offset:d,crossOffset:f,maxHeight:g,arrowSize:n??(a?.current?nc(a.current,!0).width:0),arrowBoundaryOffset:_,targetRect:v?.(r.current)});if(!y.position)return;h.style.top=``,h.style.bottom=``,h.style.left=``,h.style.right=``,Object.keys(y.position).forEach(e=>h.style[e]=y.position[e]+`px`),h.style.maxHeight=y.maxHeight==null?``:y.maxHeight+`px`;let x=W();if(e&&x&&o.current){let t=x.getBoundingClientRect(),n=o.current.getBoundingClientRect(),r=t[e.type]-n[e.type];o.current.scrollTop+=r-e.offset}b(y)},x);N(C,x),pc(C),uc({ref:i,onResize:C}),uc({ref:r,onResize:C});let w=(0,j.useRef)(!1);N(()=>{let e,t=()=>{w.current=!0,clearTimeout(e),e=setTimeout(()=>{w.current=!1},500),C()},n=()=>{w.current&&t()};dc?.addEventListener(`resize`,t),dc?.addEventListener(`scroll`,n);let r=Ie(Be(window),`scroll`,n);return()=>{dc?.removeEventListener(`resize`,t),dc?.removeEventListener(`scroll`,n),r()}},[C]);let T=(0,j.useCallback)(()=>{w.current||h?.()},[h,w]);return cc({triggerRef:r,isOpen:m,onClose:h&&T}),{overlayProps:{style:{position:y?`absolute`:`fixed`,top:y?void 0:0,left:y?void 0:0,zIndex:1e5,...y?.position,maxHeight:y?.maxHeight??`100vh`}},placement:y?.placement??null,triggerAnchorPoint:y?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":`true`,role:`presentation`,style:{left:y?.arrowOffsetLeft,top:y?.arrowOffsetTop}},updatePosition:C}}function pc(e){N(()=>(window.addEventListener(`resize`,e,!1),()=>{window.removeEventListener(`resize`,e,!1)}),[e])}function mc(e,t){return t===`rtl`?e.replace(`start`,`right`).replace(`end`,`left`):e.replace(`start`,`left`).replace(`end`,`right`)}function hc(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=(0,j.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Zn(e=>{n&&gc(e,t)&&(i&&i(e),a.current.isPointerDown=!0)}),s=Zn(e=>{n&&n(e)});(0,j.useEffect)(()=>{let e=a.current;if(r)return;let n=t.current,i=V(n);if(typeof PointerEvent<`u`){let n=n=>{e.isPointerDown&&gc(n,t)&&s(n),e.isPointerDown=!1};return i.addEventListener(`pointerdown`,o,!0),i.addEventListener(`click`,n,!0),()=>{i.removeEventListener(`pointerdown`,o,!0),i.removeEventListener(`click`,n,!0)}}},[t,r])}function gc(e,t){if(e.button>0)return!1;let n=G(e);if(n){let e=n.ownerDocument;if(!e||!U(e.documentElement,n)||n.closest(`[data-react-aria-top-layer]`))return!1}return t.current?!e.composedPath().includes(t.current):!1}var _c=[];function vc(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e,c=(0,j.useRef)(void 0);(0,j.useEffect)(()=>{if(i&&!_c.includes(t))return _c.push(t),()=>{let e=_c.indexOf(t);e>=0&&_c.splice(e,1)}},[i,t]);let l=()=>{_c[_c.length-1]===t&&n&&n()},u=e=>{let n=_c[_c.length-1];c.current=n,(!s||s(G(e)))&&n===t&&e.stopPropagation()},d=e=>{(!s||s(G(e)))&&(_c[_c.length-1]===t&&e.stopPropagation(),c.current===t&&l()),c.current=void 0},{keyboardProps:f}=_i({shortcuts:{Escape:()=>{if(!o)l();else return!1}}});hc({ref:t,onInteractOutside:a&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Oa({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!Po(e.relatedTarget)&&(!s||s(e.relatedTarget))&&n?.()}});return{overlayProps:{...f,...p},underlayProps:{}}}var yc=200,bc=50,xc=600,Sc=new WeakMap,Cc=new Set,wc=new Set;function Tc(e,t){let n=Yn();if(e!==n||t.aborted)for(let e of wc)e(n),wc.delete(e);if(!e&&n&&gt()&&!t.aborted)window.clearInterval(Sc.get(window)),Sc.set(window,Ec(yc));else{if(e!==n||t.aborted)for(let e of Cc)e(n),Cc.delete(e);(wc.size+Cc.size<=0||t.aborted)&&(window.clearInterval(Sc.get(window)),Sc.delete(window))}}function Ec(e=xc){return window.setInterval(Tc,bc,Yn(),AbortSignal.timeout(e))}function Dc(e){if(!Kn())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=qn(document.hasFocus()?W():null);if(Yn()===t||Yn()&&!t)return e(t);wc.add(e),Sc.has(window)||Sc.set(window,Ec())})});return()=>{window.cancelAnimationFrame(t),wc.delete(e)}}function Oc(e){if(!Kn())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=qn(document.hasFocus()?W():null);if(Yn()===t)return e(t);Cc.add(e),Sc.has(window)||Sc.set(window,Ec())})});return()=>{window.cancelAnimationFrame(t),Cc.delete(e)}}var kc=typeof document<`u`&&window.visualViewport,Ac=0,jc;function Mc(e={}){let{isDisabled:t,UNSTABLE_overrideFocus:n}=e;N(()=>{if(!t)return Ac++,Ac===1&&(jc=mt()&&gt()?Pc():Nc(n)),()=>{Ac--,Ac===0&&jc()}},[t,n])}function Nc(e){let t=window.innerWidth-document.documentElement.clientWidth;return M(t>0&&(`scrollbarGutter`in document.documentElement.style?Le(document.documentElement,`scrollbar-gutter`,`stable`):Le(document.documentElement,`padding-right`,`${t}px`)),Le(document.documentElement,`overflow`,`hidden`),e&&Ic(),e&&Kn()&&Fc())}function Pc(){let e=Le(document.documentElement,`overflow`,`hidden`),t,n=!1,r=e=>{let r=G(e);t=$a(r,!0)?r:eo(r,!0),n=!1;let i=r.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(r,!0)&&(n=!0),e.composedPath().some(e=>e instanceof HTMLInputElement&&e.type===`range`)&&(n=!0),`selectionStart`in r&&`selectionEnd`in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},i=document.createElement(`style`),a=da();a&&(i.nonce=a),i.textContent=`@layer {
8
+ * {
9
+ overscroll-behavior: contain;
10
+ }
11
+ }`,document.head.prepend(i);let o=e=>{e.touches.length===2||n||(!t||t===document.documentElement||t===document.body||t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth)&&e.preventDefault()},s=Ic(),c=M(Ie(document,`touchstart`,r,{passive:!1,capture:!0}),Ie(document,`touchmove`,o,{passive:!1,capture:!0}),Fc());return()=>{e(),c(),i.remove(),s()}}function Fc(){return Ie(document,`blur`,e=>{let t=G(e),n=e.relatedTarget;n&&qn(n)?n.focus():n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},!0)}function Ic(){let e=HTMLElement.prototype.focus;return Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(t){if(e.call(this,{...t,preventScroll:!0}),!t||!t.preventScroll){let e=()=>{W()===this&&Lc(this)};Dc(t=>t?e():Oc(()=>e()))}}}),()=>{Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:e})}}function Lc(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t&&n.isConnected;){let e=eo(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;kc&&(n=Math.min(n,kc.offsetTop+kc.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function Rc(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=vc({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=fc({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null,getTargetRect:c.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});Mc({isDisabled:a||!t.isOpen}),(0,j.useEffect)(()=>{if(t.isOpen&&r.current)return a?Rs(i?.current??r.current):Ls([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:g}=Oa(e);return{popoverProps:z(u,f,g),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}var zc={};zc={dismiss:`تجاهل`};var Bc={};Bc={dismiss:`Отхвърляне`};var Vc={};Vc={dismiss:`Odstranit`};var Hc={};Hc={dismiss:`Luk`};var Uc={};Uc={dismiss:`Schließen`};var Wc={};Wc={dismiss:`Απόρριψη`};var Gc={};Gc={dismiss:`Dismiss`};var Kc={};Kc={dismiss:`Descartar`};var qc={};qc={dismiss:`Lõpeta`};var Jc={};Jc={dismiss:`Hylkää`};var Yc={};Yc={dismiss:`Rejeter`};var Xc={};Xc={dismiss:`התעלם`};var Zc={};Zc={dismiss:`Odbaci`};var Qc={};Qc={dismiss:`Elutasítás`};var $c={};$c={dismiss:`Ignora`};var el={};el={dismiss:`閉じる`};var tl={};tl={dismiss:`무시`};var nl={};nl={dismiss:`Atmesti`};var rl={};rl={dismiss:`Nerādīt`};var il={};il={dismiss:`Lukk`};var al={};al={dismiss:`Negeren`};var ol={};ol={dismiss:`Zignoruj`};var sl={};sl={dismiss:`Descartar`};var cl={};cl={dismiss:`Dispensar`};var ll={};ll={dismiss:`Revocare`};var ul={};ul={dismiss:`Пропустить`};var dl={};dl={dismiss:`Zrušiť`};var fl={};fl={dismiss:`Opusti`};var pl={};pl={dismiss:`Odbaci`};var ml={};ml={dismiss:`Avvisa`};var hl={};hl={dismiss:`Kapat`};var gl={};gl={dismiss:`Скасувати`};var _l={};_l={dismiss:`取消`};var vl={};vl={dismiss:`關閉`};var yl={};yl={"ar-AE":zc,"bg-BG":Bc,"cs-CZ":Vc,"da-DK":Hc,"de-DE":Uc,"el-GR":Wc,"en-US":Gc,"es-ES":Kc,"et-EE":qc,"fi-FI":Jc,"fr-FR":Yc,"he-IL":Xc,"hr-HR":Zc,"hu-HU":Qc,"it-IT":$c,"ja-JP":el,"ko-KR":tl,"lt-LT":nl,"lv-LV":rl,"nb-NO":il,"nl-NL":al,"pl-PL":ol,"pt-BR":sl,"pt-PT":cl,"ro-RO":ll,"ru-RU":ul,"sk-SK":dl,"sl-SI":fl,"sr-SP":pl,"sv-SE":ml,"tr-TR":hl,"uk-UA":gl,"zh-CN":_l,"zh-TW":vl};function bl(e){return e&&e.__esModule?e.default:e}function xl(e){let{onDismiss:t,...n}=e,r=$n(n,wr(bl(yl),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return j.createElement(uo,null,j.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var Sl=j.forwardRef(({children:e,...t},n)=>{let r=(0,j.useRef)(!1),i=(0,j.useContext)(fa),a=z(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=ye(n||i?.ref),vi(i,a.ref),(0,j.useEffect)(()=>{r.current||=!0},[]),j.createElement(fa.Provider,{value:a},e)});function Cl({children:e}){let t=(0,j.useMemo)(()=>({register:()=>{}}),[]);return j.createElement(fa.Provider,{value:t},e)}var wl=(0,j.createContext)({});function Tl(){return(0,j.useContext)(wl)??{}}var El=j.createContext(null);function Dl(e){let t=se(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,j.useState)(!1),o=(0,j.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=Tl();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=j.createElement(wo,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=j.createElement(El.Provider,{value:o},j.createElement(Cl,null,j.createElement(yi.Provider,{value:null},c))),be.createPortal(c,n)}function Ol(){let e=(0,j.useContext)(El)?.setContain;N(()=>{e?.(!0)},[e])}function kl(e){let[t,n]=Or(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=(0,j.useState)(null);return{isOpen:t,setOpen:n,open:(0,j.useCallback)(()=>{n(!0)},[n]),close:(0,j.useCallback)(()=>{n(!1)},[n]),toggle:(0,j.useCallback)(()=>{n(!t)},[n,t]),point:r,setPoint:i}}function Al(e,t=!0,n){let[r,i]=(0,j.useState)(!0),a=r&&t;return N(()=>{if(!t&&e.current)return M(Le(e.current,`opacity`,`0`),Le(e.current,`clip`,`rect(0 0 0 0)`),Le(e.current,`clip-path`,`inset(50%)`),Le(e.current,`mask-image`,`linear-gradient(#0000, #0000)`))},[e,t]),N(()=>{if(a&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,a]),Ml(e,a,n,(0,j.useCallback)(()=>i(!1),[])),a}function jl(e,t,n){let[r,i]=(0,j.useState)(t?`open`:`closed`);switch(r){case`open`:t||i(`exiting`);break;case`closed`:case`exiting`:t&&i(`open`)}let a=r===`exiting`;return Ml(e,a,n,(0,j.useCallback)(()=>{i(e=>e===`exiting`?`closed`:e)},[])),a}function Ml(e,t,n,r){let i=(0,j.useRef)(null),a=Zn(n);N(()=>{if(t&&e.current&&i.current!==t){if(i.current=t,!(`getAnimations`in e.current)){r();return}let n=a?.(e.current),o=e.current.getAnimations().filter(e=>(typeof DocumentTimeline>`u`||e.timeline instanceof DocumentTimeline)&&e.playState===`running`);if(o.length===0&&!n){r();return}Promise.all([n,...o.map(e=>e.finished)]).then(()=>{(0,be.flushSync)(()=>{r()})}).catch(()=>{})}i.current=t},[e,t,r])}var Nl=(0,j.createContext)(null),Pl=(0,j.createContext)(null),Fl=(0,j.forwardRef)(function(e,t){[e,t]=Te(e,t,Nl);let n=(0,j.useContext)(Ku),r=kl(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=jl(t,i.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&a||!1,s=Di(),{direction:c}=ur();if(s){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),j.createElement(j.Fragment,null,t)}return i&&!i.isOpen&&!o?null:j.createElement(Il,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:o,dir:c})});function Il({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,j.useRef)(null),o=(0,j.useRef)(null),s=(0,j.useContext)(Pl),c=s&&i.trigger===`SubmenuTrigger`,[l,u]=(0,j.useState)(!1),{popoverProps:d,underlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=Rc({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),g=i.popoverRef,_=Al(g,!!m&&l),v=i.isEntering||!i.shouldSkipAnimation&&_||!1,y=Ce({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:m,isEntering:v,isExiting:t}}),b=!i.isNonModal||i.trigger===`SubmenuTrigger`||i.trigger===`PreviewTrigger`,[x,S]=(0,j.useState)(i.trigger===`PreviewTrigger`);N(()=>{g.current&&S(b&&!g.current.querySelector(`[role=dialog]`))},[g,b]),(0,j.useEffect)(()=>{x&&i.trigger!==`PreviewTrigger`&&(i.trigger!==`SubmenuTrigger`||Jt()!==`pointer`)&&g.current&&!Ve(g.current)&&ni(g.current)},[x,g,i.trigger]);let C=(0,j.useMemo)(()=>{let e=y.children;for(let t of[Nl,...r??[]])e=j.createElement(t.Provider,{value:null},e);return e},[y.children,r]),[w,T]=(0,j.useState)(null),E=(0,j.useCallback)(()=>{i.triggerRef.current&&T(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);N(E,[E]),uc({ref:y.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:E});let D={...d.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...y.style,"--trigger-width":y.style?.[`--trigger-width`]||w};N(()=>Dc(()=>u(!0)),[]);let O=j.createElement(B.div,{...z(q(i,{global:!0}),d),...y,id:x?i.id:void 0,role:x?`dialog`:void 0,tabIndex:x?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:g,slot:i.slot||void 0,style:D,dir:i.dir,"data-trigger":i.trigger,"data-placement":m,"data-entering":v||void 0,"data-exiting":t||void 0},!i.isNonModal&&j.createElement(xl,{onDismiss:e.close}),j.createElement(Ms.Provider,{value:{...p,placement:m,ref:a}},C),j.createElement(xl,{onDismiss:e.close}));return c?j.createElement(Dl,{...i,shouldContainFocus:x&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n??s?.current??void 0},O):j.createElement(Dl,{...i,shouldContainFocus:x&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&j.createElement(`div`,{"data-testid":`underlay`,...f,style:{position:`fixed`,inset:0}}),j.createElement(`div`,{ref:o,style:{display:`contents`}},j.createElement(Pl.Provider,{value:o},O)))}var Ll=(0,j.createContext)({}),Rl={};Rl={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`};var zl={};zl={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`};var Bl={};Bl={longPressMessage:`Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`};var Vl={};Vl={longPressMessage:`Langt tryk eller tryk på Alt + pil ned for at åbne menuen`};var Hl={};Hl={longPressMessage:`Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`};var Ul={};Ul={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`};var Wl={};Wl={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var Gl={};Gl={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`};var Kl={};Kl={longPressMessage:`Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`};var ql={};ql={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var Jl={};Jl={longPressMessage:`Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var Yl={};Yl={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`};var Xl={};Xl={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var Zl={};Zl={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`};var Ql={};Ql={longPressMessage:`Premi a lungo o premi Alt + Freccia giù per aprire il menu`};var $l={};$l={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`};var eu={};eu={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`};var tu={};tu={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var nu={};nu={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var ru={};ru={longPressMessage:`Langt trykk eller trykk Alt + PilNed for å åpne menyen`};var iu={};iu={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var au={};au={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`};var ou={};ou={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var su={};su={longPressMessage:`Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`};var cu={};cu={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul`};var lu={};lu={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`};var uu={};uu={longPressMessage:`Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`};var du={};du={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`};var fu={};fu={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var pu={};pu={longPressMessage:`Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`};var mu={};mu={longPressMessage:`Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`};var hu={};hu={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`};var gu={};gu={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`};var _u={};_u={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`};var vu={};vu={"ar-AE":Rl,"bg-BG":zl,"cs-CZ":Bl,"da-DK":Vl,"de-DE":Hl,"el-GR":Ul,"en-US":Wl,"es-ES":Gl,"et-EE":Kl,"fi-FI":ql,"fr-FR":Jl,"he-IL":Yl,"hr-HR":Xl,"hu-HU":Zl,"it-IT":Ql,"ja-JP":$l,"ko-KR":eu,"lt-LT":tu,"lv-LV":nu,"nb-NO":ru,"nl-NL":iu,"pl-PL":au,"pt-BR":ou,"pt-PT":su,"ro-RO":cu,"ru-RU":lu,"sk-SK":uu,"sl-SI":du,"sr-SP":fu,"sv-SE":pu,"tr-TR":mu,"uk-UA":hu,"zh-CN":gu,"zh-TW":_u};function yu(e){let{onContextMenu:t}=e,n=(0,j.useRef)(!1),{longPressProps:r}=ls({onLongPressStart(){n.current=!1},onLongPress(e){n.current?n.current=!1:t?.({target:e.target,x:e.x,y:e.y})}});return t?{contextMenuProps:z(mt()?r:{},{onContextMenu(e){e.stopPropagation(),e.preventDefault(),n.current=!0;let r=e.currentTarget.getBoundingClientRect();t({target:e.currentTarget,x:e.clientX-r.x,y:e.clientY-r.y})},onKeyDown(e){if(dt()&&e.ctrlKey&&e.key===`Enter`){n.current=!1;let r=e.currentTarget;e.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let e=r.getBoundingClientRect();t({target:r,x:e.width/2,y:e.height/2})}},10)}}})}:{contextMenuProps:{}}}function bu(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,j.useEffect)(()=>{n&&n.current&&sc.set(n.current,t.close)});let a;r===`menu`?a=!0:r===`listbox`&&(a=`listbox`);let o=R();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}function xu(e){return e&&e.__esModule?e.default:e}function Su(e,t,n){let{type:r=`menu`,isDisabled:i,trigger:a=`press`}=e,o=R(),{triggerProps:s,overlayProps:c}=bu({type:r},t,n),l=(e,n,r=`first`)=>{if(!e||n.isDefaultPrevented())return!1;t.toggle(r)},{keyboardProps:u}=_i({isDisabled:i,shortcuts:{Enter:e=>l(a!==`longPress`,e,`first`)," ":e=>l(a!==`longPress`,e,`first`),ArrowDown:e=>l(a!==`longPress`,e,`first`),ArrowUp:e=>l(a!==`longPress`,e,`last`),"Alt+Enter":e=>l(a===`longPress`,e,`first`),"Alt+ ":e=>l(a===`longPress`,e,`first`),"Alt+ArrowDown":e=>l(!0,e,`first`),"Alt+ArrowUp":e=>l(!0,e,`last`)}}),d=wr(xu(vu),`@react-aria/menu`),{longPressProps:f}=ls({isDisabled:i||a!==`longPress`,accessibilityDescription:d.format(`longPressMessage`),onLongPressStart(){t.close()},onLongPress(){t.open(`first`)}}),p={preventFocusOnPress:!0,onPressStart(e){e.pointerType!==`touch`&&e.pointerType!==`keyboard`&&!i&&(Ke(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!i&&(Ke(e.target),t.toggle())}};delete s.onPress;let{contextMenuProps:m}=yu({onContextMenu(e){let n=e.target.getBoundingClientRect();t.setPoint({x:n.x+e.x,y:n.y+e.y}),t.open()}});(0,j.useEffect)(()=>{if(t.isOpen&&a===`contextMenu`){let e=e=>{(e.button===2||e.button===0&&e.ctrlKey===!0)&&G(e)===document.body&&t.close()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)}},[t,a]);let h;if(a===`press`)h={...p,...u};else if(a===`longPress`)h={...f,...u};else if(a===`contextMenu`){h=m;let{"aria-haspopup":e,"aria-expanded":t,"aria-controls":n,...r}=s;s=r}return{menuTriggerProps:{...s,...h,id:o},menuProps:{...c,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}var Cu=new WeakMap;function wu(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=q(e,{labelable:!0}),{listProps:c}=ss({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return Cu.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:z(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{(t.key!==`Escape`||e.shouldUseVirtualFocus)&&c.onKeyDown?.(t)}})}}function Tu(e,t,n){let{id:r,key:i,closeOnSelect:a,shouldCloseOnSelect:o,isVirtualized:s,"aria-haspopup":c,onPressStart:l,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:p,onClick:m,onHoverStart:h,onHoverChange:g,onHoverEnd:_,onKeyDown:v,onKeyUp:y,onFocus:b,onFocusChange:x,onBlur:S,selectionManager:C=t.selectionManager}=e,w=!!c,T=w&&e[`aria-expanded`]===`true`,E=e.isDisabled??C.isDisabled(i),D=e.isSelected??C.isSelected(i),O=Cu.get(t),k=t.collection.getItem(i),A=e.onClose||O.onClose,M=St(),N=()=>{if(!w&&(k?.props?.onAction?k.props.onAction():e.onAction&&e.onAction(i),O.onAction)){let e=O.onAction;e(i,k?.value)}},ee=`menuitem`;w||(C.selectionMode===`single`?ee=`menuitemradio`:C.selectionMode===`multiple`&&(ee=`menuitemcheckbox`));let te=me(),ne=me(),P=me(),F={id:r,"aria-disabled":E||void 0,role:ee,"aria-label":e[`aria-label`],"aria-labelledby":te,"aria-describedby":[e[`aria-describedby`],ne,P].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":c,"aria-expanded":e[`aria-expanded`]};if(C.selectionMode!==`none`&&!w&&(F[`aria-checked`]=D),s){let e=Number(k?.index);F[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,F[`aria-setsize`]=ys(t.collection)}let I=(0,j.useRef)(!1),re=e=>{f?.(e),I.current=e},L=(0,j.useRef)(null),ie=e=>{e.pointerType!==`keyboard`&&(L.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(I.current||e.target.click()),u?.(e)},ae=e=>{m?.(e),N(),Ot(e,M,k.props.href,k?.props.routerOptions);let t=L.current?.pointerType===`keyboard`?L.current?.key===`Enter`||C.selectionMode===`none`||C.isLink(i):C.selectionMode!==`multiple`||C.isLink(i);t=o??a??t,A&&!w&&t&&A(),L.current=null},{itemProps:oe,isFocused:se}=us({id:r,selectionManager:C,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:O.shouldUseVirtualFocus}),{pressProps:ce,isPressed:le}=ya({onPressStart:l,onPress:d,onPressUp:ie,onPressChange:re,onPressEnd:p,isDisabled:E}),{hoverProps:ue}=Fa({isDisabled:E,onHoverStart(e){!qt()&&!(T&&c)&&(C.setFocused(!0),C.setFocusedKey(i)),h?.(e)},onHoverChange:g,onHoverEnd:_}),{keyboardProps:de}=_i({shortcuts:{" ":e=>{L.current={pointerType:`keyboard`,key:` `},G(e).click(),Yt(`keyboard`)},Enter:e=>{L.current={pointerType:`keyboard`,key:`Enter`};let t=G(e);if(t.tagName!==`A`)t.click(),Yt(`keyboard`);else return Yt(`keyboard`),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:v,onKeyUp:y}),{focusableProps:fe}=Si({onBlur:S,onFocus:b,onFocusChange:x},n),R=q(k?.props);delete R.id;let pe=Dt(k?.props);return{menuItemProps:{...F,...z(R,pe,w?{onFocus:oe.onFocus,"data-collection":oe[`data-collection`],"data-key":oe[`data-key`]}:oe,ce,ue,de,fe,O.shouldUseVirtualFocus||w?{onMouseDown:e=>e.preventDefault()}:void 0,E?void 0:{onClick:ae}),tabIndex:oe.tabIndex!=null&&T&&!O.shouldUseVirtualFocus?-1:oe.tabIndex},labelProps:{id:te},descriptionProps:{id:ne},keyboardShortcutProps:{id:P},isFocused:se,isFocusVisible:se&&C.isFocused&&qt()&&!T,isSelected:D,isPressed:le,isDisabled:E}}function Eu(e){let{heading:t,"aria-label":n}=e,r=R();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function Du(e){let t=kl(e),[n,r]=(0,j.useState)(null),[i,a]=(0,j.useState)([]),o=()=>{a([]),t.close()},s=(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},c=(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:s,closeSubmenu:c}}var Ou=class{constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};function ku(e){let{onExpandedChange:t}=e,[n,r]=Or(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=Cs(e),a=(0,j.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=As(e,(0,j.useCallback)(e=>new Ou(e,{expandedKeys:n}),[n]),null);return(0,j.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(Au(n,e))},setExpandedKeys:r,selectionManager:new Ts(o,i)}}function Au(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var ju=(0,j.createContext)(null),Mu=(0,j.createContext)(null),Nu=(0,j.createContext)(null),Pu=(0,j.createContext)(null);function Fu(e){let t=Du(e),n=(0,j.useRef)(null),{menuTriggerProps:r,menuProps:i}=Su({...e,type:`menu`},t,n),a=(0,j.useRef)(null);return Di()?null:j.createElement(Se,{values:[[ju,{...i,ref:a}],[Ku,t],[Nu,t],[Nl,{trigger:`MenuTrigger`,triggerRef:n,scrollRef:a,placement:`bottom start`,"aria-labelledby":i[`aria-labelledby`],offset:e.trigger===`contextMenu`?0:void 0}]]},j.createElement(Sl,{...r,ref:n,isPressed:t.isOpen},e.children))}var Iu=(0,j.createContext)(null);(class extends Fr{static{this.type=`submenutrigger`}filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}});var Lu=(0,j.forwardRef)(function(e,t){return[e,t]=Te(e,t,ju),j.createElement(Ni,{content:j.createElement(Gi,e)},n=>j.createElement(Ru,{props:e,collection:n,menuRef:t}))});function Ru({props:e,collection:t,menuRef:n}){[e,n]=Te(e,n,Mr);let{filter:r,...i}=e,a=(0,j.useMemo)(()=>r?t.filter(r):t,[t,r]),o=ku({...e,collection:a,children:void 0}),s=(0,j.useContext)(Nu),{isVirtualized:c,CollectionRoot:l}=(0,j.useContext)(Zi),{menuProps:u}=wu({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=Ce({...e,children:void 0,defaultClassName:`react-aria-Menu`,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=j.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=q(e,{global:!0});return j.createElement(wo,null,j.createElement(B.div,{...z(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},j.createElement(Se,{values:[[Mu,o],[vo,{elementType:`div`}],[qi,{name:`MenuSection`,render:Bu}],[Iu,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[Hu,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[Mr,null],[Nr,null],[Pu,o.selectionManager],[Nu,s??Du({})]]},j.createElement(ho,null,j.createElement(l,{collection:o.collection,persistedKeys:Qi(o.selectionManager.focusedKey),scrollRef:n}))),f))}var zu=class extends Ts{constructor(e,t){super(e.collection,t),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}};function Bu(e,t,n,r=`react-aria-MenuSection`){let i=(0,j.useContext)(Mu),{CollectionBranch:a}=(0,j.useContext)(Zi),[o,s]=Ee(),{headingProps:c,groupProps:l}=Eu({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=Ce({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),d=(0,j.useContext)(Pu),f=Cs(e),p=e.selectionMode==null?d:new zu(d,f),m=we(Hu)?.shouldCloseOnSelect,h=q(e,{global:!0});return delete h.id,j.createElement(B.section,{...z(h,u,l),ref:t},j.createElement(Se,{values:[[fo,{...c,ref:o}],[Pu,p],[Hu,{shouldCloseOnSelect:e.shouldCloseOnSelect??m}]]},j.createElement(a,{collection:i.collection,parent:n})))}var Vu=Hi(Br,Bu),Hu=(0,j.createContext)(null),Uu=Vi(zr,function(e,t,n){[e,t]=Te(e,t,Hu);let r=we(Hu)?.id,i=(0,j.useContext)(Mu),a=ye(t),o=(0,j.useContext)(Pu),{isVirtualized:s}=(0,j.useContext)(Zi),{menuItemProps:c,labelProps:l,descriptionProps:u,keyboardShortcutProps:d,...f}=Tu({...e,id:r,key:n.key,selectionManager:o,isVirtualized:s},i,a),{hoverProps:p,isHovered:m}=Fa({isDisabled:f.isDisabled}),h=Ce({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),g=e.href?B.a:B.div,_=q(e,{global:!0});return delete _.id,delete _.onClick,j.createElement(g,{...z(_,h,c,p),ref:a,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},j.createElement(Se,{values:[[Za,{slots:{[xe]:l,label:l,description:u}}],[Ll,d],[go,{isSelected:f.isSelected}]]},h.children))});Vi(Rr,function(e,t,n){let r=(0,j.useContext)(Mu),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,j.useRef)(null);js((0,j.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=Ce({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuLoadingIndicator`,values:void 0});return j.createElement(j.Fragment,null,j.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:bs(!0)},j.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&j.createElement(j.Fragment,null,j.createElement(B.div,{...z(q(e,{global:!0}),{tabIndex:-1}),...l,role:`menuitem`,ref:t},l.children)))});function Wu(e,t){let{role:n=`dialog`,isEntering:r}=e,i=me();i=e[`aria-label`]?void 0:i;let a=me();a=n===`alertdialog`&&!e[`aria-describedby`]?a:void 0;let o=(0,j.useRef)(!1);(0,j.useEffect)(()=>{if(!r&&t.current&&!Ve(t.current)){ni(t.current);let e=setTimeout(()=>{(W()===t.current||W()===document.body)&&(o.current=!0,t.current&&(t.current.blur(),ni(t.current)),o.current=!1)},500);return()=>{clearTimeout(e)}}},[t,r]),Ol(),(0,j.useRef)(!1),(0,j.useEffect)(()=>{});let s=e[`aria-describedby`]??a;return{dialogProps:{...q(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]??i,"aria-describedby":s,onBlur:e=>{o.current&&e.stopPropagation()}},titleProps:{id:i},contentProps:{id:a}}}var Gu=(0,j.createContext)(null),Ku=(0,j.createContext)(null);function qu(e){let t=Du(e),n=(0,j.useRef)(null),{triggerProps:r,overlayProps:i}=bu({type:`dialog`},t,n);return r.id=R(),i[`aria-labelledby`]=r.id,Di()?null:j.createElement(Se,{values:[[Ku,t],[Nu,t],[Gu,i],[Nl,{trigger:`DialogTrigger`,triggerRef:n,id:i.id,"aria-labelledby":i[`aria-labelledby`]}]]},j.createElement(Sl,{...r,ref:n,isPressed:t.isOpen},e.children))}var Ju=(0,j.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=Te(e,t,Gu);let{dialogProps:r,titleProps:i,contentProps:a}=Wu({...e,"aria-labelledby":n},t),o=(0,j.useContext)(Ku);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let s=Ce({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:o?.close||(()=>{})}}),c=q(e,{global:!0});return j.createElement(B.section,{...z(c,s,r),render:e.render,ref:t,slot:e.slot||void 0},j.createElement(Se,{values:[[Ya,{slots:{[xe]:{},title:{...i,level:2}}}],[Za,{slots:{[xe]:{},description:a}}],[Ga,{slots:{[xe]:{},close:{onPress:()=>o?.close()}}}]]},s.children))}),Yu=1500,Xu=500,Zu={},Qu=0,$u=!1,ed=null,td=null;function nd(e={}){let{delay:t=Yu,closeDelay:n=Xu}=e,{isOpen:r,open:i,close:a}=kl(e),[o,s]=(0,j.useState)(!1),c=(0,j.useMemo)(()=>`${++Qu}`,[]),l=(0,j.useRef)(null),u=(0,j.useRef)(a),d=()=>{Zu[c]=m},f=()=>{for(let e in Zu)e!==c&&(Zu[e](!0,!0),delete Zu[e])},p=e=>{l.current&&clearTimeout(l.current),l.current=null,f(),d(),s(!!e),$u=!0,i(),ed&&=(clearTimeout(ed),null),td&&=(clearTimeout(td),null)},m=(e,t)=>{s(!!t),e||n<=0?(l.current&&clearTimeout(l.current),l.current=null,u.current()):l.current||=setTimeout(()=>{l.current=null,u.current()},n),ed&&=(clearTimeout(ed),null),$u&&(td&&clearTimeout(td),td=setTimeout(()=>{delete Zu[c],td=null,$u=!1},Math.max(Xu,n)))},h=()=>{f(),d(),!r&&!$u?(ed&&clearTimeout(ed),ed=setTimeout(()=>{ed=null,$u=!0,p(!1)},t)):r||p(!0)};return(0,j.useEffect)(()=>{u.current=a},[a]),(0,j.useEffect)(()=>()=>{l.current&&clearTimeout(l.current),Zu[c]&&delete Zu[c]},[c]),{isOpen:r,shouldSkipAnimation:o,open:e=>{!e&&t>0&&!l.current?h():p($u)},close:m}}function rd(e,t,n){let{overlayProps:r,underlayProps:i}=vc({...e,isOpen:t.isOpen,onClose:t.close},n);Mc({isDisabled:!t.isOpen,UNSTABLE_overrideFocus:e.UNSTABLE_overrideFocus}),Ol();let{isEntering:a}=e;return(0,j.useEffect)(()=>{if(t.isOpen&&n.current)return a?Rs(n.current):Ls([n.current],{shouldUseInert:!0})},[t.isOpen,a,n]),{modalProps:z(r),underlayProps:i}}var id=typeof document<`u`&&window.visualViewport;function ad(){let e=se(),t=(0,j.useRef)(null),[n,r]=(0,j.useState)(()=>e?{width:0,height:0}:od());return(0,j.useEffect)(()=>{let e=e=>{r(t=>e.width===t.width&&e.height===t.height?t:e)},n=()=>{id&&id.scale>1||e(od())},i=n=>{id&&id.scale>1||qn(G(n))&&(t.current=Dc(t=>{t||e({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return e(od()),mt()&&gt()&&window.addEventListener(`blur`,i,!0),id?id.addEventListener(`resize`,n):window.addEventListener(`resize`,n),()=>{t.current?.(),mt()&&gt()&&window.removeEventListener(`blur`,i,!0),id?id.removeEventListener(`resize`,n):window.removeEventListener(`resize`,n)}},[]),n}function od(){return{width:id?Math.min(id.width*id.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:id?id.height*id.scale:document.documentElement.clientHeight}}var sd=(0,j.createContext)(null),cd=(0,j.createContext)(null),ld=(0,j.forwardRef)(function(e,t){if((0,j.useContext)(cd))return j.createElement(md,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,children:s,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d,...f}=e;return j.createElement(dd,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d},j.createElement(md,{...f,modalRef:t},s))});function ud(e,t){[e,t]=Te(e,t,sd);let n=(0,j.useContext)(Ku),r=kl(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=ye(t),o=(0,j.useRef)(null),s=jl(a,i.isOpen,e.onExit),c=(0,j.useRef)(null),l=jl(o,i.isOpen,e=>c.current?.(e)),u=s||l||e.isExiting||!1,d=se();return!i.isOpen&&!u||d?null:j.createElement(fd,{...e,state:i,isExiting:u,overlayRef:a,modalRef:o,onExitRef:c})}var dd=(0,j.forwardRef)(ud);function fd({UNSTABLE_portalContainer:e,UNSTABLE_deferUntilEntered:t,...n}){let r=n.modalRef,{state:i}=n,[a,o]=(0,j.useState)(!1),s=Al(n.overlayRef,a,n.onEnter)||n.isEntering||!1,c=!!t&&(!a||s),{modalProps:l,underlayProps:u}=rd({...n,isEntering:c},i,r),d=(0,j.useContext)(Gu),f=t?pd(d,{isEntering:c}):d,p=Ce({...n,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:s,isExiting:n.isExiting,state:i}}),m=ad(),h,g;if(typeof document<`u`){let e=$a(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;h=e.scrollWidth-t,g=e.scrollHeight-n}let _={...p.style,"--visual-viewport-width":m.width+`px`,"--visual-viewport-height":m.height+`px`,"--page-width":h===void 0?void 0:h+`px`,"--page-height":g===void 0?void 0:g+`px`};return N(()=>Dc(()=>o(!0)),[]),j.createElement(Dl,{isExiting:n.isExiting,portalContainer:e},j.createElement(B.div,{...z(q(n,{global:!0}),u),...p,style:_,ref:n.overlayRef,"data-entering":s||void 0,"data-exiting":n.isExiting||void 0},j.createElement(Se,{values:[[cd,{modalProps:l,modalRef:r,isExiting:n.isExiting,onExitRef:n.onExitRef,isOpen:a,isDismissable:n.isDismissable}],[Ku,i],[Gu,f]]},p.children)))}function pd(e,t){if(e&&`slots`in e&&e.slots){let n={};for(let r in e.slots)n[r]={...e.slots[r],...t};return{...e,slots:n}}return{...e,...t}}function md(e){let{modalProps:t,modalRef:n,isExiting:r,onExitRef:i,isDismissable:a,isOpen:o}=(0,j.useContext)(cd),s=(0,j.useContext)(Ku),c=ye((0,j.useMemo)(()=>he(e.modalRef,n),[e.modalRef,n])),l=Al(c,o,e.onEnter),u=Ce({...e,defaultClassName:`react-aria-Modal`,values:{isEntering:l,isExiting:r,state:s}});return N(()=>{i&&(i.current=e.onExit)}),j.createElement(B.div,{...z(q(e,{global:!0}),t),...u,ref:c,"data-entering":l||void 0,"data-exiting":r||void 0},a&&j.createElement(xl,{onDismiss:s.close}),u.children)}var hd=j.createContext(null);function gd(e){let{children:t}=e,n=(0,j.useContext)(hd),[r,i]=(0,j.useState)(0),a=(0,j.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return j.createElement(hd.Provider,{value:a},t)}function _d(){let e=(0,j.useContext)(hd);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function vd(e){let{modalProviderProps:t}=_d();return j.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function yd(e){return j.createElement(gd,null,j.createElement(vd,e))}function bd(e){let t=se(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=Tl();if(!e.portalContainer&&i&&(n=i()),j.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=j.createElement(yd,r);return be.createPortal(a,n)}function xd(e,t){let n=q(e,{labelable:!0}),{hoverProps:r}=Fa({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:z(n,r,{role:`tooltip`})}}function Sd(e,t,n){let{isDisabled:r,trigger:i,shouldCloseOnPress:a=!0}=e,o=R(),s=(0,j.useRef)(!1),c=(0,j.useRef)(!1),l=()=>{(s.current||c.current)&&t.open(c.current)},u=e=>{!s.current&&!c.current&&t.close(e)};(0,j.useEffect)(()=>{let e=e=>{n&&n.current&&e.key===`Escape`&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener(`keydown`,e,!0),()=>{document.removeEventListener(`keydown`,e,!0)}},[n,t]);let d=()=>{i!==`focus`&&(Jt()===`pointer`?s.current=!0:s.current=!1,l())},f=()=>{i!==`focus`&&(c.current=!1,s.current=!1,u())},p=()=>{a&&(c.current=!1,s.current=!1,u(!0))},m=()=>{qt()&&(c.current=!0,l())},h=()=>{c.current=!1,s.current=!1,u(!0)},{hoverProps:g}=Fa({isDisabled:r,onHoverStart:d,onHoverEnd:f}),{focusableProps:_}=Si({isDisabled:r,onFocus:m,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?o:void 0,...z(_,g,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:o}}}var Cd=(0,j.createContext)(null),wd=(0,j.createContext)(null);function Td(e){let t=nd(e),n=(0,j.useRef)(null),{triggerProps:r,tooltipProps:i}=Sd(e,t,n);return j.createElement(Se,{values:[[Cd,t],[wd,{...i,triggerRef:n}]]},j.createElement(xi,{...r,ref:n},e.children))}var Ed=(0,j.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=Te(t,n,wd);let r=(0,j.useContext)(Cd),i=nd(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=jl(n,a.isOpen),s=t.isExiting||!a.shouldSkipAnimation&&o||!1;return!a.isOpen&&!s?null:j.createElement(bd,{portalContainer:e},j.createElement(Dd,{...t,tooltipRef:n,isExiting:s}))});function Dd(e){let t=(0,j.useContext)(Cd),n=(0,j.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=fc({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=Al(e.tooltipRef,!!a),c=e.isEntering||!t.shouldSkipAnimation&&s||!1,l=Ce({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:c,isExiting:e.isExiting,state:t}});e=z(e,r);let{tooltipProps:u}=xd(e,t),d=q(e,{global:!0});return j.createElement(B.div,{...z(d,l,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...l.style},"data-placement":a??void 0,"data-entering":c||void 0,"data-exiting":e.isExiting||void 0},j.createElement(Ms.Provider,{value:{...i,placement:a,ref:n}},l.children))}var Od=e=>e?.estimate?.unit===`points`?e.estimate.value:null;function kd(e){let t=0,n=0;for(let r of e){let e=Od(r);e!==null&&(t+=e,n++)}return{points:n===0&&e.length>0?null:t,unestimated:e.length-n}}var Ad=e=>Math.round(e*10)/10,jd=e=>`${e} ${e===1?`item`:`items`} with no points read`;function Md(e){if(e.points===null)return null;let t=Ad(e.points),n=`${t} ${t===1?`point`:`points`}`;return e.unestimated?`${n}, and ${jd(e.unestimated)}`:n}var Nd=864e5;function Pd(e,t){let n=Date.parse(e),r=Date.parse(t);if(!(r>n))return 0;let i=0;for(;n<r;){let e=Math.min(r,(Math.floor(n/Nd)+1)*Nd),t=new Date(n).getUTCDay();t!==0&&t!==6&&(i+=(e-n)/Nd),n=e}return i}var Fd=(e,t)=>Math.max(0,(Date.parse(t)-Date.parse(e))/Nd),Id=e=>Math.round(e*10)/10,Ld=[{id:`failing`,label:`Failing checks`,severity:`danger`,unit:`hours`,threshold:24,on:!0,test:e=>`checks on an open pull request for an open item have failed for more than ${e} hours`},{id:`blocked`,label:`Blocked`,severity:`danger`,unit:null,threshold:null,on:!0,test:()=>`an open item waits on another open item`},{id:`waiting`,label:`Waiting on review`,severity:`warn`,unit:`working days`,threshold:2,on:!0,test:e=>`an open pull request has had no first review for more than ${e} working days`},{id:`sprint`,label:`Sprint at risk`,severity:`warn`,unit:null,threshold:null,on:!0,test:()=>`at the pace so far, the current sprint won't finish the points in it`},{id:`stale`,label:`Stale`,severity:`warn`,unit:`days`,threshold:5,on:!0,test:e=>`an item in progress has had no update for more than ${e} days`},{id:`load`,label:`Over the WIP limit`,severity:`warn`,unit:null,threshold:null,on:!0,test:(e,t)=>`someone has more than ${t??`the toil project's WIP limit of`} items in progress (describe load, never rank people)`},{id:`drift`,label:`Ticket and pull request disagree`,severity:`warn`,unit:null,threshold:null,on:!0,test:()=>`an item is done while its pull request is open, or its pull request merged while the item is still open`},{id:`ready`,label:`Not ready`,severity:`warn`,unit:null,threshold:null,on:!1,test:()=>`the next item in line fails the readiness checks`}],Rd=new Map(Ld.map(e=>[e.id,e])),zd=e=>Rd.get(e),Bd=e=>Rd.has(e),Vd=e=>e.statusCategory!==`DONE`,Hd=e=>e.state===`OPEN`||e.state===`DRAFT`,Ud=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,Wd=e=>Ud(Id(e),`point`),Gd=(e,t)=>`${Id(e)} ${t.replace(/days$/,Id(e)===1?`day`:`days`)}`,Kd=e=>`[[${e}]]`;function qd(e,t){let n=new Set([e]),r=[],i=[e];for(;i.length;){let e=t.get(i.shift());for(let a of e?.links??[]){if(a.type!==`blocks`||a.direction!==`outward`||n.has(a.target))continue;let e=t.get(a.target);n.add(a.target),e&&Vd(e)&&(r.push(e),i.push(e.id))}}return r}var Jd=e=>/T00:00:00(\.0+)?Z$/.test(e)?new Date(Date.parse(e)+Nd).toISOString():e;function Yd(e,t){let n=Date.parse(t),r=new Map;for(let t of e){let e=t.iteration;if(!e?.start||!e.end||!(e.state===`current`||Date.parse(e.start)<=n&&n<=Date.parse(Jd(e.end))))continue;let i=`${e.name}|${e.start}|${e.end}`;r.set(i,{it:e,n:(r.get(i)?.n??0)+1})}return[...r.values()].sort((e,t)=>t.n-e.n)[0]?.it??null}function Xd(e,t){let n=Yd(e,t);if(!n?.start||!n.end)return null;let r=e.filter(e=>e.iteration?.name===n.name&&e.iteration.start===n.start&&e.iteration.end===n.end),i=kd(r),a=i.points,o=a===null?null:kd(r.filter(e=>!Vd(e))).points??0,s=Jd(n.end),c=Pd(n.start,s),l=Math.min(c,Pd(n.start,t)),u=a!==null&&o!==null&&l>=Math.max(1,c/4)?o/l:null,d=u===null||a===null||o===null?null:Math.min(a-o,u*(c-l));return{name:n.name,start:n.start,end:n.end,days:{total:Id(c),gone:Id(l),left:Id(c-l)},points:{total:a,done:o,left:a===null||o===null?null:a-o,unestimated:i.unestimated},pace:u===null?null:Id(u),projected:d===null?null:Id(d)}}var Zd=(e,t)=>(e.unmapped??[]).some(e=>e.field===t);function Qd(e,t,n){switch(e){case`failing`:return n.some(e=>Hd(e)&&(e.checks===null||Zd(e,`checks`)||e.checks===`FAILING`&&!e.checksAt))?`checks`:null;case`waiting`:return n.some(e=>e.state===`OPEN`&&(!e.created||Zd(e,`firstReviewAt`)))?`firstReviewAt`:null;case`stale`:return t.statusCategory===`IN_PROGRESS`&&!t.updated?`updated`:null;case`load`:return t.statusCategory===`IN_PROGRESS`&&!t.assignee?.id?`assignee`:null;default:return null}}function $d(e,t,n,r){let i=r.changesOf(t.id);switch(e){case`failing`:{let e=i.filter(e=>Hd(e)&&e.checks===`FAILING`&&e.checksAt&&Fd(e.checksAt,r.asOf)*24>(n??0));if(!e.length)return null;let t=e[0];return{why:`Checks fail on ${Kd(t.id)}, for ${Gd(Fd(t.checksAt,r.asOf),`days`)}.`,evidence:e.map(e=>e.id),changes:e}}case`blocked`:{let e=t.links.filter(e=>e.type===`blocks`&&e.direction===`inward`&&r.byId.has(e.target)&&Vd(r.byId.get(e.target))).map(e=>e.target);return e.length?{why:`Blocked by ${[...new Set(e)].map(Kd).join(` and `)}, which ${e.length===1?`isn't`:`aren't`} done.`,evidence:[`links`],changes:[]}:null}case`waiting`:{let e=i.filter(e=>e.state===`OPEN`&&!e.firstReviewAt&&!Zd(e,`firstReviewAt`)&&e.created&&Pd(e.created,r.asOf)>(n??0));if(!e.length)return null;let t=e[0];return{why:`${Kd(t.id)} has waited ${Gd(Pd(t.created,r.asOf),`working days`)} for its first review.`,evidence:e.map(e=>e.id),changes:e}}case`stale`:{if(t.statusCategory!==`IN_PROGRESS`||!t.updated)return null;let e=Fd(t.updated,r.asOf);return e>(n??0)?{why:`In progress with no update for ${Gd(e,`days`)}.`,evidence:[`updated`],changes:[]}:null}case`load`:{let e=t.assignee?.id;if(r.wipLimit===null||t.statusCategory!==`IN_PROGRESS`||!e)return null;let n=r.loadOf.get(e)??0;return n>r.wipLimit?{why:`${t.assignee.name??e} has ${n} items in progress; the toil project's limit is ${r.wipLimit}.`,evidence:[`assignee`,`statusCategory`],changes:[]}:null}case`drift`:{if(t.statusCategory===`DONE`){let e=i.filter(Hd);return e.length?{why:`Done while ${e.map(e=>Kd(e.id)).join(` and `)} ${e.length===1?`is`:`are`} still open.`,evidence:e.map(e=>e.id),changes:e}:null}let e=i.filter(e=>e.state===`MERGED`&&e.mergedAt&&Pd(e.mergedAt,r.asOf)>1);return e.length?{why:`${Kd(e[0].id)} merged ${Gd(Pd(e[0].mergedAt,r.asOf),`working days`)} ago, but the item is still ${t.status??`open`}.`,evidence:e.map(e=>e.id),changes:e}:null}default:return null}}function ef(e){return{id:e.id,repo:e.repo,title:e.title,url:e.url,state:e.state,checks:e.checks}}function tf(e){let t=kd(e);return{items:e.length,points:t.points,unestimated:t.unestimated}}function nf(e,t,n,r){let i=t.reduce((e,t)=>e+t.holds.items,0),a=t.filter(e=>e.points!==null),o=Md({points:a.length?a.reduce((e,t)=>e+t.points,0):null,unestimated:t.length-a.length}),s=o?`, ${o}`:``;switch(e){case`failing`:return`${Ud(t.length,`item`)}${i?`, holding up ${i} more`:``}${s}`;case`blocked`:return`${Ud(t.length,`item`)}${s}`;case`waiting`:return`${Ud(t.length,`item`)} with a pull request past ${n} working days`;case`stale`:return`${Ud(t.length,`item`)} with no update for over ${n} days`;case`load`:return`${Ud(new Set(t.map(e=>e.assignee)).size,`person`,`people`)} over the limit of ${r}`;case`drift`:return`${Ud(t.length,`item`)} whose ticket and pull request disagree`;default:return Ud(t.length,`item`)}}function rf(e){let t=e.items[0];if(!t)return{text:e.text??e.label,items:[]};let n=Md(t.holds),r=t.holds.items?`: it holds up ${Ud(t.holds.items,`item`)}${n?` (${n})`:``}`:``,i=Kd(t.id);switch(e.lens){case`failing`:return{text:`Fix the failing checks on ${i} first${r}.`,items:[t.id]};case`blocked`:return{text:`Unblock ${i} first${r}. ${t.why}`,items:[t.id]};case`waiting`:return{text:`Get ${i} its first review. ${t.why}`,items:[t.id]};case`stale`:return{text:`Check on ${i}. ${t.why}`,items:[t.id]};case`load`:return{text:`${t.why} Look at what ${t.assignee??`they`} can hand off or finish first.`,items:[t.id]};default:return{text:`Reconcile ${i}. ${t.why}`,items:[t.id]}}}function af(e){let{items:t,changes:n,asOf:r,settings:i}=e,a=new Map(t.map(e=>[e.id,e])),o=new Map;for(let e of n)for(let t of new Set(e.workItems))o.set(t,[...o.get(t)??[],e]);let s=e=>o.get(e)??[],c=new Map;for(let e of t)e.statusCategory===`IN_PROGRESS`&&e.assignee?.id&&c.set(e.assignee.id,(c.get(e.assignee.id)??0)+1);let l={byId:a,changesOf:s,asOf:r,wipLimit:i.wipLimit,loadOf:c},u=Xd(t,r),d=new Set,f=[],p=[];for(let e of i.lenses){let n=zd(e.id),r=e.threshold??n.threshold,o=e.on?e.id===`ready`?`Readiness is worked out in Toil UI, not from OWI records.`:e.id===`load`&&i.wipLimit===null?`The toil project sets no WIP limit (toil projects wip-limit).`:e.id===`sprint`&&!u?`No item is in a sprint running now.`:e.id===`sprint`&&u.points.total===null?`No points were read for any item in the sprint.`:null:null,c=e.on&&o===null,m=c?t.filter(t=>(Vd(t)||e.id===`drift`)&&Qd(e.id,t,s(t.id))):[],h=m.length?Qd(e.id,m[0],s(m[0].id)):null,g=o??(m.length?`${Ud(m.length,`item`)} couldn't be tested: ${h===`checks`||h===`firstReviewAt`?`a pull request has no ${h===`checks`?`checks`:`reviews`} read (map pr get --include reviews,checks, not only pr list)`:`no ${h}`}.`:null);if(p.push({id:n.id,label:n.label,on:e.on,threshold:r,unit:n.unit,test:n.test(r,i.wipLimit),checked:c,untested:m.length,note:g}),!c)continue;if(e.id===`sprint`){let e=u;if(e.points.total===null||e.points.done===null||e.points.left===null||e.projected===null||e.projected>=e.points.left-.01||e.points.left<=0)continue;f.push({lens:`sprint`,label:n.label,severity:n.severity,line:`${Wd(e.points.left)} left, ${Gd(e.days.left,`working days`)}, ${e.projected>0?`about ${Id(e.projected)} land`:`none land`} at this pace`,items:[],text:`${e.name} has done ${Wd(e.points.done)} of ${e.points.total} in ${Gd(e.days.gone,`working days`)}, ${e.pace} a day. At that pace ${e.projected>0?`about ${Id(e.projected)}`:`none`} of the ${Wd(e.points.left)} left land by ${new Date(Date.parse(Jd(e.end))-1).toISOString().slice(0,10)}.${e.points.unestimated?` ${Ud(e.points.unestimated,`item`)} with no points read ${e.points.unestimated===1?`is`:`are`} left out.`:``}`});continue}let _=[];for(let n of t){if(!Vd(n)&&e.id!==`drift`||d.has(n.id))continue;let t=$d(e.id,n,r,l);if(!t)continue;let i=qd(n.id,a);_.push({id:n.id,key:n.source.key,source:n.source,title:n.title,url:n.url,status:n.status,statusCategory:n.statusCategory,assignee:n.assignee?.name??n.assignee?.id??null,points:n.estimate?.unit===`points`?n.estimate.value:null,why:t.why,evidence:t.evidence,holds:tf(i),changes:t.changes.map(ef)})}if(_.length){_.sort((e,t)=>t.holds.items-e.holds.items||(t.holds.points??0)-(e.holds.points??0));for(let e of _)d.add(e.id);f.push({lens:e.id,label:n.label,severity:n.severity,line:nf(e.id,_,r,i.wipLimit),items:_,text:null})}}return{asOf:r,by:`code`,recommendation:f[0]?rf(f[0]):null,reasons:f,onTrack:{open:t.filter(e=>Vd(e)&&!d.has(e.id)).length,done:t.filter(e=>!Vd(e)&&!d.has(e.id)).length},sprint:u,lenses:p}}var of=864e5,sf=7*of,cf=e=>e.type!==`EPIC`&&(e.type!==`OTHER`||e.typeName===null),lf=e=>[...e.history?.transitions??[]].sort((e,t)=>e.at<t.at?-1:+(e.at>t.at));function uf(e){return lf(e).filter(e=>e.toCategory===`DONE`&&e.fromCategory!==`DONE`).at(-1)?.at??null}function df(e){if(e.statusCategory!==`DONE`)return null;if(!e.history)return{id:e.id,days:null,reason:`No history synced`};let t=uf(e);if(!t)return{id:e.id,days:null,reason:`No move into Done recorded`};let n=lf(e).find(e=>e.toCategory===`IN_PROGRESS`&&e.at<=t)?.at;return n?{id:e.id,start:n,end:t,days:(Date.parse(t)-Date.parse(n))/of}:{id:e.id,days:null,reason:`Never recorded as In progress before Done`}}function ff(e){let t=e.filter(cf).map(df).filter(e=>e!==null);return{known:t.filter(e=>e.days!==null).sort((e,t)=>e.end<t.end?-1:1),unknown:t.filter(e=>e.days===null).map(({id:e,reason:t})=>({id:e,reason:t}))}}function pf(e,t){if(!e.length)return null;let n=[...e].sort((e,t)=>e-t);return n[Math.max(0,Math.ceil(t/100*n.length)-1)]}function mf(e,t){if(e.statusCategory!==`IN_PROGRESS`)return null;if(!e.history)return{id:e.id,days:null,reason:`No history synced`};let n=null;for(let t of lf(e))t.toCategory===`IN_PROGRESS`?n===null&&(n=t.at):n=null;return n?{id:e.id,since:n,days:(Date.parse(t)-Date.parse(n))/of}:{id:e.id,days:null,reason:`No move into In progress recorded`}}function hf(e,t){let n=e.filter(cf).map(e=>mf(e,t)).filter(e=>e!==null);return{known:n.filter(e=>e.days!==null).sort((e,t)=>t.days-e.days),unknown:n.filter(e=>e.days===null).map(({id:e,reason:t})=>({id:e,reason:t}))}}function gf(e){let t=Date.parse(e),n=new Date(t).getUTCDay(),r=Math.floor(t/of)*of-(n+6)%7*of;return new Date(r).toISOString()}function _f(e,t,n=6){let r=Date.parse(gf(t)),i=Array.from({length:n},(e,t)=>({start:new Date(r-(n-1-t)*sf).toISOString(),items:[],partial:t===n-1})),a=[],o=0;for(let t of e.filter(cf)){if(t.statusCategory!==`DONE`)continue;let e=uf(t);if(!e){a.push({id:t.id,reason:t.history?`No move into Done recorded`:`No history synced`});continue}let n=i.find(t=>t.start===gf(e));n?n.items.push(t.id):e<i[0].start&&o++}return{weeks:i,unknown:a,earlier:o}}var vf=864e5,yf=e=>e.slice(0,e.indexOf(`:`));function bf(e){let t=new Map;for(let n of e){let e=n.iteration;if(!e||!(e.start&&e.end))continue;let r=t.get(e.name)??{name:e.name,start:null,end:null,sources:[]},i=yf(n.id);r.sources.some(e=>e.connection===i)||(r.sources.push({connection:i,id:e.id,name:e.name,path:e.path,start:e.start,end:e.end}),(!r.start||e.start<r.start)&&(r.start=e.start),(!r.end||e.end>r.end)&&(r.end=e.end)),t.set(e.name,r)}return[...t.values()].sort((e,t)=>e.start<t.start?-1:1)}function xf(e,t){let n=bf(e);return n.find(e=>e.start<=t&&t<e.end)??n.filter(e=>e.start<=t).at(-1)??null}var Sf=(e,t)=>e.iteration?.name===t.name,Cf=`github project items`;function wf(e){let t=e.iteration;if(!t)return{kind:`planned`,at:null,from:null,evidence:`no iteration`};let n=e=>e===t.name||t.path!==null&&e===t.path,r=(e.history?.iterations??[]).filter(e=>e.to.some(n)&&!e.from.some(n)).at(-1);if(r){let e=r.from.find(e=>!(t.path&&t.path.startsWith(`${e}\\`)));return e?{kind:`carried`,at:r.at,from:e,evidence:`history.iterations`}:{kind:t.start!==null&&r.at>t.start?`added`:`planned`,at:r.at,from:null,evidence:`history.iterations`}}let i=e.native[Cf];if(i?.createdAt){let e=new Date(i.createdAt).toISOString();return{kind:t.start!==null&&e>t.start?`added`:`planned`,at:e,from:null,evidence:`${Cf}: createdAt`}}return{kind:`planned`,at:null,from:null,evidence:e.history?`history.iterations`:`no history synced`}}var Tf=e=>e.statusCategory===`DONE`,Ef=e=>({count:e.length,...kd(e)});function Df(e){return e.scope.points===null?null:{done:e.done.points??0,left:e.remaining.points??0,total:e.scope.points}}function Of(e,t,n){let r=Date.parse(e),i=Date.parse(t);return{gone:Af(r,Math.min(Date.parse(n),i)),total:Af(r,i)}}var kf=e=>Math.max(0,e.total-e.gone);function Af(e,t){let n=0;for(let r=Math.floor(e/vf)*vf;r<t;r+=vf){let e=new Date(r).getUTCDay();e!==0&&e!==6&&n++}return n}function jf(e,t){return t.filter(t=>t.kind===`build`&&t.items.includes(e)).sort((e,t)=>e.at<t.at?1:-1)[0]??null}function Mf(e,t){return e.estimate||Tf(e)||e.type===`EPIC`||e.type===`OTHER`?!1:!(e.parent?t.get(e.parent):void 0)?.estimate}function Nf(e,t,n){let r=xf(e,n);if(!r)return null;let i=new Map(e.map(e=>[e.id,e])),a=e.filter(e=>Sf(e,r)),o=new Map(a.map(e=>[e.id,wf(e)])),s=e=>a.filter(t=>o.get(t.id).kind===e),c=[];for(let e of a){if(Tf(e))continue;let n=[];for(let t of e.links){let e=i.get(t.target);t.type===`blocks`&&t.direction===`inward`&&e&&!Tf(e)&&n.push({code:`blocked`,by:e.id})}let r=o.get(e.id);r.kind===`carried`&&n.push({code:`carried`,from:r.from});let a=jf(e.id,t);a?.outcome===`failed`&&n.push({code:`failing-build`,change:a.id}),Mf(e,i)&&n.push({code:`unestimated`}),n.length&&c.push({id:e.id,reasons:n})}return{sprint:r,items:a,entries:o,days:Of(r.start,r.end,n),scope:Ef(a),planned:Ef(s(`planned`)),added:Ef(s(`added`)),carried:Ef(s(`carried`)),done:Ef(a.filter(Tf)),remaining:Ef(a.filter(e=>!Tf(e))),otherUnits:a.filter(e=>e.estimate&&e.estimate.unit!==`points`).map(e=>e.id),unestimated:a.filter(e=>Mf(e,i)).map(e=>e.id),risks:c}}function Pf(e){switch(e.code){case`blocked`:return`Blocked by [[${e.by}]], which isn't done`;case`carried`:return`Carried over from ${e.from}`;case`failing-build`:return`Its latest build failed`;case`unestimated`:return`No estimate`}}var Ff={blocked:`Blocked`,"failing-build":`Build failing`,aging:`Aging`,"deployed-not-closed":`Deployed, still open`,carried:`Carried over`,"pr-no-build":`PR with no build`,stale:`Stale`,blocking:`Blocking`,"built-not-deployed":`Merged, not deployed`,unestimated:`No estimate`,added:`Added mid-sprint`},If=zd(`stale`).threshold,Lf=864e5,Rf=e=>`${Math.round(e*10)/10} ${Math.round(e*10)/10==1?`day`:`days`}`;function zf(e){let t=ff(e.items).known.map(e=>e.days),n=t.length>=3?pf(t,85):null;return{...e,byId:new Map(e.items.map(e=>[e.id,e])),p85:n===null?null:{days:n,from:t.length},ages:new Map(hf(e.items,e.now).known.map(e=>[e.id,e.days]))}}function Bf(e,t){if(e.statusCategory===`DONE`||!cf(e))return[];let n=[],r=e=>t.byId.has(e)&&t.byId.get(e).statusCategory!==`DONE`;for(let t of e.links)t.type===`blocks`&&r(t.target)&&(t.direction===`inward`?n.push({code:`blocked`,weight:3,text:`Blocked by [[${t.target}]], which isn't done`,evidence:`links (${t.name})`}):n.push({code:`blocking`,weight:2,text:`Blocks [[${t.target}]]`,evidence:`links (${t.name})`}));let i=jf(e.id,t.changes);i?.outcome===`failed`&&n.push({code:`failing-build`,weight:3,text:`Its latest build, ${i.title}, failed`,evidence:`toil ${i.command}`});let a=t.ages.get(e.id);a!==void 0&&t.p85&&a>t.p85.days&&n.push({code:`aging`,weight:3,text:`In progress for ${Rf(a)}, longer than 85% of this Toil project's finished items took (${Rf(t.p85.days)})`,evidence:`history.transitions, against ${t.p85.from} cycle times`});let o=t.deployments.filter(t=>t.items.includes(e.id));o.length&&n.push({code:`deployed-not-closed`,weight:2,text:`Running in ${o.map(e=>e.environment).join(` and `)}, but still ${e.status??`open`}`,evidence:`toil ${o[0].command}`});let s=t.health?.entries.get(e.id);s?.kind===`carried`&&n.push({code:`carried`,weight:2,text:`Carried over from ${s.from}`,evidence:s.evidence});let c=t.changes.filter(t=>t.kind===`pull-request`&&t.items.includes(e.id));for(let e of c.filter(e=>e.outcome===`open`))t.changes.some(t=>t.kind===`build`&&t.builds===e.id)||n.push({code:`pr-no-build`,weight:2,text:`Pull request ${e.title} is open with no build`,evidence:`toil ${e.command}`});if(e.updated){let r=(Date.parse(t.now)-Date.parse(e.updated))/Lf;r>If&&n.push({code:`stale`,weight:2,text:`No update for ${Rf(r)}`,evidence:`updated`})}let l=c.filter(e=>e.outcome===`merged`);return l.length&&!o.length&&t.deployments.length&&n.push({code:`built-not-deployed`,weight:1,text:`${l.length===1?`Its pull request is`:`Its pull requests are`} merged, but no environment runs ${l.length===1?`it`:`them`} yet`,evidence:`toil ${l[0].command}, toil ${t.deployments[0].command}`}),Mf(e,t.byId)&&n.push({code:`unestimated`,weight:1,text:`No estimate`,evidence:`estimate`}),s?.kind===`added`&&n.push({code:`added`,weight:1,text:`Added after the sprint started`,evidence:s.evidence}),n.sort((e,t)=>t.weight-e.weight)}function Vf(e){let t=new Map;for(let n of e){let e=t.get(n.code);e?e.insights.push(n):t.set(n.code,{code:n.code,weight:n.weight,insights:[n]})}return[...t.values()]}var Hf=e=>e.some(e=>e.weight>=2);function Uf(e,t){return e.filter(e=>Hf(Bf(e,t)))}var Wf=(0,j.createContext)(null);function Gf(){let e=(0,j.useContext)(Wf);if(!e)throw Error(`useData() needs the shell to have loaded the Toil project first.`);return e}var Kf=new WeakMap;function qf(){let{toilProject:e,now:t}=Gf(),n=Kf.get(e);n||Kf.set(e,n=new Map);let r=n.get(t);if(!r){let i=Nf(e.items,e.changes,t);r={health:i,insights:zf({items:e.items,changes:e.changes,deployments:e.deployments,health:i,now:t})},n.set(t,r)}return r}var Jf=[`pr list`,`pr get`],Yf={jira:{family:`jira`,items:[`issue search`,`issue get`],history:[`issue history`],context:[],changes:[]},ado:{family:`ado`,items:[`work-item get`,`work-item get-many`],history:[`work-item history`],context:[`work-item iterations`],changes:Jf},github:{family:`github`,items:[`issue list`,`issue search`,`issue get`,`project items`],history:[`issue history`],context:[],changes:Jf},bitbucket:{family:`bitbucket`,items:[],history:[],context:[],changes:Jf}},Xf=Object.keys(Yf),Zf=[`estimate`,`estimateUnit`,`priority`,`type`,`team`,`dueDate`,`iteration`,`release`,`affects`,`estimateLabel`,`iterationDays`],Qf=[`HUMAN`,`AGENT`,`BOT`],$f=/^\d{4}-\d{2}-\d{2}$/,ep=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function tp(e){if(!$f.test(e))return!1;let t=Date.parse(`${e}T00:00:00Z`);return!Number.isNaN(t)&&new Date(t).toISOString().slice(0,10)===e}var np=e=>Date.parse(`${e}T00:00:00Z`),rp=(e,t)=>new Date(np(e)+t*Nd).toISOString().slice(0,10);function ip(e){if(!e)return null;let t=Date.parse(e);return Number.isNaN(t)?null:new Date(t).toISOString().slice(0,10)}function ap(e,t){let n=np(e);if(t===`week`)return rp(e,-((new Date(n).getUTCDay()+6)%7));let r=Number(e.slice(5,7)),i=t===`month`?r:Math.floor((r-1)/3)*3+1;return`${e.slice(0,4)}-${String(i).padStart(2,`0`)}-01`}function op(e,t){if(t===`week`)return rp(e,7);let n=Number(e.slice(0,4)),r=Number(e.slice(5,7))-1+(t===`month`?1:3);return new Date(Date.UTC(n,r,1)).toISOString().slice(0,10)}function sp(e,t){if(t===`month`)return`${ep[Number(e.slice(5,7))-1]} ${e.slice(0,4)}`;if(t===`quarter`)return`Q${Math.floor((Number(e.slice(5,7))-1)/3)+1} ${e.slice(0,4)}`;let n=rp(e,3),r=n.slice(0,4),i=Math.round((np(n)-np(`${r}-01-01`))/Nd)+1;return`${r}-W${String(Math.floor((i-1)/7)+1).padStart(2,`0`)}`}function cp(e,t,n){let r=[];for(let i=ap(e,n);i<=t;i=op(i,n))r.push(i);return r}var lp={category:`single`,type:`single`,statusCategory:`single`,status:`single`,priority:`single`,assignee:`single`,team:`single`,iteration:`single`,project:`single`,tracker:`single`,connection:`single`,area:`single`,parent:`parent`,label:`multi`,component:`multi`,release:`multi`,affects:`multi`,sprint:`multi`,dim:`multi`,created:`time`,started:`time`,resolved:`time`,age:`derived`,size:`derived`,planned:`derived`,hasEpic:`derived`,carried:`derived`,reopened:`derived`},up={category:`Category`,type:`Type`,statusCategory:`Status category`,status:`Status`,priority:`Priority`,assignee:`Assignee`,team:`Team`,iteration:`Current sprint`,project:`Project`,tracker:`Tracker`,connection:`Connection`,area:`Area`,parent:`Parent`,label:`Label`,component:`Component`,release:`Fix version`,affects:`Affected version`,sprint:`Sprint`,dim:`Field`,created:`Created`,started:`Started`,resolved:`Resolved`,age:`Age`,size:`Size`,planned:`Planned or unplanned`,hasEpic:`Has an epic`,carried:`Carried over`,reopened:`Reopened`},dp={category:`Unsure`,type:`No type`,statusCategory:`No status`,status:`No status`,priority:`No priority`,assignee:`Unassigned`,team:`No team`,iteration:`No sprint`,project:`No project`,tracker:`No tracker`,connection:`No connection`,area:`No area`,parent:`No parent`,label:`No labels`,component:`No component`,release:`No fix version`,affects:`No affected version`,sprint:`No sprint`,dim:`None`,created:null,started:null,resolved:null,age:`Not in progress`,size:`No estimate`,planned:`Not in a sprint`,hasEpic:`No epic`,carried:`Not carried over`,reopened:`Not reopened`},fp={category:`Categories`,type:`Types`,statusCategory:`Statuses`,status:`Statuses`,priority:`Priorities`,assignee:`Assignees`,team:`Teams`,iteration:`Sprints`,project:`Projects`,tracker:`Trackers`,connection:`Connections`,area:`Area paths`,parent:`Parents`,label:`Labels`,component:`Components`,release:`Fix versions`,affects:`Affected versions`,sprint:`Sprints`,dim:`Values`,created:`Created dates`,started:`Start dates`,resolved:`Resolved dates`,age:`Start dates`,size:`Estimates`,planned:`Sprint histories`,hasEpic:`Parent chains`,carried:`Sprint histories`,reopened:`Status histories`},pp=e=>i.includes(e);function mp(e){let t=e.trim(),n=t.indexOf(`:`),r=n<0?t:t.slice(0,n).trim(),a=n<0?null:t.slice(n+1).trim();if(!pp(r))throw Error(`Unknown dimension "${r}". Choose one of: ${i.join(`, `)}.`);if(a===``)throw Error(`"${e}" has nothing after the colon.${r===`dim`?` Write dim:<name>, the name of a dimension the toil project defines.`:` Leave the colon out, or add a value.`}`);let s=lp[r],c=up[r],l=dp[r];if(s===`time`){if(a!==null&&!o.includes(a))throw Error(`Unknown grain "${a}" for ${r}. Choose one of: ${o.join(`, `)}.`);c=`${c}, by ${a??`week`}`}else if(r===`area`){if(a!==null&&!/^[1-9]\d*$/.test(a))throw Error(`"${e}": the area depth must be a whole number of 1 or more (a path like Imagile\\Payments\\Web is 3 deep).`);a!==null&&(c=`Area (${a} deep)`)}else if(r===`dim`){if(a===null)throw Error(`"dim" needs a name: write dim:<name>, the name of a dimension the toil project defines.`);c=a,l=`No ${a}`}else if(r===`parent`)a!==null&&(c=`Parent › ${a===`top`?`Top`:a}`,l=a===`top`?`No parent`:`No ${a}`);else if(r===`label`)a!==null&&(c=`Label › ${a}`,l=`No ${a} label`);else if(a!==null)throw Error(`"${r}" takes no argument, so write it without ":${a}".`);return{spec:t,base:r,arg:a,kind:s,label:c,noneLabel:l}}var hp=e=>e.base===`dim`?`The "${e.arg}" values`:fp[e.base],gp=`category.type.statusCategory.status.priority.assignee.team.parent.parent:top.parent:Epic.parent:Feature.iteration.sprint.release.affects.component.label.area.project.tracker.connection.created:week.created:month.created:quarter.started:week.started:month.started:quarter.resolved:week.resolved:month.resolved:quarter.age.size.planned.hasEpic.carried.reopened`.split(`.`).map(e=>{let t=mp(e);return{spec:t.spec,label:t.label,kind:t.kind}}),X=()=>({unread:!0}),Z=e=>({unread:!1,values:e}),Q=(e,t,n)=>Z([{key:`v:${e}`,label:t,order:n}]),_p=(e,t)=>e===null?Z([]):Q(e,t),vp=e=>Z(Cp(e.map(e=>({key:`v:${e.toLowerCase()}`,label:e})))),yp=`9999-99-99`,bp=e=>Z(Cp(e.map(e=>({key:`v:${e.id??e.name}`,label:e.name,order:ip(e.date)??yp})))),xp=e=>String(e).padStart(4,`0`),Sp=e=>e.toLowerCase();function Cp(e){let t=new Set;return e.filter(e=>!t.has(e.key)&&(t.add(e.key),!0))}var wp=e=>e.charAt(0)+e.slice(1).toLowerCase();function Tp(e){let t=(e.history?.transitions??[]).filter(e=>e.toCategory===`IN_PROGRESS`).map(e=>Date.parse(e.at)).filter(e=>!Number.isNaN(e));return t.length===0?null:new Date(Math.min(...t)).toISOString()}function Ep(e){let t=e.source.key,n=t.indexOf(`#`);if(n>0)return t.slice(0,n);let r=t.lastIndexOf(`-`);return r>0&&/^\d+$/.test(t.slice(r+1))?t.slice(0,r):e.source.area}var Dp=e=>e.slice(e.indexOf(`:`)+1);function Op(e,t,n){let r=n.index?.get(e),i=r?.title??t;return`${r?.source.key??Dp(e)}${i?` ${i}`:``}`}function kp(e,t){if(e.team)return Q(e.team.toLowerCase(),e.team);let n=e.assignee;if(!n)return Z([]);if(!t)return X();let r=[n.id,n.name,n.email].filter(e=>!!e).map(Sp),i=t.find(e=>[e.name,e.email,...Object.values(e.ids??{})].filter(e=>!!e).map(Sp).some(e=>r.includes(e)));return i?.team?Q(i.team.toLowerCase(),i.team):Z([])}function Ap(e,t,n){if(t.arg===null)return e.parent===null?Z([]):Q(e.parent,Op(e.parent,null,n));if(e.parent===null)return Z([]);if(e.ancestors===void 0)return X();let r=e.ancestors,i=t.arg===`top`?r[r.length-1]:r.find(e=>Sp(e.typeName??``)===Sp(t.arg)||Sp(e.type)===Sp(t.arg));return i?Q(i.id,Op(i.id,i.title,n)):t.arg===`top`?Q(e.parent,Op(e.parent,null,n)):Z([])}function jp(e,t,n){let r;if(t.base===`started`){if(e.history===null)return X();r=Tp(e)}else r=t.base===`created`?e.created:e.resolved;let i=ip(r);if(i===null||i<n.period.from||i>n.period.to)return Z([]);let a=t.arg??`week`,o=ap(i,a);return Q(o,sp(o,a),o)}var Mp=[[2,`0-2 d`],[7,`3-7 d`],[14,`8-14 d`],[30,`15-30 d`],[1/0,`over 30 d`]];function Np(e,t){if(e.statusCategory!==`IN_PROGRESS`)return Z([]);if(e.history===null)return X();let n=Tp(e);if(n===null)return Z([]);let r=Math.floor(Fd(n,t.asOf)),i=Mp.findIndex(([e])=>r<=e);return Q(`age-${i}`,Mp[i][1],xp(i))}var Pp={points:[[1,`1`],[3,`2-3`],[5,`5`],[8,`8`],[1/0,`13+`]],hours:[[2,`up to 2 h`],[4,`up to 4 h`],[8,`up to 8 h`],[16,`up to 16 h`],[1/0,`over 16 h`]],days:[[1,`up to 1 d`],[2,`up to 2 d`],[5,`up to 5 d`],[1/0,`over 5 d`]]};function Fp(e){let t=e.estimate;if(!t)return Z([]);let n=Pp[t.unit]??Pp.points,r=n.findIndex(([e])=>t.value<=e),i=Object.keys(Pp).indexOf(t.unit);return Q(`size-${t.unit}-${r}`,n[r][1],`${i}-${xp(r)}`)}function Ip(e){let t=e.iteration;return!!t&&Yf[e.source.area]?.family===`ado`&&!(t.path??t.name).includes(`\\`)}function Lp(e){let t=Ip(e)?e.iteration.name:null;return(e.history?.iterations??[]).flatMap(e=>e.to.filter(n=>!e.from.includes(n)&&n!==t).map(t=>({name:t,at:e.at})))}function Rp(e){if(e.type===`INCIDENT`)return Q(`unplanned`,`Unplanned`,`1`);if(e.history===null)return X();let t=e.sprints??(e.iteration&&!Ip(e)?[e.iteration]:[]),n=Lp(e);return t.length===0&&n.length===0?Z([]):n.some(e=>{let n=ip(t.find(t=>t.name===e.name)?.start);return n!==null&&Date.parse(e.at)>Date.parse(`${n}T00:00:00Z`)+864e5})?Q(`unplanned`,`Unplanned`,`1`):Q(`planned`,`Planned`,`0`)}function zp(e){let t;if(e.sprints)t=e.sprints.length;else if(e.history)t=new Set(Lp(e).map(e=>e.name)).size;else return X();return t>1?Q(`carried`,`Carried over`):Z([])}function Bp(e){let t=e.iteration;return!t||Ip(e)?Z([]):Q(t.id??t.name,t.name)}function Vp(e,t){let n=t.categories;if(!n||!(e.id in n))return X();let r=n[e.id];if(r==null)return Z([]);let i=t.scheme?.categories.findIndex(e=>e.id===r)??-1,a=i<0?void 0:t.scheme.categories[i];return Z([{key:`v:${r}`,label:a?.name??r,short:a?.short,order:xp(i<0?9999:i)}])}function Hp(e,t,n){switch(t.base){case`category`:return Vp(e,n);case`type`:return Q(e.type,wp(e.type));case`statusCategory`:return Q(e.statusCategory,{TODO:`To do`,IN_PROGRESS:`In progress`,DONE:`Done`,UNKNOWN:`Unknown status`}[e.statusCategory]);case`status`:return _p(e.status,e.status??``);case`priority`:return _p(e.priority,e.priority??``);case`assignee`:return e.assignee?Q(e.assignee.id,e.assignee.name??e.assignee.email??e.assignee.id):Z([]);case`team`:return kp(e,n.people);case`iteration`:return Bp(e);case`project`:return Q(Ep(e),Ep(e));case`tracker`:return Q(e.source.area,e.source.area);case`connection`:return Q(e.source.connection,e.source.connection);case`area`:{if(e.area===void 0)return X();if(e.area===null)return Z([]);let n=e.area.path.split(/[\\/]/).filter(Boolean).slice(0,t.arg===null?2:Number(t.arg));return n.length===0?Z([]):Q(n.join(`\\`),n.join(` › `))}case`parent`:return Ap(e,t,n);case`label`:{if(t.arg===null)return vp(e.labels);let n=Sp(t.arg);return vp(e.labels.filter(e=>Sp(e).startsWith(n)).map(e=>e.slice(n.length).replace(/^[\s:/_-]+/,``)).filter(Boolean))}case`component`:return e.components===void 0?X():vp(e.components);case`release`:return e.releases===void 0?X():bp(e.releases);case`affects`:return e.affects===void 0?X():bp(e.affects);case`sprint`:return e.sprints===void 0?X():Z(Cp(e.sprints.map(e=>({key:`v:${e.id??e.name}`,label:e.name,order:ip(e.start)??void 0}))));case`dim`:{let n=e.dims?.[t.arg??``];return n===void 0?X():vp(n)}case`created`:case`started`:case`resolved`:return jp(e,t,n);case`age`:return Np(e,n);case`size`:return Fp(e);case`planned`:return Rp(e);case`hasEpic`:return e.ancestors===void 0?e.parent===null?Z([]):X():e.ancestors.some(e=>e.type===`EPIC`)?Q(`epic`,`Has an epic`):Z([]);case`carried`:return zp(e);case`reopened`:return e.history===null?X():e.history.transitions.some(e=>e.fromCategory===`DONE`&&e.toCategory!==`DONE`)?Q(`reopened`,`Reopened`):Z([])}}var Up={items:`Items`,estimate:`Estimate`,days:`Days in progress`,throughput:`Items finished`,cycleTime:`Cycle time`,wip:`Work in progress`,aging:`Age of work in progress`};function Wp(e,t){switch(e){case`estimate`:return t;case`days`:return`person-days`;case`cycleTime`:case`aging`:return`days`;default:return`items`}}function Gp(e){let t={points:0,hours:0,days:0};for(let n of e)n.estimate&&t[n.estimate.unit]++;return[`points`,`hours`,`days`].reduce((e,n)=>t[n]>t[e]?n:e,`points`)}var Kp=e=>Math.round(e*100)/100;function qp(e,t){return e[Math.max(0,Math.ceil(t*e.length)-1)]}var Jp=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`;function Yp(e,t,n){if(e.history===null)return null;let r=[...e.history.transitions].sort((e,t)=>Date.parse(e.at)-Date.parse(t.at));if(e.statusCategory===`IN_PROGRESS`&&Tp(e)===null)return null;let i=np(t.from),a=Math.min(np(rp(t.to,1)),Date.parse(n)),o=[],s=null;for(let e of r){let t=Date.parse(e.at);e.toCategory===`IN_PROGRESS`&&s===null?s=t:e.toCategory!==`IN_PROGRESS`&&s!==null&&(o.push([s,t]),s=null)}s!==null&&o.push([s,Date.parse(n)]);let c=new Set;for(let[e,t]of o){let n=Math.max(e,i),r=Math.min(t,a);if(!(r<=n))for(let e=Math.floor(n/Nd);e*Nd<r;e++){let t=new Date(e*Nd).getUTCDay();t!==0&&t!==6&&c.add(e)}}return[...c]}function Xp(e,t,n){let r=new Map,i=new Map;for(let a of e){let e=Yp(a,t,n);r.set(a.id,e===null?null:0);let o=a.assignee?.id??`item:${a.id}`;for(let t of e??[]){let e=`${o}\u0000${t}`;i.set(e,[...i.get(e)??[],a.id])}}for(let e of i.values())for(let t of e)r.set(t,(r.get(t)??0)+1/e.length);return r}var Zp=(e,t)=>{let n=ip(e.resolved);return e.statusCategory===`DONE`&&n!==null&&n>=t.period.from&&n<=t.period.to};function Qp(e,t,n){let r=t.flatMap(t=>{let r=e===`estimate`?t.estimate?.unit===n.unit?t.estimate.value:null:n.days.get(t.id)??null;return r===null?[]:[r]}),i=t.length,a={value:r.length===0&&i>0?null:Kp(r.reduce((e,t)=>e+t,0)),measured:r.length,of:i};if(i>0&&r.length<i){let t=i-r.length;a.reason=e===`estimate`?r.length===0?`None of the ${Jp(i,`item`)} has an estimate in ${n.unit}.`:`${r.length} of ${Jp(i,`item`)} have an estimate in ${n.unit}; the other ${t} are left out.`:r.length===0?`The status history was not read for any of the ${Jp(i,`item`)}.`:`The status history was not read for ${t} of ${Jp(i,`item`)}; they are left out.`}return a}function $p(e,t){let n=e.filter(e=>e.statusCategory===`DONE`&&ip(e.resolved)===null).length,r=e.length-n,i={value:r===0&&e.length>0?null:e.filter(e=>Zp(e,t)).length,measured:r,of:e.length};return n>0&&(i.reason=`${Jp(n,`finished item`)} ${n===1?`has`:`have`} no resolved date, so ${n===1?`it is`:`they are`} not counted.`),i}function em(e){let t=e.filter(e=>e.statusCategory===`UNKNOWN`).length,n=e.length-t,r={value:n===0&&e.length>0?null:e.filter(e=>e.statusCategory===`IN_PROGRESS`).length,measured:n,of:e.length};return t>0&&(r.reason=n===0?`The status category was not known for any of the ${Jp(e.length,`item`)}.`:`The status category was not known for ${t} of ${Jp(e.length,`item`)}; they are left out.`),r}function tm(e,t,n,r){let i=e.flatMap(e=>{let n=t(e);return n===null?[]:[n]}).sort((e,t)=>e-t),a={value:null,p85:null,measured:i.length,of:e.length};return e.length===0?a.reason=n:i.length===0?a.reason=r(0,e.length):(a.value=Kp(qp(i,.5)),a.p85=Kp(qp(i,.85)),i.length<e.length&&(a.reason=r(i.length,e.length))),a}var nm=(e,t)=>(n,r)=>n===0?`No start date could be read for the ${Jp(r,e,t)}: the status history was not read, or never saw it start.`:`${n} of ${Jp(r,e,t)} had a start date; the other ${r-n} are left out.`;function rm(e,t,n){switch(e){case`items`:return{value:t.length,measured:t.length,of:t.length};case`estimate`:case`days`:return Qp(e,t,n);case`throughput`:return $p(t,n);case`wip`:return em(t);case`cycleTime`:return tm(t.filter(e=>Zp(e,n)),e=>{let t=Tp(e);return t===null||e.resolved===null?null:Fd(t,e.resolved)},`No item was resolved in the period.`,nm(`finished item`,`finished items`));case`aging`:return tm(t.filter(e=>e.statusCategory===`IN_PROGRESS`),e=>{let t=Tp(e);return t===null?null:Fd(t,n.asOf)},`No item is in progress.`,nm(`item in progress`,`items in progress`))}}function im(e,t){let n=[],r=``,i=!1;for(let a=0;a<e.length;a++){let o=e[a];i&&o===`\\`&&a+1<e.length?r+=o+e[++a]:(o===`"`&&(i=!i),o===t&&!i?(n.push(r),r=``):r+=o)}return n.push(r),n}function am(e){let t=e.trim();return t.length>=2&&t.startsWith(`"`)&&t.endsWith(`"`)?t.slice(1,-1).replace(/\\(["\\])/g,`$1`):t}function om(e){return/[",;]|^\s|\s$/.test(e)?`"${e.replace(/(["\\])/g,`\\$1`)}"`:e}function sm(e){let t=/^\s*([^=!\s]+)\s*(!=|=)([\s\S]*)$/.exec(e);if(!t)throw Error(`Cannot read the filter "${e}". Write <dimension> = value, value or <dimension> != value, for example: status != Done.`);let n=t[1];mp(n);let r=im(t[3],`,`).map(am).filter(e=>e!==``);if(r.length===0)throw Error(`The filter "${e.trim()}" names no value after ${t[2]}. Write for example: ${n} ${t[2]} Done.`);return{dimension:n,op:t[2],values:r}}var cm=e=>`${e.dimension} ${e.op} ${e.values.map(om).join(`, `)}`,lm=e=>e.toLowerCase();function um(e,t,n){let r=mp(t.dimension),i=Hp(e,r,n);if(i.unread)return null;let a=i.values.length===0?r.noneLabel===null?[]:[`none`,lm(r.noneLabel)]:i.values.flatMap(e=>[lm(e.label),lm(e.key),lm(e.key.replace(/^v:/,``))]);return t.values.some(e=>a.includes(lm(e)))}function dm(e,t,n){let r=t.map(e=>({filter:e,count:0}));return{kept:e.filter(e=>{let i=!0;return t.forEach((t,a)=>{let o=um(e,t,n);o===null?(r[a].count++,t.op===`=`&&(i=!1)):(t.op===`=`?!o:o)&&(i=!1)}),i}),unjudged:r.filter(e=>e.count>0)}}var fm=(e,t)=>(e.releases??[]).find(e=>e.name===t);function pm(e,t,n){let r=e.filter(e=>fm(e,t)!==void 0),i=r.map(e=>fm(e,t)),a=i.map(e=>e.start??null).find(e=>e!==null)??null,o=i.map(e=>e.date).find(e=>e!==null)??null,s=a===null?null:r.filter(e=>{let t=ip(e.created);return t!==null&&t>a}).map(e=>e.id).sort(),c=r.filter(e=>e.statusCategory===`TODO`||e.statusCategory===`IN_PROGRESS`),l=r.filter(e=>e.statusCategory===`UNKNOWN`).length,u=ip(n);return{start:a,total:r.length,added:s===null?null:s.length,addedItems:s,done:r.length-c.length-l,open:c.length,unknownStatus:l,pastDue:o===null||u===null?null:o<u?c.map(e=>e.id).sort():[],carriedIn:null}}var mm=e=>String(Math.round(e*10)/10),hm=e=>`${Math.round(e*100)}%`,gm=1e-9;function _m(e){let t=e.columns.length;if(e.across?.kind!==`time`||t<2)return null;let n=mp(e.across.spec).arg??`week`,r=e.columns[t-1].key.replace(/^v:/,``),i=ip(e.asOf);return r<=i&&i<op(r,n)&&t>=3?[t-3,t-2]:[t-2,t-1]}function vm(e,t,n){let r=e.cells[t][n].value,i=e.columnTotals[n].value;return r===null||i===null||i<=0?null:r/i}function ym(e,[t,n]){let r=[],i=e.columns[t],a=e.columns[n];return e.rows.forEach((o,s)=>{let c=vm(e,s,t),l=vm(e,s,n);c===null||l===null||Math.abs(l-c)<.1-gm||r.push({kind:`share-moved`,row:o.key,column:a.key,delta:l-c,items:e.cells[s][n].items,message:`${o.label} went from ${hm(c)} of ${i.label} to ${hm(l)} of ${a.label}, ${l>c?`up`:`down`} ${Math.round(Math.abs(l-c)*100)} points.`})}),r.sort((e,t)=>Math.abs(t.delta)-Math.abs(e.delta))}var bm=[`items`,`estimate`,`days`,`throughput`,`wip`];function xm(e,[t,n]){if(!bm.includes(e.measure.id))return[];let r=e.rows.flatMap((r,i)=>{let a=e.cells[i][t],o=e.cells[i][n];return r.kind===`value`&&a.value!==null&&o.value!==null?[{row:r,a,b:o,growth:o.value-a.value}]:[]});if(r.length<2)return[];let i=r.reduce((e,t)=>e+t.growth,0)/r.length,a=r.reduce((e,t)=>t.growth>e.growth?t:e),o=a.b.items.length-a.a.items.length;if(a.growth<=0||o<3||i>0&&a.growth<2*i-gm)return[];let s=e.measure.unit;return[{kind:`grew-fastest`,row:a.row.key,column:e.columns[n].key,delta:a.growth,items:a.b.items,message:`${a.row.label} grew fastest: from ${mm(a.a.value)} to ${mm(a.b.value)} ${s} between ${e.columns[t].label} and ${e.columns[n].label}, up ${mm(a.growth)} against ${mm(i)} on average across rows.`}]}function Sm(e,t){let n=e.split&&mp(e.split.spec).base===`release`,r=e.across&&mp(e.across.spec).base===`release`;if(!n&&!r)return[];let i=n?e.rows:e.columns,a=n?e.rowTotals:e.columnTotals,o=new Map(t.items.map(e=>[e.id,e])),s=[];return i.forEach((e,r)=>{if(e.kind!==`value`)return;let i=a[r].items.map(e=>o.get(e)).filter(Boolean),c=i.flatMap(t=>(t.releases??[]).filter(t=>`v:${t.id??t.name}`===e.key));if(c.length===0||c.some(e=>e.released===!0))return;let l=pm(i,c[0].name,t.asOf),u=l.total-(l.added??0);if(l.start===null||l.added===null||l.added<2||u<=0)return;let d=l.added/u;d<.1-gm||s.push({kind:`scope-added`,row:n?e.key:y,column:n?y:e.key,delta:d,items:l.addedItems??[],message:`${e.label}: ${l.added} items were added after it started on ${l.start}, ${hm(d)} more than the ${u} it started with.`})}),s.sort((e,t)=>t.delta-e.delta)}function Cm(e,t){let n=_m(e);return[...n?ym(e,n):[],...Sm(e,t),...n?xm(e,n):[]]}function wm(e,t,n){let r={dim:e,keys:new Map,entries:new Map,unread:0,outside:new Set,read:!0};if(!e){r.entries.set(y,{key:y,label:`All items`});for(let e of t)r.keys.set(e.id,[y]);return r}for(let i of t){let t=Hp(i,e,n);if(t.unread)r.unread++;else if(t.values.length===0)e.noneLabel===null?r.outside.add(i.id):(r.keys.set(i.id,[c]),r.entries.set(c,{key:c,label:e.noneLabel}));else{for(let e of t.values)r.entries.set(e.key,e);r.keys.set(i.id,t.values.map(e=>e.key))}}return r.read=!(t.length>0&&r.unread===t.length),r}function Tm(e,t){let n=new Map;for(let[r,i]of e.keys)if(t.has(r))for(let e of i)(n.get(e)??n.set(e,new Set).get(e)).add(r);return n}function Em(e,t,n,r,i,o){let s=new Map(t),l=e.dim;if(!l)return{axis:[{key:y,label:`All items`,kind:`value`}],sets:s,all:[]};if(l.kind===`time`){let t=l.arg??`week`;for(let n of cp(o.from,o.to,t)){let r=`v:${n}`;e.entries.has(r)||e.entries.set(r,{key:r,label:sp(n,t),order:n}),s.has(r)||s.set(r,new Set)}}let u=t=>e.entries.get(t),d=[...s.keys()].filter(e=>e!==c),f=d.map(e=>({k:e,label:u(e).label,n:s.get(e).size,value:n([...s.get(e)]).value}));f.sort((e,t)=>(t.value??-1/0)-(e.value??-1/0)||t.n-e.n||e.label.localeCompare(t.label));let p=f.map(e=>({key:e.k,label:e.label,value:e.value,items:e.n})),m=e=>({key:e,label:u(e).label,kind:`value`,...u(e).short?{short:u(e).short}:{}}),h=[],g=l.kind===`time`||d.length>0&&d.every(e=>u(e).order!==void 0),_=[],v=(e,t)=>u(e).order.localeCompare(u(t).order)||u(e).label.localeCompare(u(t).label);if(g&&l.kind===`multi`&&r>0&&d.length>r){let e=[];for(let t of i){let n=f.find(e=>e.label.toLowerCase()===t.toLowerCase());n&&!e.includes(n.k)&&e.push(n.k)}let t=d.filter(t=>!e.includes(t)).sort((e,t)=>v(t,e)).slice(0,Math.max(0,r-e.length)),n=new Set([...e,...t]);h.push(...d.filter(e=>n.has(e)).sort(v).map(m)),_=d.filter(e=>!n.has(e))}else if(g)h.push(...[...d].sort(v).map(m));else{let e=[];for(let t of i){let n=f.find(e=>e.label.toLowerCase()===t.toLowerCase());n&&!e.includes(n.k)&&e.push(n.k)}let t=f.map(e=>e.k).filter(t=>!e.includes(t)),n=r===0?t.length:Math.max(0,r-e.length);h.push(...[...e,...t.slice(0,n)].map(m)),_=t.slice(n)}return _.length>0&&(h.push({key:a,label:`Other`,kind:`other`}),s.set(a,new Set(_.flatMap(e=>[...s.get(e)])))),s.has(`(none)`)&&s.get(`(none)`).size>0&&h.push({key:c,label:u(c).label,kind:`none`}),{axis:h,sets:s,all:p}}var Dm=(e,t)=>{let n={value:e.value,items:t,measured:e.measured,of:e.of};return e.p85!==void 0&&(n.p85=e.p85),e.reason&&(n.reason=e.reason),n},Om=e=>e.charAt(0).toLowerCase()+e.slice(1),km=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,Am=e=>e.dim?{spec:e.dim.spec,label:e.dim.label,kind:e.dim.kind,read:e.read}:null;function jm(e){let{spec:t,asOf:n}=e;if(!v.includes(t.measure))throw Error(`Unknown measure "${t.measure}". Choose one of: ${v.join(`, `)}.`);let r=ip(n);if(r===null)throw Error(`asOf must be an ISO 8601 date, not "${n}".`);let i=t.to??r,a=t.from??rp(i,-89);if(a>i)throw Error(`The period starts after it ends (${a} to ${i}).`);let o={from:a,to:i},s=t.top??4,c=new Map(e.items.map(e=>[e.id,e])),l={asOf:n,period:o,people:e.people,categories:e.categories,scheme:e.scheme,index:c},u=t.split?mp(t.split):null,d=t.across?mp(t.across):null,f=[],{kept:p,unjudged:m}=dm(e.items,t.where??[],l);for(let e of m){let t=mp(e.filter.dimension);f.push(`The filter "${cm(e.filter)}" could not judge ${km(e.count,`item`)} because ${Om(hp(t))} weren't read; ${e.count===1?`it is`:`they are`} ${e.filter.op===`=`?`left out`:`kept in`}.`)}let h=u?.kind===`parent`||d?.kind===`parent`,g=new Set(e.items.flatMap(e=>[...e.parent?[e.parent]:[],...(e.ancestors??[]).map(e=>e.id)])),_=h&&!t.includeParents?p.filter(e=>!g.has(e.id)):p,y=p.length-_.length;y>0&&f.push(`${km(y,`parent item is`,`parent items are`)} left out so their children carry the work; ask for parents to be included to put ${y===1?`it`:`them`} back.`);let b=wm(u,_,l),x=wm(d,_,l),S=Gp(e.items),C={asOf:n,period:o,unit:S,days:t.measure===`days`?Xp(e.items,o,n):new Map},w=e=>rm(t.measure,e.map(e=>c.get(e)),C);for(let e of[b,x]){if(!e.dim||e.unread===0)continue;let t=hp(e.dim);f.push(e.read?`${t} weren't read for ${e.unread} of the ${_.length} items; they are left out of the table.`:`${t} weren't read for any of the ${_.length} items.`)}let T={spec:t,asOf:n,period:o,measure:{id:t.measure,unit:Wp(t.measure,S),label:Up[t.measure]},split:Am(b),across:Am(x)},E={items:_.length,unreadSplit:b.unread,unreadAcross:x.unread,parentsLeftOut:y,multi:u?.kind===`multi`||d?.kind===`multi`};if(e.changes&&e.changes.length>0&&f.push(`${km(e.changes.length,`pull request`)} in the input ${e.changes.length===1?`is`:`are`} not counted: no measure reads them yet.`),!b.read||!x.read)return{...T,rows:[],columns:[],cells:[],rowTotals:[],columnTotals:[],total:{value:null,items:[],measured:0,of:0,reason:`The table could not be drawn because a dimension was never read.`},allValues:[],coverage:{...E,measured:0,notes:f},notable:[]};let D=new Set(_.filter(e=>b.keys.has(e.id)&&x.keys.has(e.id)).map(e=>e.id));for(let e of[b,x])e.dim?.kind===`time`&&e.outside.size>0&&f.push(`${km(e.outside.size,`item`)} ${e.outside.size===1?`has`:`have`} no ${e.dim.base} date between ${a} and ${i}, so ${e.outside.size===1?`it is`:`they are`} not in the table.`);let O=Em(b,Tm(b,D),w,s,t.pin??[],o),k=Em(x,Tm(x,D),w,s,[],o),A=e=>[...e??[]].sort(),j=(e,t)=>A(e).filter(e=>t?.has(e)),M=O.axis.map(e=>k.axis.map(t=>{let n=j(O.sets.get(e.key),k.sets.get(t.key));return Dm(w(n),n)})),N=O.axis.map(e=>{let t=A(O.sets.get(e.key));return Dm(w(t),t)}),ee=k.axis.map(e=>{let t=A(k.sets.get(e.key));return Dm(w(t),t)}),te=[...D].sort(),ne=Dm(w(te),te);if(t.share&&k.axis.forEach((e,t)=>{let n=ee[t].value;O.axis.forEach((e,r)=>{let i=M[r][t].value;M[r][t].share=n===null||n===0||i===null?null:Math.round(i/n*1e4)/1e4})}),E.multi){let e=[u,d].filter(e=>e?.kind===`multi`).map(e=>Om(e.label)).join(` and `);f.push(`An item can hold more than one ${e}, so it can count in more than one ${u?.kind===`multi`?`row`:`column`} and the figures may add up to more than the total.`)}ne.reason&&f.push(ne.reason);let P={...T,rows:O.axis,columns:k.axis,cells:M,rowTotals:N,columnTotals:ee,total:ne,allValues:O.all,coverage:{...E,measured:ne.measured,notes:f},notable:[]};return P.notable=Cm(P,e),P}var Mm=[`columns`,`bars`,`area`,`line`,`heatmap`,`table`],Nm=[`measure`,`split`,`across`,`where`,`from`,`to`,`share`,`top`,`pin`,`includeParents`,`title`,`chart`],Pm=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function Fm(e,t,n){if(typeof e!=`string`)n.push(`${t} must be a dimension name like "release".`);else try{return mp(e),e}catch(e){n.push(`${t}: ${e.message}`);return}}function Im(e,t,n){if(!Array.isArray(e)){n.push(`${t} must be a list of filters.`);return}let r=[];return e.forEach((e,i)=>{let a=`${t}[${i}]`;if(!Pm(e))return void n.push(`${a} must be an object with dimension, op and values.`);for(let t of Object.keys(e))[`dimension`,`op`,`values`].includes(t)||n.push(`${a} has an unknown key "${t}".`);let o=Fm(e.dimension,`${a}.dimension`,n);e.op!==`=`&&e.op!==`!=`&&n.push(`${a}.op must be "=" or "!=".`);let s=e.values;!Array.isArray(s)||s.length===0||!s.every(e=>typeof e==`string`&&e!==``)?n.push(`${a}.values must be a list of one or more non-empty strings.`):o!==void 0&&(e.op===`=`||e.op===`!=`)&&r.push({dimension:o,op:e.op,values:s})}),r}function Lm(e,t){let n=[];if(!Pm(e))return{problems:[`${t} must be an object.`]};for(let r of Object.keys(e))Nm.includes(r)||n.push(`${t} has an unknown key "${r}". Allowed: ${Nm.join(`, `)}.`);let r={},i=e=>`${t}.${e}`;typeof e.measure==`string`&&v.includes(e.measure)?r.measure=e.measure:n.push(`${i(`measure`)} must be one of: ${v.join(`, `)}.`);for(let t of[`split`,`across`])e[t]!==void 0&&(r[t]=Fm(e[t],i(t),n));e.where!==void 0&&(r.where=Im(e.where,i(`where`),n));for(let t of[`from`,`to`])e[t]!==void 0&&(typeof e[t]==`string`&&tp(e[t])?r[t]=e[t]:n.push(`${i(t)} must be a day written YYYY-MM-DD.`));typeof r.from==`string`&&typeof r.to==`string`&&r.from>r.to&&n.push(`${t}: from (${r.from}) is after to (${r.to}).`);for(let t of[`share`,`includeParents`])e[t]!==void 0&&(typeof e[t]==`boolean`?r[t]=e[t]:n.push(`${i(t)} must be true or false.`));if(e.top!==void 0&&(typeof e.top==`number`&&Number.isInteger(e.top)&&e.top>=0&&e.top<=50?r.top=e.top:n.push(`${i(`top`)} must be a whole number from 0 to 50 (0 keeps every value).`)),e.pin!==void 0){let t=e.pin;!Array.isArray(t)||!t.every(e=>typeof e==`string`&&e!==``)?n.push(`${i(`pin`)} must be a list of value names.`):t.length>20?n.push(`${i(`pin`)} holds ${t.length} values; the most is 20.`):r.pin=t}return e.title!==void 0&&(typeof e.title==`string`&&e.title.length<=80&&!/[\r\n]/.test(e.title)?r.title=e.title:n.push(`${i(`title`)} must be one line of at most 80 characters.`)),e.chart!==void 0&&(typeof e.chart==`string`&&Mm.includes(e.chart)?r.chart=e.chart:n.push(`${i(`chart`)} must be one of: ${Mm.join(`, `)}.`)),n.length>0?{problems:n}:{view:r,problems:n}}function Rm(e){let t={...e};return delete t.title,delete t.chart,t}function zm(e){let t={measure:e.measure};return e.split&&(t.split=e.split),e.across&&(t.across=e.across),e.where&&e.where.length>0&&(t.where=e.where.map(cm).join(`;`)),e.from&&(t.from=e.from),e.to&&(t.to=e.to),e.share&&(t.share=`1`),e.top!==void 0&&(t.top=String(e.top)),e.pin&&e.pin.length>0&&(t.pin=e.pin.map(om).join(`,`)),e.includeParents&&(t.parents=`include`),t}function Bm(e){let t=e.measure??`items`;if(!v.includes(t))throw Error(`Unknown measure "${t}". Choose one of: ${v.join(`, `)}.`);let n={measure:t};for(let t of[`split`,`across`]){let r=e[t];r&&(mp(r),n[t]=r)}e.where&&(n.where=im(e.where,`;`).filter(e=>e.trim()!==``).map(sm));for(let t of[`from`,`to`]){let r=e[t];if(r){if(!tp(r))throw Error(`"${t}" must be a day written YYYY-MM-DD, not "${r}".`);n[t]=r}}if((e.share===`1`||e.share===`true`)&&(n.share=!0),e.top!==void 0&&e.top!==``){let t=Number(e.top);if(!Number.isInteger(t)||t<0||t>50)throw Error(`"top" must be a whole number from 0 to 50, not "${e.top}".`);n.top=t}return e.pin&&(n.pin=im(e.pin,`,`).map(am).filter(e=>e!==``)),e.parents===`include`&&(n.includeParents=!0),n}var Vm=e=>String(Math.round(e*100)/100),Hm=(e,t,n)=>{if(e.value===null)return`–`;let r=Vm(e.value);return t&&e.p85!==void 0&&e.p85!==null&&(r+=` (p85 ${Vm(e.p85)})`),n&&e.share!==void 0&&e.share!==null&&(r+=` (${Math.round(e.share*100)}%)`),r},Um=e=>e.replace(/\|/g,`\\|`).replace(/\s+/g,` `);function Wm(e){return(e.spec.where??[]).map(e=>{try{return`${mp(e.dimension).label} ${e.op===`=`?`is`:`is not`} ${e.values.join(` or `)}`}catch{return cm(e)}}).join(`; `)}function Gm(e){let{measure:t,split:n,across:r,spec:i}=e,a=`**${t.label} (${t.unit})`;n&&(a+=` by ${n.label}`),r&&(a+=` across ${r.label}`),a+=`**`;let o=Wm(e),s=[o?`${a}, where ${o}`:a,`Period: ${e.period.from} to ${e.period.to}, counted as of ${e.asOf}.`,``];if(e.rows.length>0&&e.columns.length>0){let a=e.columns.length>24,o=e.columns.slice(0,24),c=t.id===`cycleTime`||t.id===`aging`,l=i.share===!0,u=[n?.label??``,...o.map(e=>e.label),...r?[`Total`]:[]].map(Um);s.push(`| ${u.join(` | `)} |`,`| ${u.map((e,t)=>t===0?`---`:`---:`).join(` | `)} |`),e.rows.forEach((t,n)=>{let i=o.map((t,r)=>Hm(e.cells[n][r],c,l));s.push(`| ${[Um(t.label),...i,...r?[Hm(e.rowTotals[n],c,!1)]:[]].join(` | `)} |`)}),n&&s.push(`| ${[Um(`Total`),...o.map((t,n)=>Hm(e.columnTotals[n],c,!1)),...r?[Hm(e.total,c,!1)]:[]].join(` | `)} |`),a&&s.push(``,`Showing the first 24 of ${e.columns.length} columns; the rest are left out.`),s.push(``)}return e.coverage.notes.length>0&&s.push(`Coverage:`,...e.coverage.notes.map(e=>`- ${e}`),``),e.notable.length>0&&s.push(`Notable changes:`,...e.notable.map(e=>`- ${e.message}`),``),`${s.join(`
12
+ `).trimEnd()}\n`}var $=r();function Km(e){let t=(e.name??e.id).replace(/[^\p{L}\p{N} .-]/gu,` `).split(/[\s.-]+/).filter(Boolean);return(t.length>1?[t[0][0],t.at(-1)[0]]:[t[0]?.[0],t[0]?.[1]]).filter(Boolean).join(``).toUpperCase()||`?`}var qm=6;function Jm(e){let t=0;for(let n of e.id)t=t*31+n.charCodeAt(0)>>>0;return t%qm}function Ym({person:e,labelled:t=!1}){if(!e)return(0,$.jsx)(`span`,{className:`avatar avatar--none`,...t?{role:`img`,"aria-label":`Unassigned`}:{"aria-hidden":!0},children:`–`});let n=e.name??e.id;return(0,$.jsx)(`span`,{className:`avatar avatar--${Jm(e)}`,...t?{role:`img`,"aria-label":n,title:n}:{"aria-hidden":!0},children:Km(e)})}var Xm=new URL(new URL(`crate-lost-Dk5CaIuV.webp`,import.meta.url).href,``+import.meta.url).href,Zm=new URL(new URL(`crate-loading-B9H4D652.webp`,import.meta.url).href,``+import.meta.url).href,Qm={EmptyState:({message:e,children:t})=>(0,$.jsxs)(`div`,{className:`skin-empty skin-empty--art`,children:[(0,$.jsx)(`img`,{src:Xm,alt:``,width:240,height:160}),(0,$.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,$.jsxs)(`div`,{className:`skin-loading skin-empty--art`,role:`status`,children:[(0,$.jsx)(`img`,{src:Zm,alt:``,width:240,height:160}),(0,$.j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jYgOS42SDM4LjRWMzguNEg5LjZaIiBzdHJva2U9IiMzYjJjMTAiIHN0cm9rZS13aWR0aD0iLjgiLz4KPGcgZmlsbD0iI2U2Yzk4MyIgc3Ryb2tlPSIjM2IyYzEwIiBzdHJva2Utd2lkdGg9Ii43Ij48Y2lyY2xlIGN4PSI1IiBjeT0iNSIgcj0iMiIvPjxjaXJjbGUgY3g9IjQzIiBjeT0iNSIgcj0iMiIvPjxjaXJjbGUgY3g9IjUiIGN5PSI0MyIgcj0iMiIvPjxjaXJjbGUgY3g9IjQzIiBjeT0iNDMiIHI9IjIiLz48L2c+Cjwvc3ZnPgo=`,eh=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2016'%20width='24'%20height='16'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c!--%20A%20blocker:%20a%20wagon%20wheel%20cracked%20off%20its%20axle,%20the%20axle%20snapped%20short.%20--%3e%3cpath%20d='M1.5%209.5H8.2'%20stroke='%232e2a26'%20stroke-width='2'/%3e%3cpath%20d='M8.2%208.4%209.6%2010.6'%20stroke='%238e1c10'%20stroke-width='1.3'/%3e%3ccircle%20cx='16.5'%20cy='8.5'%20r='6'%20stroke='%234d3a26'%20stroke-width='1.6'/%3e%3ccircle%20cx='16.5'%20cy='8.5'%20r='1.4'%20fill='%232e2a26'/%3e%3cpath%20d='M16.5%202.5V7.1M16.5%209.9V14.5M10.5%208.5H15.1M17.9%208.5H22.5M12.3%204.3%2015.5%207.5M17.5%209.5%2020.7%2012.7M20.7%204.3%2017.5%207.5'%20stroke='%234d3a26'%20stroke-width='1.1'/%3e%3cpath%20d='M19.6%203.4%2021.2%205.6%2020%206.2%2021.8%208'%20stroke='%238e1c10'%20stroke-width='1.1'/%3e%3c/svg%3e`,th=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20width='32'%20height='32'%20fill='none'%3e%3c!--%20A%20small%20brass%20pressure%20gauge:%20a%20bezel,%20a%20pale%20dial%20with%20ticks,%20and%20a%20copper%20needle.%20--%3e%3ccircle%20cx='16'%20cy='16'%20r='14.5'%20fill='%23b08d3c'%20stroke='%234a3814'%20stroke-width='1'/%3e%3ccircle%20cx='16'%20cy='16'%20r='12.2'%20fill='%23f3e8cf'%20stroke='%236e5420'%20stroke-width='.8'/%3e%3cg%20stroke='%232e2a26'%20stroke-width='1'%20stroke-linecap='round'%3e%3cpath%20d='M7.6%2021.2%209.4%2020.1M6.6%2014.6%208.6%2015M10.1%208.6%2011.4%2010.2M16%206.2V8.2M21.9%208.6%2020.6%2010.2M25.4%2014.6%2023.4%2015M24.4%2021.2%2022.6%2020.1'/%3e%3c/g%3e%3cpath%20d='M16%2016%2021.6%2010.6'%20stroke='%238c3a14'%20stroke-width='1.6'%20stroke-linecap='round'/%3e%3ccircle%20cx='16'%20cy='16'%20r='2'%20fill='%232e2a26'/%3e%3cpath%20d='M12%2023.5h8'%20stroke='%23a0522d'%20stroke-width='1.4'%20stroke-linecap='round'/%3e%3c/svg%3e`,nh=new URL(`locomotive-CPPtBzL2.webp`,import.meta.url).href,rh=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSI+CjwhLS0gRnJvbnRpZXIncyBiYWRnZTogdGhlIHRpbGUgYXMgYSByaXZldGVkIGJyYXNzIGJvaWxlciBwbGF0ZSB3aXRoIGEgY29wcGVyIHJ1bGUsIHRoZSBwYWdlIGEgc3VuLWJsZWFjaGVkIGhhbmRiaWxsLiBUaGUgYmFkZ2UncyBzaWxob3VldHRlLCBza2lubmVkLiAtLT4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0iZjRiIiB4MT0iMCIgeTE9IjAiIHgyPSIxIiB5Mj0iMSI+CjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2UyY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R0aD0iMS40Ii8+CjxwYXRoIGQ9Ik05IDIwLjUgOSAxNy41TTIyIDIwLjUgMjIgMTgiIHN0cm9rZT0iIzJlMmEyNiIgc3Ryb2tlLXdpZHRoPSIxLjQiLz4KPHBhdGggZD0iTTcgMTYuNSAyNS41IDEzLjUiIHN0cm9rZT0iI2IwOGQzYyIgc3Ryb2tlLXdpZHRoPSIyLjQiLz4KPHBhdGggZD0iTTcgMTYuNSAyNS41IDEzLjUiIHN0cm9rZT0iIzRhMzgxNCIgc3Ryb2tlLXdpZHRoPSIuNyIvPgo8Y2lyY2xlIGN4PSIyNiIgY3k9IjEyLjIiIHI9IjIuOCIgZmlsbD0iIzJlMmEyNiIvPgo8Y2lyY2xlIGN4PSI5IiBjeT0iMTciIHI9IjEuNCIgZmlsbD0iI2UyYzI3YSIgc3Ryb2tlPSIjNGEzODE0IiBzdHJva2Utd2lkdGg9Ii42Ii8+CjxwYXRoIGQ9Ik0zLjUgMjJDMiAxOCA0IDE0IDIuNSAxMC41UzQgNiA1LjUgNC41IiBzdHJva2U9IiNhMDUyMmQiIHN0cm9rZS13aWR0aD0iMS4xIi8+Cjwvc3ZnPgo=`,ch=new URL(`wanted-poster-BnjUajnc.webp`,import.meta.url).href,lh=new URL(`wood-CrrZEj6Y.webp`,import.meta.url).href,uh=e=>new URL(Object.assign({"../../themes/frontier/assets/brass-plate.svg":$m,"../../themes/frontier/assets/busted-axle.svg":eh,"../../themes/frontier/assets/gauge.svg":th,"../../themes/frontier/assets/locomotive.webp":nh,"../../themes/frontier/assets/mark.svg":rh,"../../themes/frontier/assets/rivet-rail.svg":ih,"../../themes/frontier/assets/series.svg":ah,"../../themes/frontier/assets/survey-map.webp":oh,"../../themes/frontier/assets/telegraph-key.svg":sh,"../../themes/frontier/assets/wanted-poster.webp":ch,"../../themes/frontier/assets/wood.webp":lh})[`../../themes/frontier/assets/${e}`],import.meta.url).href;function dh({children:e}){let t=f();return(0,$.jsxs)(`div`,{className:`bubble bubble--agent frontier-operator`,children:[(0,$.jsxs)(`p`,{className:`frontier-operator-name`,children:[(0,$.jsx)(`img`,{src:uh(`telegraph-key.svg`),alt:``,width:24,height:24,loading:`lazy`,decoding:`async`}),t(`agent`,`Agent`)]}),e]})}var fh={ChatMessage:({from:e,children:t})=>e===`agent`?(0,$.jsx)(dh,{children:t}):(0,$.jsx)(`div`,{className:`bubble bubble--you`,children:t}),EmptyState:({message:e,children:t})=>(0,$.jsxs)(`div`,{className:`skin-empty skin-empty--art frontier-wanted`,children:[(0,$.jsx)(`img`,{src:uh(`wanted-poster.webp`),alt:``,width:240,height:160,loading:`lazy`,decoding:`async`}),(0,$.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,$.jsxs)(`div`,{className:`skin-loading skin-empty--art frontier-steam`,role:`status`,children:[(0,$.jsx)(`img`,{src:uh(`locomotive.webp`),alt:``,width:240,height:160,decoding:`async`}),(0,$.jsx)(`p`,{children:e})]})},ph=new URL(`crop-grown-HG5zb5pJ.svg`,import.meta.url).href,mh=new URL(`crop-harvested-Q-ua5_kg.svg`,import.meta.url).href,hh=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%20shape-rendering='crispEdges'%3e%3crect%20x='5'%20y='11'%20width='1'%20height='1'%20fill='%23c9932a'/%3e%3crect%20x='10'%20y='11'%20width='1'%20height='1'%20fill='%23c9932a'/%3e%3crect%20x='4'%20y='12'%20width='8'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='2'%20y='13'%20width='2'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='4'%20y='13'%20width='3'%20height='1'%20fill='%238a5530'/%3e%3crect%20x='7'%20y='13'%20width='1'%20height='1'%20fill='%235c3519'/%3e%3crect%20x='8'%20y='13'%20width='4'%20height='1'%20fill='%238a5530'/%3e%3crect%20x='12'%20y='13'%20width='2'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='14'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='2'%20y='14'%20width='3'%20height='1'%20fill='%238a5530'/%3e%3crect%20x='5'%20y='14'%20width='1'%20height='1'%20fill='%235c3519'/%3e%3crect%20x='6'%20y='14'%20width='5'%20height='1'%20fill='%238a5530'/%3e%3crect%20x='11'%20y='14'%20width='1'%20height='1'%20fill='%235c3519'/%3e%3crect%20x='12'%20y='14'%20width='2'%20height='1'%20fill='%238a5530'/%3e%3crect%20x='14'%20y='14'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='15'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='15'%20width='14'%20height='1'%20fill='%235c3519'/%3e%3crect%20x='15'%20y='15'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3c/svg%3e`,gh=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%20shape-rendering='crispEdges'%3e%3crect%20x='4'%20y='6'%20width='2'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='10'%20y='6'%20width='2'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='3'%20y='7'%20width='1'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='4'%20y='7'%20width='2'%20height='1'%20fill='%234f9a2a'/%3e%3crect%20x='6'%20y='7'%20width='1'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='9'%20y='7'%20width='1'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='10'%20y='7'%20width='2'%20height='1'%20fill='%234f9a2a'/%3e%3crect%20x='12'%20y='7'%20width='1'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='4'%20y='8'%20width='1'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='5'%20y='8'%20width='2'%20height='1'%20fill='%234f9a2a'/%3e%3crect%20x='9'%20y='8'%20width='2'%20height='1'%20fill='%234f9a2a'/%3e%3crect%20x='11'%20y='8'%20width='1'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='6'%20y='9'%20width='4'%20height='1'%20fill='%234f9a2a'/%3e%3crect%20x='7'%20y='10'%20width='2'%20height='1'%20fill='%234f9a2a'/%3e%3crect%20x='7'%20y='11'%20width='1'%20height='1'%20fill='%232f6b1f'/%3e%3crect%20x='8'%20y='11'%20width='1'%20height='1'%20fill='%234f9a2a'/%3e%3crect%20x='4'%20y='12'%20width='8'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='2'%20y='13'%20width='2'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='4'%20y='13'%20width='3'%20height='1'%20fill='%238a5530'/%3e%3crect%20x='7'%20y='13'%20width='1'%20height='1'%20fill='%235c3519'/%3e%3crect%20x='8'%20y='13'%20width='4'%20height='1'%20fill='%238a5530'/%3e%3crect%20x='12'%20y='13'%20width='2'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='14'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='2'%20y='14'%20width='3'%20height='1'%20fill='%238a5530'/%3e%3crect%20x='5'%20y='14'%20width='1'%20height='1'%20fill='%235c3519'/%3e%3crect%20x='6'%20y='14'%20width='5'%20height='1'%20fill='%238a5530'/%3e%3crect%20x='11'%20y='14'%20width='1'%20height='1'%20fill='%235c3519'/%3e%3crect%20x='12'%20y='14'%20width='2'%20height='1'%20fill='%238a5530'/%3e%3crect%20x='14'%20y='14'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='15'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='15'%20width='14'%20height='1'%20fill='%235c3519'/%3e%3crect%20x='15'%20y='15'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3c/svg%3e`,_h=new URL(`empty-field-BN05R29i.svg`,import.meta.url).href,vh=new URL(`fields-BxauQmw0.webp`,import.meta.url).href,yh=new URL(`mark-bSC__Aar.svg`,import.meta.url).href,bh=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%20shape-rendering='crispEdges'%3e%3crect%20x='6'%20y='1'%20width='4'%20height='1'%20fill='%23f2c94c'/%3e%3crect%20x='5'%20y='2'%20width='1'%20height='1'%20fill='%23f2c94c'/%3e%3crect%20x='6'%20y='2'%20width='1'%20height='1'%20fill='%23c9932a'/%3e%3crect%20x='7'%20y='2'%20width='2'%20height='1'%20fill='%23f2c94c'/%3e%3crect%20x='9'%20y='2'%20width='1'%20height='1'%20fill='%23c9932a'/%3e%3crect%20x='10'%20y='2'%20width='1'%20height='1'%20fill='%23f2c94c'/%3e%3crect%20x='4'%20y='3'%20width='8'%20height='1'%20fill='%23f2c94c'/%3e%3crect%20x='4'%20y='4'%20width='8'%20height='1'%20fill='%23a3200f'/%3e%3crect%20x='1'%20y='5'%20width='14'%20height='1'%20fill='%23f2c94c'/%3e%3crect%20x='2'%20y='6'%20width='12'%20height='1'%20fill='%23c9932a'/%3e%3crect%20x='3'%20y='7'%20width='10'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='3'%20y='8'%20width='2'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='5'%20y='8'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='6'%20y='8'%20width='4'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='10'%20y='8'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='11'%20y='8'%20width='2'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='3'%20y='9'%20width='2'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='5'%20y='9'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='6'%20y='9'%20width='4'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='10'%20y='9'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='11'%20y='9'%20width='2'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='3'%20y='10'%20width='1'%20height='1'%20fill='%23e98aa0'/%3e%3crect%20x='4'%20y='10'%20width='8'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='12'%20y='10'%20width='1'%20height='1'%20fill='%23e98aa0'/%3e%3crect%20x='3'%20y='11'%20width='3'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='6'%20y='11'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='7'%20y='11'%20width='2'%20height='1'%20fill='%23d99a6c'/%3e%3crect%20x='9'%20y='11'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='10'%20y='11'%20width='3'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='4'%20y='12'%20width='3'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='7'%20y='12'%20width='2'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='9'%20y='12'%20width='3'%20height='1'%20fill='%23f2c29b'/%3e%3crect%20x='4'%20y='13'%20width='3'%20height='1'%20fill='%233d6fb6'/%3e%3crect%20x='7'%20y='13'%20width='2'%20height='1'%20fill='%23d8d0c0'/%3e%3crect%20x='9'%20y='13'%20width='3'%20height='1'%20fill='%233d6fb6'/%3e%3crect%20x='3'%20y='14'%20width='4'%20height='1'%20fill='%233d6fb6'/%3e%3crect%20x='7'%20y='14'%20width='2'%20height='1'%20fill='%23d8d0c0'/%3e%3crect%20x='9'%20y='14'%20width='4'%20height='1'%20fill='%233d6fb6'/%3e%3crect%20x='2'%20y='15'%20width='2'%20height='1'%20fill='%233d6fb6'/%3e%3crect%20x='4'%20y='15'%20width='1'%20height='1'%20fill='%237d93b8'/%3e%3crect%20x='5'%20y='15'%20width='6'%20height='1'%20fill='%233d6fb6'/%3e%3crect%20x='11'%20y='15'%20width='1'%20height='1'%20fill='%237d93b8'/%3e%3crect%20x='12'%20y='15'%20width='2'%20height='1'%20fill='%233d6fb6'/%3e%3c/svg%3e`,xh=new URL(`series-B2reSWoM.svg`,import.meta.url).href,Sh=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%20shape-rendering='crispEdges'%3e%3crect%20x='6'%20y='1'%20width='4'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='5'%20y='2'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='10'%20y='2'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='4'%20y='3'%20width='8'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='15'%20y='3'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='3'%20y='4'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='4'%20y='4'%20width='8'%20height='1'%20fill='%237d93b8'/%3e%3crect%20x='12'%20y='4'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='14'%20y='4'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='15'%20y='4'%20width='1'%20height='1'%20fill='%23a8c9e8'/%3e%3crect%20x='3'%20y='5'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='4'%20y='5'%20width='1'%20height='1'%20fill='%237d93b8'/%3e%3crect%20x='5'%20y='5'%20width='2'%20height='1'%20fill='%23a8c9e8'/%3e%3crect%20x='7'%20y='5'%20width='5'%20height='1'%20fill='%237d93b8'/%3e%3crect%20x='12'%20y='5'%20width='3'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='3'%20y='6'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='4'%20y='6'%20width='1'%20height='1'%20fill='%237d93b8'/%3e%3crect%20x='5'%20y='6'%20width='2'%20height='1'%20fill='%23a8c9e8'/%3e%3crect%20x='7'%20y='6'%20width='5'%20height='1'%20fill='%237d93b8'/%3e%3crect%20x='12'%20y='6'%20width='2'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='3'%20y='7'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='4'%20y='7'%20width='8'%20height='1'%20fill='%237d93b8'/%3e%3crect%20x='12'%20y='7'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='3'%20y='8'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='4'%20y='8'%20width='8'%20height='1'%20fill='%237d93b8'/%3e%3crect%20x='12'%20y='8'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='3'%20y='9'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='4'%20y='9'%20width='8'%20height='1'%20fill='%237d93b8'/%3e%3crect%20x='12'%20y='9'%20width='1'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='4'%20y='10'%20width='8'%20height='1'%20fill='%233b4a63'/%3e%3crect%20x='14'%20y='11'%20width='1'%20height='1'%20fill='%23a8c9e8'/%3e%3crect%20x='5'%20y='12'%20width='2'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='14'%20y='12'%20width='1'%20height='1'%20fill='%23a8c9e8'/%3e%3crect%20x='4'%20y='13'%20width='1'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='5'%20y='13'%20width='2'%20height='1'%20fill='%234f9a2a'/%3e%3crect%20x='7'%20y='13'%20width='1'%20height='1'%20fill='%238fd14f'/%3e%3crect%20x='12'%20y='13'%20width='1'%20height='1'%20fill='%23a8c9e8'/%3e%3crect%20x='5'%20y='14'%20width='2'%20height='1'%20fill='%234f9a2a'/%3e%3crect%20x='2'%20y='15'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='3'%20y='15'%20width='9'%20height='1'%20fill='%235c3519'/%3e%3crect%20x='12'%20y='15'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3c/svg%3e`,Ch=new URL(`wood-panel-CFA5lKLa.svg`,import.meta.url).href,wh=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%20width='12'%20height='12'%20shape-rendering='crispEdges'%3e%3crect%20x='0'%20y='0'%20width='12'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='1'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='1'%20width='10'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='11'%20y='1'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='2'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='2'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='2'%20y='2'%20width='8'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='10'%20y='2'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='11'%20y='2'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='3'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='3'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='2'%20y='3'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='3'%20y='3'%20width='6'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='9'%20y='3'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='10'%20y='3'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='11'%20y='3'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='4'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='4'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='2'%20y='4'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='3'%20y='4'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='8'%20y='4'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='9'%20y='4'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='10'%20y='4'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='11'%20y='4'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='5'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='5'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='2'%20y='5'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='3'%20y='5'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='8'%20y='5'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='9'%20y='5'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='10'%20y='5'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='11'%20y='5'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='6'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='6'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='2'%20y='6'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='3'%20y='6'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='8'%20y='6'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='9'%20y='6'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='10'%20y='6'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='11'%20y='6'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='7'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='7'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='2'%20y='7'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='3'%20y='7'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='8'%20y='7'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='9'%20y='7'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='10'%20y='7'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='11'%20y='7'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='8'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='8'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='2'%20y='8'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='3'%20y='8'%20width='6'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='9'%20y='8'%20width='1'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='10'%20y='8'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='11'%20y='8'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='9'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='9'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='2'%20y='9'%20width='8'%20height='1'%20fill='%238a5226'/%3e%3crect%20x='10'%20y='9'%20width='1'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='11'%20y='9'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='10'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='1'%20y='10'%20width='10'%20height='1'%20fill='%23dea36a'/%3e%3crect%20x='11'%20y='10'%20width='1'%20height='1'%20fill='%233b2614'/%3e%3crect%20x='0'%20y='11'%20width='12'%20height='1'%20fill='%233b2614'/%3e%3c/svg%3e`,Th=e=>new URL(Object.assign({"../../themes/harvest/assets/crop-grown.svg":ph,"../../themes/harvest/assets/crop-harvested.svg":mh,"../../themes/harvest/assets/crop-seed.svg":hh,"../../themes/harvest/assets/crop-sprout.svg":gh,"../../themes/harvest/assets/empty-field.svg":_h,"../../themes/harvest/assets/fields.webp":vh,"../../themes/harvest/assets/mark.svg":yh,"../../themes/harvest/assets/portrait.svg":bh,"../../themes/harvest/assets/series.svg":xh,"../../themes/harvest/assets/watering-can.svg":Sh,"../../themes/harvest/assets/wood-panel.svg":Ch,"../../themes/harvest/assets/wood-sign.svg":wh})[`../../themes/harvest/assets/${e}`],import.meta.url).href,Eh={TODO:Th(`crop-seed.svg`),IN_PROGRESS:Th(`crop-grown.svg`),DONE:Th(`crop-harvested.svg`),UNKNOWN:Th(`crop-sprout.svg`)};function Dh({src:e,size:t=32,className:n}){return(0,$.jsx)(`img`,{className:n,src:e,alt:``,width:t,height:t,loading:`lazy`,decoding:`async`})}function Oh(){let{health:e}=qf();return e?(0,$.jsxs)(`div`,{className:`harvest-calendar`,"aria-hidden":`true`,children:[(0,$.jsxs)(`span`,{className:`harvest-calendar-day`,children:[`Day `,e.days.gone]}),(0,$.jsx)(`span`,{className:`harvest-calendar-grid`,children:Array.from({length:e.days.total},(t,n)=>(0,$.jsx)(`i`,{className:n+1<e.days.gone?`gone`:n+1===e.days.gone?`today`:void 0},n))})]}):null}function kh({id:e,children:t}){let n=(0,j.useContext)(Wf)!==null;return(0,$.jsxs)($.Fragment,{children:[e===`sprint`&&n&&(0,$.jsx)(Oh,{}),t]})}function Ah({children:e}){let t=f();return(0,$.jsxs)(`div`,{className:`bubble bubble--agent harvest-dialogue`,children:[(0,$.jsx)(Dh,{src:Th(`portrait.svg`),size:48,className:`harvest-portrait`}),(0,$.jsxs)(`div`,{className:`harvest-dialogue-text`,children:[(0,$.jsx)(`p`,{className:`harvest-name`,children:t(`agent`,`Agent`)}),e]})]})}var jh={Card:({item:e,children:t})=>(0,$.jsxs)($.Fragment,{children:[t,(0,$.jsx)(Dh,{src:Eh[e.statusCategory],className:`harvest-crop harvest-crop--${e.statusCategory.toLowerCase()}`})]}),Panel:kh,ChatMessage:({from:e,children:t})=>e===`agent`?(0,$.jsx)(Ah,{children:t}):(0,$.jsx)(`div`,{className:`bubble bubble--you`,children:t}),EmptyState:({message:e,children:t})=>(0,$.jsxs)(`div`,{className:`skin-empty skin-empty--art harvest-empty`,children:[(0,$.jsx)(`img`,{src:Th(`empty-field.svg`),alt:``,width:192,height:96,loading:`lazy`,decoding:`async`}),(0,$.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,$.jsxs)(`div`,{className:`skin-loading skin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Pv7LLSu8ZKC1AUz1gotStR9quUhBX7fWyzC7XuimWh6Kf+CQKD4jZmV3fTa/SqMdOhuW0hXECZpr0D3Uxxp94ztjZW9193s5w+wUn5yrsMnGVWCSS6bzcbpTOyAaffD3FuFoOKhoSpmUICO26kMCBT0eQfUlwEoMqejtHYEp1hIe+w6XODEOASnt15303OnOEOI8RgegdQGzEKJwpPHZlAAAA`,Gh=new URL(`series-zigaZBZX.svg`,import.meta.url).href,Kh=new URL(`stone-wall-DRNYiEy2.svg`,import.meta.url).href,qh=e=>new URL(Object.assign({"../../themes/overworld/assets/chest-open.svg":Mh,"../../themes/overworld/assets/chest.svg":Nh,"../../themes/overworld/assets/dungeon-map.webp":Ph,"../../themes/overworld/assets/empty-room.webp":Fh,"../../themes/overworld/assets/gem.svg":Ih,"../../themes/overworld/assets/heart-empty.svg":Lh,"../../themes/overworld/assets/heart.svg":Rh,"../../themes/overworld/assets/key.svg":zh,"../../themes/overworld/assets/locked-door.svg":Bh,"../../themes/overworld/assets/mark.svg":Vh,"../../themes/overworld/assets/overworld.webp":Hh,"../../themes/overworld/assets/sage-cave.webp":Uh,"../../themes/overworld/assets/sage.webp":Wh,"../../themes/overworld/assets/series.svg":Gh,"../../themes/overworld/assets/stone-wall.svg":Kh})[`../../themes/overworld/assets/${e}`],import.meta.url).href,Jh={TODO:{src:qh(`chest.svg`),height:20},IN_PROGRESS:{src:qh(`key.svg`),height:14},DONE:{src:qh(`chest-open.svg`),height:22},UNKNOWN:{src:qh(`chest.svg`),height:20}},Yh={full:qh(`heart.svg`),empty:qh(`heart-empty.svg`)};function Xh(){let{health:e}=qf();if(!e)return null;let t=Math.max(0,e.days.total-e.days.gone),n=Df(e);return(0,$.jsxs)(`p`,{className:`ow-hud`,"aria-hidden":`true`,children:[(0,$.jsx)(`span`,{className:`ow-hearts`,children:Array.from({length:e.days.total},(e,n)=>(0,$.jsx)(`img`,{src:n<t?Yh.full:Yh.empty,alt:``,width:14,height:14},n))}),(0,$.jsxs)(`span`,{className:`ow-gems`,children:[(0,$.jsx)(`img`,{src:qh(`gem.svg`),alt:``,width:14,height:12}),n?`${n.done}/${n.total}`:`–`]})]})}function Zh({id:e,children:t}){let n=(0,j.useContext)(Wf)!==null;return(0,$.jsxs)($.Fragment,{children:[(e===`sprint`||e===`board`)&&n&&(0,$.jsx)(Xh,{}),t]})}function Qh({children:e}){let t=f();return(0,$.jsxs)(`div`,{className:`bubble bubble--agent ow-sage`,children:[(0,$.jsx)(`img`,{className:`ow-portrait`,src:qh(`sage.webp`),alt:``,width:48,height:55,loading:`lazy`,decoding:`async`}),(0,$.jsxs)(`div`,{className:`ow-sage-text`,children:[(0,$.jsx)(`p`,{className:`ow-sage-name`,children:t(`agent`,`Agent`)}),e]})]})}var $h={Card:({item:e,children:t})=>(0,$.jsxs)($.Fragment,{children:[t,(0,$.jsx)(`img`,{className:`ow-loot ow-loot--${e.statusCategory.toLowerCase()}`,src:Jh[e.statusCategory].src,alt:``,width:24,height:Jh[e.statusCategory].height,loading:`lazy`,decoding:`async`})]}),Panel:Zh,ChatMessage:({from:e,children:t})=>e===`agent`?(0,$.jsx)(Qh,{children:t}):(0,$.jsx)(`div`,{className:`bubble bubble--you`,children:t}),EmptyState:({message:e,children:t})=>(0,$.jsxs)(`div`,{className:`skin-empty skin-empty--art ow-room`,children:[(0,$.jsx)(`img`,{src:qh(`empty-room.webp`),alt:``,width:240,height:183,loading:`lazy`,decoding:`async`}),(0,$.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,$.jsxs)(`div`,{className:`skin-loading skin-empty--art ow-cave`,role:`status`,children:[(0,$.jsx)(`img`,{src:qh(`sage-cave.webp`),alt:``,width:240,height:196,decoding:`async`}),(0,$.jsx)(`p`,{children:e})]})},eg=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2016'%20width='24'%20height='16'%20fill='none'%20stroke='%231a1410'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c!--%20A%20blocker:%20the%20road%20runs%20up%20to%20a%20keep%20and%20breaks%20off.%20--%3e%3cpath%20d='M1%2013.5H7'%20stroke-width='1.4'%20stroke-dasharray='2%201.6'/%3e%3cpath%20d='M8.5%2011.5%2010%2014.5M9.5%2010.8%2011.5%2013'%20stroke='%236e1c18'%20stroke-width='1.2'/%3e%3cpath%20d='M13%2015V6h1.6V4.5h1.6V6h1.6V4.5h1.6V6H21v9Z'%20fill='%233a3733'%20stroke-width='1'/%3e%3cpath%20d='M16.4%2015v-3h1.6v3'%20stroke='%23d8cbb0'%20stroke-width='.9'/%3e%3c/svg%3e`,tg=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0Ij4KPCEtLSBUaGUgVG9pbCBwcm9qZWN0IHRpdGxlJ3Mgb25lIGlsbHVtaW5hdGVkIGNhcGl0YWw6IGFuIG94Ymxvb2QgZmllbGQgaW4gYSB0YXJuaXNoZWQtZ29sZCBmcmFtZSwgcml2ZXRlZCBhdCB0aGUgY29ybmVycy4gLS0+CjxyZWN0IHg9IjEiIHk9IjEiIHdpZHRoPSI2MiIgaGVpZ2h0PSI2MiIgZmlsbD0iIzRhMTQxMSIgc3Ryb2tlPSIjOWM3YTNjIiBzdHJva2Utd2lkdGg9IjIiLz4KPHJlY3QgeD0iNS41IiB5PSI1LjUiIHdpZHRoPSI1MyIgaGVpZ2h0PSI1MyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOWM3YTNjIiBzdHJva2Utd2lkdGg9Ii44IiBvcGFjaXR5PSIuOCIvPgo8ZyBzdHJva2U9IiMyYTBjMGEiIHN0cm9rZS13aWR0aD0iLjYiIG9wYWNpdHk9Ii41NSI+CjxwYXRoIGQ9Ik04IDIwIDIwIDhNOCAzMiAzMiA4TTggNDQgNDQgOE04IDU2IDU2IDhNMjAgNTYgNTYgMj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9kZCIvPgo8cGF0aCBkPSJNMSAxSDQ3VjQ3SDFaIiBzdHJva2U9IiMxNDExMGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8cGF0aCBkPSJNMyAzSDQ1VjQ1SDNaIiBzdHJva2U9IiM1YTQ2MzYiIHN0cm9rZS13aWR0aD0iMSIvPgo8cGF0aCBkPSJNOSA5SDM5VjM5SDlaIiBzdHJva2U9IiM5YzdhM2MiIHN0cm9rZS13aWR0aD0iMSIvPgo8cGF0aCBkPSJNMTEuNSAxMS41SDM2LjVWMzYuNUgxMS41WiIgc3Ryb2tlPSIjMTQxMTBlIiBzdHJva2Utd2lkdGg9IjEiLz4KPGcgZmlsbD0iIzZiNjY2MCIgc3Ryb2tlPSIjMTQxMTBlIiBzdHJva2Utd2lkdGg9Ii44Ij48Y2lyY2xlIGN4PSI2IiBjeT0iNiIgcj0iMi40Ii8+PGNpcmNsZSBjeD0iNDIiIGN5PSI2IiByPSIyLjQiLz48Y2lyY2xlIGN4PSI2IiBjeT0iNDIiIHI9IjIuNCIvPjxjaXJjbGUgY3g9IjQyIiBjeT0iNDIiIHI9IjIuNCIvPjwvZz4KPGcgZmlsbD0iI2JkYjZhYSI+PGNpcmNsZSBjeD0iNS4zIiBjeT0iNS4zIiByPSIuOCIvPjxjaXJjbGUgY3g9IjQxLjMiIGN5PSI1LjMiIHI9Ii44Ii8+PGNpcmNsZSBjeD0iNS4zIiBjeT0iNDEuMyIgcj0iLjgiLz48Y2lyY2xlIGN4PSI0MS4zIiBjeT0iNDEuMyIgcj0iLjgiLz48L2c+Cjwvc3ZnPgo=`,ag=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%20120'%20width='200'%20height='120'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c!--%20An%20empty%20state:%20a%20ledger%20lying%20open%20on%20its%20binding,%20its%20ruled%20pages%20blank.%20--%3e%3cpath%20d='M14%2024%20100%2030%20186%2024V104L100%20110%2014%20104Z'%20fill='%232b211b'%20stroke='%2314110e'%20stroke-width='1.6'/%3e%3cpath%20d='M20%2020C46%2018%2076%2020%2098%2027V104C76%2098%2046%2096%2020%2098Z'%20fill='%23e6dcc6'%20stroke='%233a3733'%20stroke-width='1.2'/%3e%3cpath%20d='M180%2020C154%2018%20124%2020%20102%2027V104C124%2098%20154%2096%20180%2098Z'%20fill='%23ddd1b8'%20stroke='%233a3733'%20stroke-width='1.2'/%3e%3cg%20stroke='%239c8a6c'%20stroke-width='.7'%3e%3cpath%20d='M30%2038C52%2037%2072%2039%2090%2043M30%2050C52%2049%2072%2051%2090%2055M30%2062C52%2061%2072%2063%2090%2067M30%2074C52%2073%2072%2075%2090%2079M110%2043C128%2039%20148%2037%20170%2038M110%2055C128%2051%20148%2049%20170%2050M110%2067C128%2063%20148%2061%20170%2062M110%2079C128%2075%20148%2073%20170%2074'/%3e%3c/g%3e%3cpath%20d='M44%2032V92M156%2032V92'%20stroke='%236e1c18'%20stroke-width='.7'%20stroke-opacity='.7'/%3e%3cpath%20d='M100%2027V108'%20stroke='%2314110e'%20stroke-width='2'/%3e%3cpath%20d='M186%2058H196V70H186'%20fill='%233a3733'%20stroke='%2314110e'%20stroke-width='1.2'/%3e%3ccircle%20cx='191'%20cy='64'%20r='1.6'%20fill='%239c7a3c'/%3e%3c/svg%3e`,og=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSI+CjwhLS0gUmVhbG0ncyBiYWRnZTogdGhlIHRpbGUgYXMgYW4gaXJvbiBwbGF0ZSB3aXRoIGEgdGFybmlzaGVkLWdvbGQgcnVsZSBhbmQgZm91ciByaXZldHMsIHRoZSBwYWdlIGFnZWQgdmVsbHVtLiBUaGUgYmFkZ2UncyBzaWxob3VldHRlLCBza2lubmVkLiAtLT4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZ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dGg9IjEuNCIvPgo8ZyBmaWxsPSJ1cmwoI3I5cikiPjxjaXJjbGUgY3g9IjEzLjQiIGN5PSIxMy40IiByPSIxLjkiLz48Y2lyY2xlIGN4PSIxMy40IiBjeT0iNTAuNiIgcj0iMS45Ii8+PGNpcmNsZSBjeD0iNTAuNiIgY3k9IjUwLjYiIHI9IjEuOSIvPjxjaXJjbGUgY3g9IjQ2LjIiIGN5PSIxMy40IiByPSIxLjYiLz48L2c+CjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMyIDMyLjYpIHNjYWxlKDEuMjIpIHRyYW5zbGF0ZSgtMzEuNSAtMzIuNSkiPgo8cGF0aCBkPSJNMjMgMTcuNWgxM2w3IDd2MjBhMyAzIDAgMCAxLTMgM0gyM2EzIDMgMCAwIDEtMy0zdi0yNGEzIDMgMCAwIDEgMy0zWiIgZmlsbD0iI2Q4Y2JiMCIgc3Ryb2tlPSIjNWU0NTIwIiBzdHJva2Utd2lkdGg9Ii44Ii8+CjxwYXRoIGQ9Ik0zNiAxNy41djQuNWEyLjUgMi41IDAgMCAwIDIuNSAyLjVINDNaIiBmaWxsPSIjOWM3YTNjIi8+CjxwYXRoIGQ9Im0yNC41IDI3LjUgNSA0LjMtNSA0LjMiIHN0cm9rZT0iIzE0MTEwZSIgc3Ryb2tlLXdpZHRoPSIzLjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMzEuOCA0MGg2LjIiIHN0cm9rZT0iIzZlMWMxOCIgc3Ryb2tlLXdpZHRoPSIzLjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L2c+Cjwvc3ZnPgo=`,sg=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c!--%20A%20rest:%20a%20small%20camp%20fire%20of%20two%20crossed%20logs,%20drawn%20in%20iron,%20for%20a%20day%20with%20no%20page.%20--%3e%3cpath%20d='M3%2013.5%2013%2010.5M3%2010.5%2013%2013.5'%20stroke='%233a3733'%20stroke-width='1.5'/%3e%3cpath%20d='M8%2010.8C6%209.6%206.2%207.4%208%205.2c.3%201.4%201.6%201.8%201.6%203.4%200%201.3-.7%202-1.6%202.2Z'%20fill='%236e1c18'%20stroke='%234a1411'%20stroke-width='.8'/%3e%3c/svg%3e`,cg=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNjAgMTYiIHdpZHRoPSIxNjAiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiPgo8IS0tIFRoZSBoZWFkZXIncyBlbWJvc3NlZCBydWxlOiB0d28gdGFybmlzaGVkLWdvbGQgbGluZXMgd2l0aCBhIHNoYWRvdyBiZW5lYXRoLCBhbmQgYSByaXZldCBhdCB0aGUgY2VudHJlIGFuZCBlYWNoIGVuZC4gLS0+CjxwYXRoIGQ9Ik04IDcuNUg3ME05MCA3LjVIMTUyIiBzdHJva2U9IiM5YzdhM2MiIHN0cm9rZS13aWR0aD0iMS4yIi8+CjxwYXRoIGQ9Ik04IDlINzBNOTAgOUgxNTIiIHN0cm9rZT0iIzE0MTEwZSIgc3Ryb2tlLW9wYWNpdHk9Ii43IiBzdHJva2Utd2lkdGg9Ii44Ii8+CjxwYXRoIGQ9Ik04MCAyLjUgODUuNSA4IDgwIDEzLjUgNzQuNSA4WiIgZmlsbD0iIzZlMWMxOCIgc3Ryb2tlPSIjOWM3YTNjIiBzdHJva2Utd2lkdGg9IjEiLz4KPGcgZmlsbD0iIzZiNjY2MCIgc3Ryb2tlPSIjMTQxMTBlIiBzdHJva2Utd2lkdGg9Ii44Ij48Y2lyY2xlIGN4PSI1IiBjeT0iOCIgcj0iMi40Ii8+PGNpcmNsZSBjeD0iMTU1IiBjeT0iOCIgcj0iMi40Ii8+PC9nPgo8L3N2Zz4K`,lg=new URL(`series-CppUGsOL.svg`,import.meta.url).href,ug=new URL(`vellum-DlU0Uxzz.webp`,import.meta.url).href,dg=new URL(`war-map-_sup_aJg.webp`,import.meta.url).href,fg=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20width='32'%20height='32'%3e%3c!--%20A%20plain%20wax%20seal:%20oxblood,%20pressed%20with%20a%20ring%20and%20a%20single%20rivet%20mark,%20no%20device.%20--%3e%3cpath%20d='M16%202.5c2%200%202.8%201.6%204.6%202s3.4-.4%204.6.9.4%203%201.2%204.6%202.4%202.4%202.4%204.4-1.4%202.6-1.8%204.4.6%203.4-.7%204.7-3.1.8-4.7%201.7-2%202.9-4%203.1-2.9-1.5-4.8-2-3.6.2-4.8-1.1-.4-3-1.4-4.6S2.5%2018.4%202.5%2016.3%204%2013.6%204.4%2011.8%204%208.5%205.4%207.3s3.1-.6%204.7-1.5S13.9%202.5%2016%202.5Z'%20fill='%236e1c18'%20stroke='%233a0d0b'%20stroke-width='1'/%3e%3ccircle%20cx='16'%20cy='16'%20r='8.2'%20fill='none'%20stroke='%233a0d0b'%20stroke-width='1.6'/%3e%3ccircle%20cx='16'%20cy='16'%20r='8.2'%20fill='none'%20stroke='%23a5453a'%20stroke-width='.6'%20stroke-dasharray='3%209'%20transform='rotate(-30%2016%2016)'/%3e%3ccircle%20cx='16'%20cy='16'%20r='2.4'%20fill='%233a0d0b'/%3e%3c/svg%3e`,pg=`https://imagile-dev.github.io/toil`,mg=`https://kolatts.github.io/context-overflow`,hg=e=>`${mg}/glossary/${e.slug}`,gg=[{title:`Hello, Agent`,task:`New to agents: start here`,path:`/modules/getting-started`},{title:`AI Fluency 101`,task:`New to agents: then this`,path:`/modules/ai-fluency-101`},{title:`The Autonomy Spectrum`,task:`Deciding how much to hand an agent`,path:`/modules/autonomy-spectrum`},{title:`Git: Your Time Machine`,task:`Branches and pull requests, for Implement mode`,path:`/modules/git-time-machine`}],_g=e=>`${mg}${e.path}`,vg={toilProjects:{title:`Toil projects`,text:`A Toil project names the repositories, tracker, pipelines and environments of one body of work. Each card is read from the cache a sync filled, so opening this page asks no tracker anything.`,page:`/docs/ui/`,anchor:`the-toil-projects-view`},dashboard:{title:`this dashboard`,text:`Every panel is read through toil, read-only, and says which tools fed it. A call that failed shows on its own panel with toil's message and fix.`,page:`/docs/ui/`,anchor:`what-it-reads`},briefing:{title:`the briefing`,text:`The latest Analyze's briefing when it is current, saying who wrote it and when; otherwise toil's briefing by code, with no agent call. Each item sits under one reason, and anything the code flagged that Analyze left unmentioned is listed one step in.`,page:`/docs/ui/`,anchor:`the-briefing`},"analyze-settings":{title:`how Analyze briefs a Toil project`,text:`Each Toil project sets its goal, its reader, its lenses in order with their thresholds, and what to watch for or leave out, while toil's rules and the answer's shape stay fixed. Toil UI can't clear a setting yet.`,page:`/docs/ui/`,anchor:`tuning-analyze`},insights:{title:`flagged cards and insights`,text:`A flagged card needs action now or a look: it is blocked, its build fails, it is aging or stale. An insight is something about an item that deserves a look, weightiest first, and each names the field or history it rests on.`,page:`/docs/ui/`,anchor:`insights`},prs:{title:`pull requests`,text:`Read from every code host the Toil project names, the open ones ranked by how long each has waited and on what. Flow figures are the team's, never one person's.`,page:`/docs/ui/`,anchor:`pull-requests`},diagram:{title:`the architecture diagram`,text:`A C4 picture of what the Diagram job drew and you saved, kept in your own folder. A dashed outline or a dotted arrow is a conclusion, not a reading; press a box or an arrow to see what it was read from, or why it is believed.`,page:`/docs/ui/`,anchor:`the-architecture-diagram`},jobs:{title:`jobs`,text:`A workflow page from toil, run by the agent: it reads through toil and turns every write into a proposal for you.`,page:`/docs/ui/`,anchor:`pull-requests`},people:{title:`the People view`,text:`What is on each person's plate, from the Toil project's people section and the same items and pull requests as the dashboard. It never ranks or scores anyone.`,page:`/docs/ui/`,anchor:`people`},"people-mix":{title:`the mix of open work`,text:`One bar per person: the share of their open work in each value of the chosen dimension. It shows what kind of work is on a plate, never how anyone is doing, and cards stay in name order.`,page:`/docs/ui/`,anchor:`the-mix-of-open-work`},"split-numbers":{title:`splitting a number`,text:`Cuts the chart by one dimension, counted by code from the items Toil UI read, so it matches the same split on the chart's full page. A segment opens its items, and Open the full chart keeps the split.`,page:`/docs/ui/`,anchor:`splitting-the-numbers`},readiness:{title:`the Command Center`,text:`Each verdict is worked out from the cached records, with no model call and no live read. Only ready items are slated, in the Toil project's order.`,page:`/docs/ui/`,anchor:`readiness-and-the-command-center`},charts:{title:`the charts`,text:`Each chart answers one question about the work, counted by code from the items Toil UI read, and every number opens the items behind it; the Summary shows three, and each opens its full page.`,page:`/docs/ui/`,anchor:`charts`},"work-mix":{title:`how the mix is worked out`,text:`Each item takes the first category that fits: a label it already has, your rules, built-in signals, then its parent's. What none of them settles is Unsure, and the mix counts what was finished in the period.`,page:`/docs/ui/`,anchor:`work-mix`},releases:{title:`releases`,text:`Scope is every item with the release's fix version: done is what is resolved, and left is the rest. Added since it started counts items created after the release's own start date, and is a dash when the release has none.`,page:`/docs/ui/`,anchor:`releases`},sprints:{title:`sprint velocity`,text:`Done is what was resolved by a sprint's end; committed was in it when it started, added joined after, and carried over was left undone for a later sprint. Without an item's sprint history, committed and added are unknown.`,page:`/docs/ui/`,anchor:`sprints`},where:{title:`where the team is working`,text:`Days in progress are counted from each item's status history, by the week they fall in; a parallel stream is an epic with work in progress that week. The team is measured, never a person.`,page:`/docs/ui/`,anchor:`where-were-working`},flow:{title:`flow`,text:`Throughput counts what was resolved each week, cycle time the days from started to resolved with the 85th percentile marked, and age the days since an open item started. The diagram and cycle time need status history.`,page:`/docs/ui/`,anchor:`flow`},explore:{title:`exploring the data`,text:`Pick what to count, what to split by and what to spread it across. The view is in the address, so a link shows the same chart, and Save this view keeps it for the team, and the command palette opens it by name.`,page:`/docs/ui/`,anchor:`explore`},worklog:{title:`the worklog`,text:`One page a day of what happened, folded by code from the sync, the pull requests, the builds and the agent's runs: facts only, each line linked to where it came from. Days and times are UTC.`,page:`/docs/ui/`,anchor:`worklog`},standup:{title:`the stand-up`,text:`The worklog's days by person: done, in progress, blocked, next and comments, built by code from facts, each linked. A ? marks a question nobody has answered; a dash is none, or not read yet when the source line says so.`,page:`/docs/ui/`,anchor:`stand-up`},"worklog-calendar":{title:`the calendar`,text:`A number under a day is how many lines its page has, and a star means the page says what the cache can't vouch for.`,page:`/docs/ui/`,anchor:`worklog`},"worklog-export":{title:`exporting and publishing`,text:`Export writes the page as Markdown to a new file in a folder you name. Publishing it to Confluence or GitHub is then a proposal, for you to apply.`,page:`/docs/ui/`,anchor:`worklog`},"prs-queue":{title:`the waiting list`,text:`Open pull requests, longest wait first, each with what it waits on and since when, drafts last; waits count working days, Monday to Friday UTC.`,page:`/docs/ui/`,anchor:`pull-requests`},"prs-flags":{title:`flags`,text:`A flag marks a first review that has waited too long, checks that have been failing too long, a merge conflict, no linked work item, a work item done while its pull request is open, or a merged pull request whose item isn't done.`,page:`/docs/ui/`,anchor:`pull-requests`},"prs-flow":{title:`the flow figures`,text:`Split by who wrote each pull request. n is how many pull requests a figure rests on; unknown counts those whose record can't say, such as a host that keeps no review times, or reviews not read.`,page:`/docs/ui/`,anchor:`pull-requests`},"prs-reviewers":{title:`suggested reviewers`,text:`For open pull requests with nobody asked: the CODEOWNERS of the paths each changes, then who reviewed changes to the same files and folders. Each is a proposal; asking for a review is a write you apply.`,page:`/docs/ui/`,anchor:`pull-requests`},"blocker-timeline":{title:`the blocker timeline`,text:`Blocked time is estimated: links carry no date in Jira, Azure DevOps or GitHub, so a block is drawn from when both items existed. Time in progress comes from each item's transitions (estimated from its creation where none were recorded), and failing checks from its open pull requests' builds.`,page:`/docs/ui/`,anchor:`the-dependencies-tab`},proposal:{title:`the write gate`,text:`Nothing changes until you approve it. Even then, the connection has to allow writes, and each change is asked for by name.`,page:`/docs/core/`,anchor:`writes`},"board-moves":{title:`applying board moves`,text:`Dropping a card on another column makes the move through toil (a transition, a project's Status, or closing or reopening a GitHub issue), if the connection allows changes. Turn this off and a drop only shows the command to run yourself.`,page:`/docs/ui/`,anchor:`board-moves`},settings:{title:`toil's configuration`,text:`Every change goes through toil's own checks, never an edit to a file, and each is recorded in toil's audit log. Nothing here writes to a tracker.`,page:`/docs/ui/`,anchor:`toils-configuration`},connections:{title:`connections`,text:`A connection is one instance of an area: its host, its credential and whether writes are on. A login is never shown again: it is kept in the secure store of this computer.`,page:`/docs/core/`,anchor:`configuration`},"toil-project-setup":{title:`Toil project setup`,text:`Each form checks the file before writing it and refuses to add what's already there unless you tick Replace. A Toil project holds no secret and can't turn writes on.`,page:`/docs/projects/`,anchor:`create-check-use-share`},"jira-project-key":{title:`the Jira project key`,text:`Toil UI reads Jira issues one project at a time, from the key a Toil project names. Leave it empty and Toil UI reads no Jira issues; you can add the key later in Settings.`,page:`/docs/ui/`,anchor:`the-setup-wizard`},"toil-project-list":{title:`where Toil projects come from`,text:`Your own Toil projects, any folders you listed, and the ones a repository checks in. Check finds problems without contacting any service.`,page:`/docs/projects/`,anchor:`where-toil-projects-live`},"repo-setup":{title:`setting up a repo`,text:`For a repository with a Toil project checked in: which of your connections each area would use, the ones still missing, and one test read through each. It changes nothing.`,page:`/docs/projects/`,anchor:`onboarding-to-a-repo-that-has-a-toil-project`},bounds:{title:`bounds and the time limit`,text:`Toil UI can't change these, so they're shown as Toil reports them. They are set outside Toil UI.`,page:`/docs/core/`,anchor:`files-and-the-workspace`},audit:{title:`usage of toil`,text:`Read from a log kept on this computer and sent nowhere. It counts what was used, how it was called and how it ended, never what a call was given or got back.`,page:`/docs/core/`,anchor:`the-audit-log`},"audit-failures":{title:`failures`,text:`The log keeps each failure's error code, never its message, so the fix shown is the one that usually applies to that code.`,page:`/docs/core/`,anchor:`the-audit-log`},"model-usage":{title:`the agent's usage`,text:`Figures Claude, Codex and Copilot reported, kept only in Toil UI's local cache and sent nowhere. A figure an agent didn't report reads not reported, and the CSV export leaves it empty, one row per report; your vendor's bill is the authority.`,page:`/docs/ui/`,anchor:`what-the-agents-models-used`,glossary:[{term:`Token`,slug:`token`,text:`The atomic unit a model reads and writes.`},{term:`Input tokens`,slug:`input-tokens`,text:`Tokens the harness sends on each model provider request.`},{term:`Output tokens`,slug:`output-tokens`,text:`Tokens the model generates back.`},{term:`Cache tokens`,slug:`cache-tokens`,text:`Input tokens the provider has cached from a previous request via its prefix cache, billed at a much lower rate.`}]},rates:{title:`the Codex rates`,text:`Codex reports tokens, not dollars. With your rates, Toil UI works out a dollar figure for each Codex answer from then on, labelled as computed from your rates.`,page:`/docs/ui/`,anchor:`what-the-agents-models-used`},agent:{title:`the agent`,text:`The agent your organization already approved answers in the chat, on your own subscription, and only reads, starting the chat on the agent last used for the Toil project, else the default chosen here, else the first agent that's ready; the settings are Toil UI's own, kept in its data folder, never in toil's config.`,page:`/docs/ui/`,anchor:`the-agent`,glossary:[{term:`Model`,slug:`model`,text:`The parameters. Stateless — does next-token prediction and nothing else.`},{term:`Model provider`,slug:`model-provider`,text:`Whatever serves a model for inference.`},{term:`Harness`,slug:`harness`,text:`Everything around the model that turns it into an agent: tools, system prompt, context-window management, permissions, hooks.`},{term:`MCP`,slug:`mcp`,text:`A protocol for plugging external tool servers into a harness — how an agent gets tools beyond what the harness ships with.`},{term:`Tool call`,slug:`tool-call`,text:`The model's output naming a tool and its arguments — just structured text.`}]},assignments:{title:`assigning work to an agent`,text:`An assignment runs on your adapter, within your time limit. Nothing it proposes leaves this machine until you apply it through toil's write gate.`,page:`/docs/ui/`,anchor:`assigning-work-to-an-agent`,glossary:[{term:`Sandbox`,slug:`sandbox`,text:`An isolated environment the agent runs inside — container, VM, or restricted shell.`},{term:`Permission mode`,slug:`permission-mode`,text:`The permission-gating slice of an agent mode — which tool calls trigger a permission request and which run automatically.`},{term:`Human-in-the-loop`,slug:`human-in-the-loop`,text:`A working pattern where one or more humans pair with the agent during a session — reviewing, redirecting, or collaborating in real time.`},{term:`Human review`,slug:`human-review`,text:`The user reading the code the agent produced and forming a judgement on it.`}]},stale:{title:`stale sessions`,text:`A chat or an assignment works from the instructions it started on. When toil, the Toil project or your instructions change, it says which, and renews on request.`,page:`/docs/ui/`,anchor:`stale-sessions`,glossary:[{term:`Session`,slug:`session`,text:`One bounded run of interaction with an agent.`},{term:`System prompt`,slug:`system-prompt`,text:`The instructions the harness prepends to every model provider request — the agent's standing brief.`},{term:`Skill`,slug:`skill`,text:`A teachable capability bundled as a unit — kept out of the context window until a context pointer pulls it in for the task at hand.`}]},answers:{title:`these answers`,text:`The agent reads through toil and cites each item it used, and an id its tools never returned is named above the answer. Analyze answers top-down: a recommendation, the issues behind it, then the evidence.`,page:`/docs/ui/`,anchor:`the-agent`,glossary:[{term:`Hallucination`,slug:`hallucination`,text:`Confidently-wrong model output.`},{term:`Primary source`,slug:`primary-source`,text:`The thing itself — code, transcripts, raw data.`},{term:`Non-determinism`,slug:`non-determinism`,text:`The same input can produce different output.`}]},"themed-wording":{title:`themed wording`,text:`The theme's own lede, eyebrows, notes, empty states and loading lines, and its names for a sprint, a board or an epic beside the real ones. Buttons, links, figures, ids and errors always read the same.`,page:`/docs/themes/`,anchor:`visuals-wording-and-voice`},"themed-voice":{title:`themed agent voice`,text:`The agent answers in the theme's register. It changes phrasing only: citations, figures and proposals stay exact.`,page:`/docs/themes/`,anchor:`the-checkboxes`},status:{title:`the status word and how sure`,text:`On track, At risk and Behind are an estimate from the pace so far, worked out by code with no model, and the page shows the sums. How sure is a word and one reason: whether every read worked, how old the data is, and how many items there are to go on.`,page:`/docs/ui/`,anchor:`the-briefing`},setup:{title:`the setup wizard`,text:`Seven short screens: an optional AI agent that then explains each step in a guide beside it, your tools, and a Toil project. It makes the same changes as Settings, starts every link read-only, never shows the guide a login, and you can skip any step.`,page:`/docs/ui/`,anchor:`the-setup-wizard`},"first-run":{title:`getting started`,text:`Each step ticks itself off from toil's own state: a connection to a tracker (one made by env vars counts), a Toil project, and a first sync. The list goes once the first sync finishes.`,page:`/docs/ui/`,anchor:`first-run`},sync:{title:`syncing`,text:`A sync reads every Toil project through toil, read-only, and keeps what it read in a cache on this machine. Every view reads that cache, so opening one asks no tracker anything, and Jira and Azure DevOps items closed more than the read window ago (the retention period, at least six weeks) are not read.`,page:`/docs/ui/`,anchor:`sync-and-the-cache`},"sample-data":{title:`the sample data`,text:`Sample Toil projects, a whole sample team among them, and a scripted agent, with nothing connected to a tracker, to look around first. From a first start, Look around with a sample team opens them without changing anything.`,page:`/docs/ui/`,anchor:`start-it`},palette:{title:`the command palette`,text:`Jumps to a Toil project, a tab, an item in any Toil project, a saved analysis, a setting or a theme, and runs Sync, Analyze and Ask. Items are searched in the cache, never live.`,page:`/docs/ui/`,anchor:`the-command-palette`},alignments:{title:`rolled alignments`,text:`Each card's alignment is rolled from its name alone, for play, so it says nothing about anyone or their work. Only good and neutral ones are on the list, and themed wording off removes them.`,page:`/docs/themes/`,anchor:`rolled-alignments`},"rest-days":{title:`rest days`,text:`A past day with nothing on its page, or no page at all, is a rest: a small camp fire for a short rest on a weekday, a larger one for a long rest at the weekend.`,page:`/docs/themes/`,anchor:`rest-days`},motion:{title:`motion and effects`,text:`Reduce motion stops the themes' animations and particles in this browser. Your system's reduced-motion setting stops them whichever way this is set.`,page:`/docs/themes/`,anchor:`motion-and-particles`},"simple-marks":{title:`simple chart marks`,text:`Each series on a chart has a colour and a border style, and in the decorative themes a picture frame. With this on, charts use the plain border instead, kept in this browser only.`,page:`/docs/themes/`,anchor:`chart-marks`},board:{title:`the board`,text:`One column per status category, across every tracker, each card with its own status word. Drag a card to another column, or open its menu with a right-click, a long press or M, to move it; where changes are off, the move stays a proposal until you apply it.`,page:`/docs/ui/`,anchor:`the-board`},analyses:{title:`earlier briefings`,text:`Every briefing kept for this Toil project, newest first; the newest is the one on the Summary. Each one shows what changed since the one before, worked out by code from its snapshot.`,page:`/docs/ui/`,anchor:`the-toil-project-page`},notifications:{title:`notifications`,text:`A notice when an agent's state changes, never for a tool call. Which states notify, quiet hours and only your own are under Settings, General.`,page:`/docs/ui/`,anchor:`notifications`},"notification-history":{title:`the notification history`,text:`The last 50 notices and sync results, kept in this browser and sent nowhere, each linking to what it's about. Mark all read clears the count and keeps them.`,page:`/docs/ui/`,anchor:`notification-history`},"theme-motion":{title:`theme motion`,text:`How much the theme's splash, loading screens, entrances and moments move: full, subtle or off. Off whenever reduced motion is asked for.`,page:`/docs/themes/`,anchor:`theme-moments`},tips:{title:`toil tips`,text:`One line about toil on each loading screen, in plain words, each with a Read more link. Turn them off here; the choice is kept in this browser.`,page:`/docs/themes/`,anchor:`toil-tips`},classify:{title:`sorting work into categories`,text:`Lists the items nobody has put in a category, and the ones where a label and a rule disagree. Your answers are saved in your own record; the tracker changes only when you apply them, after seeing every change.`,page:`/docs/ui/`,anchor:`sort-work-into-categories`},"classify-ask":{title:`asking your AI agent`,text:`Your AI agent reads the items nobody has settled and marks a suggested category on each, with its reason: press the mark to accept it, or another category to overrule it. It can't change anything.`,page:`/docs/ui/`,anchor:`sort-work-into-categories`},"classify-doing":{title:`how the categories are doing`,text:`Counts how often people agreed with the answers they checked, and which source they overrule most. A figure nobody has read yet is a dash, never 0%.`,page:`/docs/ui/`,anchor:`how-its-doing`},"classification-editor":{title:`the categories editor`,text:`Edits the categories, rules and guidance a Toil project sorts its work by. A rule shows how many items it would catch, and saving makes a new revision.`,page:`/docs/ui/`,anchor:`the-classification-editor`}},yg=e=>`${pg}${e.page}#${e.anchor}`,bg={toilProjects:`toilProjects`,dashboard:`dashboard`,prs:`prs`,people:`people`,charts:`charts`,"command-center":`readiness`,classify:`classify`,worklog:`worklog`,standup:`standup`,briefings:`analyses`,item:`readiness`,assignment:`assignments`,job:`jobs`,diagram:`diagram`,settings:`settings`,setup:`setup`,newProject:`toil-project-setup`},xg={appearance:`themed-wording`,agent:`agent`,usage:`audit`,projects:`toil-project-setup`,connections:`connections`};function Sg(e,t){return yg(vg[e===`settings`&&t?xg[t]??`settings`:bg[e]])}var Cg=`toil-ui.learning`;function wg(){try{return localStorage.getItem(Cg)!==`off`}catch{return!0}}var Tg=null,Eg=new Set;function Dg(){return Tg??=wg(),Tg}function Og(e){Tg=e;try{localStorage.setItem(Cg,e?`on`:`off`)}catch{}for(let e of Eg)e()}function kg(e){return Eg.add(e),()=>Eg.delete(e)}function Ag(){return[(0,j.useSyncExternalStore)(kg,Dg,()=>!0),Og]}var jg=[{product:`ui`,version:`0.1.0-beta.6`,date:`2026-11-17`,lines:[`Show usage without caps`,`Close leftover overlays before opening the compact header menu`,`Date the cache migration test's seeded rows from the clock`,`Pin the clock in tests that seed fixed dates`,`Stand-up team chips cut long sprint moves inside their box`]},{product:`ui`,version:`0.1.0-beta.5`,date:`2026-11-09`,lines:[`Setup and edit flows, plain copy, AI agent, stand-up on Summary; an unpatched Node warns`]},{product:`ui`,version:`0.1.0-beta.4`,date:`2026-11-05`,lines:[`Offer the workflow jobs (Review, Ship, Diagram) where they apply`,`Read every repository and project a dossier names`,`Toil UI for people new to AI: plain words, quieter screens, guided Ask`,`AI helper setup first, calm first run, stale notice, inline citations, Ask row`,`Give the dossier tabs the whole row on a phone, with Agents beside Ask`]},{product:`ui`,version:`0.1.0-beta.3`,date:`2026-10-29`,lines:[`A briefing written by Analyze, with an item drawer, Analyze settings and Customize`,`Analyze remembers the agent picked for each dossier, falling back to your default agent`,`Keep the session across a reload with sessionStorage`,`Decide Services from the dossier's connection, not from the items loaded`,`Propose board moves on Cloud items with the Cloud area's own transition command`]},{product:`ui`,version:`0.1.0-beta.2`,date:`2026-10-26`,lines:[`Sync Jira Cloud dossiers, and let triage change Toil UI`,`Preserve USER for Claude CLI authentication`]},{product:`ui`,version:`0.1.0-beta.1`,date:`2026-10-24`,lines:[`A blocker Gantt on the sprint timeline, with the critical chain`,`A guided first run, a command palette, and search across dossiers`,`A history of analyses, and answers that read top-down`,`Add hidden Powershell Man arcade to UI and site`,`Context Overflow glossary links in the (i)s, and Learn in Help, the chat and the CLI menu`]},{product:`ui`,version:`0.1.0-alpha.3`,date:`2026-10-21`,lines:[`A particle switch for every theme, and Fredoka in Plain`,`A stand-up report folded from the worklog, by person, with an optional agent write-up`,`Ask up front with live status and Analyze; switch agents live and install an approved SDK in one press`,`Dossier pages that preview the work, and a dossier's name and description edited in place`,`Drag the whole board card, with its moves in a context menu`]},{product:`ui`,version:`0.1.0-alpha.2`,date:`2026-10-20`,lines:[`A daily worklog per dossier, folded from the sync, pull requests, builds and agent runs`,`A People view of what each person and agent is working on`,`A refined, grimdark Realm theme`,`Assign work items to an agent, in refine, investigate and implement modes`,`npm run verify:ui, Codex in a home of its own, and the lockfile held to the pin`]},{product:`ui`,version:`0.1.0-alpha.1`,date:`2026-10-19`,lines:[`Agent adapters for Claude, Copilot and Codex`,`Board, flow, dependency graph, insights, charts and a docked chat`,`Generated art for the game themes`,`Harvest, Starship and Realm themes`,`Motion and life for the game themes`]},{product:`toil`,version:`0.1.0-beta.6`,date:`2026-11-17`,lines:[`The Azure DevOps Services commands demo seeding needed the raw API for`,`Work-item tag and untag on Azure DevOps Services`,`Create a space with confluence space create`,`Offer Jira Cloud's API token to Confluence Cloud on the same site`,`One flag per file idea: --input-file, --&lt;flag&gt;-file, --path, --out`]},{product:`toil`,version:`0.1.0-beta.5`,date:`2026-11-09`,lines:[`Don't fail release-guard when release-please opened no PR`,`Let check:lockfile pass with a warning on the lockfile a release leaves`]},{product:`toil`,version:`0.1.0-beta.4`,date:`2026-11-05`,lines:[`Rename dossier to toil project across the CLI, MCP, config, env, UI and docs`,`Close the gaps found running map-codebase, and commit toil's map`,`Workflow pages for review, ship and map-codebase`,`List each file's imports in util size outlines`,`A per-repo value no repo matches no longer falls through to git or the connection`]},{product:`toil`,version:`0.1.0-beta.3`,date:`2026-10-29`,lines:[`Ado work-item feed, and Toil UI reads Azure DevOps histories from it`,`Agent-led setup: the skill walks an agent through toil and Toil UI, and the person enters every secret`,`Brief a dossier by code, and tune and serve its Analyze prompt`,`Import database connections from DBeaver, SSMS, pgAdmin and other tools`,`TlsServerName and tlsCaFile for TLS connections to cloud and aliased servers`]},{product:`toil`,version:`0.1.0-beta.2`,date:`2026-10-26`,lines:[]},{product:`toil`,version:`0.1.0-beta.1`,date:`2026-10-24`,lines:[`Crate in the site's blue, in Toil UI, the welcome menu and the site's screenshot`,`Crate is the default theme everywhere, CLI included`,`Hive and Impala through one HiveServer2 provider`,`Teradata through the Teradata Query Service`,`The emails in Toil UI Plain's blue`]},{product:`toil`,version:`0.1.0-alpha.5`,date:`2026-10-21`,lines:[`Onboard to a repo's dossiers, match connections by host, and shareable dossiers by default`,`Show that a pasted secret arrived, and check the paste, on the CLI and in Toil UI`,`Ticket the work before starting it, in the skill and in Toil UI's chat`]},{product:`toil`,version:`0.1.0-alpha.4`,date:`2026-10-20`,lines:[`Read a team's sprints, backlogs, boards and work item type states`,`A dialect pre-flight lint before SQL runs, and toil db lint`,`One command shape for jira and ado, and a Services menu`,`OWI for GitHub without a board: milestones as sprints, estimate labels and links`,`Pull request tracking in Toil UI across GitHub, Bitbucket and Azure DevOps`]},{product:`toil`,version:`0.1.0-alpha.3`,date:`2026-10-19`,lines:[`Consented feedback from the site, the API, toil feedback and Toil UI`,`Playful wordmark across the site, Toil UI and the CLI`,`Match .gitignore globs in linear time`,`Skip only the bad .gitignore line, with a warning`,`Layout primitives, an overflow check, and the UI and site sweep fixes`]},{product:`toil`,version:`0.1.0-alpha.2`,date:`2026-10-19`,lines:[`Run --grep, md conversion, size outlines and YAML parsing in the bounded worker`,`Install bubblewrap for the agent's isolation, and clear failure labels on a decision`]},{product:`toil`,version:`0.1.0-alpha.1`,date:`2026-10-18`,lines:[`Add Azure DevOps Services integration beside Azure DevOps Server`,`Add the Azure DevOps Server integration`,`Page every list through meta.page, add --updated-since, work revisions and work get-batch`,`Add the Alation integration`,`Add the JFrog Artifactory integration`]}],Mg={ui:`0.1.0-beta.6`,toil:`0.1.0-beta.6`},Ng={toil:`toil`,ui:`Toil UI`},Pg={toil:`https://github.com/imagile-dev/toil/blob/main/CHANGELOG.md`,ui:`https://github.com/imagile-dev/toil/blob/main/ui/CHANGELOG.md`};function Fg(e,t){let n=e=>{let t=/^v?(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?/.exec(e.trim());return t?{nums:[Number(t[1]),Number(t[2]),Number(t[3])],pre:t[4]?.split(`.`)??[]}:null},r=n(e),i=n(t);if(!r||!i)return 0;for(let e=0;e<3;e++)if(r.nums[e]!==i.nums[e])return r.nums[e]-i.nums[e];if(!r.pre.length||!i.pre.length)return i.pre.length-r.pre.length;for(let e=0;e<Math.max(r.pre.length,i.pre.length);e++){let t=r.pre[e],n=i.pre[e];if(t===void 0)return-1;if(n===void 0)return 1;let a=/^\d+$/.test(t),o=/^\d+$/.test(n);if(a&&o&&Number(t)!==Number(n))return Number(t)-Number(n);if(a!==o)return a?-1:1;if(!a&&t!==n)return t<n?-1:1}return 0}function Ig(e,t,n){return e.filter(e=>{let r=t?.[e.product];return r!==void 0&&Fg(e.version,r)>0&&Fg(e.version,n[e.product])<=0})}function Lg(e,t){let n=[];for(let r of[`ui`,`toil`]){let i=e.filter(e=>e.product===r&&Fg(e.version,t[r])<=0).sort((e,t)=>Fg(t.version,e.version))[0];i&&n.push(i)}return n}function Rg(e){if(!e)return null;try{let t=JSON.parse(e);if(!t||typeof t!=`object`)return null;let n={};for(let e of[`toil`,`ui`])typeof t[e]==`string`&&(n[e]=t[e]);return Object.keys(n).length?n:null}catch{return null}}var zg=`toil-ui.whats-new.seen`,Bg=()=>{try{return localStorage.getItem(zg)}catch{return null}},Vg=e=>{try{localStorage.setItem(zg,JSON.stringify(e))}catch{}};function Hg(e=Mg,t=jg){let[n,r]=(0,j.useState)(()=>{let t=Rg(Bg());return t||Vg(e),t??e}),i=Ig(t,n,e),a=(0,j.useCallback)(()=>{Vg(e),r(e)},[e]);return{fresh:i,shown:i.length?i:Lg(t,e),seen:a}}function Ug({shown:e,fresh:t,isOpen:n,onOpenChange:r}){let i=[...new Set(e.map(e=>e.product))];return(0,$.jsx)(dd,{className:`palette-overlay`,"data-backdrop":``,isDismissable:!0,isOpen:n,onOpenChange:r,children:(0,$.jsx)(ld,{className:`palette-modal whats-new-modal`,children:(0,$.jsx)(Ju,{className:`whats-new`,"aria-labelledby":`whats-new-title`,"data-whats-new":``,children:({close:n})=>(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`whats-new__head`,children:[(0,$.jsx)(Xa,{slot:`title`,id:`whats-new-title`,children:`What's new`}),(0,$.jsx)(Ka,{className:`btn btn--small`,onPress:n,"data-whats-new-close":``,children:`Close`})]}),(0,$.jsx)(`p`,{className:`note`,children:t?`Since this browser last looked.`:`Nothing new since this browser last looked. The latest:`}),e.map(e=>(0,$.jsxs)(`section`,{className:`whats-new__release`,"aria-labelledby":`wn-${e.product}-${e.version}`,children:[(0,$.jsxs)(`h3`,{id:`wn-${e.product}-${e.version}`,children:[Ng[e.product],` `,e.version,e.date&&(0,$.jsxs)(`span`,{className:`note`,children:[` · `,s(e.date)]})]}),e.lines.length?(0,$.jsx)(`ul`,{children:e.lines.map(e=>(0,$.jsx)(`li`,{children:e},e))}):(0,$.jsx)(`p`,{className:`note`,children:`Nothing that changes how you use it.`})]},`${e.product}@${e.version}`)),(0,$.jsx)(`p`,{className:`whats-new__links`,children:i.map(e=>(0,$.jsxs)(`a`,{href:Pg[e],target:`_blank`,rel:`noopener noreferrer`,"data-changelog":``,children:[Ng[e],`'s full changelog`,(0,$.jsx)(`span`,{className:`sr-only`,children:` (opens in a new tab)`})]},e))})]})})})})}function Wg(){return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`new-dot`,"aria-hidden":`true`,"data-new-dot":``}),(0,$.jsx)(`span`,{className:`sr-only`,children:`, with something new`})]})}function Gg({label:e,tip:t,children:n,placement:r=`bottom`,triggerProps:i}){return(0,$.jsxs)(qu,{children:[(0,$.jsxs)(Td,{delay:400,closeDelay:200,children:[(0,$.jsx)(Ka,{className:`btn info-trigger`,"aria-label":`About ${e}`,...i,children:(0,$.jsx)(E,{size:20})}),(0,$.jsx)(Ed,{className:`help-tooltip`,offset:6,children:t})]}),(0,$.jsx)(Fl,{className:`popover help-popover`,placement:r,offset:6,children:(0,$.jsxs)(Ju,{className:`help-popover__dialog`,"aria-label":`About ${e}`,children:[(0,$.jsxs)(Xa,{slot:`title`,className:`help-popover__title`,children:[`About `,e]}),n]})})]})}function Kg({topic:e,note:t}){let n=vg[e],r=h(),i=r.text(n.title),a=r.text(n.text)+(r.on&&n.plainNote?` ${n.plainNote}`:``)+(t?` ${r.text(t)}`:``);return(0,$.jsxs)(Gg,{label:i,tip:a,triggerProps:{"data-help":e},children:[(0,$.jsx)(`p`,{children:a}),(0,$.jsx)(`p`,{children:(0,$.jsxs)(`a`,{href:yg(n),target:`_blank`,rel:`noopener noreferrer`,"data-read-more":``,children:[`Read more`,(0,$.jsxs)(`span`,{className:`sr-only`,children:[` about `,i,` in the docs (opens in a new tab)`]})]})}),n.glossary&&(0,$.jsx)(qg,{entries:n.glossary})]})}function qg({entries:e}){let[t]=Ag();return!t||!e.length?null:(0,$.jsx)(`ul`,{className:`help-glossary`,"aria-label":`Terms, from Context Overflow's glossary`,"data-glossary":``,children:e.map(e=>(0,$.jsxs)(`li`,{children:[(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`strong`,{children:e.term}),`: `,e.text,` `]}),(0,$.jsxs)(`a`,{href:hg(e),target:`_blank`,rel:`noopener noreferrer`,"data-learn-link":``,children:[`Read more on Context Overflow`,(0,$.jsxs)(`span`,{className:`sr-only`,children:[` about `,e.term,` (opens in a new tab)`]})]})]},e.slug))})}function Jg({href:e,fresh:t=!1,onWhatsNew:n,onShortcuts:r}){let[i]=Ag();return(0,$.jsxs)(Fu,{children:[(0,$.jsxs)(Ka,{className:`btn help-link`,"data-help-link":``,children:[`Help`,t&&(0,$.jsx)(Wg,{}),(0,$.jsx)(D,{size:14,className:`icon--after`})]}),(0,$.jsx)(Fl,{className:`popover menu-popover`,placement:`bottom end`,offset:6,children:(0,$.jsxs)(Lu,{className:`menu help-menu`,"aria-label":`Help`,onAction:e=>e===`whats-new`?n?.():e===`shortcuts`?r?.():void 0,children:[(0,$.jsxs)(Uu,{className:`menu-item`,href:e,target:`_blank`,rel:`noopener noreferrer`,textValue:`Help for this view`,children:[`Help for this view`,(0,$.jsx)(`span`,{className:`sr-only`,children:` (opens in a new tab)`})]}),n&&(0,$.jsxs)(Uu,{id:`whats-new`,className:`menu-item`,textValue:`What's new`,"data-whats-new-open":``,children:[`What's new`,t&&(0,$.jsx)(Wg,{})]}),r&&(0,$.jsx)(Uu,{id:`shortcuts`,className:`menu-item`,textValue:`Keyboard shortcuts`,"data-shortcuts-open":``,children:`Keyboard shortcuts`}),i&&(0,$.jsxs)(Vu,{children:[(0,$.jsx)(po,{className:`menu-header`,children:`Learn, on Context Overflow`}),gg.map(e=>(0,$.jsxs)(Uu,{id:e.path,className:`menu-item help-menu__module`,href:_g(e),target:`_blank`,rel:`noopener noreferrer`,textValue:e.title,"data-learn-link":``,children:[(0,$.jsx)(Qa,{slot:`label`,children:e.title}),(0,$.jsxs)(Qa,{slot:`description`,className:`note`,children:[e.task,(0,$.jsx)(`span`,{className:`sr-only`,children:` (opens in a new tab)`})]})]},e.path))]})]})})]})}function Yg({href:e,label:t}){return(0,$.jsx)(`a`,{className:`btn btn--small edit-link`,href:e,"aria-label":t,title:t,"data-edit-link":``,children:(0,$.jsx)(u,{size:16})})}function Xg(e,t){(0,j.useEffect)(()=>{if(!e||!t)return;let n=document.getElementById(e)??document.querySelector(`main h1`);n&&(n.tabIndex<0&&!n.hasAttribute(`tabindex`)&&n.setAttribute(`tabindex`,`-1`),n.scrollIntoView?.({block:`start`}),n.focus())},[e,t])}var Zg=e=>new URL(Object.assign({"../../themes/realm/assets/broken-road.svg":eg,"../../themes/realm/assets/capital.svg":tg,"../../themes/realm/assets/d20.svg":ng,"../../themes/realm/assets/dungeon-map.webp":rg,"../../themes/realm/assets/iron-band.svg":ig,"../../themes/realm/assets/ledger.svg":ag,"../../themes/realm/assets/mark.svg":og,"../../themes/realm/assets/rest.svg":sg,"../../themes/realm/assets/rule.svg":cg,"../../themes/realm/assets/series.svg":lg,"../../themes/realm/assets/vellum.webp":ug,"../../themes/realm/assets/war-map.webp":dg,"../../themes/realm/assets/wax-seal.svg":fg})[`../../themes/realm/assets/${e}`],import.meta.url).href;function Qg({item:e}){let t=(0,j.useContext)(Wf),n=f(),r=e.parent?t?.byId.get(e.parent):void 0;return!r||r.type!==`EPIC`?null:(0,$.jsxs)(`p`,{className:`realm-campaign`,children:[n(`epic`,r.typeName??`Epic`),`: `,r.title]})}function $g(){let{health:e}=qf(),t=f(),{wording:n}=C();if(!e||!n)return null;let r=Df(e),i=r?.left??null,a=r?.total??0;return(0,$.jsxs)(`div`,{className:`realm-vitals`,children:[(0,$.jsxs)(`p`,{className:`realm-vital`,children:[(0,$.jsx)(`span`,{className:`realm-vital__name`,children:t(`pointsLeft`,`Points left`)}),` `,(0,$.jsx)(`span`,{className:`realm-vital__value`,children:i===null?(0,$.jsx)(w,{}):`${i} of ${a}`})]}),i!==null&&(0,$.jsx)(`span`,{className:`realm-hp`,"aria-hidden":`true`,children:(0,$.jsx)(`span`,{style:{width:`${a?100*i/a:0}%`}})})]})}function e_(){let{wording:e}=C();return e?(0,$.jsxs)(`p`,{className:`note realm-rests`,children:[`Camp fires mark rest days. `,(0,$.jsx)(Kg,{topic:`rest-days`})]}):null}function t_({id:e,children:t}){let n=(0,j.useContext)(Wf)!==null,{wording:r}=C();return e===`sprint`&&n?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)($g,{}),t]}):e===`worklog-calendar`?(0,$.jsxs)($.Fragment,{children:[r&&(0,$.jsx)(`i`,{className:`realm-rest-key`,hidden:!0}),t,(0,$.jsx)(e_,{})]}):t}function n_({children:e}){let t=f();return(0,$.jsxs)(`div`,{className:`bubble bubble--agent realm-steward`,children:[(0,$.jsxs)(`p`,{className:`realm-steward-name`,children:[(0,$.jsx)(`img`,{src:Zg(`wax-seal.svg`),alt:``,width:24,height:24,loading:`lazy`,decoding:`async`}),t(`agent`,`Agent`)]}),e]})}var r_={Card:({item:e,children:t})=>(0,$.jsxs)($.Fragment,{children:[t,(0,$.jsx)(Qg,{item:e})]}),Panel:t_,Header:({children:e})=>(0,$.jsxs)($.Fragment,{children:[e,(0,$.jsx)(`img`,{className:`realm-rule realm-rule--header`,src:Zg(`rule.svg`),alt:``,width:160,height:16,loading:`lazy`,decoding:`async`,"aria-hidden":`true`})]}),ChatMessage:({from:e,children:t})=>e===`agent`?(0,$.jsx)(n_,{children:t}):(0,$.jsx)(`div`,{className:`bubble bubble--you`,children:t}),EmptyState:({message:e,children:t})=>(0,$.jsxs)(`div`,{className:`skin-empty skin-empty--art realm-ledger`,children:[(0,$.jsx)(`img`,{src:Zg(`ledger.svg`),alt:``,width:200,height:120,loading:`lazy`,decoding:`async`}),(0,$.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,$.jsxs)(`div`,{className:`skin-loading skin-empty--art realm-roll`,role:`status`,children:[(0,$.jsx)(`img`,{className:`realm-d20`,src:Zg(`d20.svg`),alt:``,width:88,height:88,decoding:`async`}),(0,$.jsx)(`p`,{children:e})]})},i_=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3c!--%20Black%20ICE:%20a%20cracked%20hexagonal%20barrier,%20in%20danger%20red%20on%20black.%20--%3e%3cpath%20d='M8%201%2014%204.5v7L8%2015%202%2011.5v-7Z'%20fill='%2307060f'%20stroke='%23ff6470'%20stroke-width='1.3'/%3e%3cpath%20d='m8%203.5-1.5%203.5%202.5%201.5-2%204'%20stroke='%23ff6470'%20stroke-width='1.1'%20stroke-linejoin='bevel'/%3e%3c/svg%3e`,a_=new URL(`dead-drop-BHoO7uon.webp`,import.meta.url).href,o_=new URL(`jack-in-Cs60f1qu.webp`,import.meta.url).href,s_=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdm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cm9rZS13aWR0aD0iMSIgZmlsdGVyPSJ1cmwoI2I3ZykiLz4KPHBhdGggZD0iTTM2IDE3LjV2NC41YTIuNSAyLjUgMCAwIDAgMi41IDIuNUg0M1oiIGZpbGw9IiNmZjJlODgiIG9wYWNpdHk9Ii44NSIvPgo8ZyBmaWx0ZXI9InVybCgjYjdnKSIgc3Ryb2tlPSIjM2ZmMGZmIiBzdHJva2Utd2lkdGg9IjIuNiIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgc3Ryb2tlLWxpbmVqb2luPSJtaXRlciI+CjxwYXRoIGQ9Im0yNC41IDI3LjUgNSA0LjMtNSA0LjMiLz4KPC9nPgo8cmVjdCB4PSIzMS42IiB5PSIzNi40IiB3aWR0aD0iNS42IiBoZWlnaHQ9IjYuNCIgZmlsbD0iI2ZmMmU4OCIgZmlsdGVyPSJ1cmwoI2I3ZykiLz4KPHBhdGggZD0iTTIyLjUgMjIuNWg5TTIyLjUgNDVoNE0yOCA0NWg5IiBzdHJva2U9IiMzZmYwZmYiIHN0cm9rZS13aWR0aD0iLjUiIG9wYWNpdHk9Ii40NSIvPgo8L2c+Cjwvc3ZnPgo=`,c_=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20320%20320'%20width='320'%20height='320'%3e%3c!--%20The%20net%20map:%20a%20megacity%20street%20grid%20as%20a%20wireframe,%20tiled%20behind%20the%20dependency%20graph.%20--%3e%3crect%20width='320'%20height='320'%20fill='%23f1effa'/%3e%3cpath%20d='M0%200V320'%20stroke='%2300667a'%20stroke-width='1.2'%20opacity='0.32'/%3e%3cpath%20d='M58%200V320'%20stroke='%2300667a'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M96%200V320'%20stroke='%2300667a'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M150%200V320'%20stroke='%2300667a'%20stroke-width='1.2'%20opacity='0.32'/%3e%3cpath%20d='M212%200V320'%20stroke='%2300667a'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M248%200V320'%20stroke='%2300667a'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M290%200V320'%20stroke='%2300667a'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M0%200H320'%20stroke='%2300667a'%20stroke-width='1.2'%20opacity='0.32'/%3e%3cpath%20d='M0%2044H320'%20stroke='%2300667a'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M0%20110H320'%20stroke='%2300667a'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M0%20148H320'%20stroke='%2300667a'%20stroke-width='1.2'%20opacity='0.32'/%3e%3cpath%20d='M0%20196H320'%20stroke='%2300667a'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M0%20262H320'%20stroke='%2300667a'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M0%20300H320'%20stroke='%2300667a'%20stroke-width='0.6'%20opacity='0.18'/%3e%3crect%20x='4'%20y='4'%20width='50'%20height='36'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='4'%20y='114'%20width='50'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='4'%20y='152'%20width='50'%20height='40'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='4'%20y='266'%20width='50'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='62'%20y='114'%20width='30'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='100'%20y='4'%20width='46'%20height='36'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='100'%20y='152'%20width='46'%20height='40'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='100'%20y='266'%20width='46'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='154'%20y='48'%20width='54'%20height='58'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='154'%20y='114'%20width='54'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='216'%20y='114'%20width='28'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='216'%20y='152'%20width='28'%20height='40'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='216'%20y='266'%20width='28'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='252'%20y='4'%20width='34'%20height='36'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='252'%20y='48'%20width='34'%20height='58'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='252'%20y='114'%20width='34'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='294'%20y='4'%20width='22'%20height='36'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='294'%20y='48'%20width='22'%20height='58'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='294'%20y='152'%20width='22'%20height='40'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='294'%20y='200'%20width='22'%20height='58'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='294'%20y='266'%20width='22'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3cpath%20d='M0%20230L90%20140M90%20140H150L320%20-30M0%20550'%20stroke='%23b80f62'%20stroke-width='0.8'%20opacity='0.28'/%3e%3ccircle%20cx='0'%20cy='110'%20r='1.8'%20fill='%23b80f62'%20opacity='0.7'/%3e%3ccircle%20cx='96'%20cy='196'%20r='1.8'%20fill='%2300667a'%20opacity='0.7'/%3e%3ccircle%20cx='290'%20cy='148'%20r='1.8'%20fill='%2300667a'%20opacity='0.7'/%3e%3ccircle%20cx='58'%20cy='110'%20r='1.8'%20fill='%23b80f62'%20opacity='0.7'/%3e%3ccircle%20cx='58'%20cy='110'%20r='1.8'%20fill='%2300667a'%20opacity='0.7'/%3e%3ccircle%20cx='96'%20cy='110'%20r='1.8'%20fill='%2300667a'%20opacity='0.7'/%3e%3ccircle%20cx='150'%20cy='196'%20r='1.8'%20fill='%23b80f62'%20opacity='0.7'/%3e%3ccircle%20cx='58'%20cy='300'%20r='1.8'%20fill='%2300667a'%20opacity='0.7'/%3e%3ccircle%20cx='150'%20cy='300'%20r='1.8'%20fill='%2300667a'%20opacity='0.7'/%3e%3c/svg%3e`,l_=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20320%20320'%20width='320'%20height='320'%3e%3c!--%20The%20net%20map:%20a%20megacity%20street%20grid%20as%20a%20wireframe,%20tiled%20behind%20the%20dependency%20graph.%20--%3e%3crect%20width='320'%20height='320'%20fill='%2307060f'/%3e%3cpath%20d='M0%200V320'%20stroke='%233ff0ff'%20stroke-width='1.2'%20opacity='0.32'/%3e%3cpath%20d='M58%200V320'%20stroke='%233ff0ff'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M96%200V320'%20stroke='%233ff0ff'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M150%200V320'%20stroke='%233ff0ff'%20stroke-width='1.2'%20opacity='0.32'/%3e%3cpath%20d='M212%200V320'%20stroke='%233ff0ff'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M248%200V320'%20stroke='%233ff0ff'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M290%200V320'%20stroke='%233ff0ff'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M0%200H320'%20stroke='%233ff0ff'%20stroke-width='1.2'%20opacity='0.32'/%3e%3cpath%20d='M0%2044H320'%20stroke='%233ff0ff'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M0%20110H320'%20stroke='%233ff0ff'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M0%20148H320'%20stroke='%233ff0ff'%20stroke-width='1.2'%20opacity='0.32'/%3e%3cpath%20d='M0%20196H320'%20stroke='%233ff0ff'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M0%20262H320'%20stroke='%233ff0ff'%20stroke-width='0.6'%20opacity='0.18'/%3e%3cpath%20d='M0%20300H320'%20stroke='%233ff0ff'%20stroke-width='0.6'%20opacity='0.18'/%3e%3crect%20x='4'%20y='4'%20width='50'%20height='36'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='4'%20y='114'%20width='50'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='4'%20y='152'%20width='50'%20height='40'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='4'%20y='266'%20width='50'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='62'%20y='114'%20width='30'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='100'%20y='4'%20width='46'%20height='36'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='100'%20y='152'%20width='46'%20height='40'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='100'%20y='266'%20width='46'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='154'%20y='48'%20width='54'%20height='58'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='154'%20y='114'%20width='54'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='216'%20y='114'%20width='28'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='216'%20y='152'%20width='28'%20height='40'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='216'%20y='266'%20width='28'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='252'%20y='4'%20width='34'%20height='36'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='252'%20y='48'%20width='34'%20height='58'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='252'%20y='114'%20width='34'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='294'%20y='4'%20width='22'%20height='36'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='294'%20y='48'%20width='22'%20height='58'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='294'%20y='152'%20width='22'%20height='40'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='294'%20y='200'%20width='22'%20height='58'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3crect%20x='294'%20y='266'%20width='22'%20height='30'%20stroke='%235a4bb0'%20stroke-width='0.6'%20opacity='0.35'/%3e%3cpath%20d='M0%20230L90%20140M90%20140H150L320%20-30M0%20550'%20stroke='%23ff2e88'%20stroke-width='0.8'%20opacity='0.28'/%3e%3ccircle%20cx='0'%20cy='110'%20r='1.8'%20fill='%23ff2e88'%20opacity='0.7'/%3e%3ccircle%20cx='96'%20cy='196'%20r='1.8'%20fill='%233ff0ff'%20opacity='0.7'/%3e%3ccircle%20cx='290'%20cy='148'%20r='1.8'%20fill='%233ff0ff'%20opacity='0.7'/%3e%3ccircle%20cx='58'%20cy='110'%20r='1.8'%20fill='%23ff2e88'%20opacity='0.7'/%3e%3ccircle%20cx='58'%20cy='110'%20r='1.8'%20fill='%233ff0ff'%20opacity='0.7'/%3e%3ccircle%20cx='96'%20cy='110'%20r='1.8'%20fill='%233ff0ff'%20opacity='0.7'/%3e%3ccircle%20cx='150'%20cy='196'%20r='1.8'%20fill='%23ff2e88'%20opacity='0.7'/%3e%3ccircle%20cx='58'%20cy='300'%20r='1.8'%20fill='%233ff0ff'%20opacity='0.7'/%3e%3ccircle%20cx='150'%20cy='300'%20r='1.8'%20fill='%233ff0ff'%20opacity='0.7'/%3e%3c/svg%3e`,u_=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3c!--%20The%20netrunner:%20a%20terminal%20window%20with%20a%20prompt%20and%20a%20block%20cursor,%20in%20neon.%20--%3e%3crect%20x='1.5'%20y='3.5'%20width='21'%20height='17'%20stroke='%233ff0ff'%20stroke-width='1.2'/%3e%3cpath%20d='M1.5%207.5h21'%20stroke='%233ff0ff'%20stroke-width='1'/%3e%3crect%20x='3'%20y='5'%20width='1.5'%20height='1.2'%20fill='%23ff2e88'/%3e%3crect%20x='5.5'%20y='5'%20width='1.5'%20height='1.2'%20fill='%23f2ff4a'/%3e%3cpath%20d='m5%2011%203%202.5-3%202.5'%20stroke='%233ff0ff'%20stroke-width='1.6'%20stroke-linecap='square'/%3e%3crect%20x='10'%20y='14.5'%20width='4'%20height='3'%20fill='%23ff2e88'/%3e%3c/svg%3e`,d_=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='0'%20height='0'%3e%3csymbol%20id='neon-corner'%20viewBox='0%200%208%208'%20preserveAspectRatio='none'%3e%3cpath%20d='M8%202.6H5.4Q2.6%202.6%202.6%205.4V8'%20fill='none'%20stroke='currentColor'%20stroke-width='2.8'%20stroke-linecap='butt'%20stroke-linejoin='round'/%3e%3cpath%20d='M8%202.6H5.4Q2.6%202.6%202.6%205.4V8'%20fill='none'%20stroke='var(--mark-detail)'%20stroke-width='0.9'%20stroke-linecap='butt'%20stroke-linejoin='round'/%3e%3c/symbol%3e%3csymbol%20id='neon-edge'%20viewBox='0%200%208%208'%20preserveAspectRatio='none'%3e%3crect%20x='0'%20y='1.2'%20width='8'%20height='2.8'%20rx='1.2'%20fill='currentColor'/%3e%3crect%20x='0'%20y='2.1'%20width='8'%20height='0.9'%20fill='var(--mark-detail)'/%3e%3c/symbol%3e%3csymbol%20id='circuit-corner'%20viewBox='0%200%208%208'%20preserveAspectRatio='none'%3e%3cpath%20d='M8%202.5H2.5V8'%20fill='none'%20stroke='currentColor'%20stroke-width='1'%20stroke-linecap='butt'%20stroke-linejoin='round'/%3e%3ccircle%20cx='2.5'%20cy='2.5'%20r='1.7'%20fill='var(--mark-detail)'%20stroke='currentColor'%20stroke-width='1'/%3e%3ccircle%20cx='2.5'%20cy='2.5'%20r='0.6'%20fill='currentColor'/%3e%3c/symbol%3e%3csymbol%20id='circuit-edge'%20viewBox='0%200%208%208'%20preserveAspectRatio='none'%3e%3crect%20x='0'%20y='2'%20width='8'%20height='1'%20fill='currentColor'/%3e%3crect%20x='4'%20y='3'%20width='1'%20height='3'%20fill='currentColor'/%3e%3ccircle%20cx='4.5'%20cy='6'%20r='1'%20fill='currentColor'/%3e%3ccircle%20cx='4.5'%20cy='6'%20r='0.4'%20fill='var(--mark-detail)'/%3e%3c/symbol%3e%3csymbol%20id='hazard-corner'%20viewBox='0%200%208%208'%20preserveAspectRatio='none'%3e%3crect%20x='0'%20y='0'%20width='8'%20height='5'%20fill='var(--mark-detail)'/%3e%3cpath%20d='M-5%205H-3L0%200H-2Z'%20fill='currentColor'/%3e%3cpath%20d='M-1%205H1L4%200H2Z'%20fill='currentColor'/%3e%3cpath%20d='M3%205H5L8%200H6Z'%20fill='currentColor'/%3e%3cpath%20d='M7%205H9L12%200H10Z'%20fill='currentColor'/%3e%3cg%20transform='matrix(0%201%201%200%200%200)'%3e%3crect%20x='0'%20y='0'%20width='8'%20height='5'%20fill='var(--mark-detail)'/%3e%3cpath%20d='M-5%205H-3L0%200H-2Z'%20fill='currentColor'/%3e%3cpath%20d='M-1%205H1L4%200H2Z'%20fill='currentColor'/%3e%3cpath%20d='M3%205H5L8%200H6Z'%20fill='currentColor'/%3e%3cpath%20d='M7%205H9L12%200H10Z'%20fill='currentColor'/%3e%3c/g%3e%3crect%20x='0'%20y='0'%20width='5.6'%20height='5.6'%20fill='currentColor'/%3e%3crect%20x='1.2'%20y='1.2'%20width='3.2'%20height='3.2'%20fill='var(--mark-detail)'/%3e%3c/symbol%3e%3csymbol%20id='hazard-edge'%20viewBox='0%200%208%208'%20preserveAspectRatio='none'%3e%3crect%20x='0'%20y='0'%20width='8'%20height='5'%20fill='var(--mark-detail)'/%3e%3cpath%20d='M-5%205H-3L0%200H-2Z'%20fill='currentColor'/%3e%3cpath%20d='M-1%205H1L4%200H2Z'%20fill='currentColor'/%3e%3cpath%20d='M3%205H5L8%200H6Z'%20fill='currentColor'/%3e%3cpath%20d='M7%205H9L12%200H10Z'%20fill='currentColor'/%3e%3c/symbol%3e%3csymbol%20id='barcode-corner'%20viewBox='0%200%208%208'%20preserveAspectRatio='none'%3e%3crect%20x='0.2'%20y='0'%20width='1'%20height='5'%20fill='currentColor'/%3e%3crect%20x='2'%20y='0'%20width='0.6'%20height='5'%20fill='currentColor'/%3e%3crect%20x='3.2'%20y='0'%20width='1.6'%20height='5'%20fill='currentColor'/%3e%3crect%20x='5.4'%20y='0'%20width='0.6'%20height='5'%20fill='currentColor'/%3e%3crect%20x='6.6'%20y='0'%20width='1'%20height='5'%20fill='currentColor'/%3e%3crect%20x='0'%20y='5.8'%20width='8'%20height='0.8'%20fill='var(--mark-detail)'/%3e%3cg%20transform='matrix(0%201%201%200%200%200)'%3e%3crect%20x='0.2'%20y='0'%20width='1'%20height='5'%20fill='currentColor'/%3e%3crect%20x='2'%20y='0'%20width='0.6'%20height='5'%20fill='currentColor'/%3e%3crect%20x='3.2'%20y='0'%20width='1.6'%20height='5'%20fill='currentColor'/%3e%3crect%20x='5.4'%20y='0'%20width='0.6'%20height='5'%20fill='currentColor'/%3e%3crect%20x='6.6'%20y='0'%20width='1'%20height='5'%20fill='currentColor'/%3e%3crect%20x='0'%20y='5.8'%20width='8'%20height='0.8'%20fill='var(--mark-detail)'/%3e%3c/g%3e%3crect%20x='0'%20y='0'%20width='6'%20height='6'%20fill='currentColor'/%3e%3crect%20x='1'%20y='1'%20width='1.6'%20height='1.6'%20fill='var(--mark-detail)'/%3e%3crect%20x='3.4'%20y='1'%20width='1.6'%20height='1.6'%20fill='var(--mark-detail)'/%3e%3crect%20x='1'%20y='3.4'%20width='1.6'%20height='1.6'%20fill='var(--mark-detail)'/%3e%3c/symbol%3e%3csymbol%20id='barcode-edge'%20viewBox='0%200%208%208'%20preserveAspectRatio='none'%3e%3crect%20x='0.2'%20y='0'%20width='1'%20height='5'%20fill='currentColor'/%3e%3crect%20x='2'%20y='0'%20width='0.6'%20height='5'%20fill='currentColor'/%3e%3crect%20x='3.2'%20y='0'%20width='1.6'%20height='5'%20fill='currentColor'/%3e%3crect%20x='5.4'%20y='0'%20width='0.6'%20height='5'%20fill='currentColor'/%3e%3crect%20x='6.6'%20y='0'%20width='1'%20height='5'%20fill='currentColor'/%3e%3crect%20x='0'%20y='5.8'%20width='8'%20height='0.8'%20fill='var(--mark-detail)'/%3e%3c/symbol%3e%3c/svg%3e`,f_=new URL(`skyline-CZ4WZ55S.webp`,import.meta.url).href,p_=e=>new URL(Object.assign({"../../themes/sprawl/assets/black-ice.svg":i_,"../../themes/sprawl/assets/dead-drop.webp":a_,"../../themes/sprawl/assets/jack-in.webp":o_,"../../themes/sprawl/assets/mark.svg":s_,"../../themes/sprawl/assets/net-map-light.svg":c_,"../../themes/sprawl/assets/net-map.svg":l_,"../../themes/sprawl/assets/netrunner.svg":u_,"../../themes/sprawl/assets/series.svg":d_,"../../themes/sprawl/assets/skyline.webp":f_})[`../../themes/sprawl/assets/${e}`],import.meta.url).href;function m_(){return(0,$.jsx)(`span`,{className:`sprawl-notch`,"aria-hidden":`true`})}function h_({children:e}){let t=f();return(0,$.jsxs)(`div`,{className:`bubble bubble--agent sprawl-term`,children:[(0,$.jsxs)(`p`,{className:`sprawl-term__bar`,children:[(0,$.jsx)(`img`,{src:p_(`netrunner.svg`),alt:``,width:20,height:20,loading:`lazy`,decoding:`async`}),t(`agent`,`Agent`)]}),(0,$.jsx)(`div`,{className:`sprawl-term__body`,children:e})]})}var g_={Panel:({children:e})=>(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(m_,{}),e]}),Header:({children:e})=>(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(m_,{}),e]}),ChatMessage:({from:e,children:t})=>e===`agent`?(0,$.jsx)(h_,{children:t}):(0,$.jsx)(`div`,{className:`bubble bubble--you`,children:t}),EmptyState:({message:e,children:t})=>(0,$.jsxs)(`div`,{className:`skin-empty skin-empty--art sprawl-art`,children:[(0,$.jsx)(`img`,{src:p_(`dead-drop.webp`),alt:``,width:240,height:160,loading:`lazy`,decoding:`async`}),(0,$.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,$.jsxs)(`div`,{className:`skin-loading skin-empty--art sprawl-art sprawl-loading`,role:`status`,children:[(0,$.jsx)(`img`,{src:p_(`jack-in.webp`),alt:``,width:240,height:160,loading:`lazy`,decoding:`async`}),(0,$.jsx)(`p`,{children:e})]})},__=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20width='32'%20height='32'%3e%3ccircle%20cx='16'%20cy='16'%20r='14'%20fill='%230a1222'%20stroke='%2336d6ff'%20stroke-width='1.5'/%3e%3ccircle%20cx='16'%20cy='16'%20r='9.5'%20fill='none'%20stroke='%237fe3ff'%20stroke-width='1'%20stroke-dasharray='3%202.2'/%3e%3ccircle%20cx='16'%20cy='16'%20r='4.5'%20fill='%2336d6ff'/%3e%3ccircle%20cx='16'%20cy='16'%20r='2'%20fill='%23e6f1ff'/%3e%3c/svg%3e`,v_=new URL(`empty-sector-amtiZ3_V.webp`,import.meta.url).href,y_=new URL(`lightspeed-LxKj3vD3.svg`,import.meta.url).href,b_=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSI+CjwhLS0gU3RhcnNoaXAncyBiYWRnZTogYSByaXZldGVkIGh1bGwgcGxhdGUsIHRoZSBwYWdlIGEgY29uc29sZSBzY3JlZW4gd2l0aCBhIGdsb3dpbmcgcHJvbXB0LiBUaGUgYmFkZ2UncyBzaWxob3VldHRlLCBza2lubmVkLiAtLT4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0iYjZzIiB4MT0iMCIgeTE9IjAiIHgyPSIxIiB5Mj0iMSI+CjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzRhNWY3ZCIvPgo8c3RvcCBvZmZzZXQ9Ii41NSIgc3RvcC1jb2xvcj0iIzI1MzI0YSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxNDFjMmMiLz4KPC9saW5lYXJHcmFkaWVudD4KPGNsaXBQYXRoIGlkPSJiNmMiPgo8cGF0aCBkPSJNMTggNkg0Mkw1OCAyMlY0NkExMiAxMiAwIDAgMSA0NiA1OEgxOEExMiAxMiAwIDAgMSA2IDQ2VjE4QTEyIDEyIDAgMCAxIDE4IDZaIi8+CjwvY2xpcFBhdGg+CjxmaWx0ZXIgaWQ9ImI2ZyIgeD0iLTQwJSIgeT0iLTQwJSIgd2lkdGg9IjE4MCUiIGhlaWdodD0iMTgwJSI+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEuMSIgcmVzdWx0PSJiIi8+CjxmZU1lcmdlPgo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lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+CjxwYXRoIGQ9Im0yNC41IDI3LjUgNSA0LjMtNSA0LjMiLz4KPHBhdGggZD0iTTMxLjggNDBoNi4yIi8+CjwvZz4KPHBhdGggZD0iTTIyLjUgMjIuNWgxME0yMi41IDQ0LjJoMTciIHN0cm9rZT0iIzM2ZDZmZiIgc3Ryb2tlLXdpZHRoPSIuNSIgb3BhY2l0eT0iLjQ1Ii8+CjwvZz4KPC9zdmc+Cg==`,x_=new URL(`nebula-t0QcaA3K.webp`,import.meta.url).href,S_=new URL(`series-CRHwxbpo.svg`,import.meta.url).href,C_=new URL(`star-chart-Chk7Xt5X.svg`,import.meta.url).href,w_=new URL(`starfield-BM71b4P5.svg`,import.meta.url).href,T_=e=>new URL(Object.assign({"../../themes/starship/assets/computer.svg":__,"../../themes/starship/assets/empty-sector.webp":v_,"../../themes/starship/assets/lightspeed.svg":y_,"../../themes/starship/assets/mark.svg":b_,"../../themes/starship/assets/nebula.webp":x_,"../../themes/starship/assets/series.svg":S_,"../../themes/starship/assets/star-chart.svg":C_,"../../themes/starship/assets/starfield.svg":w_})[`../../themes/starship/assets/${e}`],import.meta.url).href;function E_(){return(0,$.jsxs)(`span`,{className:`hud-corners`,"aria-hidden":`true`,children:[(0,$.jsx)(`i`,{className:`hud-corner hud-corner--tl`}),(0,$.jsx)(`i`,{className:`hud-corner hud-corner--tr`}),(0,$.jsx)(`i`,{className:`hud-corner hud-corner--bl`}),(0,$.jsx)(`i`,{className:`hud-corner hud-corner--br`})]})}function D_({children:e}){let t=f();return(0,$.jsxs)(`div`,{className:`bubble bubble--agent starship-computer`,children:[(0,$.jsxs)(`p`,{className:`starship-voice`,children:[(0,$.jsx)(`img`,{src:T_(`computer.svg`),alt:``,width:24,height:24,loading:`lazy`,decoding:`async`}),t(`agent`,`Agent`)]}),e]})}var O_={Panel:({children:e})=>(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(E_,{}),e]}),Header:({children:e})=>(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(E_,{}),e]}),ChatMessage:({from:e,children:t})=>e===`agent`?(0,$.jsx)(D_,{children:t}):(0,$.jsx)(`div`,{className:`bubble bubble--you`,children:t}),EmptyState:({message:e,children:t})=>(0,$.jsxs)(`div`,{className:`skin-empty skin-empty--art starship-empty`,children:[(0,$.jsx)(`img`,{src:T_(`empty-sector.webp`),alt:``,width:240,height:160,loading:`lazy`,decoding:`async`}),(0,$.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,$.jsxs)(`div`,{className:`skin-loading skin-empty--art starship-jump`,role:`status`,children:[(0,$.jsx)(`img`,{src:T_(`lightspeed.svg`),alt:``,width:240,height:120,loading:`lazy`,decoding:`async`}),(0,$.jsx)(`p`,{children:e})]})},k_={Card:({children:e})=>e,Panel:({children:e})=>e,Avatar:Ym,ChatMessage:({from:e,children:t})=>(0,$.jsx)(`div`,{className:`bubble bubble--${e}`,children:t}),EmptyState:({message:e,children:t})=>(0,$.jsxs)(`div`,{className:`skin-empty`,children:[(0,$.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,$.jsx)(`p`,{className:`skin-loading`,role:`status`,children:e}),Header:({children:e})=>e},A_={crate:Qm,harvest:jh,starship:O_,realm:r_,sprawl:g_,frontier:fh,overworld:$h},j_=e=>({...k_,...A_[e]}),M_=(0,j.createContext)(k_),N_=M_.Provider,P_=()=>(0,j.useContext)(M_),F_=1500,I_=`a scripted preview, not a model`,L_=`No agent is set up yet, so nothing can answer questions.`,R_=`Toil UI reasons with the subscription you already have, through one of three adapters: Claude (the Claude Agent SDK, @anthropic-ai/claude-agent-sdk), GitHub Copilot (@github/copilot-sdk) or Codex (@openai/codex-sdk).`,z_=`Install the one your organization approves under Settings, AI agent, and choose it there, or pick an installed one for this chat from Answered by, above. The dashboards work without one.`,B_=`analyze`,V_=/\[\[([^\]]+)\]\]/g,H_=`cell:`,U_=e=>e.startsWith(H_);function W_(e){let t=new Set;for(let n of e)for(let e of n.text.matchAll(V_))U_(e[1])||t.add(e[1]);return[...t]}function G_(e){let t=[],n=0;for(let r of e.matchAll(V_))r.index>n&&t.push({text:e.slice(n,r.index)}),t.push(U_(r[1])?{cell:r[1].slice(5)}:{cite:r[1]}),n=r.index+r[0].length;return n<e.length&&t.push({text:e.slice(n)}),t}var K_=(e,t)=>e.length<=t?e:`${e.slice(0,t-1)}…`,q_=(e,t)=>K_(e.replace(/[\u0000-\u001f\u007f]+/g,` `).replace(/\s+/g,` `).trim(),t),J_=e=>`${e.column}/${e.row}`;function Y_(e,t){let n=[],r=!1;for(let[e,i]of t.rows.entries())for(let[a,o]of t.columns.entries()){if(n.length>=400){r=!0;continue}let s=t.cells[e][a];n.push({column:q_(o.key,120),row:q_(i.key,120),columnLabel:q_(o.label,120),rowLabel:q_(i.label,120),items:s.items.slice(0,20),count:s.items.length})}let i=t.coverage.notes.map(e=>q_(e,600));r&&i.push(`Only the first 400 cells of the table can be cited.`);let a=Gm(t);return{kind:`chart`,title:q_(e,120)||`Chart`,spec:t.spec,figuresMarkdown:a.length<=12e3?a:`${a.slice(0,11960)}\n(cut: the table was too long)\n`,notable:t.notable.slice(0,20).map(e=>q_(e.message,600)),coverage:i.slice(0,20),cells:n}}var X_=`My question:`;function Z_(e){let t=[`# ${e.title}`,``,X_,``,`## Figures`,``,e.figuresMarkdown.trimEnd(),``];e.coverage.length&&t.push(`## What was not read`,``,...e.coverage.map(e=>`- ${e}`),``),e.notable.length&&t.push(`## What moved`,``,...e.notable.map(e=>`- ${e}`),``);let n=e.cells.filter(e=>e.count>0);if(n.length){t.push(`## Items behind each cell`,``);for(let e of n)t.push(`- ${e.rowLabel}, ${e.columnLabel} (${e.count}): ${e.items.join(`, `)}${e.count>e.items.length?`, and ${e.count-e.items.length} more`:``}`);t.push(``)}return`${t.join(`
13
+ `).trimEnd()}\n`}var Q_=(0,j.createContext)(null);function $_({id:e,withTitle:t=!1}){let{byId:n,prById:r,toilProject:i}=Gf(),a=(0,j.useContext)(Q_),o=n.get(e),s=o?void 0:r?.get(e);return s?(0,$.jsx)(ev,{change:s,withTitle:t}):o?(0,$.jsxs)(`a`,{href:a?a(i.name,e):l(i.name,e),className:`item-link`,children:[(0,$.jsxs)(`span`,{className:`key`,children:[(0,$.jsx)(`span`,{className:`source`,children:p(o.source.area)}),` `,_(o)]}),t&&(0,$.jsxs)(`span`,{className:`title`,children:[` `,o.title]})]}):(0,$.jsx)(`code`,{className:`missing`,children:e})}function ev({change:e,withTitle:t=!1}){let n=(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`span`,{className:`key`,children:[(0,$.jsx)(`span`,{className:`source`,children:p(e.source.area)}),` `,b(e.id)]}),t&&(0,$.jsxs)(`span`,{className:`title`,children:[` `,e.title]})]});return e.url?(0,$.jsx)(`a`,{href:e.url,className:`item-link`,children:n}):(0,$.jsx)(`span`,{className:`item-link`,children:n})}function tv({text:e,chips:t=!1,cells:n,onCellCitation:r}){return(0,$.jsx)($.Fragment,{children:G_(e).map((e,i)=>`cite`in e?t?(0,$.jsx)(ov,{id:e.cite,detail:!0},i):(0,$.jsx)($_,{id:e.cite},i):`cell`in e?(0,$.jsx)(nv,{cite:e.cell,view:n,onPress:r},i):(0,$.jsx)(`span`,{children:e.text},i))})}function nv({cite:e,view:t,onPress:n}){let r=t?.cells.find(t=>J_(t)===e);if(!r)return(0,$.jsx)(`code`,{className:`missing`,children:`cell:${e}`});let i=`${r.rowLabel}, ${r.columnLabel}`,a=(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`ticket-chip__key`,children:r.rowLabel}),` `,(0,$.jsx)(`span`,{className:`ticket-chip__title`,children:r.columnLabel})]});return n?(0,$.jsx)(`button`,{type:`button`,className:`ticket-chip`,"data-cell-cite":e,title:`Chart cell: ${i}`,"aria-label":`Chart cell: ${i}`,onClick:()=>n(r.column,r.row),children:a}):(0,$.jsx)(`span`,{className:`ticket-chip`,"data-cell-cite":e,title:`Chart cell: ${i}`,"aria-label":`Chart cell: ${i}`,children:a})}var rv=(e,t=32)=>e.length<=t?e:`${e.slice(0,t-1).trimEnd()}…`,iv=e=>e.charAt(0)+e.slice(1).toLowerCase().replace(/_/g,` `);function av(e,t,n){return e?[`${sv(e,n)}, ${e.status??O[e.statusCategory]}${e.status&&e.status.toLowerCase()!==O[e.statusCategory].toLowerCase()?` (${O[e.statusCategory]})`:``}`,`Assignee: ${T(e.assignee)}`,`Estimate: ${d(e)}`,...e.iteration?.name?[`Sprint: ${e.iteration.name}`]:[],...e.updated?[`Updated ${S(e.updated)}`]:[]]:t?[`Pull request in ${t.repo}, ${iv(t.state)}`,`Author: ${T(t.author)}`,...t.checks?[`Checks: ${iv(t.checks)}`]:[],...t.workItems.length?[`Carries ${t.workItems.length} work ${t.workItems.length===1?`item`:`items`}`]:[]]:[]}function ov({id:e,detail:t=!1}){let{byId:n,prById:r,toilProject:i}=Gf(),a=n.get(e),o=a?void 0:r?.get(e);if(!a&&!o)return(0,$.jsx)(`code`,{className:`missing`,children:e});let s=a?`${p(a.source.area)} ${_(a)}`:b(e),c=a?a.title:o.title,u=a?a.status??O[a.statusCategory]:iv(o.state),d=a?a.statusCategory.toLowerCase():`pr`,f=(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`ticket-chip__key`,children:s}),` `,(0,$.jsx)(`span`,{className:`ticket-chip__title`,children:c}),(0,$.jsx)(`span`,{className:`sr-only`,children:`, `}),(0,$.jsx)(`span`,{className:`ticket-chip__status ticket-chip__status--${d}`,children:u})]}),m=`${s} ${c}, ${u}`,h=a?l(i.name,e):o.url;if(t&&h){let t=a?`${x(a.source.area)} ${_(a)}`:s;return(0,$.jsxs)(Td,{delay:300,closeDelay:150,children:[(0,$.jsxs)(La,{className:`cite-link`,href:h,"data-cite":e,children:[t,` `,rv(c),(0,$.jsxs)(`span`,{className:`sr-only`,children:[`, `,u]})]}),(0,$.jsxs)(Ed,{className:`cite-tooltip`,offset:6,children:[(0,$.jsxs)(`strong`,{className:`cite-tooltip__title`,children:[s,` `,c]}),(0,$.jsxs)(`span`,{className:`cite-tooltip__line`,children:[a?`${p(a.source.area)}, `:``,u]}),av(a,o).map(e=>(0,$.jsx)(`span`,{className:`cite-tooltip__line`,children:e},e))]})]})}return h?(0,$.jsx)(`a`,{className:`ticket-chip`,href:h,title:m,"data-truncate":``,children:f}):(0,$.jsx)(`span`,{className:`ticket-chip`,title:m,"data-truncate":``,children:f})}function sv(e,t){let n=e.type.charAt(0)+e.type.slice(1).toLowerCase(),r=e.typeName&&e.typeName.toLowerCase()!==n.toLowerCase()?`${e.typeName} (${n})`:n;return t?.terms?.epic&&e.type===`EPIC`?g(t,`epic`,e.typeName??n):r}function cv({message:e,action:t,help:n}){let{EmptyState:r}=P_();return(0,$.jsx)(r,{message:e,children:(0,$.jsxs)(`p`,{className:`empty-action`,"data-empty-action":``,children:[t,n&&(0,$.jsx)(Kg,{topic:n})]})})}function lv({href:e,children:t,edit:n=!1}){return(0,$.jsxs)(`a`,{className:`btn btn--small empty-action__link`,href:e,children:[n&&(0,$.jsx)(u,{size:14,className:`empty-action__pencil`}),t]})}function uv({onPress:e,children:t,disabled:n=!1}){return(0,$.jsx)(Ka,{className:`btn btn--small`,onPress:e,isDisabled:n,children:t})}function dv({toilProject:e,jira:t}){return(0,$.jsx)(lv,{edit:!0,href:m(e,t?`find-fields`:`fields`),children:`Name the points field`})}function fv({sync:e,children:t}){return e?(0,$.jsx)(uv,{onPress:e,children:`Sync now`}):(0,$.jsx)($.Fragment,{children:t})}function pv({toilProject:e,sync:t}){return(0,$.jsx)(fv,{sync:t,children:(0,$.jsx)(lv,{edit:!0,href:m(e,`sources`),children:`Check the Toil project's sources`})})}function mv(e){let{Avatar:t}=P_();return(0,$.jsx)(t,{...e})}function hv({category:e,status:t,inColumn:n=!1}){let r=O[e];return(0,$.jsxs)(`span`,{className:`chip chip--${e.toLowerCase()}`,children:[t??r,!n&&t&&t.toLowerCase()!==r.toLowerCase()&&(0,$.jsxs)(`span`,{className:`chip-cat`,children:[` · `,r]})]})}var gv={blocked:`M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM3.8 12.2l8.4-8.4`,"failing-build":`M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM5.5 5.5l5 5m0-5-5 5`,aging:`M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM8 4.5V8l2.5 1.5`,"deployed-not-closed":`M8 13V3m-4 4 4-4 4 4M3 14h10`,carried:`M3 9a5 5 0 0 1 9-3m0-3v3H9M13 7v6H3`,"pr-no-build":`M5 3v10M5 3a1.5 1.5 0 1 0 0 .01M11 13V7a2 2 0 0 0-2-2H7m0 0 1.5-1.5M7 5l1.5 1.5`,stale:`M4 2h8M4 14h8M5 2c0 4 6 4 6 6s-6 2-6 6M11 2c0 4-6 4-6 6s6 2 6 6`,blocking:`M5.5 2h5L14 5.5v5L10.5 14h-5L2 10.5v-5ZM5 8h6`,"built-not-deployed":`M2.5 5 8 2l5.5 3v6L8 14l-5.5-3ZM2.5 5 8 8l5.5-3M8 8v6`,unestimated:`M6 6a2 2 0 1 1 3 1.7c-.6.4-1 .8-1 1.5V10M8 12.5v.5`,added:`M8 3v10M3 8h10`};function _v({insights:e,max:t=3,compact:n=!1,titles:r}){let i=h();if(!e.length)return null;let a=Vf(e),o=a.slice(0,t),s=a.slice(t);return(0,$.jsxs)(`ul`,{className:`insight-chips${n?` insight-chips--compact`:``}`,"aria-label":`Insights`,children:[o.map(e=>{let t=vv(e,i.on);return n?(0,$.jsxs)(`li`,{className:`insight insight--icon insight--w${e.weight}`,title:bv(e,t,r),children:[(0,$.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`14`,height:`14`,"aria-hidden":`true`,focusable:`false`,children:(0,$.jsx)(`path`,{d:gv[e.code]})}),(0,$.jsx)(`span`,{className:`insight-word`,children:t})]},e.code):(0,$.jsx)(`li`,{className:`insight insight--w${e.weight}`,children:t},e.code)}),s.length>0&&(0,$.jsxs)(`li`,{className:`insight insight--more`,...n?{title:s.map(e=>vv(e,i.on)).join(`, `)}:{},children:[`+`,s.length,` more`]})]})}var vv=(e,t=!1)=>{let n=t?yv[e.code]??Ff[e.code]:Ff[e.code];return e.insights.length>1?`${n} ${e.insights.length}`:n},yv={"pr-no-build":`Code review with no build`,aging:`Open a long time`};function bv(e,t,n){return e.insights.length===1?t:`${t}: ${e.insights.map(e=>e.text.replace(/\[\[(.+?)\]\]/g,(e,t)=>n?.get(t)?.title??t)).join(`; `)}`}function xv({of:e}){return(0,$.jsx)(`span`,{className:`outcome outcome--${e.outcome}`,children:e.state})}function Sv(e){let t=new Map(e.map(e=>[e.id,e])),n=new Map;for(let t of e)for(let e of t.links){let[r,i]=e.direction===`outward`?[t.id,e.target]:[e.target,t.id],[a,o]=e.type===`relates`&&r>i?[i,r]:[r,i],s=`${e.type}:${a}->${o}`;n.get(s)&&e.direction!==`outward`||n.set(s,{id:s,type:e.type,source:a,target:o,name:e.name})}let r=[];for(let t of e)t.links.length&&!r.includes(t.id)&&r.push(t.id);for(let e of n.values())for(let t of[e.source,e.target])r.includes(t)||r.push(t);let i=[...n.values()].filter(e=>e.type===`blocks`),a=new Map(r.map(e=>[e,0])),o=!1;for(let e=0;;e++){let t=!1;for(let e of i){let n=a.get(e.source)+1;n>a.get(e.target)&&(a.set(e.target,n),t=!0)}if(!t)break;if(e>=r.length){o=!0;break}}let s=e=>t.has(e)&&t.get(e).statusCategory!==`DONE`,c=new Map;return{nodes:r.map(e=>{let n=a.get(e),r=c.get(n)??0;return c.set(n,r+1),{id:e,known:t.has(e),rank:n,row:r,done:t.get(e)?.statusCategory===`DONE`,blocked:s(e)&&i.some(t=>t.target===e&&s(t.source)),blocking:s(e)&&i.some(t=>t.source===e&&s(t.target))}}),edges:[...n.values()],cycle:o}}var Cv={blocks:`blocks`,relates:`relates to`,duplicates:`duplicates`,implements:`implements`,other:`is linked to`};export{Jg as $,Ld as $n,q as $r,oh as $t,G_ as A,Ee as Ai,Wf as An,ss as Ar,zh as At,v_ as B,N as Bi,Nf as Bn,po as Br,Sh as Bt,B_ as C,Dt as Ci,tp as Cn,js as Cr,Kh as Ct,L_ as D,Se as Di,Zf as Dn,bs as Dr,Hh as Dt,z_ as E,H as Ei,Qf as En,Cs as Er,Uh as Et,C_ as F,ye as Fi,Bf as Fn,Wo as Fr,Ph as Ft,l_ as G,hf as Gn,Za as Gr,_h as Gt,f_ as H,A as Hi,Of as Hn,uo as Hr,bh as Ht,S_ as I,z as Ii,Uf as In,yo as Ir,Nh as It,o_ as J,uf as Jn,Ka as Jr,mh as Jt,c_ as K,df as Kn,Xa as Kr,gh as Kt,x_ as L,he as Li,kf as Ln,vo as Lr,Mh as Lt,j_ as M,B as Mi,qf as Mn,is as Mr,Lh as Mt,P_ as N,De as Ni,Ff as Nn,$o as Nr,Ih as Nt,I_ as O,Te as Oi,Xf as On,ys as Or,Vh as Ot,w_ as P,we as Pi,Hf as Pn,wo as Pr,Fh as Pt,qg as Q,gf as Qn,ya as Qr,sh as Qt,b_ as R,me as Ri,Pf as Rn,go as Rr,wh as Rt,Z_ as S,qt as Si,ip as Sn,kl as Sr,eg as St,R_ as T,G as Ti,Hp as Tn,Ts as Tr,Wh as Tt,d_ as U,Df as Un,lo as Ur,yh as Ut,__ as V,M as Vi,jf as Vn,fo as Vr,xh as Vt,u_ as W,mf as Wn,Qa as Wr,vh as Wt,i_ as X,pf as Xn,ka as Xr,lh as Xt,a_ as Y,cf as Yn,Fa as Yr,ph as Yt,Yg as Z,_f as Zn,Oa as Zr,ch as Zt,ev as _,wr as _i,gp as _n,Vu as _r,ag as _t,xv as a,ki as ai,eh as an,Md as ar,Hg as at,Y_ as b,Zn as bi,ap as bn,Fl as br,ng as bt,cv as c,Si as ci,Bm as cn,Ed as cr,yg as ct,dv as d,Rr as di,jm as dn,dd as dr,dg as dt,Zi as ei,ah as en,af as er,Kg as et,fv as f,zr as fi,pm as fn,qu as fr,ug as ft,$_ as g,Or as gi,Gp as gn,Uu as gr,og as gt,Q_ as h,Mr as hi,Up as hn,Fu as hr,sg as ht,_v as i,Gi as ii,th as in,Od as ir,Ug as it,N_ as j,xe as ji,Gf as jn,os as jr,Rh as jt,W_ as k,Ce as ki,Yf as kn,us as kr,Bh as kt,uv as l,_i as li,zm as ln,Td as lr,Sg as lt,tv as m,Nr as mi,cm as mn,Ku as mr,cg as mt,Sv as n,Vi as ni,rh as nn,zd as nr,Xg as nt,yv as o,Ei as oi,$m as on,kd as or,Ag as ot,pv as p,Pr as pi,dm as pn,Ju as pr,lg as pt,s_ as q,ff as qn,Ga as qr,hh as qt,mv as r,Ni as ri,nh as rn,Pd as rr,Wg as rt,hv as s,Ci as si,Lm as sn,jd as sr,vg as st,Cv as t,qi as ti,ih as tn,Bd as tr,Gg as tt,lv as u,ri as ui,Rm as un,ld as ur,fg as ut,ov as v,ur as vi,rp as vn,Lu as vr,ig as vt,F_ as w,U as wi,mp as wn,As as wr,Gh as wt,J_ as x,Yt as xi,cp as xn,Nl as xr,tg as xt,sv as y,$n as yi,sp as yn,Su as yr,rg as yt,y_ as z,R as zi,wf as zn,ho as zr,Ch as zt};