From d7d46518f6eeb3def47382a1c71a92731b91af4e Mon Sep 17 00:00:00 2001 From: Martan03 Date: Mon, 22 Jan 2024 15:37:46 +0100 Subject: [PATCH] Updates --- .../{index-i4LHG2be.js => index-rkHwkQ2V.js} | 78 ++++++++++++++----- index.html | 2 +- 2 files changed, 58 insertions(+), 22 deletions(-) rename assets/{index-i4LHG2be.js => index-rkHwkQ2V.js} (85%) diff --git a/assets/index-i4LHG2be.js b/assets/index-rkHwkQ2V.js similarity index 85% rename from assets/index-i4LHG2be.js rename to assets/index-rkHwkQ2V.js index 2c561a8..c8ae19b 100644 --- a/assets/index-i4LHG2be.js +++ b/assets/index-rkHwkQ2V.js @@ -1,4 +1,4 @@ -(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();function dc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xu={exports:{}},tl={},Gu={exports:{}},L={};/** +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();function pc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xu={exports:{}},tl={},Gu={exports:{}},L={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Gt=Symbol.for("react.element"),pc=Symbol.for("react.portal"),mc=Symbol.for("react.fragment"),hc=Symbol.for("react.strict_mode"),vc=Symbol.for("react.profiler"),gc=Symbol.for("react.provider"),yc=Symbol.for("react.context"),wc=Symbol.for("react.forward_ref"),kc=Symbol.for("react.suspense"),Sc=Symbol.for("react.memo"),xc=Symbol.for("react.lazy"),Oi=Symbol.iterator;function Ec(e){return e===null||typeof e!="object"?null:(e=Oi&&e[Oi]||e["@@iterator"],typeof e=="function"?e:null)}var Zu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ju=Object.assign,qu={};function it(e,n,t){this.props=e,this.context=n,this.refs=qu,this.updater=t||Zu}it.prototype.isReactComponent={};it.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};it.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bu(){}bu.prototype=it.prototype;function Bo(e,n,t){this.props=e,this.context=n,this.refs=qu,this.updater=t||Zu}var Vo=Bo.prototype=new bu;Vo.constructor=Bo;Ju(Vo,it.prototype);Vo.isPureReactComponent=!0;var $i=Array.isArray,es=Object.prototype.hasOwnProperty,Ho={current:null},ns={key:!0,ref:!0,__self:!0,__source:!0};function ts(e,n,t){var r,l={},o=null,i=null;if(n!=null)for(r in n.ref!==void 0&&(i=n.ref),n.key!==void 0&&(o=""+n.key),n)es.call(n,r)&&!ns.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1>>1,Z=C[Q];if(0>>1;Ql(kl,T))wnl(nr,kl)?(C[Q]=nr,C[wn]=T,Q=wn):(C[Q]=kl,C[yn]=T,Q=yn);else if(wnl(nr,T))C[Q]=nr,C[wn]=T,Q=wn;else break e}}return j}function l(C,j){var T=C.sortIndex-j.sortIndex;return T!==0?T:C.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],f=[],y=1,v=null,p=3,g=!1,m=!1,h=!1,z=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(C){for(var j=t(f);j!==null;){if(j.callback===null)r(f);else if(j.startTime<=C)r(f),j.sortIndex=j.expirationTime,n(s,j);else break;j=t(f)}}function k(C){if(h=!1,d(C),!m)if(t(s)!==null)m=!0,yl(E);else{var j=t(f);j!==null&&wl(k,j.startTime-C)}}function E(C,j){m=!1,h&&(h=!1,c(P),P=-1),g=!0;var T=p;try{for(d(j),v=t(s);v!==null&&(!(v.expirationTime>j)||C&&!Pe());){var Q=v.callback;if(typeof Q=="function"){v.callback=null,p=v.priorityLevel;var Z=Q(v.expirationTime<=j);j=e.unstable_now(),typeof Z=="function"?v.callback=Z:v===t(s)&&r(s),d(j)}else r(s);v=t(s)}if(v!==null)var er=!0;else{var yn=t(f);yn!==null&&wl(k,yn.startTime-j),er=!1}return er}finally{v=null,p=T,g=!1}}var _=!1,N=null,P=-1,H=5,D=-1;function Pe(){return!(e.unstable_now()-DC||125Q?(C.sortIndex=T,n(f,C),t(s)===null&&C===t(f)&&(h?(c(P),P=-1):h=!0,wl(k,T-Q))):(C.sortIndex=Z,n(s,C),m||g||(m=!0,yl(E))),C},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(C){var j=p;return function(){var T=p;p=j;try{return C.apply(this,arguments)}finally{p=T}}}})(is);os.exports=is;var Mc=os.exports;/** + */(function(e){function n(C,j){var T=C.length;C.push(j);e:for(;0>>1,Z=C[Q];if(0>>1;Ql(kl,T))wnl(nr,kl)?(C[Q]=nr,C[wn]=T,Q=wn):(C[Q]=kl,C[yn]=T,Q=yn);else if(wnl(nr,T))C[Q]=nr,C[wn]=T,Q=wn;else break e}}return j}function l(C,j){var T=C.sortIndex-j.sortIndex;return T!==0?T:C.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],f=[],y=1,v=null,p=3,g=!1,m=!1,h=!1,z=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(C){for(var j=t(f);j!==null;){if(j.callback===null)r(f);else if(j.startTime<=C)r(f),j.sortIndex=j.expirationTime,n(s,j);else break;j=t(f)}}function k(C){if(h=!1,d(C),!m)if(t(s)!==null)m=!0,yl(E);else{var j=t(f);j!==null&&wl(k,j.startTime-C)}}function E(C,j){m=!1,h&&(h=!1,c(P),P=-1),g=!0;var T=p;try{for(d(j),v=t(s);v!==null&&(!(v.expirationTime>j)||C&&!Pe());){var Q=v.callback;if(typeof Q=="function"){v.callback=null,p=v.priorityLevel;var Z=Q(v.expirationTime<=j);j=e.unstable_now(),typeof Z=="function"?v.callback=Z:v===t(s)&&r(s),d(j)}else r(s);v=t(s)}if(v!==null)var er=!0;else{var yn=t(f);yn!==null&&wl(k,yn.startTime-j),er=!1}return er}finally{v=null,p=T,g=!1}}var _=!1,N=null,P=-1,H=5,D=-1;function Pe(){return!(e.unstable_now()-DC||125Q?(C.sortIndex=T,n(f,C),t(s)===null&&C===t(f)&&(h?(c(P),P=-1):h=!0,wl(k,T-Q))):(C.sortIndex=Z,n(s,C),m||g||(m=!0,yl(E))),C},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(C){var j=p;return function(){var T=p;p=j;try{return C.apply(this,arguments)}finally{p=T}}}})(is);os.exports=is;var Fc=os.exports;/** * @license React * react-dom.production.min.js * @@ -30,18 +30,18 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var us=$,ye=Mc;function S(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,Fc=/^[: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]*$/,Ai={},Wi={};function Oc(e){return Xl.call(Wi,e)?!0:Xl.call(Ai,e)?!1:Fc.test(e)?Wi[e]=!0:(Ai[e]=!0,!1)}function $c(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Uc(e,n,t,r){if(n===null||typeof n>"u"||$c(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ae(e,n,t,r,l,o,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=i}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ne[n]=new ae(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ae(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ne[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ko=/[\-:]([a-z])/g;function Yo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Ko,Yo);ne[n]=new ae(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Ko,Yo);ne[n]=new ae(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Ko,Yo);ne[n]=new ae(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xo(e,n,t,r){var l=ne.hasOwnProperty(n)?ne[n]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,Oc=/^[: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]*$/,Ai={},Wi={};function $c(e){return Xl.call(Wi,e)?!0:Xl.call(Ai,e)?!1:Oc.test(e)?Wi[e]=!0:(Ai[e]=!0,!1)}function Uc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ac(e,n,t,r){if(n===null||typeof n>"u"||Uc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ae(e,n,t,r,l,o,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=i}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ne[n]=new ae(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ae(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ne[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ko=/[\-:]([a-z])/g;function Yo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Ko,Yo);ne[n]=new ae(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Ko,Yo);ne[n]=new ae(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Ko,Yo);ne[n]=new ae(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xo(e,n,t,r){var l=ne.hasOwnProperty(n)?ne[n]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` -`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{El=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?wt(e):""}function Ac(e){switch(e.tag){case 5:return wt(e.type);case 16:return wt("Lazy");case 13:return wt("Suspense");case 19:return wt("SuspenseList");case 0:case 2:case 15:return e=Cl(e.type,!1),e;case 11:return e=Cl(e.type.render,!1),e;case 1:return e=Cl(e.type,!0),e;default:return""}}function ql(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case Mn:return"Portal";case Gl:return"Profiler";case Go:return"StrictMode";case Zl:return"Suspense";case Jl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cs:return(e.displayName||"Context")+".Consumer";case as:return(e._context.displayName||"Context")+".Provider";case Zo:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jo:return n=e.displayName||null,n!==null?n:ql(e.type)||"Memo";case qe:n=e._payload,e=e._init;try{return ql(e(n))}catch{}}return null}function Wc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ql(n);case 8:return n===Go?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ds(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Bc(e){var n=ds(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function lr(e){e._valueTracker||(e._valueTracker=Bc(e))}function ps(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=ds(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Lr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bl(e,n){var t=n.checked;return B({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Vi(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=pn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ms(e,n){n=n.checked,n!=null&&Xo(e,"checked",n,!1)}function eo(e,n){ms(e,n);var t=pn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?no(e,n.type,t):n.hasOwnProperty("defaultValue")&&no(e,n.type,pn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Hi(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function no(e,n,t){(n!=="number"||Lr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var kt=Array.isArray;function Yn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function It(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Et={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vc=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(e){Vc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Et[n]=Et[e]})});function ys(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Et.hasOwnProperty(e)&&Et[e]?(""+n).trim():n+"px"}function ws(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=ys(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Hc=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lo(e,n){if(n){if(Hc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(S(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(S(61))}if(n.style!=null&&typeof n.style!="object")throw Error(S(62))}}function oo(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";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 io=null;function qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uo=null,Xn=null,Gn=null;function Yi(e){if(e=qt(e)){if(typeof uo!="function")throw Error(S(280));var n=e.stateNode;n&&(n=ul(n),uo(e.stateNode,e.type,n))}}function ks(e){Xn?Gn?Gn.push(e):Gn=[e]:Xn=e}function Ss(){if(Xn){var e=Xn,n=Gn;if(Gn=Xn=null,Yi(e),n)for(e=0;e>>=0,e===0?32:31-(nf(e)/tf|0)|0}var ir=64,ur=4194304;function St(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=t&268435455;if(i!==0){var u=i&~l;u!==0?r=St(u):(o&=i,o!==0&&(r=St(o)))}else i=t&~l,i!==0?r=St(i):o!==0&&(r=St(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Zt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-De(n),e[n]=t}function uf(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_t),tu=" ",ru=!1;function Ws(e,n){switch(e){case"keyup":return Mf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function Of(e,n){switch(e){case"compositionend":return Bs(n);case"keypress":return n.which!==32?null:(ru=!0,tu);case"textInput":return e=n.data,e===tu&&ru?null:e;default:return null}}function $f(e,n){if(On)return e==="compositionend"||!ii&&Ws(e,n)?(e=Us(),xr=ri=tn=null,On=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=uu(t)}}function Ks(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Ks(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ys(){for(var e=window,n=Lr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Lr(e.document)}return n}function ui(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Yf(e){var n=Ys(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Ks(t.ownerDocument.documentElement,t)){if(r!==null&&ui(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=su(t,o);var i=su(t,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(i.node,i.offset)):(n.setEnd(i.node,i.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,$n=null,mo=null,Pt=null,ho=!1;function au(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;ho||$n==null||$n!==Lr(r)||(r=$n,"selectionStart"in r&&ui(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}),Pt&&Ut(Pt,r)||(Pt=r,r=$r(mo,"onSelect"),0Wn||(e.current=So[Wn],So[Wn]=null,Wn--)}function M(e,n){Wn++,So[Wn]=e.current,e.current=n}var mn={},oe=vn(mn),de=vn(!1),Pn=mn;function et(e,n){var t=e.type.contextTypes;if(!t)return mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Ar(){O(de),O(oe)}function vu(e,n,t){if(oe.current!==mn)throw Error(S(168));M(oe,n),M(de,t)}function ta(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(S(108,Wc(e)||"Unknown",l));return B({},t,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,Pn=oe.current,M(oe,e),M(de,de.current),!0}function gu(e,n,t){var r=e.stateNode;if(!r)throw Error(S(169));t?(e=ta(e,n,Pn),r.__reactInternalMemoizedMergedChildContext=e,O(de),O(oe),M(oe,e)):O(de),M(de,t)}var Be=null,sl=!1,$l=!1;function ra(e){Be===null?Be=[e]:Be.push(e)}function od(e){sl=!0,ra(e)}function gn(){if(!$l&&Be!==null){$l=!0;var e=0,n=R;try{var t=Be;for(R=1;e>=i,l-=i,Ve=1<<32-De(n)+l|t<P?(H=N,N=null):H=N.sibling;var D=p(c,N,d[P],k);if(D===null){N===null&&(N=H);break}e&&N&&D.alternate===null&&n(c,N),a=o(D,a,P),_===null?E=D:_.sibling=D,_=D,N=H}if(P===d.length)return t(c,N),U&&kn(c,P),E;if(N===null){for(;PP?(H=N,N=null):H=N.sibling;var Pe=p(c,N,D.value,k);if(Pe===null){N===null&&(N=H);break}e&&N&&Pe.alternate===null&&n(c,N),a=o(Pe,a,P),_===null?E=Pe:_.sibling=Pe,_=Pe,N=H}if(D.done)return t(c,N),U&&kn(c,P),E;if(N===null){for(;!D.done;P++,D=d.next())D=v(c,D.value,k),D!==null&&(a=o(D,a,P),_===null?E=D:_.sibling=D,_=D);return U&&kn(c,P),E}for(N=r(c,N);!D.done;P++,D=d.next())D=g(N,c,P,D.value,k),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?P:D.key),a=o(D,a,P),_===null?E=D:_.sibling=D,_=D);return e&&N.forEach(function(at){return n(c,at)}),U&&kn(c,P),E}function z(c,a,d,k){if(typeof d=="object"&&d!==null&&d.type===Fn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case rr:e:{for(var E=d.key,_=a;_!==null;){if(_.key===E){if(E=d.type,E===Fn){if(_.tag===7){t(c,_.sibling),a=l(_,d.props.children),a.return=c,c=a;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===qe&&Cu(E)===_.type){t(c,_.sibling),a=l(_,d.props),a.ref=vt(c,_,d),a.return=c,c=a;break e}t(c,_);break}else n(c,_);_=_.sibling}d.type===Fn?(a=Nn(d.props.children,c.mode,k,d.key),a.return=c,c=a):(k=Tr(d.type,d.key,d.props,null,c.mode,k),k.ref=vt(c,a,d),k.return=c,c=k)}return i(c);case Mn:e:{for(_=d.key;a!==null;){if(a.key===_)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=Kl(d,c.mode,k),a.return=c,c=a}return i(c);case qe:return _=d._init,z(c,a,_(d._payload),k)}if(kt(d))return m(c,a,d,k);if(ft(d))return h(c,a,d,k);mr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,d),a.return=c,c=a):(t(c,a),a=Ql(d,c.mode,k),a.return=c,c=a),i(c)):t(c,a)}return z}var tt=fa(!0),da=fa(!1),bt={},Ue=vn(bt),Vt=vn(bt),Ht=vn(bt);function Cn(e){if(e===bt)throw Error(S(174));return e}function vi(e,n){switch(M(Ht,n),M(Vt,e),M(Ue,bt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ro(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ro(n,e)}O(Ue),M(Ue,n)}function rt(){O(Ue),O(Vt),O(Ht)}function pa(e){Cn(Ht.current);var n=Cn(Ue.current),t=ro(n,e.type);n!==t&&(M(Vt,e),M(Ue,t))}function gi(e){Vt.current===e&&(O(Ue),O(Vt))}var A=vn(0);function Yr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ul=[];function yi(){for(var e=0;et?t:4,e(!0);var r=Al.transition;Al.transition={};try{e(!1),n()}finally{R=t,Al.transition=r}}function ja(){return Ne().memoizedState}function ad(e,n,t){var r=fn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ta(e))La(n,t);else if(t=ua(e,n,t,r),t!==null){var l=ue();Ie(t,e,r,l),Da(t,n,r)}}function cd(e,n,t){var r=fn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ta(e))La(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var i=n.lastRenderedState,u=o(i,t);if(l.hasEagerState=!0,l.eagerState=u,Re(u,i)){var s=n.interleaved;s===null?(l.next=l,mi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ua(e,n,l,r),t!==null&&(l=ue(),Ie(t,e,r,l),Da(t,n,r))}}function Ta(e){var n=e.alternate;return e===W||n!==null&&n===W}function La(e,n){zt=Xr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Da(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ei(e,t)}}var Gr={readContext:_e,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},fd={readContext:_e,useCallback:function(e,n){return Fe().memoizedState=[e,n===void 0?null:n],e},useContext:_e,useEffect:Nu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Nr(4194308,4,Ca.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Nr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Nr(4,2,e,n)},useMemo:function(e,n){var t=Fe();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Fe();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=ad.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var n=Fe();return e={current:e},n.memoizedState=e},useState:_u,useDebugValue:Ei,useDeferredValue:function(e){return Fe().memoizedState=e},useTransition:function(){var e=_u(!1),n=e[0];return e=sd.bind(null,e[1]),Fe().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=W,l=Fe();if(U){if(t===void 0)throw Error(S(407));t=t()}else{if(t=n(),q===null)throw Error(S(349));jn&30||va(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,Nu(ya.bind(null,r,o,e),[e]),r.flags|=2048,Yt(9,ga.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=Fe(),n=q.identifierPrefix;if(U){var t=He,r=Ve;t=(r&~(1<<32-De(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Qt++,0")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{El=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?wt(e):""}function Wc(e){switch(e.tag){case 5:return wt(e.type);case 16:return wt("Lazy");case 13:return wt("Suspense");case 19:return wt("SuspenseList");case 0:case 2:case 15:return e=Cl(e.type,!1),e;case 11:return e=Cl(e.type.render,!1),e;case 1:return e=Cl(e.type,!0),e;default:return""}}function ql(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case Mn:return"Portal";case Gl:return"Profiler";case Go:return"StrictMode";case Zl:return"Suspense";case Jl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cs:return(e.displayName||"Context")+".Consumer";case as:return(e._context.displayName||"Context")+".Provider";case Zo:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jo:return n=e.displayName||null,n!==null?n:ql(e.type)||"Memo";case qe:n=e._payload,e=e._init;try{return ql(e(n))}catch{}}return null}function Bc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ql(n);case 8:return n===Go?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ds(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Vc(e){var n=ds(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function lr(e){e._valueTracker||(e._valueTracker=Vc(e))}function ps(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=ds(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Lr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bl(e,n){var t=n.checked;return B({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Vi(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=pn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ms(e,n){n=n.checked,n!=null&&Xo(e,"checked",n,!1)}function eo(e,n){ms(e,n);var t=pn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?no(e,n.type,t):n.hasOwnProperty("defaultValue")&&no(e,n.type,pn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Hi(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function no(e,n,t){(n!=="number"||Lr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var kt=Array.isArray;function Yn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function It(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Et={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Hc=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(e){Hc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Et[n]=Et[e]})});function ys(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Et.hasOwnProperty(e)&&Et[e]?(""+n).trim():n+"px"}function ws(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=ys(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Qc=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lo(e,n){if(n){if(Qc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(S(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(S(61))}if(n.style!=null&&typeof n.style!="object")throw Error(S(62))}}function oo(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";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 io=null;function qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uo=null,Xn=null,Gn=null;function Yi(e){if(e=qt(e)){if(typeof uo!="function")throw Error(S(280));var n=e.stateNode;n&&(n=ul(n),uo(e.stateNode,e.type,n))}}function ks(e){Xn?Gn?Gn.push(e):Gn=[e]:Xn=e}function Ss(){if(Xn){var e=Xn,n=Gn;if(Gn=Xn=null,Yi(e),n)for(e=0;e>>=0,e===0?32:31-(tf(e)/rf|0)|0}var ir=64,ur=4194304;function St(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=t&268435455;if(i!==0){var u=i&~l;u!==0?r=St(u):(o&=i,o!==0&&(r=St(o)))}else i=t&~l,i!==0?r=St(i):o!==0&&(r=St(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Zt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-De(n),e[n]=t}function sf(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_t),tu=" ",ru=!1;function Ws(e,n){switch(e){case"keyup":return Ff.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function $f(e,n){switch(e){case"compositionend":return Bs(n);case"keypress":return n.which!==32?null:(ru=!0,tu);case"textInput":return e=n.data,e===tu&&ru?null:e;default:return null}}function Uf(e,n){if(On)return e==="compositionend"||!ii&&Ws(e,n)?(e=Us(),xr=ri=tn=null,On=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=uu(t)}}function Ks(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Ks(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ys(){for(var e=window,n=Lr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Lr(e.document)}return n}function ui(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Xf(e){var n=Ys(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Ks(t.ownerDocument.documentElement,t)){if(r!==null&&ui(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=su(t,o);var i=su(t,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(i.node,i.offset)):(n.setEnd(i.node,i.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,$n=null,mo=null,Pt=null,ho=!1;function au(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;ho||$n==null||$n!==Lr(r)||(r=$n,"selectionStart"in r&&ui(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}),Pt&&Ut(Pt,r)||(Pt=r,r=$r(mo,"onSelect"),0Wn||(e.current=So[Wn],So[Wn]=null,Wn--)}function M(e,n){Wn++,So[Wn]=e.current,e.current=n}var mn={},oe=vn(mn),de=vn(!1),Pn=mn;function et(e,n){var t=e.type.contextTypes;if(!t)return mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Ar(){O(de),O(oe)}function vu(e,n,t){if(oe.current!==mn)throw Error(S(168));M(oe,n),M(de,t)}function ta(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(S(108,Bc(e)||"Unknown",l));return B({},t,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,Pn=oe.current,M(oe,e),M(de,de.current),!0}function gu(e,n,t){var r=e.stateNode;if(!r)throw Error(S(169));t?(e=ta(e,n,Pn),r.__reactInternalMemoizedMergedChildContext=e,O(de),O(oe),M(oe,e)):O(de),M(de,t)}var Be=null,sl=!1,$l=!1;function ra(e){Be===null?Be=[e]:Be.push(e)}function id(e){sl=!0,ra(e)}function gn(){if(!$l&&Be!==null){$l=!0;var e=0,n=R;try{var t=Be;for(R=1;e>=i,l-=i,Ve=1<<32-De(n)+l|t<P?(H=N,N=null):H=N.sibling;var D=p(c,N,d[P],k);if(D===null){N===null&&(N=H);break}e&&N&&D.alternate===null&&n(c,N),a=o(D,a,P),_===null?E=D:_.sibling=D,_=D,N=H}if(P===d.length)return t(c,N),U&&kn(c,P),E;if(N===null){for(;PP?(H=N,N=null):H=N.sibling;var Pe=p(c,N,D.value,k);if(Pe===null){N===null&&(N=H);break}e&&N&&Pe.alternate===null&&n(c,N),a=o(Pe,a,P),_===null?E=Pe:_.sibling=Pe,_=Pe,N=H}if(D.done)return t(c,N),U&&kn(c,P),E;if(N===null){for(;!D.done;P++,D=d.next())D=v(c,D.value,k),D!==null&&(a=o(D,a,P),_===null?E=D:_.sibling=D,_=D);return U&&kn(c,P),E}for(N=r(c,N);!D.done;P++,D=d.next())D=g(N,c,P,D.value,k),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?P:D.key),a=o(D,a,P),_===null?E=D:_.sibling=D,_=D);return e&&N.forEach(function(at){return n(c,at)}),U&&kn(c,P),E}function z(c,a,d,k){if(typeof d=="object"&&d!==null&&d.type===Fn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case rr:e:{for(var E=d.key,_=a;_!==null;){if(_.key===E){if(E=d.type,E===Fn){if(_.tag===7){t(c,_.sibling),a=l(_,d.props.children),a.return=c,c=a;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===qe&&Cu(E)===_.type){t(c,_.sibling),a=l(_,d.props),a.ref=vt(c,_,d),a.return=c,c=a;break e}t(c,_);break}else n(c,_);_=_.sibling}d.type===Fn?(a=Nn(d.props.children,c.mode,k,d.key),a.return=c,c=a):(k=Tr(d.type,d.key,d.props,null,c.mode,k),k.ref=vt(c,a,d),k.return=c,c=k)}return i(c);case Mn:e:{for(_=d.key;a!==null;){if(a.key===_)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=Kl(d,c.mode,k),a.return=c,c=a}return i(c);case qe:return _=d._init,z(c,a,_(d._payload),k)}if(kt(d))return m(c,a,d,k);if(ft(d))return h(c,a,d,k);mr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,d),a.return=c,c=a):(t(c,a),a=Ql(d,c.mode,k),a.return=c,c=a),i(c)):t(c,a)}return z}var tt=fa(!0),da=fa(!1),bt={},Ue=vn(bt),Vt=vn(bt),Ht=vn(bt);function Cn(e){if(e===bt)throw Error(S(174));return e}function vi(e,n){switch(M(Ht,n),M(Vt,e),M(Ue,bt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ro(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ro(n,e)}O(Ue),M(Ue,n)}function rt(){O(Ue),O(Vt),O(Ht)}function pa(e){Cn(Ht.current);var n=Cn(Ue.current),t=ro(n,e.type);n!==t&&(M(Vt,e),M(Ue,t))}function gi(e){Vt.current===e&&(O(Ue),O(Vt))}var A=vn(0);function Yr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ul=[];function yi(){for(var e=0;et?t:4,e(!0);var r=Al.transition;Al.transition={};try{e(!1),n()}finally{R=t,Al.transition=r}}function ja(){return Ne().memoizedState}function cd(e,n,t){var r=fn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ta(e))La(n,t);else if(t=ua(e,n,t,r),t!==null){var l=ue();Ie(t,e,r,l),Da(t,n,r)}}function fd(e,n,t){var r=fn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ta(e))La(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var i=n.lastRenderedState,u=o(i,t);if(l.hasEagerState=!0,l.eagerState=u,Re(u,i)){var s=n.interleaved;s===null?(l.next=l,mi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ua(e,n,l,r),t!==null&&(l=ue(),Ie(t,e,r,l),Da(t,n,r))}}function Ta(e){var n=e.alternate;return e===W||n!==null&&n===W}function La(e,n){zt=Xr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Da(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,ei(e,t)}}var Gr={readContext:_e,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},dd={readContext:_e,useCallback:function(e,n){return Fe().memoizedState=[e,n===void 0?null:n],e},useContext:_e,useEffect:Nu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Nr(4194308,4,Ca.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Nr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Nr(4,2,e,n)},useMemo:function(e,n){var t=Fe();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Fe();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=cd.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var n=Fe();return e={current:e},n.memoizedState=e},useState:_u,useDebugValue:Ei,useDeferredValue:function(e){return Fe().memoizedState=e},useTransition:function(){var e=_u(!1),n=e[0];return e=ad.bind(null,e[1]),Fe().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=W,l=Fe();if(U){if(t===void 0)throw Error(S(407));t=t()}else{if(t=n(),q===null)throw Error(S(349));jn&30||va(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,Nu(ya.bind(null,r,o,e),[e]),r.flags|=2048,Yt(9,ga.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=Fe(),n=q.identifierPrefix;if(U){var t=He,r=Ve;t=(r&~(1<<32-De(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Qt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),t==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[Oe]=n,e[Bt]=r,Wa(e,n,!1,!1),n.stateNode=e;e:{switch(i=oo(t,r),t){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;lot&&(n.flags|=128,r=!0,gt(o,!1),n.lanes=4194304)}else{if(!r)if(e=Yr(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),gt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!U)return re(n),null}else 2*K()-o.renderingStartTime>ot&&t!==1073741824&&(n.flags|=128,r=!0,gt(o,!1),n.lanes=4194304);o.isBackwards?(i.sibling=n.child,n.child=i):(t=o.last,t!==null?t.sibling=i:n.child=i,o.last=i)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=K(),n.sibling=null,t=A.current,M(A,r?t&1|2:t&1),n):(re(n),null);case 22:case 23:return ji(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?he&1073741824&&(re(n),n.subtreeFlags&6&&(n.flags|=8192)):re(n),null;case 24:return null;case 25:return null}throw Error(S(156,n.tag))}function wd(e,n){switch(ai(n),n.tag){case 1:return pe(n.type)&&Ar(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return rt(),O(de),O(oe),yi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return gi(n),null;case 13:if(O(A),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(S(340));nt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return O(A),null;case 4:return rt(),null;case 10:return pi(n.type._context),null;case 22:case 23:return ji(),null;case 24:return null;default:return null}}var vr=!1,le=!1,kd=typeof WeakSet=="function"?WeakSet:Set,x=null;function Qn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){V(e,n,r)}else t.current=null}function Io(e,n,t){try{t()}catch(r){V(e,n,r)}}var Mu=!1;function Sd(e,n){if(vo=Fr,e=Ys(),ui(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var i=0,u=-1,s=-1,f=0,y=0,v=e,p=null;n:for(;;){for(var g;v!==t||l!==0&&v.nodeType!==3||(u=i+l),v!==o||r!==0&&v.nodeType!==3||(s=i+r),v.nodeType===3&&(i+=v.nodeValue.length),(g=v.firstChild)!==null;)p=v,v=g;for(;;){if(v===e)break n;if(p===t&&++f===l&&(u=i),p===o&&++y===r&&(s=i),(g=v.nextSibling)!==null)break;v=p,p=v.parentNode}v=g}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(go={focusedElem:e,selectionRange:t},Fr=!1,x=n;x!==null;)if(n=x,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,x=e;else for(;x!==null;){n=x;try{var m=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var h=m.memoizedProps,z=m.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?h:je(n.type,h),z);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(k){V(n,n.return,k)}if(e=n.sibling,e!==null){e.return=n.return,x=e;break}x=n.return}return m=Mu,Mu=!1,m}function jt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Io(n,t,o)}l=l.next}while(l!==r)}}function fl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Ro(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Ha(e){var n=e.alternate;n!==null&&(e.alternate=null,Ha(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Oe],delete n[Bt],delete n[ko],delete n[rd],delete n[ld])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qa(e){return e.tag===5||e.tag===3||e.tag===4}function Fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qa(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Ur));else if(r!==4&&(e=e.child,e!==null))for(Mo(e,n,t),e=e.sibling;e!==null;)Mo(e,n,t),e=e.sibling}function Fo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fo(e,n,t),e=e.sibling;e!==null;)Fo(e,n,t),e=e.sibling}var b=null,Te=!1;function Je(e,n,t){for(t=t.child;t!==null;)Ka(e,n,t),t=t.sibling}function Ka(e,n,t){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(rl,t)}catch{}switch(t.tag){case 5:le||Qn(t,n);case 6:var r=b,l=Te;b=null,Je(e,n,t),b=r,Te=l,b!==null&&(Te?(e=b,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):b.removeChild(t.stateNode));break;case 18:b!==null&&(Te?(e=b,t=t.stateNode,e.nodeType===8?Ol(e.parentNode,t):e.nodeType===1&&Ol(e,t),Ot(e)):Ol(b,t.stateNode));break;case 4:r=b,l=Te,b=t.stateNode.containerInfo,Te=!0,Je(e,n,t),b=r,Te=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Io(t,n,i),l=l.next}while(l!==r)}Je(e,n,t);break;case 1:if(!le&&(Qn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){V(t,n,u)}Je(e,n,t);break;case 21:Je(e,n,t);break;case 22:t.mode&1?(le=(r=le)||t.memoizedState!==null,Je(e,n,t),le=r):Je(e,n,t);break;default:Je(e,n,t)}}function Ou(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new kd),n.forEach(function(r){var l=Td.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ze(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ed(r/1960))-r,10e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,qr=0,I&6)throw Error(S(331));var l=I;for(I|=4,x=e.current;x!==null;){var o=x,i=o.child;if(x.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-Pi?_n(e,0):Ni|=t),me(e,n)}function ec(e,n){n===0&&(e.mode&1?(n=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):n=1);var t=ue();e=Xe(e,n),e!==null&&(Zt(e,n,t),me(e,t))}function jd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),ec(e,t)}function Td(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(n),ec(e,t)}var nc;nc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||de.current)fe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return fe=!1,gd(e,n,t);fe=!!(e.flags&131072)}else fe=!1,U&&n.flags&1048576&&la(n,Vr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Pr(e,n),e=n.pendingProps;var l=et(n,oe.current);Jn(n,t),l=ki(null,n,r,e,l,t);var o=Si();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pe(r)?(o=!0,Wr(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hi(n),l.updater=al,n.stateNode=l,l._reactInternals=n,No(n,r,e,t),n=jo(null,n,r,!0,o,t)):(n.tag=0,U&&o&&si(n),ie(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Pr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Dd(r),e=je(r,e),l){case 0:n=zo(null,n,r,e,t);break e;case 1:n=Du(null,n,r,e,t);break e;case 11:n=Tu(null,n,r,e,t);break e;case 14:n=Lu(null,n,r,je(r.type,e),t);break e}throw Error(S(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),zo(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),Du(e,n,r,l,t);case 3:e:{if($a(n),e===null)throw Error(S(387));r=n.pendingProps,o=n.memoizedState,l=o.element,sa(e,n),Kr(n,r,null,t);var i=n.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=lt(Error(S(423)),n),n=Iu(e,n,r,t,l);break e}else if(r!==l){l=lt(Error(S(424)),n),n=Iu(e,n,r,t,l);break e}else for(ve=sn(n.stateNode.containerInfo.firstChild),ge=n,U=!0,Le=null,t=da(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(nt(),r===l){n=Ge(e,n,t);break e}ie(e,n,r,t)}n=n.child}return n;case 5:return pa(n),e===null&&Eo(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,yo(r,l)?i=null:o!==null&&yo(r,o)&&(n.flags|=32),Oa(e,n),ie(e,n,i,t),n.child;case 6:return e===null&&Eo(n),null;case 13:return Ua(e,n,t);case 4:return vi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=tt(n,null,r,t):ie(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),Tu(e,n,r,l,t);case 7:return ie(e,n,n.pendingProps,t),n.child;case 8:return ie(e,n,n.pendingProps.children,t),n.child;case 12:return ie(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,i=l.value,M(Hr,r._currentValue),r._currentValue=i,o!==null)if(Re(o.value,i)){if(o.children===l.children&&!de.current){n=Ge(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Qe(-1,t&-t),s.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var y=f.pending;y===null?s.next=s:(s.next=y.next,y.next=s),f.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Co(o.return,t,n),u.lanes|=t;break}s=s.next}}else if(o.tag===10)i=o.type===n.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(S(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),Co(i,t,n),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===n){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ie(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Jn(n,t),l=_e(l),r=r(l),n.flags|=1,ie(e,n,r,t),n.child;case 14:return r=n.type,l=je(r,n.pendingProps),l=je(r.type,l),Lu(e,n,r,l,t);case 15:return Ma(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),Pr(e,n),n.tag=1,pe(r)?(e=!0,Wr(n)):e=!1,Jn(n,t),ca(n,r,l),No(n,r,l,t),jo(null,n,r,!0,e,t);case 19:return Aa(e,n,t);case 22:return Fa(e,n,t)}throw Error(S(156,n.tag))};function tc(e,n){return zs(e,n)}function Ld(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 Ee(e,n,t,r){return new Ld(e,n,t,r)}function Li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dd(e){if(typeof e=="function")return Li(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zo)return 11;if(e===Jo)return 14}return 2}function dn(e,n){var t=e.alternate;return t===null?(t=Ee(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Tr(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")Li(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fn:return Nn(t.children,l,o,n);case Go:i=8,l|=8;break;case Gl:return e=Ee(12,t,n,l|2),e.elementType=Gl,e.lanes=o,e;case Zl:return e=Ee(13,t,n,l),e.elementType=Zl,e.lanes=o,e;case Jl:return e=Ee(19,t,n,l),e.elementType=Jl,e.lanes=o,e;case fs:return pl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case as:i=10;break e;case cs:i=9;break e;case Zo:i=11;break e;case Jo:i=14;break e;case qe:i=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return n=Ee(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function Nn(e,n,t,r){return e=Ee(7,e,r,n),e.lanes=t,e}function pl(e,n,t,r){return e=Ee(22,e,r,n),e.elementType=fs,e.lanes=t,e.stateNode={isHidden:!1},e}function Ql(e,n,t){return e=Ee(6,e,null,n),e.lanes=t,e}function Kl(e,n,t){return n=Ee(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Id(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nl(0),this.expirationTimes=Nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Di(e,n,t,r,l,o,i,u,s){return e=new Id(e,n,t,u,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=Ee(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},hi(o),e}function Rd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ic)}catch(e){console.error(e)}}ic(),ls.exports=we;var Ud=ls.exports,Qu=Ud;Yl.createRoot=Qu.createRoot,Yl.hydrateRoot=Qu.hydrateRoot;function uc({text:e}){const[n,t]=$.useState(e??"");return w.jsx("div",{className:"notepad",children:w.jsx("textarea",{value:n,onChange:r=>t(r.value)})})}class Ad{constructor(n,t){this.fs=n,this.current=this.fs.find("/home/visitor")??n.root,this.bin=this.fs.find("/usr/bin"),this.print=r=>t(l=>[...l,r]),this.error=r=>t(l=>[...l,r]),this.clear=()=>t([])}}function Wd(e,n,t,r){const l=`visitor@winux ${n.fs.getPath(n.current)}$ `;r(s=>[...s,l+e+` -`]);let o="";const i=/>\s*\w+/g,u=e.replace(i,s=>(o=s.trim().slice(1),""));if(o&&o!==""){let s="";n.print=f=>s+=f,Ku(u,n,t),n.fs.saveToFile(n.current,o.trim(),s)}else n.print=n.error,Ku(u,n,t)}function Ku(e,n,t){let[r,...l]=e.split(" ").filter(o=>o!=="");if(r)switch(r){case"cd":Qd(l,n);break;case"echo":Yd(l,n);break;case"help":Xd(n);break;default:const o=n.fs.get(n.bin,r);o?o.type==="exe"?Bd(o,r,l,n):o.type==="app"?Vd(o,t):Wo(n,`${r}: file not executable`):Wo(n,`${r}: command not found`);break}}function Bd(e,n,t,r){const l=new Function("env","args",`${e.value} +`+o.stack}return{value:e,source:n,stack:l,digest:null}}function Vl(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function Po(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var hd=typeof WeakMap=="function"?WeakMap:Map;function Ia(e,n,t){t=Qe(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Jr||(Jr=!0,Oo=r),Po(e,n)},t}function Ra(e,n,t){t=Qe(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Po(e,n)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Po(e,n),typeof r!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var i=n.stack;this.componentDidCatch(n.value,{componentStack:i!==null?i:""})}),t}function Pu(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new hd;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=jd.bind(null,e,n,t),n.then(e,e))}function zu(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function ju(e,n,t,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=Qe(-1,1),n.tag=2,an(t,n,1))),t.lanes|=1),e)}var vd=Ze.ReactCurrentOwner,fe=!1;function ie(e,n,t,r){n.child=e===null?da(n,null,t,r):tt(n,e.child,t,r)}function Tu(e,n,t,r,l){t=t.render;var o=n.ref;return Jn(n,l),r=ki(e,n,t,r,o,l),t=Si(),e!==null&&!fe?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ge(e,n,l)):(U&&t&&si(n),n.flags|=1,ie(e,n,r,l),n.child)}function Lu(e,n,t,r,l){if(e===null){var o=t.type;return typeof o=="function"&&!Li(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=o,Ma(e,n,o,r,l)):(e=Tr(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(t=t.compare,t=t!==null?t:Ut,t(i,r)&&e.ref===n.ref)return Ge(e,n,l)}return n.flags|=1,e=dn(o,r),e.ref=n.ref,e.return=n,n.child=e}function Ma(e,n,t,r,l){if(e!==null){var o=e.memoizedProps;if(Ut(o,r)&&e.ref===n.ref)if(fe=!1,n.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(fe=!0);else return n.lanes=e.lanes,Ge(e,n,l)}return zo(e,n,t,r,l)}function Fa(e,n,t){var r=n.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},M(Kn,he),he|=t;else{if(!(t&1073741824))return e=o!==null?o.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,M(Kn,he),he|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:t,M(Kn,he),he|=r}else o!==null?(r=o.baseLanes|t,n.memoizedState=null):r=t,M(Kn,he),he|=r;return ie(e,n,l,t),n.child}function Oa(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function zo(e,n,t,r,l){var o=pe(t)?Pn:oe.current;return o=et(n,o),Jn(n,l),t=ki(e,n,t,r,o,l),r=Si(),e!==null&&!fe?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ge(e,n,l)):(U&&r&&si(n),n.flags|=1,ie(e,n,t,l),n.child)}function Du(e,n,t,r,l){if(pe(t)){var o=!0;Wr(n)}else o=!1;if(Jn(n,l),n.stateNode===null)Pr(e,n),ca(n,t,r),No(n,t,r,l),r=!0;else if(e===null){var i=n.stateNode,u=n.memoizedProps;i.props=u;var s=i.context,f=t.contextType;typeof f=="object"&&f!==null?f=_e(f):(f=pe(t)?Pn:oe.current,f=et(n,f));var y=t.getDerivedStateFromProps,v=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function";v||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==f)&&Eu(n,i,r,f),be=!1;var p=n.memoizedState;i.state=p,Kr(n,r,i,l),s=n.memoizedState,u!==r||p!==s||de.current||be?(typeof y=="function"&&(_o(n,t,y,r),s=n.memoizedState),(u=be||xu(n,t,u,r,p,s,f))?(v||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(n.flags|=4194308)):(typeof i.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),i.props=r,i.state=s,i.context=f,r=u):(typeof i.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{i=n.stateNode,sa(e,n),u=n.memoizedProps,f=n.type===n.elementType?u:je(n.type,u),i.props=f,v=n.pendingProps,p=i.context,s=t.contextType,typeof s=="object"&&s!==null?s=_e(s):(s=pe(t)?Pn:oe.current,s=et(n,s));var g=t.getDerivedStateFromProps;(y=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==v||p!==s)&&Eu(n,i,r,s),be=!1,p=n.memoizedState,i.state=p,Kr(n,r,i,l);var m=n.memoizedState;u!==v||p!==m||de.current||be?(typeof g=="function"&&(_o(n,t,g,r),m=n.memoizedState),(f=be||xu(n,t,f,r,p,m,s)||!1)?(y||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,s)),typeof i.componentDidUpdate=="function"&&(n.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),i.props=r,i.state=m,i.context=s,r=f):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),r=!1)}return jo(e,n,t,r,o,l)}function jo(e,n,t,r,l,o){Oa(e,n);var i=(n.flags&128)!==0;if(!r&&!i)return l&&gu(n,t,!1),Ge(e,n,o);r=n.stateNode,vd.current=n;var u=i&&typeof t.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&i?(n.child=tt(n,e.child,null,o),n.child=tt(n,null,u,o)):ie(e,n,u,o),n.memoizedState=r.state,l&&gu(n,t,!0),n.child}function $a(e){var n=e.stateNode;n.pendingContext?vu(e,n.pendingContext,n.pendingContext!==n.context):n.context&&vu(e,n.context,!1),vi(e,n.containerInfo)}function Iu(e,n,t,r,l){return nt(),ci(l),n.flags|=256,ie(e,n,t,r),n.child}var To={dehydrated:null,treeContext:null,retryLane:0};function Lo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ua(e,n,t){var r=n.pendingProps,l=A.current,o=!1,i=(n.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),M(A,l&1),e===null)return Eo(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(i=r.children,e=r.fallback,o?(r=n.mode,o=n.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=pl(i,r,0,null),e=Nn(e,r,t,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=Lo(t),n.memoizedState=To,e):Ci(n,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return gd(e,n,i,r,u,l,t);if(o){o=r.fallback,i=n.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&n.child!==l?(r=n.child,r.childLanes=0,r.pendingProps=s,n.deletions=null):(r=dn(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=dn(u,o):(o=Nn(o,i,t,null),o.flags|=2),o.return=n,r.return=n,r.sibling=o,n.child=r,r=o,o=n.child,i=e.child.memoizedState,i=i===null?Lo(t):{baseLanes:i.baseLanes|t,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~t,n.memoizedState=To,r}return o=e.child,e=o.sibling,r=dn(o,{mode:"visible",children:r.children}),!(n.mode&1)&&(r.lanes=t),r.return=n,r.sibling=null,e!==null&&(t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function Ci(e,n){return n=pl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function hr(e,n,t,r){return r!==null&&ci(r),tt(n,e.child,null,t),e=Ci(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function gd(e,n,t,r,l,o,i){if(t)return n.flags&256?(n.flags&=-257,r=Vl(Error(S(422))),hr(e,n,i,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(o=r.fallback,l=n.mode,r=pl({mode:"visible",children:r.children},l,0,null),o=Nn(o,l,i,null),o.flags|=2,r.return=n,o.return=n,r.sibling=o,n.child=r,n.mode&1&&tt(n,e.child,null,i),n.child.memoizedState=Lo(i),n.memoizedState=To,o);if(!(n.mode&1))return hr(e,n,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(S(419)),r=Vl(o,r,void 0),hr(e,n,i,r)}if(u=(i&e.childLanes)!==0,fe||u){if(r=q,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Xe(e,l),Ie(r,e,l,-1))}return Ti(),r=Vl(Error(S(421))),hr(e,n,i,r)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=Td.bind(null,e),l._reactRetry=n,null):(e=o.treeContext,ve=sn(l.nextSibling),ge=n,U=!0,Le=null,e!==null&&(Se[xe++]=Ve,Se[xe++]=He,Se[xe++]=zn,Ve=e.id,He=e.overflow,zn=n),n=Ci(n,r.children),n.flags|=4096,n)}function Ru(e,n,t){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Co(e.return,n,t)}function Hl(e,n,t,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(o.isBackwards=n,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=t,o.tailMode=l)}function Aa(e,n,t){var r=n.pendingProps,l=r.revealOrder,o=r.tail;if(ie(e,n,r.children,t),r=A.current,r&2)r=r&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ru(e,t,n);else if(e.tag===19)Ru(e,t,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(M(A,r),!(n.mode&1))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;t!==null;)e=t.alternate,e!==null&&Yr(e)===null&&(l=t),t=t.sibling;t=l,t===null?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),Hl(n,!1,l,t,o);break;case"backwards":for(t=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&Yr(e)===null){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}Hl(n,!0,t,null,o);break;case"together":Hl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Pr(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Ge(e,n,t){if(e!==null&&(n.dependencies=e.dependencies),Tn|=n.lanes,!(t&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(S(153));if(n.child!==null){for(e=n.child,t=dn(e,e.pendingProps),n.child=t,t.return=n;e.sibling!==null;)e=e.sibling,t=t.sibling=dn(e,e.pendingProps),t.return=n;t.sibling=null}return n.child}function yd(e,n,t){switch(n.tag){case 3:$a(n),nt();break;case 5:pa(n);break;case 1:pe(n.type)&&Wr(n);break;case 4:vi(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;M(Hr,r._currentValue),r._currentValue=l;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(M(A,A.current&1),n.flags|=128,null):t&n.child.childLanes?Ua(e,n,t):(M(A,A.current&1),e=Ge(e,n,t),e!==null?e.sibling:null);M(A,A.current&1);break;case 19:if(r=(t&n.childLanes)!==0,e.flags&128){if(r)return Aa(e,n,t);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),M(A,A.current),r)break;return null;case 22:case 23:return n.lanes=0,Fa(e,n,t)}return Ge(e,n,t)}var Wa,Do,Ba,Va;Wa=function(e,n){for(var t=n.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};Do=function(){};Ba=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,Cn(Ue.current);var o=null;switch(t){case"input":l=bl(e,l),r=bl(e,r),o=[];break;case"select":l=B({},l,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":l=to(e,l),r=to(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ur)}lo(t,r);var i;t=null;for(f in l)if(!r.hasOwnProperty(f)&&l.hasOwnProperty(f)&&l[f]!=null)if(f==="style"){var u=l[f];for(i in u)u.hasOwnProperty(i)&&(t||(t={}),t[i]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Dt.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var s=r[f];if(u=l!=null?l[f]:void 0,r.hasOwnProperty(f)&&s!==u&&(s!=null||u!=null))if(f==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(t||(t={}),t[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(t||(t={}),t[i]=s[i])}else t||(o||(o=[]),o.push(f,t)),t=s;else f==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(f,s)):f==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(f,""+s):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Dt.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&F("scroll",e),o||u===s||(o=[])):(o=o||[]).push(f,s))}t&&(o=o||[]).push("style",t);var f=o;(n.updateQueue=f)&&(n.flags|=4)}};Va=function(e,n,t,r){t!==r&&(n.flags|=4)};function gt(e,n){if(!U)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;n!==null;)n.alternate!==null&&(t=n),n=n.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function re(e){var n=e.alternate!==null&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function wd(e,n,t){var r=n.pendingProps;switch(ai(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return re(n),null;case 1:return pe(n.type)&&Ar(),re(n),null;case 3:return r=n.stateNode,rt(),O(de),O(oe),yi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pr(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Le!==null&&(Ao(Le),Le=null))),Do(e,n),re(n),null;case 5:gi(n);var l=Cn(Ht.current);if(t=n.type,e!==null&&n.stateNode!=null)Ba(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(S(166));return re(n),null}if(e=Cn(Ue.current),pr(n)){r=n.stateNode,t=n.type;var o=n.memoizedProps;switch(r[Oe]=n,r[Bt]=o,e=(n.mode&1)!==0,t){case"dialog":F("cancel",r),F("close",r);break;case"iframe":case"object":case"embed":F("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),t==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[Oe]=n,e[Bt]=r,Wa(e,n,!1,!1),n.stateNode=e;e:{switch(i=oo(t,r),t){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;lot&&(n.flags|=128,r=!0,gt(o,!1),n.lanes=4194304)}else{if(!r)if(e=Yr(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),gt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!U)return re(n),null}else 2*K()-o.renderingStartTime>ot&&t!==1073741824&&(n.flags|=128,r=!0,gt(o,!1),n.lanes=4194304);o.isBackwards?(i.sibling=n.child,n.child=i):(t=o.last,t!==null?t.sibling=i:n.child=i,o.last=i)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=K(),n.sibling=null,t=A.current,M(A,r?t&1|2:t&1),n):(re(n),null);case 22:case 23:return ji(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?he&1073741824&&(re(n),n.subtreeFlags&6&&(n.flags|=8192)):re(n),null;case 24:return null;case 25:return null}throw Error(S(156,n.tag))}function kd(e,n){switch(ai(n),n.tag){case 1:return pe(n.type)&&Ar(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return rt(),O(de),O(oe),yi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return gi(n),null;case 13:if(O(A),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(S(340));nt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return O(A),null;case 4:return rt(),null;case 10:return pi(n.type._context),null;case 22:case 23:return ji(),null;case 24:return null;default:return null}}var vr=!1,le=!1,Sd=typeof WeakSet=="function"?WeakSet:Set,x=null;function Qn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){V(e,n,r)}else t.current=null}function Io(e,n,t){try{t()}catch(r){V(e,n,r)}}var Mu=!1;function xd(e,n){if(vo=Fr,e=Ys(),ui(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var i=0,u=-1,s=-1,f=0,y=0,v=e,p=null;n:for(;;){for(var g;v!==t||l!==0&&v.nodeType!==3||(u=i+l),v!==o||r!==0&&v.nodeType!==3||(s=i+r),v.nodeType===3&&(i+=v.nodeValue.length),(g=v.firstChild)!==null;)p=v,v=g;for(;;){if(v===e)break n;if(p===t&&++f===l&&(u=i),p===o&&++y===r&&(s=i),(g=v.nextSibling)!==null)break;v=p,p=v.parentNode}v=g}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(go={focusedElem:e,selectionRange:t},Fr=!1,x=n;x!==null;)if(n=x,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,x=e;else for(;x!==null;){n=x;try{var m=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var h=m.memoizedProps,z=m.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?h:je(n.type,h),z);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(k){V(n,n.return,k)}if(e=n.sibling,e!==null){e.return=n.return,x=e;break}x=n.return}return m=Mu,Mu=!1,m}function jt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Io(n,t,o)}l=l.next}while(l!==r)}}function fl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Ro(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Ha(e){var n=e.alternate;n!==null&&(e.alternate=null,Ha(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Oe],delete n[Bt],delete n[ko],delete n[ld],delete n[od])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qa(e){return e.tag===5||e.tag===3||e.tag===4}function Fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qa(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Ur));else if(r!==4&&(e=e.child,e!==null))for(Mo(e,n,t),e=e.sibling;e!==null;)Mo(e,n,t),e=e.sibling}function Fo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fo(e,n,t),e=e.sibling;e!==null;)Fo(e,n,t),e=e.sibling}var b=null,Te=!1;function Je(e,n,t){for(t=t.child;t!==null;)Ka(e,n,t),t=t.sibling}function Ka(e,n,t){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(rl,t)}catch{}switch(t.tag){case 5:le||Qn(t,n);case 6:var r=b,l=Te;b=null,Je(e,n,t),b=r,Te=l,b!==null&&(Te?(e=b,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):b.removeChild(t.stateNode));break;case 18:b!==null&&(Te?(e=b,t=t.stateNode,e.nodeType===8?Ol(e.parentNode,t):e.nodeType===1&&Ol(e,t),Ot(e)):Ol(b,t.stateNode));break;case 4:r=b,l=Te,b=t.stateNode.containerInfo,Te=!0,Je(e,n,t),b=r,Te=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Io(t,n,i),l=l.next}while(l!==r)}Je(e,n,t);break;case 1:if(!le&&(Qn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){V(t,n,u)}Je(e,n,t);break;case 21:Je(e,n,t);break;case 22:t.mode&1?(le=(r=le)||t.memoizedState!==null,Je(e,n,t),le=r):Je(e,n,t);break;default:Je(e,n,t)}}function Ou(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new Sd),n.forEach(function(r){var l=Ld.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ze(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cd(r/1960))-r,10e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,qr=0,I&6)throw Error(S(331));var l=I;for(I|=4,x=e.current;x!==null;){var o=x,i=o.child;if(x.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-Pi?_n(e,0):Ni|=t),me(e,n)}function ec(e,n){n===0&&(e.mode&1?(n=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):n=1);var t=ue();e=Xe(e,n),e!==null&&(Zt(e,n,t),me(e,t))}function Td(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),ec(e,t)}function Ld(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(n),ec(e,t)}var nc;nc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||de.current)fe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return fe=!1,yd(e,n,t);fe=!!(e.flags&131072)}else fe=!1,U&&n.flags&1048576&&la(n,Vr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Pr(e,n),e=n.pendingProps;var l=et(n,oe.current);Jn(n,t),l=ki(null,n,r,e,l,t);var o=Si();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pe(r)?(o=!0,Wr(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hi(n),l.updater=al,n.stateNode=l,l._reactInternals=n,No(n,r,e,t),n=jo(null,n,r,!0,o,t)):(n.tag=0,U&&o&&si(n),ie(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Pr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Id(r),e=je(r,e),l){case 0:n=zo(null,n,r,e,t);break e;case 1:n=Du(null,n,r,e,t);break e;case 11:n=Tu(null,n,r,e,t);break e;case 14:n=Lu(null,n,r,je(r.type,e),t);break e}throw Error(S(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),zo(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),Du(e,n,r,l,t);case 3:e:{if($a(n),e===null)throw Error(S(387));r=n.pendingProps,o=n.memoizedState,l=o.element,sa(e,n),Kr(n,r,null,t);var i=n.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=lt(Error(S(423)),n),n=Iu(e,n,r,t,l);break e}else if(r!==l){l=lt(Error(S(424)),n),n=Iu(e,n,r,t,l);break e}else for(ve=sn(n.stateNode.containerInfo.firstChild),ge=n,U=!0,Le=null,t=da(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(nt(),r===l){n=Ge(e,n,t);break e}ie(e,n,r,t)}n=n.child}return n;case 5:return pa(n),e===null&&Eo(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,yo(r,l)?i=null:o!==null&&yo(r,o)&&(n.flags|=32),Oa(e,n),ie(e,n,i,t),n.child;case 6:return e===null&&Eo(n),null;case 13:return Ua(e,n,t);case 4:return vi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=tt(n,null,r,t):ie(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),Tu(e,n,r,l,t);case 7:return ie(e,n,n.pendingProps,t),n.child;case 8:return ie(e,n,n.pendingProps.children,t),n.child;case 12:return ie(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,i=l.value,M(Hr,r._currentValue),r._currentValue=i,o!==null)if(Re(o.value,i)){if(o.children===l.children&&!de.current){n=Ge(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Qe(-1,t&-t),s.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var y=f.pending;y===null?s.next=s:(s.next=y.next,y.next=s),f.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Co(o.return,t,n),u.lanes|=t;break}s=s.next}}else if(o.tag===10)i=o.type===n.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(S(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),Co(i,t,n),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===n){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ie(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Jn(n,t),l=_e(l),r=r(l),n.flags|=1,ie(e,n,r,t),n.child;case 14:return r=n.type,l=je(r,n.pendingProps),l=je(r.type,l),Lu(e,n,r,l,t);case 15:return Ma(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:je(r,l),Pr(e,n),n.tag=1,pe(r)?(e=!0,Wr(n)):e=!1,Jn(n,t),ca(n,r,l),No(n,r,l,t),jo(null,n,r,!0,e,t);case 19:return Aa(e,n,t);case 22:return Fa(e,n,t)}throw Error(S(156,n.tag))};function tc(e,n){return zs(e,n)}function Dd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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 Ee(e,n,t,r){return new Dd(e,n,t,r)}function Li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Id(e){if(typeof e=="function")return Li(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zo)return 11;if(e===Jo)return 14}return 2}function dn(e,n){var t=e.alternate;return t===null?(t=Ee(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Tr(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")Li(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fn:return Nn(t.children,l,o,n);case Go:i=8,l|=8;break;case Gl:return e=Ee(12,t,n,l|2),e.elementType=Gl,e.lanes=o,e;case Zl:return e=Ee(13,t,n,l),e.elementType=Zl,e.lanes=o,e;case Jl:return e=Ee(19,t,n,l),e.elementType=Jl,e.lanes=o,e;case fs:return pl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case as:i=10;break e;case cs:i=9;break e;case Zo:i=11;break e;case Jo:i=14;break e;case qe:i=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return n=Ee(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function Nn(e,n,t,r){return e=Ee(7,e,r,n),e.lanes=t,e}function pl(e,n,t,r){return e=Ee(22,e,r,n),e.elementType=fs,e.lanes=t,e.stateNode={isHidden:!1},e}function Ql(e,n,t){return e=Ee(6,e,null,n),e.lanes=t,e}function Kl(e,n,t){return n=Ee(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Rd(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nl(0),this.expirationTimes=Nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Di(e,n,t,r,l,o,i,u,s){return e=new Rd(e,n,t,u,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=Ee(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},hi(o),e}function Md(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ic)}catch(e){console.error(e)}}ic(),ls.exports=we;var Ad=ls.exports,Qu=Ad;Yl.createRoot=Qu.createRoot,Yl.hydrateRoot=Qu.hydrateRoot;function uc({text:e}){const[n,t]=$.useState(e??"");return w.jsx("div",{className:"notepad",children:w.jsx("textarea",{value:n,onChange:r=>t(r.value)})})}class Wd{constructor(n,t){this.fs=n,this.current=this.fs.find("/home/visitor")??n.root,this.bin=this.fs.find("/usr/bin"),this.print=r=>t(l=>[...l,r]),this.error=r=>t(l=>[...l,r]),this.clear=()=>t([])}}function Bd(e){const n=/"([^"]*)"|'([^']*)'|(\S+)/g,t=[];let r;for(;r=n.exec(e);){const o=r[1]||r[2]||r[3];t.push(o)}return[t.shift(),t]}function Vd(e,n,t,r){const l=`visitor@winux ${n.fs.getPath(n.current)}$ `;r(s=>[...s,l+e+` +`]);let o="";const i=/>\s*\w+/g,u=e.replace(i,s=>(o=s.trim().slice(1),""));if(o&&o!==""){let s="";n.print=f=>s+=f,Ku(u,n,t),n.fs.saveToFile(n.current,o.trim(),s)}else n.print=n.error,Ku(u,n,t)}function Ku(e,n,t){let[r,l]=Bd(e);if(r)switch(r){case"cd":Yd(n,l);break;case"echo":Gd(n,l);break;case"help":Zd(n);break;case"touch":sc(n,l);break;default:const o=n.fs.get(n.bin,r);o?o.type==="exe"?Hd(o,r,l,n):o.type==="app"?Qd(o,t):Wo(n,`${r}: file not executable`):Wo(n,`${r}: command not found`);break}}function Hd(e,n,t,r){const l=new Function("env","args",`${e.value} return main(env, args);`);try{return l(r,t)}catch{return r.error(`Error executing program '${n}' -`),1}}function Vd(e,n){n.add(e)}function Wo(e,n,t=1){return e.error(`bash: ${n} -`),t}const Hd=`function main(env, args) { +`),1}}function Qd(e,n){n.add(e)}function Wo(e,n,t=1){return e.error(`bash: ${n} +`),t}const Kd=`function main(env, args) { if (args.length !== 1) { env.error('bash: cat: Invalid number of arguments\\n'); return 1; @@ -55,11 +55,11 @@ return main(env, args);`);try{return l(r,t)}catch{return r.error(`Error executin env.error(\`bash: cat: file '\${args[0]}' doesn't exist\\n\`); return 1; -}`;function Qd(e,n){if(e.length<=0)return 0;const t=n.fs.changeDir(n.current,e[0]);return t?(n.current=t,0):Wo(n,`cd ${e[0]}: No such file or directory`)}const Kd=`function main(env, args) { +}`;function Yd(e,n){if(n.length<=0)return 0;const t=e.fs.changeDir(e.current,n[0]);return t?(e.current=t,0):Wo(e,`cd ${n[0]}: No such file or directory`)}const Xd=`function main(env, args) { env.clear(); return 0; -}`;function Yd(e,n){let t="";for(const r of e)t=`${t}${r} `;return n.print(t+` -`),0}function Xd(e){return e.print(`Welcome in winux by Martan03 +}`;function Gd(e,n){return e.print(n.join(" ")+` +`),0}function Zd(e){return e.print(`Welcome in winux by Martan03 Commands: cd [directory] @@ -68,7 +68,7 @@ Commands: prints the arguments help prints this help -`),0}const Gd=`function main(env, args) { +`),0}const Jd=`function main(env, args) { let ret = 0; if (args.length <= 0) args.push(''); @@ -87,7 +87,7 @@ Commands: env.print(res + '\\n'); } return ret; -}`,Zd=`function main(env, args) { +}`,qd=`function main(env, args) { if (args.length <= 0) { env.error("mkdir: missing operand\\n"); return 1; @@ -102,10 +102,10 @@ Commands: } return 0; -}`,Jd=`function main(env, args) { +}`,bd=`function main(env, args) { env.print(env.fs.getPath(env.current, true) + '\\n'); return 0; -}`,qd=`function error(env, path, err) { +}`,ep=`function error(env, path, err) { env.error(\`rm: cannot remove '\${path}': \${err}\\n\`); } @@ -137,8 +137,44 @@ function main(env, args) { } return ret; -}`;function bd(e){return{cat:{name:"cat",type:"exe",parent:e,value:Hd},clear:{name:"clear",type:"exe",parent:e,value:Kd},ls:{name:"ls",type:"exe",parent:e,value:Gd},mkdir:{name:"mkdir",type:"exe",parent:e,value:Zd},pwd:{name:"pwd",type:"exe",parent:e,value:Jd},rm:{name:"rm",type:"exe",parent:e,value:qd}}}function ep({cmd:e,cursor:n}){return w.jsxs(w.Fragment,{children:[w.jsx("span",{children:e.slice(0,n)}),w.jsx("span",{className:"term-cursor",children:e[n]??" "}),w.jsx("span",{children:e.slice(n+1)})]})}function np({env:e,cmd:n,cursor:t}){return w.jsxs(w.Fragment,{children:[w.jsxs("span",{children:["visitor@winux ",e.fs.getPath(e.current),"$ "]}),w.jsx(ep,{cmd:n,cursor:t})]})}function sc({id:e,fs:n,wm:t}){const[r,l]=$.useState([]),[o,i]=$.useState(new Ad(n,l)),[u,s]=$.useState(""),[f,y]=$.useState([]),[v,p]=$.useState(-1),[g,m]=$.useState(0),h=$.useRef(null);$.useEffect(()=>{h.current.scrollTop=h.current.scrollHeight},[r]);const z=a=>{s(a.target.value),m(a.target.selectionStart)},c=a=>{a.key==="ArrowLeft"&&g>0?m(g-1):a.key==="ArrowRight"&&g-1?(s(f[v-1]??""),p(v-1),m(0)):a.key==="End"?m(u.length):a.key==="Home"?m(0):a.key==="Enter"&&(Wd(u,o,t,l),p(-1),y(d=>[u,...d]),s(""))};return w.jsx("label",{htmlFor:`cmdInput${e}`,children:w.jsxs("div",{className:"term",ref:h,children:[r.map((a,d)=>w.jsx("span",{children:a},d)),w.jsx(np,{env:o,cmd:u,cursor:g}),w.jsx("input",{type:"text",id:`cmdInput${e}`,value:u,onChange:z,onKeyDown:c,autoComplete:"off",autoFocus:!0,autoCapitalize:"off"})]})})}function tp(e){return{"terminal.desktop":{name:"terminal.desktop",type:"desktop",parent:e,value:nl("Terminal","/usr/bin/terminal","./icons/cmd.png")},"notepad.desktop":{name:"notepad.desktop",type:"desktop",parent:e,value:nl("Notepad","/usr/bin/notepad","./icons/notepad.png")}}}function rp(){return[{name:"My Portfolio",icon:"./icons/internet-explorer.png",url:"https://martan03.github.io"}]}function lp(e){return{notepad:{name:"notepad",type:"app",parent:e,value:uc.toString()},terminal:{name:"terminal",type:"app",parent:e,value:sc.toString()}}}function nl(e,n,t){return`[Desktop Entry] +}`,sc=`function main(env, args) { + let ret = 0; + for (const arg of args) { + const index = arg.lastIndexOf('/'); + const parentPath = arg.slice(0, index); + const file = arg.slice(index + 1); + + if (file == '..') { + env.error(\`touch: setting times of '..': Permission denied\\n\`); + ret = 1; + continue; + } + + let parent = null; + if (index === -1) + parent = env.current; + else + parent = env.fs.get(env.current, parentPath); + + if (!parent) { + env.error( + \`touch: cannot touch '\${arg}': No such file or directory\\n\` + ); + ret = 1; + continue; + } + + if (index === -1) + parent = env.current; + if (parent.children[file]) + continue; + + env.fs.createFile(parent, file); + } + + return ret; +}`;function np(e){return{cat:{name:"cat",type:"exe",parent:e,value:Kd},clear:{name:"clear",type:"exe",parent:e,value:Xd},ls:{name:"ls",type:"exe",parent:e,value:Jd},mkdir:{name:"mkdir",type:"exe",parent:e,value:qd},pwd:{name:"pwd",type:"exe",parent:e,value:bd},rm:{name:"rm",type:"exe",parent:e,value:ep},touch:{name:"touch",type:"exe",parent:e,value:sc}}}function tp({cmd:e,cursor:n}){return w.jsxs(w.Fragment,{children:[w.jsx("span",{children:e.slice(0,n)}),w.jsx("span",{className:"term-cursor",children:e[n]??" "}),w.jsx("span",{children:e.slice(n+1)})]})}function rp({env:e,cmd:n,cursor:t}){return w.jsxs(w.Fragment,{children:[w.jsxs("span",{children:["visitor@winux ",e.fs.getPath(e.current),"$ "]}),w.jsx(tp,{cmd:n,cursor:t})]})}function ac({id:e,fs:n,wm:t}){const[r,l]=$.useState([]),[o,i]=$.useState(new Wd(n,l)),[u,s]=$.useState(""),[f,y]=$.useState([]),[v,p]=$.useState(-1),[g,m]=$.useState(0),h=$.useRef(null);$.useEffect(()=>{h.current.scrollTop=h.current.scrollHeight},[r]);const z=a=>{s(a.target.value),m(a.target.selectionStart)},c=a=>{a.key==="ArrowLeft"&&g>0?m(g-1):a.key==="ArrowRight"&&g-1?(s(f[v-1]??""),p(v-1),m(0)):a.key==="End"?m(u.length):a.key==="Home"?m(0):a.key==="Enter"&&(Vd(u,o,t,l),p(-1),y(d=>[u,...d]),s(""))};return w.jsx("label",{htmlFor:`cmdInput${e}`,children:w.jsxs("div",{className:"term",ref:h,children:[r.map((a,d)=>w.jsx("span",{children:a},d)),w.jsx(rp,{env:o,cmd:u,cursor:g}),w.jsx("input",{type:"text",id:`cmdInput${e}`,value:u,onChange:z,onKeyDown:c,autoComplete:"off",autoFocus:!0,autoCapitalize:"off"})]})})}function lp(e){return{"terminal.desktop":{name:"terminal.desktop",type:"desktop",parent:e,value:nl("Terminal","/usr/bin/terminal","./icons/cmd.png")},"notepad.desktop":{name:"notepad.desktop",type:"desktop",parent:e,value:nl("Notepad","/usr/bin/notepad","./icons/notepad.png")}}}function op(){return[{name:"My Portfolio",icon:"./icons/internet-explorer.png",url:"https://martan03.github.io"}]}function ip(e){return{notepad:{name:"notepad",type:"app",parent:e,value:uc.toString()},terminal:{name:"terminal",type:"app",parent:e,value:ac.toString()}}}function nl(e,n,t){return`[Desktop Entry] Name=${e} Exec=${n} -Icon=${t}`}function op(e){return{"My Portfolio":{name:"My Portfolio",type:"app",icon:"./icons/internet-explorer.png",url:"https://martan03.github.io",parent:e},"terminal.desktop":{name:"terminal.desktop",type:"desktop",parent:e,value:nl("Terminal","/usr/bin/terminal","./icons/cmd.png")},"notepad.desktop":{name:"notepad.desktop",type:"desktop",parent:e,value:nl("Notepad","/usr/bin/notepad","./icons/notepad.png")}}}function ip(e){const n=e.split(` -`),t={};for(const r of n){const l=r.match(/^\s*([^=]+)\s*=\s*(.*)\s*$/);l&&(t[l[1]]=l[2])}return t}function ac(e){if(!e)return[];const n=[];for(const t in e.children){if(e.children[t].type!=="desktop"){e.children[t].type==="app"&&n.push(e.children[t]);continue}n.push(ip(e.children[t].value))}return n}function up({app:e,wm:n}){const t=()=>{e.Exec?n.addFromFile(e):n.add(e)},r=e.Icon??e.icon,l=e.Name??e.name;return w.jsxs("div",{className:"icon",onDoubleClick:()=>t(),children:[w.jsx("img",{src:r,alt:l+" icon"}),w.jsx("p",{children:l})]})}function sp({fs:e,wm:n}){const t=e.find("/home/visitor/Desktop"),r=ac(t);return w.jsx("div",{className:"grid",children:r.map((l,o)=>w.jsx(up,{app:l,wm:n},o))})}function ap({id:e,win:n,wm:t}){const[r,l]=$.useState(!1),[o,i]=$.useState({x:0,y:0});$.useEffect(()=>{const v=g=>{g.preventDefault(),r&&requestAnimationFrame(()=>{s({x:g.clientX-o.x,y:g.clientY-o.y})})},p=()=>l(!1);return r&&(document.addEventListener("mousemove",v),document.addEventListener("mouseup",p)),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",p)}},[r,o]);const u=v=>{v.preventDefault(),l(!0),i({x:v.clientX-n.pos.x,y:v.clientY-n.pos.y})},s=v=>{t.move(e,v)},f=v=>{v.stopPropagation(),t.minimize(e)},y=v=>{v.stopPropagation(),t.close(e)};return w.jsxs("div",{className:"window-bar"+(t.focus===e?" focus":""),onMouseDown:u,children:[w.jsx("div",{children:w.jsx("p",{children:n.app.name})}),w.jsxs("div",{children:[w.jsx("button",{className:"btn",onMouseDown:f,children:"_"}),w.jsx("button",{className:"btn",onMouseDown:y,children:"X"})]})]})}function cp({id:e,win:n,fs:t,wm:r}){switch(n.app.exec?n.app.exec:n.app.name.toLowerCase()){case"terminal":case"/usr/bin/terminal":return w.jsx(sc,{id:e,fs:t,wm:r});case"notepad":case"/usr/bin/notepad":return w.jsx(uc,{});default:return w.jsx("p",{children:"App failed to load"})}}function fp({url:e}){return w.jsx("iframe",{src:e})}function dp({id:e,win:n,fs:t,wm:r}){if(!n.minimized)return w.jsxs("div",{className:"window",onMouseDown:()=>r.changeFocus(e),style:{top:n.pos.y,left:n.pos.x,zIndex:n.zIndex},children:[w.jsx(ap,{id:e,win:n,wm:r}),w.jsx("div",{className:"window-content",children:n.app.url?w.jsx(fp,{url:n.app.url}):w.jsx(cp,{id:e,win:n,fs:t,wm:r})})]})}function pp({startVis:e,setStartVis:n}){return w.jsx("button",{className:"taskbar-start-btn btn"+(e?" active":""),onClick:()=>n(!e),children:w.jsx("img",{src:"./icons/start.png",alt:"Start"})})}function mp({wm:e}){const n=t=>{e.windows[t].minimized?e.unminimize(t):e.minimize(t)};return w.jsx("div",{className:"taskbar-open-apps",children:e.windows.map((t,r)=>w.jsxs("div",{className:"btn"+(e.focus===r?" focus":""),onClick:()=>n(r),children:[w.jsx("img",{src:t.app.icon}),w.jsx("p",{children:t.app.name})]},r))})}function hp(){const[e,n]=$.useState(new Date);$.useEffect(()=>{const l=(60-new Date().getSeconds())*1e3;var o=null;return setTimeout(()=>{n(new Date),o=setInterval(()=>{n(new Date)},6e4)},l),()=>{o&&clearInterval(o)}},[]);const t=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return w.jsx("div",{className:"taskbar-tray",children:w.jsx("p",{children:t})})}function vp({wm:e,startVis:n,setStartVis:t}){return w.jsxs("div",{className:"taskbar",children:[w.jsx(pp,{startVis:n,setStartVis:t}),w.jsx("div",{className:"taskbar-divider"}),w.jsx(mp,{wm:e}),w.jsx("div",{className:"taskbar-divider"}),w.jsx(hp,{})]})}const cc="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3csvg%20viewBox='0%200%2010%2010'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpolygon%20points='6.5,5%203.5,7.5%203.5,2.5'%20fill='%23000'%20/%3e%3c/svg%3e";function Ae({text:e,icon:n,onClick:t,iconSm:r,children:l}){return w.jsxs("div",{className:"start-menu-item",onClick:t,children:[w.jsx("img",{className:`icon${r?" sm":""}`,src:"./icons/"+n}),w.jsx("p",{children:e}),l?w.jsxs(w.Fragment,{children:[w.jsx("img",{className:"menu-arrow",src:cc}),l]}):""]})}function Yu({item:e,wm:n,close:t,iconSm:r,children:l}){const o=e.Icon??e.icon??"",i=e.Name??e.name??"",u=()=>{t(),e.Exec?n.addFromFile(e):n.add(e)};return w.jsxs("div",{className:"start-menu-item sm",onClick:u,children:[w.jsx("img",{className:`icon${r?" sm":""}`,src:o}),w.jsx("p",{children:i}),l?w.jsxs(w.Fragment,{children:[w.jsx("img",{className:"menu-arrow",src:cc}),l]}):""]})}function gp({startVis:e,setStartVis:n,addWindow:t,setDialog:r,fs:l,wm:o}){if(!e)return;const i=l.get(l.root,"/usr/share/applications"),u=ac(i),s=rp(),f=()=>{n(!1),r("shutdown")};return w.jsx("div",{className:"start-wrapper",onClick:()=>n(!1),children:w.jsxs("div",{className:"start-menu",onClick:y=>y.stopPropagation(),children:[w.jsx("div",{className:"start-menu-header",children:w.jsx("p",{children:"Winux98"})}),w.jsxs("div",{className:"start-menu-content",children:[w.jsx(Ae,{text:"Programs",icon:"programs.png",iconSm:!0,children:w.jsx("div",{className:"start-menu-item-submenu",children:u.map((y,v)=>w.jsx(Yu,{item:y,wm:o,close:()=>n(!1)},v))})}),w.jsx(Ae,{text:"Favourites",icon:"favourites.png",iconSm:!0,children:w.jsx("div",{className:"start-menu-item-submenu",children:s.map((y,v)=>w.jsx(Yu,{item:y,wm:o,close:()=>n(!1)},v))})}),w.jsx(Ae,{text:"Documents",icon:"documents.png",iconSm:!0}),w.jsx(Ae,{text:"Settings",icon:"settings.png"}),w.jsx(Ae,{text:"Find",icon:"search.png"}),w.jsx(Ae,{text:"Help",icon:"help.png",iconSm:!0}),w.jsx(Ae,{text:"Run...",icon:"run.png",iconSm:!0}),w.jsx("div",{className:"start-menu-sep"}),w.jsx(Ae,{text:"Log Off...",icon:"logout.png"}),w.jsx(Ae,{text:"Shut Down...",icon:"shutdown.png",onClick:f})]})]})})}const yp=()=>{const e=()=>{const p={name:"root",children:{},parent:null},g={name:"usr",children:{},parent:p},m={name:"bin",children:{},parent:g};m.children={...bd(m),...lp(m)};const h={name:"share",children:{},parent:g},z={name:"applications",children:{},parent:h};h.children={applications:z},z.children=tp(z);const c={name:"home",children:{},parent:p};p.children.home=c;const a={name:"visitor",children:{},parent:c};c.children.visitor=a;const d={name:"Desktop",children:op(a),parent:a};return a.children.Desktop=d,g.children.bin=m,g.children.share=h,p.children.usr=g,p},[n,t]=$.useState(e()),r=(p,g)=>p.children[g.name]?!1:(g.parent=p,p.children[g.name]=g,t(m=>({...m})),!0),l=(p,g)=>{g.startsWith("~")&&(g=g.replace("~","/home/visitor"));const m=g.split("/").filter(z=>z!=="");let h=p;g.startsWith("/")&&(h=n);for(const z of m){if(z===".."){h=h==null?void 0:h.parent;continue}if(h=h==null?void 0:h.children[z],!h||!h.children)return null}return h},o=p=>{const g=p.split("/").filter(h=>h!=="");let m=n;for(const h of g)if(m=m==null?void 0:m.children[h],!m||!(m!=null&&m.children))return null;return m},i=(p,g)=>{g.startsWith("~")&&(g=g.replace("~","/home/visitor"));const m=g.split("/").filter(c=>c!=="");let h=p;if(g.startsWith("/")&&(h=n),m.length<=0)return h;for(let c=0;c{if(!p.parent)return"/";let m="",h=p;for(;h.parent;)m=`/${h.name}${m}`,h=h.parent;return!g&&m.startsWith("/home/visitor")&&(m=m.replace("/home/visitor","~")),m},createFile:(p,g="",m="txt")=>r(parent,{name:p,value:g,type:m}),saveToFile:(p,g,m,h="txt")=>{const z=g.lastIndexOf("/"),c=g.substring(0,z),a=g.substring(z+1),d=i(p,c);if(!d||a=="..")return!1;d.children[a]={name:a,value:m,type:h,parent:d}},createDir:(p,g)=>r(p,{name:g,children:{},parent:null}),remove:(p,g)=>p.children[g]?(delete p.children[g],t(m=>({...m})),!0):!1}};function wp({title:e,onClose:n,children:t}){return w.jsx("div",{className:"dialog",children:w.jsxs("div",{className:"window",children:[w.jsxs("div",{className:"window-bar focus",children:[w.jsx("div",{children:w.jsx("p",{children:e})}),w.jsx("div",{children:w.jsx("button",{className:"btn",onClick:n,children:"X"})})]}),w.jsx("div",{className:"window-content",children:t})]})})}function kp({onClose:e,setOn:n}){const t=()=>{n(!1)};return w.jsx(wp,{title:"Shutting Down Winux",onClose:e,children:w.jsxs("div",{className:"shutdown",children:[w.jsx("img",{src:"./icons/shutdown.png",alt:"shutdown"}),w.jsxs("div",{children:[w.jsx("p",{children:"Do you want to turn off the computer?"}),w.jsxs("div",{className:"buttons",children:[w.jsx("button",{className:"btn",onClick:t,children:"OK"}),w.jsx("button",{className:"btn",onClick:e,children:"Cancel"})]})]})]})})}function Sp({dialog:e,setDialog:n,setOn:t}){const r=()=>{n(null)};return e==="shutdown"?w.jsx(kp,{onClose:r,setOn:t}):w.jsx(w.Fragment,{})}const xp=()=>{const[e,n]=$.useState([]),[t,r]=$.useState(-1),[l,o]=$.useState(1),i=m=>{const h=Math.max((window.innerWidth-720)/2,0),z=Math.max((window.innerHeight-500)/2,0),c=e[t]?e[t].zIndex+1:1;r(e.length),n([...e,{id:l,minimized:!1,pos:{x:h,y:z},zIndex:c,app:m}]),o(l+1)},u=m=>{const h=Math.max((window.innerWidth-720)/2,0),z=Math.max((window.innerHeight-500)/2,0),c=e[t]?e[t].zIndex+1:1;r(e.length),n([...e,{id:l,minimized:!1,pos:{x:h,y:z},zIndex:c,app:{name:m.Name,icon:m.Icon,exec:m.Exec}}]),o(l+1)},s=m=>{if(m!=t){var h=[...e];h[m].zIndex=h[t]?h[t].zIndex+1:1,n(h),r(m)}},f=m=>{var h=[...e];h[m].minimized=!0,n(h),m===t&&g(h)},y=m=>{var h=[...e];h[m].zIndex=h[t]?h[t].zIndex+1:1,h[m].minimized=!1,n(h),r(m)},v=m=>{var h=[...e];if(h.splice(m,1),n(h),m!==t||h.length<=0){m{var z=[...e];z[m].pos=h,n(z)},g=m=>{var z;let h=-1;for(let c=0;cw.jsx(dp,{id:f,win:s,fs:l,wm:o},s.id)),w.jsx(Sp,{dialog:t,setDialog:r,setOn:n})]}):w.jsx("div",{className:"turned-off",children:"how can I turn it on?"})}Yl.createRoot(document.getElementById("root")).render(w.jsx(zc.StrictMode,{children:w.jsx(Ep,{})})); +Icon=${t}`}function up(e){return{"My Portfolio":{name:"My Portfolio",type:"app",icon:"./icons/internet-explorer.png",url:"https://martan03.github.io",parent:e},"terminal.desktop":{name:"terminal.desktop",type:"desktop",parent:e,value:nl("Terminal","/usr/bin/terminal","./icons/cmd.png")},"notepad.desktop":{name:"notepad.desktop",type:"desktop",parent:e,value:nl("Notepad","/usr/bin/notepad","./icons/notepad.png")}}}function sp(e){const n=e.split(` +`),t={};for(const r of n){const l=r.match(/^\s*([^=]+)\s*=\s*(.*)\s*$/);l&&(t[l[1]]=l[2])}return t}function cc(e){if(!e)return[];const n=[];for(const t in e.children){if(e.children[t].type!=="desktop"){e.children[t].type==="app"&&n.push(e.children[t]);continue}n.push(sp(e.children[t].value))}return n}function ap({app:e,wm:n}){const t=()=>{e.Exec?n.addFromFile(e):n.add(e)},r=e.Icon??e.icon,l=e.Name??e.name;return w.jsxs("div",{className:"icon",onDoubleClick:()=>t(),children:[w.jsx("img",{src:r,alt:l+" icon"}),w.jsx("p",{children:l})]})}function cp({fs:e,wm:n}){const t=e.find("/home/visitor/Desktop"),r=cc(t);return w.jsx("div",{className:"grid",children:r.map((l,o)=>w.jsx(ap,{app:l,wm:n},o))})}function fp({id:e,win:n,wm:t}){const[r,l]=$.useState(!1),[o,i]=$.useState({x:0,y:0});$.useEffect(()=>{const v=g=>{g.preventDefault(),r&&requestAnimationFrame(()=>{s({x:g.clientX-o.x,y:g.clientY-o.y})})},p=()=>l(!1);return r&&(document.addEventListener("mousemove",v),document.addEventListener("mouseup",p)),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",p)}},[r,o]);const u=v=>{v.preventDefault(),l(!0),i({x:v.clientX-n.pos.x,y:v.clientY-n.pos.y})},s=v=>{t.move(e,v)},f=v=>{v.stopPropagation(),t.minimize(e)},y=v=>{v.stopPropagation(),t.close(e)};return w.jsxs("div",{className:"window-bar"+(t.focus===e?" focus":""),onMouseDown:u,children:[w.jsx("div",{children:w.jsx("p",{children:n.app.name})}),w.jsxs("div",{children:[w.jsx("button",{className:"btn",onMouseDown:f,children:"_"}),w.jsx("button",{className:"btn",onMouseDown:y,children:"X"})]})]})}function dp({id:e,win:n,fs:t,wm:r}){switch(n.app.exec?n.app.exec:n.app.name.toLowerCase()){case"terminal":case"/usr/bin/terminal":return w.jsx(ac,{id:e,fs:t,wm:r});case"notepad":case"/usr/bin/notepad":return w.jsx(uc,{});default:return w.jsx("p",{children:"App failed to load"})}}function pp({url:e}){return w.jsx("iframe",{src:e})}function mp({id:e,win:n,fs:t,wm:r}){if(!n.minimized)return w.jsxs("div",{className:"window",onMouseDown:()=>r.changeFocus(e),style:{top:n.pos.y,left:n.pos.x,zIndex:n.zIndex},children:[w.jsx(fp,{id:e,win:n,wm:r}),w.jsx("div",{className:"window-content",children:n.app.url?w.jsx(pp,{url:n.app.url}):w.jsx(dp,{id:e,win:n,fs:t,wm:r})})]})}function hp({startVis:e,setStartVis:n}){return w.jsx("button",{className:"taskbar-start-btn btn"+(e?" active":""),onClick:()=>n(!e),children:w.jsx("img",{src:"./icons/start.png",alt:"Start"})})}function vp({wm:e}){const n=t=>{e.windows[t].minimized?e.unminimize(t):e.minimize(t)};return w.jsx("div",{className:"taskbar-open-apps",children:e.windows.map((t,r)=>w.jsxs("div",{className:"btn"+(e.focus===r?" focus":""),onClick:()=>n(r),children:[w.jsx("img",{src:t.app.icon}),w.jsx("p",{children:t.app.name})]},r))})}function gp(){const[e,n]=$.useState(new Date);$.useEffect(()=>{const l=(60-new Date().getSeconds())*1e3;var o=null;return setTimeout(()=>{n(new Date),o=setInterval(()=>{n(new Date)},6e4)},l),()=>{o&&clearInterval(o)}},[]);const t=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return w.jsx("div",{className:"taskbar-tray",children:w.jsx("p",{children:t})})}function yp({wm:e,startVis:n,setStartVis:t}){return w.jsxs("div",{className:"taskbar",children:[w.jsx(hp,{startVis:n,setStartVis:t}),w.jsx("div",{className:"taskbar-divider"}),w.jsx(vp,{wm:e}),w.jsx("div",{className:"taskbar-divider"}),w.jsx(gp,{})]})}const fc="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3csvg%20viewBox='0%200%2010%2010'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpolygon%20points='6.5,5%203.5,7.5%203.5,2.5'%20fill='%23000'%20/%3e%3c/svg%3e";function Ae({text:e,icon:n,onClick:t,iconSm:r,children:l}){return w.jsxs("div",{className:"start-menu-item",onClick:t,children:[w.jsx("img",{className:`icon${r?" sm":""}`,src:"./icons/"+n}),w.jsx("p",{children:e}),l?w.jsxs(w.Fragment,{children:[w.jsx("img",{className:"menu-arrow",src:fc}),l]}):""]})}function Yu({item:e,wm:n,close:t,iconSm:r,children:l}){const o=e.Icon??e.icon??"",i=e.Name??e.name??"",u=()=>{t(),e.Exec?n.addFromFile(e):n.add(e)};return w.jsxs("div",{className:"start-menu-item sm",onClick:u,children:[w.jsx("img",{className:`icon${r?" sm":""}`,src:o}),w.jsx("p",{children:i}),l?w.jsxs(w.Fragment,{children:[w.jsx("img",{className:"menu-arrow",src:fc}),l]}):""]})}function wp({startVis:e,setStartVis:n,addWindow:t,setDialog:r,fs:l,wm:o}){if(!e)return;const i=l.get(l.root,"/usr/share/applications"),u=cc(i),s=op(),f=()=>{n(!1),r("shutdown")};return w.jsx("div",{className:"start-wrapper",onClick:()=>n(!1),children:w.jsxs("div",{className:"start-menu",onClick:y=>y.stopPropagation(),children:[w.jsx("div",{className:"start-menu-header",children:w.jsx("p",{children:"Winux98"})}),w.jsxs("div",{className:"start-menu-content",children:[w.jsx(Ae,{text:"Programs",icon:"programs.png",iconSm:!0,children:w.jsx("div",{className:"start-menu-item-submenu",children:u.map((y,v)=>w.jsx(Yu,{item:y,wm:o,close:()=>n(!1)},v))})}),w.jsx(Ae,{text:"Favourites",icon:"favourites.png",iconSm:!0,children:w.jsx("div",{className:"start-menu-item-submenu",children:s.map((y,v)=>w.jsx(Yu,{item:y,wm:o,close:()=>n(!1)},v))})}),w.jsx(Ae,{text:"Documents",icon:"documents.png",iconSm:!0}),w.jsx(Ae,{text:"Settings",icon:"settings.png"}),w.jsx(Ae,{text:"Find",icon:"search.png"}),w.jsx(Ae,{text:"Help",icon:"help.png",iconSm:!0}),w.jsx(Ae,{text:"Run...",icon:"run.png",iconSm:!0}),w.jsx("div",{className:"start-menu-sep"}),w.jsx(Ae,{text:"Log Off...",icon:"logout.png"}),w.jsx(Ae,{text:"Shut Down...",icon:"shutdown.png",onClick:f})]})]})})}const kp=()=>{const e=()=>{const p={name:"root",children:{},parent:null},g={name:"usr",children:{},parent:p},m={name:"bin",children:{},parent:g};m.children={...np(m),...ip(m)};const h={name:"share",children:{},parent:g},z={name:"applications",children:{},parent:h};h.children={applications:z},z.children=lp(z);const c={name:"home",children:{},parent:p};p.children.home=c;const a={name:"visitor",children:{},parent:c};c.children.visitor=a;const d={name:"Desktop",children:up(a),parent:a};return a.children.Desktop=d,g.children.bin=m,g.children.share=h,p.children.usr=g,p},[n,t]=$.useState(e()),r=(p,g)=>p.children[g.name]?!1:(g.parent=p,p.children[g.name]=g,t(m=>({...m})),!0),l=(p,g)=>{g.startsWith("~")&&(g=g.replace("~","/home/visitor"));const m=g.split("/").filter(z=>z!=="");let h=p;g.startsWith("/")&&(h=n);for(const z of m){if(z===".."){h=h==null?void 0:h.parent;continue}if(h=h==null?void 0:h.children[z],!h||!h.children)return null}return h},o=p=>{const g=p.split("/").filter(h=>h!=="");let m=n;for(const h of g)if(m=m==null?void 0:m.children[h],!m||!(m!=null&&m.children))return null;return m},i=(p,g)=>{g.startsWith("~")?g=g.replace("~","/home/visitor"):g.startsWith("./")&&(g=g.replace("./",""));const m=g.split("/").filter(c=>c!=="");let h=p;if(g.startsWith("/")&&(h=n),m.length<=0)return h;for(let c=0;c{if(!p.parent)return"/";let m="",h=p;for(;h.parent;)m=`/${h.name}${m}`,h=h.parent;return!g&&m.startsWith("/home/visitor")&&(m=m.replace("/home/visitor","~")),m},createFile:(p,g,m="",h="txt")=>r(p,{name:g,value:m,type:h}),saveToFile:(p,g,m,h="txt")=>{const z=g.lastIndexOf("/"),c=g.substring(0,z),a=g.substring(z+1),d=i(p,c);if(!d||a=="..")return!1;d.children[a]={name:a,value:m,type:h,parent:d}},createDir:(p,g)=>r(p,{name:g,children:{},parent:null}),remove:(p,g)=>p.children[g]?(delete p.children[g],t(m=>({...m})),!0):!1}};function Sp({title:e,onClose:n,children:t}){return w.jsx("div",{className:"dialog",children:w.jsxs("div",{className:"window",children:[w.jsxs("div",{className:"window-bar focus",children:[w.jsx("div",{children:w.jsx("p",{children:e})}),w.jsx("div",{children:w.jsx("button",{className:"btn",onClick:n,children:"X"})})]}),w.jsx("div",{className:"window-content",children:t})]})})}function xp({onClose:e,setOn:n}){const t=()=>{n(!1)};return w.jsx(Sp,{title:"Shutting Down Winux",onClose:e,children:w.jsxs("div",{className:"shutdown",children:[w.jsx("img",{src:"./icons/shutdown.png",alt:"shutdown"}),w.jsxs("div",{children:[w.jsx("p",{children:"Do you want to turn off the computer?"}),w.jsxs("div",{className:"buttons",children:[w.jsx("button",{className:"btn",onClick:t,children:"OK"}),w.jsx("button",{className:"btn",onClick:e,children:"Cancel"})]})]})]})})}function Ep({dialog:e,setDialog:n,setOn:t}){const r=()=>{n(null)};return e==="shutdown"?w.jsx(xp,{onClose:r,setOn:t}):w.jsx(w.Fragment,{})}const Cp=()=>{const[e,n]=$.useState([]),[t,r]=$.useState(-1),[l,o]=$.useState(1),i=m=>{const h=Math.max((window.innerWidth-720)/2,0),z=Math.max((window.innerHeight-500)/2,0),c=e[t]?e[t].zIndex+1:1;r(e.length),n([...e,{id:l,minimized:!1,pos:{x:h,y:z},zIndex:c,app:m}]),o(l+1)},u=m=>{const h=Math.max((window.innerWidth-720)/2,0),z=Math.max((window.innerHeight-500)/2,0),c=e[t]?e[t].zIndex+1:1;r(e.length),n([...e,{id:l,minimized:!1,pos:{x:h,y:z},zIndex:c,app:{name:m.Name,icon:m.Icon,exec:m.Exec}}]),o(l+1)},s=m=>{if(m!=t){var h=[...e];h[m].zIndex=h[t]?h[t].zIndex+1:1,n(h),r(m)}},f=m=>{var h=[...e];h[m].minimized=!0,n(h),m===t&&g(h)},y=m=>{var h=[...e];h[m].zIndex=h[t]?h[t].zIndex+1:1,h[m].minimized=!1,n(h),r(m)},v=m=>{var h=[...e];if(h.splice(m,1),n(h),m!==t||h.length<=0){m{var z=[...e];z[m].pos=h,n(z)},g=m=>{var z;let h=-1;for(let c=0;cw.jsx(mp,{id:f,win:s,fs:l,wm:o},s.id)),w.jsx(Ep,{dialog:t,setDialog:r,setOn:n})]}):w.jsx("div",{className:"turned-off",children:"how can I turn it on?"})}Yl.createRoot(document.getElementById("root")).render(w.jsx(jc.StrictMode,{children:w.jsx(_p,{})})); diff --git a/index.html b/index.html index 0819b4d..24362fd 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ winux - +