@imagile-dev/toil-ui 0.1.0-alpha.1 → 0.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +4 -6
- package/README.md +821 -29
- package/dist/app/assets/Graph-By9iJybf.js +7 -0
- package/dist/app/assets/candle-ledger-LHVvMHKk.webp +0 -0
- package/dist/app/assets/favicon-D8c5IAlv.svg +16 -0
- package/dist/app/assets/fredoka-latin-ext-600-normal-BExgZzUO.woff +0 -0
- package/dist/app/assets/fredoka-latin-ext-600-normal-GoyidTAB.woff2 +0 -0
- package/dist/app/assets/grenze-gotisch-latin-600-normal-C3H1tCTC.woff2 +0 -0
- package/dist/app/assets/grenze-gotisch-latin-600-normal-DwyVc51H.woff +0 -0
- package/dist/app/assets/grenze-gotisch-latin-800-normal-BIIxJnpI.woff2 +0 -0
- package/dist/app/assets/grenze-gotisch-latin-800-normal-DByO6Q7M.woff +0 -0
- package/dist/app/assets/index-DqhhMfsN.js +61 -0
- package/dist/app/assets/index-PfJo8IRH.css +1 -0
- package/dist/app/assets/mark-bSC__Aar.svg +188 -0
- package/dist/app/assets/theme-CpEaUF3v.css +1 -0
- package/dist/app/assets/theme-ZdVuuddo.css +1 -0
- package/dist/app/assets/theme-crXsh6Dv.css +1 -0
- package/dist/app/assets/vellum-DlU0Uxzz.webp +0 -0
- package/dist/app/assets/war-map-_sup_aJg.webp +0 -0
- package/dist/app/index.html +3 -3
- package/dist/server/toil-ui.js +18806 -6481
- package/package.json +6 -5
- package/dist/app/assets/Graph-IKubvexT.js +0 -7
- package/dist/app/assets/cinzel-decorative-latin-700-normal-CnX1aK6s.woff2 +0 -0
- package/dist/app/assets/cinzel-decorative-latin-700-normal-ov6XPGpn.woff +0 -0
- package/dist/app/assets/cinzel-decorative-latin-ext-700-normal-BaOC-94C.woff +0 -0
- package/dist/app/assets/cinzel-decorative-latin-ext-700-normal-Dul5pKgq.woff2 +0 -0
- package/dist/app/assets/cinzel-latin-600-normal-CH_LB4su.woff +0 -0
- package/dist/app/assets/cinzel-latin-600-normal-Dd5YO2UX.woff2 +0 -0
- package/dist/app/assets/cinzel-latin-ext-600-normal-BEFdM_VE.woff2 +0 -0
- package/dist/app/assets/cinzel-latin-ext-600-normal-BY9Mq9iK.woff +0 -0
- package/dist/app/assets/favicon-Btr9J4ll.svg +0 -18
- package/dist/app/assets/index-2965QO04.js +0 -28
- package/dist/app/assets/index-DafJtVDX.css +0 -1
- package/dist/app/assets/map-CFr4oRAS.webp +0 -0
- package/dist/app/assets/parchment-B0DDSYQX.webp +0 -0
- package/dist/app/assets/quill-and-scroll-BTgvJtxg.webp +0 -0
- package/dist/app/assets/theme-B5wzykBQ.css +0 -1
- package/dist/app/assets/theme-CHdX0u8s.css +0 -1
- package/dist/app/assets/theme-DivLOVED.css +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./theme-DivLOVED.css","./theme-B5wzykBQ.css","./theme-CHdX0u8s.css","./Graph-IKubvexT.js","./Graph-CeJeskZg.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function ee(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ee(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ee(a,u),c+=ne(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ee(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(te(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function re(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var N=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function ie(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,N)}catch(e){N(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ae(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ie(ae.bind(null,e))}var oe={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=oe,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ae,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:re}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ie,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(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 r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__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=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.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,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.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),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,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);i.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??i.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);i.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);i.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 i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),m=o(((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=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(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 a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),A=Symbol.for(`react.portal`),j=Symbol.for(`react.fragment`),ee=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),ne=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),re=Symbol.for(`react.forward_ref`),N=Symbol.for(`react.suspense`),ie=Symbol.for(`react.suspense_list`),ae=Symbol.for(`react.memo`),oe=Symbol.for(`react.lazy`),se=Symbol.for(`react.activity`),ce=Symbol.for(`react.legacy_hidden`),le=Symbol.for(`react.memo_cache_sentinel`),P=Symbol.for(`react.view_transition`),ue=Symbol.for(`react.recoverable`),de=Symbol.iterator;function fe(e){return typeof e!=`object`||!e?null:(e=de&&e[de]||e[`@@iterator`],typeof e==`function`?e:null)}var pe=Symbol.for(`react.client.reference`);function me(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case j:return`Fragment`;case te:return`Profiler`;case ee:return`StrictMode`;case N:return`Suspense`;case ie:return`SuspenseList`;case se:return`Activity`;case P:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case A:return`Portal`;case M:return e.displayName||`Context`;case ne:return(e._context.displayName||`Context`)+`.Consumer`;case re:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ae:return t=e.displayName||null,t===null?me(e.type)||`Memo`:t;case oe:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var he=Array.isArray,F=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge={pending:!1,data:null,method:null,action:null},_e=[],ve=-1;function ye(e){return{current:e}}function be(e){0>ve||(e.current=_e[ve],_e[ve]=null,ve--)}function L(e,t){ve++,_e[ve]=e.current,e.current=t}var R=ye(null),xe=ye(null),Se=ye(null),Ce=ye(null);function we(e,t){switch(L(Se,t),L(xe,e),L(R,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mp(t),e=hp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}be(R),L(R,e)}function Te(){be(R),be(xe),be(Se)}function Ee(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,L(Ce,e)),t=R.current;var n=hp(t,e.type);t!==n&&(L(xe,e),L(R,n))}function De(e){xe.current===e&&(be(R),be(xe)),Ce.current===e&&(be(Ce),sh._currentValue=ge)}var Oe,z;function B(e){if(Oe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||``,z=-1<e.stack.indexOf(`
|
|
3
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
-
`+Oe+e+z}var V=!1;function ke(e,t){if(!e||V)return``;V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
-
`),l=s.split(`
|
|
6
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{V=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?B(n):``}function Ae(e,t){switch(e.tag){case 26:case 27:case 5:return B(e.type);case 16:return B(`Lazy`);case 13:return e.child!==t&&t!==null?B(`Suspense Fallback`):B(`Suspense`);case 19:return B(`SuspenseList`);case 0:case 15:return ke(e.type,!1);case 11:return ke(e.type.render,!1);case 1:return ke(e.type,!0);case 31:return B(`Activity`);case 30:return B(`ViewTransition`);default:return``}}function je(e){try{var t=``,n=null;do t+=Ae(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
-
Error generating stack: `+e.message+`
|
|
9
|
-
`+e.stack}}var Me=Object.prototype.hasOwnProperty,Ne=t.unstable_scheduleCallback,Pe=t.unstable_cancelCallback,Fe=t.unstable_shouldYield,Ie=t.unstable_requestPaint,Le=t.unstable_now,Re=t.unstable_getCurrentPriorityLevel,ze=t.unstable_ImmediatePriority,Be=t.unstable_UserBlockingPriority,Ve=t.unstable_NormalPriority,He=t.unstable_LowPriority,Ue=t.unstable_IdlePriority,We=t.log,Ge=t.unstable_setDisableYieldValue,Ke=null,qe=null;function Je(e){if(typeof We==`function`&&Ge(e),qe&&typeof qe.setStrictMode==`function`)try{qe.setStrictMode(Ke,e)}catch{}}var Ye=Math.clz32?Math.clz32:Qe,Xe=Math.log,Ze=Math.LN2;function Qe(e){return e>>>=0,e===0?32:31-(Xe(e)/Ze|0)|0}var $e=256,et=262144,tt=4194304;function nt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=nt(n))):i=nt(o):i=nt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=nt(n))):i=nt(o)):i=nt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function it(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function at(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ye(n),i=1<<r;t|=e[r],n&=~i}return t}function ot(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function st(){var e=tt;return tt<<=1,!(tt&62914560)&&(tt=4194304),e}function ct(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ut(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ye(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&dt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function dt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ye(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ft(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ye(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function pt(e,t){var n=t&-t;return n=n&42?1:mt(n),(n&(e.suspendedLanes|t))===0?n:0}function mt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ht(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function gt(){var e=I.p;return e===0?(e=window.event,e===void 0?32:Ch(e.type)):e}function _t(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var vt=Math.random().toString(36).slice(2),yt=`__reactFiber$`+vt,bt=`__reactProps$`+vt,xt=`__reactContainer$`+vt,St=`__reactEvents$`+vt,Ct=`__reactListeners$`+vt,wt=`__reactHandles$`+vt,Tt=`__reactResources$`+vt,Et=`__reactMarker$`+vt,Dt=`__reactLoad$`+vt;function Ot(e){delete e[yt],delete e[bt],delete e[Ct],delete e[wt]}function kt(e){var t;if(t=e[yt])return t;for(var n=e.parentNode;n;){if(t=n[xt]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[yt])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function At(e){if(e=e[yt]||e[xt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Mt(e){var t=e[Tt];return t||=e[Tt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Nt(e){e[Et]=!0}function Pt(e){e[Dt]=void 0}var Ft=new Set,It={};function Lt(e,t){Rt(e,t),Rt(e+`Capture`,t)}function Rt(e,t){for(It[e]=t,e=0;e<t.length;e++)Ft.add(t[e])}var zt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Bt={},Vt={};function Ht(e){return Me.call(Vt,e)?!0:Me.call(Bt,e)?!1:zt.test(e)?Vt[e]=!0:(Bt[e]=!0,!1)}var Ut=!1;function Wt(){var e=Ut;return Ut=!1,e}function Gt(e,t,n){if(Ht(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Kt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function qt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Yt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Xt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zt(e){if(!e._valueTracker){var t=Yt(e)?`checked`:`value`;e._valueTracker=Xt(e,t,``+e[t])}}function Qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Yt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var $t=/[\n"\\]/g;function en(e){return e.replace($t,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function tn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Jt(t)):e.value!==``+Jt(t)&&(e.value=``+Jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):rn(e,Jt(n)):o===`number`&&e.value==t?rn(e,Jt(e.value)):rn(e,Jt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Jt(s):e.removeAttribute(`name`)}function nn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Zt(e);return}n=n==null?``:``+Jt(n),t=t==null?n:``+Jt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Zt(e)}function rn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function an(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Jt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function on(e,t,n){t!=null&&(t=``+Jt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Jt(n)}function sn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(he(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Zt(e)}function cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ln=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function un(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||ln.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function dn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Ut=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(un(e,a,r),Ut=!0)}else for(var o in t)t.hasOwnProperty(o)&&un(e,o,t[o])}function fn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var pn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),mn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hn(e){return mn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function gn(){}var _n=null;function vn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yn=null,bn=null;function xn(e){var t=At(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(tn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+en(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[bt]||null;if(!a)throw Error(i(90));tn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Qt(r)}break a;case`textarea`:on(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&an(e,!!n.multiple,t,!1)}}}var Sn=!1;function Cn(e,t,n){if(Sn)return e(t,n);Sn=!0;try{return e(t)}finally{if(Sn=!1,(yn!==null||bn!==null)&&(Hd(),yn&&(t=yn,e=bn,bn=yn=null,xn(t),e)))for(t=0;t<e.length;t++)xn(e[t])}}function wn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[bt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Tn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,En=!1;if(Tn)try{var Dn={};Object.defineProperty(Dn,"passive",{get:function(){En=!0}}),window.addEventListener(`test`,Dn,Dn),window.removeEventListener(`test`,Dn,Dn)}catch{En=!1}var On=null,kn=null,An=null;function jn(){if(An)return An;var e,t=kn,n=t.length,r,i=`value`in On?On.value:On.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return An=i.slice(e,1<r?1-r:void 0)}function Mn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Nn(){return!0}function Pn(){return!1}function Fn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Nn:Pn,this.isPropagationStopped=Pn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Nn)},persist:function(){},isPersistent:Nn}),t}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ln=Fn(In),Rn=D({},In,{view:0,detail:0}),zn=Fn(Rn),Bn,Vn,Hn,Un=D({},Rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:er,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Hn&&(Hn&&e.type===`mousemove`?(Bn=e.screenX-Hn.screenX,Vn=e.screenY-Hn.screenY):Vn=Bn=0,Hn=e),Bn)},movementY:function(e){return`movementY`in e?e.movementY:Vn}}),Wn=Fn(Un),Gn=Fn(D({},Un,{dataTransfer:0})),Kn=Fn(D({},Rn,{relatedTarget:0})),qn=Fn(D({},In,{animationName:0,elapsedTime:0,pseudoElement:0})),Jn=Fn(D({},In,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Yn=Fn(D({},In,{data:0})),Xn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Zn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Qn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function $n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qn[e])?!!t[e]:!1}function er(){return $n}var tr=Fn(D({},Rn,{key:function(e){if(e.key){var t=Xn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Mn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:er,charCode:function(e){return e.type===`keypress`?Mn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Mn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),nr=Fn(D({},Un,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rr=Fn(D({},In,{submitter:0})),ir=Fn(D({},Rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:er})),ar=Fn(D({},In,{propertyName:0,elapsedTime:0,pseudoElement:0})),or=Fn(D({},Un,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),sr=Fn(D({},In,{newState:0,oldState:0,source:0})),cr=[9,13,27,32],lr=Tn&&`CompositionEvent`in window,ur=null;Tn&&`documentMode`in document&&(ur=document.documentMode);var dr=Tn&&`TextEvent`in window&&!ur,fr=Tn&&(!lr||ur&&8<ur&&11>=ur),pr=` `,mr=!1;function hr(e,t){switch(e){case`keyup`:return cr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function gr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var _r=!1;function vr(e,t){switch(e){case`compositionend`:return gr(t);case`keypress`:return t.which===32?(mr=!0,pr):null;case`textInput`:return e=t.data,e===pr&&mr?null:e;default:return null}}function yr(e,t){if(_r)return e===`compositionend`||!lr&&hr(e,t)?(e=jn(),An=kn=On=null,_r=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return fr&&t.locale!==`ko`?null:t.data;default:return null}}var br={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!br[e.type]:t===`textarea`}function Sr(e,t,n,r){yn?bn?bn.push(r):bn=[r]:yn=r,t=Zf(t,`onChange`),0<t.length&&(n=new Ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Cr=null,wr=null;function Tr(e){Wf(e,0)}function Er(e){if(Qt(jt(e)))return e}function Dr(e,t){if(e===`change`)return t}var Or=!1;if(Tn){var kr;if(Tn){var Ar=`oninput`in document;if(!Ar){var jr=document.createElement(`div`);jr.setAttribute(`oninput`,`return;`),Ar=typeof jr.oninput==`function`}kr=Ar}else kr=!1;Or=kr&&(!document.documentMode||9<document.documentMode)}function Mr(){Cr&&(Cr.detachEvent(`onpropertychange`,Nr),wr=Cr=null)}function Nr(e){if(e.propertyName===`value`&&Er(wr)){var t=[];Sr(t,wr,e,vn(e)),Cn(Tr,t)}}function Pr(e,t,n){e===`focusin`?(Mr(),Cr=t,wr=n,Cr.attachEvent(`onpropertychange`,Nr)):e===`focusout`&&Mr()}function Fr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Er(wr)}function Ir(e,t){if(e===`click`)return Er(t)}function Lr(e,t){if(e===`input`||e===`change`)return Er(t)}function Rr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var zr=typeof Object.is==`function`?Object.is:Rr;function Br(e,t){if(zr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Me.call(t,i)||!zr(e[i],t[i]))return!1}return!0}function Vr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ur(e,t){var n=Hr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Hr(n)}}function Wr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vr(e.document)}return t}function Kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var qr=Tn&&`documentMode`in document&&11>=document.documentMode,Jr=null,Yr=null,Xr=null,Zr=!1;function Qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zr||Jr==null||Jr!==Vr(r)||(r=Jr,`selectionStart`in r&&Kr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xr&&Br(Xr,r)||(Xr=r,r=Zf(Yr,`onSelect`),0<r.length&&(t=new Ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Jr)))}function $r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ei={animationend:$r(`Animation`,`AnimationEnd`),animationiteration:$r(`Animation`,`AnimationIteration`),animationstart:$r(`Animation`,`AnimationStart`),transitionrun:$r(`Transition`,`TransitionRun`),transitionstart:$r(`Transition`,`TransitionStart`),transitioncancel:$r(`Transition`,`TransitionCancel`),transitionend:$r(`Transition`,`TransitionEnd`)},ti={},ni={};Tn&&(ni=document.createElement(`div`).style,`AnimationEvent`in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),`TransitionEvent`in window||delete ei.transitionend.transition);function ri(e){if(ti[e])return ti[e];if(!ei[e])return e;var t=ei[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ni)return ti[e]=t[n];return e}var ii=ri(`animationend`),ai=ri(`animationiteration`),oi=ri(`animationstart`),si=ri(`transitionrun`),ci=ri(`transitionstart`),li=ri(`transitioncancel`),ui=ri(`transitionend`),di=new Map,fi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);fi.push(`scrollEnd`);function pi(e,t){di.set(e,t),Lt(t,[e])}var mi=0;function hi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Cd.identifierPrefix;var n=mi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function gi(e){if(e==null||typeof e==`string`)return e;var t=null,n=jd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function _i(e,t){return e=gi(e),t=gi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var vi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},yi=[],bi=0,xi=0;function Si(){for(var e=bi,t=xi=bi=0;t<e;){var n=yi[t];yi[t++]=null;var r=yi[t];yi[t++]=null;var i=yi[t];yi[t++]=null;var a=yi[t];if(yi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Ei(n,i,a)}}function Ci(e,t,n,r){yi[bi++]=e,yi[bi++]=t,yi[bi++]=n,yi[bi++]=r,xi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function wi(e,t,n,r){return Ci(e,t,n,r),Di(e)}function Ti(e,t){return Ci(e,null,null,t),Di(e)}function Ei(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ye(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Di(e){if(50<Md)throw Md=0,Nd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Oi={};function ki(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ai(e,t,n,r){return new ki(e,t,n,r)}function ji(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mi(e,t){var n=e.alternate;return n===null?(n=Ai(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ni(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Pi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)ji(r)&&(s=1);else if(typeof r==`string`)s=qm(e,n,R.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case se:return e=Ai(31,n,t,a),e.elementType=se,e.lanes=o,e;case j:return Fi(n.children,a,o,t);case ee:s=8,a|=24;break;case te:return e=Ai(12,n,t,a|2),e.elementType=te,e.lanes=o,e;case N:return e=Ai(13,n,t,a),e.elementType=N,e.lanes=o,e;case ie:return e=Ai(19,n,t,a),e.elementType=ie,e.lanes=o,e;case ce:case P:return e=a|32,e=Ai(30,n,t,e),e.elementType=P,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case M:s=10;break a;case ne:s=9;break a;case re:s=11;break a;case ae:s=14;break a;case oe:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Fi(e,t,n,r){return e=Ai(7,e,r,t),e.lanes=n,e}function Ii(e,t,n){return e=Ai(6,e,null,t),e.lanes=n,e}function Li(e){var t=Ai(18,null,null,0);return t.stateNode=e,t}function Ri(e,t,n){return t=Ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zi=new WeakMap;function Bi(e,t){if(typeof e==`object`&&e){var n=zi.get(e);return n===void 0?(t={value:e,source:t,stack:je(t)},zi.set(e,t),t):n}return{value:e,source:t,stack:je(t)}}var Vi=[],Hi=0,Ui=null,Wi=0,Gi=[],Ki=0,qi=null,Ji=1,Yi=``;function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Ui,Ui=e,Wi=t}function Zi(e,t,n){Gi[Ki++]=Ji,Gi[Ki++]=Yi,Gi[Ki++]=qi,qi=e;var r=Ji;e=Yi;var i=32-Ye(r)-1;r&=~(1<<i),n+=1;var a=32-Ye(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ji=1<<32-Ye(t)+i|n<<i|r,Yi=a+e}else Ji=1<<a|n<<i|r,Yi=e}function Qi(e){e.return!==null&&(Xi(e,1),Zi(e,1,0))}function $i(e){for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null;for(;e===qi;)qi=Gi[--Ki],Gi[Ki]=null,Yi=Gi[--Ki],Gi[Ki]=null,Ji=Gi[--Ki],Gi[Ki]=null}function ea(e,t){Gi[Ki++]=Ji,Gi[Ki++]=Yi,Gi[Ki++]=qi,Ji=t.id,Yi=t.overflow,qi=e}var ta=null,na=null,H=!1,ra=null,ia=!1,aa=Error(i(519));function oa(e){throw fa(Bi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),aa}function sa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[yt]=e,t[bt]=r,n){case`dialog`:Y(`cancel`,t),Y(`close`,t);break;case`iframe`:case`object`:case`embed`:Y(`load`,t);break;case`video`:case`audio`:for(n=0;n<Hf.length;n++)Y(Hf[n],t);break;case`source`:Y(`error`,t);break;case`img`:case`image`:case`link`:Y(`error`,t),Y(`load`,t);break;case`details`:Y(`toggle`,t);break;case`input`:Y(`invalid`,t),nn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Y(`invalid`,t);break;case`textarea`:Y(`invalid`,t),sn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||rp(t.textContent,n)?(r.popover!=null&&(Y(`beforetoggle`,t),Y(`toggle`,t)),r.onScroll!=null&&Y(`scroll`,t),r.onScrollEnd!=null&&Y(`scrollend`,t),r.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||oa(e,!0)}function ca(e){for(ta=e.return;ta;)switch(ta.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:ta=ta.return}}function la(e){if(e!==ta)return!1;if(!H)return ca(e),H=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||_p(e.type,e.memoizedProps)),n=!n),n&&na&&oa(e),ca(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=$(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=$(e)}else t===27?(t=na,Ep(e.type)?(e=dm,dm=null,na=e):na=t):na=ta?um(e.stateNode.nextSibling):null;return!0}function ua(){na=ta=null,H=!1}function da(){var e=ra;return e!==null&&(hd===null?hd=e:hd.push.apply(hd,e),ra=null),e}function fa(e){ra===null?ra=[e]:ra.push(e)}var pa=ye(null),ma=null,ha=null;function ga(e,t,n){L(pa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=pa.current,be(pa)}function va(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ya(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),va(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),va(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),va(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ba(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;zr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[sh]:e.push(sh))}a=a.return}return e!==null&&ya(t,e,n,r),t.flags|=262144,e!==null}function xa(e){for(e=e.firstContext;e!==null;){if(!zr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){ma=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ca(e){return Ta(ma,e)}function wa(e,t){return ma===null&&Sa(e),Ta(e,t)}function Ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return n}var Ea=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Da=t.unstable_scheduleCallback,Oa=t.unstable_NormalPriority,ka={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Aa(){return{controller:new Ea,data:new Map,refCount:0}}function ja(e){e.refCount--,e.refCount===0&&Da(Oa,function(){e.controller.abort()})}function Ma(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Na=null;function Pa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Fa=null,Ia=0,La=0,Ra=null;function za(e,t){if(Fa===null){var n=Fa=[];Ia=0,La=Lf(),Ra={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ia++,t.then(Ba,Ba),t}function Ba(){if(--Ia===0&&(Na=null,Fa!==null)){Ra!==null&&(Ra.status=`fulfilled`);var e=Fa;Fa=null,La=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Va(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ha=F.S;F.S=function(e,t){if(vd=Le(),typeof t==`object`&&t&&typeof t.then==`function`&&za(e,t),Na!==null)for(var n=wf;n!==null;)Ma(n,Na),n=n.next;if(n=e.types,n!==null){for(var r=wf;r!==null;)Ma(r,n),r=r.next;if(La!==0){r=Na,r===null&&(r=Na=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ha!==null&&Ha(e,t)};var Ua=ye(null);function Wa(){var e=Ua.current;return e===null?nd.pooledCache:e}function Ga(e,t){t===null?L(Ua,Ua.current):L(Ua,t.pool)}function Ka(){var e=Wa();return e===null?null:{parent:ka._currentValue,pool:e}}var qa=Error(i(460)),Ja=Error(i(474)),Ya=Error(i(542)),Xa={then:function(){}};function Za(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Qa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gn,gn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(gn,gn);else{if(e=nd,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e}throw eo=t,qa}}function $a(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(eo=e,qa):e}}var eo=null;function to(){if(eo===null)throw Error(i(459));var e=eo;return eo=null,e}function no(e){if(e===qa||e===Ya)throw Error(i(483))}var ro=null,io=0;function ao(e){var t=io;return io+=1,ro===null&&(ro=[]),Qa(ro,e,t)}function oo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function so(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function co(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Mi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ii(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===j?(e=d(e,t,n.props.children,r,n.key),oo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===oe&&$a(i)===t.type)?(t=a(t,n.props),oo(t,n),t.return=e,t):(t=Pi(n.type,n.key,n.props,null,e.mode,r),oo(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ri(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Fi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ii(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Pi(t.type,t.key,t.props,null,e.mode,n),oo(n,t),n.return=e,n;case A:return t=Ri(t,e.mode,n),t.return=e,t;case oe:return t=$a(t),f(e,t,n)}if(he(t)||fe(t))return t=Fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ao(t),n);if(t.$$typeof===M)return f(e,wa(e,t),n);so(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case oe:return n=$a(n),p(e,t,n,r)}if(he(n)||fe(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ao(n),r);if(n.$$typeof===M)return p(e,t,wa(e,n),r);so(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case oe:return r=$a(r),m(e,t,n,r,i)}if(he(r)||fe(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ao(r),i);if(r.$$typeof===M)return m(e,t,n,wa(t,r),i);so(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),H&&Xi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return H&&Xi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),H&&Xi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),H&&Xi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return H&&Xi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),H&&Xi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),oo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===oe&&$a(l)===r.type){n(e,r.sibling),c=a(r,o.props),oo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=Fi(o.props.children,e.mode,c,o.key),oo(c,o),c.return=e,e=c):(c=Pi(o.type,o.key,o.props,null,e.mode,c),oo(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ri(o,e.mode,c),c.return=e,e=c}return s(e);case oe:return o=$a(o),_(e,r,o,c)}if(he(o))return h(e,r,o,c);if(fe(o)){if(l=fe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,ao(o),c);if(o.$$typeof===M)return _(e,r,wa(e,o),c);so(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ii(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{io=0;var i=_(e,t,n,r);return ro=null,i}catch(t){if(t===qa||t===Ya)throw t;var a=Ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var lo=co(!0),uo=co(!1),fo=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ho(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function go(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,td&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Di(e),Ei(e,null,n),t}return Ci(e,r,t,n),Di(e)}function _o(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}function vo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var yo=!1;function bo(){if(yo){var e=Ra;if(e!==null)throw e}}function xo(e,t,n,r){yo=!1;var i=e.updateQueue;fo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(K&f)===f:(r&f)===f){f!==0&&f===La&&(yo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:fo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ld|=o,e.lanes=o,e.memoizedState=d}}function So(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Co(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)So(n[e],t)}var wo=ye(null),To=ye(0);function Eo(e,t){e=cd,L(To,e),L(wo,t),cd=e|t.baseLanes}function Do(){L(To,cd),L(wo,wo.current)}function Oo(){cd=To.current,be(wo),be(To)}var ko=ye(null),Ao=null;function jo(e){var t=e.alternate;L(Io,Io.current&1),L(ko,e),Ao===null&&(t===null||wo.current!==null||t.memoizedState!==null)&&(Ao=e)}function Mo(e){L(Io,Io.current),L(ko,e),Ao===null&&(Ao=e)}function No(e){e.tag===22?(L(Io,Io.current),L(ko,e),Ao===null&&(Ao=e)):Po()}function Po(){L(Io,Io.current),L(ko,ko.current)}function Fo(e){be(ko),Ao===e&&(Ao=null),be(Io)}var Io=ye(0);function Lo(e,t){L(ko,ko.current),L(Io,t)}function Ro(e){be(Io),be(ko),Ao===e&&(Ao=null)}function zo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sm(n)||cm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bo=0,U=null,W=null,Vo=null,Ho=!1,Uo=!1,Wo=!1,Go=0,Ko=0,qo=null,Jo=0;function Yo(){throw Error(i(321))}function Xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Zo(e,t,n,r,i,a){return Bo=a,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?mc:hc,Wo=!1,a=n(r,i),Wo=!1,Uo&&(a=$o(t,n,r,i)),Qo(e),a}function Qo(e){F.H=pc;var t=W!==null&&W.next!==null;if(Bo=0,Vo=W=U=null,Ho=!1,Ko=0,qo=null,t)throw Error(i(300));e===null||Mc||(e=e.dependencies,e!==null&&xa(e)&&(Mc=!0))}function $o(e,t,n,r){U=e;var a=0;do{if(Uo&&(qo=null),Ko=0,Uo=!1,25<=a)throw Error(i(301));if(a+=1,Vo=W=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}F.H=gc,o=t(n,r)}while(Uo);return o}function es(){var e=F.H,t=e.useState()[0];return t=typeof t.then==`function`?ss(t):t,e=e.useState()[0],(W===null?null:W.memoizedState)!==e&&(U.flags|=1024),t}function ts(){var e=Go!==0;return Go=0,e}function ns(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rs(e){if(Ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ho=!1}Bo=0,Vo=W=U=null,Uo=!1,Ko=Go=0,qo=null}function is(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vo===null?U.memoizedState=Vo=e:Vo=Vo.next=e,Vo}function as(){if(W===null){var e=U.alternate;e=e===null?null:e.memoizedState}else e=W.next;var t=Vo===null?U.memoizedState:Vo.next;if(t!==null)Vo=t,W=e;else{if(e===null)throw U.alternate===null?Error(i(467)):Error(i(310));W=e,e={memoizedState:W.memoizedState,baseState:W.baseState,baseQueue:W.baseQueue,queue:W.queue,next:null},Vo===null?U.memoizedState=Vo=e:Vo=Vo.next=e}return Vo}function os(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(e){var t=Ko;return Ko+=1,qo===null&&(qo=[]),e=Qa(qo,e,t),t=U,(Vo===null?t.memoizedState:Vo.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?mc:hc),e}function cs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ss(e);if(e.$$typeof===ue)return;if(e.$$typeof===M)return Ca(e)}throw Error(i(438,String(e)))}function ls(e){var t=null,n=U.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=U.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=os(),U.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=le;return t.index++,n}function us(e,t){return typeof t==`function`?t(e):t}function ds(e){return fs(as(),W,e)}function fs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Bo&f)===f:(K&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===La&&(d=!0);else if((Bo&p)===p){u=u.next,p===La&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,U.lanes|=p,ld|=p;f=u.action,Wo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,U.lanes|=f,ld|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!zr(o,e.memoizedState)&&(Mc=!0,d&&(n=Ra,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ps(e){var t=as(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);zr(o,t.memoizedState)||(Mc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ms(e,t,n){var r=U,a=as(),o=H;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!zr((W||a).memoizedState,n);if(s&&(a.memoizedState=n,Mc=!0),a=a.queue,zs(_s.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Vo!==null&&!!(Vo.memoizedState.tag&1),Ps(e?9:8,{destroy:void 0},gs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,nd===null)throw Error(i(349));o||Bo&127||hs(r,t,n)}return n}function hs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t=os(),U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gs(e,t,n,r){t.value=n,t.getSnapshot=r,vs(t)&&ys(e)}function _s(e,t,n){return n(function(){vs(t)&&ys(e)})}function vs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zr(e,n)}catch{return!0}}function ys(e){var t=Ti(e,2);t!==null&&Ld(t,e,2)}function bs(e){var t=is();if(typeof e==`function`){var n=e;if(e=n(),Wo){Je(!0);try{n()}finally{Je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:e},t}function xs(e,t,n,r){return e.baseState=n,fs(e,W,typeof r==`function`?r:us)}function Ss(e,t,n,r,a){if(uc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};F.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Cs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Cs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=F.T,o={};o.types=a===null?null:a.types,F.T=o;try{var s=n(i,r),c=F.S;c!==null&&c(o,s),ws(e,t,s)}catch(n){Es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),F.T=a}}else try{a=n(i,r),ws(e,t,a)}catch(n){Es(e,t,n)}}function ws(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ts(e,t,n)},function(n){return Es(e,t,n)}):Ts(e,t,n)}function Ts(e,t,n){t.status=`fulfilled`,t.value=n,Ds(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cs(e,n)))}function Es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ds(t),t=t.next;while(t!==r)}e.action=null}function Ds(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Os(e,t){return t}function ks(e,t){if(H){var n=nd.formState;if(n!==null){a:{var r=U;if(H){if(na){b:{for(var i=na,a=ia;i.nodeType!==8;)if(!a||(i=um(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){na=um(i.nextSibling),r=i.data===`F!`;break a}}oa(r)}r=!1}r&&(t=n[0])}}return n=is(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:t},n.queue=r,n=sc.bind(null,U,r),r.dispatch=n,r=bs(!1),a=lc.bind(null,U,!1,r.queue),r=is(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ss.bind(null,U,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function As(e){return js(as(),W,e)}function js(e,t,n){if(t=fs(e,t,Os)[0],e=ds(us)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ss(t)}catch(e){throw e===qa?Ya:e}else r=t;t=as();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(U.flags|=2048,Ps(9,{destroy:void 0},Ms.bind(null,i,n),null)),[r,a,e]}function Ms(e,t){e.action=t}function Ns(e){var t=as(),n=W;if(n!==null)return js(t,n,e);as(),t=t.memoizedState,n=as();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ps(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=U.updateQueue,t===null&&(t=os(),U.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fs(){return as().memoizedState}function Is(e,t,n,r){var i=is();U.flags|=e,i.memoizedState=Ps(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ls(e,t,n,r){var i=as();r=r===void 0?null:r;var a=i.memoizedState.inst;W!==null&&r!==null&&Xo(r,W.memoizedState.deps)?i.memoizedState=Ps(t,a,n,r):(U.flags|=e,i.memoizedState=Ps(1|t,a,n,r))}function Rs(e,t){Is(8390656,8,e,t)}function zs(e,t){Ls(2048,8,e,t)}function Bs(e){U.flags|=4;var t=U.updateQueue;if(t===null)t=os(),U.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Vs(e){var t=as().memoizedState;return Bs({ref:t,nextImpl:e}),function(){if(td&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Hs(e,t){return Ls(4,2,e,t)}function Us(e,t){return Ls(4,4,e,t)}function Ws(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gs(e,t,n){n=n==null?null:n.concat([e]),Ls(4,4,Ws.bind(null,t,e),n)}function Ks(){}function qs(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Js(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Xo(t,r[1]))return r[0];if(r=e(),Wo){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r}function Ys(e,t,n){return n===void 0||Bo&1073741824&&!(K&261930)?e.memoizedState=t:(e.memoizedState=n,e=Fd(),U.lanes|=e,ld|=e,n)}function Xs(e,t,n,r){return zr(n,t)?n:wo.current===null?!(Bo&106)||Bo&1073741824&&!(K&261930)?(Mc=!0,e.memoizedState=n):(e=Fd(),U.lanes|=e,ld|=e,t):(e=Ys(e,n,r),zr(e,t)||(Mc=!0),e)}function Zs(e,t,n,r,i){var a=I.p;I.p=a!==0&&8>a?a:8;var o=F.T,s={};s.types=o===null?null:o.types,F.T=s,lc(e,!1,t,n);try{var c=i(),l=F.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?cc(e,t,Va(c,r),Pd(e)):cc(e,t,r,Pd(e))}catch(n){cc(e,t,{then:function(){},status:`rejected`,reason:n},Pd())}finally{I.p=a,o!==null&&s.types!==null&&(o.types=s.types),F.T=o}}function Qs(){}function $s(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ec(e).queue;Zs(e,a,t,ge,n===null?Qs:function(){return tc(e),n(r)})}function ec(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ge,baseState:ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:ge},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tc(e){var t=ec(e);t.next===null&&(t=e.alternate.memoizedState),cc(e,t.next.queue,{},Pd())}function nc(){return Ca(sh)}function rc(){return as().memoizedState}function ic(){return as().memoizedState}function ac(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Pd();e=ho(n);var r=go(t,e,n);r!==null&&(Ld(r,t,n),_o(r,t,n)),t={cache:Aa()},e.payload=t;return}t=t.return}}function oc(e,t,n){var r=Pd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e)?dc(t,n):(n=wi(e,t,n,r),n!==null&&(Ld(n,e,r),fc(n,t,r)))}function sc(e,t,n){cc(e,t,n,Pd())}function cc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,zr(s,o))return Ci(e,t,i,0),nd===null&&Si(),!1}catch{}if(n=wi(e,t,i,r),n!==null)return Ld(n,e,r),fc(n,t,r),!0}return!1}function lc(e,t,n,r){if(r={lane:2,revertLane:Lf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},uc(e)){if(t)throw Error(i(479))}else t=wi(e,n,r,2),t!==null&&Ld(t,e,2)}function uc(e){var t=e.alternate;return e===U||t!==null&&t===U}function dc(e,t){Uo=Ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}var pc={readContext:Ca,use:cs,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useInsertionEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo,useDeferredValue:Yo,useTransition:Yo,useSyncExternalStore:Yo,useId:Yo,useHostTransitionStatus:Yo,useFormState:Yo,useActionState:Yo,useOptimistic:Yo,useMemoCache:Yo,useCacheRefresh:Yo,useEffectEvent:Yo},mc={readContext:Ca,use:cs,useCallback:function(e,t){return is().memoizedState=[e,t===void 0?null:t],e},useContext:Ca,useEffect:Rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Is(4194308,4,Ws.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){Is(4,2,e,t)},useMemo:function(e,t){var n=is();t=t===void 0?null:t;var r=e();if(Wo){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=is();if(n!==void 0){var i=n(t);if(Wo){Je(!0);try{n(t)}finally{Je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=oc.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=is();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,n=sc.bind(null,U,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ks,useDeferredValue:function(e,t){return Ys(is(),e,t)},useTransition:function(){var e=bs(!1);return e=Zs.bind(null,U,e.queue,!0,!1),is().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=U,a=is();if(H){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),nd===null)throw Error(i(349));K&127||hs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Rs(_s.bind(null,r,o,e),[e]),r.flags|=2048,Ps(9,{destroy:void 0},gs.bind(null,r,o,n,t),null),n},useId:function(){var e=is(),t=nd.identifierPrefix;if(H){var n=Yi,r=Ji;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Go++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Jo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:nc,useFormState:ks,useActionState:ks,useOptimistic:function(e){var t=is();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lc.bind(null,U,!0,n),n.dispatch=t,[e,t]},useMemoCache:ls,useCacheRefresh:function(){return is().memoizedState=ac.bind(null,U)},useEffectEvent:function(e){var t=is(),n={impl:e};return t.memoizedState=n,function(){if(td&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:Ca,use:cs,useCallback:qs,useContext:Ca,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ds,useRef:Fs,useState:function(){return ds(us)},useDebugValue:Ks,useDeferredValue:function(e,t){return Xs(as(),W.memoizedState,e,t)},useTransition:function(){var e=ds(us)[0],t=as().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:rc,useHostTransitionStatus:nc,useFormState:As,useActionState:As,useOptimistic:function(e,t){return xs(as(),W,e,t)},useMemoCache:ls,useCacheRefresh:ic,useEffectEvent:Vs},gc={readContext:Ca,use:cs,useCallback:qs,useContext:Ca,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ps,useRef:Fs,useState:function(){return ps(us)},useDebugValue:Ks,useDeferredValue:function(e,t){var n=as();return W===null?Ys(n,e,t):Xs(n,W.memoizedState,e,t)},useTransition:function(){var e=ps(us)[0],t=as().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:rc,useHostTransitionStatus:nc,useFormState:Ns,useActionState:Ns,useOptimistic:function(e,t){var n=as();return W===null?(n.baseState=e,[e,n.queue.dispatch]):xs(n,W,e,t)},useMemoCache:ls,useCacheRefresh:ic,useEffectEvent:Vs};function _c(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=ho(r);i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Ld(t,e,r),_o(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pd(),i=ho(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Ld(t,e,r),_o(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pd(),r=ho(n);r.tag=2,t!=null&&(r.callback=t),t=go(e,r,n),t!==null&&(Ld(t,e,n),_o(t,e,n))}};function yc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Br(n,r)||!Br(i,a):!0}function bc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function xc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Sc(e){vi(e)}function Cc(e){console.error(e)}function wc(e){vi(e)}function Tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Dc(e,t,n){return n=ho(n),n.tag=3,n.payload={element:null},n.callback=function(){Tc(e,t)},n}function Oc(e){return e=ho(e),e.tag=3,e}function kc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ec(t,n,r),typeof i!=`function`&&(xd===null?xd=new Set([this]):xd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ac(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ba(t,n,a,!0),n=ko.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Ao===null?Yd():n.alternate===null&&q===0&&(q=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Xa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),vf(e,r,a)),!1;case 22:return n.flags|=65536,r===Xa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),vf(e,r,a)),!1}throw Error(i(435,n.tag))}return vf(e,r,a),Yd(),!1}if(H)return t=ko.current,t===null?(r!==aa&&(t=Error(i(423),{cause:r}),fa(Bi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Bi(r,n),a=Dc(e.stateNode,r,a),vo(e,a),q!==4&&(q=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==aa&&(e=Error(i(422),{cause:r}),fa(Bi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Bi(o,n),md===null?md=[o]:md.push(o),q!==4&&(q=2),t===null)return!0;r=Bi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Dc(n.stateNode,r,e),vo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(xd===null||!xd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Oc(a),kc(a,e,n,r),vo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var jc=Error(i(461)),Mc=!1;function Nc(e,t,n,r){t.child=e===null?uo(t,null,n,r):lo(t,e.child,n,r)}function Pc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Sa(t),r=Zo(e,t,n,o,a,i),s=ts(),e!==null&&!Mc?(ns(e,t,i),cl(e,t,i)):(H&&s&&Qi(t),t.flags|=1,Nc(e,t,r,i),t.child)}function Fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ji(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ic(e,t,a,r,i)):(e=Pi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ll(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Br:n,n(o,r)&&e.ref===t.ref)return cl(e,t,i)}return t.flags|=1,e=Mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Br(a,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=a,ll(e,i))e.flags&131072&&(Mc=!0);else return t.lanes=e.lanes,cl(e,t,i)}}return Wc(e,t,n,r,i)}function Lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return zc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ga(t,a===null?null:a.cachePool),a===null?Do():Eo(t,a),No(t);else return r=t.lanes=536870912,zc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ga(t,null),Do(),Po()):(Ga(t,a.cachePool),Eo(t,a),Po(),t.memoizedState=null);return Nc(e,t,i,n),t.child}function Rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zc(e,t,n,r,i){var a=Wa();return a=a===null?null:{parent:ka._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ga(t,null),Do(),No(t),e!==null&&ba(e,t,r,!0),t.childLanes=i,null}function Bc(e,t){return t=$c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vc(e,t,n){return lo(t,e.child,null,n),e=Bc(t,t.pendingProps),e.flags|=2,Fo(t),t.memoizedState=null,e}function Hc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(H){if(r.mode===`hidden`)return e=Bc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Rc(null,e);if(Mo(t),(e=na)?(e=om(e,ia),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qi===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Li(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Bc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Mo(t),a){if(t.flags&256)t.flags&=-257,t=Vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Mc||ba(e,t,n,!1),a=(n&e.childLanes)!==0,Mc||a){if(wo.current===null){if(r=nd,r!==null&&(s=pt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ti(e,s),Ld(r,e,s),jc;Yd()}t=Vc(e,t,n)}else e=o.treeContext,na=um(s.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=Bc(t,r),t.flags|=134221824;return t}return e=Mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wc(e,t,n,r,i){return Sa(t),n=Zo(e,t,n,r,void 0,i),r=ts(),e!==null&&!Mc?(ns(e,t,i),cl(e,t,i)):(H&&r&&Qi(t),t.flags|=1,Nc(e,t,n,i),t.child)}function Gc(e,t,n,r,i,a){return Sa(t),t.updateQueue=null,n=$o(t,r,n,i),Qo(e),r=ts(),e!==null&&!Mc?(ns(e,t,a),cl(e,t,a)):(H&&r&&Qi(t),t.flags|=1,Nc(e,t,n,a),t.child)}function Kc(e,t,n,r,i){if(Sa(t),t.stateNode===null){var a=Oi,o=n.contextType;typeof o==`object`&&o&&(a=Ca(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},po(t),o=n.contextType,a.context=typeof o==`object`&&o?Ca(o):Oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(_c(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&vc.enqueueReplaceState(a,a.state,null),xo(t,r,a,i),bo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=xc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Oi,typeof u==`object`&&u&&(o=Ca(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&bc(t,a,r,o),fo=!1;var f=t.memoizedState;a.state=f,xo(t,r,a,i),bo(),l=t.memoizedState,s||f!==l||fo?(typeof d==`function`&&(_c(t,n,d,r),l=t.memoizedState),(c=fo||yc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,mo(e,t),o=t.memoizedProps,u=xc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Oi,typeof l==`object`&&l&&(c=Ca(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&bc(t,a,r,c),fo=!1,f=t.memoizedState,a.state=f,xo(t,r,a,i),bo();var p=t.memoizedState;o!==d||f!==p||fo||e!==null&&e.dependencies!==null&&xa(e.dependencies)?(typeof s==`function`&&(_c(t,n,s,r),p=t.memoizedState),(u=fo||yc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&xa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Uc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=lo(t,e.child,null,i),t.child=lo(t,null,n,i)):Nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=cl(e,t,i),e}function qc(e,t,n,r){return ua(),t.flags|=256,Nc(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:Ka()}}function Xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=fd),e}function Zc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Io.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(H){if(i?jo(t):Po(),(e=na)?(e=om(e,ia),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:qi===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Li(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=cm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Po(),i=t.mode,a=$c({mode:`hidden`,children:a},i),r=Fi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Yc(n),r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(null,r)):(jo(t),Qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return tl(e,t,a,o,r,c,s,n)}return i?(Po(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Mi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Fi(i,a,n,null),i.flags|=2):i=Mi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Rc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Yc(n):(a=i.cachePool,a===null?a=Ka():(s=ka._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(e.child,r)):(jo(t),n=e.child,e=n.sibling,n=Mi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Qc(e,t){return t=$c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function $c(e,t){return e=Ai(22,e,null,t),e.lanes=0,e}function el(e,t,n){return lo(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(jo(t),t.flags&=-257,el(e,t,c)):t.memoizedState===null?(Po(),o=a.fallback,s=t.mode,a=$c({mode:`visible`,children:a.children},s),o=Fi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,lo(t,e.child,null,c),a=t.child,a.memoizedState=Yc(c),a.childLanes=Xc(e,r,c),t.memoizedState=Jc,Rc(null,a)):(Po(),t.child=e.child,t.flags|=128,null);if(jo(t),cm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,fa({value:a,source:null,stack:null})),el(e,t,c)}if(Mc||ba(e,t,c,!1),r=(c&e.childLanes)!==0,Mc||r){if(wo.current!==null)return el(e,t,c);if(r=nd,r!==null&&(a=pt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ti(e,a),Ld(r,e,a),jc;return sm(o)||Yd(),el(e,t,c)}return sm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,na=um(o.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=Qc(t,a.children),t.flags|=134221824,t)}function nl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),va(e.return,t,n)}function rl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&zo(n)===null&&(t=e),e=e.sibling}return t}function il(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function al(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ol(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Io.current;if(t.flags&128)return Lo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Lo(t,o),i===`backwards`&&e!==null?(al(e),Nc(e,t,r,n),al(e)):Nc(e,t,r,n),r=H?Wi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nl(e,n,t);else if(e.tag===19)nl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,al(t)),il(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}il(t,!0,n,null,a,r);break;case`together`:il(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),il(t,!1,i,n,a,r)}return t.child}function sl(e,t,n){var r=t.pendingProps;return ga(t,t.type,r.value),Nc(e,t,r.children,n),t.child}function cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ld|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ba(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ll(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&xa(e)))}function ul(e,t,n){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),ga(t,ka,e.memoizedState.cache),ua();break;case 27:case 5:Ee(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Mo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return jo(t),t.flags|=128,null;r=ba(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Zc(e,t,n):(jo(t),e=cl(e,t,n),e===null?null:e.sibling)}jo(t);break;case 19:if(t.flags&128)return ol(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ba(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ol(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Lo(t,Io.current),r)break;return null;case 22:return t.lanes=0,Lc(e,t,n,t.pendingProps);case 24:ga(t,ka,e.memoizedState.cache)}return cl(e,t,n)}function dl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Mc=!0;else{if(!ll(e,n)&&!(t.flags&128))return Mc=!1,ul(e,t,n);Mc=!!(e.flags&131072)}}else Mc=!1,H&&t.flags&1048576&&Zi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=$a(t.elementType),t.type=e,typeof e==`function`)ji(e)?(r=xc(e,r),t.tag=1,t=Kc(null,t,e,r,n)):(t.tag=0,t=Wc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===re){t.tag=11,t=Pc(null,t,e,r,n);break a}if(a===ae){t.tag=14,t=Fc(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=sl(null,t,n);break a}}throw t=me(e)||e,Error(i(306,t,``))}}return t;case 0:return Wc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=xc(r,t.pendingProps),Kc(e,t,r,a,n);case 3:a:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,mo(e,t),xo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ga(t,ka,r),r!==o.cache&&ya(t,[ka],n,!0),bo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=qc(e,t,r,n);break a}if(r!==a){a=Bi(Error(i(424)),t),fa(a),t=qc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(na=um(e.firstChild),ta=t,H=!0,ra=null,ia=!0,n=uo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ua(),r===a){t=cl(e,t,n);break a}Nc(e,t,r,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:H||(t.stateNode=gp(t.type,t.pendingProps,Se.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&H&&(r=t.stateNode=hm(t.type,t.pendingProps,Se.current),ta=t,ia=!0,a=na,Ep(t.type)?(dm=a,na=um(r.firstChild)):na=a),Nc(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&H&&((a=r=na)&&(r=im(r,t.type,t.pendingProps,ia),r===null?a=!1:(t.stateNode=r,ta=t,na=um(r.firstChild),ia=!1,a=!0)),a||oa(t)),Ee(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,_p(a,o)?r=null:s!==null&&_p(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Zo(e,t,es,null,null,n),sh._currentValue=a),Uc(e,t),Nc(e,t,r,n),t.child;case 6:return e===null&&H&&((e=n=na)&&(n=am(n,t.pendingProps,ia),n===null?e=!1:(t.stateNode=n,ta=t,na=null,e=!0)),e||oa(t)),null;case 13:return Zc(e,t,n);case 4:return we(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lo(t,null,r,n):Nc(e,t,r,n),t.child;case 11:return Pc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Uc(e,t),Nc(e,t,r,n),t.child;case 8:return Nc(e,t,t.pendingProps.children,n),t.child;case 12:return Nc(e,t,t.pendingProps.children,n),t.child;case 10:return sl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Sa(t),a=Ca(a),r=r(a),t.flags|=1,Nc(e,t,r,n),t.child;case 14:return Fc(e,t,t.type,t.pendingProps,n);case 15:return Ic(e,t,t.type,t.pendingProps,n);case 19:return ol(e,t,n);case 31:return Hc(e,t,n);case 22:return Lc(e,t,n,t.pendingProps);case 24:return Sa(t),r=Ca(ka),e===null?(a=Wa(),a===null&&(a=nd,o=Aa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},po(t),ga(t,ka,a)):((e.lanes&n)!==0&&(mo(e,t),xo(t,null,null,n),bo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ga(t,ka,r),r!==a.cache&&ya(t,[ka],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ga(t,ka,r))),Nc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:H&&Qi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Uc(e,t),Nc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fl(e){e.flags|=4}function pl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Jm(t,r):Jm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Kd())e.flags|=8192;else throw eo=Xa,Ja}}else e.flags&=-16777217}function ml(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t)){if(Kd())e.flags|=8192;else throw eo=Xa,Ja}}function hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:st(),e.lanes|=t,pd|=t)}function gl(e,t){if(!H)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function _l(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vl(e,t,n){var r=t.pendingProps;switch($i(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _l(t),null;case 1:return _l(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(ka),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?fl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,da())),_l(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(fl(t),o===null?(_l(t),pl(t,a,null,r,n)):(_l(t),ml(t,o))):o?o===e.memoizedState?(_l(t),t.flags&=-16777217):(fl(t),_l(t),ml(t,o)):(e=e.memoizedProps,e!==r&&fl(t),_l(t),pl(t,a,e,r,n)),null;case 27:if(De(t),n=Se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}e=R.current,la(t)?sa(t,e):(e=hm(a,r,n),t.stateNode=e,fl(t))}return _l(t),t.subtreeFlags&=-33554433,null;case 5:if(De(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}if(o=R.current,la(t))sa(t,o);else{var s=pp(Se.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[yt]=t,o[bt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(op(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&fl(t)}}return _l(t),t.subtreeFlags&=-33554433,pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Se.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ta,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[yt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||rp(e.nodeValue,n)),e||oa(t,!0)}else e=pp(e).createTextNode(r),e[yt]=t,t.stateNode=e}return _l(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=la(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[yt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),e=!1}else n=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Fo(t),t):(Fo(t),null);if(t.flags&128)throw Error(i(558))}return _l(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=la(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[yt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),a=!1}else a=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Fo(t),t):(Fo(t),null)}return Fo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hl(t,t.updateQueue),_l(t),null);case 4:return Te(),e===null&&qf(t.stateNode.containerInfo),t.flags|=67108864,_l(t),null;case 10:return _a(t.type),_l(t),null;case 19:if(Ro(t),r=t.memoizedState,r===null)return _l(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)gl(r,!1);else{if(q!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zo(e),o!==null){for(t.flags|=128,gl(r,!1),e=o.updateQueue,t.updateQueue=e,hl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ni(n,e),n=n.sibling;return Lo(t,Io.current&1|2),H&&Xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Le()>yd&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=zo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,hl(t,e),gl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!H)return _l(t),null}else 2*Le()-r.renderingStartTime>yd&&n!==536870912&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Le(),e.sibling=null,o=Io.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||H?Lo(t,o):(n=o,L(ko,t),L(Io,n),Ao===null&&(Ao=t)),H&&Xi(t,r.treeForkCount),e}return _l(t),null;case 22:case 23:return Fo(t),Oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(_l(t),t.subtreeFlags&6&&(t.flags|=8192)):_l(t),n=t.updateQueue,n!==null&&hl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&be(Ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(ka),_l(t),null;case 25:return null;case 30:return t.flags|=33554432,_l(t),null}throw Error(i(156,t.tag))}function yl(e,t){switch($i(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(ka),Te(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return De(t),null;case 31:if(t.memoizedState!==null){if(Fo(t),t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ro(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Te(),null;case 10:return _a(t.type),null;case 22:case 23:return Fo(t),Oo(),e!==null&&be(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _a(ka),null;case 25:return null;default:return null}}function bl(e,t){switch($i(t),t.tag){case 3:_a(ka),Te();break;case 26:case 27:case 5:De(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Fo(t);break;case 13:Fo(t);break;case 19:Ro(t);break;case 10:_a(t.type);break;case 22:case 23:Fo(t),Oo(),e!==null&&be(Ua);break;case 24:_a(ka)}}function xl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){_f(t,t.return,e)}}function Sl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){_f(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){_f(t,t.return,e)}}function Cl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Co(t,n)}catch(t){_f(e,e.return,t)}}}function wl(e,t,n){n.props=xc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){_f(e,t,n)}}function Tl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=hi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Lp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Rp(e);h(e.child,!1,tm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){_f(e,t,n)}}function El(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){_f(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){_f(e,t,n)}else n.current=null}}function Dl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)rm(e.stateNode,t[n])}function Ol(e){for(var t=e.return;t!==null&&(jl(t)&&rm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function kl(e){for(var t=e.return;t!==null&&(jl(t)&&Z(e.stateNode,t.stateNode),!Al(t));)t=t.return}function Al(e){return e.tag===5||e.tag===3||e.tag===27}function jl(e){return e&&e.tag===7&&e.stateNode!==null}function Ml(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){_f(e,e.return,t)}}function Nl(e,t,n){try{var r=e.stateNode;cp(r,e.type,n,t),r[bt]=t}catch(t){_f(e,e.return,t)}}function Pl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ep(e.type)||e.tag===4}function Fl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ep(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gn)),Dl(e,r),Ut=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Ep(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Dl(e,r),Ut=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Ep(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);op(t,r,n),t[yt]=e,t[bt]=n}catch(t){_f(e,e.return,t)}}var zl=!1,Bl=null;function Vl(e){(e.tag===30||e.subtreeFlags&33554432)&&(zl=!0)}var Hl=null;function Ul(){var e=Hl;return Hl=null,e}var Wl=0;function Gl(e,t,n,r,i){return Wl=0,Kl(e.child,t,n,r,i)}function Kl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Mp(o);r.push(s),s.view&&(a=!0)}else a||Mp(o).view&&(a=!0);zl=!0,kp(o,Wl===0?t:t+`_`+Wl,n),Wl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Kl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function ql(e,t){for(;e!==null;)e.tag===5?Ap(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||ql(e.child,t)),e=e.sibling}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Jl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=_i(t.default,t.share),t!==`none`&&(Gl(e,n,t,null,!1)||ql(e.child,!1))}e=e.sibling}}function Yl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=hi(r,n),a=_i(r.default,n.paired?r.share:r.enter);a===`none`?Jl(e):Gl(e,i,a,null,!1)?(Jl(e),n.paired||t||Id(e,r.onEnter)):ql(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e,t),e=e.sibling;else Jl(e)}function Xl(e){if(Bl!==null&&Bl.size!==0){var t=Bl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=_i(n.default,n.share);if(a!==`none`&&(Gl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Id(e,n.onShare)):ql(e.child,!1)),t.delete(r),t.size===0)break}}}Xl(e)}e=e.sibling}}}function Zl(e){if(e.tag===30){var t=e.memoizedProps,n=hi(t,e.stateNode),r=Bl===null?void 0:Bl.get(n),i=_i(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Gl(e,n,i,null,!1)?r===void 0?Id(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Bl.delete(n),Id(e,t.onShare)):ql(e.child,!1)),Bl!==null&&Xl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e),e=e.sibling;else Bl!==null&&Xl(e)}function Ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=hi(t,e.stateNode);t=_i(t.default,t.update),e.flags&=-5,t!==`none`&&Gl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Ql(e);e=e.sibling}}function $l(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,ql(e.child,!1))}$l(e)}e=e.sibling}}function eu(e){if(e.tag===30)e.stateNode.paired=null,ql(e.child,!1),$l(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else $l(e)}function tu(e){for(e=e.child;e!==null;)e.tag===30?ql(e.child,!1):e.subtreeFlags&33554432&&tu(e),e=e.sibling}function nu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Wl<a.length){var l=a[Wl],u=Mp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&kp(c,Wl===0?n:n+`_`+Wl,i),s&&e.flags&4||(Hl===null&&(Hl=[]),Hl.push(c,Wl===0?r:r+`_`+Wl,t.memoizedProps)),Wl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:nu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ru(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=hi(n,r),a=_i(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Np)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Wl=0,i=nu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Id(e,n.onUpdate))}else e.subtreeFlags&33554432&&ru(e,t);e=e.sibling}}var iu=!1,au=!1,ou=!1,su=!1,cu=typeof WeakSet==`function`?WeakSet:Set,lu=null,uu=!1,du=!1,fu=!1,pu=!1;function mu(e,t,n){if(e=e.containerInfo,dp=gh,e=Gr(e),Kr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(fp={focusedElem:e,selectionRange:r},gh=!1,n=(n&335544064)===n,lu=t,t=n?9270:1024;lu!==null;){if(e=lu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Zl(r[a]);if(e.alternate===null&&e.flags&2)n&&Vl(e),hu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Zl(r),hu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Vl(e),hu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,lu=r):(n&&Ql(e),hu(n))}}Bl=null}function hu(e){for(;lu!==null;){var t=lu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=xc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){_f(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)Q(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:Q(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=hi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=_i(a.default,a.update),a!==`none`&&Gl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,lu=r;break}lu=t.return}}function gu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&xl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){_f(n,n.return,e)}else{var i=xc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){_f(n,n.return,e)}}}r&64&&Cl(n),r&512&&Tl(n,n.return);break;case 3:if(Iu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Co(e,t)}catch(e){_f(n,n.return,e)}}break;case 27:t===null&&r&4&&Rl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Ml(n),r&512&&Tl(n,n.return);break;case 12:Iu(e,n);break;case 31:Iu(e,n),r&4&&Tu(e,n);break;case 13:Iu(e,n),r&4&&Eu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=xf.bind(null,n),lm(e,n))));break;case 22:if(r=n.memoizedState!==null||iu,!r){var a=t!==null&&t.memoizedState!==null||au;t=iu,i=au,iu=r,(au=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),iu=t,au=i}break;case 30:Iu(e,n),r&512&&Tl(n,n.return);break;case 7:r&512&&Tl(n,n.return);default:Iu(e,n)}}function _u(e,t){for(e=e.child;e!==null;)vu(e,t),e=e.sibling}function vu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){_f(e,e.return,t)}yu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Ut=!0}catch(t){_f(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Op(s,!0):Op(e.stateNode,!1)}catch(t){_f(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&_u(e,t);break;default:_u(e,t)}}function yu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:vu(n,r);break a;case 22:n.memoizedState===null&&yu(n,r);break a;default:yu(n,r)}}e=e.sibling}}function bu(e){var t=e.alternate;t!==null&&(e.alternate=null,bu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ot(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xu=null,Su=!1;function Cu(e,t,n){for(n=n.child;n!==null;)wu(e,t,n),n=n.sibling}function wu(e,t,n){if(qe&&typeof qe.onCommitFiberUnmount==`function`)try{qe.onCommitFiberUnmount(Ke,n)}catch{}switch(n.tag){case 26:au||El(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!au&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:au||El(n,t),kl(n);var r=xu,i=Su;Ep(n.type)&&(xu=n.stateNode,Su=!1),Cu(e,t,n),gm(n.stateNode,n.type,n.memoizedProps),xu=r,Su=i;break;case 5:au||El(n,t),kl(n);case 6:if(n.tag===6&&kl(n),r=xu,i=Su,xu=null,Cu(e,t,n),xu=r,Su=i,xu!==null){if(Su)try{(xu.nodeType===9?xu.body:xu.nodeName===`HTML`?xu.ownerDocument.body:xu).removeChild(n.stateNode),Ut=!0}catch(e){_f(n,t,e)}else try{xu.removeChild(n.stateNode),Ut=!0}catch(e){_f(n,t,e)}}break;case 18:xu!==null&&(Su?(e=xu,Dp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hh(e)):Dp(xu,n.stateNode));break;case 4:r=xu,i=Su,xu=n.stateNode.containerInfo,Su=!0,Cu(e,t,n),xu=r,Su=i;break;case 0:case 11:case 14:case 15:Sl(2,n,t),au||Sl(4,n,t),Cu(e,t,n);break;case 1:au||(El(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&wl(n,t,r)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:au=(r=au)||n.memoizedState!==null,Cu(e,t,n),au=r;break;case 30:El(n,t),Cu(e,t,n);break;case 7:au||El(n,t),Cu(e,t,n);break;default:Cu(e,t,n)}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hh(e)}catch(e){_f(t,t.return,e)}}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hh(e)}catch(e){_f(t,t.return,e)}}function Du(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cu),t;default:throw Error(i(435,e.tag))}}function Ou(e,t){var n=Du(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Sf.bind(null,e,t);t.then(r,r)}})}function ku(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Ep(l.type)){xu=l.stateNode,Su=!1;break a}break;case 5:xu=l.stateNode,Su=!1;break a;case 3:case 4:xu=l.stateNode.containerInfo,Su=!0;break a}l=l.return}if(xu===null)throw Error(i(160));wu(s,c,o),xu=null,Su=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ju(t,e,n),t=t.sibling}var Au=null;function ju(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}ku(t,e,n),Mu(e),a&4&&(Sl(3,e,e.return),xl(3,e),Sl(5,e,e.return));break;case 1:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&64&&iu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Au,ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(iu)e.stateNode=gp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Et]||r[yt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),op(r,t,n),r[yt]=e,Nt(r),t=r;break a;case`link`:if(o=Gm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),op(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Gm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),op(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[yt]=e,Nt(r),t=r}e.stateNode=t}}else iu||Km(o,e.type,e.stateNode)}else e.stateNode=Bm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Nl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||au||t.parentNode.removeChild(t)):a.count--,n===null?iu||Km(o,e.type,e.stateNode):Bm(o,n,e.memoizedProps))}break;case 27:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),r!==null&&a&4&&Nl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=ou,ou=!1,ku(t,e,n),ou=o,Mu(e),a&512&&(au||r===null||El(r,r.return)),e.flags&32){t=e.stateNode;try{cn(t,``),Ut=!0}catch(t){_f(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Nl(e,t,r===null?t:r.memoizedProps)),a&1024&&(su=!0);break;case 6:if(ku(t,e,n),Mu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Ut=!0}catch(t){_f(e,e.return,t)}}break;case 3:if(Ut=!1,Wm=null,o=Au,Au=bm(t.containerInfo),ku(t,e,n),Au=o,Mu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(t){_f(e,e.return,t)}su&&(su=!1,Nu(e)),Ut=!1;break;case 4:a=ou,ou=iu,r=Wt(),o=Au,Au=bm(e.stateNode.containerInfo),ku(t,e,n),Mu(e),Au=o,Ut&&du&&(fu=!0),Ut=r,ou=a;break;case 12:ku(t,e,n),Mu(e);break;case 31:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 13:ku(t,e,n),Mu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(_d=Le()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=iu,l=au,u=ou;iu=c||o,ou=u||o,au=l||s,ku(t,e,n),au=l,ou=u,iu=c,Mu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||iu||au||(t=s||au,n=iu,r=au,iu=o||iu,au=t,Lu(e,2),iu=n,au=r),!o&&ou||_u(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Ou(e,n))));break;case 19:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 30:a&512&&(au||r===null||El(r,r.return)),a=Wt(),o=du,s=(n&335544064)===n,c=e.memoizedProps,du=s&&_i(c.default,c.update)!==`none`,ku(t,e,n),Mu(e),s&&r!==null&&Ut&&(e.flags|=4),du=o,Ut=a;break;case 21:break;case 7:a&512&&(au||r===null||El(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ku(t,e,n),Mu(e)}}function Mu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Pl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(jl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Al(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ll(e,Fl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(cn(l,``),n.flags&=-33),Ll(e,Fl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Il(e,Fl(e),u,s);break;default:throw Error(i(161))}}catch(t){_f(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,gh=!0,t.reset(),gh=!1),e=e.sibling}}function Pu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling;else ru(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Yl(e,!1);else switch(e.tag){case 3:if(pu=uu=!1,Ul(),Pu(t,e),!uu&&!fu){if(e=Hl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ap(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),pu=!0}Hl=null;break;case 5:Pu(t,e);break;case 4:r=uu,uu=!1,Pu(t,e),uu&&(fu=!0),uu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Yl(e,!1));break;case 30:r=uu,i=Ul(),uu=!1,Pu(t,e),uu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=hi(a,o),o=hi(n.memoizedProps,o);var s=_i(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Wl=0,t=nu(e,n,t,o,s,a,!0),Wl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Id(e,e.memoizedProps.onUpdate),Hl=i):i!==null&&(i.push.apply(i,Hl),Hl=i),uu=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gu(e,t.alternate,t),t=t.sibling}function Lu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Sl(4,n,n.return),Lu(n,r);break;case 1:El(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&wl(n,n.return,i),Lu(n,r);break;case 27:r&2&&gm(n.stateNode,n.type,n.memoizedProps);case 5:El(n,n.return),n.tag!==5&&n.tag!==27||kl(n),Lu(n,r);break;case 6:kl(n);break;case 26:El(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||au||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:El(n,n.return),Lu(n,r);break;case 7:El(n,n.return);default:Lu(n,r)}e=e.sibling}}function Ru(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Ru(i,a,n),xl(4,a);break;case 1:if(Ru(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){_f(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)So(l[i],c)}catch(e){_f(r,r.return,e)}}s&&o&64&&Cl(a),Tl(a,a.return);break;case 27:n&2&&Rl(a);case 5:a.tag!==5&&a.tag!==27||Ol(a),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 6:Ol(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||iu||Km(bm(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 12:Ru(i,a,n);break;case 31:Ru(i,a,n),s&&o&4&&Tu(i,a);break;case 13:Ru(i,a,n),s&&o&4&&Eu(i,a);break;case 22:a.memoizedState===null&&Ru(i,a,n),Tl(a,a.return);break;case 30:Ru(i,a,n),Tl(a,a.return);break;case 7:Tl(a,a.return);default:Ru(i,a,n)}t=t.sibling}}function zu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ja(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ja(e))}function Vu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Hu(e,t,n,r),t=t.sibling;else i&&tu(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&eu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&xl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&pu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&ja(a)));break;case 12:if(a&2048){Vu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){_f(t,t.return,e)}}else Vu(e,t,n,r);break;case 31:Vu(e,t,n,r);break;case 13:Vu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&eu(t),o._visibility&2?Vu(e,t,n,r):(o._visibility|=2,Uu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&eu(s),o._visibility&2?Vu(e,t,n,r):Wu(e,t)),a&2048&&zu(s,t);break;case 24:Vu(e,t,n,r),a&2048&&Bu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(ql(a.child,!0),ql(t.child,!0))),Vu(e,t,n,r);break;default:Vu(e,t,n,r)}}function Uu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Uu(a,o,s,c,i),xl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Uu(a,o,s,c,i)):u._visibility&2?Uu(a,o,s,c,i):Wu(a,o),i&&l&2048&&zu(o.alternate,o);break;case 24:Uu(a,o,s,c,i),i&&l&2048&&Bu(o.alternate,o);break;default:Uu(a,o,s,c,i)}t=t.sibling}}function Wu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Wu(n,r),i&2048&&zu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Bu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Zm(n,e)):Qm(n,Au,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&Zm(n,e));break;case 3:case 4:var r=Au;Au=bm(e.stateNode.containerInfo),Ku(e,t,n),Au=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Bl===null&&(Bl=new Map),Bl.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&Sl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;lu!==null;){var n=lu;switch(n.tag){case 0:case 11:case 15:Sl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ja(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,lu=r;else a:for(n=e;lu!==null;){r=lu;var i=r.sibling,a=r.return;if(bu(r),r===n){lu=null;break a}if(i!==null){i.return=a,lu=i;break a}lu=a}}}var $u={getCacheForType:function(e){var t=Ca(ka),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ca(ka).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,td=0,nd=null,G=null,K=0,rd=0,id=null,ad=!1,od=!1,sd=!1,cd=0,q=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=null,hd=null,gd=!1,_d=0,vd=0,yd=1/0,bd=null,xd=null,Sd=0,Cd=null,wd=null,Td=0,Ed=0,Dd=null,Od=null,kd=null,Ad=null,jd=null,Md=0,Nd=null;function Pd(){return td&2&&K!==0?K&-K:F.T===null?gt():Lf()}function Fd(){if(fd===0){if(!(K&536870912)||H){var e=et;et<<=1,!(et&3932160)&&(et=262144),fd=e}else fd=536870912}return e=ko.current,e!==null&&(e.flags|=32),fd}function Id(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Lp(hi(e.memoizedProps,n))),Ad===null&&(Ad=[]),Ad.push(t.bind(null,r))}}function Ld(e,t,n){(e===nd&&(rd===2||rd===9)||e.cancelPendingCommit!==null)&&(Wd(e,0),Vd(e,K,fd,!1)),lt(e,n),(!(td&2)||e!==nd)&&(e===nd&&(!(td&2)&&(ud|=n),q===4&&Vd(e,K,fd,!1)),Af(e))}function Rd(e,t,n){if(td&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||it(e,t),a=r?Qd(e,t):Xd(e,t,!0),o=r;do{if(a===0){od&&!r&&Vd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Bd(n))a=Xd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=md;var l=c.current.memoizedState.isDehydrated;if(l&&(Wd(c,s).flags|=256),s=Xd(c,s,!1),s!==2&&s!==6){if(sd&&!l){c.errorRecoveryDisabledLanes|=o,ud|=o,a=4;break a}o=hd,hd=a,o!==null&&(hd===null?hd=o:hd.push.apply(hd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Wd(e,0),Vd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Vd(r,t,fd,!ad);break a;case 2:hd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=_d+300-Le(),10<a)){if(Vd(r,t,fd,!ad),rt(r,0,!0)!==0)break a;Td=t,r.timeoutHandle=bp(zd.bind(null,r,n,hd,bd,gd,t,fd,ud,pd,ad,o,`Throttled`,-0,0),a);break a}zd(r,n,hd,bd,gd,t,fd,ud,pd,ad,o,null,-0,0)}break}}while(1);Af(e)}function zd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gn},Bl=null,qu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=nh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?_d-Le():(a&4194048)===a?vd-Le():0,m=eh(d,m),m!==null)?(Td=a,e.cancelPendingCommit=m(of.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Vd(e,a,o,!l)):of(e,t,a,n,r,i,o,s,c,l,u,d)}function Bd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!zr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vd(e,t,n,r){t=at(e,t),t&=~dd,t&=~ud,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ye(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&dt(e,n,t)}function Hd(){return td&6?!0:(jf(0,!1),!1)}function Ud(){if(G!==null){if(rd===0)var e=G.return;else e=G,ha=ma=null,rs(e),ro=null,io=0,e=G;for(;e!==null;)bl(e.alternate,e),e=e.return;G=null}}function Wd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,xp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Td=0,Ud(),nd=e,G=n=Mi(e.current,null),K=t,rd=0,id=null,ad=!1,od=it(e,t),sd=!1,pd=fd=dd=ud=ld=q=0,hd=md=null,gd=!1,cd=at(e,t),Si(),n}function Gd(e,t){U=null,F.H=pc,t===qa||t===Ya?(t=to(),rd=3):t===Ja?(t=to(),rd=4):rd=t===jc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,id=t,G===null&&(q=1,Tc(e,Bi(t,e.current)))}function Kd(){var e=ko.current;return e===null?!0:(K&4194048)===K?Ao===null:(K&62914560)===K||K&536870912?e===Ao:!1}function qd(){var e=F.H;return F.H=pc,e===null?pc:e}function Jd(){var e=F.A;return F.A=$u,e}function Yd(){q=4,ad||(K&4194048)!==K&&ko.current!==null||(od=!0),!(ld&134217727)&&!(ud&134217727)||nd===null||Vd(nd,K,fd,!1)}function Xd(e,t,n){var r=td;td|=2;var i=qd(),a=Jd();(nd!==e||K!==t)&&(bd=null,Wd(e,t)),t=!1;var o=q;a:do try{if(rd!==0&&G!==null){var s=G,c=id;switch(rd){case 8:Ud(),o=6;break a;case 3:case 2:case 9:case 6:ko.current===null&&(t=!0);var l=rd;if(rd=0,id=null,nf(e,s,c,l),n&&od){o=0;break a}break;default:l=rd,rd=0,id=null,nf(e,s,c,l)}}Zd(),o=q;break}catch(t){Gd(e,t)}while(1);return t&&e.shellSuspendCounter++,ha=ma=null,td=r,F.H=i,F.A=a,G===null&&(nd=null,K=0,Si()),o}function Zd(){for(;G!==null;)ef(G)}function Qd(e,t){var n=td;td|=2;var r=qd(),a=Jd();nd!==e||K!==t?(bd=null,yd=Le()+500,Wd(e,t)):od=it(e,t);a:do try{if(rd!==0&&G!==null){t=G;var o=id;b:switch(rd){case 1:rd=0,id=null,nf(e,t,o,1);break;case 2:case 9:if(Za(o)){rd=0,id=null,tf(t);break}t=function(){rd!==2&&rd!==9||nd!==e||(rd=7),Af(e)},o.then(t,t);break a;case 3:rd=7;break a;case 4:rd=5;break a;case 7:Za(o)?(rd=0,id=null,tf(t)):(rd=0,id=null,nf(e,t,o,7));break;case 5:var s=null;switch(G.tag){case 26:s=G.memoizedState;case 5:case 27:var c=G;if(s?Ym(s):c.stateNode.complete){rd=0,id=null;var l=c.sibling;if(l!==null)G=l;else{var u=c.return;u===null?G=null:(G=u,rf(u))}break b}}rd=0,id=null,nf(e,t,o,5);break;case 6:rd=0,id=null,nf(e,t,o,6);break;case 8:Ud(),q=6;break a;default:throw Error(i(462))}}$d();break}catch(t){Gd(e,t)}while(1);return ha=ma=null,F.H=r,F.A=a,td=n,G===null?(nd=null,K=0,Si(),q):0}function $d(){for(;G!==null&&!Fe();)ef(G)}function ef(e){var t=dl(e.alternate,e,cd);e.memoizedProps=e.pendingProps,t===null?rf(e):G=t}function tf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gc(n,t,t.pendingProps,t.type,void 0,K);break;case 11:t=Gc(n,t,t.pendingProps,t.type.render,t.ref,K);break;case 5:rs(t);var r=t;r===ta&&(H?(ca(r),r.tag===5&&r.stateNode!=null&&(na=r.stateNode)):(ca(r),H=!0));default:bl(n,t),t=G=Ni(t,cd),t=dl(n,t,cd)}e.memoizedProps=e.pendingProps,t===null?rf(e):G=t}function nf(e,t,n,r){ha=ma=null,rs(t),ro=null,io=0;var i=t.return;try{if(Ac(e,i,t,n,K)){q=1,Tc(e,Bi(n,e.current)),G=null;return}}catch(t){if(i!==null)throw G=i,t;q=1,Tc(e,Bi(n,e.current)),G=null;return}t.flags&32768?(H||r===1?e=!0:od||K&536870912?e=!1:(ad=e=!0,(r===2||r===9||r===3||r===6)&&(r=ko.current,r!==null&&r.tag===13&&(r.flags|=16384))),af(t,e)):rf(t)}function rf(e){var t=e;do{if(t.flags&32768){af(t,ad);return}e=t.return;var n=vl(t.alternate,t,cd);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);q===0&&(q=5)}function af(e,t){do{var n=yl(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);q=6,G=null}function of(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do mf();while(Sd!==0);if(td&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===nd&&(G=nd=null,K=0),wd=t,Cd=e,Td=n,Dd=a,Od=r,sf(e,t,n,s,c,l,f)}}function sf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Ed=s,s|=xi,ut(e,n,s,r,i,a),Ad=null,(n&335544064)===n?(jd=Pa(e),r=10262):(jd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Cf(Ve,function(){return hf(),null})):(e.callbackNode=null,e.callbackPriority=0),zl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=F.T,F.T=null,i=I.p,I.p=2,a=td,td|=4;try{mu(e,t,n)}finally{td=a,I.p=i,F.T=r}}Sd=1,zl?kd=Fp(o,e.containerInfo,jd,uf,df,lf,ff,hf,cf,null,null):(uf(),df(),ff())}function cf(e){if(Sd!==0){var t=Cd.onRecoverableError;t(e,{componentStack:null})}}function lf(){Sd===3&&(Sd=0,Fu(wd,Cd),Sd=4)}function uf(){if(Sd===1){Sd=0;var e=Cd,t=wd,n=Td,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=F.T,F.T=null;var i=I.p;I.p=2;var a=td;td|=4;try{du=fu=!1,ju(t,e,n),n=fp;var o=Gr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Wr(s.ownerDocument.documentElement,s)){if(c!==null&&Kr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Ur(s,h),v=Ur(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}gh=!!dp,fp=dp=null}finally{td=a,I.p=i,F.T=r}}e.current=t,Sd=2}}function df(){if(Sd===2){Sd=0;var e=Cd,t=wd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=F.T,F.T=null;var r=I.p;I.p=2;var i=td;td|=4;try{gu(e,t.alternate,t)}finally{td=i,I.p=r,F.T=n}}Sd=3}}function ff(){if(Sd===4||Sd===3){Sd=0;var e=kd;kd=null,Ie();var t=Cd,n=wd,r=Td,i=Od,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Sd=5:(Sd=0,wd=Cd=null,pf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(xd=null),ht(r),n=n.stateNode,qe&&typeof qe.onCommitFiberRoot==`function`)try{qe.onCommitFiberRoot(Ke,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=F.T,a=I.p,I.p=2,F.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{F.T=n,I.p=a}}if(i=Ad,o=jd,jd=null,i!==null&&(Ad=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Td&3&&mf(),Af(t),a=t.pendingLanes,r&261930&&a&42?t===Nd?Md++:(Md=0,Nd=t):(Md=0,Nd=null),jf(0,!1)}}function pf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ja(t)))}function mf(){return kd!==null&&(kd.skipTransition(),kd=null),uf(),df(),ff(),hf()}function hf(){if(Sd!==5)return!1;var e=Cd,t=Ed;Ed=0;var n=ht(Td),r=F.T,a=I.p;try{I.p=32>n?32:n,F.T=null,n=Dd,Dd=null;var o=Cd,s=Td;if(Sd=0,wd=Cd=null,Td=0,td&6)throw Error(i(331));var c=td;if(td|=4,Xu(o.current),Hu(o,o.current,s,n),td=c,jf(0,!1),qe&&typeof qe.onPostCommitFiberRoot==`function`)try{qe.onPostCommitFiberRoot(Ke,o)}catch{}return!0}finally{I.p=a,F.T=r,pf(e,t)}}function gf(e,t,n){t=Bi(n,t),t=Dc(e.stateNode,t,2),e=go(e,t,2),e!==null&&(lt(e,2),Af(e))}function _f(e,t,n){if(e.tag===3)gf(e,e,n);else for(;t!==null;){if(t.tag===3){gf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(xd===null||!xd.has(r))){e=Bi(n,e),n=Oc(2),r=go(t,n,2),r!==null&&(kc(n,r,t,e),lt(r,2),Af(r));break}}t=t.return}}function vf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(sd=!0,i.add(n),e=yf.bind(null,e,t,n),t.then(e,e))}function yf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nd===e&&(K&n)===n&&(q===4||q===3&&(K&62914560)===K&&300>Le()-_d?td&2?dd|=n:Wd(e,0):dd|=n,pd===K&&(pd=0)),Af(e)}function bf(e,t){t===0&&(t=st()),e=Ti(e,t),e!==null&&(lt(e,t),Af(e))}function xf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bf(e,n)}function Sf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),bf(e,n)}function Cf(e,t){return Ne(e,t)}var wf=null,Tf=null,Ef=!1,Df=!1,Of=!1,kf=0;function Af(e){e!==Tf&&e.next===null&&(Tf===null?wf=Tf=e:Tf=Tf.next=e),Df=!0,Ef||(Ef=!0,If())}function jf(e,t){if(!Of&&Df){Of=!0;do for(var n=!1,r=wf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ye(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Ff(r,a))}else a=K,a=rt(r,r===nd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||it(r,a)||(n=!0,Ff(r,a))}r=r.next}while(n);Of=!1}}function Mf(){Nf()}function Nf(){Df=Ef=!1;var e=0;kf!==0&&yp()&&(e=kf);for(var t=Le(),n=null,r=wf;r!==null;){var i=r.next,a=J(r,t);a===0?(r.next=null,n===null?wf=i:n.next=i,i===null&&(Tf=n)):(n=r,(e!==0||a&3)&&(Df=!0)),r=i}Sd!==0&&Sd!==5||jf(e,!1),kf!==0&&(kf=0)}function J(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ye(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ot(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=nd,n=K,n=rt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(rd===2||rd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Pe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||it(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Pe(r),ht(n)){case 2:case 8:n=Be;break;case 32:n=Ve;break;case 268435456:n=Ue;break;default:n=Ve}return r=Pf.bind(null,e),n=Ne(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Pe(r),e.callbackPriority=2,e.callbackNode=null,2}function Pf(e,t){if(Sd!==0&&Sd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(mf()&&e.callbackNode!==n)return null;var r=K;return r=rt(e,e===nd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Rd(e,r,t),J(e,Le()),e.callbackNode!=null&&e.callbackNode===n?Pf.bind(null,e):null)}function Ff(e,t){if(mf())return null;Rd(e,t,!0)}function If(){wp(function(){td&6?Ne(ze,Mf):Nf()})}function Lf(){if(kf===0){var e=La;e===0&&(e=$e,$e<<=1,!($e&261888)&&($e=256)),kf=e}return kf}function Rf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:hn(e)}function zf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Rf((i[bt]||null).action),o=r.submitter;o&&(t=(t=o[bt]||null)?Rf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Ln(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(kf!==0){var e=new FormData(i,o);$s(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),$s(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Bf=0;Bf<fi.length;Bf++){var Vf=fi[Bf];pi(Vf.toLowerCase(),`on`+(Vf[0].toUpperCase()+Vf.slice(1)))}pi(ii,`onAnimationEnd`),pi(ai,`onAnimationIteration`),pi(oi,`onAnimationStart`),pi(`dblclick`,`onDoubleClick`),pi(`focusin`,`onFocus`),pi(`focusout`,`onBlur`),pi(si,`onTransitionRun`),pi(ci,`onTransitionStart`),pi(li,`onTransitionCancel`),pi(ui,`onTransitionEnd`),Rt(`onMouseEnter`,[`mouseout`,`mouseover`]),Rt(`onMouseLeave`,[`mouseout`,`mouseover`]),Rt(`onPointerEnter`,[`pointerout`,`pointerover`]),Rt(`onPointerLeave`,[`pointerout`,`pointerover`]),Lt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Lt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Lt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Lt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Hf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Uf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Hf));function Wf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){vi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){vi(e)}i.currentTarget=null,a=c}}}}function Y(e,t){var n=t[St];n===void 0&&(n=t[St]=new Set);var r=e+`__bubble`;n.has(r)||(Jf(t,e,2,!1),n.add(r))}function Gf(e,t,n){var r=0;t&&(r|=4),Jf(n,e,r,t)}var Kf=`_reactListening`+Math.random().toString(36).slice(2);function qf(e){if(!e[Kf]){e[Kf]=!0,Ft.forEach(function(t){t!==`selectionchange`&&(Uf.has(t)||Gf(t,!1,e),Gf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kf]||(t[Kf]=!0,Gf(`selectionchange`,!1,t))}}function Jf(e,t,n,r){switch(Ch(t)){case 2:var i=_h;break;case 8:i=vh;break;default:i=yh}n=i.bind(null,t,n,e),i=void 0,!En||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Yf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=kt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Cn(function(){var r=a,i=vn(n),s=[];a:{var c=di.get(e);if(c!==void 0){var l=Ln,u=e;switch(e){case`keypress`:if(Mn(n)===0)break a;case`keydown`:case`keyup`:l=tr;break;case`focusin`:u=`focus`,l=Kn;break;case`focusout`:u=`blur`,l=Kn;break;case`beforeblur`:case`afterblur`:l=Kn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Gn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ir;break;case ii:case ai:case oi:l=qn;break;case ui:l=ar;break;case`scroll`:case`scrollend`:l=zn;break;case`wheel`:l=or;break;case`copy`:case`cut`:case`paste`:l=Jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=nr;break;case`submit`:l=rr;break;case`toggle`:case`beforetoggle`:l=sr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=wn(m,p),g!=null&&d.push(Xf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==_n&&(u=n.relatedTarget||n.fromElement)&&(kt(u)||u[xt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?kt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=nr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:jt(c),h=l==null?u:jt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,kt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,Qf):null,c!==null&&$f(s,u,c,d,!1),l!==null&&f!==null&&$f(s,f,l,d,!0)))}a:{if(c=r?jt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Dr;else if(xr(c)){if(Or)_=Lr;else{_=Fr;var v=Pr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&fn(r.elementType)&&(_=Dr):_=Ir;if(_&&=_(e,r)){Sr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?jt(r):window,e){case`focusin`:(xr(v)||v.contentEditable===`true`)&&(Jr=v,Yr=r,Xr=null);break;case`focusout`:Xr=Yr=Jr=null;break;case`mousedown`:Zr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Zr=!1,Qr(s,n,i);break;case`selectionchange`:if(qr)break;case`keydown`:case`keyup`:Qr(s,n,i)}var y;if(lr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else _r?hr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(fr&&n.locale!==`ko`&&(_r||b!==`onCompositionStart`?b===`onCompositionEnd`&&_r&&(y=jn()):(On=i,kn=`value`in On?On.value:On.textContent,_r=!0)),v=Zf(r,b),0<v.length&&(b=new Yn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=gr(n),y!==null&&(b.data=y)))),(y=dr?vr(e,n):yr(e,n))&&(b=Zf(r,`onBeforeInput`),0<b.length&&(v=new Yn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),zf(s,e,r,n,i)}Wf(s,t)})}function Xf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=wn(e,n),i!=null&&r.unshift(Xf(e,i,a)),i=wn(e,t),i!=null&&r.push(Xf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Qf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $f(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=wn(n,a),l!=null&&o.unshift(Xf(n,l,c))):i||(l=wn(n,a),l!=null&&o.push(Xf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ep=/\r\n?/g,tp=/\u0000|\uFFFD/g;function np(e){return(typeof e==`string`?e:``+e).replace(ep,`
|
|
10
|
-
`).replace(tp,``)}function rp(e,t){return t=np(t),np(e)===t}function ip(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&cn(e,``+r);else return;break;case`className`:Kt(e,`class`,r);break;case`tabIndex`:Kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Kt(e,n,r);break;case`style`:dn(e,r,o);return;case`data`:if(t!==`object`){Kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ip(e,t,`name`,a.name,a,null),ip(e,t,`formEncType`,a.formEncType,a,null),ip(e,t,`formMethod`,a.formMethod,a,null),ip(e,t,`formTarget`,a.formTarget,a,null)):(ip(e,t,`encType`,a.encType,a,null),ip(e,t,`method`,a.method,a,null),ip(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=gn);return;case`onScroll`:r!=null&&Y(`scroll`,e);return;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=hn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Y(`beforetoggle`,e),Y(`toggle`,e),Gt(e,`popover`,r);break;case`xlinkActuate`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Gt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=pn.get(n)||n,Gt(e,n,r);else return}Ut=!0}function ap(e,t,n,r,a,o){switch(n){case`style`:dn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)cn(e,``+r);else return;break;case`onScroll`:r!=null&&Y(`scroll`,e);return;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=gn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!It.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[bt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Ut=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Gt(e,n,r)}return}Ut=!0}function op(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Y(`error`,e),Y(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ip(e,t,o,s,n,null)}}a&&ip(e,t,`srcSet`,n.srcSet,n,null),r&&ip(e,t,`src`,n.src,n,null);return;case`input`:Y(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:ip(e,t,r,d,n,null)}}nn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Y(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:ip(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&an(e,!!r,n,!0):an(e,!!r,t,!1);return;case`textarea`:for(s in Y(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:ip(e,t,s,c,n,null)}sn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ip(e,t,l,r,n,null)}return;case`dialog`:Y(`beforetoggle`,e),Y(`toggle`,e),Y(`cancel`,e),Y(`close`,e);break;case`iframe`:case`object`:Y(`load`,e);break;case`video`:case`audio`:for(r=0;r<Hf.length;r++)Y(Hf[r],e);break;case`image`:Y(`error`,e),Y(`load`,e);break;case`details`:Y(`toggle`,e);break;case`embed`:case`source`:case`link`:Y(`error`,e),Y(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ip(e,t,u,r,n,null)}return;default:if(fn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ap(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ip(e,t,c,r,n,null))}var sp={};function cp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ip(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Ut=!0),o=m;break;case`name`:m!==f&&(Ut=!0),a=m;break;case`checked`:m!==f&&(Ut=!0),u=m;break;case`defaultChecked`:m!==f&&(Ut=!0),d=m;break;case`value`:m!==f&&(Ut=!0),s=m;break;case`defaultValue`:m!==f&&(Ut=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ip(e,t,p,m,r,f)}}tn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||ip(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Ut=!0),p=o;break;case`defaultValue`:o!==l&&(Ut=!0),c=o;break;case`multiple`:o!==l&&(Ut=!0),s=o;default:o!==l&&ip(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?an(e,!!n,n?[]:``,!1):an(e,!!n,t,!0)):an(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ip(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Ut=!0),p=a;break;case`defaultValue`:a!==o&&(Ut=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ip(e,t,s,a,r,o)}on(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ip(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Ut=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ip(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ip(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:ip(e,t,u,p,r,m)}return;default:if(fn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ap(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||ap(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ip(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ip(e,t,f,p,r,m)}function lp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function up(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&lp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&lp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var dp=null,fp=null;function pp(e){return e.nodeType===9?e:e.ownerDocument}function mp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function hp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function gp(e,t,n,r){return n=pp(n).createElement(e),n[yt]=r,n[bt]=t,op(n,e,t),Nt(n),n}function _p(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vp=null;function yp(){var e=window.event;return e&&e.type===`popstate`?e!==vp&&(vp=e,!0):(vp=null,!1)}var bp=typeof setTimeout==`function`?setTimeout:void 0,xp=typeof clearTimeout==`function`?clearTimeout:void 0,Sp=typeof Promise==`function`?Promise:void 0,Cp=typeof requestAnimationFrame==`function`?requestAnimationFrame:bp,wp=typeof queueMicrotask==`function`?queueMicrotask:Sp===void 0?bp:function(e){return Sp.resolve(null).then(e).catch(Tp)};function Tp(e){setTimeout(function(){throw e})}function Ep(e){return e===`head`}function Dp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Et]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Hh(t)}function Op(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function kp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ap(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function jp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Mp(e){return jp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Np(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return jp(t,n,e)}function Pp(e){return e.documentElement.clientHeight}function X(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Fp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Pp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Xm(f),u>$m){s.length=o;break}f=new Promise(X.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Ip(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Ip.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Ip.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Ip.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Lp(e){return{name:e,group:new Ip(`group`,e),imagePair:new Ip(`image-pair`,e),old:new Ip(`old`,e),new:new Ip(`new`,e)}}function Rp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Rp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Up(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Vp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),h(this._fragmentFiber.child,!1,zp,e,s,r)}this._eventListeners=a}};function zp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Rp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Up(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Vp(i.optionsOrUseCapture),h(this._fragmentFiber.child,!1,Bp,e,n,i),r.splice(t,1),a!==null&&a()}};function Bp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Vp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Hp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Up(e,t,n,r){if(e.length===0)return-1;r=Hp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Hp(a.optionsOrUseCapture)===r)return i}return-1}Rp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Vp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Vp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Rp.prototype.focus=function(e){h(this._fragmentFiber.child,!0,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=b(e),pm(e,t))}Rp.prototype.focusLast=function(e){var t=[];h(this._fragmentFiber.child,!0,Gp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Wp(t[n],e);n--);};function Gp(e,t){return t.push(e),!1}Rp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=pp(e).activeElement,e!==null&&h(this._fragmentFiber.child,!1,Kp,e,void 0,void 0))};function Kp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Rp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),h(this._fragmentFiber.child,!1,qp,e,void 0,void 0)};function qp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Rp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),h(this._fragmentFiber.child,!1,Jp,e,void 0,void 0);for(var n=t=0;n<Yp.length;n++){var r=Yp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Yp[t++]=r}Yp.length=t}};function Jp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Yp=[],Xp=!1;function Zp(e,t,n){Yp.push({fragmentInstance:e,observer:t,instance:n}),Xp||(Xp=!0,mm(function(){Xp=!1;var e=Yp;Yp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Rp.prototype.getClientRects=function(){var e=[];return h(this._fragmentFiber.child,!1,Qp,e,void 0,void 0),e};function Qp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Rp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Rp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];h(this._fragmentFiber.child,!1,Gp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||$p(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $p(e,t,n,r,i){var a=kt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(h(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(h(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function em(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Rp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];h(this._fragmentFiber.child,!1,Gp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),em(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),em(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function tm(e,t){return e=b(e),nm(e,t),!1}function nm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function rm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Yp.length;i++){var a=Yp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Yp[r++]=a)}Yp.length=r,n.observe(e)}),nm(e,t))}function Z(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Vp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Zp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Q(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:Q(n),Ot(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function im(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Et])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=um(e.nextSibling),e===null)break}return null}function am(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=um(e.nextSibling),e===null))return null;return e}function om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=um(e.nextSibling),e===null))return null;return e}function sm(e){return e.data===`$?`||e.data===`$~`}function cm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function um(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var dm=null;function $(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return um(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function mm(e){Cp(function(){Cp(function(t){return e(t)})})}function hm(e,t,n){switch(t=pp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ip(e,t,r,null,sp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===gn&&(e.onclick=null),Ot(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ot(e)}var vm=new Map,ym=new Set;function bm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var xm=I.d;I.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=Hd();return e||t}function Cm(e){var t=At(e);t!==null&&t.tag===5&&t.type===`form`?tc(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=en(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),op(t,`link`,e),Nt(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+en(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+en(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+en(n.imageSizes)+`"]`)):i+=`[href="`+en(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);op(o,`link`,e),t===`style`&&(o[Dt]=!0,o.onload=o.onerror=function(){Pt(o)}),Nt(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+en(r)+`"][href="`+en(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),op(r,`link`,e),Nt(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Mt(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Nt(c),op(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Mt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=D({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Nt(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Mt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Nt(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=Se.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Mt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=Mt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Mt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+en(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Dt]){r.loading=1;return}}else t=e.createElement(`link`),t[Dt]=!0,t.onload=t.onerror=Pt.bind(null,t),op(t,`link`,n),Nt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+en(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+en(n.href)+`"]`);if(r)return t.instance=r,Nt(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Nt(r),op(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Nt(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Nt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),op(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Nt(a),a):(r=n,(a=vm.get(o))&&(r=D({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Nt(a),op(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Et]||a[yt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Nt(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Nt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),op(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*up());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=nh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sh={$$typeof:M,Provider:null,Consumer:null,_currentValue:ge,_currentValue2:ge,_threadCount:0};function ch(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ct(0),this.hiddenUpdates=ct(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function lh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ch(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ai(3,null,null,t),e.current=a,a.stateNode=e,t=Aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},po(a),e}function uh(e){return e?(e=Oi,e):Oi}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=ho(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=go(e,r,t),n!==null&&(Ld(n,e,t),_o(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ph(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function mh(e){if(e.tag===13||e.tag===31){var t=Ti(e,67108864);t!==null&&Ld(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=Pd();t=mt(t);var n=Ti(e,t);n!==null&&Ld(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=2,yh(e,t,n,r)}finally{I.p=a,F.T=i}}function vh(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=8,yh(e,t,n,r)}finally{I.p=a,F.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Yf(e,t,r,xh,n),Mh(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var a=At(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=nt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ye(o);s.entanglements[1]|=c,o&=~c}Af(a),!(td&6)&&(yd=Le()+500,jf(0,!1))}}break;case 31:case 13:s=Ti(a,2),s!==null&&Ld(s,a,2),Hd(),ph(a,2)}if(a=bh(r),a===null&&Yf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Yf(e,t,r,null,n)}}function bh(e){return e=vn(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=kt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xh=e,null}function Ch(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Re()){case ze:return 2;case Be:return 8;case Ve:case He:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var wh=!1,Th=null,Eh=null,Dh=null,Oh=new Map,kh=new Map,Ah=[],jh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Mh(e,t){switch(e){case`focusin`:case`focusout`:Th=null;break;case`dragenter`:case`dragleave`:Eh=null;break;case`mouseover`:case`mouseout`:Dh=null;break;case`pointerover`:case`pointerout`:Oh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kh.delete(t.pointerId)}}function Nh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=At(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case`focusin`:return Th=Nh(Th,e,t,n,r,i),!0;case`dragenter`:return Eh=Nh(Eh,e,t,n,r,i),!0;case`mouseover`:return Dh=Nh(Dh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Oh.set(a,Nh(Oh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kh.set(a,Nh(kh.get(a)||null,e,t,n,r,i)),!0}return!1}function Fh(e){var t=kt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,_t(e.priority,function(){hh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,_t(e.priority,function(){hh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);_n=r,n.target.dispatchEvent(r),_n=null}else return t=At(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){Ih(e)&&n.delete(t)}function Rh(){wh=!1,Th!==null&&Ih(Th)&&(Th=null),Eh!==null&&Ih(Eh)&&(Eh=null),Dh!==null&&Ih(Dh)&&(Dh=null),Oh.forEach(Lh),kh.forEach(Lh)}function zh(e,n){e.blockedOn===n&&(e.blockedOn=null,wh||(wh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rh)))}var Bh=null;function Vh(e){Bh!==e&&(Bh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bh===e&&(Bh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sh(r||n)===null)continue;break}var a=At(n);a!==null&&(e.splice(t,3),t-=3,$s(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return zh(t,e)}Th!==null&&zh(Th,e),Eh!==null&&zh(Eh,e),Dh!==null&&zh(Dh,e),Oh.forEach(t),kh.forEach(t);for(var n=0;n<Ah.length;n++){var r=Ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ah.length&&(n=Ah[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&Ah.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[bt]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[bt]||null)s=o.formAction;else if(Sh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Uh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wh(e){this._internalRoot=e}Gh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;dh(n,Pd(),e,t,null,null)},Gh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),Hd(),t[xt]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ah.length&&t!==0&&t<Ah[n].priority;n++);Ah.splice(n,0,e),n===0&&Fh(e)}};var Kh=n.version;if(Kh!==`19.3.0`)throw Error(i(527,Kh,`19.3.0`));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:F,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{Ke=Jh.inject(qh),qe=Jh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Sc,s=Cc,c=wc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=lh(e,1,!1,null,null,n,r,null,o,s,c,Uh),e[xt]=t.current,qf(e),new Wh(t)}})),g=o(((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=h()}));function _(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var v=c(u(),1),y=typeof document<`u`?v.useLayoutEffect:()=>{},b={prefix:String(Math.round(Math.random()*1e10)),current:0},x=v.createContext(b),S=v.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var C=new WeakMap;function w(e=!1){let t=(0,v.useContext)(x),n=(0,v.useRef)(null);if(n.current===null&&!e){let e=v.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=C.get(e);n==null?C.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,C.delete(e))}n.current=++t.current}return n.current}function T(e){let t=(0,v.useContext)(x),n=w(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function E(e){let t=v.useId(),[n]=(0,v.useState)(j()),r=n?`react-aria`:`react-aria${b.prefix}`;return e||`${r}-${t}`}var D=typeof v.useId==`function`?E:T;function O(){return!1}function k(){return!0}function A(e){return()=>{}}function j(){return typeof v.useSyncExternalStore==`function`?v.useSyncExternalStore(A,O,k):(0,v.useContext)(S)}function ee(e){let[t,n]=(0,v.useState)(e),r=(0,v.useRef)(t),i=(0,v.useRef)(null),a=(0,v.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 y(()=>{r.current=t,i.current&&a.current()}),[t,(0,v.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}var te=!!(typeof window<`u`&&window.document&&window.document.createElement),ne=new Map,M;typeof FinalizationRegistry<`u`&&(M=new FinalizationRegistry(e=>{ne.delete(e)}));var re=new WeakMap;function N(e){let[t,n]=(0,v.useState)(e),r=(0,v.useRef)(null),i=D(t),a=(0,v.useRef)(null),o=re.get(a);if(M&&o!==i&&(o!=null&&M.unregister(a),M.register(a,i,a),re.set(a,i)),te){let e=ne.get(i);e&&!e.includes(r)?e.push(r):ne.set(i,[r])}return y(()=>{let e=i;return()=>{M&&(M.unregister(a),re.delete(a)),ne.delete(e)}},[i]),(0,v.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function ie(e,t){if(e===t)return e;let n=ne.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=ne.get(t);return r?(r.forEach(t=>t.current=e),e):t}function ae(e=[]){let t=N(),[n,r]=ee(t),i=(0,v.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return y(i,[t,i,...e]),n}function oe(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=se(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():se(e[n],null)})}}}function se(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function ce(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=ce(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function le(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ce(e))&&(r&&(r+=` `),r+=t);return r}function P(...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]=_(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=le(n,i):e===`id`&&n&&i?t.id=ie(n,i):e===`ref`&&n&&i?t.ref=oe(n,i):t[e]=i===void 0?n:i}}return t}function ue(e){let t=(0,v.useRef)(null),n=(0,v.useRef)(void 0),r=(0,v.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,v.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 de=Symbol(`default`);function fe({values:e,children:t}){for(let[n,r]of e)t=v.createElement(n.Provider,{value:r},t);return t}function pe(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:c}=e;return(0,v.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 me(e,t){let n=(0,v.useContext)(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||de;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 he(e,t,n){let{ref:r,...i}=me(n,e.slot)||{},a=ue((0,v.useMemo)(()=>oe(t,r),[t,r])),o=P(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 F(e=!0){let[t,n]=(0,v.useState)(e),r=(0,v.useRef)(!1),i=(0,v.useCallback)(e=>{r.current=!0,n(!!e)},[]);return y(()=>{r.current||n(!1)},[]),[i,t]}function I(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function ge(e,t,n){let{render:r,...i}=t,a=(0,v.useRef)(null),o=(0,v.useMemo)(()=>oe(n,a),[n,a]);y(()=>{},[e,r]);let s={...i,ref:o};return r?r(s,void 0):v.createElement(e,s)}var _e={},ve=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=_e[t];return n||(n=(0,v.forwardRef)(ge.bind(null,t)),_e[t]=n),n}}),ye=`react-aria-clear-focus`,be=`react-aria-focus`,L=e=>Se(e)?e.document:Ce(e)?e:e?.ownerDocument??(typeof document<`u`?document:void 0),R=e=>L(e)?.defaultView??(typeof window<`u`?window:void 0);function xe(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function Se(e){return typeof e==`object`&&!!e&&`window`in e&&e.window===e}function Ce(e){return xe(e)&&e.nodeType===9}function we(e){return xe(e)&&e.nodeType===11&&`host`in e}function Te(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 Ee(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 De=!1;function Oe(){return De}function z(e,t){if(!Oe())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:we(n)?n.host:n.parentNode}return!1}var B=(e=document)=>{if(!Oe())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function V(e){if(Oe()&&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 ke(e,t){if(t===null)return[];t??=R(e);let n=[t];if(!Oe()||!e||e===t)return n;let r=`getRootNode`in t?t.getRootNode():null,i=e.getRootNode()??null;for(;we(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function Ae(e){if(!e)return!1;let t=e.getRootNode(),n=R(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function je(e){let t=Pe(L(e));t!==e&&(t&&Me(t,e),e&&Ne(e,t))}function Me(e,t){e.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:t}))}function Ne(e,t){e.dispatchEvent(new FocusEvent(`focus`,{relatedTarget:t})),e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0,relatedTarget:t}))}function Pe(e){let t=B(e),n=t?.getAttribute(`aria-activedescendant`);return n&&e.getElementById(n)||t}function Fe(e){if(Le())e.focus({preventScroll:!0});else{let t=Re(e);e.focus(),ze(t)}}var Ie=null;function Le(){if(Ie==null){Ie=!1;try{document.createElement(`div`).focus({get preventScroll(){return Ie=!0,!0}})}catch{}}return Ie}function Re(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function ze(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var Be=typeof Element<`u`&&`checkVisibility`in Element.prototype;function Ve(e){let t=R(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}=R(e),{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function He(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 Ue(e,t){return Be?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&Ve(e)&&He(e,t)&&(!e.parentElement||Ue(e.parentElement,e))}var We=[`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`],Ge=We.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;We.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var Ke=We.join(`:not([hidden]):not([tabindex="-1"]),`);function qe(e,t){return e.matches(Ge)&&!Ye(e)&&(t?.skipVisibilityCheck||Ue(e))}function Je(e){return e.matches(Ke)&&Ue(e)&&!Ye(e)}function Ye(e){let t=e;for(;t!=null;){if(t instanceof R(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Xe(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ze(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Qe(e){let t=(0,v.useRef)({isFocused:!1,observer:null});return y(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,v.useCallback)(n=>{let r=V(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=Xe(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===B()?null:B();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 $e=!1;function et(e){for(;e&&!qe(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=B(R(e).document);if(!t||t===e)return;let n=e?.getRootNode(),r=n!=null&&we(n)?n:R(e),i=t=>t===e||t!=null&&z(e,t),a=e=>e===t||t!=null&&e!=null&&z(t,e);$e=!0;let o=!1,s=e=>{(a(V(e))||o)&&e.stopImmediatePropagation()},c=n=>{(a(V(n))||o)&&(n.stopImmediatePropagation(),!e&&!o&&(o=!0,Fe(t),d()))},l=e=>{(i(V(e))||o)&&e.stopImmediatePropagation()},u=e=>{(i(V(e))||o)&&(e.stopImmediatePropagation(),o||(o=!0,Fe(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),$e=!1,o=!1},f=requestAnimationFrame(d);return d}function tt(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 nt(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function rt(e){let t=null;return()=>(t??=e(),t)}var it=rt(function(){return nt(/^Mac/i)}),at=rt(function(){return nt(/^iPhone/i)}),ot=rt(function(){return nt(/^iPad/i)||it()&&navigator.maxTouchPoints>1}),st=rt(function(){return at()||ot()}),ct=rt(function(){return it()||st()}),lt=rt(function(){return tt(/AppleWebKit/i)&&(st()||!ut())}),ut=rt(function(){return tt(/Chrome|CriOS|CrMo/i)}),dt=rt(function(){return tt(/Android/i)}),ft=rt(function(){return tt(/(Firefox|FxiOS)/i)});function pt(e){return e.pointerType===``&&e.isTrusted?!0:dt()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function mt(e){return!dt()&&e.width===0&&e.height===0||dt()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}var ht=(0,v.createContext)({isNative:!0,open:bt,useHref:e=>e});function gt(){return(0,v.useContext)(ht)}function _t(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 vt(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t;!lt()&&ft()&&window.event?.type?.startsWith(`key`)&&e.target===`_blank`&&(it()?r=!0:i=!0);let s=lt()&&it()&&!ot()?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});vt.isOpening=n,Fe(e),e.dispatchEvent(s),vt.isOpening=!1}vt.isOpening=!1;function yt(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 bt(e,t){yt(e,e=>vt(e,t))}function xt(e){let t=gt().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 St(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&_t(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}var Ct=null,wt=new Set,Tt=new Map,Et=!1,Dt=!1,Ot={Tab:!0,Escape:!0};function kt(e,t){for(let n of wt)n(e,t)}function At(e){return!(e.metaKey||!it()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function jt(e){Et=!0,!vt.isOpening&&At(e)&&(Ct=`keyboard`,kt(`keyboard`,e))}function Mt(e){Ct=`pointer`,`pointerType`in e&&e.pointerType,(e.type===`mousedown`||e.type===`pointerdown`)&&(Et=!0,kt(`pointer`,e))}function Nt(e){!vt.isOpening&&pt(e)&&(Et=!0,Ct=`virtual`)}function Pt(e){if($e)return;let t=V(e),n=R(t),r=L(t);t===n?Dt=!0:t!==r&&e.isTrusted&&(!Et&&!Dt&&(Ct=`virtual`,kt(`virtual`,e)),Et=!1,Dt=!1)}function Ft(){$e||(Et=!1,Dt=!0)}function It(e){if(typeof window>`u`||typeof document>`u`)return;let t=R(e),n=L(e);if(Tt.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Et=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,jt,!0),n.addEventListener(`keyup`,jt,!0),n.addEventListener(`click`,Nt,!0),t.addEventListener(`focus`,Pt,!0),t.addEventListener(`blur`,Ft,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,Mt,!0),n.addEventListener(`pointermove`,Mt,!0),n.addEventListener(`pointerup`,Mt,!0)),t.addEventListener(`beforeunload`,()=>{Lt(e)},{once:!0}),Tt.set(t,{focus:r})}var Lt=(e,t)=>{let n=R(e),r=L(e);t&&r.removeEventListener(`DOMContentLoaded`,t),Tt.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Tt.get(n).focus}),r.removeEventListener(`keydown`,jt,!0),r.removeEventListener(`keyup`,jt,!0),r.removeEventListener(`click`,Nt,!0),n.removeEventListener(`focus`,Pt,!0),n.removeEventListener(`blur`,Ft,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,Mt,!0),r.removeEventListener(`pointermove`,Mt,!0),r.removeEventListener(`pointerup`,Mt,!0)),Tt.delete(n))};function Rt(e){let t=L(e),n;return t.readyState===`loading`?(n=()=>{It(e)},t.addEventListener(`DOMContentLoaded`,n)):It(e),()=>Lt(e,n)}typeof document<`u`&&Rt();function zt(){return Ct!==`pointer`}function Bt(){return Ct}function Vt(e){Ct=e,kt(e,null)}var Ht=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Ut(e,t,n){let r=n?V(n):void 0,i=L(r),a=R(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=B(i);return e=e||u instanceof o&&!Ht.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!Ot[n.key])}function Wt(e,t,n){It(),(0,v.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{Ut(!!n?.isTextInput,t,r)&&e(zt())};return wt.add(t),()=>{wt.delete(t)}},t)}function Gt(e){return it()?e.metaKey:e.ctrlKey}var Kt=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function qt(e){return e instanceof HTMLInputElement&&!Kt.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Jt=v.useInsertionEffect??y;function Yt(e){let t=(0,v.useRef)(null);return Jt(()=>{t.current=e},[e]),(0,v.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function Xt(e,t,n,r){let i=Yt(n),a=n==null;(0,v.useEffect)(()=>{if(!(a||e.current==null))return Te(e.current,t,i,r)},[e,t,r,a])}function Zt(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=N(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 Qt=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),$t=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function en(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 Qt.has(t.script)}let t=e.split(`-`)[0];return $t.has(t)}var tn=Symbol.for(`react-aria.i18n.locale`);function nn(){let e=typeof window<`u`&&window[tn]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:en(e)?`rtl`:`ltr`}}var rn=nn(),an=new Set;function on(){rn=nn();for(let e of an)e(rn)}function sn(){let e=j(),[t,n]=(0,v.useState)(rn);return(0,v.useEffect)(()=>(an.size===0&&window.addEventListener(`languagechange`,on),an.add(n),()=>{an.delete(n),an.size===0&&window.removeEventListener(`languagechange`,on)}),[]),e?{locale:typeof window<`u`&&window[tn]||`en-US`,direction:`ltr`}:t}var cn=v.createContext(null);function ln(){let e=sn();return(0,v.useContext)(cn)||e}var un=Symbol.for(`react-aria.i18n.locale`),dn=Symbol.for(`react-aria.i18n.strings`),fn=void 0,pn=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=mn(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[un];if(fn===void 0){let t=window[dn];if(!t)return null;fn={};for(let r in t)fn[r]=new e({[n]:t[r]},n)}let r=fn?.[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 mn(e,t,n=`en-US`){if(t[e])return t[e];let r=hn(e),i=gn(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 hn(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}function gn(e){if(Intl.Locale)return new Intl.Locale(e).script}var _n=new Map,vn=new Map,yn=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=_n.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),_n.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=vn.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),vn.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},bn=new WeakMap;function xn(e){let t=bn.get(e);return t||(t=new pn(e),bn.set(e,t)),t}function Sn(e,t){return t&&pn.getGlobalDictionaryForPackage(t)||xn(e)}function Cn(e,t){let{locale:n}=ln(),r=Sn(e,t);return(0,v.useMemo)(()=>new yn(n,r),[n,r])}var wn=typeof document<`u`?v.useInsertionEffect??v.useLayoutEffect:()=>{};function Tn(e,t,n){let[r,i]=(0,v.useState)(e||t),a=(0,v.useRef)(r),o=(0,v.useRef)(e!==void 0),s=e!==void 0;(0,v.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;wn(()=>{a.current=c});let[,l]=(0,v.useReducer)(()=>({}),{});return[c,(0,v.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])]}var En=(0,v.createContext)(null),Dn=(0,v.createContext)(null),On=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}},kn=class extends On{filter(e,t,n){let[r,i]=Nn(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}};(class extends On{static{this.type=`header`}});var An=class extends On{static{this.type=`loader`}},jn=class extends kn{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}};(class extends kn{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}});var Mn=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]=Nn(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 Nn(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 Pn=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}},Fn=class e extends Pn{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(){}},In=class extends Pn{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.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 Fn(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 Fn&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Fn?(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)}};function Ln(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,v.useMemo)(()=>void 0,[t]),s=(0,v.useMemo)(()=>new WeakMap,[...a,o]);return(0,v.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=Rn(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,v.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 Rn(e){switch(typeof e){case`object`:return e!=null;case`function`:case`symbol`:return!0;default:return!1}}var zn=new Map,Bn=new Set;function Vn(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{let r=V(t);if(!e(t)||!r)return;let i=zn.get(r);i||(i=new Set,zn.set(r,i),r.addEventListener(`transitioncancel`,n,{once:!0})),i.add(t.propertyName)},n=t=>{let r=V(t);if(!e(t)||!r)return;let i=zn.get(r);if(i&&(i.delete(t.propertyName),i.size===0&&(r.removeEventListener(`transitioncancel`,n),zn.delete(r)),zn.size===0)){for(let e of Bn)e();Bn.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,Vn):Vn());function Hn(){for(let[e]of zn)`isConnected`in e&&!e.isConnected&&zn.delete(e)}function Un(e){requestAnimationFrame(()=>{Hn(),zn.size===0?e():Bn.add(e)})}function Wn(e){if(!e.isConnected)return;let t=L(e);if(Bt()===`virtual`){let n=B(t);Un(()=>{let r=B(t);(r===n||r===t.body)&&e.isConnected&&Fe(e)})}else Fe(e)}function Gn(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,v.useCallback)(e=>{if(V(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=Qe(a),s=(0,v.useCallback)(e=>{let t=V(e),r=L(t),a=r?B(r):B();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 Kn(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 qn=new Set([`shift`,`alt`,`control`,`meta`,`mod`]),Jn=[`Alt`,`Control`,`Meta`,`Shift`];function Yn(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(it()?`Meta`:`Control`),t}function Xn(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 Zn(e){return Jn.filter(t=>e.has(t))}function Qn(e){let t=e.split(`+`).reduce((e,t)=>{let n=t.toLowerCase();return qn.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 $n(e){return e.toLowerCase()}var er={space:` `,esc:`escape`,del:`delete`,ins:`insert`,left:`arrowleft`,right:`arrowright`,up:`arrowup`,down:`arrowdown`,pageup:`pageup`,pagedown:`pagedown`};function tr(e){let t=$n(e);return er[t]??t}function nr(e){let t=Zn(Yn(e)),n=tr(e.key);return t.length>0?`${t.join(`+`)}+${n}`:n}function rr(e){let t=Zn(Xn(e)),n=$n(e.key);return(t.length>0?`${t.join(`+`)}+`:``)+n}function ir(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=Qn(n);t.set(nr(e),r)}return e=>{let n=rr(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 ar(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let o=ir(t),s=Kn(e=>{z(e.currentTarget,V(e))?e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r?e.continuePropagation():o(e):e.continuePropagation()}),c=Kn(e=>{z(e.currentTarget,V(e))&&(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing),e.continuePropagation()});i=e.onKeyDown?_(e.onKeyDown,s):s,a=e.onKeyUp?_(e.onKeyUp,c):c}else i=Kn(e.onKeyDown),a=Kn(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}function or(e,t){y(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}var sr=v.createContext(null);function cr(e){let t=(0,v.useContext)(sr)||{};or(t,e);let{ref:n,...r}=t;return r}function lr(e,t){let{focusProps:n}=Gn(e),{keyboardProps:r}=ar(e),i=P(n,r),a=cr(t),o=e.isDisabled?{}:a,s=(0,v.useRef)(e.autoFocus);(0,v.useEffect)(()=>{s.current&&t.current&&Wn(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:P({...i,tabIndex:c},o)}}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 ur=(0,v.createContext)(!1);function dr(e){if((0,v.useContext)(ur))return v.createElement(v.Fragment,null,e.children);let t=v.createElement(ur.Provider,{value:!0},e.children);return v.createElement(`template`,null,t)}function fr(e){let t=(t,n)=>(0,v.useContext)(ur)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,v.forwardRef)(t)}function pr(){return(0,v.useContext)(ur)}var mr=o((e=>{var t=u();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(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:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),hr=o(((e,t)=>{t.exports=mr()})),gr=c(m(),1),_r=hr(),vr=(0,v.createContext)(!1),yr=(0,v.createContext)(null);function br(e){if((0,v.useContext)(yr))return e.content;let{collection:t,document:n}=wr(e.createCollection);return v.createElement(v.Fragment,null,v.createElement(dr,null,v.createElement(yr.Provider,{value:n},e.content)),v.createElement(xr,{render:e.children,collection:t}))}function xr({collection:e,render:t}){return t(e)}function Sr(e,t,n){let r=j(),i=(0,v.useRef)(r);i.current=r;let a=(0,v.useCallback)(()=>i.current?n():t(),[t,n]);return(0,_r.useSyncExternalStore)(e,a)}var Cr=typeof v.useSyncExternalStore==`function`?v.useSyncExternalStore:Sr;function wr(e){let[t]=(0,v.useState)(()=>new In(e?.()||new Mn));return{collection:Cr((0,v.useCallback)(e=>t.subscribe(e),[t]),(0,v.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,v.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}var Tr=(0,v.createContext)(null);function Er(e){return class extends On{static{this.type=e}}}function Dr(e,t,n,r,i,a){typeof e==`string`&&(e=Er(e));let o=(0,v.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,v.useContext)(Tr);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?v.createElement(Tr.Provider,{value:o},i):null}return v.createElement(e.type,{ref:o},i)}function Or(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,v.forwardRef)((r,i)=>{let a=(0,v.useContext)(sr);if(!(0,v.useContext)(vr)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return Dr(e,r,i,`children`in r?r.children:null,null,e=>v.createElement(sr.Provider,{value:a},v.createElement(n,{node:e})))});return r.displayName=t.name,r}function kr(e){return Ln({...e,addIdAndValue:!0})}var Ar=(0,v.createContext)(null);function jr(e){let t=(0,v.useContext)(Ar),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=kr({...e,idScope:r,dependencies:n});return(0,v.useContext)(yr)&&(i=v.createElement(Mr,null,i)),t=(0,v.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),v.createElement(Ar.Provider,{value:t},i)}function Mr({children:e}){let t=(0,v.useContext)(yr),n=(0,v.useMemo)(()=>v.createElement(yr.Provider,{value:null},v.createElement(vr.Provider,{value:!0},e)),[e]);return j()?v.createElement(Tr.Provider,{value:t},n):(0,gr.createPortal)(n,t)}var Nr=(0,v.createContext)(null),Pr={CollectionRoot({collection:e,renderDropIndicator:t}){return Fr(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Fr(e,t,n)}};function Fr(e,t,n){return Ln({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){if(t.type===`content`)return v.createElement(v.Fragment,null);let r=t.render(t);return!n||t.type!==`item`?r:v.createElement(v.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,Ir(e,t,n))}})}function Ir(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,v.isValidElement)(t)&&s.push((0,v.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}var Lr=(0,v.createContext)(Pr);function Rr(e){return(0,v.useMemo)(()=>e==null?null:new Set([e]),[e])}var zr=new Set([`id`]),Br=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),Vr=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),Hr=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),Ur=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(`.`)),Wr=/^(data-.*)$/;function Gr(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)&&(zr.has(t)||n&&Br.has(t)||r&&Vr.has(t)||i&&Hr.has(t)||a&&(Ur.has(t)||t.endsWith(`Capture`)&&Ur.has(t.slice(0,-7)))||o?.has(t)||Wr.test(t))&&(s[t]=e[t]);return s}var Kr=`default`,qr=``,Jr=new WeakMap;function Yr(e){if(st()&<()){if(Kr==="default"){let t=L(e);qr=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}Kr=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;Jr.set(e,e.style[t]),e.style[t]=`none`}}function Xr(e){if(st()&<()){if(Kr!==`disabled`)return;Kr=`restoring`,setTimeout(()=>{Un(()=>{if(Kr===`restoring`){let t=L(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=qr||``),qr=``,Kr=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Jr.has(e)){let t=Jr.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),Jr.delete(e)}}function Zr(e,t){let n=R(t),r=L(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 Qr=new WeakMap;function $r(e){let t=L(e),n=Qr.get(t);return n??=Zr(`csp-nonce`,t),n!==void 0&&Qr.set(t,n),n}var ei=v.createContext({register:()=>{}});ei.displayName=`PressResponderContext`;function ti(){let e=(0,v.useRef)(new Map),t=(0,v.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,v.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,v.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,v.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ni(e){let t=(0,v.useContext)(ei);if(t){let{register:n,ref:r,...i}=t;e=P(i,e),n()}return or(t,e.ref),e}var ri=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}},ii=Symbol(`linkClicked`),ai=`react-aria-pressable-style`,oi=`data-react-aria-pressable`;function si(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}=ni(e),[m,h]=(0,v.useState)(!1),g=(0,v.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:b}=ti(),x=(0,v.useCallback)((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new ri(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a},[s,r,n]),S=(0,v.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 ri(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new ri(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c},[s,i,n,t]),C=Yt(S),w=Yt((0,v.useCallback)((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new ri(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,a])),T=(0,v.useCallback)(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&S(ui(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||Xr(t.target);for(let e of t.disposables)e();t.disposables=[]}},[d,b,S]),E=Yt(T);(0,v.useEffect)(()=>{s&&g.current.isPressed&&E({currentTarget:g.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let D=(0,v.useCallback)(e=>{u&&T(e)},[u,T]),O=(0,v.useCallback)(e=>{s||o?.(e)},[s,o]),k=(0,v.useCallback)((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);Ze(n,t),o(Xe(n))}},[s,o]),A=(0,v.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(li(t.nativeEvent,t.currentTarget)&&z(t.currentTarget,V(t))){fi(V(t),t.key)&&t.preventDefault();let r=!0;!e.isPressed&&!t.repeat&&(e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,r=x(t,`keyboard`));let i=t.currentTarget;y(L(t.currentTarget),`keyup`,_(t=>{li(t,i)&&!t.repeat&&z(i,V(t))&&e.target&&w(ui(e.target,t),`keyboard`)},n),!0),r&&t.stopPropagation(),t.metaKey&&it()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||z(t.currentTarget,V(t)))&&t&&t.button===0&&!e.isTriggeringEvent&&!vt.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||pt(t.nativeEvent))){let e=x(t,`virtual`),r=w(t,`virtual`),i=C(t,`virtual`);O(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=w(ui(t.currentTarget,t),r),a=C(ui(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,O(t),E(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&li(t,e.target)){fi(V(t),t.key)&&t.preventDefault();let n=V(t),r=z(e.target,n);C(ui(e.target,t),`keyboard`,r),r&&k(t,e.target),b(),t.key!==`Enter`&&ci(e.target)&&z(e.target,n)&&!t[ii]&&(t[ii]=!0,vt(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||!z(t.currentTarget,V(t)))return;if(mt(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||Yr(e.target),i=x(t,e.pointerType);let a=V(t);`releasePointerCapture`in a&&(`hasPointerCapture`in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),y(L(t.currentTarget),`pointerup`,n,!1),y(L(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(z(t.currentTarget,V(t))&&t.button===0){if(l){let n=et(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{z(t.currentTarget,V(t))&&e.pointerType!==`virtual`&&t.button===0&&!e.isPressed&&w(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,x(ui(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,C(ui(e.target,t),e.pointerType,!1),D(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(z(e.target,V(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?E(t):(Fe(e.target),e.target.click()))},80);y(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else E(t);e.isOverTarget=!1}},r=e=>{E(e)};t.onDragStart=e=>{z(e.currentTarget,V(e))&&E(e)}}return t},[y,s,l,b,d,D,x,O,k]);return(0,v.useEffect)(()=>{if(!f)return;let e=L(f.current);if(!e||!e.head||e.getElementById(ai))return;let t=e.createElement(`style`);t.id=ai;let n=$r(e);n&&(t.nonce=n),t.textContent=`
|
|
11
|
-
@layer {
|
|
12
|
-
[${oi}] {
|
|
13
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
`.trim(),e.head.prepend(t)},[f]),(0,v.useEffect)(()=>{let e=g.current;return()=>{d||Xr(e.target??void 0);for(let t of e.disposables)t();e.disposables=[]}},[d]),{isPressed:c||m,pressProps:P(p,A,{[oi]:!0})}}function ci(e){return e.tagName===`A`&&e.hasAttribute(`href`)}function li(e,t){let{key:n,code:r}=e,i=t,a=i.getAttribute(`role`);return(n===`Enter`||n===` `||n===`Spacebar`||r===`Space`)&&!(i instanceof R(i).HTMLInputElement&&!mi(i,n)||i instanceof R(i).HTMLTextAreaElement||i.isContentEditable)&&!((a===`link`||!a&&ci(i))&&n!==`Enter`)}function ui(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 di(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!==`submit`&&e.type!==`reset`:!ci(e)}function fi(e,t){return it()&&t===`Enter`?!1:e instanceof HTMLInputElement?t===`Enter`&&(e.type===`checkbox`||e.type===`radio`)?!1:!mi(e,t):di(e)}var pi=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function mi(e,t){return e.type===`checkbox`||e.type===`radio`?t===` `:pi.has(e.type)}function hi(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,v.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=ti(),c=(0,v.useCallback)(e=>{z(e.currentTarget,V(e))&&a.current.isFocusWithin&&!z(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=Qe(c),u=(0,v.useCallback)(e=>{if(!z(e.currentTarget,V(e)))return;let t=V(e),n=L(t),s=B(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=V(e);if(a.current.isFocusWithin&&!z(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});Ze(e,t);let i=Xe(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 gi(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,v.useRef)({isFocused:!1,isFocusVisible:t||zt()}),[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,v.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,v.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=zt(),o(e),l()},[l]);Wt(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=Gn({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=hi({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var _i=!1,vi=0;function yi(){_i=!0,setTimeout(()=>{_i=!1},500)}function bi(e){e.pointerType===`touch`&&yi()}function xi(){let e=L(null);if(e!==void 0)return vi===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,bi),vi++,()=>{vi--,!(vi>0)&&typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,bi)}}function Si(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,v.useState)(!1),s=(0,v.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,v.useEffect)(xi,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=ti(),{hoverProps:u,triggerHoverEnd:d}=(0,v.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!z(e.currentTarget,V(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(L(V(e)),`pointerover`,e=>{s.isHovered&&s.target&&!z(s.target,V(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=>{_i&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&z(e.currentTarget,V(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,v.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}var Ci=(0,v.createContext)({}),wi=fr(function(e,t){[e,t]=he(e,t,Ci);let{elementType:n=`label`,...r}=e,i=ve[n];return v.createElement(i,{className:`react-aria-Label`,...r,ref:t})});function Ti(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=N(t);let o=N(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=Zt({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function Ei(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}var Di=(0,v.createContext)(null),Oi=7e3,ki=null;function Ai(e,t=`assertive`,n=Oi){ki?ki.announce(e,t,n):(ki=new ji,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?ki.announce(e,t,n):setTimeout(()=>{ki?.isAttached()&&ki?.announce(e,t,n)},100))}var ji=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=Oi){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 Mi(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}=si({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=lr(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=P(y,_,Gr(e,{labelable:!0}));return{isPressed:v,buttonProps:P(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 Ni=(0,v.createContext)({}),Pi=fr(function(e,t){[e,t]=he(e,t,Ni);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=Mi(e,t);i=Ii(i,r);let{focusProps:o,isFocused:s,isFocusVisible:c}=gi(e),{hoverProps:l,isHovered:u}=Si({...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=pe({...e,values:d,defaultClassName:`react-aria-Button`}),p=N(i.id),m=N(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,v.useRef)(r);(0,v.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&Ai(e,`assertive`),g.current=r},[r,s,h,p]);let _=Gr(e,{global:!0});return delete _.onClick,v.createElement(ve.button,{...P(_,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},v.createElement(Di.Provider,{value:{id:m}},f.children))}),Fi=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Ii(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!Fi.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}var Li=(0,v.createContext)({}),Ri=(0,v.forwardRef)(function(e,t){[e,t]=he(e,t,Li);let{children:n,level:r=3,className:i,...a}=e,o=ve[`h${r}`];return v.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),zi=(0,v.createContext)({});function Bi(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 Vi(e,t){let n=e;for(Bi(n,t)&&(n=n.parentElement);n&&!Bi(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Hi(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(Bi(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function Ui(e,t,n={}){e!==t&&Wi(e,t,t.getBoundingClientRect(),n)}function Wi(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,ee=n.right+b,te=e===d?0:D+O,ne=e===d?0:T+E,M=e===d?0:e.offsetWidth-e.clientWidth-te,re=e===d?0:e.offsetHeight-e.clientHeight-ne,N=p+(f?0:T)+x,ie=m-(f?0:E)-S-re,ae=h+(f?0:D)+C,oe=g-(f?0:O)-w;st()&<()||u.direction===`ltr`?oe-=M:u.direction===`rtl`&&(ae+=M);let se=k<N||A>ie,ce=j<ae||ee>oe;if(se&&i===`start`)o+=k-N;else if(se&&i===`center`)o+=(k+A)/2-(N+ie)/2;else if(se&&i===`end`)o+=A-ie;else if(se&&i===`nearest`){let e=k-N,t=A-ie;o+=Math.abs(e)<=Math.abs(t)?e:t}if(ce&&a===`start`)s+=j-ae;else if(ce&&a===`center`)s+=(j+ee)/2-(ae+oe)/2;else if(ce&&a===`end`)s+=ee-oe;else if(ce&&a===`nearest`){let e=j-ae,t=ee-oe;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:o})}function Gi(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=Hi(e,!0);for(let t of i)Ui(t,e);let{left:a,top:o}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(r-o)>1){i=n?Hi(n,!0):[];for(let e of i)Ui(e,n,{block:`center`,inline:`center`});for(let t of Hi(e,!0))Ui(t,e)}}}}var Ki=0,qi=new Map;function Ji(e){let[t,n]=(0,v.useState)();return y(()=>{if(!e)return;let t=qi.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${Ki++}`;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},qi.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),qi.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}var Yi={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 Xi(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,v.useState)(!1),{focusWithinProps:a}=hi({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,v.useMemo)(()=>r?t:t?{...Yi,...t}:Yi,[r]);return{visuallyHiddenProps:{...a,style:o}}}function Zi(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=Xi(e);return v.createElement(n,P(a,o),t)}var Qi=(0,v.createContext)(null),$i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ea={...$i,customError:!0,valid:!1},ta={isInvalid:!1,validationDetails:$i,validationErrors:[]},na=(0,v.createContext)({}),H=`__reactAriaFormValidationState`;function ra(e){if(e.__reactAriaFormValidationState){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[H];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return ia(e)}function ia(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s=`aria`}=e;n&&(t||=n===`invalid`);let c=t===void 0?null:{isInvalid:t,validationErrors:[],validationDetails:ea},l=(0,v.useMemo)(()=>!o||i==null?null:sa(oa(o,i)),[o,i]);a?.validationDetails.valid&&(a=void 0);let u=(0,v.useContext)(na),d=(0,v.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>aa(u[e])):aa(u[r]):[],[u,r]),[f,p]=(0,v.useState)(u),[m,h]=(0,v.useState)(!1);u!==f&&(p(u),h(!1));let g=(0,v.useMemo)(()=>sa(m?[]:d),[m,d]),_=(0,v.useRef)(ta),[y,b]=(0,v.useState)(ta),x=(0,v.useRef)(ta),S=()=>{if(!C)return;w(!1);let e=l||a||_.current;ca(e,x.current)||(x.current=e,b(e))},[C,w]=(0,v.useState)(!1);return(0,v.useEffect)(S),{realtimeValidation:c||g||l||a||ta,displayValidation:s===`native`?c||g||y:c||g||l||a||y,updateValidation(e){s===`aria`&&!ca(y,e)?b(e):_.current=e},resetValidation(){let e=ta;ca(e,x.current)||(x.current=e,b(e)),s===`native`&&w(!1),h(!0)},commitValidation(){s===`native`&&w(!0),h(!0)}}}function aa(e){return e?Array.isArray(e)?e:[e]:[]}function oa(e,t){if(typeof e==`function`){let n=e(t);if(n&&typeof n!=`boolean`)return aa(n)}return[]}function sa(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ea}:null}function ca(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}var la=(0,v.createContext)(null),ua=new WeakMap;function da(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=Ti(e),s=ae([!!t,!!n,r,i]),c=ae([!!t,!!n,r,i]);return o=P(o,{"aria-describedby":[s,c,e[`aria-describedby`]].filter(Boolean).join(` `)||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:c}}}function fa(e,t,n){let r=Yt(e=>{n&&!e.defaultPrevented&&n(t)});(0,v.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener(`reset`,r),()=>{t?.removeEventListener(`reset`,r)}},[e])}function pa(e,t,n){let{validationBehavior:r,focus:i}=e;y(()=>{if(r===`native`&&n?.current&&`setCustomValidity`in n.current&&!n.current.disabled){let e=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(` `)||`Invalid value.`:``;n.current.setCustomValidity(e),n.current.hasAttribute(`title`)||(n.current.title=``),t.realtimeValidation.isInvalid||t.updateValidation(ha(n.current))}});let a=(0,v.useRef)(!1),o=Yt(()=>{a.current||t.resetValidation()}),s=Yt(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&ga(r)===n.current&&(i?i():n.current?.focus(),Vt(`keyboard`)),e.preventDefault()}),c=Yt(()=>{t.commitValidation()});(0,v.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,r=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||window.event.type===`message`&&V(window.event)instanceof MessagePort,r?.call(t),a.current=!1}),e.addEventListener(`invalid`,s),e.addEventListener(`change`,c),t?.addEventListener(`reset`,o),()=>{e.removeEventListener(`invalid`,s),e.removeEventListener(`change`,c),t?.removeEventListener(`reset`,o),t&&(t.reset=r)}},[n,r])}function ma(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function ha(e){return{isInvalid:!e.validity.valid,validationDetails:ma(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function ga(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}function _a(e=!0){let[t,n]=(0,v.useState)(e),r=(0,v.useRef)(!1),i=(0,v.useCallback)(e=>{r.current=!0,n(!!e)},[]);return y(()=>{r.current||n(!1)},[]),[i,t]}function va(e=!0){let t=N(),[n,r]=_a(e);return{id:r?t:void 0,ref:n}}function ya(e,t,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:a,name:o,form:s,children:c,isRequired:l,validationBehavior:u=`aria`,"aria-label":d,"aria-labelledby":f,"aria-describedby":p,onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:y,onClick:b}=e,x=ra({...e,value:t.isSelected}),{isInvalid:S,validationErrors:C,validationDetails:w}=x.displayValidation;pa(e,x,n);let T=e=>{e.stopPropagation(),t.setSelected(V(e).checked)},{pressProps:E,isPressed:D}=si({onPressStart:m,onPressEnd:h,onPressChange:g,onPress:_,onPressUp:y,onClick:b,isDisabled:r}),[O,k]=(0,v.useState)(!1),{pressProps:A}=si({onPressStart(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():(m?.(e),g?.(!0),k(!0))},onPressEnd(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():(h?.(e),g?.(!1),k(!1))},onPressUp(e){e.pointerType===`keyboard`||e.pointerType===`virtual`?e.continuePropagation():y?.(e)},onClick:b,onPress(r){if(r.pointerType===`keyboard`||r.pointerType===`virtual`){r.continuePropagation();return}_?.(r),t.toggle(),n.current?.focus();let{[H]:i}=e,{commitValidation:a}=i||x;a()},isDisabled:r||i}),{focusableProps:j}=lr(e,n),ee=P(E,j),te=Gr(e,{labelable:!0});fa(n,t.defaultSelected,t.setSelected);let ne=va(),M=va();return{labelProps:P(A,{onClick:e=>e.preventDefault()}),inputProps:P(te,{checked:t.isSelected,"aria-required":l&&u===`aria`||void 0,required:l&&u===`native`,"aria-invalid":S||e.validationState===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-controls":e[`aria-controls`],"aria-readonly":i||void 0,"aria-describedby":[ne.id,M.id,p].filter(Boolean).join(` `)||void 0,onChange:T,disabled:r,...a==null?{}:{value:a},name:o,form:s,type:`checkbox`,...ee}),descriptionProps:ne,errorMessageProps:M,isSelected:t.isSelected,isPressed:D||O,isDisabled:r,isReadOnly:i,isInvalid:S||e.validationState===`invalid`,validationErrors:C,validationDetails:w}}function ba(e,t,n){let{labelProps:r,inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}=ya(e,t,n),{isIndeterminate:m}=e;return(0,v.useEffect)(()=>{n.current&&(n.current.indeterminate=!!m)}),{labelProps:P(r,(0,v.useMemo)(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:i,descriptionProps:a,errorMessageProps:o,isSelected:s,isPressed:c,isDisabled:l,isReadOnly:u,isInvalid:d,validationErrors:f,validationDetails:p}}function xa(e={}){let{isReadOnly:t}=e,[n,r]=Tn(e.isSelected,e.defaultSelected||!1,e.onChange),[i]=(0,v.useState)(n);function a(e){t||r(e)}function o(){t||r(!n)}return{isSelected:n,defaultSelected:e.defaultSelected??i,setSelected:a,toggle:o}}function Sa(e,t,n){let r=xa({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}}),{name:i,form:a,descriptionId:o,errorMessageId:s,validationBehavior:c}=ua.get(t);c=e.validationBehavior??c;let{realtimeValidation:l}=ra({...e,value:r.isSelected,name:void 0,validationBehavior:`aria`}),u=(0,v.useRef)(ta),d=()=>{t.setInvalid(e.value,l.isInvalid?l:u.current)};(0,v.useEffect)(d);let f=t.realtimeValidation.isInvalid?t.realtimeValidation:l,p=c===`native`?t.displayValidation:f,m=ba({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,form:e.form||a,isRequired:e.isRequired??t.isRequired,validationBehavior:c,[H]:{realtimeValidation:f,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){u.current=e,d()}}},r,n);return{...m,inputProps:{...m.inputProps,"aria-describedby":[m.inputProps[`aria-describedby`],t.isInvalid?s:null,o].filter(Boolean).join(` `)||void 0}}}var Ca=(0,v.createContext)(null),wa=(0,v.createContext)(null),Ta=(0,v.createContext)(null);function Ea(e,t){let{validationBehavior:n}=me(la)||{},r=e.validationBehavior??n??`native`,i=(0,v.useContext)(wa),a=ue((0,v.useMemo)(()=>oe(t,e.inputRef===void 0?null:e.inputRef),[t,e.inputRef])),o={...I(e),children:typeof e.children==`function`||e.children,value:e.value,validationBehavior:r};return[i?Sa(o,i,a):ba(o,xa(e),a),a]}var Da=(0,v.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=he(r,t,Ca);let[i,a]=Ea(e,n);return v.createElement(Ta.Provider,{value:{...i,inputRef:a,defaultClassName:`react-aria-Checkbox`,isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}},v.createElement(Oa,{...e,ref:t}))}),Oa=(0,v.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isReadOnly:o,isPressed:s,isInvalid:c,inputRef:l,defaultClassName:u,isIndeterminate:d,isRequired:f}=(0,v.useContext)(Ta),{isFocused:p,isFocusVisible:m,focusProps:h}=gi(),g=a||o,{hoverProps:_,isHovered:y}=Si({...e,isDisabled:g}),b=pe({...e,defaultClassName:u,values:{isSelected:i,isIndeterminate:d||!1,isPressed:s,isHovered:y,isFocused:p,isFocusVisible:m,isDisabled:a,isReadOnly:o,isInvalid:c,isRequired:f||!1}}),x=Gr(e,{global:!0});return delete x.id,delete x.onClick,v.createElement(ve.label,{...P(x,n,_,b),ref:t,slot:e.slot||void 0,"data-selected":i||void 0,"data-indeterminate":d||void 0,"data-pressed":s||void 0,"data-hovered":y||void 0,"data-focused":p||void 0,"data-focus-visible":m||void 0,"data-disabled":a||void 0,"data-readonly":o||void 0,"data-invalid":c||void 0,"data-required":f||void 0},v.createElement(Zi,{elementType:`span`},v.createElement(`input`,{...P(r,h),ref:l})),b.children)}),ka=(0,v.createContext)({}),Aa=(0,v.createContext)({}),ja=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},Ma=fr(function(e,t){[e,t]=he(e,t,Aa);let{hoverProps:n,isHovered:r}=Si({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:o}=gi({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=pe({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-Input`});return v.createElement(ve.input,{...P(ja(e),o,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})});function Na(e,t){let{inputElementType:n=`input`,isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o=`text`,validationBehavior:s=`aria`}=e,[c,l]=Tn(e.value,e.defaultValue||``,e.onChange),{focusableProps:u}=lr(e,t),d=ra({...e,value:c}),{isInvalid:f,validationErrors:p,validationDetails:m}=d.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:_,errorMessageProps:y}=da({...e,isInvalid:f,errorMessage:e.errorMessage||p}),b=Gr(e,{labelable:!0}),x={type:o,pattern:e.pattern},[S]=(0,v.useState)(c);return fa(t,e.defaultValue??S,l),pa(e,d,t),{labelProps:h,inputProps:P(b,n===`input`?x:void 0,{disabled:r,readOnly:a,required:i&&s===`native`,"aria-required":i&&s===`aria`||void 0,"aria-invalid":f||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-activedescendant":e[`aria-activedescendant`],"aria-autocomplete":e[`aria-autocomplete`],"aria-haspopup":e[`aria-haspopup`],"aria-controls":e[`aria-controls`],value:c,onChange:e=>l(V(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,enterKeyHint:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...g}),descriptionProps:_,errorMessageProps:y,isInvalid:f,validationErrors:p,validationDetails:m}}var Pa={};Pa={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var Fa={};Fa={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var Ia={};Ia={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var La={};La={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var Ra={};Ra={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var za={};za={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var Ba={};Ba={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var Va={};Va={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var Ha={};Ha={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var Ua={};Ua={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var Wa={};Wa={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var Ga={};Ga={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var Ka={};Ka={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var qa={};qa={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var Ja={};Ja={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var Ya={};Ya={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var Xa={};Xa={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var Za={};Za={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var Qa={};Qa={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var $a={};$a={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var eo={};eo={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var to={};to={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var no={};no={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var ro={};ro={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var io={};io={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var ao={};ao={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var oo={};oo={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var so={};so={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var co={};co={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var lo={};lo={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var uo={};uo={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var fo={};fo={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var po={};po={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var mo={};mo={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var ho={};ho={"ar-AE":Pa,"bg-BG":Fa,"cs-CZ":Ia,"da-DK":La,"de-DE":Ra,"el-GR":za,"en-US":Ba,"es-ES":Va,"et-EE":Ha,"fi-FI":Ua,"fr-FR":Wa,"he-IL":Ga,"hr-HR":Ka,"hu-HU":qa,"it-IT":Ja,"ja-JP":Ya,"ko-KR":Xa,"lt-LT":Za,"lv-LV":Qa,"nb-NO":$a,"nl-NL":eo,"pl-PL":to,"pt-BR":no,"pt-PT":ro,"ro-RO":io,"ru-RU":ao,"sk-SK":oo,"sl-SI":so,"sr-SP":co,"sv-SE":lo,"tr-TR":uo,"uk-UA":fo,"zh-CN":po,"zh-TW":mo};var go=(0,v.createContext)({}),_o=(0,v.createContext)(null),vo=(0,v.forwardRef)(function(e,t){let{render:n}=(0,v.useContext)(_o);return v.createElement(v.Fragment,null,n(e,t))});function yo(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=(0,v.useCallback)(e=>{if(r||t?.isDropTarget(e))return n?n(e):v.createElement(vo,{target:e})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function bo(e,t,n){let r=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&n?.target?.type===`item`&&(i=n.target.key,n.target.dropPosition===`after`)){let e=n.collection.getKeyAfter(i),t=null;if(e!=null){let r=n.collection.getItem(i)?.level??0;for(;e!=null;){let i=n.collection.getItem(e);if(!i)break;if(i.type!==`item`)e=n.collection.getKeyAfter(e);else{if((i.level??0)<=r)break;t=e,e=n.collection.getKeyAfter(e)}}}i=e??t??i}return(0,v.useMemo)(()=>new Set([r,i].filter(e=>e!=null)),[r,i])}var xo=(0,v.createContext)({}),So=(0,v.createContext)(null);function Co(e){let t=(0,v.useRef)({});return v.createElement(So.Provider,{value:t},e.children)}var wo=(0,v.createContext)({isSelected:!1}),To=(0,v.createContext)({});(class extends On{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}});var Eo=new WeakMap;function Do(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function Oo(e,t){let n=Eo.get(e);if(!n)throw Error(`Unknown list`);return`${n.id}-option-${Do(t)}`}var ko=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(!z(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 z(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 Ao(e,t,n,r){return Oe()?new ko(e,t,n,r):e.createTreeWalker(t,n,r)}var jo=v.createContext(null),Mo=`react-aria-focus-scope-restore`,No=null;function Po(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,v.useRef)(null),o=(0,v.useRef)(null),s=(0,v.useRef)([]),{parentNode:c}=(0,v.useContext)(jo)||{},l=(0,v.useMemo)(()=>new es({scopeRef:s}),[s]);y(()=>{let e=c||ts.root;if(ts.getTreeNode(e.scopeRef)&&No&&!Uo(No,e.scopeRef)){let t=ts.getTreeNode(No);t&&(e=t)}e.addChild(l),ts.addNode(l)},[l,c]),y(()=>{let e=ts.getTreeNode(s);e&&(e.contain=!!n)},[n]),y(()=>{let e=a.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==o.current;)t.push(e),e.addEventListener(Mo,n),e=e.nextSibling;return s.current=t,()=>{for(let e of t)e.removeEventListener(Mo,n)}},[t]),Jo(s,r,n),Bo(s,n),Xo(s,r,n),qo(s,i),(0,v.useEffect)(()=>{let e=B(L(s.current?s.current[0]:void 0)),t=null;if(W(e,s.current)){for(let n of ts.traverse())n.scopeRef&&W(e,n.scopeRef.current)&&(t=n);t===ts.getTreeNode(s)&&(No=t.scopeRef)}},[s]),y(()=>()=>{let e=ts.getTreeNode(s)?.parent?.scopeRef??null;(s===No||Uo(s,No))&&(!e||ts.getTreeNode(e))&&(No=e),ts.removeTreeNode(s)},[s]);let u=(0,v.useMemo)(()=>Fo(s),[]),d=(0,v.useMemo)(()=>({focusManager:u,parentNode:l}),[l,u]);return v.createElement(jo.Provider,{value:d},v.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,v.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Fo(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||B(L(n[0]??void 0)),c=n[0].previousElementSibling,l=Qo(Io(n),{tabbable:i,accept:o},n);l.currentNode=W(s,n)?s:c;let u=l.nextNode();return!u&&a&&(l.currentNode=c,u=l.nextNode()),u&&Wo(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,s=r||B(L(n[0]??void 0)),c=n[n.length-1].nextElementSibling,l=Qo(Io(n),{tabbable:i,accept:o},n);l.currentNode=W(s,n)?s:c;let u=l.previousNode();return!u&&a&&(l.currentNode=c,u=l.previousNode()),u&&Wo(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Qo(Io(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&Wo(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Qo(Io(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&Wo(o,!0),o}}}function Io(e){return e[0].parentElement}function Lo(e){let t=ts.getTreeNode(No);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Ro(e){if(!e.form)return Array.from(L(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=R(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function zo(e){if(e.checked)return!0;let t=Ro(e);return t.length>0&&!t.some(e=>e.checked)}function Bo(e,t){let n=(0,v.useRef)(void 0),r=(0,v.useRef)(void 0);y(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=L(i?i[0]:void 0),o=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!Lo(e)||t.isComposing)return;let n=B(a),r=e.current;if(!r||!W(n,r))return;let i=Qo(Io(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&&(Wo(o,!0),o instanceof R(o).HTMLInputElement&&o.select())},s=t=>{(!No||Uo(No,e))&&W(V(t),e.current)?(No=e,n.current=V(t)):Lo(e)&&!Vo(V(t),e)?n.current?Wo(n.current):No&&No.current&&Ko(No.current):Lo(e)&&(n.current=V(t))},c=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=Bt(),i=(r===`virtual`||r===null)&&dt()&&ut(),o=B(a);if(!i&&o&&Lo(e)&&!Vo(o,e)){No=e;let r=V(t);r&&r.isConnected?(n.current=r,Wo(n.current)):No.current&&Ko(No.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]),y(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function U(e){return Vo(e)}function W(e,t){return!e||!t?!1:t.some(t=>z(t,e))}function Vo(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of ts.traverse(ts.getTreeNode(t)))if(n&&W(e,n.current))return!0;return!1}function Ho(e){return Vo(e,No)}function Uo(e,t){let n=ts.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Wo(e,t=!1){if(e!=null&&!t)try{Wn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Go(e,t=!0){let n=e[0].previousElementSibling,r=Io(e),i=Qo(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=Io(e),i=Qo(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Ko(e,t=!0){Wo(Go(e,t))}function qo(e,t){let n=v.useRef(t);(0,v.useEffect)(()=>{n.current&&(No=e,!W(B(L(e.current?e.current[0]:void 0)),No.current)&&e.current&&Ko(e.current)),n.current=!1},[e])}function Jo(e,t,n){y(()=>{if(t||n)return;let r=e.current,i=L(r?r[0]:void 0),a=t=>{let n=V(t);W(n,e.current)?No=e:U(n)||(No=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 Yo(e){let t=ts.getTreeNode(No);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function Xo(e,t,n){let r=(0,v.useRef)(typeof document<`u`?B(L(e.current?e.current[0]:void 0)):null);y(()=>{let r=e.current,i=L(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!No||Uo(No,e))&&W(B(i),e.current)&&(No=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]),y(()=>{let r=L(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!Lo(e)||t.isComposing)return;let n=r.activeElement;if(!Vo(n,e)||!Yo(e))return;let i=ts.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=Qo(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||!Vo(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(Vo(s,e));t.preventDefault(),t.stopPropagation(),s?Wo(s,!0):U(a)?Wo(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),y(()=>{let n=L(e.current?e.current[0]:void 0);if(!t)return;let i=ts.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=ts.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=B(n);if(t&&i&&(a&&Vo(a,e)||a===n.body&&Yo(e))){let t=ts.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){Zo(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&ts.getTreeNode(n.scopeRef)){let e=Go(n.scopeRef.current,!0);if(e){Zo(e);return}}n=n.parent}}})}}},[e,t])}function Zo(e){e.dispatchEvent(new CustomEvent(Mo,{bubbles:!0,cancelable:!0}))&&Wo(e)}function Qo(e,t,n){let r=t?.tabbable?Je:qe,i=L(e?.nodeType===Node.ELEMENT_NODE?e:null),a=Ao(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return z(t?.from,e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!zo(e)||a.currentNode.tagName===`INPUT`&&a.currentNode.type===`radio`&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||W(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}var $o=class e{constructor(){this.fastMap=new Map,this.root=new es({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 es({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&&W(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}},es=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}},ts=new $o;function ns(e){return ct()?e.altKey:e.ctrlKey}function rs(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 is=new WeakMap;function as(e){let t=N();return is.set(e,t),t}function os(e){return is.get(e)}var ss=1e3;function cs(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,v.useRef)({search:``,timeout:void 0});return(0,v.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=``},ss)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{let a=ls(e.key);if(!(!a||e.ctrlKey||e.metaKey||e.altKey||!z(e.currentTarget,V(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=``},ss)}}:void 0}}}function ls(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function us(e,t){let n=(0,v.useRef)(!0),r=(0,v.useRef)(null);y(()=>(n.current=!0,()=>{n.current=!1}),[]),y(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function ds(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}=ln(),_=gt(),y=(e,n,i)=>{if(n!=null){if(t.isLink(n)&&m===`selection`&&l&&!ns(e)){(0,gr.flushSync)(()=>{t.setFocusedKey(n,i)});let a=rs(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&&!ns(e)){t.replaceSelection(n);return}}return!1},b=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){y(e,r);return}}return!1},x=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){y(e,r);return}}return!1},S=e=>{if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getFirstKey(t.focusedKey,Gt(e));if(t.setFocusedKey(r),r!=null){if(Gt(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},C=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){y(e,r,g===`rtl`?`first`:`last`);return}}return!1},w=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){y(e,r,g===`rtl`?`last`:`first`);return}}return!1},T=e=>{if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return!1;let r=n.getLastKey(t.focusedKey,Gt(e));if(t.setFocusedKey(r),r!=null){if(Gt(e)&&e.shiftKey&&t.selectionMode===`multiple`){t.extendSelection(r);return}if(l){t.replaceSelection(r);return}}}return!1},E=e=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);if(r!=null)return y(e,r)}return!1},D=e=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);if(r!=null)return y(e,r)}return!1},O=()=>{if(t.selectionMode===`multiple`&&s!==!0)t.selectAll();else return!1},k=()=>{if(c===`clearSelection`&&!o&&t.selectedKeys.size!==0)t.clearSelection();else return!1},A=()=>{if(!f&&r.current){let e=Qo(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);let i=B();t&&(!Ae(t)||i&&!Je(i))&&Fe(t)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},j=()=>(!f&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),ee=(e,t)=>({[it()?e+`+Shift+Alt`:e+`+Shift+Control`]:t,[e+`+Shift`]:t,[it()?e+`+Alt`:e+`+Control`]:t,[e]:t}),{keyboardProps:te}=ar({shortcuts:{...ee(`ArrowDown`,b),...ee(`ArrowUp`,x),...ee(`ArrowLeft`,C),...ee(`ArrowRight`,w),...ee(`PageDown`,E),...ee(`PageUp`,D)},allowRepeats:!0}),{keyboardProps:ne}=ar({shortcuts:{...ee(`Home`,S),...ee(`End`,T),"Mod+A":O,Escape:k,Tab:A,"Tab+Shift":j}}),M=(0,v.useRef)({top:0,left:0});Xt(p,`scroll`,()=>{M.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let re=e=>{if(t.isFocused){z(e.currentTarget,V(e))||t.setFocused(!1);return}if(!z(e.currentTarget,V(e)))return;let i=Bt();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=M.current.top,p.current.scrollLeft=M.current.left);if(t.focusedKey!=null&&p.current){let e=rs(r,t.focusedKey);e instanceof HTMLElement&&(!Ae(e)&&!d&&Fe(e),(i===`keyboard`||h&&i===`virtual`)&&Gi(e,{containingElement:r.current}))}},N=e=>{z(e.currentTarget,e.relatedTarget)||t.setFocused(!1)},ie=(0,v.useRef)(!1);Xt(r,be,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(ie.current=!0)}:void 0);let ae=n.getFirstKey?.()??null;us(()=>{if(ie.current){if(ae==null){let e=B();je(r.current),Ne(e,null),t.collection.size>0&&(ie.current=!1)}else t.setFocusedKey(ae),ie.current=!1}},[ae,t.collection.size]),us(()=>{t.collection.size>0&&(ie.current=!1)},[t.focusedKey]),Xt(r,ye,d?e=>{e.stopPropagation(),t.setFocused(!1),e.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let oe=(0,v.useRef)(i),se=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(oe.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&&Wn(r.current),t.collection.size>0&&(oe.current=!1,se.current=!0)}});let ce=(0,v.useRef)(t.focusedKey),le=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==ce.current||se.current)&&p.current&&r.current){let e=Bt(),n=rs(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||se.current)&&(le.current&&cancelAnimationFrame(le.current),le.current=requestAnimationFrame(()=>{p.current&&(Ui(p.current,n),e!==`virtual`&&Gi(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&ce.current!=null&&r.current&&Wn(r.current),ce.current=t.focusedKey,se.current=!1}),(0,v.useEffect)(()=>()=>{le.current&&cancelAnimationFrame(le.current)},[]),Xt(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let ue={...P(ne,te),onFocus:re,onBlur:N,onMouseDown(e){p.current===V(e)&&e.preventDefault()}},{typeSelectProps:de}=cs({keyboardDelegate:n,selectionManager:t});u||(ue=P(de,ue));let fe;d||(fe=t.focusedKey==null?0:-1);let pe=as(t.collection);return{collectionProps:P(ue,{tabIndex:fe,"data-collection":pe})}}var fs=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:rs(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}}},ps=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 fs(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 fs(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=rs(this.ref,e);if(t!=null){let e=rs(this.ref,t);return!n||!e?!1:n.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(r!=null){let e=rs(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&&!Bi(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&&!Bi(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}},ms=new Map;function hs(e){let{locale:t}=ln(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(ms.has(n))return ms.get(n);let r=new Intl.Collator(t,e);return ms.set(n,r),r}function gs(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o,orientation:s}=e,c=hs({usage:`search`,sensitivity:`base`}),l=t.disabledBehavior,u=(0,v.useMemo)(()=>a||new ps({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:c,layoutDelegate:o,orientation:s}),[a,o,n,r,i,c,l,s]),{collectionProps:d}=ds({...e,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}function _s(e,t,n){let r=Gr(e,{labelable:!0}),i=e.selectionBehavior||`toggle`,a=e.orientation||`vertical`,o=e.linkBehavior||(i===`replace`?`action`:`override`);i===`toggle`&&o===`action`&&(o=`override`);let{listProps:s}=gs({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:c}=hi({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=N(e.id);Eo.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:d}=Ti({...e,id:l,labelElementType:`span`});return{labelProps:u,listBoxProps:P(r,c,t.selectionManager.selectionMode===`multiple`?{"aria-multiselectable":`true`}:{},{role:`listbox`,"aria-orientation":a,...P(d,s)})}}var vs=500;function ys(e){let{isDisabled:t,pointerType:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:a,threshold:o=vs,accessibilityDescription:s}=e,c=(0,v.useRef)(void 0),{addGlobalListener:l,removeAllGlobalListeners:u}=ti(),d=e=>n?e.pointerType===n:e.pointerType===`mouse`||e.pointerType===`touch`,{pressProps:f}=si({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}),L(e.target).activeElement!==e.target&&Fe(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=R(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:P(f,Ji(a&&!t?s:void 0))}}function bs(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=gt();t=N(t);let p=e=>{if(e.pointerType===`keyboard`&&ns(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&&(Gt(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,v.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?je(i.current):s?s():B()!==i.current&&i.current&&Wn(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){V(e)===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()}),(0,v.useEffect)(()=>{c&&n.focusedKey===r&&n.setFocusedKey(null)},[n,c,r]);let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,y=n.isLink(r)&&d!==`selection`&&d!==`none`,b=!c&&n.canSelectItem(r)&&!h&&!g,x=(l||y)&&!c,S=x&&(n.selectionBehavior===`replace`?!b:!b||n.isEmpty),C=x&&b&&n.selectionBehavior===`replace`,w=S||C,T=(0,v.useRef)(null),E=w&&b,D=(0,v.useRef)(!1),O=(0,v.useRef)(!1),k=n.getItemProps(r),A=e=>{l&&(l(),i.current?.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))),y&&i.current&&f.open(i.current,e,k.href,k.routerOptions)},j={ref:i};a?(j.onPressStart=e=>{T.current=e.pointerType,D.current=E,e.pointerType===`keyboard`&&(!w||Ss(e.key))&&p(e)},u?(j.onPressUp=S?void 0:e=>{e.pointerType===`mouse`&&b&&p(e)},j.onPress=S?A:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&b&&p(e)}):j.onPress=e=>{if(S||C&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!xs(e.key))return;A(e)}else e.pointerType!==`keyboard`&&b&&p(e)}):(j.onPressStart=e=>{T.current=e.pointerType,D.current=E,O.current=S,b&&(e.pointerType===`mouse`&&!S||e.pointerType===`keyboard`&&(!x||Ss(e.key)))&&p(e)},j.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&w&&xs(e.key)||e.pointerType===`mouse`&&O.current)&&(w?A(e):b&&p(e))});let ee=os(n.collection);if(m[`data-collection`]=ee,m[`data-key`]=r,j.preventFocusOnPress=o,o&&(j=P(j,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),k)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])k[e]&&(j[e]=_(j[e],k[e]));let{pressProps:te,isPressed:ne}=si(j),M=C?e=>{T.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),A(e))}:void 0,{longPressProps:re}=ys({isDisabled:!E,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),ie=e=>{T.current===`touch`&&D.current&&e.preventDefault()},ae=d!==`none`&&n.isLink(r)?e=>{vt.isOpening||e.preventDefault()}:void 0,oe=P(m,b||S||o&&!c?te:{},E?re:{},{onDoubleClick:M,onDragStartCapture:ie,onClick:ae,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),se=e=>{let t=e;for(;t&&t!==i.current;){let e=t.getAttribute(`data-collection`);if(e!=null)return e!==ee;t=t.parentElement}return Je(e)},ce=oe.onPointerDown;oe.onPointerDown=e=>{let t=V(e);t&&t!==i.current&&se(t)?e.stopPropagation():ce?.(e)};let le=oe.onMouseDown;return oe.onMouseDown=e=>{let t=V(e);t&&t!==i.current&&se(t)?e.stopPropagation():le?.(e)},{itemProps:oe,isPressed:ne,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:b,hasAction:w}}function xs(e){return e===`Enter`}function Ss(e){return e===` `}function Cs(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function ws(e){return Ts(e,0)}function Ts(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Es(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Ds(e,t),t],i=[...Ds(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 Ds(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var Os=new WeakMap;function ks(e){let t=Os.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(Cs(i,e)):i.type===`item`&&n++};return r(e),Os.set(e,n),n}function As(e,t,n){let{key:r}=e,i=Eo.get(t),a=e.isDisabled??t.selectionManager.isDisabled(r),o=e.isSelected??t.selectionManager.isSelected(r),s=e.shouldSelectOnPressUp??i?.shouldSelectOnPressUp,c=e.shouldFocusOnHover??i?.shouldFocusOnHover,l=e.shouldUseVirtualFocus??i?.shouldUseVirtualFocus,u=e.isVirtualized??i?.isVirtualized,d=ae(),f=ae(),p={role:`option`,"aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode===`none`?void 0:o,"aria-label":e[`aria-label`],"aria-labelledby":d,"aria-describedby":f},m=t.collection.getItem(r);if(u){let e=Number(m?.index);p[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,p[`aria-setsize`]=ks(t.collection)}let h=i?.onAction?()=>i?.onAction?.(r):void 0,g=Oo(t,r),{itemProps:v,isPressed:y,isFocused:b,hasAction:x,allowsSelection:S}=bs({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:s,allowsDifferentPressOrigin:s&&c,isVirtualized:u,shouldUseVirtualFocus:l,isDisabled:a,onAction:h||m?.props?.onAction?_(m?.props?.onAction,h):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:g}),{hoverProps:C}=Si({isDisabled:a||!c,onHoverStart(){zt()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r))}}),w=Gr(m?.props);delete w.id;let T=xt(m?.props);return{optionProps:{...p,...P(w,v,C,T),id:g},labelProps:{id:d},descriptionProps:{id:f},isFocused:b,isFocusVisible:b&&t.selectionManager.isFocused&&zt(),isSelected:o,isDisabled:a,isPressed:y,allowsSelection:S,hasAction:x}}function js(e){let{heading:t,"aria-label":n}=e,r=N();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`,onMouseDown:e=>{e.preventDefault()}}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function Ms(e){let t=v.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}var Ns=class{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&e.type===`section`)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,r=0,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=r++),(t.type===`section`||t.type===`item`)&&i++,n=t,n.nextKey=void 0;this._size=i,this.lastKey=n?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._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])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}},Ps=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 Fs(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Is(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,v.useRef)(!1),[,s]=(0,v.useState)(!1),c=(0,v.useRef)(null),l=(0,v.useRef)(null),[,u]=(0,v.useState)(null),[d,f]=Tn((0,v.useMemo)(()=>Ls(e.selectedKeys),[e.selectedKeys]),(0,v.useMemo)(()=>Ls(e.defaultSelectedKeys,new Ps),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,v.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,v.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,v.useRef)(i);return(0,v.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||!Fs(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function Ls(e,t){return e?e===`all`?`all`:new Ps(e):t}var Rs=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&&Es(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&&Es(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 Ps([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new Ps(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?Es(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 Ps(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 Ps([t],t,t):new Ps;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new Ps;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(ws(Cs(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 Ps)}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})}},zs=class{build(e,t){return this.context=t,Bs(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(v.isValidElement(t)&&t.type===v.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=[];v.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(v.isValidElement(e.element)&&e.element.type===v.Fragment){let i=[];v.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(v.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:Vs(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 <${Hs(t.type)}> in <${Hs(r?.type??`unknown parent type`)}>. Only <${Hs(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:Bs(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 Bs(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 Vs(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Hs(e){return e[0].toUpperCase()+e.slice(1)}function Us(e,t,n){let r=(0,v.useMemo)(()=>new zs,[]),{children:i,items:a,collection:o}=e;return(0,v.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function Ws(e){let{filter:t,layoutDelegate:n}=e,r=Is(e),i=(0,v.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Us(e,(0,v.useCallback)(e=>t?new Ns(t(e)):new Ns(e),[t]),(0,v.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,v.useMemo)(()=>new Rs(a,r,{layoutDelegate:n}),[a,r,n]);return Ks(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function Gs(e,t){let n=(0,v.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return Ks(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function Ks(e,t){let n=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),i=null;for(;r!=null;){let a=e.getItem(r);if(a&&a.type===`item`&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let a=e.getItem(r);if(a&&a.type===`item`&&!t.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(i)}n.current=e},[e,t])}function qs(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a=`end`}=e,o=(0,v.useRef)(null),s=Yt(e=>{for(let t of e)t.isIntersecting&&r&&r()});y(()=>{if(t.current){let e=100*i,n=a===`start`?`${e}% 0px 0px 0px`:`0px ${e}% ${e}% ${e}%`;o.current=new IntersectionObserver(s,{root:Vi(t?.current),rootMargin:n}),o.current.observe(t.current)}return()=>{o.current&&o.current.disconnect()}},[n,t,i,a])}var Js=(0,v.createContext)(null),Ys=(0,v.createContext)(null),Xs=(0,v.forwardRef)(function(e,t){[e,t]=he(e,t,Js);let n=(0,v.useContext)(Ys);return n?v.createElement(Qs,{state:n,props:e,listBoxRef:t}):v.createElement(br,{content:v.createElement(jr,e)},n=>v.createElement(Zs,{props:e,listBoxRef:t,collection:n}))});function Zs({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,v.useContext)(Lr),i=Ws({...e,layoutDelegate:r});return v.createElement(Qs,{state:i,props:e,listBoxRef:t})}function Qs({state:e,props:t,listBoxRef:n}){[t,n]=he(t,n,En);let{dragAndDropHooks:r,layout:i=`stack`,orientation:a=`vertical`,filter:o}=t,s=Gs(e,o),{collection:c,selectionManager:l}=s,u=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:f}=ln(),{disabledBehavior:p,disabledKeys:m}=l,h=hs({usage:`search`,sensitivity:`base`}),{isVirtualized:g,layoutDelegate:_,dropTargetDelegate:y,CollectionRoot:b}=(0,v.useContext)(Lr),x=(0,v.useMemo)(()=>t.keyboardDelegate||new ps({collection:c,collator:h,ref:n,disabledKeys:m,disabledBehavior:p,layout:i,orientation:a,direction:f,layoutDelegate:_}),[c,h,n,p,m,a,f,t.keyboardDelegate,i,_]),{listBoxProps:S}=_s({...t,shouldSelectOnPressUp:u||t.shouldSelectOnPressUp,keyboardDelegate:x,isVirtualized:g},s,n);(0,v.useRef)(u),(0,v.useRef)(d),(0,v.useEffect)(()=>{},[u,d]);let C,w,T,E=!1,D=null,O=(0,v.useRef)(null);if(u&&r){C=r.useDraggableCollectionState({collection:c,selectionManager:l,preview:r.renderDragPreview?O:void 0}),r.useDraggableCollection({},C,n);let e=r.DragPreview;D=r.renderDragPreview?v.createElement(e,{ref:O},r.renderDragPreview):null}if(d&&r){w=r.useDroppableCollectionState({collection:c,selectionManager:l});let e=r.dropTargetDelegate||y||new r.ListDropTargetDelegate(c,n,{orientation:a,layout:i,direction:f});T=r.useDroppableCollection({keyboardDelegate:x,dropTargetDelegate:e},w,n),E=w.isDropTarget({type:`root`})}let{focusProps:k,isFocused:A,isFocusVisible:j}=gi(),ee=s.collection.size===0,te={isDropTarget:E,isEmpty:ee,isFocused:A,isFocusVisible:j,layout:t.layout||`stack`,orientation:a,state:s},ne=pe({...t,children:void 0,defaultClassName:`react-aria-ListBox`,values:te}),M=null;ee&&t.renderEmptyState&&(M=v.createElement(`div`,{role:`option`,style:{display:`contents`}},t.renderEmptyState(te)));let re=Gr(t,{global:!0});return v.createElement(Po,null,v.createElement(ve.div,{...P(re,ne,S,k,T?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":E||void 0,"data-empty":ee||void 0,"data-focused":A||void 0,"data-focus-visible":j||void 0,"data-layout":t.layout||`stack`,"data-orientation":a},v.createElement(fe,{values:[[Js,t],[Ys,s],[go,{dragAndDropHooks:r,dragState:C,dropState:w}],[To,{elementType:`div`}],[_o,{render:tc}],[Nr,{name:`ListBoxSection`,render:$s}]]},v.createElement(Co,null,v.createElement(b,{collection:c,scrollRef:n,persistedKeys:bo(l,r,w),renderDropIndicator:yo(r,w)}))),M,D))}function $s(e,t,n,r=`react-aria-ListBoxSection`){let i=(0,v.useContext)(Ys),{dragAndDropHooks:a,dropState:o}=(0,v.useContext)(go),{CollectionBranch:s}=(0,v.useContext)(Lr),[c,l]=F(),{headingProps:u,groupProps:d}=js({heading:l,"aria-label":e[`aria-label`]??void 0}),f=pe({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),p=Gr(e,{global:!0});return delete p.id,v.createElement(ve.section,{...P(p,f,d),ref:t},v.createElement(xo.Provider,{value:{...u,ref:c}},v.createElement(s,{collection:i.collection,parent:n,renderDropIndicator:yo(a,o)})))}var ec=Or(jn,function(e,t,n){let r=ue(t),i=(0,v.useContext)(Ys),{dragAndDropHooks:a,dragState:o,dropState:s}=(0,v.useContext)(go),c=o&&!(o.isDisabled||o.selectionManager.isDisabled(n.key)),{optionProps:l,labelProps:u,descriptionProps:d,...f}=As({key:n.key,"aria-label":e?.[`aria-label`]},i,r),{hoverProps:p,isHovered:m}=Si({isDisabled:!f.allowsSelection&&!f.hasAction&&!c,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),{keyboardProps:h}=ar(e),{focusProps:g}=Gn(e),_=null;o&&a&&(_=a.useDraggableItem({key:n.key,hasAction:f.hasAction},o));let y=null;s&&a&&(y=a.useDroppableItem({target:{type:`item`,key:n.key,dropPosition:`on`}},s,r));let b=o&&o.isDragging(n.key),x=pe({...e,id:void 0,children:e.children,defaultClassName:`react-aria-ListBoxItem`,values:{...f,isHovered:m,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:b,isDropTarget:y?.isDropTarget}});(0,v.useEffect)(()=>{n.textValue},[n.textValue]);let S=e.href?ve.a:ve.div,C=Gr(e,{global:!0});return delete C.id,delete C.onClick,e.href&&l.tabIndex==null&&(l.tabIndex=-1),v.createElement(S,{...P(C,x,l,p,h,g,_?.dragProps,y?.dropProps),ref:r,"data-allows-dragging":!!o||void 0,"data-selected":f.isSelected||void 0,"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-dragging":b||void 0,"data-drop-target":y?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode},v.createElement(fe,{values:[[zi,{slots:{[de]:u,label:u,description:d}}],[wo,{isSelected:f.isSelected}]]},x.children))});function tc(e,t){t=ue(t);let{dragAndDropHooks:n,dropState:r}=(0,v.useContext)(go),{dropIndicatorProps:i,isHidden:a,isDropTarget:o}=n.useDropIndicator(e,r,t);return a?null:v.createElement(rc,{...e,dropIndicatorProps:i,isDropTarget:o,ref:t})}function nc(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=pe({...i,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:r}});return v.createElement(v.Fragment,null,v.createElement(ve.div,{...n,...a,role:`option`,ref:t,"data-drop-target":r||void 0}))}var rc=(0,v.forwardRef)(nc);Or(An,function(e,t,n){let r=(0,v.useContext)(Ys),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,v.useRef)(null);qs((0,v.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=pe({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return v.createElement(v.Fragment,null,v.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:Ms(!0)},v.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&v.createElement(v.Fragment,null,v.createElement(ve.div,{...P(Gr(e,{global:!0}),{tabIndex:-1}),...l,role:`option`,ref:t},l.children)))});var ic=(0,v.createContext)({placement:`bottom`}),ac=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype;function oc(e){return e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer!==void 0}var sc=new WeakMap,cc=[];function lc(e,t){let n=R(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&ac,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(Oe()){let t=i.getRootNode();for(let n of e){let e=n.getRootNode();for(;we(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(z(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=Ao(L(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=sc.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),sc.set(e,t+1))};cc.length&&cc[cc.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=>z(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&oc(e)?o.add(e):e instanceof Element&&d(e);if(Oe()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});p.observe(i,{childList:!0,subtree:!0});let m=new Set;if(Oe())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=>z(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&oc(e)?o.add(e):e instanceof Element&&d(e);if(Oe()){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 cc.push(h),()=>{if(p.disconnect(),Oe())for(let e of m)e.disconnect();for(let e of s){let t=sc.get(e);t!=null&&(t===1?(l(e,!1),sc.delete(e)):sc.set(e,t-1))}h===cc[cc.length-1]?(cc.pop(),cc.length&&cc[cc.length-1].observe()):cc.splice(cc.indexOf(h),1)}}function uc(e){let t=cc[cc.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var dc={top:`top`,bottom:`top`,left:`left`,right:`left`},fc={top:`bottom`,bottom:`top`,left:`right`,right:`left`},pc={top:`left`,left:`top`},mc={top:`height`,left:`width`},hc={width:`totalWidth`,height:`totalHeight`},gc={},_c=()=>typeof document<`u`?window.visualViewport:null;function vc(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}=kc(e,!1)),c.top=e.scrollTop,c.left=e.scrollLeft,i=n,a=r;return lt()&&(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 yc(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function bc(e,t,n,r,i,a,o){let s=i.scroll[e]??0,c=r[mc[e]],l=o[e]+r.scroll[dc[e]]+a,u=o[e]+r.scroll[dc[e]]+c-a,d=t-s+r.scroll[dc[e]]+o[e]-r[dc[e]],f=t-s+n+r.scroll[dc[e]]+o[e]-r[dc[e]];return d<l?l-d:f>u?Math.max(u-f,l-d):0}function xc(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 Sc(e){if(gc[e])return gc[e];let[t,n]=e.split(` `),r=dc[t]||`right`,i=pc[r];dc[n]||(n=`center`);let a=mc[r],o=mc[i];return gc[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},gc[e]}function Cc(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]=Ei(_[m],v,y),d===p){let t=s?u[h]:u[hc[h]];_[fc[p]]=Math.floor(t-e[p]+i)}else _[p]=Math.floor(e[p]+e[h]+i);return _}function wc(e,t,n,r,i,a,o,s,c,l,u){let d=(e.top==null?c[hc.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 Tc(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[fc[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[fc[l]]-i)}function Ec(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=Sc(e),{size:y,crossAxis:b,crossSize:x,placement:S,crossPlacement:C}=v,w=Cc(t,s,n,v,u,d,l,f,m,h,c),T=u,E=Tc(s,l,t,i,a+u,v,c,g);if(o&&n[y]>E){let e=Sc(`${fc[S]} ${C}`),r=Cc(t,s,n,e,u,d,l,f,m,h,c);Tc(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=bc(b,w[b],n[x],s,c,a,l);w[b]+=O;let k=wc(w,s,l,f,i,a,n.height,D,c,g,_);p&&p<k&&(k=p),n.height=Math.min(n.height,k),w=Cc(t,s,n,v,T,d,l,f,m,h,c),O=bc(b,w[b],n[x],s,c,a,l),w[b]+=O;let A={},j=t[b]-w[b]-i[dc[b]],ee=j+.5*t[x],te=m/2+h,ne=dc[b]===`left`?(i.left??0)+(i.right??0):(i.top??0)+(i.bottom??0),M=n[x]-ne-m/2-h;A[b]=Ei(Ei(ee,t[b]+m/2-(w[b]+i[dc[b]]),t[b]+t[x]-m/2-(w[b]+i[dc[b]])),te,M),{placement:S,crossPlacement:C}=v,m?j=A[b]:C===`right`?j+=t[x]:C===`center`&&(j+=t[x]/2);let re=S===`left`||S===`top`?n[y]:0,N={x:S===`top`||S===`bottom`?j:re,y:S===`left`||S===`right`?j:re};return{position:w,maxHeight:k,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:S,triggerAnchorPoint:N}}function Dc(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=_c(),h=r instanceof HTMLElement?jc(r):document.documentElement,g=h===document.documentElement,_=window.getComputedStyle(h).position,v=!!_&&_!==`static`,y=g?kc(n,!1,p):Ac(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=kc(r,!0),x=xc(r);b.width+=(x.left??0)+(x.right??0),b.height+=(x.top??0)+(x.bottom??0);let S=yc(i),C=vc(s,m),w=vc(h,m),T;if((s.tagName===`BODY`||s.tagName===`HTML`)&&!g){let e=Oc(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}:Ac(s,h,!1);let E=z(s,h);return Ec(t,y,b,S,x,a,o,C,w,T,c,l,v,u,d,f,E,m)}function Oc(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 kc(e,t,n){let{top:r,left:i,width:a,height:o}=n||Oc(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 Ac(e,t,n,r){let i=window.getComputedStyle(e),a;if(i.position===`fixed`)a=r||Oc(e,n);else{a=kc(e,n,r);let i=kc(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 jc(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position===`static`&&!Mc(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Mc(t);)t=t.parentElement;return t||document.documentElement}function Mc(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 Nc=new WeakMap;function Pc(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,v.useEffect)(()=>!n||r===null?void 0:Te(ke(t.current),`scroll`,e=>{let n=V(e);if(!t.current||n instanceof Node&&!z(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let i=r||Nc.get(t.current);i&&i()},!0),[n,r,t])}function Fc(){return window.ResizeObserver!==void 0}function Ic(e){let{ref:t,box:n,onResize:r}=e,i=Yt(r);(0,v.useEffect)(()=>{let e=t?.current;if(e){if(Fc()){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 Lc=typeof document<`u`?window.visualViewport:null;function Rc(e){let{direction:t}=ln(),{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:b}=e,[x,S]=(0,v.useState)(null),C=[p,s,i.current,r.current,a?.current,o.current,c,l,u,d,f,m,t,g,_,n],w=(0,v.useRef)(Lc?.scale);(0,v.useEffect)(()=>{m&&(w.current=Lc?.scale)},[m]);let T=(0,v.useCallback)(()=>{if(p===!1||!m||!i.current||!r.current||!u||Lc?.scale!==w.current)return;let e=null;if(o.current&&Ae(o.current)){let t=B()?.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 v=Dc({placement:Bc(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?Oc(a.current,!0).width:0),arrowBoundaryOffset:_,targetRect:b?.(r.current)});if(!v.position)return;h.style.top=``,h.style.bottom=``,h.style.left=``,h.style.right=``,Object.keys(v.position).forEach(e=>h.style[e]=v.position[e]+`px`),h.style.maxHeight=v.maxHeight==null?``:v.maxHeight+`px`;let y=B();if(e&&y&&o.current){let t=y.getBoundingClientRect(),n=o.current.getBoundingClientRect(),r=t[e.type]-n[e.type];o.current.scrollTop+=r-e.offset}S(v)},C);y(T,C),zc(T),Ic({ref:i,onResize:T}),Ic({ref:r,onResize:T});let E=(0,v.useRef)(!1);y(()=>{let e,t=()=>{E.current=!0,clearTimeout(e),e=setTimeout(()=>{E.current=!1},500),T()},n=()=>{E.current&&t()};Lc?.addEventListener(`resize`,t),Lc?.addEventListener(`scroll`,n);let r=Te(ke(window),`scroll`,n);return()=>{Lc?.removeEventListener(`resize`,t),Lc?.removeEventListener(`scroll`,n),r()}},[T]);let D=(0,v.useCallback)(()=>{E.current||h?.()},[h,E]);return Pc({triggerRef:r,isOpen:m,onClose:h&&D}),{overlayProps:{style:{position:x?`absolute`:`fixed`,top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...x?.position,maxHeight:x?.maxHeight??`100vh`}},placement:x?.placement??null,triggerAnchorPoint:x?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":`true`,role:`presentation`,style:{left:x?.arrowOffsetLeft,top:x?.arrowOffsetTop}},updatePosition:T}}function zc(e){y(()=>(window.addEventListener(`resize`,e,!1),()=>{window.removeEventListener(`resize`,e,!1)}),[e])}function Bc(e,t){return t===`rtl`?e.replace(`start`,`right`).replace(`end`,`left`):e.replace(`start`,`left`).replace(`end`,`right`)}function Vc(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=(0,v.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Yt(e=>{n&&Hc(e,t)&&(i&&i(e),a.current.isPointerDown=!0)}),s=Yt(e=>{n&&n(e)});(0,v.useEffect)(()=>{let e=a.current;if(r)return;let n=t.current,i=L(n);if(typeof PointerEvent<`u`){let n=n=>{e.isPointerDown&&Hc(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 Hc(e,t){if(e.button>0)return!1;let n=V(e);if(n){let e=n.ownerDocument;if(!e||!z(e.documentElement,n)||n.closest(`[data-react-aria-top-layer]`))return!1}return t.current?!e.composedPath().includes(t.current):!1}var Uc=[];function Wc(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e,c=(0,v.useRef)(void 0);(0,v.useEffect)(()=>{if(i&&!Uc.includes(t))return Uc.push(t),()=>{let e=Uc.indexOf(t);e>=0&&Uc.splice(e,1)}},[i,t]);let l=()=>{Uc[Uc.length-1]===t&&n&&n()},u=e=>{let n=Uc[Uc.length-1];c.current=n,(!s||s(V(e)))&&n===t&&e.stopPropagation()},d=e=>{(!s||s(V(e)))&&(Uc[Uc.length-1]===t&&e.stopPropagation(),c.current===t&&l()),c.current=void 0},{keyboardProps:f}=ar({shortcuts:{Escape:()=>{if(!o)l();else return!1}}});Vc({ref:t,onInteractOutside:a&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=hi({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!Ho(e.relatedTarget)&&(!s||s(e.relatedTarget))&&n?.()}});return{overlayProps:{...f,...p},underlayProps:{}}}var Gc=typeof document<`u`&&window.visualViewport,Kc=0,qc;function Jc(e={}){let{isDisabled:t}=e;y(()=>{if(!t)return Kc++,Kc===1&&(qc=st()&<()?Xc():Yc()),()=>{Kc--,Kc===0&&qc()}},[t])}function Yc(){let e=window.innerWidth-document.documentElement.clientWidth;return _(e>0&&(`scrollbarGutter`in document.documentElement.style?Ee(document.documentElement,`scrollbar-gutter`,`stable`):Ee(document.documentElement,`padding-right`,`${e}px`)),Ee(document.documentElement,`overflow`,`hidden`))}function Xc(){let e=Ee(document.documentElement,`overflow`,`hidden`),t,n=!1,r=e=>{let r=V(e);t=Bi(r)?r:Vi(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=$r();a&&(i.nonce=a),i.textContent=`@layer {
|
|
17
|
-
* {
|
|
18
|
-
overscroll-behavior: contain;
|
|
19
|
-
}
|
|
20
|
-
}`,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=e=>{let t=V(e),n=e.relatedTarget;n&&qt(n)?(n.focus({preventScroll:!0}),Zc(n,qt(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},c=HTMLElement.prototype.focus;Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(e){let t=B(),n=t!=null&&qt(t);c.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&Zc(this,n)}});let l=_(Te(document,`touchstart`,r,{passive:!1,capture:!0}),Te(document,`touchmove`,o,{passive:!1,capture:!0}),Te(document,`blur`,s,!0));return()=>{e(),l(),i.remove(),Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:c})}}function Zc(e,t){t||!Gc?Qc(e):Gc.addEventListener(`resize`,()=>Qc(e),{once:!0})}function Qc(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=Vi(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;Gc&&(n=Math.min(n,Gc.offsetTop+Gc.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 $c(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}=Wc({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}=Rc({...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)});Jc({isDisabled:a||!t.isOpen}),(0,v.useEffect)(()=>{if(t.isOpen&&r.current)return a?uc(i?.current??r.current):lc([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:g}=hi(e);return{popoverProps:P(u,f,g),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}var el={};el={dismiss:`تجاهل`};var tl={};tl={dismiss:`Отхвърляне`};var nl={};nl={dismiss:`Odstranit`};var rl={};rl={dismiss:`Luk`};var il={};il={dismiss:`Schließen`};var al={};al={dismiss:`Απόρριψη`};var ol={};ol={dismiss:`Dismiss`};var sl={};sl={dismiss:`Descartar`};var cl={};cl={dismiss:`Lõpeta`};var ll={};ll={dismiss:`Hylkää`};var ul={};ul={dismiss:`Rejeter`};var dl={};dl={dismiss:`התעלם`};var fl={};fl={dismiss:`Odbaci`};var pl={};pl={dismiss:`Elutasítás`};var ml={};ml={dismiss:`Ignora`};var hl={};hl={dismiss:`閉じる`};var gl={};gl={dismiss:`무시`};var _l={};_l={dismiss:`Atmesti`};var vl={};vl={dismiss:`Nerādīt`};var yl={};yl={dismiss:`Lukk`};var bl={};bl={dismiss:`Negeren`};var xl={};xl={dismiss:`Zignoruj`};var Sl={};Sl={dismiss:`Descartar`};var Cl={};Cl={dismiss:`Dispensar`};var wl={};wl={dismiss:`Revocare`};var Tl={};Tl={dismiss:`Пропустить`};var El={};El={dismiss:`Zrušiť`};var Dl={};Dl={dismiss:`Opusti`};var Ol={};Ol={dismiss:`Odbaci`};var kl={};kl={dismiss:`Avvisa`};var Al={};Al={dismiss:`Kapat`};var jl={};jl={dismiss:`Скасувати`};var Ml={};Ml={dismiss:`取消`};var Nl={};Nl={dismiss:`關閉`};var Pl={};Pl={"ar-AE":el,"bg-BG":tl,"cs-CZ":nl,"da-DK":rl,"de-DE":il,"el-GR":al,"en-US":ol,"es-ES":sl,"et-EE":cl,"fi-FI":ll,"fr-FR":ul,"he-IL":dl,"hr-HR":fl,"hu-HU":pl,"it-IT":ml,"ja-JP":hl,"ko-KR":gl,"lt-LT":_l,"lv-LV":vl,"nb-NO":yl,"nl-NL":bl,"pl-PL":xl,"pt-BR":Sl,"pt-PT":Cl,"ro-RO":wl,"ru-RU":Tl,"sk-SK":El,"sl-SI":Dl,"sr-SP":Ol,"sv-SE":kl,"tr-TR":Al,"uk-UA":jl,"zh-CN":Ml,"zh-TW":Nl};function Fl(e){return e&&e.__esModule?e.default:e}function Il(e){let{onDismiss:t,...n}=e,r=Zt(n,Cn(Fl(Pl),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return v.createElement(Zi,null,v.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var Ll=v.forwardRef(({children:e,...t},n)=>{let r=(0,v.useRef)(!1),i=(0,v.useContext)(ei),a=P(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=ue(n||i?.ref),or(i,a.ref),(0,v.useEffect)(()=>{r.current||=!0},[]),v.createElement(ei.Provider,{value:a},e)});function Rl({children:e}){let t=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(ei.Provider,{value:t},e)}var zl=(0,v.createContext)({});function Bl(){return(0,v.useContext)(zl)??{}}var Vl=v.createContext(null);function Hl(e){let t=j(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,v.useState)(!1),o=(0,v.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=Bl();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=v.createElement(Po,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=v.createElement(Vl.Provider,{value:o},v.createElement(Rl,null,v.createElement(sr.Provider,{value:null},c))),gr.createPortal(c,n)}function Ul(){let e=(0,v.useContext)(Vl)?.setContain;y(()=>{e?.(!0)},[e])}function Wl(e){let[t,n]=Tn(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,i]=(0,v.useState)(null);return{isOpen:t,setOpen:n,open:(0,v.useCallback)(()=>{n(!0)},[n]),close:(0,v.useCallback)(()=>{n(!1)},[n]),toggle:(0,v.useCallback)(()=>{n(!t)},[n,t]),point:r,setPoint:i}}function Gl(e,t=!0){let[n,r]=(0,v.useState)(!0),i=n&&t;return y(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),ql(e,i,(0,v.useCallback)(()=>r(!1),[])),i}function Kl(e,t){let[n,r]=(0,v.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`)}let i=n===`exiting`;return ql(e,i,(0,v.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function ql(e,t,n){y(()=>{if(t&&e.current){if(!(`getAnimations`in e.current)){n();return}let t=e.current.getAnimations();if(t.length===0){n();return}let r=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{r||(0,gr.flushSync)(()=>{n()})}),()=>{r=!0}}},[e,t,n])}var Jl=(0,v.createContext)(null),Yl=(0,v.createContext)(null),Xl=(0,v.forwardRef)(function(e,t){[e,t]=he(e,t,Jl);let n=(0,v.useContext)(id),r=Wl(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=Kl(t,i.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&a||!1,s=pr(),{direction:c}=ln();if(s){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),v.createElement(v.Fragment,null,t)}return i&&!i.isOpen&&!o?null:v.createElement(Zl,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:o,dir:c})});function Zl({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,v.useRef)(null),o=(0,v.useRef)(null),s=(0,v.useContext)(Yl),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=$c({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=Gl(m,!!f),g=i.isEntering||!i.shouldSkipAnimation&&h||!1,_=pe({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:g,isExiting:t}}),b=!i.isNonModal||i.trigger===`SubmenuTrigger`||i.trigger===`PreviewTrigger`,[x,S]=(0,v.useState)(i.trigger===`PreviewTrigger`);y(()=>{m.current&&S(b&&!m.current.querySelector(`[role=dialog]`))},[m,b]),(0,v.useEffect)(()=>{x&&i.trigger!==`PreviewTrigger`&&(i.trigger!==`SubmenuTrigger`||Bt()!==`pointer`)&&m.current&&!Ae(m.current)&&Wn(m.current)},[x,m,i.trigger]);let C=(0,v.useMemo)(()=>{let e=_.children;if(r)for(let t of r)e=v.createElement(t.Provider,{value:null},e);return e},[_.children,r]),[w,T]=(0,v.useState)(null),E=(0,v.useCallback)(()=>{i.triggerRef.current&&T(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);y(E,[E]),Ic({ref:_.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:E});let D={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,..._.style,"--trigger-width":_.style?.[`--trigger-width`]||w},O=v.createElement(ve.div,{...P(Gr(i,{global:!0}),l),..._,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:m,slot:i.slot||void 0,style:D,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":g||void 0,"data-exiting":t||void 0},!i.isNonModal&&v.createElement(Il,{onDismiss:e.close}),v.createElement(ic.Provider,{value:{...d,placement:f,ref:a}},C),v.createElement(Il,{onDismiss:e.close}));return c?v.createElement(Hl,{...i,shouldContainFocus:x&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n??s?.current??void 0},O):v.createElement(Hl,{...i,shouldContainFocus:x&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&v.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),v.createElement(`div`,{ref:o,style:{display:`contents`}},v.createElement(Yl.Provider,{value:o},O)))}var Ql=(0,v.createContext)({}),$l={};$l={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`};var eu={};eu={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`};var tu={};tu={longPressMessage:`Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`};var nu={};nu={longPressMessage:`Langt tryk eller tryk på Alt + pil ned for at åbne menuen`};var ru={};ru={longPressMessage:`Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`};var iu={};iu={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`};var au={};au={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var ou={};ou={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`};var su={};su={longPressMessage:`Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`};var cu={};cu={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var lu={};lu={longPressMessage:`Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var uu={};uu={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`};var du={};du={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var fu={};fu={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`};var pu={};pu={longPressMessage:`Premi a lungo o premi Alt + Freccia giù per aprire il menu`};var mu={};mu={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`};var hu={};hu={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`};var gu={};gu={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var _u={};_u={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var vu={};vu={longPressMessage:`Langt trykk eller trykk Alt + PilNed for å åpne menyen`};var yu={};yu={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var bu={};bu={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`};var xu={};xu={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var 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 wu={};wu={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`};var Tu={};Tu={longPressMessage:`Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`};var Eu={};Eu={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`};var Du={};Du={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var Ou={};Ou={longPressMessage:`Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`};var ku={};ku={longPressMessage:`Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`};var Au={};Au={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`};var ju={};ju={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`};var Mu={};Mu={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`};var Nu={};Nu={"ar-AE":$l,"bg-BG":eu,"cs-CZ":tu,"da-DK":nu,"de-DE":ru,"el-GR":iu,"en-US":au,"es-ES":ou,"et-EE":su,"fi-FI":cu,"fr-FR":lu,"he-IL":uu,"hr-HR":du,"hu-HU":fu,"it-IT":pu,"ja-JP":mu,"ko-KR":hu,"lt-LT":gu,"lv-LV":_u,"nb-NO":vu,"nl-NL":yu,"pl-PL":bu,"pt-BR":xu,"pt-PT":Su,"ro-RO":Cu,"ru-RU":wu,"sk-SK":Tu,"sl-SI":Eu,"sr-SP":Du,"sv-SE":Ou,"tr-TR":ku,"uk-UA":Au,"zh-CN":ju,"zh-TW":Mu};function Pu(e){let{onContextMenu:t}=e,n=(0,v.useRef)(!1),{longPressProps:r}=ys({onLongPressStart(){n.current=!1},onLongPress(e){n.current?n.current=!1:t?.({target:e.target,x:e.x,y:e.y})}});return t?{contextMenuProps:P(st()?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(it()&&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 Fu(e,t,n){let{type:r}=e,{isOpen:i}=t;(0,v.useEffect)(()=>{n&&n.current&&Nc.set(n.current,t.close)});let a;r===`menu`?a=!0:r===`listbox`&&(a=`listbox`);let o=N();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}function Iu(e){return e&&e.__esModule?e.default:e}function Lu(e,t,n){let{type:r=`menu`,isDisabled:i,trigger:a=`press`}=e,o=N(),{triggerProps:s,overlayProps:c}=Fu({type:r},t,n),l=(e,n,r=`first`)=>{if(!e||n.isDefaultPrevented())return!1;t.toggle(r)},{keyboardProps:u}=ar({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=Cn(Iu(Nu),`@react-aria/menu`),{longPressProps:f}=ys({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&&(Fe(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!i&&(Fe(e.target),t.toggle())}};delete s.onPress;let{contextMenuProps:m}=Pu({onContextMenu(e){let n=e.target.getBoundingClientRect();t.setPoint({x:n.x+e.x,y:n.y+e.y}),t.open()}});(0,v.useEffect)(()=>{if(t.isOpen&&a===`contextMenu`){let e=e=>{(e.button===2||e.button===0&&e.ctrlKey===!0)&&V(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 Ru=new WeakMap;function zu(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=Gr(e,{labelable:!0}),{listProps:c}=gs({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return Ru.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:P(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{(t.key!==`Escape`||e.shouldUseVirtualFocus)&&c.onKeyDown?.(t)}})}}function Bu(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:y,onKeyUp:b,onFocus:x,onFocusChange:S,onBlur:C,selectionManager:w=t.selectionManager}=e,T=!!c,E=T&&e[`aria-expanded`]===`true`,D=e.isDisabled??w.isDisabled(i),O=e.isSelected??w.isSelected(i),k=Ru.get(t),A=t.collection.getItem(i),j=e.onClose||k.onClose,ee=gt(),te=()=>{if(!T&&(A?.props?.onAction?A.props.onAction():e.onAction&&e.onAction(i),k.onAction)){let e=k.onAction;e(i,A?.value)}},ne=`menuitem`;T||(w.selectionMode===`single`?ne=`menuitemradio`:w.selectionMode===`multiple`&&(ne=`menuitemcheckbox`));let M=ae(),re=ae(),N=ae(),ie={id:r,"aria-disabled":D||void 0,role:ne,"aria-label":e[`aria-label`],"aria-labelledby":M,"aria-describedby":[e[`aria-describedby`],re,N].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":c,"aria-expanded":e[`aria-expanded`]};if(w.selectionMode!==`none`&&!T&&(ie[`aria-checked`]=O),s){let e=Number(A?.index);ie[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,ie[`aria-setsize`]=ks(t.collection)}let oe=(0,v.useRef)(!1),se=e=>{f?.(e),oe.current=e},ce=(0,v.useRef)(null),le=e=>{e.pointerType!==`keyboard`&&(ce.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(oe.current||e.target.click()),u?.(e)},ue=e=>{m?.(e),te(),St(e,ee,A.props.href,A?.props.routerOptions);let t=ce.current?.pointerType===`keyboard`?ce.current?.key===`Enter`||w.selectionMode===`none`||w.isLink(i):w.selectionMode!==`multiple`||w.isLink(i);t=o??a??t,j&&!T&&t&&j(),ce.current=null},{itemProps:de,isFocused:fe}=bs({id:r,selectionManager:w,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:k.shouldUseVirtualFocus}),{pressProps:pe,isPressed:me}=si({onPressStart:l,onPress:d,onPressUp:le,onPressChange:se,onPressEnd:p,isDisabled:D}),{hoverProps:he}=Si({isDisabled:D,onHoverStart(e){!zt()&&!(E&&c)&&(w.setFocused(!0),w.setFocusedKey(i)),h?.(e)},onHoverChange:g,onHoverEnd:_}),{keyboardProps:F}=ar({shortcuts:{" ":e=>{ce.current={pointerType:`keyboard`,key:` `},V(e).click(),Vt(`keyboard`)},Enter:e=>{ce.current={pointerType:`keyboard`,key:`Enter`};let t=V(e);if(t.tagName!==`A`)t.click(),Vt(`keyboard`);else return Vt(`keyboard`),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:y,onKeyUp:b}),{focusableProps:I}=lr({onBlur:C,onFocus:x,onFocusChange:S},n),ge=Gr(A?.props);delete ge.id;let _e=xt(A?.props);return{menuItemProps:{...ie,...P(ge,_e,T?{onFocus:de.onFocus,"data-collection":de[`data-collection`],"data-key":de[`data-key`]}:de,pe,he,F,I,k.shouldUseVirtualFocus||T?{onMouseDown:e=>e.preventDefault()}:void 0,D?void 0:{onClick:ue}),tabIndex:de.tabIndex!=null&&E&&!k.shouldUseVirtualFocus?-1:de.tabIndex},labelProps:{id:M},descriptionProps:{id:re},keyboardShortcutProps:{id:N},isFocused:fe,isFocusVisible:fe&&w.isFocused&&zt()&&!E,isSelected:O,isPressed:me,isDisabled:D}}function Vu(e){let{heading:t,"aria-label":n}=e,r=N();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function Hu(e){let t=Wl(e),[n,r]=(0,v.useState)(null),[i,a]=(0,v.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 Uu=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 Wu(e){let{onExpandedChange:t}=e,[n,r]=Tn(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=Is(e),a=(0,v.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=Us(e,(0,v.useCallback)(e=>new Uu(e,{expandedKeys:n}),[n]),null);return(0,v.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(Gu(n,e))},setExpandedKeys:r,selectionManager:new Rs(o,i)}}function Gu(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var Ku=(0,v.createContext)(null),qu=(0,v.createContext)(null),Ju=(0,v.createContext)(null),Yu=(0,v.createContext)(null);function Xu(e){let t=Hu(e),n=(0,v.useRef)(null),{menuTriggerProps:r,menuProps:i}=Lu({...e,type:`menu`},t,n),a=(0,v.useRef)(null);return pr()?null:v.createElement(fe,{values:[[Ku,{...i,ref:a}],[id,t],[Ju,t],[Jl,{trigger:`MenuTrigger`,triggerRef:n,scrollRef:a,placement:`bottom start`,"aria-labelledby":i[`aria-labelledby`],offset:e.trigger===`contextMenu`?0:void 0}]]},v.createElement(Ll,{...r,ref:n,isPressed:t.isOpen},e.children))}var Zu=(0,v.createContext)(null);(class extends On{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 Qu=(0,v.forwardRef)(function(e,t){return[e,t]=he(e,t,Ku),v.createElement(br,{content:v.createElement(jr,e)},n=>v.createElement($u,{props:e,collection:n,menuRef:t}))});function $u({props:e,collection:t,menuRef:n}){[e,n]=he(e,n,En);let{filter:r,...i}=e,a=(0,v.useMemo)(()=>r?t.filter(r):t,[t,r]),o=Wu({...e,collection:a,children:void 0}),s=(0,v.useContext)(Ju),{isVirtualized:c,CollectionRoot:l}=(0,v.useContext)(Lr),{menuProps:u}=zu({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=pe({...e,children:void 0,defaultClassName:`react-aria-Menu`,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=v.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=Gr(e,{global:!0});return v.createElement(Po,null,v.createElement(ve.div,{...P(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},v.createElement(fe,{values:[[qu,o],[To,{elementType:`div`}],[Nr,{name:`MenuSection`,render:td}],[Zu,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[nd,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[En,null],[Dn,null],[Yu,o.selectionManager],[Ju,s??Hu({})]]},v.createElement(Co,null,v.createElement(l,{collection:o.collection,persistedKeys:Rr(o.selectionManager.focusedKey),scrollRef:n}))),f))}var ed=class extends Rs{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 td(e,t,n,r=`react-aria-MenuSection`){let i=(0,v.useContext)(qu),{CollectionBranch:a}=(0,v.useContext)(Lr),[o,s]=F(),{headingProps:c,groupProps:l}=Vu({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=pe({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),d=(0,v.useContext)(Yu),f=Is(e),p=e.selectionMode==null?d:new ed(d,f),m=me(nd)?.shouldCloseOnSelect,h=Gr(e,{global:!0});return delete h.id,v.createElement(ve.section,{...P(h,u,l),ref:t},v.createElement(fe,{values:[[xo,{...c,ref:o}],[Yu,p],[nd,{shouldCloseOnSelect:e.shouldCloseOnSelect??m}]]},v.createElement(a,{collection:i.collection,parent:n})))}var nd=(0,v.createContext)(null),G=Or(jn,function(e,t,n){[e,t]=he(e,t,nd);let r=me(nd)?.id,i=(0,v.useContext)(qu),a=ue(t),o=(0,v.useContext)(Yu),{isVirtualized:s}=(0,v.useContext)(Lr),{menuItemProps:c,labelProps:l,descriptionProps:u,keyboardShortcutProps:d,...f}=Bu({...e,id:r,key:n.key,selectionManager:o,isVirtualized:s},i,a),{hoverProps:p,isHovered:m}=Si({isDisabled:f.isDisabled}),h=pe({...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?ve.a:ve.div,_=Gr(e,{global:!0});return delete _.id,delete _.onClick,v.createElement(g,{...P(_,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},v.createElement(fe,{values:[[zi,{slots:{[de]:l,label:l,description:u}}],[Ql,d],[wo,{isSelected:f.isSelected}]]},h.children))});Or(An,function(e,t,n){let r=(0,v.useContext)(qu),{isLoading:i,onLoadMore:a,scrollOffset:o,...s}=e,c=(0,v.useRef)(null);qs((0,v.useMemo)(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:c,scrollOffset:o}),[a,o,r?.collection]),c);let l=pe({...s,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuLoadingIndicator`,values:void 0});return v.createElement(v.Fragment,null,v.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:Ms(!0)},v.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:c,style:{position:`absolute`,height:1,width:1}})),i&&l.children&&v.createElement(v.Fragment,null,v.createElement(ve.div,{...P(Gr(e,{global:!0}),{tabIndex:-1}),...l,role:`menuitem`,ref:t},l.children)))});function K(e,t){let{role:n=`dialog`}=e,r=ae();r=e[`aria-label`]?void 0:r;let i=ae();i=n===`alertdialog`&&!e[`aria-describedby`]?i:void 0;let a=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(t.current&&!Ae(t.current)){Wn(t.current);let e=setTimeout(()=>{(B()===t.current||B()===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Wn(t.current)),a.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),Ul(),(0,v.useRef)(!1),(0,v.useEffect)(()=>{});let o=e[`aria-describedby`]??i;return{dialogProps:{...Gr(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]??r,"aria-describedby":o,onBlur:e=>{a.current&&e.stopPropagation()}},titleProps:{id:r},contentProps:{id:i}}}var rd=(0,v.createContext)(null),id=(0,v.createContext)(null);function ad(e){let t=Hu(e),n=(0,v.useRef)(null),{triggerProps:r,overlayProps:i}=Fu({type:`dialog`},t,n);return r.id=N(),i[`aria-labelledby`]=r.id,pr()?null:v.createElement(fe,{values:[[id,t],[Ju,t],[rd,i],[Jl,{trigger:`DialogTrigger`,triggerRef:n,id:i.id,"aria-labelledby":i[`aria-labelledby`]}]]},v.createElement(Ll,{...r,ref:n,isPressed:t.isOpen},e.children))}var od=(0,v.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=he(e,t,rd);let{dialogProps:r,titleProps:i,contentProps:a}=K({...e,"aria-labelledby":n},t),o=(0,v.useContext)(id);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let s=pe({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:o?.close||(()=>{})}}),c=Gr(e,{global:!0});return v.createElement(ve.section,{...P(c,s,r),render:e.render,ref:t,slot:e.slot||void 0},v.createElement(fe,{values:[[Li,{slots:{[de]:{},title:{...i,level:2}}}],[zi,{slots:{[de]:{},description:a}}],[Ni,{slots:{[de]:{},close:{onPress:()=>o?.close()}}}]]},s.children))});function sd(e={}){let{locale:t}=ln();return(0,v.useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}function cd(e,t,n){let{overlayProps:r,underlayProps:i}=Wc({...e,isOpen:t.isOpen,onClose:t.close},n);return Jc({isDisabled:!t.isOpen}),Ul(),(0,v.useEffect)(()=>{if(t.isOpen&&n.current)return lc([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:P(r),underlayProps:i}}var q=typeof document<`u`&&window.visualViewport;function ld(){let e=j(),[t,n]=(0,v.useState)(()=>e?{width:0,height:0}:ud());return(0,v.useEffect)(()=>{let e=e=>{n(t=>e.width===t.width&&e.height===t.height?t:e)},t=()=>{q&&q.scale>1||e(ud())},r,i=t=>{q&&q.scale>1||qt(V(t))&&(r=requestAnimationFrame(()=>{let t=B();(!t||!qt(t))&&e({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return e(ud()),st()&<()&&window.addEventListener(`blur`,i,!0),q?q.addEventListener(`resize`,t):window.addEventListener(`resize`,t),()=>{cancelAnimationFrame(r),st()&<()&&window.removeEventListener(`blur`,i,!0),q?q.removeEventListener(`resize`,t):window.removeEventListener(`resize`,t)}},[]),t}function ud(){return{width:q?Math.min(q.width*q.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:q?q.height*q.scale:document.documentElement.clientHeight}}var dd=(0,v.createContext)(null),fd=(0,v.createContext)(null),pd=(0,v.forwardRef)(function(e,t){if((0,v.useContext)(fd))return v.createElement(_d,{...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 v.createElement(hd,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:o,isEntering:c,isExiting:l,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:d},v.createElement(_d,{...f,modalRef:t},s))});function md(e,t){[e,t]=he(e,t,dd);let n=(0,v.useContext)(id),r=Wl(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=ue(t),o=(0,v.useRef)(null),s=Kl(a,i.isOpen),c=Kl(o,i.isOpen),l=s||c||e.isExiting||!1,u=j();return!i.isOpen&&!l||u?null:v.createElement(gd,{...e,state:i,isExiting:l,overlayRef:a,modalRef:o})}var hd=(0,v.forwardRef)(md);function gd({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:i,underlayProps:a}=cd(t,r,n),o=Gl(t.overlayRef)||t.isEntering||!1,s=pe({...t,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:o,isExiting:t.isExiting,state:r}}),c=ld(),l,u;if(typeof document<`u`){let e=Bi(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;l=e.scrollWidth-t,u=e.scrollHeight-n}let d={...s.style,"--visual-viewport-width":c.width+`px`,"--visual-viewport-height":c.height+`px`,"--page-width":l===void 0?void 0:l+`px`,"--page-height":u===void 0?void 0:u+`px`};return v.createElement(Hl,{isExiting:t.isExiting,portalContainer:e},v.createElement(ve.div,{...P(Gr(t,{global:!0}),a),...s,style:d,ref:t.overlayRef,"data-entering":o||void 0,"data-exiting":t.isExiting||void 0},v.createElement(fe,{values:[[fd,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[id,r]]},s.children)))}function _d(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i}=(0,v.useContext)(fd),a=(0,v.useContext)(id),o=ue((0,v.useMemo)(()=>oe(e.modalRef,n),[e.modalRef,n])),s=Gl(o),c=pe({...e,defaultClassName:`react-aria-Modal`,values:{isEntering:s,isExiting:r,state:a}});return v.createElement(ve.div,{...P(Gr(e,{global:!0}),t),...c,ref:o,"data-entering":s||void 0,"data-exiting":r||void 0},i&&v.createElement(Il,{onDismiss:a.close}),c.children)}var vd=new WeakMap;function yd(e,t,n){let{value:r,children:i,"aria-label":a,"aria-labelledby":o,onPressStart:s,onPressEnd:c,onPressChange:l,onPress:u,onPressUp:d,onClick:f}=e,p=e.isDisabled||t.isDisabled,m=t.selectedValue===r,h=e=>{e.stopPropagation(),t.setSelectedValue(r)},{pressProps:g,isPressed:_}=si({onPressStart:s,onPressEnd:c,onPressChange:l,onPress:u,onPressUp:d,onClick:f,isDisabled:p}),{pressProps:y,isPressed:b}=si({onPressStart:s,onPressEnd:c,onPressChange:l,onPressUp:d,onClick:f,isDisabled:p,onPress(e){u?.(e),t.setSelectedValue(r),n.current?.focus()}}),{focusableProps:x}=lr(P(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),S=P(g,x),C=Gr(e,{labelable:!0}),w=-1;t.selectedValue==null?(t.lastFocusedValue===r||t.lastFocusedValue==null)&&(w=0):t.selectedValue===r&&(w=0),p&&(w=void 0);let{name:T,form:E,descriptionId:D,errorMessageId:O,validationBehavior:k}=vd.get(t);fa(n,t.defaultSelectedValue,t.setSelectedValue),pa({validationBehavior:k},t,n);let A=va();return{labelProps:P(y,(0,v.useMemo)(()=>({onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault()}),[])),inputProps:P(C,{...S,type:`radio`,name:T,form:E,tabIndex:w,disabled:p,required:t.isRequired&&k===`native`,checked:m,value:r,onChange:h,"aria-describedby":[e[`aria-describedby`],A.id,t.isInvalid?O:null,D].filter(Boolean).join(` `)||void 0}),descriptionProps:A,isDisabled:p,isSelected:m,isPressed:_||b}}function bd(e,t){let{name:n,form:r,isReadOnly:i,isRequired:a,isDisabled:o,orientation:s=`vertical`,validationBehavior:c=`aria`}=e,{direction:l}=ln(),{isInvalid:u,validationErrors:d,validationDetails:f}=t.displayValidation,{labelProps:p,fieldProps:m,descriptionProps:h,errorMessageProps:g}=da({...e,labelElementType:`span`,isInvalid:t.isInvalid,errorMessage:e.errorMessage||d}),_=Gr(e,{labelable:!0}),{focusWithinProps:v}=hi({onBlurWithin(n){e.onBlur?.(n),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function y(e,n){let r=Qo(n.currentTarget,{from:V(n),accept:e=>e instanceof R(e).HTMLInputElement&&e.type===`radio`}),i;return e===`next`?(i=r.nextNode(),i||=(r.currentNode=n.currentTarget,r.firstChild())):(i=r.previousNode(),i||=(r.currentNode=n.currentTarget,r.lastChild())),i?(i.focus(),t.setSelectedValue(i.value),!0):!1}let{keyboardProps:b}=ar({shortcuts:{ArrowRight:e=>y(l===`rtl`&&s!==`vertical`?`prev`:`next`,e),ArrowLeft:e=>y(l===`rtl`&&s!==`vertical`?`next`:`prev`,e),ArrowDown:e=>y(`next`,e),ArrowUp:e=>y(`prev`,e)},allowRepeats:!0}),x=N(n);return vd.set(t,{name:x,form:r,descriptionId:h.id,errorMessageId:g.id,validationBehavior:c}),{radioGroupProps:P(_,{role:`radiogroup`,...b,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-readonly":i||void 0,"aria-required":a||void 0,"aria-disabled":o||void 0,"aria-orientation":s,...m,...v}),labelProps:p,descriptionProps:h,errorMessageProps:g,isInvalid:u,validationErrors:d,validationDetails:f}}var xd=Math.round(Math.random()*1e10),Sd=0;function Cd(e){let t=(0,v.useMemo)(()=>e.name||`radio-group-${xd}-${++Sd}`,[e.name]),[n,r]=Tn(e.value,e.defaultValue??null,e.onChange),[i]=(0,v.useState)(n),[a,o]=(0,v.useState)(null),s=ra({...e,value:n}),c=t=>{!e.isReadOnly&&!e.isDisabled&&(r(t),s.commitValidation())},l=s.displayValidation.isInvalid;return{...s,name:t,selectedValue:n,defaultSelectedValue:e.value===void 0?e.defaultValue??null:i,setSelectedValue:c,lastFocusedValue:a,setLastFocusedValue:o,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(l?`invalid`:null),isInvalid:l}}var wd=(0,v.createContext)(null),Td=(0,v.createContext)(null),Ed=(0,v.createContext)(null),Dd=(0,v.forwardRef)(function(e,t){[e,t]=he(e,t,wd);let{validationBehavior:n}=me(la)||{},r=e.validationBehavior??n??`native`,i=Cd({...e,validationBehavior:r}),[a,o]=F(!e[`aria-label`]&&!e[`aria-labelledby`]),{radioGroupProps:s,labelProps:c,descriptionProps:l,errorMessageProps:u,...d}=bd({...e,label:o,validationBehavior:r},i),f=pe({...e,values:{orientation:e.orientation||`vertical`,isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:`react-aria-RadioGroup`}),p=Gr(e,{global:!0});return v.createElement(ve.div,{...P(p,f,s),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||`vertical`,"data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},v.createElement(fe,{values:[[Ed,i],[Ci,{...c,ref:a,elementType:`span`}],[zi,{slots:{description:l,errorMessage:u}}],[Qi,d]]},v.createElement(Co,null,f.children)))}),Od=(0,v.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=he(r,t,Td);let i=v.useContext(Ed),a=ue((0,v.useMemo)(()=>oe(n,e.inputRef===void 0?null:e.inputRef),[n,e.inputRef])),o=yd({...I(e),children:typeof e.children==`function`||e.children},i,a);return v.createElement(kd.Provider,{value:{...o,inputRef:a,defaultClassName:`react-aria-Radio`}},v.createElement(Ad,{...e,ref:t}))}),kd=(0,v.createContext)(null),Ad=(0,v.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:i,isDisabled:a,isPressed:o,defaultClassName:s,inputRef:c}=(0,v.useContext)(kd),l=v.useContext(Ed),{isFocused:u,isFocusVisible:d,focusProps:f}=gi(),p=a||l.isReadOnly,{hoverProps:m,isHovered:h}=Si({...e,isDisabled:p}),g=pe({...e,defaultClassName:s,values:{isSelected:i,isPressed:o,isHovered:h,isFocused:u,isFocusVisible:d,isDisabled:a,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isRequired:l.isRequired}}),_=Gr(e,{global:!0});return delete _.id,delete _.onClick,v.createElement(ve.label,{...P(_,n,m,g),ref:t,"data-selected":i||void 0,"data-pressed":o||void 0,"data-hovered":h||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-disabled":a||void 0,"data-readonly":l.isReadOnly||void 0,"data-invalid":l.isInvalid||void 0,"data-required":l.isRequired||void 0},v.createElement(Zi,{elementType:`span`},v.createElement(`input`,{...P(r,f),ref:c})),g.children)}),jd=new WeakMap;function Md(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c=`aria`}=e,l=hs({usage:`search`,sensitivity:`base`}),u=(0,v.useMemo)(()=>r||new ps(t.collection,t.disabledKeys,n,l),[r,t.collection,t.disabledKeys,l,n]),{menuTriggerProps:d,menuProps:f}=Lu({isDisabled:i,type:`listbox`},t,n),{keyboardProps:p}=ar({shortcuts:{ArrowLeft:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyAbove?.(t.selectedKey);e!=null&&t.setSelectedKey(e)},ArrowRight:()=>{if(t.selectionManager.selectionMode===`multiple`)return!1;let e=t.selectedKey==null?u.getFirstKey?.():u.getKeyBelow?.(t.selectedKey);e!=null&&t.setSelectedKey(e)}},allowRepeats:!0,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp}),{typeSelectProps:m}=cs({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:h,validationErrors:g,validationDetails:y}=t.displayValidation,{labelProps:b,fieldProps:x,descriptionProps:S,errorMessageProps:C}=da({...e,labelElementType:`span`,isInvalid:h,errorMessage:e.errorMessage||g});t.selectionManager.selectionMode===`multiple`&&(m={});let w=Gr(e,{labelable:!0}),T=P(m,d,x),E=N();return jd.set(t,{isDisabled:i,isRequired:a,name:o,form:s,validationBehavior:c}),{labelProps:{...b,onClick:()=>{e.isDisabled||(n.current?.focus(),Vt(`keyboard`))}},triggerProps:P(w,{...T,isDisabled:i,onKeyDown:_(T.onKeyDown,p.onKeyDown),onKeyUp:p.onKeyUp,"aria-labelledby":[E,T[`aria-labelledby`],T[`aria-label`]&&!T[`aria-labelledby`]?T.id:null].filter(Boolean).join(` `),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:E},menuProps:{...f,onAction:void 0,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:`selection`,onBlur:n=>{z(n.currentTarget,n.relatedTarget)||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[x[`aria-labelledby`],T[`aria-label`]&&!x[`aria-labelledby`]?T.id:null].filter(Boolean).join(` `)},descriptionProps:S,errorMessageProps:C,isInvalid:h,validationErrors:g,validationDetails:y,hiddenSelectProps:{isDisabled:i,name:o,label:e.label,state:t,triggerRef:n,form:s}}}function Nd(e,t,n){let r=jd.get(t)||{},{autoComplete:i,name:a=r.name,form:o=r.form,isDisabled:s=r.isDisabled}=e,{validationBehavior:c,isRequired:l}=r,{visuallyHiddenProps:u}=Xi({style:{position:`fixed`,top:0,left:0}});fa(e.selectRef,t.defaultValue,t.setValue),pa({validationBehavior:c,focus:()=>n.current?.focus()},t,e.selectRef);let d=t.setValue,f=(0,v.useCallback)(e=>{let t=V(e);t.multiple?d(Array.from(t.selectedOptions,e=>e.value)):d(e.currentTarget.value)},[d]);return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{style:{display:`none`}},selectProps:{tabIndex:-1,autoComplete:i,disabled:s,multiple:t.selectionManager.selectionMode===`multiple`,required:c===`native`&&l,name:a,form:o,value:t.value??``,onChange:f,onInput:f}}}function Pd(e){let{state:t,triggerRef:n,label:r,name:i,form:a,isDisabled:o}=e,s=(0,v.useRef)(null),c=(0,v.useRef)(null),{containerProps:l,selectProps:u}=Nd({...e,selectRef:t.collection.size<=300?s:c},t,n),d=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return v.createElement(`div`,{...l,"data-testid":`hidden-select-container`},v.createElement(`label`,null,r,v.createElement(`select`,{...u,ref:s},v.createElement(`option`,{value:``,label:`\xA0`},`\xA0`),[...t.collection.getKeys()].map(e=>{let n=t.collection.getItem(e);if(n&&n.type===`item`)return v.createElement(`option`,{key:n.key,value:n.key},n.textValue)}),t.collection.size===0&&i&&d.map((e,t)=>v.createElement(`option`,{key:t,value:e??``})))));if(i){let{validationBehavior:e}=jd.get(t)||{};d.length===0&&(d=[null]);let n=d.map((t,n)=>{let r={type:`hidden`,autoComplete:u.autoComplete,name:i,form:a,disabled:o,value:t??``};return e===`native`?v.createElement(`input`,{key:n,...r,ref:n===0?c:null,style:{display:`none`},type:`text`,required:n===0&&u.required,onChange:()=>{}}):v.createElement(`input`,{key:n,...r,ref:n===0?c:null})});return v.createElement(v.Fragment,null,n)}return null}function Fd(e){let{selectionMode:t=`single`,shouldCloseOnSelect:n=t===`single`}=e,r=Wl(e),[i,a]=(0,v.useState)(null),o=(0,v.useMemo)(()=>e.defaultValue===void 0?t===`single`?e.defaultSelectedKey??null:[]:e.defaultValue,[e.defaultValue,e.defaultSelectedKey,t]),[s,c]=Tn((0,v.useMemo)(()=>e.value===void 0?t===`single`?e.selectedKey:void 0:e.value,[e.value,e.selectedKey,t]),o,e.onChange),l=t===`single`&&Array.isArray(s)?s[0]:s,u=n=>{if(t===`single`){let t=Array.isArray(n)?n[0]??null:n;c(t),t!==l&&e.onSelectionChange?.(t)}else{let e=[];Array.isArray(n)?e=n:n!=null&&(e=[n]),c(e)}},d=Ws({...e,selectionMode:t,disallowEmptySelection:t===`single`,allowDuplicateSelectionEvents:!0,selectedKeys:(0,v.useMemo)(()=>Id(l),[l]),onSelectionChange:e=>{if(e!==`all`){if(t===`single`){let t=e.values().next().value??null;u(t)}else u([...e]);n&&r.close(),m.commitValidation()}}}),f=d.selectionManager.firstSelectedKey,p=(0,v.useMemo)(()=>[...d.selectionManager.selectedKeys].map(e=>d.collection.getItem(e)).filter(e=>e!=null),[d.selectionManager.selectedKeys,d.collection]),m=ra({...e,value:Array.isArray(l)&&l.length===0?null:l}),[h,g]=(0,v.useState)(!1),[_]=(0,v.useState)(l);return{...m,...d,...r,value:l,defaultValue:o??_,setValue:u,selectedKey:f,setSelectedKey:u,selectedItem:p[0]??null,selectedItems:p,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode===`single`?_:null),focusStrategy:i,open(t=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.open())},toggle(t=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(a(t),r.toggle())},isFocused:h,setFocused:g}}function Id(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Ld(e){return e&&e.__esModule?e.default:e}var Rd=(0,v.createContext)(null),zd=(0,v.createContext)(null),Bd=fr(function(e,t){[e,t]=he(e,t,Rd);let{children:n,isDisabled:r=!1,isInvalid:i=!1,isRequired:a=!1}=e,o=(0,v.useMemo)(()=>typeof n==`function`?n({isOpen:!1,isDisabled:r,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,r,i,a]);return v.createElement(br,{content:o},n=>v.createElement(Hd,{props:e,collection:n,selectRef:t}))}),Vd=[Ci,Ni,zi];function Hd({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=me(la)||{},i=e.validationBehavior??r??`native`,a=Fd({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:o,focusProps:s}=gi({within:!0}),c=(0,v.useRef)(null),[l,u]=F(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:d,triggerProps:f,valueProps:p,menuProps:m,descriptionProps:h,errorMessageProps:g,hiddenSelectProps:_,...y}=Md({...I(e),label:u,validationBehavior:i},a,c),b=(0,v.useMemo)(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,o,e.isDisabled,y.isInvalid,e.isRequired]),x=pe({...e,values:b,defaultClassName:`react-aria-Select`}),S=Gr(e,{global:!0});delete S.id;let C=(0,v.useRef)(null);return v.createElement(fe,{values:[[Rd,e],[zd,a],[Ud,p],[Ci,{...d,ref:l,elementType:`span`}],[Ni,{...f,ref:c,isPressed:a.isOpen,autoFocus:e.autoFocus}],[id,a],[Jl,{trigger:`Select`,triggerRef:c,scrollRef:C,placement:`bottom start`,"aria-labelledby":m[`aria-labelledby`],clearContexts:Vd}],[Js,{...m,ref:C}],[Ys,a],[zi,{slots:{description:h,errorMessage:g}}],[Qi,y]]},v.createElement(ve.div,{...P(S,x,s),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":o||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0,"data-required":e.isRequired||void 0},x.children,v.createElement(Pd,{..._,autoComplete:e.autoComplete})))}var Ud=(0,v.createContext)(null),Wd=fr(function(e,t){[e,t]=he(e,t,Ud);let n=(0,v.useContext)(zd),{placeholder:r}=me(Rd),i=n.selectedItems.map(e=>{let t=e.props?.children;return typeof t==`function`&&(t=t({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:`single`,selectionBehavior:`toggle`})),t}),a=sd(),o=(0,v.useMemo)(()=>n.selectedItems.map(e=>e?.textValue),[n.selectedItems]),s=n.selectionManager.selectionMode,c=(0,v.useMemo)(()=>s===`single`?o[0]??``:a.format(o),[s,a,o]),l=(0,v.useMemo)(()=>{if(s===`single`)return i[0];let e=a.formatToParts(o);if(e.length===0)return null;let t=0;return e.map(e=>e.type===`element`?v.createElement(v.Fragment,{key:t},i[t++]):e.value)},[s,a,o,i]),u=Cn(Ld(ho),`react-aria-components`),d=pe({...e,defaultChildren:l??r??u.format(`selectPlaceholder`),defaultClassName:`react-aria-SelectValue`,values:{selectedItem:n.selectedItems[0]?.value??null,selectedItems:(0,v.useMemo)(()=>n.selectedItems.map(e=>e.value??null),[n.selectedItems]),selectedText:c,isPlaceholder:n.selectedItems.length===0,state:n}}),f=Gr(e,{global:!0});return v.createElement(ve.span,{ref:t,...f,...d,"data-placeholder":n.selectedItems.length===0||void 0},v.createElement(zi.Provider,{value:void 0},d.children))}),Gd=(0,v.createContext)({}),Kd=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},qd=(0,v.forwardRef)(function(e,t){[e,t]=he(e,t,Gd);let{hoverProps:n,isHovered:r}=Si(e),{isFocused:i,isFocusVisible:a,focusProps:o}=gi({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e[`aria-invalid`]&&e[`aria-invalid`]!==`false`,c=pe({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:`react-aria-TextArea`});return v.createElement(ve.textarea,{...P(Kd(e),o,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}),Jd=(0,v.createContext)(null),Yd=fr(function(e,t){[e,t]=he(e,t,Jd);let{validationBehavior:n}=me(la)||{},r=e.validationBehavior??n??`native`,i=(0,v.useRef)(null);[e,i]=he(e,i,Dn);let[a,o]=F(!e[`aria-label`]&&!e[`aria-labelledby`]),[s,c]=(0,v.useState)(`input`),{labelProps:l,inputProps:u,descriptionProps:d,errorMessageProps:f,...p}=Na({...I(e),inputElementType:s,label:o,validationBehavior:r},i),m=(0,v.useCallback)(e=>{i.current=e,e&&c(e instanceof HTMLTextAreaElement?`textarea`:`input`)},[i]),h=pe({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:`react-aria-TextField`}),g=Gr(e,{global:!0});return delete g.id,v.createElement(ve.div,{...g,...h,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},v.createElement(fe,{values:[[Ci,{...l,ref:a}],[Aa,{...u,ref:m}],[Gd,{...u,ref:m}],[ka,{role:`presentation`,isInvalid:p.isInvalid,isDisabled:e.isDisabled||!1}],[zi,{slots:{description:d,errorMessage:f}}],[Qi,p]]},h.children))}),Xd=g(),Zd=`toil-ui.motion`,Qd=`(prefers-reduced-motion: reduce)`;function $d(){try{return localStorage.getItem(Zd)===`reduced`?`reduced`:`full`}catch{return`full`}}var ef=null,tf=new Set;function nf(){return ef??=$d(),ef}function rf(){typeof document<`u`&&(document.documentElement.dataset.motion=nf())}function af(e){ef=e;try{localStorage.setItem(Zd,e)}catch{}rf();for(let e of tf)e()}function of(e){return tf.add(e),()=>tf.delete(e)}function sf(){return[(0,v.useSyncExternalStore)(of,nf,()=>`full`),af]}function cf(){return typeof window>`u`||typeof window.matchMedia!=`function`||window.matchMedia(Qd).matches}function lf(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>void 0;let t=window.matchMedia(Qd);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function uf(){let[e]=sf(),t=(0,v.useSyncExternalStore)(lf,cf,()=>!0);return(0,v.useEffect)(rf,[e]),e===`full`&&!t}var df=.1,ff=1.5;function pf(e,t,n){return Math.max(0,Math.min(e.max,Math.round(e.density*t*n/1e5)))}function mf(){return{x:0,y:0,vx:0,vy:0,age:0,life:1,kind:0,seed:0,size:1}}function hf(e,t,n,r,i){for(let a of t)a.age+=n,e.step(a,n,r)||(Object.assign(a,mf()),e.spawn(a,r,i,!1))}function gf(e,t,n,r){let i=pf(e,n.w,n.h);for(;t.length<i;){let i=mf();e.spawn(i,n,r,!0),t.push(i)}t.length=i}function _f(e,t){let n=e.getContext(`2d`);if(!n)return()=>void 0;let r=Math.min(window.devicePixelRatio||1,ff),i=t.sprites((e,t)=>{let n=document.createElement(`canvas`);n.width=n.height=Math.ceil(e*r);let i=n.getContext(`2d`);return i&&(i.scale(r,r),t(i,e)),n}),a=[],o={w:0,h:0,t:0},s=Math.random,c=()=>{o.w=e.clientWidth,o.h=e.clientHeight,e.width=Math.round(o.w*r),e.height=Math.round(o.h*r),gf(t,a,o,s)},l=0,u,d=0,f=!1,p=e=>{l=0;let c=d?Math.min((e-d)/1e3,df):0;d=e,o.t+=c,hf(t,a,c,o,s),n.setTransform(r,0,0,r,0,0),n.clearRect(0,0,o.w,o.h);for(let e of a){let r=t.alpha(e,o);r<=.004||(n.globalAlpha=Math.min(1,r),t.draw(n,e,i,o))}n.globalAlpha=1,f&&(u=setTimeout(m,Math.max(0,29.333333333333336-(performance.now()-e))))},m=()=>{u=void 0,l=requestAnimationFrame(p)},h=()=>{f||document.hidden||(f=!0,d=0,m())},g=()=>{f=!1,cancelAnimationFrame(l),clearTimeout(u),l=0,u=void 0},_=()=>document.hidden?g():h();return c(),window.addEventListener(`resize`,c),document.addEventListener(`visibilitychange`,_),h(),()=>{g(),window.removeEventListener(`resize`,c),document.removeEventListener(`visibilitychange`,_),n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,e.width,e.height)}}function vf(e,t=.2){let n=e.age/e.life;return n<=0||n>=1?0:Math.min(1,n/t,(1-n)/t)}function yf(e,t=.25){return(n,r)=>{let i=r/2,a=n.createRadialGradient(i,i,0,i,i,i);a.addColorStop(0,`rgba(${e}, 1)`),a.addColorStop(t,`rgba(${e}, 0.9)`),a.addColorStop(1,`rgba(${e}, 0)`),n.fillStyle=a,n.fillRect(0,0,r,r)}}function bf(e,t,n){t&&e.drawImage(t,n.x-n.size/2,n.y-n.size/2,n.size,n.size)}var xf=Math.PI*2,Sf=(e,t,n)=>t+e()*(n-t);function Cf(e,t,n,r){let i=115*Math.PI/180,a=Math.sin(i),o=-Math.cos(i),s=Math.abs(n*a)+Math.abs(r*o),c=((e-n/2)*a+(t-r/2)*o)/s+.5;return Math.exp(-(((c-.64)/.07)**2))}var wf={density:2.2,max:34,spawn(e,{w:t,h:n},r){for(let i=0;i<6&&(e.x=r()*t,e.y=r()*n,!(r()<.25||Cf(e.x,e.y,t,n)>.35));i++);e.vx=Sf(r,-5,5),e.vy=Sf(r,-4,2),e.life=Sf(r,9,18),e.age=r()*e.life*.5,e.kind=r()<.7?0:1,e.seed=r(),e.size=Sf(r,3,6)},step(e,t,{w:n,h:r,t:i}){return e.x+=(e.vx+Math.sin(i*.5+e.seed*xf)*3)*t,e.y+=(e.vy+Math.cos(i*.4+e.seed*xf)*2)*t,e.age<e.life&&e.x>-10&&e.x<n+10&&e.y>-10&&e.y<r+10},alpha(e,{w:t,h:n}){return vf(e)*(.12+.43*Cf(e.x,e.y,t,n))},sprites:e=>[e(8,yf(`246, 241, 233`,.18)),e(8,yf(`255, 184, 77`,.18))],draw:(e,t,n)=>bf(e,n[t.kind],t)};function Tf(e,t){return(n,r)=>{let i=r/5;[`..XX.`,`.XXXX`,`XVVX.`,`.X...`].forEach((r,a)=>[...r].forEach((r,o)=>{r!==`.`&&(n.fillStyle=r===`V`?t:e,n.fillRect(o*i,a*i,i,i))}))}}var Ef={density:1.3,max:20,spawn(e,{w:t,h:n},r,i){e.kind=r()<.45?3:Math.floor(r()*3),e.seed=r(),e.x=r()*t,e.kind===3?(e.y=i?r()*n:n+6,e.vx=Sf(r,4,10),e.vy=Sf(r,-14,-7),e.size=4):(e.y=i?r()*n:-12,e.vx=Sf(r,-6,6),e.vy=Sf(r,16,26),e.size=10),e.life=60},step(e,t,{w:n,h:r,t:i}){let a=e.kind===3?6:22;return e.x+=(e.vx+Math.sin(i*.9+e.seed*xf)*a)*t,e.y+=e.vy*t,e.y>-16&&e.y<r+16&&e.x>-16&&e.x<n+16},alpha:e=>e.kind===3?.55:.5,sprites:e=>[e(10,Tf(`#4f9a2a`,`#2f6b1f`)),e(10,Tf(`#c9932a`,`#8a5226`)),e(10,Tf(`#b8541c`,`#7a2e0e`)),e(4,(e,t)=>{e.fillStyle=`#e0b52c`,e.fillRect(0,0,t,t)})],draw(e,t,n,{t:r}){if(t.kind===3)return bf(e,n[3],t);let i=Math.floor((r*1.2+t.seed*4)%4);e.save(),e.translate(Math.round(t.x),Math.round(t.y)),e.rotate(i*Math.PI/2),e.drawImage(n[t.kind],-t.size/2,-t.size/2,t.size,t.size),e.restore()}},Df=28*Math.PI/180,Of={density:1.2,max:18,spawn(e,{w:t,h:n},r){e.seed=r(),r()<.2?(e.kind=1,e.x=Sf(r,-.3,.7)*t,e.y=Sf(r,-.2,.6)*n,e.vx=Math.cos(Df)*Sf(r,700,1e3),e.vy=Math.sin(Df)*Sf(r,700,1e3),e.size=Sf(r,90,170),e.life=Sf(r,3,8)):(e.kind=0,e.x=r()*t,e.y=r()*n,e.life=Sf(r,6,14),e.age=r()*e.life,e.size=Sf(r,7,11))},step(e,t,{w:n,h:r}){return e.kind===1?(e.age-(e.life-.6)>0&&(e.x+=e.vx*t,e.y+=e.vy*t),e.age<e.life&&e.x<n+200&&e.y<r+200):e.age<e.life},alpha(e){if(e.kind===1)return e.age>e.life-.6?.45:0;let t=Math.max(0,Math.sin(e.age/e.life*xf*2+e.seed*xf));return vf(e,.15)*(.15+.6*t**3)},sprites:e=>[e(12,(e,t)=>{yf(`127, 227, 255`,.12)(e,t),e.fillStyle=`rgba(230, 241, 255, 0.85)`,e.fillRect(t/2-.5,1,1,t-2),e.fillRect(1,t/2-.5,t-2,1)}),e(160,(e,t)=>{let n=e.createLinearGradient(0,0,t,0);n.addColorStop(0,`rgba(54, 214, 255, 0)`),n.addColorStop(.85,`rgba(127, 227, 255, 0.8)`),n.addColorStop(1,`rgba(230, 241, 255, 1)`),e.fillStyle=n,e.fillRect(0,t/2-1,t,2)})],draw(e,t,n){if(t.kind===0)return bf(e,n[0],t);e.save(),e.translate(t.x,t.y),e.rotate(Df),e.drawImage(n[1],-t.size,-t.size/2,t.size,t.size),e.restore()}},kf=[[[3,1,3,13],[3,4,8,1],[3,7,8,4]],[[3,1,3,13],[3,1,8,4],[8,4,3,7],[3,7,8,13]],[[5,1,5,13],[1,5,5,9],[9,5,5,9]],[[5,1,5,13],[5,6,1,1],[5,6,9,1]],[[5,1,9,5],[9,5,5,9],[5,9,1,5],[1,5,5,1],[1,13,5,9],[5,9,9,13]]],Af=e=>(e-Math.min(e,1280))/2,jf={crate:wf,harvest:Ef,starship:Of,realm:{density:1.4,max:20,spawn(e,t,n,r){let{w:i,h:a}=t;e.seed=n();let o=Af(i);n()<.12&&o>=64?(e.kind=1+Math.floor(n()*kf.length),e.x=n()<.5?Sf(n,20,o-20):i-Sf(n,20,o-20),e.y=Sf(n,.2,.9)*a,e.size=28,e.life=Sf(n,6,9)):(e.kind=0,e.x=n()*i,e.y=r?Sf(n,.4,1)*a:a+8,e.vx=Sf(n,-6,6),e.vy=Sf(n,-34,-18),e.size=Sf(n,5,9),e.life=Sf(n,8,16))},step(e,t,{w:n,t:r}){return e.kind>0?e.age<e.life:(e.x+=(e.vx+Math.sin(r*1.3+e.seed*xf)*8)*t,e.y+=e.vy*t,e.age<e.life&&e.y>-10&&e.x>-10&&e.x<n+10)},alpha(e,t){if(e.kind>0)return .24*Math.sin(Math.PI*Math.min(1,e.age/e.life));let n=.75+.25*Math.sin(t.t*9+e.seed*40);return vf(e,.25)*.7*n},sprites:e=>[e(10,yf(`214, 98, 24`,.22)),...kf.map(t=>e(28,e=>{e.strokeStyle=`#7a1f1f`,e.lineWidth=1.6,e.lineCap=`round`,e.shadowColor=`rgba(214, 98, 24, 0.9)`,e.shadowBlur=6,e.translate(4,0),e.scale(2,2),e.lineWidth=.8,e.beginPath();for(let[n,r,i,a]of t)e.moveTo(n,r),e.lineTo(i,a);e.stroke()}))],draw:(e,t,n)=>bf(e,n[t.kind],t)}},Mf=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Nf=o(((e,t)=>{t.exports=Mf()})),J=Nf(),Pf=new Set([`crate`]),Ff=[`far`,`mid`,`near`],If=()=>typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`animation-timeline: scroll()`);function Lf(e,t){(0,v.useEffect)(()=>{let n=e.current;if(!t||!n||If())return;let r=[...n.querySelectorAll(`.ambient-layer`)],i=[],a=()=>r.map(e=>{let t=getComputedStyle(e);return{el:e,depth:parseFloat(t.getPropertyValue(`--depth`))||0,tile:parseFloat(t.getPropertyValue(`--tile`))||0}}),o=0,s=()=>{o=0,(!i.length||i.some(e=>!e.tile))&&(i=a());for(let{el:e,depth:t,tile:n}of i){let r=n>0?window.scrollY*t%n:0;e.style.transform=`translate3d(0, ${(-r).toFixed(1)}px, 0)`}},c=()=>{o||=requestAnimationFrame(s)};return s(),window.addEventListener(`scroll`,c,{passive:!0}),()=>{cancelAnimationFrame(o),window.removeEventListener(`scroll`,c);for(let e of r)e.style.removeProperty(`transform`)}},[e,t])}function Rf({theme:e}){let t=uf(),n=(0,v.useRef)(null),r=(0,v.useRef)(null),i=jf[e],a=Pf.has(e);return(0,v.useEffect)(()=>{if(t&&i&&r.current)return _f(r.current,i)},[t,i]),Lf(n,t&&a),!i&&!a?null:(0,J.jsxs)(`div`,{className:`ambient`,"aria-hidden":`true`,ref:n,children:[a&&Ff.map(e=>(0,J.jsx)(`div`,{className:`ambient-layer ambient-layer--${e}`},e)),t&&i&&(0,J.jsx)(`canvas`,{className:`ambient-particles`,ref:r})]})}var zf=864e5,Bf=7*zf,Vf=e=>e.type!==`EPIC`&&e.type!==`OTHER`,Hf=e=>[...e.history?.transitions??[]].sort((e,t)=>e.at<t.at?-1:+(e.at>t.at));function Uf(e){return Hf(e).filter(e=>e.toCategory===`DONE`&&e.fromCategory!==`DONE`).at(-1)?.at??null}function Wf(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=Hf(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))/zf}:{id:e.id,days:null,reason:`Never recorded as In progress before Done`}}function Y(e){let t=e.filter(Vf).map(Wf).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 Gf(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 Kf(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 Hf(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))/zf}:{id:e.id,days:null,reason:`No move into In progress recorded`}}function qf(e,t){let n=e.filter(Vf).map(e=>Kf(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 Jf(e){let t=Date.parse(e),n=new Date(t).getUTCDay(),r=Math.floor(t/zf)*zf-(n+6)%7*zf;return new Date(r).toISOString()}function Yf(e,t,n=6){let r=Date.parse(Jf(t)),i=Array.from({length:n},(e,t)=>({start:new Date(r-(n-1-t)*Bf).toISOString(),items:[],partial:t===n-1})),a=[],o=0;for(let t of e.filter(Vf)){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===Jf(e));n?n.items.push(t.id):e<i[0].start&&o++}return{weeks:i,unknown:a,earlier:o}}var Xf=864e5,Zf=e=>e.slice(0,e.indexOf(`:`));function Qf(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=Zf(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 $f(e,t){let n=Qf(e);return n.find(e=>e.start<=t&&t<e.end)??n.filter(e=>e.start<=t).at(-1)??null}var ep=(e,t)=>e.iteration?.name===t.name,tp=`github projects list-items`;function np(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[tp];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:`${tp}: createdAt`}}return{kind:`planned`,at:null,from:null,evidence:e.history?`history.iterations`:`no history synced`}}var rp=e=>e.statusCategory===`DONE`,ip=e=>e.estimate?.unit===`points`?e.estimate.value:0,ap=e=>({count:e.length,points:e.reduce((e,t)=>e+ip(t),0)});function op(e,t){let n=0;for(let r=Math.floor(e/Xf)*Xf;r<t;r+=Xf){let e=new Date(r).getUTCDay();e!==0&&e!==6&&n++}return n}function sp(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 cp(e,t){return e.estimate||rp(e)||e.type===`EPIC`||e.type===`OTHER`?!1:!(e.parent?t.get(e.parent):void 0)?.estimate}function lp(e,t,n){let r=$f(e,n);if(!r)return null;let i=new Map(e.map(e=>[e.id,e])),a=e.filter(e=>ep(e,r)),o=new Map(a.map(e=>[e.id,np(e)])),s=e=>a.filter(t=>o.get(t.id).kind===e),c=[];for(let e of a){if(rp(e))continue;let n=[];for(let t of e.links){let e=i.get(t.target);t.type===`blocks`&&t.direction===`inward`&&e&&!rp(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=sp(e.id,t);a?.outcome===`failed`&&n.push({code:`failing-build`,change:a.id}),cp(e,i)&&n.push({code:`unestimated`}),n.length&&c.push({id:e.id,reasons:n})}let l=Date.parse(r.start),u=Date.parse(r.end);return{sprint:r,items:a,entries:o,days:{gone:op(l,Math.min(Date.parse(n),u)),total:op(l,u)},planned:ap(s(`planned`)),added:ap(s(`added`)),carried:ap(s(`carried`)),done:ap(a.filter(rp)),remaining:ap(a.filter(e=>!rp(e))),otherUnits:a.filter(e=>e.estimate&&e.estimate.unit!==`points`).map(e=>e.id),unestimated:a.filter(e=>cp(e,i)).map(e=>e.id),risks:c}}function up(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 dp={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`},fp=864e5,pp=e=>`${Math.round(e*10)/10} ${Math.round(e*10)/10==1?`day`:`days`}`;function mp(e){let t=Y(e.items).known.map(e=>e.days),n=t.length>=3?Gf(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(qf(e.items,e.now).known.map(e=>[e.id,e.days]))}}function hp(e,t){if(e.statusCategory===`DONE`||!Vf(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=sp(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 ${pp(a)}, longer than 85% of this dossier's finished items took (${pp(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))/fp;r>5&&n.push({code:`stale`,weight:2,text:`No update for ${pp(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}`}),cp(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 gp(e){return e.items.map(t=>({id:t.id,insights:hp(t,e)})).filter(e=>e.insights.length).map(e=>({...e,score:e.insights.reduce((e,t)=>e+t.weight,0)})).sort((e,t)=>t.score-e.score)}var _p=(0,v.createContext)(null);function vp(){let e=(0,v.useContext)(_p);if(!e)throw Error(`useData() needs the shell to have loaded the dossier first.`);return e}var yp=new WeakMap;function bp(){let{dossier:e,now:t}=vp(),n=yp.get(e);n||yp.set(e,n=new Map);let r=n.get(t);if(!r){let i=lp(e.items,e.changes,t);r={health:i,insights:mp({items:e.items,changes:e.changes,deployments:e.deployments,health:i,now:t})},n.set(t,r)}return r}var xp={jira:`Jira`,ado:`Azure DevOps`,github:`GitHub`,bitbucket:`Bitbucket`,jenkins:`Jenkins`,openshift:`OpenShift`};function Sp(e){return xp[e.split(`-`)[0]]??e}function Cp(e){return e.source.key.replace(/^[^/]+\//,``)}var wp=new Intl.DateTimeFormat(`en-GB`,{day:`numeric`,month:`short`,year:`numeric`,timeZone:`UTC`}),Tp=new Intl.DateTimeFormat(`en-GB`,{day:`numeric`,month:`short`,year:`numeric`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`,timeZone:`UTC`}),Ep=e=>wp.format(new Date(e)),Dp=e=>Number.isNaN(Date.parse(e))?`at an unknown time`:`${Tp.format(new Date(e))} UTC`,Op=e=>e?e.name??e.id:`Unassigned`,kp=e=>`#/dossier/${encodeURIComponent(e)}`,Ap=(e,t)=>`${kp(e)}/item/${encodeURIComponent(t)}`,jp={TODO:`To do`,IN_PROGRESS:`In progress`,DONE:`Done`,UNKNOWN:`Unknown`};function Mp(e){let t=e.estimate;if(!t)return`No estimate`;let n=t.unit===`points`?t.value===1?`point`:`points`:t.unit===`hours`?t.value===1?`hour`:`hours`:t.value===1?`day`:`days`;return`${t.value} ${n}`}var Np=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Pp=e=>Array.isArray(e)?e.filter(Np):[],X=e=>typeof e==`string`&&e!==``?e:null,Fp=e=>{if(typeof e!=`number`&&typeof e!=`string`)return``;let t=new Date(e).getTime();return Number.isNaN(t)?``:new Date(t).toISOString()};function Ip(e,t,n){let r=new Set;for(let[n]of e.matchAll(/\b[A-Z][A-Z0-9]+-\d+\b/g))for(let e of t)e.source.area.startsWith(`jira`)&&e.source.key===n&&r.add(e.id);for(let[,i]of e.matchAll(/#(\d+)\b/g))for(let e of t)e.source.area.startsWith(`ado`)&&e.source.key===i&&r.add(e.id),e.source.area===`github`&&n&&e.source.key===`${n}#${i}`&&r.add(e.id);return[...r]}function Lp(e,t,n){return Pp(e).map(e=>{let r=Np(e.toRef)&&Np(e.toRef.repository)?e.toRef.repository:{},i=Np(r.project)?X(r.project.key):null,a=X(e.state)??`UNKNOWN`,o=Np(e.properties)&&Np(e.properties.mergeCommit)?X(e.properties.mergeCommit.id):null,s=Np(e.links)?Pp(e.links.self)[0]:void 0;return{id:`${t}:${i}/${X(r.slug)}#${e.id}`,kind:`pull-request`,source:`bitbucket`,command:`bitbucket list-prs`,items:Ip(`${e.title??``}\n${e.description??``}`,n),title:X(e.title)??`Pull request ${e.id}`,url:X(s?.href),state:a,outcome:a===`MERGED`?`merged`:a===`DECLINED`?`declined`:`open`,builds:null,mergeCommit:a===`MERGED`?o:null,at:Fp(e.closedDate??e.createdDate)}})}function Rp(e,t,n){return Pp(e).map(e=>{let r=Np(e.repository)?e.repository:{},i=Np(r.project)?X(r.project.name):null,a=X(e.status)??`unknown`,o=Np(e.lastMergeCommit)?X(e.lastMergeCommit.commitId):null,s=X(r.webUrl);return{id:`${t}:${i}/${X(r.name)}#${e.pullRequestId}`,kind:`pull-request`,source:`ado`,command:`ado repo list-prs`,items:Ip(`${e.title??``}\n${e.description??``}`,n),title:X(e.title)??`Pull request ${e.pullRequestId}`,url:s?`${s}/pullrequest/${e.pullRequestId}`:null,state:a,outcome:a===`completed`?`merged`:a===`abandoned`?`declined`:`open`,builds:null,mergeCommit:a===`completed`?o:null,at:Fp(e.closedDate??e.creationDate)}})}function zp(e,t,n,r){return Pp(e).map(e=>{let i=X(e.merged_at),a=i?`merged`:e.draft===!0?`open (draft)`:X(e.state)??`unknown`;return{id:`${t}:${n}#${e.number}`,kind:`pull-request`,source:`github`,command:`github list-prs`,items:Ip(`${e.title??``}\n${e.body??``}`,r,n),title:X(e.title)??`Pull request ${e.number}`,url:X(e.html_url),state:a,outcome:i?`merged`:e.state===`closed`?`declined`:`open`,builds:null,mergeCommit:i?X(e.merge_commit_sha):null,at:Fp(i??e.created_at)}})}var Bp=e=>Np(e.head)?X(e.head.sha):null,Vp={SUCCESS:`passed`,FAILURE:`failed`,UNSTABLE:`failed`,ABORTED:`failed`};function Hp(e,t,n,r){return Pp(e).map(e=>{let i=X(e.result);return{id:`${t}:${n}#${e.number}`,kind:`build`,source:`jenkins`,command:`jenkins pipeline list-runs`,items:r.items,title:X(e.fullDisplayName)??`${n} #${e.number}`,url:X(e.url),state:e.building===!0?`BUILDING`:i??`UNKNOWN`,outcome:e.building===!0||i===null?`running`:Vp[i]??`failed`,builds:r.id,mergeCommit:null,at:Fp(e.timestamp)}})}function Up(e,t,n){return Pp(e).flatMap(e=>{let r=(Np(e.triggerInfo)?X(e.triggerInfo[`pr.number`]):null)??/^refs\/pull\/(\d+)\/merge$/.exec(X(e.sourceBranch)??``)?.[1],i=r?n.find(e=>e.id.endsWith(`#${r}`)):void 0;if(!i)return[];let a=X(e.status),o=X(e.result),s=Np(e.definition)?X(e.definition.name):null;return[{id:`${t}:build#${e.id}`,kind:`build`,source:`ado`,command:`ado pipeline list-runs`,items:i.items,title:`${s??`build`} ${e.buildNumber}`,url:Np(e._links)&&Np(e._links.web)?X(e._links.web.href):null,state:a===`completed`?o??`completed`:a??`unknown`,outcome:a===`completed`?o===`succeeded`?`passed`:`failed`:`running`,builds:i.id,mergeCommit:null,at:Fp(e.finishTime??e.startTime??e.queueTime)}]})}function Wp(e,t,n){let r=Pp(e);if(!r.length)return null;let i=r.filter(e=>e.conclusion!==null&&e.conclusion!==`success`&&e.conclusion!==`skipped`&&e.conclusion!==`neutral`),a=r.filter(e=>e.status!==`completed`),o=i[0]??a[0]??r[0],s=r.map(e=>Fp(e.completed_at??e.started_at)).sort().at(-1);return{id:`${n.id}/checks`,kind:`build`,source:`github`,command:`github list-checks`,items:n.items,title:r.map(e=>X(e.name)).join(`, `),url:X(o.html_url),state:i.length?`failure (${i.map(e=>e.name).join(`, `)})`:a.length?`in_progress`:`success`,outcome:i.length?`failed`:a.length?`running`:`passed`,builds:n.id,mergeCommit:null,at:s}}function Gp(e,t){if(!e)return{includes:[],items:[],unknownCommit:!0};let n=t.filter(e=>e.outcome===`merged`&&e.mergeCommit).sort((e,t)=>e.at<t.at?-1:1),r=n.findIndex(t=>t.mergeCommit.startsWith(e)||e.startsWith(t.mergeCommit));if(r<0)return{includes:[],items:[],unknownCommit:!0};let i=n.slice(0,r+1);return{includes:i.map(e=>e.id),items:[...new Set(i.flatMap(e=>e.items))],unknownCommit:!1}}var Kp=/:(?:(.+)-)?([0-9a-f]{7,40})$/;function qp(e,t,n,r){let i=Np(e)?e:{};return Pp(i.deployments).filter(e=>n.includes(String(e.name))).map(e=>{let n=X(Pp(e.images)[0]?.image)??``,[,a,o]=Kp.exec(n)??[],s=X(e.ready)??`?`,c=typeof e.unavailableReplicas==`number`?e.unavailableReplicas:0;return{id:`openshift:${i.namespace}/${e.name}`,environment:t,source:`openshift`,command:`openshift deployments`,name:`${e.name} in ${i.namespace}`,commit:o??``,version:a??null,state:`${s} ready`,outcome:c>0?`failed`:`passed`,url:null,...Gp(o,r.filter(t=>t.id.includes(`/${e.name}#`)))}})}function Jp(e,t,n){let r=Pp(e).filter(e=>e.status===`completed`&&e.result===`succeeded`&&Np(e.templateParameters)&&X(e.templateParameters.environment)).sort((e,t)=>Fp(e.finishTime)<Fp(t.finishTime)?1:-1),i=new Set,a=[];for(let e of r){let r=X(e.templateParameters.environment);if(i.has(r))continue;i.add(r);let o=X(e.sourceVersion)??``;a.push({id:`${t}:build#${e.id}`,environment:r,source:`ado`,command:`ado pipeline list-runs`,name:`${Np(e.definition)?X(e.definition.name):`deploy`} ${e.buildNumber}`,commit:o.slice(0,7),version:null,state:String(e.result),outcome:`passed`,url:Np(e._links)&&Np(e._links.web)?X(e._links.web.href):null,...Gp(o,n)})}return a}var Yp=[`dev`,`test`,`staging`,`prod`],Xp=(e,t)=>{let n=e=>Yp.includes(e)?Yp.indexOf(e):Yp.length;return n(e.environment)-n(t.environment)||e.environment.localeCompare(t.environment)},Zp={family:`jira`,items:[`search`,`get-issue`],history:[`get-changelog`],context:[]},Qp={family:`ado`,items:[`work get`,`work get-batch`],history:[`work revisions`],context:[`work list-iterations`]},$p={jira:Zp,"jira-cloud":Zp,ado:Qp,"ado-cloud":Qp,github:{family:`github`,items:[`list-issues`,`search-issues`,`get-issue`,`projects list-items`],history:[`issue-events`],context:[]}},em=Object.keys($p),tm=[`estimate`,`estimateUnit`,`priority`,`type`,`team`,`dueDate`,`iteration`],nm=class extends Error{code;fix;details;constructor(e,t,n={}){super(t),this.name=`ToilError`,this.code=e,this.fix=n.fix,this.details=n.details}};function rm(){let e=new Set,t=[];return{list:t,warn:(n,r)=>{let i=`${n}\u0000${r}`;e.has(i)||(e.add(i),t.push({code:n,message:r}))}}}var Z=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Q=e=>typeof e==`string`&&e!==``?e:null,im=e=>typeof e==`number`&&Number.isFinite(e)?e:null;function am(e){if(typeof e==`string`)return e===``?null:e;if(typeof e==`number`&&Number.isFinite(e))return String(e);if(Array.isArray(e)){for(let t of e){let e=am(t);if(e!==null)return e}return null}return Z(e)?Q(e.value)??Q(e.name)??Q(e.displayName)??Q(e.title):null}function om(e){if(e==null||e===``)return null;if(typeof e!=`string`)return;let t=e.replace(/([+-]\d{2})(\d{2})$/,`$1:$2`);if(!/^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?)?$/.test(t))return;let n=/T|\s/.test(t)?/(Z|[+-]\d{2}:\d{2})$/.test(t)?t:`${t}Z`:`${t}T00:00:00Z`,r=Date.parse(n.replace(` `,`T`));return Number.isNaN(r)?void 0:new Date(r).toISOString()}function sm(e){if(e==null||e===``)return null;if(typeof e!=`string`)return;let t=/^(\d{4}-\d{2}-\d{2})/.exec(e);return t?t[1]:void 0}var cm={epic:`EPIC`,story:`STORY`,"user story":`STORY`,"product backlog item":`STORY`,requirement:`STORY`,task:`TASK`,"sub-task":`TASK`,subtask:`TASK`,bug:`BUG`,defect:`BUG`,incident:`INCIDENT`};function lm(e,t={}){if(e===null)return`OTHER`;let n=e.toLowerCase();return t[n]??cm[n]??`OTHER`}function um(e,t,n,r){return{owi:`0.1`,id:dm(e.connection,t),source:{area:e.area,connection:e.connection,key:t,command:e.command},url:null,type:`OTHER`,typeName:null,title:n,body:null,status:null,statusCategory:`UNKNOWN`,resolution:null,assignee:null,reporter:null,priority:null,estimate:null,labels:[],team:null,iteration:null,parent:null,children:[],links:[],created:null,updated:null,resolved:null,dueDate:null,history:null,unmapped:[],native:r}}var dm=(e,t)=>`${e}:${t}`;function $(e,t,n){e.unmapped.some(e=>e.field===t)||e.unmapped.push({field:t,reason:n})}function fm(e,t,n,r){let i=om(n);i===void 0?$(e,t,`${r} holds ${JSON.stringify(n)}, which isn't a date-time`):e[t]=i}function pm(e,t,n){let r=sm(t);r===void 0?$(e,`dueDate`,`${n} holds ${JSON.stringify(t)}, which isn't a date`):e.dueDate=r}function mm(e,t,n,r){return t.warn(`OWI_UNKNOWN_STATE`,`"${n}" (${e.source.area}) is a status OWI has no category for, so its items are UNKNOWN: ${r}`),$(e,`statusCategory`,`"${n}" has no category: ${r}`),`UNKNOWN`}var hm=e=>e.fields.estimateUnit??`points`;function gm(e,t,n){let r=Q(e)??(typeof e==`number`?String(e):null);return r===null?null:{id:r,name:Q(t),email:Q(n)}}function _m(e){return e.find(e=>e.state===`current`)??[...e].reverse().find(e=>e.state===`future`)??e[e.length-1]??null}var vm=[`Microsoft.VSTS.Scheduling.StoryPoints`,`Microsoft.VSTS.Scheduling.Effort`,`Microsoft.VSTS.Scheduling.Size`],ym=`Microsoft.VSTS.Scheduling.OriginalEstimate`,bm={New:`TODO`,"To Do":`TODO`,Approved:`TODO`,Proposed:`TODO`,Active:`IN_PROGRESS`,Doing:`IN_PROGRESS`,Committed:`IN_PROGRESS`,Open:`IN_PROGRESS`,Resolved:`IN_PROGRESS`,Closed:`DONE`,Done:`DONE`,Removed:`DONE`},xm={"System.LinkTypes.Dependency-Forward":{type:`blocks`,direction:`outward`,name:`Successor`},"System.LinkTypes.Dependency-Reverse":{type:`blocks`,direction:`inward`,name:`Predecessor`},"System.LinkTypes.Related":{type:`relates`,direction:`outward`,name:`Related`},"System.LinkTypes.Duplicate-Forward":{type:`duplicates`,direction:`inward`,name:`Duplicate`},"System.LinkTypes.Duplicate-Reverse":{type:`duplicates`,direction:`outward`,name:`Duplicate Of`}},Sm=`System.LinkTypes.Hierarchy-Reverse`,Cm=`System.LinkTypes.Hierarchy-Forward`;function wm(e){if(Z(e)&&Array.isArray(e.value))return e.value.filter(Z);if(Z(e)&&typeof e.id==`number`&&Z(e.fields))return[e]}function Tm(e){if(Z(e))return gm(e.uniqueName??e.id,e.displayName,typeof e.uniqueName==`string`&&e.uniqueName.includes(`@`)?e.uniqueName:null);if(typeof e==`string`){let t=/^(.*?)\s*<([^>]+)>$/.exec(e);return t?gm(t[2],t[1],t[2].includes(`@`)?t[2]:null):gm(e,e,null)}return null}var Em=e=>typeof e==`string`?/\/workItems\/(\d+)$/i.exec(e)?.[1]:void 0,Dm=(e,t)=>{let n=e.replace(/^\\+/,``).split(`\\`);return t&&n[1]?.toLowerCase()===`iteration`&&n.splice(1,1),n.join(`\\`).toLowerCase()};function Om(e,t){if(!Z(e)||e.structureType!==`iteration`)return!1;let n=e=>{if(Z(e)){if(typeof e.path==`string`){let n=Z(e.attributes)?e.attributes:{};t.set(Dm(e.path,!0),{id:Q(e.identifier),start:om(n.startDate)??null,end:om(n.finishDate)??null})}for(let t of Array.isArray(e.children)?e.children:[])n(t)}};return n(e),!0}function km(e,t,n,r){if(typeof t.id!=`number`)return;let i=String(t.id),a=t.fields??{},o=um(e,i,Q(a[`System.Title`])??``,{[e.command]:t});Q(a[`System.Title`])===null&&$(o,`title`,`the record has no System.Title`);let s=Z(t._links)?t._links:{},c=Z(s.html)?Q(s.html.href):null,l=Q(t.url),u=Q(a[`System.TeamProject`]);c?o.url=c:l?.includes(`/_apis/`)&&u?o.url=`${l.slice(0,l.indexOf(`/_apis/`))}/${encodeURIComponent(u)}/_workitems/edit/${i}`:$(o,`url`,`the record has no html link and no System.TeamProject to build one from`);let d=n.fields.type??`System.WorkItemType`;o.typeName=am(a[d]),o.type=lm(o.typeName,{issue:`STORY`}),d in a||$(o,`type`,Am(d,n.fields.type!==void 0&&`type`)),typeof a[`System.Description`]==`string`&&(o.body={format:`html`,content:a[`System.Description`]}),o.status=Q(a[`System.State`]),o.status===null?$(o,`status`,`the record has no System.State`):o.statusCategory=bm[o.status]??mm(o,n,o.status,`a custom state; ado work list-states shows its category`),o.statusCategory===`DONE`&&(o.resolution=Q(a[`System.Reason`])??(o.status===`Removed`?`Removed`:null)),o.assignee=Tm(a[`System.AssignedTo`]),o.reporter=Tm(a[`System.CreatedBy`]);let f=n.fields.priority??`Microsoft.VSTS.Common.Priority`;o.priority=am(a[f]),n.fields.priority!==void 0&&a[f]===void 0&&$(o,`priority`,Am(f,`priority`)),o.labels=typeof a[`System.Tags`]==`string`?a[`System.Tags`].split(`;`).map(e=>e.trim()).filter(Boolean):[],n.fields.team!==void 0&&(o.team=am(a[n.fields.team]),a[n.fields.team]===void 0&&$(o,`team`,Am(n.fields.team,`team`))),jm(o,a,n);let p=n.fields.iteration??`System.IterationPath`,m=Q(a[p]);if(m===null)$(o,`iteration`,Am(p,n.fields.iteration!==void 0&&`iteration`));else{let e=r.get(Dm(m,!1));o.iteration={id:e?.id??null,name:m.split(`\\`).pop(),path:m,start:e?.start??null,end:e?.end??null,state:null},!e&&p===`System.IterationPath`&&m.includes(`\\`)&&$(o,`iteration.dates`,`the iteration's dates come from ado work list-iterations: add its output to the input`)}for(let n of Array.isArray(t.relations)?t.relations:[]){if(!Z(n))continue;let t=Em(n.url);if(t===void 0)continue;let r=String(n.rel??``);r===Sm?o.parent=dm(e.connection,t):r===Cm?o.children.push(dm(e.connection,t)):xm[r]?o.links.push({...xm[r],target:dm(e.connection,t)}):(r.startsWith(`System.LinkTypes.`)||r.startsWith(`Microsoft.VSTS.`))&&o.links.push({type:`other`,direction:`outward`,target:dm(e.connection,t),name:r})}o.parent===null&&typeof a[`System.Parent`]==`number`&&(o.parent=dm(e.connection,String(a[`System.Parent`]))),fm(o,`created`,a[`System.CreatedDate`],`System.CreatedDate`),fm(o,`updated`,a[`System.ChangedDate`],`System.ChangedDate`),fm(o,`resolved`,a[`Microsoft.VSTS.Common.ClosedDate`],`Microsoft.VSTS.Common.ClosedDate`);let h=n.fields.dueDate??(a[`Microsoft.VSTS.Scheduling.DueDate`]===void 0?`Microsoft.VSTS.Scheduling.TargetDate`:`Microsoft.VSTS.Scheduling.DueDate`);return n.fields.dueDate!==void 0&&a[h]===void 0?$(o,`dueDate`,Am(h,`dueDate`)):pm(o,a[h],h),o}var Am=(e,t)=>`${e} has no value, or the record doesn't have it (Azure DevOps leaves empty fields out)${t?`; fields ${t} names it`:``}`;function jm(e,t,n){let r=n.fields.estimate;if(r!==void 0){let i=im(t[r]);i===null?$(e,`estimate`,t[r]===void 0?Am(r,`estimate`):`${r} holds ${JSON.stringify(t[r])}, not a number`):e.estimate={value:i,unit:n.fields.estimateUnit?hm(n):r===`Microsoft.VSTS.Scheduling.OriginalEstimate`?`hours`:`points`,field:r};return}for(let n of vm){let r=im(t[n]);if(r!==null)return void(e.estimate={value:r,unit:`points`,field:n})}let i=im(t[ym]);if(i!==null)return void(e.estimate={value:i,unit:`hours`,field:ym});$(e,`estimate`,`none of StoryPoints, Effort, Size or OriginalEstimate has a value; Azure DevOps leaves empty fields out, so an unestimated item and one estimated in a field of the team's own look alike: point fields estimate at that field`)}function Mm(e,t){if(!Array.isArray(e.data))return;let n=t.fields.iteration??`System.IterationPath`,r=new Map,i=e.data.filter(e=>Z(e)&&typeof e.id==`number`&&Z(e.fields));i.sort((e,t)=>(im(e.rev)??0)-(im(t.rev)??0));for(let e of i){let t=String(e.id),i=e.fields,a=om(i[`System.ChangedDate`]);if(!a)continue;let o=r.get(t);o||r.set(t,o={history:{transitions:[],iterations:[]},state:null,path:null});let s=Tm(i[`System.ChangedBy`]),c=Q(i[`System.State`]);c!==null&&c!==o.state&&(o.history.transitions.push({from:o.state,to:c,fromCategory:o.state===null?null:bm[o.state]??`UNKNOWN`,toCategory:bm[c]??`UNKNOWN`,at:a,by:s}),o.state=c);let l=Q(i[n]);l!==null&&l!==o.path&&(o.history.iterations.push({from:o.path===null?[]:[o.path],to:[l],at:a,by:s}),o.path=l)}return new Map([...r].map(([e,{history:t}])=>[e,t]))}var Nm=[`Estimate`,`Size`,`Story Points`],Pm=`Status`,Fm={todo:`TODO`,"to do":`TODO`,backlog:`TODO`,ready:`TODO`,new:`TODO`,"in progress":`IN_PROGRESS`,doing:`IN_PROGRESS`,"in review":`IN_PROGRESS`,done:`DONE`};function Im(e){let t=im(e.number);if(t===null)return;let n=Q(e.html_url),r=n?/^https?:\/\/[^/]+(?:\/[^/]+)*?\/([^/]+)\/([^/]+)\/issues\/\d+$/.exec(n):null;if(r)return`${r[1]}/${r[2]}#${t}`;let i=Q(e.repository_url),a=i?/\/repos\/([^/]+)\/([^/]+)$/.exec(i):null;return a?`${a[1]}/${a[2]}#${t}`:void 0}var Lm=e=>{let t=typeof e==`string`?/\/repos\/([^/]+)\/([^/]+)\/issues\/(\d+)$/.exec(e):null;return t?`${t[1]}/${t[2]}#${t[3]}`:void 0},Rm=e=>Z(e)?gm(e.login,e.name,e.email):null;function zm(e){let t=Array.isArray(e)?e:Z(e)&&Array.isArray(e.issues)?e.issues:Z(e)&&typeof e.number==`number`?[e]:void 0;if(!t)return;let n=t.filter(Z),r=n.filter(e=>e.pull_request===void 0);return{issues:r,pulls:n.length-r.length}}function Bm(e,t){let n=Im(t);if(n===void 0)return;let r=um(e,n,Q(t.title)??``,{[e.command]:t});r.url=Q(t.html_url),r.typeName=Z(t.type)?Q(t.type.name):null,r.type=lm(r.typeName),t.type===void 0&&$(r,`type`,`the record has no type field: this GitHub server doesn't have issue types`),typeof t.body==`string`&&(r.body={format:`markdown`,content:t.body}),r.status=Q(t.state),r.statusCategory=r.status===`closed`?`DONE`:r.status===`open`?`TODO`:`UNKNOWN`,r.resolution=r.status===`closed`?Q(t.state_reason):null,r.assignee=Array.isArray(t.assignees)&&t.assignees.length>0?Rm(t.assignees[0]):Rm(t.assignee),r.reporter=Rm(t.user),r.labels=(Array.isArray(t.labels)?t.labels:[]).flatMap(e=>typeof e==`string`?[e]:Z(e)&&typeof e.name==`string`?[e.name]:[]);let i=Lm(t.parent_issue_url);return i&&(r.parent=dm(e.connection,i)),Array.isArray(t.sub_issues)&&(r.children=t.sub_issues.flatMap(t=>Z(t)&&Im(t)?[dm(e.connection,Im(t))]:[])),fm(r,`created`,t.created_at,`created_at`),fm(r,`updated`,t.updated_at,`updated_at`),fm(r,`resolved`,t.closed_at,`closed_at`),r}function Vm(e){if(!Array.isArray(e.data)||!e.data.every(e=>Z(e)&&`fieldValues`in e))return;let t=[],n=0;for(let r of e.data){let i=Z(r.content)?r.content:{},a=new Map;for(let e of Array.isArray(r.fieldValues)?r.fieldValues:[])Z(e)&&Z(e.field)&&typeof e.field.name==`string`&&a.set(e.field.name,e);if(r.type===`PULL_REQUEST`){n++;continue}if(r.type===`DRAFT_ISSUE`){typeof r.id==`string`&&t.push({key:`${e.inputs.owner??`project`}/draft/${r.id}`,item:r,values:a,draft:!0});continue}let o=Z(i.repository)?Q(i.repository.nameWithOwner):null,s=im(i.number);o&&s!==null&&t.push({key:`${o}#${s}`,item:r,values:a,draft:!1})}return{entries:t,pulls:n}}function Hm(e,t){let n=Z(t.item.content)?t.item.content:{},r=um(e,t.key,Q(n.title)??``,{});if(r.url=Q(n.url),r.typeName=t.draft?`Draft issue`:null,r.status=t.draft?null:Q(n.state)?.toLowerCase()??null,r.statusCategory=r.status===`closed`?`DONE`:`TODO`,fm(r,`created`,t.item.createdAt,`createdAt`),fm(r,`updated`,n.updatedAt??null,`updatedAt`),!t.draft)for(let e of[`type`,`assignee`,`reporter`,`labels`,`parent`])$(r,e,`the board carries only the title, state and URL: add github get-issue output for this issue to the input`);return r}function Um(e,t,n,r){e.native[n.command]=t.item;let i=t.values.get(Pm),a=i?Q(i.name):null;a!==null&&e.status!==`closed`&&(e.status=a,e.statusCategory=Fm[a.toLowerCase()]??mm(e,r,a,`a board status option of the project's own`));let o=r.fields.estimate,s=o??Nm.find(e=>im(t.values.get(e)?.number)!==null),c=s===void 0?null:im(t.values.get(s)?.number);Wm(e,`estimate`),s!==void 0&&c!==null?e.estimate={value:c,unit:hm(r),field:s}:$(e,`estimate`,o?`the board item has no number in "${o}" (fields estimate)`:`the board item has no number in a field named ${Nm.map(e=>`"${e}"`).join(`, `)}: point fields estimate at the project's own`);let l=(t,n)=>$(e,n,`the board item has no value in "${t}": the field is empty, or the project has no field of that name (fields ${n})`),u=r.fields.iteration,d=u?t.values.get(u):[...t.values.values()].find(e=>e.__typename===`ProjectV2ItemFieldIterationValue`);if(Wm(e,`iteration`),d&&Q(d.title)){let t=om(d.startDate)??null,n=im(d.duration),r=t&&n!==null?new Date(Date.parse(t)+n*864e5).toISOString():null;e.iteration={id:Q(d.iterationId),name:d.title,path:null,start:t,end:r,state:null}}else u?l(u,`iteration`):$(e,`iteration`,`the board item has no iteration value: it isn't in an iteration, or the project has no iteration field`);for(let n of[`priority`,`team`,`dueDate`]){let i=r.fields[n];if(i===void 0)continue;Wm(e,n);let a=t.values.get(i),o=a?Q(a.name)??Q(a.text)??Q(a.date)??(im(a.number)===null?null:String(a.number)):null;o===null?l(i,n):n===`dueDate`?pm(e,o,i):e[n]=o}if(r.fields.type!==void 0){let n=t.values.get(r.fields.type),i=n?Q(n.name)??Q(n.text):null;Wm(e,`type`),i?(e.typeName=i,e.type=lm(i)):l(r.fields.type,`type`)}}var Wm=(e,t)=>{e.unmapped=e.unmapped.filter(e=>e.field!==t)};function Gm(e,t){$(e,`estimate`,`GitHub keeps estimates on a project board: add github projects list-items output to the input`),$(e,`iteration`,`GitHub keeps iterations on a project board: add github projects list-items output to the input`);for(let n of[`priority`,`team`,`dueDate`,`type`])t.fields[n]!==void 0&&$(e,n,`"${t.fields[n]}" is a project field: add github projects list-items output to the input`)}function Km(e){if(!Array.isArray(e.data))return;let t={transitions:[],iterations:[]};for(let n of e.data){if(!Z(n))continue;let e=om(n.created_at);e&&(n.event===`closed`?t.transitions.push({from:`open`,to:`closed`,fromCategory:`TODO`,toCategory:`DONE`,at:e,by:Rm(n.actor)}):n.event===`reopened`&&t.transitions.push({from:`closed`,to:`open`,fromCategory:`DONE`,toCategory:`TODO`,at:e,by:Rm(n.actor)}))}return t}var qm=[`Story Points`,`Story point estimate`],Jm=`timeoriginalestimate`,Ym=`Epic Link`,Xm={new:`TODO`,indeterminate:`IN_PROGRESS`,done:`DONE`};function Zm(e){if(Z(e)&&Array.isArray(e.issues))return e.issues.filter(Z);if(Z(e)&&typeof e.key==`string`&&Z(e.fields))return[e]}function Qm(e,t){let n=e.fields??{};if(t in n)return t;if(Z(e.names)){for(let[r,i]of Object.entries(e.names))if(i===t&&r in n)return r}}var $m=e=>Z(e)?gm(e.accountId??e.name??e.key,e.displayName,e.emailAddress):null;function eh(e){let t;if(Z(e))t=e;else if(typeof e==`string`){let n=/\[(.*)\]\s*$/s.exec(e)?.[1];if(n===void 0)return;t={};for(let e of n.split(/,(?=[A-Za-z]+=)/)){let n=e.indexOf(`=`);n>0&&(t[e.slice(0,n)]=e.slice(n+1)===`<null>`?null:e.slice(n+1))}}let n=Q(t?.name);if(!t||n===null)return;let r=String(t.state??``).toLowerCase();return{id:t.id===void 0||t.id===null?null:String(t.id),name:n,path:null,start:om(t.startDate)??null,end:om(t.endDate)??null,state:r===`active`?`current`:r===`closed`?`past`:r===`future`?`future`:null}}var th={blocks:`blocks`,duplicate:`duplicates`,relates:`relates`};function nh(e,t,n,r){let i=Q(t.key);if(i===null)return;let a=t.fields??{},o=um(e,i,Q(a.summary)??``,{[e.command]:t});Q(a.summary)===null&&$(o,`title`,`the record has no summary`);let s=Q(t.self);s?.includes(`/rest/`)?o.url=`${s.slice(0,s.indexOf(`/rest/`))}/browse/${encodeURIComponent(i)}`:$(o,`url`,`the record has no self link to take the site from`);let c=n.fields.type,l=c===void 0?Z(a.issuetype)?Q(a.issuetype.name):null:am(a[c]);if(c!==void 0&&!(c in a)&&$(o,`type`,`the record has no field "${c}" (fields type)`),o.typeName=l,o.type=c===void 0&&Z(a.issuetype)&&a.issuetype.subtask===!0?`TASK`:lm(l),typeof a.description==`string`?o.body={format:`wiki`,content:a.description}:Z(a.description)&&(o.body={format:`adf`,content:a.description}),Z(a.status)){o.status=Q(a.status.name);let e=Z(a.status.statusCategory)?Q(a.status.statusCategory.key):null,t=e===null?void 0:Xm[e];t&&o.status&&r.set(o.status,t),o.statusCategory=t??mm(o,n,o.status??`(none)`,e===null?`the status came without its statusCategory`:`its statusCategory is "${e}"`)}else $(o,`status`,`the record has no status field`);o.resolution=Z(a.resolution)?Q(a.resolution.name):null,o.assignee=$m(a.assignee),o.reporter=$m(a.reporter);let u=n.fields.priority??`priority`;o.priority=am(a[u]),n.fields.priority!==void 0&&!(u in a)&&$(o,`priority`,`the record has no field "${u}" (fields priority)`),o.labels=Array.isArray(a.labels)?a.labels.filter(e=>typeof e==`string`):[],n.fields.team!==void 0&&(n.fields.team in a?o.team=am(a[n.fields.team]):$(o,`team`,`the record has no field "${n.fields.team}" (fields team)`)),rh(o,t,n),ih(o,t,n);let d=Z(a.parent)?Q(a.parent.key):Q(a[Qm(t,Ym)??Ym])??null;o.parent=d===null?null:dm(e.connection,d),o.children=(Array.isArray(a.subtasks)?a.subtasks:[]).flatMap(t=>Z(t)&&typeof t.key==`string`?[dm(e.connection,t.key)]:[]);for(let t of Array.isArray(a.issuelinks)?a.issuelinks:[]){if(!Z(t)||!Z(t.type))continue;let n=Z(t.outwardIssue)?Q(t.outwardIssue.key):null,r=Z(t.inwardIssue)?Q(t.inwardIssue.key):null,i=n??r;i!==null&&o.links.push({type:th[String(t.type.name??``).toLowerCase()]??`other`,direction:n===null?`inward`:`outward`,target:dm(e.connection,i),name:Q(n===null?t.type.inward:t.type.outward)??Q(t.type.name)??``})}fm(o,`created`,a.created,`created`),fm(o,`updated`,a.updated,`updated`),fm(o,`resolved`,a.resolutiondate,`resolutiondate`);let f=n.fields.dueDate??`duedate`;return n.fields.dueDate!==void 0&&!(f in a)?$(o,`dueDate`,`the record has no field "${f}" (fields dueDate)`):pm(o,a[f],f),`created`in a||$(o,`created`,`the record has no created field`),o}function rh(e,t,n){let r=t.fields??{},i=n.fields.estimate;if(i!==void 0){let a=Qm(t,i);if(a===void 0)return $(e,`estimate`,`the record has no field "${i}" (fields estimate)`);let o=im(r[a]);if(o===null){r[a]!==null&&r[a]!==void 0&&$(e,`estimate`,`"${i}" holds ${JSON.stringify(r[a])}, not a number`);return}if(a===`timeoriginalestimate`){if(n.fields.estimateUnit!==void 0&&n.fields.estimateUnit!==`hours`)return $(e,`estimate`,`${Jm} is in seconds, which OWI reads as hours, not ${n.fields.estimateUnit}`);e.estimate={value:o/3600,unit:`hours`,field:a}}else e.estimate={value:o,unit:hm(n),field:a};return}let a=!1;for(let n of qm){let i=Qm(t,n);if(i===void 0)continue;a=!0;let o=im(r[i]);if(o!==null)return void(e.estimate={value:o,unit:`points`,field:i})}if(`timeoriginalestimate`in r){a=!0;let t=im(r[Jm]);if(t!==null)return void(e.estimate={value:t/3600,unit:`hours`,field:Jm})}a||$(e,`estimate`,`the record has none of ${[...qm,Jm].map(e=>`"${e}"`).join(`, `)}: register the estimate field in the connection's customFields, ask for it with --fields, or point fields estimate at it`)}function ih(e,t,n){let r=n.fields.iteration??`Sprint`,i=Qm(t,r);if(i===void 0){$(e,`iteration`,`the record has no "${r}" field: register the sprint field in the connection's customFields, or point fields iteration at it`);return}let a=t.fields?.[i],o=(a==null?[]:Array.isArray(a)?a:[a]).map(eh);o.some(e=>e===void 0)&&$(e,`iteration`,`"${i}" holds a value that isn't a sprint`),e.iteration=_m(o.filter(e=>e!==void 0))}function ah(e,t,n){if(!Array.isArray(e.data))return;let r=t.fields.iteration??`Sprint`,i={transitions:[],iterations:[]};for(let t of e.data){if(!Z(t)||!Array.isArray(t.items))continue;let e=om(t.created);if(!e)continue;let a=$m(t.author);for(let o of t.items){if(!Z(o))continue;let t=String(o.field??``),s=Object.hasOwn(o,`toString`)?Q(o.toString):null;if(t.toLowerCase()===`status`&&s!==null){let t=Q(o.fromString),r=s;i.transitions.push({from:t,to:r,fromCategory:t===null?null:n(t)??`UNKNOWN`,toCategory:n(r)??`UNKNOWN`,at:e,by:a})}else if(t===r||o.fieldId===r){let t=e=>(Q(e)??``).split(`,`).map(e=>e.trim()).filter(Boolean);i.iterations.push({from:t(o.fromString),to:t(s),at:e,by:a})}}}return i}var oh=5e3,sh=Object.fromEntries(Object.entries($p).map(([e,t])=>[e,{items:t.items.map(t=>`${e} ${t}`),history:t.history.map(t=>`${e} ${t}`),context:t.context.map(t=>`${e} ${t}`)}])),ch={jira:`Jira's changelog names statuses only, and a status no item in the input is in has no category to learn`,ado:`a state in the revisions is a custom one, outside the default states OWI knows; ado work list-states shows its category`,github:`GitHub issues are only open or closed, so this should not happen; the history is kept as it was read`},lh=Object.fromEntries(Object.entries($p).filter(([,e])=>e.family===`ado`).map(([e])=>[`${e} work search`,`it returns work item ids only: fetch their fields with ${e} work get-batch and map that`])),uh=e=>Z(e)&&`ok`in e&&Z(e.meta)&&typeof e.meta.command==`string`;function dh(e){let t=e.trim();if(t===``)throw new nm(`INVALID_INPUT`,`The input is empty.`,{fix:`Pipe a toil command's output in (toil jira search … | toil util owi map), or pass the file that holds it.`});try{return fh(JSON.parse(t))}catch{}return t.split(/\r?\n/).flatMap((e,t)=>{if(e.trim()===``)return[];try{return[JSON.parse(e)]}catch(e){throw new nm(`INVALID_INPUT`,`Line ${t+1} of the input isn't JSON (${e.message}), and the input as a whole isn't one JSON value either.`,{fix:`Pass one envelope, a JSON array of envelopes, or one envelope a line.`})}})}function fh(e){return Array.isArray(e)&&e.length>0&&e.every(e=>uh(e)||ph(e))?e:[e]}var ph=e=>Z(e)&&typeof e.key==`string`&&`history`in e&&Object.keys(e).length===2;function mh(e,t={}){let n=[],r=[];return e.forEach((e,i)=>{let a=`document ${i+1}`,o=ph(e)?e:void 0,s=o?o.history:e,c=o?.key??t.key,l,u,d,f={};if(uh(s)){if(l=s.meta.command,s.ok!==!0){let e=Z(s.error)?Q(s.error.code):null;r.push({at:a,command:l,reason:`the call failed${e?` (${e})`:``}, so there is nothing to map`});return}u=s.data;let e=Z(s.meta.context)?s.meta.context:{};if(d=Z(e.connection)?Q(e.connection.value)??void 0:void 0,Z(e.inputs))for(let[t,n]of Object.entries(e.inputs))Z(n)&&typeof n.value==`string`&&(f[t]=n.value)}else if(t.command!==void 0)l=t.command,u=s;else throw new nm(`INVALID_INPUT`,`${a} of the input isn't a toil envelope, so it doesn't say which command it came from.`,{fix:`Pass the whole envelope a command printed, or name the command with --command (for example --command "jira search") when passing its data alone.`});let p=[...em].sort((e,t)=>t.length-e.length).find(e=>l.startsWith(`${e} `)),m=p?sh[p]:void 0;if(!p||!m||![...m.items,...m.history,...m.context].includes(l)){if(lh[l]){r.push({at:a,command:l,reason:lh[l]});return}let e=Object.values(sh).flatMap(e=>[...e.items,...e.history,...e.context]);throw new nm(`INVALID_INPUT`,`${a} is the output of "${l}", which OWI doesn't map.`,{fix:`Map the output of one of: ${e.join(`, `)}.`})}n.push({area:p,command:l,connection:d??p,data:u,inputs:f,at:a,...c===void 0?{}:{key:c}})}),{documents:n,skipped:r}}function hh(e){let t=Array.isArray(e)?e.map(e=>{let t=e.indexOf(`=`);if(t<=0||t===e.length-1)throw new nm(`INVALID_INPUT`,`"${e}" isn't a field override.`,{fix:`Write it as name=field, for example estimate=customfield_10234 or estimateUnit=hours.`});return[e.slice(0,t),e.slice(t+1)]}):Object.entries(e??{}),n={};for(let[e,r]of t){if(!tm.includes(e))throw new nm(`INVALID_INPUT`,`"${e}" isn't an OWI field that can be pointed at a field of your own.`,{fix:`Use one of: ${tm.join(`, `)}.`});if(e===`estimateUnit`&&![`points`,`hours`,`days`].includes(r))throw new nm(`INVALID_INPUT`,`estimateUnit must be points, hours or days, not "${r}".`,{fix:`Pass estimateUnit=points, estimateUnit=hours or estimateUnit=days.`});n[e]=r}return n}function gh(e,t={}){let n=rm(),r={fields:t.fields??{},warn:n.warn},i=[...t.skipped??[]],a=new Map,o=0,s=0,c=(e,t)=>{if(!e)return void i.push({at:t.at,command:t.command,reason:`a record has no key to name the item by`});let n=a.get(e.id);n&&(o++,e.native={...n.native,...e.native}),a.set(e.id,e)},l=e=>t=>sh[t.area]?.[e].includes(t.command)===!0,u=e.filter(l(`items`)),d=e.filter(l(`history`)),f=e.filter(l(`context`)),p=new Map;for(let e of f){let t=p.get(e.connection)??new Map;p.set(e.connection,t),Om(e.data,t)||i.push({at:e.at,command:e.command,reason:`it doesn't hold an iteration tree`})}let m=new Map,h=[];for(let e of u){let t=$p[e.area].family;if(t===`jira`){let t=Zm(e.data);t||i.push({at:e.at,command:e.command,reason:`it doesn't hold Jira issues`});let n=m.get(e.connection)??new Map;m.set(e.connection,n);for(let i of t??[])c(nh(e,i,r,n),e)}else if(t===`ado`){let t=wm(e.data);t||i.push({at:e.at,command:e.command,reason:`it doesn't hold work items`});for(let n of t??[])c(km(e,n,r,p.get(e.connection)??new Map),e)}else if(e.command===`${e.area} projects list-items`){let t=Vm(e);t?(h.push({doc:e,entries:t.entries}),s+=t.pulls):i.push({at:e.at,command:e.command,reason:`it doesn't hold project items`})}else{let t=zm(e.data);t||i.push({at:e.at,command:e.command,reason:`it doesn't hold GitHub issues`}),s+=t?.pulls??0;for(let n of t?.issues??[])c(Bm(e,n),e)}}let g=new Set;for(let{doc:e,entries:t}of h)for(let n of t){let t=dm(e.connection,n.key);g.add(t);let i=a.get(t);i||(i=Hm(e,n),a.set(t,i)),Um(i,n,e,r)}for(let e of a.values())$p[e.source.area]?.family===`github`&&!g.has(e.id)&&Gm(e,r);let _=[],v=(e,t,n)=>{let r=dm(e.connection,t),i=a.get(r);if(!i)return void _.push({id:r,history:n});i.history=i.history?{transitions:[...i.history.transitions,...n.transitions],iterations:[...i.history.iterations,...n.iterations]}:n,i.native[e.command]=e.data};for(let e of d){let t=$p[e.area].family;if(t===`ado`){let t=Mm(e,r);t||i.push({at:e.at,command:e.command,reason:`it doesn't hold revisions`});for(let[n,r]of t??[])v(e,n,r);continue}let n=_h(e);if(n===void 0){i.push({at:e.at,command:e.command,reason:`its output doesn't say which ${t===`github`?`issue`:`issue key`} it belongs to: wrap it as { "key": "…", "history": <envelope> }, or pass --key`});continue}let a=m.get(e.connection)??new Map,o=t===`github`?Km(e):ah(e,r,e=>a.get(e));o?v(e,n,o):i.push({at:e.at,command:e.command,reason:`it doesn't hold a history`})}for(let e of a.values())e.history?.transitions.some(e=>e.toCategory===`UNKNOWN`||e.fromCategory===`UNKNOWN`)&&$(e,`history.transitions`,`some statuses in the history have no category: ${ch[$p[e.source.area]?.family??`jira`]}`);o>0&&n.warn(`OWI_DUPLICATE_ITEM`,`${o} records named an item already in the input; the later record was kept, and native holds both.`),s>0&&n.warn(`OWI_PULL_REQUESTS_SKIPPED`,`${s} pull requests were left out: OWI maps issues, and pull requests are the changes that reference them.`);let y=[...a.values()];y.length>5e3&&(n.warn(`OWI_ITEMS_CAPPED`,`The input holds ${y.length} items; the first ${oh} were mapped and ${y.length-oh} left out. Map the rest in another call.`),y=y.slice(0,oh));for(let e of i)n.warn(`OWI_SKIPPED`,`${e.at}${e.command?` (${e.command})`:``} wasn't mapped: ${e.reason}.`);return{items:y,histories:_,skipped:i,warnings:n.list}}function _h(e){let t=e.key?.trim();if(!t)return;if($p[e.area]?.family!==`github`||t.includes(`/`))return t;let n=t.replace(/^#/,``),{owner:r,repo:i}=e.inputs;return r&&i&&/^\d+$/.test(n)?`${r}/${i}#${n}`:void 0}function vh(e,t={}){let{documents:n,skipped:r}=mh(typeof e==`string`?dh(e):fh(e),{command:t.command,key:t.key});return gh(n,{fields:hh(t.fields),skipped:r})}var yh={readOnly:!0,caller:`toil-ui`},bh=e=>`project = ${e} ORDER BY Rank ASC`,xh=`SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @project ORDER BY [System.Id]`,Sh=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Ch=e=>Array.isArray(e)?e.filter(Sh):[],wh=e=>Array.isArray(e)?e.flatMap(e=>typeof e==`string`||typeof e==`number`?[String(e)]:[]):[],Th=class extends Error{call;constructor(e){super(e.error??`${e.command} failed.`),this.call=e}};function Eh(e){let t=Sh(e.areas)?e.areas:{},n=Sh(e.dossier)?e.dossier:{};return{summary:{name:String(e.name),description:typeof n.description==`string`?n.description:null,sources:Object.entries(t).map(([e,t])=>({area:e,connection:t.connection?.value??null})),environments:Object.keys(Sh(n.environments)?n.environments:{})},areas:t,dossier:n}}var Dh=(e,t)=>e.ok?e.meta.context?.connection?.value??t:t;async function Oh(e,t,n={}){let r={dossier:[],work:[],prs:[],builds:[],deployments:[]},i=async(t,n,i)=>{let a=await e(n,i,yh),o={command:n,input:i,ok:a.ok,error:a.ok?null:`${a.error.message}${a.error.fix?` ${a.error.fix}`:``}`};if(r[t].push(o),!a.ok){if(t===`dossier`)throw new Th(o);return null}return a},{summary:a,areas:o,dossier:s}=Eh((await i(`dossier`,`dossiers show`,{dossier:t})).data),c=e=>Sh(s[e])?s[e]:{},l=Ch(s.repos).map(e=>String(e.name)),u={dossier:t},d=[],f=[];o.jira?.inputs.project&&f.push((async()=>{let e=await i(`work`,`jira search`,{...u,jql:bh(o.jira.inputs.project)});if(!e)return;d.push(e);let t=Ch(e.data.issues).map(e=>String(e.key));for(let e of t){let t=await i(`work`,`jira get-changelog`,{...u,key:e});t&&d.push({key:e,history:t})}})()),o.ado&&f.push((async()=>{let e=await i(`work`,`ado work list-iterations`,u);e&&d.push(e);let t=await i(`work`,`ado work search`,{...u,wiql:xh}),n=t?Ch(t.data.workItems).map(e=>Number(e.id)):[];if(!n.length)return;let r=await i(`work`,`ado work get-batch`,{...u,id:n});r&&d.push(r);for(let e of n){let t=await i(`work`,`ado work revisions`,{...u,id:e});t&&d.push(t)}})()),o.github&&f.push((async()=>{let e=`${o.github.inputs.owner}/${o.github.inputs.repo}`,t=new Set;for(let n of wh(c(`github`).projects)){let r=await i(`work`,`github projects list-items`,{...u,project:Number(n)});if(r){d.push(r);for(let n of Ch(r.data)){let r=Sh(n.content)?n.content:{};Sh(r.repository)&&r.repository.nameWithOwner===e&&typeof r.number==`number`&&t.add(r.number)}}}if(!t.size)return;let n=await i(`work`,`github get-issue`,{...u,number:[...t],subIssues:!0});n&&d.push(n);for(let e of t){let t=await i(`work`,`github issue-events`,{...u,number:e});t&&d.push({key:String(e),history:t})}})()),await Promise.all(f);let p=d.length?(n.mapOwi??vh)(d).items:[],m=[],h=[],g=Sh(s.environments)?s.environments:{},_=Object.entries(g).flatMap(([e,t])=>Sh(t.openshift)&&typeof t.openshift.namespace==`string`?[[e,t.openshift.namespace]]:[]),v=async(e,t,n)=>{m.push(...e,...await t()),h.push(...await n())},y=async e=>{let t=[];for(let[n,r]of _){let a=await i(`deployments`,`openshift deployments`,{...u,env:n,namespace:r});a&&t.push(...qp(a.data,n,l,e))}return t};if(o.bitbucket){let e=await i(`prs`,`bitbucket list-prs`,{...u,state:`ALL`}),t=e?Lp(e.data,Dh(e,`bitbucket`),p):[],n=wh(c(`jenkins`).jobs);await v(t,async()=>{let e=[];for(let r of n)for(let n of t){let t=n.id.slice(n.id.lastIndexOf(`#`)+1),a=await i(`builds`,`jenkins pipeline list-runs`,{...u,name:`${r}/PR-${t}`,top:5});a&&e.push(...Hp(a.data,Dh(a,`jenkins`),`${r}/PR-${t}`,n))}return e},async()=>[])}if(o.ado){let e=await i(`prs`,`ado repo list-prs`,{...u,state:`all`}),t=e?Dh(e,`ado`):`ado`,n=e?Rp(e.data,t,p):[];await v(n,async()=>{let e=[];for(let r of wh(c(`ado`).builds)){let a=await i(`builds`,`ado pipeline list-runs`,{...u,name:r,top:20});a&&e.push(...Up(a.data,t,n))}return e},async()=>{let e=[];for(let r of wh(c(`ado`).deployments)){let a=await i(`deployments`,`ado pipeline list-runs`,{...u,name:r,top:20});a&&e.push(...Jp(a.data,t,n))}return e})}if(o.github){let e=`${o.github.inputs.owner}/${o.github.inputs.repo}`,t=await i(`prs`,`github list-prs`,{...u,state:`all`}),n=t?Dh(t,`github`):`github`,r=t?zp(t.data,n,e,p):[],a=new Map(Ch(t?.data).map(t=>[`${n}:${e}#${t.number}`,Bp(t)]));await v(r,async()=>{let e=[];for(let t of r){let r=a.get(t.id);if(!r)continue;let o=await i(`builds`,`github list-checks`,{...u,ref:r}),s=o?Wp(o.data,n,t):null;s&&e.push(s)}return e},async()=>[])}return _.length&&h.push(...await y(m.filter(e=>e.kind===`pull-request`))),{...a,items:p,changes:m,deployments:h.sort(Xp),calls:r}}async function kh(e){let t=[],n=async(n,r)=>{let i=await e(n,r,yh),a={command:n,input:r,ok:i.ok,error:i.ok?null:`${i.error.message}${i.error.fix?` ${i.error.fix}`:``}`};if(t.push(a),!i.ok)throw new Th(a);return i.data},r=Ch((await n(`dossiers list`,{})).dossiers).filter(e=>e.shadowedBy===null||e.shadowedBy===void 0).map(e=>String(e.name)),i=[];for(let e of r)i.push(Eh(await n(`dossiers show`,{dossier:e})).summary);return{dossiers:i,calls:t}}function Ah(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 jh=6;function Mh(e){let t=0;for(let n of e.id)t=t*31+n.charCodeAt(0)>>>0;return t%jh}function Nh({person:e,labelled:t=!1}){if(!e)return(0,J.jsx)(`span`,{className:`avatar avatar--none`,...t?{role:`img`,"aria-label":`Unassigned`}:{"aria-hidden":!0},children:`–`});let n=e.name??e.id;return(0,J.jsx)(`span`,{className:`avatar avatar--${Mh(e)}`,...t?{role:`img`,"aria-label":n,title:n}:{"aria-hidden":!0},children:Ah(e)})}var Ph=new URL(new URL(`crate-lost-CaqeM6QF.webp`,import.meta.url).href,``+import.meta.url).href,Fh=new URL(new URL(`crate-loading-Dw5rbPVs.webp`,import.meta.url).href,``+import.meta.url).href,Ih={EmptyState:({message:e,children:t})=>(0,J.jsxs)(`div`,{className:`skin-empty skin-empty--art`,children:[(0,J.jsx)(`img`,{src:Ph,alt:``,width:240,height:160}),(0,J.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,J.jsxs)(`div`,{className:`skin-loading skin-empty--art`,role:`status`,children:[(0,J.jsx)(`img`,{src:Fh,alt:``,width:240,height:160}),(0,J.jsx)(`p`,{children:e})]})},Lh=new URL(`crop-grown-HG5zb5pJ.svg`,import.meta.url).href,Rh=new URL(`crop-harvested-Q-ua5_kg.svg`,import.meta.url).href,zh=`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`,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='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`,Vh=`data:image/webp;base64,UklGRqwLAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSM4DAAABoITtnyFJ+kdmzdq2bds2T7Zt29bdttk1a9u27dZUZP6+Q0VGRNXMcQ4RMQE20ciWnfT9DyfPase+887xRX8UyUmTLHwjdD5e7HY415ZafPFJe+RaLUsuyoTJf6USoE599QbA0lb0wBVmdurYxwfa7fZAe6Ddbg+0B6axVlEEimKyx95+s4OQCAqWKcoemM110rFfk3rxbhZZ/k6jAKkWi1oPyznn3hPwlffeV40dfltymfnKljObfe5Ffqi9AkFJbDrPrLlcaU+NDnU6tUASzVWn4lYza9mLo0MifXj0fiuzOLPr/wIJQEhIARDf33HfSuZeR2SseSyTzXkA1BKABFJE8Ob17W18Ds9AhrLVmrTciXE1BLq7pAZVozwx7YsjVY5q5J4MZjbwxQ9eJEcA1dDPk+6BT/McZi1L3vnIw/8FkVNqEpx2B3VapQd3LFyCs0+Bqs4DKIRE3opnrYxybpoXBzsd0agMUgB8lcWn2dSD1EINOSPy1vVrx7oibtK5fkOip1IvPAdYy2JbduJvowBqUAZJalKK0HYzt1ycOx/f1VOJ7KrrBa2wODtDnZ6RTXUFy7koZzON/V51kkBSFMoE3LLRdOZiynKOmppuNQmSFEyqO/6nV9/ey5wlTvmXksIiuouc11jhxkQ5u+ThJ7wUSFSCyFDx1BHHrGephb0OiL4USvCcbVNON+ecc8wxWRH1tB8n+lLdSAIFOpxq/48ODQ0Nz2WtJmfPydMoqUsJiqA5VPPSZQSvXcVcQ2EvEyuCiuu1JHmuXnLyBrOlV99yCAUkEMlC+WpP0NOZx4oGs6n/awhKURKxSmsWozFlOfv/MUqQ6G1dNdSDMc5mjQL6CSSpVg3zZVOXBEgSPVXNpw8Tfvm06c3lEqhLkuiWsnU4zX79+88///z59xOssOY4IcJChKIFisBzcTnHrLPMPPNM003ZchGli4mVREYR77mktLyz/xelJnrvOdVuufOOO+64a3orI8plZ572/wiJdKlJihFUPLg/wRMXMhdwk4xZiKtnGokgJEDKQMbKe+9HOHeGyYrSmZkd+5Mf+VPECiQCUoAe1p6gH/xyCjMzt+QNH1MTqy6FkCQQilASoC7Q8w8/tomzDaFGigDFoG76UwD72TTbeU+quonsG6hGq4Onf/a/mngJ4oQkJSkT0tAnH5KEREBCAIKAkIQkQAiUhvjjXaWM59LP7zFh4Zc+UUBJyvOueqSofpR++pC+CKov+OPJf/Koqd81+OGUW1LnGF89F0xta09YzjC3AZUkIaFmJKHxsMOZziZ6CVZQOCC4BwAA0CAAnQEqUABQAD5pKo5FpCKhGP7eLEAGhLYAZGYtZhpL1W/t+/IkpsY+o3849Fp6nf2y9TH7Tfqr7zHoj8oDrHvQA/Ub06P2q+EX+7/9TCAP4B1VfA/xHerJOlxv1WxYclniZ/UeoF7B/xW+pcz/rnEjpucgHqo/zX/m/znob+lP/D/k/gJ/m39i/6XBPuSc6bmMXZ0maVVP1iURCnbHf/2EIHX0wdjD4xBt8HQjQYgkaLUW1xvgxr3aocWULBQhxgVWla/53j550PFZsI6ge6AI/6hD215HDrtOF/QdUBSK32zEomfSMVaEjWf0ZyCInchtghZm/C3j2oX1eGrYJohfKOyv3XQq1bA1FK+yXAD+/qU2ACqTVWs7nDMuxMK/S+b+xejVLw/UZYS6HKzB0Q5UQgm3GdDO+MdqAGmb+WxuZ/oWuNcveqtU36EOfCP8QZ2lyJsXOBoKGsmsHidzscy9ZfD+UtgQ9v0OiPbtfGC6uFPSK581zVSTLY314/+SQ8fOaizKfN2td7LVWhEufPfO46rVud7JmRmuweZEdBir5u2pHfjCHEbIXvo+sqlsjoy10nYPK+LGzOJvhOLSmb2t9v6L+GW3LIxkdnU9t8BQqxKDIRjFBa7W3kiQgesDk/dp52u+cMvP6VP82KLR/G2YndjvlL45bmvvnKz2dM0FFX3/m6Vn3MiLpZ54fc32IrwZWtBaVjg04Zth8Bjs/axeoIVIYHXqPnCCKk7QdSBnFAm41G76nI+AbHdd6UBi6nZ2e5DpZoYqPVdiLS7BmvzmvkU5k+6BtzQ6Cet/75aeGwhdbhv7Mgb9oJyr1yJNObD+j6Kp5uh9DFqqzatyARYVCZYEwrNJz6Ttu7jSidJ7YEVcO1koVlQAwfiIutZ502RjpvlnporzZqIkn3iaIWEYgPbMj+yvaCIZBQ+uXPfLT19Fvmg7ev+DF+ViV2Gs9LEO4sVPu/27Me7M6HP7gfr/h4oDhA4cVOOxP5kiOduGLSbAsSo1q+Ugaw4eVOueyWxtuW2KFjSznqA3qVIJdUOPZdZ3OKsAYg77qAuA6Y93U4fPWOhO8cO4/Pe+PvlezRm4N5lgbPIqKdc9bsaxGJ9rx4rQwVJT3+/D5DPen/NZ+nqe26rXKvYkiB8tv5HeKFw8T3i3jjvEm0YaEc8MQP49VbHDUVfnoEjuKxo+3r8auJ3++qayRhQlskw2pGF/JvFDK3kVYsoq94djlrBSrdwPlS7f54bXwfuzpbbpm21WXzLf4twZfdGafdHDQLzYhmy0Vn9FfP4s2a/8Rcq4f2IQ2/i7+xN12c7C/F7/5cB3TiH0J6G3Hx6+MdF9K/t8VfbhVJNTA4iOdMt1RG8sOe0g+fq5xR4ZTfF73XusZk86cUdE1cCk+pkPAiGob1xUQb+ps4SKN9GEFhdxz7imdGOreOzivKukZ/usNjZS56FqZIUcNceRek/NOPuqr70Qau2M08ps+NDLmP64EFztRUjZ27L/Pn//ENbv8pHoHHjasW6LmNK5Pp79KZp4tvLx68NI6/Nygv6m3rBMQv0Ba7l+xLRVdQD0tV5knVOFbN9PShJTCO07N8ZHLS1JJpWn+QJVF9Z39+NHEKNqZwGame3WvqX3d+q9qceUzqv3ldumE4XB23n8W8pS3/4A0O14YuX/xJdvL1tWN5VPyfa2kvHYS1mBbU/KbhVXma33taW/fgDEVfQ0V9SpwbWEkwyfcDyqmSXdAKHhGKpZf/gu/jr39H9xnpYyqpyGw98DVI/FuxvajUeHVpPMo/+frmz8dxxWAeb7jmkeymdWHyJfMy356hZ1i/EXJLSklErt8rc+2B5VdrSuBXj6JtgngEBmiz1Vut3khfI1fvtDeuMlum+hoxsPqAG1ETM+zfp8/K9jtcDCtU/q/z4Vir/syGgOjI/wfAcorqFur/nNXCWiZK0UTB8eWTtWGm7ARZ1v/4jW2pvZD7y6wKy4fZtXXEcHOe5vrrU77CTdzPAlZhPbclZCuL9fYI3ZyEOP3zdjtOYOtJ9Ue5kz7h7EuuvRkcTksDfHPPtyEvb1VQqtlWsh2RMo+f+7S2ZXDwn/GzFj2mBrCZ3Xo78NAoflQJafsvXRSZtQCG19iaQzCe25KtYDAJeBhXbFnLtAuvyD7Kz4H8t5Pgz1WPeRryC+sMYrFJJdlY1mJZsE3Oijr5kYq5/8V71XV6g5BN8bEZfMbE5dVKhNY8XdgMWHVPldrbKBEm/ux4vuGp6P0UiV1ahBTD/eUEJGKFErdoXNRsqWX1qupjtDwtFCMXB+f7iZigNqdJAFtoxCvRGAxv5fPcUvMseHw2+E3wG/yzbf/8wl0LvLUNgE2HaIqaL4hI6MNYy4GKh4BaYg9DrfvyMrKf2smGeSDz1OpVI1PS3jiC29YkJQWxG5h3qGaPQe1J54VYG4CztMd4GK0ncCv2zSylPPSfxdUDX96uPgdXwmhUp5AKziaUkfL4okh6btln/+JH//nwaB9Bm4hoVUj0cfF0iq0SGkVaq7YE43xB4sYDPRdR6ta1l9wNRdCFAG1mUj6o2fdIMv22hYIDK22YJs9PAE3Y4/FcF3itQNnrYpIE3L4VGuIWADGhcuZMYITQxOxbiq0Mpq2AEpD+MwAAA=`,Hh=new URL(`empty-field-BN05R29i.svg`,import.meta.url).href,Uh=new URL(`fields-BxauQmw0.webp`,import.meta.url).href,Wh=`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`,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='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`,Kh=new URL(`wood-panel-CFA5lKLa.svg`,import.meta.url).href,qh=`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`,Jh={name:`crate`,label:`Crate`,description:`toil's own brand: the site's warm near-black and flame-to-amber accent in a warehouse of pallet racking that drifts as you scroll, dust in a light shaft, and the crate in its hard hat when there's nothing to show yet.`,schemes:{dark:{bg:`#16130f`,surface:`#1f1a15`,raised:`#2a231c`,ink:`#f6f1e9`,muted:`#b4a998`,line:`#4a423a`,accent:`#ff6a3d`,accentInk:`#160b05`,link:`#ffb84d`,focus:`#6fb2ff`,ok:`#ffb84d`,warn:`#ffb84d`,danger:`#ff6a3d`,bannerBg:`#2a231c`,bannerInk:`#ffb84d`}},fonts:{body:`'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif`,display:`'Source Serif 4', Georgia, 'Times New Roman', serif`,mono:`'Fira Code', ui-monospace, 'SFMono-Regular', Menlo, monospace`},radius:`8px`,motion:`subtle`,sounds:{},assets:{emptyState:`assets/crate-lost.webp`,emblem:`assets/emblem.webp`,loading:`assets/crate-loading.webp`,racking:`assets/racking.webp`,pallets:`assets/pallets.webp`}},Yh={name:`harvest`,label:`Harvest`,description:`A 16-bit farm: a pixel font, wooden sign panels, a sky that runs from dawn on the sprint's first day to dusk on its last, and crops that grow a stage with each column an item moves.`,schemes:{light:{bg:`#efe3c2`,surface:`#f6ecd2`,raised:`#fdf6e3`,ink:`#2b1a0e`,muted:`#5c3f24`,line:`#b08a5a`,accent:`#2f6b1f`,accentInk:`#ffffff`,link:`#8a3410`,focus:`#1f55a8`,ok:`#2c6a1c`,warn:`#7a4800`,danger:`#a3200f`,bannerBg:`#3b2614`,bannerInk:`#fbe7b5`}},fonts:{body:`'Pixelify Sans', system-ui, -apple-system, 'Segoe UI', sans-serif`,display:`'Pixelify Sans', system-ui, -apple-system, 'Segoe UI', sans-serif`,mono:`ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace`},radius:`0px`,motion:`subtle`,sounds:{},assets:{panel:`assets/wood-panel.svg`,sign:`assets/wood-sign.svg`,seed:`assets/crop-seed.svg`,sprout:`assets/crop-sprout.svg`,grown:`assets/crop-grown.svg`,harvested:`assets/crop-harvested.svg`,portrait:`assets/portrait.svg`,emptyState:`assets/empty-field.svg`,loading:`assets/watering-can.svg`,emblem:`assets/emblem.webp`,fields:`assets/fields.webp`},terms:{board:`Farm plot`,sprint:`Season calendar`,agent:`Almanac`,dependencies:`Irrigation`}},Xh={name:`plain`,label:`Plain`,description:`Light, quiet and built on system fonts, with a dark variant. The accessibility baseline every other theme is held to.`,schemes:{light:{bg:`#ffffff`,surface:`#f5f6f8`,raised:`#ffffff`,ink:`#1b1f24`,muted:`#4f5863`,line:`#c9d0d8`,accent:`#0b5cad`,accentInk:`#ffffff`,link:`#0b5cad`,focus:`#0b5cad`,ok:`#116329`,warn:`#7a4a00`,danger:`#b42318`,bannerBg:`#fff1c2`,bannerInk:`#3d2c00`},dark:{bg:`#0f1115`,surface:`#171a21`,raised:`#1e222b`,ink:`#e8eaed`,muted:`#a7afba`,line:`#3a414d`,accent:`#8cc4ff`,accentInk:`#0b1220`,link:`#8cc4ff`,focus:`#8cc4ff`,ok:`#6fd394`,warn:`#f0b849`,danger:`#ff8a80`,bannerBg:`#3a2d07`,bannerInk:`#ffe7a3`}},fonts:{body:`system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif`,display:`system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif`,mono:`ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace`},radius:`6px`,motion:`none`,sounds:{},assets:{}},Zh={name:`realm`,label:`Realm`,description:`A high-fantasy chronicle: parchment and ink, illuminated capitals on the headings, the dependency graph as a hand-drawn map, epics as quests, and the agent as a scribe.`,schemes:{light:{bg:`#efe2c4`,surface:`#f5ead0`,raised:`#fbf4e2`,ink:`#2a1d12`,muted:`#5a4430`,line:`#a88a5e`,accent:`#7a1f1f`,accentInk:`#fff8e8`,link:`#23466e`,focus:`#2c4f86`,ok:`#2f5a1e`,warn:`#764600`,danger:`#8f1d12`,bannerBg:`#2a1d12`,bannerInk:`#f5ead0`}},fonts:{body:`'EB Garamond', Georgia, 'Times New Roman', serif`,display:`'Cinzel', Georgia, 'Times New Roman', serif`,mono:`ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace`},radius:`2px`,motion:`none`,sounds:{},assets:{parchment:`assets/parchment.webp`,border:`assets/ink-border.svg`,capital:`assets/capital.svg`,map:`assets/map.webp`,pass:`assets/mountain-pass.svg`,scroll:`assets/scroll.svg`,quill:`assets/quill.svg`,flourish:`assets/flourish.svg`,emblem:`assets/emblem.webp`,loading:`assets/quill-and-scroll.webp`},terms:{epic:`Quest`,sprint:`Chronicle`,agent:`Scribe`,dependencies:`Map`,blocked:`Mountain pass`}},Qh={name:`starship`,label:`Starship`,description:`A starship's bridge console: HUD frames, scanlines and a slow starfield over a nebula, holo panels with a glow, sprint health as ship's readouts, and the dependency graph as a star chart.`,schemes:{dark:{bg:`#05070f`,surface:`#0a1222`,raised:`#101b31`,ink:`#e6f1ff`,muted:`#9fb4cd`,line:`#2a4262`,accent:`#36d6ff`,accentInk:`#00121c`,link:`#7fe3ff`,focus:`#ffcf4a`,ok:`#5df2a6`,warn:`#ffc857`,danger:`#ff7a8e`,bannerBg:`#0a1222`,bannerInk:`#7fe3ff`}},fonts:{body:`'Exo 2', system-ui, -apple-system, 'Segoe UI', sans-serif`,display:`'Orbitron', 'Exo 2', system-ui, sans-serif`,mono:`ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace`},radius:`2px`,motion:`subtle`,sounds:{},assets:{starfield:`assets/starfield.svg`,chart:`assets/star-chart.svg`,computer:`assets/computer.svg`,loading:`assets/lightspeed.svg`,emblem:`assets/emblem.webp`,nebula:`assets/nebula.webp`,emptyState:`assets/empty-sector.webp`},terms:{sprint:`Ship's status`,agent:`Ship's computer`,dependencies:`Star chart`,blocked:`Hazard`}},$h=[`bg`,`surface`,`raised`,`ink`,`muted`,`line`,`accent`,`accentInk`,`link`,`focus`,`ok`,`warn`,`danger`,`bannerBg`,`bannerInk`],eg=`modulepreload`,tg=function(e,t){return new URL(e,t).href},ng={},rg=function(e){return e.pathname.endsWith(`.css`)},ig=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=tg(t,n);let r=s(t);if(r.href in ng)return;ng[r.href]=!0;let i=rg(r);if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:eg,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),i)return new Promise((e,t)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${r}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ag=[Xh,Jh,Yh,Qh,Zh],og={harvest:()=>ig(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),starship:()=>ig(()=>Promise.resolve({}),__vite__mapDeps([1]),import.meta.url),realm:()=>ig(()=>Promise.resolve({}),__vite__mapDeps([2]),import.meta.url)},sg=new Map;function cg(e){let t=og[e];if(!t)return Promise.resolve();let n=sg.get(e);return n||(n=t().then(()=>void 0,t=>console.error(`The ${e} theme's stylesheet didn't load, so it shows its colours only:`,t)),sg.set(e,n)),n}var lg=e=>`--${e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}`;function ug(e,t,n){return`${e} {\n color-scheme: ${t};\n${$h.map(e=>` ${lg(e)}: ${n[e]};`).join(`
|
|
21
|
-
`)}\n}`}function dg(e){let t=`:root[data-theme="${e.name}"]`,[n,r]=Object.entries(e.schemes),i=e.fonts,a=[`${t} {\n --font-body: ${i.body};\n --font-display: ${i.display};\n --font-mono: ${i.mono};\n --radius: ${e.radius};\n}`,ug(t,n[0],n[1])];return r&&(a.push(ug(`${t}[data-scheme="${r[0]}"]`,r[0],r[1])),a.push(`@media (prefers-color-scheme: ${r[0]}) {\n${ug(`${t}[data-scheme="system"]`,r[0],r[1])}\n}`)),a.join(`
|
|
22
|
-
`)}var fg=e=>ag.find(t=>t.name===e)??ag.find(e=>e.name===`crate`),pg=(0,v.createContext)(ag[0]),mg=pg.Provider,hg=()=>(0,v.useContext)(pg);function gg(e,t,n){let r=e.terms?.[t];return r&&r.toLowerCase()!==n.toLowerCase()?`${r} (${n})`:n}function _g(){let e=hg();return(t,n)=>gg(e,t,n)}var vg=e=>new URL(Object.assign({"../../themes/harvest/assets/crop-grown.svg":Lh,"../../themes/harvest/assets/crop-harvested.svg":Rh,"../../themes/harvest/assets/crop-seed.svg":zh,"../../themes/harvest/assets/crop-sprout.svg":Bh,"../../themes/harvest/assets/emblem.webp":Vh,"../../themes/harvest/assets/empty-field.svg":Hh,"../../themes/harvest/assets/fields.webp":Uh,"../../themes/harvest/assets/portrait.svg":Wh,"../../themes/harvest/assets/watering-can.svg":Gh,"../../themes/harvest/assets/wood-panel.svg":Kh,"../../themes/harvest/assets/wood-sign.svg":qh})[`../../themes/harvest/assets/${e}`],import.meta.url).href,yg={TODO:vg(`crop-seed.svg`),IN_PROGRESS:vg(`crop-grown.svg`),DONE:vg(`crop-harvested.svg`),UNKNOWN:vg(`crop-sprout.svg`)};function bg({src:e,size:t=32,className:n}){return(0,J.jsx)(`img`,{className:n,src:e,alt:``,width:t,height:t,loading:`lazy`,decoding:`async`})}function xg(){let{health:e}=bp();return e?(0,J.jsxs)(`div`,{className:`harvest-calendar`,"aria-hidden":`true`,children:[(0,J.jsxs)(`span`,{className:`harvest-calendar-day`,children:[`Day `,e.days.gone]}),(0,J.jsx)(`span`,{className:`harvest-calendar-grid`,children:Array.from({length:e.days.total},(t,n)=>(0,J.jsx)(`i`,{className:n+1<e.days.gone?`gone`:n+1===e.days.gone?`today`:void 0},n))})]}):null}function Sg({id:e,children:t}){let n=(0,v.useContext)(_p)!==null;return(0,J.jsxs)(J.Fragment,{children:[e===`sprint`&&n&&(0,J.jsx)(xg,{}),t]})}function Cg({children:e}){let t=_g();return(0,J.jsxs)(`div`,{className:`bubble bubble--agent harvest-dialogue`,children:[(0,J.jsx)(bg,{src:vg(`portrait.svg`),size:48,className:`harvest-portrait`}),(0,J.jsxs)(`div`,{className:`harvest-dialogue-text`,children:[(0,J.jsx)(`p`,{className:`harvest-name`,children:t(`agent`,`Agent`)}),e]})]})}var wg={Card:({item:e,children:t})=>(0,J.jsxs)(J.Fragment,{children:[t,(0,J.jsx)(bg,{src:yg[e.statusCategory],className:`harvest-crop harvest-crop--${e.statusCategory.toLowerCase()}`})]}),Panel:Sg,ChatMessage:({from:e,children:t})=>e===`agent`?(0,J.jsx)(Cg,{children:t}):(0,J.jsx)(`div`,{className:`bubble bubble--you`,children:t}),EmptyState:({message:e,children:t})=>(0,J.jsxs)(`div`,{className:`skin-empty skin-empty--art harvest-empty`,children:[(0,J.jsx)(`img`,{src:vg(`empty-field.svg`),alt:``,width:192,height:96,loading:`lazy`,decoding:`async`}),(0,J.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,J.jsxs)(`div`,{className:`skin-loading skin-empty--art harvest-loading`,role:`status`,children:[(0,J.jsx)(bg,{src:vg(`watering-can.svg`),size:64,className:`harvest-can`}),(0,J.jsx)(`p`,{children:e})]})},Tg=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%20width='64'%20height='64'%3e%3crect%20x='1.5'%20y='1.5'%20width='61'%20height='61'%20fill='%23e6c46a'%20stroke='%237a1f1f'%20stroke-width='3'/%3e%3crect%20x='6'%20y='6'%20width='52'%20height='52'%20fill='none'%20stroke='%237a1f1f'%20stroke-width='1'/%3e%3cg%20fill='none'%20stroke='%232f5a1e'%20stroke-width='1.6'%20stroke-linecap='round'%20opacity='0.55'%3e%3cpath%20d='M8%2056%20C14%2044%2010%2034%2018%2028%20C24%2024%2022%2016%2030%2010'/%3e%3cpath%20d='M56%208%20C50%2020%2054%2030%2046%2036%20C40%2040%2042%2048%2034%2054'/%3e%3cpath%20d='M14%2046%20c4%20-2%206%200%205%203%20M50%2018%20c-4%202%20-6%200%20-5%20-3'/%3e%3c/g%3e%3cg%20fill='%2323466e'%20opacity='0.6'%3e%3ccircle%20cx='10'%20cy='10'%20r='2'/%3e%3ccircle%20cx='54'%20cy='10'%20r='2'/%3e%3ccircle%20cx='10'%20cy='54'%20r='2'/%3e%3ccircle%20cx='54'%20cy='54'%20r='2'/%3e%3c/g%3e%3c/svg%3e`,Eg=`data:image/webp;base64,UklGRnoOAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSGYFAAABDAVt20guf9j77hhExATYZvwEbxR94ujrtm3Ttm1t154rlm3btm3btm3btm1e2ba3bdtstbWcLnqfs3asiJgAWpEkWZIk1otqIRyKF4RDcPc1VWX6kRE1DwQRMQEadkhJ0vrPfevImaSQo8Y7pCxplgPeMvDzq1aUFHMclxBzkjTpRvf8EejcAe8dNa+kkFMMIxViyjlK0pTrX/s9oLQGXIB/PHvYIupNOacYwuDyhFNU/ymWPeyJnwJd6ei17bYA///42h0WjppgTL0xhpqJn2q+tQ+48rmfAXSlszHuZ7sUgP9/56kLdll1/mmTBn72aScef8yJZ15++xNvfutX/6VvKZ2NsQ1geozb0tL3f7/7wedvvfj8s8+9+PLrH35cQWVXmtIZG2wzEdhgsNtS2o7Kij+Uj4/r4+O6rvt5KlmHMoZm9Dz3fd33dd/X/beKP1OapVCkkVKoUEWnSv5a8XuqGJBy7Bp1qqRd+UvFz3gipcg+OCuJEJVIjj9X/LinyRatWyq9VKj8egBlk/RpfeVRefy04kd9dtXmMFkc8qLHjyq+1c9AJs1spHFo4PHtis95YkKhbCXkmGklj08rPuEOQ1r1XpV2JqnHhxXvcZekXWGRxYtOVN1eq3ixZ/SqN5rK8snbcxXP1KkUU/pKXj1a8fBEpByKGHyZF3dV3Mq1vUXl+P7L1RUXcSmvVEMyOLxxqNTtjIoTuJskgiVCZVNRiI4jK/brp1Ezjkibdp2qHntUbMOzOQ+Ko1QRlaKQJZtVrIlSJVTpCIe+Ui89K1Us1ajo1CCqZNxsle2/+Stm/7NnkpJ9CRUqB4t6/DttxWQ/2jKnmvZSdEpyxuPPUKH33ER1hEKoowMVZS11+UO1j7mSclYadEqltGiU6fNg1aU+yhvppDKgdGpEfRvOr9rPlaMFERRDiypnDKawT9WanqTUseuEtGCTMe5Yp2q2/z1RGUSUGLSlkiiDzf/mqQr/uIPI2yMNhDLMGbvjR7km6bdrmHuRORbkDIwpPK9UkfXLh7HjW98QYBouUq5IWo/OBo9DSEVLUYWGuWW7qqAZ/kxnbIWmXpLeIcXY/H9+xQpFvUgxGOpQ5MxZCIrosFu+DEG1WcdSbLxSUVK1dU6FbBpfr1wVtVhrYziUUmhTi5RKxi2bKVUphE9pDbKWs6U4ZKpgOv4wrUJd1kkU7KLaGqVKRaNjLH5USfVRc//btlUaUZFGRe/JtGw1ECU9TbFZTBrlmJVSxR0/njSEwaxPa6eRajHGMg+5cK6yBhr1sVsHBSmJKCqVwdT5X3MrDiZrZ1rvKto16k0VhTuUNOCYvkF7aNZOUfSeurJEiINK2opSXuw6VX0mF48oaeBJz3H1c1Xd/1koxMHFsOh/72fyAyqXK5Q0xKSTaWw8QRtfQ+efTRvDMEKKH9DiXv3EwmZKGmrUYv9uux590uYNhVuVNeSk/Wl6Ri9ebkDLt6dIYVjKup+CnV4KKaIS07X/XU5RQw9p8q9R8Cdp1Si7YT9ljWDUIn91C2XrxUsaLlXWSCZt6tJ95vNqeEg5jIayDqExHizbYBpeziloVLPOozEYUyoOYYPd8NaUIWpkQ9b1NPQ6RyRiDA1vT62oEQ5Jd9MYTCOlEWh4fWpFjXRIupvGeMIb44anJlfUiIeoWygGBwu45WYpauRD0kW0Xb/iQAunKwaNYUg6DlrRSxf/2UMpaDyzdvoHBYxtjHHDT9dQ1thmrfBDGoMxNl3hhdmVNcZZs75KMf1buFJKGuukdBO0fQp/310xasxj0P7/ooAL31xGWeMfkpb/Jl0Hj0yrrK/ErKnvhv8eKyV9RSbpmB9vpBQ0klZQOCDuCAAAUCIAnQEqUABQAD5hJo9FpCIhmty2/EAGBLYAUf97RzPoOWr5Sgyu23+v856kds95nPOd9IW8NegB0rn9xwS/+O9l/988G/EP8AkJUxfmni3+QWUDe1dU/y/oF93uI/gqvBv829gD8+f777gPpe/p/Gb+ef5D/xf5H4A/5V/Wf+F65PsX/ar2SP2hYcUjjH3ICaN3gSPsIdG8IAzBs4RoX/8/E0Ghib/vHvmnteqSgWLz2OQKVjNnHmUsTrTn78x7YFNhjHyHI4hETlKjSfVOl9mB4v24pMb77/wFQjYOCgtErLDMsTYHVksIIbX6HVFp2SHV+Dt5exv9e770XuMOx91S0Tt9RF0IEMpTezls17LzQWytw6Rcz+vrAAD0dehP2K6e3chCSZAd7p3ojOi6dY2Usa4AOz5u0/+B/H9g9OE4vDfCAX7wEvNHO6C6j0kANnKW7dtfBEnrx1X0ZQwD1aYU1GR2gs/5xcOnAJdiBjq0VzaXfFm28OHVIW7k6Xq9wCIYVrUyk5NODdLNK83gfQVUsax/BgOwZ0Dhrmmn7zcjtx7/prSrtWQFeviUGgreKtLsT9lanbcuXQs7yl0zhYc34FUKO8lChyzSnmzac15tTColhw2/BvLMqdH8v7P5G16/NVcHuHZseRiiI8WrTdpojGxh79CJZD/Erf8g2E12GzmtqCyBYnKMXt7sCkp+9KfbHL/fxSFcpqWiDYrDPF4g1BUPoG+42/zMAepeSVHwycJpurC4J+goUC4mwQHHzIKOaz/RYHxeg1D2fnf1tZR9HMpDxXmUdSvgfoZJqmbXNo3G5JtmyaFcZICSwZvSyCxgpvIokQzKviT3iT0biuNXHjqSqTVikv9IuJmouipE0AghCbOBN3ypaS8ER/33lV3o+8ll0aRh4oeKXg9DOZNCwEyrxLsZW4+ii+MlRB6zY0cx7kdlzocwwkdYYmYl/39ScB0v61bbp7RwbiCTmX3K5FOwhyq8HLlReXHLsoos3vUA/ZvdvhJGkvrvR29PpV/IqP/N0N9bjGnJutPQxHMyduQMsOdfRqNBrR7m8bFnt4bW3JPQxZ2mNawrTS6h8Gw4I3WjQsLzZFATJOj5F/Pn7UJ06IHm8Dh4wr5mHcs+/LPYmYDIfPO/Dc8gYEu+uS116O64V/qkcbQt+CcDivzU+i0yRyplhCH/AWYp8kKd9CtcqlL0jfff2C+qaBkVvVsek7u6AE4NPAK9Y8x64XBXcq+Y3fzDOUsaidamSHTQuzfid3HF/TlAqVZVleAfEC2o+GXIwhXrn7rydHKKrj2bBrft0NC/WgAyyzc4dNk8MDxHjQTN8fi7Hx/q5zWHWfd3UuDmGplrtekH8Vd9E5mhwHapCQj8x0ekGQ4QGvxZ0V41tHFvRK5Mowsrqn9aBCf4xOtBDD6bDGFrhcfzCa7g+2v4QUBEoO4Djatp+RAbrsIT9BuGK66xnN1bSqQO2rZrfJm+ncapGG6XSRW0BD8jt3hFGEmDiXFHZsO1OL93HdzdnlS8+7FNW22o798oPIDAu2+SvBZJrb9ckbw0wMx1Y7aANX1a9BL55N5j4sbuDXL4ag2Ubgjh2eRo+dAsL9OxEkf9oYZdgwy6ua4YBKLeyXXFTE5hyAxPU9xF87Xc5a7I1Of3H+oaY+/NlTxMWVQRP+aBLwKAEe0U5MqvWOYsxYKkdntc/j/qbQ36xzF+0yuat6uiGH9HeMh2bfejvW35Hr3GDK5r/K4cgHgWmvnGfLqypGTVfou1L6mmxdmwdc3RTkcYHksqTpaZjNaeJvHsyu0qogcYvXFQfQD5iQ87mMSdCNmUE34PdjB2C1bEZ2o5NEuJweYsxavgqtKopS4LGjRtXsL3r4BdQS/LrxJVZf44Q1UI31GMT5T2NiNd181yNG314iElr/d51AXcbnZydyF4H6Dhs3JQV7na25+HxCvrJcSOullwWDUNQosTCVJ6uCtHASRRwRQ+jrviaV8ayVw4QtmqQMxH9OBwYq8hV7DpxPzPsd1jqdMexhZbxyNKWy/HjqII+X2KkmcsXW3GwdcNT/Of7e+nm9aDjgmG5i8qFbvELnXxAA0UujB+777tvYAORKlxlF0OIQ+U5Dk3dPvLdCkXY3ZtLbzyXtC2hRwNoobmCHDG3GMHjzuzF6t1Hc4UvRd8gJByn3ZFn8M4jgQir+rjMxmj71iOefHoeGvMrO/O3/c9Jl4KqYmqX/4J8ofMCEGRw6rL9bb3t6dGTQ++SJAOxShjmlXBOmYebiZHTsHj8zTcgO0NC8Fby3jEAL3W46w5ef40PCgfsIN/sSPoCM/gtTv3tdiOhoN7O+nwyDh+PY5p9YJxFkP5guIg5+nbb+Ec9idev3du7eFCDnAu+6Jr3vKDry+Olvhn8JRlBH5B4gLTvtfL9fwgcLoQeml6t2VLGzHARSxqRjjFlFKzUtwnGIelomkqRwKGu2euXKb87P2W4/6tMVho6ZGX0j0xULnLLxisQPh+ed06pDw83BY7uEY87fGkL1lbGJ+O1BGozXoPQiiEGvv7ZGJvcXJlrKkmXFvkuYE4StyGXY1EWAMoUzg5T67w/rNWT1n1MkSKFqO3l+kJuvDDx+nMwOiE+lULBAZWI55wo/v2jdOlAzzlzMu/klZe+kFBm2Y2myEfx9EC0Aljt/bzCzFbeell5jFmCn7zxELRl7+lh46dvH/yE+zJt4YEQ45VfI1lO/5LVJOX9g7lz7BbBnM1I4KYuG0T9lvxRxYbZgu0rCGpgAvxFV7MpwJETXojuMAOOA/u/ZPJZ2pCqqXG0GSKxdWBo4kipqMOQNRirdKaNn3Rs1xhDjtU1Jcdlbn5U5C0eDUXu3jOITrxE+WnFsmN3L5XVKzuvQ+zbZgIjEh8nPaghnLRF2BgNib+bNuG/Fpl5lzGNtATbTiLHMYEe3f+YFBd7SIUkNwx2WlcinJvd1TwaeCt4pKJWL6txtEH+Ymv3x1gTwGuXuCw85Bx1qnnL1FRvi5oIcHJvnMuGy6mJ4Gqld3px8XxRCeCl+Hdvyuc/+UGEh5xQAAA`,Dg=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20160%2016'%20width='160'%20height='16'%20fill='none'%20stroke='%237a1f1f'%20stroke-width='1.3'%20stroke-linecap='round'%3e%3cpath%20d='M4%208%20C30%208%2050%208%2070%208%20M90%208%20C110%208%20130%208%20156%208'/%3e%3cpath%20d='M70%208%20C74%202%2080%202%2080%208%20C80%2014%2086%2014%2090%208%20C86%202%2080%202%2080%208%20C80%2014%2074%2014%2070%208%20Z'/%3e%3ccircle%20cx='4'%20cy='8'%20r='1.6'%20fill='%237a1f1f'/%3e%3ccircle%20cx='156'%20cy='8'%20r='1.6'%20fill='%237a1f1f'/%3e%3c/svg%3e`,Og=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20width='48'%20height='48'%20fill='none'%20stroke='%232a1d12'%20stroke-linecap='round'%3e%3cpath%20d='M5%204.6%20C17%204.2%2031%205%2043%204.4%20M4.6%205%20C4.2%2017%205%2031%204.4%2043%20M43.4%205%20C43.8%2017%2043%2031%2043.6%2043%20M5%2043.4%20C17%2043.8%2031%2043%2043%2043.6'%20stroke-width='1.6'/%3e%3cpath%20d='M9%208.6%20C19%208.9%2029%208.3%2039%208.7%20M8.6%209%20C8.9%2019%208.3%2029%208.7%2039%20M39.3%209%20C39.1%2019%2039.6%2029%2039.3%2039%20M9%2039.4%20C19%2039.1%2029%2039.6%2039%2039.3'%20stroke-width='0.9'/%3e%3cg%20stroke-width='1.1'%3e%3cpath%20d='M4.5%204.5%20C8%201.5%2011%206%207%208%20C4%209.5%202%206%204.5%204.5%20Z'/%3e%3cpath%20d='M43.5%204.5%20C40%201.5%2037%206%2041%208%20C44%209.5%2046%206%2043.5%204.5%20Z'/%3e%3cpath%20d='M4.5%2043.5%20C8%2046.5%2011%2042%207%2040%20C4%2038.5%202%2042%204.5%2043.5%20Z'/%3e%3cpath%20d='M43.5%2043.5%20C40%2046.5%2037%2042%2041%2040%20C44%2038.5%2046%2042%2043.5%2043.5%20Z'/%3e%3c/g%3e%3c/svg%3e`,kg=new URL(`map-CFr4oRAS.webp`,import.meta.url).href,Ag=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2016'%20width='24'%20height='16'%20fill='none'%20stroke='%232a1d12'%20stroke-width='1.4'%20stroke-linejoin='round'%20stroke-linecap='round'%3e%3cpath%20d='M1%2015%20L8%203%20L12%209%20L15%205%20L23%2015'/%3e%3cpath%20d='M8%203%20L6.5%208%20M15%205%20L14%209'/%3e%3cpath%20d='M10.5%2015%20C11%2013%2013%2013%2013.5%2015'%20stroke-dasharray='1%201.5'/%3e%3c/svg%3e`,jg=new URL(`parchment-B0DDSYQX.webp`,import.meta.url).href,Mg=new URL(`quill-and-scroll-BTgvJtxg.webp`,import.meta.url).href,Ng=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20width='32'%20height='32'%20stroke='%232a1d12'%20stroke-width='1.2'%20stroke-linejoin='round'%20stroke-linecap='round'%3e%3cpath%20d='M28%203%20C18%205%2010%2012%207%2022%20C12%2020%2020%2016%2024%2010%20C21%2011%2018%2012%2016%2012%20C20%2010%2025%207%2028%203%20Z'%20fill='%23fbf4e2'/%3e%3cpath%20d='M7%2022%20L4%2029'%20fill='none'/%3e%3cpath%20d='M10%2018%20C14%2014%2019%2010%2025%206'%20fill='none'%20stroke-opacity='0.6'/%3e%3ccircle%20cx='4'%20cy='29.5'%20r='1.2'%20fill='%232a1d12'/%3e%3c/svg%3e`,Pg=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%20120'%20width='200'%20height='120'%20stroke='%232a1d12'%20stroke-width='1.6'%20stroke-linejoin='round'%20stroke-linecap='round'%3e%3cpath%20d='M30%2022%20C80%2018%20120%2026%20170%2022%20L170%2098%20C120%20102%2080%2094%2030%2098%20Z'%20fill='%23fbf4e2'/%3e%3cpath%20d='M30%2014%20C22%2014%2018%2020%2018%2026%20L18%20104%20C18%20110%2022%20114%2030%20114%20C38%20114%2042%20108%2042%20102%20L42%2022'%20fill='%23e9d9b4'/%3e%3cpath%20d='M170%2014%20C178%2014%20182%2020%20182%2026%20L182%20104%20C182%20110%20178%20114%20170%20114%20C162%20114%20158%20108%20158%20102%20L158%2022'%20fill='%23e9d9b4'/%3e%3cpath%20d='M60%2046%20C90%2044%20110%2048%20140%2046%20M60%2060%20C80%2059%20100%2061%20120%2060'%20stroke-opacity='0.35'%20stroke-dasharray='2%205'%20fill='none'/%3e%3c/svg%3e`,Fg=e=>new URL(Object.assign({"../../themes/realm/assets/capital.svg":Tg,"../../themes/realm/assets/emblem.webp":Eg,"../../themes/realm/assets/flourish.svg":Dg,"../../themes/realm/assets/ink-border.svg":Og,"../../themes/realm/assets/map.webp":kg,"../../themes/realm/assets/mountain-pass.svg":Ag,"../../themes/realm/assets/parchment.webp":jg,"../../themes/realm/assets/quill-and-scroll.webp":Mg,"../../themes/realm/assets/quill.svg":Ng,"../../themes/realm/assets/scroll.svg":Pg})[`../../themes/realm/assets/${e}`],import.meta.url).href;function Ig({className:e}){return(0,J.jsx)(`img`,{className:e,src:Fg(`flourish.svg`),alt:``,width:160,height:16,loading:`lazy`,decoding:`async`,"aria-hidden":`true`})}function Lg({item:e}){let t=(0,v.useContext)(_p),n=_g(),r=e.parent?t?.byId.get(e.parent):void 0;return!r||r.type!==`EPIC`?null:(0,J.jsxs)(`p`,{className:`realm-quest`,children:[n(`epic`,r.typeName??`Epic`),`: `,r.title]})}function Rg({children:e}){let t=_g();return(0,J.jsxs)(`div`,{className:`bubble bubble--agent realm-scribe`,children:[(0,J.jsxs)(`p`,{className:`realm-scribe-name`,children:[(0,J.jsx)(`img`,{src:Fg(`quill.svg`),alt:``,width:24,height:24,loading:`lazy`,decoding:`async`}),t(`agent`,`Agent`)]}),e]})}var zg={Card:({item:e,children:t})=>(0,J.jsxs)(J.Fragment,{children:[t,(0,J.jsx)(Lg,{item:e})]}),Panel:({children:e})=>(0,J.jsxs)(J.Fragment,{children:[e,(0,J.jsx)(Ig,{className:`realm-flourish realm-flourish--panel`})]}),Header:({children:e})=>(0,J.jsxs)(J.Fragment,{children:[e,(0,J.jsx)(Ig,{className:`realm-flourish realm-flourish--header`})]}),ChatMessage:({from:e,children:t})=>e===`agent`?(0,J.jsx)(Rg,{children:t}):(0,J.jsx)(`div`,{className:`bubble bubble--you`,children:t}),EmptyState:({message:e,children:t})=>(0,J.jsxs)(`div`,{className:`skin-empty skin-empty--art realm-scroll`,children:[(0,J.jsx)(`img`,{src:Fg(`scroll.svg`),alt:``,width:200,height:120,loading:`lazy`,decoding:`async`}),(0,J.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,J.jsxs)(`div`,{className:`skin-loading skin-empty--art realm-writing`,role:`status`,children:[(0,J.jsx)(`img`,{src:Fg(`quill-and-scroll.webp`),alt:``,width:240,height:160,decoding:`async`}),(0,J.jsx)(`p`,{children:e})]})},Bg=`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`,Vg=`data:image/webp;base64,UklGRqQPAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSBwIAAABDARt2ybmT3vbDyEiJqDPYuoCb9GHd2rbtp2R5BXdL6q7x7Zt27Zt27btmbVt27Zt20ZjJ8n73B+qKslsdURMgKzItl1bIajActaDhWwDLNxz9uiPtc+5V0JETAD+l0pnP70FFoWnwcU83Rum0DAYwtP8toxWhYTSOR9J4PNcmELCYhV9kcBroUyhoFSZn1wg4vMBFA4Wu+mJiATsCVMIKFXuN+dEKD6fgC4ELLbSkyQJ2Asm45Qq8Z0E6R6DzjiLZfTFiZAijt1gMkypxEcSiKSgz3uhM8xiHANxacQFrZXJLI1n6UtKitDnlcgsg/biJCWTRfJqQmfW5fTSiZA+t8FmkEL5P63WGoXTR1ZlkFVzeNRqS1rsDpM5Gg+FSvXgBbAZo1E9T9Y9Fr/OgcoUi2X0au0YBRygTKZoPEO/a6nyeDUyRaORJ2GHcvyjHFQYdWaUUncsdtILQXufM5UNoaDOSERlP2QQybgPJgQU1BlQWfdeBJ3GoDudhJeiSH4N6FQa1d/dCBObxWy6utCpLM6hF4ZCFJ/LYFNZ7GJuVaXj0ngl4BTYFArZX9ClMUSJBHwKOpXBHY5rYGMyaBnw80XQKQz6MJDQkJK9BtApoN7iPxfnqNjWnubdC4sgpcXZ9ELRlqTPVcomKZR8mwWnOsDEg+yL/uYFi+tAAVDafErHCASFAR+HSdJo8FQBt8+EjkWj1RV53Du9CzQAi8kMKKkZZCvudBsYAAZdb/2bO+dUgorDYMr5wuXDR8IAWn34txavyenHe6OShh3/nZf1GQoTh8pedg45tdd8GCiL7066YZMKh49IJE1Z/zOfr7IOOgaF5nNuJEe0XgeLBI560PWVSuowEwlYLJ77LX/J2lQeKprB5H4vkn3q74ZJYBEfFTYqEmms0+uDhMGmkZ/RVRw+FCaaxoYmv5Gdqh9DDibSX6VumKGNU/5sjxzs7vU+2bPsOuhICpVXNKGwUdULNIZ7zqUuMFKbQsDf2kMfafcauQw7iyOywcABg+iCqtWvxixPHLupSRmqYMC/BuG8ls+Qx9XcntDRVpXfRJdXtu65M+gc5UkbpSglDOj1O9b+bvJ2tF4OEwWJXbiZ/C3R+vCF4jGFMlRmZgZJj9fv6nUN+abK2pFARIWmK/Am+TX6HNxEnyKla5elsZdAbtw08Gzy57JY1gw6nMHUvvoX8n2M376PPilio7q4GUIGvHXppIP0XQv0ng4TTmNrmfrO8RUsWnlhEsuMvDzgPTPnb2ABx6HCduhwKLEHw3maD2HzzJsYUFiR2vQCEQn4/Nj1C5jP7cC28lBhNNquUFtZwGtxatwLDEi5qYmEFE3H9/vtncIC3gTM6AUdxmDKQFzt8uQULhn5HR1F4o5nA4WOX3Y+MUYK5CWFTgtgwmhsqK7fpM89uGrsfxRSChV5MrR1/K7RhRPpmF8fFXZCh0H2XrT8/e0fChaYS8bSCSVJkio1oqJIOuHfNc4b/cMvb70/CmpfSYRUaLAOpdrUatE6Ue+co/RFxPm+k5TqqhCKiPP8JJ879vZo0LJGieIGK1tDpzMYPFGh9tINg9H57IcZSOCTpFBEiATZUEjSd+LziU3Dyq/YNrqowqjRMOksFndE+19Inj1yy90MfPKPqxf8Ki7FCwM+t+JpIf2AD0x4+GuS1xVD6+Ww6TR2lil+6n3/v9M/3dhrlO/4+pIqwEj6kqwKKVFc8FdNoM3Br+j8se3+/sf3cq9cjvLboNOh6H7MmfUqA+/D+xtfxNzDBjBZuJ1+0n5QpM9FyFZA6UtzeWnzF34Vn+uW9MCuogjZaFmpHa2+o/Nfv6z67vV1AKugVf1856TMICUBX1EG0Baos2xnvTt+ZsBTFQ9gdd0wQ4ZMat/5F7qCpw6XA2CQbHE2fZk3ZsD+MACgNICq53/JgFepSV1G9AgzafQSjPmDLvfhjUWN1UipVfV/nSukoAr4BAxS64QpveldBnJtheKr+40JM2N7S0z8g/LXHfMNQhqcQ29zsxz7hoBC0dmvOsfbqmH4ivEh9J4NMJN/p/x+5RCE1apWnqykTXTwOWiETYx67D/He2qpogdW6XRdPu4CM/UPke9PdIIKAYNL+ahy3ckRMKF0l2v/Fj5cU2PyO43T9bquEhLTfqN8saFBBNXcX2VTdHrPKoRvdOgn8omaStW/tmE6rYCsKT8weGNmpXDQuM9RBanDEtgI1dZ8RXm0PgCodFCAHf018+8bWjqCQX/njVr9L6VUKIUyU16S4KEkhbAKiVGf8I9LuhVBRGX+Ou88fINFxCJ97nP+/fWhEF4he9g7/GF/i6woFovoizCliHhNoKNktb7a8+5oEAlI9H+Ln6ysY6MoVfpnOhFKss/7oRGpwfHc4Ob6cfR9ja9OrqijwOJseikoEnAYbCRbdfNvwTU1Y8jq+bI8PqCUimTQ2rlUdPwkS6lIuszsr901VWJIdHvJv7VLMUTXeJq+CEXocQssIqucwe/7F1WOwXZ44p8Lm+bEYDE1BUUktzp0NNiOT+afrBhH81s/21UrEYNSRb+hI0mf18EgRt3wup+PVopB1T750JyKJgZY7KUnpDjpFA+q7n9pQ7kYUHHVod7FVRwatQvEkT6fg0asJaedHFcCMZbsO7xBArEa3E5fGHACbDzZbca0zYkjUathGRWT6kUngXyarVQ8ulKzGiYOVayURcxKvymBz7WwiLlo2aKIVRvEbTGPnvu9nFJxKavjOYNKlfgp4B5YFJoG8/hhCa0KD2jcMRgG/09WUDggYgcAABAfAJ0BKlAAUAA+bSiPRaQiIRo7hjhABsSzBlgH9JEEzCG2EibhLwzeGPSJtgPMB+wHq26a76Ff63enF7GH7tej5//84A/pv0AeSX+Q8GfCf8blE0v/6/hXlF/i/OD7D+aX57/43xAvqH+e9Tb+uf9z1Ks9b1H7Av8n/qv/I7FXoWfqO6i5zSGOrn7Az8fXasKg5fXC/Ec/Vmi2euTtfCxbs4j/uX1jOXWI/juTslZuZxEqzFS8HRiUMkd2VUTz2SzCpf2ARU/syBFY3K93Wnx23E7a8N8RM22UnEfoseEPgB7SzenFlvVDW4bjCY8RKP5aSqmaQ+gyjhj2xMdY85wAAP7+pTZTJFaZJqD+gfhrGP37adjwZSijcbE/tAY5pLJWS9ChWBlTReB6BEXDENmzkv4MQP4GCshrjdilT+9ev5E/p7y6IqYbu/J+SksrtZ6Z/U2wi806RcvXaJAI1nIQiSTVr2YcoOvRUWeI9jdjFhS1FyuY3f1/0yOuqxDzAQ9q0V1u74/rc+EYPUIJMnlswIoWB4/Ccu78Hz/FjZPjBqk2rDa3Gg2lWIx2g2332vX7VzVkpMMJifg19HyHSeZ0/B69kYgAmkG/MJ8SmzTI4vy6ybGHu04ce6Ct+T6/c9MMEfI1v3klmEu2cuKy7pUNfIpp8/kK5kC8MhSWUz+pR+r2Rf7VGq+K0nTpNzriLrVUUZhKY7iIGEudzskNpQBp1USU+Ji1z1ulW9Nw9Kl5aqi3zJJt+8JlOCrz3pN7TWb5wB4H/dPDFHRoalm1BVjubZoxAZtRPFO8iVxyMa6MyN5eS9oLqG5Otf0iNamUiNMdd8zmny6Lz8sBfOoflDRg0s2ZCQlsHeOwNt3qzrz7QXWPMq8WgFM0DeL9hbA9mLq69OEiECGWc3r1aaVCWsR4pvVu4c3hgwiUBYsXZ4je24wsfeauP4/1K/8iLdr0kqkQzlnQcaOGWwjQhsqI5h/+Q8/JjL4K/JLEE/xRR2eJUmgMyV4GzldUJy/VSxT8urp10ZCAHutRfOK236dJNsWvFakHXQzS4X9mvlkKxqlUGKnLsTdayXzntecUngCLAySpBCSAjgTzGcqTcYbx2zXiOcsDZ1ZZPDcw1UmS4Jub3A7HIPF/Rn/1b/tGz4fXenacJ/D+LUxlidvgpnfgXEpBcGNUo/rRoXO4vt9fbuFYt0n+zjctfzFIgwqm48I0+ztcPoF9Ox3OO4JbbfaWZCGhjFcuIwbwPjDBT6LqZ8Ww99R0M12u2Wp1Ns7fH/GxnbqwFjEjpZSRrc/w3xbp/lSzBzZlpjEBBS6S3QZelNFDgWUv+5wct0Da3J47LFctl4v7stggCI/JnZ/K5VNet/h+8+I4xFSO2i+ONQ6QAjZlIXKRZWfKSBfKpWprPpWhR/g/ThKU8xUKccfifvyu3cBjdxzL7TOTunyPsDAb4/YojiOSihAHckAHKMlZbw61kBGSynsAMl39wBT5e2LZLGvorQlPcd20iRQgf2OHXRWV1Taf/Rjd4oo6hMhS2DyK6ZBRe+2lOV9ZprVQlrfIDQL+NeV7zUytl594LscA4fO9OL9F6ZgN8bOdqVOPvvQGo7+nZpwtXlL+GneXWeYJHv9JovWzb1fk/9LQ9gL6EzQSs4M0lDAF7m/XN9VT+gcX3tGgvdiW4Nv3f55bHBc+Up3WEIb0AZobU87vLAZ23UKv4Jf6yczwohIOug+8ubYff+UXR8rZd2eXq7nf8wH4x0e678v3RN12hE1x6mLC1pFu4cMk77i9TTmhb/DQ7DatFVeFtU/fpdLmQEKeimWQo8aBqGBEnTdo0aBKx83yF7eQ3lIvi1jTr2GWiZ9XHbjuqfroDD8BMa2tMFwMgthjSwzhkzrpin1akXf8+fEE1gWFI3iLmwvmvD8z2HuFGyn6ARnp5/n0ZgNC72WIjg7AeXLWYT9hsN5/fV9ucGFTN2p65ZsNIqodDnX9JDKhFDsxyoX4tTs+4P+hPqH73uPyzNef+7kN9q4dFbcxJCDRD04azT3pv+0hDTgHrlguS9sm/R6n+Hy045AwI5O7gfD9aO1ii2QSYcnwXXYRsmtbA87eER8qddOrADVPe69jl8QPT6qFf9M7+wG/7f97Cdbx1bNke0RkDJVLkH8agu3iVaTT3hFczF7KlxzzuhrnMh67s6PchW0Um9eZ//NJ5DnTLW7jHRBr318+zHr7GVjVo88KPof4Bhr3FImGm4uYSjk79nlUHSxmFYbj9mskbeT4/LL7mNw/sB8Umol57hYYN997MbFFepxh8jwx0VIAoUV1CB+eEjb0laKSDwQdChshXzuXDqV8Bc12YfiOcbNcCde+A8iq0eIXD7ZolwWfL+QFiZBH/ND//0xv/sq7//ZEgOr+Ri/qiZp5SUe/5O8hT6fBkkkcj15aJ+eBJkwtViEvbH2+bPqGaIxEyyLt0ooI+GC8/i61NwqOix3U850cf3bJj63iP9G+3/FnCNimIm30bYYk/hRfPDlX1u2NUoD01jAAAA==`,Hg=new URL(`empty-sector-amtiZ3_V.webp`,import.meta.url).href,Ug=new URL(`lightspeed-LxKj3vD3.svg`,import.meta.url).href,Wg=new URL(`nebula-t0QcaA3K.webp`,import.meta.url).href,Gg=new URL(`star-chart-Chk7Xt5X.svg`,import.meta.url).href,Kg=new URL(`starfield-BM71b4P5.svg`,import.meta.url).href,qg=e=>new URL(Object.assign({"../../themes/starship/assets/computer.svg":Bg,"../../themes/starship/assets/emblem.webp":Vg,"../../themes/starship/assets/empty-sector.webp":Hg,"../../themes/starship/assets/lightspeed.svg":Ug,"../../themes/starship/assets/nebula.webp":Wg,"../../themes/starship/assets/star-chart.svg":Gg,"../../themes/starship/assets/starfield.svg":Kg})[`../../themes/starship/assets/${e}`],import.meta.url).href;function Jg(){return(0,J.jsxs)(`span`,{className:`hud-corners`,"aria-hidden":`true`,children:[(0,J.jsx)(`i`,{className:`hud-corner hud-corner--tl`}),(0,J.jsx)(`i`,{className:`hud-corner hud-corner--tr`}),(0,J.jsx)(`i`,{className:`hud-corner hud-corner--bl`}),(0,J.jsx)(`i`,{className:`hud-corner hud-corner--br`})]})}function Yg({children:e}){let t=_g();return(0,J.jsxs)(`div`,{className:`bubble bubble--agent starship-computer`,children:[(0,J.jsxs)(`p`,{className:`starship-voice`,children:[(0,J.jsx)(`img`,{src:qg(`computer.svg`),alt:``,width:24,height:24,loading:`lazy`,decoding:`async`}),t(`agent`,`Agent`)]}),e]})}var Xg={Panel:({children:e})=>(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Jg,{}),e]}),Header:({children:e})=>(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Jg,{}),e]}),ChatMessage:({from:e,children:t})=>e===`agent`?(0,J.jsx)(Yg,{children:t}):(0,J.jsx)(`div`,{className:`bubble bubble--you`,children:t}),EmptyState:({message:e,children:t})=>(0,J.jsxs)(`div`,{className:`skin-empty skin-empty--art starship-empty`,children:[(0,J.jsx)(`img`,{src:qg(`empty-sector.webp`),alt:``,width:240,height:160,loading:`lazy`,decoding:`async`}),(0,J.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,J.jsxs)(`div`,{className:`skin-loading skin-empty--art starship-jump`,role:`status`,children:[(0,J.jsx)(`img`,{src:qg(`lightspeed.svg`),alt:``,width:240,height:120,loading:`lazy`,decoding:`async`}),(0,J.jsx)(`p`,{children:e})]})},Zg={Card:({children:e})=>e,Panel:({children:e})=>e,Avatar:Nh,ChatMessage:({from:e,children:t})=>(0,J.jsx)(`div`,{className:`bubble bubble--${e}`,children:t}),EmptyState:({message:e,children:t})=>(0,J.jsxs)(`div`,{className:`skin-empty`,children:[(0,J.jsx)(`p`,{children:e}),t]}),Loading:({message:e})=>(0,J.jsx)(`p`,{className:`skin-loading`,role:`status`,children:e}),Header:({children:e})=>e},Qg={crate:Ih,harvest:wg,starship:Xg,realm:zg},$g=e=>({...Zg,...Qg[e]}),e_=(0,v.createContext)(Zg),t_=e_.Provider,n_=()=>(0,v.useContext)(e_),r_=[`system`,`light`,`dark`],i_=`toil-ui.theme`;function a_(){try{return JSON.parse(localStorage.getItem(i_)??`{}`)}catch{return{}}}function o_(e){let t=new URLSearchParams(e),n=a_();return{theme:[t.get(`theme`),n.theme].find(e=>ag.some(t=>t.name===e))??`crate`,scheme:[t.get(`scheme`),n.scheme].find(e=>r_.includes(e))??`system`}}function s_(){let[e,t]=(0,v.useState)(()=>o_(window.location.search));return(0,v.useEffect)(()=>{cg(e.theme),document.documentElement.dataset.theme=e.theme,document.documentElement.dataset.scheme=e.scheme;try{localStorage.setItem(i_,JSON.stringify(e))}catch{}},[e]),{...e,setTheme:e=>t(t=>({...t,theme:e})),setScheme:e=>t(t=>({...t,scheme:e}))}}var c_=(...e)=>e.filter(Boolean).join(` `);function l_({as:e,gap:t=`md`,className:n,...r}){return(0,J.jsx)(e??`div`,{className:c_(`l-stack`,n),"data-gap":t,...r})}function u_({as:e,gap:t=`sm`,className:n,...r}){return(0,J.jsx)(e??`div`,{className:c_(`l-cluster`,n),"data-gap":t,...r})}function d_({as:e,min:t=`md`,className:n,...r}){return(0,J.jsx)(e??`ul`,{className:c_(`l-card-grid`,n),"data-min":t,...r})}function f_({as:e,className:t,...n}){return(0,J.jsx)(e??`article`,{className:c_(`l-card`,t),"data-card":``,...n})}function p_(){let e=(0,v.useRef)(null),[t,n]=(0,v.useState)({start:!1,end:!1}),r=(0,v.useCallback)(()=>{let t=e.current;if(!t)return;let r=t.scrollLeft>1,i=t.scrollLeft+t.clientWidth<t.scrollWidth-1;n(e=>e.start===r&&e.end===i?e:{start:r,end:i})},[]);return(0,v.useEffect)(()=>{let t=e.current;if(!t)return;r(),t.addEventListener(`scroll`,r,{passive:!0});let n=typeof ResizeObserver==`function`?new ResizeObserver(r):null;return n?.observe(t),t.firstElementChild&&n?.observe(t.firstElementChild),()=>{t.removeEventListener(`scroll`,r),n?.disconnect()}},[r]),{ref:e,edges:t,overflowing:t.start||t.end}}function m_({label:e,className:t,children:n,hint:r=`Scroll sideways for more.`}){let{ref:i,edges:a,overflowing:o}=p_(),s=(0,v.useId)();return(0,J.jsxs)(`div`,{className:c_(`l-scroll`,t),"data-more-start":a.start||void 0,"data-more-end":a.end||void 0,children:[(0,J.jsx)(`div`,{ref:i,className:`l-scroll__body`,"data-scroller":``,role:`region`,"aria-label":e,tabIndex:o?0:void 0,"aria-describedby":o?s:void 0,children:n}),o&&(0,J.jsx)(`span`,{id:s,className:`sr-only`,children:r})]})}function h_({label:e,caption:t,columns:n,rows:r,rowKey:i,wide:a=!1,className:o}){return(0,J.jsx)(`div`,{className:c_(`l-table`,o),"data-wide":a||void 0,children:(0,J.jsx)(m_,{label:e,hint:`Scroll sideways for more columns.`,children:(0,J.jsxs)(`table`,{role:`table`,children:[t&&(0,J.jsx)(`caption`,{className:`sr-only`,children:t}),(0,J.jsx)(`thead`,{role:`rowgroup`,children:(0,J.jsx)(`tr`,{role:`row`,children:n.map((e,t)=>(0,J.jsx)(`th`,{role:`columnheader`,scope:`col`,children:e.header},t))})}),(0,J.jsx)(`tbody`,{role:`rowgroup`,children:r.map(e=>(0,J.jsx)(`tr`,{role:`row`,children:n.map((t,n)=>{let r=t.rowHeader?`th`:`td`;return(0,J.jsxs)(r,{role:t.rowHeader?`rowheader`:`cell`,scope:t.rowHeader?`row`:void 0,children:[(0,J.jsx)(`span`,{className:`l-table__label`,"aria-hidden":`true`,children:t.label}),(0,J.jsx)(`span`,{className:`l-table__value`,children:t.cell(e)})]},n)})},i(e)))})]})})})}function g_(e){let t=e.replace(/[/\\]+$/,``).search(/[/\\][^/\\]*$/),n=t>0&&e.length-t<=40?t:Math.max(0,e.length-18);return[e.slice(0,n),e.slice(n)]}function __({value:e,what:t}){let[n,r]=(0,v.useState)(null);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`button`,{type:`button`,className:`btn btn--small l-copy`,onClick:async()=>{try{await navigator.clipboard.writeText(e),r(!0)}catch{r(!1)}},"aria-label":`Copy ${t}`,children:`Copy`}),(0,J.jsx)(`span`,{role:`status`,className:`sr-only`,children:n===null?``:n?`Copied ${t}.`:`This browser wouldn't copy; select the ${t} instead.`})]})}function v_({value:e,what:t=`path`,copy:n=!0}){let[r,i]=g_(e);return(0,J.jsxs)(`span`,{className:`l-path`,children:[(0,J.jsxs)(`code`,{className:`l-path__text`,title:e,"data-truncate":``,children:[(0,J.jsx)(`span`,{className:`l-path__head`,children:r}),(0,J.jsx)(`span`,{className:`l-path__tail`,children:i})]}),n&&(0,J.jsx)(__,{value:e,what:t})]})}function y_({value:e,what:t=`URL`,copy:n=!0}){return(0,J.jsx)(v_,{value:e,what:t,copy:n})}function b_(e){let[t,n]=(0,v.useState)(()=>typeof window.matchMedia==`function`&&window.matchMedia(e).matches);return(0,v.useEffect)(()=>{if(typeof window.matchMedia!=`function`)return;let t=window.matchMedia(e),r=()=>n(t.matches);return r(),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),t}var x_=`No agent is set up in this Toil UI, so nobody can answer yet. 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).`,S_=`Install the one your organization approves beside toil-ui, with its CLI on PATH, and choose it under Settings, Agent. The dashboards work without one, and toil-ui --sample shows the scripted agent.`,C_=/\[\[([^\]]+)\]\]/g;function w_(e){let t=[],n=0;for(let r of e.matchAll(C_))r.index>n&&t.push({text:e.slice(n,r.index)}),t.push({cite:r[1]}),n=r.index+r[0].length;return n<e.length&&t.push({text:e.slice(n)}),t}function T_({id:e,withTitle:t=!1}){let{byId:n,dossier:r}=vp(),i=n.get(e);return i?(0,J.jsxs)(`a`,{href:Ap(r.name,e),className:`item-link`,children:[(0,J.jsxs)(`span`,{className:`key`,children:[(0,J.jsx)(`span`,{className:`source`,children:Sp(i.source.area)}),` `,Cp(i)]}),t&&(0,J.jsxs)(`span`,{className:`title`,children:[` `,i.title]})]}):(0,J.jsx)(`code`,{className:`missing`,children:e})}function E_({text:e}){return(0,J.jsx)(J.Fragment,{children:w_(e).map((e,t)=>`cite`in e?(0,J.jsx)(T_,{id:e.cite},t):(0,J.jsx)(`span`,{children:e.text},t))})}function D_(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`?gg(t,`epic`,e.typeName??n):r}var O_=e=>`--${e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}`,k_={posix:`bash/zsh`,powershell:`PowerShell`},A_=/['\u2018\u2019\u201A\u201B]/g,j_=/[\r\n\u0085\u2028\u2029\0]/,M_=/[&|<>^%"]/;function N_(e,t){if(j_.test(e))return`it holds a line break`;let n=t===`powershell`?M_.exec(e)?.[0]:void 0;return n?`it holds ${n}, which cmd.exe acts on when PowerShell runs npm's toil.cmd shim`:null}function P_(e,t){return N_(e,t)?null:t===`posix`?`'${e.replace(/'/g,`'\\''`)}'`:`'${e.replace(A_,e=>e+e)}'`}var F_=new Set([`ado work create`,`ado work update`,`alation document create`,`alation document update`,`jira create-issue`,`jira update-issue`,`jira-cloud create-issue`,`jira-cloud update-issue`,`splitio flags update`,`splitio flags batch-toggle`]),I_=e=>e.replace(/[ -]/g,`_`);function L_(e,t){return!e.command||!e.input?{line:null,reason:`toil has no command for this change.`}:B_(e.command,e.input,t,!0)}function R_(e,t){return B_(e.command,e.input,t,!1)}function z_(e,t,n,r){let i=[];F_.has(e)&&i.push(`put the input in a file and pass it with toil ${e}'s --input-file`),t===`powershell`&&!n.includes(`line break`)&&i.push(`switch this card to bash/zsh, where single quotes carry it`),i.push(`apply it over MCP with the tool ${r} and the input below`);let a=i.length===1?i[0]:`${i.slice(0,-1).join(`, `)}, or ${i.at(-1)}`;return`${a.charAt(0).toUpperCase()}${a.slice(1)}.`}function B_(e,t,n,r){let i=Object.entries(t).sort(([e],[t])=>e===`dossier`?-1:+(t===`dossier`)),a=[];for(let[o,s]of i)for(let i of Array.isArray(s)?s:[s]){let s=String(i),c=N_(s,n);if(c){let i={tool:I_(e),input:r?{...t,allowWrite:!0}:t};return{line:null,reason:`The ${O_(o)} value can't be passed safely on a ${k_[n]} command line: ${c}. ${z_(e,n,c,i.tool)}`,mcp:i}}a.push(s.startsWith(`-`)?P_(`${O_(o)}=${s}`,n):`${O_(o)} ${P_(s,n)}`)}return{line:`toil ${e} ${a.join(` `)}${r?` --allow-write`:``}`,reason:null}}function V_(e=typeof navigator>`u`?void 0:navigator){let t=e?.userAgentData?.platform||e?.platform||``;return/^win/i.test(t)?`powershell`:`posix`}var H_=`toil-ui.shell`,U_=new Set,W_=null;function G_(){if(W_)return W_;try{let e=localStorage.getItem(H_);if(e===`posix`||e===`powershell`)return W_=e}catch{}return W_=V_()}function K_(e){W_=e;try{localStorage.setItem(H_,e)}catch{}for(let e of U_)e()}var q_=e=>(U_.add(e),()=>U_.delete(e)),J_=()=>(0,v.useSyncExternalStore)(q_,G_,G_);function Y_({proposal:e,onDismiss:t}){let[n,r]=(0,v.useState)(null),i=J_(),{line:a,reason:o,mcp:s}=L_(e,i),c=e.hint?{text:e.hint.text,...R_(e.hint,i)}:null,l=!!(e.command||e.hint);return(0,J.jsxs)(`article`,{className:`proposal`,"aria-label":`Proposal: ${e.title}`,children:[(0,J.jsx)(`p`,{className:`proposal-kind`,children:`Proposed change, not applied`}),(0,J.jsx)(`h3`,{children:e.title}),(0,J.jsx)(`p`,{children:(0,J.jsx)(E_,{text:e.reason})}),l&&(0,J.jsx)(Dd,{className:`shells`,orientation:`horizontal`,value:i,onChange:e=>K_(e),"aria-label":`Show the command for`,children:[`powershell`,`posix`].map(e=>(0,J.jsx)(Od,{value:e,className:`shell-choice`,children:k_[e]},e))}),a?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`p`,{className:`note`,children:`Apply it yourself through toil's write gate:`}),(0,J.jsx)(`pre`,{className:`command`,children:(0,J.jsx)(`code`,{children:a})})]}):e.command&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`p`,{className:`failure`,children:o}),s&&(0,J.jsx)(`pre`,{className:`command`,"aria-label":`MCP call to ${s.tool}`,children:(0,J.jsx)(`code`,{children:JSON.stringify({tool:s.tool,input:s.input},null,2)})})]}),e.note&&(0,J.jsx)(`p`,{className:`note`,children:e.note}),c&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`p`,{className:`note`,children:c.text}),c.line?(0,J.jsx)(`pre`,{className:`command`,children:(0,J.jsx)(`code`,{children:c.line})}):(0,J.jsx)(`p`,{className:`failure`,children:c.reason})]}),(0,J.jsxs)(`div`,{className:`proposal-actions`,children:[a&&(0,J.jsx)(Pi,{className:`btn`,onPress:async()=>{try{await navigator.clipboard.writeText(a),r(`yes`)}catch{r(`no`)}},children:`Copy command`}),t&&(0,J.jsx)(Pi,{className:`btn btn--quiet`,onPress:t,children:`Dismiss`}),(0,J.jsx)(`span`,{className:`note`,role:`status`,children:n===`yes`?`Copied.`:n===`no`?`Couldn't copy: select the command instead.`:``})]})]})}function X_(){let{agent:e,dossier:t}=vp(),{EmptyState:n,ChatMessage:r}=n_(),[i,a]=(0,v.useState)([]),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(new Set),f=b_(`(max-width: 1000px)`),p=(0,v.useRef)(0),m=(0,v.useRef)(null),h=i.some(e=>!e.done),g=(0,v.useRef)(null);(0,v.useEffect)(()=>()=>m.current?.abort(),[]),(0,v.useEffect)(()=>{g.current?.scrollIntoView?.({block:`nearest`})},[i]);let _=(e,t)=>a(n=>n.map(n=>n.id===e?{...n,...t}:n)),y=async(n,r=n)=>{if(h||!n.trim())return;let i=p.current++,o=new AbortController;m.current=o,a(e=>[...e,{id:i,prompt:r,answer:null,error:null,done:!1}]);try{if(e.stream)for await(let r of e.stream(t.name,n,o.signal)){if(o.signal.aborted)return;_(i,{answer:r})}else _(i,{answer:await e.ask(t.name,n)});_(i,{done:!0})}catch(e){_(i,{answer:null,error:`The agent couldn't answer: ${e instanceof Error?e.message:String(e)}`,done:!0})}},b=e=>{e.preventDefault();let t=o;s(``),y(t)},x=!f||c;return(0,J.jsxs)(`aside`,{className:`ask${f?` ask--sheet`:``}${f&&c?` ask--open`:``}`,"aria-labelledby":`ask`,children:[(0,J.jsxs)(`div`,{className:`ask-head`,children:[(0,J.jsxs)(`h2`,{id:`ask`,children:[`Ask about `,t.name]}),f&&(0,J.jsx)(Pi,{className:`btn btn--small`,"aria-expanded":c,"aria-controls":`ask-body`,onPress:()=>l(e=>!e),children:c?`Hide`:`Open`})]}),(0,J.jsxs)(`div`,{id:`ask-body`,className:`ask-body`,hidden:!x,children:[(0,J.jsx)(`p`,{className:`note`,children:`Answers cite the items they rest on. The agent reads; it never changes a ticket. What it suggests comes back as a proposal for you to apply.`}),(0,J.jsxs)(`div`,{className:`log`,role:`log`,"aria-live":`polite`,"aria-busy":h,"aria-label":`Conversation`,children:[i.length===0&&(e.notice?(0,J.jsx)(`p`,{className:`note agent-notice`,children:e.notice}):(0,J.jsx)(n,{message:`Pick a question, or ask your own, to see how answers cite their sources.`})),i.map(e=>(0,J.jsxs)(`div`,{className:`turn`,children:[(0,J.jsx)(r,{from:`you`,children:(0,J.jsxs)(`p`,{children:[(0,J.jsx)(`span`,{className:`sr-only`,children:`You asked: `}),e.prompt]})}),e.error?(0,J.jsx)(`p`,{role:`alert`,className:`failure`,children:e.error}):(0,J.jsxs)(r,{from:`agent`,children:[e.answer?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`h3`,{children:e.answer.prompt}),e.done&&e.answer.warnings&&e.answer.warnings.length>0&&(0,J.jsx)(`div`,{className:`answer-checks`,"aria-label":`Checks on this answer`,children:e.answer.warnings.map((e,t)=>(0,J.jsx)(`p`,{className:`failure`,children:e},t))}),e.answer.parts.map((e,t)=>(0,J.jsx)(`p`,{children:(0,J.jsx)(E_,{text:e.text})},t)),e.done&&(0,J.jsxs)(`p`,{className:`by`,children:[`Cites `,e.answer.citations.length,` items.`,e.answer.unverified&&e.answer.unverified.length>0?` Names ${e.answer.unverified.length} its tools never returned.`:``,` Answered by: `,e.answer.by===`scripted`?`a scripted preview, not a model`:e.answer.by,`.`]})]}):(0,J.jsx)(`p`,{className:`note`,children:`Thinking…`}),e.done&&e.answer?.proposals.filter(e=>!u.has(e.id)).map(e=>(0,J.jsx)(Y_,{proposal:e,onDismiss:()=>d(t=>new Set(t).add(e.id))},e.id))]})]},e.id)),(0,J.jsx)(`div`,{ref:g})]}),(0,J.jsx)(`div`,{className:`starters`,role:`group`,"aria-label":`Starter questions`,children:e.starters(t.name).map(e=>(0,J.jsx)(Pi,{className:`starter`,onPress:()=>y(e.id,e.label),isDisabled:h,children:e.label},e.id))}),(0,J.jsxs)(`form`,{className:`ask-form`,onSubmit:b,children:[(0,J.jsxs)(Yd,{className:`field-text`,value:o,onChange:s,isDisabled:h,children:[(0,J.jsx)(wi,{children:`Your question`}),(0,J.jsx)(Ma,{placeholder:`Ask about ${t.name}`})]}),(0,J.jsx)(Pi,{type:`submit`,className:`btn btn--accent`,isDisabled:h||!o.trim(),children:`Ask`})]})]})]})}function Z_(e){let t=[];for(let n of e){let e=t.find(e=>e.command===n.command);e?e.count++:t.push({command:n.command,count:1})}return t}function Q_({calls:e,alerts:t=!0}){if(!e.length)return null;let n=Z_(e),r=t?e.filter(e=>!e.ok):[];return(0,J.jsxs)(J.Fragment,{children:[r.map((e,t)=>(0,J.jsxs)(`p`,{role:`alert`,className:`failure`,children:[(0,J.jsxs)(`code`,{children:[`toil `,e.command]}),` failed: `,e.error]},t)),(0,J.jsxs)(`details`,{className:`fed-by`,children:[(0,J.jsxs)(`summary`,{children:[`Fed by`,` `,n.map((e,t)=>(0,J.jsxs)(`span`,{children:[t>0&&`, `,(0,J.jsxs)(`code`,{children:[`toil `,e.command]}),e.count>1&&` ×${e.count}`]},e.command))]}),(0,J.jsx)(`ul`,{className:`plain calls`,children:e.map((e,t)=>(0,J.jsxs)(`li`,{children:[(0,J.jsxs)(`code`,{className:`call`,children:[`execute(`,JSON.stringify(e.command),`, `,JSON.stringify(e.input),`)`]}),!e.ok&&(0,J.jsx)(`span`,{className:`failure`,children:` (failed)`})]},t))})]})]})}function $_({id:e,title:t,calls:n,children:r,alerts:i=!0}){let{Panel:a}=n_();return(0,J.jsx)(f_,{as:`section`,className:`panel`,"aria-labelledby":e,children:(0,J.jsxs)(a,{id:e,children:[(0,J.jsx)(`h2`,{id:e,children:t}),r,(0,J.jsx)(Q_,{calls:n,alerts:i})]})})}function ev(e,t,n=[]){return e.filter(e=>e.type!==`EPIC`&&e.type!==`OTHER`).map(e=>{let r=t.filter(t=>t.items.includes(e.id)),i=r.filter(e=>e.kind===`pull-request`),a=r.filter(e=>e.kind===`build`),o=[],s=e.statusCategory===`DONE`;return!s&&sp(e.id,t)?.outcome===`failed`&&o.push(`failing-build`),s&&i.length===0&&o.push(`done-without-change`),!s&&i.length>0&&i.every(e=>e.outcome===`merged`)&&o.push(`merged-not-done`),{item:e,changes:i,builds:a,deployedTo:n.filter(t=>t.items.includes(e.id)),flags:o}})}var tv={"failing-build":`Latest build failed`,"done-without-change":`Done with no linked change`,"merged-not-done":`All changes merged, item still open`},nv=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function rv(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function iv(e){return`nodeType`in e}function av(e){return e?rv(e)?e:iv(e)?e.ownerDocument?.defaultView??window:window:window}function ov(e){let{Document:t}=av(e);return e instanceof t}function sv(e){return!rv(e)&&e instanceof av(e).HTMLElement}function cv(e){return e instanceof av(e).SVGElement}function lv(e){return e?rv(e)?e.document:iv(e)?ov(e)?e:sv(e)||cv(e)?e.ownerDocument:document:document:document}var uv=nv?v.useLayoutEffect:v.useEffect;function dv(e){let t=(0,v.useRef)(e);return uv(()=>{t.current=e}),(0,v.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function fv(){let e=(0,v.useRef)(null);return[(0,v.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,v.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function pv(e,t){t===void 0&&(t=[e]);let n=(0,v.useRef)(e);return uv(()=>{n.current!==e&&(n.current=e)},t),n}function mv(e,t){let n=(0,v.useRef)();return(0,v.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function hv(e){let t=dv(e),n=(0,v.useRef)(null);return[n,(0,v.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function gv(e){let t=(0,v.useRef)();return(0,v.useEffect)(()=>{t.current=e},[e]),t.current}var _v={};function vv(e,t){return(0,v.useMemo)(()=>{if(t)return t;let n=_v[e]==null?0:_v[e]+1;return _v[e]=n,e+`-`+n},[e,t])}function yv(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var bv=yv(1),xv=yv(-1);function Sv(e){return`clientX`in e&&`clientY`in e}function Cv(e){if(!e)return!1;let{KeyboardEvent:t}=av(e.target);return t&&e instanceof t}function wv(e){if(!e)return!1;let{TouchEvent:t}=av(e.target);return t&&e instanceof t}function Tv(e){if(wv(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Sv(e)?{x:e.clientX,y:e.clientY}:null}var Ev=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function Dv(e){return e.matches(Ev)?e:e.querySelector(Ev)}var Ov={display:`none`};function kv(e){let{id:t,value:n}=e;return v.createElement(`div`,{id:t,style:Ov},n)}function Av(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return v.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function jv(){let[e,t]=(0,v.useState)(``);return{announce:(0,v.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var Mv=(0,v.createContext)(null);function Nv(e){let t=(0,v.useContext)(Mv);(0,v.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function Pv(){let[e]=(0,v.useState)(()=>new Set),t=(0,v.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,v.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var Fv={draggable:`
|
|
23
|
-
To pick up a draggable item, press the space bar.
|
|
24
|
-
While dragging, use the arrow keys to move the item.
|
|
25
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
26
|
-
`},Iv={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function Lv(e){let{announcements:t=Iv,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Fv}=e,{announce:a,announcement:o}=jv(),s=vv(`DndLiveRegion`),[c,l]=(0,v.useState)(!1);if((0,v.useEffect)(()=>{l(!0)},[]),Nv((0,v.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=v.createElement(v.Fragment,null,v.createElement(kv,{id:r,value:i.draggable}),v.createElement(Av,{id:s,announcement:o}));return n?(0,gr.createPortal)(u,n):u}var Rv;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(Rv||={});function zv(){}function Bv(e,t){return(0,v.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function Vv(){var e=[...arguments];return(0,v.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var Hv=Object.freeze({x:0,y:0});function Uv(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Wv(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Gv(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var Kv=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=Gv(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Uv)};function qv(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Jv(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Hv}function Yv(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var Xv=Yv(1);function Zv(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Qv(e,t,n){let r=Zv(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var $v={ignoreTransform:!1};function ey(e,t){t===void 0&&(t=$v);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=av(e).getComputedStyle(e);t&&(n=Qv(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function ty(e){return ey(e,{ignoreTransform:!0})}function ny(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function ry(e,t){return t===void 0&&(t=av(e).getComputedStyle(e)),t.position===`fixed`}function iy(e,t){t===void 0&&(t=av(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function ay(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(ov(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!sv(i)||cv(i)||n.includes(i))return n;let a=av(e).getComputedStyle(i);return i!==e&&iy(i,a)&&n.push(i),ry(i,a)?n:r(i.parentNode)}return e?r(e):n}function oy(e){let[t]=ay(e,1);return t??null}function sy(e){return!nv||!e?null:rv(e)?e:iv(e)?ov(e)||e===lv(e).scrollingElement?window:sv(e)?e:null:null}function cy(e){return rv(e)?e.scrollX:e.scrollLeft}function ly(e){return rv(e)?e.scrollY:e.scrollTop}function uy(e){return{x:cy(e),y:ly(e)}}var dy;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(dy||={});function fy(e){return!nv||!e?!1:e===document.scrollingElement}function py(e){let t={x:0,y:0},n=fy(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var my={x:.2,y:.2};function hy(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=my);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=py(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=dy.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=dy.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=dy.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=dy.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function gy(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function _y(e){return e.reduce((e,t)=>bv(e,uy(t)),Hv)}function vy(e){return e.reduce((e,t)=>e+cy(t),0)}function yy(e){return e.reduce((e,t)=>e+ly(t),0)}function by(e,t){if(t===void 0&&(t=ey),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);oy(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var xy=[[`x`,[`left`,`right`],vy],[`y`,[`top`,`bottom`],yy]],Sy=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=ay(t),r=_y(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of xy)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},Cy=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function wy(e){let{EventTarget:t}=av(e);return e instanceof t?e:lv(e)}function Ty(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var Ey;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(Ey||={});function Dy(e){e.preventDefault()}function Oy(e){e.stopPropagation()}var ky;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(ky||={});var Ay={start:[ky.Space,ky.Enter],cancel:[ky.Esc],end:[ky.Space,ky.Enter,ky.Tab]},jy=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ky.Right:return{...n,x:n.x+25};case ky.Left:return{...n,x:n.x-25};case ky.Down:return{...n,y:n.y+25};case ky.Up:return{...n,y:n.y-25}}},My=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new Cy(lv(t)),this.windowListeners=new Cy(av(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ey.Resize,this.handleCancel),this.windowListeners.add(Ey.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ey.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&by(n),t(Hv)}handleKeyDown(e){if(Cv(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Ay,coordinateGetter:a=jy,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:Hv;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=xv(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=py(n),p=gy(n),m={x:Math.min(i===ky.Right?p.right-p.width/2:p.right,Math.max(i===ky.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===ky.Down?p.bottom-p.height/2:p.bottom,Math.max(i===ky.Down?p.top:p.top+p.height/2,u.y))},h=i===ky.Right&&!s||i===ky.Left&&!c,g=i===ky.Down&&!l||i===ky.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===ky.Right&&e<=d.x||i===ky.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}r.x=a?n.scrollLeft-e:i===ky.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===ky.Down&&e<=d.y||i===ky.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}r.y=a?n.scrollTop-e:i===ky.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,bv(xv(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};My.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=Ay,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function Ny(e){return!!(e&&`distance`in e)}function Py(e){return!!(e&&`delay`in e)}var Fy=class{constructor(e,t,n){n===void 0&&(n=wy(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=lv(i),this.documentListeners=new Cy(this.document),this.listeners=new Cy(n),this.windowListeners=new Cy(av(i)),this.initialCoordinates=Tv(r)??Hv,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Ey.Resize,this.handleCancel),this.windowListeners.add(Ey.DragStart,Dy),this.windowListeners.add(Ey.VisibilityChange,this.handleCancel),this.windowListeners.add(Ey.ContextMenu,Dy),this.documentListeners.add(Ey.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Py(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(Ny(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Ey.Click,Oy,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ey.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=Tv(e)??Hv,s=xv(n,o);if(!t&&a){if(Ny(a)){if(a.tolerance!=null&&Ty(s,a.tolerance))return this.handleCancel();if(Ty(s,a.distance))return this.handleStart()}if(Py(a)&&Ty(s,a.tolerance))return this.handleCancel();this.handlePending(a,s)}else e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===ky.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},Iy={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},Ly=class extends Fy{constructor(e){let{event:t}=e,n=lv(t.target);super(e,Iy,n)}};Ly.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var Ry={move:{name:`mousemove`},end:{name:`mouseup`}},zy;(function(e){e[e.RightClick=2]=`RightClick`})(zy||={});var By=class extends Fy{constructor(e){super(e,Ry,lv(e.event.target))}};By.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==zy.RightClick&&(r?.({event:n}),!0)}}];var Vy={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},Hy=class extends Fy{constructor(e){super(e,Vy)}static setup(){return window.addEventListener(Vy.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Vy.move.name,e)};function e(){}}};Hy.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var Uy;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(Uy||={});var Wy;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(Wy||={});function Gy(e){let{acceleration:t,activator:n=Uy.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=Wy.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=qy({delta:d,disabled:!a}),[m,h]=fv(),g=(0,v.useRef)({x:0,y:0}),_=(0,v.useRef)({x:0,y:0}),y=(0,v.useMemo)(()=>{switch(n){case Uy.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Uy.DraggableRect:return i}},[n,i,c]),b=(0,v.useRef)(null),x=(0,v.useCallback)(()=>{let e=b.current;if(!e)return;let t=g.current.x*_.current.x,n=g.current.y*_.current.y;e.scrollBy(t,n)},[]),S=(0,v.useMemo)(()=>s===Wy.TreeOrder?[...l].reverse():l,[s,l]);(0,v.useEffect)(()=>{if(!a||!l.length||!y)h();else{for(let e of S){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=hy(e,i,y,t,f);for(let e of[`x`,`y`])p[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){h(),b.current=e,m(x,o),g.current=s,_.current=a;return}}g.current={x:0,y:0},_.current={x:0,y:0},h()}},[t,x,r,h,a,o,JSON.stringify(y),JSON.stringify(p),m,l,S,u,JSON.stringify(f)])}var Ky={x:{[dy.Backward]:!1,[dy.Forward]:!1},y:{[dy.Backward]:!1,[dy.Forward]:!1}};function qy(e){let{delta:t,disabled:n}=e,r=gv(t);return mv(e=>{if(n||!r||!e)return Ky;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[dy.Backward]:e.x[dy.Backward]||i.x===-1,[dy.Forward]:e.x[dy.Forward]||i.x===1},y:{[dy.Backward]:e.y[dy.Backward]||i.y===-1,[dy.Forward]:e.y[dy.Forward]||i.y===1}}},[n,t,r])}function Jy(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return mv(e=>t==null?null:r??e??null,[r,t])}function Yy(e,t){return(0,v.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var Xy;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(Xy||={});var Zy;(function(e){e.Optimized=`optimized`})(Zy||={});var Qy=new Map;function $y(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,v.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,v.useRef)(e),d=g(),f=pv(d),p=(0,v.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,v.useRef)(null),h=mv(t=>{if(d&&!n)return Qy;if(!t||t===Qy||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new Sy(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,v.useEffect)(()=>{u.current=e},[e]),(0,v.useEffect)(()=>{d||p()},[n,d]),(0,v.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,v.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:a!=null};function g(){switch(l){case Xy.Always:return!1;case Xy.BeforeDragging:return n;default:return!n}}}function eb(e,t){return mv(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function tb(e,t){return eb(e,t)}function nb(e){let{callback:t,disabled:n}=e,r=dv(t),i=(0,v.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,v.useEffect)(()=>()=>i?.disconnect(),[i]),i}function rb(e){let{callback:t,disabled:n}=e,r=dv(t),i=(0,v.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,v.useEffect)(()=>()=>i?.disconnect(),[i]),i}function ib(e){return new Sy(ey(e),e)}function ab(e,t,n){t===void 0&&(t=ib);let[r,i]=(0,v.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=nb({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=rb({callback:a});return uv(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function ob(e){return Jv(e,eb(e))}var sb=[];function cb(e){let t=(0,v.useRef)(e),n=mv(n=>e?n&&n!==sb&&e&&t.current&&e.parentNode===t.current.parentNode?n:ay(e):sb,[e]);return(0,v.useEffect)(()=>{t.current=e},[e]),n}function lb(e){let[t,n]=(0,v.useState)(null),r=(0,v.useRef)(e),i=(0,v.useCallback)(e=>{let t=sy(e.target);t&&n(e=>e?(e.set(t,uy(t)),new Map(e)):null)},[]);return(0,v.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=sy(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,uy(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{sy(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,v.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>bv(e,t),Hv):_y(e):Hv,[e,t])}function ub(e,t){t===void 0&&(t=[]);let n=(0,v.useRef)(null);return(0,v.useEffect)(()=>{n.current=null},t),(0,v.useEffect)(()=>{let t=e!==Hv;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?xv(e,n.current):Hv}function db(e){(0,v.useEffect)(()=>{if(!nv)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function fb(e,t){return(0,v.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function pb(e){return(0,v.useMemo)(()=>e?ny(e):null,[e])}var mb=[];function hb(e,t){t===void 0&&(t=ey);let[n]=e,r=pb(n?av(n):null),[i,a]=(0,v.useState)(mb);function o(){a(()=>e.length?e.map(e=>fy(e)?r:new Sy(t(e),e)):mb)}let s=rb({callback:o});return uv(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function gb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return sv(t)?t:e}function _b(e){let{measure:t}=e,[n,r]=(0,v.useState)(null),i=rb({callback:(0,v.useCallback)(e=>{for(let{target:n}of e)if(sv(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=hv((0,v.useCallback)(e=>{let n=gb(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,v.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var vb=[{sensor:Ly,options:{}},{sensor:My,options:{}}],yb={current:{}},bb={draggable:{measure:ty},droppable:{measure:ty,strategy:Xy.WhileDragging,frequency:Zy.Optimized},dragOverlay:{measure:ey}},xb=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},Sb={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new xb,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:zv},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:bb,measureDroppableContainers:zv,windowRect:null,measuringScheduled:!1},Cb={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:zv,draggableNodes:new Map,over:null,measureDroppableContainers:zv},wb=(0,v.createContext)(Cb),Tb=(0,v.createContext)(Sb);function Eb(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new xb}}}function Db(e,t){switch(t.type){case Rv.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Rv.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Rv.DragEnd:case Rv.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Rv.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new xb(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Rv.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new xb(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Rv.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new xb(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Ob(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,v.useContext)(wb),a=gv(r),o=gv(n?.id);return(0,v.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!Cv(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=Dv(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function kb(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function Ab(e){return(0,v.useMemo)(()=>({draggable:{...bb.draggable,...e?.draggable},droppable:{...bb.droppable,...e?.droppable},dragOverlay:{...bb.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function jb(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,v.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;uv(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=Jv(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=oy(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var Mb=(0,v.createContext)({...Hv,scaleX:1,scaleY:1}),Nb;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(Nb||={});var Pb=(0,v.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=vb,collisionDetection:o=Kv,measuring:s,modifiers:c,...l}=e,[u,d]=(0,v.useReducer)(Db,void 0,Eb),[f,p]=Pv(),[m,h]=(0,v.useState)(Nb.Uninitialized),g=m===Nb.Initialized,{draggable:{active:_,nodes:y,translate:b},droppable:{containers:x}}=u,S=_==null?null:y.get(_),C=(0,v.useRef)({initial:null,translated:null}),w=(0,v.useMemo)(()=>_==null?null:{id:_,data:S?.data??yb,rect:C},[_,S]),T=(0,v.useRef)(null),[E,D]=(0,v.useState)(null),[O,k]=(0,v.useState)(null),A=pv(l,Object.values(l)),j=vv(`DndDescribedBy`,t),ee=(0,v.useMemo)(()=>x.getEnabled(),[x]),te=Ab(s),{droppableRects:ne,measureDroppableContainers:M,measuringScheduled:re}=$y(ee,{dragging:g,dependencies:[b.x,b.y],config:te.droppable}),N=Jy(y,_),ie=(0,v.useMemo)(()=>O?Tv(O):null,[O]),ae=V(),oe=tb(N,te.draggable.measure);jb({activeNode:_==null?null:y.get(_),config:ae.layoutShiftCompensation,initialRect:oe,measure:te.draggable.measure});let se=ab(N,te.draggable.measure,oe),ce=ab(N?N.parentElement:null),le=(0,v.useRef)({activatorEvent:null,active:null,activeNode:N,collisionRect:null,collisions:null,droppableRects:ne,draggableNodes:y,draggingNode:null,draggingNodeRect:null,droppableContainers:x,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),P=x.getNodeFor(le.current.over?.id),ue=_b({measure:te.dragOverlay.measure}),de=ue.nodeRef.current??N,fe=g?ue.rect??se:null,pe=!!(ue.nodeRef.current&&ue.rect),me=ob(pe?null:se),he=pb(de?av(de):null),F=cb(g?P??N:null),I=hb(F),ge=kb(c,{transform:{x:b.x-me.x,y:b.y-me.y,scaleX:1,scaleY:1},activatorEvent:O,active:w,activeNodeRect:se,containerNodeRect:ce,draggingNodeRect:fe,over:le.current.over,overlayNodeRect:ue.rect,scrollableAncestors:F,scrollableAncestorRects:I,windowRect:he}),_e=ie?bv(ie,b):null,ve=lb(F),ye=ub(ve),be=ub(ve,[se]),L=bv(ge,ye),R=fe?Xv(fe,ge):null,xe=w&&R?o({active:w,collisionRect:R,droppableRects:ne,droppableContainers:ee,pointerCoordinates:_e}):null,Se=Wv(xe,`id`),[Ce,we]=(0,v.useState)(null),Te=qv(pe?ge:bv(ge,be),Ce?.rect??null,se),Ee=(0,v.useRef)(null),De=(0,v.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(T.current==null)return;let i=y.get(T.current);if(!i)return;let a=e.nativeEvent,o=new n({active:T.current,activeNode:i,event:a,options:r,context:le,onAbort(e){if(!y.get(e))return;let{onDragAbort:t}=A.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!y.get(e))return;let{onDragPending:i}=A.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=T.current;if(t==null)return;let n=y.get(t);if(!n)return;let{onDragStart:r}=A.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:C}};(0,gr.unstable_batchedUpdates)(()=>{r?.(i),h(Nb.Initializing),d({type:Rv.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),D(Ee.current),k(a)})},onMove(e){d({type:Rv.DragMove,coordinates:e})},onEnd:s(Rv.DragEnd),onCancel:s(Rv.DragCancel)});Ee.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=le.current,o=null;if(t&&i){let{cancelDrop:s}=A.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===Rv.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=Rv.DragCancel)}T.current=null,(0,gr.unstable_batchedUpdates)(()=>{d({type:e}),h(Nb.Uninitialized),we(null),D(null),k(null),Ee.current=null;let t=e===Rv.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=A.current[t];e?.(o),f({type:t,event:o})}})}}},[y]),Oe=Yy(a,(0,v.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=y.get(r);if(T.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},T.current=r,De(n,t))},[y,De]));db(a),uv(()=>{se&&m===Nb.Initializing&&h(Nb.Initialized)},[se,m]),(0,v.useEffect)(()=>{let{onDragMove:e}=A.current,{active:t,activatorEvent:n,collisions:r,over:i}=le.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:L.x,y:L.y},over:i};(0,gr.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[L.x,L.y]),(0,v.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=le.current;if(!e||T.current==null||!t||!i)return;let{onDragOver:a}=A.current,o=r.get(Se),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,gr.unstable_batchedUpdates)(()=>{we(s),a?.(c),f({type:`onDragOver`,event:c})})},[Se]),uv(()=>{le.current={activatorEvent:O,active:w,activeNode:N,collisionRect:R,collisions:xe,droppableRects:ne,draggableNodes:y,draggingNode:de,draggingNodeRect:fe,droppableContainers:x,over:Ce,scrollableAncestors:F,scrollAdjustedTranslate:L},C.current={initial:fe,translated:R}},[w,N,xe,R,y,de,fe,ne,x,Ce,F,L]),Gy({...ae,delta:b,draggingRect:R,pointerCoordinates:_e,scrollableAncestors:F,scrollableAncestorRects:I});let z=(0,v.useMemo)(()=>({active:w,activeNode:N,activeNodeRect:se,activatorEvent:O,collisions:xe,containerNodeRect:ce,dragOverlay:ue,draggableNodes:y,droppableContainers:x,droppableRects:ne,over:Ce,measureDroppableContainers:M,scrollableAncestors:F,scrollableAncestorRects:I,measuringConfiguration:te,measuringScheduled:re,windowRect:he}),[w,N,se,O,xe,ce,ue,y,x,ne,Ce,M,F,I,te,re,he]),B=(0,v.useMemo)(()=>({activatorEvent:O,activators:Oe,active:w,activeNodeRect:se,ariaDescribedById:{draggable:j},dispatch:d,draggableNodes:y,over:Ce,measureDroppableContainers:M}),[O,Oe,w,se,d,j,y,Ce,M]);return v.createElement(Mv.Provider,{value:p},v.createElement(wb.Provider,{value:B},v.createElement(Tb.Provider,{value:z},v.createElement(Mb.Provider,{value:Te},i)),v.createElement(Ob,{disabled:n?.restoreFocus===!1})),v.createElement(Lv,{...n,hiddenTextDescribedById:j}));function V(){let e=E?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=g&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),Fb=(0,v.createContext)(null),Ib=`button`,Lb=`Draggable`;function Rb(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=vv(Lb),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,v.useContext)(wb),{role:p=Ib,roleDescription:m=`draggable`,tabIndex:h=0}=i??{},g=c?.id===t,_=(0,v.useContext)(g?Mb:Fb),[y,b]=hv(),[x,S]=hv(),C=fb(o,t),w=pv(n);return uv(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:x,data:w}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,v.useMemo)(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":g&&p===Ib?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,h,g,m,u.draggable]),isDragging:g,listeners:r?void 0:C,node:y,over:f,setNodeRef:b,setActivatorNodeRef:S,transform:_}}var zb=`Droppable`,Bb={timeout:25};function Vb(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=vv(zb),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,v.useContext)(wb),u=(0,v.useRef)({disabled:n}),d=(0,v.useRef)(!1),f=(0,v.useRef)(null),p=(0,v.useRef)(null),{disabled:m,updateMeasurementsFor:h,timeout:g}={...Bb,...i},_=pv(h??r),y=rb({callback:(0,v.useCallback)(()=>{d.current?(p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(_.current)?_.current:[_.current]),p.current=null},g)):d.current=!0},[g]),disabled:m||!o}),[b,x]=hv((0,v.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),S=pv(t);return(0,v.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),(0,v.useEffect)(()=>(s({type:Rv.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:f,data:S}}),()=>s({type:Rv.UnregisterDroppable,key:a,id:r})),[r]),(0,v.useEffect)(()=>{n!==u.current.disabled&&(s({type:Rv.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:c?.id===r,node:b,over:c,setNodeRef:x}}function Hb(e){let{Avatar:t}=n_();return(0,J.jsx)(t,{...e})}function Ub({category:e,status:t}){let n=jp[e];return(0,J.jsxs)(`span`,{className:`chip chip--${e.toLowerCase()}`,children:[t??n,t&&t.toLowerCase()!==n.toLowerCase()&&(0,J.jsxs)(`span`,{className:`chip-cat`,children:[` · `,n]})]})}function Wb({insights:e,max:t=3}){if(!e.length)return null;let n=e.slice(0,t);return(0,J.jsxs)(`ul`,{className:`insight-chips`,"aria-label":`Insights`,children:[n.map(e=>(0,J.jsx)(`li`,{className:`insight insight--w${e.weight}`,children:dp[e.code]},e.code)),e.length>t&&(0,J.jsxs)(`li`,{className:`insight insight--more`,children:[`+`,e.length-t,` more`]})]})}var Gb=[`TODO`,`IN_PROGRESS`,`DONE`];function Kb(e){let t=e.filter(Vf);return(t.some(e=>e.statusCategory===`UNKNOWN`)?[...Gb,`UNKNOWN`]:Gb).map(e=>({category:e,items:t.filter(t=>t.statusCategory===e)}))}var qb=e=>e.source.area.split(`-`)[0];function Jb(e,t,n){let r=new Map;for(let i of n)qb(i)===qb(e)&&i.source.connection===e.source.connection&&i.statusCategory===t&&i.status&&r.set(i.status,(r.get(i.status)??0)+1);return[...r.entries()].sort((e,t)=>t[1]-e[1])[0]?.[0]??null}function Yb(e,t,n,r){if(t===e.statusCategory||t===`UNKNOWN`)return null;let i=Cp(e),a=jp[t],o=Jb(e,t,n),s={id:`board:${e.id}:${t}`,from:`board`,item:e.id,title:`Move ${i} to ${a}`,reason:`Dragged on the board from ${jp[e.statusCategory]} (${e.status??`no status`}).`},c=qb(e);if(c===`github`)return{...s,command:null,input:null,note:`toil has no command that sets a GitHub Projects status yet. Change ${i}'s Status field on the project board${e.url?`: ${e.url}`:``}.`};let l={text:`List the transitions the workflow offers:`,command:`jira list-transitions`,input:{dossier:r,key:e.source.key}};if(!o){let t=c===`jira`?l:{text:`List the states the work item type has:`,command:`ado work list-states`,input:{dossier:r,type:e.typeName??`User Story`}};return{...s,command:null,input:null,note:`No ${a} item in this dossier shows which status to use.`,hint:t}}return c===`jira`?{...s,command:`jira transition-issue`,input:{dossier:r,key:e.source.key,transition:o},note:`"${o}" is the status other ${a} items use; the workflow may name the transition differently.`,hint:l}:c===`ado`?{...s,command:`ado work transition`,input:{dossier:r,id:Number(e.source.key),state:o},note:null}:{...s,command:null,input:null,note:`toil has no status change for ${e.source.area} items.`}}var Xb=e=>jp[e];function Zb({item:e,others:t,onMove:n}){let{insights:r}=bp(),{Card:i}=n_(),{attributes:a,listeners:o,setNodeRef:s,transform:c,isDragging:l}=Rb({id:e.id}),u=Cp(e),d=c?{transform:`translate3d(${c.x}px, ${c.y}px, 0)`}:void 0;return(0,J.jsx)(`li`,{ref:s,style:d,className:`card card--${e.statusCategory.toLowerCase()}${l?` card--dragging`:``}`,children:(0,J.jsxs)(i,{item:e,children:[(0,J.jsxs)(`div`,{className:`card-top`,children:[(0,J.jsx)(T_,{id:e.id}),(0,J.jsx)(Ub,{category:e.statusCategory,status:e.status})]}),(0,J.jsx)(`p`,{className:`card-title`,children:e.title}),(0,J.jsxs)(`div`,{className:`card-foot`,children:[(0,J.jsxs)(`span`,{className:`who`,children:[(0,J.jsx)(Hb,{person:e.assignee}),` `,Op(e.assignee)]}),(0,J.jsx)(`span`,{className:`field`,children:Mp(e)})]}),(0,J.jsx)(Wb,{insights:hp(e,r)}),(0,J.jsxs)(`div`,{className:`card-actions`,children:[(0,J.jsxs)(`button`,{type:`button`,className:`drag`,...o,...a,children:[(0,J.jsx)(`span`,{"aria-hidden":`true`,children:`⠿`}),` Drag `,(0,J.jsxs)(`span`,{className:`sr-only`,children:[u,` to another column`]})]}),(0,J.jsxs)(Xu,{children:[(0,J.jsxs)(Pi,{className:`btn btn--small`,children:[`Move`,(0,J.jsxs)(`span`,{className:`sr-only`,children:[` `,u,` to`]}),`…`]}),(0,J.jsx)(Xl,{className:`popover`,placement:`bottom end`,children:(0,J.jsx)(Qu,{className:`menu`,"aria-label":`Move ${u} to`,onAction:e=>n(e),children:t.map(e=>(0,J.jsx)(G,{id:e,className:`menu-item`,children:Xb(e)},e))})})]})]})]})})}function Qb({category:e,items:t,all:n,onMove:r}){let{setNodeRef:i,isOver:a}=Vb({id:e}),o=`col-${e}`;return(0,J.jsxs)(`section`,{ref:i,className:`column column--${e.toLowerCase()}${a?` column--over`:``}`,"aria-labelledby":o,children:[(0,J.jsxs)(`h3`,{id:o,children:[Xb(e),` `,(0,J.jsx)(`span`,{className:`count`,children:t.length})]}),t.length?(0,J.jsx)(`ul`,{className:`cards`,children:t.map(t=>(0,J.jsx)(Zb,{item:t,others:n.filter(t=>t!==e&&t!==`UNKNOWN`),onMove:e=>r(t,e)},t.id))}):(0,J.jsx)(`p`,{className:`note`,children:`Nothing here.`})]})}function $b({items:e}){let{dossier:t,byId:n}=vp(),[r,i]=(0,v.useState)([]),[a,o]=(0,v.useState)(``),s=Vv(Bv(Ly,{activationConstraint:{distance:6}}),Bv(My)),c=Kb(e),l=c.map(e=>e.category),u=e=>{let t=n.get(String(e));return t?Cp(t):String(e)},d=(e,n)=>{let r=Yb(e,n,t.items,t.name);r?(i(e=>[r,...e.filter(e=>e.id!==r.id&&e.item!==r.item)]),o(`Proposed: ${r.title}. Nothing has changed in ${t.name}'s tracker.`)):o(`${Cp(e)} is already in ${Xb(n)}. Nothing proposed.`)};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`p`,{className:`note`,children:`One column per status category, across every tracker, each card with its own status word. Drag a card, or use its Move menu, to propose a move: nothing changes until someone applies it with toil.`}),(0,J.jsx)(Pb,{sensors:s,onDragEnd:e=>{let t=n.get(String(e.active.id));t&&e.over&&d(t,e.over.id)},accessibility:{announcements:{onDragStart:({active:e})=>`Picked up ${u(e.id)}. Moving it proposes a change; nothing is changed.`,onDragOver:({active:e,over:t})=>t?`${u(e.id)} is over ${Xb(t.id)}.`:`${u(e.id)} is not over a column.`,onDragEnd:({active:e,over:t})=>t?`Dropped ${u(e.id)} on ${Xb(t.id)}.`:`Dropped ${u(e.id)} outside the columns. Nothing proposed.`,onDragCancel:({active:e})=>`Stopped dragging ${u(e.id)}. Nothing proposed.`},screenReaderInstructions:{draggable:`To pick up a card, press Space or Enter. Use the arrow keys to move it over a column, then press Space or Enter to propose the move, or Escape to cancel.`}},children:(0,J.jsx)(`div`,{className:`board`,style:{gridTemplateColumns:`repeat(${c.length}, minmax(15rem, 1fr))`},children:c.map(e=>(0,J.jsx)(Qb,{category:e.category,items:e.items,all:l,onMove:d},e.category))})}),(0,J.jsx)(`p`,{className:`sr-only`,role:`status`,children:a}),r.length>0&&(0,J.jsxs)(`div`,{className:`proposals`,"aria-label":`Proposed moves`,role:`group`,children:[(0,J.jsx)(`h3`,{children:`Proposed moves`}),r.map(e=>(0,J.jsx)(Y_,{proposal:e,onDismiss:()=>i(t=>t.filter(t=>t.id!==e.id))},e.id))]})]})}var ex=560,tx={left:34,right:12,top:14,bottom:26},nx=e=>Math.round(e*10)/10;function rx({caption:e,head:t,rows:n}){return(0,J.jsxs)(`details`,{className:`figures`,children:[(0,J.jsx)(`summary`,{children:`Show the figures`}),(0,J.jsx)(h_,{label:e,caption:e,rows:n.map((e,t)=>({i:t,cells:e})),rowKey:e=>String(e.i),columns:t.map((e,t)=>({header:e,label:e,rowHeader:t===0,cell:e=>e.cells[t]}))})]})}function ix({label:e,height:t,children:n}){let r=(0,v.useId)(),i=`chart-fill-${r.replace(/[^\w-]/g,``)}`;return(0,J.jsxs)(`svg`,{className:`chart`,viewBox:`0 0 ${ex} ${t}`,role:`img`,"aria-labelledby":r,preserveAspectRatio:`xMidYMid meet`,style:{"--chart-fill":`url(#${i})`},children:[(0,J.jsx)(`title`,{id:r,children:e}),(0,J.jsx)(`defs`,{children:(0,J.jsxs)(`linearGradient`,{id:i,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,J.jsx)(`stop`,{offset:`0`,className:`chart-stop chart-stop--top`}),(0,J.jsx)(`stop`,{offset:`1`,className:`chart-stop chart-stop--bottom`})]})}),n]})}var ax=e=>{let t=e<=5?1:e<=12?2:e<=30?5:10;return Array.from({length:Math.floor(e/t)+1},(e,n)=>n*t)};function ox({b:e,sprint:t}){let n=e.days.length+e.ahead,r=Math.max(1,...e.days.map(e=>e.scope)),i=e=>tx.left+(ex-tx.left-tx.right)*(e+1)/Math.max(1,n),a=e=>220-tx.bottom-(220-tx.top-tx.bottom)*e/r,o=tx.left,s=[`${o},${a(e.days[0]?.scope??0)}`,...e.days.map((e,t)=>`${i(t)},${a(e.scope)}`)].join(` `),c=[`${o},${a(0)}`,...e.days.map((e,t)=>`${i(t)},${a(e.done)}`)].join(` `),l=e.days.at(-1),u=`${c} ${i(e.days.length-1)},${a(0)} ${o},${a(0)}`,d=l?`${t} burn-up: ${l.done} of ${l.scope} points done after ${e.days.length} days, with ${e.ahead} days to go.${e.days[0]&&l.scope>e.days[0].scope?` Scope grew from ${e.days[0].scope} to ${l.scope} points.`:``}`:`${t} burn-up: no days yet.`;return(0,J.jsxs)(`figure`,{className:`chart-figure`,children:[(0,J.jsxs)(ix,{label:d,height:220,children:[ax(r).map(e=>(0,J.jsxs)(`g`,{children:[(0,J.jsx)(`line`,{className:`grid`,x1:tx.left,x2:ex-tx.right,y1:a(e),y2:a(e)}),(0,J.jsx)(`text`,{className:`axis`,x:tx.left-6,y:a(e)+4,textAnchor:`end`,children:e})]},e)),(0,J.jsx)(`line`,{className:`today`,x1:i(e.days.length-1),x2:i(e.days.length-1),y1:tx.top,y2:220-tx.bottom}),(0,J.jsx)(`polygon`,{className:`area`,points:u}),(0,J.jsx)(`polyline`,{className:`line line--scope`,points:s,pathLength:1}),(0,J.jsx)(`polyline`,{className:`line line--done`,points:c,pathLength:1}),(0,J.jsx)(`text`,{className:`axis`,x:o,y:212,children:`Start`}),(0,J.jsx)(`text`,{className:`axis`,x:i(e.days.length-1),y:212,textAnchor:`middle`,children:`Today`}),(0,J.jsx)(`text`,{className:`axis`,x:ex-tx.right,y:212,textAnchor:`end`,children:`End`})]}),(0,J.jsxs)(`figcaption`,{className:`legend`,children:[(0,J.jsx)(`span`,{className:`key-swatch key-swatch--done`,"aria-hidden":`true`}),` Done points `,(0,J.jsx)(`span`,{className:`key-swatch key-swatch--scope`,"aria-hidden":`true`}),` Scope`,e.unplaced.length>0&&(0,J.jsxs)(`span`,{className:`note`,children:[` `,e.unplaced.length,` done items have no recorded finish and aren't drawn.`]})]}),(0,J.jsx)(rx,{caption:`${t} burn-up by day`,head:[`Day`,`Scope (points)`,`Done (points)`],rows:e.days.map(e=>[Ep(e.at),e.scope,e.done])})]})}function sx({weeks:e}){let t=Math.max(1,...e.map(e=>e.items.length)),n=(ex-tx.left-tx.right)/e.length,r=Math.min(48,n*.6),i=e=>74-56*e/t,a=`Throughput: ${e.reduce((e,t)=>e+t.items.length,0)} items finished in ${e.length} weeks, ${e.map(e=>e.items.length).join(`, `)} by week, oldest first. The last week is still running.`;return(0,J.jsxs)(`figure`,{className:`chart-figure`,children:[(0,J.jsxs)(ix,{label:a,height:96,children:[(0,J.jsx)(`line`,{className:`grid`,x1:tx.left,x2:ex-tx.right,y1:i(0),y2:i(0)}),e.map((e,t)=>{let a=tx.left+n*t+n/2;return(0,J.jsxs)(`g`,{children:[(0,J.jsx)(`rect`,{className:`bar${e.partial?` bar--partial`:``}`,x:a-r/2,y:i(e.items.length),width:r,height:Math.max(0,i(0)-i(e.items.length)),rx:3}),(0,J.jsx)(`text`,{className:`axis axis--value`,x:a,y:i(e.items.length)-5,textAnchor:`middle`,children:e.items.length}),(0,J.jsx)(`text`,{className:`axis`,x:a,y:90,textAnchor:`middle`,children:Ep(e.start).replace(/ \d{4}$/,``)})]},e.start)})]}),(0,J.jsx)(rx,{caption:`Items finished per week`,head:[`Week of`,`Finished`],rows:e.map(e=>[`${Ep(e.start)}${e.partial?` (so far)`:``}`,e.items.length])})]})}function cx({points:e,p85:t}){let n=e.map(e=>Date.parse(e.end)),r=Math.min(...n),i=Math.max(...n),a=Math.max(1,i-r),o=Math.max(1,...e.map(e=>e.days),t??0),s=e=>tx.left+10+(ex-tx.left-tx.right-20)*(e-r)/a,c=e=>200-tx.bottom-(200-tx.top-tx.bottom)*e/(o*1.1),l=`Cycle time: ${e.length} finished items, from ${nx(Math.min(...e.map(e=>e.days)))} to ${nx(o)} days.${t===null?``:` 85% finished within ${nx(t)} days.`}`;return(0,J.jsxs)(`figure`,{className:`chart-figure`,children:[(0,J.jsxs)(ix,{label:l,height:200,children:[ax(Math.ceil(o)).map(e=>(0,J.jsxs)(`g`,{children:[(0,J.jsx)(`line`,{className:`grid`,x1:tx.left,x2:ex-tx.right,y1:c(e),y2:c(e)}),(0,J.jsx)(`text`,{className:`axis`,x:tx.left-6,y:c(e)+4,textAnchor:`end`,children:e})]},e)),t!==null&&(0,J.jsxs)(`g`,{children:[(0,J.jsx)(`line`,{className:`p85`,x1:tx.left,x2:ex-tx.right,y1:c(t),y2:c(t)}),(0,J.jsxs)(`text`,{className:`axis axis--p85`,x:ex-tx.right,y:c(t)-5,textAnchor:`end`,children:[`85% within `,nx(t),` days`]})]}),e.map(e=>(0,J.jsx)(`circle`,{className:`dot`,cx:s(Date.parse(e.end)),cy:c(e.days),r:6},e.id)),(0,J.jsx)(`text`,{className:`axis`,x:tx.left,y:192,children:Ep(new Date(r).toISOString())}),(0,J.jsx)(`text`,{className:`axis`,x:ex-tx.right,y:192,textAnchor:`end`,children:Ep(new Date(i).toISOString())})]}),(0,J.jsx)(rx,{caption:`Cycle time per finished item`,head:[`Item`,`Finished`,`Cycle time`],rows:e.map(e=>[e.label,Ep(e.end),`${nx(e.days)} days`])})]})}var lx=864e5,ux=e=>e.estimate?.unit===`points`?e.estimate.value:0;function dx(e,t){let n=Date.parse(e.sprint.start),r=Date.parse(e.sprint.end),i=Math.min(Date.parse(t),r),a=[],o=e.items.filter(e=>e.statusCategory===`DONE`&&ux(e)>0&&!Uf(e)).map(e=>e.id);for(let t=Math.floor(n/lx)*lx+lx-1;t-lx+1<=i;t+=lx){let n=new Date(Math.min(t,i)).toISOString(),r=0,o=0;for(let t of e.items){let i=e.entries.get(t.id);(i.kind!==`added`||i.at!==null&&i.at<=n)&&(r+=ux(t));let a=t.statusCategory===`DONE`?Uf(t):null;a&&a<=n&&(o+=ux(t))}a.push({at:n,scope:r,done:o})}let s=Date.parse(a.at(-1)?.at??new Date(i).toISOString());return{days:a,ahead:Math.max(0,Math.ceil((r-s)/lx)),unplaced:o}}var fx=e=>Math.round(e*10)/10,px=e=>`${fx(e)} ${fx(e)===1?`day`:`days`}`;function mx({list:e,what:t}){return e.length?(0,J.jsxs)(`div`,{className:`unknowns`,children:[(0,J.jsxs)(`p`,{className:`note`,children:[e.length,` `,e.length===1?`item has`:`items have`,` no `,t,` the data can show:`]}),(0,J.jsx)(`ul`,{className:`plain`,children:e.map(e=>(0,J.jsxs)(`li`,{children:[(0,J.jsx)(T_,{id:e.id}),` `,(0,J.jsxs)(`span`,{className:`field`,children:[`Unknown: `,e.reason,`.`]})]},e.id))})]}):null}function hx(){let{now:e}=vp(),{health:t}=bp(),{EmptyState:n}=n_();return t?(0,J.jsx)(ox,{b:dx(t,e),sprint:t.sprint.name}):(0,J.jsx)(n,{message:`No sprint is running, so there is nothing to burn up.`})}function gx(){let{dossier:e,now:t}=vp(),n=Yf(e.items,t),r=n.weeks.reduce((e,t)=>e+t.items.length,0),i=n.weeks.filter(e=>!e.partial),a=i.length?i.reduce((e,t)=>e+t.items.length,0)/i.length:0;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`p`,{className:`big-figure`,children:[(0,J.jsx)(`span`,{className:`big-number`,children:fx(a)}),` items a week`,(0,J.jsxs)(`span`,{className:`note`,children:[` over the last `,i.length,` full weeks; `,r,` finished in `,n.weeks.length,` weeks.`]})]}),(0,J.jsx)(sx,{weeks:n.weeks}),(0,J.jsx)(`p`,{className:`note`,children:`Counted in the week of each item's last move into Done, from its history.`}),(0,J.jsx)(mx,{list:n.unknown,what:`finish date`})]})}function _x(){let{dossier:e,byId:t}=vp(),{insights:n}=bp(),r=Y(e.items),i=r.known.map(e=>{let n=t.get(e.id);return{id:e.id,label:`${Sp(n.source.area)} ${Cp(n)}`,end:e.end,days:e.days}});return(0,J.jsxs)(J.Fragment,{children:[i.length?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`p`,{className:`big-figure`,children:[n.p85?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:`big-number`,children:fx(n.p85.days)}),` days for `,85,`% of items`]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:`big-number`,children:i.length}),` `,i.length===1?`item`:`items`,` timed`]}),(0,J.jsx)(`span`,{className:`note`,children:` From the first move into In progress to the last into Done.`})]}),(0,J.jsx)(cx,{points:i,p85:n.p85?.days??null}),!n.p85&&(0,J.jsxs)(`p`,{className:`note`,children:[`Fewer than `,3,` cycle times, so no percentile yet, and nothing is flagged as aging.`]})]}):(0,J.jsx)(`p`,{children:`No finished item here has a cycle time the data can show.`}),(0,J.jsx)(mx,{list:r.unknown,what:`cycle time`})]})}function vx(){let{dossier:e,now:t,byId:n}=vp(),{insights:r}=bp(),i=qf(e.items,t),a=Math.max(1,...i.known.map(e=>e.days),r.p85?.days??0);return(0,J.jsxs)(J.Fragment,{children:[i.known.length?(0,J.jsx)(`ul`,{className:`aging`,children:i.known.map(e=>{let t=n.get(e.id),i=r.p85!==null&&e.days>r.p85.days;return(0,J.jsxs)(`li`,{className:i?`aging--over`:void 0,children:[(0,J.jsxs)(`div`,{className:`aging-row`,children:[(0,J.jsx)(T_,{id:e.id,withTitle:!0}),(0,J.jsxs)(`span`,{className:`aging-days`,children:[px(e.days),i&&(0,J.jsxs)(`span`,{className:`flag`,children:[` past p`,85]})]})]}),(0,J.jsxs)(`div`,{className:`aging-bar`,"aria-hidden":`true`,children:[(0,J.jsx)(`span`,{style:{width:`${100*e.days/a}%`}}),r.p85&&(0,J.jsx)(`i`,{style:{left:`${100*r.p85.days/a}%`}})]}),(0,J.jsxs)(`p`,{className:`evidence`,children:[(0,J.jsx)(Hb,{person:t.assignee}),` `,t.status,`, in progress since `,Dp(e.since),`. Source: `,(0,J.jsx)(`code`,{children:`history.transitions`})]})]},e.id)})}):(0,J.jsx)(`p`,{children:`Nothing in progress has a recorded start.`}),r.p85&&(0,J.jsxs)(`p`,{className:`note`,children:[`The marker on each bar is p`,85,` of this dossier's cycle times, `,px(r.p85.days),`.`]}),(0,J.jsx)(mx,{list:i.unknown,what:`start`})]})}function yx(){let{insights:e}=bp(),t=gp(e);return t.length?(0,J.jsx)(`ol`,{className:`attention`,children:t.map((e,t)=>(0,J.jsxs)(`li`,{className:`attention-item attention-item--w${e.insights[0].weight}`,children:[(0,J.jsx)(`span`,{className:`rank`,"aria-hidden":`true`,children:t+1}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(T_,{id:e.id,withTitle:!0}),(0,J.jsx)(Wb,{insights:e.insights,max:4}),(0,J.jsx)(`ul`,{className:`reasons`,children:e.insights.map(e=>(0,J.jsxs)(`li`,{children:[(0,J.jsxs)(`span`,{className:`sr-only`,children:[dp[e.code],`: `]}),(0,J.jsx)(E_,{text:e.text}),`. `,(0,J.jsxs)(`span`,{className:`field`,children:[`Source: `,(0,J.jsx)(`code`,{children:e.evidence})]})]},e.code))})]})]},e.id))}):(0,J.jsx)(`p`,{children:`Nothing open needs attention.`})}var bx=(0,v.lazy)(()=>ig(()=>import(`./Graph-IKubvexT.js`).then(e=>({default:e.Graph})),__vite__mapDeps([3,4]),import.meta.url)),xx=e=>`${e} ${e===1?`point`:`points`}`,Sx=e=>xp[e]??e,Cx=e=>e.slice(e.lastIndexOf(`#`));function wx({of:e}){return(0,J.jsx)(`span`,{className:`outcome outcome--${e.outcome}`,children:e.state})}function Tx({change:e}){let t=e.kind===`pull-request`?`${Cx(e.id)} ${e.title}`:e.title;return e.url?(0,J.jsx)(`a`,{href:e.url,children:t}):(0,J.jsx)(`span`,{children:t})}function Ex({ids:e}){return e.length?(0,J.jsx)(`span`,{className:`cites`,children:e.map((e,t)=>(0,J.jsxs)(`span`,{children:[t>0&&`, `,(0,J.jsx)(T_,{id:e})]},e))}):(0,J.jsx)(`span`,{className:`note`,children:`No work item named`})}function Dx(e){return[{header:`Work item`,label:`Work item`,rowHeader:!0,cell:e=>(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(T_,{id:e.item.id,withTitle:!0}),(0,J.jsxs)(`span`,{className:`field`,children:[` `,Mp(e.item)]})]})},{header:`Status`,label:`Status`,cell:e=>(0,J.jsxs)(J.Fragment,{children:[e.item.status,e.item.status?.toLowerCase()!==jp[e.item.statusCategory].toLowerCase()&&(0,J.jsxs)(`span`,{className:`field`,children:[` (`,jp[e.item.statusCategory],`)`]})]})},{header:`Pull requests`,label:`Pull requests`,cell:e=>e.changes.length?(0,J.jsx)(`ul`,{className:`plain`,children:e.changes.map(e=>(0,J.jsxs)(`li`,{children:[(0,J.jsx)(Tx,{change:e}),` `,(0,J.jsx)(wx,{of:e})]},e.id))}):`None linked`},{header:`Builds`,label:`Builds`,cell:t=>t.changes.length?(0,J.jsx)(`ul`,{className:`plain`,children:t.changes.map(t=>{let n=e.filter(e=>e.builds===t.id).sort((e,t)=>e.at<t.at?1:-1)[0];return(0,J.jsx)(`li`,{children:n?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Tx,{change:n}),` `,(0,J.jsx)(wx,{of:n})]}):(0,J.jsxs)(`span`,{className:`note`,children:[`No build for `,Cx(t.id)]})},t.id)})}):`None`},{header:`Deployed to`,label:`Deployed to`,cell:e=>e.deployedTo.length?e.deployedTo.map(e=>e.environment).join(`, `):`Not deployed`},{header:`Check`,label:`Check`,cell:e=>e.flags.length?(0,J.jsx)(`ul`,{className:`plain flags`,children:e.flags.map(e=>(0,J.jsx)(`li`,{children:tv[e]},e))}):`No gaps`}]}function Ox(){let{dossier:e}=vp(),{EmptyState:t,Loading:n}=n_(),r=_g(),[i,a]=(0,v.useState)(!1),{health:o}=bp();kx(o);let s=ev(o?.items??e.items,e.changes,e.deployments),c=i?s.filter(e=>e.flags.length):s,l=e.changes.filter(e=>e.kind===`pull-request`),u=e.changes.filter(e=>e.kind===`build`),d=[...e.calls.work,...e.calls.prs,...e.calls.builds,...e.calls.deployments];return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`view-head`,children:[(0,J.jsx)(`p`,{className:`eyebrow`,children:`Dossier`}),(0,J.jsx)(`h1`,{tabIndex:-1,children:e.name}),e.description&&(0,J.jsx)(`p`,{className:`lede`,children:e.description}),(0,J.jsx)(`ul`,{className:`sources`,"aria-label":`Sources`,children:e.sources.map(e=>(0,J.jsxs)(`li`,{children:[Sx(e.area),` `,e.connection&&(0,J.jsx)(`code`,{children:e.connection})]},e.area))}),(0,J.jsx)(Q_,{calls:e.calls.dossier})]}),(0,J.jsxs)(`div`,{className:`dashboard`,children:[(0,J.jsxs)(`div`,{className:`dash-main`,children:[(0,J.jsx)($_,{id:`sprint`,title:r(`sprint`,o?`${o.sprint.name}: day ${o.days.gone} of ${o.days.total}`:`Sprint`),calls:e.calls.work,children:o?(0,J.jsx)(jx,{h:o}):(0,J.jsx)(t,{message:`No sprint is running in this dossier's work items.`})}),(0,J.jsxs)($_,{id:`attention`,title:`Needs attention`,calls:d,alerts:!1,children:[(0,J.jsx)(`p`,{className:`note`,children:`Open items ranked by their insights, weightiest first. Each insight names the data it rests on.`}),(0,J.jsx)(yx,{})]}),(0,J.jsx)($_,{id:`board`,title:r(`board`,o?`${o.sprint.name} board`:`Board`),calls:e.calls.work,alerts:!1,children:(0,J.jsx)($b,{items:o?.items??e.items})}),(0,J.jsxs)(`div`,{className:`panel-grid panel-grid--two`,children:[(0,J.jsx)($_,{id:`throughput`,title:`Throughput`,calls:e.calls.work,alerts:!1,children:(0,J.jsx)(gx,{})}),(0,J.jsx)($_,{id:`cycle`,title:`Cycle time`,calls:e.calls.work,alerts:!1,children:(0,J.jsx)(_x,{})})]}),(0,J.jsxs)($_,{id:`aging`,title:`Aging work in progress`,calls:e.calls.work,alerts:!1,children:[(0,J.jsx)(`p`,{className:`note`,children:`How long each item in progress has been in progress, from its history, oldest first.`}),(0,J.jsx)(vx,{})]}),(0,J.jsx)($_,{id:`graph`,title:r(`dependencies`,`Dependencies`),calls:e.calls.work,alerts:!1,children:(0,J.jsx)(v.Suspense,{fallback:(0,J.jsx)(n,{message:`Drawing the graph…`}),children:(0,J.jsx)(bx,{})})}),(0,J.jsxs)($_,{id:`trace`,title:`Stories, pull requests, builds and deployments`,calls:d,alerts:!1,children:[(0,J.jsx)(`p`,{className:`note`,children:`Each work item with the pull requests that name it, their latest builds, and the environments running them.`}),(0,J.jsxs)(Da,{className:`check`,isSelected:i,onChange:a,children:[(0,J.jsx)(`span`,{className:`box`,"aria-hidden":`true`,children:i?`✓`:``}),`Only items with something to check`]}),(0,J.jsx)(h_,{className:`trace`,label:`Work items and their delivery`,wide:!0,rows:c,rowKey:e=>e.item.id,columns:Dx(u)})]}),(0,J.jsxs)(`div`,{className:`panel-grid`,children:[(0,J.jsx)($_,{id:`prs`,title:`Pull requests`,calls:e.calls.prs,children:l.length?(0,J.jsx)(`ul`,{className:`rows`,children:l.map(e=>(0,J.jsxs)(`li`,{children:[(0,J.jsx)(Tx,{change:e}),` `,(0,J.jsx)(wx,{of:e}),(0,J.jsxs)(`p`,{className:`evidence`,children:[(0,J.jsx)(Ex,{ids:e.items}),`. `,e.outcome===`merged`?`Merged`:`Opened`,` `,Dp(e.at),`.`]})]},e.id))}):(0,J.jsx)(t,{message:`No pull requests for this dossier.`})}),(0,J.jsx)($_,{id:`builds`,title:`Builds`,calls:e.calls.builds,children:u.length?(0,J.jsx)(`ul`,{className:`rows`,children:u.map(e=>(0,J.jsxs)(`li`,{children:[(0,J.jsx)(Tx,{change:e}),` `,(0,J.jsx)(wx,{of:e}),(0,J.jsxs)(`p`,{className:`evidence`,children:[`For pull request `,e.builds?Cx(e.builds):`none`,`, `,Dp(e.at),`.`]})]},e.id))}):(0,J.jsx)(t,{message:`No builds for this dossier's pull requests.`})}),(0,J.jsx)($_,{id:`deployments`,title:`Deployments`,calls:e.calls.deployments,children:e.deployments.length?(0,J.jsx)(`ul`,{className:`rows`,children:e.deployments.map(e=>(0,J.jsx)(Ax,{d:e},e.id))}):(0,J.jsx)(t,{message:`This dossier names no environment to read deployments from.`})})]})]}),(0,J.jsx)(X_,{})]})]})}function kx(e){let t=e&&e.days.total>1?Math.min(1,Math.max(0,(e.days.gone-1)/(e.days.total-1))):null;(0,v.useEffect)(()=>{if(t===null)return;let e=document.documentElement;return e.style.setProperty(`--sprint-progress`,t.toFixed(3)),()=>{e.style.removeProperty(`--sprint-progress`)}},[t])}function Ax({d:e}){let t=e.url?(0,J.jsx)(`a`,{href:e.url,children:e.name}):(0,J.jsx)(`span`,{children:e.name});return(0,J.jsxs)(`li`,{children:[(0,J.jsx)(`h3`,{className:`env`,children:e.environment}),(0,J.jsxs)(`p`,{children:[t,` `,(0,J.jsx)(`span`,{className:`outcome outcome--${e.outcome}`,children:e.state})]}),(0,J.jsxs)(`p`,{className:`evidence`,children:[e.version?`${e.version}, `:``,`commit `,(0,J.jsx)(`code`,{children:e.commit}),`.`,` `,e.unknownCommit?(0,J.jsx)(`span`,{className:`failure`,children:`No listed pull request merged as this commit.`}):(0,J.jsxs)(J.Fragment,{children:[`Includes `,e.includes.length,` merged pull `,e.includes.length===1?`request`:`requests`,e.items.length?(0,J.jsxs)(J.Fragment,{children:[`, for `,(0,J.jsx)(Ex,{ids:e.items})]}):`, none for this sprint`,`.`]})]})]})}function jx({h:e}){let t=e.done.points+e.remaining.points,n=t=>e.items.filter(n=>e.entries.get(n.id)?.kind===t);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`p`,{className:`note`,children:[Ep(e.sprint.start),` to `,Ep(e.sprint.end),`, working days only.`]}),(0,J.jsxs)(`ul`,{className:`stats`,"aria-label":`Sprint figures`,children:[(0,J.jsx)(Mx,{label:`Done`,value:`${e.done.points} of ${t}`,note:`points, ${e.done.count} items`}),(0,J.jsx)(Mx,{label:`Planned`,value:String(e.planned.points),note:`points, ${e.planned.count} items`}),(0,J.jsx)(Mx,{label:`Added mid-sprint`,value:String(e.added.points),note:`points, ${e.added.count} items`}),(0,J.jsx)(Mx,{label:`Carried over`,value:String(e.carried.points),note:`points, ${e.carried.count} items`})]}),(0,J.jsx)(`div`,{className:`meter`,role:`img`,"aria-label":`${e.done.points} of ${t} points done`,children:(0,J.jsx)(`span`,{style:{width:`${t?100*e.done.points/t:0}%`}})}),(0,J.jsx)(hx,{}),e.otherUnits.length>0&&(0,J.jsxs)(`p`,{className:`note`,children:[`Points totals leave out items estimated in other units:`,` `,e.otherUnits.map((e,t)=>(0,J.jsxs)(`span`,{children:[t>0&&`, `,(0,J.jsx)(T_,{id:e})]},e)),`.`]}),(0,J.jsx)(`h3`,{children:`At risk`}),e.risks.length?(0,J.jsx)(`ul`,{className:`rows`,children:e.risks.map(e=>(0,J.jsxs)(`li`,{children:[(0,J.jsx)(T_,{id:e.id,withTitle:!0}),(0,J.jsx)(`ul`,{className:`reasons`,children:e.reasons.map((e,t)=>(0,J.jsx)(`li`,{children:(0,J.jsx)(E_,{text:up(e)})},t))})]},e.id))}):(0,J.jsx)(`p`,{children:`Nothing.`}),[`added`,`carried`].map(t=>(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`h3`,{children:t===`added`?`Added after the sprint started`:`Carried over`}),n(t).length?(0,J.jsx)(`ul`,{className:`rows`,children:n(t).map(t=>{let n=e.entries.get(t.id);return(0,J.jsxs)(`li`,{children:[(0,J.jsx)(T_,{id:t.id,withTitle:!0}),(0,J.jsxs)(`p`,{className:`evidence`,children:[n.from?`From ${n.from}`:`Added`,n.at?` on ${Dp(n.at)}`:``,`, `,xx(t.estimate?.unit===`points`?t.estimate.value:0),t.estimate?``:` (no estimate)`,`. Source: `,(0,J.jsx)(`code`,{children:n.evidence})]})]},t.id)})}):(0,J.jsx)(`p`,{children:`None.`})]},t))]})}function Mx({label:e,value:t,note:n}){return(0,J.jsxs)(`li`,{className:`stat`,children:[(0,J.jsx)(`span`,{className:`stat-label`,children:e}),(0,J.jsx)(`span`,{className:`stat-value`,children:t}),(0,J.jsx)(`span`,{className:`stat-note`,children:n})]})}function Nx({dossiers:e,calls:t}){let{EmptyState:n}=n_();return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`view-head`,children:[(0,J.jsx)(`h1`,{tabIndex:-1,children:`Dossiers`}),(0,J.jsx)(`p`,{className:`lede`,children:`Each dossier is one body of work: its repositories, its tracker, its pipelines and its environments. Pick one to see its stories, pull requests, builds and deployments together.`})]}),e.length===0?(0,J.jsx)(n,{message:`toil sees no dossiers yet. A dossier is made with toil dossiers init.`}):(0,J.jsx)(d_,{className:`dossiers`,children:e.map(e=>(0,J.jsx)(`li`,{children:(0,J.jsxs)(f_,{className:`dossier-card`,"aria-labelledby":`dossier-${e.name}`,children:[(0,J.jsx)(`h2`,{id:`dossier-${e.name}`,children:(0,J.jsx)(`a`,{href:kp(e.name),children:e.name})}),e.description&&(0,J.jsx)(`p`,{children:e.description}),(0,J.jsxs)(`dl`,{className:`facts`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`dt`,{children:`Sources`}),(0,J.jsx)(`dd`,{children:e.sources.map(e=>xp[e.area]??e.area).join(`, `)})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`dt`,{children:`Environments`}),(0,J.jsx)(`dd`,{children:e.environments.length?e.environments.join(`, `):`None named`})]})]})]})},e.name))}),(0,J.jsx)(Q_,{calls:t})]})}var Px={blocks:[`Blocks`,`Blocked by`],relates:[`Relates to`,`Relates to`],duplicates:[`Duplicates`,`Duplicated by`],implements:[`Implements`,`Implemented by`],other:[`Linked to`,`Linked from`]};function Fx({id:e}){let{byId:t,dossier:n,now:r}=vp(),i=hg(),{insights:a}=bp(),{EmptyState:o}=n_(),s=t.get(e);if(!s)return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`h1`,{tabIndex:-1,children:`No such item`}),(0,J.jsx)(o,{message:`The dossier has no item ${e}.`,children:(0,J.jsx)(`p`,{children:(0,J.jsxs)(`a`,{href:kp(n.name),children:[`Back to `,n.name]})})})]});let c=n.changes.filter(t=>t.items.includes(e)),l=n.deployments.filter(t=>t.items.includes(e)),u=np(s),d=Sp(s.source.area),f=hp(s,a),p=Wf(s),m=Kf(s,r),h=e=>Math.round(e*10)/10;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`view-head`,children:[(0,J.jsxs)(`p`,{className:`eyebrow`,children:[d,` `,Cp(s)]}),(0,J.jsx)(`h1`,{tabIndex:-1,children:s.title}),(0,J.jsxs)(`p`,{className:`item-meta`,children:[(0,J.jsx)(Ub,{category:s.statusCategory,status:s.status}),` `,(0,J.jsx)(Hb,{person:s.assignee}),` `,Op(s.assignee),s.url&&(0,J.jsxs)(J.Fragment,{children:[` · `,(0,J.jsxs)(`a`,{href:s.url,children:[`Open in `,d]})]})]})]}),(0,J.jsxs)(f_,{as:`section`,className:`panel insights-panel`,"aria-labelledby":`insights`,children:[(0,J.jsx)(`h2`,{id:`insights`,children:`Insights`}),f.length?(0,J.jsx)(`ul`,{className:`rows`,children:f.map(e=>(0,J.jsxs)(`li`,{className:`insight-row insight-row--w${e.weight}`,children:[(0,J.jsx)(`span`,{className:`insight insight--w${e.weight}`,children:dp[e.code]}),` `,(0,J.jsx)(E_,{text:e.text}),`.`,` `,(0,J.jsxs)(`span`,{className:`field`,children:[`Source: `,(0,J.jsx)(`code`,{children:e.evidence})]})]},e.code))}):(0,J.jsx)(`p`,{children:s.statusCategory===`DONE`?`Done: nothing to act on.`:`Nothing stands out.`}),(0,J.jsx)(`p`,{className:`note`,children:p?p.days===null?`Cycle time unknown: ${p.reason}.`:`Cycle time ${h(p.days)} days, from ${Dp(p.start)} to ${Dp(p.end)}.`:m?m.days===null?`Time in progress unknown: ${m.reason}.`:`In progress for ${h(m.days)} days, since ${Dp(m.since)}.`:`Not started.`})]}),(0,J.jsxs)(`div`,{className:`item-grid`,children:[(0,J.jsxs)(`section`,{"aria-labelledby":`fields`,children:[(0,J.jsx)(`h2`,{id:`fields`,children:`Fields`}),(0,J.jsxs)(`dl`,{className:`fields`,children:[(0,J.jsx)(`dt`,{children:`Source`}),(0,J.jsxs)(`dd`,{children:[d,`, connection `,(0,J.jsx)(`code`,{children:s.source.connection}),`, read with `,(0,J.jsxs)(`code`,{children:[`toil `,s.source.command]})]}),(0,J.jsx)(`dt`,{children:`Type`}),(0,J.jsx)(`dd`,{children:D_(s,i)}),(0,J.jsx)(`dt`,{children:`Status`}),(0,J.jsxs)(`dd`,{children:[s.status??`None`,` (`,jp[s.statusCategory],`)`,s.resolution&&`, resolution ${s.resolution}`]}),(0,J.jsx)(`dt`,{children:`Estimate`}),(0,J.jsxs)(`dd`,{children:[Mp(s),s.estimate&&(0,J.jsxs)(J.Fragment,{children:[`, from `,(0,J.jsx)(`code`,{children:s.estimate.field})]})]}),(0,J.jsx)(`dt`,{children:`Assignee`}),(0,J.jsx)(`dd`,{children:Op(s.assignee)}),(0,J.jsx)(`dt`,{children:`Priority`}),(0,J.jsx)(`dd`,{children:s.priority??`None`}),(0,J.jsx)(`dt`,{children:`Sprint`}),(0,J.jsxs)(`dd`,{children:[s.iteration?s.iteration.path??s.iteration.name:`None`,s.iteration&&u.kind!==`planned`&&(0,J.jsxs)(J.Fragment,{children:[` `,`(`,u.kind===`added`?`added mid-sprint`:`carried over from ${u.from}`,`, source `,(0,J.jsx)(`code`,{children:u.evidence}),`)`]})]}),(0,J.jsx)(`dt`,{children:`Parent`}),(0,J.jsx)(`dd`,{children:s.parent?(0,J.jsx)(T_,{id:s.parent,withTitle:!0}):`None`}),(0,J.jsx)(`dt`,{children:`Labels`}),(0,J.jsx)(`dd`,{children:s.labels.length?s.labels.join(`, `):`None`}),(0,J.jsx)(`dt`,{children:`Created`}),(0,J.jsx)(`dd`,{children:s.created?Dp(s.created):`Unknown`}),(0,J.jsx)(`dt`,{children:`Updated`}),(0,J.jsx)(`dd`,{children:s.updated?Dp(s.updated):`Unknown`}),s.resolved&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`dt`,{children:`Resolved`}),(0,J.jsx)(`dd`,{children:Dp(s.resolved)})]})]})]}),(0,J.jsxs)(`section`,{"aria-labelledby":`related`,children:[(0,J.jsx)(`h2`,{id:`related`,children:`Related work`}),s.children.length>0&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`h3`,{children:`Children`}),(0,J.jsx)(`ul`,{className:`rows`,children:s.children.map(e=>(0,J.jsx)(`li`,{children:(0,J.jsx)(T_,{id:e,withTitle:!0})},e))})]}),(0,J.jsx)(`h3`,{children:`Links`}),s.links.length?(0,J.jsx)(`ul`,{className:`rows`,children:s.links.map((e,t)=>(0,J.jsxs)(`li`,{children:[Px[e.type][e.direction===`outward`?0:1],` `,(0,J.jsx)(T_,{id:e.target,withTitle:!0}),` `,(0,J.jsxs)(`span`,{className:`field`,children:[`(`,e.name,`)`]})]},t))}):(0,J.jsx)(`p`,{children:`None.`}),(0,J.jsx)(`h3`,{children:`Pull requests and builds`}),c.length?(0,J.jsx)(`ul`,{className:`rows`,children:c.map(e=>(0,J.jsxs)(`li`,{children:[e.url?(0,J.jsx)(`a`,{href:e.url,children:e.title}):e.title,` `,(0,J.jsx)(`span`,{className:`outcome outcome--${e.outcome}`,children:e.state}),` `,(0,J.jsxs)(`span`,{className:`field`,children:[`(`,(0,J.jsxs)(`code`,{children:[`toil `,e.command]}),`)`]})]},e.id))}):(0,J.jsx)(`p`,{children:`None linked.`}),(0,J.jsx)(`h3`,{children:`Deployed to`}),l.length?(0,J.jsx)(`ul`,{className:`rows`,children:l.map(e=>(0,J.jsxs)(`li`,{children:[e.environment,`: `,e.name,`, commit `,(0,J.jsx)(`code`,{children:e.commit}),` `,(0,J.jsxs)(`span`,{className:`field`,children:[`(`,(0,J.jsxs)(`code`,{children:[`toil `,e.command]}),`)`]})]},e.id))}):(0,J.jsx)(`p`,{children:`Not deployed anywhere the dossier names.`})]}),(0,J.jsxs)(`section`,{"aria-labelledby":`history`,children:[(0,J.jsx)(`h2`,{id:`history`,children:`History`}),s.history?s.history.transitions.length===0?(0,J.jsx)(`p`,{children:`No status changes recorded.`}):(0,J.jsx)(h_,{label:`${Cp(s)}'s status changes`,rows:s.history.transitions.map((e,t)=>({...e,i:t})),rowKey:e=>String(e.i),columns:[{header:`When`,label:`When`,cell:e=>Dp(e.at)},{header:`From`,label:`From`,cell:e=>e.from??`Created`},{header:`To`,label:`To`,cell:e=>e.to},{header:`By`,label:`By`,cell:e=>e.by?Op(e.by):`Unknown`}]}):(0,J.jsx)(`p`,{children:`No history synced for this item.`}),s.unmapped.length>0&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`h3`,{children:`Not mapped`}),(0,J.jsx)(`ul`,{className:`rows`,children:s.unmapped.map(e=>(0,J.jsxs)(`li`,{children:[(0,J.jsx)(`code`,{children:e.field}),`: `,e.reason]},e.field))})]})]})]})]})}var Ix={anthropic:`Anthropic API`,bedrock:`Amazon Bedrock`,foundry:`Microsoft Foundry`,vertex:`Google Vertex AI`};function Lx(e){return`${e.installed?`${e.package} is installed`:`${e.package} isn't installed`}; ${e.cli.path?`it would start ${e.cli.path}`:e.cli.problem??`its CLI was not found`}`.replace(/\.$/,``)}function Rx({client:e,onChange:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let t=!0;return e.status().then(e=>{t&&(r(e),a(e.settings))},e=>t&&s(e instanceof Error?e.message:String(e))),()=>{t=!1}},[e]);let f=async n=>{if(n.preventDefault(),i){d(!0),l(``);try{let n=await e.save({...i,endpoint:i.adapter===`claude`?i.endpoint:null});r(n),a(n.settings),s(null),l(n.settings.adapter===`none`?`Saved: no agent answers.`:`Saved: ${n.adapters.find(e=>e.name===n.settings.adapter)?.label??n.settings.adapter} answers from the next question.`),t?.(n)}catch(e){s(e instanceof Error?e.message:String(e))}finally{d(!1)}}},p=n?.adapters.every(e=>!e.installed);return(0,J.jsxs)(f_,{as:`section`,className:`panel`,"aria-labelledby":`agent-settings`,children:[(0,J.jsx)(`h2`,{id:`agent-settings`,children:`Agent`}),(0,J.jsx)(`p`,{className:`note`,children:`The agent reasons with the subscription you already have, through its own CLI on this machine. Toil UI never downloads one, stores no keys, and gives the agent read-only tools: anything it suggests changing comes back as a proposal for you to apply.`}),n?.problem&&(0,J.jsx)(`p`,{className:`failure`,children:n.problem}),o&&(0,J.jsx)(`p`,{role:`alert`,className:`failure`,children:o}),!n||!i?!o&&(0,J.jsx)(`p`,{className:`note`,children:`Reading the agent settings…`}):(0,J.jsxs)(`form`,{className:`agent-form`,onSubmit:f,children:[p&&(0,J.jsxs)(`p`,{className:`failure`,children:[`None of the three agent SDKs is installed beside Toil UI: `,n.adapters.map(e=>`${e.label} (${e.package})`).join(`, `),`. Install the one your organization approves, with its CLI on PATH, and choose it here.`]}),(0,J.jsxs)(Dd,{className:`agent-adapters`,value:i.adapter,onChange:e=>a({...i,adapter:e}),children:[(0,J.jsx)(wi,{children:`Adapter`}),(0,J.jsxs)(Od,{value:`none`,className:`agent-choice`,children:[(0,J.jsx)(`strong`,{children:`None`}),(0,J.jsx)(`span`,{className:`note`,children:`The dashboards only; questions get no answer.`})]}),n.adapters.map(e=>(0,J.jsxs)(Od,{value:e.name,className:`agent-choice`,children:[(0,J.jsx)(`strong`,{children:e.label}),(0,J.jsxs)(`span`,{className:e.installed&&e.cli.path?`note`:`agent-missing`,children:[Lx(e),`.`]})]},e.name))]}),i.adapter!==`none`&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(Yd,{className:`field-text`,value:i.model??``,onChange:e=>a({...i,model:e||null}),children:[(0,J.jsx)(wi,{children:`Model (empty for the CLI's default)`}),(0,J.jsx)(Ma,{spellCheck:!1,autoComplete:`off`})]}),(0,J.jsxs)(Yd,{className:`field-text`,value:i.cliPath??``,onChange:e=>a({...i,cliPath:e||null}),children:[(0,J.jsx)(wi,{children:`CLI path (empty to use the one on PATH)`}),(0,J.jsx)(Ma,{spellCheck:!1,autoComplete:`off`})]})]}),i.adapter===`claude`&&(0,J.jsxs)(Dd,{className:`shells`,orientation:`horizontal`,value:i.endpoint??``,onChange:e=>a({...i,endpoint:e||null}),children:[(0,J.jsx)(wi,{className:`agent-label`,children:`Endpoint`}),(0,J.jsx)(Od,{value:``,className:`shell-choice`,children:`Claude Code's default`}),(n.adapters.find(e=>e.name===`claude`)?.endpoints??[]).map(e=>(0,J.jsx)(Od,{value:e,className:`shell-choice`,children:Ix[e]??e},e))]}),i.adapter===`claude`&&i.endpoint&&i.endpoint!==`anthropic`&&(0,J.jsx)(`p`,{className:`note`,children:`Claude Code reads that cloud's own region and credentials from its environment, as it does on its own; Toil UI sets only the switch.`}),(0,J.jsxs)(`div`,{className:`proposal-actions`,children:[(0,J.jsx)(Pi,{type:`submit`,className:`btn btn--accent`,isDisabled:u,children:`Save`}),(0,J.jsx)(`span`,{className:`note`,role:`status`,children:c})]})]})]})}function zx(){return(0,J.jsxs)(f_,{as:`section`,className:`panel`,"aria-labelledby":`agent-settings`,children:[(0,J.jsx)(`h2`,{id:`agent-settings`,children:`Agent`}),(0,J.jsx)(`p`,{className:`note`,children:`The preview answers with a scripted agent. The local app answers with the one your organization approved: Claude (the Claude Agent SDK, on the Anthropic API, Bedrock, Foundry or Vertex), GitHub Copilot (the Copilot SDK) or Codex (the Codex SDK), each through its own CLI on your machine. You choose the adapter, model and CLI path here; no key is ever stored.`})]})}var Bx=[`connections list`,`connections test`,`dossiers list`,`dossiers show`,`dossiers check`],Vx=[`connections add`,`connections login`,`connections default`,`connections writes`,`connections remove`,`dossiers init`,`dossiers add-repo`,`dossiers link`,`dossiers field`];[...Bx,...Vx];function Hx(e){if(e.definedIn)return e.definedIn===`env`;let t=Object.values(e.values);return t.length>0&&t.every(e=>e===`env`||e===`ci`)}function Ux(e){return`TOIL_CONN_${e.toUpperCase().replace(/-/g,`_`)}_`}function Wx(e){return e.split(/\r?\n/).map(e=>e.trim()).filter(Boolean)}function Gx(e,t){return e.ok?{ok:!0,message:t,warnings:(e.meta.warnings??[]).map(e=>e.message)}:{ok:!1,message:e.error.message,fix:e.error.fix??null}}function Kx(e){return{ok:!1,message:e instanceof Error?e.message:String(e),fix:null}}function qx({outcome:e}){return e?e.ok?(0,J.jsxs)(`div`,{role:`status`,className:`outcome-line outcome-line--ok`,children:[(0,J.jsx)(`p`,{children:e.message}),e.warnings.length>0&&(0,J.jsx)(`ul`,{className:`plain`,children:e.warnings.map((e,t)=>(0,J.jsx)(`li`,{className:`note`,children:e},t))})]}):(0,J.jsxs)(`div`,{role:`alert`,className:`outcome-line outcome-line--failed failure`,children:[(0,J.jsx)(`p`,{children:e.message}),e.fix&&(0,J.jsxs)(`p`,{className:`note`,children:[`Fix: `,e.fix]})]}):(0,J.jsx)(`div`,{role:`status`,className:`outcome-line`})}function Jx(e,t=[]){return[`toil`,e,...t].join(` `)}function Yx({title:e,explain:t,runs:n,submit:r,disabled:i,onSubmit:a,children:o,danger:s=!1}){let c=(0,v.useId)(),[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(null);return(0,J.jsxs)(`form`,{className:`change`,"aria-labelledby":`${c}-title`,onSubmit:async e=>{if(e.preventDefault(),!(i||l)){u(!0),f(null);try{f(await a())}catch(e){f(Kx(e))}finally{u(!1)}}},noValidate:!0,children:[(0,J.jsx)(`h3`,{id:`${c}-title`,children:e}),(0,J.jsx)(`p`,{className:`explain`,children:t}),o,(0,J.jsxs)(`p`,{className:`runs`,children:[`Runs `,(0,J.jsx)(`code`,{children:n})]}),(0,J.jsxs)(`div`,{className:`change-actions`,children:[(0,J.jsx)(`button`,{type:`submit`,className:`btn ${s?`btn--danger`:`btn--accent`}`,disabled:i!==null||l,"aria-describedby":i?`${c}-off`:void 0,children:l?`Running…`:r}),i&&(0,J.jsxs)(`span`,{id:`${c}-off`,className:`note`,children:[`Turned off: `,i]})]}),(0,J.jsx)(qx,{outcome:d})]})}function Xx({label:e,value:t,onChange:n,hint:r,type:i=`text`,required:a=!1,autoComplete:o=`off`,placeholder:s}){let c=(0,v.useId)();return(0,J.jsxs)(`div`,{className:`field-row`,children:[(0,J.jsxs)(`label`,{htmlFor:c,children:[e,a&&(0,J.jsx)(`span`,{className:`req`,children:` (required)`})]}),(0,J.jsx)(`input`,{id:c,type:i,value:t,onChange:e=>n(e.target.value),"aria-describedby":r?`${c}-hint`:void 0,required:a,autoComplete:o,spellCheck:!1,placeholder:s}),r&&(0,J.jsx)(`p`,{id:`${c}-hint`,className:`note`,children:r})]})}function Zx({label:e,value:t,onChange:n,hint:r,rows:i=3}){let a=(0,v.useId)();return(0,J.jsxs)(`div`,{className:`field-row`,children:[(0,J.jsx)(`label`,{htmlFor:a,children:e}),(0,J.jsx)(`textarea`,{id:a,rows:i,value:t,onChange:e=>n(e.target.value),"aria-describedby":r?`${a}-hint`:void 0,spellCheck:!1}),r&&(0,J.jsx)(`p`,{id:`${a}-hint`,className:`note`,children:r})]})}function Qx({label:e,value:t,onChange:n,options:r,hint:i}){let a=(0,v.useId)();return(0,J.jsxs)(`div`,{className:`field-row`,children:[(0,J.jsx)(`label`,{htmlFor:a,children:e}),(0,J.jsx)(`select`,{id:a,value:t,onChange:e=>n(e.target.value),"aria-describedby":i?`${a}-hint`:void 0,children:r.map(e=>(0,J.jsx)(`option`,{value:e.value,children:e.label},e.value))}),i&&(0,J.jsx)(`p`,{id:`${a}-hint`,className:`note`,children:i})]})}function $x({label:e,checked:t,onChange:n,hint:r}){let i=(0,v.useId)();return(0,J.jsxs)(`div`,{className:`field-row field-row--check`,children:[(0,J.jsx)(`input`,{id:i,type:`checkbox`,checked:t,onChange:e=>n(e.target.checked),"aria-describedby":r?`${i}-hint`:void 0}),(0,J.jsx)(`label`,{htmlFor:i,children:e}),r&&(0,J.jsx)(`p`,{id:`${i}-hint`,className:`note`,children:r})]})}var eS={env:`env var`,ci:`CI variable`,file:`config file`,store:`credential store`,defaults:`area defaults`};function tS(e){return e.ok?{ok:!0,data:e.data,warnings:(e.meta.warnings??[]).map(e=>e.message)}:{ok:!1,message:`${e.error.message}${e.error.fix?` ${e.error.fix}`:``}`}}function nS({config:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),a=(0,v.useCallback)(async()=>{try{n(tS(await e.run(`connections list`,{})))}catch(e){n({ok:!1,message:e instanceof Error?e.message:String(e)})}},[e]);if((0,v.useEffect)(()=>{a(),e.areas().then(i,()=>i([]))},[e,a]),!t)return(0,J.jsx)(`p`,{className:`skin-loading`,children:`Reading your connections with toil connections list…`});if(!t.ok)return(0,J.jsx)(`div`,{role:`alert`,className:`failure`,children:(0,J.jsxs)(`p`,{children:[(0,J.jsx)(`code`,{children:`toil connections list`}),` failed: `,t.message]})});let{data:o}=t;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(f_,{as:`section`,className:`panel`,"aria-labelledby":`conn-list`,children:[(0,J.jsx)(`h2`,{id:`conn-list`,children:`Your connections`}),(0,J.jsxs)(`p`,{className:`lede`,children:[`From `,(0,J.jsx)(`code`,{children:`toil connections list`}),`, which never returns a secret. Changes are written to `,(0,J.jsx)(v_,{value:o.configFile,what:`config file path`}),`; secrets live in the OS credential store.`]}),o.connections.length===0?(0,J.jsx)(`p`,{children:`toil has no connections yet. Add one below.`}):(0,J.jsx)(d_,{min:`lg`,className:`conn-cards`,children:o.connections.map(t=>(0,J.jsx)(`li`,{children:(0,J.jsx)(rS,{connection:t,areas:r??[],config:e,configFile:o.configFile,onChanged:a})},t.name))})]}),(0,J.jsx)(sS,{areas:r,config:e,onChanged:a})]})}function rS({connection:e,areas:t,config:n,configFile:r,onChanged:i}){let[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1),d=Hx(e),f=`conn-${e.name}`,p=t.find(t=>t.name===e.area)?.connection.filter(e=>e.secret)??[],m=async()=>{u(!0),c(null);try{let t=await n.run(`connections test`,{name:e.name}),r=t.ok?t.data:null,i=r?r.live?`${e.name} answered ${r.request??`its check`}${r.authenticated?`, so its credential works.`:`, but that read needs no credential, so it shows only that the host answers.`}`:`toil has no live check for ${e.area} connections, so nothing was sent; the settings are complete and the secret was read.`:``;c(Gx(t,i))}catch(e){c(Kx(e))}finally{u(!1)}},h=e=>o(t=>t===e?null:e),g=async(e,t)=>{let n=Gx(e,t);return n.ok&&await i(),n};return(0,J.jsxs)(f_,{className:`conn-card`,"aria-labelledby":f,children:[(0,J.jsxs)(`div`,{className:`conn-head`,children:[(0,J.jsx)(`h3`,{id:f,children:(0,J.jsx)(`code`,{children:e.name})}),(0,J.jsxs)(`ul`,{className:`conn-tags`,"aria-label":`About this connection`,children:[(0,J.jsx)(`li`,{className:`tag`,children:e.area}),e.isDefault&&(0,J.jsxs)(`li`,{className:`tag tag--accent`,children:[e.area,`'s default`]}),(0,J.jsxs)(`li`,{className:`tag ${e.writes?`tag--warn`:``}`,children:[`Writes `,e.writes?`on`:`off`]}),d&&(0,J.jsx)(`li`,{className:`tag`,children:`Set by env vars`})]})]}),(0,J.jsxs)(`dl`,{className:`facts`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`dt`,{children:`Host`}),(0,J.jsx)(`dd`,{children:e.host??`None set`})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`dt`,{children:`Values from`}),(0,J.jsx)(`dd`,{children:Object.keys(e.values).length===0?`Nothing beyond its area`:Object.entries(e.values).map(([e,t])=>`${e}: ${eS[t]??t}`).join(`, `)})]})]}),d&&(0,J.jsxs)(`p`,{className:`note`,children:[`Made by env vars alone (`,(0,J.jsxs)(`code`,{children:[Ux(e.name),`*`]}),`, or `,e.area,`'s own `,(0,J.jsxs)(`code`,{children:[`TOIL_`,e.area.toUpperCase().replace(/-/g,`_`),`_*`]}),` and CI variables), not by `,(0,J.jsx)(`code`,{children:r}),`. toil's commands can't change a variable, so this connection is read-only here: change the variables where they're set. Testing it changes nothing.`]}),(0,J.jsxs)(`div`,{className:`conn-actions`,children:[(0,J.jsx)(`button`,{type:`button`,className:`btn`,onClick:m,disabled:l,"aria-describedby":`${f}-test`,children:l?`Testing…`:`Test`}),!d&&(0,J.jsxs)(J.Fragment,{children:[!e.isDefault&&(0,J.jsx)(`button`,{type:`button`,className:`btn`,"aria-expanded":a==="default",onClick:()=>h(`default`),children:`Make default`}),(0,J.jsx)(`button`,{type:`button`,className:`btn`,"aria-expanded":a===`writes`,onClick:()=>h(`writes`),children:e.writes?`Turn writes off`:`Turn writes on`}),p.length>0&&(0,J.jsx)(`button`,{type:`button`,className:`btn`,"aria-expanded":a===`login`,onClick:()=>h(`login`),children:`Replace secret`}),(0,J.jsx)(`button`,{type:`button`,className:`btn`,"aria-expanded":a===`remove`,onClick:()=>h(`remove`),children:`Remove`})]})]}),(0,J.jsxs)(`p`,{id:`${f}-test`,className:`note`,children:[`Test sends `,e.area,`'s one cheap authenticated read, as a real command would (`,(0,J.jsx)(`code`,{children:Jx(`connections test`,[e.name])}),`), and changes nothing.`]}),(0,J.jsx)(qx,{outcome:s}),a==="default"&&(0,J.jsx)(Yx,{title:`Make ${e.name} the ${e.area} default`,explain:`${e.area} commands use it when a call names no connection and its dossier names none. The previous default stays as it is, just no longer the default.`,runs:Jx(`connections default`,[e.name]),submit:`Make default`,disabled:n.disabled,onSubmit:async()=>g(await n.run(`connections default`,{name:e.name}),`${e.name} is now the ${e.area} default.`)}),a===`writes`&&(0,J.jsx)(iS,{connection:e,config:n,after:g}),a===`login`&&(0,J.jsx)(aS,{connection:e,fields:p,config:n,after:g}),a===`remove`&&(0,J.jsx)(Yx,{title:`Remove ${e.name}`,explain:`Takes ${e.name} out of ${r} and deletes its secrets from the OS credential store, unless another connection uses them. A dossier that names it then fails until it names another. This can't be undone here: adding it again means typing its secret again.`,runs:Jx(`connections remove`,[e.name]),submit:`Remove ${e.name}`,danger:!0,disabled:n.disabled,onSubmit:async()=>g(await n.run(`connections remove`,{name:e.name}),`${e.name} was removed.`)})]})}function iS({connection:e,config:t,after:n}){let[r,i]=(0,v.useState)(``);return e.writes?(0,J.jsx)(Yx,{title:`Turn writes off for ${e.name}`,explain:`Commands can no longer change anything in ${e.area} through ${e.name}, even with --allow-write. Reads carry on as before.`,runs:Jx(`connections writes`,[e.name,`off`]),submit:`Turn writes off`,disabled:t.disabled,onSubmit:async()=>n(await t.run(`connections writes`,{name:e.name,state:`off`}),`Writes are off for ${e.name}.`)}):(0,J.jsx)(Yx,{title:`Turn writes on for ${e.name}`,explain:(0,J.jsxs)(J.Fragment,{children:[`Writes let commands change data in `,e.area,` through `,e.name,` when a call also passes `,(0,J.jsx)(`code`,{children:`--allow-write`}),`. Toil UI itself never writes to `,e.area,`: its proposals are commands for you to run. toil asks you to type the connection's name to turn writes on, here as on the terminal, and turns them on only if it matches.`]}),runs:Jx(`connections writes`,[e.name,`on`]),submit:`Turn writes on`,danger:!0,disabled:t.disabled,onSubmit:async()=>{let a=r;return i(``),n(await t.run(`connections writes`,{name:e.name,state:`on`},{answers:{"confirm-name":a}}),`Writes are on for ${e.name}.`)},children:(0,J.jsx)(Xx,{label:`Type ${e.name} to turn them on`,value:r,onChange:i,required:!0})})}function aS({connection:e,fields:t,config:n,after:r}){let[i,a]=(0,v.useState)({});return(0,J.jsx)(Yx,{title:`Replace ${e.name}'s secret`,explain:`Stores what you type in the OS credential store, reads it back to check, and only then points ${e.name} at it and deletes the old one. A field left empty keeps its secret as it is. Toil UI doesn't keep what you type: it goes to toil in one request, and the fields are cleared.`,runs:Jx(`connections login`,[e.name]),submit:`Save to the credential store`,disabled:n.disabled,onSubmit:async()=>{let o=Object.fromEntries(t.map(e=>[e.name,i[e.name]??``]));return a({}),r(await n.run(`connections login`,{name:e.name},{secrets:o}),`${e.name}'s secret was replaced in the credential store.`)},children:t.map(e=>(0,J.jsx)(Xx,{type:`password`,autoComplete:`new-password`,label:`${e.name}${e.description?` (${e.description})`:``}`,value:i[e.name]??``,onChange:t=>a(n=>({...n,[e.name]:t}))},e.name))})}var oS=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function sS({areas:e,config:t,onChanged:n}){let r=(e??[]).filter(e=>e.connection.length>0),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)({}),[u,d]=(0,v.useState)({}),f=r.find(e=>e.name===o)??r[0],p=f?.connection??[],m=p.filter(e=>!e.secret),h=m.filter(e=>e.required),g=m.filter(e=>!e.required),_=p.filter(e=>e.secret),y=e=>`${e.name}${e.description?` (${e.description})`:``}`;if(e===null)return null;if(r.length===0)return(0,J.jsxs)(f_,{as:`section`,className:`panel`,"aria-labelledby":`conn-add`,children:[(0,J.jsx)(`h2`,{id:`conn-add`,children:`Add a connection`}),(0,J.jsxs)(`p`,{children:[`The toil this server runs doesn't say what each area's connection holds, so the page can't ask for it. Add one with `,(0,J.jsx)(`code`,{children:`toil connections add`}),` in a terminal.`]})]});let b=[`area ${f.name}`,...m.filter(e=>(c[e.name]??``)!==``).map(e=>`${e.name} ${c[e.name]}`),..._.filter(e=>(u[e.name]??``)!==``).map(e=>`${e.name} to the OS credential store`)].join(`, `);return(0,J.jsxs)(f_,{as:`section`,className:`panel`,"aria-labelledby":`conn-add`,children:[(0,J.jsx)(`h2`,{id:`conn-add`,children:`Add a connection`}),(0,J.jsxs)(Yx,{title:`A new connection`,explain:(0,J.jsxs)(J.Fragment,{children:[`Asks for what `,(0,J.jsx)(`code`,{children:`toil connections add`}),` asks on a terminal. The settings go into your config file and each secret into the OS credential store, never the file. The first connection to an area becomes its default. Writes start off.`]}),runs:Jx(`connections add`,[i||`<name>`,`--area`,f.name]),submit:`Save connection`,disabled:t.disabled,onSubmit:async()=>{if(!oS.test(i))return{ok:!1,message:`"${i}" isn't a valid connection name.`,fix:`Use lowercase letters, digits and single hyphens, starting with a letter, e.g. corp-jira.`};let e={confirm:`y`};for(let t of m)e[`setting:${t.name}`]=c[t.name]??``;let r=Object.fromEntries(_.map(e=>[e.name,u[e.name]??``]));d({});let o=Gx(await t.run(`connections add`,{name:i,area:f.name},{answers:e,secrets:r}),`${i} was added.`);return o.ok&&(a(``),l({}),await n()),o},children:[(0,J.jsx)(Xx,{label:`Name`,value:i,onChange:a,required:!0,hint:`Lowercase letters, digits and single hyphens, e.g. corp-jira.`}),(0,J.jsx)(Qx,{label:`Area`,value:f.name,onChange:e=>{s(e),l({}),d({})},options:r.map(e=>({value:e.name,label:e.name})),hint:f.description}),h.map(e=>(0,J.jsx)(Xx,{label:y(e),value:c[e.name]??``,onChange:t=>l(n=>({...n,[e.name]:t})),required:!0,placeholder:e.default??void 0},e.name)),_.map(e=>(0,J.jsx)(Xx,{type:`password`,autoComplete:`new-password`,label:`${y(e)}${e.password?`, a password`:``}`,value:u[e.name]??``,onChange:t=>d(n=>({...n,[e.name]:t})),required:e.required,hint:`Goes to the OS credential store; never shown again, and never in the config file.`},e.name)),g.length>0&&(0,J.jsxs)(`details`,{className:`more`,children:[(0,J.jsxs)(`summary`,{children:[`Optional settings (`,g.length,`)`]}),g.map(e=>(0,J.jsx)(Xx,{label:y(e),value:c[e.name]??``,onChange:t=>l(n=>({...n,[e.name]:t})),placeholder:e.default??void 0,hint:e.default?`Left empty, it stays ${e.default}.`:void 0},e.name))]}),(0,J.jsxs)(`p`,{className:`note`,children:[`Saves: `,b,`.`]})]})]})}var cS=e=>e.ok?{ok:!0,value:e.data}:{ok:!1,message:`${e.error.message}${e.error.fix?` ${e.error.fix}`:``}`};function lS({config:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)([]),[a,o]=(0,v.useState)([]),[s,c]=(0,v.useState)(``),l=(0,v.useCallback)(async()=>{try{n(cS(await e.run(`dossiers list`,{})))}catch(e){n({ok:!1,message:e instanceof Error?e.message:String(e)})}},[e]);if((0,v.useEffect)(()=>{l(),e.areas().then(i,()=>i([])),e.run(`connections list`,{}).then(e=>e.ok&&o(e.data.connections),()=>{})},[e,l]),!t)return(0,J.jsx)(`p`,{className:`skin-loading`,children:`Reading your dossiers with toil dossiers list…`});if(!t.ok)return(0,J.jsx)(`div`,{role:`alert`,className:`failure`,children:(0,J.jsxs)(`p`,{children:[(0,J.jsx)(`code`,{children:`toil dossiers list`}),` failed: `,t.message]})});let u=t.value.dossiers,d=u.find(e=>e.name===s)?.name??u[0]?.name??``;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(f_,{as:`section`,className:`panel`,"aria-labelledby":`dossier-list`,children:[(0,J.jsx)(`h2`,{id:`dossier-list`,children:`Your dossiers`}),(0,J.jsxs)(`p`,{className:`lede`,children:[`From `,(0,J.jsx)(`code`,{children:`toil dossiers list`}),`: your own in `,(0,J.jsx)(v_,{value:t.value.places.user,what:`folder path`}),`, any folders you listed, and the ones a repository checks in. Show one to see what it gives each area; Check finds problems without contacting any service.`]}),u.length===0?(0,J.jsx)(`p`,{children:`toil sees no dossiers yet. Create one below.`}):(0,J.jsx)(d_,{min:`lg`,className:`conn-cards`,children:u.map(t=>(0,J.jsx)(`li`,{children:(0,J.jsx)(uS,{dossier:t,config:e})},t.file))})]}),(0,J.jsxs)(f_,{as:`section`,className:`panel`,"aria-labelledby":`dossier-change`,children:[(0,J.jsx)(`h2`,{id:`dossier-change`,children:`Create or change a dossier`}),(0,J.jsxs)(`p`,{className:`lede`,children:[`Each form runs one `,(0,J.jsx)(`code`,{children:`toil dossiers`}),` command, which checks the file before writing it and refuses to add what's already there unless you tick Replace.`]}),(0,J.jsx)(fS,{config:e,onChanged:l}),u.length>0&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Qx,{label:`Dossier to change`,value:d,onChange:c,options:u.map(e=>({value:e.name,label:`${e.name} (${e.source})`})),hint:`The forms below change this one.`}),(0,J.jsx)(pS,{config:e,dossier:d}),(0,J.jsx)(mS,{config:e,dossier:d,areas:r,connections:a}),(0,J.jsx)(hS,{config:e,dossier:d,areas:r})]})]})]})}function uS({dossier:e,config:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)([]),c=`dossier-card-${e.name}`;return(0,J.jsxs)(f_,{className:`conn-card`,"aria-labelledby":c,children:[(0,J.jsxs)(`div`,{className:`conn-head`,children:[(0,J.jsx)(`h3`,{id:c,children:(0,J.jsx)(`code`,{children:e.name})}),(0,J.jsxs)(`ul`,{className:`conn-tags`,"aria-label":`About this dossier`,children:[(0,J.jsx)(`li`,{className:`tag`,children:e.source}),e.problems>0&&(0,J.jsxs)(`li`,{className:`tag tag--warn`,children:[e.problems,` problem`,e.problems===1?``:`s`]})]})]}),e.description&&(0,J.jsx)(`p`,{children:e.description}),(0,J.jsxs)(`p`,{className:`note`,children:[(0,J.jsx)(v_,{value:e.file,what:`${e.name}'s file path`}),e.shadowedBy&&(0,J.jsxs)(J.Fragment,{children:[` (a dossier of the same name in `,e.shadowedBy,` takes precedence)`]})]}),(0,J.jsxs)(u_,{className:`conn-actions`,children:[(0,J.jsx)(`button`,{type:`button`,className:`btn`,"aria-expanded":n!==null,onClick:async()=>{if(n)return r(null);try{r(cS(await t.run(`dossiers show`,{dossier:e.name})))}catch(e){r({ok:!1,message:e instanceof Error?e.message:String(e)})}},children:n?`Hide`:`Show`}),(0,J.jsx)(`button`,{type:`button`,className:`btn`,onClick:async()=>{a(null);try{let n=await t.run(`dossiers check`,{dossier:e.name}),r=n.ok?n.data:null;s(r?.problems??[]),a(r&&!r.ok?{ok:!1,message:`${e.name} has problems toil would refuse it for.`,fix:null}:Gx(n,r?.problems.length?`${e.name} checks out, with ${r.problems.length} warning${r.problems.length===1?``:`s`}.`:`${e.name} checks out: no problems.`))}catch(e){a(Kx(e))}},children:`Check`})]}),(0,J.jsx)(qx,{outcome:i}),o.length>0&&(0,J.jsx)(`ul`,{className:`plain`,children:o.map((e,t)=>(0,J.jsxs)(`li`,{className:e.level===`error`?`failure`:`note`,children:[e.level,`: `,(0,J.jsx)(`code`,{children:e.path}),` `,e.message]},t))}),n&&!n.ok&&(0,J.jsxs)(`p`,{role:`alert`,className:`failure`,children:[(0,J.jsxs)(`code`,{children:[`toil dossiers show `,e.name]}),` failed: `,n.message]}),n?.ok&&(0,J.jsx)(dS,{shown:n.value})]})}function dS({shown:e}){let t=Object.entries(e.areas),n=e.dossier.repos??[];return(0,J.jsxs)(l_,{className:`shown`,gap:`sm`,children:[(0,J.jsx)(h_,{label:`What ${e.name} gives each area`,caption:`What ${e.name} gives each area`,rows:t,rowKey:([e])=>e,columns:[{header:`Area`,label:`Area`,rowHeader:!0,cell:([e])=>e},{header:`Connection`,label:`Connection`,cell:([,e])=>e.error?(0,J.jsx)(`span`,{className:`failure`,children:e.error.message}):e.connection?`${e.connection.value} (${e.connection.source})`:`Your default`},{header:`Writes`,label:`Writes`,cell:([,e])=>e.writes===null?`–`:e.writes?`On`:`Off`},{header:`Inputs`,label:`Inputs`,cell:([,e])=>(0,J.jsxs)(J.Fragment,{children:[Object.entries(e.inputs).map(([e,t])=>`${e}=${t}`).join(`, `)||`None`,e.env&&(0,J.jsxs)(`span`,{className:`note`,children:[` (environment `,e.env,`)`]})]})}]}),(0,J.jsx)(`h4`,{className:`shown-repos`,children:`Repositories`}),n.length?(0,J.jsx)(`ul`,{className:`plain`,children:n.map(e=>(0,J.jsxs)(`li`,{children:[e.name,e.remotes[0]&&(0,J.jsxs)(J.Fragment,{children:[` `,(0,J.jsx)(y_,{value:e.remotes[0],what:`${e.name}'s remote URL`})]})]},e.name))}):(0,J.jsx)(`p`,{className:`note`,children:`None yet.`})]})}function fS({config:e,onChanged:t}){let[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(``);return(0,J.jsxs)(Yx,{title:`Create a dossier`,explain:`Makes an empty dossier for one body of work in your own folder (~/.toil/dossiers/<name>.json). Add its repositories and areas with the forms below. It refuses a name you already have.`,runs:Jx(`dossiers init`,[n||`<name>`,...i?[`--description`,`…`]:[]]),submit:`Create dossier`,disabled:e.disabled,onSubmit:async()=>{let o=Gx(await e.run(`dossiers init`,{name:n,...i?{description:i}:{}}),`${n} was created.`);return o.ok&&(r(``),a(``),await t()),o},children:[(0,J.jsx)(Xx,{label:`Name`,value:n,onChange:r,required:!0,hint:`Lowercase letters, digits and single hyphens, e.g. payments.`}),(0,J.jsx)(Xx,{label:`Description`,value:i,onChange:a,hint:`One line saying what the body of work is.`})]})}function pS({config:e,dossier:t}){let[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(!1);return(0,J.jsxs)(Yx,{title:`Add a repository to ${t}`,explain:`Records a repository by its remote URL, or by a folder on this machine (its git root and origin remote). Any credential in a remote is left out of the file. toil then picks this dossier for calls made in that repository.`,runs:Jx(`dossiers add-repo`,[t,n||`<folder|remote>`,...i?[`--name`,i]:[],...o?[`--replace`]:[]]),submit:`Add repository`,disabled:e.disabled,onSubmit:async()=>Gx(await e.run(`dossiers add-repo`,{dossier:t,location:n,...i?{name:i}:{},...o?{replace:o}:{}}),`The repository was added to ${t}.`),children:[(0,J.jsx)(Xx,{label:`Folder or remote URL`,value:n,onChange:r,required:!0,hint:(0,J.jsxs)(J.Fragment,{children:[`e.g. `,(0,J.jsx)(`span`,{className:`any-break`,children:`https://git.imagile.dev/pay/payments-api.git`})]})}),(0,J.jsx)(Xx,{label:`Name in the dossier`,value:i,onChange:a,hint:`Defaults to the folder's or remote's last part.`}),(0,J.jsx)($x,{label:`Replace a repository of that name`,checked:o,onChange:s})]})}function mS({config:e,dossier:t,areas:n,connections:r}){let[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(``),[f,p]=(0,v.useState)(!1),m=n.map(e=>e.name),h=m.includes(i)?i:m.includes(`jira`)?`jira`:m[0]??``,g=r.filter(e=>e.area===h),_=[t,h,...o?[`--connection`,o]:[],...Wx(c).flatMap(e=>[`--set`,e]),...Wx(u).flatMap(e=>[`--add`,e]),...f?[`--replace`]:[]];return(0,J.jsxs)(Yx,{title:`Link an area to ${t}`,explain:`Attaches an area to the dossier: which of your connections its calls use (or your default), the keys it supplies to every call (project=PAY), and reference data lists (projects=FEES). toil refuses, from here, a link that would point the dossier at a connection with writes on: a person makes that one with toil dossiers link in a terminal.`,runs:Jx(`dossiers link`,_),submit:`Link area`,disabled:e.disabled,onSubmit:async()=>Gx(await e.run(`dossiers link`,{dossier:t,area:h,...o?{connection:o}:{},...Wx(c).length?{set:Wx(c)}:{},...Wx(u).length?{add:Wx(u)}:{},...f?{replace:f}:{}}),`${h} was linked to ${t}.`),children:[(0,J.jsx)(Qx,{label:`Area`,value:h,onChange:e=>(a(e),s(``)),options:m.map(e=>({value:e,label:e}))}),(0,J.jsx)(Qx,{label:`Connection`,value:o,onChange:s,options:[{value:``,label:`Your ${h} default`},...g.map(e=>({value:e.name,label:`${e.name}${e.writes?` (writes on)`:``}`}))]}),(0,J.jsx)(Zx,{label:`Keys to set, one key=value per line`,value:c,onChange:l,hint:`The area's context inputs (project=PAY, owner=imagile) are applied to calls; any other key is kept as reference data.`}),(0,J.jsx)(Zx,{label:`Values to add to lists, one key=value per line`,value:u,onChange:d,hint:`e.g. projects=FEES`}),(0,J.jsx)($x,{label:`Replace values already set`,checked:f,onChange:p})]})}function hS({config:e,dossier:t,areas:n}){let[r,i]=(0,v.useState)(``),[a,o]=(0,v.useState)(``),[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(!1),d=n.map(e=>e.name),f=d.includes(r)?r:d.includes(`jira`)?`jira`:d[0]??``;return(0,J.jsxs)(Yx,{title:`Name a field in ${t}`,explain:`Gives one of the area's fields a friendly name in this dossier (storyPoints for customfield_10002), so commands and Toil UI's work items use the name. The OWI fields estimate, priority, type, team and dueDate are pointed at a team's own field the same way.`,runs:Jx(`dossiers field`,[t,f,a||`<alias>`,s||`<field-id>`,...l?[`--replace`]:[]]),submit:`Name field`,disabled:e.disabled,onSubmit:async()=>Gx(await e.run(`dossiers field`,{dossier:t,area:f,alias:a,id:s,...l?{replace:l}:{}}),`${a} now names ${s} in ${t}.`),children:[(0,J.jsx)(Qx,{label:`Area`,value:f,onChange:i,options:d.map(e=>({value:e,label:e}))}),(0,J.jsx)(Xx,{label:`Alias`,value:a,onChange:o,required:!0,hint:`A camelCase name, e.g. storyPoints or estimate.`}),(0,J.jsx)(Xx,{label:`Field id`,value:s,onChange:c,required:!0,hint:`The service's own id, e.g. customfield_10002.`}),(0,J.jsx)($x,{label:`Point an existing alias at this field`,checked:l,onChange:u})]})}var gS=e=>e%1e3==0?`${e/1e3} s`:`${e} ms`;function _S({config:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(null);if((0,v.useEffect)(()=>{e.run(`connections list`,{}).then(e=>{if(!e.ok)return c(e.error.message);n(e.data.configFile),i(e.meta.warnings?.find(e=>e.code===`BOUND_RELAXED`)?.message??null)},e=>c(e instanceof Error?e.message:String(e))),e.settings().then(o,e=>c(e instanceof Error?e.message:String(e)))},[e]),s)return(0,J.jsx)(`div`,{role:`alert`,className:`failure`,children:(0,J.jsxs)(`p`,{children:[`The settings didn't load: `,s]})});if(!t||!a)return(0,J.jsx)(`p`,{className:`skin-loading`,children:`Reading toil's settings…`});let l=a.timeout;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`p`,{className:`lede`,children:`toil has no command to change these, and Toil UI never edits toil's files, so they're shown as toil reports them, with where each is set.`}),(0,J.jsxs)(f_,{as:`section`,className:`panel`,"aria-labelledby":`bounds`,children:[(0,J.jsx)(`h2`,{id:`bounds`,children:`Bounds`}),(0,J.jsxs)(`dl`,{className:`fields`,children:[(0,J.jsx)(`dt`,{children:`The file workspace`}),(0,J.jsx)(`dd`,{children:r?`Relaxed: commands may read and write files anywhere you can, except toil's own files.`:`Held: commands read and write files only inside the workspace.`}),(0,J.jsx)(`dt`,{children:`Set in`}),(0,J.jsxs)(`dd`,{children:[(0,J.jsx)(v_,{value:t,what:`config file path`}),`, as `,(0,J.jsxs)(`code`,{children:[`"bounds": `,`{`,` "files": "unbounded" `,`}`]})]})]}),r&&(0,J.jsxs)(`p`,{className:`note`,children:[`toil says: `,r]}),(0,J.jsx)(`p`,{className:`note`,children:`Only that file can relax a bound, and only this one: no env var, flag, dossier or repository file can. Every other bound always holds.`})]}),(0,J.jsxs)(f_,{as:`section`,className:`panel`,"aria-labelledby":`timeout`,children:[(0,J.jsx)(`h2`,{id:`timeout`,children:`Time limit`}),(0,J.jsxs)(`dl`,{className:`fields`,children:[(0,J.jsx)(`dt`,{children:`Each command stops after`}),(0,J.jsxs)(`dd`,{children:[gS(l.effectiveMs),l.effectiveMs===l.defaultMs?`, toil's default`:``]}),(0,J.jsx)(`dt`,{children:`Set by`}),(0,J.jsxs)(`dd`,{children:[(0,J.jsx)(`code`,{children:l.variable}),l.value===null?`, which is not set`:`=${l.value}`,`, in the environment `,(0,J.jsx)(`code`,{children:`toil-ui`}),` was started from`]})]}),(0,J.jsxs)(`p`,{className:`note`,children:[`Without the variable, a command that declares a longer limit (a scan, a report) gets its own. `,(0,J.jsx)(`code`,{children:`toil wait`}),` has its own `,(0,J.jsx)(`code`,{children:`--timeout`}),`, capped by `,(0,J.jsxs)(`code`,{children:[`"wait": `,`{`,` "maxTimeout" `,`}`]}),` in `,(0,J.jsx)(`code`,{children:t}),`. To change the limit, set `,l.variable,` and start `,(0,J.jsx)(`code`,{children:`toil-ui`}),` again.`]})]})]})}function vS(){let[e,t]=sf(),n=uf(),r=e===`reduced`;return(0,J.jsxs)(f_,{as:`section`,className:`panel motion-setting`,"aria-labelledby":`motion`,children:[(0,J.jsx)(`h2`,{id:`motion`,children:`Motion and effects`}),(0,J.jsxs)(Da,{className:`check`,isSelected:r,onChange:e=>t(e?`reduced`:`full`),children:[(0,J.jsx)(`span`,{className:`box`,"aria-hidden":`true`,children:r?`✓`:``}),`Reduce motion and effects`]}),(0,J.jsx)(`p`,{className:`note`,children:r?`Nothing moves: no animations, particles or parallax. Saved in this browser only.`:n?`The themes' animations, particles and parallax are on. Saved in this browser only.`:`Your system asks for reduced motion, so nothing moves whichever way this is set.`})]})}var yS=[{page:`connections`,label:`Connections`,about:`The connections toil uses: add, test, set the default, turn writes on or off, replace a secret, remove.`},{page:`dossiers`,label:`Dossiers`,about:`Create dossiers, and give them repositories, areas and field names.`},{page:`toil`,label:`General`,about:`How Toil UI moves in this browser, and the settings toil has no command for, shown as toil reports them.`},{page:`agent`,label:`Agent`,about:`Which agent answers questions in the chat. These are Toil UI's own settings, never toil's.`}];function bS({page:e,config:t,agent:n}){let r=yS.find(t=>t.page===e);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`view-head`,children:[(0,J.jsx)(`p`,{className:`eyebrow`,children:`Settings`}),(0,J.jsx)(`h1`,{tabIndex:-1,children:`toil's configuration`}),(0,J.jsxs)(`p`,{className:`lede`,children:[`What `,(0,J.jsx)(`code`,{children:`toil connections`}),` and `,(0,J.jsx)(`code`,{children:`toil dossiers`}),` manage, through toil's own commands, never by editing files. Changes here touch only toil's own configuration on this machine, and each is listed in toil's audit log as `,(0,J.jsx)(`code`,{children:`toil-ui`}),`. Nothing here writes to a tracker.`]})]}),(0,J.jsx)(`nav`,{className:`subnav`,"aria-label":`Settings pages`,children:(0,J.jsx)(`ul`,{children:yS.map(t=>(0,J.jsx)(`li`,{children:(0,J.jsx)(`a`,{href:`#/settings/${t.page}`,"aria-current":t.page===e?`page`:void 0,children:t.label})},t.page))})}),t?.disabled&&e!==`agent`&&(0,J.jsxs)(`p`,{className:`config-off`,children:[(0,J.jsx)(`strong`,{children:`Changes are turned off.`}),` `,t.disabled]}),(0,J.jsx)(`h2`,{className:`page-title`,children:r.label}),(0,J.jsx)(`p`,{className:`lede`,children:r.about}),e===`toil`&&(0,J.jsx)(vS,{}),e===`agent`?n?(0,J.jsx)(Rx,{...n}):(0,J.jsx)(zx,{}):t?e===`connections`?(0,J.jsx)(nS,{config:t}):e===`dossiers`?(0,J.jsx)(lS,{config:t}):(0,J.jsx)(_S,{config:t}):(0,J.jsx)(`p`,{className:`failure`,children:`This app wasn't given toil's config commands, so there is nothing to show.`})]})}var xS=`This is sample data, so it sends nothing. Toil UI on your own machine sends through toil feedback, or use the form at https://imagile-dev.github.io/toil/feedback/.`;function SS(e){if(!e?.ok)return null;let t=e.data;return typeof t?.disclaimer!=`string`||typeof t.report!=`object`||t.report===null||typeof t.sent!=`boolean`?null:t}function CS(e){let t=e.error;return t?/has no command "feedback"/.test(t.message)?`The toil this Toil UI runs (${e.meta.version}) has no feedback command; it needs a newer toil. Until then, use the form at https://imagile-dev.github.io/toil/feedback/.`:`${t.message}${t.fix?` ${t.fix}`:``}`:`toil returned no report.`}var wS={kind:`bug`,title:``,body:``,email:``},TS=300;function ES({api:e}){return(0,J.jsxs)(ad,{children:[(0,J.jsx)(Pi,{className:`btn feedback-open`,children:`Feedback`}),(0,J.jsx)(DS,{api:e})]})}function DS({api:e,isOpen:t,onOpenChange:n}){let r=t===void 0?{}:{isOpen:t,...n?{onOpenChange:n}:{}};return(0,J.jsx)(hd,{className:`feedback-overlay`,"data-backdrop":``,isDismissable:!0,...r,children:(0,J.jsx)(pd,{className:`feedback-modal`,children:(0,J.jsx)(od,{className:`feedback-dialog`,"aria-labelledby":`feedback-title`,children:({close:t})=>(0,J.jsx)(OS,{api:e,close:t})})})})}function OS({api:e,close:t}){let[n,r]=(0,v.useState)(wS),[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)({state:`idle`}),[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(null),f=(0,v.useRef)(null),p=n.title.trim()!==``&&n.body.trim()!==``&&n.email.trim()!==``;(0,v.useEffect)(()=>{if(!p){s({state:`idle`});return}let t=new AbortController;s({state:`loading`});let r=setTimeout(()=>{e.preview(n,t.signal).then(e=>{if(t.signal.aborted)return;let n=SS(e);s(n?{state:`ready`,data:n}:{state:`problem`,message:CS(e)})},e=>!t.signal.aborted&&s({state:`problem`,message:e instanceof Error?e.message:String(e)}))},TS);return()=>{clearTimeout(r),t.abort()}},[e,n,p]),(0,v.useEffect)(()=>{u?.ok&&f.current?.focus()},[u]);let m=e=>{r(t=>({...t,...e})),a(!1),d(null)},h=o.state===`ready`?o.data:null,g=h!==null&&i&&!c&&e.disabled===null;return u?.ok?(0,J.jsxs)(`div`,{className:`feedback-body`,children:[(0,J.jsx)(Ri,{slot:`title`,level:2,id:`feedback-title`,children:`Feedback sent`}),(0,J.jsx)(`p`,{ref:f,tabIndex:-1,role:`status`,children:u.message}),(0,J.jsx)(`p`,{className:`note`,children:`It becomes a public GitHub issue in imagile-dev/toil, and the email address you gave hears when it is filed and when it closes.`}),(0,J.jsx)(`div`,{className:`feedback-actions`,children:(0,J.jsx)(Pi,{className:`btn btn--accent`,onPress:t,children:`Close`})})]}):(0,J.jsxs)(`form`,{className:`feedback-body`,onSubmit:async t=>{if(t.preventDefault(),g){l(!0);try{let t=await e.send(n),r=SS(t);d(r?.sent?{ok:!0,message:r.message??`Sent.`}:{ok:!1,message:r?`toil sent nothing: the report was not approved.`:CS(t)})}catch(e){d({ok:!1,message:e instanceof Error?e.message:String(e)})}finally{l(!1)}}},noValidate:!0,children:[(0,J.jsx)(Ri,{slot:`title`,level:2,id:`feedback-title`,children:`Send feedback to Imagile`}),(0,J.jsxs)(`p`,{className:`note`,children:[`A bug report or a feature request, sent through `,(0,J.jsx)(`code`,{children:`toil feedback`}),`. Only what you type below is sent, with toil's version and commit.`]}),(0,J.jsxs)(Dd,{className:`shells`,orientation:`horizontal`,value:n.kind,onChange:e=>m({kind:e}),children:[(0,J.jsx)(wi,{className:`feedback-label`,children:`Kind`}),(0,J.jsx)(Od,{value:`bug`,className:`shell-choice`,children:`Bug report`}),(0,J.jsx)(Od,{value:`feature`,className:`shell-choice`,children:`Feature request`})]}),(0,J.jsxs)(Yd,{className:`field-text`,value:n.title,onChange:e=>m({title:e}),maxLength:120,isRequired:!0,children:[(0,J.jsx)(wi,{className:`feedback-label`,children:`Title`}),(0,J.jsx)(Ma,{autoComplete:`off`})]}),(0,J.jsxs)(Yd,{className:`field-text feedback-details`,value:n.body,onChange:e=>m({body:e}),maxLength:4e3,isRequired:!0,children:[(0,J.jsx)(wi,{className:`feedback-label`,children:`Details`}),(0,J.jsx)(qd,{rows:5})]}),(0,J.jsxs)(Yd,{className:`field-text`,type:`email`,value:n.email,onChange:e=>m({email:e}),isRequired:!0,children:[(0,J.jsx)(wi,{className:`feedback-label`,children:`Your email, kept private`}),(0,J.jsx)(Ma,{autoComplete:`email`,spellCheck:!1})]}),(0,J.jsxs)(`section`,{className:`feedback-preview`,"aria-labelledby":`feedback-preview-title`,children:[(0,J.jsx)(`h3`,{id:`feedback-preview-title`,children:`Exactly what will be sent`}),(0,J.jsxs)(`div`,{"aria-live":`polite`,children:[o.state===`idle`&&(0,J.jsx)(`p`,{className:`note`,children:`Fill in the title, details and email to see the report.`}),o.state===`loading`&&(0,J.jsx)(`p`,{className:`note`,children:`Asking toil for the report…`}),o.state===`problem`&&(0,J.jsx)(`p`,{className:`failure`,children:o.message}),h&&(0,J.jsxs)(`p`,{className:`note`,children:[`To `,(0,J.jsx)(`code`,{children:h.endpoint}),`:`]})]}),h&&(0,J.jsx)(`pre`,{className:`feedback-report`,tabIndex:0,"aria-label":`The report, as toil would send it`,children:JSON.stringify(h.report,null,2)})]}),h&&(0,J.jsxs)(`div`,{className:`feedback-consent`,children:[(0,J.jsx)(`p`,{id:`feedback-disclaimer`,className:`feedback-disclaimer`,children:h.disclaimer}),(0,J.jsxs)(Da,{className:`check`,isSelected:i,onChange:a,isRequired:!0,"aria-describedby":`feedback-disclaimer`,children:[(0,J.jsx)(`span`,{className:`box`,"aria-hidden":`true`,children:i?`✓`:``}),`I have removed company data from this report and agree to send it to Imagile LLC.`]})]}),e.disabled&&(0,J.jsxs)(`p`,{className:`config-off`,children:[(0,J.jsx)(`strong`,{children:`Sending is turned off.`}),` `,e.disabled]}),u&&!u.ok&&(0,J.jsx)(`p`,{role:`alert`,className:`failure`,children:u.message}),(0,J.jsxs)(`div`,{className:`feedback-actions`,children:[(0,J.jsx)(Pi,{type:`submit`,className:`btn btn--accent`,isDisabled:!g,children:c?`Sending…`:`Send`}),(0,J.jsx)(Pi,{className:`btn`,onPress:t,children:`Cancel`})]})]})}function kS(e){let t=e.replace(/^#\/?/,``).split(`/`);if(t[0]===`settings`)return{view:`settings`,page:t[1]===`dossiers`||t[1]===`toil`||t[1]===`agent`?t[1]:`connections`};if(t[0]===`dossier`&&t[1]){let e=decodeURIComponent(t[1]);return t[2]===`item`&&t[3]?{view:`item`,dossier:e,id:decodeURIComponent(t.slice(3).join(`/`))}:{view:`dashboard`,dossier:e}}return{view:`dossiers`}}function AS(){let[e,t]=(0,v.useState)(()=>kS(window.location.hash));return(0,v.useEffect)(()=>{let e=()=>t(kS(window.location.hash));return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),e}var jS=e=>({ok:!1,message:e instanceof Error?e.message:String(e)});function MS({execute:e,agent:t,config:n,now:r,preview:i,agentSettings:a,feedback:o}){let s=AS(),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)({}),f=s_(),p=fg(f.theme),m=(0,v.useRef)(null),h=(0,v.useRef)(!0),g=s.view===`dossiers`||s.view===`settings`?null:s.dossier;(0,v.useEffect)(()=>{if(s.view!==`dossiers`||c)return;let t=!0;return kh(e).then(e=>t&&l({ok:!0,value:e}),e=>t&&l(jS(e))),()=>{t=!1}},[s.view,c,e]),(0,v.useEffect)(()=>{if(!g||u[g])return;let t=!0;return Oh(e,g).then(e=>t&&d(t=>({...t,[g]:{ok:!0,value:e}})),e=>t&&d(t=>({...t,[g]:jS(e)}))),()=>{t=!1}},[g,u,e]);let _=JSON.stringify(s),y=(0,v.useRef)(!1);(0,v.useEffect)(()=>{h.current?h.current=!1:y.current=!0},[_]),(0,v.useEffect)(()=>{let e=y.current?m.current?.querySelector(`h1`):null;e&&(y.current=!1,e.focus())});let b=e=>{e.preventDefault(),m.current?.querySelector(`h1`)?.focus()},x=$g(p.name),S=b_(PS),C=[{href:`#/`,label:`Dossiers`,current:s.view===`dossiers`},...g?[{href:kp(g),label:g,current:s.view===`dashboard`}]:[],{href:`#/settings`,label:`Settings`,current:s.view===`settings`}],w=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(LS,{label:`Theme`,value:p.name,onChange:f.setTheme,options:ag.map(e=>({id:e.name,label:e.label}))}),Object.keys(p.schemes).length>1&&(0,J.jsx)(LS,{label:`Appearance`,value:f.scheme,onChange:e=>f.setScheme(e),options:[{id:`system`,label:`System`},{id:`light`,label:`Light`},{id:`dark`,label:`Dark`}]})]}),T=g?u[g]:void 0,E=e=>(0,J.jsxs)(`div`,{role:`alert`,className:`failure`,children:[(0,J.jsx)(`h1`,{tabIndex:-1,children:`The data didn't load`}),(0,J.jsx)(`p`,{children:e})]}),D;if(s.view===`settings`)D=(0,J.jsx)(bS,{page:s.page,config:n??null,...a?{agent:a}:{}});else if(s.view===`dossiers`)D=c?c.ok?(0,J.jsx)(Nx,{dossiers:c.value.dossiers,calls:c.value.calls}):E(c.message):(0,J.jsx)(x.Loading,{message:`Reading the dossiers…`});else if(!T)D=(0,J.jsx)(x.Loading,{message:`Reading ${s.dossier}…`});else if(!T.ok)D=E(T.message);else{let e={dossier:T.value,byId:new Map(T.value.items.map(e=>[e.id,e])),agent:t,now:r};D=(0,J.jsx)(_p,{value:e,children:s.view===`item`?(0,J.jsx)(Fx,{id:s.id}):(0,J.jsx)(Ox,{})})}return(0,J.jsx)(mg,{value:p,children:(0,J.jsxs)(t_,{value:x,children:[(0,J.jsx)(NS,{css:ag.map(dg).join(`
|
|
27
|
-
`)}),(0,J.jsx)(Rf,{theme:p.name}),(0,J.jsx)(`a`,{className:`skip`,href:`#main`,onClick:b,children:`Skip to content`}),(0,J.jsxs)(`header`,{children:[i&&(0,J.jsxs)(`p`,{className:`banner`,role:`note`,children:[(0,J.jsx)(`strong`,{children:`Preview of an unreleased product.`}),` Sample data only: nothing here connects to a tracker.`]}),(0,J.jsx)(`div`,{className:`top`,"data-one-row":``,children:(0,J.jsxs)(x.Header,{children:[(0,J.jsx)(`a`,{className:`brand`,href:`#/`,children:(0,J.jsxs)(`span`,{className:`brand-name`,children:[(0,J.jsx)(`span`,{className:`wordmark`,children:`toil`}),` `,(0,J.jsx)(`span`,{className:`sticker`,children:(0,J.jsx)(`span`,{className:`sticker__face`,children:`UI`})})]})}),S?(0,J.jsx)(IS,{links:C,feedback:o,controls:w}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`nav`,{"aria-label":`Views`,children:(0,J.jsx)(FS,{links:C})}),(0,J.jsxs)(`div`,{className:`settings`,children:[o&&(0,J.jsx)(ES,{api:o}),w]})]})]})}),(0,J.jsxs)(`p`,{className:`sync`,children:[i?`Sample data`:`Data`,` read `,Dp(r),` through toil, read-only.`]})]}),(0,J.jsx)(`main`,{id:`main`,ref:m,children:D})]})})}function NS({css:e}){let t=typeof CSSStyleSheet<`u`&&`replaceSync`in CSSStyleSheet.prototype&&`adoptedStyleSheets`in document;return(0,v.useInsertionEffect)(()=>{if(!t)return;let n=new CSSStyleSheet;return n.replaceSync(e),document.adoptedStyleSheets=[...document.adoptedStyleSheets,n],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(e=>e!==n)}},[e,t]),t?null:(0,J.jsx)(`style`,{children:e})}var PS=`(max-width: 1023px)`;function FS({links:e,onFollow:t}){return(0,J.jsx)(`ul`,{children:e.map(e=>(0,J.jsx)(`li`,{children:(0,J.jsx)(`a`,{href:e.href,"aria-current":e.current?`page`:void 0,onClick:t,children:e.label})},e.href))})}function IS({links:e,feedback:t,controls:n}){let[r,i]=(0,v.useState)(!1),[a,o]=(0,v.useState)(!1),s=e.find(e=>e.current)?.label;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(ad,{isOpen:r,onOpenChange:i,children:[(0,J.jsxs)(Pi,{className:`btn menu-button`,"data-menu-button":``,children:[(0,J.jsx)(`span`,{"aria-hidden":`true`,className:`menu-button__icon`,children:`☰`}),`Menu`]}),(0,J.jsx)(Xl,{className:`popover nav-menu`,placement:`bottom end`,offset:6,children:(0,J.jsxs)(od,{className:`nav-menu__dialog`,"aria-label":s?`Menu, on ${s}`:`Menu`,children:[(0,J.jsx)(`nav`,{"aria-label":`Views`,children:(0,J.jsx)(FS,{links:e,onFollow:()=>i(!1)})}),(0,J.jsxs)(`div`,{className:`nav-menu__settings`,children:[t&&(0,J.jsx)(Pi,{className:`btn feedback-open`,onPress:()=>{i(!1),o(!0)},children:`Feedback`}),n]})]})})]}),t&&(0,J.jsx)(DS,{api:t,isOpen:a,onOpenChange:o})]})}function LS({label:e,value:t,options:n,onChange:r}){return(0,J.jsxs)(Bd,{className:`choice`,selectedKey:t,onSelectionChange:e=>e!==null&&r(String(e)),children:[(0,J.jsx)(wi,{children:e}),(0,J.jsxs)(Pi,{className:`btn choice-button`,children:[(0,J.jsx)(Wd,{}),(0,J.jsx)(`span`,{"aria-hidden":`true`,children:`▾`})]}),(0,J.jsx)(Xl,{className:`popover`,children:(0,J.jsx)(Xs,{className:`menu`,children:n.map(e=>(0,J.jsx)(ec,{id:e.id,className:`menu-item`,children:e.label},e.id))})})]})}var RS=`X-Toil-UI-Session`,zS=`X-Toil-UI-CSRF`;async function BS(e,t){try{let t=await e.json();if(t.error?.message)return Error(`${t.error.message}${t.error.fix?` ${t.error.fix}`:``}`)}catch{}return Error(`${t} failed: the server answered ${e.status}.`)}async function VS(e=`./`,t=window.location,n=window.history){let r=new URLSearchParams(t.search).get(`token`);if(!r)throw Error(`This page needs the URL toil-ui printed when it started, which carries the launch token. A reloaded page forgets its session, so open that URL again.`);let i=await fetch(`${e}api/session`,{method:`POST`,credentials:`omit`,headers:{"Content-Type":`application/json`},body:JSON.stringify({token:r})}),a=new URLSearchParams(t.search);a.delete(`token`);let o=a.toString();if(n.replaceState(null,``,`${t.pathname}${o?`?${o}`:``}${t.hash}`),!i.ok)throw await BS(i,`Signing in`);return await i.json()}var HS=(e,t,n,r={})=>fetch(`${e}${n}`,{method:r.body===void 0?`GET`:`POST`,credentials:`omit`,headers:{[RS]:t.session,...r.body===void 0?{}:{"Content-Type":`application/json`,[zS]:t.csrf}},...r.body===void 0?{}:{body:JSON.stringify(r.body)},signal:r.signal}),US=e=>typeof e==`object`&&!!e&&`ok`in e&&`meta`in e;function WS(e,t=`./`){return async(n,r={},i={})=>{let a=await HS(t,e,`api/execute`,{body:{command:n,input:r},signal:i.signal}),o;try{o=await a.clone().json()}catch{o=void 0}if(US(o))return o;throw await BS(a,`toil ${n}`)}}function GS(e,t=`./`){let n=async(e,t)=>{if(!e.ok)throw await BS(e,t);return await e.json()};return{status:async()=>n(await HS(t,e,`api/sync`),`Reading the sync status`),start:async r=>n(await HS(t,e,`api/sync`,{body:r===void 0?{}:{dossier:r}}),`Starting the sync`),wipe:async()=>n(await HS(t,e,`api/cache/wipe`,{body:{confirm:`wipe`}}),`Wiping the cache`)}}function KS(e,t=`./`){let n=async n=>{let r=await HS(t,e,n);if(!r.ok)throw await BS(r,n);return await r.json()};return{disabled:null,areas:()=>n(`api/config/areas`),settings:()=>n(`api/config/settings`),async run(n,r,i={}){let a=await HS(t,e,`api/config`,{body:{command:n,input:r,...i}}),o;try{o=await a.clone().json()}catch{o=void 0}if(US(o))return o;throw await BS(a,`toil ${n}`)}}}function qS(e,t=`./`){let n=async(n,r,i)=>{let a=await HS(t,e,`api/feedback`,{body:{fields:n,...r?{consent:!0}:{}},...i?{signal:i}:{}}),o;try{o=await a.clone().json()}catch{o=void 0}if(US(o))return o;throw await BS(a,`toil feedback`)};return{disabled:e.sample?xS:null,preview:(e,t)=>n(e,!1,t),send:e=>n(e,!0)}}async function JS(e,t,n=`./`){let r=new Map;if(e.agent!==`none`)for(let i of t){let t=await HS(n,e,`api/agent/starters?dossier=${encodeURIComponent(i)}`);r.set(i,t.ok?await t.json():[])}return{...e.agent===`none`?{notice:`${x_} ${S_}`}:{},starters:e=>r.get(e)??[],async ask(t,r){let i=await HS(n,e,`api/agent/ask`,{body:{dossier:t,prompt:r}});if(!i.ok)throw await BS(i,`The question`);return await i.json()},async*stream(t,r,i){let a=await HS(n,e,`api/agent/ask`,{body:{dossier:t,prompt:r,stream:!0},...i?{signal:i}:{}});if(!a.ok)throw await BS(a,`The question`);/^application\/x-ndjson/.test(a.headers.get(`content-type`)??``)?yield*YS(a):yield await a.json()}}}async function*YS(e){if(!e.body)throw Error(`The answer arrived with no body.`);let t=e.body.getReader(),n=new TextDecoder,r=``,i=!1,a=e=>{let t=JSON.parse(e);if(t.error)throw Error(`${t.error.message??`The agent failed.`}${t.error.fix?` ${t.error.fix}`:``}`);return t.done&&(i=!0),t.answer??null};for(;;){let{value:e,done:i}=await t.read();e&&(r+=n.decode(e,{stream:!0}));let o;for(;(o=r.indexOf(`
|
|
28
|
-
`))>=0;){let e=r.slice(0,o).trim();if(r=r.slice(o+1),!e)continue;let t=a(e);t&&(yield t)}if(i)break}if(r.trim()){let e=a(r.trim());e&&(yield e)}if(!i)throw Error(`The answer stopped partway: the connection to Toil UI closed.`)}function XS(e,t=`./`){let n=async(e,t)=>{if(!e.ok)throw await BS(e,t);return await e.json()};return{status:async()=>n(await HS(t,e,`api/agent/settings`),`Reading the agent settings`),save:async r=>n(await HS(t,e,`api/agent/settings`,{body:r}),`Saving the agent settings`)}}var ZS=1e3;function QS(e){let t=(e?.dossiers??[]).map(e=>e.lastSyncAt).sort();return t.length?t[t.length-1]:null}function $S({dossier:e}){let t=e.sources.filter(e=>e.status===`failed`);return(0,J.jsxs)(`li`,{className:`sync-dossier`,children:[(0,J.jsxs)(`p`,{children:[(0,J.jsx)(`strong`,{children:e.name}),` `,(0,J.jsxs)(`span`,{className:`sync-when`,children:[`synced `,Dp(e.lastSyncAt)]})]}),e.status===`failed`&&t.length===0&&(0,J.jsxs)(`p`,{className:`sync-bad`,children:[`The latest sync couldn't read this dossier: `,e.error]}),e.sources.length>0&&(0,J.jsx)(`ul`,{className:`sync-sources`,"aria-label":`${e.name} sources`,children:e.sources.map(e=>(0,J.jsx)(`li`,{className:e.status===`failed`?`sync-bad`:void 0,children:e.status===`ok`?(0,J.jsxs)(J.Fragment,{children:[Sp(e.area),` `,(0,J.jsxs)(`span`,{className:`sync-area`,children:[`(`,e.area,`)`]}),`: up to date`]}):(0,J.jsxs)(J.Fragment,{children:[Sp(e.area),` `,(0,J.jsxs)(`span`,{className:`sync-area`,children:[`(`,e.area,`)`]}),`: failed `,Dp(e.lastAttemptAt),`. `,e.error,` `,e.fix,` `,(0,J.jsx)(`strong`,{children:e.stale&&e.lastSuccessAt?`Showing the last good copy, from ${Dp(e.lastSuccessAt)}.`:`Nothing synced from it yet.`})]})},e.area))})]})}function eC({client:e,onChange:t,pollMs:n=ZS}){let[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(!1),[l,u]=(0,v.useState)(``),d=(0,v.useRef)(!1),f=(0,v.useRef)(null),p=(0,v.useRef)(null),m=(0,v.useCallback)(e=>{if(i(e),o(null),d.current&&!e.job.running){let n=e.dossiers.flatMap(e=>e.sources).filter(e=>e.status===`failed`).length;u(e.job.error?`The sync stopped: ${e.job.error}`:n?`Sync finished; ${n} source${n===1?``:`s`} failed.`:`Sync finished.`),t(e)}d.current=e.job.running},[t]),h=e=>o(e instanceof Error?e.message:String(e));(0,v.useEffect)(()=>{e.status().then(m,h)},[e,m]);let g=r?.job.running===!0;(0,v.useEffect)(()=>{if(!g)return;let t=setInterval(()=>e.status().then(m,h),n);return()=>clearInterval(t)},[g,e,m,n]),(0,v.useEffect)(()=>{s&&f.current?.focus()},[s]);let _=()=>{u(`Sync started.`),d.current=!0,e.start().then(m,h)},y=()=>{c(!1),p.current?.focus()},b=()=>{e.wipe().then(e=>{c(!1),m(e),u(`The cache is wiped. Nothing synced is left on this machine.`),t(e),p.current?.focus()},h)},x=e=>{e.key===`Escape`&&y()},S=r?.job,C=QS(r);return(0,J.jsx)(`aside`,{className:`sync-panel`,"aria-labelledby":`sync-heading`,children:(0,J.jsxs)(`div`,{className:`sync-inner`,children:[(0,J.jsxs)(`div`,{className:`sync-head`,children:[(0,J.jsx)(`h2`,{id:`sync-heading`,children:`Sync`}),(0,J.jsx)(`p`,{className:`sync-when`,children:r?C?`Last synced ${Dp(C)}. Kept ${r.retentionDays} days.`:`Nothing synced yet: press Sync now to read your dossiers through toil.`:`Reading the cache…`}),(0,J.jsxs)(`div`,{className:`sync-actions`,children:[(0,J.jsx)(`button`,{type:`button`,onClick:_,disabled:!r||g,children:g?`Syncing…`:`Sync now`}),(0,J.jsx)(`button`,{type:`button`,ref:p,onClick:()=>c(!0),disabled:!r||g,"aria-expanded":s,"aria-controls":`sync-confirm`,children:`Wipe the cache…`})]})]}),(0,J.jsx)(`p`,{role:`status`,className:`sync-live`,children:g&&S?`Syncing ${S.dossier??`the dossiers`}: ${S.dossiersDone} of ${S.dossiersTotal||`?`} dossiers, ${S.requests} requests, ${S.pages} pages${S.retries?`, ${S.retries} retries`:``}. ${S.messages[S.messages.length-1]??``}`:l}),g&&S&&S.dossiersTotal>0&&(0,J.jsx)(`progress`,{className:`sync-progress`,max:S.dossiersTotal,value:S.dossiersDone,"aria-label":`Dossiers synced`}),a&&(0,J.jsx)(`p`,{role:`alert`,className:`sync-bad`,children:a}),S&&!g&&S.error&&(0,J.jsxs)(`p`,{className:`sync-bad`,children:[`The last sync stopped: `,S.error]}),s&&(0,J.jsxs)(`div`,{className:`sync-confirm`,id:`sync-confirm`,role:`group`,"aria-labelledby":`sync-confirm-text`,onKeyDown:x,children:[(0,J.jsx)(`p`,{id:`sync-confirm-text`,children:`Delete everything Toil UI synced to this machine? The dashboards will be empty until the next sync, which fetches everything again. Your trackers are not touched.`}),(0,J.jsxs)(`div`,{className:`sync-actions`,children:[(0,J.jsx)(`button`,{type:`button`,className:`sync-danger`,onClick:b,children:`Wipe it`}),(0,J.jsx)(`button`,{type:`button`,ref:f,onClick:y,children:`Cancel`})]})]}),r&&r.dossiers.length>0&&(0,J.jsx)(`ul`,{className:`sync-dossiers`,"aria-label":`Dossiers in the cache`,children:r.dossiers.map(e=>(0,J.jsx)($S,{dossier:e},e.name))})]})})}var tC=(0,Xd.createRoot)(document.getElementById(`root`));function nC({session:e,execute:t,agent:n,names:r,status:i}){let[a,o]=(0,v.useState)(()=>QS(i)),[s,c]=(0,v.useState)(n),[l]=(0,v.useState)(()=>e.agentSettings?XS(e):null),u=(0,v.useCallback)(t=>{JS({...e,agent:t.kind},r).then(e=>{c(e),f(e=>e+1)})},[e,r]),[d,f]=(0,v.useState)(0),[p]=(0,v.useState)(()=>e.sync?GS(e):null),[m]=(0,v.useState)(()=>KS(e)),[h]=(0,v.useState)(()=>qS(e)),g=(0,v.useCallback)(e=>{o(QS(e)),f(e=>e+1)},[]);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(MS,{execute:t,agent:s,config:m,feedback:h,now:a??e.now,preview:e.sample,...l?{agentSettings:{client:l,onChange:u}}:{}},d),p&&(0,J.jsx)(eC,{client:p,onChange:g})]})}async function rC(){let e=await VS(),t=WS(e),n=await t(`dossiers list`,{},yh),r=n.ok?(n.data.dossiers??[]).map(e=>String(e.name)):[],i=await JS(e,r),a=e.sync?await GS(e).status().catch(()=>null):null;tC.render((0,J.jsx)(v.StrictMode,{children:(0,J.jsx)(nC,{session:e,execute:t,agent:i,names:r,status:a})}))}rC().catch(e=>{tC.render((0,J.jsx)(`main`,{id:`main`,children:(0,J.jsxs)(`div`,{role:`alert`,className:`failure`,children:[(0,J.jsx)(`h1`,{children:`Toil UI couldn't start`}),(0,J.jsx)(`p`,{children:e instanceof Error?e.message:String(e)})]})}))});export{vp as a,m as c,c as d,_g as i,u as l,T_ as n,Nf as o,n_ as r,hr as s,Ub as t,o as u};
|