ariadne-studio 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports);(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 t=e((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 ee(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function te(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(ee,ee):(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 oe(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,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(te(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+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+ie(a,u),c+=oe(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+ie(a,u++),c+=oe(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return oe(ae(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 O(e,t,n){if(e==null)return e;var r=[],i=0;return oe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function se(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 ce=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 k(e){var t=w.T,n={};n.types=t===null?null:t.types,w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(ee,ce)}catch(e){ce(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}}function le(e){var t=w.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else k(le.bind(null,e))}var ue={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!te(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ue,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=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.addTransitionType=le,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)!T.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 E(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)T.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 E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=te,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:se}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=k,e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.3.1`})),n=e(((e,n)=>{n.exports=t()})),r=e((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,D());else{var t=n(l);t!==null&&re(x,t.startTime-e)}}}var S=!1,C=-1,ee=5,w=-1;function T(){return g?!0:!(e.unstable_now()-w<ee)}function E(){if(g=!1,S){var t=e.unstable_now();w=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&&T());){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&&re(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(E)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,ne=te.port2;te.port1.onmessage=E,D=function(){ne.postMessage(null)}}else D=function(){_(E,0)};function re(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`):ee=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,re(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=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=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),o=e(((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=a()})),s=e((e=>{var t=i(),r=n(),a=o();function s(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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(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 u(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 d(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 f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){o=!0,n=i,r=a;break}if(c===r){o=!0,r=i,n=a;break}c=c.sibling}if(!o){for(c=a.child;c;){if(c===n){o=!0,n=a,r=i;break}if(c===r){o=!0,r=a,n=i;break}c=c.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(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(s(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function ee(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function w(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 T(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 E=Object.assign,D=Symbol.for(`react.element`),te=Symbol.for(`react.transitional.element`),ne=Symbol.for(`react.portal`),re=Symbol.for(`react.fragment`),ie=Symbol.for(`react.strict_mode`),ae=Symbol.for(`react.profiler`),oe=Symbol.for(`react.consumer`),O=Symbol.for(`react.context`),se=Symbol.for(`react.forward_ref`),ce=Symbol.for(`react.suspense`),k=Symbol.for(`react.suspense_list`),le=Symbol.for(`react.memo`),ue=Symbol.for(`react.lazy`),de=Symbol.for(`react.activity`),fe=Symbol.for(`react.legacy_hidden`),pe=Symbol.for(`react.memo_cache_sentinel`),me=Symbol.for(`react.view_transition`),he=Symbol.for(`react.recoverable`),ge=Symbol.iterator;function _e(e){return typeof e!=`object`||!e?null:(e=ge&&e[ge]||e[`@@iterator`],typeof e==`function`?e:null)}var ve=Symbol.for(`react.client.reference`);function ye(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case re:return`Fragment`;case ae:return`Profiler`;case ie:return`StrictMode`;case ce:return`Suspense`;case k:return`SuspenseList`;case de:return`Activity`;case me:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ne:return`Portal`;case O:return e.displayName||`Context`;case oe:return(e._context.displayName||`Context`)+`.Consumer`;case se:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case le:return t=e.displayName||null,t===null?ye(e.type)||`Memo`:t;case ue:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var be=Array.isArray,A=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe={pending:!1,data:null,method:null,action:null},Se=[],Ce=-1;function we(e){return{current:e}}function Te(e){0>Ce||(e.current=Se[Ce],Se[Ce]=null,Ce--)}function M(e,t){Ce++,Se[Ce]=e.current,e.current=t}var Ee=we(null),De=we(null),Oe=we(null),ke=we(null);function Ae(e,t){switch(M(Oe,t),M(De,e),M(Ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Te(Ee),M(Ee,e)}function N(){Te(Ee),Te(De),Te(Oe)}function P(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,M(ke,e)),t=Ee.current;var n=dp(t,e.type);t!==n&&(M(De,e),M(Ee,n))}function je(e){De.current===e&&(Te(Ee),Te(De)),ke.current===e&&(Te(ke),sh._currentValue=xe)}var Me,Ne;function Pe(e){if(Me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||``,Ne=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+Me+e+Ne}var Fe=!1;function Ie(e,t){if(!e||Fe)return``;Fe=!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(`
4
+ `),l=s.split(`
5
+ `);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=`
6
+ `+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{Fe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Pe(n):``}function Le(e,t){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe(`Lazy`);case 13:return e.child!==t&&t!==null?Pe(`Suspense Fallback`):Pe(`Suspense`);case 19:return Pe(`SuspenseList`);case 0:case 15:return Ie(e.type,!1);case 11:return Ie(e.type.render,!1);case 1:return Ie(e.type,!0);case 31:return Pe(`Activity`);case 30:return Pe(`ViewTransition`);default:return``}}function Re(e){try{var t=``,n=null;do t+=Le(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var ze=Object.prototype.hasOwnProperty,Be=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,He=t.unstable_shouldYield,Ue=t.unstable_requestPaint,We=t.unstable_now,Ge=t.unstable_getCurrentPriorityLevel,Ke=t.unstable_ImmediatePriority,qe=t.unstable_UserBlockingPriority,Je=t.unstable_NormalPriority,Ye=t.unstable_LowPriority,Xe=t.unstable_IdlePriority,Ze=t.log,F=t.unstable_setDisableYieldValue,Qe=null,$e=null;function et(e){if(typeof Ze==`function`&&F(e),$e&&typeof $e.setStrictMode==`function`)try{$e.setStrictMode(Qe,e)}catch{}}var tt=Math.clz32?Math.clz32:it,nt=Math.log,rt=Math.LN2;function it(e){return e>>>=0,e===0?32:31-(nt(e)/rt|0)|0}var at=256,ot=262144,I=4194304;function st(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 ct(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=st(n))):i=st(o):i=st(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=st(n))):i=st(o)):i=st(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 lt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ut(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-tt(n),i=1<<r;t|=e[r],n&=~i}return t}function dt(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 ft(){var e=I;return I<<=1,!(I&62914560)&&(I=4194304),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ht(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-tt(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&&gt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function gt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-tt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function _t(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function vt(e,t){var n=t&-t;return n=n&42?1:yt(n),(n&(e.suspendedLanes|t))===0?n:0}function yt(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 bt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function xt(){var e=j.p;return e===0?(e=window.event,e===void 0?32:Ch(e.type)):e}function St(e,t){var n=j.p;try{return j.p=e,t()}finally{j.p=n}}var Ct=Math.random().toString(36).slice(2),wt=`__reactFiber$`+Ct,Tt=`__reactProps$`+Ct,Et=`__reactContainer$`+Ct,Dt=`__reactEvents$`+Ct,Ot=`__reactListeners$`+Ct,kt=`__reactHandles$`+Ct,At=`__reactResources$`+Ct,jt=`__reactMarker$`+Ct,Mt=`__reactLoad$`+Ct;function Nt(e){delete e[wt],delete e[Tt],delete e[Ot],delete e[kt]}function Pt(e){var t;if(t=e[wt])return t;for(var n=e.parentNode;n;){if(t=n[Et]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[wt])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function Ft(e){if(e=e[wt]||e[Et]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function It(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Lt(e){var t=e[At];return t||=e[At]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Rt(e){e[jt]=!0}function zt(e){e[Mt]=void 0}var Bt=new Set,Vt={};function Ht(e,t){Ut(e,t),Ut(e+`Capture`,t)}function Ut(e,t){for(Vt[e]=t,e=0;e<t.length;e++)Bt.add(t[e])}var Wt=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]*$`),Gt={},Kt={};function qt(e){return ze.call(Kt,e)?!0:ze.call(Gt,e)?!1:Wt.test(e)?Kt[e]=!0:(Gt[e]=!0,!1)}var L=!1;function Jt(){var e=L;return L=!1,e}function Yt(e,t,n){if(qt(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 Xt(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 Zt(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 Qt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function $t(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function en(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 tn(e){if(!e._valueTracker){var t=$t(e)?`checked`:`value`;e._valueTracker=en(e,t,``+e[t])}}function nn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=$t(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var rn=/[\n"\\]/g;function an(e){return e.replace(rn,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function on(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=``+Qt(t)):e.value!==``+Qt(t)&&(e.value=``+Qt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):cn(e,Qt(n)):o===`number`&&e.value==t?cn(e,Qt(e.value)):cn(e,Qt(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=``+Qt(s):e.removeAttribute(`name`)}function sn(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)){tn(e);return}n=n==null?``:``+Qt(n),t=t==null?n:``+Qt(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),tn(e)}function cn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function ln(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=``+Qt(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 un(e,t,n){t!=null&&(t=``+Qt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Qt(n)}function dn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(s(92));if(be(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}n??=``,t=n}n=Qt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),tn(e)}function fn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pn=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 mn(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||pn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function hn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(s(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]=``,L=!0);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&(mn(e,i,r),L=!0)}else for(var a in t)t.hasOwnProperty(a)&&mn(e,a,t[a])}function gn(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 _n=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`]]),vn=/^[\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 yn(e){return vn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function bn(){}var xn=null;function Sn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cn=null,wn=null;function Tn(e){var t=Ft(e);if(t&&(e=t.stateNode)){var n=e[Tt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(on(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="`+an(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Tt]||null;if(!i)throw Error(s(90));on(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&nn(r)}break a;case`textarea`:un(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&ln(e,!!n.multiple,t,!1)}}}var En=!1;function Dn(e,t,n){if(En)return e(t,n);En=!0;try{return e(t)}finally{if(En=!1,(Cn!==null||wn!==null)&&(zd(),Cn&&(t=Cn,e=wn,wn=Cn=null,Tn(t),e)))for(t=0;t<e.length;t++)Tn(e[t])}}function On(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Tt]||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(s(231,t,typeof n));return n}var kn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,An=!1;if(kn)try{var jn={};Object.defineProperty(jn,"passive",{get:function(){An=!0}}),window.addEventListener(`test`,jn,jn),window.removeEventListener(`test`,jn,jn)}catch{An=!1}var Mn=null,Nn=null,Pn=null;function Fn(){if(Pn)return Pn;var e,t=Nn,n=t.length,r,i=`value`in Mn?Mn.value:Mn.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 Pn=i.slice(e,1<r?1-r:void 0)}function In(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 Ln(){return!0}function Rn(){return!1}function zn(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)?Ln:Rn,this.isPropagationStopped=Rn,this}return E(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=Ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Ln)},persist:function(){},isPersistent:Ln}),t}var Bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vn=zn(Bn),Hn=E({},Bn,{view:0,detail:0}),Un=zn(Hn),Wn,Gn,Kn,qn=E({},Hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ir,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!==Kn&&(Kn&&e.type===`mousemove`?(Wn=e.screenX-Kn.screenX,Gn=e.screenY-Kn.screenY):Gn=Wn=0,Kn=e),Wn)},movementY:function(e){return`movementY`in e?e.movementY:Gn}}),Jn=zn(qn),Yn=zn(E({},qn,{dataTransfer:0})),Xn=zn(E({},Hn,{relatedTarget:0})),Zn=zn(E({},Bn,{animationName:0,elapsedTime:0,pseudoElement:0})),Qn=zn(E({},Bn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),$n=zn(E({},Bn,{data:0})),er={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},tr={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`},nr={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function rr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nr[e])?!!t[e]:!1}function ir(){return rr}var ar=zn(E({},Hn,{key:function(e){if(e.key){var t=er[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=In(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?tr[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ir,charCode:function(e){return e.type===`keypress`?In(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?In(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),or=zn(E({},qn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),sr=zn(E({},Bn,{submitter:0})),cr=zn(E({},Hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ir})),lr=zn(E({},Bn,{propertyName:0,elapsedTime:0,pseudoElement:0})),ur=zn(E({},qn,{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})),dr=zn(E({},Bn,{newState:0,oldState:0,source:0})),fr=[9,13,27,32],pr=kn&&`CompositionEvent`in window,mr=null;kn&&`documentMode`in document&&(mr=document.documentMode);var hr=kn&&`TextEvent`in window&&!mr,gr=kn&&(!pr||mr&&8<mr&&11>=mr),_r=` `,vr=!1;function yr(e,t){switch(e){case`keyup`:return fr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function br(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var xr=!1;function Sr(e,t){switch(e){case`compositionend`:return br(t);case`keypress`:return t.which===32?(vr=!0,_r):null;case`textInput`:return e=t.data,e===_r&&vr?null:e;default:return null}}function Cr(e,t){if(xr)return e===`compositionend`||!pr&&yr(e,t)?(e=Fn(),Pn=Nn=Mn=null,xr=!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 gr&&t.locale!==`ko`?null:t.data;default:return null}}var wr={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 Tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!wr[e.type]:t===`textarea`}function Er(e,t,n,r){Cn?wn?wn.push(r):wn=[r]:Cn=r,t=Jf(t,`onChange`),0<t.length&&(n=new Vn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Dr=null,Or=null;function kr(e){Vf(e,0)}function Ar(e){if(nn(It(e)))return e}function jr(e,t){if(e===`change`)return t}var Mr=!1;if(kn){var Nr;if(kn){var Pr=`oninput`in document;if(!Pr){var Fr=document.createElement(`div`);Fr.setAttribute(`oninput`,`return;`),Pr=typeof Fr.oninput==`function`}Nr=Pr}else Nr=!1;Mr=Nr&&(!document.documentMode||9<document.documentMode)}function Ir(){Dr&&(Dr.detachEvent(`onpropertychange`,Lr),Or=Dr=null)}function Lr(e){if(e.propertyName===`value`&&Ar(Or)){var t=[];Er(t,Or,e,Sn(e)),Dn(kr,t)}}function Rr(e,t,n){e===`focusin`?(Ir(),Dr=t,Or=n,Dr.attachEvent(`onpropertychange`,Lr)):e===`focusout`&&Ir()}function zr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Ar(Or)}function Br(e,t){if(e===`click`)return Ar(t)}function Vr(e,t){if(e===`input`||e===`change`)return Ar(t)}function Hr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ur=typeof Object.is==`function`?Object.is:Hr;function Wr(e,t){if(Ur(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(!ze.call(t,i)||!Ur(e[i],t[i]))return!1}return!0}function Gr(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 Kr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qr(e,t){var n=Kr(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=Kr(n)}}function Jr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gr(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=Gr(e.document)}return t}function Xr(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 Zr=kn&&`documentMode`in document&&11>=document.documentMode,Qr=null,$r=null,ei=null,ti=!1;function ni(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ti||Qr==null||Qr!==Gr(r)||(r=Qr,`selectionStart`in r&&Xr(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}),ei&&Wr(ei,r)||(ei=r,r=Jf($r,`onSelect`),0<r.length&&(t=new Vn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Qr)))}function ri(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ii={animationend:ri(`Animation`,`AnimationEnd`),animationiteration:ri(`Animation`,`AnimationIteration`),animationstart:ri(`Animation`,`AnimationStart`),transitionrun:ri(`Transition`,`TransitionRun`),transitionstart:ri(`Transition`,`TransitionStart`),transitioncancel:ri(`Transition`,`TransitionCancel`),transitionend:ri(`Transition`,`TransitionEnd`)},ai={},oi={};kn&&(oi=document.createElement(`div`).style,`AnimationEvent`in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),`TransitionEvent`in window||delete ii.transitionend.transition);function si(e){if(ai[e])return ai[e];if(!ii[e])return e;var t=ii[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in oi)return ai[e]=t[n];return e}var ci=si(`animationend`),li=si(`animationiteration`),ui=si(`animationstart`),di=si(`transitionrun`),fi=si(`transitionstart`),pi=si(`transitioncancel`),mi=si(`transitionend`),hi=new Map,gi=`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(` `);gi.push(`scrollEnd`);function _i(e,t){hi.set(e,t),Ht(t,[e])}var vi=0;function yi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=bd.identifierPrefix;var n=vi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function bi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Od;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 xi(e,t){return e=bi(e),t=bi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var Si=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)},Ci=[],wi=0,Ti=0;function Ei(){for(var e=wi,t=Ti=wi=0;t<e;){var n=Ci[t];Ci[t++]=null;var r=Ci[t];Ci[t++]=null;var i=Ci[t];Ci[t++]=null;var a=Ci[t];if(Ci[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&&Ai(n,i,a)}}function Di(e,t,n,r){Ci[wi++]=e,Ci[wi++]=t,Ci[wi++]=n,Ci[wi++]=r,Ti|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Oi(e,t,n,r){return Di(e,t,n,r),ji(e)}function ki(e,t){return Di(e,null,null,t),ji(e)}function Ai(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-tt(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ji(e){if(50<kd)throw kd=0,Ad=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Mi={};function Ni(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 Pi(e,t,n,r){return new Ni(e,t,n,r)}function Fi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ii(e,t){var n=e.alternate;return n===null?(n=Pi(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 Li(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 Ri(e,t,n,r,i,a){var o=0;if(r=e,typeof r==`function`)Fi(r)&&(o=1);else if(typeof r==`string`)o=qm(e,n,Ee.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case de:return e=Pi(31,n,t,i),e.elementType=de,e.lanes=a,e;case re:return zi(n.children,i,a,t);case ie:o=8,i|=24;break;case ae:return e=Pi(12,n,t,i|2),e.elementType=ae,e.lanes=a,e;case ce:return e=Pi(13,n,t,i),e.elementType=ce,e.lanes=a,e;case k:return e=Pi(19,n,t,i),e.elementType=k,e.lanes=a,e;case fe:case me:return e=i|32,e=Pi(30,n,t,e),e.elementType=me,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case O:o=10;break a;case oe:o=9;break a;case se:o=11;break a;case le:o=14;break a;case ue:o=16,r=null;break a}o=29,n=Error(s(130,e===null?`null`:typeof e,``)),r=null}return t=Pi(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function zi(e,t,n,r){return e=Pi(7,e,r,t),e.lanes=n,e}function Bi(e,t,n){return e=Pi(6,e,null,t),e.lanes=n,e}function Vi(e){var t=Pi(18,null,null,0);return t.stateNode=e,t}function Hi(e,t,n){return t=Pi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ui=new WeakMap;function Wi(e,t){if(typeof e==`object`&&e){var n=Ui.get(e);return n===void 0?(t={value:e,source:t,stack:Re(t)},Ui.set(e,t),t):n}return{value:e,source:t,stack:Re(t)}}var Gi=[],Ki=0,qi=null,Ji=0,Yi=[],Xi=0,Zi=null,Qi=1,$i=``;function ea(e,t){Gi[Ki++]=Ji,Gi[Ki++]=qi,qi=e,Ji=t}function ta(e,t,n){Yi[Xi++]=Qi,Yi[Xi++]=$i,Yi[Xi++]=Zi,Zi=e;var r=Qi;e=$i;var i=32-tt(r)-1;r&=~(1<<i),n+=1;var a=32-tt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Qi=1<<32-tt(t)+i|n<<i|r,$i=a+e}else Qi=1<<a|n<<i|r,$i=e}function na(e){e.return!==null&&(ea(e,1),ta(e,1,0))}function ra(e){for(;e===qi;)qi=Gi[--Ki],Gi[Ki]=null,Ji=Gi[--Ki],Gi[Ki]=null;for(;e===Zi;)Zi=Yi[--Xi],Yi[Xi]=null,$i=Yi[--Xi],Yi[Xi]=null,Qi=Yi[--Xi],Yi[Xi]=null}function ia(e,t){Yi[Xi++]=Qi,Yi[Xi++]=$i,Yi[Xi++]=Zi,Qi=t.id,$i=t.overflow,Zi=e}var aa=null,R=null,z=!1,oa=null,sa=!1,ca=Error(s(519));function la(e){throw ha(Wi(Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ca}function ua(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[wt]=e,t[Tt]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<zf.length;n++)Q(zf[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),sn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),dn(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||ep(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=bn),t=!0):t=!1,t||la(e,!0)}function da(e){for(aa=e.return;aa;)switch(aa.tag){case 5:case 31:case 13:sa=!1;return;case 27:case 3:sa=!0;return;default:aa=aa.return}}function fa(e){if(e!==aa)return!1;if(!z)return da(e),z=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||pp(e.type,e.memoizedProps)),n=!n),n&&R&&la(e),da(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));R=dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));R=dm(e)}else t===27?(t=R,Sp(e.type)?(e=um,um=null,R=e):R=t):R=aa?lm(e.stateNode.nextSibling):null;return!0}function pa(){R=aa=null,z=!1}function ma(){var e=oa;return e!==null&&(pd===null?pd=e:pd.push.apply(pd,e),oa=null),e}function ha(e){oa===null?oa=[e]:oa.push(e)}var ga=we(null),_a=null,va=null;function ya(e,t,n){M(ga,t._currentValue),t._currentValue=n}function ba(e){e._currentValue=ga.current,Te(ga)}function xa(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 Sa(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),xa(a.return,n,e),r||(o=null);break a}a=c.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),xa(o,n,e),o=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),xa(i.return,n,e),o=i.child,o=o===null?null:o.sibling):o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Ca(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var c=i.type;Ur(i.pendingProps.value,o.value)||(e===null?e=[c]:e.push(c))}}else if(i===ke.current){if(o=i.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[sh]:e.push(sh))}i=i.return}return e!==null&&Sa(t,e,n,r),t.flags|=262144,e!==null}function wa(e){for(e=e.firstContext;e!==null;){if(!Ur(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){_a=e,va=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ea(e){return Oa(_a,e)}function Da(e,t){return _a===null&&Ta(e),Oa(e,t)}function Oa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},va===null){if(e===null)throw Error(s(308));va=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else va=va.next=t;return n}var ka=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()})}},Aa=t.unstable_scheduleCallback,ja=t.unstable_NormalPriority,Ma={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Na(){return{controller:new ka,data:new Map,refCount:0}}function Pa(e){e.refCount--,e.refCount===0&&Aa(ja,function(){e.controller.abort()})}function Fa(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 Ia=null;function La(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ra=null,za=0,Ba=0,Va=null;function Ha(e,t){if(Ra===null){var n=Ra=[];za=0,Ba=Pf(),Va={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return za++,t.then(Ua,Ua),t}function Ua(){if(--za===0&&(Ia=null,Ra!==null)){Va!==null&&(Va.status=`fulfilled`);var e=Ra;Ra=null,Ba=0,Va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Wa(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 Ga=A.S;A.S=function(e,t){if(gd=We(),typeof t==`object`&&t&&typeof t.then==`function`&&Ha(e,t),Ia!==null)for(var n=bf;n!==null;)Fa(n,Ia),n=n.next;if(n=e.types,n!==null){for(var r=bf;r!==null;)Fa(r,n),r=r.next;if(Ba!==0){r=Ia,r===null&&(r=Ia=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ga!==null&&Ga(e,t)};var Ka=we(null);function qa(){var e=Ka.current;return e===null?K.pooledCache:e}function Ja(e,t){t===null?M(Ka,Ka.current):M(Ka,t.pool)}function Ya(){var e=qa();return e===null?null:{parent:Ma._currentValue,pool:e}}var Xa=Error(s(460)),Za=Error(s(474)),Qa=Error(s(542)),$a={then:function(){}};function eo(e){return e=e.status,e===`fulfilled`||e===`rejected`}function to(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(bn,bn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ao(e),e===void 0&&!(`reason`in t)?Error(s(600)):e;default:if(typeof t.status==`string`)t.then(bn,bn);else{if(e=K,e!==null&&100<e.shellSuspendCounter)throw Error(s(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,ao(e),e}throw ro=t,Xa}}function no(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ro=e,Xa):e}}var ro=null;function io(){if(ro===null)throw Error(s(459));var e=ro;return ro=null,e}function ao(e){if(e===Xa||e===Qa)throw Error(s(483))}var oo=null,so=0;function co(e){var t=so;return so+=1,oo===null&&(oo=[]),to(oo,e,t)}function lo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function uo(e,t){throw t.$$typeof===D?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function fo(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 i(e,t){return e=Ii(e,t),e.index=0,e.sibling=null,e}function a(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 o(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Bi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===re?(e=d(e,t,n.props.children,r,n.key),lo(e,n),e):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===ue&&no(a)===t.type)?(t=i(t,n.props),lo(t,n),t.return=e,t):(t=Ri(n.type,n.key,n.props,null,e.mode,r),lo(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=Hi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=zi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Bi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case te:return n=Ri(t.type,t.key,t.props,null,e.mode,n),lo(n,t),n.return=e,n;case ne:return t=Hi(t,e.mode,n),t.return=e,t;case ue:return t=no(t),f(e,t,n)}if(be(t)||_e(t))return t=zi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,co(t),n);if(t.$$typeof===O)return f(e,Da(e,t),n);uo(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 te:return n.key===i?l(e,t,n,r):null;case ne:return n.key===i?u(e,t,n,r):null;case ue:return n=no(n),p(e,t,n,r)}if(be(n)||_e(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,co(n),r);if(n.$$typeof===O)return p(e,t,Da(e,n),r);uo(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 te:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case ne:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ue:return r=no(r),m(e,t,n,r,i)}if(be(r)||_e(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,co(r),i);if(r.$$typeof===O)return m(e,t,n,Da(t,r),i);uo(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=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),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),z&&ea(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return z&&ea(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)),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),z&&ea(i,h),l}function g(i,o,c,l){if(c==null)throw Error(s(151));for(var u=null,d=null,h=o,g=o=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),z&&ea(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return z&&ea(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),z&&ea(i,g),u}function _(e,r,a,c){if(typeof a==`object`&&a&&a.type===re&&a.key===null&&a.props.ref===void 0&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case te:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===re){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),lo(c,a),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ue&&no(l)===r.type){n(e,r.sibling),c=i(r,a.props),lo(c,a),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===re?(c=zi(a.props.children,e.mode,c,a.key),lo(c,a),c.return=e,e=c):(c=Ri(a.type,a.key,a.props,null,e.mode,c),lo(c,a),c.return=e,e=c)}return o(e);case ne:a:{for(l=a.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Hi(a,e.mode,c),c.return=e,e=c}return o(e);case ue:return a=no(a),_(e,r,a,c)}if(be(a))return h(e,r,a,c);if(_e(a)){if(l=_e(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return _(e,r,co(a),c);if(a.$$typeof===O)return _(e,r,Da(e,a),c);uo(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=Bi(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{so=0;var i=_(e,t,n,r);return oo=null,i}catch(t){if(t===Xa||t===Qa)throw t;var a=Pi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var po=fo(!0),mo=fo(!1),ho=!1;function go(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _o(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 vo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function yo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ji(e),Ai(e,null,n),t}return Di(e,r,t,n),ji(e)}function bo(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,_t(e,n)}}function xo(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 So=!1;function Co(){if(So){var e=Va;if(e!==null)throw e}}function wo(e,t,n,r){So=!1;var i=e.updateQueue;ho=!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?(J&f)===f:(r&f)===f){f!==0&&f===Ba&&(So=!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=E({},d,f);break a;case 2:ho=!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),sd|=o,e.lanes=o,e.memoizedState=d}}function To(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function Eo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)To(n[e],t)}var Do=we(null),Oo=we(0);function ko(e,t){e=ad,M(Oo,e),M(Do,t),ad=e|t.baseLanes}function Ao(){M(Oo,ad),M(Do,Do.current)}function jo(){ad=Oo.current,Te(Do),Te(Oo)}var Mo=we(null),No=null;function Po(e){var t=e.alternate;M(zo,zo.current&1),M(Mo,e),No===null&&(t===null||Do.current!==null||t.memoizedState!==null)&&(No=e)}function Fo(e){M(zo,zo.current),M(Mo,e),No===null&&(No=e)}function Io(e){e.tag===22?(M(zo,zo.current),M(Mo,e),No===null&&(No=e)):Lo()}function Lo(){M(zo,zo.current),M(Mo,Mo.current)}function Ro(e){Te(Mo),No===e&&(No=null),Te(zo)}var zo=we(0);function Bo(e,t){M(Mo,Mo.current),M(zo,t)}function Vo(e){Te(zo),Te(Mo),No===e&&(No=null)}function Ho(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||om(n)||sm(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 Uo=0,B=null,V=null,Wo=null,Go=!1,Ko=!1,qo=!1,Jo=0,Yo=0,Xo=null,Zo=0;function Qo(){throw Error(s(321))}function $o(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ur(e[n],t[n]))return!1;return!0}function es(e,t,n,r,i,a){return Uo=a,B=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?_c:vc,qo=!1,a=n(r,i),qo=!1,Ko&&(a=ns(t,n,r,i)),ts(e),a}function ts(e){A.H=gc;var t=V!==null&&V.next!==null;if(Uo=0,Wo=V=B=null,Go=!1,Yo=0,Xo=null,t)throw Error(s(300));e===null||Fc||(e=e.dependencies,e!==null&&wa(e)&&(Fc=!0))}function ns(e,t,n,r){B=e;var i=0;do{if(Ko&&(Xo=null),Yo=0,Ko=!1,25<=i)throw Error(s(301));if(i+=1,Wo=V=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}A.H=yc,a=t(n,r)}while(Ko);return a}function rs(){var e=A.H,t=e.useState()[0];return t=typeof t.then==`function`?us(t):t,e=e.useState()[0],(V===null?null:V.memoizedState)!==e&&(B.flags|=1024),t}function is(){var e=Jo!==0;return Jo=0,e}function as(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function os(e){if(Go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Go=!1}Uo=0,Wo=V=B=null,Ko=!1,Yo=Jo=0,Xo=null}function ss(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wo===null?B.memoizedState=Wo=e:Wo=Wo.next=e,Wo}function cs(){if(V===null){var e=B.alternate;e=e===null?null:e.memoizedState}else e=V.next;var t=Wo===null?B.memoizedState:Wo.next;if(t!==null)Wo=t,V=e;else{if(e===null)throw B.alternate===null?Error(s(467)):Error(s(310));V=e,e={memoizedState:V.memoizedState,baseState:V.baseState,baseQueue:V.baseQueue,queue:V.queue,next:null},Wo===null?B.memoizedState=Wo=e:Wo=Wo.next=e}return Wo}function ls(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function us(e){var t=Yo;return Yo+=1,Xo===null&&(Xo=[]),e=to(Xo,e,t),t=B,(Wo===null?t.memoizedState:Wo.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?_c:vc),e}function ds(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return us(e);if(e.$$typeof===he)return;if(e.$$typeof===O)return Ea(e)}throw Error(s(438,String(e)))}function fs(e){var t=null,n=B.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=B.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=ls(),B.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]=pe;return t.index++,n}function ps(e,t){return typeof t==`function`?t(e):t}function ms(e){return hs(cs(),V,e)}function hs(e,t,n){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=o=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Uo&f)===f:(J&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===Ba&&(d=!0);else if((Uo&p)===p){u=u.next,p===Ba&&(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,o=a):l=l.next=f,B.lanes|=p,sd|=p;f=u.action,qo&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,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,o=a):l=l.next=p,B.lanes|=f,sd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?o=a:l.next=c,!Ur(a,e.memoizedState)&&(Fc=!0,d&&(n=Va,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function gs(e){var t=cs(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Ur(a,t.memoizedState)||(Fc=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _s(e,t,n){var r=B,i=cs(),a=z;if(a){if(n===void 0)throw Error(s(407));n=n()}else n=t();var o=!Ur((V||i).memoizedState,n);if(o&&(i.memoizedState=n,Fc=!0),i=i.queue,Hs(bs.bind(null,r,i,e),[e]),e=i.getSnapshot!==t||o||Wo!==null&&!!(Wo.memoizedState.tag&1),Ls(e?9:8,{destroy:void 0},ys.bind(null,r,i,n,t),null),e){if(r.flags|=2048,K===null)throw Error(s(349));a||Uo&127||vs(r,t,n)}return n}function vs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=B.updateQueue,t===null?(t=ls(),B.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ys(e,t,n,r){t.value=n,t.getSnapshot=r,xs(t)&&Ss(e)}function bs(e,t,n){return n(function(){xs(t)&&Ss(e)})}function xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ur(e,n)}catch{return!0}}function Ss(e){var t=ki(e,2);t!==null&&Pd(t,e,2)}function Cs(e){var t=ss();if(typeof e==`function`){var n=e;if(e=n(),qo){et(!0);try{n()}finally{et(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:e},t}function ws(e,t,n,r){return e.baseState=n,hs(e,V,typeof r==`function`?r:ps)}function Ts(e,t,n,r,i){if(pc(e))throw Error(s(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};A.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Es(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Es(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=A.T,o={};o.types=a===null?null:a.types,A.T=o;try{var s=n(i,r),c=A.S;c!==null&&c(o,s),Ds(e,t,s)}catch(n){ks(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),A.T=a}}else try{a=n(i,r),Ds(e,t,a)}catch(n){ks(e,t,n)}}function Ds(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Os(e,t,n)},function(n){return ks(e,t,n)}):Os(e,t,n)}function Os(e,t,n){t.status=`fulfilled`,t.value=n,As(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Es(e,n)))}function ks(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,As(t),t=t.next;while(t!==r)}e.action=null}function As(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function js(e,t){return t}function Ms(e,t){if(z){var n=K.formState;if(n!==null){a:{var r=B;if(z){if(R){b:{for(var i=R,a=sa;i.nodeType!==8;)if(!a||(i=lm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){R=lm(i.nextSibling),r=i.data===`F!`;break a}}la(r)}r=!1}r&&(t=n[0])}}return n=ss(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:js,lastRenderedState:t},n.queue=r,n=uc.bind(null,B,r),r.dispatch=n,r=Cs(!1),a=fc.bind(null,B,!1,r.queue),r=ss(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ts.bind(null,B,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ns(e){return Ps(cs(),V,e)}function Ps(e,t,n){if(t=hs(e,t,js)[0],e=ms(ps)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=us(t)}catch(e){throw e===Xa?Qa:e}else r=t;t=cs();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(B.flags|=2048,Ls(9,{destroy:void 0},Fs.bind(null,i,n),null)),[r,a,e]}function Fs(e,t){e.action=t}function Is(e){var t=cs(),n=V;if(n!==null)return Ps(t,n,e);cs(),t=t.memoizedState,n=cs();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ls(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=B.updateQueue,t===null&&(t=ls(),B.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 Rs(){return cs().memoizedState}function zs(e,t,n,r){var i=ss();B.flags|=e,i.memoizedState=Ls(1|t,{destroy:void 0},n,r===void 0?null:r)}function Bs(e,t,n,r){var i=cs();r=r===void 0?null:r;var a=i.memoizedState.inst;V!==null&&r!==null&&$o(r,V.memoizedState.deps)?i.memoizedState=Ls(t,a,n,r):(B.flags|=e,i.memoizedState=Ls(1|t,a,n,r))}function Vs(e,t){zs(8390656,8,e,t)}function Hs(e,t){Bs(2048,8,e,t)}function Us(e){B.flags|=4;var t=B.updateQueue;if(t===null)t=ls(),B.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ws(e){var t=cs().memoizedState;return Us({ref:t,nextImpl:e}),function(){if(G&2)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Gs(e,t){return Bs(4,2,e,t)}function Ks(e,t){return Bs(4,4,e,t)}function qs(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 Js(e,t,n){n=n==null?null:n.concat([e]),Bs(4,4,qs.bind(null,t,e),n)}function Ys(){}function Xs(e,t){var n=cs();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&$o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zs(e,t){var n=cs();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&$o(t,r[1]))return r[0];if(r=e(),qo){et(!0);try{e()}finally{et(!1)}}return n.memoizedState=[r,t],r}function Qs(e,t,n){return n===void 0||Uo&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=Md(),B.lanes|=e,sd|=e,n)}function $s(e,t,n,r){return Ur(n,t)?n:Do.current===null?!(Uo&106)||Uo&1073741824&&!(J&261930)?(Fc=!0,e.memoizedState=n):(e=Md(),B.lanes|=e,sd|=e,t):(e=Qs(e,n,r),Ur(e,t)||(Fc=!0),e)}function ec(e,t,n,r,i){var a=j.p;j.p=a!==0&&8>a?a:8;var o=A.T,s={};s.types=o===null?null:o.types,A.T=s,fc(e,!1,t,n);try{var c=i(),l=A.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?dc(e,t,Wa(c,r),jd(e)):dc(e,t,r,jd(e))}catch(n){dc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{j.p=a,o!==null&&s.types!==null&&(o.types=s.types),A.T=o}}function tc(){}function nc(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=rc(e).queue;ec(e,i,t,xe,n===null?tc:function(){return ic(e),n(r)})}function rc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:xe,baseState:xe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:xe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ic(e){var t=rc(e);t.next===null&&(t=e.alternate.memoizedState),dc(e,t.next.queue,{},jd())}function ac(){return Ea(sh)}function oc(){return cs().memoizedState}function sc(){return cs().memoizedState}function cc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=vo(n);var r=yo(t,e,n);r!==null&&(Pd(r,t,n),bo(r,t,n)),t={cache:Na()},e.payload=t;return}t=t.return}}function lc(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},pc(e)?mc(t,n):(n=Oi(e,t,n,r),n!==null&&(Pd(n,e,r),hc(n,t,r)))}function uc(e,t,n){dc(e,t,n,jd())}function dc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(pc(e))mc(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,Ur(s,o))return Di(e,t,i,0),K===null&&Ei(),!1}catch{}if(n=Oi(e,t,i,r),n!==null)return Pd(n,e,r),hc(n,t,r),!0}return!1}function fc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},pc(e)){if(t)throw Error(s(479))}else t=Oi(e,n,r,2),t!==null&&Pd(t,e,2)}function pc(e){var t=e.alternate;return e===B||t!==null&&t===B}function mc(e,t){Ko=Go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_t(e,n)}}var gc={readContext:Ea,use:ds,useCallback:Qo,useContext:Qo,useEffect:Qo,useImperativeHandle:Qo,useLayoutEffect:Qo,useInsertionEffect:Qo,useMemo:Qo,useReducer:Qo,useRef:Qo,useState:Qo,useDebugValue:Qo,useDeferredValue:Qo,useTransition:Qo,useSyncExternalStore:Qo,useId:Qo,useHostTransitionStatus:Qo,useFormState:Qo,useActionState:Qo,useOptimistic:Qo,useMemoCache:Qo,useCacheRefresh:Qo,useEffectEvent:Qo},_c={readContext:Ea,use:ds,useCallback:function(e,t){return ss().memoizedState=[e,t===void 0?null:t],e},useContext:Ea,useEffect:Vs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),zs(4194308,4,qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zs(4194308,4,e,t)},useInsertionEffect:function(e,t){zs(4,2,e,t)},useMemo:function(e,t){var n=ss();t=t===void 0?null:t;var r=e();if(qo){et(!0);try{e()}finally{et(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ss();if(n!==void 0){var i=n(t);if(qo){et(!0);try{n(t)}finally{et(!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=lc.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=ss();return e={current:e},t.memoizedState=e},useState:function(e){e=Cs(e);var t=e.queue,n=uc.bind(null,B,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ys,useDeferredValue:function(e,t){return Qs(ss(),e,t)},useTransition:function(){var e=Cs(!1);return e=ec.bind(null,B,e.queue,!0,!1),ss().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=B,i=ss();if(z){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),K===null)throw Error(s(349));J&127||vs(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Vs(bs.bind(null,r,a,e),[e]),r.flags|=2048,Ls(9,{destroy:void 0},ys.bind(null,r,a,n,t),null),n},useId:function(){var e=ss(),t=K.identifierPrefix;if(z){var n=$i,r=Qi;n=(r&~(1<<32-tt(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Jo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Zo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ac,useFormState:Ms,useActionState:Ms,useOptimistic:function(e){var t=ss();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=fc.bind(null,B,!0,n),n.dispatch=t,[e,t]},useMemoCache:fs,useCacheRefresh:function(){return ss().memoizedState=cc.bind(null,B)},useEffectEvent:function(e){var t=ss(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},vc={readContext:Ea,use:ds,useCallback:Xs,useContext:Ea,useEffect:Hs,useImperativeHandle:Js,useInsertionEffect:Gs,useLayoutEffect:Ks,useMemo:Zs,useReducer:ms,useRef:Rs,useState:function(){return ms(ps)},useDebugValue:Ys,useDeferredValue:function(e,t){return $s(cs(),V.memoizedState,e,t)},useTransition:function(){var e=ms(ps)[0],t=cs().memoizedState;return[typeof e==`boolean`?e:us(e),t]},useSyncExternalStore:_s,useId:oc,useHostTransitionStatus:ac,useFormState:Ns,useActionState:Ns,useOptimistic:function(e,t){return ws(cs(),V,e,t)},useMemoCache:fs,useCacheRefresh:sc,useEffectEvent:Ws},yc={readContext:Ea,use:ds,useCallback:Xs,useContext:Ea,useEffect:Hs,useImperativeHandle:Js,useInsertionEffect:Gs,useLayoutEffect:Ks,useMemo:Zs,useReducer:gs,useRef:Rs,useState:function(){return gs(ps)},useDebugValue:Ys,useDeferredValue:function(e,t){var n=cs();return V===null?Qs(n,e,t):$s(n,V.memoizedState,e,t)},useTransition:function(){var e=gs(ps)[0],t=cs().memoizedState;return[typeof e==`boolean`?e:us(e),t]},useSyncExternalStore:_s,useId:oc,useHostTransitionStatus:ac,useFormState:Is,useActionState:Is,useOptimistic:function(e,t){var n=cs();return V===null?(n.baseState=e,[e,n.queue.dispatch]):ws(n,V,e,t)},useMemoCache:fs,useCacheRefresh:sc,useEffectEvent:Ws};function bc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:E({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=jd(),i=vo(r);i.payload=t,n!=null&&(i.callback=n),t=yo(e,i,r),t!==null&&(Pd(t,e,r),bo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=jd(),i=vo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=yo(e,i,r),t!==null&&(Pd(t,e,r),bo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jd(),r=vo(n);r.tag=2,t!=null&&(r.callback=t),t=yo(e,r,n),t!==null&&(Pd(t,e,n),bo(t,e,n))}};function Sc(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?!Wr(n,r)||!Wr(i,a):!0}function Cc(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&&xc.enqueueReplaceState(t,t.state,null)}function wc(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=E({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Tc(e){Si(e)}function Ec(e){console.error(e)}function Dc(e){Si(e)}function Oc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function kc(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 Ac(e,t,n){return n=vo(n),n.tag=3,n.payload={element:null},n.callback=function(){Oc(e,t)},n}function jc(e){return e=vo(e),e.tag=3,e}function Mc(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(){kc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){kc(t,n,r),typeof i!=`function`&&(yd===null?yd=new Set([this]):yd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Nc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ca(t,n,i,!0),n=Mo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return No===null?Kd():n.alternate===null&&od===0&&(od=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===$a?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),mf(e,r,i)),!1;case 22:return n.flags|=65536,r===$a?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)),mf(e,r,i)),!1}throw Error(s(435,n.tag))}return mf(e,r,i),Kd(),!1}if(z)return t=Mo.current,t===null?(r!==ca&&(t=Error(s(423),{cause:r}),ha(Wi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Wi(r,n),i=Ac(e.stateNode,r,i),xo(e,i),od!==4&&(od=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==ca&&(e=Error(s(422),{cause:r}),ha(Wi(e,n)))),!1;var a=Error(s(520),{cause:r});if(a=Wi(a,n),fd===null?fd=[a]:fd.push(a),od!==4&&(od=2),t===null)return!0;r=Wi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Ac(n.stateNode,r,e),xo(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(yd===null||!yd.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=jc(i),Mc(i,e,n,r),xo(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Pc=Error(s(461)),Fc=!1;function Ic(e,t,n,r){t.child=e===null?mo(t,null,n,r):po(t,e.child,n,r)}function Lc(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 Ta(t),r=es(e,t,n,o,a,i),s=is(),e!==null&&!Fc?(as(e,t,i),dl(e,t,i)):(z&&s&&na(t),t.flags|=1,Ic(e,t,r,i),t.child)}function Rc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Fi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,zc(e,t,a,r,i)):(e=Ri(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!fl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Wr:n,n(o,r)&&e.ref===t.ref)return dl(e,t,i)}return t.flags|=1,e=Ii(a,r),e.ref=t.ref,e.return=t,t.child=e}function zc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Wr(a,r)&&e.ref===t.ref){if(Fc=!1,t.pendingProps=r=a,fl(e,i))e.flags&131072&&(Fc=!0);else return t.lanes=e.lanes,dl(e,t,i)}}return qc(e,t,n,r,i)}function Bc(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 Hc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ja(t,a===null?null:a.cachePool),a===null?Ao():ko(t,a),Io(t);else return r=t.lanes=536870912,Hc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ja(t,null),Ao(),Lo()):(Ja(t,a.cachePool),ko(t,a),Lo(),t.memoizedState=null);return Ic(e,t,i,n),t.child}function Vc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hc(e,t,n,r,i){var a=qa();return a=a===null?null:{parent:Ma._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ja(t,null),Ao(),Io(t),e!==null&&Ca(e,t,r,!0),t.childLanes=i,null}function Uc(e,t){return t=nl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wc(e,t,n){return po(t,e.child,null,n),e=Uc(t,t.pendingProps),e.flags|=2,Ro(t),t.memoizedState=null,e}function Gc(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(z){if(r.mode===`hidden`)return e=Uc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Vc(null,e);if(Fo(t),(e=R)?(e=am(e,sa),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi===null?null:{id:Qi,overflow:$i},retryLane:536870912,hydrationErrors:null},n=Vi(e),n.return=t,t.child=n,aa=t,R=null)):e=null,e===null)throw la(t);return t.lanes=536870912,null}return Uc(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(Fo(t),i){if(t.flags&256)t.flags&=-257,t=Wc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558))}else if(Fc||Ca(e,t,n,!1),i=(n&e.childLanes)!==0,Fc||i){if(Do.current===null){if(r=K,r!==null&&(o=vt(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,ki(e,o),Pd(r,e,o),Pc;Kd()}t=Wc(e,t,n)}else e=a.treeContext,R=lm(o.nextSibling),aa=t,z=!0,oa=null,sa=!1,e!==null&&ia(t,e),t=Uc(t,r),t.flags|=134221824;return t}return e=Ii(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Kc(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(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function qc(e,t,n,r,i){return Ta(t),n=es(e,t,n,r,void 0,i),r=is(),e!==null&&!Fc?(as(e,t,i),dl(e,t,i)):(z&&r&&na(t),t.flags|=1,Ic(e,t,n,i),t.child)}function Jc(e,t,n,r,i,a){return Ta(t),t.updateQueue=null,n=ns(t,r,n,i),ts(e),r=is(),e!==null&&!Fc?(as(e,t,a),dl(e,t,a)):(z&&r&&na(t),t.flags|=1,Ic(e,t,n,a),t.child)}function Yc(e,t,n,r,i){if(Ta(t),t.stateNode===null){var a=Mi,o=n.contextType;typeof o==`object`&&o&&(a=Ea(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=xc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},go(t),o=n.contextType,a.context=typeof o==`object`&&o?Ea(o):Mi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(bc(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&&xc.enqueueReplaceState(a,a.state,null),wo(t,r,a,i),Co(),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=wc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Mi,typeof u==`object`&&u&&(o=Ea(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)&&Cc(t,a,r,o),ho=!1;var f=t.memoizedState;a.state=f,wo(t,r,a,i),Co(),l=t.memoizedState,s||f!==l||ho?(typeof d==`function`&&(bc(t,n,d,r),l=t.memoizedState),(c=ho||Sc(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,_o(e,t),o=t.memoizedProps,u=wc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Mi,typeof l==`object`&&l&&(c=Ea(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)&&Cc(t,a,r,c),ho=!1,f=t.memoizedState,a.state=f,wo(t,r,a,i),Co();var p=t.memoizedState;o!==d||f!==p||ho||e!==null&&e.dependencies!==null&&wa(e.dependencies)?(typeof s==`function`&&(bc(t,n,s,r),p=t.memoizedState),(u=ho||Sc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&wa(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,Kc(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=po(t,e.child,null,i),t.child=po(t,null,n,i)):Ic(e,t,n,i),t.memoizedState=a.state,e=t.child):e=dl(e,t,i),e}function Xc(e,t,n,r){return pa(),t.flags|=256,Ic(e,t,n,r),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qc(e){return{baseLanes:e,cachePool:Ya()}}function $c(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ud),e}function el(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(zo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(z){if(i?Po(t):Lo(),(e=R)?(e=am(e,sa),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi===null?null:{id:Qi,overflow:$i},retryLane:536870912,hydrationErrors:null},n=Vi(e),n.return=t,t.child=n,aa=t,R=null)):e=null,e===null)throw la(t);return t.lanes=sm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Lo(),i=t.mode,a=nl({mode:`hidden`,children:a},i),r=zi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Qc(n),r.childLanes=$c(e,o,n),t.memoizedState=Zc,Vc(null,r)):(Po(t),tl(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return il(e,t,a,o,r,c,s,n)}return i?(Lo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ii(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=zi(i,a,n,null),i.flags|=2):i=Ii(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Vc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Qc(n):(a=i.cachePool,a===null?a=Ya():(s=Ma._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=$c(e,o,n),t.memoizedState=Zc,Vc(e.child,r)):(Po(t),n=e.child,e=n.sibling,n=Ii(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 tl(e,t){return t=nl({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function nl(e,t){return e=Pi(22,e,null,t),e.lanes=0,e}function rl(e,t,n){return po(t,e.child,null,n),e=tl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function il(e,t,n,r,i,a,o,c){if(n)return t.flags&256?(Po(t),t.flags&=-257,rl(e,t,c)):t.memoizedState===null?(Lo(),a=i.fallback,o=t.mode,i=nl({mode:`visible`,children:i.children},o),a=zi(a,o,c,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,po(t,e.child,null,c),i=t.child,i.memoizedState=Qc(c),i.childLanes=$c(e,r,c),t.memoizedState=Zc,Vc(null,i)):(Lo(),t.child=e.child,t.flags|=128,null);if(Po(t),sm(a)){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(i=Error(s(419)),i.stack=``,i.digest=r,ha({value:i,source:null,stack:null})),rl(e,t,c)}if(Fc||Ca(e,t,c,!1),r=(c&e.childLanes)!==0,Fc||r){if(Do.current!==null)return rl(e,t,c);if(r=K,r!==null&&(i=vt(r,c),i!==0&&i!==o.retryLane))throw o.retryLane=i,ki(e,i),Pd(r,e,i),Pc;return om(a)||Kd(),rl(e,t,c)}return om(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,R=lm(a.nextSibling),aa=t,z=!0,oa=null,sa=!1,e!==null&&ia(t,e),t=tl(t,i.children),t.flags|=134221824,t)}function al(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xa(e.return,t,n)}function ol(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ho(n)===null&&(t=e),e=e.sibling}return t}function sl(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 cl(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 ll(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=zo.current;if(t.flags&128)return Bo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Bo(t,o),i===`backwards`&&e!==null?(cl(e),Ic(e,t,r,n),cl(e)):Ic(e,t,r,n),r=z?Ji:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&al(e,n,t);else if(e.tag===19)al(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=ol(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,cl(t)),sl(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&&Ho(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sl(t,!0,n,null,a,r);break;case`together`:sl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=ol(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sl(t,!1,i,n,a,r)}return t.child}function ul(e,t,n){var r=t.pendingProps;return ya(t,t.type,r.value),Ic(e,t,r.children,n),t.child}function dl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Ca(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Ii(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ii(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&wa(e)))}function pl(e,t,n){switch(t.tag){case 3:Ae(t,t.stateNode.containerInfo),ya(t,Ma,e.memoizedState.cache),pa();break;case 27:case 5:P(t);break;case 4:Ae(t,t.stateNode.containerInfo);break;case 10:ya(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Po(t),t.flags|=128,null;r=Ca(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?el(e,t,n):(Po(t),e=dl(e,t,n),e===null?null:e.sibling)}Po(t);break;case 19:if(t.flags&128)return ll(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Ca(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ll(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Bo(t,zo.current),r)break;return null;case 22:return t.lanes=0,Bc(e,t,n,t.pendingProps);case 24:ya(t,Ma,e.memoizedState.cache)}return dl(e,t,n)}function ml(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Fc=!0;else{if(!fl(e,n)&&!(t.flags&128))return Fc=!1,pl(e,t,n);Fc=!!(e.flags&131072)}}else Fc=!1,z&&t.flags&1048576&&ta(t,Ji,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=no(t.elementType),t.type=e,typeof e==`function`)Fi(e)?(r=wc(e,r),t.tag=1,t=Yc(null,t,e,r,n)):(t.tag=0,t=qc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===se){t.tag=11,t=Lc(null,t,e,r,n);break a}if(i===le){t.tag=14,t=Rc(null,t,e,r,n);break a}if(i===O){t.tag=10,t.type=e,t=ul(null,t,n);break a}}throw t=ye(e)||e,Error(s(306,t,``))}}return t;case 0:return qc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=wc(r,t.pendingProps),Yc(e,t,r,i,n);case 3:a:{if(Ae(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,_o(e,t),wo(t,r,null,n);var o=t.memoizedState;if(r=o.cache,ya(t,Ma,r),r!==a.cache&&Sa(t,[Ma],n,!0),Co(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=Xc(e,t,r,n);break a}if(r!==i){i=Wi(Error(s(424)),t),ha(i),t=Xc(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(R=lm(e.firstChild),aa=t,z=!0,oa=null,sa=!0,n=mo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(pa(),r===i){t=dl(e,t,n);break a}Ic(e,t,r,n)}t=t.child}return t;case 26:return Kc(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:z||(t.stateNode=fp(t.type,t.pendingProps,Oe.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return P(t),e===null&&z&&(r=t.stateNode=hm(t.type,t.pendingProps,Oe.current),aa=t,sa=!0,i=R,Sp(t.type)?(um=i,R=lm(r.firstChild)):R=i),Ic(e,t,t.pendingProps.children,n),Kc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&z&&((i=r=R)&&(r=rm(r,t.type,t.pendingProps,sa),r===null?i=!1:(t.stateNode=r,aa=t,R=lm(r.firstChild),sa=!1,i=!0)),i||la(t)),P(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,pp(i,a)?r=null:o!==null&&pp(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=es(e,t,rs,null,null,n),sh._currentValue=i),Kc(e,t),Ic(e,t,r,n),t.child;case 6:return e===null&&z&&((e=n=R)&&(n=im(n,t.pendingProps,sa),n===null?e=!1:(t.stateNode=n,aa=t,R=null,e=!0)),e||la(t)),null;case 13:return el(e,t,n);case 4:return Ae(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=po(t,null,r,n):Ic(e,t,r,n),t.child;case 11:return Lc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Kc(e,t),Ic(e,t,r,n),t.child;case 8:return Ic(e,t,t.pendingProps.children,n),t.child;case 12:return Ic(e,t,t.pendingProps.children,n),t.child;case 10:return ul(e,t,n);case 9:return i=t.type._context,r=t.pendingProps.children,Ta(t),i=Ea(i),r=r(i),t.flags|=1,Ic(e,t,r,n),t.child;case 14:return Rc(e,t,t.type,t.pendingProps,n);case 15:return zc(e,t,t.type,t.pendingProps,n);case 19:return ll(e,t,n);case 31:return Gc(e,t,n);case 22:return Bc(e,t,n,t.pendingProps);case 24:return Ta(t),r=Ea(Ma),e===null?(i=qa(),i===null&&(i=K,a=Na(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},go(t),ya(t,Ma,i)):((e.lanes&n)!==0&&(_o(e,t),wo(t,null,null,n),Co()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,ya(t,Ma,r),r!==i.cache&&Sa(t,[Ma],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),ya(t,Ma,r))),Ic(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:z&&na(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Kc(e,t),Ic(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function hl(e){e.flags|=4}function gl(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(Ud())e.flags|=8192;else throw ro=$a,Za}}else e.flags&=-16777217}function _l(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t)){if(Ud())e.flags|=8192;else throw ro=$a,Za}}function vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ft(),e.lanes|=t,dd|=t)}function yl(e,t){if(!z)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 H(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 bl(e,t,n){var r=t.pendingProps;switch(ra(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return H(t),null;case 1:return H(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ba(Ma),N(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fa(t)?hl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ma())),H(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(hl(t),a===null?(H(t),gl(t,i,null,r,n)):(H(t),_l(t,a))):a?a===e.memoizedState?(H(t),t.flags&=-16777217):(hl(t),H(t),_l(t,a)):(e=e.memoizedProps,e!==r&&hl(t),H(t),gl(t,i,e,r,n)),null;case 27:if(je(t),n=Oe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&hl(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return H(t),t.subtreeFlags&=-33554433,null}e=Ee.current,fa(t)?ua(t,e):(e=hm(i,r,n),t.stateNode=e,hl(t))}return H(t),t.subtreeFlags&=-33554433,null;case 5:if(je(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&hl(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return H(t),t.subtreeFlags&=-33554433,null}if(a=Ee.current,fa(t))ua(t,a);else{var o=lp(Oe.current);switch(a){case 1:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=o.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[wt]=t,a[Tt]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(np(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&hl(t)}}return H(t),t.subtreeFlags&=-33554433,gl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&hl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=Oe.current,fa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=aa,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[wt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||la(t,!0)}else e=lp(e).createTextNode(r),e[wt]=t,t.stateNode=e}return H(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=fa(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[wt]=t}else pa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;H(t),e=!1}else n=ma(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ro(t),t):(Ro(t),null);if(t.flags&128)throw Error(s(558))}return H(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=fa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[wt]=t}else pa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;H(t),i=!1}else i=ma(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ro(t),t):(Ro(t),null)}return Ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),vl(t,t.updateQueue),H(t),null);case 4:return N(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,H(t),null;case 10:return ba(t.type),H(t),null;case 19:if(Vo(t),r=t.memoizedState,r===null)return H(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)yl(r,!1);else{if(od!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ho(e),a!==null){for(t.flags|=128,yl(r,!1),e=a.updateQueue,t.updateQueue=e,vl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Li(n,e),n=n.sibling;return Bo(t,zo.current&1|2),z&&ea(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&We()>_d&&(t.flags|=128,i=!0,yl(r,!1),t.lanes=4194304)}}else{if(!i){if(e=Ho(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,vl(t,e),yl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!a.alternate&&!z)return H(t),null}else 2*We()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,i=!0,yl(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}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=We(),e.sibling=null,a=zo.current,a=i?a&1|2:a&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||z?Bo(t,a):(n=a,M(Mo,t),M(zo,n),No===null&&(No=t)),z&&ea(t,r.treeForkCount),e}return H(t),null;case 22:case 23:return Ro(t),jo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(H(t),t.subtreeFlags&6&&(t.flags|=8192)):H(t),n=t.updateQueue,n!==null&&vl(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&&Te(Ka),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ba(Ma),H(t),null;case 25:return null;case 30:return t.flags|=33554432,H(t),null}throw Error(s(156,t.tag))}function xl(e,t){switch(ra(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ba(Ma),N(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return je(t),null;case 31:if(t.memoizedState!==null){if(Ro(t),t.alternate===null)throw Error(s(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Vo(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 N(),null;case 10:return ba(t.type),null;case 22:case 23:return Ro(t),jo(),e!==null&&Te(Ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ba(Ma),null;case 25:return null;default:return null}}function Sl(e,t){switch(ra(t),t.tag){case 3:ba(Ma),N();break;case 26:case 27:case 5:je(t);break;case 4:N();break;case 31:t.memoizedState!==null&&Ro(t);break;case 13:Ro(t);break;case 19:Vo(t);break;case 10:ba(t.type);break;case 22:case 23:Ro(t),jo(),e!==null&&Te(Ka);break;case 24:ba(Ma)}}function Cl(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){Z(t,t.return,e)}}function wl(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){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Tl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Eo(t,n)}catch(t){Z(e,e.return,t)}}}function El(e,t,n){n.props=wc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Dl(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=yi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,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){Z(e,t,n)}}function Ol(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Z(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){Z(e,t,n)}else n.current=null}}function kl(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++)em(e.stateNode,t[n])}function Al(e){for(var t=e.return;t!==null&&(Nl(t)&&em(e.stateNode,t.stateNode),!Ml(t));)t=t.return}function jl(e){for(var t=e.return;t!==null&&(Nl(t)&&tm(e.stateNode,t.stateNode),!Ml(t));)t=t.return}function Ml(e){return e.tag===5||e.tag===3||e.tag===27}function Nl(e){return e&&e.tag===7&&e.stateNode!==null}function Pl(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){Z(e,e.return,t)}}function Fl(e,t,n){try{var r=e.stateNode;ip(r,e.type,n,t),r[Tt]=t}catch(t){Z(e,e.return,t)}}function Il(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sp(e.type)||e.tag===4}function Ll(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Il(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&&Sp(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 Rl(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=bn)),kl(e,r),L=!0;else if(i!==4&&(i===27&&(kl(e,r),r=null,Sp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Rl(e,t,n,r),e=e.sibling;e!==null;)Rl(e,t,n,r),e=e.sibling}function zl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),kl(e,r),L=!0;else if(i!==4&&(i===27&&(kl(e,r),r=null,Sp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(zl(e,t,n,r),e=e.sibling;e!==null;)zl(e,t,n,r),e=e.sibling}function Bl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);np(t,r,n),t[wt]=e,t[Tt]=n}catch(t){Z(e,e.return,t)}}var Vl=!1,Hl=null;function Ul(e){(e.tag===30||e.subtreeFlags&33554432)&&(Vl=!0)}var Wl=null;function Gl(){var e=Wl;return Wl=null,e}var Kl=0;function ql(e,t,n,r,i){return Kl=0,Jl(e.child,t,n,r,i)}function Jl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Op(o);r.push(s),s.view&&(a=!0)}else a||Op(o).view&&(a=!0);Vl=!0,Tp(o,Kl===0?t:t+`_`+Kl,n),Kl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Jl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Yl(e,t){for(;e!==null;)e.tag===5?Ep(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Yl(e.child,t),e=e.sibling}function Xl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Xl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(s(544));var n=t.name;t=xi(t.default,t.share),t!==`none`&&(ql(e,n,t,null,!1)||Yl(e.child,!1))}e=e.sibling}}function Zl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=yi(r,n),a=xi(r.default,n.paired?r.share:r.enter);a===`none`?Xl(e):ql(e,i,a,null,!1)?(Xl(e),n.paired||t||Nd(e,r.onEnter)):Yl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e,t),e=e.sibling;else Xl(e)}function Ql(e){if(Hl!==null&&Hl.size!==0){var t=Hl;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=xi(n.default,n.share);if(a!==`none`&&(ql(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Nd(e,n.onShare)):Yl(e.child,!1)),t.delete(r),t.size===0)break}}}Ql(e)}e=e.sibling}}}function $l(e){if(e.tag===30){var t=e.memoizedProps,n=yi(t,e.stateNode),r=Hl===null?void 0:Hl.get(n),i=xi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(ql(e,n,i,null,!1)?r===void 0?Nd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Hl.delete(n),Nd(e,t.onShare)):Yl(e.child,!1)),Hl!==null&&Ql(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)$l(e),e=e.sibling;else Hl!==null&&Ql(e)}function eu(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=yi(t,e.stateNode);t=xi(t.default,t.update),e.flags&=-5,t!==`none`&&ql(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&eu(e);e=e.sibling}}function tu(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,Yl(e.child,!1))}tu(e)}e=e.sibling}}function nu(e){if(e.tag===30)e.stateNode.paired=null,Yl(e.child,!1),tu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)nu(e),e=e.sibling;else tu(e)}function ru(e){for(e=e.child;e!==null;)e.tag===30?Yl(e.child,!1):e.subtreeFlags&33554432&&ru(e),e=e.sibling}function iu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Kl<a.length){var l=a[Kl],u=Op(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&&Tp(c,Kl===0?n:n+`_`+Kl,i),s&&e.flags&4||(Wl===null&&(Wl=[]),Wl.push(c,Kl===0?r:r+`_`+Kl,t.memoizedProps)),Kl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:iu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function au(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=yi(n,r),a=xi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(kp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Kl=0,i=iu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Nd(e,n.onUpdate))}else e.subtreeFlags&33554432&&au(e,t);e=e.sibling}}var ou=!1,U=!1,su=!1,cu=!1,lu=typeof WeakSet==`function`?WeakSet:Set,uu=null,du=!1,fu=!1,pu=!1,mu=!1;function hu(e,t,n){if(e=e.containerInfo,sp=gh,e=Yr(e),Xr(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(cp={focusedElem:e,selectionRange:r},gh=!1,n=(n&335544064)===n,uu=t,t=n?9270:1024;uu!==null;){if(e=uu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&$l(r[a]);if(e.alternate===null&&e.flags&2)n&&Ul(e),gu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&$l(r),gu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Ul(e),gu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,uu=r):(n&&eu(e),gu(n))}}Hl=null}function gu(e){for(;uu!==null;){var t=uu,n=e,r=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(i&1024&&r!==null){n=void 0,i=r.memoizedProps,r=r.memoizedState;var a=t.stateNode;try{var o=wc(t.type,i);n=a.getSnapshotBeforeUpdate(o,r),a.__reactInternalSnapshotBeforeUpdate=n}catch(e){Z(t,t.return,e)}}break;case 3:if(i&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)nm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:nm(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=yi(r.memoizedProps,r.stateNode),i=t.memoizedProps,i=xi(i.default,i.update),i!==`none`&&ql(r,n,i,r.memoizedState=[],!0));break;default:if(i&1024)throw Error(s(163))}if(r=t.sibling,r!==null){r.return=t.return,uu=r;break}uu=t.return}}function _u(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&Cl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=wc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}}r&64&&Tl(n),r&512&&Dl(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{Eo(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&Bl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Pl(n),r&512&&Dl(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=_f.bind(null,n),cm(e,n))));break;case 22:if(r=n.memoizedState!==null||ou,!r){var a=t!==null&&t.memoizedState!==null||U;t=ou,i=U,ou=r,(U=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),ou=t,U=i}break;case 30:Iu(e,n),r&512&&Dl(n,n.return);break;case 7:r&512&&Dl(n,n.return);default:Iu(e,n)}}function vu(e,t){for(e=e.child;e!==null;)yu(e,t),e=e.sibling}function yu(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){Z(e,e.return,t)}bu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,L=!0}catch(t){Z(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?wp(s,!0):wp(e.stateNode,!1)}catch(t){Z(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&vu(e,t);break;default:vu(e,t)}}function bu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:yu(n,r);break a;case 22:n.memoizedState===null&&bu(n,r);break a;default:bu(n,r)}}e=e.sibling}}function xu(e){var t=e.alternate;t!==null&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Nt(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 W=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($e&&typeof $e.onCommitFiberUnmount==`function`)try{$e.onCommitFiberUnmount(Qe,n)}catch{}switch(n.tag){case 26:U||Ol(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!U&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:U||Ol(n,t),jl(n);var r=W,i=Su;Sp(n.type)&&(W=n.stateNode,Su=!1),Cu(e,t,n),gm(n.stateNode,n.type,n.memoizedProps),W=r,Su=i;break;case 5:U||Ol(n,t),jl(n);case 6:if(n.tag===6&&jl(n),r=W,i=Su,W=null,Cu(e,t,n),W=r,Su=i,W!==null){if(Su)try{(W.nodeType===9?W.body:W.nodeName===`HTML`?W.ownerDocument.body:W).removeChild(n.stateNode),L=!0}catch(e){Z(n,t,e)}else try{W.removeChild(n.stateNode),L=!0}catch(e){Z(n,t,e)}}break;case 18:W!==null&&(Su?(e=W,Cp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hh(e)):Cp(W,n.stateNode));break;case 4:r=W,i=Su,W=n.stateNode.containerInfo,Su=!0,Cu(e,t,n),W=r,Su=i;break;case 0:case 11:case 14:case 15:wl(2,n,t),U||wl(4,n,t),Cu(e,t,n);break;case 1:U||(Ol(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&El(n,t,r)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:U=(r=U)||n.memoizedState!==null,Cu(e,t,n),U=r;break;case 30:Ol(n,t),Cu(e,t,n);break;case 7:U||Ol(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){Z(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){Z(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 lu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lu),t;default:throw Error(s(435,e.tag))}}function Ou(e,t){var n=Du(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=vf.bind(null,e,t);t.then(r,r)}})}function ku(e,t,n){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var a=r[i],o=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Sp(l.type)){W=l.stateNode,Su=!1;break a}break;case 5:W=l.stateNode,Su=!1;break a;case 3:case 4:W=l.stateNode.containerInfo,Su=!0;break a}l=l.return}if(W===null)throw Error(s(160));wu(o,c,a),W=null,Su=!1,o=a.alternate,o!==null&&(o.return=null),a.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,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var a=0;a<r.length;a++){var o=r[a];o.ref.impl=o.nextImpl}ku(t,e,n),Mu(e),i&4&&(wl(3,e,e.return),Cl(3,e),wl(5,e,e.return));break;case 1:ku(t,e,n),Mu(e),i&512&&(U||r===null||Ol(r,r.return)),i&64&&ou&&(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(a=Au,ku(t,e,n),Mu(e),i&512&&(U||r===null||Ol(r,r.return)),i&4){if(i=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(ou)e.stateNode=fp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,i=a.ownerDocument||a;b:switch(t){case`title`:r=i.getElementsByTagName(`title`)[0],(!r||r[jt]||r[wt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=i.createElement(t),i.head.insertBefore(r,i.querySelector(`head > title`))),np(r,t,n),r[wt]=e,Rt(r),t=r;break a;case`link`:if(a=Gm(`link`,`href`,i).get(t+(n.href||``))){for(o=0;o<a.length;o++)if(r=a[o],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)){a.splice(o,1);break b}}r=i.createElement(t),np(r,t,n),i.head.appendChild(r);break;case`meta`:if(a=Gm(`meta`,`content`,i).get(t+(n.content||``))){for(o=0;o<a.length;o++)if(r=a[o],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)){a.splice(o,1);break b}}r=i.createElement(t),np(r,t,n),i.head.appendChild(r);break;default:throw Error(s(468,t))}r[wt]=e,Rt(r),t=r}e.stateNode=t}}else ou||Km(a,e.type,e.stateNode)}else e.stateNode=Bm(a,n,e.memoizedProps)}else i===n?n===null&&e.stateNode!==null&&Fl(e,e.memoizedProps,r.memoizedProps):(i===null?(t=r.stateNode,t===null||U||t.parentNode.removeChild(t)):i.count--,n===null?ou||Km(a,e.type,e.stateNode):Bm(a,n,e.memoizedProps))}break;case 27:ku(t,e,n),Mu(e),i&512&&(U||r===null||Ol(r,r.return)),r!==null&&i&4&&Fl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(a=su,su=!1,ku(t,e,n),su=a,Mu(e),i&512&&(U||r===null||Ol(r,r.return)),e.flags&32){t=e.stateNode;try{fn(t,``),L=!0}catch(t){Z(e,e.return,t)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Fl(e,t,r===null?t:r.memoizedProps)),i&1024&&(cu=!0);break;case 6:if(ku(t,e,n),Mu(e),i&4){if(e.stateNode===null)throw Error(s(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,L=!0}catch(t){Z(e,e.return,t)}}break;case 3:if(L=!1,Wm=null,a=Au,Au=bm(t.containerInfo),ku(t,e,n),Au=a,Mu(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(t){Z(e,e.return,t)}cu&&(cu=!1,Nu(e)),L=!1;break;case 4:i=su,su=ou,r=Jt(),a=Au,Au=bm(e.stateNode.containerInfo),ku(t,e,n),Mu(e),Au=a,L&&fu&&(pu=!0),L=r,su=i;break;case 12:ku(t,e,n),Mu(e);break;case 31:ku(t,e,n),Mu(e),i&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)&&(hd=We()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 22:a=e.memoizedState!==null,o=r!==null&&r.memoizedState!==null;var c=ou,l=U,u=su;ou=c||a,su=u||a,U=l||o,ku(t,e,n),U=l,su=u,ou=c,Mu(e),i&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||r===null||o||ou||U||(t=o||U,n=ou,r=U,ou=a||ou,U=t,Lu(e,2),ou=n,U=r),!a&&su||vu(e,a)),i&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),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 30:i&512&&(U||r===null||Ol(r,r.return)),i=Jt(),a=fu,o=(n&335544064)===n,c=e.memoizedProps,fu=o&&xi(c.default,c.update)!==`none`,ku(t,e,n),Mu(e),o&&r!==null&&L&&(e.flags|=4),fu=a,L=i;break;case 21:break;case 7:i&512&&(U||r===null||Ol(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(Il(r)){n=r;break}r=r.return}r=null;for(var i=e.return;i!==null;){if(Nl(i)){var a=i.stateNode;r===null?r=[a]:r.push(a)}if(Ml(i))break;i=i.return}var o=r;if(n==null)throw Error(s(160));switch(n.tag){case 27:var c=n.stateNode;zl(e,Ll(e),c,o);break;case 5:var l=n.stateNode;n.flags&32&&(fn(l,``),n.flags&=-33),zl(e,Ll(e),l,o);break;case 3:case 4:var u=n.stateNode.containerInfo;Rl(e,Ll(e),u,o);break;default:throw Error(s(161))}}catch(t){Z(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 au(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Zl(e,!1);else switch(e.tag){case 3:if(mu=du=!1,Gl(),Pu(t,e),!du&&!pu){if(e=Wl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ep(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`})),mu=!0}Wl=null;break;case 5:Pu(t,e);break;case 4:r=du,du=!1,Pu(t,e),du&&(pu=!0),du=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Zl(e,!1));break;case 30:r=du,i=Gl(),du=!1,Pu(t,e),du&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=yi(a,o),o=yi(n.memoizedProps,o);var s=xi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Kl=0,t=iu(e,n,t,o,s,a,!0),Kl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Nd(e,e.memoizedProps.onUpdate),Wl=i):i!==null&&(i.push.apply(i,Wl),Wl=i),du=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_u(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:wl(4,n,n.return),Lu(n,r);break;case 1:Ol(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&El(n,n.return,i),Lu(n,r);break;case 27:r&2&&gm(n.stateNode,n.type,n.memoizedProps);case 5:Ol(n,n.return),n.tag!==5&&n.tag!==27||jl(n),Lu(n,r);break;case 6:jl(n);break;case 26:Ol(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||U||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:Ol(n,n.return),Lu(n,r);break;case 7:Ol(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),Cl(4,a);break;case 1:if(Ru(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Z(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++)To(l[i],c)}catch(e){Z(r,r.return,e)}}s&&o&64&&Tl(a),Dl(a,a.return);break;case 27:n&2&&Bl(a);case 5:a.tag!==5&&a.tag!==27||Al(a),Ru(i,a,n),s&&r===null&&o&4&&Pl(a),Dl(a,a.return);break;case 6:Al(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||ou||Km(bm(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Pl(a),Dl(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),Dl(a,a.return);break;case 30:Ru(i,a,n),Dl(a,a.return);break;case 7:Dl(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&&Pa(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&&Pa(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&&ru(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&nu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&Cl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&mu&&(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&&Pa(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){Z(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&&nu(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&&nu(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&&(Yl(a.child,!0),Yl(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),Cl(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,Hl===null&&(Hl=new Map),Hl.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];uu=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&&wl(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];uu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:wl(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(;uu!==null;){var n=uu;switch(n.tag){case 0:case 11:case 15:wl(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:Pa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,uu=r;else a:for(n=e;uu!==null;){r=uu;var i=r.sibling,a=r.return;if(xu(r),r===n){uu=null;break a}if(i!==null){i.return=a,uu=i;break a}uu=a}}}var $u={getCacheForType:function(e){var t=Ea(Ma),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ea(Ma).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,G=0,K=null,q=null,J=0,Y=0,td=null,nd=!1,rd=!1,id=!1,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=null,pd=null,md=!1,hd=0,gd=0,_d=1/0,vd=null,yd=null,X=0,bd=null,xd=null,Sd=0,Cd=0,wd=null,Td=null,Ed=null,Dd=null,Od=null,kd=0,Ad=null;function jd(){return G&2&&J!==0?J&-J:A.T===null?xt():Pf()}function Md(){if(ud===0){if(!(J&536870912)||z){var e=ot;ot<<=1,!(ot&3932160)&&(ot=262144),ud=e}else ud=536870912}return e=Mo.current,e!==null&&(e.flags|=32),ud}function Nd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Pp(yi(e.memoizedProps,n))),Dd===null&&(Dd=[]),Dd.push(t.bind(null,r))}}function Pd(e,t,n){(e===K&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Vd(e,0),Rd(e,J,ud,!1)),mt(e,n),G&2&&e===K||(e===K&&(!(G&2)&&(cd|=n),od===4&&Rd(e,J,ud,!1)),Ef(e))}function Fd(e,t,n){if(G&6)throw Error(s(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||lt(e,t),i=r?Yd(e,t):qd(e,t,!0),a=r;do{if(i===0){rd&&!r&&Rd(e,t,0,!1);break}if(n=e.current.alternate,a&&!Ld(n))i=qd(e,t,!1),a=!1;else{if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o===0?o&536870912?536870912:0:o;if(o!==0){t=o;a:{var c=e;i=fd;var l=c.current.memoizedState.isDehydrated;if(l&&(Vd(c,o).flags|=256),o=qd(c,o,!1),o!==2&&o!==6){if(id&&!l){c.errorRecoveryDisabledLanes|=a,cd|=a,i=4;break a}a=pd,pd=i,a!==null&&(pd===null?pd=a:pd.push.apply(pd,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){Vd(e,0),Rd(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Rd(r,t,ud,!nd);break a;case 2:pd=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=hd+300-We(),10<i)){if(Rd(r,t,ud,!nd),ct(r,0,!0)!==0)break a;Sd=t,r.timeoutHandle=gp(Id.bind(null,r,n,pd,vd,md,t,ud,cd,dd,nd,a,`Throttled`,-0,0),i);break a}Id(r,n,pd,vd,md,t,ud,cd,dd,nd,a,null,-0,0)}break}}while(1);Ef(e)}function Id(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:bn},Hl=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?hd-We():(a&4194048)===a?gd-We():0,m=eh(d,m),m!==null)?(Sd=a,e.cancelPendingCommit=m(nf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Rd(e,a,o,!l)):nf(e,t,a,n,r,i,o,s,c,l,u,d)}function Ld(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(!Ur(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 Rd(e,t,n,r){t=ut(e,t),t&=~ld,t&=~cd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-tt(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&gt(e,n,t)}function zd(){return G&6?!0:(Df(0,!1),!1)}function Bd(){if(q!==null){if(Y===0)var e=q.return;else e=q,va=_a=null,os(e),oo=null,so=0,e=q;for(;e!==null;)Sl(e.alternate,e),e=e.return;q=null}}function Vd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,_p(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sd=0,Bd(),K=e,q=n=Ii(e.current,null),J=t,Y=0,td=null,nd=!1,rd=lt(e,t),id=!1,dd=ud=ld=cd=sd=od=0,pd=fd=null,md=!1,ad=ut(e,t),Ei(),n}function Hd(e,t){B=null,A.H=gc,t===Xa||t===Qa?(t=io(),Y=3):t===Za?(t=io(),Y=4):Y=t===Pc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,td=t,q===null&&(od=1,Oc(e,Wi(t,e.current)))}function Ud(){var e=Mo.current;return e===null?!0:(J&4194048)===J?No===null:(J&62914560)===J||J&536870912?e===No:!1}function Wd(){var e=A.H;return A.H=gc,e===null?gc:e}function Gd(){var e=A.A;return A.A=$u,e}function Kd(){od=4,nd||(J&4194048)!==J&&Mo.current!==null||(rd=!0),!(sd&134217727)&&!(cd&134217727)||K===null||Rd(K,J,ud,!1)}function qd(e,t,n){var r=G;G|=2;var i=Wd(),a=Gd();(K!==e||J!==t)&&(vd=null,Vd(e,t)),t=!1;var o=od;a:do try{if(Y!==0&&q!==null){var s=q,c=td;switch(Y){case 8:Bd(),o=6;break a;case 3:case 2:case 9:case 6:Mo.current===null&&(t=!0);var l=Y;if(Y=0,td=null,$d(e,s,c,l),n&&rd){o=0;break a}break;default:l=Y,Y=0,td=null,$d(e,s,c,l)}}Jd(),o=od;break}catch(t){Hd(e,t)}while(1);return t&&e.shellSuspendCounter++,va=_a=null,G=r,A.H=i,A.A=a,q===null&&(K=null,J=0,Ei()),o}function Jd(){for(;q!==null;)Zd(q)}function Yd(e,t){var n=G;G|=2;var r=Wd(),i=Gd();K!==e||J!==t?(vd=null,_d=We()+500,Vd(e,t)):rd=lt(e,t);a:do try{if(Y!==0&&q!==null){t=q;var a=td;b:switch(Y){case 1:Y=0,td=null,$d(e,t,a,1);break;case 2:case 9:if(eo(a)){Y=0,td=null,Qd(t);break}t=function(){Y!==2&&Y!==9||K!==e||(Y=7),Ef(e)},a.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:eo(a)?(Y=0,td=null,Qd(t)):(Y=0,td=null,$d(e,t,a,7));break;case 5:var o=null;switch(q.tag){case 26:o=q.memoizedState;case 5:case 27:var c=q;if(o?Ym(o):c.stateNode.complete){Y=0,td=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,ef(u))}break b}}Y=0,td=null,$d(e,t,a,5);break;case 6:Y=0,td=null,$d(e,t,a,6);break;case 8:Bd(),od=6;break a;default:throw Error(s(462))}}Xd();break}catch(t){Hd(e,t)}while(1);return va=_a=null,A.H=r,A.A=i,G=n,q===null?(K=null,J=0,Ei(),od):0}function Xd(){for(;q!==null&&!He();)Zd(q)}function Zd(e){var t=ml(e.alternate,e,ad);e.memoizedProps=e.pendingProps,t===null?ef(e):q=t}function Qd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Jc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=Jc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:os(t);var r=t;r===aa&&(z?(da(r),r.tag===5&&r.stateNode!=null&&(R=r.stateNode)):(da(r),z=!0));default:Sl(n,t),t=q=Li(t,ad),t=ml(n,t,ad)}e.memoizedProps=e.pendingProps,t===null?ef(e):q=t}function $d(e,t,n,r){va=_a=null,os(t),oo=null,so=0;var i=t.return;try{if(Nc(e,i,t,n,J)){od=1,Oc(e,Wi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;od=1,Oc(e,Wi(n,e.current)),q=null;return}t.flags&32768?(z||r===1?e=!0:rd||J&536870912?e=!1:(nd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Mo.current,r!==null&&r.tag===13&&(r.flags|=16384))),tf(t,e)):ef(t)}function ef(e){var t=e;do{if(t.flags&32768){tf(t,nd);return}e=t.return;var n=bl(t.alternate,t,ad);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);od===0&&(od=5)}function tf(e,t){do{var n=xl(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);od=6,q=null}function nf(e,t,n,r,i,a,o,c,l,u,d,f){e.cancelPendingCommit=null;do df();while(X!==0);if(G&6)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));e===K&&(q=K=null,J=0),xd=t,bd=e,Sd=n,wd=i,Td=r,rf(e,t,n,o,c,l,f)}}function rf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Cd=s,s|=Ti,ht(e,n,s,r,i,a),Dd=null,(n&335544064)===n?(Od=La(e),r=10262):(Od=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,yf(Je,function(){return ff(),null})):(e.callbackNode=null,e.callbackPriority=0),Vl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=A.T,A.T=null,i=j.p,j.p=2,a=G,G|=4;try{hu(e,t,n)}finally{G=a,j.p=i,A.T=r}}X=1,Vl?Ed=Mp(o,e.containerInfo,Od,sf,cf,of,lf,ff,af,null,null):(sf(),cf(),lf())}function af(e){if(X!==0){var t=bd.onRecoverableError;t(e,{componentStack:null})}}function of(){X===3&&(X=0,Fu(xd,bd),X=4)}function sf(){if(X===1){X=0;var e=bd,t=xd,n=Sd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=A.T,A.T=null;var i=j.p;j.p=2;var a=G;G|=4;try{fu=pu=!1,ju(t,e,n),n=cp;var o=Yr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Jr(s.ownerDocument.documentElement,s)){if(c!==null&&Xr(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 _=qr(s,h),v=qr(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=!!sp,cp=sp=null}finally{G=a,j.p=i,A.T=r}}e.current=t,X=2}}function cf(){if(X===2){X=0;var e=bd,t=xd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=G;G|=4;try{_u(e,t.alternate,t)}finally{G=i,j.p=r,A.T=n}}X=3}}function lf(){if(X===4||X===3){X=0;var e=Ed;Ed=null,Ue();var t=bd,n=xd,r=Sd,i=Td,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?X=5:(X=0,xd=bd=null,uf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(yd=null),bt(r),n=n.stateNode,$e&&typeof $e.onCommitFiberRoot==`function`)try{$e.onCommitFiberRoot(Qe,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=A.T,a=j.p,j.p=2,A.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{A.T=n,j.p=a}}if(i=Dd,o=Od,Od=null,i!==null&&(Dd=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);Sd&3&&df(),Ef(t),a=t.pendingLanes,r&261930&&a&42?t===Ad?kd++:(kd=0,Ad=t):(kd=0,Ad=null),Df(0,!1)}}function uf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pa(t)))}function df(){return Ed!==null&&(Ed.skipTransition(),Ed=null),sf(),cf(),lf(),ff()}function ff(){if(X!==5)return!1;var e=bd,t=Cd;Cd=0;var n=bt(Sd),r=A.T,i=j.p;try{j.p=32>n?32:n,A.T=null,n=wd,wd=null;var a=bd,o=Sd;if(X=0,xd=bd=null,Sd=0,G&6)throw Error(s(331));var c=G;if(G|=4,Xu(a.current),Hu(a,a.current,o,n),G=c,Df(0,!1),$e&&typeof $e.onPostCommitFiberRoot==`function`)try{$e.onPostCommitFiberRoot(Qe,a)}catch{}return!0}finally{j.p=i,A.T=r,uf(e,t)}}function pf(e,t,n){t=Wi(n,t),t=Ac(e.stateNode,t,2),e=yo(e,t,2),e!==null&&(mt(e,2),Ef(e))}function Z(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Wi(n,e),n=jc(2),r=yo(t,n,2),r!==null&&(Mc(n,r,t,e),mt(r,2),Ef(r));break}}t=t.return}}function mf(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)||(id=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(od===4||od===3&&(J&62914560)===J&&300>We()-hd?G&2?ld|=n:Vd(e,0):ld|=n,dd===J&&(dd=0)),Ef(e)}function gf(e,t){t===0&&(t=ft()),e=ki(e,t),e!==null&&(mt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return Be(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;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-tt(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=J,a=ct(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||lt(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&hp()&&(e=Tf);for(var t=We(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}X!==0&&X!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-tt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=dt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=K,n=J,n=ct(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Y===2||Y===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ve(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||lt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ve(r),bt(n)){case 2:case 8:n=qe;break;case 32:n=Je;break;case 268435456:n=Xe;break;default:n=Je}return r=jf.bind(null,e),n=Be(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ve(r),e.callbackPriority=2,e.callbackNode=null,2}function jf(e,t){if(X!==0&&X!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(df()&&e.callbackNode!==n)return null;var r=J;return r=ct(e,e===K?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Fd(e,r,t),Af(e,We()),e.callbackNode!=null&&e.callbackNode===n?jf.bind(null,e):null)}function Mf(e,t){if(df())return null;Fd(e,t,!0)}function Nf(){bp(function(){G&6?Be(Ke,Of):kf()})}function Pf(){if(Tf===0){var e=Ba;e===0&&(e=at,at<<=1,!(at&261888)&&(at=256)),Tf=e}return Tf}function Ff(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:yn(e)}function If(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Ff((i[Tt]||null).action),o=r.submitter;o&&(t=(t=o[Tt]||null)?Ff(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Vn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Tf!==0){var e=new FormData(i,o);nc(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),nc(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Lf=0;Lf<gi.length;Lf++){var Rf=gi[Lf];_i(Rf.toLowerCase(),`on`+(Rf[0].toUpperCase()+Rf.slice(1)))}_i(ci,`onAnimationEnd`),_i(li,`onAnimationIteration`),_i(ui,`onAnimationStart`),_i(`dblclick`,`onDoubleClick`),_i(`focusin`,`onFocus`),_i(`focusout`,`onBlur`),_i(di,`onTransitionRun`),_i(fi,`onTransitionStart`),_i(pi,`onTransitionCancel`),_i(mi,`onTransitionEnd`),Ut(`onMouseEnter`,[`mouseout`,`mouseover`]),Ut(`onMouseLeave`,[`mouseout`,`mouseover`]),Ut(`onPointerEnter`,[`pointerout`,`pointerover`]),Ut(`onPointerLeave`,[`pointerout`,`pointerover`]),Ht(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ht(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ht(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ht(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ht(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ht(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var zf=`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(` `),Bf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(zf));function Vf(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){Si(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){Si(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[Dt];n===void 0&&(n=t[Dt]=new Set);var r=e+`__bubble`;n.has(r)||(Gf(t,e,2,!1),n.add(r))}function Hf(e,t,n){var r=0;t&&(r|=4),Gf(n,e,r,t)}var Uf=`_reactListening`+Math.random().toString(36).slice(2);function Wf(e){if(!e[Uf]){e[Uf]=!0,Bt.forEach(function(t){t!==`selectionchange`&&(Bf.has(t)||Hf(t,!1,e),Hf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uf]||(t[Uf]=!0,Hf(`selectionchange`,!1,t))}}function Gf(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,!An||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 Kf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Pt(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}Dn(function(){var r=a,i=Sn(n),o=[];a:{var s=hi.get(e);if(s!==void 0){var c=Vn,u=e;switch(e){case`keypress`:if(In(n)===0)break a;case`keydown`:case`keyup`:c=ar;break;case`focusin`:u=`focus`,c=Xn;break;case`focusout`:u=`blur`,c=Xn;break;case`beforeblur`:case`afterblur`:c=Xn;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`:c=Jn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Yn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=cr;break;case ci:case li:case ui:c=Zn;break;case mi:c=lr;break;case`scroll`:case`scrollend`:c=Un;break;case`wheel`:c=ur;break;case`copy`:case`cut`:case`paste`:c=Qn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=or;break;case`submit`:c=sr;break;case`toggle`:case`beforetoggle`:c=dr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;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=On(m,p),g!=null&&d.push(qf(m,g,h))),f)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,s=e===`mouseout`||e===`pointerout`,c&&n!==xn&&(u=n.relatedTarget||n.fromElement)&&(Pt(u)||u[Et]))break a;(s||c)&&(u=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,s?(c=n.relatedTarget||n.toElement,s=r,c=c?Pt(c):null,c!==null&&(f=l(c),d=c.tag,c!==f||d!==5&&d!==27&&d!==6)&&(c=null)):(s=null,c=r),s!==c&&(d=Jn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=or,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=s==null?u:It(s),h=c==null?u:It(c),u=new d(g,m+`leave`,s,n,i),u.target=f,u.relatedTarget=h,g=null,Pt(i)===r&&(d=new d(p,m+`enter`,c,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=s&&c?T(s,c,Yf):null,s!==null&&Xf(o,u,s,d,!1),c!==null&&f!==null&&Xf(o,f,c,d,!0)))}a:{if(s=r?It(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=jr;else if(Tr(s)){if(Mr)_=Vr;else{_=zr;var v=Rr}}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&gn(r.elementType)&&(_=jr):_=Br;if(_&&=_(e,r)){Er(o,_,n,i);break a}v&&v(e,s,r)}switch(v=r?It(r):window,e){case`focusin`:(Tr(v)||v.contentEditable===`true`)&&(Qr=v,$r=r,ei=null);break;case`focusout`:ei=$r=Qr=null;break;case`mousedown`:ti=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ti=!1,ni(o,n,i);break;case`selectionchange`:if(Zr)break;case`keydown`:case`keyup`:ni(o,n,i)}var y;if(pr)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 xr?yr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(gr&&n.locale!==`ko`&&(xr||b!==`onCompositionStart`?b===`onCompositionEnd`&&xr&&(y=Fn()):(Mn=i,Nn=`value`in Mn?Mn.value:Mn.textContent,xr=!0)),v=Jf(r,b),0<v.length&&(b=new $n(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=br(n),y!==null&&(b.data=y)))),(y=hr?Sr(e,n):Cr(e,n))&&(b=Jf(r,`onBeforeInput`),0<b.length&&(v=new $n(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),If(o,e,r,n,i)}Vf(o,t)})}function qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jf(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=On(e,n),i!=null&&r.unshift(qf(e,i,a)),i=On(e,t),i!=null&&r.push(qf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Yf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xf(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=On(n,a),l!=null&&o.unshift(qf(n,l,c))):i||(l=On(n,a),l!=null&&o.push(qf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Zf=/\r\n?/g,Qf=/\u0000|\uFFFD/g;function $f(e){return(typeof e==`string`?e:``+e).replace(Zf,`
9
+ `).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function $(e,t,n,r,i,a){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||fn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&fn(e,``+r);else return;break;case`className`:Xt(e,`class`,r);break;case`tabIndex`:Xt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Xt(e,n,r);break;case`style`:hn(e,r,a);return;case`data`:if(t!==`object`){Xt(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=yn(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 a==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,i.name,i,null),$(e,t,`formEncType`,i.formEncType,i,null),$(e,t,`formMethod`,i.formMethod,i,null),$(e,t,`formTarget`,i.formTarget,i,null)):($(e,t,`encType`,i.encType,i,null),$(e,t,`method`,i.method,i,null),$(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=yn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=bn);return;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__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=yn(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`:Q(`beforetoggle`,e),Q(`toggle`,e),Yt(e,`popover`,r);break;case`xlinkActuate`:Zt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Zt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Zt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Zt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Zt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Zt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Yt(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=_n.get(n)||n,Yt(e,n,r);else return}L=!0}function tp(e,t,n,r,i,a){switch(n){case`style`:hn(e,r,a);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)fn(e,r);else if(typeof r==`number`||typeof r==`bigint`)fn(e,``+r);else return;break;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=bn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Vt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),a=n.slice(2,i?n.length-7:void 0),t=e[Tt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(a,t,i),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,r,i);break a}L=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Yt(e,n,r)}return}L=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:$(e,t,a,o,n,null)}}i&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=a=o=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:o=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(s(137,t));break;default:$(e,t,r,d,n,null)}}sn(e,a,c,l,u,o,i,!1);return;case`select`:for(i in Q(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:o=c;break;case`multiple`:r=c;default:$(e,t,i,c,n,null)}t=a,n=o,e.multiple=!!r,t==null?n!=null&&ln(e,!!r,n,!0):ln(e,!!r,t,!1);return;case`textarea`:for(o in Q(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(c=n[o],c!=null))switch(o){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(s(91));break;default:$(e,t,o,c,n,null)}dn(e,r,i,a);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:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Q(zf[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`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(s(137,t));default:$(e,t,u,r,n,null)}return;default:if(gn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}var rp={};function ip(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 i=null,a=null,o=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)||$(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&&(L=!0),a=m;break;case`name`:m!==f&&(L=!0),i=m;break;case`checked`:m!==f&&(L=!0),u=m;break;case`defaultChecked`:m!==f&&(L=!0),d=m;break;case`value`:m!==f&&(L=!0),o=m;break;case`defaultValue`:m!==f&&(L=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(s(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}on(e,o,c,l,u,d,a,i);return;case`select`:for(a in m=o=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||$(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:a!==l&&(L=!0),p=a;break;case`defaultValue`:a!==l&&(L=!0),c=a;break;case`multiple`:a!==l&&(L=!0),o=a;default:a!==l&&$(e,t,i,a,r,l)}t=c,n=o,r=m,p==null?!!r!=!!n&&(t==null?ln(e,!!n,n?[]:``,!1):ln(e,!!n,t,!0)):ln(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:i!==a&&(L=!0),p=i;break;case`defaultValue`:i!==a&&(L=!0),m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(s(91));break;default:i!==a&&$(e,t,o,i,r,a)}un(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:$(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&&(L=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(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)&&$(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(s(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(gn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(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||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(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||$(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){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&&ap(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&&ap(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 sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(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 dp(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 fp(e,t,n,r){return n=lp(n).createElement(e),n[wt]=r,n[Tt]=t,np(n,e,t),Rt(n),n}function pp(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 mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(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[jt]||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 wp(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 Tp(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 Ep(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 Dp(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 Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(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`&&(Ap(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(jp.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 Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:E({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.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},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.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(Bp(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=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),h(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),h(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.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,Rp(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,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){h(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=b(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];h(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=lp(e).activeElement,e!==null&&h(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),h(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),h(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return h(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(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}Fp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];h(this._fragmentFiber.child,!1,Hp,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||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=Pt(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=T(n,a,w),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=T(r,a,w),t===null?t=!1:(h(t,!0,ee,a,r),a=x,S=x=null,t=a!==null)),t):!1}function Zp(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)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(s(566));var t=[];h(this._fragmentFiber.child,!1,Hp,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),Zp(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 i=t[r];i.tag===6?(i=b(i),Zp(i,n)):b(i).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=b(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(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,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(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,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(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`:nm(n),Nt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(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[jt])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=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(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 lm(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 um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(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){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(s(452));return e;case`head`:if(e=t.head,!e)throw Error(s(453));return e;case`body`:if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&$(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===bn&&(e.onclick=null),Nt(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Nt(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=j.d;j.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=zd();return e||t}function Cm(e){var t=Ft(e);t!==null&&t.tag===5&&t.type===`form`?ic(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=an(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`),np(t,`link`,e),Rt(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="`+an(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+an(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+an(n.imageSizes)+`"]`)):i+=`[href="`+an(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=E({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`);np(o,`link`,e),t===`style`&&(o[Mt]=!0,o.onload=o.onerror=function(){zt(o)}),Rt(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="`+an(r)+`"][href="`+an(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=E({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`),np(r,`link`,e),Rt(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Lt(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=E({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Rt(c),np(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=Lt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=E({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Rt(a),np(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=Lt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=E({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Rt(a),np(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 i=(i=Oe.current)?bm(i):null;if(!i)throw Error(s(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=Lt(i).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 a=Lt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(Fm(e)))?a._p||(o.instance=a,o.state.loading=5):(a=vm.get(e),a||(a={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,a)),Lm(i,e,a,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(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=Lt(i).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(s(444,e))}}function Pm(e){return`href="`+an(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return E({},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[Mt]){r.loading=1;return}}else t=e.createElement(`link`),t[Mt]=!0,t.onload=t.onerror=zt.bind(null,t),np(t,`link`,n),Rt(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="`+an(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~="`+an(n.href)+`"]`);if(r)return t.instance=r,Rt(r),r;var i=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Rt(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var a=e.querySelector(Fm(i));if(a)return t.state.loading|=4,t.instance=a,Rt(a),a;r=Im(n),(i=vm.get(i))&&Hm(r,i),a=(e.ownerDocument||e).createElement(`link`),Rt(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),t.state.loading|=4,Vm(a,n.precedence,e),t.instance=a;case`script`:return a=Rm(n.src),(i=e.querySelector(zm(a)))?(t.instance=i,Rt(i),i):(r=n,(i=vm.get(a))&&(r=E({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Rt(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(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[jt]||a[wt]||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,Rt(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Rt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(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*op());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:O,Provider:null,Consumer:null,_currentValue:xe,_currentValue2:xe,_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=pt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.hiddenUpdates=pt(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=Pi(3,null,null,t),e.current=a,a.stateNode=e,t=Na(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},go(a),e}function uh(e){return e?(e=Mi,e):Mi}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=vo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=yo(e,r,t),n!==null&&(Pd(n,e,t),bo(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=ki(e,67108864);t!==null&&Pd(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=jd();t=yt(t);var n=ki(e,t);n!==null&&Pd(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=2,yh(e,t,n,r)}finally{j.p=a,A.T=i}}function vh(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=8,yh(e,t,n,r)}finally{j.p=a,A.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Kf(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=Ft(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=st(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-tt(o);s.entanglements[1]|=c,o&=~c}Ef(a),!(G&6)&&(_d=We()+500,Df(0,!1))}}break;case 31:case 13:s=ki(a,2),s!==null&&Pd(s,a,2),zd(),ph(a,2)}if(a=bh(r),a===null&&Kf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Kf(e,t,r,null,n)}}function bh(e){return e=Sn(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=Pt(e),e!==null){var t=l(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(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(Ge()){case Ke:return 2;case qe:return 8;case Je:case Ye:return 32;case Xe: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=Ft(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=Pt(e.target);if(t!==null){var n=l(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,St(e.priority,function(){hh(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,St(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);xn=r,n.target.dispatchEvent(r),xn=null}else return t=Ft(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=Ft(n);a!==null&&(e.splice(t,3),t-=3,nc(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[Tt]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Tt]||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(s(409));var n=t.current;dh(n,jd(),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),zd(),t[Et]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();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=r.version;if(Kh!==`19.3.1`)throw Error(s(527,Kh,`19.3.1`));j.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(s(188)):(e=Object.keys(e).join(`,`),Error(s(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:A,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{Qe=Jh.inject(qh),$e=Jh}catch{}}e.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,r=``,i=Tc,a=Ec,o=Dc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=lh(e,1,!1,null,null,n,r,null,i,a,o,Uh),e[Et]=t.current,Wf(e),new Wh(t)}})),c=e(((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=s()})),l=n(),u=c();function d(e){return e.found&&(e.major===void 0||e.major>=17)}function f(e){let t=[];return e.adb.found||t.push(`adb`),d(e.java)||t.push(`java`),e.maestro.found||t.push(`maestro`),t}function p(e){if(!e.adb.found)return{step:`tools`};let t=e.devices.find(e=>e.state===`device`);if(t)return{step:`ready`,device:t};let n=e.devices.find(e=>!e.emulator)??e.devices[0];return n?{step:`allow`,device:n}:{step:`phone`}}function m(e,t,n){return t?!1:!e.adb.found||!n&&!e.devices.some(e=>e.state===`device`)}var h=class extends Error{code;status;constructor(e,t,n){super(t),this.code=e,this.status=n}};async function g(e,t,n){let r=await fetch(t,{method:e,headers:n===void 0?{}:{"content-type":`application/json`},body:n===void 0?void 0:JSON.stringify(n)}),i=await r.text(),a=i?JSON.parse(i):null;if(!r.ok){let n=a?.error;throw new h(n?.code??`HTTP_ERROR`,n?.message??`${e} ${t} failed (${r.status})`,r.status)}return a}var _=e=>`/api/blocks/detail?file=${encodeURIComponent(e)}`,v=e=>`/api/cases/${encodeURIComponent(e)}`,y={project:()=>g(`GET`,`/api/project`),fileRoots:()=>g(`GET`,`/api/files`),fileList:e=>g(`GET`,`/api/files/list?path=${encodeURIComponent(e)}`),fileContent:e=>g(`GET`,`/api/files/content?path=${encodeURIComponent(e)}`),setAppId:e=>g(`PUT`,`/api/project`,{appId:e}),setRunVideo:e=>g(`PUT`,`/api/project/run-video`,{on:e}),setEvidencePack:e=>g(`PUT`,`/api/project/evidence-pack`,{on:e}),devices:()=>g(`GET`,`/api/devices`),session:()=>g(`GET`,`/api/session`),open:(e,t)=>g(`POST`,`/api/session/open`,{deviceId:e,appId:t}),close:()=>g(`POST`,`/api/session/close`),screen:()=>g(`GET`,`/api/screen`),tap:(e,t)=>g(`POST`,`/api/action/tap`,{x:e,y:t}),type:e=>g(`POST`,`/api/action/type`,{text:e}),back:()=>g(`POST`,`/api/action/back`),scroll:e=>g(`POST`,`/api/action/scroll`,{direction:e}),relaunch:()=>g(`POST`,`/api/action/relaunch`),openLink:e=>g(`POST`,`/api/action/open-link`,{url:e}),wait:e=>g(`POST`,`/api/case/wait`,{seconds:e}),hideKeyboard:()=>g(`POST`,`/api/action/hide-keyboard`),longPress:(e,t)=>g(`POST`,`/api/action/long-press`,{x:e,y:t}),doubleTap:(e,t)=>g(`POST`,`/api/action/double-tap`,{x:e,y:t}),swipe:e=>g(`POST`,`/api/action/swipe`,e),pressKey:e=>g(`POST`,`/api/action/key`,{key:e}),rotate:e=>g(`POST`,`/api/action/rotate`,{orientation:e}),pinch:e=>g(`POST`,`/api/action/pinch`,{zoom:e}),expect:(e,t)=>g(`POST`,`/api/case/expect`,{x:e,y:t}),startCase:(e,t)=>g(`POST`,`/api/case/start`,{name:e,...t}),runBlock:e=>g(`POST`,`/api/case/block`,e),addTestUser:(e,t)=>g(`POST`,`/api/project/test-users`,{name:e,values:t}),addSavedValues:e=>g(`POST`,`/api/project/saved-values`,{values:e}),blockDetail:e=>g(`GET`,_(e)),createBlock:e=>g(`POST`,`/api/blocks`,e),saveBlock:(e,t)=>g(`PUT`,_(e),t),deleteBlock:e=>g(`DELETE`,_(e)),tryBlock:e=>g(`POST`,`/api/blocks/try`,e),recordBlock:e=>g(`POST`,`/api/blocks/record`,{name:e}),finishBlockRecording:(e,t)=>g(`POST`,`/api/blocks/record/finish`,t===void 0?{picks:e}:{picks:e,file:t}),caseBlockDraft:e=>g(`GET`,`${v(e)}/block-draft`),pick:(e,t)=>g(`POST`,`/api/screen/pick`,{x:e,y:t}),candidates:()=>g(`GET`,`/api/case/candidates`),finishCase:e=>g(`POST`,`/api/case/finish`,{picks:e}),discardCase:()=>g(`POST`,`/api/case/discard`),currentCase:()=>g(`GET`,`/api/case/current`),diagnosticsUrl:e=>`/api/diagnostics${e?`?screenshots=1`:``}`,phone:()=>g(`GET`,`/api/phone`),phoneStart:()=>g(`POST`,`/api/phone/start`),phoneStop:()=>g(`POST`,`/api/phone/stop`),preparePhone:e=>g(`POST`,`/api/phone/prepare`,{deviceId:e}),caseDetail:e=>g(`GET`,v(e)),patchCase:(e,t)=>g(`PATCH`,v(e),t),patchStep:(e,t,n)=>g(`PATCH`,`${v(e)}/steps/${t}`,n),deleteStep:(e,t)=>g(`DELETE`,`${v(e)}/steps/${t}`),deleteExpectation:(e,t)=>g(`DELETE`,`${v(e)}/expectations/${t}`),splitCase:(e,t)=>g(`POST`,`${v(e)}/split`,{atStep:t}),duplicateCase:e=>g(`POST`,`${v(e)}/duplicate`,{}),editCase:(e,t)=>g(`POST`,`${v(e)}/edit`,t),replayCase:e=>g(`POST`,`${v(e)}/replay`),deleteCase:e=>g(`DELETE`,v(e)),runAll:e=>g(`POST`,`/api/suite/run`,{retryFailed:e}),stopSuite:()=>g(`POST`,`/api/suite/stop`),currentSuite:()=>g(`GET`,`/api/suite/current`),refreshScreen:()=>g(`POST`,`/api/screen/refresh`),setup:()=>g(`GET`,`/api/setup`),installStatus:()=>g(`GET`,`/api/setup/install`),startInstall:()=>g(`POST`,`/api/setup/install`,{acceptTerms:!0}),startEmulator:e=>g(`POST`,`/api/setup/emulator`,{name:e}),caseExportUrl:(e,t)=>`${v(e)}/export?format=${t}`,projectExportUrl:e=>`/api/export?format=${e}`,evidenceUrl:(e,t)=>{let n=new URLSearchParams;for(let e of[`release`,`testedBy`,`signoffRole`,`knownIssues`,`conclusion`]){let r=t[e].trim();r&&n.set(e,r)}t.screens!==`all`&&n.set(`screens`,t.screens);let r=n.toString();return`/api/suites/${encodeURIComponent(e)}/evidence${r?`?${r}`:``}`}},b=/(PASS|PWD|SECRET|TOKEN|PIN|OTP|API_?KEY|PRIVATE)/i,x=/^\$\{([A-Za-z_][A-Za-z0-9_]*)\}$/;function S(e){return b.test(e)}function C(e){return x.exec(e)?.[1]}function ee(e){return`\${${e}}`}function w(e){return e.split(`_`).filter(Boolean).map(e=>e[0].toUpperCase()+e.slice(1).toLowerCase()).join(` `)}function T(e){let t=e.trim().replace(/[^A-Za-z0-9]+/g,`_`).replace(/^_+|_+$/g,``).toUpperCase();return/^[A-Z][A-Z0-9_]{0,39}$/.test(t)?t:void 0}function E(e,t){if(e.length===0)return[];let n=new Set(t),r=new Set,i=e[0];for(let e of t)e.endsWith(`_${i}`)&&e.length>i.length+1&&r.add(e.slice(0,-i.length-1));return[...r].filter(t=>e.every(e=>n.has(`${t}_${e}`))).sort().map(t=>({prefix:t,label:w(t),values:Object.fromEntries(e.map(e=>[e,ee(`${t}_${e}`)]))}))}function D(e){let t=Object.entries(e??{});if(t.length===0)return;let n;for(let[e,r]of t){let t=C(r);if(!t||!t.endsWith(`_${e}`))return;let i=t.slice(0,-e.length-1);if(!i||n!==void 0&&i!==n)return;n=i}return n?{prefix:n,label:w(n),values:{...e}}:void 0}function te(e){let t=Object.entries(e??{});if(t.length===0)return;let n=D(e);return n?`as ${n.label}`:`with ${t.map(([e,t])=>{let n=C(t);return n?`${e} from ${n}`:`${e} "${t}"`}).join(`, `)}`}var ne=/[.*+?^${}()|[\]\\]/g;function re(e){return e.replace(ne,`\\$&`)}function ie(e){return e.replace(/\\([.*+?^${}()|[\]\\])/g,`$1`)}var ae=[`Home`,`Back`,`Enter`,`Backspace`,`Tab`,`Escape`,`Volume Up`,`Volume Down`,`Power`,`Lock`],oe=/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g;function O(e){let t=new Set;for(let n of JSON.stringify(e.steps).matchAll(oe))t.add(n[1]);return[...t].sort()}function se(e){return`Wait ${e} ${e===1?`second`:`seconds`}`}var ce=[{label:`Start the app`,step:{kind:`launchApp`}},{label:`Tap`,step:{kind:`tapOn`,selector:{kind:`text`,value:``}}},{label:`Type`,step:{kind:`inputText`,text:``}},{label:`Check`,step:{kind:`assertVisible`,selector:{kind:`text`,value:``}}},{label:`Wait`,step:{kind:`wait`,seconds:20}},{label:`Scroll to`,step:{kind:`scrollUntilVisible`,selector:{kind:`text`,value:``},direction:`DOWN`}},{label:`Check it is not visible`,step:{kind:`assertNotVisible`,selector:{kind:`text`,value:``}}},{label:`Long press`,step:{kind:`longPressOn`,selector:{kind:`text`,value:``}}},{label:`Double tap`,step:{kind:`doubleTapOn`,selector:{kind:`text`,value:``}}},{label:`Swipe`,step:{kind:`swipe`,direction:`LEFT`}},{label:`Scroll down`,step:{kind:`scroll`}},{label:`Press Back`,step:{kind:`back`}},{label:`Press a key`,step:{kind:`pressKey`,key:`Enter`}},{label:`Erase text`,step:{kind:`eraseText`}},{label:`Hide the keyboard`,step:{kind:`hideKeyboard`}},{label:`Open link`,step:{kind:`openLink`,link:``}}];function k(e){if(e.kind!==`swipe`||`direction`in e)return ce.find(t=>t.step.kind===e.kind)?.label}function le(e){return`selector`in e?e.selector:void 0}function ue(e){if(e.kind===`point`)return{mode:`point`,value:``};let t=C(e.value);if(t)return{mode:`setting`,value:t};let n=ie(e.value);return re(n)===e.value?{mode:e.kind,value:n}:{mode:e.kind,value:e.value,pattern:!0}}function de(e){let t=C(e);return t?{mode:`setting`,value:t}:{mode:`text`,value:e}}function fe(e){if(e.kind===`inputText`)return de(e.text);if(e.kind===`openLink`)return de(e.link);let t=le(e);return t&&k(e)?ue(t):void 0}var pe=0;function me(e){let t=fe(e);return{key:++pe,step:e,...t?{field:t}:{}}}var he=e=>ee(e.typing?e.value.replace(/_+$/,``):e.value),ge=e=>e.mode===`setting`?he(e):e.value;function _e(e,t){if(t.mode===`point`)return e;let n=t.mode===`setting`?e.kind===`id`?`id`:`text`:t.mode,r=t.mode===`setting`?he(t):t.pattern?t.value:re(t.value);return e.kind!==`point`&&e.index!==void 0?{kind:n,value:r,index:e.index}:{kind:n,value:r}}function ve({step:e,field:t}){if(!t)return e;if(e.kind===`inputText`)return{...e,text:ge(t)};if(e.kind===`openLink`)return{...e,link:ge(t)};let n=le(e);return n?{...e,selector:_e(n,t)}:e}var ye=e=>e.map(ve),be=(e,t)=>JSON.stringify({name:e.trim(),steps:ye(t)});function A(e){return be(e.name,e.steps)!==e.saved}function j(){return{name:``,steps:[],saved:be(``,[]),fixed:[],usedBy:[],hasComments:!1}}function xe(e){let t=e.steps.map(me);return{file:e.file,name:e.name,steps:t,saved:be(e.name,t),fixed:e.fixed,usedBy:e.usedBy,hasComments:e.hasComments}}function Se({name:e,appId:t,steps:n}){return{...j(),name:e,appId:t,steps:n.map(me)}}function Ce(e,t){return{...e,steps:[...e.steps,...t.map(me)]}}function we(e){return e.toUpperCase().replace(/[^A-Z0-9_]+/g,`_`).replace(/^[_0-9]+/,``)}function Te(e,t){return{mode:t,value:t!==`setting`&&e.mode!==`setting`&&e.mode!==`point`?e.value:``}}function M(e,t){let{passwordField:n,...r}=e,i=le(e.step);if(!i||i.kind===`point`)return{...r,field:t};let{kind:a,value:o}=i;return{...r,step:{...e.step,selector:{kind:a,value:o}},field:t}}function Ee(e){return O({steps:ye(e)})}function De(e,t){let{kind:n}=e.step,r=n===`tapOn`||n===`longPressOn`||n===`doubleTapOn`;if(t.selector.kind===`point`&&!r)return;let i={...e.step,selector:t.selector};return{key:e.key,step:i,field:ue(t.selector),...t.password?{passwordField:!0}:{}}}function Oe(e){if(e?.step.kind===`tapOn`)return e.passwordField?`sure`:e.field&&e.field.mode!==`setting`&&S(e.field.value)?`maybe`:void 0}function ke(e,t){let n=e[t];if(n?.step.kind===`inputText`&&n.field?.mode===`text`)return Oe(e[t-1])}var Ae=/^\$\{([A-Za-z_][A-Za-z0-9_]*)\}$/,N={"screen-moving":`The screen was still changing when you touched it. Check this is the element you meant.`,"no-element":`There is no named element here, so this step presses a position on the screen. It may miss on another phone.`,password:`You typed in a password field, and Ariadne did not read it. Save the password as a saved value with this name.`,"edited-text":`You changed text that was already in the field. Run the case to check it comes out right.`,"left-app":`You left the app before this step. A run will not do that, so check the case still works.`};function P(e){return(e.split(`/`).pop()??e).replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/[_\-.]+/g,` `).trim().toLowerCase()}function je(e){let t=e.kind===`point`?null:Ae.exec(e.value);if(t)return`the element the ${t[1]} setting names`;switch(e.kind){case`text`:{let t=e.index===void 0?``:` (number ${e.index+1} on screen)`;return`"${ie(e.value)}"${t}`}case`id`:{let t=e.index===void 0?``:` (number ${e.index+1} on screen)`;return`the ${P(ie(e.value))} element${t}`}case`point`:return`the point at ${e.xPercent}% across, ${e.yPercent}% down`}}function Me(e){let t=(e?.text??e?.label??e?.contentDescription)?.trim();return t&&t.length<=60?t:void 0}function Ne(e,t){let n=e.kind===`text`?void 0:Me(t);return n?e.kind===`point`?`"${n}" (by its position on screen)`:`"${n}"`:je(e)}function Pe(e){let t=Ae.exec(e);return t?`the ${t[1]} value from .env`:`"${e}"`}function Fe(e,t){let n=t.xPercent-e.xPercent,r=t.yPercent-e.yPercent;if(Math.abs(n)>=2*Math.abs(r)&&n!==0)return n<0?`left`:`right`;if(Math.abs(r)>=2*Math.abs(n)&&r!==0)return r<0?`up`:`down`}var Ie=5;function Le(e,t){let n=Fe(e,t);return n===`down`&&e.yPercent<=Ie?`Swipe down from the top edge`:n?`Swipe ${n}`:`Swipe from ${e.xPercent}%, ${e.yPercent}% to ${t.xPercent}%, ${t.yPercent}%`}var Re={home:`Home`,volumeUp:`Volume up`,volumeDown:`Volume down`,power:`Power`,enter:`Enter`},ze={PORTRAIT:`Rotate to portrait`,LANDSCAPE_LEFT:`Rotate to landscape`,LANDSCAPE_RIGHT:`Rotate to landscape, turned right`,UPSIDE_DOWN:`Rotate upside down`};function Be(e,t){switch(e.kind){case`tap`:return`Tap ${Ne(e.selector,e.node)}`;case`longPress`:return`Long press ${Ne(e.selector,e.node)}`;case`doubleTap`:return`Double tap ${Ne(e.selector,e.node)}`;case`swipe`:return Le(e.from,e.to);case`pressKey`:return`Press ${Re[e.key]}`;case`orientation`:return`Rotate to ${e.value}`;case`type`:return`Type ${Pe(e.text)}`;case`back`:return`Press Back`;case`expect`:return`Check that ${Ne(e.selector,e.node)} is visible`;case`scroll`:return t?`Scroll ${e.direction} until ${je(t)} is visible`:`Scroll ${e.direction}`;case`relaunch`:return`Restart the app`;case`openLink`:return`Open the link ${e.url}`;case`wait`:return se(e.seconds);case`hideKeyboard`:return`Hide the keyboard`;case`erase`:return`Erase ${e.chars} ${e.chars===1?`character`:`characters`}`;case`block`:{let t=te(e.values);return t?`Run the block ${e.file} ${t}`:`Run the block ${e.file}`}}}function Ve(e,t){return e.title?.trim()?e.title.trim():Be(e,t)}function He(e){return`${Ne(e.selector,e.node)} is visible`}function Ue(e){switch(e.kind){case`launchApp`:return e.clearState?`Start the app with its data cleared`:`Start the app`;case`runFlow`:return`Run ${e.file}`;case`tapOn`:return`Tap ${je(e.selector)}`;case`longPressOn`:return`Long press ${je(e.selector)}`;case`doubleTapOn`:return`Double tap ${je(e.selector)}`;case`pressKey`:return`Press ${e.key}`;case`setOrientation`:return ze[e.orientation];case`inputText`:return`Type ${Pe(e.text)}`;case`eraseText`:return e.chars===void 0?`Erase the text`:`Erase ${e.chars} ${e.chars===1?`character`:`characters`}`;case`back`:return`Press Back`;case`hideKeyboard`:return`Hide the keyboard`;case`assertVisible`:return`Check that ${je(e.selector)} is visible`;case`assertNotVisible`:return`Check that ${je(e.selector)} is not visible`;case`openLink`:return`Open the link ${e.link}`;case`wait`:return se(e.seconds);case`takeScreenshot`:return`Take a screenshot`;case`startRecording`:return`Start the run video`;case`stopRecording`:return`Stop the run video`;case`scroll`:return`Scroll down`;case`swipe`:return`direction`in e?`Swipe ${e.direction.toLowerCase()}`:Le(e.start,e.end);case`scrollUntilVisible`:return`Scroll ${e.direction.toLowerCase()} until ${je(e.selector)} is visible`}}function We(e){if(Math.round(e)<1e3)return`${Math.round(e)} ms`;let t=Math.round(e/100)/10;if(t<60)return`${t.toFixed(1)} s`;let n=Math.round(e/1e3);return`${Math.floor(n/60)} min ${n%60} s`}function Ge(e,t,n){let r=n.blockName?.(e),i=r?`Run the block "${r}" (${e})`:`Run the block ${e}`,a=te(t);return a?`${i} ${a}`:i}function Ke(e,t,n={}){switch(e.kind){case`launch`:return`Start ${t}`;case`startFrom`:{let t=n.caseName?.(e.caseId);return t?`Do everything in the case "${t}"`:`Do everything in the case ${e.caseId}`}case`block`:return Ge(e.file,e.values,n);case`step`:return e.step.kind===`block`&&!e.step.title?.trim()?Ge(e.step.file,e.step.values,n):Ve(e.step,e.scrollUntilVisible);case`expectation`:return`Check that ${He(e.expectation)}`}}function qe(e){return e.kind===`id`||e.kind===`text`}function Je(e,t){return e.map((n,r)=>{if(n.kind!==`scroll`)return;let i=r+1;for(;i<e.length;){let t=e[i];if(t.kind!==`scroll`||t.direction!==n.direction)break;i++}if(i<e.length){let t=e[i];return(t.kind===`tap`||t.kind===`expect`||t.kind===`longPress`||t.kind===`doubleTap`)&&qe(t.selector)?t.selector:void 0}let a=t[0];return a&&qe(a.selector)?a.selector:void 0})}function Ye(e){let t=Je(e.steps,e.expectations);return[...e.startFrom?[{kind:`startFrom`,caseId:e.startFrom}]:[{kind:`launch`},...e.preconditionBlocks.map(e=>e.values?{kind:`block`,file:e.file,values:e.values}:{kind:`block`,file:e.file})],...e.steps.map((e,n)=>{let r=t[n];return r?{kind:`step`,step:e,scrollUntilVisible:r}:{kind:`step`,step:e}}),...e.expectations.map(e=>({kind:`expectation`,expectation:e}))]}function Xe(e,t,n,r=e=>e){let i=[...e];if(t.from===null)return i.splice(n,0,r(t.file)),i;let[a]=i.splice(t.from,1);return a===void 0||i.splice(n>t.from?n-1:n,0,a),i}var Ze=e((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})),F=e(((e,t)=>{t.exports=Ze()}))(),Qe=`__custom`,$e=`__new`,et=`__typed`;function tt(e){return e.some(e=>/USER|EMAIL|LOGIN|PASS/i.test(e))}function nt(e,t){let n=e=>JSON.stringify(Object.entries(e??{}).sort(([e],[t])=>e.localeCompare(t)));return n(e)===n(t)}function rt(e,t){let n={...e};return delete n[t],Object.keys(n).length>0?n:void 0}function it({settable:e,values:t,envKeys:n,disabled:r,onChange:i}){let[a,o]=(0,l.useState)(()=>e.filter(e=>t?.[e]!==void 0&&!C(t[e])));return(0,F.jsx)(`div`,{className:`setting-values`,children:e.map(e=>{let s=t?.[e],c=s===void 0?void 0:C(s),l=S(e),u=a.includes(e),d=u?et:c?ee(c):``;return(0,F.jsxs)(`div`,{className:`setting-value`,children:[(0,F.jsx)(`code`,{children:e}),(0,F.jsxs)(`select`,{"aria-label":`Value for ${e}`,value:d,disabled:r,onChange:n=>{let r=n.target.value;r===et?(o(t=>[...t,e]),i(rt(t,e))):(o(t=>t.filter(t=>t!==e)),i(r?{...t,[e]:r}:rt(t,e)))},children:[(0,F.jsxs)(`option`,{value:``,children:[`the project's `,e]}),n.filter(t=>t!==e).map(e=>(0,F.jsxs)(`option`,{value:ee(e),children:[`saved value `,e]},e)),!l&&(0,F.jsx)(`option`,{value:et,children:`type a value`})]}),u&&(0,F.jsx)(`input`,{"aria-label":`Text for ${e}`,value:s??``,disabled:r,placeholder:`Value for this case`,onChange:n=>i(n.target.value?{...t,[e]:n.target.value}:rt(t,e))}),l&&!u&&(0,F.jsx)(`span`,{className:`hint`,children:`a secret, so only saved values`})]},e)})})}function at({settable:e,disabled:t,onSave:n,onCancel:r}){let[i,a]=(0,l.useState)(``),[o,s]=(0,l.useState)({}),c=T(i),u=!!c&&e.every(e=>o[e]),d=()=>{u&&n(i.trim(),o)};return(0,F.jsxs)(`div`,{className:`new-user`,onKeyDown:e=>{e.key===`Enter`&&e.target.tagName===`INPUT`&&(e.preventDefault(),d())},children:[(0,F.jsxs)(`label`,{className:`setting-value`,children:[(0,F.jsx)(`span`,{className:`new-user-label`,children:`Name`}),(0,F.jsx)(`input`,{autoFocus:!0,value:i,onChange:e=>a(e.target.value),placeholder:`For example: Supervisor`,disabled:t})]}),e.map(e=>(0,F.jsxs)(`label`,{className:`setting-value`,children:[(0,F.jsx)(`code`,{children:e}),(0,F.jsx)(`input`,{type:S(e)?`password`:`text`,autoComplete:`off`,value:o[e]??``,onChange:t=>s(n=>({...n,[e]:t.target.value})),disabled:t})]},e)),(0,F.jsxs)(`p`,{className:`hint`,children:[`Saved in this project's .env file on this computer, as`,` `,e.map(e=>`${c??`NAME`}_${e}`).join(` and `),`. Cases only store the name, never the values.`]}),(0,F.jsxs)(`div`,{className:`case-actions`,children:[(0,F.jsx)(`button`,{type:`button`,onClick:d,disabled:t||!u,children:`Save test user`}),(0,F.jsx)(`button`,{type:`button`,onClick:r,disabled:t,children:`Cancel`})]})]})}function ot({block:e,values:t,envKeys:n,disabled:r,onChange:i,onAddTestUser:a}){let o=e.settable??[],s=E(o,n),c=t?s.find(e=>nt(e.values,t)):void 0,[u,d]=(0,l.useState)(t&&!c?`each`:`pick`);if(o.length===0)return null;let f=tt(o),p=(e.missingVariables??[]).filter(e=>o.includes(e)&&t?.[e]===void 0),m=u===`each`?Qe:u===`new`?$e:c?.prefix??``;return(0,F.jsxs)(`div`,{className:`block-settings`,children:[(0,F.jsxs)(`label`,{className:`setting-row`,children:[(0,F.jsx)(`span`,{className:`setting-title`,children:f?`Test user`:`Values`}),(0,F.jsxs)(`select`,{value:m,disabled:r,onChange:e=>{let t=e.target.value;if(t===Qe)return d(`each`);if(t===$e)return d(`new`);d(`pick`),i(t?s.find(e=>e.prefix===t)?.values:void 0)},children:[(0,F.jsxs)(`option`,{value:``,children:[f?`Default user`:`Defaults`,` (`,o.join(`, `),` as saved)`]}),s.map(e=>(0,F.jsx)(`option`,{value:e.prefix,children:e.label},e.prefix)),(0,F.jsx)(`option`,{value:Qe,children:`Set each value...`}),f&&(0,F.jsx)(`option`,{value:$e,children:`Add a test user...`})]})]}),u===`pick`&&p.length>0&&(0,F.jsxs)(`p`,{className:`piece-missing`,children:[p.join(`, `),` `,p.length===1?`is`:`are`,` not saved yet, so the default `,f?`user`:`values`,` will not work. Pick or add a test user, or save a value in the Blocks tab.`]}),u===`each`&&(0,F.jsx)(it,{settable:o,values:t,envKeys:n,disabled:r,onChange:i}),u===`new`&&(0,F.jsx)(at,{settable:o,disabled:r,onCancel:()=>d(`pick`),onSave:(e,t)=>void a(e,t).then(t=>{let n=T(e);t&&n&&(i(Object.fromEntries(o.map(e=>[e,ee(`${n}_${e}`)]))),d(`pick`))})})]})}function I({size:e=16,children:t}){return(0,F.jsx)(`svg`,{className:`icon`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:e,height:e,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:t})}function st(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`rect`,{x:`1.8`,y:`2.8`,width:`12.4`,height:`10.4`,rx:`1.5`}),(0,F.jsx)(`path`,{d:`M10 2.8V13.2`})]})}function ct(e){return(0,F.jsx)(I,{...e,children:(0,F.jsx)(`path`,{d:`M2 12.2V4a1 1 0 0 1 1-1h3.1l1.6 1.8H13a1 1 0 0 1 1 1v6.4a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z`})})}function lt(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`path`,{d:`M3.8 1.8h5.4l3 3v9.4H3.8z`}),(0,F.jsx)(`path`,{d:`M9 2v3h3`})]})}function ut(e){return(0,F.jsx)(I,{...e,children:(0,F.jsx)(`path`,{d:`M6 3.5L10.5 8L6 12.5`})})}function dt(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`circle`,{cx:`8`,cy:`8`,r:`2.1`}),(0,F.jsx)(`path`,{strokeWidth:`1.3`,d:`M13.2 6.56L14.92 6.95L14.92 9.05L13.2 9.44L12.7 10.66L13.64 12.15L12.15 13.64L10.66 12.7L9.44 13.2L9.05 14.92L6.95 14.92L6.56 13.2L5.34 12.7L3.85 13.64L2.36 12.15L3.3 10.66L2.8 9.44L1.08 9.05L1.08 6.95L2.8 6.56L3.3 5.34L2.36 3.85L3.85 2.36L5.34 3.3L6.56 2.8L6.95 1.08L9.05 1.08L9.44 2.8L10.66 3.3L12.15 2.36L13.64 3.85L12.7 5.34z`})]})}function ft(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`circle`,{cx:`8`,cy:`8`,r:`2.8`}),(0,F.jsx)(`path`,{d:`M8 1.5v1.4M8 13.1v1.4M14.5 8h-1.4M2.9 8H1.5M12.6 3.4l-1 1M4.4 11.6l-1 1M12.6 12.6l-1-1M4.4 4.4l-1-1`})]})}function pt(e){return(0,F.jsx)(I,{...e,children:(0,F.jsx)(`path`,{d:`M13.2 9.6A5.6 5.6 0 0 1 6.4 2.8a5.6 5.6 0 1 0 6.8 6.8z`})})}function mt(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`path`,{d:`M13 8a5 5 0 1 1-1.5-3.6`}),(0,F.jsx)(`path`,{d:`M13 2.5v2.8h-2.8`})]})}function ht({size:e=16}){return(0,F.jsx)(`svg`,{className:`icon`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:e,height:e,fill:`currentColor`,"aria-hidden":`true`,children:(0,F.jsx)(`path`,{d:`M20.5 11H19V7a2 2 0 0 0-2-2h-4V3.5a2.5 2.5 0 0 0-5 0V5H4a2 2 0 0 0-2 2v3.8h1.5a2.7 2.7 0 0 1 0 5.4H2V20a2 2 0 0 0 2 2h3.8v-1.5a2.7 2.7 0 0 1 5.4 0V22H17a2 2 0 0 0 2-2v-4h1.5a2.5 2.5 0 0 0 0-5z`})})}function gt(e){return(0,F.jsx)(I,{...e,children:(0,F.jsx)(`path`,{d:`M5 3.5v9l7-4.5z`})})}function _t(e){return(0,F.jsxs)(`svg`,{className:`icon`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:e.size??16,height:e.size??16,fill:`currentColor`,"aria-hidden":`true`,children:[(0,F.jsx)(`circle`,{cx:`6`,cy:`4`,r:`1.2`}),(0,F.jsx)(`circle`,{cx:`10`,cy:`4`,r:`1.2`}),(0,F.jsx)(`circle`,{cx:`6`,cy:`8`,r:`1.2`}),(0,F.jsx)(`circle`,{cx:`10`,cy:`8`,r:`1.2`}),(0,F.jsx)(`circle`,{cx:`6`,cy:`12`,r:`1.2`}),(0,F.jsx)(`circle`,{cx:`10`,cy:`12`,r:`1.2`})]})}function vt(e){return(0,F.jsx)(I,{...e,children:(0,F.jsx)(`path`,{d:`m3.5 8.5 3 3 6-7`})})}function yt(e){return(0,F.jsx)(I,{...e,children:(0,F.jsx)(`path`,{d:`m4 4 8 8M12 4l-8 8`})})}function bt(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`path`,{d:`M8 4.5v4.5M8 11.6v.1`}),(0,F.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.3`})]})}function xt(e){return(0,F.jsx)(I,{...e,children:(0,F.jsx)(`path`,{d:`M11 3.5v9L4.5 8z`})})}function St(e){return(0,F.jsx)(I,{...e,children:(0,F.jsx)(`circle`,{cx:`8`,cy:`8`,r:`4.5`})})}function Ct(e){return(0,F.jsx)(I,{...e,children:(0,F.jsx)(`rect`,{x:`4`,y:`4`,width:`8`,height:`8`,rx:`1.5`})})}function wt(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`path`,{d:`M2.5 6.2h2.3L8 3.5v9L4.8 9.8H2.5z`}),(0,F.jsx)(`path`,{d:`M10.5 8h3.5`})]})}function Tt(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`path`,{d:`M2.5 6.2h2.3L8 3.5v9L4.8 9.8H2.5z`}),(0,F.jsx)(`path`,{d:`M10.5 8h3.5M12.25 6.25v3.5`})]})}function Et(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`path`,{d:`M8 2v5.5`}),(0,F.jsx)(`path`,{d:`M4.8 4.4a5 5 0 1 0 6.4 0`})]})}function Dt(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`path`,{d:`M12.5 8a4.5 4.5 0 1 1-1.3-3.2`}),(0,F.jsx)(`path`,{d:`M11.5 2.2v2.8H8.7`})]})}function Ot(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`path`,{d:`M13 3.5v4.5a1.5 1.5 0 0 1-1.5 1.5H3.5`}),(0,F.jsx)(`path`,{d:`m6 7-2.5 2.5L6 12`})]})}function kt(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`circle`,{cx:`7`,cy:`7`,r:`4.5`}),(0,F.jsx)(`path`,{d:`m10.5 10.5 3 3M5 7h4M7 5v4`})]})}function At(e){return(0,F.jsxs)(I,{...e,children:[(0,F.jsx)(`circle`,{cx:`7`,cy:`7`,r:`4.5`}),(0,F.jsx)(`path`,{d:`m10.5 10.5 3 3M5 7h4`})]})}function jt(e){switch(e.kind){case`id`:case`text`:{let t=e.index===void 0?``:` (index ${e.index})`;return`${e.kind}: ${ie(e.value)}${t}`}case`point`:return`point ${e.xPercent}%,${e.yPercent}%`}}function Mt(e,t){return Ve(e,t)}function Nt(e){switch(e.kind){case`tap`:case`expect`:case`longPress`:case`doubleTap`:return jt(e.selector);case`swipe`:return`from ${e.from.xPercent}%,${e.from.yPercent}% to ${e.to.xPercent}%,${e.to.yPercent}% in ${e.durationMs} ms`;default:return}}function Pt(e){return(e.kind===`tap`||e.kind===`longPress`||e.kind===`doubleTap`)&&e.selector.kind===`point`}function Ft(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString()}function It(e,t){return`${e} ${e===1?t:`${t}s`}`}var Lt=`application/x-ariadne-block`;function Rt(e,t){e.dataTransfer.setData(Lt,JSON.stringify(t)),e.dataTransfer.effectAllowed=t.from===null?`copy`:`move`}function zt(e){try{let t=JSON.parse(e.dataTransfer.getData(Lt));return typeof t.file==`string`?t:void 0}catch{return}}var Bt=e=>e.dataTransfer.types.includes(Lt);function Vt({block:e}){if(!e.variables?.length)return null;let t=e.missingVariables??[];return(0,F.jsxs)(`div`,{className:`piece-vars`,children:[`Uses `,e.variables.join(`, `),` from .env`,t.length>0&&(0,F.jsxs)(`span`,{className:`piece-missing`,children:[` `,`(`,t.join(`, `),` `,t.length===1?`is`:`are`,` not set yet; save a value in the Blocks tab)`]})]})}function Ht({block:e}){return e?.steps?.length?(0,F.jsxs)(`details`,{className:`piece-steps`,children:[(0,F.jsx)(`summary`,{children:`What it does`}),(0,F.jsx)(`ol`,{children:e.steps.map((e,t)=>(0,F.jsx)(`li`,{children:e},t))})]}):null}function Ut({blocks:e,lockedReason:t,warnClears:n,addLabel:r=`Add`,settings:i,onAdd:a,onDragging:o}){return e.length===0?(0,F.jsx)(`p`,{className:`empty palette-empty`,children:`No blocks in this project yet. Write one in the Blocks tab, for example a log in that every case can start with.`}):(0,F.jsx)(`ul`,{className:`palette`,children:e.map(e=>{let s=!e.error&&!t;return(0,F.jsxs)(`li`,{className:`piece piece-block ${e.error?`piece-broken`:``}`,draggable:s,onDragStart:t=>{Rt(t,{file:e.file,from:null}),o(!0)},onDragEnd:()=>o(!1),title:s?`Drag into "Before recording", or press Add`:e.error??t,children:[(0,F.jsxs)(`div`,{className:`piece-row`,children:[(0,F.jsx)(`span`,{className:`grip`,children:(0,F.jsx)(_t,{})}),(0,F.jsx)(`span`,{className:`piece-icon`,children:(0,F.jsx)(ht,{})}),(0,F.jsx)(`span`,{className:`piece-name`,children:e.name}),e.stepCount!==void 0&&(0,F.jsx)(`span`,{className:`piece-meta`,children:It(e.stepCount,`step`)}),e.runsWith===`maestro`&&(0,F.jsx)(`span`,{className:`tag`,title:`Uses ${(e.maestroOnly??[]).join(`, `)}, which only Maestro runs`,children:`Runs with Maestro, slower start`}),(0,F.jsx)(`button`,{type:`button`,className:`piece-add`,onClick:()=>a(e.file),disabled:!s,children:r})]}),(0,F.jsxs)(`div`,{className:`piece-body`,children:[(0,F.jsx)(`span`,{className:`piece-file`,children:e.file}),e.error?(0,F.jsxs)(`div`,{className:`piece-error`,children:[`Cannot be used: `,e.error]}):(0,F.jsx)(Vt,{block:e}),n&&e.clearsAppData&&(0,F.jsx)(`div`,{className:`piece-missing`,children:`It clears the app's data first, so the app starts over as if just installed.`}),(0,F.jsx)(Ht,{block:e})]}),i&&s&&(0,F.jsx)(ot,{block:e,values:i.values[e.file],envKeys:i.envKeys,disabled:!!t,onChange:t=>i.onChange(e.file,t),onAddTestUser:i.onAddTestUser})]},e.file)})})}function Wt({blocks:e,cases:t,appId:n,envKeys:r,lane:i,startFrom:a,dragging:o,disabled:s,onLaneChange:c,onStartFromChange:u,onAddTestUser:d}){let[f,p]=(0,l.useState)(null),m=new Map(e.map(e=>[e.file,e])),h=!a&&!s,g=(e,t,n)=>{if(!h||!Bt(e))return;e.preventDefault();let r=t;if(n){let n=e.currentTarget.getBoundingClientRect();e.clientY>n.top+n.height/2&&(r=t+1)}p(r)},_=e=>{if(!h)return;e.preventDefault();let t=zt(e);t&&f!==null&&c(Xe(i,t,f,e=>({file:e}))),p(null)},v=(e,t)=>c(Xe(i,{file:i[e].file,from:e},t)),y=(e,t)=>c(i.map((n,r)=>r===e?t?{file:n.file,values:t}:{file:n.file}:n));return(0,F.jsxs)(`ol`,{className:`stack`,onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||p(null)},onDrop:_,children:[(0,F.jsxs)(`li`,{className:`piece piece-start`,onDragOver:e=>g(e,0,!1),children:[(0,F.jsx)(`span`,{className:`piece-icon`,children:(0,F.jsx)(gt,{})}),(0,F.jsxs)(`label`,{className:`piece-start-label`,children:[(0,F.jsx)(`span`,{children:`Start from`}),(0,F.jsxs)(`select`,{value:a,onChange:e=>u(e.target.value),disabled:s,children:[(0,F.jsxs)(`option`,{value:``,children:[`a fresh start of `,n||`the app`]}),t.map(({item:e,depth:t})=>(0,F.jsx)(`option`,{value:e.id,children:`${` `.repeat(t)}the end of "${e.name}"`},e.id))]})]})]}),!a&&i.map((e,t)=>{let{file:n}=e,a=m.get(n);return(0,F.jsxs)(`li`,{className:`piece piece-block piece-placed ${f===t?`drop-before`:``} ${a?``:`piece-broken`}`,draggable:!s,onDragStart:e=>Rt(e,{file:n,from:t}),onDragEnd:()=>p(null),onDragOver:e=>g(e,t,!0),children:[(0,F.jsxs)(`div`,{className:`piece-row`,children:[(0,F.jsx)(`span`,{className:`grip`,children:(0,F.jsx)(_t,{})}),(0,F.jsx)(`span`,{className:`piece-icon`,children:(0,F.jsx)(ht,{})}),(0,F.jsx)(`span`,{className:`piece-name`,children:a?.name??n}),a?.stepCount!==void 0&&(0,F.jsx)(`span`,{className:`piece-meta`,children:It(a.stepCount,`step`)}),(0,F.jsxs)(`span`,{className:`piece-tools`,children:[(0,F.jsx)(`button`,{type:`button`,onClick:()=>v(t,t-1),disabled:s||t===0,"aria-label":`Move ${a?.name??n} up`,title:`Move up`,children:`↑`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>v(t,t+2),disabled:s||t===i.length-1,"aria-label":`Move ${a?.name??n} down`,title:`Move down`,children:`↓`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>c(i.filter((e,n)=>n!==t)),disabled:s,"aria-label":`Remove ${a?.name??n}`,title:`Remove`,children:`×`})]})]}),!a&&(0,F.jsx)(`div`,{className:`piece-error`,children:`This block file is no longer there.`}),a&&(0,F.jsx)(ot,{block:a,values:e.values,envKeys:r,disabled:s,onChange:e=>y(t,e),onAddTestUser:d})]},`${n}-${t}`)}),a?(0,F.jsx)(`li`,{className:`stack-note`,children:`That case runs its own setup blocks first, so this case cannot add any.`}):(0,F.jsx)(`li`,{className:`drop-slot ${o?`drop-slot-active`:``} ${f===i.length?`drop-before`:``}`,onDragOver:e=>g(e,i.length,!1),children:i.length===0?`Drag a setup block here to run it first, such as a log in`:`Drag another block here`})]})}function Gt({blocks:e,lane:t,startFromName:n,appId:r}){let i=new Map(e.map(e=>[e.file,e]));return(0,F.jsxs)(`ol`,{className:`stack stack-compact`,children:[(0,F.jsxs)(`li`,{className:`piece piece-start`,children:[(0,F.jsx)(`span`,{className:`piece-icon`,children:(0,F.jsx)(gt,{})}),(0,F.jsx)(`span`,{children:n?`Starts from the end of "${n}"`:`Starts with a fresh start of ${r}`})]}),t.map((e,t)=>(0,F.jsx)(`li`,{className:`piece piece-block`,children:(0,F.jsxs)(`div`,{className:`piece-row`,children:[(0,F.jsx)(`span`,{className:`piece-icon`,children:(0,F.jsx)(ht,{})}),(0,F.jsxs)(`span`,{className:`piece-name`,children:[i.get(e.file)?.name??e.file,e.values&&(0,F.jsxs)(`span`,{className:`piece-values`,children:[` `,te(e.values)]})]}),(0,F.jsx)(`span`,{className:`piece-meta`,children:`block`})]})},`${e.file}-${t}`))]})}function Kt({dragging:e,disabled:t,onDrop:n}){let[r,i]=(0,l.useState)(!1);return(0,F.jsx)(`li`,{className:`drop-slot drop-slot-steps ${e&&!t?`drop-slot-active`:``} ${r?`drop-before`:``}`,onDragOver:e=>{!t&&Bt(e)&&(e.preventDefault(),i(!0))},onDragLeave:()=>i(!1),onDrop:e=>{e.preventDefault(),i(!1);let r=zt(e);r&&!t&&n(r.file)},children:`Drop a setup block here to run it now, as the next step`})}var qt=80,L=2e3,Jt=/^\$\{[A-Za-z_][A-Za-z0-9_]*\}$/,Yt="${}";function Xt(e){return e.length<=L&&/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\/\S+$/.test(e)&&!/^(file|content|javascript):/i.test(e)}function Zt(e,t){if(!e.trim())return`needs ${t}`;if(e===Yt)return`needs a name for its setting`;if(/[\r\n]/.test(e))return`must fit on one line`}function Qt(e,t,n){return e.kind===`point`?n?void 0:`needs ${t}, and a point on the screen cannot be looked for`:Zt(e.value,t)}function $t(e){switch(e.kind){case`tapOn`:case`longPressOn`:case`doubleTapOn`:return Qt(e.selector,`something to press`,!0);case`assertVisible`:case`assertNotVisible`:case`scrollUntilVisible`:return Qt(e.selector,`something to look for`,!1);case`inputText`:return Zt(e.text,`the text to type`);case`openLink`:return Zt(e.link,`a link`)?Zt(e.link,`a link`):Jt.test(e.link)||Xt(e.link)?void 0:`needs a link such as https://example.com/claims or myapp://claims/123`;case`wait`:return Number.isInteger(e.seconds)&&e.seconds>=1&&e.seconds<=120?void 0:`must wait 1 to 120 seconds`;case`eraseText`:return e.chars===void 0||Number.isInteger(e.chars)&&e.chars>=1?void 0:`must erase at least 1 character`;case`runFlow`:return Zt(e.file,`a flow file`);default:return}}function en(e,t){if(!e.trim())return`Give the block a name.`;if(e.length>qt||/[\r\n]/.test(e))return`A block's name fits on one line of at most ${qt} characters.`;if(t.length===0)return`Add at least one step.`;for(let[e,n]of t.entries()){let t=$t(n);if(t)return`Step ${e+1} ${t}.`}}var tn=`block-setting-names`,nn=[`LEFT`,`RIGHT`,`UP`,`DOWN`];function rn({value:e,label:t,disabled:n,onChange:r}){return(0,F.jsx)(`input`,{className:`draft-setting`,"aria-label":t,list:tn,value:e,placeholder:`For example: EMAIL`,disabled:n,onChange:e=>r(we(e.target.value))})}function an({field:e,disabled:t,picking:n,pickOff:r,onChange:i,onPick:a}){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`draft-field`,children:[(0,F.jsxs)(`select`,{"aria-label":`How to find it`,value:e.mode,disabled:t,onChange:t=>i(Te(e,t.target.value)),children:[(0,F.jsx)(`option`,{value:`text`,children:`Text on screen`}),(0,F.jsx)(`option`,{value:`id`,children:`Element id`}),(0,F.jsx)(`option`,{value:`setting`,children:`A setting`}),e.mode===`point`&&(0,F.jsx)(`option`,{value:`point`,children:`A place on the screen`})]}),e.mode===`setting`?(0,F.jsx)(rn,{value:e.value,label:`Setting name`,disabled:t,onChange:e=>i({mode:`setting`,value:e,typing:!0})}):e.mode===`point`?(0,F.jsx)(`span`,{className:`hint draft-point`,children:`Pick a named element if there is one: a place can miss on another phone.`}):(0,F.jsx)(`input`,{"aria-label":e.mode===`id`?`Element id`:`Text on the screen`,value:e.value,placeholder:e.mode===`id`?`Or pick it on the screen`:`For example: Sign in`,disabled:t,onChange:t=>i({mode:e.mode,value:t.target.value})})]}),e.pattern&&(0,F.jsx)(`p`,{className:`hint`,children:`A pattern from the file, which can match more than one text. Text typed here is looked for exactly.`}),(0,F.jsx)(`button`,{type:`button`,className:`draft-pick ${n?`toggle-on`:``}`,"aria-pressed":n,disabled:t||r!==void 0,title:r,onClick:a,children:n?`Click it on the screen, or press here to stop`:`Pick on the screen`})]})}function on({field:e,label:t,placeholder:n,disabled:r,onChange:i}){return(0,F.jsxs)(`div`,{className:`draft-field`,children:[(0,F.jsxs)(`select`,{"aria-label":`Where ${t} comes from`,value:e.mode,disabled:r,onChange:t=>i(Te(e,t.target.value)),children:[(0,F.jsx)(`option`,{value:`text`,children:`As written`}),(0,F.jsx)(`option`,{value:`setting`,children:`A setting`})]}),e.mode===`setting`?(0,F.jsx)(rn,{value:e.value,label:`Setting name`,disabled:r,onChange:e=>i({mode:`setting`,value:e,typing:!0})}):(0,F.jsx)(`input`,{"aria-label":t,value:e.value,placeholder:n,disabled:r,onChange:e=>i({mode:`text`,value:e.target.value})})]})}function sn({draft:e,disabled:t,picking:n,pickOff:r,password:i,onChange:a,onPick:o}){let{step:s,field:c}=e,l=t=>a(M(e,t));switch(s.kind){case`launchApp`:return(0,F.jsxs)(`label`,{className:`draft-check`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:s.clearState===!0,disabled:t,onChange:t=>{let{clearState:n,...r}=s;a({...e,step:t.target.checked?{...r,clearState:!0}:r})}}),`Clear the app's data first, as if it was just installed`]});case`inputText`:return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(on,{field:c,label:`Text to type`,placeholder:`For example: 12345`,disabled:t,onChange:l}),i&&(0,F.jsxs)(`p`,{className:`piece-missing draft-note`,children:[i===`sure`?`This goes into a password field.`:`This looks like a password field.`,` Use a setting, so the password stays in .env on this computer and out of the block.`]})]});case`openLink`:return(0,F.jsx)(on,{field:c,label:`Link`,placeholder:`https://... or myapp://...`,disabled:t,onChange:l});case`wait`:return(0,F.jsxs)(`label`,{className:`draft-inline`,children:[(0,F.jsx)(`input`,{type:`number`,"aria-label":`Seconds to wait`,min:1,max:120,value:Number.isNaN(s.seconds)?``:s.seconds,disabled:t,onChange:t=>a({...e,step:{...s,seconds:t.target.valueAsNumber}})}),`seconds`]});case`eraseText`:return(0,F.jsxs)(`label`,{className:`draft-inline`,children:[(0,F.jsx)(`input`,{type:`number`,"aria-label":`Characters to erase`,min:1,value:s.chars??``,placeholder:`All`,disabled:t,onChange:t=>{let{chars:n,...r}=s;a({...e,step:t.target.value===``?r:{...r,chars:t.target.valueAsNumber}})}}),`characters`]});case`swipe`:return`direction`in s?(0,F.jsx)(`select`,{"aria-label":`Direction`,value:s.direction,disabled:t,onChange:t=>a({...e,step:{kind:`swipe`,direction:t.target.value}}),children:nn.map(e=>(0,F.jsxs)(`option`,{value:e,children:[e[0],e.slice(1).toLowerCase()]},e))}):null;case`pressKey`:return(0,F.jsx)(`select`,{"aria-label":`Key`,value:s.key,disabled:t,onChange:t=>a({...e,step:{kind:`pressKey`,key:t.target.value}}),children:ae.map(e=>(0,F.jsx)(`option`,{children:e},e))});default:return c?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(an,{field:c,disabled:t,picking:n,pickOff:r,onChange:l,onPick:o}),s.kind===`scrollUntilVisible`&&(0,F.jsxs)(`select`,{"aria-label":`Which way to scroll`,className:`draft-direction`,value:s.direction,disabled:t,onChange:t=>a({...e,step:{...s,direction:t.target.value}}),children:[(0,F.jsx)(`option`,{value:`DOWN`,children:`Scrolling down`}),(0,F.jsx)(`option`,{value:`UP`,children:`Scrolling up`})]})]}):null}}function cn(e){let{draft:t,position:n,last:r,disabled:i,onMove:a,onRemove:o}=e,s=k(t.step);return(0,F.jsxs)(`li`,{className:`draft-step`,children:[(0,F.jsxs)(`div`,{className:`draft-step-head`,children:[(0,F.jsx)(`span`,{className:`step-index`,children:n+1}),(0,F.jsx)(`span`,{className:`draft-step-name`,children:s??Ue(t.step)}),(0,F.jsxs)(`span`,{className:`piece-tools`,children:[(0,F.jsx)(`button`,{type:`button`,onClick:()=>a(n-1),disabled:i||n===0,"aria-label":`Move step ${n+1} up`,title:`Move up`,children:`↑`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>a(n+1),disabled:i||r,"aria-label":`Move step ${n+1} down`,title:`Move down`,children:`↓`}),(0,F.jsx)(`button`,{type:`button`,onClick:o,disabled:i,"aria-label":`Remove step ${n+1}`,title:`Remove`,children:`×`})]})]}),s?(0,F.jsx)(sn,{...e}):(0,F.jsx)(`p`,{className:`hint`,children:`Kept as it is in the file.`})]})}function ln({name:e,fixed:t,saved:n,disabled:r,onSave:i}){let[a,o]=(0,l.useState)(``),s=S(e);return(0,F.jsxs)(`li`,{className:`draft-setting-row`,children:[(0,F.jsx)(`code`,{children:e}),t?(0,F.jsx)(`span`,{className:`hint`,children:`The block's file sets this, so a case cannot change it.`}):n?(0,F.jsx)(`span`,{className:`hint`,children:`Has a saved value on this computer. A case can pick another.`}):(0,F.jsxs)(`div`,{className:`draft-field`,children:[(0,F.jsx)(`input`,{"aria-label":`Saved value for ${e}`,type:s?`password`:`text`,autoComplete:`off`,value:a,placeholder:s?`The value, kept out of the block`:`A value to use by default`,disabled:r,onChange:e=>o(e.target.value)}),(0,F.jsx)(`button`,{type:`button`,disabled:r||!a,onClick:()=>void i(e,a).then(e=>e&&o(``)),children:`Save value`})]})]})}function un({edit:e,summary:t,envKeys:n,busy:r,sessionOpen:i,pickingKey:a,onChange:o,onPick:s,onSave:c,onTry:l,onRecord:u,onDelete:d,onClose:f,onSaveValue:p,onAddTestUser:m}){let h=A(e),g=ye(e.steps),_=e.steps.map((t,n)=>ke(e.steps,n)),v=_.indexOf(`sure`),y=v>=0?`Step ${v+1} goes into a password field, so make its text a setting.`:en(e.name,g),b=Ee(e.steps),x=g[g.length-1],S=x?.kind===`assertVisible`||x?.kind===`assertNotVisible`||x?.kind===`wait`,C=t=>o({...e,steps:t}),ee=t=>C([...e.steps,me(ce[t].step)]),w=(t,n)=>{let r=[...e.steps],[i]=r.splice(t,1);r.splice(n,0,i),C(r)};return(0,F.jsxs)(`div`,{className:`block-editor`,children:[(0,F.jsxs)(`div`,{className:`section-head`,children:[(0,F.jsx)(`h2`,{children:e.file?`Edit block`:`New block`}),(0,F.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>{(!h||window.confirm(`Leave this block without saving your changes?`))&&f()},children:`All blocks`})]}),e.file&&(0,F.jsx)(`p`,{className:`path`,children:e.file}),(0,F.jsxs)(`label`,{className:`field`,children:[(0,F.jsx)(`span`,{className:`field-title`,children:`Block name`}),(0,F.jsx)(`input`,{value:e.name,onChange:t=>o({...e,name:t.target.value}),placeholder:`For example: Log in`})]}),e.usedBy.length>0&&(0,F.jsxs)(`p`,{className:`hint block-note`,children:[`Used by `,e.usedBy.join(`, `),`. A change here reaches them on their next run.`]}),e.hasComments&&(0,F.jsx)(`p`,{className:`hint block-note`,children:`The file has comments, which saving here removes.`}),(0,F.jsx)(`h3`,{children:`Steps`}),e.steps.length===0?(0,F.jsx)(`p`,{className:`hint section-hint`,children:`Press Record steps and use the app on the screen, or add steps one by one. Recording starts from the screen shown now, so press Relaunch app first for a block that starts the app.`}):(0,F.jsx)(`ol`,{className:`draft-steps`,children:e.steps.map((t,n)=>(0,F.jsx)(cn,{draft:t,position:n,last:n===e.steps.length-1,disabled:r,picking:a===t.key,pickOff:i?void 0:`Connect a device first`,password:_[n],onChange:t=>C(e.steps.map(e=>e.key===t.key?t:e)),onMove:e=>w(n,e),onRemove:()=>{a===t.key&&s(null),C(e.steps.filter(e=>e.key!==t.key))},onPick:()=>s(a===t.key?null:t.key)},t.key))}),(0,F.jsx)(`datalist`,{id:tn,children:[...new Set([...b,...n])].map(e=>(0,F.jsx)(`option`,{value:e},e))}),(0,F.jsxs)(`div`,{className:`draft-add`,children:[(0,F.jsxs)(`button`,{type:`button`,className:`draft-record`,disabled:r||!i,title:i?`Use the app on the screen, from where it is now. The steps are added after the last step here.`:`Connect a device first`,onClick:u,children:[(0,F.jsx)(`span`,{className:`record-dot`,"aria-hidden":`true`}),`Record steps`]}),ce.slice(0,5).map((e,t)=>(0,F.jsx)(`button`,{type:`button`,disabled:r,onClick:()=>ee(t),children:e.label},e.label)),(0,F.jsxs)(`select`,{"aria-label":`Add another kind of step`,value:``,disabled:r,onChange:e=>{e.target.value&&ee(Number(e.target.value))},children:[(0,F.jsx)(`option`,{value:``,children:`More steps`}),ce.slice(5).map((e,t)=>(0,F.jsx)(`option`,{value:t+5,children:e.label},e.label))]})]}),e.steps.length>0&&!S&&(0,F.jsx)(`p`,{className:`hint block-note`,children:`End with a Check on the screen this block should reach, so a block that goes wrong stops there and says so.`}),b.length>0&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`h3`,{children:`Settings`}),(0,F.jsx)(`p`,{className:`hint section-hint`,children:`Each case that uses this block can choose these, such as which test user logs in.`}),(0,F.jsx)(`ul`,{className:`draft-settings`,children:b.map(t=>(0,F.jsx)(ln,{name:t,fixed:e.fixed.includes(t),saved:n.includes(t),disabled:r,onSave:p},t))})]}),y&&(h||e.file)&&(0,F.jsx)(`p`,{className:`hint block-note`,children:y}),t&&!h&&(0,F.jsx)(ot,{block:t,values:e.values,envKeys:n,disabled:r,onChange:t=>{let{values:n,...r}=e;o(t?{...r,values:t}:r)},onAddTestUser:m}),(0,F.jsxs)(`div`,{className:`case-actions wrap`,children:[(0,F.jsx)(`button`,{type:`button`,className:`primary`,disabled:r||!h||y!==void 0,onClick:c,children:`Save block`}),(0,F.jsx)(`button`,{type:`button`,disabled:r||y!==void 0||!i,title:i?`Runs the block from the screen shown now. Nothing is recorded.`:`Connect a device first`,onClick:l,children:h?`Save and try`:`Try on the device`}),e.file&&(0,F.jsx)(`button`,{type:`button`,className:`danger`,disabled:r,onClick:d,children:`Delete block`})]})]})}function dn({blocks:e,edit:t,envKeys:n,busy:r,sessionOpen:i,pickingKey:a,actions:o}){return t?(0,F.jsx)(un,{edit:t,summary:e.find(e=>e.file===t.file),envKeys:n,busy:r,sessionOpen:i,pickingKey:a,...o}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`section-head`,children:[(0,F.jsx)(`h2`,{children:`Blocks`}),(0,F.jsx)(`button`,{type:`button`,className:`primary`,onClick:o.onNew,children:`New block`})]}),(0,F.jsx)(`p`,{className:`hint section-hint block-intro`,children:`A block is a set of steps every case can reuse, such as logging in. Its settings let each case choose the details, such as which test user.`}),e.length===0?(0,F.jsx)(`p`,{className:`empty`,children:`No blocks in this project yet. Press New block to write the first one.`}):(0,F.jsx)(`ul`,{className:`palette`,children:e.map(e=>(0,F.jsxs)(`li`,{className:`piece piece-block ${e.error?`piece-broken`:``}`,children:[(0,F.jsxs)(`div`,{className:`piece-row`,children:[(0,F.jsx)(`span`,{className:`piece-icon`,children:(0,F.jsx)(ht,{})}),(0,F.jsx)(`span`,{className:`piece-name`,children:e.name}),e.stepCount!==void 0&&(0,F.jsx)(`span`,{className:`piece-meta`,children:It(e.stepCount,`step`)}),e.editable?(0,F.jsx)(`button`,{type:`button`,className:`piece-add`,disabled:r,onClick:()=>o.onOpen(e.file),children:`Edit`}):(0,F.jsx)(`button`,{type:`button`,className:`piece-add`,onClick:()=>o.onOpenFile(e.file),children:`Show file`})]}),(0,F.jsxs)(`div`,{className:`piece-body piece-body-flat`,children:[(0,F.jsx)(`span`,{className:`piece-file`,children:e.file}),e.settable&&(0,F.jsxs)(`div`,{className:`piece-vars`,children:[`Settings: `,e.settable.join(`, `)]}),e.error&&(0,F.jsxs)(`div`,{className:`piece-error`,children:[`Cannot be used: `,e.error]}),!e.editable&&!e.error&&(0,F.jsxs)(`div`,{className:`piece-vars`,children:[`Uses `,(e.maestroOnly??[]).join(`, `),`, which only its file can change.`]}),(0,F.jsx)(Ht,{block:e})]})]},e.file))})]})}var fn={hideKeyboard:`keyboard`,openLink:`link`,expect:`check`,longPress:`long press`,doubleTap:`double tap`,pressKey:`key`,orientation:`rotate`};function pn(e){return fn[e]??e}function mn({result:e}){return e?(0,F.jsx)(`span`,{className:`badge badge-${e.status}`,children:e.status}):(0,F.jsx)(`span`,{className:`badge`})}function hn({result:e}){if(e?.similarity===void 0)return null;let t=e.similarity<85;return(0,F.jsx)(`span`,{className:`similar ${t?`similar-warn`:``}`,title:`How much the replayed screen looks like the recorded one. It never fails a run; it points at screens worth a look.`,children:t?`looks different (${e.similarity}%)`:`${e.similarity}% alike`})}function gn({step:e,placeholder:t,onSave:n,onCancel:r}){let[i,a]=(0,l.useState)(e.title??``),[o,s]=(0,l.useState)(e.note??``);return(0,F.jsxs)(`form`,{className:`step-editor`,onSubmit:e=>{e.preventDefault(),n({title:i,note:o})},children:[(0,F.jsx)(`input`,{value:i,onChange:e=>a(e.target.value),placeholder:t,"aria-label":`Step title`}),(0,F.jsx)(`textarea`,{value:o,onChange:e=>s(e.target.value),placeholder:`Expected result or note, in your words`,rows:2,"aria-label":`Step note`}),(0,F.jsxs)(`div`,{className:`case-actions`,children:[(0,F.jsx)(`button`,{type:`submit`,children:`Save`}),(0,F.jsx)(`button`,{type:`button`,onClick:r,children:`Cancel`})]})]})}function _n({detail:e,blocks:t,busy:n,sessionOpen:r,suiteRunning:i,actions:a}){let{case:o,yaml:s,runs:c,health:u,parent:d,dependents:f}=e,[p,m]=(0,l.useState)(0),[h,g]=(0,l.useState)(null),[_,v]=(0,l.useState)(null),[b,x]=(0,l.useState)(null),S=c[Math.min(p,c.length-1)],C=new Map(S?.steps.map(e=>[e.flowIndex,e])),ee=Ye(o),w=S?.steps.filter(e=>e.flowIndex>=ee.length)??[],T=n||i,E=r&&!T,D=r?void 0:`Connect to this app on a device first`,te=new Map(t.map(e=>[e.file,e])),ne=e=>Ke(e,o.appId,{caseName:e=>d?.id===e?d.name:void 0,blockName:e=>te.get(e)?.name}),re=(e,t)=>{window.confirm(e)&&t()};return(0,F.jsxs)(`div`,{className:`case-detail`,children:[(0,F.jsxs)(`div`,{className:`detail-head`,children:[_===null?(0,F.jsxs)(`h2`,{children:[o.name,o.muted&&(0,F.jsx)(`span`,{className:`tag`,children:`muted`}),u.flaky&&(0,F.jsx)(`span`,{className:`tag tag-flaky`,children:`flaky`})]}):(0,F.jsxs)(`form`,{className:`inline-form`,onSubmit:e=>{e.preventDefault(),_.trim()&&a.onRename(o.id,_.trim()),v(null)},children:[(0,F.jsx)(`input`,{autoFocus:!0,value:_,onChange:e=>v(e.target.value),"aria-label":`Case name`}),(0,F.jsx)(`button`,{type:`submit`,children:`Save`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>v(null),children:`Cancel`})]}),(0,F.jsx)(`button`,{type:`button`,onClick:a.onClose,disabled:n,children:`All cases`})]}),(0,F.jsxs)(`div`,{className:`case-meta`,children:[o.id,` / `,o.appId,` / recorded `,Ft(o.createdAt),` on `,o.deviceId,o.editedAt&&(0,F.jsxs)(F.Fragment,{children:[` / edited `,Ft(o.editedAt)]})]}),(0,F.jsx)(`div`,{className:`case-meta`,children:b===null?(0,F.jsxs)(F.Fragment,{children:[o.reference&&(0,F.jsxs)(F.Fragment,{children:[`Reference: `,o.reference,` `]}),(0,F.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>x(o.reference??``),disabled:T,title:`A requirement, user story or scenario code, shown in test case documents and evidence packs`,children:o.reference?`Change`:`Add a reference`})]}):(0,F.jsxs)(`form`,{className:`inline-form`,onSubmit:e=>{e.preventDefault(),b.trim()!==(o.reference??``)&&a.onReference(o.id,b.trim()),x(null)},children:[(0,F.jsx)(`input`,{autoFocus:!0,maxLength:100,value:b,placeholder:`A requirement, user story or scenario code`,onChange:e=>x(e.target.value),"aria-label":`Reference`}),(0,F.jsx)(`button`,{type:`submit`,children:`Save`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>x(null),children:`Cancel`})]})}),d&&(0,F.jsxs)(`div`,{className:`case-meta`,children:[`Starts from`,` `,(0,F.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>a.onOpenCase(d.id),children:d.name})]}),f.length>0&&(0,F.jsxs)(`div`,{className:`case-meta`,children:[`Cases that start from this one:`,` `,f.map((e,t)=>(0,F.jsxs)(`span`,{children:[t>0&&`, `,(0,F.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>a.onOpenCase(e.id),children:e.name})]},e.id))]}),(0,F.jsxs)(`div`,{className:`case-actions wrap`,children:[(0,F.jsx)(`button`,{type:`button`,className:`primary`,onClick:a.onReplay,disabled:T,title:`Run this case with Maestro on the device`,children:`Run`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>v(o.name),disabled:T,children:`Rename`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>a.onDuplicate(o.id),disabled:T,children:`Duplicate`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>a.onSaveAsBlock(o.id),disabled:T,title:`Opens these steps in the Blocks tab, to reuse them in other cases`,children:`Save as block`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>a.onMute(o.id,!o.muted),disabled:T,title:`A muted case is skipped by Run all`,children:o.muted?`Unmute`:`Mute`}),(0,F.jsx)(`button`,{type:`button`,className:`danger`,onClick:()=>a.onDelete(o.id),disabled:T||f.length>0,title:f.length>0?`Other cases start from this one`:void 0,children:`Delete`})]}),(0,F.jsxs)(`div`,{className:`export-links`,children:[`Test case document:`,` `,(0,F.jsx)(`a`,{href:y.caseExportUrl(o.id,`xlsx`),download:!0,children:`Excel`}),` `,(0,F.jsx)(`a`,{href:y.caseExportUrl(o.id,`html`),target:`_blank`,rel:`noreferrer`,children:`HTML`}),` `,(0,F.jsx)(`a`,{href:y.caseExportUrl(o.id,`md`),download:!0,children:`Markdown`})]}),(0,F.jsx)(`div`,{className:`run-summary ${S?S.passed?`run-passed`:`run-failed`:``}`,children:S?(0,F.jsxs)(F.Fragment,{children:[p===0?`Last run`:`Run`,` `,S.passed?`passed`:`failed`,` on `,Ft(S.startedAt),S.suiteId&&(0,F.jsx)(F.Fragment,{children:` in Run all`}),` (exit code `,S.exitCode,`).`,` `,(0,F.jsx)(`a`,{href:S.reportUrl,target:`_blank`,rel:`noreferrer`,children:`Shareable report`}),S.videoUrl&&(0,F.jsxs)(F.Fragment,{children:[` · `,(0,F.jsx)(`a`,{href:S.videoUrl,target:`_blank`,rel:`noreferrer`,children:`Video`})]}),c.length>1&&(0,F.jsx)(`select`,{className:`run-select`,value:p,onChange:e=>m(Number(e.target.value)),"aria-label":`Run to show`,children:c.map((e,t)=>(0,F.jsxs)(`option`,{value:t,children:[Ft(e.startedAt),` `,e.passed?`passed`:`failed`,e.stale?` (before edit)`:``]},e.runId))}),u.recent.length>1&&(0,F.jsxs)(`div`,{className:`path`,children:[u.failedRecently,` of the last `,It(u.recent.length,`run`),` since the last edit failed`,u.flaky?`, so the case is flaky: look at the failed runs before trusting a pass.`:`.`]})]}):`Not run yet.`}),S?.stale&&(0,F.jsx)(`p`,{className:`run-error`,children:`This run started before the case was last edited, so its rows may not line up with the steps.`}),S?.deviceProblem&&(0,F.jsx)(`p`,{className:`run-error`,children:S.deviceProblem}),S?.error&&!S.deviceProblem&&(0,F.jsx)(`p`,{className:`run-error`,children:S.error}),S?.screenshotUrl&&(0,F.jsxs)(`a`,{className:`failure-shot`,href:S.screenshotUrl,target:`_blank`,rel:`noreferrer`,title:`Maestro's screenshot at the failure`,children:[(0,F.jsx)(`img`,{className:`thumb`,src:S.screenshotUrl,alt:`Screen when the run failed`}),(0,F.jsx)(`span`,{className:`hint`,children:`Maestro's screenshot at the failure`})]}),(0,F.jsx)(`ol`,{className:`steps`,children:ee.map((e,t)=>{let n=C.get(t),r=e.kind===`step`?e.step:void 0,i=r?Nt(r):void 0,s=r?pn(r.kind):e.kind===`expectation`?`end`:e.kind===`startFrom`?`start`:e.kind,c=e.kind===`expectation`?o.expectations.indexOf(e.expectation)+1:0,l=e.kind===`block`?e.file:r?.kind===`block`?r.file:void 0;return(0,F.jsxs)(`li`,{className:`step step-detail-row ${l?`step-block`:``}`,children:[(0,F.jsx)(`span`,{className:`step-index`,children:t+1}),l?(0,F.jsxs)(`span`,{className:`step-kind step-kind-block`,children:[(0,F.jsx)(ht,{size:12}),`block`]}):(0,F.jsx)(`span`,{className:`step-kind`,children:s}),(0,F.jsxs)(`span`,{className:`step-detail ${r&&Pt(r)?`warn`:``}`,children:[ne(e),e.kind===`startFrom`&&(0,F.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>a.onOpenCase(e.caseId),children:`open`}),i&&(0,F.jsx)(`span`,{className:`selector`,children:i}),l&&(0,F.jsx)(Ht,{block:te.get(l)}),r?.note&&(0,F.jsx)(`span`,{className:`note`,children:r.note}),r?.review&&(0,F.jsxs)(`span`,{className:`review`,children:[N[r.review],` `,(0,F.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>a.onPatchStep(o.id,r.index,{review:null}),disabled:T,children:`Looks right`})]}),n?.error&&(0,F.jsx)(`span`,{className:`step-error`,children:n.error}),r&&h===r.index&&(0,F.jsx)(gn,{step:r,placeholder:Ke({...e,step:{...r,title:``}},o.appId),onSave:e=>{a.onPatchStep(o.id,r.index,e),g(null)},onCancel:()=>g(null)})]}),(0,F.jsxs)(`span`,{className:`result-cell`,children:[(0,F.jsx)(mn,{result:n}),n?.durationMs!==void 0&&(0,F.jsx)(`span`,{className:`step-time`,children:We(n.durationMs)}),(0,F.jsx)(hn,{result:n})]}),(0,F.jsxs)(`span`,{className:`shots`,children:[r?.screenshotUrl&&(0,F.jsx)(`a`,{href:r.screenshotUrl,target:`_blank`,rel:`noreferrer`,title:`Recorded`,children:(0,F.jsx)(`img`,{className:`thumb`,src:r.screenshotUrl,alt:`Recorded screen after step ${r.index}`})}),n?.replayScreenshotUrl&&(0,F.jsx)(`a`,{href:n.replayScreenshotUrl,target:`_blank`,rel:`noreferrer`,title:`Replayed`,children:(0,F.jsx)(`img`,{className:`thumb thumb-replay`,src:n.replayScreenshotUrl,alt:`Replayed screen after row ${t+1}`})})]}),(0,F.jsxs)(`details`,{className:`row-menu`,children:[(0,F.jsx)(`summary`,{"aria-label":`Step actions`,children:`⋯`}),(0,F.jsxs)(`div`,{className:`row-menu-items`,children:[r&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`button`,{type:`button`,onClick:()=>g(r.index),disabled:T,children:`Title and note`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>a.onEdit({mode:`rerecord`,step:r.index}),disabled:!E,title:D,children:`Re-record from here`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>a.onEdit({mode:`insert`,after:r.index}),disabled:!E,title:D,children:`Add steps after this one`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>re(`Split after step ${r.index}? Steps 1 to ${r.index} become a new case, and this case will start from it.`,()=>a.onSplit(o.id,r.index)),disabled:T,children:`Split after this step`}),(0,F.jsx)(`button`,{type:`button`,className:`danger`,onClick:()=>re(`Delete step ${r.index}? Later steps may no longer run; run the case to check.`,()=>a.onDeleteStep(o.id,r.index)),disabled:T,children:`Delete step`})]}),(e.kind===`launch`||e.kind===`startFrom`)&&(0,F.jsx)(`button`,{type:`button`,onClick:()=>a.onEdit({mode:`insert`,after:0}),disabled:!E,title:D,children:`Add steps before step 1`}),e.kind===`block`&&(0,F.jsx)(`span`,{className:`hint`,children:`Change this block in the Blocks tab.`}),e.kind===`expectation`&&(0,F.jsx)(`button`,{type:`button`,className:`danger`,onClick:()=>a.onDeleteExpectation(o.id,c),disabled:T,children:`Delete this check`})]})]})]},t)})}),w.length>0&&(0,F.jsxs)(`p`,{className:`run-error`,children:[w.length,` command(s) in this run have no step in this case; the flow file may have been edited by hand.`]}),(0,F.jsxs)(`details`,{className:`yaml-box`,children:[(0,F.jsxs)(`summary`,{children:[`Maestro flow (`,`flows/${o.id}.yaml`,`)`]}),(0,F.jsx)(`pre`,{className:`yaml`,children:s||`The flow file is missing; Run writes it again from the case.`})]})]})}var vn=3;function yn({candidates:e,preselected:t,busy:n,saveLabel:r=`Save case`,onSave:i,onCancel:a}){let[o,s]=(0,l.useState)(()=>(t??[]).slice(0,vn)),c=e=>s(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]);return(0,F.jsxs)(`div`,{className:`picker`,children:[(0,F.jsx)(`h3`,{children:`What should be visible at the end?`}),(0,F.jsxs)(`p`,{className:`hint`,children:[`Tick up to `,vn,`. Ariadne checks them at the end of every run. Saving with none ticked is fine.`]}),e.length===0?(0,F.jsx)(`p`,{className:`empty`,children:`No stable text on this screen to check.`}):(0,F.jsx)(`ul`,{className:`picker-list`,children:e.map(e=>{let t=o.includes(e.id);return(0,F.jsx)(`li`,{children:(0,F.jsxs)(`label`,{children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:t,disabled:n||!t&&o.length>=vn,onChange:()=>c(e.id)}),` `,e.label,` `,(0,F.jsx)(`code`,{children:jt(e.selector)})]})},e.id)})}),(0,F.jsxs)(`div`,{className:`case-actions`,children:[(0,F.jsx)(`button`,{type:`button`,className:`primary`,onClick:()=>i([...o].sort((e,t)=>e-t)),disabled:n,children:r}),(0,F.jsx)(`button`,{type:`button`,onClick:a,disabled:n,children:`Cancel`})]})]})}var bn=`ariadne-files`,xn=`.`;function Sn(){try{return localStorage.getItem(bn)!==`closed`}catch{return!0}}function Cn(e){try{e?localStorage.removeItem(bn):localStorage.setItem(bn,`closed`)}catch{}}function wn(){let[e,t]=(0,l.useState)(Sn);return[e,(0,l.useCallback)(()=>{t(e=>(Cn(!e),!e))},[])]}function Tn({hidden:e,project:t,openedPath:n,onOpenFile:r,onClose:i,onError:a}){let[o,s]=(0,l.useState)([]),[c,u]=(0,l.useState)({}),[d,f]=(0,l.useState)(()=>new Set([xn])),p=(0,l.useRef)(d);p.current=d;let m=(0,l.useCallback)(e=>a(e instanceof Error?e.message:String(e)),[a]),h=(0,l.useCallback)(async e=>{let{entries:t}=await y.fileList(e);u(n=>({...n,[e]:t}))},[]),g=(0,l.useCallback)(async()=>{let e=await y.fileRoots();s(e.roots),await Promise.all([...p.current].map(e=>h(e).catch(()=>void 0)))},[h]);(0,l.useEffect)(()=>{g().catch(m)},[t,g,m]);let _=e=>{let t=new Set(d);t.delete(e)?f(t):(t.add(e),f(t),h(e).catch(m))},v=(e,t)=>(0,F.jsx)(`ul`,{className:`files-list`,children:e.map(e=>{let i=e.kind===`folder`,a=d.has(e.path);return(0,F.jsxs)(`li`,{children:[(0,F.jsxs)(`button`,{type:`button`,className:`files-row ${e.path===n?`files-row-on`:``}`,style:{paddingLeft:4+t*14},title:e.path,"aria-expanded":i?a:void 0,onClick:()=>i?_(e.path):r(e.path),children:[(0,F.jsx)(`span`,{className:`files-chevron ${a?`files-chevron-open`:``}`,children:i&&(0,F.jsx)(ut,{size:12})}),(0,F.jsx)(`span`,{className:`files-kind`,children:i?(0,F.jsx)(ct,{size:14}):(0,F.jsx)(lt,{size:14})}),(0,F.jsx)(`span`,{className:`files-name`,children:e.name})]}),i&&a&&v(c[e.path]??[],t+1)]},e.path)})});return(0,F.jsxs)(`aside`,{className:`files`,"aria-label":`Project files`,hidden:e,children:[(0,F.jsxs)(`div`,{className:`files-head`,children:[(0,F.jsx)(`span`,{className:`files-title`,children:`Files`}),(0,F.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:()=>void g().catch(m),"aria-label":`Refresh files`,title:`Refresh`,children:(0,F.jsx)(mt,{size:14})}),(0,F.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:i,"aria-label":`Hide files`,title:`Hide files`,children:(0,F.jsx)(yt,{size:14})})]}),(0,F.jsx)(`div`,{className:`files-tree`,children:v(o,0)})]})}function En(e){return e<1024?`${e} bytes`:e<1048576?`${Math.round(e/1024)} KB`:`${(e/1048576).toFixed(1)} MB`}function Dn({file:e}){return(0,F.jsxs)(`div`,{className:`file-view`,children:[(0,F.jsxs)(`p`,{className:`path`,children:[e.path,` · read only`]}),e.kind===`text`&&e.truncated&&(0,F.jsx)(`p`,{className:`hint`,children:`This is the start of the file; it is too long to show in full.`}),e.kind===`text`&&(0,F.jsx)(`pre`,{className:`yaml file-text`,children:e.text||`This file is empty.`}),e.kind===`image`&&(0,F.jsx)(`img`,{className:`file-image`,src:e.url,alt:e.name}),e.kind===`other`&&(0,F.jsxs)(`p`,{className:`hint`,children:[`This file cannot be shown here (`,En(e.size),`).`]})]})}function On(e){let t=new Map(e.map(e=>[e.id,e])),n=new Map,r=[];for(let i of[...e].sort((e,t)=>e.createdAt.localeCompare(t.createdAt)||e.id.localeCompare(t.id)))if(i.startFrom&&t.has(i.startFrom)&&i.startFrom!==i.id){let e=n.get(i.startFrom)??[];e.push(i),n.set(i.startFrom,e)}else r.push(i);let i=[],a=new Set,o=e=>{if(!a.has(e.id)){a.add(e.id),i.push(e);for(let t of n.get(e.id)??[])o(t)}};for(let e of r)o(e);for(let t of e)o(t);return i}function kn(e){return e.versionName&&e.versionCode?`${e.versionName} (${e.versionCode})`:e.versionName??e.versionCode}function An(e){let t=new Map(e.map(e=>[e.id,e])),n=e=>{let n=0,r=new Set([e.id]),i=e.startFrom?t.get(e.startFrom):void 0;for(;i&&!r.has(i.id);)r.add(i.id),n++,i=i.startFrom?t.get(i.startFrom):void 0;return n};return On(e).map(e=>({item:e,depth:n(e)}))}function jn({item:e}){let{health:t}=e;if(t.recent.length===0)return(0,F.jsx)(`span`,{className:`history-note`,children:t.stale?`not run since the last edit`:`never run`});let n=[...t.recent].reverse();return(0,F.jsx)(`span`,{className:`history`,title:`${t.failedRecently} of the last ${It(t.recent.length,`run`)} failed`,children:n.map(e=>(0,F.jsx)(`span`,{className:`dot ${e.passed?`dot-passed`:`dot-failed`}`,title:`${e.passed?`passed`:`failed`} ${Ft(e.startedAt)}`},e.runId))})}var Mn={testedBy:`ariadne-tested-by`,signoffRole:`ariadne-signoff-role`,screens:`ariadne-evidence-screens`};function Nn(e){try{return localStorage.getItem(Mn[e])??``}catch{return``}}function Pn(e,t){try{t.trim()?localStorage.setItem(Mn[e],t.trim()):localStorage.removeItem(Mn[e])}catch{}}function Fn({suite:e}){let t=e.testedOn?.apps[0],[n,r]=(0,l.useState)(()=>({release:t?kn(t)??``:``,testedBy:Nn(`testedBy`),signoffRole:Nn(`signoffRole`)||`Accepted by`,knownIssues:``,conclusion:``,screens:Nn(`screens`)===`checks`?`checks`:`all`})),i=e=>t=>r({...n,[e]:t.target.value}),a=()=>{Pn(`testedBy`,n.testedBy),Pn(`signoffRole`,n.signoffRole===`Accepted by`?``:n.signoffRole),Pn(`screens`,n.screens===`checks`?`checks`:``),window.open(y.evidenceUrl(e.suiteId,n),`_blank`,`noopener`)};return(0,F.jsxs)(`form`,{className:`evidence-form`,onSubmit:e=>{e.preventDefault(),a()},children:[(0,F.jsxs)(`label`,{className:`field`,children:[(0,F.jsx)(`span`,{className:`field-title`,children:`Release`}),(0,F.jsx)(`input`,{value:n.release,maxLength:200,placeholder:`2.4.1`,onChange:i(`release`)})]}),(0,F.jsxs)(`label`,{className:`field`,children:[(0,F.jsx)(`span`,{className:`field-title`,children:`Tested by`}),(0,F.jsx)(`input`,{value:n.testedBy,maxLength:200,placeholder:`Your name`,onChange:i(`testedBy`)})]}),(0,F.jsxs)(`label`,{className:`field`,children:[(0,F.jsx)(`span`,{className:`field-title`,children:`Second signature`}),(0,F.jsx)(`input`,{value:n.signoffRole,maxLength:40,placeholder:`Accepted by`,onChange:i(`signoffRole`),title:`Reviewed by, if the client accepts in a document of its own`})]}),(0,F.jsxs)(`label`,{className:`field`,children:[(0,F.jsx)(`span`,{className:`field-title`,children:`Screens`}),(0,F.jsxs)(`select`,{value:n.screens,onChange:i(`screens`),children:[(0,F.jsx)(`option`,{value:`all`,children:`After every step`}),(0,F.jsx)(`option`,{value:`checks`,children:`Only checks and failures`})]})]}),(0,F.jsxs)(`label`,{className:`field wide`,children:[(0,F.jsx)(`span`,{className:`field-title`,children:`Known issues`}),(0,F.jsx)(`textarea`,{value:n.knownIssues,maxLength:1e3,rows:2,placeholder:`What you know is still wrong in this release`,onChange:i(`knownIssues`)})]}),(0,F.jsxs)(`label`,{className:`field wide`,children:[(0,F.jsx)(`span`,{className:`field-title`,children:`Conclusion`}),(0,F.jsx)(`input`,{value:n.conclusion,maxLength:200,placeholder:`Ready for release`,onChange:i(`conclusion`)})]}),(0,F.jsxs)(`div`,{className:`evidence-actions`,children:[(0,F.jsx)(`button`,{type:`submit`,className:`primary`,children:`Make the pack`}),(0,F.jsx)(`span`,{className:`hint`,children:`A first page to sign, then every case with its steps and screens. Print it or save it as PDF. A copy goes in exports/.`})]})]})}function In({suite:e,busy:t,cases:n,evidencePack:r,onRunAll:i,onStopSuite:a}){let[o,s]=(0,l.useState)(!0),[c,u]=(0,l.useState)(),d=e?.status===`running`,f=d?e.cases.find(e=>e.outcome===`running`):void 0,p=e?e.cases.filter(e=>![`pending`,`running`].includes(e.outcome)).length:0,m=e?.counts,h=m?[`passed`,`flaky`,`failed`,`error`,`muted`].filter(e=>m[e]>0).map(e=>`${m[e]} ${e}`).join(`, `):``;return(0,F.jsxs)(`div`,{className:`suite-bar ${e&&!d?e.passed?`run-passed`:`run-failed`:``}`,children:[(0,F.jsxs)(`div`,{className:`suite-actions`,children:[d?(0,F.jsx)(`button`,{type:`button`,className:`danger`,onClick:a,children:`Stop after this case`}):(0,F.jsx)(`button`,{type:`button`,className:`primary`,onClick:()=>i(o),disabled:t||n.length===0,title:`Run every case that is not muted, one after another`,children:`Run all`}),(0,F.jsxs)(`label`,{className:`hint`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:o,disabled:d,onChange:e=>s(e.target.checked)}),` retry failures once`]})]}),d&&(0,F.jsxs)(`div`,{children:[`Running `,Math.min(p+1,e.cases.length),` of `,e.cases.length,f?`: ${f.name}`:``,`. Device actions wait until it ends.`]}),e&&!d&&(0,F.jsxs)(`div`,{children:[`Last Run all `,e.status===`stopped`?`stopped`:e.passed?`passed`:`failed`,`: `,h||`nothing ran`,`.`,` `,(0,F.jsx)(`a`,{href:e.reportUrl,target:`_blank`,rel:`noreferrer`,children:`Report`}),` `,r&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`button`,{type:`button`,className:`link`,"aria-expanded":c===e.suiteId,onClick:()=>u(c===e.suiteId?void 0:e.suiteId),title:`A document of this Run all for whoever accepts the release`,children:`Evidence pack`}),` `]}),(0,F.jsx)(`span`,{className:`path`,children:Ft(e.startedAt)})]}),r&&e&&!d&&c===e.suiteId&&(0,F.jsx)(Fn,{suite:e},e.suiteId)]})}function Ln(e){let{cases:t,busy:n}=e,r=An(t),i=e.suite?.status===`running`;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`section-head`,children:[(0,F.jsx)(`h3`,{children:`Saved cases`}),t.length>0&&(0,F.jsxs)(`span`,{className:`export-links`,children:[`Export all cases:`,` `,(0,F.jsx)(`a`,{href:y.projectExportUrl(`xlsx`),download:!0,children:`Excel`}),` `,(0,F.jsx)(`a`,{href:y.projectExportUrl(`html`),target:`_blank`,rel:`noreferrer`,children:`HTML`}),` `,(0,F.jsx)(`a`,{href:y.projectExportUrl(`md`),download:!0,children:`Markdown`})]})]}),(0,F.jsx)(In,{suite:e.suite,busy:n,cases:t,evidencePack:e.evidencePack,onRunAll:e.onRunAll,onStopSuite:e.onStopSuite}),t.length===0?(0,F.jsxs)(`div`,{className:`empty-state`,children:[(0,F.jsx)(`p`,{className:`empty`,children:`No cases yet. Record one: name it, choose what runs first, and use the app on the screen.`}),(0,F.jsx)(`button`,{type:`button`,className:`primary`,onClick:e.onNewCase,children:`Record a new case`})]}):(0,F.jsx)(`ul`,{className:`saved-cases`,children:r.map(({item:t,depth:r})=>(0,F.jsxs)(`li`,{style:{paddingLeft:8+r*18},className:t.muted?`saved-muted`:``,children:[(0,F.jsxs)(`span`,{className:`saved-name`,children:[r>0&&(0,F.jsx)(`span`,{className:`tree-mark`,"aria-hidden":`true`,children:`└ `}),t.name,t.muted&&(0,F.jsx)(`span`,{className:`tag`,children:`muted`}),t.health.flaky&&(0,F.jsx)(`span`,{className:`tag tag-flaky`,children:`flaky`}),t.health.status===`failed`&&(0,F.jsx)(`span`,{className:`tag tag-failed`,children:`failing`})]}),(0,F.jsxs)(`span`,{className:`path`,children:[It(t.stepCount,`step`),t.dependents>0?` · ${t.dependents===1?`1 case starts here`:`${t.dependents} cases start here`}`:``,` · `,(0,F.jsx)(jn,{item:t})]}),(0,F.jsxs)(`span`,{className:`saved-actions`,children:[(0,F.jsx)(`button`,{type:`button`,onClick:()=>e.onOpen(t.id),disabled:n&&!i,children:`Open`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>e.onReplay(t.id),disabled:n||i,children:`Run`})]})]},t.id))})]})}function Rn({currentCase:e,picking:t,busy:n,usingPhone:r,project:i,...a}){let[o,s]=(0,l.useState)(!1),[c,u]=(0,l.useState)({}),d=e=>a.onRunBlock(e,c[e]),f=i?.blocks??[],p=e=>f.find(t=>t.file===e)?.name,m=Je(e.steps,e.expectations),h=e.editing,g=e.startFrom?i?.cases.find(t=>t.id===e.startFrom)?.name??e.startFrom:void 0;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`h2`,{children:[e.name,(0,F.jsxs)(`span`,{className:`rec`,children:[(0,F.jsx)(`span`,{className:`rec-dot`,"aria-hidden":`true`}),`Recording`]})]}),(0,F.jsxs)(`div`,{className:`case-meta`,children:[e.forBlock?`Block`:e.id,` / `,e.appId,` on `,e.deviceId]}),e.forBlock&&(0,F.jsx)(`p`,{className:`editing-note`,children:`Finish recording adds these steps to the block, and you can turn details into settings there. Discard leaves the block as it was.`}),!h&&!e.forBlock&&(0,F.jsx)(Gt,{blocks:i?.blocks??[],lane:e.preconditionBlocks,startFromName:g,appId:e.appId}),h&&(0,F.jsxs)(`p`,{className:`editing-note`,children:[h.mode===`rerecord`?`Re-recording from step ${h.keptSteps+1}. Steps 1 to ${h.keptSteps} are kept; the old steps after them and the old end checks are replaced when you finish.`:`Adding steps after step ${h.keptSteps}. The ${It(h.tailSteps,`saved step`)} after it and the end checks are kept and follow the new steps.`,` `,`Discard leaves the saved case as it was.`]}),(0,F.jsxs)(`ol`,{className:`steps`,children:[e.steps.length===0&&(0,F.jsx)(`li`,{className:`empty`,children:r?`Use the phone. The first step appears here.`:`Click the screen to record the first step.`}),e.steps.map((t,n)=>{let r=Nt(t),i=h&&n<h.keptSteps;return(0,F.jsxs)(`li`,{className:`step ${i?`step-kept`:``} ${t.kind===`block`?`step-block`:``}`,children:[(0,F.jsx)(`span`,{className:`step-index`,children:t.index}),t.kind===`block`?(0,F.jsxs)(`span`,{className:`step-kind step-kind-block`,children:[(0,F.jsx)(ht,{size:12}),`block`]}):(0,F.jsx)(`span`,{className:`step-kind`,children:pn(t.kind)}),(0,F.jsxs)(`span`,{className:`step-detail ${Pt(t)?`warn`:``}`,children:[t.kind===`block`?Ke({kind:`step`,step:t},e.appId,{blockName:p}):Mt(t,m[n]),r&&(0,F.jsx)(`span`,{className:`selector`,children:r}),t.review&&(0,F.jsx)(`span`,{className:`review`,children:N[t.review]})]}),t.screenshotUrl&&(0,F.jsx)(`a`,{href:t.screenshotUrl,target:`_blank`,rel:`noreferrer`,children:(0,F.jsx)(`img`,{className:`thumb`,src:t.screenshotUrl,alt:`Screen after step ${t.index}`})})]},t.index)}),!t&&f.length>0&&(0,F.jsx)(Kt,{dragging:o,disabled:n,onDrop:d}),h?.mode===`insert`&&h.tailSteps>0&&(0,F.jsxs)(`li`,{className:`empty`,children:[`Then the `,It(h.tailSteps,`saved step`),` that came after step `,h.keptSteps,`.`]})]}),t?(0,F.jsx)(yn,{candidates:t.candidates,...t.preselected?{preselected:t.preselected}:{},...e.forBlock?{saveLabel:`Add to block`}:{},busy:n,onSave:a.onSavePicks,onCancel:a.onCancelPick}):(0,F.jsxs)(`div`,{className:`case-actions`,children:[(0,F.jsx)(`button`,{type:`button`,className:`primary`,onClick:a.onFinish,disabled:n,children:h?.mode===`insert`?`Save changes`:`Finish recording`}),(0,F.jsx)(`button`,{type:`button`,className:`danger`,onClick:a.onDiscard,disabled:n,children:`Discard`})]}),!t&&f.length>0&&(0,F.jsxs)(`details`,{className:`run-blocks`,children:[(0,F.jsx)(`summary`,{children:`Run a setup block now`}),(0,F.jsx)(`p`,{className:`hint section-hint`,children:`Runs on the device as the next step, for example to dismiss a popup or to log in as another test user. Drag a block onto the end of the steps, or press Run now.`}),(0,F.jsx)(Ut,{blocks:f,lockedReason:n?`Wait for the studio to finish`:void 0,warnClears:!0,addLabel:`Run now`,settings:{envKeys:i?.envKeys??[],values:c,onChange:(e,t)=>u(n=>({...n,[e]:t})),onAddTestUser:a.onAddTestUser},onAdd:d,onDragging:s})]})]})}function zn({project:e,draft:t,onDraftChange:n,nameFocus:r,appId:i,busy:a,sessionOpen:o,onRecord:s,onAddTestUser:c}){let u=(0,l.useRef)(null),[d,f]=(0,l.useState)(!1);(0,l.useEffect)(()=>{r>0&&u.current?.focus()},[r]);let p=e?.blocks??[],m=An(e?.cases??[]),h=t.startFrom&&m.some(({item:e})=>e.id===t.startFrom)?t.startFrom:``,g=e=>n({...t,...e}),_=r>0&&!t.name.trim();return(0,F.jsxs)(`form`,{className:`composer`,onSubmit:e=>{e.preventDefault(),o&&!a&&s()},children:[(0,F.jsx)(`h2`,{children:`New case`}),(0,F.jsxs)(`label`,{className:`field`,children:[(0,F.jsx)(`span`,{className:`field-title`,children:`Case name`}),(0,F.jsx)(`input`,{ref:u,className:_?`needs-value`:``,value:t.name,onChange:e=>g({name:e.target.value}),placeholder:`For example: Submit a claim`,"aria-describedby":_?`name-needed`:void 0}),_&&(0,F.jsx)(`span`,{id:`name-needed`,className:`field-help`,children:`Give the case a name, then press Start recording.`})]}),(0,F.jsx)(`h3`,{children:`Before recording`}),(0,F.jsx)(Wt,{blocks:p,cases:m,appId:i,envKeys:e?.envKeys??[],lane:t.blocks,startFrom:h,dragging:d,disabled:a,onLaneChange:e=>g({blocks:e}),onStartFromChange:e=>g({startFrom:e}),onAddTestUser:c}),(0,F.jsxs)(`div`,{className:`record-row`,children:[(0,F.jsxs)(`button`,{type:`submit`,className:`primary record-button`,disabled:a||!o,title:o?void 0:`Connect a device first`,children:[(0,F.jsx)(`span`,{className:`record-dot`,"aria-hidden":`true`}),`Start recording`]}),(0,F.jsx)(`span`,{className:`hint`,children:o?`Then use the app on the screen. Every tap, typed text, scroll and Back becomes a step; Check records that something is visible.`:`Connect a device first, in Device above. Device setup explains how.`})]}),(0,F.jsx)(`h3`,{children:`Setup blocks`}),(0,F.jsx)(`p`,{className:`hint section-hint`,children:`Steps to reuse, such as logging in. Drag one into "Before recording", or press Add. Write your own in the Blocks tab.`}),(0,F.jsx)(Ut,{blocks:p,lockedReason:h?`This case starts from another case, which runs its own setup blocks`:a?`Wait for the studio to finish`:void 0,onAdd:e=>g({blocks:[...t.blocks,{file:e}]}),onDragging:f})]})}function Bn({finished:e,project:t,onOpen:n,onDismiss:r}){let i=t?.cases.find(t=>t.id===e.caseId)?.name??e.caseId;return(0,F.jsxs)(`div`,{className:`finished`,children:[(0,F.jsxs)(`div`,{className:`finished-head`,children:[(0,F.jsxs)(`span`,{className:`finished-title`,children:[(0,F.jsx)(vt,{}),`Saved "`,i,`"`]}),(0,F.jsxs)(`span`,{className:`case-actions`,children:[(0,F.jsx)(`button`,{type:`button`,onClick:n,children:`Open case`}),(0,F.jsx)(`button`,{type:`button`,onClick:r,children:`Dismiss`})]})]}),(0,F.jsxs)(`details`,{className:`yaml-box`,children:[(0,F.jsxs)(`summary`,{children:[`Maestro flow (`,e.flowFile,`)`]}),(0,F.jsx)(`pre`,{className:`yaml`,children:e.yaml})]})]})}function Vn(e){let{tab:t,openedFile:n,project:r,currentCase:i,finished:a,openedCase:o,busy:s,sessionOpen:c}=e,l=i!==null,u=r?.cases.length??0,d;if(t===`file`&&n)d=(0,F.jsx)(Dn,{file:n});else if(t===`blocks`)d=(0,F.jsx)(dn,{blocks:r?.blocks??[],edit:e.blockEdit,envKeys:r?.envKeys??[],busy:s,sessionOpen:c,pickingKey:e.pickingKey,actions:e.blockActions});else if(t===`record`)d=i?(0,F.jsx)(Rn,{currentCase:i,project:r,picking:e.picking,usingPhone:e.usingPhone,busy:s,onFinish:e.onFinish,onSavePicks:e.onSavePicks,onCancelPick:e.onCancelPick,onDiscard:e.onDiscard,onRunBlock:e.onRunBlock,onAddTestUser:e.onAddTestUser}):(0,F.jsxs)(F.Fragment,{children:[a&&(0,F.jsx)(Bn,{finished:a,project:r,onOpen:()=>e.onOpenCase(a.caseId),onDismiss:e.onDismissFinished}),(0,F.jsx)(zn,{project:r,draft:e.draft,onDraftChange:e.onDraftChange,nameFocus:e.nameFocus,appId:e.appId,busy:s,sessionOpen:c,onRecord:e.onRecord,onAddTestUser:e.onAddTestUser})]});else if(o){let t=o.case.id;d=(0,F.jsx)(_n,{detail:o,blocks:r?.blocks??[],busy:s,sessionOpen:c,suiteRunning:e.suite?.status===`running`,actions:{...e.caseActions,onClose:e.onCloseCase,onReplay:()=>e.onReplayCase(t),onEdit:n=>e.caseActions.onEdit(t,n)}})}else d=(0,F.jsx)(Ln,{cases:r?.cases??[],suite:e.suite,busy:s,evidencePack:r?.evidencePack??!1,onOpen:e.onOpenCase,onReplay:e.onReplayCase,onRunAll:e.onRunAll,onStopSuite:e.onStopSuite,onNewCase:()=>e.onTabChange(`record`)});return(0,F.jsxs)(`aside`,{className:`case-panel`,children:[(0,F.jsxs)(`div`,{className:`panel-tabs`,role:`tablist`,"aria-label":`Case panel`,children:[(0,F.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":t===`record`,className:t===`record`?`tab-on`:``,onClick:()=>e.onTabChange(`record`),children:[(0,F.jsx)(`span`,{className:`tab-dot ${l?`tab-dot-live`:``}`,"aria-hidden":`true`}),l?`Recording`:`Record`]}),(0,F.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":t===`cases`,className:t===`cases`?`tab-on`:``,onClick:()=>e.onTabChange(`cases`),disabled:l,title:l?`Finish or discard the recording first`:void 0,children:[`Cases `,(0,F.jsx)(`span`,{className:`tab-count`,children:u})]}),(0,F.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":t===`blocks`,className:t===`blocks`?`tab-on`:``,onClick:()=>e.onTabChange(`blocks`),disabled:l,title:l?`Finish or discard the recording first`:void 0,children:[`Blocks `,(0,F.jsx)(`span`,{className:`tab-count`,children:r?.blocks.length??0})]}),n&&(0,F.jsxs)(`span`,{className:`tab-file`,children:[(0,F.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t===`file`,className:t===`file`?`tab-on`:``,title:n.path,onClick:()=>e.onTabChange(`file`),children:(0,F.jsx)(`span`,{className:`tab-file-name`,children:n.name})}),(0,F.jsx)(`button`,{type:`button`,className:`tab-file-close`,"aria-label":`Close ${n.name}`,title:`Close`,onClick:e.onCloseFile,children:(0,F.jsx)(yt,{size:12})})]})]}),(0,F.jsx)(`div`,{className:`panel-body`,role:`tabpanel`,children:d})]})}function Hn(e,t){return e.find(e=>e.id===t)?.name??t??``}function Un(e){let{devices:t,deviceId:n,appId:r,session:i,busy:a,caseActive:o}=e,[s,c]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{c(!1)},[i.open,i.deviceId,i.appId]),i.open&&!s?(0,F.jsxs)(`section`,{className:`connection connection-on`,"aria-label":`Device`,children:[(0,F.jsx)(`span`,{className:`connection-dot`,"aria-hidden":`true`}),(0,F.jsxs)(`span`,{className:`connection-summary`,title:`${i.deviceId} · ${i.appId}`,children:[(0,F.jsx)(`strong`,{children:Hn(t,i.deviceId)}),(0,F.jsx)(`span`,{className:`connection-meta`,children:i.deviceId}),(0,F.jsx)(`span`,{className:`connection-app`,children:i.appId})]}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>c(!0),disabled:!!a||o,title:o?`Finish or discard the case first`:`Connect to another device or app`,children:`Change`}),(0,F.jsx)(`button`,{type:`button`,onClick:e.onClose,disabled:!!a,children:`Disconnect`})]}):(0,F.jsxs)(`section`,{className:`connection`,"aria-label":`Device`,children:[(0,F.jsxs)(`form`,{className:`connection-form`,onSubmit:t=>{t.preventDefault(),e.onOpen()},children:[(0,F.jsxs)(`label`,{className:`connection-field`,children:[(0,F.jsx)(`span`,{className:`field-label`,children:`Device`}),(0,F.jsxs)(`span`,{className:`connection-device`,children:[(0,F.jsxs)(`select`,{"aria-label":`Device`,value:n,onChange:t=>e.onDeviceChange(t.target.value),disabled:!!a,children:[t.length===0&&(0,F.jsx)(`option`,{value:``,children:`No device found`}),t.map(e=>(0,F.jsxs)(`option`,{value:e.id,children:[e.name,` (`,e.id,`)`]},e.id))]}),(0,F.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:e.onRefreshDevices,disabled:!!a,title:`Reload the device list`,"aria-label":`Reload the device list`,children:(0,F.jsx)(mt,{})})]})]}),(0,F.jsxs)(`label`,{className:`connection-field`,children:[(0,F.jsx)(`span`,{className:`field-label`,children:`App id`}),(0,F.jsx)(`input`,{"aria-label":`App id`,value:r,onChange:t=>e.onAppIdChange(t.target.value),placeholder:`com.example.app`,spellCheck:!1})]}),(0,F.jsxs)(`span`,{className:`connection-actions`,children:[(0,F.jsx)(`button`,{type:`submit`,className:`primary`,disabled:!!a||!n||!r.trim()||o,children:`Connect`}),i.open&&(0,F.jsx)(`button`,{type:`button`,onClick:()=>c(!1),disabled:!!a,children:`Cancel`})]})]}),(0,F.jsxs)(`p`,{className:`connection-help`,children:[t.length===0?`No emulator or phone found. `:`Device not listed? `,(0,F.jsx)(`button`,{type:`button`,className:`link`,onClick:e.onOpenSetup,children:`Device setup`})]})]})}function Wn(e,t){return t.x>=e.x&&t.y>=e.y&&t.x<e.x+e.width&&t.y<e.y+e.height}function Gn(e){return!!(e.identifier?.trim()||e.text?.trim()||e.label?.trim()||e.contentDescription?.trim())}function Kn(e,t){let n=[];e.forEach((e,r)=>{!e.rect||e.rect.width<=0||e.rect.height<=0||e.visibleToUser!==!1&&e.systemBar===void 0&&e.interactionBlocked===void 0&&Wn(e.rect,t)&&n.push({node:e,order:r})});let r=n.filter(({node:e})=>e.hittable===!0||Gn(e));if(r.length===0)return;let i=r[0];for(let e of r.slice(1)){let t=e.node.rect.width*e.node.rect.height,n=i.node.rect.width*i.node.rect.height;if(t<n){i=e;continue}if(t>n)continue;let r=e.node.depth??-1,a=i.node.depth??-1;(r>a||r===a&&e.order>i.order)&&(i=e)}return i.node}function qn(e){return e.maxDistancePx>=8?`drag`:e.durationMs>=600?`hold`:`tap`}function Jn(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}var Yn=`Off while recording: Maestro cannot replay this`;function Xn({disabled:e,recording:t,landscape:n,onBack:r,onKey:i,onRotate:a,onZoom:o}){let s=(n,r,i,a,o=!1)=>{let s=o&&t;return(0,F.jsxs)(`button`,{type:`button`,className:`phone-button`,onClick:a,disabled:e||s,title:s?Yn:r,"aria-label":r,children:[i,(0,F.jsx)(`span`,{className:`phone-button-label`,children:n})]})},c=n?`portrait`:`landscape`;return(0,F.jsxs)(`div`,{className:`phone-buttons`,role:`toolbar`,"aria-label":`Phone buttons`,children:[s(`Back`,`Back`,(0,F.jsx)(xt,{}),r),s(`Home`,`Home`,(0,F.jsx)(St,{}),()=>i(`home`)),s(`Recents`,`Recent apps`,(0,F.jsx)(Ct,{}),()=>i(`appSwitch`),!0),(0,F.jsx)(`span`,{className:`phone-buttons-sep`,"aria-hidden":`true`}),s(`Vol down`,`Volume down`,(0,F.jsx)(wt,{}),()=>i(`volumeDown`)),s(`Vol up`,`Volume up`,(0,F.jsx)(Tt,{}),()=>i(`volumeUp`)),s(`Power`,`Power button: turns the screen off or on`,(0,F.jsx)(Et,{}),()=>i(`power`)),(0,F.jsx)(`span`,{className:`phone-buttons-sep`,"aria-hidden":`true`}),s(`Rotate`,`Rotate to ${c}`,(0,F.jsx)(Dt,{}),()=>a(c)),s(`Enter`,`Enter key on the keyboard`,(0,F.jsx)(Ot,{}),()=>i(`enter`)),(0,F.jsx)(`span`,{className:`phone-buttons-sep`,"aria-hidden":`true`}),s(`Zoom in`,`Zoom in: pinch out around the middle of the screen`,(0,F.jsx)(kt,{}),()=>o(`in`),!0),s(`Zoom out`,`Zoom out: pinch in around the middle of the screen`,(0,F.jsx)(At,{}),()=>o(`out`),!0)]})}function Zn({at:e,canCheck:t,onChoose:n,onClose:r}){let i=(0,l.useRef)(null),a=(0,l.useRef)(r);a.current=r,(0,l.useEffect)(()=>{let e=e=>{e.key===`Escape`&&a.current()},t=e=>{i.current?.contains(e.target)||a.current()};return document.addEventListener(`keydown`,e),document.addEventListener(`pointerdown`,t),i.current?.querySelector(`button`)?.focus(),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`pointerdown`,t)}},[]);let o=(e,t)=>(0,F.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>n(e),children:t});return(0,F.jsxs)(`div`,{ref:i,className:`screen-menu`,role:`menu`,style:{left:e.x,top:e.y},onContextMenu:e=>e.preventDefault(),children:[o(`tap`,`Tap`),o(`doubleTap`,`Double tap`),o(`longPress`,`Long press`),t&&o(`check`,`Check that it is visible`)]})}function Qn(e,t){let n=e.currentTarget.getBoundingClientRect();return{x:Math.round((e.clientX-n.left)/n.width*t.width),y:Math.round((e.clientY-n.top)/n.height*t.height)}}function $n(e,t){return{left:`${e.x/t.width*100}%`,top:`${e.y/t.height*100}%`,width:`${e.width/t.width*100}%`,height:`${e.height/t.height*100}%`}}var er={"com.android.chrome":`Chrome`,"com.sec.android.app.sbrowser":`Samsung Internet`,"org.mozilla.firefox":`Firefox`,"com.microsoft.emmx":`Edge`,"com.opera.browser":`Opera`};function tr({elsewhere:e,appId:t}){return(0,F.jsx)(`p`,{className:`phone-banner`,role:`status`,children:e.home?(0,F.jsxs)(F.Fragment,{children:[`The phone is on its home screen, not in `,t,`. Relaunch app brings it back.`]}):(0,F.jsxs)(F.Fragment,{children:[er[e.app]??e.app,` is in front, which is fine: an app that hands over to a website or another app is part of the case, so carry on here. The app id is only where a case starts.`]})})}function nr({screen:e}){let t=e.nodes.filter(e=>e.rect&&!e.systemBar&&(e.label??e.contentDescription));return(0,F.jsx)(F.Fragment,{children:t.map((t,n)=>(0,F.jsx)(`div`,{className:`secure-element`,style:$n(t.rect,e),children:(0,F.jsx)(`span`,{children:t.label??t.contentDescription})},t.ref??n))})}function rr(e){let t=e.label??e.contentDescription;return[t?`"${t}"`:void 0,e.identifier,e.role].filter(Boolean).join(` `)||`unnamed element`}function ir(e){let{recording:t,sessionOpen:n,busy:r,picking:i,suiteRunning:a,phone:o}=e;if(t)return(0,F.jsxs)(`div`,{className:`stage-bar stage-bar-live`,children:[(0,F.jsxs)(`span`,{className:`stage-state`,children:[(0,F.jsx)(`span`,{className:`rec-dot rec-dot-lg`,"aria-hidden":`true`}),(0,F.jsx)(`span`,{className:`stage-state-word`,children:`Recording`}),(0,F.jsx)(`span`,{className:`stage-state-name`,children:t.name}),(0,F.jsx)(`span`,{className:`stage-state-meta`,children:It(t.steps,`step`)})]}),i?(0,F.jsx)(`span`,{className:`hint`,children:`Choose the end checks on the right, then Save case.`}):(0,F.jsxs)(`span`,{className:`stage-actions`,children:[(0,F.jsx)(`button`,{type:`button`,className:o.active?`toggle-on`:``,"aria-pressed":o.active,onClick:e.onTogglePhone,disabled:r,title:o.active?`Go back to using the screen here`:`Do the steps on the phone itself, with your own fingers`,children:o.active?`Stop using the phone`:`Use the phone`}),(0,F.jsx)(`button`,{type:`button`,className:`primary`,onClick:e.onFinish,disabled:r,children:`Finish recording`})]})]});let s=a?`Run all is using the device`:n?`Not recording · ${e.appId??``}`:`Connect a device to record`;return(0,F.jsxs)(`div`,{className:`stage-bar`,children:[(0,F.jsx)(`span`,{className:`stage-state stage-state-idle`,children:s}),(0,F.jsxs)(`button`,{type:`button`,className:`primary record-button`,onClick:e.onRecord,disabled:!n||r||a,title:n?`Record a new case from this screen`:`Connect a device first`,children:[(0,F.jsx)(`span`,{className:`record-dot`,"aria-hidden":`true`}),`Start recording`]})]})}function ar({when:e}){return(0,F.jsxs)(`div`,{className:`phone-banner phone-banner-prompt`,role:`status`,children:[(0,F.jsx)(`strong`,{children:`Look at your phone.`}),` It may ask to allow an install from this computer: tap `,(0,F.jsx)(`strong`,{children:`Install`}),` or `,(0,F.jsx)(`strong`,{children:`Allow`}),`. The prompt closes by itself within seconds, so if you miss it, `,e===`connect`?`press Connect again`:`press Run again`,`.`,(0,F.jsxs)(`details`,{children:[(0,F.jsx)(`summary`,{children:`What is being installed?`}),e===`connect`?` Ariadne's helper, which lets it read the phone's screen. It has no icon and does nothing unless Ariadne is connected.`:` Maestro's driver, which runs the test on the phone. It has no icon and does nothing unless a run is going.`,` `,`It only works while the phone is plugged in with USB debugging on. Every phone needs it, and only some ask first.`]})]})}function or({sessionOpen:e,devicesFound:t,onOpenSetup:n}){return e?(0,F.jsx)(`div`,{className:`mirror-empty`,children:`Waiting for the first screen.`}):t?(0,F.jsxs)(`div`,{className:`mirror-empty`,children:[(0,F.jsx)(`strong`,{children:`Connect to see the screen here.`}),(0,F.jsx)(`span`,{children:`Pick the device and the app id on the right, then press Connect.`}),(0,F.jsx)(`button`,{type:`button`,className:`link link-on-dark`,onClick:n,children:`Device not listed? Set up a device`})]}):(0,F.jsxs)(`div`,{className:`mirror-empty`,children:[(0,F.jsx)(`strong`,{children:`No Android device found.`}),(0,F.jsx)(`span`,{children:`Start an emulator or plug in a phone with USB debugging on.`}),(0,F.jsx)(`button`,{type:`button`,className:`thread-button`,onClick:n,children:`Set up a device`})]})}function sr(e){let{screen:t,busy:n,highlight:r,sessionOpen:i,caseActive:a,expectMode:o,choosing:s}=e,c=e.phone.active,u=!i||n||c,[d,f]=(0,l.useState)(),[p,m]=(0,l.useState)(``),[h,g]=(0,l.useState)(null),[_,v]=(0,l.useState)(null),y=Number.isInteger(Number(_))&&Number(_)>=1&&Number(_)<=120,b=(0,l.useRef)(null),[x,S]=(0,l.useState)(null),[C,ee]=(0,l.useState)(null),w=e=>{n||!t||e.button!==0||c&&!o||(e.currentTarget.setPointerCapture(e.pointerId),b.current={pointerId:e.pointerId,client:{x:e.clientX,y:e.clientY},point:Qn(e,t),startedAt:e.timeStamp,maxDistance:0})},T=e=>{let n=b.current;n&&t&&e.pointerId===n.pointerId&&(n.maxDistance=Math.max(n.maxDistance,Jn(n.client,{x:e.clientX,y:e.clientY})),!o&&!s&&n.maxDistance>=8&&S({from:n.point,to:Qn(e,t)}))},E=r=>{let i=b.current;if(b.current=null,S(null),!i||!t||n||r.pointerId!==i.pointerId)return;let a=r.timeStamp-i.startedAt,c=qn({durationMs:a,maxDistancePx:i.maxDistance});s?c===`tap`&&e.onChoose(i.point):o?c===`tap`&&e.onExpect(i.point):c===`tap`?e.onTap(i.point):c===`hold`?e.onLongPress(i.point):e.onSwipe(i.point,Qn(r,t),a)},D=()=>{b.current=null,S(null)},te=t=>{let n=C?.point;ee(null),n&&(t===`tap`?e.onTap(n):t===`doubleTap`?e.onDoubleTap(n):t===`longPress`?e.onLongPress(n):e.onExpect(n))},ne=()=>{p&&(e.onType(p),m(``))},re=s?`Click the element for this step${d&&!n?`: ${rr(d)}`:``}`:o?`Check mode: click what must be visible${d&&!n?`: ${rr(d)}`:``}`:d&&!n?rr(d):` `;return(0,F.jsxs)(`section`,{className:`mirror`,children:[(0,F.jsx)(ir,{...e}),e.phonePrompt&&(0,F.jsx)(ar,{when:e.phonePrompt}),e.screen?.hidden&&(0,F.jsx)(`p`,{className:`phone-banner phone-banner-prompt`,role:`status`,children:`The phone's screen is off or locked, so there is nothing to record. Wake it and unlock it, and the screen comes back here by itself.`}),t?.secure&&(0,F.jsx)(`p`,{className:`phone-banner phone-banner-prompt`,role:`status`,children:`This screen blocks screenshots, as banks and ID apps often do, so its picture stays black. Its text and buttons are drawn here instead: click them as usual. The step's screenshot will be black.`}),t?.elsewhere&&(0,F.jsx)(tr,{elsewhere:t.elsewhere,appId:e.appId}),c&&(0,F.jsx)(`p`,{className:`phone-banner ${e.phone.paused?`phone-banner-paused`:``}`,role:`status`,children:e.phone.paused?`Paused: you left the app. Open it again to carry on recording.`:`Use the phone now. Steps appear on the right as you go, and this screen catches up after each one.`}),(0,F.jsx)(`div`,{className:`stage ${e.recording?`stage-live`:``}`,children:(0,F.jsx)(`div`,{className:`mirror-frame`,children:t?(0,F.jsxs)(`div`,{className:`screen ${n?`screen-busy`:``} ${o?`screen-expect`:``} ${s?`screen-choose`:``} ${t.width>t.height?`screen-landscape`:``}`,style:{aspectRatio:`${t.width} / ${t.height}`,"--screen-ratio":t.width/t.height},onMouseMove:e=>f(Kn(t.nodes,Qn(e,t))),onMouseLeave:()=>f(void 0),onPointerDown:w,onPointerMove:T,onPointerUp:E,onPointerCancel:D,onContextMenu:e=>{e.preventDefault(),D(),n||c||s||ee({at:{x:e.clientX,y:e.clientY},point:Qn(e,t)})},children:[(0,F.jsx)(`img`,{src:t.imageUrl,alt:`Device screen`,draggable:!1}),t.secure&&(0,F.jsx)(nr,{screen:t}),d?.rect&&!n&&(0,F.jsx)(`div`,{className:`outline ${o?`outline-expect`:`outline-hover`}`,style:$n(d.rect,t)}),r&&(0,F.jsx)(`div`,{className:`outline outline-hit`,style:$n(r,t)}),x&&(0,F.jsxs)(`svg`,{className:`drag-line`,viewBox:`0 0 ${t.width} ${t.height}`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:[(0,F.jsx)(`line`,{x1:x.from.x,y1:x.from.y,x2:x.to.x,y2:x.to.y}),(0,F.jsx)(`circle`,{cx:x.from.x,cy:x.from.y,r:`1`})]})]}):(0,F.jsx)(or,{sessionOpen:i,devicesFound:e.devicesFound,onOpenSetup:e.onOpenSetup})})}),(0,F.jsx)(`div`,{className:`mirror-caption ${o?`mirror-caption-expect`:``} ${s?`mirror-caption-choose`:``}`,children:re}),(0,F.jsx)(Xn,{disabled:u,recording:a,landscape:t!==null&&t.width>t.height,onBack:e.onBack,onKey:e.onKey,onRotate:e.onRotate,onZoom:e.onZoom}),C&&t&&(0,F.jsx)(Zn,{at:C.at,canCheck:a,onChoose:te,onClose:()=>ee(null)}),(0,F.jsxs)(`div`,{className:`toolbar`,children:[(0,F.jsxs)(`form`,{className:`mirror-controls`,onSubmit:e=>{e.preventDefault(),ne()},children:[(0,F.jsx)(`input`,{value:p,onChange:e=>m(e.target.value),placeholder:`Text to type`,title:`Typed into the field that has focus on the device`,disabled:u}),(0,F.jsx)(`button`,{type:`submit`,disabled:u||!p,children:`Type`}),(0,F.jsx)(`span`,{className:`toolbar-sep`,"aria-hidden":`true`}),(0,F.jsx)(`button`,{type:`button`,className:o?`toggle-on`:``,"aria-pressed":o,onClick:e.onToggleExpect,disabled:!i||!a||n,title:a?`Record that an element is visible, without tapping it`:`Start a case first`,children:`Check`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>e.onScroll(`down`),disabled:u,children:`Scroll down`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>e.onScroll(`up`),disabled:u,children:`Scroll up`})]}),(0,F.jsxs)(`div`,{className:`mirror-controls`,children:[(0,F.jsx)(`button`,{type:`button`,onClick:e.onRefresh,disabled:!i||n,title:`Look at the phone again now. The screen here also follows it by itself.`,children:`Refresh`}),(0,F.jsx)(`button`,{type:`button`,onClick:e.onRelaunch,disabled:u,title:`Close the app and start it again`,children:`Relaunch app`}),(0,F.jsx)(`button`,{type:`button`,onClick:e.onHideKeyboard,disabled:u,children:`Hide keyboard`}),h===null?(0,F.jsx)(`button`,{type:`button`,onClick:()=>{v(null),g(``)},disabled:u,title:`Open a web link or an app deep link`,children:`Open link`}):(0,F.jsxs)(`form`,{className:`inline-form`,onSubmit:t=>{t.preventDefault(),h.trim()&&(e.onOpenLink(h.trim()),g(null))},children:[(0,F.jsx)(`input`,{autoFocus:!0,value:h,onChange:e=>g(e.target.value),placeholder:`https://... or myapp://...`,disabled:!i||n}),(0,F.jsx)(`button`,{type:`submit`,disabled:!i||n||!h.trim(),children:`Go`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>g(null),children:`Cancel`})]}),_===null||!a?(0,F.jsx)(`button`,{type:`button`,onClick:()=>{g(null),v(`20`)},disabled:!i||!a||n,title:a?`Make a run pause here, for a page that is still loading. Nothing happens on the phone now`:`Start a case first`,children:`Wait`}):(0,F.jsxs)(`form`,{className:`inline-form wait-form`,onSubmit:t=>{t.preventDefault(),y&&(e.onWait(Number(_)),v(null))},children:[(0,F.jsx)(`input`,{autoFocus:!0,type:`number`,min:1,max:120,value:_,onChange:e=>v(e.target.value),"aria-label":`Seconds to wait`,disabled:!i||n}),(0,F.jsx)(`span`,{children:`seconds`}),(0,F.jsx)(`button`,{type:`submit`,disabled:!i||n||!y,children:`Add`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>v(null),children:`Cancel`})]})]})]})]})}var cr=4e3,lr=1e3,ur=`https://developer.android.com/studio/terms`;function dr({level:e}){return(0,F.jsx)(`span`,{className:`check-mark check-${e}`,children:e===`ok`?(0,F.jsx)(vt,{size:14}):e===`missing`?(0,F.jsx)(yt,{size:14}):(0,F.jsx)(bt,{size:14})})}function fr({level:e,title:t,children:n}){return(0,F.jsxs)(`li`,{className:`check-row`,children:[(0,F.jsx)(dr,{level:e}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{className:`check-title`,children:t}),(0,F.jsx)(`div`,{className:`check-detail`,children:n})]})]})}function pr(e,t){switch(e.state){case`device`:return{level:`ok`,text:`ready`};case`unauthorized`:return{level:`warn`,text:`waiting: unlock the phone and press Allow on the "Allow USB debugging?" prompt`};case`offline`:return{level:`warn`,text:e.emulator?`offline: it may still be starting; if it stays offline, close the emulator and start it again`:`offline: unplug the cable and plug it back in`};case`no permissions`:return{level:`warn`,text:t===`linux`?`this computer may not use the phone yet: see step 5 of "Phone over USB" below`:`this computer may not use the phone yet: unplug it and plug it back in`};default:return{level:`warn`,text:e.state}}}function mr({children:e}){return(0,F.jsx)(`code`,{className:`command`,children:e})}function hr({device:e,preparing:t,onPrepare:n}){if(e.state!==`device`||!e.xiaomi)return null;if(e.xiaomi.driverOpensApps)return(0,F.jsx)(`div`,{className:`device-note`,children:`Prepared for Run.`});let r=t.includes(e.serial);return(0,F.jsxs)(`div`,{className:`device-note`,children:[`Xiaomi phones stop Maestro from opening apps, so Run fails until you prepare this one. This installs Maestro's driver, which stays on the phone, and lets it open apps. Tap Install if the phone asks.`,` `,(0,F.jsx)(`button`,{type:`button`,onClick:()=>n(e.serial),disabled:r,children:r?`Preparing...`:`Prepare this phone`})]})}function gr(e){return Math.round(e/1e6)}function _r(e){switch(e.state){case`waiting`:return`Waiting`;case`downloading`:return`Downloading, ${gr(e.received)} of ${gr(e.total)} MB`;case`unpacking`:return`Unpacking`;case`checking`:return`Checking that it starts`;case`done`:return`Ready`;case`failed`:return`Did not finish`}}function vr({tool:e}){return(0,F.jsxs)(`li`,{className:`check-row`,children:[e.state===`done`?(0,F.jsx)(dr,{level:`ok`}):e.state===`failed`?(0,F.jsx)(dr,{level:`missing`}):(0,F.jsx)(`span`,{className:`check-mark tool-busy`}),(0,F.jsxs)(`div`,{className:`tool-text`,children:[(0,F.jsx)(`div`,{className:`check-title`,children:e.name}),(0,F.jsx)(`div`,{className:`check-detail`,children:_r(e)}),e.state===`downloading`&&(0,F.jsx)(`progress`,{className:`tool-progress`,max:e.total,value:e.received,"aria-label":`${e.name} download`}),e.error&&(0,F.jsx)(`p`,{className:`run-error`,children:e.error})]})]})}function yr({status:e,missing:t,lead:n,onInstall:r}){if(!e?.available)return null;let i=e.tools.some(e=>e.state===`failed`),a=e.offered.filter(e=>t.includes(e.id));if(!e.running&&!i&&a.length===0)return null;let o=t.includes(`adb`),s=i?`Try again`:o?`Agree and set up`:`Get them`,c=gr(a.reduce((e,t)=>e+t.bytes,0));return(0,F.jsxs)(`div`,{className:`tools-panel`,children:[n&&!e.running&&!i&&(0,F.jsx)(`p`,{children:n}),(e.running||i)&&(0,F.jsx)(`ul`,{className:`checks`,children:e.tools.map(e=>(0,F.jsx)(vr,{tool:e},e.id))}),e.running&&(0,F.jsx)(`p`,{className:`hint`,children:`You can carry on with the steps while this downloads.`}),!e.running&&a.length>0&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`p`,{className:`tools-offer`,children:[(0,F.jsx)(`button`,{type:`button`,className:`primary`,onClick:r,children:s}),(0,F.jsxs)(`span`,{className:`hint`,children:[`About `,c,` MB to download. No admin rights needed.`]})]}),o&&(0,F.jsxs)(`p`,{className:`hint`,children:[`Pressing `,s,` accepts Google's`,` `,(0,F.jsx)(`a`,{href:ur,target:`_blank`,rel:`noreferrer`,children:`Android SDK terms`}),`. Ariadne gets each tool from the people who make it and checks the file before using it.`]})]})]})}var br=[{id:`tools`,title:`Set up this computer`},{id:`phone`,title:`Plug in your phone`},{id:`allow`,title:`Allow this computer`},{id:`ready`,title:`Connect`}];function xr(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`ol`,{className:`guide walk-guide`,children:[(0,F.jsxs)(`li`,{children:[`On the phone, open Settings, then About phone, and tap `,(0,F.jsx)(`strong`,{children:`Build number`}),` seven times. On Samsung it is under Software information. On Xiaomi, Redmi and POCO, tap `,(0,F.jsx)(`strong`,{children:`OS version`}),`.`]}),(0,F.jsxs)(`li`,{children:[`Find `,(0,F.jsx)(`strong`,{children:`Developer options`}),` in Settings (search for it if you need to), and turn on `,(0,F.jsx)(`strong`,{children:`USB debugging`}),` and `,(0,F.jsx)(`strong`,{children:`Stay awake`}),`. On Xiaomi, Redmi and POCO, also turn on `,(0,F.jsx)(`strong`,{children:`Install via USB`}),` and `,(0,F.jsx)(`strong`,{children:`USB debugging (Security settings)`}),`.`]}),(0,F.jsxs)(`li`,{children:[`Plug the phone into this computer with a cable that carries data. If the phone asks what the connection is for, choose `,(0,F.jsx)(`strong`,{children:`File transfer`}),`.`]})]}),(0,F.jsx)(`p`,{className:`hint`,children:`This moves on by itself when your phone shows up. Nothing yet? Try another cable, then see Phone over USB under All checks and manual steps.`})]})}function Sr({device:e,os:t,stuck:n}){return e.state===`unauthorized`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`p`,{children:[`Unlock the phone. It asks `,(0,F.jsx)(`strong`,{children:`"Allow USB debugging?"`}),`. Tick `,(0,F.jsx)(`strong`,{children:`Always allow from this computer`}),` and press `,(0,F.jsx)(`strong`,{children:`Allow`}),`.`]}),n?(0,F.jsxs)(`div`,{className:`device-note`,children:[`No prompt, or nothing happened? In Developer options press `,(0,F.jsx)(`strong`,{children:`Revoke USB debugging authorizations`}),`, turn USB debugging off and on again, then unplug the phone and plug it back in. Keep the phone unlocked: the prompt comes back within a few seconds.`]}):(0,F.jsx)(`p`,{className:`hint`,children:`This moves on by itself when you press Allow.`})]}):(0,F.jsx)(`p`,{children:pr(e,t).text})}function Cr({device:e,maestroFound:t,preparing:n,onPrepare:r}){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`p`,{children:[(0,F.jsx)(`strong`,{children:e.avd??e.model??e.serial}),` is ready. Press Done, pick it under Device, type the app id and press Connect.`]}),e.xiaomi&&(0,F.jsx)(`p`,{className:`hint`,children:`Watch the phone when you press Connect: it can ask before installing Ariadne's helper. Tap Install.`}),t&&(0,F.jsx)(hr,{device:e,preparing:n,onPrepare:r})]})}function wr({info:e,install:t,stuck:n,onInstall:r,preparing:i,onPrepare:a}){let{step:o,device:s}=p(e),c=br.findIndex(e=>e.id===o),l=f(e),u=o=>o===`tools`?t&&!t.available?(0,F.jsx)(`p`,{children:`Ariadne needs the Android tools to talk to your phone. Follow the steps under All checks and manual steps.`}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`p`,{children:`Ariadne needs three free tools: the Android tools, to talk to your phone, and Java and Maestro, to run saved cases. It fetches them for you, into your own folders. You do not need Android Studio.`}),(0,F.jsx)(yr,{status:t,missing:l,onInstall:r})]}):o===`phone`?(0,F.jsx)(xr,{}):o===`allow`?s&&(0,F.jsx)(Sr,{device:s,os:e.os,stuck:n}):s&&(0,F.jsx)(Cr,{device:s,maestroFound:e.maestro.found,preparing:i,onPrepare:a});return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`ol`,{className:`walk`,"aria-label":`Setup steps`,children:br.map((e,t)=>(0,F.jsxs)(`li`,{className:`walk-step ${t<c?`walk-done`:t===c?`walk-now`:`walk-later`}`,"aria-current":t===c?`step`:void 0,children:[(0,F.jsx)(`span`,{className:`walk-mark`,children:t<c?(0,F.jsx)(vt,{size:14}):t+1}),(0,F.jsxs)(`div`,{className:`walk-body`,children:[(0,F.jsx)(`div`,{className:`walk-title`,children:e.title}),t===c&&u(e.id)]})]},e.id))}),o!==`tools`&&(0,F.jsx)(yr,{status:t,missing:l,lead:`Recording is ready. To run saved cases, Ariadne also needs these. It fetches them for you.`,onInstall:r})]})}function Tr({info:e,canInstall:t,starting:n,onStart:r,preparing:i,onPrepare:a}){let o=d(e.java),s=new Set(e.devices.map(e=>e.avd).filter(Boolean)),c=e.devices.filter(e=>e.state===`device`);return(0,F.jsxs)(`ul`,{className:`checks`,children:[(0,F.jsx)(fr,{level:e.adb.found?`ok`:`missing`,title:`Android tools (adb)`,children:e.adb.found?(0,F.jsx)(`span`,{className:`path`,children:e.adb.path}):t?(0,F.jsx)(F.Fragment,{children:`Not found. The steps above fetch it for you. If the Android SDK is somewhere unusual, set ANDROID_HOME to it instead.`}):(0,F.jsx)(F.Fragment,{children:`Not found. Install Android Studio (step 1 of "Emulator" below), then restart Ariadne. If the Android SDK is somewhere unusual, set ANDROID_HOME to it.`})}),(0,F.jsx)(fr,{level:c.length>0?`ok`:`missing`,title:`Devices`,children:e.devices.length===0?(0,F.jsx)(F.Fragment,{children:`No phone or emulator is connected. Start an emulator, or plug in a phone with USB debugging on.`}):(0,F.jsx)(`ul`,{className:`device-states`,children:e.devices.map(t=>{let n=pr(t,e.os);return(0,F.jsxs)(`li`,{className:`device-${n.level}`,children:[(0,F.jsx)(`strong`,{children:t.avd??t.model??t.serial}),` `,(0,F.jsx)(`span`,{className:`path`,children:t.serial}),`: `,n.text,(0,F.jsx)(hr,{device:t,preparing:i,onPrepare:a})]},t.serial)})})}),e.emulator.found&&(0,F.jsx)(fr,{level:e.avds.length>0?`ok`:`warn`,title:`Emulators on this computer`,children:e.avds.length===0?(0,F.jsx)(F.Fragment,{children:`None yet. Create one in Android Studio (step 2 of "Emulator" below).`}):(0,F.jsx)(`ul`,{className:`avds`,children:e.avds.map(e=>(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`span`,{children:e}),s.has(e)?(0,F.jsx)(`span`,{className:`hint`,children:`running`}):n.includes(e)?(0,F.jsx)(`span`,{className:`hint`,children:`starting, this can take a minute`}):(0,F.jsx)(`button`,{type:`button`,onClick:()=>r(e),children:`Start`})]},e))})}),(0,F.jsx)(fr,{level:e.maestro.found?`ok`:`missing`,title:`Maestro, to run saved cases`,children:e.maestro.found?(0,F.jsx)(`span`,{className:`path`,children:e.maestro.path}):t?(0,F.jsx)(F.Fragment,{children:`Not found. Recording works without it; Run needs it. The steps above fetch it for you.`}):e.os===`windows`?(0,F.jsx)(F.Fragment,{children:`Not found. Recording works without it; Run needs it. Follow the Windows steps in Maestro's installation guide at maestro.dev.`}):(0,F.jsxs)(F.Fragment,{children:[`Not found. Recording works without it; Run needs it. Install it with `,(0,F.jsx)(mr,{children:`curl -fsSL "https://get.maestro.mobile.dev" | bash`})]})}),(0,F.jsx)(fr,{level:o?`ok`:`missing`,title:`Java 17 or newer, for Maestro`,children:o?(0,F.jsxs)(F.Fragment,{children:[`Java `,e.java.version??``]}):t?(0,F.jsxs)(F.Fragment,{children:[e.java.found?`Java ${e.java.version} is too old.`:`Not found.`,` The steps above fetch a new one for you, for Ariadne only.`]}):e.java.found?(0,F.jsxs)(F.Fragment,{children:[`Java `,e.java.version,` is too old. Install Java `,17,` or newer, for example Temurin `,17,` from adoptium.net.`]}):(0,F.jsxs)(F.Fragment,{children:[`Not found. Install Java `,17,` or newer, for example Temurin `,17,` from adoptium.net.`]})})]})}function Er({info:e}){return(0,F.jsxs)(`ol`,{className:`guide`,children:[(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Install Android Studio`}),` from`,` `,(0,F.jsx)(`a`,{href:`https://developer.android.com/studio`,target:`_blank`,rel:`noreferrer`,children:`developer.android.com/studio`}),`. It brings the Android tools and the emulator.`,e?.adb.found&&(0,F.jsx)(`span`,{className:`guide-done`,children:` Done on this computer.`})]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Create a virtual phone.`}),` In Android Studio open the Device Manager (on the welcome screen: More Actions, then Virtual Device Manager). Press Create device, pick a phone such as Pixel 8, pick a recent system image (download it when asked), then Finish.`,e&&e.avds.length>0&&(0,F.jsxs)(`span`,{className:`guide-done`,children:[` Done: `,e.avds.join(`, `),`.`]})]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Start it`}),` with Start in "Emulators on this computer" above, or with the play button in the Device Manager. The first start takes a minute or two.`]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Install the app you want to test.`}),` Drag its `,(0,F.jsx)(`code`,{children:`.apk`}),` file onto the emulator window, or run`,` `,(0,F.jsx)(mr,{children:`adb install path/to/app.apk`}),`. A developer can give you the `,(0,F.jsx)(`code`,{children:`.apk`}),`.`]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Connect.`}),` Close this guide, pick the emulator under Device, above the Record tab (it is called `,(0,F.jsx)(`code`,{children:`emulator-5554`}),` or similar), type the app id and press Connect.`]})]})}function Dr({os:e}){return(0,F.jsxs)(`ol`,{className:`guide`,children:[(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Turn on developer options.`}),` On the phone open Settings, then About phone, and tap Build number seven times until it says you are a developer. On Samsung phones Build number is under About phone, then Software information.`]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Turn on USB debugging`}),` in Settings, System, Developer options (on Samsung, Developer options is at the bottom of Settings). Turn on Stay awake there too, so the screen does not lock in the middle of a recording.`]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Plug the phone in`}),` with a cable that carries data; some cables only charge. If the phone asks what the connection is for, choose File transfer.`]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Allow this computer.`}),` The phone asks "Allow USB debugging?". Tick "Always allow from this computer" and press Allow. Until you do, Devices above says the phone is waiting. No prompt? Unplug and plug in again, or press "Revoke USB debugging authorizations" in Developer options and plug in again.`]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:e===`windows`?`Only if the phone does not show up: install its USB driver.`:e===`mac`?`Nothing more on a Mac.`:`Let your user use the phone (Linux).`}),` `,e===`windows`?(0,F.jsx)(F.Fragment,{children:`Windows brings a driver that works for some phones. If yours does not show up, install the maker's: the Google USB Driver for Pixel phones, the Samsung USB Driver for Samsung phones. Installing a driver needs admin rights, so on a company computer ask your IT team.`}):e===`mac`?(0,F.jsx)(F.Fragment,{children:`macOS needs no driver.`}):(0,F.jsxs)(F.Fragment,{children:[`If Devices above says "may not use the phone yet", install your distribution's Android udev rules (`,(0,F.jsx)(`code`,{children:`android-udev`}),` on Arch,`,` `,(0,F.jsx)(`code`,{children:`android-sdk-platform-tools-common`}),` on Debian and Ubuntu), add yourself to the `,(0,F.jsx)(`code`,{children:`adbusers`}),` or `,(0,F.jsx)(`code`,{children:`plugdev`}),` `,`group, then log out and back in. Windows needs the phone maker's USB driver; macOS needs nothing.`]})]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Be ready to look at the phone.`}),` The first time, Ariadne puts two small test helpers on it: one on Connect, which reads the screen, and Maestro's driver on Run. Every phone needs them. Some phones ask first, and that prompt closes by itself within seconds, so tap Install or Allow straight away.`]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`On a Xiaomi, Redmi or POCO phone`}),`, also turn on Install via USB and USB debugging (Security settings) in Developer options. The phone then asks before each install from this computer: tap Install. If Connect fails, press it again and watch the phone.`]}),(0,F.jsxs)(`li`,{children:[(0,F.jsx)(`strong`,{children:`Install the app and connect.`}),` Install the app as usual (Play Store, a test link, or `,(0,F.jsx)(mr,{children:`adb install path/to/app.apk`}),`), close this guide, pick the phone under Device, above the Record tab, type the app id and press Connect. Keep the phone unlocked while you record.`]})]})}function Or({open:e,onClose:t,onDevicesChanged:n}){let r=(0,l.useRef)(null),[i,a]=(0,l.useState)(null),[o,s]=(0,l.useState)(null),[c,u]=(0,l.useState)(`usb`),[d,f]=(0,l.useState)([]),[m,g]=(0,l.useState)([]),[_,v]=(0,l.useState)(!1),[b,x]=(0,l.useState)(null),[S,C]=(0,l.useState)(!1),[ee,w]=(0,l.useState)(0),T=(0,l.useRef)(void 0),E=(0,l.useRef)(void 0),D=(0,l.useRef)(!1),te=(0,l.useRef)(n);te.current=n,(0,l.useEffect)(()=>{let t=r.current;t&&(e&&!t.open&&t.showModal(),!e&&t.open&&t.close())},[e]),(0,l.useEffect)(()=>{if(!e)return;let t=!0,n=async()=>{try{let e=await y.setup();if(!t)return;a(e),s(null);let n=e.devices.filter(e=>e.state===`device`).map(e=>e.serial).sort().join(`,`);T.current!==void 0&&T.current!==n&&te.current(),T.current=n;let r=new Set(e.devices.map(e=>e.avd));f(e=>e.filter(e=>!r.has(e)));let{step:i,device:o}=p(e);i!==`allow`||o?.state!==`unauthorized`?E.current=void 0:E.current?.serial!==o.serial&&(E.current={serial:o.serial,since:Date.now()}),C(E.current!==void 0&&Date.now()-E.current.since>=3e4)}catch(e){t&&s(e instanceof h?e.message:String(e))}};n();let r=setInterval(()=>void n(),cr);return()=>{t=!1,clearInterval(r)}},[e,ee]),(0,l.useEffect)(()=>{e&&y.installStatus().then(x,()=>void 0)},[e]);let ne=b?.running??!1;(0,l.useEffect)(()=>{if(!e||!ne)return;let t=!0,n=setInterval(()=>{y.installStatus().then(e=>{t&&x(e)},()=>void 0)},lr);return()=>{t=!1,clearInterval(n)}},[e,ne]),(0,l.useEffect)(()=>{D.current&&!ne&&w(e=>e+1),D.current=ne},[ne]);let re=async()=>{try{x(await y.startInstall())}catch(e){s(e instanceof h?e.message:String(e))}},ie=async e=>{g(t=>[...t,e]);try{let{ready:t}=await y.preparePhone(e);t||s(`The phone did not let Maestro open apps. In its Settings, open Apps, then Maestro Driver, and allow it to open new windows in the background.`)}catch(e){s(e instanceof h?e.message:String(e))}finally{g(t=>t.filter(t=>t!==e))}},ae=async e=>{f(t=>[...t,e]);try{await y.startEmulator(e)}catch(t){f(t=>t.filter(t=>t!==e)),s(t instanceof h?t.message:String(t))}};return(0,F.jsxs)(`dialog`,{ref:r,className:`setup-dialog`,onClose:t,"aria-labelledby":`setup-title`,children:[(0,F.jsxs)(`div`,{className:`dialog-head`,children:[(0,F.jsx)(`h2`,{id:`setup-title`,children:`Set up a device`}),(0,F.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:t,"aria-label":`Close`,children:(0,F.jsx)(yt,{})})]}),(0,F.jsxs)(`div`,{className:`dialog-body`,children:[(0,F.jsx)(`p`,{className:`lede`,children:`Ariadne records on a real Android phone plugged in with USB. Follow the steps here: each one moves on by itself. For a virtual phone on this computer, see Emulator under All checks and manual steps.`}),o&&(0,F.jsx)(`p`,{className:`run-error`,children:o}),i?(0,F.jsx)(wr,{info:i,install:b,stuck:S,onInstall:()=>void re(),preparing:m,onPrepare:e=>void ie(e)}):!o&&(0,F.jsx)(`p`,{className:`hint`,children:`Checking...`}),(0,F.jsxs)(`details`,{className:`setup-more`,open:!(!i||i.adb.found||!b||b.available),children:[(0,F.jsx)(`summary`,{children:`All checks and manual steps`}),(0,F.jsx)(`h3`,{children:`This computer`}),i&&(0,F.jsx)(Tr,{info:i,canInstall:b?.available??!1,starting:d,onStart:e=>void ae(e),preparing:m,onPrepare:e=>void ie(e)}),(0,F.jsxs)(`div`,{className:`guide-tabs`,role:`tablist`,"aria-label":`Kind of device`,children:[(0,F.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":c===`usb`,className:c===`usb`?`tab-on`:``,onClick:()=>u(`usb`),children:`Phone over USB`}),(0,F.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":c===`emulator`,className:c===`emulator`?`tab-on`:``,onClick:()=>u(`emulator`),children:`Emulator`})]}),c===`emulator`?(0,F.jsx)(Er,{info:i}):(0,F.jsx)(Dr,{os:i?.os})]}),(0,F.jsx)(`h3`,{children:`Something not working?`}),(0,F.jsx)(`p`,{className:`guide-note`,children:`Export diagnostics saves one file to send to whoever is helping you: versions, facts about the phone, the log, your case steps and recent runs. It never holds your saved values, passwords or where keys were pressed, and typed text is reduced to its length. Screenshots can show anything on the phone, so they stay out unless you tick the box.`}),(0,F.jsxs)(`p`,{className:`diagnostics-row`,children:[(0,F.jsxs)(`label`,{children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:_,onChange:e=>v(e.target.checked)}),` Include screenshots`]}),(0,F.jsx)(`a`,{className:`thread-button`,href:y.diagnosticsUrl(_),download:!0,children:`Export diagnostics`})]}),(0,F.jsx)(`h3`,{children:`Which app id?`}),(0,F.jsxs)(`p`,{className:`guide-note`,children:[`The app id is the app's package name, such as `,(0,F.jsx)(`code`,{children:`com.example.claims`}),`. A developer knows it (it is the `,(0,F.jsx)(`code`,{children:`applicationId`}),` in the app's build file), or list the apps on the device with `,(0,F.jsx)(mr,{children:`adb shell pm list packages`}),`.`]})]}),(0,F.jsxs)(`div`,{className:`dialog-foot`,children:[(0,F.jsx)(`span`,{className:`hint`,children:`Checks again every few seconds while this is open.`}),(0,F.jsx)(`button`,{type:`button`,className:`primary`,onClick:t,children:`Done`})]})]})}function kr({toasts:e,onDismiss:t}){return(0,F.jsx)(`div`,{className:`toasts`,role:`status`,"aria-live":`polite`,children:e.map(e=>(0,F.jsxs)(`div`,{className:`toast toast-${e.kind}`,children:[(0,F.jsx)(`span`,{children:e.message}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>t(e.id),"aria-label":`Dismiss`,children:`×`})]},e.id))})}function Ar({size:e=22}){return(0,F.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 64 64`,width:e,height:e,"aria-hidden":`true`,children:[(0,F.jsx)(`rect`,{width:`64`,height:`64`,rx:`14`,fill:`#1c2b4a`}),(0,F.jsx)(`path`,{d:`M14 20 V50 H50 V14 H26 V38 H38 V26`,fill:`none`,stroke:`#e8b43a`,strokeWidth:`6`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,F.jsx)(`circle`,{cx:`14`,cy:`14`,r:`4.5`,fill:`none`,stroke:`#e8b43a`,strokeWidth:`3.5`}),(0,F.jsx)(`circle`,{cx:`38`,cy:`26`,r:`5`,fill:`#e8b43a`})]})}var jr=[{value:`system`,label:`System`},{value:`light`,label:`Light`},{value:`dark`,label:`Dark`}];function Mr({themeChoice:e,onThemeChoice:t,onOpenSetup:n,runVideo:r,videoHasSteps:i,onRunVideo:a,evidencePack:o,onEvidencePack:s}){let[c,u]=(0,l.useState)(!1),d=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(!c)return;let e=e=>{d.current&&!d.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[c]),(0,F.jsxs)(`div`,{className:`menu-anchor`,ref:d,children:[(0,F.jsx)(`button`,{type:`button`,className:`icon-button ${c?`icon-button-on`:``}`,onClick:()=>u(e=>!e),"aria-haspopup":`menu`,"aria-expanded":c,"aria-label":`Settings`,title:`Settings`,children:(0,F.jsx)(dt,{})}),c&&(0,F.jsxs)(`div`,{className:`menu`,role:`menu`,children:[(0,F.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`menu-item`,onClick:()=>{u(!1),n()},children:[`Device setup`,(0,F.jsx)(`span`,{className:`menu-item-hint`,children:`Check adb, Maestro and Java, start an emulator`})]}),(0,F.jsxs)(`label`,{className:`menu-check`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:r,onChange:e=>a(e.target.checked)}),(0,F.jsxs)(`span`,{children:[`Keep a video of each run`,(0,F.jsx)(`span`,{className:`menu-item-hint`,children:`The steps beside the phone. It stays on this computer and shows whatever is on the screen.`}),!i&&(0,F.jsx)(`span`,{className:`menu-item-hint`,children:`Install ffmpeg to see the steps; without it the video shows only the phone.`})]})]}),(0,F.jsxs)(`label`,{className:`menu-check`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>s(e.target.checked)}),(0,F.jsxs)(`span`,{children:[`Offer an evidence pack after Run all`,(0,F.jsx)(`span`,{className:`menu-item-hint`,children:`A test results report to print or save as PDF, for whoever accepts the release.`})]})]}),(0,F.jsxs)(`div`,{className:`menu-section`,role:`group`,"aria-label":`Appearance`,children:[(0,F.jsx)(`span`,{className:`menu-label`,children:`Appearance`}),(0,F.jsx)(`span`,{className:`segmented`,children:jr.map(n=>(0,F.jsx)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":e===n.value,className:e===n.value?`segmented-on`:``,onClick:()=>t(n.value),children:n.label},n.value))})]})]})]})}function Nr(e){let{session:t,busy:n,theme:r}=e,i=n?`${n}...`:t.open?`Connected to ${t.deviceId} · ${t.appId}`:`No device connected`,a=r===`dark`?`light`:`dark`;return(0,F.jsxs)(`header`,{className:`topbar`,children:[(0,F.jsxs)(`a`,{className:`brand`,href:`/`,"aria-label":`Ariadne`,children:[(0,F.jsx)(Ar,{}),(0,F.jsx)(`span`,{className:`brand-name`,children:`Ariadne`}),(0,F.jsx)(`span`,{className:`brand-sub`,children:`Studio`})]}),(0,F.jsxs)(`span`,{className:`status ${t.open?`status-on`:``} ${n?`status-busy`:``}`,title:i,children:[(0,F.jsx)(`span`,{className:`status-dot`,"aria-hidden":`true`}),(0,F.jsx)(`span`,{className:`status-text`,children:i})]}),(0,F.jsx)(`button`,{type:`button`,className:`icon-button ${e.filesOpen?`icon-button-on`:``}`,onClick:e.onToggleFiles,"aria-pressed":e.filesOpen,"aria-label":`Files`,title:e.filesOpen?`Hide files`:`Show files`,children:(0,F.jsx)(st,{})}),(0,F.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:()=>e.onThemeChoice(a),"aria-label":`Switch to ${a} mode`,title:`Switch to ${a} mode`,children:r===`dark`?(0,F.jsx)(ft,{}):(0,F.jsx)(pt,{})}),(0,F.jsx)(Mr,{themeChoice:e.themeChoice,onThemeChoice:e.onThemeChoice,onOpenSetup:e.onOpenSetup,runVideo:e.runVideo,videoHasSteps:e.videoHasSteps,onRunVideo:e.onRunVideo,evidencePack:e.evidencePack,onEvidencePack:e.onEvidencePack})]})}var Pr=`ariadne-theme`,Fr=`(prefers-color-scheme: dark)`;function Ir(){try{let e=localStorage.getItem(Pr);return e===`light`||e===`dark`?e:`system`}catch{return`system`}}function Lr(){return window.matchMedia(Fr).matches?`dark`:`light`}function Rr(e){try{e===`system`?localStorage.removeItem(Pr):localStorage.setItem(Pr,e)}catch{}}function zr(){let[e,t]=(0,l.useState)(Ir),[n,r]=(0,l.useState)(Lr);(0,l.useEffect)(()=>{let e=window.matchMedia(Fr),t=()=>r(e.matches?`dark`:`light`);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let i=e===`system`?n:e;return(0,l.useEffect)(()=>{document.documentElement.dataset.theme=i},[i]),{choice:e,theme:i,setChoice:(0,l.useCallback)(e=>{Rr(e),t(e)},[])}}var Br=1e3,Vr=8e3,Hr=1500,Ur=600,Wr=1500,Gr=1e4,Kr={active:!1,paused:!1,revision:0};function qr(){let[e,t]=(0,l.useState)(null),[n,r]=(0,l.useState)([]),[i,a]=(0,l.useState)(``),[o,s]=(0,l.useState)(``),[c,u]=(0,l.useState)({open:!1}),[d,f]=(0,l.useState)(null),[p,g]=(0,l.useState)(null),[_,v]=(0,l.useState)(null),[b,x]=(0,l.useState)(null),[S,C]=(0,l.useState)(null),[ee,w]=(0,l.useState)(null),[T,E]=(0,l.useState)(!1),[D,te]=(0,l.useState)(null),[ne,re]=(0,l.useState)(null),[ie,ae]=(0,l.useState)([]),[oe,O]=(0,l.useState)(`record`),[se,ce]=(0,l.useState)({name:``,startFrom:``,blocks:[]}),[k,le]=(0,l.useState)(null),[ue,de]=(0,l.useState)(null),[fe,pe]=(0,l.useState)(0),[me,he]=(0,l.useState)(!1),[ge,_e]=(0,l.useState)(Kr),[ve,be]=(0,l.useState)(null),[we,Te]=wn(),{choice:M,theme:Ee,setChoice:Oe}=zr(),ke=(0,l.useRef)(0),Ae=(0,l.useRef)(void 0),N=(0,l.useCallback)((e,t=`error`)=>{let n=++ke.current;ae(r=>[...r,{id:n,message:e,kind:t}]),setTimeout(()=>ae(e=>e.filter(e=>e.id!==n)),Vr)},[]),P=(0,l.useCallback)(async(e,t)=>{te(e);try{return await t()}catch(e){let t=e instanceof h?`${e.message} [${e.code}]`:String(e);N(t);return}finally{te(null)}},[N]),je=(0,l.useCallback)(async()=>{let e=await y.devices();return r(e),a(t=>t&&e.some(e=>e.id===t)?t:e[0]?.id??``),e},[]);(0,l.useEffect)(()=>{P(`Loading`,async()=>{let[e,n,r,i,o]=await Promise.all([y.project(),y.session(),y.currentCase(),y.currentSuite(),y.phone()]);_e(o),t(e),s(e.appId),u(n),g(r),w(i);let c=await je().catch(e=>{if(e instanceof h&&e.code===`TOOL_MISSING`)return[];throw e}),l=n.deviceId??e.lastDeviceId;l&&c.some(e=>e.id===l)&&a(l),n.open&&f(await y.screen().catch(()=>null));let d=await y.setup().catch(()=>null);d&&m(d,n.open,e.lastDeviceId)&&he(!0)})},[P,je]),(0,l.useEffect)(()=>{oe!==`blocks`&&de(null)},[oe]);let Me=p?.id;(0,l.useEffect)(()=>{Me?O(`record`):(E(!1),x(null),_e(Kr))},[Me]);let Ne=ee?.status===`running`,Pe=(0,l.useRef)(void 0);Pe.current=S?.case.id,(0,l.useEffect)(()=>{if(!Ne)return;let e=setInterval(()=>{y.currentSuite().then(async e=>{if(w(e),e?.status!==`running`){t(await y.project());let e=await y.session();u(e),f(e.open?await y.screen().catch(()=>null):null);let n=Pe.current;n&&C(await y.caseDetail(n).catch(()=>null))}}).catch(()=>void 0)},Hr);return()=>clearInterval(e)},[Ne]);let Fe=ge.active,Ie=c.open&&D===null&&b===null&&!ge.active&&!Ne;(0,l.useEffect)(()=>{if(!Ie)return;let e=!0,t,n=async()=>{let r=Wr;if(!document.hidden)try{let t=await y.refreshScreen();e&&f(t)}catch{r=Gr}e&&(t=setTimeout(()=>void n(),r))};return t=setTimeout(()=>void n(),Wr),()=>{e=!1,clearTimeout(t)}},[Ie]);let Le=(0,l.useRef)(0),Re=(0,l.useRef)(0);(0,l.useEffect)(()=>{if(!Fe)return;let e=setInterval(()=>{y.phone().then(async e=>{_e(e),e.notice&&e.notice.id!==Re.current&&(Re.current=e.notice.id,N(e.notice.text,`info`)),!e.active&&e.error&&N(e.error),e.active&&e.revision===Le.current||(Le.current=e.revision,g(await y.currentCase()),f(await y.screen().catch(()=>null)))}).catch(()=>void 0)},Ur);return()=>clearInterval(e)},[Fe,N]);let ze=()=>P(ge.active?`Stopping`:`Getting ready`,async()=>{_e(ge.active?await y.phoneStop():await y.phoneStart()),g(await y.currentCase()),f(await y.screen().catch(()=>null))}),Be=(0,l.useRef)(`record`);(0,l.useEffect)(()=>{oe!==`file`&&(Be.current=oe)},[oe]);let Ve=(0,l.useCallback)(()=>{be(null),O(e=>e===`file`?Be.current:e)},[]),He=(0,l.useCallback)(e=>{y.fileContent(e).then(e=>{be(e),O(`file`)}).catch(e=>N(e instanceof Error?e.message:String(e)))},[N]),Ue=e=>{y.setRunVideo(e).then(t).catch(e=>N(e instanceof Error?e.message:String(e)))},We=e=>{y.setEvidencePack(e).then(t).catch(e=>N(e instanceof Error?e.message:String(e)))},Ge=(0,l.useRef)(void 0);Ge.current=ve?.path,(0,l.useEffect)(()=>{let e=Ge.current;e&&y.fileContent(e).then(be).catch(Ve)},[e,Ve]);let Ke=(0,l.useCallback)(async e=>{f(e.screen),e.resolved?.rect&&(re(e.resolved.rect),clearTimeout(Ae.current),Ae.current=setTimeout(()=>re(null),Br)),e.step&&g(await y.currentCase())},[]),qe=()=>P(`Connecting`,async()=>{let e=await y.open(i,o.trim());f(e),u(await y.session()),t(await y.project())}),Je=()=>P(`Disconnecting`,async()=>{await y.close(),u({open:!1}),f(null)}),Ye=e=>P(`Tapping`,async()=>Ke(await y.tap(e.x,e.y))),Xe=()=>P(`Refreshing`,async()=>f(await y.refreshScreen())),Ze=e=>P(`Typing`,async()=>Ke(await y.type(e))),Qe=()=>P(`Going back`,async()=>Ke(await y.back())),$e=e=>P(`Scrolling`,async()=>Ke(await y.scroll(e))),et=e=>P(`Recording check`,async()=>Ke(await y.expect(e.x,e.y))),tt=()=>P(`Relaunching`,async()=>Ke(await y.relaunch())),nt=()=>P(`Hiding the keyboard`,async()=>Ke(await y.hideKeyboard())),rt=e=>P(`Opening link`,async()=>Ke(await y.openLink(e))),it=e=>P(`Adding a wait`,async()=>Ke(await y.wait(e))),at=e=>P(`Long pressing`,async()=>Ke(await y.longPress(e.x,e.y))),ot=e=>P(`Double tapping`,async()=>Ke(await y.doubleTap(e.x,e.y))),I=(e,t,n)=>P(`Swiping`,async()=>Ke(await y.swipe({from:e,to:t,durationMs:n}))),st=e=>P(`Pressing the button`,async()=>Ke(await y.pressKey(e))),ct=e=>P(`Rotating`,async()=>Ke(await y.rotate(e))),lt=e=>P(`Zooming`,async()=>Ke(await y.pinch(e))),ut=(e,t)=>P(`Running the block`,async()=>{try{await Ke(await y.runBlock(t?{file:e,values:t}:{file:e}))}catch(e){throw f(await y.screen().catch(()=>null)),e}}),dt=async(e,n)=>await P(`Saving the test user`,async()=>(t(await y.addTestUser(e,n)),N(`Saved the test user ${e}.`,`info`),!0))??!1,ft=async(e,n)=>await P(`Saving the value`,async()=>(t(await y.addSavedValues({[e]:n})),!0))??!1,pt=e=>P(`Opening the block`,async()=>{le(xe(await y.blockDetail(e)))}),mt=async e=>{let n={name:e.name.trim(),steps:ye(e.steps)},r=e.file?await y.saveBlock(e.file,n):await y.createBlock({...n,appId:e.appId??(c.appId??o).trim()});return le({...xe(r),...e.values?{values:e.values}:{}}),de(null),t(await y.project()),r.file},ht=e=>P(`Saving the block`,async()=>{await mt(e),N(`Block saved. Cases can use it from the Record tab.`,`info`)}),gt=e=>P(`Running the block`,async()=>{let t=!e.file||A(e)?await mt(e):e.file;try{f(await y.tryBlock(e.values?{file:t,values:e.values}:{file:t})),N(`The block ran to the end.`,`info`)}catch(e){throw f(await y.screen().catch(()=>null)),e}}),_t=e=>P(`Starting recording`,async()=>{let t=await y.recordBlock(e.name.trim()||`New block`);f(t.screen),v(null),C(null),g(await y.currentCase())}),vt=e=>{k&&A(k)&&!window.confirm(`Replace the block you are writing with this case?`)||P(`Reading the case`,async()=>{le(Se(await y.caseBlockDraft(e))),O(`blocks`)})},yt=(e,n)=>{window.confirm(`Delete the block "${n}" and its file?`)&&P(`Deleting the block`,async()=>{await y.deleteBlock(e),le(null),de(null),ce(t=>({...t,blocks:t.blocks.filter(t=>t.file!==e)})),t(await y.project()),N(`Block deleted.`,`info`)})},bt=e=>P(`Reading the element`,async()=>{let t=await y.pick(e.x,e.y),n=k?.steps??[],r=n.find(e=>e.key===ue),i=r&&De(r,t);!k||!i?N(`Nothing with a name or id here. Click on a text or a control.`):(le({...k,steps:n.map(e=>e===r?i:e)}),de(null),t.resolved?.rect&&(re(t.resolved.rect),clearTimeout(Ae.current),Ae.current=setTimeout(()=>re(null),Br)))}),xt=()=>{let t=se.name.trim();if(!t){O(`record`),pe(e=>e+1);return}let n=e?.cases??[],r=se.startFrom&&n.some(e=>e.id===se.startFrom)?se.startFrom:``,i=new Set((e?.blocks??[]).filter(e=>!e.error).map(e=>e.file)),a=r?{startFrom:r}:{blocks:se.blocks.filter(e=>i.has(e.file))};P(`startFrom`in a?`Running the starting case`:a.blocks.length>0?`Running setup blocks`:`Starting recording`,async()=>{try{let e=await y.startCase(t,a);f(e.screen),v(null),C(null),pe(0),ce(e=>({...e,name:``})),g(await y.currentCase())}catch(e){throw f(await y.screen().catch(()=>null)),e}})},St=e=>P(`Adding the steps`,async()=>{let{steps:t}=await y.finishBlockRecording(e,k?.file);x(null),g(null),le(e=>Ce(e??j(),t)),O(`blocks`)}),Ct=e=>P(`Saving case`,async()=>{let n=await y.finishCase(e),r=p?.editing!==void 0;x(null),g(null),t(await y.project()),r?(v(null),C(await y.caseDetail(n.caseId)),O(`cases`)):v(n)}),wt=()=>{p?.editing?.mode===`insert`?Ct([]):P(`Finding end checks`,async()=>{ge.active&&(_e(await y.phoneStop()),g(await y.currentCase()),f(await y.screen().catch(()=>null)));let e=await y.candidates();x({candidates:e.candidates,...e.preselected?{preselected:e.preselected}:{}})})},Tt=e=>P(`Opening case`,async()=>{v(null),C(await y.caseDetail(e)),O(`cases`)}),Et=e=>P(`Running`,async()=>{try{await y.replayCase(e),v(null),C(await y.caseDetail(e))}finally{let e=await y.session();u(e),f(e.open?await y.screen().catch(()=>null):null),t(await y.project())}}),Dt=(e,n)=>void P(e,async()=>{let e=await n();C(e),t(await y.project())}),Ot=(e,t)=>void P(`Running up to the step`,async()=>{try{let n=await y.editCase(e,t);f(n.screen),C(null),v(null),g(await y.currentCase())}catch(e){throw f(await y.screen().catch(()=>null)),e}}),kt=e=>void P(`Starting Run all`,async()=>{w(await y.runAll(e))}),At=()=>void P(`Stopping Run all`,async()=>{w(await y.stopSuite())}),jt=e=>{window.confirm(`Delete this case, its flow file, its screenshots and its replay results?`)&&P(`Deleting case`,async()=>{await y.deleteCase(e),C(t=>t?.case.id===e?null:t),t(await y.project()),N(`Case deleted.`,`info`)})},Mt=()=>{let e=p?.editing,t=p?.forBlock===!0,n=t?`Discard these steps? The block stays as it was.`:e?`Discard these changes? The saved case stays as it was.`:`Discard this case and its screenshots?`;window.confirm(n)&&P(`Discarding`,async()=>{let e=await y.discardCase(),n=p?.id;g(null),x(null),t?(O(`blocks`),N(`Recording discarded.`,`info`)):(e.restored&&n&&(C(await y.caseDetail(n)),O(`cases`)),N(e.restored?`Changes discarded.`:`Case discarded.`,`info`))})},Nt=n.find(e=>e.id===(c.deviceId??i)),Pt=Nt===void 0||Nt.kind===`emulator`?null:D===`Connecting`?`connect`:D?.startsWith(`Run`)||Ne?`run`:null;return(0,F.jsxs)(`div`,{className:`app`,children:[(0,F.jsx)(Nr,{session:c,busy:D,theme:Ee,themeChoice:M,onThemeChoice:Oe,onOpenSetup:()=>he(!0),filesOpen:we,onToggleFiles:Te,runVideo:e?.runVideo??!1,videoHasSteps:e?.videoHasSteps??!0,onRunVideo:Ue,evidencePack:e?.evidencePack??!1,onEvidencePack:We}),(0,F.jsxs)(`main`,{className:`workspace`,children:[(0,F.jsx)(sr,{screen:d,busy:D!==null||b!==null||Ne,highlight:ne,sessionOpen:c.open,caseActive:p!==null,recording:p?{name:p.name,steps:p.steps.length}:null,phone:ge,phonePrompt:Pt,onTogglePhone:()=>void ze(),picking:b!==null,suiteRunning:Ne,devicesFound:n.length>0,appId:c.appId,onRecord:xt,onFinish:()=>void wt(),onOpenSetup:()=>he(!0),expectMode:T,choosing:ue!==null,onChoose:e=>void bt(e),onTap:e=>void Ye(e),onExpect:e=>void et(e),onToggleExpect:()=>E(e=>!e),onType:e=>void Ze(e),onBack:()=>void Qe(),onScroll:e=>void $e(e),onRelaunch:()=>void tt(),onRefresh:()=>void Xe(),onHideKeyboard:()=>void nt(),onOpenLink:e=>void rt(e),onWait:e=>void it(e),onLongPress:e=>void at(e),onDoubleTap:e=>void ot(e),onSwipe:(e,t,n)=>void I(e,t,n),onKey:e=>void st(e),onRotate:e=>void ct(e),onZoom:e=>void lt(e)}),(0,F.jsxs)(`div`,{className:`side`,children:[(0,F.jsx)(Un,{devices:n,deviceId:i,appId:o,session:c,busy:D,caseActive:p!==null,onDeviceChange:a,onAppIdChange:s,onRefreshDevices:()=>void P(`Listing devices`,je),onOpen:()=>void qe(),onClose:()=>void Je(),onOpenSetup:()=>he(!0)}),(0,F.jsx)(Vn,{tab:oe,onTabChange:O,openedFile:ve,onCloseFile:Ve,draft:se,onDraftChange:ce,nameFocus:fe,appId:c.appId??o,project:e,currentCase:p,finished:_,picking:b,openedCase:S,suite:ee,busy:D!==null||Ne,sessionOpen:c.open,usingPhone:ge.active,onRecord:xt,onRunBlock:(e,t)=>void ut(e,t),onAddTestUser:dt,onFinish:()=>void wt(),onSavePicks:e=>void(p?.forBlock?St(e):Ct(e)),onCancelPick:()=>x(null),onDiscard:Mt,onDismissFinished:()=>v(null),onOpenCase:e=>void Tt(e),onCloseCase:()=>C(null),onReplayCase:e=>void Et(e),onRunAll:kt,onStopSuite:At,caseActions:{onEdit:Ot,onOpenCase:e=>void Tt(e),onRename:(e,t)=>Dt(`Renaming`,()=>y.patchCase(e,{name:t})),onMute:(e,t)=>Dt(t?`Muting`:`Unmuting`,()=>y.patchCase(e,{muted:t})),onReference:(e,t)=>Dt(`Saving the reference`,()=>y.patchCase(e,{reference:t})),onDuplicate:e=>Dt(`Duplicating`,()=>y.duplicateCase(e)),onSaveAsBlock:vt,onDelete:jt,onPatchStep:(e,t,n)=>Dt(`Saving the step`,()=>y.patchStep(e,t,n)),onDeleteStep:(e,t)=>Dt(`Deleting the step`,()=>y.deleteStep(e,t)),onDeleteExpectation:(e,t)=>Dt(`Deleting the check`,()=>y.deleteExpectation(e,t)),onSplit:(e,t)=>Dt(`Splitting`,()=>y.splitCase(e,t))},blockEdit:k,pickingKey:ue,blockActions:{onNew:()=>le(j()),onOpen:e=>void pt(e),onOpenFile:He,onChange:le,onPick:de,onSave:()=>k&&void ht(k),onTry:()=>k&&void gt(k),onRecord:()=>k&&void _t(k),onDelete:()=>k?.file&&yt(k.file,k.name),onClose:()=>{le(null),de(null)},onSaveValue:ft,onAddTestUser:dt}})]}),(0,F.jsx)(Tn,{hidden:!we,project:e,openedPath:ve?.path,onOpenFile:He,onClose:Te,onError:N})]}),e&&(0,F.jsxs)(`footer`,{className:`footer`,children:[`Project `,e.dir,` · `,e.cases.length,` `,e.cases.length===1?`case`:`cases`,` · flows go to `,e.paths.flows]}),(0,F.jsx)(Or,{open:me,onClose:()=>{he(!1),je().catch(()=>void 0)},onDevicesChanged:()=>void je().catch(()=>void 0)}),(0,F.jsx)(kr,{toasts:ie,onDismiss:e=>ae(t=>t.filter(t=>t.id!==e))})]})}(0,u.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(l.StrictMode,{children:(0,F.jsx)(qr,{})}));