React Artifact
by ElectricPirate5532 lines224.9 KB🛠️ React
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>React Artifact</title>
<style>*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-\[12px\]{inset:12px}.inset-y-0{top:0;bottom:0}.-bottom-1{bottom:-.25rem}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.bottom-\[168px\]{bottom:168px}.left-0{left:0}.left-1\/2{left:50%}.right-0{right:0}.right-3{right:.75rem}.top-0{top:0}.top-\[88px\]{top:88px}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.mx-3{margin-left:.75rem;margin-right:.75rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-2\.5{height:.625rem}.h-40{height:10rem}.h-52{height:13rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[100dvh\]{height:100dvh}.h-\[110px\]{height:110px}.h-\[140px\]{height:140px}.h-\[28\%\]{height:28%}.h-\[48px\]{height:48px}.h-\[52px\]{height:52px}.h-\[60px\]{height:60px}.h-\[62px\]{height:62px}.h-\[86px\]{height:86px}.h-full{height:100%}.w-\[110px\]{width:110px}.w-\[140px\]{width:140px}.w-\[48px\]{width:48px}.w-\[60px\]{width:60px}.w-\[62px\]{width:62px}.w-\[86px\]{width:86px}.w-full{width:100%}.w-px{width:1px}.min-w-\[96px\]{min-width:96px}.max-w-\[420px\]{max-width:420px}.max-w-\[720px\]{max-width:720px}.flex-1{flex:1 1 0%}.-translate-x-1\/2{--tw-translate-x:-50%}.-rotate-90,.-translate-x-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate:-90deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[pop_0\.22s_ease\]{animation:pop .22s ease}.touch-manipulation{touch-action:manipulation}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:1rem}.rounded-\[24px\]{border-radius:24px}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-amber-400{--tw-border-opacity:1;border-color:rgb(251 191 36/var(--tw-border-opacity,1))}.border-emerald-400\/30{border-color:rgba(52,211,153,.3)}.border-red-400\/30{border-color:hsla(0,91%,71%,.3)}.border-white\/10{border-color:hsla(0,0%,100%,.1)}.border-white\/15{border-color:hsla(0,0%,100%,.15)}.border-white\/20{border-color:hsla(0,0%,100%,.2)}.border-white\/40{border-color:hsla(0,0%,100%,.4)}.border-white\/50{border-color:hsla(0,0%,100%,.5)}.bg-\[\#0f172a\]{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-black\/30{background-color:rgba(0,0,0,.3)}.bg-black\/50{background-color:rgba(0,0,0,.5)}.bg-emerald-500\/15{background-color:rgba(16,185,129,.15)}.bg-red-500\/15{background-color:rgba(239,68,68,.15)}.bg-white\/10{background-color:hsla(0,0%,100%,.1)}.bg-white\/\[0\.04\]{background-color:hsla(0,0%,100%,.04)}.bg-white\/\[0\.06\]{background-color:hsla(0,0%,100%,.06)}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-amber-200{--tw-gradient-from:#fde68a var(--tw-gradient-from-position);--tw-gradient-to:hsla(48,97%,77%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-amber-300{--tw-gradient-from:#fcd34d var(--tw-gradient-from-position);--tw-gradient-to:rgba(252,211,77,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-black\/55{--tw-gradient-from:rgba(0,0,0,.55) var(--tw-gradient-from-position);--tw-gradient-to:transparent var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-sky-300{--tw-gradient-from:#7dd3fc var(--tw-gradient-from-position);--tw-gradient-to:rgba(125,211,252,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white{--tw-gradient-from:#fff var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-amber-500{--tw-gradient-to:#f59e0b var(--tw-gradient-to-position)}.to-sky-500{--tw-gradient-to:#0ea5e9 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position)}.to-white\/70{--tw-gradient-to:hsla(0,0%,100%,.7) var(--tw-gradient-to-position)}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.pb-\[max\(16px\2c env\(safe-area-inset-bottom\)\)\]{padding-bottom:max(16px,env(safe-area-inset-bottom))}.text-center{text-align:center}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[22px\]{font-size:22px}.text-\[26px\]{font-size:26px}.text-\[28px\]{font-size:28px}.text-\[8px\]{font-size:8px}.text-\[9px\]{font-size:9px}.font-\[800\]{font-weight:800}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-semibold{font-weight:600}.leading-\[0\.95\]{line-height:.95}.leading-\[1\.45\]{line-height:1.45}.leading-none{line-height:1}.tracking-\[0\.14em\]{letter-spacing:.14em}.tracking-\[0\.16em\]{letter-spacing:.16em}.tracking-\[0\.18em\]{letter-spacing:.18em}.tracking-\[0\.22em\]{letter-spacing:.22em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-amber-200{--tw-text-opacity:1;color:rgb(253 230 138/var(--tw-text-opacity,1))}.text-amber-950{--tw-text-opacity:1;color:rgb(69 26 3/var(--tw-text-opacity,1))}.text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.text-sky-300{--tw-text-opacity:1;color:rgb(125 211 252/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\/35{color:hsla(0,0%,100%,.35)}.text-white\/40{color:hsla(0,0%,100%,.4)}.text-white\/50{color:hsla(0,0%,100%,.5)}.text-white\/60{color:hsla(0,0%,100%,.6)}.text-white\/65{color:hsla(0,0%,100%,.65)}.text-white\/70{color:hsla(0,0%,100%,.7)}.text-white\/75{color:hsla(0,0%,100%,.75)}.text-white\/80{color:hsla(0,0%,100%,.8)}.text-white\/85{color:hsla(0,0%,100%,.85)}.text-white\/90{color:hsla(0,0%,100%,.9)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\[0_0_16px_rgba\(56\2c 189\2c 248\2c 0\.7\)\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_16px_rgba\(56\2c 189\2c 248\2c 0\.7\)\]{--tw-shadow:0 0 16px rgba(56,189,248,.7);--tw-shadow-colored:0 0 16px var(--tw-shadow-color)}.shadow-\[0_0_18px_rgba\(255\2c 255\2c 255\2c 0\.55\)\2c 0_4px_12px_rgba\(0\2c 0\2c 0\2c 0\.35\)\]{--tw-shadow:0 0 18px hsla(0,0%,100%,.55),0 4px 12px rgba(0,0,0,.35);--tw-shadow-colored:0 0 18px var(--tw-shadow-color),0 4px 12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_22px_rgba\(245\2c 158\2c 11\2c 0\.7\)\]{--tw-shadow:0 0 22px rgba(245,158,11,.7);--tw-shadow-colored:0 0 22px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_10px_28px_rgba\(245\2c 158\2c 11\2c 0\.55\)\]{--tw-shadow:0 10px 28px rgba(245,158,11,.55);--tw-shadow-colored:0 10px 28px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_10px_30px_rgba\(0\2c 0\2c 0\2c 0\.45\)\]{--tw-shadow:0 10px 30px rgba(0,0,0,.45);--tw-shadow-colored:0 10px 30px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_12px_32px_rgba\(0\2c 0\2c 0\2c 0\.55\)\]{--tw-shadow:0 12px 32px rgba(0,0,0,.55);--tw-shadow-colored:0 12px 32px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_24px_80px_rgba\(0\2c 0\2c 0\2c 0\.6\)\]{--tw-shadow:0 24px 80px rgba(0,0,0,.6);--tw-shadow-colored:0 24px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_8px_20px_rgba\(0\2c 0\2c 0\2c 0\.5\)\]{--tw-shadow:0 8px 20px rgba(0,0,0,.5);--tw-shadow-colored:0 8px 20px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_8px_22px_rgba\(0\2c 0\2c 0\2c 0\.45\)\]{--tw-shadow:0 8px 22px rgba(0,0,0,.45);--tw-shadow-colored:0 8px 22px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_8px_24px_rgba\(0\2c 0\2c 0\2c 0\.45\)\]{--tw-shadow:0 8px 24px rgba(0,0,0,.45);--tw-shadow-colored:0 8px 24px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\[8px\]{--tw-backdrop-blur:blur(8px)}.backdrop-blur-\[8px\],.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-75{transition-duration:75ms}.will-change-transform{will-change:transform}#root,body,html{min-height:100%}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}[role=button]:not([aria-disabled=true]),button:not(:disabled),label[for],select:not(:disabled),summary{cursor:pointer}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.active\:scale-\[0\.96\]:active{--tw-scale-x:0.96;--tw-scale-y:0.96}.active\:scale-\[0\.96\]:active,.active\:scale-\[0\.97\]:active{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-\[0\.97\]:active{--tw-scale-x:0.97;--tw-scale-y:0.97}.active\:scale-\[0\.98\]:active{--tw-scale-x:0.98;--tw-scale-y:0.98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}</style>
</head>
<body>
<div id="root"></div>
<script type="module">var Jd=Object.create;var{getPrototypeOf:qd,defineProperty:Uo,getOwnPropertyNames:Wd}=Object;var Gd=Object.prototype.hasOwnProperty;var ar=(e,n,l)=>{l=e!=null?Jd(qd(e)):{};let u=n||!e||!e.__esModule?Uo(l,"default",{value:e,enumerable:!0}):l;for(let o of Wd(e))if(!Gd.call(u,o))Uo(u,o,{get:()=>e[o],enumerable:!0});return u};var tu=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var bd=(e,n)=>{for(var l in n)Uo(e,l,{get:n[l],enumerable:!0,configurable:!0,set:(u)=>n[l]=()=>u})};var cd=(e,n)=>()=>(e&&(n=e(e=0)),n);var tl=tu((hp)=>{var il=Symbol.for("react.element"),xd=Symbol.for("react.portal"),ep=Symbol.for("react.fragment"),np=Symbol.for("react.strict_mode"),rp=Symbol.for("react.profiler"),lp=Symbol.for("react.provider"),up=Symbol.for("react.context"),op=Symbol.for("react.forward_ref"),ip=Symbol.for("react.suspense"),tp=Symbol.for("react.memo"),sp=Symbol.for("react.lazy"),ls=Symbol.iterator;function ap(e){if(e===null||typeof e!=="object")return null;return e=ls&&e[ls]||e["@@iterator"],typeof e==="function"?e:null}var is={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ts=Object.assign,ss={};function zr(e,n,l){this.props=e,this.context=n,this.refs=ss,this.updater=l||is}zr.prototype.isReactComponent={};zr.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")};zr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function as(){}as.prototype=zr.prototype;function Lo(e,n,l){this.props=e,this.context=n,this.refs=ss,this.updater=l||is}var Do=Lo.prototype=new as;Do.constructor=Lo;ts(Do,zr.prototype);Do.isPureReactComponent=!0;var us=Array.isArray,fs=Object.prototype.hasOwnProperty,Vo={current:null},ds={key:!0,ref:!0,__self:!0,__source:!0};function ps(e,n,l){var u,o={},i=null,t=null;if(n!=null)for(u in n.ref!==void 0&&(t=n.ref),n.key!==void 0&&(i=""+n.key),n)fs.call(n,u)&&!ds.hasOwnProperty(u)&&(o[u]=n[u]);var s=arguments.length-2;if(s===1)o.children=l;else if(1<s){for(var f=Array(s),v=0;v<s;v++)f[v]=arguments[v+2];o.children=f}if(e&&e.defaultProps)for(u in s=e.defaultProps,s)o[u]===void 0&&(o[u]=s[u]);return{$$typeof:il,type:e,key:i,ref:t,props:o,_owner:Vo.current}}function fp(e,n){return{$$typeof:il,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function $o(e){return typeof e==="object"&&e!==null&&e.$$typeof===il}function dp(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(l){return n[l]})}var os=/\/+/g;function Oo(e,n){return typeof e==="object"&&e!==null&&e.key!=null?dp(""+e.key):n.toString(36)}function au(e,n,l,u,o){var i=typeof e;if(i==="undefined"||i==="boolean")e=null;var t=!1;if(e===null)t=!0;else switch(i){case"string":case"number":t=!0;break;case"object":switch(e.$$typeof){case il:case xd:t=!0}}if(t)return t=e,o=o(t),e=u===""?"."+Oo(t,0):u,us(o)?(l="",e!=null&&(l=e.replace(os,"$&/")+"/"),au(o,n,l,"",function(v){return v})):o!=null&&($o(o)&&(o=fp(o,l+(!o.key||t&&t.key===o.key?"":(""+o.key).replace(os,"$&/")+"/")+e)),n.push(o)),1;if(t=0,u=u===""?".":u+":",us(e))for(var s=0;s<e.length;s++){i=e[s];var f=u+Oo(i,s);t+=au(i,n,l,f,o)}else if(f=ap(e),typeof f==="function")for(e=f.call(e),s=0;!(i=e.next()).done;)i=i.value,f=u+Oo(i,s++),t+=au(i,n,l,f,o);else if(i==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return t}function su(e,n,l){if(e==null)return e;var u=[],o=0;return au(e,u,"","",function(i){return n.call(l,i,o++)}),u}function pp(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(l){if(e._status===0||e._status===-1)e._status=1,e._result=l},function(l){if(e._status===0||e._status===-1)e._status=2,e._result=l}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Xe={current:null},fu={transition:null},vp={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:fu,ReactCurrentOwner:Vo};function vs(){throw Error("act(...) is not supported in production builds of React.")}hp.Children={map:su,forEach:function(e,n,l){su(e,function(){n.apply(this,arguments)},l)},count:function(e){var n=0;return su(e,function(){n++}),n},toArray:function(e){return su(e,function(n){return n})||[]},only:function(e){if(!$o(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};hp.Component=zr;hp.Fragment=ep;hp.Profiler=rp;hp.PureComponent=Lo;hp.StrictMode=np;hp.Suspense=ip;hp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vp;hp.act=vs;hp.cloneElement=function(e,n,l){if(e===null||e===void 0)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var u=ts({},e.props),o=e.key,i=e.ref,t=e._owner;if(n!=null){if(n.ref!==void 0&&(i=n.ref,t=Vo.current),n.key!==void 0&&(o=""+n.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(f in n)fs.call(n,f)&&!ds.hasOwnProperty(f)&&(u[f]=n[f]===void 0&&s!==void 0?s[f]:n[f])}var f=arguments.length-2;if(f===1)u.children=l;else if(1<f){s=Array(f);for(var v=0;v<f;v++)s[v]=arguments[v+2];u.children=s}return{$$typeof:il,type:e.type,key:o,ref:i,props:u,_owner:t}};hp.createContext=function(e){return e={$$typeof:up,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:lp,_context:e},e.Consumer=e};hp.createElement=ps;hp.createFactory=function(e){var n=ps.bind(null,e);return n.type=e,n};hp.createRef=function(){return{current:null}};hp.forwardRef=function(e){return{$$typeof:op,render:e}};hp.isValidElement=$o;hp.lazy=function(e){return{$$typeof:sp,_payload:{_status:-1,_result:e},_init:pp}};hp.memo=function(e,n){return{$$typeof:tp,type:e,compare:n===void 0?null:n}};hp.startTransition=function(e){var n=fu.transition;fu.transition={};try{e()}finally{fu.transition=n}};hp.unstable_act=vs;hp.useCallback=function(e,n){return Xe.current.useCallback(e,n)};hp.useContext=function(e){return Xe.current.useContext(e)};hp.useDebugValue=function(){};hp.useDeferredValue=function(e){return Xe.current.useDeferredValue(e)};hp.useEffect=function(e,n){return Xe.current.useEffect(e,n)};hp.useId=function(){return Xe.current.useId()};hp.useImperativeHandle=function(e,n,l){return Xe.current.useImperativeHandle(e,n,l)};hp.useInsertionEffect=function(e,n){return Xe.current.useInsertionEffect(e,n)};hp.useLayoutEffect=function(e,n){return Xe.current.useLayoutEffect(e,n)};hp.useMemo=function(e,n){return Xe.current.useMemo(e,n)};hp.useReducer=function(e,n,l){return Xe.current.useReducer(e,n,l)};hp.useRef=function(e){return Xe.current.useRef(e)};hp.useState=function(e){return Xe.current.useState(e)};hp.useSyncExternalStore=function(e,n,l){return Xe.current.useSyncExternalStore(e,n,l)};hp.useTransition=function(){return Xe.current.useTransition()};hp.version="18.3.1"});var ws=tu((cp)=>{function Ro(e,n){var l=e.length;e.push(n);e:for(;0<l;){var u=l-1>>>1,o=e[u];if(0<du(o,n))e[u]=n,e[l]=o,l=u;else break e}}function gn(e){return e.length===0?null:e[0]}function yu(e){if(e.length===0)return null;var n=e[0],l=e.pop();if(l!==n){e[0]=l;e:for(var u=0,o=e.length,i=o>>>1;u<i;){var t=2*(u+1)-1,s=e[t],f=t+1,v=e[f];if(0>du(s,l))f<o&&0>du(v,s)?(e[u]=v,e[f]=l,u=f):(e[u]=s,e[t]=l,u=t);else if(f<o&&0>du(v,l))e[u]=v,e[f]=l,u=f;else break e}}return n}function du(e,n){var l=e.sortIndex-n.sortIndex;return l!==0?l:e.id-n.id}if(typeof performance==="object"&&typeof performance.now==="function")Bo=performance,cp.unstable_now=function(){return Bo.now()};else pu=Date,jo=pu.now(),cp.unstable_now=function(){return pu.now()-jo};var Bo,pu,jo,Pn=[],Kn=[],bp=1,sn=null,$e=3,mu=!1,fr=!1,al=!1,ys=typeof setTimeout==="function"?setTimeout:null,ms=typeof clearTimeout==="function"?clearTimeout:null,hs=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ho(e){for(var n=gn(Kn);n!==null;){if(n.callback===null)yu(Kn);else if(n.startTime<=e)yu(Kn),n.sortIndex=n.expirationTime,Ro(Pn,n);else break;n=gn(Kn)}}function Ao(e){if(al=!1,Ho(e),!fr)if(gn(Pn)!==null)fr=!0,Xo(Yo);else{var n=gn(Kn);n!==null&&Zo(Ao,n.startTime-e)}}function Yo(e,n){fr=!1,al&&(al=!1,ms(fl),fl=-1),mu=!0;var l=$e;try{Ho(n);for(sn=gn(Pn);sn!==null&&(!(sn.expirationTime>n)||e&&!Ss());){var u=sn.callback;if(typeof u==="function"){sn.callback=null,$e=sn.priorityLevel;var o=u(sn.expirationTime<=n);n=cp.unstable_now(),typeof o==="function"?sn.callback=o:sn===gn(Pn)&&yu(Pn),Ho(n)}else yu(Pn);sn=gn(Pn)}if(sn!==null)var i=!0;else{var t=gn(Kn);t!==null&&Zo(Ao,t.startTime-n),i=!1}return i}finally{sn=null,$e=l,mu=!1}}var gu=!1,vu=null,fl=-1,gs=5,ks=-1;function Ss(){return cp.unstable_now()-ks<gs?!1:!0}function Qo(){if(vu!==null){var e=cp.unstable_now();ks=e;var n=!0;try{n=vu(!0,e)}finally{n?sl():(gu=!1,vu=null)}}else gu=!1}var sl;if(typeof hs==="function")sl=function(){hs(Qo)};else if(typeof MessageChannel<"u")hu=new MessageChannel,Ko=hu.port2,hu.port1.onmessage=Qo,sl=function(){Ko.postMessage(null)};else sl=function(){ys(Qo,0)};var hu,Ko;function Xo(e){vu=e,gu||(gu=!0,sl())}function Zo(e,n){fl=ys(function(){e(cp.unstable_now())},n)}cp.unstable_IdlePriority=5;cp.unstable_ImmediatePriority=1;cp.unstable_LowPriority=4;cp.unstable_NormalPriority=3;cp.unstable_Profiling=null;cp.unstable_UserBlockingPriority=2;cp.unstable_cancelCallback=function(e){e.callback=null};cp.unstable_continueExecution=function(){fr||mu||(fr=!0,Xo(Yo))};cp.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):gs=0<e?Math.floor(1000/e):5};cp.unstable_getCurrentPriorityLevel=function(){return $e};cp.unstable_getFirstCallbackNode=function(){return gn(Pn)};cp.unstable_next=function(e){switch($e){case 1:case 2:case 3:var n=3;break;default:n=$e}var l=$e;$e=n;try{return e()}finally{$e=l}};cp.unstable_pauseExecution=function(){};cp.unstable_requestPaint=function(){};cp.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var l=$e;$e=e;try{return n()}finally{$e=l}};cp.unstable_scheduleCallback=function(e,n,l){var u=cp.unstable_now();switch(typeof l==="object"&&l!==null?(l=l.delay,l=typeof l==="number"&&0<l?u+l:u):l=u,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5000}return o=l+o,e={id:bp++,callback:n,priorityLevel:e,startTime:l,expirationTime:o,sortIndex:-1},l>u?(e.sortIndex=l,Ro(Kn,e),gn(Pn)===null&&e===gn(Kn)&&(al?(ms(fl),fl=-1):al=!0,Zo(Ao,l-u))):(e.sortIndex=o,Ro(Pn,e),fr||mu||(fr=!0,Xo(Yo))),e};cp.unstable_shouldYield=Ss;cp.unstable_wrapCallback=function(e){var n=$e;return function(){var l=$e;$e=n;try{return e.apply(this,arguments)}finally{$e=l}}}});var ct={};bd(ct,{version:()=>Vd,unstable_renderSubtreeIntoContainer:()=>Dd,unstable_batchedUpdates:()=>Ld,unmountComponentAtNode:()=>Od,render:()=>Ud,hydrateRoot:()=>Fd,hydrate:()=>Md,flushSync:()=>Id,findDOMNode:()=>Td,createRoot:()=>zd,createPortal:()=>Pd,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>_d});function C(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function _r(e,n){qr(e,n),qr(e+"Capture",n)}function qr(e,n){Vl[e]=n;for(e=0;e<n.length;e++)za.add(n[e])}function k0(e){if(hi.call(Cs,e))return!0;if(hi.call(Es,e))return!1;if(g0.test(e))return Cs[e]=!0;return Es[e]=!0,!1}function S0(e,n,l,u){if(l!==null&&l.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":if(u)return!1;if(l!==null)return!l.acceptsBooleans;return e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-";default:return!1}}function w0(e,n,l,u){if(n===null||typeof n>"u"||S0(e,n,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function qe(e,n,l,u,o,i,t){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=u,this.attributeNamespace=o,this.mustUseProperty=l,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=t}function at(e){return e[1].toUpperCase()}function ft(e,n,l,u){var o=Le.hasOwnProperty(n)?Le[n]:null;if(o!==null?o.type!==0:u||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")w0(n,l,o,u)&&(l=null),u||o===null?k0(n)&&(l===null?e.removeAttribute(n):e.setAttribute(n,""+l)):o.mustUseProperty?e[o.propertyName]=l===null?o.type===3?!1:"":l:(n=o.attributeName,u=o.attributeNamespace,l===null?e.removeAttribute(n):(o=o.type,l=o===3||o===4&&l===!0?"":""+l,u?e.setAttributeNS(u,n,l):e.setAttribute(n,l)))}function dl(e){if(e===null||typeof e!=="object")return null;return e=Ns&&e[Ns]||e["@@iterator"],typeof e==="function"?e:null}function kl(e){if(Jo===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);Jo=n&&n[1]||""}return`
`+Jo+e}function Wo(e,n){if(!e||qo)return"";qo=!0;var l=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(v){var u=v}Reflect.construct(e,[],n)}else{try{n.call()}catch(v){u=v}e.call(n.prototype)}else{try{throw Error()}catch(v){u=v}e()}}catch(v){if(v&&u&&typeof v.stack==="string"){for(var o=v.stack.split(`
`),i=u.stack.split(`
`),t=o.length-1,s=i.length-1;1<=t&&0<=s&&o[t]!==i[s];)s--;for(;1<=t&&0<=s;t--,s--)if(o[t]!==i[s]){if(t!==1||s!==1)do if(t--,s--,0>s||o[t]!==i[s]){var f=`
`+o[t].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=t&&0<=s);break}}}finally{qo=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?kl(e):""}function E0(e){switch(e.tag){case 5:return kl(e.type);case 16:return kl("Lazy");case 13:return kl("Suspense");case 19:return kl("SuspenseList");case 0:case 2:case 15:return e=Wo(e.type,!1),e;case 11:return e=Wo(e.type.render,!1),e;case 1:return e=Wo(e.type,!0),e;default:return""}}function ki(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 Ur:return"Fragment";case Fr:return"Portal";case yi:return"Profiler";case dt:return"StrictMode";case mi:return"Suspense";case gi:return"SuspenseList"}if(typeof e==="object")switch(e.$$typeof){case Ia:return(e.displayName||"Context")+".Consumer";case Ta:return(e._context.displayName||"Context")+".Provider";case pt:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vt:return n=e.displayName||null,n!==null?n:ki(e.type)||"Memo";case Yn:n=e._payload,e=e._init;try{return ki(e(n))}catch(l){}}return null}function C0(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 ki(n);case 8:return n===dt?"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 ur(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fa(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function N0(e){var n=Fa(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),u=""+e[n];if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get==="function"&&typeof l.set==="function"){var{get:o,set:i}=l;return Object.defineProperty(e,n,{configurable:!0,get:function(){return o.call(this)},set:function(t){u=""+t,i.call(this,t)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(t){u=""+t},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Su(e){e._valueTracker||(e._valueTracker=N0(e))}function Ua(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),u="";return e&&(u=Fa(e)?e.checked?"true":"false":e.value),e=u,e!==l?(n.setValue(e),!0):!1}function Yu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Si(e,n){var l=n.checked;return ge({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l!=null?l:e._wrapperState.initialChecked})}function _s(e,n){var l=n.defaultValue==null?"":n.defaultValue,u=n.checked!=null?n.checked:n.defaultChecked;l=ur(n.value!=null?n.value:l),e._wrapperState={initialChecked:u,initialValue:l,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Oa(e,n){n=n.checked,n!=null&&ft(e,"checked",n,!1)}function wi(e,n){Oa(e,n);var l=ur(n.value),u=n.type;if(l!=null)if(u==="number"){if(l===0&&e.value===""||e.value!=l)e.value=""+l}else e.value!==""+l&&(e.value=""+l);else if(u==="submit"||u==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ei(e,n.type,l):n.hasOwnProperty("defaultValue")&&Ei(e,n.type,ur(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Ps(e,n,l){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var u=n.type;if(!(u!=="submit"&&u!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,l||n===e.value||(e.value=n),e.defaultValue=n}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function Ei(e,n,l){if(n!=="number"||Yu(e.ownerDocument)!==e)l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l)}function Kr(e,n,l,u){if(e=e.options,n){n={};for(var o=0;o<l.length;o++)n["$"+l[o]]=!0;for(l=0;l<e.length;l++)o=n.hasOwnProperty("$"+e[l].value),e[l].selected!==o&&(e[l].selected=o),o&&u&&(e[l].defaultSelected=!0)}else{l=""+ur(l),n=null;for(o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,u&&(e[o].defaultSelected=!0);return}n!==null||e[o].disabled||(n=e[o])}n!==null&&(n.selected=!0)}}function Ci(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(C(91));return ge({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zs(e,n){var l=n.value;if(l==null){if(l=n.children,n=n.defaultValue,l!=null){if(n!=null)throw Error(C(92));if(Sl(l)){if(1<l.length)throw Error(C(93));l=l[0]}n=l}n==null&&(n=""),l=n}e._wrapperState={initialValue:ur(l)}}function La(e,n){var l=ur(n.value),u=ur(n.defaultValue);l!=null&&(l=""+l,l!==e.value&&(e.value=l),n.defaultValue==null&&e.defaultValue!==l&&(e.defaultValue=l)),u!=null&&(e.defaultValue=""+u)}function Ts(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function Da(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ni(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?Da(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}function $l(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}function $a(e,n,l){return n==null||typeof n==="boolean"||n===""?"":l||typeof n!=="number"||n===0||zl.hasOwnProperty(e)&&zl[e]?(""+n).trim():n+"px"}function Qa(e,n){e=e.style;for(var l in n)if(n.hasOwnProperty(l)){var u=l.indexOf("--")===0,o=$a(l,n[l],u);l==="float"&&(l="cssFloat"),u?e.setProperty(l,o):e[l]=o}}function _i(e,n){if(n){if(P0[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(C(60));if(typeof n.dangerouslySetInnerHTML!=="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(C(61))}if(n.style!=null&&typeof n.style!=="object")throw Error(C(62))}}function Pi(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}}function ht(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Is(e){if(e=eu(e)){if(typeof Ti!=="function")throw Error(C(280));var n=e.stateNode;n&&(n=So(n),Ti(e.stateNode,e.type,n))}}function Ra(e){Ar?Yr?Yr.push(e):Yr=[e]:Ar=e}function Ba(){if(Ar){var e=Ar,n=Yr;if(Yr=Ar=null,Is(e),n)for(e=0;e<n.length;e++)Is(n[e])}}function ja(e,n){return e(n)}function Ha(){}function Ka(e,n,l){if(Go)return e(n,l);Go=!0;try{return ja(e,n,l)}finally{if(Go=!1,Ar!==null||Yr!==null)Ha(),Ba()}}function Ql(e,n){var l=e.stateNode;if(l===null)return null;var u=So(l);if(u===null)return null;l=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(l&&typeof l!=="function")throw Error(C(231,n,typeof l));return l}function z0(e,n,l,u,o,i,t,s,f){var v=Array.prototype.slice.call(arguments,3);try{n.apply(l,v)}catch(g){this.onError(g)}}function I0(e,n,l,u,o,i,t,s,f){Tl=!1,Xu=null,z0.apply(T0,arguments)}function M0(e,n,l,u,o,i,t,s,f){if(I0.apply(this,arguments),Tl){if(Tl){var v=Xu;Tl=!1,Xu=null}else throw Error(C(198));Zu||(Zu=!0,Mi=v)}}function Pr(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function Aa(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Ms(e){if(Pr(e)!==e)throw Error(C(188))}function F0(e){var n=e.alternate;if(!n){if(n=Pr(e),n===null)throw Error(C(188));return n!==e?null:e}for(var l=e,u=n;;){var o=l.return;if(o===null)break;var i=o.alternate;if(i===null){if(u=o.return,u!==null){l=u;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===l)return Ms(o),e;if(i===u)return Ms(o),n;i=i.sibling}throw Error(C(188))}if(l.return!==u.return)l=o,u=i;else{for(var t=!1,s=o.child;s;){if(s===l){t=!0,l=o,u=i;break}if(s===u){t=!0,u=o,l=i;break}s=s.sibling}if(!t){for(s=i.child;s;){if(s===l){t=!0,l=i,u=o;break}if(s===u){t=!0,u=i,l=o;break}s=s.sibling}if(!t)throw Error(C(189))}}if(l.alternate!==u)throw Error(C(190))}if(l.tag!==3)throw Error(C(188));return l.stateNode.current===l?e:n}function Ya(e){return e=F0(e),e!==null?Xa(e):null}function Xa(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Xa(e);if(n!==null)return n;e=e.sibling}return null}function V0(e){if(Mn&&typeof Mn.onCommitFiberRoot==="function")try{Mn.onCommitFiberRoot(yo,e,void 0,(e.current.flags&128)===128)}catch(n){}}function R0(e){return e>>>=0,e===0?32:31-($0(e)/Q0|0)|0}function wl(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 qu(e,n){var l=e.pendingLanes;if(l===0)return 0;var u=0,o=e.suspendedLanes,i=e.pingedLanes,t=l&268435455;if(t!==0){var s=t&~o;s!==0?u=wl(s):(i&=t,i!==0&&(u=wl(i)))}else t=l&~o,t!==0?u=wl(t):i!==0&&(u=wl(i));if(u===0)return 0;if(n!==0&&n!==u&&(n&o)===0&&(o=u&-u,i=n&-n,o>=i||o===16&&(i&4194240)!==0))return n;if((u&4)!==0&&(u|=l&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=u;0<n;)l=31-Cn(n),o=1<<l,u|=e[l],n&=~o;return u}function B0(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 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 n+5000;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function j0(e,n){for(var{suspendedLanes:l,pingedLanes:u,expirationTimes:o,pendingLanes:i}=e;0<i;){var t=31-Cn(i),s=1<<t,f=o[t];if(f===-1){if((s&l)===0||(s&u)!==0)o[t]=B0(s,n)}else f<=n&&(e.expiredLanes|=s);i&=~s}}function Fi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Wa(){var e=Eu;return Eu<<=1,(Eu&4194240)===0&&(Eu=64),e}function bo(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function cl(e,n,l){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Cn(n),e[n]=l}function H0(e,n){var l=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 u=e.eventTimes;for(e=e.expirationTimes;0<l;){var o=31-Cn(l),i=1<<o;n[o]=0,u[o]=-1,e[o]=-1,l&=~i}}function mt(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var u=31-Cn(l),o=1<<u;o&n|e[u]&n&&(e[u]|=n),l&=~o}}function Ga(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}function Us(e,n){switch(e){case"focusin":case"focusout":Gn=null;break;case"dragenter":case"dragleave":bn=null;break;case"mouseover":case"mouseout":cn=null;break;case"pointerover":case"pointerout":Rl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(n.pointerId)}}function pl(e,n,l,u,o,i){if(e===null||e.nativeEvent!==i)return e={blockedOn:n,domEventName:l,eventSystemFlags:u,nativeEvent:i,targetContainers:[o]},n!==null&&(n=eu(n),n!==null&>(n)),e;return e.eventSystemFlags|=u,n=e.targetContainers,o!==null&&n.indexOf(o)===-1&&n.push(o),e}function A0(e,n,l,u,o){switch(n){case"focusin":return Gn=pl(Gn,e,n,l,u,o),!0;case"dragenter":return bn=pl(bn,e,n,l,u,o),!0;case"mouseover":return cn=pl(cn,e,n,l,u,o),!0;case"pointerover":var i=o.pointerId;return Rl.set(i,pl(Rl.get(i)||null,e,n,l,u,o)),!0;case"gotpointercapture":return i=o.pointerId,Bl.set(i,pl(Bl.get(i)||null,e,n,l,u,o)),!0}return!1}function nf(e){var n=hr(e.target);if(n!==null){var l=Pr(n);if(l!==null){if(n=l.tag,n===13){if(n=Aa(l),n!==null){e.blockedOn=n,ef(e.priority,function(){ca(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lu(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=Oi(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l);zi=u,l.target.dispatchEvent(u),zi=null}else return n=eu(l),n!==null&>(n),e.blockedOn=l,!1;n.shift()}return!0}function Os(e,n,l){Lu(e)&&l.delete(n)}function Y0(){Ui=!1,Gn!==null&&Lu(Gn)&&(Gn=null),bn!==null&&Lu(bn)&&(bn=null),cn!==null&&Lu(cn)&&(cn=null),Rl.forEach(Os),Bl.forEach(Os)}function vl(e,n){e.blockedOn===n&&(e.blockedOn=null,Ui||(Ui=!0,fe.unstable_scheduleCallback(fe.unstable_NormalPriority,Y0)))}function jl(e){function n(o){return vl(o,e)}if(0<Nu.length){vl(Nu[0],e);for(var l=1;l<Nu.length;l++){var u=Nu[l];u.blockedOn===e&&(u.blockedOn=null)}}Gn!==null&&vl(Gn,e),bn!==null&&vl(bn,e),cn!==null&&vl(cn,e),Rl.forEach(n),Bl.forEach(n);for(l=0;l<Zn.length;l++)u=Zn[l],u.blockedOn===e&&(u.blockedOn=null);for(;0<Zn.length&&(l=Zn[0],l.blockedOn===null);)nf(l),l.blockedOn===null&&Zn.shift()}function X0(e,n,l,u){var o=b,i=Xr.transition;Xr.transition=null;try{b=1,kt(e,n,l,u)}finally{b=o,Xr.transition=i}}function Z0(e,n,l,u){var o=b,i=Xr.transition;Xr.transition=null;try{b=4,kt(e,n,l,u)}finally{b=o,Xr.transition=i}}function kt(e,n,l,u){if(Wu){var o=Oi(e,n,l,u);if(o===null)li(e,n,u,Gu,l),Us(e,u);else if(A0(o,e,n,l,u))u.stopPropagation();else if(Us(e,u),n&4&&-1<K0.indexOf(e)){for(;o!==null;){var i=eu(o);if(i!==null&&ba(i),i=Oi(e,n,l,u),i===null&&li(e,n,u,Gu,l),i===o)break;o=i}o!==null&&u.stopPropagation()}else li(e,n,u,null,l)}}function Oi(e,n,l,u){if(Gu=null,e=ht(u),e=hr(e),e!==null)if(n=Pr(e),n===null)e=null;else if(l=n.tag,l===13){if(e=Aa(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Gu=e,null}function rf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(L0()){case yt:return 1;case Ja:return 4;case Ju:case D0:return 16;case qa:return 536870912;default:return 16}default:return 16}}function lf(){if(Du)return Du;var e,n=St,l=n.length,u,o="value"in qn?qn.value:qn.textContent,i=o.length;for(e=0;e<l&&n[e]===o[e];e++);var t=l-e;for(u=1;u<=t&&n[l-u]===o[i-u];u++);return Du=o.slice(e,1<u?1-u:void 0)}function Vu(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function _u(){return!0}function Ls(){return!1}function un(e){function n(l,u,o,i,t){this._reactName=l,this._targetInst=o,this.type=u,this.nativeEvent=i,this.target=t,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(l=e[s],this[s]=l?l(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?_u:Ls,this.isPropagationStopped=Ls,this}return ge(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!=="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=_u)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!=="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_u)},persist:function(){},isPersistent:_u}),n}function ov(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=uv[e])?!!n[e]:!1}function Et(){return ov}function of(e,n){switch(e){case"keyup":return yv.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function gv(e,n){switch(e){case"compositionend":return tf(n);case"keypress":if(n.which!==32)return null;return Rs=!0,Qs;case"textInput":return e=n.data,e===Qs&&Rs?null:e;default:return null}}function kv(e,n){if(Or)return e==="compositionend"||!Ct&&of(e,n)?(e=lf(),Du=St=qn=null,Or=!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.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return uf&&n.locale!=="ko"?null:n.data;default:return null}}function Bs(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Sv[e.type]:n==="textarea"?!0:!1}function sf(e,n,l,u){Ra(u),n=bu(n,"onChange"),0<n.length&&(l=new wt("onChange","change",null,l,u),e.push({event:l,listeners:n}))}function wv(e){Sf(e,0)}function go(e){var n=Vr(e);if(Ua(n))return e}function Ev(e,n){if(e==="change")return n}function js(){Ml&&(Ml.detachEvent("onpropertychange",ff),Hl=Ml=null)}function ff(e){if(e.propertyName==="value"&&go(Hl)){var n=[];sf(n,Hl,e,ht(e)),Ka(wv,n)}}function Cv(e,n,l){e==="focusin"?(js(),Ml=n,Hl=l,Ml.attachEvent("onpropertychange",ff)):e==="focusout"&&js()}function Nv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return go(Hl)}function _v(e,n){if(e==="click")return go(n)}function Pv(e,n){if(e==="input"||e==="change")return go(n)}function zv(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function Kl(e,n){if(_n(e,n))return!0;if(typeof e!=="object"||e===null||typeof n!=="object"||n===null)return!1;var l=Object.keys(e),u=Object.keys(n);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var o=l[u];if(!hi.call(n,o)||!_n(e[o],n[o]))return!1}return!0}function Hs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ks(e,n){var l=Hs(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=n&&u>=n)return{node:l,offset:n-e};e=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Hs(l)}}function df(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?df(e,n.parentNode):("contains"in e)?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function pf(){for(var e=window,n=Yu();n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href==="string"}catch(u){l=!1}if(l)e=n.contentWindow;else break;n=Yu(e.document)}return n}function Nt(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 Tv(e){var n=pf(),l=e.focusedElem,u=e.selectionRange;if(n!==l&&l&&l.ownerDocument&&df(l.ownerDocument.documentElement,l)){if(u!==null&&Nt(l)){if(n=u.start,e=u.end,e===void 0&&(e=n),"selectionStart"in l)l.selectionStart=n,l.selectionEnd=Math.min(e,l.value.length);else if(e=(n=l.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var o=l.textContent.length,i=Math.min(u.start,o);u=u.end===void 0?i:Math.min(u.end,o),!e.extend&&i>u&&(o=u,u=i,i=o),o=Ks(l,i);var t=Ks(l,u);o&&t&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==t.node||e.focusOffset!==t.offset)&&(n=n.createRange(),n.setStart(o.node,o.offset),e.removeAllRanges(),i>u?(e.addRange(n),e.extend(t.node,t.offset)):(n.setEnd(t.node,t.offset),e.addRange(n)))}}n=[];for(e=l;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});typeof l.focus==="function"&&l.focus();for(l=0;l<n.length;l++)e=n[l],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}function As(e,n,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Di||Lr==null||Lr!==Yu(u)||(u=Lr,("selectionStart"in u)&&Nt(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Fl&&Kl(Fl,u)||(Fl=u,u=bu(Li,"onSelect"),0<u.length&&(n=new wt("onSelect","select",null,n,l),e.push({event:n,listeners:u}),n.target=Lr)))}function Pu(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}function ko(e){if(ni[e])return ni[e];if(!Dr[e])return e;var n=Dr[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in vf)return ni[e]=n[l];return e}function ir(e,n){kf.set(e,n),_r(n,[e])}function Xs(e,n,l){var u=e.type||"unknown-event";e.currentTarget=l,M0(u,n,void 0,e),e.currentTarget=null}function Sf(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var u=e[l],o=u.event;u=u.listeners;e:{var i=void 0;if(n)for(var t=u.length-1;0<=t;t--){var s=u[t],f=s.instance,v=s.currentTarget;if(s=s.listener,f!==i&&o.isPropagationStopped())break e;Xs(o,s,v),i=f}else for(t=0;t<u.length;t++){if(s=u[t],f=s.instance,v=s.currentTarget,s=s.listener,f!==i&&o.isPropagationStopped())break e;Xs(o,s,v),i=f}}}if(Zu)throw e=Mi,Zu=!1,Mi=null,e}function ie(e,n){var l=n[Hi];l===void 0&&(l=n[Hi]=new Set);var u=e+"__bubble";l.has(u)||(wf(n,e,2,!1),l.add(u))}function ri(e,n,l){var u=0;n&&(u|=4),wf(l,e,u,n)}function Al(e){if(!e[zu]){e[zu]=!0,za.forEach(function(l){l!=="selectionchange"&&(Mv.has(l)||ri(l,!1,e),ri(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[zu]||(n[zu]=!0,ri("selectionchange",!1,n))}}function wf(e,n,l,u){switch(rf(n)){case 1:var o=X0;break;case 4:o=Z0;break;default:o=kt}l=o.bind(null,n,l,e),o=void 0,!Ii||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(o=!0),u?o!==void 0?e.addEventListener(n,l,{capture:!0,passive:o}):e.addEventListener(n,l,!0):o!==void 0?e.addEventListener(n,l,{passive:o}):e.addEventListener(n,l,!1)}function li(e,n,l,u,o){var i=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var t=u.tag;if(t===3||t===4){var s=u.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(t===4)for(t=u.return;t!==null;){var f=t.tag;if(f===3||f===4){if(f=t.stateNode.containerInfo,f===o||f.nodeType===8&&f.parentNode===o)return}t=t.return}for(;s!==null;){if(t=hr(s),t===null)return;if(f=t.tag,f===5||f===6){u=i=t;continue e}s=s.parentNode}}u=u.return}Ka(function(){var v=i,g=ht(l),S=[];e:{var k=kf.get(e);if(k!==void 0){var P=wt,z=e;switch(e){case"keypress":if(Vu(l)===0)break e;case"keydown":case"keyup":P=tv;break;case"focusin":z="focus",P=ei;break;case"focusout":z="blur",P=ei;break;case"beforeblur":case"afterblur":P=ei;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=Ds;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=W0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=fv;break;case hf:case yf:case mf:P=c0;break;case gf:P=pv;break;case"scroll":P=J0;break;case"wheel":P=hv;break;case"copy":case"cut":case"paste":P=ev;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=$s}var I=(n&4)!==0,J=!I&&e==="scroll",h=I?k!==null?k+"Capture":null:k;I=[];for(var p=v,y;p!==null;){y=p;var E=y.stateNode;if(y.tag===5&&E!==null&&(y=E,h!==null&&(E=Ql(p,h),E!=null&&I.push(Yl(p,E,y)))),J)break;p=p.return}0<I.length&&(k=new P(k,z,null,l,g),S.push({event:k,listeners:I}))}}if((n&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",k&&l!==zi&&(z=l.relatedTarget||l.fromElement)&&(hr(z)||z[Qn]))break e;if(P||k){if(k=g.window===g?g:(k=g.ownerDocument)?k.defaultView||k.parentWindow:window,P){if(z=l.relatedTarget||l.toElement,P=v,z=z?hr(z):null,z!==null&&(J=Pr(z),z!==J||z.tag!==5&&z.tag!==6))z=null}else P=null,z=v;if(P!==z){if(I=Ds,E="onMouseLeave",h="onMouseEnter",p="mouse",e==="pointerout"||e==="pointerover")I=$s,E="onPointerLeave",h="onPointerEnter",p="pointer";if(J=P==null?k:Vr(P),y=z==null?k:Vr(z),k=new I(E,p+"leave",P,l,g),k.target=J,k.relatedTarget=y,E=null,hr(g)===v&&(I=new I(h,p+"enter",z,l,g),I.target=y,I.relatedTarget=J,E=I),J=E,P&&z)n:{I=P,h=z,p=0;for(y=I;y;y=Ir(y))p++;y=0;for(E=h;E;E=Ir(E))y++;for(;0<p-y;)I=Ir(I),p--;for(;0<y-p;)h=Ir(h),y--;for(;p--;){if(I===h||h!==null&&I===h.alternate)break n;I=Ir(I),h=Ir(h)}I=null}else I=null;P!==null&&Zs(S,k,P,I,!1),z!==null&&J!==null&&Zs(S,J,z,I,!0)}}}e:{if(k=v?Vr(v):window,P=k.nodeName&&k.nodeName.toLowerCase(),P==="select"||P==="input"&&k.type==="file")var O=Ev;else if(Bs(k))if(af)O=Pv;else{O=Nv;var D=Cv}else(P=k.nodeName)&&P.toLowerCase()==="input"&&(k.type==="checkbox"||k.type==="radio")&&(O=_v);if(O&&(O=O(e,v))){sf(S,O,l,g);break e}D&&D(e,k,v),e==="focusout"&&(D=k._wrapperState)&&D.controlled&&k.type==="number"&&Ei(k,"number",k.value)}switch(D=v?Vr(v):window,e){case"focusin":if(Bs(D)||D.contentEditable==="true")Lr=D,Li=v,Fl=null;break;case"focusout":Fl=Li=Lr=null;break;case"mousedown":Di=!0;break;case"contextmenu":case"mouseup":case"dragend":Di=!1,As(S,l,g);break;case"selectionchange":if(Iv)break;case"keydown":case"keyup":As(S,l,g)}var L;if(Ct)e:{switch(e){case"compositionstart":var Q="onCompositionStart";break e;case"compositionend":Q="onCompositionEnd";break e;case"compositionupdate":Q="onCompositionUpdate";break e}Q=void 0}else Or?of(e,l)&&(Q="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Q="onCompositionStart");if(Q&&(uf&&l.locale!=="ko"&&(Or||Q!=="onCompositionStart"?Q==="onCompositionEnd"&&Or&&(L=lf()):(qn=g,St=("value"in qn)?qn.value:qn.textContent,Or=!0)),D=bu(v,Q),0<D.length&&(Q=new Vs(Q,e,null,l,g),S.push({event:Q,listeners:D}),L?Q.data=L:(L=tf(l),L!==null&&(Q.data=L)))),L=mv?gv(e,l):kv(e,l))v=bu(v,"onBeforeInput"),0<v.length&&(g=new Vs("onBeforeInput","beforeinput",null,l,g),S.push({event:g,listeners:v}),g.data=L)}Sf(S,n)})}function Yl(e,n,l){return{instance:e,listener:n,currentTarget:l}}function bu(e,n){for(var l=n+"Capture",u=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ql(e,l),i!=null&&u.unshift(Yl(e,i,o)),i=Ql(e,n),i!=null&&u.push(Yl(e,i,o))),e=e.return}return u}function Ir(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e?e:null}function Zs(e,n,l,u,o){for(var i=n._reactName,t=[];l!==null&&l!==u;){var s=l,f=s.alternate,v=s.stateNode;if(f!==null&&f===u)break;s.tag===5&&v!==null&&(s=v,o?(f=Ql(l,i),f!=null&&t.unshift(Yl(l,f,s))):o||(f=Ql(l,i),f!=null&&t.push(Yl(l,f,s)))),l=l.return}t.length!==0&&e.push({event:n,listeners:t})}function Js(e){return(typeof e==="string"?e:""+e).replace(Fv,`
`).replace(Uv,"")}function Tu(e,n,l){if(n=Js(n),Js(e)!==n&&l)throw Error(C(425))}function cu(){}function Bi(e,n){return e==="textarea"||e==="noscript"||typeof n.children==="string"||typeof n.children==="number"||typeof n.dangerouslySetInnerHTML==="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function Dv(e){setTimeout(function(){throw e})}function ui(e,n){var l=n,u=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(u===0){e.removeChild(o),jl(n);return}u--}else l!=="$"&&l!=="$?"&&l!=="$!"||u++;l=o}while(l);jl(n)}function xn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Ws(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return e;n--}else l==="/$"&&n++}e=e.previousSibling}return null}function hr(e){var n=e[In];if(n)return n;for(var l=e.parentNode;l;){if(n=l[Qn]||l[In]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=Ws(e);e!==null;){if(l=e[In])return l;e=Ws(e)}return n}e=l,l=e.parentNode}return null}function eu(e){return e=e[In]||e[Qn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function So(e){return e[Xl]||null}function tr(e){return{current:e}}function te(e){0>$r||(e.current=Ki[$r],Ki[$r]=null,$r--)}function le(e,n){$r++,Ki[$r]=e.current,e.current=n}function Wr(e,n){var l=e.type.contextTypes;if(!l)return or;var u=e.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===n)return u.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in l)o[i]=n[i];return u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),o}function xe(e){return e=e.childContextTypes,e!==null&&e!==void 0}function xu(){te(ce),te(je)}function Gs(e,n,l){if(je.current!==or)throw Error(C(168));le(je,n),le(ce,l)}function Ef(e,n,l){var u=e.stateNode;if(n=n.childContextTypes,typeof u.getChildContext!=="function")return l;u=u.getChildContext();for(var o in u)if(!(o in n))throw Error(C(108,C0(e)||"Unknown",o));return ge({},l,u)}function eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,Sr=je.current,le(je,e),le(ce,ce.current),!0}function bs(e,n,l){var u=e.stateNode;if(!u)throw Error(C(169));l?(e=Ef(e,n,Sr),u.__reactInternalMemoizedMergedChildContext=e,te(ce),te(je),le(je,e)):te(ce),le(ce,l)}function Cf(e){On===null?On=[e]:On.push(e)}function Qv(e){wo=!0,Cf(e)}function sr(){if(!oi&&On!==null){oi=!0;var e=0,n=b;try{var l=On;for(b=1;e<l.length;e++){var u=l[e];do u=u(!0);while(u!==null)}On=null,wo=!1}catch(o){throw On!==null&&(On=On.slice(e+1)),Za(yt,sr),o}finally{b=n,oi=!1}}return null}function pr(e,n){Qr[Rr++]=ro,Qr[Rr++]=no,no=e,ro=n}function Nf(e,n,l){an[fn++]=Ln,an[fn++]=Dn,an[fn++]=wr,wr=e;var u=Ln;e=Dn;var o=32-Cn(u)-1;u&=~(1<<o),l+=1;var i=32-Cn(n)+o;if(30<i){var t=o-o%5;i=(u&(1<<t)-1).toString(32),u>>=t,o-=t,Ln=1<<32-Cn(n)+o|l<<o|u,Dn=i+e}else Ln=1<<i|l<<o|u,Dn=e}function _t(e){e.return!==null&&(pr(e,1),Nf(e,1,0))}function Pt(e){for(;e===no;)no=Qr[--Rr],Qr[Rr]=null,ro=Qr[--Rr],Qr[Rr]=null;for(;e===wr;)wr=an[--fn],an[fn]=null,Dn=an[--fn],an[fn]=null,Ln=an[--fn],an[fn]=null}function _f(e,n){var l=dn(5,null,null,0);l.elementType="DELETED",l.stateNode=n,l.return=e,n=e.deletions,n===null?(e.deletions=[l],e.flags|=16):n.push(l)}function cs(e,n){switch(e.tag){case 5:var l=e.type;return n=n.nodeType!==1||l.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,ln=e,rn=xn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,ln=e,rn=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(l=wr!==null?{id:Ln,overflow:Dn}:null,e.memoizedState={dehydrated:n,treeContext:l,retryLane:1073741824},l=dn(18,null,null,0),l.stateNode=n,l.return=e,e.child=l,ln=e,rn=null,!0):!1;default:return!1}}function Ai(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yi(e){if(ae){var n=rn;if(n){var l=n;if(!cs(e,n)){if(Ai(e))throw Error(C(418));n=xn(l.nextSibling);var u=ln;n&&cs(e,n)?_f(u,l):(e.flags=e.flags&-4097|2,ae=!1,ln=e)}}else{if(Ai(e))throw Error(C(418));e.flags=e.flags&-4097|2,ae=!1,ln=e}}}function xs(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ln=e}function Iu(e){if(e!==ln)return!1;if(!ae)return xs(e),ae=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Bi(e.type,e.memoizedProps)),n&&(n=rn)){if(Ai(e))throw Pf(),Error(C(418));for(;n;)_f(e,n),n=xn(n.nextSibling)}if(xs(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{e=e.nextSibling;for(n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"){if(n===0){rn=xn(e.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++}e=e.nextSibling}rn=null}}else rn=ln?xn(e.stateNode.nextSibling):null;return!0}function Pf(){for(var e=rn;e;)e=xn(e.nextSibling)}function Gr(){rn=ln=null,ae=!1}function zt(e){En===null?En=[e]:En.push(e)}function yl(e,n,l){if(e=l.ref,e!==null&&typeof e!=="function"&&typeof e!=="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(C(309));var u=l.stateNode}if(!u)throw Error(C(147,e));var o=u,i=""+e;if(n!==null&&n.ref!==null&&typeof n.ref==="function"&&n.ref._stringRef===i)return n.ref;return n=function(t){var s=o.refs;t===null?delete s[i]:s[i]=t},n._stringRef=i,n}if(typeof e!=="string")throw Error(C(284));if(!l._owner)throw Error(C(290,e))}return e}function Mu(e,n){throw e=Object.prototype.toString.call(n),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function ea(e){var n=e._init;return n(e._payload)}function zf(e){function n(h,p){if(e){var y=h.deletions;y===null?(h.deletions=[p],h.flags|=16):y.push(p)}}function l(h,p){if(!e)return null;for(;p!==null;)n(h,p),p=p.sibling;return null}function u(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function o(h,p){return h=lr(h,p),h.index=0,h.sibling=null,h}function i(h,p,y){if(h.index=y,!e)return h.flags|=1048576,p;if(y=h.alternate,y!==null)return y=y.index,y<p?(h.flags|=2,p):y;return h.flags|=2,p}function t(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,p,y,E){if(p===null||p.tag!==6)return p=pi(y,h.mode,E),p.return=h,p;return p=o(p,y),p.return=h,p}function f(h,p,y,E){var O=y.type;if(O===Ur)return g(h,p,y.props.children,E,y.key);if(p!==null&&(p.elementType===O||typeof O==="object"&&O!==null&&O.$$typeof===Yn&&ea(O)===p.type))return E=o(p,y.props),E.ref=yl(h,p,y),E.return=h,E;return E=Au(y.type,y.key,y.props,null,h.mode,E),E.ref=yl(h,p,y),E.return=h,E}function v(h,p,y,E){if(p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation)return p=vi(y,h.mode,E),p.return=h,p;return p=o(p,y.children||[]),p.return=h,p}function g(h,p,y,E,O){if(p===null||p.tag!==7)return p=kr(y,h.mode,E,O),p.return=h,p;return p=o(p,y),p.return=h,p}function S(h,p,y){if(typeof p==="string"&&p!==""||typeof p==="number")return p=pi(""+p,h.mode,y),p.return=h,p;if(typeof p==="object"&&p!==null){switch(p.$$typeof){case ku:return y=Au(p.type,p.key,p.props,null,h.mode,y),y.ref=yl(h,null,p),y.return=h,y;case Fr:return p=vi(p,h.mode,y),p.return=h,p;case Yn:var E=p._init;return S(h,E(p._payload),y)}if(Sl(p)||dl(p))return p=kr(p,h.mode,y,null),p.return=h,p;Mu(h,p)}return null}function k(h,p,y,E){var O=p!==null?p.key:null;if(typeof y==="string"&&y!==""||typeof y==="number")return O!==null?null:s(h,p,""+y,E);if(typeof y==="object"&&y!==null){switch(y.$$typeof){case ku:return y.key===O?f(h,p,y,E):null;case Fr:return y.key===O?v(h,p,y,E):null;case Yn:return O=y._init,k(h,p,O(y._payload),E)}if(Sl(y)||dl(y))return O!==null?null:g(h,p,y,E,null);Mu(h,y)}return null}function P(h,p,y,E,O){if(typeof E==="string"&&E!==""||typeof E==="number")return h=h.get(y)||null,s(p,h,""+E,O);if(typeof E==="object"&&E!==null){switch(E.$$typeof){case ku:return h=h.get(E.key===null?y:E.key)||null,f(p,h,E,O);case Fr:return h=h.get(E.key===null?y:E.key)||null,v(p,h,E,O);case Yn:var D=E._init;return P(h,p,y,D(E._payload),O)}if(Sl(E)||dl(E))return h=h.get(y)||null,g(p,h,E,O,null);Mu(p,E)}return null}function z(h,p,y,E){for(var O=null,D=null,L=p,Q=p=0,ve=null;L!==null&&Q<y.length;Q++){L.index>Q?(ve=L,L=null):ve=L.sibling;var K=k(h,L,y[Q],E);if(K===null){L===null&&(L=ve);break}e&&L&&K.alternate===null&&n(h,L),p=i(K,p,Q),D===null?O=K:D.sibling=K,D=K,L=ve}if(Q===y.length)return l(h,L),ae&&pr(h,Q),O;if(L===null){for(;Q<y.length;Q++)L=S(h,y[Q],E),L!==null&&(p=i(L,p,Q),D===null?O=L:D.sibling=L,D=L);return ae&&pr(h,Q),O}for(L=u(h,L);Q<y.length;Q++)ve=P(L,h,Q,y[Q],E),ve!==null&&(e&&ve.alternate!==null&&L.delete(ve.key===null?Q:ve.key),p=i(ve,p,Q),D===null?O=ve:D.sibling=ve,D=ve);return e&&L.forEach(function(on){return n(h,on)}),ae&&pr(h,Q),O}function I(h,p,y,E){var O=dl(y);if(typeof O!=="function")throw Error(C(150));if(y=O.call(y),y==null)throw Error(C(151));for(var D=O=null,L=p,Q=p=0,ve=null,K=y.next();L!==null&&!K.done;Q++,K=y.next()){L.index>Q?(ve=L,L=null):ve=L.sibling;var on=k(h,L,K.value,E);if(on===null){L===null&&(L=ve);break}e&&L&&on.alternate===null&&n(h,L),p=i(on,p,Q),D===null?O=on:D.sibling=on,D=on,L=ve}if(K.done)return l(h,L),ae&&pr(h,Q),O;if(L===null){for(;!K.done;Q++,K=y.next())K=S(h,K.value,E),K!==null&&(p=i(K,p,Q),D===null?O=K:D.sibling=K,D=K);return ae&&pr(h,Q),O}for(L=u(h,L);!K.done;Q++,K=y.next())K=P(L,h,Q,K.value,E),K!==null&&(e&&K.alternate!==null&&L.delete(K.key===null?Q:K.key),p=i(K,p,Q),D===null?O=K:D.sibling=K,D=K);return e&&L.forEach(function(ll){return n(h,ll)}),ae&&pr(h,Q),O}function J(h,p,y,E){if(typeof y==="object"&&y!==null&&y.type===Ur&&y.key===null&&(y=y.props.children),typeof y==="object"&&y!==null){switch(y.$$typeof){case ku:e:{for(var O=y.key,D=p;D!==null;){if(D.key===O){if(O=y.type,O===Ur){if(D.tag===7){l(h,D.sibling),p=o(D,y.props.children),p.return=h,h=p;break e}}else if(D.elementType===O||typeof O==="object"&&O!==null&&O.$$typeof===Yn&&ea(O)===D.type){l(h,D.sibling),p=o(D,y.props),p.ref=yl(h,D,y),p.return=h,h=p;break e}l(h,D);break}else n(h,D);D=D.sibling}y.type===Ur?(p=kr(y.props.children,h.mode,E,y.key),p.return=h,h=p):(E=Au(y.type,y.key,y.props,null,h.mode,E),E.ref=yl(h,p,y),E.return=h,h=E)}return t(h);case Fr:e:{for(D=y.key;p!==null;){if(p.key===D)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){l(h,p.sibling),p=o(p,y.children||[]),p.return=h,h=p;break e}else{l(h,p);break}else n(h,p);p=p.sibling}p=vi(y,h.mode,E),p.return=h,h=p}return t(h);case Yn:return D=y._init,J(h,p,D(y._payload),E)}if(Sl(y))return z(h,p,y,E);if(dl(y))return I(h,p,y,E);Mu(h,y)}return typeof y==="string"&&y!==""||typeof y==="number"?(y=""+y,p!==null&&p.tag===6?(l(h,p.sibling),p=o(p,y),p.return=h,h=p):(l(h,p),p=pi(y,h.mode,E),p.return=h,h=p),t(h)):l(h,p)}return J}function It(){Tt=Br=uo=null}function Mt(e){var n=lo.current;te(lo),e._currentValue=n}function Xi(e,n,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===l)break;e=e.return}}function Zr(e,n){uo=e,Tt=Br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(be=!0),e.firstContext=null)}function vn(e){var n=e._currentValue;if(Tt!==e)if(e={context:e,memoizedValue:n,next:null},Br===null){if(uo===null)throw Error(C(308));Br=e,uo.dependencies={lanes:0,firstContext:e}}else Br=Br.next=e;return n}function Ft(e){yr===null?yr=[e]:yr.push(e)}function If(e,n,l,u){var o=n.interleaved;return o===null?(l.next=l,Ft(n)):(l.next=o.next,o.next=l),n.interleaved=l,Rn(e,u)}function Rn(e,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),l=e;for(e=e.return;e!==null;)e.childLanes|=n,l=e.alternate,l!==null&&(l.childLanes|=n),l=e,e=e.return;return l.tag===3?l.stateNode:null}function Ut(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mf(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function er(e,n,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(q&2)!==0){var o=u.pending;return o===null?n.next=n:(n.next=o.next,o.next=n),u.pending=n,Rn(e,l)}return o=u.interleaved,o===null?(n.next=n,Ft(u)):(n.next=o.next,o.next=n),u.interleaved=n,Rn(e,l)}function Qu(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194240)!==0)){var u=n.lanes;u&=e.pendingLanes,l|=u,n.lanes=l,mt(e,l)}}function na(e,n){var{updateQueue:l,alternate:u}=e;if(u!==null&&(u=u.updateQueue,l===u)){var o=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var t={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};i===null?o=i=t:i=i.next=t,l=l.next}while(l!==null);i===null?o=i=n:i=i.next=n}else o=i=n;l={baseState:u.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:u.shared,effects:u.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}function oo(e,n,l,u){var o=e.updateQueue;Xn=!1;var{firstBaseUpdate:i,lastBaseUpdate:t}=o,s=o.shared.pending;if(s!==null){o.shared.pending=null;var f=s,v=f.next;f.next=null,t===null?i=v:t.next=v,t=f;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==t&&(s===null?g.firstBaseUpdate=v:s.next=v,g.lastBaseUpdate=f))}if(i!==null){var S=o.baseState;t=0,g=v=f=null,s=i;do{var{lane:k,eventTime:P}=s;if((u&k)===k){g!==null&&(g=g.next={eventTime:P,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var z=e,I=s;switch(k=n,P=l,I.tag){case 1:if(z=I.payload,typeof z==="function"){S=z.call(P,S,k);break e}S=z;break e;case 3:z.flags=z.flags&-65537|128;case 0:if(z=I.payload,k=typeof z==="function"?z.call(P,S,k):z,k===null||k===void 0)break e;S=ge({},S,k);break e;case 2:Xn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,k=o.effects,k===null?o.effects=[s]:k.push(s))}else P={eventTime:P,lane:k,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(v=g=P,f=S):g=g.next=P,t|=k;if(s=s.next,s===null)if(s=o.shared.pending,s===null)break;else k=s,s=k.next,k.next=null,o.lastBaseUpdate=k,o.shared.pending=null}while(1);if(g===null&&(f=S),o.baseState=f,o.firstBaseUpdate=v,o.lastBaseUpdate=g,n=o.shared.interleaved,n!==null){o=n;do t|=o.lane,o=o.next;while(o!==n)}else i===null&&(o.shared.lanes=0);Cr|=t,e.lanes=t,e.memoizedState=S}}function ra(e,n,l){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var u=e[n],o=u.callback;if(o!==null){if(u.callback=null,u=l,typeof o!=="function")throw Error(C(191,o));o.call(u)}}}function mr(e){if(e===nu)throw Error(C(174));return e}function Ot(e,n){switch(le(Jl,n),le(Zl,e),le(Fn,nu),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ni(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Ni(n,e)}te(Fn),le(Fn,n)}function cr(){te(Fn),te(Zl),te(Jl)}function Ff(e){mr(Jl.current);var n=mr(Fn.current),l=Ni(n,e.type);n!==l&&(le(Zl,e),le(Fn,l))}function Lt(e){Zl.current===e&&(te(Fn),te(Zl))}function io(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)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}function Dt(){for(var e=0;e<ii.length;e++)ii[e]._workInProgressVersionPrimary=null;ii.length=0}function Qe(){throw Error(C(321))}function Vt(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!_n(e[l],n[l]))return!1;return!0}function $t(e,n,l,u,o,i){if(Er=i,me=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Ru.current=e===null||e.memoizedState===null?Av:Yv,e=l(u,o),Ul){i=0;do{if(Ul=!1,ql=0,25<=i)throw Error(C(301));i+=1,Te=_e=null,n.updateQueue=null,Ru.current=Xv,e=l(u,o)}while(Ul)}if(Ru.current=so,n=_e!==null&&_e.next!==null,Er=0,Te=_e=me=null,to=!1,n)throw Error(C(300));return e}function Qt(){var e=ql!==0;return ql=0,e}function Tn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?me.memoizedState=Te=e:Te=Te.next=e,Te}function hn(){if(_e===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var n=Te===null?me.memoizedState:Te.next;if(n!==null)Te=n,_e=e;else{if(e===null)throw Error(C(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Te===null?me.memoizedState=Te=e:Te=Te.next=e}return Te}function Wl(e,n){return typeof n==="function"?n(e):n}function si(e){var n=hn(),l=n.queue;if(l===null)throw Error(C(311));l.lastRenderedReducer=e;var u=_e,o=u.baseQueue,i=l.pending;if(i!==null){if(o!==null){var t=o.next;o.next=i.next,i.next=t}u.baseQueue=o=i,l.pending=null}if(o!==null){i=o.next,u=u.baseState;var s=t=null,f=null,v=i;do{var g=v.lane;if((Er&g)===g)f!==null&&(f=f.next={lane:0,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),u=v.hasEagerState?v.eagerState:e(u,v.action);else{var S={lane:g,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null};f===null?(s=f=S,t=u):f=f.next=S,me.lanes|=g,Cr|=g}v=v.next}while(v!==null&&v!==i);f===null?t=u:f.next=s,_n(u,n.memoizedState)||(be=!0),n.memoizedState=u,n.baseState=t,n.baseQueue=f,l.lastRenderedState=u}if(e=l.interleaved,e!==null){o=e;do i=o.lane,me.lanes|=i,Cr|=i,o=o.next;while(o!==e)}else o===null&&(l.lanes=0);return[n.memoizedState,l.dispatch]}function ai(e){var n=hn(),l=n.queue;if(l===null)throw Error(C(311));l.lastRenderedReducer=e;var{dispatch:u,pending:o}=l,i=n.memoizedState;if(o!==null){l.pending=null;var t=o=o.next;do i=e(i,t.action),t=t.next;while(t!==o);_n(i,n.memoizedState)||(be=!0),n.memoizedState=i,n.baseQueue===null&&(n.baseState=i),l.lastRenderedState=i}return[i,u]}function Uf(){}function Of(e,n){var l=me,u=hn(),o=n(),i=!_n(u.memoizedState,o);if(i&&(u.memoizedState=o,be=!0),u=u.queue,Rt(Vf.bind(null,l,u,e),[e]),u.getSnapshot!==n||i||Te!==null&&Te.memoizedState.tag&1){if(l.flags|=2048,Gl(9,Df.bind(null,l,u,o,n),void 0,null),Ie===null)throw Error(C(349));(Er&30)!==0||Lf(l,n,o)}return o}function Lf(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=me.updateQueue,n===null?(n={lastEffect:null,stores:null},me.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Df(e,n,l,u){n.value=l,n.getSnapshot=u,$f(n)&&Qf(e)}function Vf(e,n,l){return l(function(){$f(n)&&Qf(e)})}function $f(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!_n(e,l)}catch(u){return!0}}function Qf(e){var n=Rn(e,1);n!==null&&Nn(n,e,1,-1)}function la(e){var n=Tn();return typeof e==="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wl,lastRenderedState:e},n.queue=e,e=e.dispatch=Kv.bind(null,me,e),[n.memoizedState,e]}function Gl(e,n,l,u){return e={tag:e,create:n,destroy:l,deps:u,next:null},n=me.updateQueue,n===null?(n={lastEffect:null,stores:null},me.updateQueue=n,n.lastEffect=e.next=e):(l=n.lastEffect,l===null?n.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,n.lastEffect=e)),e}function Rf(){return hn().memoizedState}function Bu(e,n,l,u){var o=Tn();me.flags|=e,o.memoizedState=Gl(1|n,l,void 0,u===void 0?null:u)}function Eo(e,n,l,u){var o=hn();u=u===void 0?null:u;var i=void 0;if(_e!==null){var t=_e.memoizedState;if(i=t.destroy,u!==null&&Vt(u,t.deps)){o.memoizedState=Gl(n,l,i,u);return}}me.flags|=e,o.memoizedState=Gl(1|n,l,i,u)}function ua(e,n){return Bu(8390656,8,e,n)}function Rt(e,n){return Eo(2048,8,e,n)}function Bf(e,n){return Eo(4,2,e,n)}function jf(e,n){return Eo(4,4,e,n)}function Hf(e,n){if(typeof n==="function")return e=e(),n(e),function(){n(null)};if(n!==null&&n!==void 0)return e=e(),n.current=e,function(){n.current=null}}function Kf(e,n,l){return l=l!==null&&l!==void 0?l.concat([e]):null,Eo(4,4,Hf.bind(null,n,e),l)}function Bt(){}function Af(e,n){var l=hn();n=n===void 0?null:n;var u=l.memoizedState;if(u!==null&&n!==null&&Vt(n,u[1]))return u[0];return l.memoizedState=[e,n],e}function Yf(e,n){var l=hn();n=n===void 0?null:n;var u=l.memoizedState;if(u!==null&&n!==null&&Vt(n,u[1]))return u[0];return e=e(),l.memoizedState=[e,n],e}function Xf(e,n,l){if((Er&21)===0)return e.baseState&&(e.baseState=!1,be=!0),e.memoizedState=l;return _n(l,n)||(l=Wa(),me.lanes|=l,Cr|=l,e.baseState=!0),n}function jv(e,n){var l=b;b=l!==0&&4>l?l:4,e(!0);var u=ti.transition;ti.transition={};try{e(!1),n()}finally{b=l,ti.transition=u}}function Zf(){return hn().memoizedState}function Hv(e,n,l){var u=rr(e);if(l={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null},Jf(e))qf(n,l);else if(l=If(e,n,l,u),l!==null){var o=Je();Nn(l,e,u,o),Wf(l,n,u)}}function Kv(e,n,l){var u=rr(e),o={lane:u,action:l,hasEagerState:!1,eagerState:null,next:null};if(Jf(e))qf(n,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var t=n.lastRenderedState,s=i(t,l);if(o.hasEagerState=!0,o.eagerState=s,_n(s,t)){var f=n.interleaved;f===null?(o.next=o,Ft(n)):(o.next=f.next,f.next=o),n.interleaved=o;return}}catch(v){}finally{}l=If(e,n,o,u),l!==null&&(o=Je(),Nn(l,e,u,o),Wf(l,n,u))}}function Jf(e){var n=e.alternate;return e===me||n!==null&&n===me}function qf(e,n){Ul=to=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function Wf(e,n,l){if((l&4194240)!==0){var u=n.lanes;u&=e.pendingLanes,l|=u,n.lanes=l,mt(e,l)}}function Sn(e,n){if(e&&e.defaultProps){n=ge({},n),e=e.defaultProps;for(var l in e)n[l]===void 0&&(n[l]=e[l]);return n}return n}function Zi(e,n,l,u){n=e.memoizedState,l=l(u,n),l=l===null||l===void 0?n:ge({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}function oa(e,n,l,u,o,i,t){return e=e.stateNode,typeof e.shouldComponentUpdate==="function"?e.shouldComponentUpdate(u,i,t):n.prototype&&n.prototype.isPureReactComponent?!Kl(l,u)||!Kl(o,i):!0}function Gf(e,n,l){var u=!1,o=or,i=n.contextType;return typeof i==="object"&&i!==null?i=vn(i):(o=xe(n)?Sr:je.current,u=n.contextTypes,i=(u=u!==null&&u!==void 0)?Wr(e,o):or),n=new n(l,i),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Co,e.stateNode=n,n._reactInternals=e,u&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),n}function ia(e,n,l,u){e=n.state,typeof n.componentWillReceiveProps==="function"&&n.componentWillReceiveProps(l,u),typeof n.UNSAFE_componentWillReceiveProps==="function"&&n.UNSAFE_componentWillReceiveProps(l,u),n.state!==e&&Co.enqueueReplaceState(n,n.state,null)}function Ji(e,n,l,u){var o=e.stateNode;o.props=l,o.state=e.memoizedState,o.refs={},Ut(e);var i=n.contextType;typeof i==="object"&&i!==null?o.context=vn(i):(i=xe(n)?Sr:je.current,o.context=Wr(e,i)),o.state=e.memoizedState,i=n.getDerivedStateFromProps,typeof i==="function"&&(Zi(e,n,i,l),o.state=e.memoizedState),typeof n.getDerivedStateFromProps==="function"||typeof o.getSnapshotBeforeUpdate==="function"||typeof o.UNSAFE_componentWillMount!=="function"&&typeof o.componentWillMount!=="function"||(n=o.state,typeof o.componentWillMount==="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==="function"&&o.UNSAFE_componentWillMount(),n!==o.state&&Co.enqueueReplaceState(o,o.state,null),oo(e,l,o,u),o.state=e.memoizedState),typeof o.componentDidMount==="function"&&(e.flags|=4194308)}function xr(e,n){try{var l="",u=n;do l+=E0(u),u=u.return;while(u);var o=l}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:n,stack:o,digest:null}}function fi(e,n,l){return{value:e,source:null,stack:l!=null?l:null,digest:n!=null?n:null}}function qi(e,n){try{console.error(n.value)}catch(l){setTimeout(function(){throw l})}}function bf(e,n,l){l=Vn(-1,l),l.tag=3,l.payload={element:null};var u=n.value;return l.callback=function(){fo||(fo=!0,ut=u),qi(e,n)},l}function cf(e,n,l){l=Vn(-1,l),l.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u==="function"){var o=n.value;l.payload=function(){return u(o)},l.callback=function(){qi(e,n)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch==="function"&&(l.callback=function(){qi(e,n),typeof u!=="function"&&(nr===null?nr=new Set([this]):nr.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:t!==null?t:""})}),l}function ta(e,n,l){var u=e.pingCache;if(u===null){u=e.pingCache=new Zv;var o=new Set;u.set(n,o)}else o=u.get(n),o===void 0&&(o=new Set,u.set(n,o));o.has(l)||(o.add(l),e=i1.bind(null,e,n,l),n.then(e,e))}function sa(e){do{var n;if(n=e.tag===13)n=e.memoizedState,n=n!==null?n.dehydrated!==null?!0:!1:!0;if(n)return e;e=e.return}while(e!==null);return null}function aa(e,n,l,u,o){if((e.mode&1)===0)return e===n?e.flags|=65536:(e.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(n=Vn(-1,1),n.tag=2,er(l,n,1))),l.lanes|=1),e;return e.flags|=65536,e.lanes=o,e}function Ze(e,n,l,u){n.child=e===null?Tf(n,null,l,u):br(n,e.child,l,u)}function fa(e,n,l,u,o){l=l.render;var i=n.ref;if(Zr(n,o),u=$t(e,n,l,u,i,o),l=Qt(),e!==null&&!be)return n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~o,Bn(e,n,o);return ae&&l&&_t(n),n.flags|=1,Ze(e,n,u,o),n.child}function da(e,n,l,u,o){if(e===null){var i=l.type;if(typeof i==="function"&&!Jt(i)&&i.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0)return n.tag=15,n.type=i,xf(e,n,i,u,o);return e=Au(l.type,null,u,n,n.mode,o),e.ref=n.ref,e.return=n,n.child=e}if(i=e.child,(e.lanes&o)===0){var t=i.memoizedProps;if(l=l.compare,l=l!==null?l:Kl,l(t,u)&&e.ref===n.ref)return Bn(e,n,o)}return n.flags|=1,e=lr(i,u),e.ref=n.ref,e.return=n,n.child=e}function xf(e,n,l,u,o){if(e!==null){var i=e.memoizedProps;if(Kl(i,u)&&e.ref===n.ref)if(be=!1,n.pendingProps=u=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(be=!0);else return n.lanes=e.lanes,Bn(e,n,o)}return Wi(e,n,l,u,o)}function ed(e,n,l){var u=n.pendingProps,o=u.children,i=e!==null?e.memoizedState:null;if(u.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(Hr,nn),nn|=l;else{if((l&1073741824)===0)return e=i!==null?i.baseLanes|l:l,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,le(Hr,nn),nn|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=i!==null?i.baseLanes:l,le(Hr,nn),nn|=u}else i!==null?(u=i.baseLanes|l,n.memoizedState=null):u=l,le(Hr,nn),nn|=u;return Ze(e,n,o,l),n.child}function nd(e,n){var l=n.ref;if(e===null&&l!==null||e!==null&&e.ref!==l)n.flags|=512,n.flags|=2097152}function Wi(e,n,l,u,o){var i=xe(l)?Sr:je.current;if(i=Wr(n,i),Zr(n,o),l=$t(e,n,l,u,i,o),u=Qt(),e!==null&&!be)return n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~o,Bn(e,n,o);return ae&&u&&_t(n),n.flags|=1,Ze(e,n,l,o),n.child}function pa(e,n,l,u,o){if(xe(l)){var i=!0;eo(n)}else i=!1;if(Zr(n,o),n.stateNode===null)ju(e,n),Gf(n,l,u),Ji(n,l,u,o),u=!0;else if(e===null){var{stateNode:t,memoizedProps:s}=n;t.props=s;var f=t.context,v=l.contextType;typeof v==="object"&&v!==null?v=vn(v):(v=xe(l)?Sr:je.current,v=Wr(n,v));var g=l.getDerivedStateFromProps,S=typeof g==="function"||typeof t.getSnapshotBeforeUpdate==="function";S||typeof t.UNSAFE_componentWillReceiveProps!=="function"&&typeof t.componentWillReceiveProps!=="function"||(s!==u||f!==v)&&ia(n,t,u,v),Xn=!1;var k=n.memoizedState;t.state=k,oo(n,u,t,o),f=n.memoizedState,s!==u||k!==f||ce.current||Xn?(typeof g==="function"&&(Zi(n,l,g,u),f=n.memoizedState),(s=Xn||oa(n,l,s,u,k,f,v))?(S||typeof t.UNSAFE_componentWillMount!=="function"&&typeof t.componentWillMount!=="function"||(typeof t.componentWillMount==="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount==="function"&&t.UNSAFE_componentWillMount()),typeof t.componentDidMount==="function"&&(n.flags|=4194308)):(typeof t.componentDidMount==="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=f),t.props=u,t.state=f,t.context=v,u=s):(typeof t.componentDidMount==="function"&&(n.flags|=4194308),u=!1)}else{t=n.stateNode,Mf(e,n),s=n.memoizedProps,v=n.type===n.elementType?s:Sn(n.type,s),t.props=v,S=n.pendingProps,k=t.context,f=l.contextType,typeof f==="object"&&f!==null?f=vn(f):(f=xe(l)?Sr:je.current,f=Wr(n,f));var P=l.getDerivedStateFromProps;(g=typeof P==="function"||typeof t.getSnapshotBeforeUpdate==="function")||typeof t.UNSAFE_componentWillReceiveProps!=="function"&&typeof t.componentWillReceiveProps!=="function"||(s!==S||k!==f)&&ia(n,t,u,f),Xn=!1,k=n.memoizedState,t.state=k,oo(n,u,t,o);var z=n.memoizedState;s!==S||k!==z||ce.current||Xn?(typeof P==="function"&&(Zi(n,l,P,u),z=n.memoizedState),(v=Xn||oa(n,l,v,u,k,z,f)||!1)?(g||typeof t.UNSAFE_componentWillUpdate!=="function"&&typeof t.componentWillUpdate!=="function"||(typeof t.componentWillUpdate==="function"&&t.componentWillUpdate(u,z,f),typeof t.UNSAFE_componentWillUpdate==="function"&&t.UNSAFE_componentWillUpdate(u,z,f)),typeof t.componentDidUpdate==="function"&&(n.flags|=4),typeof t.getSnapshotBeforeUpdate==="function"&&(n.flags|=1024)):(typeof t.componentDidUpdate!=="function"||s===e.memoizedProps&&k===e.memoizedState||(n.flags|=4),typeof t.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&k===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=z),t.props=u,t.state=z,t.context=f,u=v):(typeof t.componentDidUpdate!=="function"||s===e.memoizedProps&&k===e.memoizedState||(n.flags|=4),typeof t.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&k===e.memoizedState||(n.flags|=1024),u=!1)}return Gi(e,n,l,u,i,o)}function Gi(e,n,l,u,o,i){nd(e,n);var t=(n.flags&128)!==0;if(!u&&!t)return o&&bs(n,l,!1),Bn(e,n,i);u=n.stateNode,Jv.current=n;var s=t&&typeof l.getDerivedStateFromError!=="function"?null:u.render();return n.flags|=1,e!==null&&t?(n.child=br(n,e.child,null,i),n.child=br(n,null,s,i)):Ze(e,n,s,i),n.memoizedState=u.state,o&&bs(n,l,!0),n.child}function rd(e){var n=e.stateNode;n.pendingContext?Gs(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Gs(e,n.context,!1),Ot(e,n.containerInfo)}function va(e,n,l,u,o){return Gr(),zt(o),n.flags|=256,Ze(e,n,l,u),n.child}function ci(e){return{baseLanes:e,cachePool:null,transitions:null}}function ld(e,n,l){var u=n.pendingProps,o=ye.current,i=!1,t=(n.flags&128)!==0,s;if((s=t)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s)i=!0,n.flags&=-129;else if(e===null||e.memoizedState!==null)o|=1;if(le(ye,o&1),e===null){if(Yi(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null))return(n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null;return t=u.children,e=u.fallback,i?(u=n.mode,i=n.child,t={mode:"hidden",children:t},(u&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=t):i=Po(t,u,0,null),e=kr(e,u,l,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=ci(l),n.memoizedState=bi,e):jt(n,t)}if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return qv(e,n,t,u,s,o,l);if(i){i=u.fallback,t=n.mode,o=e.child,s=o.sibling;var f={mode:"hidden",children:u.children};return(t&1)===0&&n.child!==o?(u=n.child,u.childLanes=0,u.pendingProps=f,n.deletions=null):(u=lr(o,f),u.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=lr(s,i):(i=kr(i,t,l,null),i.flags|=2),i.return=n,u.return=n,u.sibling=i,n.child=u,u=i,i=n.child,t=e.child.memoizedState,t=t===null?ci(l):{baseLanes:t.baseLanes|l,cachePool:null,transitions:t.transitions},i.memoizedState=t,i.childLanes=e.childLanes&~l,n.memoizedState=bi,u}return i=e.child,e=i.sibling,u=lr(i,{mode:"visible",children:u.children}),(n.mode&1)===0&&(u.lanes=l),u.return=n,u.sibling=null,e!==null&&(l=n.deletions,l===null?(n.deletions=[e],n.flags|=16):l.push(e)),n.child=u,n.memoizedState=null,u}function jt(e,n){return n=Po({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Fu(e,n,l,u){return u!==null&&zt(u),br(n,e.child,null,l),e=jt(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function qv(e,n,l,u,o,i,t){if(l){if(n.flags&256)return n.flags&=-257,u=fi(Error(C(422))),Fu(e,n,t,u);if(n.memoizedState!==null)return n.child=e.child,n.flags|=128,null;return i=u.fallback,o=n.mode,u=Po({mode:"visible",children:u.children},o,0,null),i=kr(i,o,t,null),i.flags|=2,u.return=n,i.return=n,u.sibling=i,n.child=u,(n.mode&1)!==0&&br(n,e.child,null,t),n.child.memoizedState=ci(t),n.memoizedState=bi,i}if((n.mode&1)===0)return Fu(e,n,t,null);if(o.data==="$!"){if(u=o.nextSibling&&o.nextSibling.dataset,u)var s=u.dgst;return u=s,i=Error(C(419)),u=fi(i,u,void 0),Fu(e,n,t,u)}if(s=(t&e.childLanes)!==0,be||s){if(u=Ie,u!==null){switch(t&-t){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(u.suspendedLanes|t))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Rn(e,o),Nn(u,e,o,-1))}return Zt(),u=fi(Error(C(421))),Fu(e,n,t,u)}if(o.data==="$?")return n.flags|=128,n.child=e.child,n=t1.bind(null,e),o._reactRetry=n,null;return e=i.treeContext,rn=xn(o.nextSibling),ln=n,ae=!0,En=null,e!==null&&(an[fn++]=Ln,an[fn++]=Dn,an[fn++]=wr,Ln=e.id,Dn=e.overflow,wr=n),n=jt(n,u.children),n.flags|=4096,n}function ha(e,n,l){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),Xi(e.return,n,l)}function di(e,n,l,u,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:o}:(i.isBackwards=n,i.rendering=null,i.renderingStartTime=0,i.last=u,i.tail=l,i.tailMode=o)}function ud(e,n,l){var u=n.pendingProps,o=u.revealOrder,i=u.tail;if(Ze(e,n,u.children,l),u=ye.current,(u&2)!==0)u=u&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ha(e,l,n);else if(e.tag===19)ha(e,l,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}u&=1}if(le(ye,u),(n.mode&1)===0)n.memoizedState=null;else switch(o){case"forwards":l=n.child;for(o=null;l!==null;)e=l.alternate,e!==null&&io(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=n.child,n.child=null):(o=l.sibling,l.sibling=null),di(n,!1,o,l,i);break;case"backwards":l=null,o=n.child;for(n.child=null;o!==null;){if(e=o.alternate,e!==null&&io(e)===null){n.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}di(n,!0,l,null,i);break;case"together":di(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ju(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Bn(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Cr|=n.lanes,(l&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(C(153));if(n.child!==null){e=n.child,l=lr(e,e.pendingProps),n.child=l;for(l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=lr(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function Wv(e,n,l){switch(n.tag){case 3:rd(n),Gr();break;case 5:Ff(n);break;case 1:xe(n.type)&&eo(n);break;case 4:Ot(n,n.stateNode.containerInfo);break;case 10:var u=n.type._context,o=n.memoizedProps.value;le(lo,u._currentValue),u._currentValue=o;break;case 13:if(u=n.memoizedState,u!==null){if(u.dehydrated!==null)return le(ye,ye.current&1),n.flags|=128,null;if((l&n.child.childLanes)!==0)return ld(e,n,l);return le(ye,ye.current&1),e=Bn(e,n,l),e!==null?e.sibling:null}le(ye,ye.current&1);break;case 19:if(u=(l&n.childLanes)!==0,(e.flags&128)!==0){if(u)return ud(e,n,l);n.flags|=128}if(o=n.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),le(ye,ye.current),u)break;else return null;case 22:case 23:return n.lanes=0,ed(e,n,l)}return Bn(e,n,l)}function ml(e,n){if(!ae)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Re(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(n)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,u|=o.subtreeFlags&14680064,u|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,u|=o.subtreeFlags,u|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=u,e.childLanes=l,n}function Gv(e,n,l){var u=n.pendingProps;switch(Pt(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(n),null;case 1:return xe(n.type)&&xu(),Re(n),null;case 3:if(u=n.stateNode,cr(),te(ce),te(je),Dt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),e===null||e.child===null)Iu(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,En!==null&&(tt(En),En=null));return xi(e,n),Re(n),null;case 5:Lt(n);var o=mr(Jl.current);if(l=n.type,e!==null&&n.stateNode!=null)id(e,n,l,u,o),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!u){if(n.stateNode===null)throw Error(C(166));return Re(n),null}if(e=mr(Fn.current),Iu(n)){u=n.stateNode,l=n.type;var i=n.memoizedProps;switch(u[In]=n,u[Xl]=i,e=(n.mode&1)!==0,l){case"dialog":ie("cancel",u),ie("close",u);break;case"iframe":case"object":case"embed":ie("load",u);break;case"video":case"audio":for(o=0;o<Pl.length;o++)ie(Pl[o],u);break;case"source":ie("error",u);break;case"img":case"image":case"link":ie("error",u),ie("load",u);break;case"details":ie("toggle",u);break;case"input":_s(u,i),ie("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!i.multiple},ie("invalid",u);break;case"textarea":zs(u,i),ie("invalid",u)}_i(l,i),o=null;for(var t in i)if(i.hasOwnProperty(t)){var s=i[t];t==="children"?typeof s==="string"?u.textContent!==s&&(i.suppressHydrationWarning!==!0&&Tu(u.textContent,s,e),o=["children",s]):typeof s==="number"&&u.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Tu(u.textContent,s,e),o=["children",""+s]):Vl.hasOwnProperty(t)&&s!=null&&t==="onScroll"&&ie("scroll",u)}switch(l){case"input":Su(u),Ps(u,i,!0);break;case"textarea":Su(u),Ts(u);break;case"select":case"option":break;default:typeof i.onClick==="function"&&(u.onclick=cu)}u=o,n.updateQueue=u,u!==null&&(n.flags|=4)}else{t=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Da(l)),e==="http://www.w3.org/1999/xhtml"?l==="script"?(e=t.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is==="string"?e=t.createElement(l,{is:u.is}):(e=t.createElement(l),l==="select"&&(t=e,u.multiple?t.multiple=!0:u.size&&(t.size=u.size))):e=t.createElementNS(e,l),e[In]=n,e[Xl]=u,od(e,n,!1,!1),n.stateNode=e;e:{switch(t=Pi(l,u),l){case"dialog":ie("cancel",e),ie("close",e),o=u;break;case"iframe":case"object":case"embed":ie("load",e),o=u;break;case"video":case"audio":for(o=0;o<Pl.length;o++)ie(Pl[o],e);o=u;break;case"source":ie("error",e),o=u;break;case"img":case"image":case"link":ie("error",e),ie("load",e),o=u;break;case"details":ie("toggle",e),o=u;break;case"input":_s(e,u),o=Si(e,u),ie("invalid",e);break;case"option":o=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},o=ge({},u,{value:void 0}),ie("invalid",e);break;case"textarea":zs(e,u),o=Ci(e,u),ie("invalid",e);break;default:o=u}_i(l,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var f=s[i];i==="style"?Qa(e,f):i==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,f!=null&&Va(e,f)):i==="children"?typeof f==="string"?(l!=="textarea"||f!=="")&&$l(e,f):typeof f==="number"&&$l(e,""+f):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Vl.hasOwnProperty(i)?f!=null&&i==="onScroll"&&ie("scroll",e):f!=null&&ft(e,i,f,t))}switch(l){case"input":Su(e),Ps(e,u,!1);break;case"textarea":Su(e),Ts(e);break;case"option":u.value!=null&&e.setAttribute("value",""+ur(u.value));break;case"select":e.multiple=!!u.multiple,i=u.value,i!=null?Kr(e,!!u.multiple,i,!1):u.defaultValue!=null&&Kr(e,!!u.multiple,u.defaultValue,!0);break;default:typeof o.onClick==="function"&&(e.onclick=cu)}switch(l){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Re(n),null;case 6:if(e&&n.stateNode!=null)td(e,n,e.memoizedProps,u);else{if(typeof u!=="string"&&n.stateNode===null)throw Error(C(166));if(l=mr(Jl.current),mr(Fn.current),Iu(n)){if(u=n.stateNode,l=n.memoizedProps,u[In]=n,i=u.nodeValue!==l){if(e=ln,e!==null)switch(e.tag){case 3:Tu(u.nodeValue,l,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Tu(u.nodeValue,l,(e.mode&1)!==0)}}i&&(n.flags|=4)}else u=(l.nodeType===9?l:l.ownerDocument).createTextNode(u),u[In]=n,n.stateNode=u}return Re(n),null;case 13:if(te(ye),u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ae&&rn!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Pf(),Gr(),n.flags|=98560,i=!1;else if(i=Iu(n),u!==null&&u.dehydrated!==null){if(e===null){if(!i)throw Error(C(318));if(i=n.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(C(317));i[In]=n}else Gr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Re(n),i=!1}else En!==null&&(tt(En),En=null),i=!0;if(!i)return n.flags&65536?n:null}if((n.flags&128)!==0)return n.lanes=l,n;return u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(ye.current&1)!==0?Pe===0&&(Pe=3):Zt())),n.updateQueue!==null&&(n.flags|=4),Re(n),null;case 4:return cr(),xi(e,n),e===null&&Al(n.stateNode.containerInfo),Re(n),null;case 10:return Mt(n.type._context),Re(n),null;case 17:return xe(n.type)&&xu(),Re(n),null;case 19:if(te(ye),i=n.memoizedState,i===null)return Re(n),null;if(u=(n.flags&128)!==0,t=i.rendering,t===null)if(u)ml(i,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(t=io(e),t!==null){n.flags|=128,ml(i,!1),u=t.updateQueue,u!==null&&(n.updateQueue=u,n.flags|=4),n.subtreeFlags=0,u=l;for(l=n.child;l!==null;)i=l,e=u,i.flags&=14680066,t=i.alternate,t===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,i.type=t.type,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),l=l.sibling;return le(ye,ye.current&1|2),n.child}e=e.sibling}i.tail!==null&&Ee()>el&&(n.flags|=128,u=!0,ml(i,!1),n.lanes=4194304)}else{if(!u)if(e=io(t),e!==null){if(n.flags|=128,u=!0,l=e.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),ml(i,!0),i.tail===null&&i.tailMode==="hidden"&&!t.alternate&&!ae)return Re(n),null}else 2*Ee()-i.renderingStartTime>el&&l!==1073741824&&(n.flags|=128,u=!0,ml(i,!1),n.lanes=4194304);i.isBackwards?(t.sibling=n.child,n.child=t):(l=i.last,l!==null?l.sibling=t:n.child=t,i.last=t)}if(i.tail!==null)return n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=Ee(),n.sibling=null,l=ye.current,le(ye,u?l&1|2:l&1),n;return Re(n),null;case 22:case 23:return Xt(),u=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(n.flags|=8192),u&&(n.mode&1)!==0?(nn&1073741824)!==0&&(Re(n),n.subtreeFlags&6&&(n.flags|=8192)):Re(n),null;case 24:return null;case 25:return null}throw Error(C(156,n.tag))}function bv(e,n){switch(Pt(n),n.tag){case 1:return xe(n.type)&&xu(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return cr(),te(ce),te(je),Dt(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Lt(n),null;case 13:if(te(ye),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(C(340));Gr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return te(ye),null;case 4:return cr(),null;case 10:return Mt(n.type._context),null;case 22:case 23:return Xt(),null;case 24:return null;default:return null}}function jr(e,n){var l=e.ref;if(l!==null)if(typeof l==="function")try{l(null)}catch(u){we(e,n,u)}else l.current=null}function et(e,n,l){try{l()}catch(u){we(e,n,u)}}function xv(e,n){if(Qi=Wu,e=pf(),Nt(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var{anchorOffset:o,focusNode:i}=u;u=u.focusOffset;try{l.nodeType,i.nodeType}catch(E){l=null;break e}var t=0,s=-1,f=-1,v=0,g=0,S=e,k=null;n:for(;;){for(var P;;){if(S!==l||o!==0&&S.nodeType!==3||(s=t+o),S!==i||u!==0&&S.nodeType!==3||(f=t+u),S.nodeType===3&&(t+=S.nodeValue.length),(P=S.firstChild)===null)break;k=S,S=P}for(;;){if(S===e)break n;if(k===l&&++v===o&&(s=t),k===i&&++g===u&&(f=t),(P=S.nextSibling)!==null)break;S=k,k=S.parentNode}S=P}l=s===-1||f===-1?null:{start:s,end:f}}else l=null}l=l||{start:0,end:0}}else l=null;Ri={focusedElem:e,selectionRange:l},Wu=!1;for(F=n;F!==null;)if(n=F,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,F=e;else for(;F!==null;){n=F;try{var z=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(z!==null){var{memoizedProps:I,memoizedState:J}=z,h=n.stateNode,p=h.getSnapshotBeforeUpdate(n.elementType===n.type?I:Sn(n.type,I),J);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=n.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(E){we(n,n.return,E)}if(e=n.sibling,e!==null){e.return=n.return,F=e;break}F=n.return}return z=ya,ya=!1,z}function Ol(e,n,l){var u=n.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var o=u=u.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&et(n,l,i)}o=o.next}while(o!==u)}}function No(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&e)===e){var u=l.create;l.destroy=u()}l=l.next}while(l!==n)}}function nt(e){var n=e.ref;if(n!==null){var l=e.stateNode;switch(e.tag){case 5:e=l;break;default:e=l}typeof n==="function"?n(e):n.current=e}}function sd(e){var n=e.alternate;n!==null&&(e.alternate=null,sd(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[In],delete n[Xl],delete n[Hi],delete n[Vv],delete n[$v])),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 ad(e){return e.tag===5||e.tag===3||e.tag===4}function ma(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rt(e,n,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(e,n):l.insertBefore(e,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(e,l)):(n=l,n.appendChild(e)),l=l._reactRootContainer,l!==null&&l!==void 0||n.onclick!==null||(n.onclick=cu));else if(u!==4&&(e=e.child,e!==null))for(rt(e,n,l),e=e.sibling;e!==null;)rt(e,n,l),e=e.sibling}function lt(e,n,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(lt(e,n,l),e=e.sibling;e!==null;)lt(e,n,l),e=e.sibling}function An(e,n,l){for(l=l.child;l!==null;)fd(e,n,l),l=l.sibling}function fd(e,n,l){if(Mn&&typeof Mn.onCommitFiberUnmount==="function")try{Mn.onCommitFiberUnmount(yo,l)}catch(s){}switch(l.tag){case 5:Be||jr(l,n);case 6:var u=Ue,o=wn;Ue=null,An(e,n,l),Ue=u,wn=o,Ue!==null&&(wn?(e=Ue,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):Ue.removeChild(l.stateNode));break;case 18:Ue!==null&&(wn?(e=Ue,l=l.stateNode,e.nodeType===8?ui(e.parentNode,l):e.nodeType===1&&ui(e,l),jl(e)):ui(Ue,l.stateNode));break;case 4:u=Ue,o=wn,Ue=l.stateNode.containerInfo,wn=!0,An(e,n,l),Ue=u,wn=o;break;case 0:case 11:case 14:case 15:if(!Be&&(u=l.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){o=u=u.next;do{var i=o,t=i.destroy;i=i.tag,t!==void 0&&((i&2)!==0?et(l,n,t):(i&4)!==0&&et(l,n,t)),o=o.next}while(o!==u)}An(e,n,l);break;case 1:if(!Be&&(jr(l,n),u=l.stateNode,typeof u.componentWillUnmount==="function"))try{u.props=l.memoizedProps,u.state=l.memoizedState,u.componentWillUnmount()}catch(s){we(l,n,s)}An(e,n,l);break;case 21:An(e,n,l);break;case 22:l.mode&1?(Be=(u=Be)||l.memoizedState!==null,An(e,n,l),Be=u):An(e,n,l);break;default:An(e,n,l)}}function ga(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new cv),n.forEach(function(u){var o=s1.bind(null,e,u);l.has(u)||(l.add(u),u.then(o,o))})}}function kn(e,n){var l=n.deletions;if(l!==null)for(var u=0;u<l.length;u++){var o=l[u];try{var i=e,t=n,s=t;e:for(;s!==null;){switch(s.tag){case 5:Ue=s.stateNode,wn=!1;break e;case 3:Ue=s.stateNode.containerInfo,wn=!0;break e;case 4:Ue=s.stateNode.containerInfo,wn=!0;break e}s=s.return}if(Ue===null)throw Error(C(160));fd(i,t,o),Ue=null,wn=!1;var f=o.alternate;f!==null&&(f.return=null),o.return=null}catch(v){we(o,n,v)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)dd(n,e),n=n.sibling}function dd(e,n){var{alternate:l,flags:u}=e;switch(e.tag){case 0:case 11:case 14:case 15:if(kn(n,e),zn(e),u&4){try{Ol(3,e,e.return),No(3,e)}catch(I){we(e,e.return,I)}try{Ol(5,e,e.return)}catch(I){we(e,e.return,I)}}break;case 1:kn(n,e),zn(e),u&512&&l!==null&&jr(l,l.return);break;case 5:if(kn(n,e),zn(e),u&512&&l!==null&&jr(l,l.return),e.flags&32){var o=e.stateNode;try{$l(o,"")}catch(I){we(e,e.return,I)}}if(u&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,t=l!==null?l.memoizedProps:i,s=e.type,f=e.updateQueue;if(e.updateQueue=null,f!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Oa(o,i),Pi(s,t);var v=Pi(s,i);for(t=0;t<f.length;t+=2){var g=f[t],S=f[t+1];g==="style"?Qa(o,S):g==="dangerouslySetInnerHTML"?Va(o,S):g==="children"?$l(o,S):ft(o,g,S,v)}switch(s){case"input":wi(o,i);break;case"textarea":La(o,i);break;case"select":var k=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var P=i.value;P!=null?Kr(o,!!i.multiple,P,!1):k!==!!i.multiple&&(i.defaultValue!=null?Kr(o,!!i.multiple,i.defaultValue,!0):Kr(o,!!i.multiple,i.multiple?[]:"",!1))}o[Xl]=i}catch(I){we(e,e.return,I)}}break;case 6:if(kn(n,e),zn(e),u&4){if(e.stateNode===null)throw Error(C(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(I){we(e,e.return,I)}}break;case 3:if(kn(n,e),zn(e),u&4&&l!==null&&l.memoizedState.isDehydrated)try{jl(n.containerInfo)}catch(I){we(e,e.return,I)}break;case 4:kn(n,e),zn(e);break;case 13:kn(n,e),zn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(At=Ee())),u&4&&ga(e);break;case 22:if(g=l!==null&&l.memoizedState!==null,e.mode&1?(Be=(v=Be)||g,kn(n,e),Be=v):kn(n,e),zn(e),u&8192){if(v=e.memoizedState!==null,(e.stateNode.isHidden=v)&&!g&&(e.mode&1)!==0)for(F=e,g=e.child;g!==null;){for(S=F=g;F!==null;){switch(k=F,P=k.child,k.tag){case 0:case 11:case 14:case 15:Ol(4,k,k.return);break;case 1:jr(k,k.return);var z=k.stateNode;if(typeof z.componentWillUnmount==="function"){u=k,l=k.return;try{n=u,z.props=n.memoizedProps,z.state=n.memoizedState,z.componentWillUnmount()}catch(I){we(u,l,I)}}break;case 5:jr(k,k.return);break;case 22:if(k.memoizedState!==null){Sa(S);continue}}P!==null?(P.return=k,F=P):Sa(S)}g=g.sibling}e:for(g=null,S=e;;){if(S.tag===5){if(g===null){g=S;try{o=S.stateNode,v?(i=o.style,typeof i.setProperty==="function"?i.setProperty("display","none","important"):i.display="none"):(s=S.stateNode,f=S.memoizedProps.style,t=f!==void 0&&f!==null&&f.hasOwnProperty("display")?f.display:null,s.style.display=$a("display",t))}catch(I){we(e,e.return,I)}}}else if(S.tag===6){if(g===null)try{S.stateNode.nodeValue=v?"":S.memoizedProps}catch(I){we(e,e.return,I)}}else if((S.tag!==22&&S.tag!==23||S.memoizedState===null||S===e)&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===e)break e;for(;S.sibling===null;){if(S.return===null||S.return===e)break e;g===S&&(g=null),S=S.return}g===S&&(g=null),S.sibling.return=S.return,S=S.sibling}}break;case 19:kn(n,e),zn(e),u&4&&ga(e);break;case 21:break;default:kn(n,e),zn(e)}}function zn(e){var n=e.flags;if(n&2){try{e:{for(var l=e.return;l!==null;){if(ad(l)){var u=l;break e}l=l.return}throw Error(C(160))}switch(u.tag){case 5:var o=u.stateNode;u.flags&32&&($l(o,""),u.flags&=-33);var i=ma(e);lt(e,i,o);break;case 3:case 4:var t=u.stateNode.containerInfo,s=ma(e);rt(e,s,t);break;default:throw Error(C(161))}}catch(f){we(e,e.return,f)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function e1(e,n,l){F=e,pd(e,n,l)}function pd(e,n,l){for(var u=(e.mode&1)!==0;F!==null;){var o=F,i=o.child;if(o.tag===22&&u){var t=o.memoizedState!==null||Uu;if(!t){var s=o.alternate,f=s!==null&&s.memoizedState!==null||Be;s=Uu;var v=Be;if(Uu=t,(Be=f)&&!v)for(F=o;F!==null;)t=F,f=t.child,t.tag===22&&t.memoizedState!==null?wa(o):f!==null?(f.return=t,F=f):wa(o);for(;i!==null;)F=i,pd(i,n,l),i=i.sibling;F=o,Uu=s,Be=v}ka(e,n,l)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,F=i):ka(e,n,l)}}function ka(e){for(;F!==null;){var n=F;if((n.flags&8772)!==0){var l=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Be||No(5,n);break;case 1:var u=n.stateNode;if(n.flags&4&&!Be)if(l===null)u.componentDidMount();else{var o=n.elementType===n.type?l.memoizedProps:Sn(n.type,l.memoizedProps);u.componentDidUpdate(o,l.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var i=n.updateQueue;i!==null&&ra(n,i,u);break;case 3:var t=n.updateQueue;if(t!==null){if(l=null,n.child!==null)switch(n.child.tag){case 5:l=n.child.stateNode;break;case 1:l=n.child.stateNode}ra(n,t,l)}break;case 5:var s=n.stateNode;if(l===null&&n.flags&4){l=s;var f=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":f.autoFocus&&l.focus();break;case"img":f.src&&(l.src=f.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var v=n.alternate;if(v!==null){var g=v.memoizedState;if(g!==null){var S=g.dehydrated;S!==null&&jl(S)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}Be||n.flags&512&&nt(n)}catch(k){we(n,n.return,k)}}if(n===e){F=null;break}if(l=n.sibling,l!==null){l.return=n.return,F=l;break}F=n.return}}function Sa(e){for(;F!==null;){var n=F;if(n===e){F=null;break}var l=n.sibling;if(l!==null){l.return=n.return,F=l;break}F=n.return}}function wa(e){for(;F!==null;){var n=F;try{switch(n.tag){case 0:case 11:case 15:var l=n.return;try{No(4,n)}catch(f){we(n,l,f)}break;case 1:var u=n.stateNode;if(typeof u.componentDidMount==="function"){var o=n.return;try{u.componentDidMount()}catch(f){we(n,o,f)}}var i=n.return;try{nt(n)}catch(f){we(n,i,f)}break;case 5:var t=n.return;try{nt(n)}catch(f){we(n,t,f)}}}catch(f){we(n,n.return,f)}if(n===e){F=null;break}var s=n.sibling;if(s!==null){s.return=n.return,F=s;break}F=n.return}}function Je(){return(q&6)!==0?Ee():Hu!==-1?Hu:Hu=Ee()}function rr(e){if((e.mode&1)===0)return 1;if((q&2)!==0&&Oe!==0)return Oe&-Oe;if(Rv.transition!==null)return Ku===0&&(Ku=Wa()),Ku;if(e=b,e!==0)return e;return e=window.event,e=e===void 0?16:rf(e.type),e}function Nn(e,n,l,u){if(50<Dl)throw Dl=0,ot=null,Error(C(185));if(cl(e,l,u),(q&2)===0||e!==Ie)e===Ie&&((q&2)===0&&(_o|=l),Pe===4&&Jn(e,Oe)),en(e,u),l===1&&q===0&&(n.mode&1)===0&&(el=Ee()+500,wo&&sr())}function en(e,n){var l=e.callbackNode;j0(e,n);var u=qu(e,e===Ie?Oe:0);if(u===0)l!==null&&Fs(l),e.callbackNode=null,e.callbackPriority=0;else if(n=u&-u,e.callbackPriority!==n){if(l!=null&&Fs(l),n===1)e.tag===0?Qv(Ea.bind(null,e)):Cf(Ea.bind(null,e)),Lv(function(){(q&6)===0&&sr()}),l=null;else{switch(Ga(u)){case 1:l=yt;break;case 4:l=Ja;break;case 16:l=Ju;break;case 536870912:l=qa;break;default:l=Ju}l=wd(l,vd.bind(null,e))}e.callbackPriority=n,e.callbackNode=l}}function vd(e,n){if(Hu=-1,Ku=0,(q&6)!==0)throw Error(C(327));var l=e.callbackNode;if(Jr()&&e.callbackNode!==l)return null;var u=qu(e,e===Ie?Oe:0);if(u===0)return null;if((u&30)!==0||(u&e.expiredLanes)!==0||n)n=vo(e,u);else{n=u;var o=q;q|=2;var i=yd();if(Ie!==e||Oe!==n)Un=null,el=Ee()+500,gr(e,n);do try{u1();break}catch(s){hd(e,s)}while(1);It(),ao.current=i,q=o,Ne!==null?n=0:(Ie=null,Oe=0,n=Pe)}if(n!==0){if(n===2&&(o=Fi(e),o!==0&&(u=o,n=it(e,o))),n===1)throw l=bl,gr(e,0),Jn(e,u),en(e,Ee()),l;if(n===6)Jn(e,u);else{if(o=e.current.alternate,(u&30)===0&&!r1(o)&&(n=vo(e,u),n===2&&(i=Fi(e),i!==0&&(u=i,n=it(e,i))),n===1))throw l=bl,gr(e,0),Jn(e,u),en(e,Ee()),l;switch(e.finishedWork=o,e.finishedLanes=u,n){case 0:case 1:throw Error(C(345));case 2:vr(e,Ge,Un);break;case 3:if(Jn(e,u),(u&130023424)===u&&(n=At+500-Ee(),10<n)){if(qu(e,0)!==0)break;if(o=e.suspendedLanes,(o&u)!==u){Je(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ji(vr.bind(null,e,Ge,Un),n);break}vr(e,Ge,Un);break;case 4:if(Jn(e,u),(u&4194240)===u)break;n=e.eventTimes;for(o=-1;0<u;){var t=31-Cn(u);i=1<<t,t=n[t],t>o&&(o=t),u&=~i}if(u=o,u=Ee()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3000>u?3000:4320>u?4320:1960*n1(u/1960))-u,10<u){e.timeoutHandle=ji(vr.bind(null,e,Ge,Un),u);break}vr(e,Ge,Un);break;case 5:vr(e,Ge,Un);break;default:throw Error(C(329))}}}return en(e,Ee()),e.callbackNode===l?vd.bind(null,e):null}function it(e,n){var l=Ll;return e.current.memoizedState.isDehydrated&&(gr(e,n).flags|=256),e=vo(e,n),e!==2&&(n=Ge,Ge=l,n!==null&&tt(n)),e}function tt(e){Ge===null?Ge=e:Ge.push.apply(Ge,e)}function r1(e){for(var n=e;;){if(n.flags&16384){var l=n.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var u=0;u<l.length;u++){var o=l[u],i=o.getSnapshot;o=o.value;try{if(!_n(i(),o))return!1}catch(t){return!1}}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Jn(e,n){n&=~Kt,n&=~_o,e.suspendedLanes|=n,e.pingedLanes&=~n;for(e=e.expirationTimes;0<n;){var l=31-Cn(n),u=1<<l;e[l]=-1,n&=~u}}function Ea(e){if((q&6)!==0)throw Error(C(327));Jr();var n=qu(e,0);if((n&1)===0)return en(e,Ee()),null;var l=vo(e,n);if(e.tag!==0&&l===2){var u=Fi(e);u!==0&&(n=u,l=it(e,u))}if(l===1)throw l=bl,gr(e,0),Jn(e,n),en(e,Ee()),l;if(l===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,vr(e,Ge,Un),en(e,Ee()),null}function Yt(e,n){var l=q;q|=1;try{return e(n)}finally{q=l,q===0&&(el=Ee()+500,wo&&sr())}}function Nr(e){Wn!==null&&Wn.tag===0&&(q&6)===0&&Jr();var n=q;q|=1;var l=pn.transition,u=b;try{if(pn.transition=null,b=1,e)return e()}finally{b=u,pn.transition=l,q=n,(q&6)===0&&sr()}}function Xt(){nn=Hr.current,te(Hr)}function gr(e,n){e.finishedWork=null,e.finishedLanes=0;var l=e.timeoutHandle;if(l!==-1&&(e.timeoutHandle=-1,Ov(l)),Ne!==null)for(l=Ne.return;l!==null;){var u=l;switch(Pt(u),u.tag){case 1:u=u.type.childContextTypes,u!==null&&u!==void 0&&xu();break;case 3:cr(),te(ce),te(je),Dt();break;case 5:Lt(u);break;case 4:cr();break;case 13:te(ye);break;case 19:te(ye);break;case 10:Mt(u.type._context);break;case 22:case 23:Xt()}l=l.return}if(Ie=e,Ne=e=lr(e.current,null),Oe=nn=n,Pe=0,bl=null,Kt=_o=Cr=0,Ge=Ll=null,yr!==null){for(n=0;n<yr.length;n++)if(l=yr[n],u=l.interleaved,u!==null){l.interleaved=null;var o=u.next,i=l.pending;if(i!==null){var t=i.next;i.next=o,u.next=t}l.pending=u}yr=null}return e}function hd(e,n){do{var l=Ne;try{if(It(),Ru.current=so,to){for(var u=me.memoizedState;u!==null;){var o=u.queue;o!==null&&(o.pending=null),u=u.next}to=!1}if(Er=0,Te=_e=me=null,Ul=!1,ql=0,Ht.current=null,l===null||l.return===null){Pe=1,bl=n,Ne=null;break}e:{var i=e,t=l.return,s=l,f=n;if(n=Oe,s.flags|=32768,f!==null&&typeof f==="object"&&typeof f.then==="function"){var v=f,g=s,S=g.tag;if((g.mode&1)===0&&(S===0||S===11||S===15)){var k=g.alternate;k?(g.updateQueue=k.updateQueue,g.memoizedState=k.memoizedState,g.lanes=k.lanes):(g.updateQueue=null,g.memoizedState=null)}var P=sa(t);if(P!==null){P.flags&=-257,aa(P,t,s,i,n),P.mode&1&&ta(i,v,n),n=P,f=v;var z=n.updateQueue;if(z===null){var I=new Set;I.add(f),n.updateQueue=I}else z.add(f);break e}else{if((n&1)===0){ta(i,v,n),Zt();break e}f=Error(C(426))}}else if(ae&&s.mode&1){var J=sa(t);if(J!==null){(J.flags&65536)===0&&(J.flags|=256),aa(J,t,s,i,n),zt(xr(f,s));break e}}i=f=xr(f,s),Pe!==4&&(Pe=2),Ll===null?Ll=[i]:Ll.push(i),i=t;do{switch(i.tag){case 3:i.flags|=65536,n&=-n,i.lanes|=n;var h=bf(i,f,n);na(i,h);break e;case 1:s=f;var{type:p,stateNode:y}=i;if((i.flags&128)===0&&(typeof p.getDerivedStateFromError==="function"||y!==null&&typeof y.componentDidCatch==="function"&&(nr===null||!nr.has(y)))){i.flags|=65536,n&=-n,i.lanes|=n;var E=cf(i,s,n);na(i,E);break e}}i=i.return}while(i!==null)}gd(l)}catch(O){n=O,Ne===l&&l!==null&&(Ne=l=l.return);continue}break}while(1)}function yd(){var e=ao.current;return ao.current=so,e===null?so:e}function Zt(){if(Pe===0||Pe===3||Pe===2)Pe=4;Ie===null||(Cr&268435455)===0&&(_o&268435455)===0||Jn(Ie,Oe)}function vo(e,n){var l=q;q|=2;var u=yd();if(Ie!==e||Oe!==n)Un=null,gr(e,n);do try{l1();break}catch(o){hd(e,o)}while(1);if(It(),q=l,ao.current=u,Ne!==null)throw Error(C(261));return Ie=null,Oe=0,Pe}function l1(){for(;Ne!==null;)md(Ne)}function u1(){for(;Ne!==null&&!U0();)md(Ne)}function md(e){var n=Sd(e.alternate,e,nn);e.memoizedProps=e.pendingProps,n===null?gd(e):Ne=n,Ht.current=null}function gd(e){var n=e;do{var l=n.alternate;if(e=n.return,(n.flags&32768)===0){if(l=Gv(l,n,nn),l!==null){Ne=l;return}}else{if(l=bv(l,n),l!==null){l.flags&=32767,Ne=l;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Pe=6,Ne=null;return}}if(n=n.sibling,n!==null){Ne=n;return}Ne=n=e}while(n!==null);Pe===0&&(Pe=5)}function vr(e,n,l){var u=b,o=pn.transition;try{pn.transition=null,b=1,o1(e,n,l,u)}finally{pn.transition=o,b=u}return null}function o1(e,n,l,u){do Jr();while(Wn!==null);if((q&6)!==0)throw Error(C(327));l=e.finishedWork;var o=e.finishedLanes;if(l===null)return null;if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var i=l.lanes|l.childLanes;if(H0(e,i),e===Ie&&(Ne=Ie=null,Oe=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Ou||(Ou=!0,wd(Ju,function(){return Jr(),null})),i=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||i){i=pn.transition,pn.transition=null;var t=b;b=1;var s=q;q|=4,Ht.current=null,xv(e,l),dd(l,e),Tv(Ri),Wu=!!Qi,Ri=Qi=null,e.current=l,e1(l,e,o),O0(),q=s,b=t,pn.transition=i}else e.current=l;if(Ou&&(Ou=!1,Wn=e,po=o),i=e.pendingLanes,i===0&&(nr=null),V0(l.stateNode,u),en(e,Ee()),n!==null)for(u=e.onRecoverableError,l=0;l<n.length;l++)o=n[l],u(o.value,{componentStack:o.stack,digest:o.digest});if(fo)throw fo=!1,e=ut,ut=null,e;return(po&1)!==0&&e.tag!==0&&Jr(),i=e.pendingLanes,(i&1)!==0?e===ot?Dl++:(Dl=0,ot=e):Dl=0,sr(),null}function Jr(){if(Wn!==null){var e=Ga(po),n=pn.transition,l=b;try{if(pn.transition=null,b=16>e?16:e,Wn===null)var u=!1;else{if(e=Wn,Wn=null,po=0,(q&6)!==0)throw Error(C(331));var o=q;q|=4;for(F=e.current;F!==null;){var i=F,t=i.child;if((F.flags&16)!==0){var s=i.deletions;if(s!==null){for(var f=0;f<s.length;f++){var v=s[f];for(F=v;F!==null;){var g=F;switch(g.tag){case 0:case 11:case 15:Ol(8,g,i)}var S=g.child;if(S!==null)S.return=g,F=S;else for(;F!==null;){g=F;var{sibling:k,return:P}=g;if(sd(g),g===v){F=null;break}if(k!==null){k.return=P,F=k;break}F=P}}}var z=i.alternate;if(z!==null){var I=z.child;if(I!==null){z.child=null;do{var J=I.sibling;I.sibling=null,I=J}while(I!==null)}}F=i}}if((i.subtreeFlags&2064)!==0&&t!==null)t.return=i,F=t;else e:for(;F!==null;){if(i=F,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Ol(9,i,i.return)}var h=i.sibling;if(h!==null){h.return=i.return,F=h;break e}F=i.return}}var p=e.current;for(F=p;F!==null;){t=F;var y=t.child;if((t.subtreeFlags&2064)!==0&&y!==null)y.return=t,F=y;else e:for(t=p;F!==null;){if(s=F,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:No(9,s)}}catch(O){we(s,s.return,O)}if(s===t){F=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,F=E;break e}F=s.return}}if(q=o,sr(),Mn&&typeof Mn.onPostCommitFiberRoot==="function")try{Mn.onPostCommitFiberRoot(yo,e)}catch(O){}u=!0}return u}finally{b=l,pn.transition=n}}return!1}function Ca(e,n,l){n=xr(l,n),n=bf(e,n,1),e=er(e,n,1),n=Je(),e!==null&&(cl(e,1,n),en(e,n))}function we(e,n,l){if(e.tag===3)Ca(e,e,l);else for(;n!==null;){if(n.tag===3){Ca(n,e,l);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError==="function"||typeof u.componentDidCatch==="function"&&(nr===null||!nr.has(u))){e=xr(l,e),e=cf(n,e,1),n=er(n,e,1),e=Je(),n!==null&&(cl(n,1,e),en(n,e));break}}n=n.return}}function i1(e,n,l){var u=e.pingCache;u!==null&&u.delete(n),n=Je(),e.pingedLanes|=e.suspendedLanes&l,Ie===e&&(Oe&l)===l&&(Pe===4||Pe===3&&(Oe&130023424)===Oe&&500>Ee()-At?gr(e,0):Kt|=l),en(e,n)}function kd(e,n){n===0&&((e.mode&1)===0?n=1:(n=Cu,Cu<<=1,(Cu&130023424)===0&&(Cu=4194304)));var l=Je();e=Rn(e,n),e!==null&&(cl(e,n,l),en(e,l))}function t1(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),kd(e,l)}function s1(e,n){var l=0;switch(e.tag){case 13:var{stateNode:u,memoizedState:o}=e;o!==null&&(l=o.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(C(314))}u!==null&&u.delete(n),kd(e,l)}function wd(e,n){return Za(e,n)}function a1(e,n,l,u){this.tag=e,this.key=l,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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dn(e,n,l,u){return new a1(e,n,l,u)}function Jt(e){return e=e.prototype,!(!e||!e.isReactComponent)}function f1(e){if(typeof e==="function")return Jt(e)?1:0;if(e!==void 0&&e!==null){if(e=e.$$typeof,e===pt)return 11;if(e===vt)return 14}return 2}function lr(e,n){var l=e.alternate;return l===null?(l=dn(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function Au(e,n,l,u,o,i){var t=2;if(u=e,typeof e==="function")Jt(e)&&(t=1);else if(typeof e==="string")t=5;else e:switch(e){case Ur:return kr(l.children,o,i,n);case dt:t=8,o|=8;break;case yi:return e=dn(12,l,n,o|2),e.elementType=yi,e.lanes=i,e;case mi:return e=dn(13,l,n,o),e.elementType=mi,e.lanes=i,e;case gi:return e=dn(19,l,n,o),e.elementType=gi,e.lanes=i,e;case Ma:return Po(l,o,i,n);default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Ta:t=10;break e;case Ia:t=9;break e;case pt:t=11;break e;case vt:t=14;break e;case Yn:t=16,u=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return n=dn(t,l,n,o),n.elementType=e,n.type=u,n.lanes=i,n}function kr(e,n,l,u){return e=dn(7,e,u,n),e.lanes=l,e}function Po(e,n,l,u){return e=dn(22,e,u,n),e.elementType=Ma,e.lanes=l,e.stateNode={isHidden:!1},e}function pi(e,n,l){return e=dn(6,e,null,n),e.lanes=l,e}function vi(e,n,l){return n=dn(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function d1(e,n,l,u,o){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=bo(0),this.expirationTimes=bo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bo(0),this.identifierPrefix=u,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qt(e,n,l,u,o,i,t,s,f){return e=new d1(e,n,l,s,f),n===1?(n=1,i===!0&&(n|=8)):n=0,i=dn(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:u,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ut(i),e}function p1(e,n,l){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fr,key:u==null?null:""+u,children:e,containerInfo:n,implementation:l}}function Ed(e){if(!e)return or;e=e._reactInternals;e:{if(Pr(e)!==e||e.tag!==1)throw Error(C(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(xe(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(C(171))}if(e.tag===1){var l=e.type;if(xe(l))return Ef(e,l,n)}return n}function Cd(e,n,l,u,o,i,t,s,f){return e=qt(l,u,!0,e,o,i,t,s,f),e.context=Ed(null),l=e.current,u=Je(),o=rr(l),i=Vn(u,o),i.callback=n!==void 0&&n!==null?n:null,er(l,i,o),e.current.lanes=o,cl(e,o,u),en(e,u),e}function zo(e,n,l,u){var o=n.current,i=Je(),t=rr(o);return l=Ed(l),n.context===null?n.context=l:n.pendingContext=l,n=Vn(i,t),n.payload={element:e},u=u===void 0?null:u,u!==null&&(n.callback=u),e=er(o,n,t),e!==null&&(Nn(e,o,t,i),Qu(e,o,t)),t}function ho(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Na(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Wt(e,n){Na(e,n),(e=e.alternate)&&Na(e,n)}function v1(){return null}function Gt(e){this._internalRoot=e}function To(e){this._internalRoot=e}function bt(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Io(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function _a(){}function h1(e,n,l,u,o){if(o){if(typeof u==="function"){var i=u;u=function(){var v=ho(t);i.call(v)}}var t=Cd(n,u,e,0,null,!1,!1,"",_a);return e._reactRootContainer=t,e[Qn]=t.current,Al(e.nodeType===8?e.parentNode:e),Nr(),t}for(;o=e.lastChild;)e.removeChild(o);if(typeof u==="function"){var s=u;u=function(){var v=ho(f);s.call(v)}}var f=qt(e,0,!1,null,null,!1,!1,"",_a);return e._reactRootContainer=f,e[Qn]=f.current,Al(e.nodeType===8?e.parentNode:e),Nr(function(){zo(n,f,l,u)}),f}function Mo(e,n,l,u,o){var i=l._reactRootContainer;if(i){var t=i;if(typeof o==="function"){var s=o;o=function(){var f=ho(t);s.call(f)}}zo(n,t,e,o)}else t=h1(l,n,e,o,u);return ho(t)}var Pa,fe,za,Vl,$n,hi,g0,Es,Cs,Le,st,jn,ku,Fr,Ur,dt,yi,Ta,Ia,pt,mi,gi,vt,Yn,Ma,Ns,ge,Jo,qo=!1,Sl,wu,Va,zl,_0,P0,zi=null,Ti=null,Ar=null,Yr=null,Go=!1,Ii=!1,dr,Tl=!1,Xu=null,Zu=!1,Mi=null,T0,Za,Fs,U0,O0,Ee,L0,yt,Ja,Ju,D0,qa,yo=null,Mn=null,Cn,$0,Q0,Eu=64,Cu=4194304,b=0,ba,gt,ca,xa,ef,Ui=!1,Nu,Gn=null,bn=null,cn=null,Rl,Bl,Zn,K0,Xr,Wu=!0,Gu=null,qn=null,St=null,Du=null,nl,wt,xl,J0,co,xo,hl,mo,Ds,q0,W0,G0,ei,b0,c0,x0,ev,nv,Vs,rv,lv,uv,iv,tv,sv,$s,av,fv,dv,pv,vv,hv,yv,Ct,Il=null,mv,uf,Qs,Rs=!1,Or=!1,Sv,Ml=null,Hl=null,af=!1,El,Cl,$u,_n,Iv,Lr=null,Li=null,Fl=null,Di=!1,Dr,ni,vf,hf,yf,mf,gf,kf,Ys,_l,Vi,$i,Nl,Pl,Mv,zu,Fv,Uv,Qi=null,Ri=null,ji,Ov,qs,Lv,rl,In,Xl,Qn,Hi,Vv,$v,Ki,$r=-1,or,je,ce,Sr,On=null,wo=!1,oi=!1,Qr,Rr=0,no=null,ro=0,an,fn=0,wr=null,Ln=1,Dn="",ln=null,rn=null,ae=!1,En=null,Rv,br,Tf,lo,uo=null,Br=null,Tt=null,yr=null,Xn=!1,nu,Fn,Zl,Jl,ye,ii,Ru,ti,Er=0,me=null,_e=null,Te=null,to=!1,Ul=!1,ql=0,Bv=0,so,Av,Yv,Xv,Co,Zv,Jv,be=!1,bi,od,xi,id,td,Uu=!1,Be=!1,cv,F=null,ya=!1,Ue=null,wn=!1,n1,ao,Ht,pn,q=0,Ie=null,Ne=null,Oe=0,nn=0,Hr,Pe=0,bl=null,Cr=0,_o=0,Kt=0,Ll=null,Ge=null,At=0,el=1/0,Un=null,fo=!1,ut=null,nr=null,Ou=!1,Wn=null,po=0,Dl=0,ot=null,Hu=-1,Ku=0,Sd,Nd,y1,gl,m1,Mr,_d,Pd=function(e,n){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bt(n))throw Error(C(200));return p1(e,n,null,l)},zd=function(e,n){if(!bt(e))throw Error(C(299));var l=!1,u="",o=Nd;return n!==null&&n!==void 0&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),n=qt(e,1,!1,null,null,l,!1,u,o),e[Qn]=n.current,Al(e.nodeType===8?e.parentNode:e),new Gt(n)},Td=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0){if(typeof e.render==="function")throw Error(C(188));throw e=Object.keys(e).join(","),Error(C(268,e))}return e=Ya(n),e=e===null?null:e.stateNode,e},Id=function(e){return Nr(e)},Md=function(e,n,l){if(!Io(n))throw Error(C(200));return Mo(null,e,n,!0,l)},Fd=function(e,n,l){if(!bt(e))throw Error(C(405));var u=l!=null&&l.hydratedSources||null,o=!1,i="",t=Nd;if(l!==null&&l!==void 0&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onRecoverableError!==void 0&&(t=l.onRecoverableError)),n=Cd(n,null,e,1,l!=null?l:null,o,!1,i,t),e[Qn]=n.current,Al(e),u)for(e=0;e<u.length;e++)l=u[e],o=l._getVersion,o=o(l._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[l,o]:n.mutableSourceEagerHydrationData.push(l,o);return new To(n)},Ud=function(e,n,l){if(!Io(n))throw Error(C(200));return Mo(null,e,n,!1,l)},Od=function(e){if(!Io(e))throw Error(C(40));return e._reactRootContainer?(Nr(function(){Mo(null,null,e,!1,function(){e._reactRootContainer=null,e[Qn]=null})}),!0):!1},Ld,Dd=function(e,n,l,u){if(!Io(l))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Mo(e,n,l,!1,u)},Vd="18.3.1-next-f1338f8080-20240426";var $d=cd(()=>{Pa=ar(tl(),1),fe=ar(ws(),1);za=new Set,Vl={};$n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hi=Object.prototype.hasOwnProperty,g0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Es={},Cs={};Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Le[n]=new qe(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new qe(e,5,!1,e.toLowerCase(),null,!1,!1)});st=/[\-:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(st,at);Le[n]=new qe(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(st,at);Le[n]=new qe(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(st,at);Le[n]=new qe(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new qe(e,1,!1,e.toLowerCase(),null,!0,!0)});jn=Pa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ku=Symbol.for("react.element"),Fr=Symbol.for("react.portal"),Ur=Symbol.for("react.fragment"),dt=Symbol.for("react.strict_mode"),yi=Symbol.for("react.profiler"),Ta=Symbol.for("react.provider"),Ia=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),mi=Symbol.for("react.suspense"),gi=Symbol.for("react.suspense_list"),vt=Symbol.for("react.memo"),Yn=Symbol.for("react.lazy"),Ma=Symbol.for("react.offscreen"),Ns=Symbol.iterator;ge=Object.assign;Sl=Array.isArray;Va=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,l,u,o){MSApp.execUnsafeLocalFunction(function(){return e(n,l,u,o)})}:e}(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{wu=wu||document.createElement("div"),wu.innerHTML="<svg>"+n.valueOf().toString()+"</svg>";for(n=wu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});zl={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},_0=["Webkit","ms","Moz","O"];Object.keys(zl).forEach(function(e){_0.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),zl[n]=zl[e]})});P0=ge({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});if($n)try{dr={},Object.defineProperty(dr,"passive",{get:function(){Ii=!0}}),window.addEventListener("test",dr,dr),window.removeEventListener("test",dr,dr)}catch(e){Ii=!1}T0={onError:function(e){Tl=!0,Xu=e}};Za=fe.unstable_scheduleCallback,Fs=fe.unstable_cancelCallback,U0=fe.unstable_shouldYield,O0=fe.unstable_requestPaint,Ee=fe.unstable_now,L0=fe.unstable_getCurrentPriorityLevel,yt=fe.unstable_ImmediatePriority,Ja=fe.unstable_UserBlockingPriority,Ju=fe.unstable_NormalPriority,D0=fe.unstable_LowPriority,qa=fe.unstable_IdlePriority;Cn=Math.clz32?Math.clz32:R0,$0=Math.log,Q0=Math.LN2;Nu=[],Rl=new Map,Bl=new Map,Zn=[],K0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");Xr=jn.ReactCurrentBatchConfig;nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wt=un(nl),xl=ge({},nl,{view:0,detail:0}),J0=un(xl),mo=ge({},xl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Et,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;return e!==hl&&(hl&&e.type==="mousemove"?(co=e.screenX-hl.screenX,xo=e.screenY-hl.screenY):xo=co=0,hl=e),co},movementY:function(e){return"movementY"in e?e.movementY:xo}}),Ds=un(mo),q0=ge({},mo,{dataTransfer:0}),W0=un(q0),G0=ge({},xl,{relatedTarget:0}),ei=un(G0),b0=ge({},nl,{animationName:0,elapsedTime:0,pseudoElement:0}),c0=un(b0),x0=ge({},nl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ev=un(x0),nv=ge({},nl,{data:0}),Vs=un(nv),rv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},uv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};iv=ge({},xl,{key:function(e){if(e.key){var n=rv[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Vu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Et,charCode:function(e){return e.type==="keypress"?Vu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tv=un(iv),sv=ge({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$s=un(sv),av=ge({},xl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Et}),fv=un(av),dv=ge({},nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),pv=un(dv),vv=ge({},mo,{deltaX:function(e){return"deltaX"in e?e.deltaX:("wheelDeltaX"in e)?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:("wheelDeltaY"in e)?-e.wheelDeltaY:("wheelDelta"in e)?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),hv=un(vv),yv=[9,13,27,32],Ct=$n&&"CompositionEvent"in window;$n&&"documentMode"in document&&(Il=document.documentMode);mv=$n&&"TextEvent"in window&&!Il,uf=$n&&(!Ct||Il&&8<Il&&11>=Il),Qs=String.fromCharCode(32);Sv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};if($n){if($n){if(Cl="oninput"in document,!Cl)$u=document.createElement("div"),$u.setAttribute("oninput","return;"),Cl=typeof $u.oninput==="function";El=Cl}else El=!1;af=El&&(!document.documentMode||9<document.documentMode)}_n=typeof Object.is==="function"?Object.is:zv;Iv=$n&&"documentMode"in document&&11>=document.documentMode;Dr={animationend:Pu("Animation","AnimationEnd"),animationiteration:Pu("Animation","AnimationIteration"),animationstart:Pu("Animation","AnimationStart"),transitionend:Pu("Transition","TransitionEnd")},ni={},vf={};$n&&(vf=document.createElement("div").style,("AnimationEvent"in window)||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),("TransitionEvent"in window)||delete Dr.transitionend.transition);hf=ko("animationend"),yf=ko("animationiteration"),mf=ko("animationstart"),gf=ko("transitionend"),kf=new Map,Ys="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");for(Nl=0;Nl<Ys.length;Nl++)_l=Ys[Nl],Vi=_l.toLowerCase(),$i=_l[0].toUpperCase()+_l.slice(1),ir(Vi,"on"+$i);ir(hf,"onAnimationEnd");ir(yf,"onAnimationIteration");ir(mf,"onAnimationStart");ir("dblclick","onDoubleClick");ir("focusin","onFocus");ir("focusout","onBlur");ir(gf,"onTransitionEnd");qr("onMouseEnter",["mouseout","mouseover"]);qr("onMouseLeave",["mouseout","mouseover"]);qr("onPointerEnter",["pointerout","pointerover"]);qr("onPointerLeave",["pointerout","pointerover"]);_r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_r("onBeforeInput",["compositionend","keypress","textInput","paste"]);_r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));Pl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pl));zu="_reactListening"+Math.random().toString(36).slice(2);Fv=/\r\n?/g,Uv=/\u0000|\uFFFD/g;ji=typeof setTimeout==="function"?setTimeout:void 0,Ov=typeof clearTimeout==="function"?clearTimeout:void 0,qs=typeof Promise==="function"?Promise:void 0,Lv=typeof queueMicrotask==="function"?queueMicrotask:typeof qs<"u"?function(e){return qs.resolve(null).then(e).catch(Dv)}:ji;rl=Math.random().toString(36).slice(2),In="__reactFiber$"+rl,Xl="__reactProps$"+rl,Qn="__reactContainer$"+rl,Hi="__reactEvents$"+rl,Vv="__reactListeners$"+rl,$v="__reactHandles$"+rl;Ki=[];or={},je=tr(or),ce=tr(!1),Sr=or;Qr=[],an=[];Rv=jn.ReactCurrentBatchConfig;br=zf(!0),Tf=zf(!1),lo=tr(null);nu={},Fn=tr(nu),Zl=tr(nu),Jl=tr(nu);ye=tr(0);ii=[];Ru=jn.ReactCurrentDispatcher,ti=jn.ReactCurrentBatchConfig;so={readContext:vn,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},Av={readContext:vn,useCallback:function(e,n){return Tn().memoizedState=[e,n===void 0?null:n],e},useContext:vn,useEffect:ua,useImperativeHandle:function(e,n,l){return l=l!==null&&l!==void 0?l.concat([e]):null,Bu(4194308,4,Hf.bind(null,n,e),l)},useLayoutEffect:function(e,n){return Bu(4194308,4,e,n)},useInsertionEffect:function(e,n){return Bu(4,2,e,n)},useMemo:function(e,n){var l=Tn();return n=n===void 0?null:n,e=e(),l.memoizedState=[e,n],e},useReducer:function(e,n,l){var u=Tn();return n=l!==void 0?l(n):n,u.memoizedState=u.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},u.queue=e,e=e.dispatch=Hv.bind(null,me,e),[u.memoizedState,e]},useRef:function(e){var n=Tn();return e={current:e},n.memoizedState=e},useState:la,useDebugValue:Bt,useDeferredValue:function(e){return Tn().memoizedState=e},useTransition:function(){var e=la(!1),n=e[0];return e=jv.bind(null,e[1]),Tn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,l){var u=me,o=Tn();if(ae){if(l===void 0)throw Error(C(407));l=l()}else{if(l=n(),Ie===null)throw Error(C(349));(Er&30)!==0||Lf(u,n,l)}o.memoizedState=l;var i={value:l,getSnapshot:n};return o.queue=i,ua(Vf.bind(null,u,i,e),[e]),u.flags|=2048,Gl(9,Df.bind(null,u,i,l,n),void 0,null),l},useId:function(){var e=Tn(),n=Ie.identifierPrefix;if(ae){var l=Dn,u=Ln;l=(u&~(1<<32-Cn(u)-1)).toString(32)+l,n=":"+n+"R"+l,l=ql++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=Bv++,n=":"+n+"r"+l.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Yv={readContext:vn,useCallback:Af,useContext:vn,useEffect:Rt,useImperativeHandle:Kf,useInsertionEffect:Bf,useLayoutEffect:jf,useMemo:Yf,useReducer:si,useRef:Rf,useState:function(){return si(Wl)},useDebugValue:Bt,useDeferredValue:function(e){var n=hn();return Xf(n,_e.memoizedState,e)},useTransition:function(){var e=si(Wl)[0],n=hn().memoizedState;return[e,n]},useMutableSource:Uf,useSyncExternalStore:Of,useId:Zf,unstable_isNewReconciler:!1},Xv={readContext:vn,useCallback:Af,useContext:vn,useEffect:Rt,useImperativeHandle:Kf,useInsertionEffect:Bf,useLayoutEffect:jf,useMemo:Yf,useReducer:ai,useRef:Rf,useState:function(){return ai(Wl)},useDebugValue:Bt,useDeferredValue:function(e){var n=hn();return _e===null?n.memoizedState=e:Xf(n,_e.memoizedState,e)},useTransition:function(){var e=ai(Wl)[0],n=hn().memoizedState;return[e,n]},useMutableSource:Uf,useSyncExternalStore:Of,useId:Zf,unstable_isNewReconciler:!1};Co={isMounted:function(e){return(e=e._reactInternals)?Pr(e)===e:!1},enqueueSetState:function(e,n,l){e=e._reactInternals;var u=Je(),o=rr(e),i=Vn(u,o);i.payload=n,l!==void 0&&l!==null&&(i.callback=l),n=er(e,i,o),n!==null&&(Nn(n,e,o,u),Qu(n,e,o))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var u=Je(),o=rr(e),i=Vn(u,o);i.tag=1,i.payload=n,l!==void 0&&l!==null&&(i.callback=l),n=er(e,i,o),n!==null&&(Nn(n,e,o,u),Qu(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=Je(),u=rr(e),o=Vn(l,u);o.tag=2,n!==void 0&&n!==null&&(o.callback=n),n=er(e,o,u),n!==null&&(Nn(n,e,u,l),Qu(n,e,u))}};Zv=typeof WeakMap==="function"?WeakMap:Map;Jv=jn.ReactCurrentOwner;bi={dehydrated:null,treeContext:null,retryLane:0};od=function(e,n){for(var l=n.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}};xi=function(){};id=function(e,n,l,u){var o=e.memoizedProps;if(o!==u){e=n.stateNode,mr(Fn.current);var i=null;switch(l){case"input":o=Si(e,o),u=Si(e,u),i=[];break;case"select":o=ge({},o,{value:void 0}),u=ge({},u,{value:void 0}),i=[];break;case"textarea":o=Ci(e,o),u=Ci(e,u),i=[];break;default:typeof o.onClick!=="function"&&typeof u.onClick==="function"&&(e.onclick=cu)}_i(l,u);var t;l=null;for(v in o)if(!u.hasOwnProperty(v)&&o.hasOwnProperty(v)&&o[v]!=null)if(v==="style"){var s=o[v];for(t in s)s.hasOwnProperty(t)&&(l||(l={}),l[t]="")}else v!=="dangerouslySetInnerHTML"&&v!=="children"&&v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(Vl.hasOwnProperty(v)?i||(i=[]):(i=i||[]).push(v,null));for(v in u){var f=u[v];if(s=o!=null?o[v]:void 0,u.hasOwnProperty(v)&&f!==s&&(f!=null||s!=null))if(v==="style")if(s){for(t in s)!s.hasOwnProperty(t)||f&&f.hasOwnProperty(t)||(l||(l={}),l[t]="");for(t in f)f.hasOwnProperty(t)&&s[t]!==f[t]&&(l||(l={}),l[t]=f[t])}else l||(i||(i=[]),i.push(v,l)),l=f;else v==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,s=s?s.__html:void 0,f!=null&&s!==f&&(i=i||[]).push(v,f)):v==="children"?typeof f!=="string"&&typeof f!=="number"||(i=i||[]).push(v,""+f):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&(Vl.hasOwnProperty(v)?(f!=null&&v==="onScroll"&&ie("scroll",e),i||s===f||(i=[])):(i=i||[]).push(v,f))}l&&(i=i||[]).push("style",l);var v=i;if(n.updateQueue=v)n.flags|=4}};td=function(e,n,l,u){l!==u&&(n.flags|=4)};cv=typeof WeakSet==="function"?WeakSet:Set;n1=Math.ceil,ao=jn.ReactCurrentDispatcher,Ht=jn.ReactCurrentOwner,pn=jn.ReactCurrentBatchConfig,Hr=tr(0);Sd=function(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps||ce.current)be=!0;else{if((e.lanes&l)===0&&(n.flags&128)===0)return be=!1,Wv(e,n,l);be=(e.flags&131072)!==0?!0:!1}else be=!1,ae&&(n.flags&1048576)!==0&&Nf(n,ro,n.index);switch(n.lanes=0,n.tag){case 2:var u=n.type;ju(e,n),e=n.pendingProps;var o=Wr(n,je.current);Zr(n,l),o=$t(null,n,u,e,o,l);var i=Qt();return n.flags|=1,typeof o==="object"&&o!==null&&typeof o.render==="function"&&o.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,xe(u)?(i=!0,eo(n)):i=!1,n.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ut(n),o.updater=Co,n.stateNode=o,o._reactInternals=n,Ji(n,u,e,l),n=Gi(null,n,u,!0,i,l)):(n.tag=0,ae&&i&&_t(n),Ze(null,n,o,l),n=n.child),n;case 16:u=n.elementType;e:{switch(ju(e,n),e=n.pendingProps,o=u._init,u=o(u._payload),n.type=u,o=n.tag=f1(u),e=Sn(u,e),o){case 0:n=Wi(null,n,u,e,l);break e;case 1:n=pa(null,n,u,e,l);break e;case 11:n=fa(null,n,u,e,l);break e;case 14:n=da(null,n,u,Sn(u.type,e),l);break e}throw Error(C(306,u,""))}return n;case 0:return u=n.type,o=n.pendingProps,o=n.elementType===u?o:Sn(u,o),Wi(e,n,u,o,l);case 1:return u=n.type,o=n.pendingProps,o=n.elementType===u?o:Sn(u,o),pa(e,n,u,o,l);case 3:e:{if(rd(n),e===null)throw Error(C(387));u=n.pendingProps,i=n.memoizedState,o=i.element,Mf(e,n),oo(n,u,null,l);var t=n.memoizedState;if(u=t.element,i.isDehydrated)if(i={element:u,isDehydrated:!1,cache:t.cache,pendingSuspenseBoundaries:t.pendingSuspenseBoundaries,transitions:t.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){o=xr(Error(C(423)),n),n=va(e,n,u,l,o);break e}else if(u!==o){o=xr(Error(C(424)),n),n=va(e,n,u,l,o);break e}else for(rn=xn(n.stateNode.containerInfo.firstChild),ln=n,ae=!0,En=null,l=Tf(n,null,u,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Gr(),u===o){n=Bn(e,n,l);break e}Ze(e,n,u,l)}n=n.child}return n;case 5:return Ff(n),e===null&&Yi(n),u=n.type,o=n.pendingProps,i=e!==null?e.memoizedProps:null,t=o.children,Bi(u,o)?t=null:i!==null&&Bi(u,i)&&(n.flags|=32),nd(e,n),Ze(e,n,t,l),n.child;case 6:return e===null&&Yi(n),null;case 13:return ld(e,n,l);case 4:return Ot(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=br(n,null,u,l):Ze(e,n,u,l),n.child;case 11:return u=n.type,o=n.pendingProps,o=n.elementType===u?o:Sn(u,o),fa(e,n,u,o,l);case 7:return Ze(e,n,n.pendingProps,l),n.child;case 8:return Ze(e,n,n.pendingProps.children,l),n.child;case 12:return Ze(e,n,n.pendingProps.children,l),n.child;case 10:e:{if(u=n.type._context,o=n.pendingProps,i=n.memoizedProps,t=o.value,le(lo,u._currentValue),u._currentValue=t,i!==null)if(_n(i.value,t)){if(i.children===o.children&&!ce.current){n=Bn(e,n,l);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var s=i.dependencies;if(s!==null){t=i.child;for(var f=s.firstContext;f!==null;){if(f.context===u){if(i.tag===1){f=Vn(-1,l&-l),f.tag=2;var v=i.updateQueue;if(v!==null){v=v.shared;var g=v.pending;g===null?f.next=f:(f.next=g.next,g.next=f),v.pending=f}}i.lanes|=l,f=i.alternate,f!==null&&(f.lanes|=l),Xi(i.return,l,n),s.lanes|=l;break}f=f.next}}else if(i.tag===10)t=i.type===n.type?null:i.child;else if(i.tag===18){if(t=i.return,t===null)throw Error(C(341));t.lanes|=l,s=t.alternate,s!==null&&(s.lanes|=l),Xi(t,l,n),t=i.sibling}else t=i.child;if(t!==null)t.return=i;else for(t=i;t!==null;){if(t===n){t=null;break}if(i=t.sibling,i!==null){i.return=t.return,t=i;break}t=t.return}i=t}Ze(e,n,o.children,l),n=n.child}return n;case 9:return o=n.type,u=n.pendingProps.children,Zr(n,l),o=vn(o),u=u(o),n.flags|=1,Ze(e,n,u,l),n.child;case 14:return u=n.type,o=Sn(u,n.pendingProps),o=Sn(u.type,o),da(e,n,u,o,l);case 15:return xf(e,n,n.type,n.pendingProps,l);case 17:return u=n.type,o=n.pendingProps,o=n.elementType===u?o:Sn(u,o),ju(e,n),n.tag=1,xe(u)?(e=!0,eo(n)):e=!1,Zr(n,l),Gf(n,u,o),Ji(n,u,o,l),Gi(null,n,u,!0,e,l);case 19:return ud(e,n,l);case 22:return ed(e,n,l)}throw Error(C(156,n.tag))};Nd=typeof reportError==="function"?reportError:function(e){console.error(e)};To.prototype.render=Gt.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(C(409));zo(e,n,null,null)};To.prototype.unmount=Gt.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Nr(function(){zo(null,e,null,null)}),n[Qn]=null}};To.prototype.unstable_scheduleHydration=function(e){if(e){var n=xa();e={blockedOn:null,target:e,priority:n};for(var l=0;l<Zn.length&&n!==0&&n<Zn[l].priority;l++);Zn.splice(l,0,e),l===0&&nf(e)}};ba=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var l=wl(n.pendingLanes);l!==0&&(mt(n,l|1),en(n,Ee()),(q&6)===0&&(el=Ee()+500,sr()))}break;case 13:Nr(function(){var u=Rn(e,1);if(u!==null){var o=Je();Nn(u,e,1,o)}}),Wt(e,1)}};gt=function(e){if(e.tag===13){var n=Rn(e,134217728);if(n!==null){var l=Je();Nn(n,e,134217728,l)}Wt(e,134217728)}};ca=function(e){if(e.tag===13){var n=rr(e),l=Rn(e,n);if(l!==null){var u=Je();Nn(l,e,n,u)}Wt(e,n)}};xa=function(){return b};ef=function(e,n){var l=b;try{return b=e,n()}finally{b=l}};Ti=function(e,n,l){switch(n){case"input":if(wi(e,l),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;l=l.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]');for(n=0;n<l.length;n++){var u=l[n];if(u!==e&&u.form===e.form){var o=So(u);if(!o)throw Error(C(90));Ua(u),wi(u,o)}}}break;case"textarea":La(e,l);break;case"select":n=l.value,n!=null&&Kr(e,!!l.multiple,n,!1)}};ja=Yt;Ha=Nr;y1={usingClientEntryPoint:!1,Events:[eu,Vr,So,Ra,Ba,Yt]},gl={findFiberByHostInstance:hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},m1={bundleType:gl.bundleType,version:gl.version,rendererPackageName:gl.rendererPackageName,rendererConfig:gl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:jn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ya(e),e===null?null:e.stateNode},findFiberByHostInstance:gl.findFiberByHostInstance||v1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(Mr=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Mr.isDisabled&&Mr.supportsFiber)try{yo=Mr.inject(m1),Mn=Mr}catch(e){}}_d=y1,Ld=Yt});var Bd=tu((z1,Rd)=>{$d();function Qd(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qd)}catch(e){console.error(e)}}Qd(),Rd.exports=ct});var jd=tu((k1)=>{var ru=ar(Bd(),1);k1.createRoot=ru.createRoot,k1.hydrateRoot=ru.hydrateRoot;var g1});var Yd=ar(tl(),1),Xd=ar(jd(),1);var Ce=ar(tl(),1);var Hd=ar(tl(),1),S1=Symbol.for("react.element");var w1=Object.prototype.hasOwnProperty,E1=Hd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,C1={key:!0,ref:!0,__self:!0,__source:!0};function Kd(e,n,l){var u,o={},i=null,t=null;l!==void 0&&(i=""+l),n.key!==void 0&&(i=""+n.key),n.ref!==void 0&&(t=n.ref);for(u in n)w1.call(n,u)&&!C1.hasOwnProperty(u)&&(o[u]=n[u]);if(e&&e.defaultProps)for(u in n=e.defaultProps,n)o[u]===void 0&&(o[u]=n[u]);return{$$typeof:S1,type:e,key:i,ref:t,props:o,_owner:E1.current}}var $=Kd,W=Kd;var ne=5000,pe=5000,de={x:2500,y:1200,w:600,h:500,maxHp:300};function xt(e){if(e==="halloween")return{ground:"#2a1f2f",ground2:"#231a27",grid:"rgba(255,120,0,0.07)",speck:"#3d2a1a",fog:"rgba(80,20,100,0.18)",vignette:!0,hudBorder:"#ff7518",hpA:"#ff7518",hpB:"#7c3aed",name:"Night of Pumpkins \uD83C\uDF83",desc:"Jack-o-lanterns awake. Defend the cursed castle.",sky:"#1a121f"};if(e==="christmas")return{ground:"#e8f4f8",ground2:"#dbeaf0",grid:"rgba(180,210,235,0.22)",speck:"#ffffff",fog:"rgba(200,230,255,0.18)",vignette:!1,hudBorder:"#22c55e",hpA:"#ef4444",hpB:"#22c55e",name:"Winter Siege \uD83C\uDF84",desc:"Snow falls on the kingdom. Hold the hearth.",sky:"#d6eef6"};return{ground:"#477233",ground2:"#3d622b",grid:"rgba(25,60,15,0.13)",speck:"#5a8a3a",fog:"rgba(0,0,0,0)",vignette:!1,hudBorder:"rgba(255,255,255,0.16)",hpA:"#ef4444",hpB:"#10b981",name:"Medieval Battle",desc:"Defend the castle from raiders. Five waves to survive.",sky:"#3a6b2a"}}function Ad(e){let n=[],l=(o,i)=>o+Math.random()*(i-o),u=(o,i)=>{let{x:t,y:s}=de;return Math.hypot(o-t,i-s)<700};if(e==="normal"){for(let o=0;o<320;o++){let i=l(100,ne-100),t=l(100,pe-100);if(u(i,t)){o--;continue}n.push({x:i,y:t,type:"tree",size:l(0.9,1.3),rot:l(0,Math.PI*2),variant:Math.floor(l(0,3))})}for(let o=0;o<180;o++){let i=l(0,ne),t=l(0,pe);if(u(i,t)){o--;continue}n.push({x:i,y:t,type:"rock",size:l(0.7,1.4),rot:l(0,Math.PI*2),variant:0})}}else if(e==="halloween"){for(let o=0;o<280;o++){let i=l(100,ne-100),t=l(100,pe-100);if(u(i,t)){o--;continue}n.push({x:i,y:t,type:"deadTree",size:l(0.9,1.5),rot:l(0,Math.PI*2),variant:Math.random()>0.6?1:0})}for(let o=0;o<40;o++){let i=l(200,ne-200),t=l(200,pe-200);if(u(i,t)){o--;continue}n.push({x:i,y:t,type:"pumpkin",size:l(0.8,1.2),rot:0,variant:0})}for(let o=0;o<30;o++){let i=l(0,ne),t=l(0,pe);if(u(i,t)){o--;continue}n.push({x:i,y:t,type:"grave",size:l(0.9,1.1),rot:l(-0.2,0.2),variant:Math.floor(l(0,2))})}for(let o=0;o<70;o++){let i=l(0,ne),t=l(0,pe);if(u(i,t)){o--;continue}n.push({x:i,y:t,type:"rock",size:l(0.6,1.2),rot:0,variant:0})}}else{for(let o=0;o<300;o++){let i=l(100,ne-100),t=l(100,pe-100);if(u(i,t)){o--;continue}n.push({x:i,y:t,type:"pine",size:l(0.9,1.35),rot:l(0,Math.PI*2),variant:Math.floor(l(0,2))})}for(let o=0;o<40;o++){let i=l(200,ne-200),t=l(200,pe-200);if(u(i,t)){o--;continue}n.push({x:i,y:t,type:"gift",size:l(0.9,1.2),rot:l(-0.3,0.3),variant:Math.floor(l(0,3))})}for(let o=0;o<100;o++){let i=l(0,ne),t=l(0,pe);if(u(i,t)){o--;continue}n.push({x:i,y:t,type:"rock",size:l(0.6,1.2),rot:0,variant:1})}}return n}function es(){let e=Ce.useRef(null),n=Ce.useRef(null),[l,u]=Ce.useState("normal"),[o,i]=Ce.useState("menu"),[t,s]=Ce.useState({playerHp:120,castleHp:300,wave:1,enemies:0,allies:0}),f=Ce.useRef(null),v=Ce.useRef("normal"),g=Ce.useRef("menu"),S=Ce.useRef(null),k=Ce.useRef({active:!1,dx:0,dy:0,id:0}),P=Ce.useRef(null),z=Ce.useRef(new Set);Ce.useEffect(()=>{let r=document.createElement("link");r.href="https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Inter:wght@400;600;700&display=swap",r.rel="stylesheet",document.head.appendChild(r)},[]),Ce.useEffect(()=>{v.current=l},[l]),Ce.useEffect(()=>{g.current=o},[o]);let I=()=>{if(!S.current)try{S.current=new(window.AudioContext||window.webkitAudioContext)}catch{}if(S.current?.state==="suspended")S.current.resume();try{let r=navigator;if(r.audioSession)r.audioSession.type="playback"}catch{}},J=(r)=>{let d=S.current;if(!d)return;let M=d.createOscillator(),U=d.createGain();M.connect(U),U.connect(d.destination);let _=d.currentTime;if(r==="swing")M.type="sawtooth",M.frequency.setValueAtTime(180,_),M.frequency.linearRampToValueAtTime(480,_+0.08),U.gain.setValueAtTime(0.18,_),U.gain.exponentialRampToValueAtTime(0.001,_+0.12),M.start(_),M.stop(_+0.13);else if(r==="hit")M.type="square",M.frequency.setValueAtTime(120,_),M.frequency.linearRampToValueAtTime(60,_+0.15),U.gain.setValueAtTime(0.22,_),U.gain.exponentialRampToValueAtTime(0.001,_+0.18),M.start(_),M.stop(_+0.2);else if(r==="dash")M.type="sine",M.frequency.setValueAtTime(300,_),M.frequency.linearRampToValueAtTime(900,_+0.18),U.gain.setValueAtTime(0.16,_),U.gain.exponentialRampToValueAtTime(0.001,_+0.2),M.start(_),M.stop(_+0.22);else if(r==="spawn")M.type="triangle",M.frequency.setValueAtTime(200,_),M.frequency.linearRampToValueAtTime(400,_+0.3),U.gain.setValueAtTime(0.12,_),U.gain.exponentialRampToValueAtTime(0.001,_+0.35),M.start(_),M.stop(_+0.36);else if(r==="castleHit")M.type="sawtooth",M.frequency.setValueAtTime(80,_),M.frequency.linearRampToValueAtTime(30,_+0.4),U.gain.setValueAtTime(0.28,_),U.gain.exponentialRampToValueAtTime(0.001,_+0.45),M.start(_),M.stop(_+0.46);else if(r==="wave")M.type="sine",M.frequency.setValueAtTime(440,_),M.frequency.setValueAtTime(660,_+0.15),M.frequency.setValueAtTime(880,_+0.3),U.gain.setValueAtTime(0.18,_),U.gain.linearRampToValueAtTime(0.18,_+0.35),U.gain.exponentialRampToValueAtTime(0.001,_+0.5),M.start(_),M.stop(_+0.55)},h=(r)=>{I(),u(r),v.current=r;let d=f.current;if(d)d.decorations=Ad(r),d.particles=[],d.dmgTexts=[],d.castle.hp=de.maxHp,d.player.hp=d.player.maxHp,d.enemies=[],d.allies=[],d.snow=r==="christmas"?Array.from({length:150},()=>({x:Math.random()*ne,y:Math.random()*pe,size:2+Math.random()*3,speed:0.5+Math.random()*1.5,drift:Math.random()*2,phase:Math.random()*Math.PI*2})):[],d.bats=r==="halloween"?Array.from({length:8},(M,U)=>({x:Math.random()*ne,y:Math.random()*pe*0.6,vx:(Math.random()>0.5?1:-1)*(1.5+Math.random()*2),vy:(Math.random()-0.5)*0.6,wing:Math.random()*Math.PI*2,size:14+Math.random()*10})):[],d.fog=r==="halloween"?Array.from({length:25},()=>({x:Math.random()*ne,y:Math.random()*pe,vx:(Math.random()-0.5)*0.3,vy:(Math.random()-0.5)*0.2,size:60+Math.random()*120,alpha:0.12+Math.random()*0.18,color:Math.random()>0.5?"rgba(120,50,20,0.22)":"rgba(80,20,120,0.18)"})):[],p(d,Math.max(8,6+d.wave*2+(r==="halloween"?2:0))),s((M)=>({...M,castleHp:de.maxHp,playerHp:d.player.maxHp,enemies:d.enemies.length,allies:0}))},p=(r,d)=>{for(let M=0;M<d;M++){let U=Math.random()*Math.PI*2,_=1400+Math.random()*1200,ke=Math.max(100,Math.min(ne-100,de.x+Math.cos(U)*_+(Math.random()-0.5)*400)),R=Math.max(100,Math.min(pe-100,de.y+Math.sin(U)*_+(Math.random()-0.5)*400)),Y=Math.random()<0.18+r.wave*0.05;r.enemies.push({x:ke,y:R,vx:0,vy:0,radius:Y?28:16,hp:Y?120:50,maxHp:Y?120:50,speed:Y?1.1:2.2,dir:U+Math.PI,attackCd:Math.random()*1.2,hitFlash:0,isAttacking:0,kind:Y?"brute":"bandit",targetX:de.x,targetY:de.y})}},y=(r)=>{let d={player:{x:de.x+380,y:de.y+60,vx:0,vy:0,radius:22,hp:120,maxHp:120,speed:3.8,dir:0,attackCd:0,hitFlash:0,isAttacking:0,combo:0,comboTimer:0,dashCd:0,dashTime:0,isDashing:!1},enemies:[],allies:[],particles:[],dmgTexts:[],decorations:Ad(r),castle:{x:de.x,y:de.y,w:de.w,h:de.h,hp:de.maxHp,maxHp:de.maxHp},camera:{x:de.x+380,y:de.y+60,shake:0},wave:1,maxWaves:5,time:0,slashTrail:[],snow:r==="christmas"?Array.from({length:150},()=>({x:Math.random()*ne,y:Math.random()*pe,size:2+Math.random()*3,speed:0.5+Math.random()*1.5,drift:Math.random()*2,phase:Math.random()*Math.PI*2})):[],bats:r==="halloween"?Array.from({length:8},()=>({x:Math.random()*ne,y:Math.random()*pe*0.6,vx:(Math.random()>0.5?1:-1)*(1.5+Math.random()*2),vy:(Math.random()-0.5)*0.6,wing:Math.random()*Math.PI*2,size:14+Math.random()*10})):[],fog:r==="halloween"?Array.from({length:25},()=>({x:Math.random()*ne,y:Math.random()*pe,vx:(Math.random()-0.5)*0.3,vy:(Math.random()-0.5)*0.2,size:60+Math.random()*120,alpha:0.12+Math.random()*0.18,color:Math.random()>0.5?"rgba(120,50,20,0.22)":"rgba(80,20,120,0.18)"})):[],keys:z.current};p(d,10),f.current=d,g.current="playing",i("playing"),s({playerHp:120,castleHp:de.maxHp,wave:1,enemies:d.enemies.length,allies:0}),J("wave")},E=(r,d,M,U,_,ke,R,Y=0)=>{let{x,y:m,dir:T,isAttacking:H,radius:A,vx:Se,vy:We}=d,Me=Math.hypot(Se||0,We||0)>0.4,He=Y*0.01+(x+m)*0.03,N=Me?Math.sin(He*1.35)*4:0,lu=Me?Math.abs(Math.sin(He*1.35))*2.1:Math.sin(Y*0.003)*0.6,uu=1+Math.sin(Y*0.0024)*0.015,ou=ke==="player"?32:ke==="ally"?26:d.kind==="brute"?38:24,Fo=d.kind==="brute"?54:ke==="player"?46:ke==="ally"?46:40;r.save(),r.translate(x,m),r.rotate(T),r.translate(0,lu),r.save(),r.globalAlpha=0.42,r.fillStyle="rgba(0,0,0,0.42)",r.shadowColor="rgba(0,0,0,0.65)",r.shadowBlur=10,r.beginPath(),r.ellipse(0,24,20,8,0,0,Math.PI*2),r.fill(),r.shadowBlur=0,r.restore();let tn=0;if(H>0){let ee=1-H/0.28;if(ke==="player")tn=Math.sin(ee*Math.PI)*0.26;else if(ke==="ally")tn=ee*0.18;else if(d.kind==="brute")tn=ee*0.38;else tn=ee*0.2}r.rotate(tn),r.scale(1,uu);let ue=(ee)=>{ee.forEach(([G,se])=>{r.fillStyle="#0e0e0e",r.beginPath(),r.arc(G,se,0.9,0,Math.PI*2),r.fill(),r.fillStyle="rgba(255,255,255,0.28)",r.beginPath(),r.arc(G-0.22,se-0.22,0.32,0,Math.PI*2),r.fill()})},he=(ee,G,se,oe)=>{for(let j=G;j<G+oe;j+=2.1)for(let X=ee;X<ee+se;X+=2.1)if((X*1.7+j)%2.7<1.2)r.fillStyle="#7a828e",r.beginPath(),r.arc(X,j,0.65,0,Math.PI*2),r.fill()};if(ke==="player"){r.save();let ee=Math.sin(Y*0.004+He)*(Me?6:2.2);r.translate(-1,-4),r.fillStyle="#7f1d1d",r.beginPath(),r.moveTo(-13,-12),r.bezierCurveTo(-20+ee,0,-18+ee*0.7,16,-10,24),r.lineTo(10,24),r.bezierCurveTo(18+ee*0.7,16,20+ee,0,13,-12),r.closePath(),r.fill();let G=r.createLinearGradient(-14,0,14,0);G.addColorStop(0,"#5a1515"),G.addColorStop(0.5,"#7f1d1d"),G.addColorStop(1,"#a32626"),r.fillStyle=G,r.globalAlpha=0.62,r.fill(),r.globalAlpha=1,r.strokeStyle="rgba(0,0,0,0.22)",r.lineWidth=1,r.beginPath(),r.moveTo(0,-10),r.quadraticCurveTo(2+ee*0.3,6,1,20),r.stroke(),r.beginPath(),r.moveTo(-6,-8),r.quadraticCurveTo(-4+ee*0.2,5,-7,18),r.stroke(),r.restore();let se=(a,w,B)=>{let c=B?N:-N;r.save(),r.translate(a,w+c);let ze=r.createLinearGradient(-6,-2,6,-2);ze.addColorStop(0,"#8b909c"),ze.addColorStop(0.32,"#c0c5ce"),ze.addColorStop(0.68,"#d9dde3"),ze.addColorStop(1,"#9aa0aa"),r.fillStyle=ze,r.beginPath(),r.roundRect(-5.5,0,11,11,3.5),r.fill(),r.fillStyle="#b8bec8",r.beginPath(),r.arc(0,10.5,4.6,0,Math.PI*2),r.fill(),r.strokeStyle="rgba(0,0,0,0.22)",r.lineWidth=0.8,r.stroke();let Ye=r.createLinearGradient(-4,0,4,0);Ye.addColorStop(0,"#8b909c"),Ye.addColorStop(0.5,"#c0c5ce"),Ye.addColorStop(1,"#a2a8b2"),r.fillStyle=Ye,r.beginPath(),r.roundRect(-4.5,13,9,14,3),r.fill(),r.fillStyle="rgba(255,255,255,0.45)",r.fillRect(-0.5,13,1,14),ue([[-3,3],[3,3],[-2.5,22],[2.5,22]]),r.fillStyle="#9aa0aa",r.beginPath(),r.moveTo(-4.5,27),r.lineTo(4.5,27),r.lineTo(7,31),r.lineTo(-7,31),r.closePath(),r.fill(),r.fillStyle="rgba(255,255,255,0.5)",r.beginPath(),r.moveTo(2,28.5),r.lineTo(6,30),r.lineTo(2,30),r.closePath(),r.fill(),r.restore()};se(-6.5,8,!0),se(6.5,8,!1),r.save(),r.translate(0,4);let oe=r.createLinearGradient(-16,0,16,0);oe.addColorStop(0,"#8b909c"),oe.addColorStop(0.5,"#cbd5e1"),oe.addColorStop(1,"#9aa0aa"),r.fillStyle=oe;for(let a=0;a<3;a++)r.beginPath(),r.roundRect(-15,a*4.2,30,4.5,2),r.fill(),r.strokeStyle="rgba(0,0,0,0.18)",r.lineWidth=0.5,r.stroke();ue([[-12,2],[-4,2],[4,2],[12,2],[-12,6.5],[0,6.5],[12,6.5]]),r.restore();let j=24,X=24,V=r.createLinearGradient(-j/2,0,j/2,0);V.addColorStop(0,"#8f96a2"),V.addColorStop(0.22,"#b8bec8"),V.addColorStop(0.48,"#e6eaf0"),V.addColorStop(0.76,"#c0c5ce"),V.addColorStop(1,"#8a9099"),r.fillStyle=V,r.beginPath(),r.roundRect(-j/2,-20,j,X,5),r.fill(),r.fillStyle="rgba(255,255,255,0.62)",r.fillRect(-0.6,-20,1.2,X),r.fillStyle="rgba(0,0,0,0.18)",r.fillRect(0.6,-20,0.6,X),r.strokeStyle="rgba(255,255,255,0.35)",r.lineWidth=0.8,r.beginPath(),r.roundRect(-j/2+1,-19,j-2,X-2,4),r.stroke(),ue([[-10,-18],[10,-18],[-11,-8],[11,-8],[-10,2],[10,2]]),he(-17,-18,5,10),he(12,-18,5,10),r.fillStyle="#1e3a8a",r.globalAlpha=0.96,r.beginPath(),r.roundRect(-12,-8,24,13,3),r.fill(),r.globalAlpha=1,r.strokeStyle="rgba(0,0,0,0.2)",r.lineWidth=0.7,r.beginPath(),r.moveTo(-4,-6),r.lineTo(-2,3),r.stroke(),r.beginPath(),r.moveTo(4,-6),r.lineTo(2,3),r.stroke(),r.save(),r.translate(0,-1),r.fillStyle="#d4af37",r.beginPath(),r.arc(0,0,5.2,0,Math.PI*2),r.fill(),r.strokeStyle="#b8962e",r.lineWidth=0.6,r.stroke(),r.fillStyle="#7c2d12",r.beginPath(),r.arc(-1.2,-0.5,1.1,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(1.2,-0.5,1.1,0,Math.PI*2),r.fill(),r.fillStyle="#5c1a1a",r.beginPath(),r.moveTo(0,1),r.lineTo(-1,2.2),r.lineTo(1,2.2),r.closePath(),r.fill(),r.fillStyle="#fde68a";for(let a=0;a<8;a++){let w=a/8*Math.PI*2;r.beginPath(),r.arc(Math.cos(w)*3.8,Math.sin(w)*3.8,0.7,0,Math.PI*2),r.fill()}r.restore();let re=(a)=>{r.save(),r.translate(a*(ou/2-1),-16);let w=r.createRadialGradient(-2,-2,2,0,0,11);w.addColorStop(0,"#d9dde3"),w.addColorStop(0.5,"#c0c5ce"),w.addColorStop(1,"#8a9099"),r.fillStyle=w,r.beginPath(),r.arc(0,0,10.5,0,Math.PI*2),r.fill(),r.fillStyle="#b8bec8",r.beginPath(),r.arc(a*1.5,1,7.5,0,Math.PI*2),r.fill(),r.strokeStyle="rgba(0,0,0,0.2)",r.lineWidth=0.6,r.beginPath(),r.arc(0,0,10.5,0,Math.PI*2),r.stroke(),r.beginPath(),r.arc(a*1.5,1,7.5,0,Math.PI*2),r.stroke(),ue([[0,0]]),r.fillStyle="rgba(255,255,255,0.35)",r.beginPath(),r.ellipse(-2.5,-2.5,3.5,2,-0.4,0,Math.PI*2),r.fill(),r.restore()};re(-1),re(1),r.save();let Z=H>0?1-H/0.28:0,Fe=Z>0?-Z*1.57:0;r.translate(17,-14),r.rotate(Fe-0.15+(Me?Math.sin(He)*0.18:0));let Ke=r.createLinearGradient(-5,0,5,0);Ke.addColorStop(0,"#9aa0aa"),Ke.addColorStop(0.5,"#c0c5ce"),Ke.addColorStop(1,"#a8aeb8"),r.fillStyle=Ke,r.beginPath(),r.roundRect(-5,-4,16,8,3.5),r.fill(),r.fillStyle="#b8bec8",r.beginPath(),r.arc(11,0,5,0,Math.PI*2),r.fill(),r.strokeStyle="rgba(0,0,0,0.18)",r.lineWidth=0.6,r.stroke(),r.fillStyle=Ke,r.beginPath(),r.roundRect(11,-3.5,15,7,3),r.fill(),r.save(),r.translate(24,0),r.fillStyle="#cbd5e1",r.beginPath(),r.roundRect(0,-4,12,8,2.5),r.fill(),r.strokeStyle="rgba(0,0,0,0.2)",r.lineWidth=0.6;for(let a=0;a<4;a++)r.beginPath(),r.moveTo(3+a*2.5,-4),r.lineTo(3+a*2.5,4),r.stroke();r.fillStyle="#9aa0aa",r.beginPath(),r.arc(13,0,3.2,0,Math.PI*2),r.fill(),r.translate(12,0),r.fillStyle="#4b5563",r.fillRect(-2,-7,3,14),r.fillStyle="#6b7280",r.beginPath(),r.arc(-0.5,-7,1.8,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(-0.5,7,1.8,0,Math.PI*2),r.fill(),r.fillStyle="#5c3a1a",r.fillRect(2,-2.2,11,4.4),r.strokeStyle="rgba(0,0,0,0.45)",r.lineWidth=0.6;for(let a=0;a<4;a++)r.beginPath(),r.moveTo(3+a*2.6,-2.2),r.lineTo(2+a*2.6,2.2),r.stroke();r.fillStyle="#d4af37",r.beginPath(),r.arc(15,0,4.2,0,Math.PI*2),r.fill(),r.fillStyle="#b8962e",r.beginPath(),r.arc(15,0,2.4,0,Math.PI*2),r.fill(),r.fillStyle="rgba(255,255,255,0.55)",r.beginPath(),r.arc(14,-1,1.2,0,Math.PI*2),r.fill(),r.translate(-5,0),r.rotate(Math.PI);let De=38,Ae=r.createLinearGradient(0,-2,0,2);Ae.addColorStop(0,"#9ca3af"),Ae.addColorStop(0.5,"#e5e7eb"),Ae.addColorStop(1,"#9ca3af"),r.fillStyle=Ae,r.beginPath(),r.moveTo(0,-2.2),r.lineTo(De-6,-1),r.lineTo(De,0),r.lineTo(De-6,1),r.lineTo(0,2.2),r.closePath(),r.fill(),r.strokeStyle="rgba(255,255,255,0.95)",r.lineWidth=0.6,r.beginPath(),r.moveTo(0,-2.2),r.lineTo(De,0),r.stroke(),r.beginPath(),r.moveTo(0,2.2),r.lineTo(De,0),r.stroke(),r.strokeStyle="rgba(0,0,0,0.28)",r.lineWidth=0.7,r.beginPath(),r.moveTo(3,0),r.lineTo(De-10,0),r.stroke(),r.fillStyle="rgba(0,0,0,0.12)",r.fillRect(3,-0.3,De-13,0.6),r.restore(),r.restore(),r.save(),r.translate(-17,-14),r.rotate(0.18+(Me?-Math.sin(He)*0.18:0)),r.fillStyle=Ke,r.beginPath(),r.roundRect(-11,-4,16,8,3.5),r.fill(),r.fillStyle="#b8bec8",r.beginPath(),r.arc(-11,0,5,0,Math.PI*2),r.fill(),r.beginPath(),r.roundRect(-24,-3.5,15,7,3),r.fill(),r.fillStyle="#cbd5e1",r.beginPath(),r.roundRect(-27,-4,12,8,2.5),r.fill(),r.restore(),r.fillStyle="#c9a88a",r.fillRect(-3.5,-22,7,6),r.save(),r.translate(0,-20);for(let a=-4;a<4;a+=1.8)for(let w=-6;w<=6;w+=1.8)r.fillStyle="#6b7280",r.beginPath(),r.arc(w,a,0.65,0,Math.PI*2),r.fill();r.restore(),r.save(),r.translate(0,-31);let mn=r.createRadialGradient(-3,-3,1.5,0,0,11);mn.addColorStop(0,"#e8ecf2"),mn.addColorStop(0.35,"#c0c5ce"),mn.addColorStop(0.75,"#9aa0aa"),mn.addColorStop(1,"#7a808a"),r.fillStyle=mn,r.beginPath(),r.arc(0,0,10.5,0,Math.PI*2),r.fill(),r.fillStyle="#a8aeb8",r.beginPath(),r.roundRect(-9.5,-9.5,19,7,2),r.fill(),r.fillStyle="#0f1216",r.fillRect(-7,-1,14,2.2);for(let a=0;a<2;a++)for(let w=-6;w<=6;w+=2.5)r.beginPath(),r.arc(w,3+a*2.2,0.7,0,Math.PI*2),r.fill();if(r.strokeStyle="rgba(0,0,0,0.4)",r.lineWidth=0.7,r.beginPath(),r.arc(0,0,10.5,0,Math.PI*2),r.stroke(),r.fillStyle="rgba(255,255,255,0.38)",r.beginPath(),r.ellipse(-3,-3.5,4,2.8,-0.35,0,Math.PI*2),r.fill(),r.fillStyle="#991b1b",r.beginPath(),r.moveTo(0,-9.5),r.quadraticCurveTo(3.5,-16,1.5,-19),r.quadraticCurveTo(-1,-16,0,-9.5),r.fill(),r.fillStyle="#ef4444",r.beginPath(),r.moveTo(0,-9.5),r.quadraticCurveTo(2,-14,0.8,-16),r.lineTo(0,-9.5),r.fill(),r.restore(),R==="halloween")r.save(),r.translate(0,-40),r.fillStyle="#0a0a0a",r.beginPath(),r.ellipse(0,2,18,5,0,0,Math.PI*2),r.fill(),r.fillStyle="#111111",r.beginPath(),r.moveTo(-10,0),r.quadraticCurveTo(-1,-32,11,-28),r.lineTo(7,-2),r.closePath(),r.fill(),r.fillStyle="#2d1b4e",r.fillRect(-8,-6,16,4.5),r.fillStyle="#d4af37",r.strokeStyle="#000",r.lineWidth=0.7,r.beginPath(),r.roundRect(-3.5,-5.5,7,3.5,1),r.fill(),r.stroke(),r.fillStyle="#111",r.beginPath(),r.moveTo(7,-28),r.quadraticCurveTo(15,-33,13,-37),r.quadraticCurveTo(7,-32,6,-28),r.fill(),r.restore();if(R==="christmas"){r.save(),r.translate(0,-38),r.fillStyle="#b91c1c",r.beginPath(),r.moveTo(-12,-2),r.bezierCurveTo(-5,-20,10,-26,18,-18),r.lineTo(8,-2),r.quadraticCurveTo(-2,0,-12,-2),r.fill(),r.fillStyle="rgba(255,255,255,0.18)",r.beginPath(),r.moveTo(-8,-4),r.bezierCurveTo(-2,-16,8,-20,12,-16),r.lineTo(6,-6),r.closePath(),r.fill(),r.fillStyle="#ffffff",r.beginPath(),r.roundRect(-14,-5,28,10,5),r.fill();for(let a=0;a<7;a++){let w=-12+a*4;r.beginPath(),r.arc(w,-1+Math.sin(a*1.3)*0.5,2.6,0,Math.PI*2),r.fill()}r.fillStyle="rgba(180,200,220,0.25)",r.beginPath(),r.ellipse(0,0,10,3,0,0,Math.PI*2),r.fill(),r.shadowColor="rgba(0,0,0,0.35)",r.shadowBlur=6,r.fillStyle="#ffffff",r.beginPath(),r.arc(20,-18,7.5,0,Math.PI*2),r.fill(),r.shadowBlur=0,r.fillStyle="rgba(255,255,255,0.95)",r.beginPath(),r.arc(18,-20,2.2,0,Math.PI*2),r.fill(),r.restore()}}else if(ke==="ally"){let ee=(Z,Fe,Ke)=>{let De=Ke?N*0.8:-N*0.8;r.save(),r.translate(Z,Fe+De),r.fillStyle="#6b7280",r.beginPath(),r.roundRect(-4.5,0,9,18,3),r.fill();for(let Ae=2;Ae<16;Ae+=1.9)for(let mn=-3;mn<=3;mn+=1.9)r.fillStyle="#7a828e",r.beginPath(),r.arc(mn,Ae,0.6,0,Math.PI*2),r.fill();r.fillStyle="#78350f",r.beginPath(),r.roundRect(-4.8,16,9.6,7,2),r.fill(),r.fillStyle="#5a260a",r.fillRect(-4.8,16,9.6,2),r.restore()};ee(-5.5,8,!0),ee(5.5,8,!1),r.save(),r.translate(-8,-6),r.rotate(-0.2),r.fillStyle="#8b4513",r.beginPath(),r.arc(0,0,7,0,Math.PI*2),r.fill(),r.strokeStyle="#6b3410",r.lineWidth=0.8,r.stroke(),r.fillStyle="#cbd5e1",r.beginPath(),r.arc(0,0,2.2,0,Math.PI*2),r.fill(),r.restore();let G=20,se=23;r.fillStyle="#14532d",r.beginPath(),r.roundRect(-G/2,-18,G,se,4),r.fill(),r.strokeStyle="rgba(0,0,0,0.22)",r.lineWidth=0.7;for(let Z=-8;Z<=8;Z+=4)r.beginPath(),r.moveTo(Z,-18),r.lineTo(Z,5),r.stroke();r.strokeStyle="rgba(255,255,255,0.08)",r.lineWidth=0.6;for(let Z=-6;Z<=6;Z+=4)r.beginPath(),r.moveTo(Z,-16),r.lineTo(Z+1,3),r.stroke();r.fillStyle="rgba(107,114,128,0.85)",r.beginPath(),r.roundRect(-G/2+1,-18,G-2,12,3),r.fill();for(let Z=-16;Z<-8;Z+=1.8)for(let Fe=-8;Fe<=8;Fe+=1.8)r.fillStyle="#7a828e",r.beginPath(),r.arc(Fe,Z,0.55,0,Math.PI*2),r.fill();r.fillStyle="#3f2a1a",r.fillRect(-11,2,22,3.5),r.fillStyle="#d4af37",r.beginPath(),r.roundRect(-2,2,4,3.5,1),r.fill(),r.fillStyle="#6b7280",r.beginPath(),r.arc(-12,-14,5,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(12,-14,5,0,Math.PI*2),r.fill();let oe=H>0?(1-H/0.28)*0.6:Me?Math.sin(He)*0.25:0;r.save(),r.translate(12,-13),r.rotate(oe-0.1),r.fillStyle="#14532d",r.beginPath(),r.roundRect(-4,-3.5,14,7,3),r.fill(),r.fillStyle="#78350f",r.beginPath(),r.roundRect(7,-4,11,8,2),r.fill(),r.strokeStyle="rgba(0,0,0,0.25)",r.lineWidth=0.6,r.beginPath(),r.moveTo(10,-4),r.lineTo(10,4),r.stroke(),r.beginPath(),r.moveTo(14,-4),r.lineTo(14,4),r.stroke(),r.fillStyle="#d1a37a",r.beginPath(),r.arc(19,0,3,0,Math.PI*2),r.fill(),r.restore(),r.save(),r.translate(-12,-13),r.rotate(-oe+0.1),r.fillStyle="#14532d",r.beginPath(),r.roundRect(-10,-3.5,14,7,3),r.fill(),r.fillStyle="#78350f",r.beginPath(),r.roundRect(-18,-4,11,8,2),r.fill(),r.fillStyle="#d1a37a",r.beginPath(),r.arc(-19,0,3,0,Math.PI*2),r.fill(),r.restore(),r.save();let j=H>0?(1-H/0.24)*16:0;r.translate(18+j,-12),r.rotate(-0.05);let X=52;r.fillStyle="#6b3a1f",r.fillRect(0,-1.4,X,2.8),r.strokeStyle="#4a2a0f",r.lineWidth=0.5,r.beginPath(),r.moveTo(4,-0.8),r.lineTo(X-8,-0.8),r.stroke(),r.beginPath(),r.moveTo(2,0.8),r.lineTo(X-6,0.8),r.stroke(),r.fillStyle="#9ca3af",r.beginPath(),r.moveTo(-3,-1.5),r.lineTo(0,0),r.lineTo(-3,1.5),r.closePath(),r.fill(),r.translate(X,0);let V=r.createLinearGradient(0,-5,0,5);V.addColorStop(0,"#a1a6b0"),V.addColorStop(0.5,"#e5e7eb"),V.addColorStop(1,"#9ca3af"),r.fillStyle=V,r.beginPath(),r.moveTo(0,-3.5),r.lineTo(14,-0.5),r.lineTo(12,0),r.lineTo(14,0.5),r.lineTo(0,3.5),r.closePath(),r.fill(),r.strokeStyle="rgba(0,0,0,0.35)",r.lineWidth=0.6,r.beginPath(),r.moveTo(0,0),r.lineTo(12,0),r.stroke(),r.fillStyle="rgba(255,255,255,0.7)",r.beginPath(),r.moveTo(2,-2.5),r.lineTo(10,-0.3),r.lineTo(2,-1.5),r.closePath(),r.fill(),r.fillStyle="#14532d",r.beginPath(),r.moveTo(-2,-4),r.lineTo(-2,4),r.lineTo(-10,2),r.lineTo(-10,-2),r.closePath(),r.fill(),r.strokeStyle="rgba(0,0,0,0.2)",r.lineWidth=0.6,r.stroke(),r.restore(),r.fillStyle="#c9a88a",r.fillRect(-3,-21,6,5),r.save(),r.translate(0,-29);let re=r.createRadialGradient(-2,-2,1,0,0,9);if(re.addColorStop(0,"#e8c9a8"),re.addColorStop(1,"#d1a37a"),r.fillStyle=re,r.beginPath(),r.arc(0,0,8.2,0,Math.PI*2),r.fill(),r.fillStyle="#5c3a1a",r.beginPath(),r.arc(0,3,6,0.2,Math.PI-0.2),r.fill(),r.fillStyle="#d1a37a",r.beginPath(),r.arc(0,1.5,4,0,Math.PI*2),r.fill(),r.fillStyle="#2a1f15",r.beginPath(),r.arc(-2.5,-1,1,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(2.5,-1,1,0,Math.PI*2),r.fill(),r.fillStyle="rgba(255,255,255,0.7)",r.beginPath(),r.arc(-2.8,-1.5,0.4,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(2.2,-1.5,0.4,0,Math.PI*2),r.fill(),r.fillStyle="#6b7280",r.beginPath(),r.arc(0,-2,10.5,Math.PI,0),r.fill(),r.fillStyle="#5a626e",r.beginPath(),r.ellipse(0,-2,13,3.5,0,0,Math.PI*2),r.fill(),r.fillStyle="rgba(0,0,0,0.18)",r.beginPath(),r.ellipse(0,-1,13,3.5,0,0,Math.PI),r.fill(),r.fillStyle="#6b7280",r.fillRect(-0.8,-1,1.6,6),r.fillStyle="rgba(255,255,255,0.28)",r.beginPath(),r.ellipse(-3,-5,4,2.5,-0.3,0,Math.PI*2),r.fill(),r.restore(),R==="halloween")r.save(),r.translate(0,-38),r.fillStyle="#0a0a0a",r.beginPath(),r.ellipse(0,2,17,4.5,0,0,Math.PI*2),r.fill(),r.fillStyle="#111",r.beginPath(),r.moveTo(-9,0),r.quadraticCurveTo(0,-28,10,-24),r.lineTo(6,-2),r.closePath(),r.fill(),r.fillStyle="#2d1b4e",r.fillRect(-7,-5,14,4),r.fillStyle="#d4af37",r.beginPath(),r.roundRect(-3,-4.5,6,3,1),r.fill(),r.restore();if(R==="christmas"){r.save(),r.translate(0,-36),r.fillStyle="#b91c1c",r.beginPath(),r.moveTo(-11,-2),r.bezierCurveTo(-4,-18,9,-22,16,-16),r.lineTo(7,-2),r.closePath(),r.fill(),r.fillStyle="#fff",r.beginPath(),r.roundRect(-13,-4,26,8,4),r.fill();for(let Z=0;Z<6;Z++)r.beginPath(),r.arc(-11+Z*4.2,-0.5,2.2,0,Math.PI*2),r.fill();r.shadowBlur=4,r.shadowColor="rgba(0,0,0,0.3)",r.fillStyle="#fff",r.beginPath(),r.arc(18,-15,6.5,0,Math.PI*2),r.fill(),r.shadowBlur=0,r.restore()}}else if(ke==="enemy"&&d.kind==="brute"){let ee=(V,re,Z)=>{let Fe=Z?N*0.6:-N*0.6;r.save(),r.translate(V,re+Fe);let Ke=r.createRadialGradient(-2,-2,2,0,0,10);Ke.addColorStop(0,"#a88a6a"),Ke.addColorStop(1,"#8d6e53"),r.fillStyle=Ke,r.beginPath(),r.roundRect(-7,0,14,16,5),r.fill(),r.strokeStyle="rgba(0,0,0,0.22)",r.lineWidth=1,r.beginPath(),r.moveTo(0,2),r.lineTo(0,12),r.stroke(),r.fillStyle="#8d6e53",r.beginPath(),r.arc(0,16,5,0,Math.PI*2),r.fill(),r.fillStyle=Ke,r.beginPath(),r.roundRect(-6,20,12,14,4),r.fill(),r.fillStyle="#3d2b1f",r.beginPath(),r.roundRect(-6.5,22,13,5,2),r.fill(),r.fillStyle="#2f1a0f",r.beginPath(),r.ellipse(0,36,8,4,0,0,Math.PI*2),r.fill(),r.restore()};ee(-9,10,!0),ee(9,10,!1),r.fillStyle="#2f1a0f",r.beginPath(),r.roundRect(-16,6,32,14,4),r.fill(),r.fillStyle="#cbd5e1",r.beginPath(),r.arc(0,12,3.5,0,Math.PI*2),r.fill(),r.fillStyle="#111",r.beginPath(),r.arc(-1,11.5,0.7,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(1,11.5,0.7,0,Math.PI*2),r.fill();let G=r.createRadialGradient(-4,-6,3,0,0,20);G.addColorStop(0,"#b38a6a"),G.addColorStop(0.5,"#8d6e53"),G.addColorStop(1,"#6b4f3a"),r.fillStyle=G,r.beginPath(),r.roundRect(-16,-20,32,26,6),r.fill(),r.strokeStyle="rgba(0,0,0,0.28)",r.lineWidth=1,r.beginPath(),r.moveTo(0,-18),r.lineTo(0,4),r.stroke();for(let V=0;V<3;V++){let re=-12+V*7;r.beginPath(),r.moveTo(-10,re),r.quadraticCurveTo(0,re+1.5,10,re),r.stroke()}r.beginPath(),r.moveTo(-14,-12),r.quadraticCurveTo(-6,-8,0,-10),r.stroke(),r.beginPath(),r.moveTo(14,-12),r.quadraticCurveTo(6,-8,0,-10),r.stroke(),r.strokeStyle="rgba(120,30,30,0.45)",r.lineWidth=0.8,r.beginPath(),r.moveTo(-8,-16),r.lineTo(-4,-4),r.stroke(),r.beginPath(),r.moveTo(10,-14),r.lineTo(6,-2),r.stroke(),r.fillStyle="#3d2b1f",r.beginPath(),r.ellipse(-14,-16,9,7,-0.3,0,Math.PI*2),r.fill(),r.beginPath(),r.ellipse(14,-16,9,7,0.3,0,Math.PI*2),r.fill(),r.fillStyle="#5a3f2e";for(let V=0;V<8;V++)r.beginPath(),r.arc(-14+(Math.random()-0.5)*8,-16+(Math.random()-0.5)*5,0.8,0,Math.PI*2),r.fill();for(let V=0;V<8;V++)r.beginPath(),r.arc(14+(Math.random()-0.5)*8,-16+(Math.random()-0.5)*5,0.8,0,Math.PI*2),r.fill();let se=H>0?(1-H/0.28)*2.09:0;r.save(),r.translate(19,-14),r.rotate(se-0.2+(Me?Math.sin(He)*0.15:0));let oe=r.createRadialGradient(-2,-2,2,0,0,9);oe.addColorStop(0,"#a88a6a"),oe.addColorStop(1,"#8d6e53"),r.fillStyle=oe,r.beginPath(),r.roundRect(-5,-6,20,12,6),r.fill(),r.fillStyle="#cbd5e1",r.beginPath(),r.arc(-2,-2,6,0,Math.PI*2),r.fill(),r.fillStyle="#9ca3af",r.beginPath(),r.arc(-2,-2,3,0,Math.PI*2),r.fill(),r.fillStyle=oe,r.beginPath(),r.roundRect(13,-5,18,10,5),r.fill(),r.fillStyle="#8d6e53",r.beginPath(),r.arc(32,0,5,0,Math.PI*2),r.fill(),r.translate(32,0),r.fillStyle="#4a2c0f",r.fillRect(0,-2.5,44,5),r.strokeStyle="#2f1a0f",r.lineWidth=0.7;for(let V=6;V<40;V+=6)r.beginPath(),r.moveTo(V,-2.5),r.lineTo(V,2.5),r.stroke();r.fillStyle="#3d2b1f",r.fillRect(12,-3,10,6),r.translate(44,0);let j=r.createLinearGradient(-6,-12,6,12);if(j.addColorStop(0,"#8a8a8a"),j.addColorStop(0.5,"#c0c0c0"),j.addColorStop(1,"#5a5a5a"),r.fillStyle=j,r.beginPath(),r.moveTo(0,-14),r.lineTo(14,-10),r.lineTo(16,0),r.lineTo(14,10),r.lineTo(0,14),r.lineTo(-2,0),r.closePath(),r.fill(),r.strokeStyle="#d9dde3",r.lineWidth=1,r.beginPath(),r.moveTo(14,-10),r.lineTo(16,0),r.lineTo(14,10),r.stroke(),r.fillStyle="#4a1111",r.beginPath(),r.arc(6,-6,2,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(8,5,1.5,0,Math.PI*2),r.fill(),H>0.05)r.globalAlpha=0.18,r.fillStyle="#c0c0c0",r.beginPath(),r.moveTo(0,-18),r.lineTo(18,-12),r.lineTo(20,12),r.lineTo(0,18),r.closePath(),r.fill(),r.globalAlpha=1;r.restore(),r.save(),r.translate(-19,-14),r.rotate(0.2+(Me?-Math.sin(He)*0.15:0));let X=r.createRadialGradient(-2,-2,2,0,0,9);if(X.addColorStop(0,"#a88a6a"),X.addColorStop(1,"#8d6e53"),r.fillStyle=X,r.beginPath(),r.roundRect(-15,-6,20,12,6),r.fill(),r.fillStyle="#9aa0aa",r.beginPath(),r.roundRect(-15,-7,12,14,3),r.fill(),r.fillStyle="#c0c5ce",r.beginPath(),r.roundRect(-15,-7,12,4,2),r.fill(),r.fillStyle="#111",r.beginPath(),r.arc(-10,0,1,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(-10,4,1,0,Math.PI*2),r.fill(),r.fillStyle="#8d6e53",r.beginPath(),r.arc(-17,0,5,0,Math.PI*2),r.fill(),r.restore(),R==="halloween"){r.save(),r.translate(0,-33);let V=0.8+Math.sin(Y*0.008)*0.2,re=r.createRadialGradient(-4,-4,2,0,0,14);re.addColorStop(0,"#ffb86a"),re.addColorStop(0.4,"#ff7518"),re.addColorStop(0.75,"#c64d06"),re.addColorStop(1,"#7a2e04"),r.fillStyle=re,r.beginPath(),r.ellipse(0,0,14,11,0,0,Math.PI*2),r.fill(),r.strokeStyle="rgba(90,30,0,0.35)",r.lineWidth=1.2;for(let Fe=-2;Fe<=2;Fe++)r.beginPath(),r.moveTo(Fe*4,-10),r.quadraticCurveTo(Fe*2,0,Fe*3,10),r.stroke();r.fillStyle="#2d5016",r.fillRect(-2.5,-15,5,7),r.fillStyle="#3a6a1e",r.fillRect(-1.5,-16,3,2),r.save(),r.shadowColor="#ffeb3b",r.shadowBlur=12*V,r.fillStyle="#1a0f00",r.beginPath(),r.moveTo(-8,-3),r.lineTo(-3,2),r.lineTo(-9,1),r.closePath(),r.fill(),r.beginPath(),r.moveTo(8,-3),r.lineTo(3,2),r.lineTo(9,1),r.closePath(),r.fill(),r.beginPath(),r.moveTo(-9,5),r.lineTo(-6,9),r.lineTo(-3,5.5),r.lineTo(0,9.5),r.lineTo(3,5.5),r.lineTo(6,9),r.lineTo(9,5),r.lineTo(6,7),r.lineTo(3,6),r.lineTo(0,10),r.lineTo(-3,6),r.lineTo(-6,8),r.closePath(),r.fill(),r.restore(),r.globalAlpha=0.25*V,r.fillStyle="#ffeb3b",r.beginPath(),r.ellipse(0,3,8,5,0,0,Math.PI*2),r.fill(),r.globalAlpha=1;let Z=r.createRadialGradient(-5,-5,0,0,0,14);Z.addColorStop(0,"rgba(255,255,255,0.32)"),Z.addColorStop(0.4,"rgba(255,255,255,0)"),Z.addColorStop(1,"rgba(0,0,0,0)"),r.fillStyle=Z,r.beginPath(),r.ellipse(0,0,14,11,0,0,Math.PI*2),r.fill(),r.restore()}else if(R==="christmas"){r.save(),r.translate(0,-34);let V=r.createRadialGradient(-3,-3,2,0,0,12);V.addColorStop(0,"#b38a6a"),V.addColorStop(1,"#8d6e53"),r.fillStyle=V,r.beginPath(),r.arc(0,0,12,0,Math.PI*2),r.fill(),r.fillStyle="#1a1a1a",r.beginPath(),r.arc(0,4,10,0.15,Math.PI-0.15),r.fill(),r.fillStyle="#8d6e53",r.beginPath(),r.arc(0,1,5,0,Math.PI*2),r.fill(),r.fillStyle="#7f1d1d",r.beginPath(),r.arc(-4,-2,2.2,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(4,-2,2.2,0,Math.PI*2),r.fill(),r.fillStyle="#ef4444",r.beginPath(),r.arc(-4,-2,1,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(4,-2,1,0,Math.PI*2),r.fill(),r.fillStyle="#0f0f0f",r.beginPath(),r.arc(-4,-2,0.6,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(4,-2,0.6,0,Math.PI*2),r.fill(),r.fillStyle="#2a0f0f",r.beginPath(),r.ellipse(0,5,4,2.5,0,0,Math.PI*2),r.fill(),r.fillStyle="#f5f5dc",r.fillRect(-3,4,1.2,1.5),r.fillRect(0,4,1.2,1.5),r.fillRect(2,4,1.2,1.5),r.fillStyle="#1a1a1a",r.beginPath(),r.roundRect(-7,-5,6,2,1),r.fill(),r.beginPath(),r.roundRect(1,-5,6,2,1),r.fill(),r.save(),r.translate(2,-14),r.rotate(-0.15),r.fillStyle="#c41e1e",r.beginPath(),r.moveTo(-6,-1),r.bezierCurveTo(-2,-10,6,-12,8,-8),r.lineTo(4,-1),r.closePath(),r.fill(),r.fillStyle="#fff",r.beginPath(),r.roundRect(-7,-1,14,4,2),r.fill(),r.beginPath(),r.arc(10,-9,3.5,0,Math.PI*2),r.fill(),r.restore(),r.restore()}else{r.save(),r.translate(0,-34);let V=r.createRadialGradient(-3,-4,2,0,0,12);V.addColorStop(0,"#b38a6a"),V.addColorStop(1,"#8d6e53"),r.fillStyle=V,r.beginPath(),r.arc(0,0,12,0,Math.PI*2),r.fill(),r.fillStyle="#1a1a1a",r.beginPath(),r.arc(0,5,10.5,0.12,Math.PI-0.12),r.fill(),r.fillStyle="#8d6e53",r.beginPath(),r.arc(0,1.5,5,0,Math.PI*2),r.fill(),r.fillStyle="#7f1d1d",r.beginPath(),r.arc(-4,-2,2.2,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(4,-2,2.2,0,Math.PI*2),r.fill(),r.fillStyle="#ef4444",r.beginPath(),r.arc(-4,-2,1,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(4,-2,1,0,Math.PI*2),r.fill(),r.fillStyle="#0f0f0f",r.beginPath(),r.arc(-4,-2,0.6,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(4,-2,0.6,0,Math.PI*2),r.fill(),r.fillStyle="#2a0f0f",r.beginPath(),r.ellipse(0,5.5,4.2,2.6,0,0,Math.PI*2),r.fill(),r.fillStyle="#f5f5dc";for(let re=-3;re<=2;re+=2)r.fillRect(re,4.3,1.2,1.6);r.fillStyle="#1a1a1a",r.beginPath(),r.roundRect(-7,-5.5,6,2.2,1),r.fill(),r.beginPath(),r.roundRect(1,-5.5,6,2.2,1),r.fill(),r.fillStyle="rgba(255,255,255,0.22)",r.beginPath(),r.ellipse(-3,-4,3.5,2.5,-0.4,0,Math.PI*2),r.fill(),r.restore()}}else{r.rotate(-0.08);let ee=(j,X,V)=>{let re=V?N*0.7:-N*0.7;r.save(),r.translate(j,X+re),r.fillStyle="#5c4a32",r.beginPath(),r.roundRect(-4,0,8,14,2.5),r.fill(),r.beginPath(),r.moveTo(-4,14),r.lineTo(-2,16),r.lineTo(0,14),r.lineTo(2,16.5),r.lineTo(4,14),r.closePath(),r.fill(),r.fillStyle="#d6c7a8",r.fillRect(-4.5,6,9,4),r.strokeStyle="rgba(0,0,0,0.15)",r.lineWidth=0.5;for(let Z=0;Z<3;Z++)r.beginPath(),r.moveTo(-4.5,7+Z),r.lineTo(4.5,7+Z),r.stroke();r.fillStyle="#2a1f15",r.beginPath(),r.roundRect(-4.2,16,8.4,5,1.5),r.fill(),r.restore()};ee(-4.5,6,!0),ee(4.5,6,!1);let G=18,se=20;r.fillStyle="#5c4a32",r.beginPath(),r.roundRect(-G/2,-14,G,se,3),r.fill(),r.beginPath(),r.moveTo(-9,6),r.lineTo(-6,8),r.lineTo(-3,6),r.lineTo(0,8.5),r.lineTo(3,6),r.lineTo(6,8),r.lineTo(9,6),r.closePath(),r.fill(),r.strokeStyle="rgba(0,0,0,0.2)",r.lineWidth=0.7,r.beginPath(),r.moveTo(-2,-12),r.lineTo(-1,4),r.stroke(),r.fillStyle="#3f2a1a",r.beginPath(),r.roundRect(-G/2+1,-13,G-2,14,2.5),r.fill(),r.strokeStyle="#2a1f15",r.lineWidth=0.8;for(let j=0;j<3;j++){let X=-10+j*4;r.beginPath(),r.moveTo(-2,X),r.lineTo(2,X+0.8),r.stroke()}r.strokeStyle="rgba(0,0,0,0.25)",r.lineWidth=0.6,r.beginPath(),r.roundRect(-G/2+1,-13,G-2,14,2.5),r.stroke();let oe=H>0?(1-H/0.28)*1.2:Me?Math.sin(He)*0.3:0;if(r.save(),r.translate(10,-11),r.rotate(oe),r.fillStyle="#c9a88a",r.beginPath(),r.roundRect(-3,-2.5,12,5,2.5),r.fill(),r.fillStyle="#1f1f1f",r.beginPath(),r.roundRect(7,-3,6,6,1.5),r.fill(),r.fillStyle="#c9a88a",r.beginPath(),r.arc(14,0,2,0,Math.PI*2),r.fill(),r.translate(14,0),r.fillStyle="#1a1a1a",r.fillRect(-2,-1.2,6,2.4),r.fillStyle="#7a7a7a",r.beginPath(),r.moveTo(4,-1.5),r.lineTo(18,-0.5),r.lineTo(19,0),r.lineTo(18,0.5),r.lineTo(4,1.5),r.closePath(),r.fill(),r.fillStyle="#4a1111",r.beginPath(),r.arc(12,0,1.2,0,Math.PI*2),r.fill(),r.strokeStyle="rgba(255,255,255,0.35)",r.lineWidth=0.4,r.beginPath(),r.moveTo(4,-1.5),r.lineTo(19,0),r.stroke(),r.restore(),r.save(),r.translate(-10,-11),r.rotate(-oe*0.5),r.fillStyle="#c9a88a",r.beginPath(),r.roundRect(-9,-2.5,12,5,2.5),r.fill(),r.fillStyle="#1f1f1f",r.beginPath(),r.roundRect(-11,-3,6,6,1.5),r.fill(),r.restore(),R==="halloween"){r.save(),r.translate(0,-24);let j=0.8+Math.sin(Y*0.008+x)*0.2,X=r.createRadialGradient(-3,-3,1,0,0,12);X.addColorStop(0,"#ffb86a"),X.addColorStop(0.5,"#ff7518"),X.addColorStop(1,"#a64d06"),r.fillStyle=X,r.beginPath(),r.ellipse(0,0,11,9.5,0,0,Math.PI*2),r.fill(),r.strokeStyle="rgba(60,20,0,0.3)",r.lineWidth=1;for(let V=-1;V<=1;V++)r.beginPath(),r.moveTo(V*3.5,-8),r.lineTo(V*2,8),r.stroke();r.fillStyle="#2d5016",r.fillRect(-1.5,-12,3,5),r.save(),r.shadowColor="#ffeb3b",r.shadowBlur=10*j,r.fillStyle="#0f0f0f",r.beginPath(),r.moveTo(-6,-2),r.lineTo(-3,1),r.lineTo(-7,0.5),r.closePath(),r.fill(),r.beginPath(),r.moveTo(6,-2),r.lineTo(3,1),r.lineTo(7,0.5),r.closePath(),r.fill(),r.beginPath(),r.moveTo(-6,4),r.lineTo(-3,6),r.lineTo(-1,4),r.lineTo(1,6),r.lineTo(3,4),r.lineTo(6,4),r.lineTo(3,5.5),r.lineTo(0,7),r.closePath(),r.fill(),r.restore(),r.globalAlpha=0.22*j,r.fillStyle="#ffeb3b",r.beginPath(),r.ellipse(0,2,6,4,0,0,Math.PI*2),r.fill(),r.globalAlpha=1,r.restore()}else if(R==="christmas"){r.save(),r.translate(0,-24);let j=r.createRadialGradient(-2,-2,1,0,0,8);j.addColorStop(0,"#e8d0b0"),j.addColorStop(1,"#c9a88a"),r.fillStyle=j,r.beginPath(),r.arc(0,0,7.5,0,Math.PI*2),r.fill(),r.fillStyle="#2a1f15",r.beginPath(),r.arc(0,-1,9,Math.PI,0),r.fill(),r.strokeStyle="#7f1d1d",r.lineWidth=1,r.beginPath(),r.moveTo(-4,-2),r.lineTo(3,3),r.stroke(),r.fillStyle="#7f1d1d",r.beginPath(),r.arc(-2.5,-1,1.1,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(2.5,-1,1.1,0,Math.PI*2),r.fill(),r.fillStyle="#3f2a1a",r.beginPath(),r.arc(0,3,5,0.2,Math.PI-0.2),r.fill(),r.save(),r.translate(3,-10),r.rotate(-0.26),r.fillStyle="#c41e1e",r.beginPath(),r.moveTo(-6,-1),r.bezierCurveTo(-2,-8,5,-10,7,-6),r.lineTo(3,-1),r.closePath(),r.fill(),r.fillStyle="#fff",r.beginPath(),r.roundRect(-7,-1,13,3.5,1.5),r.fill(),r.beginPath(),r.arc(8,-7,2.8,0,Math.PI*2),r.fill(),r.restore(),r.restore()}else{r.save(),r.translate(0,-24);let j=r.createRadialGradient(-2,-2,1,0,0,8);if(j.addColorStop(0,"#e8d0b0"),j.addColorStop(1,"#c9a88a"),r.fillStyle=j,r.beginPath(),r.arc(0,0,7.5,0,Math.PI*2),r.fill(),r.fillStyle="#2a1f15",r.beginPath(),r.arc(0,-1,9,Math.PI,0),r.fill(),r.beginPath(),r.ellipse(0,-2,9,5,0,Math.PI,0),r.fill(),r.strokeStyle="#991b1b",r.lineWidth=1,r.beginPath(),r.moveTo(-4,-1.5),r.lineTo(2,2.5),r.stroke(),r.fillStyle="#7f1d1d",r.beginPath(),r.arc(-2.5,-1,1.1,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(2.5,-1,1.1,0,Math.PI*2),r.fill(),r.fillStyle="#1a1a1a",r.beginPath(),r.arc(-2.5,-1,0.5,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(2.5,-1,0.5,0,Math.PI*2),r.fill(),r.fillStyle="#5c3a1a",r.beginPath(),r.arc(0,3,4.5,0.25,Math.PI-0.25),r.fill(),r.fillStyle="#c9a88a",r.beginPath(),r.arc(0,1,2.5,0,Math.PI*2),r.fill(),H>0.1)r.fillStyle="#2a1f15",r.beginPath(),r.ellipse(0,3.5,2.5,1.5,0,0,Math.PI*2),r.fill(),r.fillStyle="#d6c76a",r.fillRect(-1.5,3,0.8,1),r.fillRect(0,3,0.8,1);r.fillStyle="rgba(0,0,0,0.25)",r.beginPath(),r.arc(-2,-3,8,0,Math.PI*2),r.fill(),r.restore()}}if(d.hitFlash>0)r.save(),r.globalAlpha=d.hitFlash*0.7,r.fillStyle="#ffffff",r.beginPath(),r.ellipse(0,-2,ou/2+8,Fo/2+4,0,0,Math.PI*2),r.fill(),r.globalAlpha=d.hitFlash,r.strokeStyle="#ef4444",r.lineWidth=1.5,r.stroke(),r.restore();r.restore()},O=(r,d,M)=>{let U=xt(d),{x:_,y:ke,w:R,h:Y}=de;if(r.save(),r.translate(_-R/2,ke-Y/2),r.fillStyle="rgba(0,0,0,0.28)",r.beginPath(),r.ellipse(R/2,Y+18,R*0.62,28,0,0,Math.PI*2),r.fill(),d==="christmas")r.fillStyle="#ffffff",r.beginPath(),r.ellipse(R*0.5,Y+8,R*0.58,18,0,0,Math.PI*2),r.fill();let x=d==="christmas"?"#5a6470":d==="halloween"?"#3f3a45":"#4b5563";r.fillStyle=x,r.fillRect(0,40,R,Y-40),r.strokeStyle=d==="halloween"?"rgba(0,0,0,0.25)":"rgba(0,0,0,0.18)",r.lineWidth=1;for(let T=50;T<Y;T+=22){let H=T/22%2===0?0:20;for(let A=H;A<R;A+=40)r.strokeRect(A,T,40,22)}r.fillStyle=d==="halloween"?"#1f1a23":"#111827",r.beginPath(),r.moveTo(R/2-48,Y),r.lineTo(R/2-48,Y-92),r.arc(R/2,Y-92,48,Math.PI,0),r.lineTo(R/2+48,Y),r.closePath(),r.fill(),r.fillStyle="#3f3f46",r.fillRect(R/2-52,Y-12,104,14),r.fillStyle="#3b2f2f",r.fillRect(R/2-36,Y-90,72,90),r.strokeStyle="#211a12",r.lineWidth=2;for(let T=1;T<4;T++)r.beginPath(),r.moveTo(R/2-36+T*18,Y-90),r.lineTo(R/2-36+T*18,Y),r.stroke();if(d==="christmas")r.save(),r.translate(R/2,Y-52),r.fillStyle="#14532d",r.beginPath(),r.arc(0,0,22,0,Math.PI*2),r.fill(),r.fillStyle="#0f2f1a",r.beginPath(),r.arc(0,0,11,0,Math.PI*2),r.fill(),r.fillStyle="#ef4444",r.beginPath(),r.arc(0,14,6,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(-5,12,3,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(5,12,3,0,Math.PI*2),r.fill(),r.restore();if(d==="halloween"){let T=(H)=>{r.save(),r.translate(R/2+H,Y-8),r.fillStyle="#ff7518",r.beginPath(),r.arc(0,0,14,0,Math.PI*2),r.fill(),r.fillStyle="#111",r.beginPath(),r.moveTo(-5,-3),r.lineTo(-2,1),r.lineTo(-6,0),r.closePath(),r.fill(),r.beginPath(),r.moveTo(5,-3),r.lineTo(2,1),r.lineTo(6,0),r.closePath(),r.fill(),r.shadowColor="#ffeb3b",r.shadowBlur=6,r.fillStyle="#111",r.fillRect(-5,4,10,2),r.shadowBlur=0,r.restore()};T(-72),T(72)}let m=(T)=>{r.fillStyle=d==="halloween"?"#2e2a33":"#374151",r.fillRect(T,0,110,Y),r.strokeStyle="rgba(0,0,0,0.18)";for(let A=12;A<Y;A+=20)r.strokeRect(T,A,110,20);r.fillStyle=r.fillStyle;for(let A=0;A<4;A++)r.fillRect(T+A*28,0,16,18);if(r.fillStyle=d==="christmas"?"#7f1d1d":"#1f2937",r.beginPath(),r.moveTo(T-8,0),r.lineTo(T+55,-68),r.lineTo(T+118,0),r.closePath(),r.fill(),d==="christmas"){r.fillStyle="#ffffff",r.beginPath(),r.moveTo(T-8,0),r.lineTo(T+55,-58),r.lineTo(T+118,0),r.quadraticCurveTo(T+55,-6,T-8,0),r.fill(),r.fillStyle="rgba(180,220,255,0.9)";for(let A=0;A<5;A++){let Se=T+10+A*22;r.beginPath(),r.moveTo(Se,2),r.lineTo(Se+3,10+Math.random()*6),r.lineTo(Se-2,2),r.fill()}}let H=90;if(r.fillStyle=d==="halloween"?"#ff7518":"#fbbf24",d==="halloween")r.shadowColor="#ff7518",r.shadowBlur=14;r.fillRect(T+38,H,34,28),r.shadowBlur=0,r.fillStyle="#111827",r.fillRect(T+54,H,3,28),r.fillRect(T+38,H+12,34,3),r.fillStyle=d==="halloween"?"#4b2e0f":d==="christmas"?"#22c55e":"#dc2626",r.beginPath(),r.moveTo(T+55,-68),r.lineTo(T+55,-96),r.lineTo(T+86,-88),r.lineTo(T+55,-80),r.closePath(),r.fill()};if(m(-28),m(R-82),d==="christmas"){let T=["#facc15","#ef4444","#22c55e","#3b82f6"],H=Math.sin(M*0.005)>0;r.lineWidth=2,r.strokeStyle="#1f2937",r.beginPath(),r.moveTo(0,46),r.bezierCurveTo(R*0.25,58,R*0.75,58,R,46),r.stroke();for(let A=0;A<14;A++){let Se=A/13*R,We=46+Math.sin(A/13*Math.PI)*10;r.fillStyle=T[A%4],r.globalAlpha=A%2===0?H?1:0.35:H?0.35:1,r.beginPath(),r.arc(Se,We+6,4,0,Math.PI*2),r.fill()}r.globalAlpha=1}if(d==="halloween"){r.strokeStyle="rgba(200,200,200,0.28)",r.lineWidth=0.8;let T=(H,A)=>{r.save(),r.translate(H,A);for(let Se=6;Se<32;Se+=6)r.beginPath(),r.arc(0,0,Se,0,Math.PI*0.55),r.stroke();for(let Se=0;Se<4;Se++){let We=Se/4*Math.PI*0.5;r.beginPath(),r.moveTo(0,0),r.lineTo(Math.cos(We)*30,Math.sin(We)*30),r.stroke()}r.restore()};T(12,48),T(R-12,48)}r.restore()},D=(r,d,M,U)=>{if(r.save(),r.translate(d.x,d.y),r.rotate(d.rot),r.scale(d.size,d.size),d.type==="tree"){let _=r.createLinearGradient(-6,0,6,0);_.addColorStop(0,"#4b2e1a"),_.addColorStop(1,"#7a4a2a"),r.fillStyle=_,r.fillRect(-6,-6,12,24),r.fillStyle="#1b3814",r.beginPath(),r.arc(0,-18,22,0,Math.PI*2),r.fill(),r.fillStyle="#234a1a",r.beginPath(),r.arc(-8,-26,18,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(8,-24,16,0,Math.PI*2),r.fill()}else if(d.type==="deadTree"){if(r.fillStyle="#4a4a4a",r.fillRect(-5,-4,10,28),r.strokeStyle="#3a3a3a",r.lineWidth=2,r.beginPath(),r.moveTo(0,0),r.lineTo(-14,-18),r.moveTo(0,6),r.lineTo(12,-10),r.stroke(),d.variant===1)r.fillStyle="#8b4513",r.beginPath(),r.arc(-14,-18,5,0,Math.PI*2),r.fill(),r.beginPath(),r.arc(12,-10,4,0,Math.PI*2),r.fill();if(Math.random()<0.01);r.strokeStyle="rgba(200,200,200,0.25)",r.lineWidth=0.6,r.beginPath(),r.moveTo(-14,-18),r.lineTo(12,-10),r.stroke()}else if(d.type==="rock"){let _=d.variant===1||M==="christmas";if(r.fillStyle=_?"#8b949e":"#6b7280",r.beginPath(),r.ellipse(0,0,16,11,0,0,Math.PI*2),r.fill(),r.fillStyle=_?"#a3adb8":"#4b5563",r.beginPath(),r.ellipse(-3,-3,8,5,0,0,Math.PI*2),r.fill(),_)r.fillStyle="#ffffff",r.beginPath(),r.ellipse(0,-5,12,5,0,0,Math.PI*2),r.fill()}else if(d.type==="pumpkin"){r.fillStyle="#ff7518",r.beginPath(),r.ellipse(0,0,14,10,0,0,Math.PI*2),r.fill(),r.strokeStyle="rgba(0,0,0,0.22)",r.lineWidth=1;for(let _=-1;_<=1;_++)r.beginPath(),r.moveTo(_*5,-9),r.lineTo(_*3,9),r.stroke();r.fillStyle="#2d5016",r.fillRect(-2,-12,4,5)}else if(d.type==="grave")r.fillStyle="#6b7280",r.fillRect(-12,-18,24,26),r.fillStyle="#4b5563",r.fillRect(-14,-20,28,5),r.fillStyle="#1f2937",r.font="700 10px Inter",r.fillText("RIP",-10,-2),r.fillStyle="rgba(34,197,94,0.35)",r.fillRect(-12,6,24,4);else if(d.type==="pine"){if(r.fillStyle="#5a2f14",r.fillRect(-4,8,8,14),r.fillStyle="#0f3d0f",r.beginPath(),r.moveTo(0,-28),r.lineTo(-20,6),r.lineTo(20,6),r.closePath(),r.fill(),r.beginPath(),r.moveTo(0,-18),r.lineTo(-16,2),r.lineTo(16,2),r.closePath(),r.fill(),M==="christmas")r.fillStyle="#ffffff",r.beginPath(),r.moveTo(0,-28),r.lineTo(-8,-16),r.lineTo(8,-16),r.closePath(),r.fill(),r.beginPath(),r.moveTo(0,-18),r.lineTo(-6,-10),r.lineTo(6,-10),r.closePath(),r.fill()}else if(d.type==="gift"){let _=d.variant%2===0;r.fillStyle=_?"#c41e1e":"#14532d",r.fillRect(-12,-12,24,18),r.fillStyle="#facc15",r.fillRect(-2,-12,4,18),r.fillRect(-12,-2,24,4),r.fillStyle="#fde68a",r.beginPath(),r.arc(0,-14,6,0,Math.PI*2),r.fill(),r.beginPath(),r.moveTo(-6,-14),r.lineTo(-10,-20),r.lineTo(-2,-14),r.fill(),r.beginPath(),r.moveTo(6,-14),r.lineTo(10,-20),r.lineTo(2,-14),r.fill()}r.restore()};Ce.useEffect(()=>{let r=e.current;if(!r)return;let d=r.getContext("2d",{alpha:!1}),M=n.current,U=M?.getContext("2d"),_=performance.now(),ke=0,R=(Y)=>{ke=requestAnimationFrame(R);let x=Math.min(0.05,(Y-_)/1000);_=Y;let m=f.current;if(!m||g.current!=="playing")return;let T=v.current,H=xt(T);m.time+=x*1000;let A=z.current,Se=k.current,We=0,Me=0;if(A.has("w")||A.has("arrowup"))Me-=1;if(A.has("s")||A.has("arrowdown"))Me+=1;if(A.has("a")||A.has("arrowleft"))We-=1;if(A.has("d")||A.has("arrowright"))We+=1;if(Se.active)We+=Se.dx,Me+=Se.dy;let He=Math.hypot(We,Me);if(He>0){if(We/=He,Me/=He,He>1);}let N=m.player;if(N.dashTime>0){if(N.dashTime-=x,N.dashTime<=0)N.isDashing=!1}if(N.dashCd>0)N.dashCd-=x;if(N.attackCd>0)N.attackCd-=x;if(N.isAttacking>0){if(N.isAttacking-=x,N.isAttacking<=0)N.isAttacking=0}if(N.comboTimer>0){if(N.comboTimer-=x,N.comboTimer<=0)N.combo=0}if(N.hitFlash>0)N.hitFlash-=x*3;let lu=We*N.speed,uu=Me*N.speed;if(N.isDashing)lu*=2.4,uu*=2.4;if(N.vx=lu,N.vy=uu,He>0.1)N.dir=Math.atan2(Me,We);if(N.x+=N.vx,N.y+=N.vy,N.x=Math.max(30,Math.min(ne-30,N.x)),N.y=Math.max(30,Math.min(pe-30,N.y)),N.isDashing){if(Math.random()<0.6)m.particles.push({x:N.x+(Math.random()-0.5)*10,y:N.y+(Math.random()-0.5)*10,vx:(Math.random()-0.5)*1,vy:(Math.random()-0.5)*1,life:0.35,maxLife:0.35,size:4+Math.random()*4,color:T==="halloween"?"#ff9a3c":T==="christmas"?"#a5e8ff":"#cbd5e1",type:"trail"})}for(let a of m.enemies){if(a.hitFlash>0)a.hitFlash-=x*4;if(a.isAttacking>0)a.isAttacking-=x;if(a.attackCd>0)a.attackCd-=x;let w=Math.hypot(a.x-N.x,a.y-N.y),B=Math.hypot(a.x-m.castle.x,a.y-m.castle.y),c=m.castle.x,ze=m.castle.y;if(w<600)c=N.x,ze=N.y;a.targetX=c,a.targetY=ze;let Ye=Math.atan2(ze-a.y,c-a.x);if(a.dir=Ye,Math.hypot(c-a.x,ze-a.y)>a.radius+(c===N.x?28:40))a.vx=Math.cos(Ye)*a.speed,a.vy=Math.sin(Ye)*a.speed;else if(a.vx*=0.88,a.vy*=0.88,a.attackCd<=0){if(a.isAttacking=0.28,a.attackCd=a.kind==="brute"?1.6:0.9,c===N.x&&w<56){if(!N.isDashing){let Ve=a.kind==="brute"?28:16;if(N.hp-=Ve,N.hitFlash=1,m.particles.push(...Array.from({length:8},()=>({x:N.x,y:N.y,vx:(Math.random()-0.5)*5,vy:(Math.random()-0.5)*5-1,life:0.45,maxLife:0.45,size:3+Math.random()*3,color:T==="halloween"?"#ff7518":T==="christmas"?Math.random()>0.5?"#ef4444":"#ffffff":"#ef4444",type:"blood"}))),m.dmgTexts.push({x:N.x,y:N.y-20,vy:-28,life:0.9,text:`-${Ve}`,color:"#ffaaaa",crit:!1}),J("hit"),m.camera.shake=8,N.hp<=0)N.hp=0,g.current="defeat",i("defeat")}}else if(c!==N.x&&B<m.castle.w/2+20){if(m.castle.hp-=a.kind==="brute"?14:7,J("castleHit"),m.camera.shake=10,m.particles.push(...Array.from({length:10},()=>({x:m.castle.x+(Math.random()-0.5)*80,y:m.castle.y+m.castle.h/2-60,vx:(Math.random()-0.5)*4,vy:-Math.random()*3,life:0.6,maxLife:0.6,size:4,color:"#9ca3af",type:"blood"}))),m.castle.hp<=0)m.castle.hp=0,g.current="defeat",i("defeat")}}a.x+=a.vx,a.y+=a.vy;for(let Ve of m.enemies){if(Ve===a)continue;let Hn=a.x-Ve.x,ul=a.y-Ve.y,ol=Math.hypot(Hn,ul),ns=a.radius+Ve.radius+2;if(ol<ns&&ol>0.01){let rs=(ns-ol)*0.12;a.x+=Hn/ol*rs,a.y+=ul/ol*rs}}}for(let a of m.allies){if(a.hitFlash>0)a.hitFlash-=x*4;if(a.isAttacking>0)a.isAttacking-=x;if(a.attackCd>0)a.attackCd-=x;let w=null,B=1e9;for(let Ve of m.enemies){let Hn=Math.hypot(Ve.x-a.x,Ve.y-a.y);if(Hn<B)B=Hn,w=Ve}let c,ze;if(w&&B<700)c=w.x,ze=w.y,a.targetId=1;else c=m.castle.x+(Math.random()-0.5)*260,ze=m.castle.y+(Math.random()-0.5)*160,a.targetId=null;let Ye=Math.atan2(ze-a.y,c-a.x);if(a.dir=Ye,Math.hypot(c-a.x,ze-a.y)>a.radius+30)a.vx=Math.cos(Ye)*(a.targetId?2.6:1.6),a.vy=Math.sin(Ye)*(a.targetId?2.6:1.6);else if(a.vx*=0.86,a.vy*=0.86,w&&B<58&&a.attackCd<=0){if(a.isAttacking=0.24,a.attackCd=1,w.hp-=18,w.hitFlash=1,m.particles.push(...Array.from({length:6},()=>({x:w.x,y:w.y,vx:(Math.random()-0.5)*4,vy:(Math.random()-0.5)*4,life:0.4,maxLife:0.4,size:3,color:T==="halloween"?"#ff7518":T==="christmas"?Math.random()>0.5?"#ef4444":"#fff":"#ef4444",type:"blood"}))),m.dmgTexts.push({x:w.x,y:w.y-16,vy:-32,life:0.75,text:"-18",color:"#ffd5d5",crit:!1}),w.x+=Math.cos(Ye)*14,w.y+=Math.sin(Ye)*14,J("hit"),w.hp<=0){let Ve=m.enemies.indexOf(w);if(Ve>=0)m.enemies.splice(Ve,1);if(m.particles.push(...Array.from({length:14},()=>({x:w.x,y:w.y,vx:(Math.random()-0.5)*6,vy:(Math.random()-0.5)*6,life:0.6,maxLife:0.6,size:4+Math.random()*3,color:H.hpA,type:"blood"}))),m.allies.length<12&&Math.random()<0.42)m.allies.push({x:m.castle.x+(Math.random()-0.5)*120,y:m.castle.y+(Math.random()-0.5)*60,vx:0,vy:0,radius:18,hp:80,maxHp:80,speed:2.4,dir:0,attackCd:0,hitFlash:0,isAttacking:0,targetId:null}),J("spawn")}}a.x+=a.vx,a.y+=a.vy}if(N.isAttacking>0.05&&N.isAttacking<0.22){if(!N._hitDone){N._hitDone=!0;let a=N.combo===0?25:N.combo===1?25:40,w=N.combo===2;for(let B of[...m.enemies]){let c=B.x-N.x,ze=B.y-N.y;if(Math.hypot(c,ze)<110){let iu=Math.atan2(ze,c)-N.dir,Ve=Math.atan2(Math.sin(iu),Math.cos(iu));if(Math.abs(Ve)<120*Math.PI/180/2){B.hp-=a,B.hitFlash=1;let Hn=22+(w?18:0);if(B.x+=Math.cos(N.dir)*Hn,B.y+=Math.sin(N.dir)*Hn,m.particles.push(...Array.from({length:w?12:7},()=>({x:B.x,y:B.y,vx:(Math.random()-0.5)*5,vy:(Math.random()-0.5)*5,life:0.5,maxLife:0.5,size:w?5:3,color:T==="halloween"?"#ff7518":T==="christmas"?Math.random()>0.5?"#ef4444":"#ffffff":"#ef4444",type:"blood"}))),m.dmgTexts.push({x:B.x,y:B.y-18,vy:-38,life:0.85,text:`-${a}${w?"!":""}`,color:w?"#fde68a":"#ffcccc",crit:w}),B.hp<=0){let ul=m.enemies.indexOf(B);if(ul>=0)m.enemies.splice(ul,1);if(m.particles.push(...Array.from({length:16},()=>({x:B.x,y:B.y,vx:(Math.random()-0.5)*6,vy:(Math.random()-0.5)*6,life:0.65,maxLife:0.65,size:4+Math.random()*3,color:H.hpA,type:"blood"}))),m.allies.length<12&&Math.random()<0.38)m.allies.push({x:m.castle.x+(Math.random()-0.5)*120,y:m.castle.y+(Math.random()-0.5)*60,vx:0,vy:0,radius:18,hp:80,maxHp:80,speed:2.4,dir:0,attackCd:0,hitFlash:0,isAttacking:0,targetId:null}),J("spawn")}}}}J("hit"),m.camera.shake=w?12:6}}else N._hitDone=!1;for(let a=m.particles.length-1;a>=0;a--){let w=m.particles[a];if(w.x+=w.vx,w.y+=w.vy,w.vy+=w.type==="blood"?0.18:0,w.life-=x,w.life<=0)m.particles.splice(a,1)}for(let a=m.dmgTexts.length-1;a>=0;a--){let w=m.dmgTexts[a];if(w.y+=w.vy*x,w.life-=x,w.life<=0)m.dmgTexts.splice(a,1)}if(T==="christmas")for(let a of m.snow){if(a.y+=a.speed,a.x+=Math.sin(m.time*0.001+a.phase)*0.6,a.phase+=x*0.8,a.y>pe)a.y=-10,a.x=Math.random()*ne;if(a.x<0)a.x=ne;if(a.x>ne)a.x=0}if(T==="halloween"){for(let a of m.bats){if(a.x+=a.vx,a.y+=a.vy+Math.sin(m.time*0.002+a.wing)*0.6,a.wing+=x*12,a.x<0||a.x>ne)a.vx*=-1;if(a.y<0||a.y>pe*0.7)a.vy*=-1}for(let a of m.fog){if(a.x+=a.vx,a.y+=a.vy,a.x<-100)a.x=ne+100;if(a.x>ne+100)a.x=-100;if(a.y<-100)a.y=pe+100;if(a.y>pe+100)a.y=-100}}if(m.enemies.length===0&&g.current==="playing")if(m.wave>=m.maxWaves)g.current="victory",i("victory"),J("wave");else{m.wave++,J("wave");let a=8+m.wave*3+Math.floor(Math.random()*4);p(m,a),s((w)=>({...w,wave:m.wave,enemies:m.enemies.length}))}let{x:ou,y:Fo}=N;if(m.camera.x+=(ou-m.camera.x)*0.12,m.camera.y+=(Fo-m.camera.y)*0.12,m.camera.shake>0){if(m.camera.shake*=Math.pow(0.85,x*60),m.camera.shake<0.2)m.camera.shake=0}let tn=window.devicePixelRatio||1,ue=r.clientWidth,he=r.clientHeight;if(r.width!==ue*tn||r.height!==he*tn)r.width=ue*tn,r.height=he*tn;d.setTransform(tn,0,0,tn,0,0),d.clearRect(0,0,ue,he),d.save();let ee=(Math.random()-0.5)*m.camera.shake,G=(Math.random()-0.5)*m.camera.shake;d.translate(ue/2+ee-m.camera.x,he/2+G-m.camera.y),d.fillStyle=H.ground,d.fillRect(0,0,ne,pe),d.fillStyle=H.ground2,d.globalAlpha=0.22;for(let a=0;a<400;a++){let w=a*137%ne,B=a*281%pe;d.fillRect(w,B,3,3)}d.globalAlpha=1,d.strokeStyle=H.grid,d.lineWidth=1;let se=120,oe=m.camera.x-ue/2-150,j=m.camera.x+ue/2+150,X=m.camera.y-he/2-150,V=m.camera.y+he/2+150,re=Math.floor(oe/se)*se,Z=Math.ceil(j/se)*se,Fe=Math.floor(X/se)*se,Ke=Math.ceil(V/se)*se;d.beginPath();for(let a=re;a<=Z;a+=se)d.moveTo(a,X),d.lineTo(a,V);for(let a=Fe;a<=Ke;a+=se)d.moveTo(oe,a),d.lineTo(j,a);d.stroke(),d.fillStyle=H.speck,d.globalAlpha=0.18;for(let a=0;a<120;a++){let w=a*523%ne,B=a*877%pe;if(w>=oe&&w<=j&&B>=X&&B<=V)d.fillRect(w,B,2,2)}if(d.globalAlpha=1,T==="halloween")for(let a of m.fog){if(a.x+a.size<oe||a.x-a.size>j||a.y+a.size<X||a.y-a.size>V)continue;d.fillStyle=a.color,d.globalAlpha=a.alpha,d.beginPath(),d.arc(a.x,a.y,a.size,0,Math.PI*2),d.fill(),d.globalAlpha=1}for(let a of m.decorations){if(a.x<oe-80||a.x>j+80||a.y<X-80||a.y>V+80)continue;D(d,a,T,m.time)}O(d,T,m.time);for(let a of m.particles){if(a.type!=="blood")continue;if(a.x<oe-20||a.x>j+20||a.y<X-20||a.y>V+20)continue;let w=a.life/a.maxLife;d.globalAlpha=w,d.fillStyle=a.color,d.beginPath(),d.arc(a.x,a.y,a.size*w,0,Math.PI*2),d.fill(),d.globalAlpha=1}if(N.isAttacking>0){let w=110*(1-N.isAttacking/0.28);d.save(),d.translate(N.x,N.y),d.rotate(N.dir),d.strokeStyle=T==="halloween"?"rgba(255,140,30,0.85)":T==="christmas"?"rgba(255,255,255,0.9)":"rgba(255,255,255,0.85)",d.lineWidth=3,d.beginPath(),d.arc(0,0,w,-0.9,0.9),d.stroke(),d.strokeStyle=T==="halloween"?"rgba(255,180,80,0.35)":"rgba(255,255,255,0.25)",d.lineWidth=10,d.beginPath(),d.arc(0,0,w*0.85,-1,1),d.stroke(),d.restore()}for(let a of m.allies)E(d,a,"#64748b","#334155","spear","ally",T,m.time);for(let a of m.enemies){let w=a.kind==="brute"?"#44403c":"#57534e",B=a.kind==="brute"?"#7c2d12":"#a16207",c=a.kind==="brute"?"axe":"dagger";E(d,a,w,B,c,"enemy",T,m.time)}E(d,N,"#94a3b8","#1e293b","sword","player",T,m.time);for(let a of m.particles){if(a.type==="blood")continue;if(a.x<oe-20||a.x>j+20||a.y<X-20||a.y>V+20)continue;let w=a.life/a.maxLife;d.globalAlpha=w*0.9,d.fillStyle=a.color,d.beginPath(),d.arc(a.x,a.y,a.size,0,Math.PI*2),d.fill(),d.globalAlpha=1}d.font="700 14px Inter",d.textAlign="center";for(let a of m.dmgTexts){let w=Math.min(1,a.life*2);d.globalAlpha=w,d.fillStyle=a.crit?"#fde68a":a.color,d.strokeStyle="rgba(0,0,0,0.7)",d.lineWidth=3,d.strokeText(a.text,a.x,a.y),d.fillText(a.text,a.x,a.y),d.globalAlpha=1}d.save(),d.translate(m.castle.x,m.castle.y-m.castle.h/2-28);let De=160,Ae=10,mn=Math.max(0,m.castle.hp/m.castle.maxHp);if(d.fillStyle="rgba(0,0,0,0.55)",d.beginPath(),d.roundRect(-De/2-2,-Ae/2-2,De+4,Ae+4,6),d.fill(),d.fillStyle="#1f2937",d.beginPath(),d.roundRect(-De/2,-Ae/2,De,Ae,5),d.fill(),d.fillStyle=m.castle.hp<m.castle.maxHp*0.35?"#ef4444":"#22c55e",d.beginPath(),d.roundRect(-De/2,-Ae/2,De*mn,Ae,5),d.fill(),d.fillStyle="#fff",d.font="600 11px Inter",d.textAlign="center",d.fillText(`CASTLE ${Math.ceil(m.castle.hp)}`,0,-12),d.restore(),d.restore(),H.vignette){let a=d.createRadialGradient(ue/2,he/2,Math.min(ue,he)*0.35,ue/2,he/2,Math.max(ue,he)*0.9);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,0.55)"),d.fillStyle=a,d.fillRect(0,0,ue,he),d.fillStyle="rgba(255,120,0,0.06)",d.fillRect(0,0,ue,he)}if(T==="christmas"){d.fillStyle="rgba(255,255,255,0.92)";for(let a of m.snow){let w=(a.x-m.camera.x+ue/2)%ue,B=(a.y-m.camera.y+he/2)%he;if(w>-10&&w<ue+10&&B>-10&&B<he+10)d.globalAlpha=0.85,d.beginPath(),d.arc((a.x-m.camera.x+ue/2+ue)%ue,(a.y-m.camera.y+he/2+he)%he,a.size*0.55,0,Math.PI*2),d.fill(),d.globalAlpha=1}}if(T==="halloween")for(let a of m.bats){let w=a.x-m.camera.x+ue/2,B=a.y-m.camera.y+he/2;if(w<-60||w>ue+60||B<-60||B>he+60)continue;d.save(),d.translate(w,B),d.scale(a.vx>0?1:-1,1);let c=Math.sin(a.wing)*0.9;d.fillStyle="#0a0a0a",d.beginPath(),d.ellipse(0,0,6,4,0,0,Math.PI*2),d.fill(),d.beginPath(),d.moveTo(-4,0),d.quadraticCurveTo(-14,-8+c*8,-18,0),d.quadraticCurveTo(-12,2,-4,1),d.fill(),d.beginPath(),d.moveTo(4,0),d.quadraticCurveTo(14,-8+c*8,18,0),d.quadraticCurveTo(12,2,4,1),d.fill(),d.restore()}if(U&&M){let{width:a,height:w}=M;U.clearRect(0,0,a,w),U.save(),U.beginPath(),U.arc(a/2,w/2,a/2-1,0,Math.PI*2),U.clip(),U.fillStyle=T==="christmas"?"#dbeaf0":T==="halloween"?"#2a1f2f":"#2d5a1f",U.fillRect(0,0,a,w);let B=a/ne;U.fillStyle=T==="halloween"?"#ff7518":"#e5e7eb",U.fillRect(de.x*B-5,de.y*B-4,10,8),U.fillStyle="#f59e0b",U.beginPath(),U.arc(N.x*B,N.y*B,3.5,0,Math.PI*2),U.fill(),U.fillStyle="#38bdf8";for(let c of m.allies)U.beginPath(),U.arc(c.x*B,c.y*B,2.2,0,Math.PI*2),U.fill();U.fillStyle="#ef4444";for(let c of m.enemies)U.beginPath(),U.arc(c.x*B,c.y*B,2.2,0,Math.PI*2),U.fill();U.restore(),U.strokeStyle=H.hudBorder,U.lineWidth=2,U.beginPath(),U.arc(a/2,w/2,a/2-1,0,Math.PI*2),U.stroke()}if(Y%200<16)s({playerHp:Math.ceil(N.hp),castleHp:Math.ceil(m.castle.hp),wave:m.wave,enemies:m.enemies.length,allies:m.allies.length})};return ke=requestAnimationFrame(R),()=>cancelAnimationFrame(ke)},[]);let L=(r)=>{I();let d=r.currentTarget,M=d.getBoundingClientRect(),U=(R)=>{if("touches"in R)return{x:R.touches[0].clientX,y:R.touches[0].clientY};return{x:R.clientX,y:R.clientY}},_=(R)=>{let Y=U(R),x=M.left+M.width/2,m=M.top+M.height/2,T=(Y.x-x)/(M.width/2),H=(Y.y-m)/(M.height/2),A=Math.hypot(T,H);if(A>1)T/=A,H/=A;k.current={active:!0,dx:T,dy:H,id:1};let Se=d.querySelector(".stick");if(Se)Se.style.transform=`translate(${T*40}px, ${H*40}px)`},ke=()=>{k.current={active:!1,dx:0,dy:0,id:0};let R=d.querySelector(".stick");if(R)R.style.transform="translate(0px,0px)";window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",ke),window.removeEventListener("touchend",ke)};window.addEventListener("mousemove",_),window.addEventListener("touchmove",_,{passive:!1}),window.addEventListener("mouseup",ke),window.addEventListener("touchend",ke),_(r)},[Q,ve]=Ce.useState(""),K=(r)=>{ve(r),setTimeout(()=>ve(""),900)},on=()=>{I();let r=f.current;if(!r||g.current!=="playing"){K("Tap START to battle!");return}let d=r.player;if(d.attackCd>0){K(`Cooldown ${Math.ceil(d.attackCd*10)/10}s`);return}d.isAttacking=0.28,d.attackCd=0.38,d._hitDone=!1,d.combo=(d.combo+1)%3,d.comboTimer=1.4,J("swing"),K(d.combo===2?"COMBO x3!":"Slash!");let M=v.current;for(let U=0;U<6;U++){let _=d.dir+(Math.random()-0.5)*1.2;r.particles.push({x:d.x+Math.cos(_)*18,y:d.y+Math.sin(_)*18,vx:Math.cos(_)*(2+Math.random()*3),vy:Math.sin(_)*(2+Math.random()*3),life:0.18,maxLife:0.18,size:3,color:M==="halloween"?"#ffbe76":M==="christmas"?"#ffffff":"#fef3c7",type:"slash"})}},ll=()=>{I();let r=f.current;if(!r||g.current!=="playing"){K("Start the battle first!");return}let d=r.player;if(d.dashCd>0||d.isDashing){K("Dash recharging...");return}d.isDashing=!0,d.dashTime=0.22,d.dashCd=1.1,J("dash"),r.camera.shake=6,K("Dash!")};Ce.useEffect(()=>{let r=(U)=>{let _=U.key.toLowerCase();if(z.current.add(_),_===" ")U.preventDefault(),on();if(_==="shift")U.preventDefault(),ll()},d=(U)=>{z.current.delete(U.key.toLowerCase())},M=()=>{z.current.clear(),k.current.active=!1};return window.addEventListener("keydown",r),window.addEventListener("keyup",d),window.addEventListener("blur",M),window.addEventListener("visibilitychange",()=>{if(document.hidden){if(S.current?.state==="running")S.current.suspend()}else if(S.current?.state==="suspended")S.current.resume()}),()=>{window.removeEventListener("keydown",r),window.removeEventListener("keyup",d),window.removeEventListener("blur",M)}},[]);let yn=xt(l),Zd=(()=>{let r=f.current;if(!r)return 0;return Math.max(0,r.player.attackCd/0.38)})();return W("div",{className:"relative w-full h-[100dvh] overflow-hidden bg-[#0f172a] select-none touch-manipulation",style:{fontFamily:"Inter, system-ui, sans-serif",paddingTop:"var(--safe-area-inset-top,0px)"},children:[$("style",{children:`
.cinzel{font-family:Cinzel, serif}
.glass{background:rgba(15,23,42,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);}
.shine{position:relative; overflow:hidden;}
.shine::after{content:''; position:absolute; top:0; left:-60%; width:60%; height:100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent); animation: sweep 2.2s infinite;}
@keyframes sweep{0%{left:-60%} 60%{left:130%} 100%{left:130%}}
.pill{transition: all .18s ease}
.pill.active{border-color:#f59e0b !important; box-shadow:0 0 18px rgba(245,158,11,0.55), inset 0 0 12px rgba(245,158,11,0.18)}
`}),$("canvas",{ref:e,className:"absolute inset-0 w-full h-full",style:{background:yn.sky}}),W("div",{className:"absolute top-0 left-0 right-0 z-10 flex flex-col items-center pointer-events-none",children:[$("div",{className:"mt-3 flex gap-2 pointer-events-auto",children:["normal","halloween","christmas"].map((r)=>{let d=r==="normal"?"⚔ Normal":r==="halloween"?"\uD83C\uDF83 Halloween":"\uD83C\uDF84 Natal",M=l===r;return $("button",{onClick:()=>{h(r),ve(r==="normal"?"Normal mode":r==="halloween"?"Pumpkin mode! \uD83C\uDF83":"Winter mode! \uD83C\uDF84"),setTimeout(()=>ve(""),900)},className:`pill px-3.5 py-1.5 rounded-full text-[12px] font-bold tracking-wide glass border ${M?"active border-amber-400 text-amber-200":"border-white/15 text-white/80"} hover:text-white`,style:{borderWidth:M?"2px":"1px"},children:d},r)})}),W("div",{className:"mt-3 mx-3 w-full max-w-[720px] flex gap-2 px-2 pointer-events-auto",children:[W("div",{className:"flex-1 glass rounded-2xl px-3.5 py-2.5 border flex items-center gap-3",style:{borderColor:yn.hudBorder,borderWidth:l==="normal"?"1px":"2px"},children:[W("div",{className:"flex-1",children:[W("div",{className:"flex items-center justify-between mb-1",children:[$("span",{className:"cinzel text-[11px] tracking-[0.14em] text-white/70",children:"HERO"}),W("span",{className:"text-[11px] font-bold text-white/90",children:[t.playerHp,"/120"]})]}),$("div",{className:"relative h-2.5 rounded-full bg-black/50 overflow-hidden shine",children:$("div",{className:"absolute inset-y-0 left-0 rounded-full",style:{width:`${Math.max(0,t.playerHp/120*100)}%`,background:`linear-gradient(90deg, ${yn.hpA}, ${yn.hpB})`,boxShadow:`0 0 10px ${yn.hpA}88`}})})]}),$("div",{className:"w-px h-9 bg-white/10"}),W("div",{className:"flex-1",children:[W("div",{className:"flex items-center justify-between mb-1",children:[$("span",{className:"cinzel text-[11px] tracking-[0.14em] text-white/70",children:"CASTLE"}),W("span",{className:"text-[11px] font-bold text-white/90",children:[t.castleHp,"/",de.maxHp]})]}),$("div",{className:"relative h-2.5 rounded-full bg-black/50 overflow-hidden",children:$("div",{className:"absolute inset-y-0 left-0 rounded-full",style:{width:`${Math.max(0,t.castleHp/de.maxHp*100)}%`,background:"linear-gradient(90deg, #38bdf8, #22c55e)",boxShadow:"0 0 10px rgba(56,189,248,0.5)"}})})]})]}),W("div",{className:"glass rounded-2xl px-3.5 py-2.5 border flex flex-col justify-center min-w-[96px]",style:{borderColor:yn.hudBorder,borderWidth:l==="normal"?"1px":"2px"},children:[$("div",{className:"cinzel text-[10px] tracking-[0.16em] text-white/60 text-center",children:"WAVE"}),W("div",{className:"text-center font-black text-white text-[18px] leading-none mt-0.5",children:[t.wave,"/5"]}),W("div",{className:"mt-1 flex gap-2 justify-center text-[10px]",children:[W("span",{className:"text-red-300",children:["◉ ",t.enemies]}),W("span",{className:"text-sky-300",children:["◉ ",t.allies]})]})]})]})]}),W("div",{className:"absolute top-[88px] right-3 z-10 pointer-events-none",children:[$("canvas",{ref:n,width:120,height:120,className:"rounded-full shadow-[0_8px_24px_rgba(0,0,0,0.45)] bg-black/30",style:{width:120,height:120}}),$("div",{className:"absolute -bottom-1 left-1/2 -translate-x-1/2 glass px-2 py-0.5 rounded-full text-[9px] tracking-widest text-white/70 cinzel border border-white/10",children:"MAP"})]}),Q&&$("div",{className:"absolute bottom-[168px] left-1/2 -translate-x-1/2 z-30 pointer-events-none glass px-4 py-2 rounded-full border border-white/20 text-white text-[13px] font-bold shadow-[0_8px_20px_rgba(0,0,0,0.5)] animate-[pop_0.22s_ease]",children:Q}),$("style",{children:"@keyframes pop{0%{transform:translate(-50%,10px) scale(0.9); opacity:0}100%{transform:translate(-50%,0) scale(1); opacity:1}}"}),o==="playing"&&W("div",{className:"absolute bottom-0 left-0 right-0 z-10 flex justify-between items-end p-4 pb-[max(16px,env(safe-area-inset-bottom))] pointer-events-none",children:[W("div",{onTouchStart:L,onMouseDown:L,className:"pointer-events-auto relative w-[140px] h-[140px] rounded-full glass border border-white/15 flex items-center justify-center shadow-[0_10px_30px_rgba(0,0,0,0.45)]",style:{touchAction:"none"},children:[$("div",{className:"absolute inset-[12px] rounded-full border border-white/10 bg-white/[0.04]"}),$("div",{className:"stick w-[60px] h-[60px] rounded-full bg-gradient-to-br from-white to-white/70 shadow-[0_0_18px_rgba(255,255,255,0.55),0_4px_12px_rgba(0,0,0,0.35)] border border-white/40 transition-transform duration-75 will-change-transform",style:{touchAction:"none"}}),$("div",{className:"absolute bottom-2 left-1/2 -translate-x-1/2 text-[8px] tracking-[0.18em] text-white/40 cinzel",children:"MOVE"})]}),W("div",{className:"pointer-events-auto flex flex-col items-center gap-3",children:[$("button",{onClick:ll,onPointerDown:(r)=>{r.preventDefault(),ll()},className:"w-[62px] h-[62px] rounded-full glass border border-white/20 shadow-[0_8px_22px_rgba(0,0,0,0.45)] flex items-center justify-center active:scale-[0.96] transition-transform",style:{touchAction:"none"},children:$("div",{className:"w-[48px] h-[48px] rounded-full bg-gradient-to-br from-sky-300 to-sky-500 flex items-center justify-center text-[20px] shadow-[0_0_16px_rgba(56,189,248,0.7)]",children:"\uD83D\uDCA8"})}),W("button",{ref:P,onClick:on,onPointerDown:(r)=>{r.preventDefault(),on()},className:"relative w-[110px] h-[110px] rounded-full glass border border-white/20 shadow-[0_12px_32px_rgba(0,0,0,0.55)] flex items-center justify-center active:scale-[0.97] transition-transform",style:{touchAction:"none"},children:[W("svg",{className:"absolute inset-0 w-full h-full -rotate-90",viewBox:"0 0 100 100",children:[$("circle",{cx:"50",cy:"50",r:"46",stroke:"rgba(255,255,255,0.12)",strokeWidth:"6",fill:"none"}),$("circle",{cx:"50",cy:"50",r:"46",stroke:yn.hpA,strokeWidth:"6",fill:"none",strokeLinecap:"round",strokeDasharray:`${(1-Zd)*289} 289`,style:{transition:"stroke-dasharray 0.08s linear",filter:`drop-shadow(0 0 6px ${yn.hpA})`}})]}),W("div",{className:"w-[86px] h-[86px] rounded-full bg-gradient-to-br from-amber-200 to-amber-500 flex flex-col items-center justify-center shadow-[0_0_22px_rgba(245,158,11,0.7)] border border-white/50",children:[$("span",{className:"text-[26px] leading-none",children:"⚔"}),$("span",{className:"cinzel text-[10px] font-extrabold tracking-widest text-amber-950 mt-1",children:"ATK"})]})]})]})]}),o!=="playing"&&$("div",{className:"absolute inset-0 z-20 flex items-center justify-center bg-[#0b1220]/78 backdrop-blur-[8px] p-4",children:W("div",{className:"w-full max-w-[420px] glass rounded-[24px] border p-6 shadow-[0_24px_80px_rgba(0,0,0,0.6)]",style:{borderColor:yn.hudBorder,borderWidth:"2px"},children:[W("div",{className:"text-center",children:[$("div",{className:"cinzel text-[11px] tracking-[0.22em] text-white/50 mb-2",children:l==="halloween"?"SPOOKY SEASON":l==="christmas"?"WINTER EDITION":"SEASONAL EDITION"}),$("h1",{className:"cinzel text-[28px] leading-[0.95] font-[800] text-white",style:{textShadow:"0 2px 18px rgba(0,0,0,0.6)"},children:yn.name}),$("p",{className:"mt-2 text-[13px] leading-[1.45] text-white/65",children:yn.desc})]}),$("div",{className:"mt-5 flex justify-center gap-2",children:["normal","halloween","christmas"].map((r)=>{return $("button",{onClick:()=>{h(r),K(r==="normal"?"Normal mode":r==="halloween"?"Pumpkin mode! \uD83C\uDF83":"Winter mode! \uD83C\uDF84")},className:`pill px-3 py-1.5 rounded-full text-[11px] font-bold glass border ${l===r?"active text-amber-200 border-amber-400":"text-white/70 border-white/15"}`,children:r==="normal"?"⚔ Normal":r==="halloween"?"\uD83C\uDF83 Halloween":"\uD83C\uDF84 Natal"},r)})}),W("div",{className:"mt-5 grid grid-cols-3 gap-2",children:[W("div",{className:"rounded-xl bg-white/[0.06] border border-white/10 p-2.5 text-center",children:[$("div",{className:"text-[18px]",children:"\uD83D\uDD79"}),$("div",{className:"cinzel text-[9px] tracking-widest text-white/60 mt-1",children:"MOVE"}),$("div",{className:"text-[11px] text-white/85 mt-0.5 font-semibold",children:"Joystick / WASD"})]}),W("div",{className:"rounded-xl bg-white/[0.06] border border-white/10 p-2.5 text-center",children:[$("div",{className:"text-[18px]",children:"⚔"}),$("div",{className:"cinzel text-[9px] tracking-widest text-white/60 mt-1",children:"ATTACK"}),$("div",{className:"text-[11px] text-white/85 mt-0.5 font-semibold",children:"Tap / Space"})]}),W("div",{className:"rounded-xl bg-white/[0.06] border border-white/10 p-2.5 text-center",children:[$("div",{className:"text-[18px]",children:"\uD83D\uDCA8"}),$("div",{className:"cinzel text-[9px] tracking-widest text-white/60 mt-1",children:"DASH"}),$("div",{className:"text-[11px] text-white/85 mt-0.5 font-semibold",children:"Tap / Shift"})]})]}),o==="victory"&&W("div",{className:"mt-5 rounded-2xl bg-emerald-500/15 border border-emerald-400/30 p-3 text-center",children:[$("div",{className:"text-[22px]",children:"\uD83C\uDFC6 Victory!"}),$("div",{className:"text-[13px] text-white/75 mt-1",children:"You held the castle through 5 waves!"})]}),o==="defeat"&&W("div",{className:"mt-5 rounded-2xl bg-red-500/15 border border-red-400/30 p-3 text-center",children:[$("div",{className:"text-[22px]",children:"\uD83D\uDC80 Defeated"}),$("div",{className:"text-[13px] text-white/75 mt-1",children:"The raiders broke through. Try another season?"})]}),$("button",{onClick:()=>{I(),y(v.current)},className:"mt-5 w-full h-[52px] rounded-full bg-gradient-to-br from-amber-300 to-amber-500 text-amber-950 font-black tracking-[0.14em] cinzel text-[13px] shadow-[0_10px_28px_rgba(245,158,11,0.55)] active:scale-[0.98] transition-transform",children:o==="menu"?"START BATTLE":o==="victory"?"PLAY AGAIN":"RETRY"}),$("div",{className:"mt-3 text-center text-[10px] tracking-wide text-white/35",children:"Wave 5 to win • Protect castle & hero • Allies spawn on kills (max 12)"})]})}),$("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 h-[28%] bg-gradient-to-t from-black/55 to-transparent"})]})}Xd.createRoot(document.getElementById("root")).render($(Yd.default.StrictMode,{children:$(es,{})}));
</script>
<script>(function(){function m(a){var h=a.getAttribute("href");if(!h)return;try{var u=new URL(h,document.baseURI);if((u.protocol==="http:"||u.protocol==="https:")&&u.host!==location.host){a.target="_blank";a.rel="noopener noreferrer";}}catch(e){}}function s(){document.querySelectorAll("a[href]").forEach(m);}if(document.readyState!=="loading"){s();}else{document.addEventListener("DOMContentLoaded",s);}document.addEventListener("click",function(e){var a=e.target&&e.target.closest&&e.target.closest("a[href]");if(a){m(a);}},true);})();</script>
</body>
</html>Game Source: React Artifact
Creator: ElectricPirate55
Libraries: react
Complexity: simple (32 lines, 224.9 KB)
The full source code is displayed above on this page.
Remix Instructions
To remix this game, copy the source code above and modify it. Add a ARCADELAB header at the top with "remix_of: react-artifact-electricpirate55-muhkwy61" to link back to the original. Then publish at arcadelab.ai/publish.