From b72c58452ee85e8efbed3b33f7e20640774b4674 Mon Sep 17 00:00:00 2001 From: legop3 Date: Sat, 6 Dec 2025 01:07:01 -0500 Subject: [PATCH] keyboard speed controls --- server/public/assets/index-4BBPmLYK.css | 1 - server/public/assets/index-BCyA38CU.js | 12 +++ server/public/assets/index-CB1QIk24.js | 12 --- server/public/assets/index-DusXB4R9.css | 1 + server/public/index.html | 4 +- webui/src/components/KeymapSettings.jsx | 79 +++++++++++++++++++ webui/src/controls/ControlContext.jsx | 2 +- .../controls/inputs/KeyboardInputManager.jsx | 27 ++++++- webui/src/help/content.js | 2 +- webui/src/settings/namespaces.js | 5 ++ 10 files changed, 126 insertions(+), 19 deletions(-) delete mode 100644 server/public/assets/index-4BBPmLYK.css create mode 100644 server/public/assets/index-BCyA38CU.js delete mode 100644 server/public/assets/index-CB1QIk24.js create mode 100644 server/public/assets/index-DusXB4R9.css diff --git a/server/public/assets/index-4BBPmLYK.css b/server/public/assets/index-4BBPmLYK.css deleted file mode 100644 index e7d3f400..00000000 --- a/server/public/assets/index-4BBPmLYK.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--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: rgb(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: rgb(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: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{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{margin:0;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,samp,pre{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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{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}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.panel{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));padding:.125rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.panel-section{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity));padding:.125rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.panel-muted{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.surface{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity));padding:.125rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.surface-muted{--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity));padding:.125rem;--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity))}.field-input{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity));padding:.125rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.field-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(14 165 233 / var(--tw-ring-opacity))}.button-dark{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity));padding:.125rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.button-dark:hover{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity))}.button-danger{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity));padding:.125rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.button-danger:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity))}.rainbow-animate-bg{background:linear-gradient(270deg,red,#ff7f00,#ffff00b3,#0f0,#00f,indigo,#8b00ff);background-size:1400% 1400%;animation:rainbowBG 300s ease infinite}@keyframes rainbowBG{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-0\.5{bottom:.125rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.right-0{right:0}.right-1{right:.25rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-1\/2{top:50%}.top-10{top:2.5rem}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.col-span-full{grid-column:1 / -1}.m-0\.5{margin:.125rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-2{margin-top:.5rem}.\!block{display:block!important}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-28{height:7rem}.h-4{height:1rem}.h-40{height:10rem}.h-48{height:12rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-\[220px\]{height:220px}.h-\[260px\]{height:260px}.h-\[70\%\]{height:70%}.h-full{height:100%}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-80{max-height:20rem}.max-h-\[85vh\]{max-height:85vh}.max-h-\[90vh\]{max-height:90vh}.min-h-0{min-height:0px}.min-h-\[14rem\]{min-height:14rem}.min-h-\[16rem\]{min-height:16rem}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-1\/4{width:25%}.w-12{width:3rem}.w-2{width:.5rem}.w-28{width:7rem}.w-4{width:1rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-4xl{max-width:56rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-\[1\.1\]{flex:1.1}.flex-\[1\.8\]{flex:1.8}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[minmax\(0\,0\.7fr\)_minmax\(0\,2\.1fr\)_minmax\(0\,0\.7fr\)\]{grid-template-columns:minmax(0,.7fr) minmax(0,2.1fr) minmax(0,.7fr)}.grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-amber-400\/30{border-color:#fbbf244d}.border-cyan-500\/40{border-color:#06b6d466}.border-emerald-700{--tw-border-opacity: 1;border-color:rgb(4 120 87 / var(--tw-border-opacity))}.border-indigo-400\/30{border-color:#818cf84d}.border-rose-800{--tw-border-opacity: 1;border-color:rgb(159 18 57 / var(--tw-border-opacity))}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity))}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity))}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity))}.bg-amber-500\/30{background-color:#f59e0b4d}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity))}.bg-amber-700{--tw-bg-opacity: 1;background-color:rgb(180 83 9 / var(--tw-bg-opacity))}.bg-amber-900{--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity))}.bg-amber-900\/60{background-color:#78350f99}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-black\/20{background-color:#0003}.bg-black\/30{background-color:#0000004d}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-black\/85{background-color:#000000d9}.bg-cyan-300\/80{background-color:#67e8f9cc}.bg-cyan-400\/10{background-color:#22d3ee1a}.bg-cyan-500{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity))}.bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity))}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity))}.bg-emerald-500\/30{background-color:#10b9814d}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity))}.bg-emerald-700{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity))}.bg-emerald-800{--tw-bg-opacity: 1;background-color:rgb(6 95 70 / var(--tw-bg-opacity))}.bg-emerald-900{--tw-bg-opacity: 1;background-color:rgb(6 78 59 / var(--tw-bg-opacity))}.bg-emerald-900\/80{background-color:#064e3bcc}.bg-fuchsia-600{--tw-bg-opacity: 1;background-color:rgb(192 38 211 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-indigo-500\/30{background-color:#6366f14d}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-indigo-700{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.bg-indigo-900\/20{background-color:#312e8133}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-500\/30{background-color:#ef44444d}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-red-900\/40{background-color:#7f1d1d66}.bg-red-900\/60{background-color:#7f1d1d99}.bg-rose-900\/80{background-color:#881337cc}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity))}.bg-sky-700{--tw-bg-opacity: 1;background-color:rgb(3 105 161 / var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity))}.bg-slate-600{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.bg-slate-900\/40{background-color:#0f172a66}.bg-transparent{background-color:transparent}.bg-zinc-900{--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity))}.bg-zinc-950{--tw-bg-opacity: 1;background-color:rgb(9 9 11 / var(--tw-bg-opacity))}.bg-zinc-950\/95{background-color:#09090bf2}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-indigo-500{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-purple-500{--tw-gradient-to: rgb(168 85 247 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #a855f7 var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-pink-500{--tw-gradient-to: #ec4899 var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\[2px\]{padding-top:2px;padding-bottom:2px}.pb-0\.5{padding-bottom:.125rem}.pb-1{padding-bottom:.25rem}.pr-0\.5{padding-right:.125rem}.pt-1{padding-top:.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[0\.65rem\]{font-size:.65rem}.text-\[0\.6rem\]{font-size:.6rem}.text-\[0\.75rem\]{font-size:.75rem}.text-\[0\.7rem\]{font-size:.7rem}.text-\[0\.85rem\]{font-size:.85rem}.text-\[0\.8rem\]{font-size:.8rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-amber-100{--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity))}.text-amber-200{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity))}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity))}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity))}.text-amber-50{--tw-text-opacity: 1;color:rgb(255 251 235 / var(--tw-text-opacity))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity))}.text-amber-950{--tw-text-opacity: 1;color:rgb(69 26 3 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-black\/80{color:#000c}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-emerald-100{--tw-text-opacity: 1;color:rgb(209 250 229 / var(--tw-text-opacity))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity))}.text-emerald-50{--tw-text-opacity: 1;color:rgb(236 253 245 / var(--tw-text-opacity))}.text-emerald-50\/80{color:#ecfdf5cc}.text-emerald-950{--tw-text-opacity: 1;color:rgb(2 44 34 / var(--tw-text-opacity))}.text-indigo-100{--tw-text-opacity: 1;color:rgb(224 231 255 / var(--tw-text-opacity))}.text-indigo-200{--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity))}.text-indigo-50{--tw-text-opacity: 1;color:rgb(238 242 255 / var(--tw-text-opacity))}.text-lime-300{--tw-text-opacity: 1;color:rgb(190 242 100 / var(--tw-text-opacity))}.text-lime-400{--tw-text-opacity: 1;color:rgb(163 230 53 / var(--tw-text-opacity))}.text-red-100{--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-rose-50{--tw-text-opacity: 1;color:rgb(255 241 242 / var(--tw-text-opacity))}.text-sky-300{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-teal-400{--tw-text-opacity: 1;color:rgb(45 212 191 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\/90{color:#ffffffe6}.underline{text-decoration-line:underline}.accent-cyan-400{accent-color:#22d3ee}.accent-cyan-500{accent-color:#06b6d4}.accent-emerald-400{accent-color:#34d399}.opacity-50{opacity:.5}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -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-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 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-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px 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-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px 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-black\/40{--tw-shadow-color: rgb(0 0 0 / .4);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-cyan-400\/60{outline-color:#22d3ee99}.blur{--tw-blur: blur(8px);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)}.invert{--tw-invert: invert(100%);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)}.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)}.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-\[height\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.no-touch-select{-moz-user-select:none;user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-touch-callout:none}.\[clip-path\:circle\(50\%\)\]{clip-path:circle(50%)}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity))}body{margin:0;min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity))}*{scrollbar-width:thin;scrollbar-color:#3b82f6 rgba(255,255,255,.08)}*::-webkit-scrollbar{width:1px;height:1px}*::-webkit-scrollbar-track{background:#ffffff14}*::-webkit-scrollbar-thumb{background-color:#3b82f6;border-radius:9999px}.hover\:bg-amber-300:hover{--tw-bg-opacity: 1;background-color:rgb(252 211 77 / var(--tw-bg-opacity))}.hover\:bg-amber-500:hover{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity))}.hover\:bg-cyan-400:hover{--tw-bg-opacity: 1;background-color:rgb(34 211 238 / var(--tw-bg-opacity))}.hover\:bg-emerald-400:hover{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity))}.hover\:bg-emerald-500:hover{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity))}.hover\:bg-emerald-800:hover{--tw-bg-opacity: 1;background-color:rgb(6 95 70 / var(--tw-bg-opacity))}.hover\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\:bg-rose-800:hover{--tw-bg-opacity: 1;background-color:rgb(159 18 57 / var(--tw-bg-opacity))}.hover\:bg-sky-500:hover{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity))}.hover\:from-indigo-600:hover{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:via-purple-600:hover{--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #9333ea var(--tw-gradient-via-position), var(--tw-gradient-to)}.hover\:to-pink-600:hover{--tw-gradient-to: #db2777 var(--tw-gradient-to-position)}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:brightness-110:hover{--tw-brightness: brightness(1.1);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)}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-1:focus-visible{outline-width:1px}.focus-visible\:outline-offset-1:focus-visible{outline-offset:1px}.focus-visible\:outline-slate-500:focus-visible{outline-color:#64748b}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:hover\:bg-inherit:hover:disabled{background-color:inherit}@media(min-width:640px){.sm\:min-h-\[18rem\]{min-height:18rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:items-center{align-items:center}}@media(min-width:768px){.md\:h-full{height:100%}.md\:h-screen{height:100vh}.md\:min-h-0{min-height:0px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,1fr\)_18rem\]{grid-template-columns:minmax(0,1fr) 18rem}.md\:overflow-hidden{overflow:hidden}.md\:overflow-y-auto{overflow-y:auto}}@media(min-width:1024px){.lg\:grid-cols-\[minmax\(0\,1fr\)_20rem\]{grid-template-columns:minmax(0,1fr) 20rem}} diff --git a/server/public/assets/index-BCyA38CU.js b/server/public/assets/index-BCyA38CU.js new file mode 100644 index 00000000..0ed3265d --- /dev/null +++ b/server/public/assets/index-BCyA38CU.js @@ -0,0 +1,12 @@ +(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&u(p)}).observe(document,{childList:!0,subtree:!0});function s(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(f){if(f.ep)return;f.ep=!0;const h=s(f);fetch(f.href,h)}})();function Qv(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var bc={exports:{}},ei={};var Am;function Gv(){if(Am)return ei;Am=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(u,f,h){var p=null;if(h!==void 0&&(p=""+h),f.key!==void 0&&(p=""+f.key),"key"in f){h={};for(var x in f)x!=="key"&&(h[x]=f[x])}else h=f;return f=h.ref,{$$typeof:i,type:u,key:p,ref:f!==void 0?f:null,props:h}}return ei.Fragment=l,ei.jsx=s,ei.jsxs=s,ei}var Sm;function Xv(){return Sm||(Sm=1,bc.exports=Gv()),bc.exports}var o=Xv(),Ac={exports:{}},oe={};var qm;function Kv(){if(qm)return oe;qm=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),C=Symbol.iterator;function E(q){return q===null||typeof q!="object"?null:(q=C&&q[C]||q["@@iterator"],typeof q=="function"?q:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,T={};function O(q,H,Z){this.props=q,this.context=H,this.refs=T,this.updater=Z||j}O.prototype.isReactComponent={},O.prototype.setState=function(q,H){if(typeof q!="object"&&typeof q!="function"&&q!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,q,H,"setState")},O.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function B(){}B.prototype=O.prototype;function V(q,H,Z){this.props=q,this.context=H,this.refs=T,this.updater=Z||j}var W=V.prototype=new B;W.constructor=V,R(W,O.prototype),W.isPureReactComponent=!0;var ae=Array.isArray;function te(){}var G={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function ce(q,H,Z){var K=Z.ref;return{$$typeof:i,type:q,key:H,ref:K!==void 0?K:null,props:Z}}function Ne(q,H){return ce(q.type,H,q.props)}function Q(q){return typeof q=="object"&&q!==null&&q.$$typeof===i}function F(q){var H={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(Z){return H[Z]})}var ie=/\/+/g;function ue(q,H){return typeof q=="object"&&q!==null&&q.key!=null?F(""+q.key):H.toString(36)}function J(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(te,te):(q.status="pending",q.then(function(H){q.status==="pending"&&(q.status="fulfilled",q.value=H)},function(H){q.status==="pending"&&(q.status="rejected",q.reason=H)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function z(q,H,Z,K,$){var re=typeof q;(re==="undefined"||re==="boolean")&&(q=null);var de=!1;if(q===null)de=!0;else switch(re){case"bigint":case"string":case"number":de=!0;break;case"object":switch(q.$$typeof){case i:case l:de=!0;break;case b:return de=q._init,z(de(q._payload),H,Z,K,$)}}if(de)return $=$(q),de=K===""?"."+ue(q,0):K,ae($)?(Z="",de!=null&&(Z=de.replace(ie,"$&/")+"/"),z($,H,Z,"",function(Jt){return Jt})):$!=null&&(Q($)&&($=Ne($,Z+($.key==null||q&&q.key===$.key?"":(""+$.key).replace(ie,"$&/")+"/")+de)),H.push($)),1;de=0;var Ce=K===""?".":K+":";if(ae(q))for(var Se=0;Se>>1,Ae=z[me];if(0>>1;mef(Z,I))Kf($,Z)?(z[me]=$,z[K]=I,me=K):(z[me]=Z,z[H]=I,me=H);else if(Kf($,I))z[me]=$,z[K]=I,me=K;else break e}}return X}function f(z,X){var I=z.sortIndex-X.sortIndex;return I!==0?I:z.id-X.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var p=Date,x=p.now();i.unstable_now=function(){return p.now()-x}}var v=[],y=[],b=1,A=null,C=3,E=!1,j=!1,R=!1,T=!1,O=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function W(z){for(var X=s(y);X!==null;){if(X.callback===null)u(y);else if(X.startTime<=z)u(y),X.sortIndex=X.expirationTime,l(v,X);else break;X=s(y)}}function ae(z){if(R=!1,W(z),!j)if(s(v)!==null)j=!0,te||(te=!0,F());else{var X=s(y);X!==null&&J(ae,X.startTime-z)}}var te=!1,G=-1,P=5,ce=-1;function Ne(){return T?!0:!(i.unstable_now()-cez&&Ne());){var me=A.callback;if(typeof me=="function"){A.callback=null,C=A.priorityLevel;var Ae=me(A.expirationTime<=z);if(z=i.unstable_now(),typeof Ae=="function"){A.callback=Ae,W(z),X=!0;break t}A===s(v)&&u(v),W(z)}else u(v);A=s(v)}if(A!==null)X=!0;else{var q=s(y);q!==null&&J(ae,q.startTime-z),X=!1}}break e}finally{A=null,C=I,E=!1}X=void 0}}finally{X?F():te=!1}}}var F;if(typeof V=="function")F=function(){V(Q)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ue=ie.port2;ie.port1.onmessage=Q,F=function(){ue.postMessage(null)}}else F=function(){O(Q,0)};function J(z,X){G=O(function(){z(i.unstable_now())},X)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(z){z.callback=null},i.unstable_forceFrameRate=function(z){0>z||125me?(z.sortIndex=I,l(y,z),s(v)===null&&z===s(y)&&(R?(B(G),G=-1):R=!0,J(ae,I-me))):(z.sortIndex=Ae,l(v,z),j||E||(j=!0,te||(te=!0,F()))),z},i.unstable_shouldYield=Ne,i.unstable_wrapCallback=function(z){var X=C;return function(){var I=C;C=X;try{return z.apply(this,arguments)}finally{C=I}}}})(Ec)),Ec}var jm;function Jv(){return jm||(jm=1,qc.exports=Zv()),qc.exports}var Nc={exports:{}},at={};var Cm;function $v(){if(Cm)return at;Cm=1;var i=eo();function l(v){var y="https://react.dev/errors/"+v;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Nc.exports=$v(),Nc.exports}var wm;function Wv(){if(wm)return ti;wm=1;var i=Jv(),l=eo(),s=Fv();function u(e){var t="https://react.dev/errors/"+e;if(1Ae||(e.current=me[Ae],me[Ae]=null,Ae--)}function Z(e,t){Ae++,me[Ae]=e.current,e.current=t}var K=q(null),$=q(null),re=q(null),de=q(null);function Ce(e,t){switch(Z(re,t),Z($,e),Z(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gh(t),e=Xh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(K),Z(K,e)}function Se(){H(K),H($),H(re)}function Jt(e){e.memoizedState!==null&&Z(de,e);var t=K.current,n=Xh(t,e.type);t!==n&&(Z($,e),Z(K,n))}function ga(e){$.current===e&&(H(K),H($)),de.current===e&&(H(de),Fl._currentValue=I)}var xa,mi;function $t(e){if(xa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xa=t&&t[1]||"",mi=-1)":-1r||S[a]!==M[r]){var U=` +`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=r);break}}}finally{xn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?$t(n):""}function pi(e,t){switch(e.tag){case 26:case 27:case 5:return $t(e.type);case 16:return $t("Lazy");case 13:return e.child!==t&&t!==null?$t("Suspense Fallback"):$t("Suspense");case 19:return $t("SuspenseList");case 0:case 15:return Kn(e.type,!1);case 11:return Kn(e.type.render,!1);case 1:return Kn(e.type,!0);case 31:return $t("Activity");default:return""}}function bo(e){try{var t="",n=null;do t+=pi(e,n),n=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var ir=Object.prototype.hasOwnProperty,sr=i.unstable_scheduleCallback,rr=i.unstable_cancelCallback,A0=i.unstable_shouldYield,S0=i.unstable_requestPaint,dt=i.unstable_now,q0=i.unstable_getCurrentPriorityLevel,Ao=i.unstable_ImmediatePriority,So=i.unstable_UserBlockingPriority,yi=i.unstable_NormalPriority,E0=i.unstable_LowPriority,qo=i.unstable_IdlePriority,N0=i.log,j0=i.unstable_setDisableYieldValue,ul=null,ht=null;function bn(e){if(typeof N0=="function"&&j0(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(ul,e)}catch{}}var mt=Math.clz32?Math.clz32:w0,C0=Math.log,T0=Math.LN2;function w0(e){return e>>>=0,e===0?32:31-(C0(e)/T0|0)|0}var vi=256,gi=262144,xi=4194304;function Zn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function bi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=a&134217727;return g!==0?(a=g&~c,a!==0?r=Zn(a):(d&=g,d!==0?r=Zn(d):n||(n=g&~e,n!==0&&(r=Zn(n))))):(g=a&~c,g!==0?r=Zn(g):d!==0?r=Zn(d):n||(n=a&~e,n!==0&&(r=Zn(n)))),r===0?0:t!==0&&t!==r&&(t&c)===0&&(c=r&-r,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:r}function cl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function R0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Eo(){var e=xi;return xi<<=1,(xi&62914560)===0&&(xi=4194304),e}function ur(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ol(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _0(e,t,n,a,r,c){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,S=e.expirationTimes,M=e.hiddenUpdates;for(n=d&~n;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var B0=/[\n"\\]/g;function qt(e){return e.replace(B0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function mr(e,t,n,a,r,c,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+St(t)):e.value!==""+St(t)&&(e.value=""+St(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?pr(e,d,St(t)):n!=null?pr(e,d,St(n)):a!=null&&e.removeAttribute("value"),r==null&&c!=null&&(e.defaultChecked=!!c),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+St(g):e.removeAttribute("name")}function Bo(e,t,n,a,r,c,d,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){hr(e);return}n=n!=null?""+St(n):"",t=t!=null?""+St(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=g?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),hr(e)}function pr(e,t,n){t==="number"&&qi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Na(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),br=!1;if(It)try{var ml={};Object.defineProperty(ml,"passive",{get:function(){br=!0}}),window.addEventListener("test",ml,ml),window.removeEventListener("test",ml,ml)}catch{br=!1}var Sn=null,Ar=null,Ni=null;function Go(){if(Ni)return Ni;var e,t=Ar,n=t.length,a,r="value"in Sn?Sn.value:Sn.textContent,c=r.length;for(e=0;e=vl),Fo=" ",Wo=!1;function Io(e,t){switch(e){case"keyup":return fy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Po(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wa=!1;function hy(e,t){switch(e){case"compositionend":return Po(t);case"keypress":return t.which!==32?null:(Wo=!0,Fo);case"textInput":return e=t.data,e===Fo&&Wo?null:e;default:return null}}function my(e,t){if(wa)return e==="compositionend"||!jr&&Io(e,t)?(e=Go(),Ni=Ar=Sn=null,wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=uf(n)}}function of(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?of(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ff(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qi(e.document)}return t}function wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Sy=It&&"documentMode"in document&&11>=document.documentMode,Ra=null,Rr=null,Al=null,_r=!1;function df(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_r||Ra==null||Ra!==qi(a)||(a=Ra,"selectionStart"in a&&wr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Al&&bl(Al,a)||(Al=a,a=gs(Rr,"onSelect"),0>=d,r-=d,Yt=1<<32-mt(t)+r|n<he?(ge=ne,ne=null):ge=ne.sibling;var Ee=D(w,ne,_[he],L);if(Ee===null){ne===null&&(ne=ge);break}e&&ne&&Ee.alternate===null&&t(w,ne),N=c(Ee,N,he),qe===null?le=Ee:qe.sibling=Ee,qe=Ee,ne=ge}if(he===_.length)return n(w,ne),xe&&en(w,he),le;if(ne===null){for(;he<_.length;he++)ne=Y(w,_[he],L),ne!==null&&(N=c(ne,N,he),qe===null?le=ne:qe.sibling=ne,qe=ne);return xe&&en(w,he),le}for(ne=a(ne);he<_.length;he++)ge=k(ne,w,he,_[he],L),ge!==null&&(e&&ge.alternate!==null&&ne.delete(ge.key===null?he:ge.key),N=c(ge,N,he),qe===null?le=ge:qe.sibling=ge,qe=ge);return e&&ne.forEach(function(Gn){return t(w,Gn)}),xe&&en(w,he),le}function se(w,N,_,L){if(_==null)throw Error(u(151));for(var le=null,qe=null,ne=N,he=N=0,ge=null,Ee=_.next();ne!==null&&!Ee.done;he++,Ee=_.next()){ne.index>he?(ge=ne,ne=null):ge=ne.sibling;var Gn=D(w,ne,Ee.value,L);if(Gn===null){ne===null&&(ne=ge);break}e&&ne&&Gn.alternate===null&&t(w,ne),N=c(Gn,N,he),qe===null?le=Gn:qe.sibling=Gn,qe=Gn,ne=ge}if(Ee.done)return n(w,ne),xe&&en(w,he),le;if(ne===null){for(;!Ee.done;he++,Ee=_.next())Ee=Y(w,Ee.value,L),Ee!==null&&(N=c(Ee,N,he),qe===null?le=Ee:qe.sibling=Ee,qe=Ee);return xe&&en(w,he),le}for(ne=a(ne);!Ee.done;he++,Ee=_.next())Ee=k(ne,w,he,Ee.value,L),Ee!==null&&(e&&Ee.alternate!==null&&ne.delete(Ee.key===null?he:Ee.key),N=c(Ee,N,he),qe===null?le=Ee:qe.sibling=Ee,qe=Ee);return e&&ne.forEach(function(Vv){return t(w,Vv)}),xe&&en(w,he),le}function Me(w,N,_,L){if(typeof _=="object"&&_!==null&&_.type===R&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case E:e:{for(var le=_.key;N!==null;){if(N.key===le){if(le=_.type,le===R){if(N.tag===7){n(w,N.sibling),L=r(N,_.props.children),L.return=w,w=L;break e}}else if(N.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===P&&la(le)===N.type){n(w,N.sibling),L=r(N,_.props),Cl(L,_),L.return=w,w=L;break e}n(w,N);break}else t(w,N);N=N.sibling}_.type===R?(L=Pn(_.props.children,w.mode,L,_.key),L.return=w,w=L):(L=zi(_.type,_.key,_.props,null,w.mode,L),Cl(L,_),L.return=w,w=L)}return d(w);case j:e:{for(le=_.key;N!==null;){if(N.key===le)if(N.tag===4&&N.stateNode.containerInfo===_.containerInfo&&N.stateNode.implementation===_.implementation){n(w,N.sibling),L=r(N,_.children||[]),L.return=w,w=L;break e}else{n(w,N);break}else t(w,N);N=N.sibling}L=Ur(_,w.mode,L),L.return=w,w=L}return d(w);case P:return _=la(_),Me(w,N,_,L)}if(J(_))return ee(w,N,_,L);if(F(_)){if(le=F(_),typeof le!="function")throw Error(u(150));return _=le.call(_),se(w,N,_,L)}if(typeof _.then=="function")return Me(w,N,Vi(_),L);if(_.$$typeof===V)return Me(w,N,Ui(w,_),L);Qi(w,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,N!==null&&N.tag===6?(n(w,N.sibling),L=r(N,_),L.return=w,w=L):(n(w,N),L=Br(_,w.mode,L),L.return=w,w=L),d(w)):n(w,N)}return function(w,N,_,L){try{jl=0;var le=Me(w,N,_,L);return Ya=null,le}catch(ne){if(ne===Ha||ne===Hi)throw ne;var qe=yt(29,ne,null,w.mode);return qe.lanes=L,qe.return=w,qe}finally{}}}var sa=zf(!0),kf=zf(!1),Cn=!1;function Fr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Tn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=Di(e),xf(e,null,n),t}return Oi(e,a,t,n),Di(e)}function Tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,jo(e,n)}}function Ir(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?r=c=d:c=c.next=d,n=n.next}while(n!==null);c===null?r=c=t:c=c.next=t}else r=c=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Pr=!1;function wl(){if(Pr){var e=La;if(e!==null)throw e}}function Rl(e,t,n,a){Pr=!1;var r=e.updateQueue;Cn=!1;var c=r.firstBaseUpdate,d=r.lastBaseUpdate,g=r.shared.pending;if(g!==null){r.shared.pending=null;var S=g,M=S.next;S.next=null,d===null?c=M:d.next=M,d=S;var U=e.alternate;U!==null&&(U=U.updateQueue,g=U.lastBaseUpdate,g!==d&&(g===null?U.firstBaseUpdate=M:g.next=M,U.lastBaseUpdate=S))}if(c!==null){var Y=r.baseState;d=0,U=M=S=null,g=c;do{var D=g.lane&-536870913,k=D!==g.lane;if(k?(ve&D)===D:(a&D)===D){D!==0&&D===Ua&&(Pr=!0),U!==null&&(U=U.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var ee=e,se=g;D=t;var Me=n;switch(se.tag){case 1:if(ee=se.payload,typeof ee=="function"){Y=ee.call(Me,Y,D);break e}Y=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=se.payload,D=typeof ee=="function"?ee.call(Me,Y,D):ee,D==null)break e;Y=A({},Y,D);break e;case 2:Cn=!0}}D=g.callback,D!==null&&(e.flags|=64,k&&(e.flags|=8192),k=r.callbacks,k===null?r.callbacks=[D]:k.push(D))}else k={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},U===null?(M=U=k,S=Y):U=U.next=k,d|=D;if(g=g.next,g===null){if(g=r.shared.pending,g===null)break;k=g,g=k.next,k.next=null,r.lastBaseUpdate=k,r.shared.pending=null}}while(!0);U===null&&(S=Y),r.baseState=S,r.firstBaseUpdate=M,r.lastBaseUpdate=U,c===null&&(r.shared.lanes=0),Dn|=d,e.lanes=d,e.memoizedState=Y}}function Bf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Uf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ec?c:8;var d=z.T,g={};z.T=g,gu(e,!1,t,n);try{var S=r(),M=z.S;if(M!==null&&M(g,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=_y(S,a);Ol(e,t,U,At(e))}else Ol(e,t,a,At(e))}catch(Y){Ol(e,t,{then:function(){},status:"rejected",reason:Y},At())}finally{X.p=c,d!==null&&g.types!==null&&(d.types=g.types),z.T=d}}function By(){}function yu(e,t,n,a){if(e.tag!==5)throw Error(u(476));var r=yd(e).queue;pd(e,r,t,I,n===null?By:function(){return vd(e),n(a)})}function yd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ln,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ln,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vd(e){var t=yd(e);t.next===null&&(t=e.alternate.memoizedState),Ol(e,t.next.queue,{},At())}function vu(){return et(Fl)}function gd(){return Ye().memoizedState}function xd(){return Ye().memoizedState}function Uy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=At();e=Tn(n);var a=wn(t,e,n);a!==null&&(ft(a,t,n),Tl(a,t,n)),t={cache:Kr()},e.payload=t;return}t=t.return}}function Ly(e,t,n){var a=At();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Pi(e)?Ad(t,n):(n=zr(e,t,n,a),n!==null&&(ft(n,e,a),Sd(n,t,a)))}function bd(e,t,n){var a=At();Ol(e,t,n,a)}function Ol(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pi(e))Ad(t,r);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var d=t.lastRenderedState,g=c(d,n);if(r.hasEagerState=!0,r.eagerState=g,pt(g,d))return Oi(e,t,r,0),Oe===null&&Mi(),!1}catch{}finally{}if(n=zr(e,t,r,a),n!==null)return ft(n,e,a),Sd(n,t,a),!0}return!1}function gu(e,t,n,a){if(a={lane:2,revertLane:Fu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Pi(e)){if(t)throw Error(u(479))}else t=zr(e,n,a,2),t!==null&&ft(t,e,2)}function Pi(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Ad(e,t){Qa=Ki=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sd(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,jo(e,n)}}var Dl={readContext:et,use:$i,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useLayoutEffect:Ue,useInsertionEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useSyncExternalStore:Ue,useId:Ue,useHostTransitionStatus:Ue,useFormState:Ue,useActionState:Ue,useOptimistic:Ue,useMemoCache:Ue,useCacheRefresh:Ue};Dl.useEffectEvent=Ue;var qd={readContext:et,use:$i,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:sd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Wi(4194308,4,od.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wi(4194308,4,e,t)},useInsertionEffect:function(e,t){Wi(4,2,e,t)},useMemo:function(e,t){var n=lt();t=t===void 0?null:t;var a=e();if(ra){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=lt();if(n!==void 0){var r=n(t);if(ra){bn(!0);try{n(t)}finally{bn(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=Ly.bind(null,fe,e),[a.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:function(e){e=fu(e);var t=e.queue,n=bd.bind(null,fe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:mu,useDeferredValue:function(e,t){var n=lt();return pu(n,e,t)},useTransition:function(){var e=fu(!1);return e=pd.bind(null,fe,e.queue,!0,!1),lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=fe,r=lt();if(xe){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),Oe===null)throw Error(u(349));(ve&127)!==0||Gf(a,t,n)}r.memoizedState=n;var c={value:n,getSnapshot:t};return r.queue=c,sd(Kf.bind(null,a,c,e),[e]),a.flags|=2048,Xa(9,{destroy:void 0},Xf.bind(null,a,c,n,t),null),n},useId:function(){var e=lt(),t=Oe.identifierPrefix;if(xe){var n=Vt,a=Yt;n=(a&~(1<<32-mt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?d.createElement(r,{is:a.is}):d.createElement(r)}}c[Ie]=t,c[it]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=c;e:switch(nt(c,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&rn(t)}}return ze(t),Mu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&rn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=re.current,ka(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=Pe,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Ie]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Vh(e.nodeValue,n)),e||Nn(t,!0)}else e=xs(e).createTextNode(a),e[Ie]=t,t.stateNode=e}return ze(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=ka(t),n!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[Ie]=t}else ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else n=Vr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(gt(t),t):(gt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return ze(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=ka(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(u(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));r[Ie]=t}else ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),r=!1}else r=Vr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(gt(t),t):(gt(t),null)}return gt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ls(t,t.updateQueue),ze(t),null);case 4:return Se(),e===null&&ec(t.stateNode.containerInfo),ze(t),null;case 10:return nn(t.type),ze(t),null;case 19:if(H(He),a=t.memoizedState,a===null)return ze(t),null;if(r=(t.flags&128)!==0,c=a.rendering,c===null)if(r)kl(a,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Xi(e),c!==null){for(t.flags|=128,kl(a,!1),e=c.updateQueue,t.updateQueue=e,ls(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)bf(n,e),n=n.sibling;return Z(He,He.current&1|2),xe&&en(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&dt()>cs&&(t.flags|=128,r=!0,kl(a,!1),t.lanes=4194304)}else{if(!r)if(e=Xi(c),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ls(t,e),kl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!xe)return ze(t),null}else 2*dt()-a.renderingStartTime>cs&&n!==536870912&&(t.flags|=128,r=!0,kl(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=dt(),e.sibling=null,n=He.current,Z(He,r?n&1|2:n&1),xe&&en(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return gt(t),tu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),n=t.updateQueue,n!==null&&ls(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&H(aa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),nn(Ve),ze(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Gy(e,t){switch(Hr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nn(Ve),Se(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ga(t),null;case 31:if(t.memoizedState!==null){if(gt(t),t.alternate===null)throw Error(u(340));ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(He),null;case 4:return Se(),null;case 10:return nn(t.type),null;case 22:case 23:return gt(t),tu(),e!==null&&H(aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return nn(Ve),null;case 25:return null;default:return null}}function Zd(e,t){switch(Hr(t),t.tag){case 3:nn(Ve),Se();break;case 26:case 27:case 5:ga(t);break;case 4:Se();break;case 31:t.memoizedState!==null&>(t);break;case 13:gt(t);break;case 19:H(He);break;case 10:nn(t.type);break;case 22:case 23:gt(t),tu(),e!==null&&H(aa);break;case 24:nn(Ve)}}function Bl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var c=n.create,d=n.inst;a=c(),d.destroy=a}n=n.next}while(n!==r)}}catch(g){we(t,t.return,g)}}function Mn(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var c=r.next;a=c;do{if((a.tag&e)===e){var d=a.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,r=t;var S=n,M=g;try{M()}catch(U){we(r,S,U)}}}a=a.next}while(a!==c)}}catch(U){we(t,t.return,U)}}function Jd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Uf(t,n)}catch(a){we(e,e.return,a)}}}function $d(e,t,n){n.props=ua(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){we(e,t,a)}}function Ul(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(r){we(e,t,r)}}function Qt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){we(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Fd(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){we(e,e.return,r)}}function Ou(e,t,n){try{var a=e.stateNode;dv(a,e.type,n,t),a[it]=t}catch(r){we(e,e.return,r)}}function Wd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ln(e.type)||e.tag===4}function Du(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ln(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wt));else if(a!==4&&(a===27&&Ln(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(zu(e,t,n),e=e.sibling;e!==null;)zu(e,t,n),e=e.sibling}function is(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Ln(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(is(e,t,n),e=e.sibling;e!==null;)is(e,t,n),e=e.sibling}function Id(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);nt(t,a,n),t[Ie]=e,t[it]=n}catch(c){we(e,e.return,c)}}var un=!1,Xe=!1,ku=!1,Pd=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function Xy(e,t){if(e=e.containerInfo,ac=js,e=ff(e),wr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var d=0,g=-1,S=-1,M=0,U=0,Y=e,D=null;t:for(;;){for(var k;Y!==n||r!==0&&Y.nodeType!==3||(g=d+r),Y!==c||a!==0&&Y.nodeType!==3||(S=d+a),Y.nodeType===3&&(d+=Y.nodeValue.length),(k=Y.firstChild)!==null;)D=Y,Y=k;for(;;){if(Y===e)break t;if(D===n&&++M===r&&(g=d),D===c&&++U===a&&(S=d),(k=Y.nextSibling)!==null)break;Y=D,D=Y.parentNode}Y=k}n=g===-1||S===-1?null:{start:g,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(lc={focusedElem:e,selectionRange:n},js=!1,Fe=t;Fe!==null;)if(t=Fe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Fe=e;else for(;Fe!==null;){switch(t=Fe,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n title"))),nt(c,a,n),c[Ie]=e,$e(c),a=c;break e;case"link":var d=im("link","href",r).get(a+(n.href||""));if(d){for(var g=0;gMe&&(d=Me,Me=se,se=d);var w=cf(g,se),N=cf(g,Me);if(w&&N&&(k.rangeCount!==1||k.anchorNode!==w.node||k.anchorOffset!==w.offset||k.focusNode!==N.node||k.focusOffset!==N.offset)){var _=Y.createRange();_.setStart(w.node,w.offset),k.removeAllRanges(),se>Me?(k.addRange(_),k.extend(N.node,N.offset)):(_.setEnd(N.node,N.offset),k.addRange(_))}}}}for(Y=[],k=g;k=k.parentNode;)k.nodeType===1&&Y.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;gn?32:n,z.T=null,n=Qu,Qu=null;var c=kn,d=hn;if(Je=0,Fa=kn=null,hn=0,(je&6)!==0)throw Error(u(331));var g=je;if(je|=4,oh(c.current),rh(c,c.current,d,n),je=g,Gl(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(ul,c)}catch{}return!0}finally{X.p=r,z.T=a,Th(e,t)}}function Rh(e,t,n){t=Nt(n,t),t=Su(e.stateNode,t,2),e=wn(e,t,2),e!==null&&(ol(e,2),Gt(e))}function we(e,t,n){if(e.tag===3)Rh(e,e,n);else for(;t!==null;){if(t.tag===3){Rh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(zn===null||!zn.has(a))){e=Nt(n,e),n=_d(2),a=wn(t,n,2),a!==null&&(Md(n,a,t,e),ol(a,2),Gt(a));break}}t=t.return}}function Zu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Jy;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(Lu=!0,r.add(n),e=Py.bind(null,e,t,n),t.then(e,e))}function Py(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Oe===e&&(ve&n)===n&&(Le===4||Le===3&&(ve&62914560)===ve&&300>dt()-us?(je&2)===0&&Wa(e,0):Hu|=n,$a===ve&&($a=0)),Gt(e)}function _h(e,t){t===0&&(t=Eo()),e=In(e,t),e!==null&&(ol(e,t),Gt(e))}function ev(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_h(e,n)}function tv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),_h(e,n)}function nv(e,t){return sr(e,t)}var ps=null,Pa=null,Ju=!1,ys=!1,$u=!1,Un=0;function Gt(e){e!==Pa&&e.next===null&&(Pa===null?ps=Pa=e:Pa=Pa.next=e),ys=!0,Ju||(Ju=!0,lv())}function Gl(e,t){if(!$u&&ys){$u=!0;do for(var n=!1,a=ps;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var c=0;else{var d=a.suspendedLanes,g=a.pingedLanes;c=(1<<31-mt(42|e)+1)-1,c&=r&~(d&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,zh(a,c))}else c=ve,c=bi(a,a===Oe?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||cl(a,c)||(n=!0,zh(a,c));a=a.next}while(n);$u=!1}}function av(){Mh()}function Mh(){ys=Ju=!1;var e=0;Un!==0&&mv()&&(e=Un);for(var t=dt(),n=null,a=ps;a!==null;){var r=a.next,c=Oh(a,t);c===0?(a.next=null,n===null?ps=r:n.next=r,r===null&&(Pa=n)):(n=a,(e!==0||(c&3)!==0)&&(ys=!0)),a=r}Je!==0&&Je!==5||Gl(e),Un!==0&&(Un=0)}function Oh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,c=e.pendingLanes&-62914561;0g)break;var U=S.transferSize,Y=S.initiatorType;U&&Qh(Y)&&(S=S.responseEnd,d+=U*(S"u"?null:document;function tm(e,t,n){var a=el;if(a&&typeof t=="string"&&t){var r=qt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),em.has(r)||(em.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),nt(t,"link",e),$e(t),a.head.appendChild(t)))}}function qv(e){mn.D(e),tm("dns-prefetch",e,null)}function Ev(e,t){mn.C(e,t),tm("preconnect",e,t)}function Nv(e,t,n){mn.L(e,t,n);var a=el;if(a&&e&&t){var r='link[rel="preload"][as="'+qt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+qt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+qt(n.imageSizes)+'"]')):r+='[href="'+qt(e)+'"]';var c=r;switch(t){case"style":c=tl(e);break;case"script":c=nl(e)}_t.has(c)||(e=A({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),_t.set(c,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Jl(c))||t==="script"&&a.querySelector($l(c))||(t=a.createElement("link"),nt(t,"link",e),$e(t),a.head.appendChild(t)))}}function jv(e,t){mn.m(e,t);var n=el;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+qt(a)+'"][href="'+qt(e)+'"]',c=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=nl(e)}if(!_t.has(c)&&(e=A({rel:"modulepreload",href:e},t),_t.set(c,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($l(c)))return}a=n.createElement("link"),nt(a,"link",e),$e(a),n.head.appendChild(a)}}}function Cv(e,t,n){mn.S(e,t,n);var a=el;if(a&&e){var r=qa(a).hoistableStyles,c=tl(e);t=t||"default";var d=r.get(c);if(!d){var g={loading:0,preload:null};if(d=a.querySelector(Jl(c)))g.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},n),(n=_t.get(c))&&fc(e,n);var S=d=a.createElement("link");$e(S),nt(S,"link",e),S._p=new Promise(function(M,U){S.onload=M,S.onerror=U}),S.addEventListener("load",function(){g.loading|=1}),S.addEventListener("error",function(){g.loading|=2}),g.loading|=4,As(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:g},r.set(c,d)}}}function Tv(e,t){mn.X(e,t);var n=el;if(n&&e){var a=qa(n).hoistableScripts,r=nl(e),c=a.get(r);c||(c=n.querySelector($l(r)),c||(e=A({src:e,async:!0},t),(t=_t.get(r))&&dc(e,t),c=n.createElement("script"),$e(c),nt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(r,c))}}function wv(e,t){mn.M(e,t);var n=el;if(n&&e){var a=qa(n).hoistableScripts,r=nl(e),c=a.get(r);c||(c=n.querySelector($l(r)),c||(e=A({src:e,async:!0,type:"module"},t),(t=_t.get(r))&&dc(e,t),c=n.createElement("script"),$e(c),nt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(r,c))}}function nm(e,t,n,a){var r=(r=re.current)?bs(r):null;if(!r)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=tl(n.href),n=qa(r).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=tl(n.href);var c=qa(r).hoistableStyles,d=c.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=r.querySelector(Jl(e)))&&!c._p&&(d.instance=c,d.state.loading=5),_t.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},_t.set(e,n),c||Rv(r,e,n,d.state))),t&&a===null)throw Error(u(528,""));return d}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=nl(n),n=qa(r).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function tl(e){return'href="'+qt(e)+'"'}function Jl(e){return'link[rel="stylesheet"]['+e+"]"}function am(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Rv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),nt(t,"link",n),$e(t),e.head.appendChild(t))}function nl(e){return'[src="'+qt(e)+'"]'}function $l(e){return"script[async]"+e}function lm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+qt(n.href)+'"]');if(a)return t.instance=a,$e(a),a;var r=A({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),$e(a),nt(a,"style",r),As(a,n.precedence,e),t.instance=a;case"stylesheet":r=tl(n.href);var c=e.querySelector(Jl(r));if(c)return t.state.loading|=4,t.instance=c,$e(c),c;a=am(n),(r=_t.get(r))&&fc(a,r),c=(e.ownerDocument||e).createElement("link"),$e(c);var d=c;return d._p=new Promise(function(g,S){d.onload=g,d.onerror=S}),nt(c,"link",a),t.state.loading|=4,As(c,n.precedence,e),t.instance=c;case"script":return c=nl(n.src),(r=e.querySelector($l(c)))?(t.instance=r,$e(r),r):(a=n,(r=_t.get(c))&&(a=A({},n),dc(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),$e(r),nt(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,As(a,n.precedence,e));return t.instance}function As(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,c=r,d=0;d title"):null)}function _v(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function rm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Mv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=tl(a.href),c=t.querySelector(Jl(r));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,$e(c);return}c=t.ownerDocument||t,a=am(a),(r=_t.get(r))&&fc(a,r),c=c.createElement("link"),$e(c);var d=c;d._p=new Promise(function(g,S){d.onload=g,d.onerror=S}),nt(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=qs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var hc=0;function Ov(e,t){return e.stylesheets&&e.count===0&&Ns(e,e.stylesheets),0hc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ns(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function Ns(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(Dv,e),Es=null,qs.call(e))}function Dv(e,t){if(!(t.state.loading&4)){var n=Es.get(e);if(n)var a=n.get(null);else{n=new Map,Es.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Sc.exports=Wv(),Sc.exports}var Pv=Iv();var _m="popstate";function eg(i={}){function l(u,f){let{pathname:h,search:p,hash:x}=u.location;return Yc("",{pathname:h,search:p,hash:x},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(u,f){return typeof f=="string"?f:ri(f)}return ng(l,s,null,i)}function Be(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}function Ut(i,l){if(!i){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function tg(){return Math.random().toString(36).substring(2,10)}function Mm(i,l){return{usr:i.state,key:i.key,idx:l}}function Yc(i,l,s=null,u){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof l=="string"?il(l):l,state:s,key:l&&l.key||u||tg()}}function ri({pathname:i="/",search:l="",hash:s=""}){return l&&l!=="?"&&(i+=l.charAt(0)==="?"?l:"?"+l),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function il(i){let l={};if(i){let s=i.indexOf("#");s>=0&&(l.hash=i.substring(s),i=i.substring(0,s));let u=i.indexOf("?");u>=0&&(l.search=i.substring(u),i=i.substring(0,u)),i&&(l.pathname=i)}return l}function ng(i,l,s,u={}){let{window:f=document.defaultView,v5Compat:h=!1}=u,p=f.history,x="POP",v=null,y=b();y==null&&(y=0,p.replaceState({...p.state,idx:y},""));function b(){return(p.state||{idx:null}).idx}function A(){x="POP";let T=b(),O=T==null?null:T-y;y=T,v&&v({action:x,location:R.location,delta:O})}function C(T,O){x="PUSH";let B=Yc(R.location,T,O);y=b()+1;let V=Mm(B,y),W=R.createHref(B);try{p.pushState(V,"",W)}catch(ae){if(ae instanceof DOMException&&ae.name==="DataCloneError")throw ae;f.location.assign(W)}h&&v&&v({action:x,location:R.location,delta:1})}function E(T,O){x="REPLACE";let B=Yc(R.location,T,O);y=b();let V=Mm(B,y),W=R.createHref(B);p.replaceState(V,"",W),h&&v&&v({action:x,location:R.location,delta:0})}function j(T){return ag(T)}let R={get action(){return x},get location(){return i(f,p)},listen(T){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(_m,A),v=T,()=>{f.removeEventListener(_m,A),v=null}},createHref(T){return l(f,T)},createURL:j,encodeLocation(T){let O=j(T);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:C,replace:E,go(T){return p.go(T)}};return R}function ag(i,l=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Be(s,"No window.location.(origin|href) available to create URL");let u=typeof i=="string"?i:ri(i);return u=u.replace(/ $/,"%20"),!l&&u.startsWith("//")&&(u=s+u),new URL(u,s)}function op(i,l,s="/"){return lg(i,l,s,!1)}function lg(i,l,s,u){let f=typeof l=="string"?il(l):l,h=vn(f.pathname||"/",s);if(h==null)return null;let p=fp(i);ig(p);let x=null;for(let v=0;x==null&&v{let b={relativePath:y===void 0?p.path||"":y,caseSensitive:p.caseSensitive===!0,childrenIndex:x,route:p};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(u)&&v)return;Be(b.relativePath.startsWith(u),`Absolute route path "${b.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(u.length)}let A=pn([u,b.relativePath]),C=s.concat(b);p.children&&p.children.length>0&&(Be(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${A}".`),fp(p.children,l,C,A,v)),!(p.path==null&&!p.index)&&l.push({path:A,score:dg(A,p.index),routesMeta:C})};return i.forEach((p,x)=>{if(p.path===""||!p.path?.includes("?"))h(p,x);else for(let v of dp(p.path))h(p,x,!0,v)}),l}function dp(i){let l=i.split("/");if(l.length===0)return[];let[s,...u]=l,f=s.endsWith("?"),h=s.replace(/\?$/,"");if(u.length===0)return f?[h,""]:[h];let p=dp(u.join("/")),x=[];return x.push(...p.map(v=>v===""?h:[h,v].join("/"))),f&&x.push(...p),x.map(v=>i.startsWith("/")&&v===""?"/":v)}function ig(i){i.sort((l,s)=>l.score!==s.score?s.score-l.score:hg(l.routesMeta.map(u=>u.childrenIndex),s.routesMeta.map(u=>u.childrenIndex)))}var sg=/^:[\w-]+$/,rg=3,ug=2,cg=1,og=10,fg=-2,Om=i=>i==="*";function dg(i,l){let s=i.split("/"),u=s.length;return s.some(Om)&&(u+=fg),l&&(u+=ug),s.filter(f=>!Om(f)).reduce((f,h)=>f+(sg.test(h)?rg:h===""?cg:og),u)}function hg(i,l){return i.length===l.length&&i.slice(0,-1).every((u,f)=>u===l[f])?i[i.length-1]-l[l.length-1]:0}function mg(i,l,s=!1){let{routesMeta:u}=i,f={},h="/",p=[];for(let x=0;x{if(b==="*"){let j=x[C]||"";p=h.slice(0,h.length-j.length).replace(/(.)\/+$/,"$1")}const E=x[C];return A&&!E?y[b]=void 0:y[b]=(E||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:p,pattern:i}}function pg(i,l=!1,s=!0){Ut(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let u=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,x,v)=>(u.push({paramName:x,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(u.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,l?void 0:"i"),u]}function yg(i){try{return i.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Ut(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),i}}function vn(i,l){if(l==="/")return i;if(!i.toLowerCase().startsWith(l.toLowerCase()))return null;let s=l.endsWith("/")?l.length-1:l.length,u=i.charAt(s);return u&&u!=="/"?null:i.slice(s)||"/"}var vg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gg=i=>vg.test(i);function xg(i,l="/"){let{pathname:s,search:u="",hash:f=""}=typeof i=="string"?il(i):i,h;if(s)if(gg(s))h=s;else{if(s.includes("//")){let p=s;s=s.replace(/\/\/+/g,"/"),Ut(!1,`Pathnames cannot have embedded double slashes - normalizing ${p} -> ${s}`)}s.startsWith("/")?h=Dm(s.substring(1),"/"):h=Dm(s,l)}else h=l;return{pathname:h,search:Sg(u),hash:qg(f)}}function Dm(i,l){let s=l.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function jc(i,l,s,u){return`Cannot include a '${i}' character in a manually specified \`to.${l}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function bg(i){return i.filter((l,s)=>s===0||l.route.path&&l.route.path.length>0)}function hp(i){let l=bg(i);return l.map((s,u)=>u===l.length-1?s.pathname:s.pathnameBase)}function mp(i,l,s,u=!1){let f;typeof i=="string"?f=il(i):(f={...i},Be(!f.pathname||!f.pathname.includes("?"),jc("?","pathname","search",f)),Be(!f.pathname||!f.pathname.includes("#"),jc("#","pathname","hash",f)),Be(!f.search||!f.search.includes("#"),jc("#","search","hash",f)));let h=i===""||f.pathname==="",p=h?"/":f.pathname,x;if(p==null)x=s;else{let A=l.length-1;if(!u&&p.startsWith("..")){let C=p.split("/");for(;C[0]==="..";)C.shift(),A-=1;f.pathname=C.join("/")}x=A>=0?l[A]:"/"}let v=xg(f,x),y=p&&p!=="/"&&p.endsWith("/"),b=(h||p===".")&&s.endsWith("/");return!v.pathname.endsWith("/")&&(y||b)&&(v.pathname+="/"),v}var pn=i=>i.join("/").replace(/\/\/+/g,"/"),Ag=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Sg=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,qg=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function Eg(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pp=["POST","PUT","PATCH","DELETE"];new Set(pp);var Ng=["GET",...pp];new Set(Ng);var sl=m.createContext(null);sl.displayName="DataRouter";var Is=m.createContext(null);Is.displayName="DataRouterState";m.createContext(!1);var yp=m.createContext({isTransitioning:!1});yp.displayName="ViewTransition";var jg=m.createContext(new Map);jg.displayName="Fetchers";var Cg=m.createContext(null);Cg.displayName="Await";var Zt=m.createContext(null);Zt.displayName="Navigation";var ci=m.createContext(null);ci.displayName="Location";var gn=m.createContext({outlet:null,matches:[],isDataRoute:!1});gn.displayName="Route";var to=m.createContext(null);to.displayName="RouteError";function Tg(i,{relative:l}={}){Be(oi(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:u}=m.useContext(Zt),{hash:f,pathname:h,search:p}=fi(i,{relative:l}),x=h;return s!=="/"&&(x=h==="/"?s:pn([s,h])),u.createHref({pathname:x,search:p,hash:f})}function oi(){return m.useContext(ci)!=null}function ya(){return Be(oi(),"useLocation() may be used only in the context of a component."),m.useContext(ci).location}var vp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gp(i){m.useContext(Zt).static||m.useLayoutEffect(i)}function wg(){let{isDataRoute:i}=m.useContext(gn);return i?Vg():Rg()}function Rg(){Be(oi(),"useNavigate() may be used only in the context of a component.");let i=m.useContext(sl),{basename:l,navigator:s}=m.useContext(Zt),{matches:u}=m.useContext(gn),{pathname:f}=ya(),h=JSON.stringify(hp(u)),p=m.useRef(!1);return gp(()=>{p.current=!0}),m.useCallback((v,y={})=>{if(Ut(p.current,vp),!p.current)return;if(typeof v=="number"){s.go(v);return}let b=mp(v,JSON.parse(h),f,y.relative==="path");i==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:pn([l,b.pathname])),(y.replace?s.replace:s.push)(b,y.state,y)},[l,s,h,f,i])}m.createContext(null);function fi(i,{relative:l}={}){let{matches:s}=m.useContext(gn),{pathname:u}=ya(),f=JSON.stringify(hp(s));return m.useMemo(()=>mp(i,JSON.parse(f),u,l==="path"),[i,f,u,l])}function _g(i,l){return xp(i,l)}function xp(i,l,s,u,f){Be(oi(),"useRoutes() may be used only in the context of a component.");let{navigator:h}=m.useContext(Zt),{matches:p}=m.useContext(gn),x=p[p.length-1],v=x?x.params:{},y=x?x.pathname:"/",b=x?x.pathnameBase:"/",A=x&&x.route;{let B=A&&A.path||"";bp(y,!A||B.endsWith("*")||B.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${y}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let C=ya(),E;if(l){let B=typeof l=="string"?il(l):l;Be(b==="/"||B.pathname?.startsWith(b),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${B.pathname}" was given in the \`location\` prop.`),E=B}else E=C;let j=E.pathname||"/",R=j;if(b!=="/"){let B=b.replace(/^\//,"").split("/");R="/"+j.replace(/^\//,"").split("/").slice(B.length).join("/")}let T=op(i,{pathname:R});Ut(A||T!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Ut(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let O=kg(T&&T.map(B=>Object.assign({},B,{params:Object.assign({},v,B.params),pathname:pn([b,h.encodeLocation?h.encodeLocation(B.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?b:pn([b,h.encodeLocation?h.encodeLocation(B.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathnameBase])})),p,s,u,f);return l&&O?m.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},O):O}function Mg(){let i=Yg(),l=Eg(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,u="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:u},h={padding:"2px 4px",backgroundColor:u},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=m.createElement(m.Fragment,null,m.createElement("p",null,"💿 Hey developer 👋"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:h},"ErrorBoundary")," or"," ",m.createElement("code",{style:h},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},l),s?m.createElement("pre",{style:f},s):null,p)}var Og=m.createElement(Mg,null),Dg=class extends m.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,l){return l.location!==i.location||l.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:l.error,location:l.location,revalidation:i.revalidation||l.revalidation}}componentDidCatch(i,l){this.props.onError?this.props.onError(i,l):console.error("React Router caught the following error during render",i)}render(){return this.state.error!==void 0?m.createElement(gn.Provider,{value:this.props.routeContext},m.createElement(to.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zg({routeContext:i,match:l,children:s}){let u=m.useContext(sl);return u&&u.static&&u.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=l.route.id),m.createElement(gn.Provider,{value:i},s)}function kg(i,l=[],s=null,u=null,f=null){if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(l.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let h=i,p=s?.errors;if(p!=null){let b=h.findIndex(A=>A.route.id&&p?.[A.route.id]!==void 0);Be(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),h=h.slice(0,Math.min(h.length,b+1))}let x=!1,v=-1;if(s)for(let b=0;b=0?h=h.slice(0,v+1):h=[h[0]];break}}}let y=s&&u?(b,A)=>{u(b,{location:s.location,params:s.matches?.[0]?.params??{},errorInfo:A})}:void 0;return h.reduceRight((b,A,C)=>{let E,j=!1,R=null,T=null;s&&(E=p&&A.route.id?p[A.route.id]:void 0,R=A.route.errorElement||Og,x&&(v<0&&C===0?(bp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,T=null):v===C&&(j=!0,T=A.route.hydrateFallbackElement||null)));let O=l.concat(h.slice(0,C+1)),B=()=>{let V;return E?V=R:j?V=T:A.route.Component?V=m.createElement(A.route.Component,null):A.route.element?V=A.route.element:V=b,m.createElement(zg,{match:A,routeContext:{outlet:b,matches:O,isDataRoute:s!=null},children:V})};return s&&(A.route.ErrorBoundary||A.route.errorElement||C===0)?m.createElement(Dg,{location:s.location,revalidation:s.revalidation,component:R,error:E,children:B(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:y}):B()},null)}function no(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bg(i){let l=m.useContext(sl);return Be(l,no(i)),l}function Ug(i){let l=m.useContext(Is);return Be(l,no(i)),l}function Lg(i){let l=m.useContext(gn);return Be(l,no(i)),l}function ao(i){let l=Lg(i),s=l.matches[l.matches.length-1];return Be(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function Hg(){return ao("useRouteId")}function Yg(){let i=m.useContext(to),l=Ug("useRouteError"),s=ao("useRouteError");return i!==void 0?i:l.errors?.[s]}function Vg(){let{router:i}=Bg("useNavigate"),l=ao("useNavigate"),s=m.useRef(!1);return gp(()=>{s.current=!0}),m.useCallback(async(f,h={})=>{Ut(s.current,vp),s.current&&(typeof f=="number"?i.navigate(f):await i.navigate(f,{fromRouteId:l,...h}))},[i,l])}var zm={};function bp(i,l,s){!l&&!zm[i]&&(zm[i]=!0,Ut(!1,s))}m.memo(Qg);function Qg({routes:i,future:l,state:s,unstable_onError:u}){return xp(i,void 0,s,u,l)}function Vc(i){Be(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Gg({basename:i="/",children:l=null,location:s,navigationType:u="POP",navigator:f,static:h=!1}){Be(!oi(),"You cannot render a inside another . You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),x=m.useMemo(()=>({basename:p,navigator:f,static:h,future:{}}),[p,f,h]);typeof s=="string"&&(s=il(s));let{pathname:v="/",search:y="",hash:b="",state:A=null,key:C="default"}=s,E=m.useMemo(()=>{let j=vn(v,p);return j==null?null:{location:{pathname:j,search:y,hash:b,state:A,key:C},navigationType:u}},[p,v,y,b,A,C,u]);return Ut(E!=null,` is not able to match the URL "${v}${y}${b}" because it does not start with the basename, so the won't render anything.`),E==null?null:m.createElement(Zt.Provider,{value:x},m.createElement(ci.Provider,{children:l,value:E}))}function Xg({children:i,location:l}){return _g(Qc(i),l)}function Qc(i,l=[]){let s=[];return m.Children.forEach(i,(u,f)=>{if(!m.isValidElement(u))return;let h=[...l,f];if(u.type===m.Fragment){s.push.apply(s,Qc(u.props.children,h));return}Be(u.type===Vc,`[${typeof u.type=="string"?u.type:u.type.name}] is not a component. All component children of must be a or `),Be(!u.props.index||!u.props.children,"An index route cannot have child routes.");let p={id:u.props.id||h.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(p.children=Qc(u.props.children,h)),s.push(p)}),s}var Vs="get",Qs="application/x-www-form-urlencoded";function Ps(i){return i!=null&&typeof i.tagName=="string"}function Kg(i){return Ps(i)&&i.tagName.toLowerCase()==="button"}function Zg(i){return Ps(i)&&i.tagName.toLowerCase()==="form"}function Jg(i){return Ps(i)&&i.tagName.toLowerCase()==="input"}function $g(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Fg(i,l){return i.button===0&&(!l||l==="_self")&&!$g(i)}var Os=null;function Wg(){if(Os===null)try{new FormData(document.createElement("form"),0),Os=!1}catch{Os=!0}return Os}var Ig=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Cc(i){return i!=null&&!Ig.has(i)?(Ut(!1,`"${i}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Qs}"`),null):i}function Pg(i,l){let s,u,f,h,p;if(Zg(i)){let x=i.getAttribute("action");u=x?vn(x,l):null,s=i.getAttribute("method")||Vs,f=Cc(i.getAttribute("enctype"))||Qs,h=new FormData(i)}else if(Kg(i)||Jg(i)&&(i.type==="submit"||i.type==="image")){let x=i.form;if(x==null)throw new Error('Cannot submit a +
+

Keyboard speeds

+
+ updateKeyboardSpeed('baseSpeed', value)} + /> + updateKeyboardSpeed('turboSpeed', value)} + /> + updateKeyboardSpeed('precisionSpeed', value)} + /> +
+
{Object.entries(grouped).map(([group, actions]) => (
diff --git a/webui/src/controls/ControlContext.jsx b/webui/src/controls/ControlContext.jsx index a6b04888..e3f8a543 100644 --- a/webui/src/controls/ControlContext.jsx +++ b/webui/src/controls/ControlContext.jsx @@ -122,7 +122,7 @@ export function ControlSystemProvider({ children }) { const setDriveVector = useCallback( (vector, meta = {}) => { - const computed = computeDifferentialSpeeds(vector); + const computed = computeDifferentialSpeeds(vector, meta.speedOptions); dispatch({ type: 'control/update-drive', payload: { ...computed, source: meta.source ?? null }, diff --git a/webui/src/controls/inputs/KeyboardInputManager.jsx b/webui/src/controls/inputs/KeyboardInputManager.jsx index 2deaf51f..85942fcd 100644 --- a/webui/src/controls/inputs/KeyboardInputManager.jsx +++ b/webui/src/controls/inputs/KeyboardInputManager.jsx @@ -2,12 +2,20 @@ import { useCallback, useEffect, useMemo, useRef } from 'react'; import { useControlSystem } from '../ControlContext.jsx'; import { useChat } from '../../context/ChatContext.jsx'; import { normalizeKeymapEntries, tokensForEvent } from '../keymapUtils.js'; +import { useSettingsNamespace } from '../../settings/index.js'; +import { INPUT_SETTINGS_DEFAULTS } from '../../settings/namespaces.js'; const SOURCE = 'keyboard'; const ZERO_VECTOR = { x: 0, y: 0, boost: false }; const ZERO_AUX = { main: 0, side: 0, vacuum: 0 }; const SERVO_REPEAT_MS = 110; +function clampSpeed(value, fallback) { + const num = Number(value); + if (!Number.isFinite(num)) return fallback; + return Math.max(0, Math.min(500, num)); +} + function shouldIgnoreEvent(event) { const target = event.target; if (!target) return false; @@ -90,6 +98,7 @@ export default function KeyboardInputManager() { }, } = useControlSystem(); const { focusChat, blurChat, isChatFocused } = useChat(); + const { value: inputSettings } = useSettingsNamespace('inputs', INPUT_SETTINGS_DEFAULTS); const keymap = useMemo(() => normalizeKeymapEntries(state.keymap), [state.keymap]); const actionTokens = useMemo(() => { const tokens = new Set(); @@ -99,6 +108,15 @@ export default function KeyboardInputManager() { }); return tokens; }, [keymap]); + const keyboardSpeeds = useMemo(() => { + const defaults = INPUT_SETTINGS_DEFAULTS.keyboard; + const current = inputSettings?.keyboard ?? {}; + return { + baseSpeed: clampSpeed(current.baseSpeed, defaults.baseSpeed), + turboSpeed: clampSpeed(current.turboSpeed, defaults.turboSpeed), + precisionSpeed: clampSpeed(current.precisionSpeed, defaults.precisionSpeed), + }; + }, [inputSettings?.keyboard]); const servoStep = useMemo( () => Math.abs(state.camera?.config?.nudgeDegrees || 1), [state.camera?.config?.nudgeDegrees], @@ -111,6 +129,11 @@ export default function KeyboardInputManager() { const driveFromKeys = useCallback(() => { const tokensSnapshot = new Set(activeTokensRef.current); + const boostActive = bindingActive(keymap.boostModifier, tokensSnapshot); + const slowActive = bindingActive(keymap.slowModifier, tokensSnapshot); + const speedOptions = slowActive + ? { baseSpeed: keyboardSpeeds.precisionSpeed, boostSpeed: keyboardSpeeds.precisionSpeed } + : { baseSpeed: keyboardSpeeds.baseSpeed, boostSpeed: keyboardSpeeds.turboSpeed }; const vector = computeDriveVector(tokensSnapshot, keymap); const aux = computeAuxMotors(tokensSnapshot, keymap); if ( @@ -119,7 +142,7 @@ export default function KeyboardInputManager() { vector.boost !== lastVectorRef.current.boost ) { lastVectorRef.current = vector; - setDriveVector(vector, { source: SOURCE }); + setDriveVector(vector, { source: SOURCE, speedOptions }); } if ( aux.main !== lastAuxRef.current.main || @@ -134,7 +157,7 @@ export default function KeyboardInputManager() { vector, aux, }); - }, [keymap, registerInputState, setAuxMotors, setDriveVector]); + }, [keymap, keyboardSpeeds, registerInputState, setAuxMotors, setDriveVector]); const stopServoLoop = useCallback(() => { if (servoIntervalRef.current) { diff --git a/webui/src/help/content.js b/webui/src/help/content.js index c44d83fa..aa80edd8 100644 --- a/webui/src/help/content.js +++ b/webui/src/help/content.js @@ -35,7 +35,7 @@ export const HELP_CONTENT = { { type: 'keyboard', title: 'Keyboard controls', - footnote: 'Per-browser; adjust in Settings → Keybindings.', + footnote: 'Per-browser; adjust bindings and speeds in Settings → Keybindings.', groups: [ { id: 'movement', diff --git a/webui/src/settings/namespaces.js b/webui/src/settings/namespaces.js index 92de336e..3071f197 100644 --- a/webui/src/settings/namespaces.js +++ b/webui/src/settings/namespaces.js @@ -1,4 +1,9 @@ export const INPUT_SETTINGS_DEFAULTS = { + keyboard: { + baseSpeed: 250, + turboSpeed: 400, + precisionSpeed: 125, + }, gamepad: { driveDeadzone: 0.2, cameraDeadzone: 0.25,