diff --git a/assets/index-01860369.js b/assets/index-7452ea47.js similarity index 88% rename from assets/index-01860369.js rename to assets/index-7452ea47.js index 6652796..d23b3b9 100644 --- a/assets/index-01860369.js +++ b/assets/index-7452ea47.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 fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zu={exports:{}},al={},Ju={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 fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zu={exports:{}},al={},Ju={exports:{}},R={};/** * @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 rr=Symbol.for("react.element"),dc=Symbol.for("react.portal"),pc=Symbol.for("react.fragment"),mc=Symbol.for("react.strict_mode"),hc=Symbol.for("react.profiler"),vc=Symbol.for("react.provider"),yc=Symbol.for("react.context"),gc=Symbol.for("react.forward_ref"),wc=Symbol.for("react.suspense"),Sc=Symbol.for("react.memo"),kc=Symbol.for("react.lazy"),$i=Symbol.iterator;function Ec(e){return e===null||typeof e!="object"?null:(e=$i&&e[$i]||e["@@iterator"],typeof e=="function"?e:null)}var qu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bu=Object.assign,es={};function mt(e,n,t){this.props=e,this.context=n,this.refs=es,this.updater=t||qu}mt.prototype.isReactComponent={};mt.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")};mt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ns(){}ns.prototype=mt.prototype;function Ko(e,n,t){this.props=e,this.context=n,this.refs=es,this.updater=t||qu}var Yo=Ko.prototype=new ns;Yo.constructor=Ko;bu(Yo,mt.prototype);Yo.isPureReactComponent=!0;var Vi=Array.isArray,ts=Object.prototype.hasOwnProperty,Xo={current:null},rs={key:!0,ref:!0,__self:!0,__source:!0};function ls(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)ts.call(n,r)&&!rs.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1>>1,U=k[V];if(0>>1;Vl(ke,P))Tel(Vn,ke)?(k[V]=Vn,k[Te]=P,V=Te):(k[V]=ke,k[me]=P,V=me);else if(Tel(Vn,P))k[V]=Vn,k[Te]=P,V=Te;else break e}}return z}function l(k,z){var P=k.sortIndex-z.sortIndex;return P!==0?P:k.id-z.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=[],c=[],h=1,m=null,f=3,y=!1,w=!1,S=!1,I=typeof setTimeout=="function"?setTimeout:null,d=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 p(k){for(var z=t(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=k)r(c),z.sortIndex=z.expirationTime,n(s,z);else break;z=t(c)}}function v(k){if(S=!1,p(k),!w)if(t(s)!==null)w=!0,b(E);else{var z=t(c);z!==null&&Z(v,z.startTime-k)}}function E(k,z){w=!1,S&&(S=!1,d(N),N=-1),y=!0;var P=f;try{for(p(z),m=t(s);m!==null&&(!(m.expirationTime>z)||k&&!Se());){var V=m.callback;if(typeof V=="function"){m.callback=null,f=m.priorityLevel;var U=V(m.expirationTime<=z);z=e.unstable_now(),typeof U=="function"?m.callback=U:m===t(s)&&r(s),p(z)}else r(s);m=t(s)}if(m!==null)var ze=!0;else{var me=t(c);me!==null&&Z(v,me.startTime-z),ze=!1}return ze}finally{m=null,f=P,y=!1}}var C=!1,x=null,N=-1,H=5,T=-1;function Se(){return!(e.unstable_now()-Tk||125V?(k.sortIndex=P,n(c,k),t(s)===null&&k===t(c)&&(S?(d(N),N=-1):S=!0,Z(v,P-V))):(k.sortIndex=U,n(s,k),w||y||(w=!0,b(E))),k},e.unstable_shouldYield=Se,e.unstable_wrapCallback=function(k){var z=f;return function(){var P=f;f=z;try{return k.apply(this,arguments)}finally{f=P}}}})(ss);us.exports=ss;var Oc=us.exports;/** + */(function(e){function n(k,z){var P=k.length;k.push(z);e:for(;0>>1,U=k[V];if(0>>1;Vl(ke,P))Tel(Vn,ke)?(k[V]=Vn,k[Te]=P,V=Te):(k[V]=ke,k[me]=P,V=me);else if(Tel(Vn,P))k[V]=Vn,k[Te]=P,V=Te;else break e}}return z}function l(k,z){var P=k.sortIndex-z.sortIndex;return P!==0?P:k.id-z.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=[],c=[],h=1,m=null,d=3,y=!1,S=!1,w=!1,M=typeof setTimeout=="function"?setTimeout:null,f=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 p(k){for(var z=t(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=k)r(c),z.sortIndex=z.expirationTime,n(s,z);else break;z=t(c)}}function v(k){if(w=!1,p(k),!S)if(t(s)!==null)S=!0,b(E);else{var z=t(c);z!==null&&Z(v,z.startTime-k)}}function E(k,z){S=!1,w&&(w=!1,f(N),N=-1),y=!0;var P=d;try{for(p(z),m=t(s);m!==null&&(!(m.expirationTime>z)||k&&!Se());){var V=m.callback;if(typeof V=="function"){m.callback=null,d=m.priorityLevel;var U=V(m.expirationTime<=z);z=e.unstable_now(),typeof U=="function"?m.callback=U:m===t(s)&&r(s),p(z)}else r(s);m=t(s)}if(m!==null)var ze=!0;else{var me=t(c);me!==null&&Z(v,me.startTime-z),ze=!1}return ze}finally{m=null,d=P,y=!1}}var C=!1,x=null,N=-1,H=5,T=-1;function Se(){return!(e.unstable_now()-Tk||125V?(k.sortIndex=P,n(c,k),t(s)===null&&k===t(c)&&(w?(f(N),N=-1):w=!0,Z(v,P-V))):(k.sortIndex=U,n(s,k),S||y||(S=!0,b(E))),k},e.unstable_shouldYield=Se,e.unstable_wrapCallback=function(k){var z=d;return function(){var P=d;d=z;try{return k.apply(this,arguments)}finally{d=P}}}})(ss);us.exports=ss;var Oc=us.exports;/** * @license React * react-dom.production.min.js * @@ -34,7 +34,7 @@ `+Nl+e}var Pl=!1;function zl(e,n){if(!e||Pl)return"";Pl=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(c){var r=c}Reflect.construct(e,[],n)}else{try{n.call()}catch(c){r=c}e.call(n.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(` `),o=r.stack.split(` `),i=l.length-1,u=o.length-1;1<=i&&0<=u&&l[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(l[i]!==o[u]){if(i!==1||u!==1)do if(i--,u--,0>u||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{Pl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?Nt(e):""}function Ac(e){switch(e.tag){case 5:return Nt(e.type);case 16:return Nt("Lazy");case 13:return Nt("Suspense");case 19:return Nt("SuspenseList");case 0:case 2:case 15:return e=zl(e.type,!1),e;case 11:return e=zl(e.type.render,!1),e;case 1:return e=zl(e.type,!0),e;default:return""}}function ro(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 Bn:return"Fragment";case Hn:return"Portal";case eo:return"Profiler";case bo:return"StrictMode";case no:return"Suspense";case to:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ds:return(e.displayName||"Context")+".Consumer";case fs:return(e._context.displayName||"Context")+".Provider";case ei:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ni:return n=e.displayName||null,n!==null?n:ro(e.type)||"Memo";case sn:n=e._payload,e=e._init;try{return ro(e(n))}catch{}}return null}function $c(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 ro(n);case 8:return n===bo?"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 En(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ms(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Vc(e){var n=ms(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 cr(e){e._valueTracker||(e._valueTracker=Vc(e))}function hs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=ms(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Ar(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 lo(e,n){var t=n.checked;return K({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Ki(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=En(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 vs(e,n){n=n.checked,n!=null&&qo(e,"checked",n,!1)}function oo(e,n){vs(e,n);var t=En(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")?io(e,n.type,t):n.hasOwnProperty("defaultValue")&&io(e,n.type,En(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Yi(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 io(e,n,t){(n!=="number"||Ar(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Pt=Array.isArray;function nt(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=fr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function $t(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Mt={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},Wc=["Webkit","ms","Moz","O"];Object.keys(Mt).forEach(function(e){Wc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Mt[n]=Mt[e]})});function Ss(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Mt.hasOwnProperty(e)&&Mt[e]?(""+n).trim():n+"px"}function ks(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=Ss(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Hc=K({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 ao(e,n){if(n){if(Hc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(g(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(g(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(g(61))}if(n.style!=null&&typeof n.style!="object")throw Error(g(62))}}function co(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 fo=null;function ti(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var po=null,tt=null,rt=null;function Zi(e){if(e=ir(e)){if(typeof po!="function")throw Error(g(280));var n=e.stateNode;n&&(n=ml(n),po(e.stateNode,e.type,n))}}function Es(e){tt?rt?rt.push(e):rt=[e]:tt=e}function _s(){if(tt){var e=tt,n=rt;if(rt=tt=null,Zi(e),n)for(e=0;e>>=0,e===0?32:31-(ef(e)/nf|0)|0}var dr=64,pr=4194304;function zt(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 Hr(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=zt(u):(o&=i,o!==0&&(r=zt(o)))}else i=t&~l,i!==0?r=zt(i):o!==0&&(r=zt(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 lr(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-$e(n),e[n]=t}function of(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=Rt),ou=String.fromCharCode(32),iu=!1;function Hs(e,n){switch(e){case"keyup":return Of.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 Qn=!1;function jf(e,n){switch(e){case"compositionend":return Bs(n);case"keypress":return n.which!==32?null:(iu=!0,ou);case"textInput":return e=n.data,e===ou&&iu?null:e;default:return null}}function Ff(e,n){if(Qn)return e==="compositionend"||!ci&&Hs(e,n)?(e=Vs(),Mr=ui=dn=null,Qn=!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=cu(t)}}function Xs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Xs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Gs(){for(var e=window,n=Ar();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Ar(e.document)}return n}function fi(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 Kf(e){var n=Gs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Xs(t.ownerDocument.documentElement,t)){if(r!==null&&fi(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=fu(t,o);var i=fu(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,Kn=null,wo=null,Ot=null,So=!1;function du(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;So||Kn==null||Kn!==Ar(r)||(r=Kn,"selectionStart"in r&&fi(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}),Ot&&Kt(Ot,r)||(Ot=r,r=Kr(wo,"onSelect"),0Gn||(e.current=No[Gn],No[Gn]=null,Gn--)}function F(e,n){Gn++,No[Gn]=e.current,e.current=n}var _n={},se=xn(_n),ye=xn(!1),On=_n;function st(e,n){var t=e.type.contextTypes;if(!t)return _n;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 ge(e){return e=e.childContextTypes,e!=null}function Xr(){$(ye),$(se)}function wu(e,n,t){if(se.current!==_n)throw Error(g(168));F(se,n),F(ye,t)}function la(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(g(108,$c(e)||"Unknown",l));return K({},t,r)}function Gr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_n,On=se.current,F(se,e),F(ye,ye.current),!0}function Su(e,n,t){var r=e.stateNode;if(!r)throw Error(g(169));t?(e=la(e,n,On),r.__reactInternalMemoizedMergedChildContext=e,$(ye),$(se),F(se,e)):$(ye),F(ye,t)}var Je=null,hl=!1,Wl=!1;function oa(e){Je===null?Je=[e]:Je.push(e)}function ld(e){hl=!0,oa(e)}function Nn(){if(!Wl&&Je!==null){Wl=!0;var e=0,n=D;try{var t=Je;for(D=1;e>=i,l-=i,qe=1<<32-$e(n)+l|t<N?(H=x,x=null):H=x.sibling;var T=f(d,x,p[N],v);if(T===null){x===null&&(x=H);break}e&&x&&T.alternate===null&&n(d,x),a=o(T,a,N),C===null?E=T:C.sibling=T,C=T,x=H}if(N===p.length)return t(d,x),W&&Pn(d,N),E;if(x===null){for(;NN?(H=x,x=null):H=x.sibling;var Se=f(d,x,T.value,v);if(Se===null){x===null&&(x=H);break}e&&x&&Se.alternate===null&&n(d,x),a=o(Se,a,N),C===null?E=Se:C.sibling=Se,C=Se,x=H}if(T.done)return t(d,x),W&&Pn(d,N),E;if(x===null){for(;!T.done;N++,T=p.next())T=m(d,T.value,v),T!==null&&(a=o(T,a,N),C===null?E=T:C.sibling=T,C=T);return W&&Pn(d,N),E}for(x=r(d,x);!T.done;N++,T=p.next())T=y(x,d,N,T.value,v),T!==null&&(e&&T.alternate!==null&&x.delete(T.key===null?N:T.key),a=o(T,a,N),C===null?E=T:C.sibling=T,C=T);return e&&x.forEach(function(Xe){return n(d,Xe)}),W&&Pn(d,N),E}function I(d,a,p,v){if(typeof p=="object"&&p!==null&&p.type===Bn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ar:e:{for(var E=p.key,C=a;C!==null;){if(C.key===E){if(E=p.type,E===Bn){if(C.tag===7){t(d,C.sibling),a=l(C,p.props.children),a.return=d,d=a;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===sn&&Pu(E)===C.type){t(d,C.sibling),a=l(C,p.props),a.ref=Et(d,C,p),a.return=d,d=a;break e}t(d,C);break}else n(d,C);C=C.sibling}p.type===Bn?(a=In(p.props.children,d.mode,v,p.key),a.return=d,d=a):(v=Ur(p.type,p.key,p.props,null,d.mode,v),v.ref=Et(d,a,p),v.return=d,d=v)}return i(d);case Hn:e:{for(C=p.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===p.containerInfo&&a.stateNode.implementation===p.implementation){t(d,a.sibling),a=l(a,p.children||[]),a.return=d,d=a;break e}else{t(d,a);break}else n(d,a);a=a.sibling}a=Zl(p,d.mode,v),a.return=d,d=a}return i(d);case sn:return C=p._init,I(d,a,C(p._payload),v)}if(Pt(p))return w(d,a,p,v);if(yt(p))return S(d,a,p,v);Sr(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,a!==null&&a.tag===6?(t(d,a.sibling),a=l(a,p),a.return=d,d=a):(t(d,a),a=Gl(p,d.mode,v),a.return=d,d=a),i(d)):t(d,a)}return I}var ct=pa(!0),ma=pa(!1),ur={},Ye=xn(ur),Zt=xn(ur),Jt=xn(ur);function Ln(e){if(e===ur)throw Error(g(174));return e}function Si(e,n){switch(F(Jt,n),F(Zt,e),F(Ye,ur),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:so(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=so(n,e)}$(Ye),F(Ye,n)}function ft(){$(Ye),$(Zt),$(Jt)}function ha(e){Ln(Jt.current);var n=Ln(Ye.current),t=so(n,e.type);n!==t&&(F(Zt,e),F(Ye,t))}function ki(e){Zt.current===e&&($(Ye),$(Zt))}var B=xn(0);function nl(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 Hl=[];function Ei(){for(var e=0;et?t:4,e(!0);var r=Bl.transition;Bl.transition={};try{e(!1),n()}finally{D=t,Bl.transition=r}}function La(){return De().memoizedState}function sd(e,n,t){var r=Sn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ra(e))Ia(n,t);else if(t=aa(e,n,t,r),t!==null){var l=fe();Ve(t,e,r,l),Oa(t,n,r)}}function ad(e,n,t){var r=Sn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ra(e))Ia(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,We(u,i)){var s=n.interleaved;s===null?(l.next=l,gi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=aa(e,n,l,r),t!==null&&(l=fe(),Ve(t,e,r,l),Oa(t,n,r))}}function Ra(e){var n=e.alternate;return e===Q||n!==null&&n===Q}function Ia(e,n){Dt=tl=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Oa(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,li(e,t)}}var rl={readContext:Oe,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},cd={readContext:Oe,useCallback:function(e,n){return Be().memoizedState=[e,n===void 0?null:n],e},useContext:Oe,useEffect:Tu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Or(4194308,4,Na.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Or(4194308,4,e,n)},useInsertionEffect:function(e,n){return Or(4,2,e,n)},useMemo:function(e,n){var t=Be();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Be();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=sd.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var n=Be();return e={current:e},n.memoizedState=e},useState:zu,useDebugValue:Pi,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=zu(!1),n=e[0];return e=ud.bind(null,e[1]),Be().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=Q,l=Be();if(W){if(t===void 0)throw Error(g(407));t=t()}else{if(t=n(),ne===null)throw Error(g(349));jn&30||ga(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,Tu(Sa.bind(null,r,o,e),[e]),r.flags|=2048,er(9,wa.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=Be(),n=ne.identifierPrefix;if(W){var t=be,r=qe;t=(r&~(1<<32-$e(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{Pl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?Nt(e):""}function Ac(e){switch(e.tag){case 5:return Nt(e.type);case 16:return Nt("Lazy");case 13:return Nt("Suspense");case 19:return Nt("SuspenseList");case 0:case 2:case 15:return e=zl(e.type,!1),e;case 11:return e=zl(e.type.render,!1),e;case 1:return e=zl(e.type,!0),e;default:return""}}function ro(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 Bn:return"Fragment";case Hn:return"Portal";case eo:return"Profiler";case bo:return"StrictMode";case no:return"Suspense";case to:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ds:return(e.displayName||"Context")+".Consumer";case fs:return(e._context.displayName||"Context")+".Provider";case ei:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ni:return n=e.displayName||null,n!==null?n:ro(e.type)||"Memo";case sn:n=e._payload,e=e._init;try{return ro(e(n))}catch{}}return null}function $c(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 ro(n);case 8:return n===bo?"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 En(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ms(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Vc(e){var n=ms(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 cr(e){e._valueTracker||(e._valueTracker=Vc(e))}function hs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=ms(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Ar(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 lo(e,n){var t=n.checked;return K({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Ki(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=En(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 vs(e,n){n=n.checked,n!=null&&qo(e,"checked",n,!1)}function oo(e,n){vs(e,n);var t=En(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")?io(e,n.type,t):n.hasOwnProperty("defaultValue")&&io(e,n.type,En(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Yi(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 io(e,n,t){(n!=="number"||Ar(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Pt=Array.isArray;function nt(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=fr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function $t(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Mt={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},Wc=["Webkit","ms","Moz","O"];Object.keys(Mt).forEach(function(e){Wc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Mt[n]=Mt[e]})});function Ss(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Mt.hasOwnProperty(e)&&Mt[e]?(""+n).trim():n+"px"}function ks(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=Ss(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Hc=K({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 ao(e,n){if(n){if(Hc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(g(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(g(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(g(61))}if(n.style!=null&&typeof n.style!="object")throw Error(g(62))}}function co(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 fo=null;function ti(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var po=null,tt=null,rt=null;function Zi(e){if(e=ir(e)){if(typeof po!="function")throw Error(g(280));var n=e.stateNode;n&&(n=ml(n),po(e.stateNode,e.type,n))}}function Es(e){tt?rt?rt.push(e):rt=[e]:tt=e}function _s(){if(tt){var e=tt,n=rt;if(rt=tt=null,Zi(e),n)for(e=0;e>>=0,e===0?32:31-(ef(e)/nf|0)|0}var dr=64,pr=4194304;function zt(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 Hr(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=zt(u):(o&=i,o!==0&&(r=zt(o)))}else i=t&~l,i!==0?r=zt(i):o!==0&&(r=zt(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 lr(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-$e(n),e[n]=t}function of(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=Rt),ou=String.fromCharCode(32),iu=!1;function Hs(e,n){switch(e){case"keyup":return Of.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 Qn=!1;function jf(e,n){switch(e){case"compositionend":return Bs(n);case"keypress":return n.which!==32?null:(iu=!0,ou);case"textInput":return e=n.data,e===ou&&iu?null:e;default:return null}}function Ff(e,n){if(Qn)return e==="compositionend"||!ci&&Hs(e,n)?(e=Vs(),Mr=ui=dn=null,Qn=!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=cu(t)}}function Xs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Xs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Gs(){for(var e=window,n=Ar();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Ar(e.document)}return n}function fi(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 Kf(e){var n=Gs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Xs(t.ownerDocument.documentElement,t)){if(r!==null&&fi(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=fu(t,o);var i=fu(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,Kn=null,wo=null,Ot=null,So=!1;function du(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;So||Kn==null||Kn!==Ar(r)||(r=Kn,"selectionStart"in r&&fi(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}),Ot&&Kt(Ot,r)||(Ot=r,r=Kr(wo,"onSelect"),0Gn||(e.current=No[Gn],No[Gn]=null,Gn--)}function F(e,n){Gn++,No[Gn]=e.current,e.current=n}var _n={},se=xn(_n),ye=xn(!1),On=_n;function st(e,n){var t=e.type.contextTypes;if(!t)return _n;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 ge(e){return e=e.childContextTypes,e!=null}function Xr(){$(ye),$(se)}function wu(e,n,t){if(se.current!==_n)throw Error(g(168));F(se,n),F(ye,t)}function la(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(g(108,$c(e)||"Unknown",l));return K({},t,r)}function Gr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_n,On=se.current,F(se,e),F(ye,ye.current),!0}function Su(e,n,t){var r=e.stateNode;if(!r)throw Error(g(169));t?(e=la(e,n,On),r.__reactInternalMemoizedMergedChildContext=e,$(ye),$(se),F(se,e)):$(ye),F(ye,t)}var Je=null,hl=!1,Wl=!1;function oa(e){Je===null?Je=[e]:Je.push(e)}function ld(e){hl=!0,oa(e)}function Nn(){if(!Wl&&Je!==null){Wl=!0;var e=0,n=D;try{var t=Je;for(D=1;e>=i,l-=i,qe=1<<32-$e(n)+l|t<N?(H=x,x=null):H=x.sibling;var T=d(f,x,p[N],v);if(T===null){x===null&&(x=H);break}e&&x&&T.alternate===null&&n(f,x),a=o(T,a,N),C===null?E=T:C.sibling=T,C=T,x=H}if(N===p.length)return t(f,x),W&&Pn(f,N),E;if(x===null){for(;NN?(H=x,x=null):H=x.sibling;var Se=d(f,x,T.value,v);if(Se===null){x===null&&(x=H);break}e&&x&&Se.alternate===null&&n(f,x),a=o(Se,a,N),C===null?E=Se:C.sibling=Se,C=Se,x=H}if(T.done)return t(f,x),W&&Pn(f,N),E;if(x===null){for(;!T.done;N++,T=p.next())T=m(f,T.value,v),T!==null&&(a=o(T,a,N),C===null?E=T:C.sibling=T,C=T);return W&&Pn(f,N),E}for(x=r(f,x);!T.done;N++,T=p.next())T=y(x,f,N,T.value,v),T!==null&&(e&&T.alternate!==null&&x.delete(T.key===null?N:T.key),a=o(T,a,N),C===null?E=T:C.sibling=T,C=T);return e&&x.forEach(function(Xe){return n(f,Xe)}),W&&Pn(f,N),E}function M(f,a,p,v){if(typeof p=="object"&&p!==null&&p.type===Bn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ar:e:{for(var E=p.key,C=a;C!==null;){if(C.key===E){if(E=p.type,E===Bn){if(C.tag===7){t(f,C.sibling),a=l(C,p.props.children),a.return=f,f=a;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===sn&&Pu(E)===C.type){t(f,C.sibling),a=l(C,p.props),a.ref=Et(f,C,p),a.return=f,f=a;break e}t(f,C);break}else n(f,C);C=C.sibling}p.type===Bn?(a=In(p.props.children,f.mode,v,p.key),a.return=f,f=a):(v=Ur(p.type,p.key,p.props,null,f.mode,v),v.ref=Et(f,a,p),v.return=f,f=v)}return i(f);case Hn:e:{for(C=p.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===p.containerInfo&&a.stateNode.implementation===p.implementation){t(f,a.sibling),a=l(a,p.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=Zl(p,f.mode,v),a.return=f,f=a}return i(f);case sn:return C=p._init,M(f,a,C(p._payload),v)}if(Pt(p))return S(f,a,p,v);if(yt(p))return w(f,a,p,v);Sr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,p),a.return=f,f=a):(t(f,a),a=Gl(p,f.mode,v),a.return=f,f=a),i(f)):t(f,a)}return M}var ct=pa(!0),ma=pa(!1),ur={},Ye=xn(ur),Zt=xn(ur),Jt=xn(ur);function Ln(e){if(e===ur)throw Error(g(174));return e}function Si(e,n){switch(F(Jt,n),F(Zt,e),F(Ye,ur),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:so(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=so(n,e)}$(Ye),F(Ye,n)}function ft(){$(Ye),$(Zt),$(Jt)}function ha(e){Ln(Jt.current);var n=Ln(Ye.current),t=so(n,e.type);n!==t&&(F(Zt,e),F(Ye,t))}function ki(e){Zt.current===e&&($(Ye),$(Zt))}var B=xn(0);function nl(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 Hl=[];function Ei(){for(var e=0;et?t:4,e(!0);var r=Bl.transition;Bl.transition={};try{e(!1),n()}finally{D=t,Bl.transition=r}}function La(){return De().memoizedState}function sd(e,n,t){var r=Sn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ra(e))Ia(n,t);else if(t=aa(e,n,t,r),t!==null){var l=fe();Ve(t,e,r,l),Oa(t,n,r)}}function ad(e,n,t){var r=Sn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ra(e))Ia(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,We(u,i)){var s=n.interleaved;s===null?(l.next=l,gi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=aa(e,n,l,r),t!==null&&(l=fe(),Ve(t,e,r,l),Oa(t,n,r))}}function Ra(e){var n=e.alternate;return e===Q||n!==null&&n===Q}function Ia(e,n){Dt=tl=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Oa(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,li(e,t)}}var rl={readContext:Oe,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},cd={readContext:Oe,useCallback:function(e,n){return Be().memoizedState=[e,n===void 0?null:n],e},useContext:Oe,useEffect:Tu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Or(4194308,4,Na.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Or(4194308,4,e,n)},useInsertionEffect:function(e,n){return Or(4,2,e,n)},useMemo:function(e,n){var t=Be();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Be();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=sd.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var n=Be();return e={current:e},n.memoizedState=e},useState:zu,useDebugValue:Pi,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=zu(!1),n=e[0];return e=ud.bind(null,e[1]),Be().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=Q,l=Be();if(W){if(t===void 0)throw Error(g(407));t=t()}else{if(t=n(),ne===null)throw Error(g(349));jn&30||ga(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,Tu(Sa.bind(null,r,o,e),[e]),r.flags|=2048,er(9,wa.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=Be(),n=ne.identifierPrefix;if(W){var t=be,r=qe;t=(r&~(1<<32-$e(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[Qe]=n,e[Gt]=r,Ha(e,n,!1,!1),n.stateNode=e;e:{switch(i=co(t,r),t){case"dialog":A("cancel",e),A("close",e),l=r;break;case"iframe":case"object":case"embed":A("load",e),l=r;break;case"video":case"audio":for(l=0;lpt&&(n.flags|=128,r=!0,_t(o,!1),n.lanes=4194304)}else{if(!r)if(e=nl(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),_t(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!W)return ie(n),null}else 2*X()-o.renderingStartTime>pt&&t!==1073741824&&(n.flags|=128,r=!0,_t(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=X(),n.sibling=null,t=B.current,F(B,r?t&1|2:t&1),n):(ie(n),null);case 22:case 23:return Ii(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?Ee&1073741824&&(ie(n),n.subtreeFlags&6&&(n.flags|=8192)):ie(n),null;case 24:return null;case 25:return null}throw Error(g(156,n.tag))}function gd(e,n){switch(pi(n),n.tag){case 1:return ge(n.type)&&Xr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ft(),$(ye),$(se),Ei(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return ki(n),null;case 13:if($(B),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(g(340));at()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return $(B),null;case 4:return ft(),null;case 10:return yi(n.type._context),null;case 22:case 23:return Ii(),null;case 24:return null;default:return null}}var Er=!1,ue=!1,wd=typeof WeakSet=="function"?WeakSet:Set,_=null;function bn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Y(e,n,r)}else t.current=null}function Uo(e,n,t){try{t()}catch(r){Y(e,n,r)}}var Uu=!1;function Sd(e,n){if(ko=Br,e=Gs(),fi(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,c=0,h=0,m=e,f=null;n:for(;;){for(var y;m!==t||l!==0&&m.nodeType!==3||(u=i+l),m!==o||r!==0&&m.nodeType!==3||(s=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(y=m.firstChild)!==null;)f=m,m=y;for(;;){if(m===e)break n;if(f===t&&++c===l&&(u=i),f===o&&++h===r&&(s=i),(y=m.nextSibling)!==null)break;m=f,f=m.parentNode}m=y}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(Eo={focusedElem:e,selectionRange:t},Br=!1,_=n;_!==null;)if(n=_,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,_=e;else for(;_!==null;){n=_;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,I=w.memoizedState,d=n.stateNode,a=d.getSnapshotBeforeUpdate(n.elementType===n.type?S:Fe(n.type,S),I);d.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var p=n.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(g(163))}}catch(v){Y(n,n.return,v)}if(e=n.sibling,e!==null){e.return=n.return,_=e;break}_=n.return}return w=Uu,Uu=!1,w}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&&Uo(n,t,o)}l=l.next}while(l!==r)}}function gl(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 Ao(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 Ka(e){var n=e.alternate;n!==null&&(e.alternate=null,Ka(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Qe],delete n[Gt],delete n[xo],delete n[td],delete n[rd])),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 Ya(e){return e.tag===5||e.tag===3||e.tag===4}function Au(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ya(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 $o(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=Yr));else if(r!==4&&(e=e.child,e!==null))for($o(e,n,t),e=e.sibling;e!==null;)$o(e,n,t),e=e.sibling}function Vo(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(Vo(e,n,t),e=e.sibling;e!==null;)Vo(e,n,t),e=e.sibling}var te=null,Ue=!1;function un(e,n,t){for(t=t.child;t!==null;)Xa(e,n,t),t=t.sibling}function Xa(e,n,t){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(cl,t)}catch{}switch(t.tag){case 5:ue||bn(t,n);case 6:var r=te,l=Ue;te=null,un(e,n,t),te=r,Ue=l,te!==null&&(Ue?(e=te,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):te.removeChild(t.stateNode));break;case 18:te!==null&&(Ue?(e=te,t=t.stateNode,e.nodeType===8?Vl(e.parentNode,t):e.nodeType===1&&Vl(e,t),Bt(e)):Vl(te,t.stateNode));break;case 4:r=te,l=Ue,te=t.stateNode.containerInfo,Ue=!0,un(e,n,t),te=r,Ue=l;break;case 0:case 11:case 14:case 15:if(!ue&&(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)&&Uo(t,n,i),l=l.next}while(l!==r)}un(e,n,t);break;case 1:if(!ue&&(bn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){Y(t,n,u)}un(e,n,t);break;case 21:un(e,n,t);break;case 22:t.mode&1?(ue=(r=ue)||t.memoizedState!==null,un(e,n,t),ue=r):un(e,n,t);break;default:un(e,n,t)}}function $u(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new wd),n.forEach(function(r){var l=Td.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function je(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=X()-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,pn===null)var r=!1;else{if(e=pn,pn=null,il=0,O&6)throw Error(g(331));var l=O;for(O|=4,_=e.current;_!==null;){var o=_,i=o.child;if(_.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sX()-Li?Rn(e,0):Mi|=t),we(e,n)}function tc(e,n){n===0&&(e.mode&1?(n=pr,pr<<=1,!(pr&130023424)&&(pr=4194304)):n=1);var t=fe();e=rn(e,n),e!==null&&(lr(e,n,t),we(e,t))}function zd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),tc(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(g(314))}r!==null&&r.delete(n),tc(e,t)}var rc;rc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||ye.current)ve=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ve=!1,vd(e,n,t);ve=!!(e.flags&131072)}else ve=!1,W&&n.flags&1048576&&ia(n,Jr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Dr(e,n),e=n.pendingProps;var l=st(n,se.current);ot(n,t),l=Ci(null,n,r,e,l,t);var o=xi();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,ge(r)?(o=!0,Gr(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,wi(n),l.updater=vl,n.stateNode=l,l._reactInternals=n,Lo(n,r,e,t),n=Oo(null,n,r,!0,o,t)):(n.tag=0,W&&o&&di(n),ae(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Dr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Ld(r),e=Fe(r,e),l){case 0:n=Io(null,n,r,e,t);break e;case 1:n=Du(null,n,r,e,t);break e;case 11:n=Iu(null,n,r,e,t);break e;case 14:n=Ou(null,n,r,Fe(r.type,e),t);break e}throw Error(g(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Fe(r,l),Io(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Fe(r,l),Du(e,n,r,l,t);case 3:e:{if($a(n),e===null)throw Error(g(387));r=n.pendingProps,o=n.memoizedState,l=o.element,ca(e,n),el(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=dt(Error(g(423)),n),n=ju(e,n,r,t,l);break e}else if(r!==l){l=dt(Error(g(424)),n),n=ju(e,n,r,t,l);break e}else for(_e=yn(n.stateNode.containerInfo.firstChild),Ce=n,W=!0,Ae=null,t=ma(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(at(),r===l){n=ln(e,n,t);break e}ae(e,n,r,t)}n=n.child}return n;case 5:return ha(n),e===null&&zo(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,_o(r,l)?i=null:o!==null&&_o(r,o)&&(n.flags|=32),Aa(e,n),ae(e,n,i,t),n.child;case 6:return e===null&&zo(n),null;case 13:return Va(e,n,t);case 4:return Si(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=ct(n,null,r,t):ae(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Fe(r,l),Iu(e,n,r,l,t);case 7:return ae(e,n,n.pendingProps,t),n.child;case 8:return ae(e,n,n.pendingProps.children,t),n.child;case 12:return ae(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,F(qr,r._currentValue),r._currentValue=i,o!==null)if(We(o.value,i)){if(o.children===l.children&&!ye.current){n=ln(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=en(-1,t&-t),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),To(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(g(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),To(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}ae(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,ot(n,t),l=Oe(l),r=r(l),n.flags|=1,ae(e,n,r,t),n.child;case 14:return r=n.type,l=Fe(r,n.pendingProps),l=Fe(r.type,l),Ou(e,n,r,l,t);case 15:return Fa(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Fe(r,l),Dr(e,n),n.tag=1,ge(r)?(e=!0,Gr(n)):e=!1,ot(n,t),da(n,r,l),Lo(n,r,l,t),Oo(null,n,r,!0,e,t);case 19:return Wa(e,n,t);case 22:return Ua(e,n,t)}throw Error(g(156,n.tag))};function lc(e,n){return Ms(e,n)}function Md(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 Re(e,n,t,r){return new Md(e,n,t,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ld(e){if(typeof e=="function")return Di(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ei)return 11;if(e===ni)return 14}return 2}function kn(e,n){var t=e.alternate;return t===null?(t=Re(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 Ur(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")Di(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Bn:return In(t.children,l,o,n);case bo:i=8,l|=8;break;case eo:return e=Re(12,t,n,l|2),e.elementType=eo,e.lanes=o,e;case no:return e=Re(13,t,n,l),e.elementType=no,e.lanes=o,e;case to:return e=Re(19,t,n,l),e.elementType=to,e.lanes=o,e;case ps:return Sl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fs:i=10;break e;case ds:i=9;break e;case ei:i=11;break e;case ni:i=14;break e;case sn:i=16,r=null;break e}throw Error(g(130,e==null?e:typeof e,""))}return n=Re(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function In(e,n,t,r){return e=Re(7,e,r,n),e.lanes=t,e}function Sl(e,n,t,r){return e=Re(22,e,r,n),e.elementType=ps,e.lanes=t,e.stateNode={isHidden:!1},e}function Gl(e,n,t){return e=Re(6,e,null,n),e.lanes=t,e}function Zl(e,n,t){return n=Re(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=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ji(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=Re(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},wi(o),e}function Id(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sc)}catch(e){console.error(e)}}sc(),is.exports=Ne;var Ud=is.exports,Xu=Ud;ql.createRoot=Xu.createRoot,ql.hydrateRoot=Xu.hydrateRoot;function tr(e,n){const t=e.length;if(t!=n.length)throw new RangeError("Mismatched lengths");t!=0&&(t&t-1?$d(e,n):Ad(e,n))}function ac(e,n){tr(n,e)}function Ad(e,n){const t=e.length;if(t!=n.length)throw new RangeError("Mismatched lengths");if(t==1)return;let r=-1;for(let u=0;u<32;u++)1<u){let c=e[u];e[u]=e[s],e[s]=c,c=n[u],n[u]=n[s],n[s]=c}}for(let u=2;u<=t;u*=2){const s=u/2,c=t/u;for(let h=0;h>>=1;return c}}function $d(e,n){const t=e.length;if(t!=n.length)throw new RangeError("Mismatched lengths");let r=1;for(;r{n.onmidimessage=qd})}function qd(e){let n=`MIDI message received at timestamp ${e.timeStamp}[${e.data.length} bytes]: `;for(const t of e.data)n+=`0x${t.toString(16)} `;if(console.log(n),console.log(e.data[1]),e.data[0]===Bd){let t=e.data[1]-Qd,r=2**(1/12*t)*Kd;cc(r)}}const bd="_up_arrow_1svx5_1",ep="_down_arrow_1svx5_45",Gu={up_arrow:bd,down_arrow:ep};function np({Hz:e,onChangeHz:n}){const t=1.0594630943592953,r=8;function l(u){let s=u.currentTarget.textContent||"";!s.trim()||isNaN(s)?u.target.textContent=e.toFixed(2):s>24e3?s=24e3:s<-24e3&&(s=-24e3),n(parseFloat(s))}function o(u){u.key==="Enter"&&(u.preventDefault(),u.currentTarget.blur())}const i=u=>{const s=u.target.textContent||"";if(s.length>r){u.preventDefault();const c=s.slice(0,r);setTimeout(()=>{const h=document.createRange(),m=window.getSelection();m&&(h.setStart(u.target.childNodes[0],c.length),h.collapse(!0),m.removeAllRanges(),m.addRange(h))},0),u.target.textContent=c}};return j.jsxs(j.Fragment,{children:[j.jsx("button",{className:Gu.up_arrow,onClick:()=>n(e*t)}),j.jsx("p",{className:"digital-display",contentEditable:!0,suppressContentEditableWarning:!0,onBlur:u=>l(u),onKeyDown:u=>o(u),onInput:u=>i(u),style:{width:"7em"},children:e.toFixed(2)}),j.jsx("button",{className:Gu.down_arrow,onClick:()=>n(e/t)})]})}const tp="_screen_1hej6_1",rp={screen:tp};function lp({width:e,height:n,pcm:t,onPCMChange:r,displayPCM:l}){const o="rgb(255 16 240)",i="rgb(4 217 255)",s=ce.useRef(null),[c,h]=ce.useState(Xe(t)),[m,f]=ce.useState(Ge(N(t,e/8))),[y,w]=ce.useState(t);t!=y&&(h(Xe(t)),f(Ge(N(t,e/8))),w(t));const[S,I]=ce.useState(!1),[d,a]=ce.useState([0,c[0]]);function p({nativeEvent:M}){a([M.offsetX,M.offsetY]),I(!0)}function v(){I(!1)}function E({nativeEvent:M}){M.buttons===1&&p({nativeEvent:M})}function C({nativeEvent:M}){if(!S)return;const R=Math.min(Math.max(0,M.offsetX),e),b=Math.min(Math.max(0,M.offsetY),n),[Z,k]=d,z=R-Z,P=Math.abs(z),V=Math.sign(z);let U=y.slice();if(l){const ze=c.slice();for(let me=0;me<=P;me++){let ke;P===0?ke=1:ke=me/P,ze[Z+V*me]=k*(1-ke)+b*ke}U=T(ze),f(Ge(N(U,e/8))),h(ze)}else{const ze=m.slice();for(let ke=0;ke<=P;ke+=8){let Te;P===0?Te=1:Te=ke/P;let Vn=Math.floor((Z+V*ke)/8);ze[Vn]=k*(1-Te)+b*Te}const me=Se(ze);U=H(me),h(Xe(U)),f(ze)}a([R,b]),w(U),r(U)}function x(M){if(M.fillRect(0,0,e,n),M.lineWidth=2,l){M.strokeStyle=i,M.beginPath(),M.moveTo(0,c[0]);for(let R=0;R{x(s.current.getContext("2d"))});function N(M,R){const b=M.slice(),Z=b.slice().fill(0);tr(b,Z);let k=b.slice(1,R+1);return k=k.map(function(z,P){return Math.sqrt(z**2+Z[P+1]**2)}),k}function H(M){const R=new Float32Array(e).fill(0),b=R.slice();for(let Z=0;ZMath.sin(2*Math.PI*a/S));break;case"square":I=new Float32Array(S).fill().map((d,a)=>a1*(1-a/S)+-1*a/S);break;case"line":I=new Float32Array(S).fill(0);break}h(I)}return ce.useEffect(()=>{Yd(m)},[]),j.jsxs("div",{id:xt.console,children:[j.jsx("div",{id:xt.hz_area,children:j.jsx(np,{Hz:s,onChangeHz:m})}),j.jsxs("div",{id:xt.middle_console,children:[j.jsx(lp,{width:512,height:512,pcm:l,onPCMChange:h,displayPCM:i}),j.jsxs("div",{id:xt.wave_buttons,children:[j.jsx(Nr,{shape:"sine",onClick:()=>y("sine")}),j.jsx(Nr,{shape:"square",onClick:()=>y("square")}),j.jsx(Nr,{shape:"sawtooth",onClick:()=>y("sawtooth")}),j.jsx(Nr,{shape:"line",onClick:()=>y("line")})]})]}),j.jsx("div",{id:xt.toggle_area,children:j.jsx(pp,{isPressed:i,onToggle:f})})]})}function Sp(){return j.jsx(wp,{})}ql.createRoot(document.getElementById("root")).render(j.jsx(Pc.StrictMode,{children:j.jsx(Sp,{})})); +`+o.stack}return{value:e,source:n,stack:l,digest:null}}function Yl(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function Ro(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var pd=typeof WeakMap=="function"?WeakMap:Map;function Da(e,n,t){t=en(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ol||(ol=!0,Wo=r),Ro(e,n)},t}function ja(e,n,t){t=en(-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(){Ro(e,n)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Ro(e,n),typeof r!="function"&&(wn===null?wn=new Set([this]):wn.add(this));var i=n.stack;this.componentDidCatch(n.value,{componentStack:i!==null?i:""})}),t}function Mu(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new pd;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=Pd.bind(null,e,n,t),n.then(e,e))}function Lu(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 Ru(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=en(-1,1),n.tag=2,gn(t,n,1))),t.lanes|=1),e)}var md=on.ReactCurrentOwner,ve=!1;function ae(e,n,t,r){n.child=e===null?ma(n,null,t,r):ct(n,e.child,t,r)}function Iu(e,n,t,r,l){t=t.render;var o=n.ref;return ot(n,l),r=Ci(e,n,t,r,o,l),t=xi(),e!==null&&!ve?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ln(e,n,l)):(W&&t&&di(n),n.flags|=1,ae(e,n,r,l),n.child)}function Ou(e,n,t,r,l){if(e===null){var o=t.type;return typeof o=="function"&&!Di(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=o,Fa(e,n,o,r,l)):(e=Ur(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:Kt,t(i,r)&&e.ref===n.ref)return ln(e,n,l)}return n.flags|=1,e=kn(o,r),e.ref=n.ref,e.return=n,n.child=e}function Fa(e,n,t,r,l){if(e!==null){var o=e.memoizedProps;if(Kt(o,r)&&e.ref===n.ref)if(ve=!1,n.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(ve=!0);else return n.lanes=e.lanes,ln(e,n,l)}return Io(e,n,t,r,l)}function Ua(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},F(et,Ee),Ee|=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,F(et,Ee),Ee|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:t,F(et,Ee),Ee|=r}else o!==null?(r=o.baseLanes|t,n.memoizedState=null):r=t,F(et,Ee),Ee|=r;return ae(e,n,l,t),n.child}function Aa(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function Io(e,n,t,r,l){var o=ge(t)?On:se.current;return o=st(n,o),ot(n,l),t=Ci(e,n,t,r,o,l),r=xi(),e!==null&&!ve?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,ln(e,n,l)):(W&&r&&di(n),n.flags|=1,ae(e,n,t,l),n.child)}function Du(e,n,t,r,l){if(ge(t)){var o=!0;Gr(n)}else o=!1;if(ot(n,l),n.stateNode===null)Dr(e,n),da(n,t,r),Lo(n,t,r,l),r=!0;else if(e===null){var i=n.stateNode,u=n.memoizedProps;i.props=u;var s=i.context,c=t.contextType;typeof c=="object"&&c!==null?c=Oe(c):(c=ge(t)?On:se.current,c=st(n,c));var h=t.getDerivedStateFromProps,m=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==c)&&Nu(n,i,r,c),an=!1;var d=n.memoizedState;i.state=d,el(n,r,i,l),s=n.memoizedState,u!==r||d!==s||ye.current||an?(typeof h=="function"&&(Mo(n,t,h,r),s=n.memoizedState),(u=an||xu(n,t,u,r,d,s,c))?(m||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=c,r=u):(typeof i.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{i=n.stateNode,ca(e,n),u=n.memoizedProps,c=n.type===n.elementType?u:Fe(n.type,u),i.props=c,m=n.pendingProps,d=i.context,s=t.contextType,typeof s=="object"&&s!==null?s=Oe(s):(s=ge(t)?On:se.current,s=st(n,s));var y=t.getDerivedStateFromProps;(h=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==m||d!==s)&&Nu(n,i,r,s),an=!1,d=n.memoizedState,i.state=d,el(n,r,i,l);var S=n.memoizedState;u!==m||d!==S||ye.current||an?(typeof y=="function"&&(Mo(n,t,y,r),S=n.memoizedState),(c=an||xu(n,t,c,r,d,S,s)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,s)),typeof i.componentDidUpdate=="function"&&(n.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=S),i.props=r,i.state=S,i.context=s,r=c):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return Oo(e,n,t,r,o,l)}function Oo(e,n,t,r,l,o){Aa(e,n);var i=(n.flags&128)!==0;if(!r&&!i)return l&&Su(n,t,!1),ln(e,n,o);r=n.stateNode,md.current=n;var u=i&&typeof t.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&i?(n.child=ct(n,e.child,null,o),n.child=ct(n,null,u,o)):ae(e,n,u,o),n.memoizedState=r.state,l&&Su(n,t,!0),n.child}function $a(e){var n=e.stateNode;n.pendingContext?wu(e,n.pendingContext,n.pendingContext!==n.context):n.context&&wu(e,n.context,!1),Si(e,n.containerInfo)}function ju(e,n,t,r,l){return at(),mi(l),n.flags|=256,ae(e,n,t,r),n.child}var Do={dehydrated:null,treeContext:null,retryLane:0};function jo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Va(e,n,t){var r=n.pendingProps,l=B.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),F(B,l&1),e===null)return zo(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=Sl(i,r,0,null),e=In(e,r,t,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=jo(t),n.memoizedState=Do,e):zi(n,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return hd(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=kn(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=kn(u,o):(o=In(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?jo(t):{baseLanes:i.baseLanes|t,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~t,n.memoizedState=Do,r}return o=e.child,e=o.sibling,r=kn(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 zi(e,n){return n=Sl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function kr(e,n,t,r){return r!==null&&mi(r),ct(n,e.child,null,t),e=zi(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function hd(e,n,t,r,l,o,i){if(t)return n.flags&256?(n.flags&=-257,r=Yl(Error(g(422))),kr(e,n,i,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(o=r.fallback,l=n.mode,r=Sl({mode:"visible",children:r.children},l,0,null),o=In(o,l,i,null),o.flags|=2,r.return=n,o.return=n,r.sibling=o,n.child=r,n.mode&1&&ct(n,e.child,null,i),n.child.memoizedState=jo(i),n.memoizedState=Do,o);if(!(n.mode&1))return kr(e,n,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(g(419)),r=Yl(o,r,void 0),kr(e,n,i,r)}if(u=(i&e.childLanes)!==0,ve||u){if(r=ne,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,rn(e,l),Ve(r,e,l,-1))}return Oi(),r=Yl(Error(g(421))),kr(e,n,i,r)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=zd.bind(null,e),l._reactRetry=n,null):(e=o.treeContext,_e=yn(l.nextSibling),Ce=n,W=!0,Ae=null,e!==null&&(Me[Le++]=qe,Me[Le++]=be,Me[Le++]=Dn,qe=e.id,be=e.overflow,Dn=n),n=zi(n,r.children),n.flags|=4096,n)}function Fu(e,n,t){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),To(e.return,n,t)}function Xl(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 Wa(e,n,t){var r=n.pendingProps,l=r.revealOrder,o=r.tail;if(ae(e,n,r.children,t),r=B.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&&Fu(e,t,n);else if(e.tag===19)Fu(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(F(B,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&&nl(e)===null&&(l=t),t=t.sibling;t=l,t===null?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),Xl(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&&nl(e)===null){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}Xl(n,!0,t,null,o);break;case"together":Xl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Dr(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ln(e,n,t){if(e!==null&&(n.dependencies=e.dependencies),Fn|=n.lanes,!(t&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(g(153));if(n.child!==null){for(e=n.child,t=kn(e,e.pendingProps),n.child=t,t.return=n;e.sibling!==null;)e=e.sibling,t=t.sibling=kn(e,e.pendingProps),t.return=n;t.sibling=null}return n.child}function vd(e,n,t){switch(n.tag){case 3:$a(n),at();break;case 5:ha(n);break;case 1:ge(n.type)&&Gr(n);break;case 4:Si(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;F(qr,r._currentValue),r._currentValue=l;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(F(B,B.current&1),n.flags|=128,null):t&n.child.childLanes?Va(e,n,t):(F(B,B.current&1),e=ln(e,n,t),e!==null?e.sibling:null);F(B,B.current&1);break;case 19:if(r=(t&n.childLanes)!==0,e.flags&128){if(r)return Wa(e,n,t);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),F(B,B.current),r)break;return null;case 22:case 23:return n.lanes=0,Ua(e,n,t)}return ln(e,n,t)}var Ha,Fo,Ba,Qa;Ha=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}};Fo=function(){};Ba=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,Ln(Ye.current);var o=null;switch(t){case"input":l=lo(e,l),r=lo(e,r),o=[];break;case"select":l=K({},l,{value:void 0}),r=K({},r,{value:void 0}),o=[];break;case"textarea":l=uo(e,l),r=uo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yr)}ao(t,r);var i;t=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var u=l[c];for(i in u)u.hasOwnProperty(i)&&(t||(t={}),t[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(At.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var s=r[c];if(u=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(s!=null||u!=null))if(c==="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(c,t)),t=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(At.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&A("scroll",e),o||u===s||(o=[])):(o=o||[]).push(c,s))}t&&(o=o||[]).push("style",t);var c=o;(n.updateQueue=c)&&(n.flags|=4)}};Qa=function(e,n,t,r){t!==r&&(n.flags|=4)};function _t(e,n){if(!W)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 ie(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 yd(e,n,t){var r=n.pendingProps;switch(pi(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ie(n),null;case 1:return ge(n.type)&&Xr(),ie(n),null;case 3:return r=n.stateNode,ft(),$(ye),$(se),Ei(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wr(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Ae!==null&&(Qo(Ae),Ae=null))),Fo(e,n),ie(n),null;case 5:ki(n);var l=Ln(Jt.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(g(166));return ie(n),null}if(e=Ln(Ye.current),wr(n)){r=n.stateNode,t=n.type;var o=n.memoizedProps;switch(r[Qe]=n,r[Gt]=o,e=(n.mode&1)!==0,t){case"dialog":A("cancel",r),A("close",r);break;case"iframe":case"object":case"embed":A("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[Qe]=n,e[Gt]=r,Ha(e,n,!1,!1),n.stateNode=e;e:{switch(i=co(t,r),t){case"dialog":A("cancel",e),A("close",e),l=r;break;case"iframe":case"object":case"embed":A("load",e),l=r;break;case"video":case"audio":for(l=0;lpt&&(n.flags|=128,r=!0,_t(o,!1),n.lanes=4194304)}else{if(!r)if(e=nl(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),_t(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!W)return ie(n),null}else 2*X()-o.renderingStartTime>pt&&t!==1073741824&&(n.flags|=128,r=!0,_t(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=X(),n.sibling=null,t=B.current,F(B,r?t&1|2:t&1),n):(ie(n),null);case 22:case 23:return Ii(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?Ee&1073741824&&(ie(n),n.subtreeFlags&6&&(n.flags|=8192)):ie(n),null;case 24:return null;case 25:return null}throw Error(g(156,n.tag))}function gd(e,n){switch(pi(n),n.tag){case 1:return ge(n.type)&&Xr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ft(),$(ye),$(se),Ei(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return ki(n),null;case 13:if($(B),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(g(340));at()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return $(B),null;case 4:return ft(),null;case 10:return yi(n.type._context),null;case 22:case 23:return Ii(),null;case 24:return null;default:return null}}var Er=!1,ue=!1,wd=typeof WeakSet=="function"?WeakSet:Set,_=null;function bn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Y(e,n,r)}else t.current=null}function Uo(e,n,t){try{t()}catch(r){Y(e,n,r)}}var Uu=!1;function Sd(e,n){if(ko=Br,e=Gs(),fi(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,c=0,h=0,m=e,d=null;n:for(;;){for(var y;m!==t||l!==0&&m.nodeType!==3||(u=i+l),m!==o||r!==0&&m.nodeType!==3||(s=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(y=m.firstChild)!==null;)d=m,m=y;for(;;){if(m===e)break n;if(d===t&&++c===l&&(u=i),d===o&&++h===r&&(s=i),(y=m.nextSibling)!==null)break;m=d,d=m.parentNode}m=y}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(Eo={focusedElem:e,selectionRange:t},Br=!1,_=n;_!==null;)if(n=_,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,_=e;else for(;_!==null;){n=_;try{var S=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var w=S.memoizedProps,M=S.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?w:Fe(n.type,w),M);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var p=n.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(g(163))}}catch(v){Y(n,n.return,v)}if(e=n.sibling,e!==null){e.return=n.return,_=e;break}_=n.return}return S=Uu,Uu=!1,S}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&&Uo(n,t,o)}l=l.next}while(l!==r)}}function gl(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 Ao(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 Ka(e){var n=e.alternate;n!==null&&(e.alternate=null,Ka(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Qe],delete n[Gt],delete n[xo],delete n[td],delete n[rd])),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 Ya(e){return e.tag===5||e.tag===3||e.tag===4}function Au(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ya(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 $o(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=Yr));else if(r!==4&&(e=e.child,e!==null))for($o(e,n,t),e=e.sibling;e!==null;)$o(e,n,t),e=e.sibling}function Vo(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(Vo(e,n,t),e=e.sibling;e!==null;)Vo(e,n,t),e=e.sibling}var te=null,Ue=!1;function un(e,n,t){for(t=t.child;t!==null;)Xa(e,n,t),t=t.sibling}function Xa(e,n,t){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(cl,t)}catch{}switch(t.tag){case 5:ue||bn(t,n);case 6:var r=te,l=Ue;te=null,un(e,n,t),te=r,Ue=l,te!==null&&(Ue?(e=te,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):te.removeChild(t.stateNode));break;case 18:te!==null&&(Ue?(e=te,t=t.stateNode,e.nodeType===8?Vl(e.parentNode,t):e.nodeType===1&&Vl(e,t),Bt(e)):Vl(te,t.stateNode));break;case 4:r=te,l=Ue,te=t.stateNode.containerInfo,Ue=!0,un(e,n,t),te=r,Ue=l;break;case 0:case 11:case 14:case 15:if(!ue&&(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)&&Uo(t,n,i),l=l.next}while(l!==r)}un(e,n,t);break;case 1:if(!ue&&(bn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){Y(t,n,u)}un(e,n,t);break;case 21:un(e,n,t);break;case 22:t.mode&1?(ue=(r=ue)||t.memoizedState!==null,un(e,n,t),ue=r):un(e,n,t);break;default:un(e,n,t)}}function $u(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new wd),n.forEach(function(r){var l=Td.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function je(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=X()-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,pn===null)var r=!1;else{if(e=pn,pn=null,il=0,O&6)throw Error(g(331));var l=O;for(O|=4,_=e.current;_!==null;){var o=_,i=o.child;if(_.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sX()-Li?Rn(e,0):Mi|=t),we(e,n)}function tc(e,n){n===0&&(e.mode&1?(n=pr,pr<<=1,!(pr&130023424)&&(pr=4194304)):n=1);var t=fe();e=rn(e,n),e!==null&&(lr(e,n,t),we(e,t))}function zd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),tc(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(g(314))}r!==null&&r.delete(n),tc(e,t)}var rc;rc=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||ye.current)ve=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ve=!1,vd(e,n,t);ve=!!(e.flags&131072)}else ve=!1,W&&n.flags&1048576&&ia(n,Jr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Dr(e,n),e=n.pendingProps;var l=st(n,se.current);ot(n,t),l=Ci(null,n,r,e,l,t);var o=xi();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,ge(r)?(o=!0,Gr(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,wi(n),l.updater=vl,n.stateNode=l,l._reactInternals=n,Lo(n,r,e,t),n=Oo(null,n,r,!0,o,t)):(n.tag=0,W&&o&&di(n),ae(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Dr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Ld(r),e=Fe(r,e),l){case 0:n=Io(null,n,r,e,t);break e;case 1:n=Du(null,n,r,e,t);break e;case 11:n=Iu(null,n,r,e,t);break e;case 14:n=Ou(null,n,r,Fe(r.type,e),t);break e}throw Error(g(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Fe(r,l),Io(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Fe(r,l),Du(e,n,r,l,t);case 3:e:{if($a(n),e===null)throw Error(g(387));r=n.pendingProps,o=n.memoizedState,l=o.element,ca(e,n),el(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=dt(Error(g(423)),n),n=ju(e,n,r,t,l);break e}else if(r!==l){l=dt(Error(g(424)),n),n=ju(e,n,r,t,l);break e}else for(_e=yn(n.stateNode.containerInfo.firstChild),Ce=n,W=!0,Ae=null,t=ma(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(at(),r===l){n=ln(e,n,t);break e}ae(e,n,r,t)}n=n.child}return n;case 5:return ha(n),e===null&&zo(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,_o(r,l)?i=null:o!==null&&_o(r,o)&&(n.flags|=32),Aa(e,n),ae(e,n,i,t),n.child;case 6:return e===null&&zo(n),null;case 13:return Va(e,n,t);case 4:return Si(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=ct(n,null,r,t):ae(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Fe(r,l),Iu(e,n,r,l,t);case 7:return ae(e,n,n.pendingProps,t),n.child;case 8:return ae(e,n,n.pendingProps.children,t),n.child;case 12:return ae(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,F(qr,r._currentValue),r._currentValue=i,o!==null)if(We(o.value,i)){if(o.children===l.children&&!ye.current){n=ln(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=en(-1,t&-t),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),To(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(g(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),To(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}ae(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,ot(n,t),l=Oe(l),r=r(l),n.flags|=1,ae(e,n,r,t),n.child;case 14:return r=n.type,l=Fe(r,n.pendingProps),l=Fe(r.type,l),Ou(e,n,r,l,t);case 15:return Fa(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Fe(r,l),Dr(e,n),n.tag=1,ge(r)?(e=!0,Gr(n)):e=!1,ot(n,t),da(n,r,l),Lo(n,r,l,t),Oo(null,n,r,!0,e,t);case 19:return Wa(e,n,t);case 22:return Ua(e,n,t)}throw Error(g(156,n.tag))};function lc(e,n){return Ms(e,n)}function Md(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 Re(e,n,t,r){return new Md(e,n,t,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ld(e){if(typeof e=="function")return Di(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ei)return 11;if(e===ni)return 14}return 2}function kn(e,n){var t=e.alternate;return t===null?(t=Re(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 Ur(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")Di(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Bn:return In(t.children,l,o,n);case bo:i=8,l|=8;break;case eo:return e=Re(12,t,n,l|2),e.elementType=eo,e.lanes=o,e;case no:return e=Re(13,t,n,l),e.elementType=no,e.lanes=o,e;case to:return e=Re(19,t,n,l),e.elementType=to,e.lanes=o,e;case ps:return Sl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fs:i=10;break e;case ds:i=9;break e;case ei:i=11;break e;case ni:i=14;break e;case sn:i=16,r=null;break e}throw Error(g(130,e==null?e:typeof e,""))}return n=Re(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function In(e,n,t,r){return e=Re(7,e,r,n),e.lanes=t,e}function Sl(e,n,t,r){return e=Re(22,e,r,n),e.elementType=ps,e.lanes=t,e.stateNode={isHidden:!1},e}function Gl(e,n,t){return e=Re(6,e,null,n),e.lanes=t,e}function Zl(e,n,t){return n=Re(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=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ji(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=Re(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},wi(o),e}function Id(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sc)}catch(e){console.error(e)}}sc(),is.exports=Ne;var Ud=is.exports,Xu=Ud;ql.createRoot=Xu.createRoot,ql.hydrateRoot=Xu.hydrateRoot;function tr(e,n){const t=e.length;if(t!=n.length)throw new RangeError("Mismatched lengths");t!=0&&(t&t-1?$d(e,n):Ad(e,n))}function ac(e,n){tr(n,e)}function Ad(e,n){const t=e.length;if(t!=n.length)throw new RangeError("Mismatched lengths");if(t==1)return;let r=-1;for(let u=0;u<32;u++)1<u){let c=e[u];e[u]=e[s],e[s]=c,c=n[u],n[u]=n[s],n[s]=c}}for(let u=2;u<=t;u*=2){const s=u/2,c=t/u;for(let h=0;h>>=1;return c}}function $d(e,n){const t=e.length;if(t!=n.length)throw new RangeError("Mismatched lengths");let r=1;for(;r{n.onmidimessage=qd})}function qd(e){let n=`MIDI message received at timestamp ${e.timeStamp}[${e.data.length} bytes]: `;for(const t of e.data)n+=`0x${t.toString(16)} `;if(console.log(n),console.log(e.data[1]),e.data[0]===Bd){let t=e.data[1]-Qd,r=2**(1/12*t)*Kd;cc(r)}}const bd="_up_arrow_1svx5_1",ep="_down_arrow_1svx5_45",Gu={up_arrow:bd,down_arrow:ep};function np({Hz:e,onChangeHz:n}){const t=1.0594630943592953,r=8;function l(u){let s=u.currentTarget.textContent||"";!s.trim()||isNaN(s)?u.target.textContent=e.toFixed(2):s>24e3?s=24e3:s<-24e3&&(s=-24e3),n(parseFloat(s))}function o(u){u.key==="Enter"&&(u.preventDefault(),u.currentTarget.blur())}const i=u=>{const s=u.target.textContent||"";if(s.length>r){u.preventDefault();const c=s.slice(0,r);setTimeout(()=>{const h=document.createRange(),m=window.getSelection();m&&(h.setStart(u.target.childNodes[0],c.length),h.collapse(!0),m.removeAllRanges(),m.addRange(h))},0),u.target.textContent=c}};return j.jsxs(j.Fragment,{children:[j.jsx("button",{className:Gu.up_arrow,onClick:()=>n(e*t)}),j.jsx("p",{className:"digital-display",contentEditable:!0,suppressContentEditableWarning:!0,onBlur:u=>l(u),onKeyDown:u=>o(u),onInput:u=>i(u),style:{width:"7em"},children:e.toFixed(2)}),j.jsx("button",{className:Gu.down_arrow,onClick:()=>n(e/t)})]})}const tp="_screen_1hej6_1",rp={screen:tp};function lp({width:e,height:n,pcm:t,onPCMChange:r,displayPCM:l}){const o="rgb(255 16 240)",i="rgb(4 217 255)",s=ce.useRef(null),[c,h]=ce.useState(Xe(t)),[m,d]=ce.useState(Ge(N(t,e/8))),[y,S]=ce.useState(t);t!=y&&(h(Xe(t)),d(Ge(N(t,e/8))),S(t));const[w,M]=ce.useState(!1),[f,a]=ce.useState([0,c[0]]);function p({nativeEvent:L}){a([L.offsetX,L.offsetY]),M(!0)}function v(){M(!1)}function E({nativeEvent:L}){L.buttons===1&&p({nativeEvent:L})}function C({nativeEvent:L}){if(!w)return;const I=Math.min(Math.max(0,L.offsetX),e),b=Math.min(Math.max(0,L.offsetY),n),[Z,k]=f,z=I-Z,P=Math.abs(z),V=Math.sign(z);let U=y.slice();if(l){const ze=c.slice();for(let me=0;me<=P;me++){let ke;P===0?ke=1:ke=me/P,ze[Z+V*me]=k*(1-ke)+b*ke}U=T(ze),d(Ge(N(U,e/8))),h(ze)}else{const ze=m.slice();for(let ke=0;ke<=P;ke+=8){let Te;P===0?Te=1:Te=ke/P;let Vn=Math.floor((Z+V*ke)/8);ze[Vn]=k*(1-Te)+b*Te}const me=Se(ze);U=H(me),h(Xe(U)),d(ze)}a([I,b]),S(U),r(U)}function x(L){if(L.fillRect(0,0,e,n),L.lineWidth=2,l){L.strokeStyle=i,L.beginPath(),L.moveTo(0,c[0]);for(let I=0;I{x(s.current.getContext("2d"))});function N(L,I){const b=L.slice(),Z=b.slice().fill(0);tr(b,Z);let k=b.slice(1,I+1);return k=k.map(function(z,P){return Math.sqrt(z**2+Z[P+1]**2)}),k}function H(L){const I=new Float32Array(e).fill(0),b=I.slice();for(let Z=0;ZMath.sin(2*Math.PI*p/M));break;case"square":f=new Float32Array(M).fill().map((a,p)=>p1*(1-p/M)+-1*p/M);break;case"line":f=new Float32Array(M).fill(0);break}h(f)}ce.useEffect(()=>{Yd(m)},[]);function S(w){w.preventDefault()}return j.jsxs("div",{id:xt.console,onMouseMove:S,onMouseDown:S,children:[j.jsx("div",{id:xt.hz_area,children:j.jsx(np,{Hz:s,onChangeHz:m})}),j.jsxs("div",{id:xt.middle_console,children:[j.jsx(lp,{width:512,height:512,pcm:l,onPCMChange:h,displayPCM:i}),j.jsxs("div",{id:xt.wave_buttons,children:[j.jsx(Nr,{shape:"sine",onClick:()=>y("sine")}),j.jsx(Nr,{shape:"square",onClick:()=>y("square")}),j.jsx(Nr,{shape:"sawtooth",onClick:()=>y("sawtooth")}),j.jsx(Nr,{shape:"line",onClick:()=>y("line")})]})]}),j.jsx("div",{id:xt.toggle_area,children:j.jsx(pp,{isPressed:i,onToggle:d})})]})}function Sp(){return j.jsx(wp,{})}ql.createRoot(document.getElementById("root")).render(j.jsx(Pc.StrictMode,{children:j.jsx(Sp,{})})); diff --git a/index.html b/index.html index f4a87bc..0e42bcf 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ /> waveformr - +