mapigate 0.5.168 → 0.5.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/mitm/handlers/base.js +2 -2
- package/dist/providers/runtime/antigravity/executor.js +8 -8
- package/dist/providers/runtime/antigravity/metadata.js +1 -1
- package/dist/providers/runtime/antigravity/provider.js +1 -1
- package/dist/providers/runtime/antigravity/quota.js +1 -1
- package/dist/providers/runtime/antigravity/routes.js +1 -1
- package/dist/providers/runtime/antigravity/types.js +1 -1
- package/dist/providers/runtime/antigravity/weekly.js +1 -1
- package/dist/providers/runtime/gemini-cli/provider.js +1 -1
- package/dist/providers/runtime/gemini-cli/quota.js +1 -1
- package/dist/providers/runtime/gemini-cli/routes.js +1 -1
- package/dist/providers/runtime/kiro/constants.js +1 -0
- package/dist/providers/runtime/kiro/executor.js +6 -6
- package/dist/providers/runtime/kiro/index.js +1 -1
- package/dist/providers/runtime/kiro/metadata.js +1 -1
- package/dist/providers/runtime/kiro/provider.js +1 -1
- package/dist/providers/runtime/kiro/quota.js +1 -1
- package/dist/web/assets/{CliToolsTab-D4DtbZ7V.js → CliToolsTab-AP4tHWEj.js} +1 -1
- package/dist/web/assets/{ComboDetailPage-RbsO_iJo.js → ComboDetailPage-8ZPxPl5N.js} +1 -1
- package/dist/web/assets/CombosTab-D0T91znw.js +1 -0
- package/dist/web/assets/{ConfirmModal-DCYNsbhd.js → ConfirmModal-gmHKbGNe.js} +1 -1
- package/dist/web/assets/{ConsoleLogTab-DfNJ54Az.js → ConsoleLogTab-Bpvxqa2f.js} +1 -1
- package/dist/web/assets/{EditAccountModal-DdreWxg7.js → EditAccountModal-PEltZRS8.js} +1 -1
- package/dist/web/assets/{EndpointTab-BYSh-fMY.js → EndpointTab-CYnFpxjA.js} +1 -1
- package/dist/web/assets/{MitmTab-DDSeULv5.js → MitmTab-De7zsN2f.js} +1 -1
- package/dist/web/assets/{ModelAutocompleteInput-Cdnm0qff.js → ModelAutocompleteInput-BH4gr6Dr.js} +1 -1
- package/dist/web/assets/{ModelSelectModal-BsleTaNw.js → ModelSelectModal-B7-jAYUU.js} +1 -1
- package/dist/web/assets/{ProviderDetailPage-k1kl7EIO.js → ProviderDetailPage-DvqxjQHh.js} +1 -1
- package/dist/web/assets/{ProvidersTab-KfP8Lt0p.js → ProvidersTab-DyeFqcx4.js} +1 -1
- package/dist/web/assets/{QuotaTab-BA1BaQbz.js → QuotaTab-DrNRwUP6.js} +1 -1
- package/dist/web/assets/{SettingsTab-FET_sXur.js → SettingsTab-DS6HQKrg.js} +1 -1
- package/dist/web/assets/{UsageTab-C-Cs4o-K.js → UsageTab-Du6U3MIb.js} +1 -1
- package/dist/web/assets/index-9wZva5_f.css +1 -0
- package/dist/web/assets/{index-Di7mCTbW.js → index-BvY11iVv.js} +2 -2
- package/dist/web/assets/metadataRegistry-4BIaQVmV.js +1 -0
- package/dist/web/assets/{providersData-BevGw_jX.js → providersData-C-7jZmPi.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/CombosTab-DpKJ-Tdm.js +0 -1
- package/dist/web/assets/index-h7Meu4Tn.css +0 -1
- package/dist/web/assets/metadataRegistry-EMxpq0lK.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-950:oklch(25.8% .092 26.042);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-950:oklch(27.9% .077 45.635);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-950:oklch(26.2% .051 172.552);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-300:oklch(86.5% .127 207.078);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-900:oklch(39.8% .07 227.392);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-950:oklch(25.7% .09 281.288);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-950:oklch(29.1% .149 302.717);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-xs:4px;--blur-md:12px;--blur-xl:24px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.-inset-1{inset:calc(var(--spacing) * -1)}.inset-0{top:0;right:0;bottom:0;left:0}.-top-\[25\%\]{top:-25%}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-2\.5{top:calc(var(--spacing) * 2.5)}.top-full{top:100%}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.-bottom-\[20\%\]{bottom:-20%}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-auto{left:auto}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.z-\[9999\]{z-index:9999}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-m-2{margin:calc(var(--spacing) * -2)}.mx-0\.5{margin-inline:calc(var(--spacing) * .5)}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mr-1{margin-right:var(--spacing)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-full{width:100%;height:100%}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-4\.5{height:calc(var(--spacing) * 4.5)}.h-5{height:calc(var(--spacing) * 5)}.h-5\.5{height:calc(var(--spacing) * 5.5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-32{height:calc(var(--spacing) * 32)}.h-36{height:calc(var(--spacing) * 36)}.h-48{height:calc(var(--spacing) * 48)}.h-64{height:calc(var(--spacing) * 64)}.h-72{height:calc(var(--spacing) * 72)}.h-\[85vh\]{height:85vh}.h-\[300px\]{height:300px}.h-\[450px\]{height:450px}.h-\[calc\(100vh-140px\)\]{height:calc(100vh - 140px)}.h-full{height:100%}.h-px{height:1px}.max-h-36{max-height:calc(var(--spacing) * 36)}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-60{max-height:calc(var(--spacing) * 60)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[88vh\]{max-height:88vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[260px\]{max-height:260px}.max-h-\[300px\]{max-height:300px}.max-h-\[780px\]{max-height:780px}.min-h-0{min-height:0}.min-h-\[38px\]{min-height:38px}.min-h-\[140px\]{min-height:140px}.min-h-\[220px\]{min-height:220px}.min-h-\[300px\]{min-height:300px}.min-h-\[500px\]{min-height:500px}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-1\/2{width:50%}.w-1\/3{width:33.3333%}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-4\.5{width:calc(var(--spacing) * 4.5)}.w-5{width:calc(var(--spacing) * 5)}.w-5\/6{width:83.3333%}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-32{width:calc(var(--spacing) * 32)}.w-40{width:calc(var(--spacing) * 40)}.w-44{width:calc(var(--spacing) * 44)}.w-52{width:calc(var(--spacing) * 52)}.w-64{width:calc(var(--spacing) * 64)}.w-\[95px\]{width:95px}.w-\[125px\]{width:125px}.w-\[500px\]{width:500px}.w-\[650px\]{width:650px}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[70\%\]{max-width:70%}.max-w-\[72rem\]{max-width:72rem}.max-w-\[120px\]{max-width:120px}.max-w-\[140px\]{max-width:140px}.max-w-\[170px\]{max-width:170px}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[220px\]{max-width:220px}.max-w-\[280px\]{max-width:280px}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.min-w-\[34px\]{min-width:34px}.min-w-\[115px\]{min-width:115px}.min-w-\[125px\]{min-width:125px}.min-w-\[130px\]{min-width:130px}.min-w-\[140px\]{min-width:140px}.min-w-\[145px\]{min-width:145px}.min-w-\[150px\]{min-width:150px}.min-w-\[160px\]{min-width:160px}.min-w-\[170px\]{min-width:170px}.min-w-\[175px\]{min-width:175px}.min-w-\[180px\]{min-width:180px}.min-w-\[200px\]{min-width:200px}.min-w-\[220px\]{min-width:220px}.min-w-\[240px\]{min-width:240px}.min-w-\[250px\]{min-width:250px}.min-w-\[280px\]{min-width:280px}.min-w-\[300px\]{min-width:300px}.min-w-\[400px\]{min-width:400px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-5{--tw-translate-x:calc(var(--spacing) * 5);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-50{--tw-scale-x:50%;--tw-scale-y:50%;--tw-scale-z:50%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.resize-y{resize:vertical}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(250px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(290px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(290px,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(400px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(400px,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-\[\#1E293B\]>:not(:last-child)){border-color:#1e293b}:where(.divide-\[\#1E293B\]\/40>:not(:last-child)){border-color:#1e293b66}:where(.divide-\[\#1E293B\]\/50>:not(:last-child)){border-color:#1e293b80}:where(.divide-\[\#1E293B\]\/60>:not(:last-child)){border-color:#1e293b99}:where(.divide-slate-800\/60>:not(:last-child)){border-color:#1d293d99}@supports (color:color-mix(in lab,red,red)){:where(.divide-slate-800\/60>:not(:last-child)){border-color:color-mix(in oklab,var(--color-slate-800) 60%,transparent)}}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[4px\]{border-radius:4px}.rounded-\[5px\]{border-radius:5px}.rounded-\[6px\]{border-radius:6px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-\[\#1E293B\]{border-color:#1e293b}.border-\[\#1E293B\]\/50{border-color:#1e293b80}.border-\[\#1E293B\]\/60{border-color:#1e293b99}.border-\[\#1E293B\]\/70{border-color:#1e293bb3}.border-\[\#2A374F\]{border-color:#2a374f}.border-\[\#26354D\]{border-color:#26354d}.border-\[\#162032\]{border-color:#162032}.border-\[\#243048\]{border-color:#243048}.border-amber-500\/20{border-color:#f99c0033}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/20{border-color:color-mix(in oklab,var(--color-amber-500) 20%,transparent)}}.border-amber-500\/30{border-color:#f99c004d}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/30{border-color:color-mix(in oklab,var(--color-amber-500) 30%,transparent)}}.border-amber-500\/35{border-color:#f99c0059}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/35{border-color:color-mix(in oklab,var(--color-amber-500) 35%,transparent)}}.border-amber-500\/40{border-color:#f99c0066}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/40{border-color:color-mix(in oklab,var(--color-amber-500) 40%,transparent)}}.border-amber-500\/60{border-color:#f99c0099}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/60{border-color:color-mix(in oklab,var(--color-amber-500) 60%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-400\/30{border-color:#54a2ff4d}@supports (color:color-mix(in lab,red,red)){.border-blue-400\/30{border-color:color-mix(in oklab,var(--color-blue-400) 30%,transparent)}}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-500\/20{border-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/20{border-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.border-blue-500\/25{border-color:#3080ff40}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/25{border-color:color-mix(in oklab,var(--color-blue-500) 25%,transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/30{border-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}.border-blue-500\/40{border-color:#3080ff66}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/40{border-color:color-mix(in oklab,var(--color-blue-500) 40%,transparent)}}.border-blue-500\/50{border-color:#3080ff80}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/50{border-color:color-mix(in oklab,var(--color-blue-500) 50%,transparent)}}.border-blue-500\/60{border-color:#3080ff99}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/60{border-color:color-mix(in oklab,var(--color-blue-500) 60%,transparent)}}.border-blue-500\/70{border-color:#3080ffb3}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/70{border-color:color-mix(in oklab,var(--color-blue-500) 70%,transparent)}}.border-cyan-400{border-color:var(--color-cyan-400)}.border-cyan-500{border-color:var(--color-cyan-500)}.border-cyan-500\/20{border-color:#00b7d733}@supports (color:color-mix(in lab,red,red)){.border-cyan-500\/20{border-color:color-mix(in oklab,var(--color-cyan-500) 20%,transparent)}}.border-cyan-500\/25{border-color:#00b7d740}@supports (color:color-mix(in lab,red,red)){.border-cyan-500\/25{border-color:color-mix(in oklab,var(--color-cyan-500) 25%,transparent)}}.border-cyan-500\/30{border-color:#00b7d74d}@supports (color:color-mix(in lab,red,red)){.border-cyan-500\/30{border-color:color-mix(in oklab,var(--color-cyan-500) 30%,transparent)}}.border-cyan-500\/40{border-color:#00b7d766}@supports (color:color-mix(in lab,red,red)){.border-cyan-500\/40{border-color:color-mix(in oklab,var(--color-cyan-500) 40%,transparent)}}.border-cyan-500\/50{border-color:#00b7d780}@supports (color:color-mix(in lab,red,red)){.border-cyan-500\/50{border-color:color-mix(in oklab,var(--color-cyan-500) 50%,transparent)}}.border-emerald-500{border-color:var(--color-emerald-500)}.border-emerald-500\/20{border-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/20{border-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.border-emerald-500\/40{border-color:#00bb7f66}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/40{border-color:color-mix(in oklab,var(--color-emerald-500) 40%,transparent)}}.border-indigo-500\/20{border-color:#625fff33}@supports (color:color-mix(in lab,red,red)){.border-indigo-500\/20{border-color:color-mix(in oklab,var(--color-indigo-500) 20%,transparent)}}.border-indigo-500\/30{border-color:#625fff4d}@supports (color:color-mix(in lab,red,red)){.border-indigo-500\/30{border-color:color-mix(in oklab,var(--color-indigo-500) 30%,transparent)}}.border-orange-500\/20{border-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/20{border-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.border-purple-500\/20{border-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/20{border-color:color-mix(in oklab,var(--color-purple-500) 20%,transparent)}}.border-purple-500\/30{border-color:#ac4bff4d}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/30{border-color:color-mix(in oklab,var(--color-purple-500) 30%,transparent)}}.border-purple-500\/40{border-color:#ac4bff66}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/40{border-color:color-mix(in oklab,var(--color-purple-500) 40%,transparent)}}.border-purple-500\/60{border-color:#ac4bff99}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/60{border-color:color-mix(in oklab,var(--color-purple-500) 60%,transparent)}}.border-red-500\/20{border-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.border-red-500\/20{border-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.border-red-500\/40{border-color:#fb2c3666}@supports (color:color-mix(in lab,red,red)){.border-red-500\/40{border-color:color-mix(in oklab,var(--color-red-500) 40%,transparent)}}.border-red-500\/50{border-color:#fb2c3680}@supports (color:color-mix(in lab,red,red)){.border-red-500\/50{border-color:color-mix(in oklab,var(--color-red-500) 50%,transparent)}}.border-rose-500\/20{border-color:#ff235733}@supports (color:color-mix(in lab,red,red)){.border-rose-500\/20{border-color:color-mix(in oklab,var(--color-rose-500) 20%,transparent)}}.border-rose-500\/30{border-color:#ff23574d}@supports (color:color-mix(in lab,red,red)){.border-rose-500\/30{border-color:color-mix(in oklab,var(--color-rose-500) 30%,transparent)}}.border-rose-500\/80{border-color:#ff2357cc}@supports (color:color-mix(in lab,red,red)){.border-rose-500\/80{border-color:color-mix(in oklab,var(--color-rose-500) 80%,transparent)}}.border-sky-500\/30{border-color:#00a5ef4d}@supports (color:color-mix(in lab,red,red)){.border-sky-500\/30{border-color:color-mix(in oklab,var(--color-sky-500) 30%,transparent)}}.border-slate-500\/20{border-color:#62748e33}@supports (color:color-mix(in lab,red,red)){.border-slate-500\/20{border-color:color-mix(in oklab,var(--color-slate-500) 20%,transparent)}}.border-slate-700{border-color:var(--color-slate-700)}.border-slate-700\/50{border-color:#31415880}@supports (color:color-mix(in lab,red,red)){.border-slate-700\/50{border-color:color-mix(in oklab,var(--color-slate-700) 50%,transparent)}}.border-slate-700\/60{border-color:#31415899}@supports (color:color-mix(in lab,red,red)){.border-slate-700\/60{border-color:color-mix(in oklab,var(--color-slate-700) 60%,transparent)}}.border-slate-800{border-color:var(--color-slate-800)}.border-slate-800\/60{border-color:#1d293d99}@supports (color:color-mix(in lab,red,red)){.border-slate-800\/60{border-color:color-mix(in oklab,var(--color-slate-800) 60%,transparent)}}.border-slate-800\/80{border-color:#1d293dcc}@supports (color:color-mix(in lab,red,red)){.border-slate-800\/80{border-color:color-mix(in oklab,var(--color-slate-800) 80%,transparent)}}.border-transparent{border-color:#0000}.border-t-amber-500{border-top-color:var(--color-amber-500)}.border-t-blue-500{border-top-color:var(--color-blue-500)}.border-t-blue-500\/50{border-top-color:#3080ff80}@supports (color:color-mix(in lab,red,red)){.border-t-blue-500\/50{border-top-color:color-mix(in oklab,var(--color-blue-500) 50%,transparent)}}.border-t-transparent{border-top-color:#0000}.bg-\[\#0A0D14\]{background-color:#0a0d14}.bg-\[\#0A0D14\]\/40{background-color:#0a0d1466}.bg-\[\#0A0D14\]\/50{background-color:#0a0d1480}.bg-\[\#0A0D14\]\/60{background-color:#0a0d1499}.bg-\[\#0A0D14\]\/70{background-color:#0a0d14b3}.bg-\[\#0A0D14\]\/80{background-color:#0a0d14cc}.bg-\[\#0A0D14\]\/90{background-color:#0a0d14e6}.bg-\[\#0A0D14\]\/95{background-color:#0a0d14f2}.bg-\[\#0A0E18\]{background-color:#0a0e18}.bg-\[\#0B0E17\]\/60{background-color:#0b0e1799}.bg-\[\#0B0F17\]{background-color:#0b0f17}.bg-\[\#0B0F19\]{background-color:#0b0f19}.bg-\[\#0B0F19\]\/95{background-color:#0b0f19f2}.bg-\[\#0D111A\]\/90{background-color:#0d111ae6}.bg-\[\#0D121F\]{background-color:#0d121f}.bg-\[\#0D1322\]{background-color:#0d1322}.bg-\[\#0E1320\]{background-color:#0e1320}.bg-\[\#0E1320\]\/60{background-color:#0e132099}.bg-\[\#0E1424\]{background-color:#0e1424}.bg-\[\#0F141C\]{background-color:#0f141c}.bg-\[\#0F1420\]{background-color:#0f1420}.bg-\[\#0F1420\]\/40{background-color:#0f142066}.bg-\[\#0F1420\]\/50{background-color:#0f142080}.bg-\[\#0F1420\]\/60{background-color:#0f142099}.bg-\[\#0F1420\]\/70{background-color:#0f1420b3}.bg-\[\#0F1420\]\/80{background-color:#0f1420cc}.bg-\[\#0F1626\]{background-color:#0f1626}.bg-\[\#1E293B\]{background-color:#1e293b}.bg-\[\#10B981\]\/80{background-color:#10b981cc}.bg-\[\#070A11\]{background-color:#070a11}.bg-\[\#080B10\]{background-color:#080b10}.bg-\[\#080B11\]{background-color:#080b11}.bg-\[\#080B12\]{background-color:#080b12}.bg-\[\#080B12\]\/60{background-color:#080b1299}.bg-\[\#131B2E\]{background-color:#131b2e}.bg-\[\#141B2D\]{background-color:#141b2d}.bg-\[\#141B2D\]\/80{background-color:#141b2dcc}.bg-\[\#151C2C\]{background-color:#151c2c}.bg-\[\#151D2F\]{background-color:#151d2f}.bg-\[\#161F30\]{background-color:#161f30}.bg-\[\#05070B\]{background-color:#05070b}.bg-\[\#06101E\]{background-color:#06101e}.bg-\[\#07090E\]{background-color:#07090e}.bg-\[\#111726\]{background-color:#111726}.bg-\[\#111827\]{background-color:#111827}.bg-\[\#111827\]\/60{background-color:#11182799}.bg-\[\#EF4444\]\/80{background-color:#ef4444cc}.bg-\[\#F59E0B\]\/80{background-color:#f59e0bcc}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/10{background-color:color-mix(in oklab,var(--color-amber-500) 10%,transparent)}}.bg-amber-500\/15{background-color:#f99c0026}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/15{background-color:color-mix(in oklab,var(--color-amber-500) 15%,transparent)}}.bg-amber-500\/20{background-color:#f99c0033}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/20{background-color:color-mix(in oklab,var(--color-amber-500) 20%,transparent)}}.bg-amber-600{background-color:var(--color-amber-600)}.bg-amber-950\/40{background-color:#46190166}@supports (color:color-mix(in lab,red,red)){.bg-amber-950\/40{background-color:color-mix(in oklab,var(--color-amber-950) 40%,transparent)}}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.bg-black\/60{background-color:#0009}@supports (color:color-mix(in lab,red,red)){.bg-black\/60{background-color:color-mix(in oklab,var(--color-black) 60%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-black\/75{background-color:#000000bf}@supports (color:color-mix(in lab,red,red)){.bg-black\/75{background-color:color-mix(in oklab,var(--color-black) 75%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\/5{background-color:#3080ff0d}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/5{background-color:color-mix(in oklab,var(--color-blue-500) 5%,transparent)}}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.bg-blue-500\/15{background-color:#3080ff26}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/15{background-color:color-mix(in oklab,var(--color-blue-500) 15%,transparent)}}.bg-blue-500\/20{background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/20{background-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-600\/10{background-color:#155dfc1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-600\/10{background-color:color-mix(in oklab,var(--color-blue-600) 10%,transparent)}}.bg-blue-600\/15{background-color:#155dfc26}@supports (color:color-mix(in lab,red,red)){.bg-blue-600\/15{background-color:color-mix(in oklab,var(--color-blue-600) 15%,transparent)}}.bg-blue-600\/20{background-color:#155dfc33}@supports (color:color-mix(in lab,red,red)){.bg-blue-600\/20{background-color:color-mix(in oklab,var(--color-blue-600) 20%,transparent)}}.bg-blue-600\/30{background-color:#155dfc4d}@supports (color:color-mix(in lab,red,red)){.bg-blue-600\/30{background-color:color-mix(in oklab,var(--color-blue-600) 30%,transparent)}}.bg-blue-950\/40{background-color:#16245666}@supports (color:color-mix(in lab,red,red)){.bg-blue-950\/40{background-color:color-mix(in oklab,var(--color-blue-950) 40%,transparent)}}.bg-current{background-color:currentColor}.bg-cyan-400{background-color:var(--color-cyan-400)}.bg-cyan-500\/10{background-color:#00b7d71a}@supports (color:color-mix(in lab,red,red)){.bg-cyan-500\/10{background-color:color-mix(in oklab,var(--color-cyan-500) 10%,transparent)}}.bg-cyan-500\/15{background-color:#00b7d726}@supports (color:color-mix(in lab,red,red)){.bg-cyan-500\/15{background-color:color-mix(in oklab,var(--color-cyan-500) 15%,transparent)}}.bg-cyan-500\/20{background-color:#00b7d733}@supports (color:color-mix(in lab,red,red)){.bg-cyan-500\/20{background-color:color-mix(in oklab,var(--color-cyan-500) 20%,transparent)}}.bg-cyan-500\/30{background-color:#00b7d74d}@supports (color:color-mix(in lab,red,red)){.bg-cyan-500\/30{background-color:color-mix(in oklab,var(--color-cyan-500) 30%,transparent)}}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-cyan-600\/10{background-color:#0092b51a}@supports (color:color-mix(in lab,red,red)){.bg-cyan-600\/10{background-color:color-mix(in oklab,var(--color-cyan-600) 10%,transparent)}}.bg-cyan-950\/20{background-color:#05334533}@supports (color:color-mix(in lab,red,red)){.bg-cyan-950\/20{background-color:color-mix(in oklab,var(--color-cyan-950) 20%,transparent)}}.bg-cyan-950\/30{background-color:#0533454d}@supports (color:color-mix(in lab,red,red)){.bg-cyan-950\/30{background-color:color-mix(in oklab,var(--color-cyan-950) 30%,transparent)}}.bg-cyan-950\/40{background-color:#05334566}@supports (color:color-mix(in lab,red,red)){.bg-cyan-950\/40{background-color:color-mix(in oklab,var(--color-cyan-950) 40%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-emerald-500\/15{background-color:#00bb7f26}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/15{background-color:color-mix(in oklab,var(--color-emerald-500) 15%,transparent)}}.bg-emerald-500\/20{background-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/20{background-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.bg-emerald-500\/30{background-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/30{background-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-emerald-950\/40{background-color:#002c2266}@supports (color:color-mix(in lab,red,red)){.bg-emerald-950\/40{background-color:color-mix(in oklab,var(--color-emerald-950) 40%,transparent)}}.bg-indigo-500\/10{background-color:#625fff1a}@supports (color:color-mix(in lab,red,red)){.bg-indigo-500\/10{background-color:color-mix(in oklab,var(--color-indigo-500) 10%,transparent)}}.bg-indigo-950\/40{background-color:#1e1a4d66}@supports (color:color-mix(in lab,red,red)){.bg-indigo-950\/40{background-color:color-mix(in oklab,var(--color-indigo-950) 40%,transparent)}}.bg-orange-500\/10{background-color:#fe6e001a}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/10{background-color:color-mix(in oklab,var(--color-orange-500) 10%,transparent)}}.bg-purple-400{background-color:var(--color-purple-400)}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500) 10%,transparent)}}.bg-purple-500\/15{background-color:#ac4bff26}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/15{background-color:color-mix(in oklab,var(--color-purple-500) 15%,transparent)}}.bg-purple-500\/20{background-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/20{background-color:color-mix(in oklab,var(--color-purple-500) 20%,transparent)}}.bg-purple-600\/10{background-color:#9810fa1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-600\/10{background-color:color-mix(in oklab,var(--color-purple-600) 10%,transparent)}}.bg-purple-950\/40{background-color:#3c036666}@supports (color:color-mix(in lab,red,red)){.bg-purple-950\/40{background-color:color-mix(in oklab,var(--color-purple-950) 40%,transparent)}}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500) 15%,transparent)}}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-red-950\/20{background-color:#46080933}@supports (color:color-mix(in lab,red,red)){.bg-red-950\/20{background-color:color-mix(in oklab,var(--color-red-950) 20%,transparent)}}.bg-rose-400{background-color:var(--color-rose-400)}.bg-rose-500\/5{background-color:#ff23570d}@supports (color:color-mix(in lab,red,red)){.bg-rose-500\/5{background-color:color-mix(in oklab,var(--color-rose-500) 5%,transparent)}}.bg-rose-500\/10{background-color:#ff23571a}@supports (color:color-mix(in lab,red,red)){.bg-rose-500\/10{background-color:color-mix(in oklab,var(--color-rose-500) 10%,transparent)}}.bg-rose-500\/15{background-color:#ff235726}@supports (color:color-mix(in lab,red,red)){.bg-rose-500\/15{background-color:color-mix(in oklab,var(--color-rose-500) 15%,transparent)}}.bg-sky-400{background-color:var(--color-sky-400)}.bg-sky-500\/15{background-color:#00a5ef26}@supports (color:color-mix(in lab,red,red)){.bg-sky-500\/15{background-color:color-mix(in oklab,var(--color-sky-500) 15%,transparent)}}.bg-slate-500{background-color:var(--color-slate-500)}.bg-slate-500\/10{background-color:#62748e1a}@supports (color:color-mix(in lab,red,red)){.bg-slate-500\/10{background-color:color-mix(in oklab,var(--color-slate-500) 10%,transparent)}}.bg-slate-600{background-color:var(--color-slate-600)}.bg-slate-700{background-color:var(--color-slate-700)}.bg-slate-700\/30{background-color:#3141584d}@supports (color:color-mix(in lab,red,red)){.bg-slate-700\/30{background-color:color-mix(in oklab,var(--color-slate-700) 30%,transparent)}}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-800\/40{background-color:#1d293d66}@supports (color:color-mix(in lab,red,red)){.bg-slate-800\/40{background-color:color-mix(in oklab,var(--color-slate-800) 40%,transparent)}}.bg-slate-800\/50{background-color:#1d293d80}@supports (color:color-mix(in lab,red,red)){.bg-slate-800\/50{background-color:color-mix(in oklab,var(--color-slate-800) 50%,transparent)}}.bg-slate-800\/60{background-color:#1d293d99}@supports (color:color-mix(in lab,red,red)){.bg-slate-800\/60{background-color:color-mix(in oklab,var(--color-slate-800) 60%,transparent)}}.bg-slate-800\/80{background-color:#1d293dcc}@supports (color:color-mix(in lab,red,red)){.bg-slate-800\/80{background-color:color-mix(in oklab,var(--color-slate-800) 80%,transparent)}}.bg-slate-900{background-color:var(--color-slate-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.bg-white\/5{background-color:color-mix(in oklab,var(--color-white) 5%,transparent)}}.bg-white\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\/20{background-color:color-mix(in oklab,var(--color-white) 20%,transparent)}}.bg-zinc-950{background-color:var(--color-zinc-950)}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-blue-600\/15{--tw-gradient-from:#155dfc26}@supports (color:color-mix(in lab,red,red)){.from-blue-600\/15{--tw-gradient-from:color-mix(in oklab, var(--color-blue-600) 15%, transparent)}}.from-blue-600\/15{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-blue-900\/80{--tw-gradient-from:#1c398ecc}@supports (color:color-mix(in lab,red,red)){.from-blue-900\/80{--tw-gradient-from:color-mix(in oklab, var(--color-blue-900) 80%, transparent)}}.from-blue-900\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-cyan-900\/50{--tw-gradient-via:#104e6480}@supports (color:color-mix(in lab,red,red)){.via-cyan-900\/50{--tw-gradient-via:color-mix(in oklab, var(--color-cyan-900) 50%, transparent)}}.via-cyan-900\/50{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-indigo-600\/10{--tw-gradient-via:#4f39f61a}@supports (color:color-mix(in lab,red,red)){.via-indigo-600\/10{--tw-gradient-via:color-mix(in oklab, var(--color-indigo-600) 10%, transparent)}}.via-indigo-600\/10{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-blue-950{--tw-gradient-to:var(--color-blue-950);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-cyan-400{--tw-gradient-to:var(--color-cyan-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-indigo-500{--tw-gradient-to:var(--color-indigo-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-indigo-600{--tw-gradient-to:var(--color-indigo-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-contain{object-fit:contain}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-12{padding:calc(var(--spacing) * 12)}.\!px-2\.5{padding-inline:calc(var(--spacing) * 2.5)!important}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.\!py-1{padding-block:var(--spacing)!important}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-14{padding-block:calc(var(--spacing) * 14)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-20{padding-block:calc(var(--spacing) * 20)}.py-24{padding-block:calc(var(--spacing) * 24)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pr-1{padding-right:var(--spacing)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-7{padding-right:calc(var(--spacing) * 7)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pr-20{padding-right:calc(var(--spacing) * 20)}.pb-1{padding-bottom:var(--spacing)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-3\.5{padding-bottom:calc(var(--spacing) * 3.5)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pb-20{padding-bottom:calc(var(--spacing) * 20)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9\.5px\]{font-size:9.5px}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11\.5px\]{font-size:11.5px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[17px\]{font-size:17px}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[22px\]{font-size:22px}.text-\[24px\]{font-size:24px}.text-\[26px\]{font-size:26px}.text-\[28px\]{font-size:28px}.text-\[32px\]{font-size:32px}.text-\[36px\]{font-size:36px}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-200{color:var(--color-amber-200)}.text-amber-200\/70{color:#fee685b3}@supports (color:color-mix(in lab,red,red)){.text-amber-200\/70{color:color-mix(in oklab,var(--color-amber-200) 70%,transparent)}}.text-amber-200\/90{color:#fee685e6}@supports (color:color-mix(in lab,red,red)){.text-amber-200\/90{color:color-mix(in oklab,var(--color-amber-200) 90%,transparent)}}.text-amber-300{color:var(--color-amber-300)}.text-amber-400{color:var(--color-amber-400)}.text-amber-400\/90{color:#fcbb00e6}@supports (color:color-mix(in lab,red,red)){.text-amber-400\/90{color:color-mix(in oklab,var(--color-amber-400) 90%,transparent)}}.text-amber-500\/80{color:#f99c00cc}@supports (color:color-mix(in lab,red,red)){.text-amber-500\/80{color:color-mix(in oklab,var(--color-amber-500) 80%,transparent)}}.text-black{color:var(--color-black)}.text-blue-200{color:var(--color-blue-200)}.text-blue-300{color:var(--color-blue-300)}.text-blue-400{color:var(--color-blue-400)}.text-blue-400\/80{color:#54a2ffcc}@supports (color:color-mix(in lab,red,red)){.text-blue-400\/80{color:color-mix(in oklab,var(--color-blue-400) 80%,transparent)}}.text-blue-400\/90{color:#54a2ffe6}@supports (color:color-mix(in lab,red,red)){.text-blue-400\/90{color:color-mix(in oklab,var(--color-blue-400) 90%,transparent)}}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-cyan-200{color:var(--color-cyan-200)}.text-cyan-300{color:var(--color-cyan-300)}.text-cyan-400{color:var(--color-cyan-400)}.text-cyan-400\/90{color:#00d2efe6}@supports (color:color-mix(in lab,red,red)){.text-cyan-400\/90{color:color-mix(in oklab,var(--color-cyan-400) 90%,transparent)}}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-400\/80{color:#00d294cc}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/80{color:color-mix(in oklab,var(--color-emerald-400) 80%,transparent)}}.text-emerald-400\/90{color:#00d294e6}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/90{color:color-mix(in oklab,var(--color-emerald-400) 90%,transparent)}}.text-indigo-300{color:var(--color-indigo-300)}.text-indigo-400{color:var(--color-indigo-400)}.text-orange-300{color:var(--color-orange-300)}.text-orange-400{color:var(--color-orange-400)}.text-purple-300{color:var(--color-purple-300)}.text-purple-400{color:var(--color-purple-400)}.text-purple-400\/90{color:#c07effe6}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/90{color:color-mix(in oklab,var(--color-purple-400) 90%,transparent)}}.text-red-200{color:var(--color-red-200)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-400\/80{color:#ff6568cc}@supports (color:color-mix(in lab,red,red)){.text-red-400\/80{color:color-mix(in oklab,var(--color-red-400) 80%,transparent)}}.text-red-400\/90{color:#ff6568e6}@supports (color:color-mix(in lab,red,red)){.text-red-400\/90{color:color-mix(in oklab,var(--color-red-400) 90%,transparent)}}.text-rose-200\/80{color:#ffccd3cc}@supports (color:color-mix(in lab,red,red)){.text-rose-200\/80{color:color-mix(in oklab,var(--color-rose-200) 80%,transparent)}}.text-rose-300{color:var(--color-rose-300)}.text-rose-400{color:var(--color-rose-400)}.text-rose-400\/80{color:#ff667fcc}@supports (color:color-mix(in lab,red,red)){.text-rose-400\/80{color:color-mix(in oklab,var(--color-rose-400) 80%,transparent)}}.text-sky-400{color:var(--color-sky-400)}.text-slate-100{color:var(--color-slate-100)}.text-slate-200{color:var(--color-slate-200)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-950{color:var(--color-slate-950)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-zinc-100{color:var(--color-zinc-100)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::placeholder{color:var(--color-slate-500)}.placeholder-slate-600::placeholder{color:var(--color-slate-600)}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_6px_\#34d399\]{--tw-shadow:0 0 6px var(--tw-shadow-color,#34d399);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_6px_\#38bdf8\]{--tw-shadow:0 0 6px var(--tw-shadow-color,#38bdf8);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_6px_\#c084fc\]{--tw-shadow:0 0 6px var(--tw-shadow-color,#c084fc);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_6px_\#f87171\]{--tw-shadow:0 0 6px var(--tw-shadow-color,#f87171);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_6px_\#facc15\]{--tw-shadow:0 0 6px var(--tw-shadow-color,#facc15);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_8px_\#34d399\]{--tw-shadow:0 0 8px var(--tw-shadow-color,#34d399);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_14px_rgba\(34\,211\,238\,0\.7\)\]{--tw-shadow:0 0 14px var(--tw-shadow-color,#22d3eeb3);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_18px_rgba\(56\,189\,248\,0\.4\)\]{--tw-shadow:0 0 18px var(--tw-shadow-color,#38bdf866);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_24px_rgba\(34\,211\,238\,0\.5\)\]{--tw-shadow:0 0 24px var(--tw-shadow-color,#22d3ee80);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-amber-500\/5{--tw-shadow-color:#f99c000d}@supports (color:color-mix(in lab,red,red)){.shadow-amber-500\/5{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-amber-500) 5%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-black\/60{--tw-shadow-color:#0009}@supports (color:color-mix(in lab,red,red)){.shadow-black\/60{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-black) 60%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-blue-500\/10{--tw-shadow-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.shadow-blue-500\/10{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-blue-500) 10%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-blue-500\/20{--tw-shadow-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.shadow-blue-500\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-blue-500) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-blue-500\/25{--tw-shadow-color:#3080ff40}@supports (color:color-mix(in lab,red,red)){.shadow-blue-500\/25{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-blue-500) 25%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-blue-500\/30{--tw-shadow-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.shadow-blue-500\/30{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-blue-500) 30%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-blue-600\/20{--tw-shadow-color:#155dfc33}@supports (color:color-mix(in lab,red,red)){.shadow-blue-600\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-blue-600) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-blue-600\/30{--tw-shadow-color:#155dfc4d}@supports (color:color-mix(in lab,red,red)){.shadow-blue-600\/30{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-blue-600) 30%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-cyan-500\/25{--tw-shadow-color:#00b7d740}@supports (color:color-mix(in lab,red,red)){.shadow-cyan-500\/25{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-cyan-500) 25%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-emerald-500\/25{--tw-shadow-color:#00bb7f40}@supports (color:color-mix(in lab,red,red)){.shadow-emerald-500\/25{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-emerald-500) 25%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-emerald-600\/20{--tw-shadow-color:#00976733}@supports (color:color-mix(in lab,red,red)){.shadow-emerald-600\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-emerald-600) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-emerald-600\/30{--tw-shadow-color:#0097674d}@supports (color:color-mix(in lab,red,red)){.shadow-emerald-600\/30{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-emerald-600) 30%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-purple-500\/5{--tw-shadow-color:#ac4bff0d}@supports (color:color-mix(in lab,red,red)){.shadow-purple-500\/5{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-purple-500) 5%, transparent) var(--tw-shadow-alpha), transparent)}}.ring-amber-500\/30{--tw-ring-color:#f99c004d}@supports (color:color-mix(in lab,red,red)){.ring-amber-500\/30{--tw-ring-color:color-mix(in oklab, var(--color-amber-500) 30%, transparent)}}.ring-blue-500\/20{--tw-ring-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.ring-blue-500\/20{--tw-ring-color:color-mix(in oklab, var(--color-blue-500) 20%, transparent)}}.ring-purple-500\/30{--tw-ring-color:#ac4bff4d}@supports (color:color-mix(in lab,red,red)){.ring-purple-500\/30{--tw-ring-color:color-mix(in oklab, var(--color-purple-500) 30%, transparent)}}.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,)}.blur-\[120px\]{--tw-blur:blur(120px);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,)}.blur-\[140px\]{--tw-blur:blur(140px);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,)}.blur-md{--tw-blur:blur(var(--blur-md));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,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}@media(hover:hover){.group-hover\:translate-y-\[-0\.5px\]:is(:where(.group):hover *){--tw-translate-y:-.5px;translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\:border-blue-500\/40:is(:where(.group):hover *){border-color:#3080ff66}@supports (color:color-mix(in lab,red,red)){.group-hover\:border-blue-500\/40:is(:where(.group):hover *){border-color:color-mix(in oklab,var(--color-blue-500) 40%,transparent)}}.group-hover\:border-blue-500\/50:is(:where(.group):hover *){border-color:#3080ff80}@supports (color:color-mix(in lab,red,red)){.group-hover\:border-blue-500\/50:is(:where(.group):hover *){border-color:color-mix(in oklab,var(--color-blue-500) 50%,transparent)}}.group-hover\:border-cyan-500\/50:is(:where(.group):hover *){border-color:#00b7d780}@supports (color:color-mix(in lab,red,red)){.group-hover\:border-cyan-500\/50:is(:where(.group):hover *){border-color:color-mix(in oklab,var(--color-cyan-500) 50%,transparent)}}.group-hover\:border-emerald-500\/50:is(:where(.group):hover *){border-color:#00bb7f80}@supports (color:color-mix(in lab,red,red)){.group-hover\:border-emerald-500\/50:is(:where(.group):hover *){border-color:color-mix(in oklab,var(--color-emerald-500) 50%,transparent)}}.group-hover\:border-slate-500:is(:where(.group):hover *){border-color:var(--color-slate-500)}.group-hover\:text-blue-400:is(:where(.group):hover *){color:var(--color-blue-400)}.group-hover\:text-cyan-300:is(:where(.group):hover *){color:var(--color-cyan-300)}.group-hover\:text-slate-400:is(:where(.group):hover *){color:var(--color-slate-400)}.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\:opacity-75:is(:where(.group):hover *){opacity:.75}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.peer-checked\:bg-amber-500:is(:where(.peer):checked~*){background-color:var(--color-amber-500)}.peer-checked\:bg-blue-600:is(:where(.peer):checked~*){background-color:var(--color-blue-600)}.peer-checked\:bg-cyan-500:is(:where(.peer):checked~*){background-color:var(--color-cyan-500)}.peer-checked\:bg-cyan-600:is(:where(.peer):checked~*){background-color:var(--color-cyan-600)}.peer-checked\:bg-emerald-500:is(:where(.peer):checked~*){background-color:var(--color-emerald-500)}.peer-checked\:bg-purple-500:is(:where(.peer):checked~*){background-color:var(--color-purple-500)}.peer-checked\:bg-purple-600:is(:where(.peer):checked~*){background-color:var(--color-purple-600)}.peer-focus\:outline-none:is(:where(.peer):focus~*){--tw-outline-style:none;outline-style:none}.peer-focus-visible\:ring-2:is(:where(.peer):focus-visible~*){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-focus-visible\:ring-blue-500\/50:is(:where(.peer):focus-visible~*){--tw-ring-color:#3080ff80}@supports (color:color-mix(in lab,red,red)){.peer-focus-visible\:ring-blue-500\/50:is(:where(.peer):focus-visible~*){--tw-ring-color:color-mix(in oklab, var(--color-blue-500) 50%, transparent)}}.peer-focus-visible\:ring-cyan-500\/50:is(:where(.peer):focus-visible~*){--tw-ring-color:#00b7d780}@supports (color:color-mix(in lab,red,red)){.peer-focus-visible\:ring-cyan-500\/50:is(:where(.peer):focus-visible~*){--tw-ring-color:color-mix(in oklab, var(--color-cyan-500) 50%, transparent)}}.peer-focus-visible\:ring-emerald-500\/50:is(:where(.peer):focus-visible~*){--tw-ring-color:#00bb7f80}@supports (color:color-mix(in lab,red,red)){.peer-focus-visible\:ring-emerald-500\/50:is(:where(.peer):focus-visible~*){--tw-ring-color:color-mix(in oklab, var(--color-emerald-500) 50%, transparent)}}.peer-focus-visible\:ring-offset-2:is(:where(.peer):focus-visible~*){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.peer-focus-visible\:ring-offset-\[\#0A0D14\]:is(:where(.peer):focus-visible~*){--tw-ring-offset-color:#0a0d14}.placeholder\:text-slate-600::placeholder{color:var(--color-slate-600)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:top-\[2px\]:after{content:var(--tw-content);top:2px}.after\:left-\[2px\]:after{content:var(--tw-content);left:2px}.after\:h-3\.5:after{content:var(--tw-content);height:calc(var(--spacing) * 3.5)}.after\:h-4:after{content:var(--tw-content);height:calc(var(--spacing) * 4)}.after\:h-4\.5:after{content:var(--tw-content);height:calc(var(--spacing) * 4.5)}.after\:h-5:after{content:var(--tw-content);height:calc(var(--spacing) * 5)}.after\:w-3\.5:after{content:var(--tw-content);width:calc(var(--spacing) * 3.5)}.after\:w-4:after{content:var(--tw-content);width:calc(var(--spacing) * 4)}.after\:w-4\.5:after{content:var(--tw-content);width:calc(var(--spacing) * 4.5)}.after\:w-5:after{content:var(--tw-content);width:calc(var(--spacing) * 5)}.after\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\:bg-white:after{content:var(--tw-content);background-color:var(--color-white)}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.peer-checked\:after\:translate-x-full:is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.peer-checked\:after\:border-white:is(:where(.peer):checked~*):after{content:var(--tw-content);border-color:var(--color-white)}@media(hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:border-\[\#1E293B\]:hover{border-color:#1e293b}.hover\:border-amber-400:hover{border-color:var(--color-amber-400)}.hover\:border-amber-500\/30:hover{border-color:#f99c004d}@supports (color:color-mix(in lab,red,red)){.hover\:border-amber-500\/30:hover{border-color:color-mix(in oklab,var(--color-amber-500) 30%,transparent)}}.hover\:border-blue-500\/30:hover{border-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.hover\:border-blue-500\/30:hover{border-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}.hover\:border-blue-500\/40:hover{border-color:#3080ff66}@supports (color:color-mix(in lab,red,red)){.hover\:border-blue-500\/40:hover{border-color:color-mix(in oklab,var(--color-blue-500) 40%,transparent)}}.hover\:border-blue-500\/50:hover{border-color:#3080ff80}@supports (color:color-mix(in lab,red,red)){.hover\:border-blue-500\/50:hover{border-color:color-mix(in oklab,var(--color-blue-500) 50%,transparent)}}.hover\:border-cyan-500\/30:hover{border-color:#00b7d74d}@supports (color:color-mix(in lab,red,red)){.hover\:border-cyan-500\/30:hover{border-color:color-mix(in oklab,var(--color-cyan-500) 30%,transparent)}}.hover\:border-cyan-500\/40:hover{border-color:#00b7d766}@supports (color:color-mix(in lab,red,red)){.hover\:border-cyan-500\/40:hover{border-color:color-mix(in oklab,var(--color-cyan-500) 40%,transparent)}}.hover\:border-cyan-500\/50:hover{border-color:#00b7d780}@supports (color:color-mix(in lab,red,red)){.hover\:border-cyan-500\/50:hover{border-color:color-mix(in oklab,var(--color-cyan-500) 50%,transparent)}}.hover\:border-emerald-500\/30:hover{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.hover\:border-emerald-500\/30:hover{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.hover\:border-emerald-500\/50:hover{border-color:#00bb7f80}@supports (color:color-mix(in lab,red,red)){.hover\:border-emerald-500\/50:hover{border-color:color-mix(in oklab,var(--color-emerald-500) 50%,transparent)}}.hover\:border-purple-500\/30:hover{border-color:#ac4bff4d}@supports (color:color-mix(in lab,red,red)){.hover\:border-purple-500\/30:hover{border-color:color-mix(in oklab,var(--color-purple-500) 30%,transparent)}}.hover\:border-red-500\/40:hover{border-color:#fb2c3666}@supports (color:color-mix(in lab,red,red)){.hover\:border-red-500\/40:hover{border-color:color-mix(in oklab,var(--color-red-500) 40%,transparent)}}.hover\:border-slate-500:hover{border-color:var(--color-slate-500)}.hover\:border-slate-600:hover{border-color:var(--color-slate-600)}.hover\:border-slate-700:hover{border-color:var(--color-slate-700)}.hover\:border-slate-700\/80:hover{border-color:#314158cc}@supports (color:color-mix(in lab,red,red)){.hover\:border-slate-700\/80:hover{border-color:color-mix(in oklab,var(--color-slate-700) 80%,transparent)}}.hover\:bg-\[\#0E1524\]:hover{background-color:#0e1524}.hover\:bg-\[\#0F1420\]:hover{background-color:#0f1420}.hover\:bg-\[\#1E293B\]\/70:hover{background-color:#1e293bb3}.hover\:bg-\[\#2A374A\]:hover{background-color:#2a374a}.hover\:bg-\[\#131B2E\]:hover{background-color:#131b2e}.hover\:bg-\[\#141B2D\]:hover{background-color:#141b2d}.hover\:bg-\[\#141B2D\]\/40:hover{background-color:#141b2d66}.hover\:bg-amber-400:hover{background-color:var(--color-amber-400)}.hover\:bg-amber-500:hover{background-color:var(--color-amber-500)}.hover\:bg-amber-500\/20:hover{background-color:#f99c0033}@supports (color:color-mix(in lab,red,red)){.hover\:bg-amber-500\/20:hover{background-color:color-mix(in oklab,var(--color-amber-500) 20%,transparent)}}.hover\:bg-amber-500\/25:hover{background-color:#f99c0040}@supports (color:color-mix(in lab,red,red)){.hover\:bg-amber-500\/25:hover{background-color:color-mix(in oklab,var(--color-amber-500) 25%,transparent)}}.hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\:bg-blue-500\/10:hover{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-blue-500\/10:hover{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.hover\:bg-blue-500\/20:hover{background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.hover\:bg-blue-500\/20:hover{background-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-blue-600\/10:hover{background-color:#155dfc1a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-blue-600\/10:hover{background-color:color-mix(in oklab,var(--color-blue-600) 10%,transparent)}}.hover\:bg-blue-600\/20:hover{background-color:#155dfc33}@supports (color:color-mix(in lab,red,red)){.hover\:bg-blue-600\/20:hover{background-color:color-mix(in oklab,var(--color-blue-600) 20%,transparent)}}.hover\:bg-blue-600\/30:hover{background-color:#155dfc4d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-blue-600\/30:hover{background-color:color-mix(in oklab,var(--color-blue-600) 30%,transparent)}}.hover\:bg-cyan-600\/20:hover{background-color:#0092b533}@supports (color:color-mix(in lab,red,red)){.hover\:bg-cyan-600\/20:hover{background-color:color-mix(in oklab,var(--color-cyan-600) 20%,transparent)}}.hover\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\:bg-emerald-500\/20:hover{background-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.hover\:bg-emerald-500\/20:hover{background-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.hover\:bg-emerald-600:hover{background-color:var(--color-emerald-600)}.hover\:bg-purple-600\/20:hover{background-color:#9810fa33}@supports (color:color-mix(in lab,red,red)){.hover\:bg-purple-600\/20:hover{background-color:color-mix(in oklab,var(--color-purple-600) 20%,transparent)}}.hover\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\:bg-red-500\/10:hover{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-500\/10:hover{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.hover\:bg-red-500\/20:hover{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-500\/20:hover{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.hover\:bg-rose-500\/10:hover{background-color:#ff23571a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-rose-500\/10:hover{background-color:color-mix(in oklab,var(--color-rose-500) 10%,transparent)}}.hover\:bg-rose-500\/20:hover{background-color:#ff235733}@supports (color:color-mix(in lab,red,red)){.hover\:bg-rose-500\/20:hover{background-color:color-mix(in oklab,var(--color-rose-500) 20%,transparent)}}.hover\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\:bg-slate-700\/80:hover{background-color:#314158cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-slate-700\/80:hover{background-color:color-mix(in oklab,var(--color-slate-700) 80%,transparent)}}.hover\:bg-slate-800:hover{background-color:var(--color-slate-800)}.hover\:bg-slate-800\/25:hover{background-color:#1d293d40}@supports (color:color-mix(in lab,red,red)){.hover\:bg-slate-800\/25:hover{background-color:color-mix(in oklab,var(--color-slate-800) 25%,transparent)}}.hover\:bg-slate-800\/30:hover{background-color:#1d293d4d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-slate-800\/30:hover{background-color:color-mix(in oklab,var(--color-slate-800) 30%,transparent)}}.hover\:bg-slate-800\/40:hover{background-color:#1d293d66}@supports (color:color-mix(in lab,red,red)){.hover\:bg-slate-800\/40:hover{background-color:color-mix(in oklab,var(--color-slate-800) 40%,transparent)}}.hover\:bg-slate-800\/50:hover{background-color:#1d293d80}@supports (color:color-mix(in lab,red,red)){.hover\:bg-slate-800\/50:hover{background-color:color-mix(in oklab,var(--color-slate-800) 50%,transparent)}}.hover\:bg-white\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/5:hover{background-color:color-mix(in oklab,var(--color-white) 5%,transparent)}}.hover\:bg-white\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/10:hover{background-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.hover\:bg-white\/\[0\.03\]:hover{background-color:#ffffff08}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/\[0\.03\]:hover{background-color:color-mix(in oklab,var(--color-white) 3%,transparent)}}.hover\:bg-white\/\[0\.04\]:hover{background-color:#ffffff0a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/\[0\.04\]:hover{background-color:color-mix(in oklab,var(--color-white) 4%,transparent)}}.hover\:text-amber-200:hover{color:var(--color-amber-200)}.hover\:text-amber-300:hover{color:var(--color-amber-300)}.hover\:text-blue-300:hover{color:var(--color-blue-300)}.hover\:text-blue-400:hover{color:var(--color-blue-400)}.hover\:text-cyan-300:hover{color:var(--color-cyan-300)}.hover\:text-cyan-400:hover{color:var(--color-cyan-400)}.hover\:text-emerald-300:hover{color:var(--color-emerald-300)}.hover\:text-purple-300:hover{color:var(--color-purple-300)}.hover\:text-red-400:hover{color:var(--color-red-400)}.hover\:text-rose-300:hover{color:var(--color-rose-300)}.hover\:text-rose-400:hover{color:var(--color-rose-400)}.hover\:text-slate-200:hover{color:var(--color-slate-200)}.hover\:text-slate-300:hover{color:var(--color-slate-300)}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-blue-400:focus{border-color:var(--color-blue-400)}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:border-blue-500\/50:focus{border-color:#3080ff80}@supports (color:color-mix(in lab,red,red)){.focus\:border-blue-500\/50:focus{border-color:color-mix(in oklab,var(--color-blue-500) 50%,transparent)}}.focus\:border-blue-500\/60:focus{border-color:#3080ff99}@supports (color:color-mix(in lab,red,red)){.focus\:border-blue-500\/60:focus{border-color:color-mix(in oklab,var(--color-blue-500) 60%,transparent)}}.focus\:border-cyan-500:focus{border-color:var(--color-cyan-500)}.focus\:border-emerald-500:focus{border-color:var(--color-emerald-500)}.focus\:border-emerald-500\/50:focus{border-color:#00bb7f80}@supports (color:color-mix(in lab,red,red)){.focus\:border-emerald-500\/50:focus{border-color:color-mix(in oklab,var(--color-emerald-500) 50%,transparent)}}.focus\:border-red-500:focus{border-color:var(--color-red-500)}.focus\:border-rose-500:focus{border-color:var(--color-rose-500)}.focus\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-blue-500\/20:focus{--tw-ring-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.focus\:ring-blue-500\/20:focus{--tw-ring-color:color-mix(in oklab, var(--color-blue-500) 20%, transparent)}}.focus\:ring-blue-500\/30:focus{--tw-ring-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.focus\:ring-blue-500\/30:focus{--tw-ring-color:color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.focus\:ring-blue-500\/40:focus{--tw-ring-color:#3080ff66}@supports (color:color-mix(in lab,red,red)){.focus\:ring-blue-500\/40:focus{--tw-ring-color:color-mix(in oklab, var(--color-blue-500) 40%, transparent)}}.focus\:ring-red-500\/30:focus{--tw-ring-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.focus\:ring-red-500\/30:focus{--tw-ring-color:color-mix(in oklab, var(--color-red-500) 30%, transparent)}}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\:scale-\[0\.98\]:active{scale:.98}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-20:disabled{opacity:.2}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}@media(hover:hover){.disabled\:hover\:text-slate-400:disabled:hover{color:var(--color-slate-400)}}@media(min-width:40rem){.sm\:-m-4{margin:calc(var(--spacing) * -4)}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:h-72{height:calc(var(--spacing) * 72)}.sm\:h-80{height:calc(var(--spacing) * 80)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:w-52{width:calc(var(--spacing) * 52)}.sm\:w-64{width:calc(var(--spacing) * 64)}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-none{max-width:none}.sm\:flex-initial{flex:0 auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:self-center{align-self:center}.sm\:p-2\.5{padding:calc(var(--spacing) * 2.5)}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-7{padding:calc(var(--spacing) * 7)}.sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:pb-0{padding-bottom:0}.sm\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\:text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}@media(min-width:48rem){.md\:inline{display:inline}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(min-width:64rem){.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}:where(.lg\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.lg\:divide-y-0>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(0px * var(--tw-divide-y-reverse));border-bottom-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))}.lg\:px-6{padding-inline:calc(var(--spacing) * 6)}}@media(min-width:80rem){.xl\:inline{display:inline}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\:flex-row{flex-direction:row}.xl\:items-center{align-items:center}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@font-face{font-family:Material Symbols Outlined;font-style:normal;font-weight:100 700;font-display:block;src:url(/assets/material-symbols-outlined-CbWsDl0D.woff2) format("woff2")}.material-symbols-outlined{font-family:Material Symbols Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"liga"}@keyframes rtFadeInUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes rtScaleIn{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@keyframes rtPulseGlow{0%,to{box-shadow:0 0 15px #3b82f633}50%{box-shadow:0 0 25px #3b82f673}}@keyframes rtFlowLine{0%{stroke-dashoffset:24}to{stroke-dashoffset:0}}@keyframes rtBeaconPulse{0%{transform:scale(.95);box-shadow:0 0 #10b981b3}70%{transform:scale(1);box-shadow:0 0 0 8px #10b98100}to{transform:scale(.95);box-shadow:0 0 #10b98100}}.animate-rt-fade-in{animation:rtFadeInUp .3s cubic-bezier(.22,1,.36,1) forwards}.animate-rt-scale-in{animation:rtScaleIn .25s cubic-bezier(.22,1,.36,1) forwards}.animate-rt-pulse-glow{animation:rtPulseGlow 3s infinite ease-in-out}.rt-beacon{display:inline-block;border-radius:50%;animation:rtBeaconPulse 2s infinite}.stagger-item{animation:rtFadeInUp .35s cubic-bezier(.22,1,.36,1) backwards}.stagger-item:nth-child(1){animation-delay:35ms}.stagger-item:nth-child(2){animation-delay:70ms}.stagger-item:nth-child(3){animation-delay:105ms}.stagger-item:nth-child(4){animation-delay:.14s}.stagger-item:nth-child(5){animation-delay:175ms}.stagger-item:nth-child(6){animation-delay:.21s}.stagger-item:nth-child(7){animation-delay:245ms}.stagger-item:nth-child(8){animation-delay:.28s}.stagger-item:nth-child(9){animation-delay:315ms}.stagger-item:nth-child(10){animation-delay:.35s}.stagger-item:nth-child(11){animation-delay:385ms}.stagger-item:nth-child(12){animation-delay:.42s}.stagger-item:nth-child(13){animation-delay:455ms}.stagger-item:nth-child(14){animation-delay:.49s}.stagger-item:nth-child(15){animation-delay:525ms}.stagger-item:nth-child(16){animation-delay:.56s}.stagger-item:nth-child(17){animation-delay:595ms}.stagger-item:nth-child(18){animation-delay:.63s}.stagger-item:nth-child(19){animation-delay:665ms}.stagger-item:nth-child(20){animation-delay:.7s}.stagger-item:nth-child(21){animation-delay:735ms}.stagger-item:nth-child(22){animation-delay:.77s}.stagger-item:nth-child(23){animation-delay:805ms}.stagger-item:nth-child(24){animation-delay:.84s}:root{color-scheme:dark}body{background-color:#0a0d14;color:#f8fafc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,sans-serif;margin:0;padding:0;overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-font-smoothing:antialiased}.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 20;vertical-align:middle;display:inline-block;line-height:1}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:#1e293b;border-radius:9999px}*::-webkit-scrollbar-thumb:hover{background:#2563eb}.rt-app{display:flex;height:100vh;width:100vw;overflow:hidden;background:radial-gradient(circle at 50% 0%,#111a30,#0a0d14 65%)}.rt-sidebar{width:260px;background-color:#0d111c;border-right:1px solid #1E293B;display:flex;flex-direction:column;justify-content:space-between;flex-shrink:0;z-index:30;transition:width .25s cubic-bezier(.22,1,.36,1)}.rt-sidebar__brand{padding:16px 20px;display:flex;align-items:center;gap:12px}.rt-sidebar__brand-icon{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#3b82f6,#6366f1);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 15px #3b82f666;color:#fff}.rt-sidebar__nav-item{width:100%;display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:10px;font-size:13px;font-weight:500;color:#94a3b8;background:transparent;border:none;cursor:pointer;transition:all .15s cubic-bezier(.25,1,.5,1);text-align:left}.rt-sidebar__nav-item:hover{color:#f8fafc;background-color:#ffffff0d;transform:translate(2px)}.rt-sidebar__nav-item--active{color:#60a5fa;background:linear-gradient(90deg,#3b82f626,#3b82f608);border-left:3px solid #3B82F6;border-radius:0 10px 10px 0;font-weight:600}.rt-sidebar__nav-item--active .material-symbols-outlined{color:#60a5fa}.rt-header{height:64px;border-bottom:1px solid #1E293B;background:#0d111cd9;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:0 28px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;z-index:20}.rt-header__icon-box{width:34px;height:34px;border-radius:10px;background:#3b82f61f;border:1px solid rgba(59,130,246,.25);display:flex;align-items:center;justify-content:center;color:#60a5fa}.rt-card{background:#111827;border:1px solid #1E293B;border-radius:14px;transition:all .25s cubic-bezier(.22,1,.36,1)}.rt-card:hover{background:#162035;border-color:#3b82f673;transform:translateY(-2px);box-shadow:0 10px 25px -5px #00000080,0 0 25px #3b82f640}.rt-card:active{transform:translateY(0)}.rt-card{padding:16px}.rt-btn{transition:all .15s cubic-bezier(.25,1,.5,1);-webkit-user-select:none;user-select:none;cursor:pointer}.rt-btn:hover{transform:translateY(-1px)}.rt-btn:active{transform:scale(.97)}.rt-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;font-size:12px;font-weight:600;border-radius:10px;border:1px solid transparent}.rt-btn--primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 4px 14px #2563eb59}.rt-btn--primary:hover{background:linear-gradient(135deg,#3b82f6,#2563eb);box-shadow:0 6px 20px #2563eb80}.rt-btn--secondary{background:#ffffff0d;border-color:#1e293b;color:#f8fafc}.rt-btn--secondary:hover{background:#ffffff17;border-color:#fff3}.rt-btn--danger{background:#ef44441f;border-color:#ef444440;color:#ef4444}.rt-btn--danger:hover{background:#ef444438;border-color:#ef4444}.rt-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:9999px;font-size:11px;font-weight:500}.rt-badge--success{background:#10b9811f;color:#10b981;border:1px solid rgba(16,185,129,.25)}.rt-badge--info{background:#3b82f61f;color:#60a5fa;border:1px solid rgba(59,130,246,.25)}.rt-badge--muted{background:#ffffff0a;color:#64748b;border:1px solid #1E293B}.rt-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a0d14bf;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;animation:rtFadeInUp .2s cubic-bezier(.22,1,.36,1) forwards}.rt-modal-content{background:#111827;border:1px solid #1E293B;box-shadow:0 25px 50px -12px #000000b3,0 0 25px #3b82f640;border-radius:20px;width:100%;max-width:500px;padding:24px;animation:rtScaleIn .25s cubic-bezier(.22,1,.36,1) forwards}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProvidersTab-
|
|
2
|
-
import{d as M,j as e,r as x,a as X,e as Z,R as ee}from"./vendor-BcOI2aZ9.js";import{G as K}from"./lucide-Cc35htxl.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))t(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&t(c)}).observe(document,{childList:!0,subtree:!0});function a(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function t(n){if(n.ep)return;n.ep=!0;const l=a(n);fetch(n.href,l)}})();const te="modulepreload",se=function(s){return"/"+s},F={},y=function(r,a,t){let n=Promise.resolve();if(a&&a.length>0){let c=function(o){return Promise.all(o.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),i=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));n=c(a.map(o=>{if(o=se(o),o in F)return;F[o]=!0;const h=o.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${m}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":te,h||(p.as="script"),p.crossOrigin="",p.href=o,i&&p.setAttribute("nonce",i),document.head.appendChild(p),h)return new Promise((d,f)=>{p.addEventListener("load",d),p.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return n.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return r().catch(l)})},E=20128,D="127.0.0.1",ae=`http://${D}:${E}`,Ae=`${ae}/v1`,C=M(s=>({info:null,loading:!1,fetchSystemInfo:async()=>{try{s({loading:!0});const r=await fetch("/api/settings/system-info");if(r.ok){const a=await r.json(),t=typeof window<"u"&&window.location.port?Number(window.location.port):void 0,n=a.port||(t&&t!==5173?t:E),l=a.host||(typeof window<"u"&&window.location.hostname?window.location.hostname:D),c={dataDir:a.dataDir||"",dbPath:a.dbPath||"",isDevelopmentMode:!!a.isDevelopmentMode,appName:a.appName||"Mapigate",version:a.version||"",port:n,host:l,configuredHost:a.configuredHost||l,configuredPort:a.configuredPort||n,isRestartRequired:!!a.isRestartRequired};return s({info:c,loading:!1}),(async()=>{try{const u=await fetch("/api/settings/version");if(u.ok){const i=await u.json();s(o=>o.info?{...o,info:{...o.info,latestVersion:i.latestVersion,hasUpdate:!!i.hasUpdate}}:o)}}catch{}})(),c}}catch{}return s({loading:!1}),null},checkForUpdate:async()=>{try{const r=await fetch("/api/settings/version?force=true");if(r.ok){const a=await r.json();s(t=>t.info?{...t,info:{...t.info,latestVersion:a.latestVersion,hasUpdate:!!a.hasUpdate}}:t)}}catch{}}})),re=({currentTab:s,onSelectTab:r,onUpgradeClick:a})=>{const t=C(i=>i.info),n=t==null?void 0:t.version,l=(t==null?void 0:t.port)||(typeof window<"u"&&window.location.port&&window.location.port!=="5173"?Number(window.location.port):E),c=(t==null?void 0:t.host)||(typeof window<"u"&&window.location.hostname?window.location.hostname:D),u=[{id:"endpoint",label:"Endpoint & Key",icon:"api"},{id:"providers",label:"Providers",icon:"dns"},{id:"combos",label:"Combo & Adapter",icon:"layers"},{id:"usage",label:"Usage & Analytics",icon:"bar_chart"},{id:"quota",label:"Quota Tracker",icon:"data_usage"},{id:"tokensaver",label:"Token Saver",icon:"savings"},{id:"clitools",label:"Tools & Mappings",icon:"widgets"},{id:"mitm",label:"MITM Proxy",icon:"alt_route"}];return e.jsxs("aside",{className:"rt-sidebar",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"rt-sidebar__brand pt-5 pr-4 flex items-center gap-3",children:[e.jsx("div",{className:"rt-sidebar__brand-icon shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[20px]",children:"graph_5"})}),e.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("h1",{className:"text-sm font-bold tracking-tight text-white leading-none truncate",children:"Mapigate"}),n&&(t!=null&&t.hasUpdate&&t.latestVersion?e.jsxs("button",{type:"button",onClick:()=>a==null?void 0:a(),className:"group relative inline-flex items-center gap-1 text-[10px] px-1.5 py-0.5 rounded-md bg-amber-500/15 text-amber-300 border border-amber-500/35 font-mono font-semibold shrink-0 select-none leading-none hover:bg-amber-500/25 transition-all cursor-pointer",title:`New version v${t.latestVersion} available! Click to upgrade`,children:[e.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-amber-400 opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5 bg-amber-500"})]}),e.jsxs("span",{children:["v",n]}),e.jsx("span",{className:"text-[9px] text-amber-400 group-hover:translate-y-[-0.5px] transition-transform",children:"↑"})]}):e.jsxs("span",{className:"text-[10px] px-1.5 py-0.5 rounded-md bg-blue-500/15 text-blue-300 border border-blue-500/30 font-mono font-semibold shrink-0 shadow-xs select-none leading-none",title:`Mapigate Version v${n}`,children:["v",n]}))]}),e.jsx("span",{className:"text-[11px] text-slate-400 leading-normal mt-1 truncate",children:"AI Model API Gateway"})]})]}),e.jsx("nav",{className:"px-3 pt-3 space-y-1",children:u.map(i=>{const o=s===i.id;return e.jsxs("button",{onClick:()=>r(i.id),className:`rt-sidebar__nav-item ${o?"rt-sidebar__nav-item--active":""}`,children:[e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:i.icon}),e.jsx("span",{children:i.label})]},i.id)})}),e.jsx("div",{className:"px-5 pt-6 pb-2",children:e.jsx("span",{className:"text-[10px] font-bold text-slate-500 tracking-wider uppercase",children:"SYSTEM PREFERENCES"})}),e.jsxs("nav",{className:"px-3 space-y-1",children:[e.jsxs("button",{onClick:()=>r("consolelog"),className:`rt-sidebar__nav-item ${s==="consolelog"?"rt-sidebar__nav-item--active":""}`,children:[e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"terminal"}),e.jsx("span",{children:"Console Log"})]}),e.jsxs("button",{onClick:()=>r("settings"),className:`rt-sidebar__nav-item ${s==="settings"?"rt-sidebar__nav-item--active":""}`,children:[e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"tune"}),e.jsx("span",{children:"Settings"})]})]})]}),e.jsxs("div",{className:"p-4 border-t border-[#1E293B] space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs text-slate-400 bg-[#111827] px-3.5 py-2.5 rounded-xl border border-[#1E293B] shadow-inner",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"rt-beacon size-2 bg-emerald-400"}),e.jsxs("span",{className:"font-semibold text-slate-200",children:["Port ",l]})]}),e.jsx("span",{className:"text-[10px] text-blue-300 font-mono bg-blue-500/10 px-1.5 py-0.5 rounded border border-blue-500/20",children:c})]}),e.jsxs("a",{href:"https://github.com/joutvhu/mapigate",target:"_blank",rel:"noreferrer",title:"Mapigate on GitHub (joutvhu/mapigate)",className:"flex items-center justify-center gap-2 w-full py-1.5 px-3 rounded-xl bg-[#111827]/60 hover:bg-white/5 border border-[#1E293B]/60 hover:border-[#1E293B] text-[11px] font-medium text-slate-400 hover:text-white transition-all cursor-pointer",children:[e.jsx(K,{className:"size-3.5 text-slate-400"}),e.jsx("span",{children:"GitHub · joutvhu/mapigate"})]})]})]})},S="mapigate_auth_token";let V=!1;const R=new Set;function ne(s){return R.add(s),()=>{R.delete(s)}}function Q(){for(const s of R)try{s()}catch{}}class N{static getToken(){if(typeof window>"u")return null;try{return localStorage.getItem(S)}catch{return null}}static setToken(r){if(!(typeof window>"u"))try{localStorage.setItem(S,r)}catch{}}static removeToken(){if(!(typeof window>"u"))try{localStorage.removeItem(S)}catch{}}static async checkStatus(){try{const r=this.getToken(),a={};r&&(a.Authorization=`Bearer ${r}`);const t=await fetch("/api/auth/status",{headers:a});if(!t.ok)return{enabled:!1,authenticated:!0};const n=await t.json();return{enabled:!!n.enabled,authenticated:!!n.authenticated}}catch{return{enabled:!1,authenticated:!0}}}static async login(r){try{const a=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:r})}),t=await a.json();return a.ok&&t.success?(t.token&&this.setToken(t.token),{success:!0,token:t.token}):{success:!1,error:t.error||"Invalid master password"}}catch(a){return{success:!1,error:a.message||"Failed to authenticate"}}}static async logout(){try{await fetch("/api/auth/logout",{method:"POST"})}catch{}this.removeToken(),Q()}static async setup(r){try{const a=await fetch("/api/auth/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:r})}),t=await a.json();return a.ok&&t.success?(t.token&&this.setToken(t.token),{success:!0,token:t.token}):{success:!1,error:t.error||"Failed to setup master password"}}catch(a){return{success:!1,error:a.message||"Failed to setup master password"}}}static async changePassword(r,a){try{const t=await fetch("/api/auth/change-password",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:r,newPassword:a})}),n=await t.json();return t.ok&&n.success?(n.token&&this.setToken(n.token),{success:!0,token:n.token}):{success:!1,error:n.error||"Failed to change master password"}}catch(t){return{success:!1,error:t.message||"Failed to change master password"}}}static async removePassword(r){try{const a=await fetch("/api/auth/remove-password",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:r})}),t=await a.json();return a.ok&&t.success?(this.removeToken(),{success:!0}):{success:!1,error:t.error||"Failed to remove master password"}}catch(a){return{success:!1,error:a.message||"Failed to remove master password"}}}}function oe(){if(typeof window>"u"||V)return;V=!0;const s=window.fetch.bind(window);window.fetch=async(r,a)=>{let t="";typeof r=="string"?t=r:r instanceof URL?t=r.toString():r&&typeof r.url=="string"&&(t=r.url);let n=!1;try{const o=new URL(t,window.location.origin);n=o.origin===window.location.origin&&(o.pathname==="/api"||o.pathname.startsWith("/api/"))}catch{n=t.startsWith("/api/")}const l=t.includes("/api/auth/status")||t.includes("/api/auth/login");let c=a;const u=N.getToken();if(n&&u){const o=new Headers((a==null?void 0:a.headers)||(r instanceof Request?r.headers:void 0));o.has("Authorization")||o.set("Authorization",`Bearer ${u}`),c={...a,headers:o}}const i=await s(r,c);if(n&&!l&&i.status===401)try{const h=await i.clone().json();h&&h.code==="AUTH_REQUIRED"&&Q()}catch{}return i}}oe();const w=M((s,r)=>({isChecking:!0,isPasswordSet:!1,isAuthenticated:!0,isLocked:!1,checkAuth:async()=>{s({isChecking:!0});try{const a=await N.checkStatus();if(!a.enabled){s({isChecking:!1,isPasswordSet:!1,isAuthenticated:!0,isLocked:!1});return}s({isChecking:!1,isPasswordSet:!0,isAuthenticated:a.authenticated,isLocked:!a.authenticated})}catch{s({isChecking:!1,isPasswordSet:!1,isAuthenticated:!0,isLocked:!1})}},login:async a=>{const t=await N.login(a);return t.success?(s({isAuthenticated:!0,isLocked:!1}),{success:!0}):{success:!1,error:t.error}},logout:async()=>{await N.logout();const a=r().isPasswordSet;s({isAuthenticated:!a,isLocked:a})},lock:()=>{N.removeToken(),s({isPasswordSet:!0,isAuthenticated:!1,isLocked:!0})},unlock:a=>{N.setToken(a),s({isAuthenticated:!0,isLocked:!1})}}));typeof window<"u"&&(ne(()=>{w.getState().lock()}),window.addEventListener("storage",s=>{(s.key===S||s.key===null)&&(N.getToken()?w.setState({isAuthenticated:!0,isLocked:!1}):w.getState().isPasswordSet&&w.setState({isAuthenticated:!1,isLocked:!0}))}));const G=M(s=>({status:null,loading:!1,fetchStatus:async()=>{try{s({loading:!0});const r=await fetch("/api/mitm/status");if(r.ok){const a=await r.json(),t=a.dnsStatus||{},n=Object.entries(t).filter(([c,u])=>!!u).map(([c])=>c),l={running:!!a.running,port:Number(a.port)||443,certExists:!!a.certExists,certTrusted:!!a.certTrusted,dnsStatus:t,orphanedDns:!!a.orphanedDns,activeDnsCount:n.length,activeDnsTools:n};return s({status:l,loading:!1}),l}}catch{}return s({loading:!1}),null}})),le={antigravity:"Antigravity",kiro:"Kiro",copilot:"GitHub Copilot",cursor:"Cursor"};function H(s){return!s||s.length===0?"":s.map(r=>le[r]||r.charAt(0).toUpperCase()+r.slice(1)).join(", ")}const q={endpoint:{title:"Endpoint & Key",subtitle:"Manage your local AI gateway endpoint and master keys",icon:"api"},providers:{title:"Providers",subtitle:"Manage your AI provider connections and encrypted API credentials",icon:"dns"},combos:{title:"Combos & Adapter",subtitle:"Group models under smart fallback and load-balancing combos",icon:"layers"},usage:{title:"Usage & Analytics",subtitle:"Real-time token metrics, savings analysis, and interactive routing topology",icon:"bar_chart"},quota:{title:"Quota Tracker",subtitle:"Track rate limits and multi-account sliding quota reset times",icon:"data_usage"},tokensaver:{title:"Token Saver",subtitle:"Lossless context optimization saving 20-40% input tokens",icon:"savings"},clitools:{title:"Tools & Mappings",subtitle:"One-click connection setups and universal model rewrite rules for AI assistants, IDEs & tools",icon:"widgets"},mitm:{title:"MITM Proxy",subtitle:"Intercept CLI & IDE tool traffic (Antigravity, Kiro, Copilot) via local Root CA",icon:"alt_route"},consolelog:{title:"Console Log",subtitle:"Live gateway server stdout, request streaming events, and system logs",icon:"terminal"},settings:{title:"Settings",subtitle:"Local SQLite database, hardware encryption vault, and system preferences",icon:"tune"}},ie=({currentTab:s,searchQuery:r,onSearchChange:a,detailProvider:t,onBackToProviders:n,detailCombo:l,onBackToCombos:c,onRestartClick:u,onSelectTab:i})=>{const o=q[s]||q.providers,h=w(v=>v.isPasswordSet),m=w(v=>v.lock),p=C(v=>v.info),d=C(v=>v.fetchSystemInfo);p==null||p.version;const f=G(v=>v.status),b=G(v=>v.fetchStatus);x.useEffect(()=>{b(),d();const v=setInterval(()=>{document.hidden||(b(),d())},1e4),$=()=>{b(),d()};return window.addEventListener("focus",$),()=>{clearInterval(v),window.removeEventListener("focus",$)}},[b,d]);const j=!!(f!=null&&f.running),k=(f==null?void 0:f.port)||443,g=(f==null?void 0:f.activeDnsCount)||0,L=(f==null?void 0:f.activeDnsTools)||[],Y=!!(f!=null&&f.orphanedDns),P=(p==null?void 0:p.host)||"127.0.0.1",I=(p==null?void 0:p.configuredHost)||P,B=!!(p!=null&&p.isRestartRequired),A=P==="0.0.0.0";let O=A?`Network: LAN Active (0.0.0.0:${(p==null?void 0:p.port)||E}) • Accessible from local network • Click to configure Endpoint`:`Network: Local Only (127.0.0.1:${(p==null?void 0:p.port)||E}) • Isolated to this machine • Click to configure Endpoint`,U=A?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20 hover:bg-emerald-500/20":"bg-blue-500/10 text-blue-400 border-blue-500/20 hover:bg-blue-500/20",z=A?"wifi":"shield";B&&(O=`⚠️ Restart Required: Configured for ${I==="0.0.0.0"?"LAN Active":"Local Only"} (${I}), but running on ${P}. Click Restart button to apply.`,U="bg-amber-500/15 text-amber-300 border-amber-500/30 hover:bg-amber-500/25 animate-pulse",z="restart_alt");let T="MITM Proxy: Stopped • Click to open settings",_="text-slate-500 hover:text-slate-300";return Y?(T=`⚠️ MITM Warning: Server stopped but ${g} DNS redirect(s) still active (${H(L)})! Tools cannot connect. Click to fix.`,_="text-amber-400 hover:text-amber-300 animate-pulse"):j?g>0?(T=`MITM Proxy: Active on port ${k} • ${g} tool DNS active (${H(L)}) • Click to manage`,_="text-emerald-400 hover:text-emerald-300"):(T=`MITM Proxy: Running on port ${k} (Idle, 0 tool DNS active) • Click to configure`,_="text-blue-400 hover:text-blue-300"):(T="MITM Proxy: Stopped • Click to open settings",_="text-slate-500 hover:text-slate-300"),e.jsxs("header",{className:"rt-header",children:[e.jsxs("div",{className:"flex items-center gap-3.5 min-w-0",children:[e.jsx("div",{className:"rt-header__icon-box",children:e.jsx("span",{className:"material-symbols-outlined text-[20px]",children:o.icon})}),e.jsxs("div",{className:"flex flex-col min-w-0",children:[s==="providers"&&t?e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("button",{type:"button",onClick:n,className:"text-sm font-bold text-slate-400 hover:text-white flex items-center gap-1 cursor-pointer transition-colors",title:"Back to Providers",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"arrow_back"}),"Providers"]}),e.jsx("span",{className:"text-slate-600 text-xs",children:"/"}),e.jsx("h2",{className:"text-sm font-bold text-white tracking-tight leading-tight",children:t.name})]}):s==="combos"&&l?e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("button",{type:"button",onClick:c,className:"text-sm font-bold text-slate-400 hover:text-white flex items-center gap-1 cursor-pointer transition-colors",title:"Back to Combos",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"arrow_back"}),"Combos"]}),e.jsx("span",{className:"text-slate-600 text-xs",children:"/"}),e.jsx("h2",{className:"text-sm font-bold text-white tracking-tight leading-tight font-mono",children:l.name})]}):e.jsx("h2",{className:"text-sm font-bold text-white tracking-tight leading-tight",children:o.title}),e.jsx("p",{className:"text-[11px] text-slate-400 truncate leading-tight mt-0.5",children:s==="providers"&&t?`Configure credentials, upstream headers, and fallback strategy for ${t.name}`:s==="combos"&&l?`Configure priority order, models, and fallback routing for ${l.name}`:o.subtitle})]})]}),e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsxs("div",{className:"relative w-64 h-8",children:[e.jsx("span",{className:"material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-[15px] text-slate-500 pointer-events-none",children:"search"}),e.jsx("input",{type:"text",placeholder:"Search providers & models...",value:r,onChange:v=>a(v.target.value),className:"w-full h-8 bg-[#111827] border border-[#1E293B] rounded-lg pl-9 pr-8 text-xs text-white placeholder-slate-500 focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500/30 transition-all"}),r&&e.jsx("button",{type:"button",onClick:()=>a(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-slate-500 hover:text-white transition-colors cursor-pointer flex items-center justify-center w-5 h-5 rounded hover:bg-white/5",title:"Clear search",children:e.jsx("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("button",{type:"button",onClick:()=>{B&&u?u():i==null||i("endpoint")},title:O,className:`w-8 h-8 rounded-lg border text-xs font-medium transition-all cursor-pointer shadow-xs inline-flex items-center justify-center ${U}`,children:e.jsx("span",{className:"material-symbols-outlined text-[17px]",children:z})}),e.jsx("button",{type:"button",onClick:()=>i==null?void 0:i("mitm"),title:T,className:`w-8 h-8 rounded-lg border border-[#1E293B] bg-[#111827] hover:bg-white/5 ${_} transition-colors cursor-pointer inline-flex items-center justify-center shadow-xs`,children:e.jsx("span",{className:"material-symbols-outlined text-[17px]",children:"alt_route"})})]}),e.jsxs("div",{className:"flex items-center gap-1.5 border-l border-[#1E293B] pl-2.5",children:[u&&e.jsx("button",{type:"button",onClick:u,title:"Restart Mapigate Gateway (Hot Reload)",className:"w-8 h-8 rounded-lg border border-[#1E293B] bg-[#111827] hover:bg-white/5 hover:text-blue-400 text-slate-400 transition-colors cursor-pointer inline-flex items-center justify-center shadow-xs",children:e.jsx("span",{className:"material-symbols-outlined text-[17px]",children:"restart_alt"})}),h&&e.jsx("button",{type:"button",onClick:m,title:"Lock Dashboard (Master Password Protected)",className:"w-8 h-8 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 border border-amber-500/20 hover:border-amber-500/30 transition-all cursor-pointer inline-flex items-center justify-center shadow-xs",children:e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"lock"})})]}),e.jsx("div",{className:"flex items-center border-l border-[#1E293B] pl-2.5",children:e.jsx("a",{href:"https://github.com/joutvhu/mapigate",target:"_blank",rel:"noreferrer",title:"Mapigate on GitHub (joutvhu/mapigate)",className:"hidden sm:inline-flex items-center justify-center w-8 h-8 rounded-lg bg-[#111827] hover:bg-white/5 text-slate-400 hover:text-white border border-[#1E293B] transition-all cursor-pointer shadow-xs",children:e.jsx(K,{className:"size-4"})})})]})]})},ce=()=>{const[s,r]=x.useState(""),[a,t]=x.useState(!1),[n,l]=x.useState(!1),[c,u]=x.useState(null),i=x.useRef(null),o=w(m=>m.login);x.useEffect(()=>{var m;(m=i.current)==null||m.focus()},[]);const h=async m=>{var d;if(m.preventDefault(),!s.trim()||n)return;l(!0),u(null);const p=await o(s);p.success||(u(p.error||"Incorrect master password"),l(!1),(d=i.current)==null||d.select())};return e.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-[#07090E] p-4 animate-rt-fade-in select-none",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"absolute -top-[25%] left-1/2 -translate-x-1/2 w-[650px] h-[450px] bg-gradient-to-b from-blue-600/15 via-indigo-600/10 to-transparent blur-[140px] rounded-full"}),e.jsx("div",{className:"absolute -bottom-[20%] left-1/2 -translate-x-1/2 w-[500px] h-[300px] bg-blue-500/5 blur-[120px] rounded-full"})]}),e.jsxs("div",{className:"w-full max-w-sm relative z-10 space-y-6",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center text-center space-y-3",children:[e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-blue-500 to-indigo-500 rounded-2xl blur-md opacity-40 group-hover:opacity-75 transition-opacity"}),e.jsx("div",{className:"relative size-12 rounded-2xl bg-gradient-to-br from-blue-500 to-indigo-600 text-white flex items-center justify-center shadow-lg shadow-blue-500/30 border border-blue-400/30",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"graph_5"})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx("h1",{className:"text-xl font-bold tracking-tight text-white font-sans",children:"Mapigate"}),e.jsx("span",{className:"text-[10px] uppercase font-semibold px-1.5 py-0.5 rounded bg-blue-500/20 text-blue-400 border border-blue-500/30 font-mono",children:"AI"})]}),e.jsx("p",{className:"text-xs text-slate-400 mt-1 font-medium",children:"Ultra-lightweight Local AI Gateway"})]})]}),e.jsxs("div",{className:"bg-[#0D111A]/90 backdrop-blur-xl border border-slate-800/80 shadow-2xl shadow-black/60 rounded-2xl p-6 sm:p-7 text-center space-y-5 border-t-blue-500/50",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800/60",children:[e.jsxs("div",{className:"flex items-center gap-2 text-left",children:[e.jsx("div",{className:"size-8 rounded-lg bg-blue-500/10 border border-blue-500/20 text-blue-400 flex items-center justify-center",children:e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"lock"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xs font-semibold text-white tracking-tight",children:"Dashboard Locked"}),e.jsx("p",{className:"text-[11px] text-slate-400",children:"Authentication required"})]})]}),e.jsx("span",{className:"text-[10px] font-mono px-2 py-0.5 rounded-full bg-slate-800/80 text-slate-300 border border-slate-700/50",children:"v1.0"})]}),e.jsxs("form",{onSubmit:h,className:"space-y-4",children:[e.jsxs("div",{className:"relative text-left",children:[e.jsx("span",{className:"material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-[18px] text-slate-500",children:"key"}),e.jsx("input",{ref:i,type:a?"text":"password",placeholder:"Enter master password...",value:s,onChange:m=>{r(m.target.value),c&&u(null)},disabled:n,className:"w-full bg-[#07090E] border border-slate-800 rounded-xl pl-9 pr-10 py-2.5 text-xs text-white placeholder-slate-500 focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 transition-all font-mono"}),e.jsx("button",{type:"button",onClick:()=>t(!a),tabIndex:-1,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-500 hover:text-slate-300 transition-colors cursor-pointer","aria-label":a?"Hide password":"Show password",children:e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:a?"visibility_off":"visibility"})})]}),c&&e.jsxs("div",{className:"p-2.5 rounded-lg bg-rose-500/10 border border-rose-500/30 text-xs text-rose-300 flex items-center gap-2 text-left animate-rt-scale-in",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px] shrink-0 text-rose-400",children:"error"}),e.jsx("span",{className:"truncate",children:c})]}),e.jsx("button",{type:"submit",disabled:n||!s.trim(),className:"w-full rt-btn rt-btn--primary text-xs py-2.5 px-4 flex items-center justify-center gap-2 cursor-pointer font-semibold shadow-lg shadow-blue-500/20 disabled:opacity-50 disabled:cursor-not-allowed transition-all",children:n?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"material-symbols-outlined text-[16px] animate-spin",children:"progress_activity"}),"Verifying..."]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"lock_open"}),"Unlock Dashboard"]})})]})]}),e.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-slate-500 text-[11px]",children:[e.jsx("span",{className:"material-symbols-outlined text-[14px] text-blue-400",children:"verified_user"}),e.jsx("span",{children:"100% Local-First · Coding assistants proxy unaffected"})]})]})]})};function de(s){let r={...s},a=!1,t=!1,n=0;const l=d=>{r={...d}},c=()=>{var f;if(r.disabled)return;const d=Date.now();d-n<250||(n=d,(f=r.onClose)==null||f.call(r))};return{updateOptions:l,handleMouseDown:d=>{r.disabled||(d.target===d.currentTarget&&(d.button===0||d.button===void 0)?a=!0:a=!1)},handleMouseUp:d=>{if(r.disabled){a=!1;return}a&&d.target===d.currentTarget&&(d.button===0||d.button===void 0)&&c(),a=!1},handleTouchStart:d=>{r.disabled||(d.target===d.currentTarget?t=!0:t=!1)},handleTouchEnd:d=>{if(r.disabled){t=!1;return}t&&d.target===d.currentTarget&&c(),t=!1},handleClick:d=>{r.disabled||d.detail===0&&d.target===d.currentTarget&&c()},reset:()=>{a=!1,t=!1},get isMouseDown(){return a},get isTouchStart(){return t}}}function ue(s,r=!1){const a=x.useRef(null);a.current?a.current.updateOptions({onClose:s,disabled:r}):a.current=de({onClose:s,disabled:r}),x.useEffect(()=>{if(typeof window>"u")return;const n=()=>{var c;(c=a.current)==null||c.reset()},l=()=>{var c;(c=a.current)==null||c.reset()};return window.addEventListener("mouseup",n),window.addEventListener("touchend",l),()=>{window.removeEventListener("mouseup",n),window.removeEventListener("touchend",l)}},[]);const t=a.current;return{handleBackdropMouseDown:t.handleMouseDown,handleBackdropMouseUp:t.handleMouseUp,handleBackdropTouchStart:t.handleTouchStart,handleBackdropTouchEnd:t.handleTouchEnd,handleBackdropClick:t.handleClick,backdropProps:{onMouseDown:t.handleMouseDown,onMouseUp:t.handleMouseUp,onTouchStart:t.handleTouchStart,onTouchEnd:t.handleTouchEnd,onClick:t.handleClick}}}const W=({isOpen:s,onClose:r,children:a,maxWidthClass:t="max-w-xl",className:n="",overflowHidden:l=!1})=>{const{backdropProps:c}=ue(r);if(x.useEffect(()=>{if(!s)return;const i=h=>{h.key==="Escape"&&r()};document.addEventListener("keydown",i);const o=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",i),document.body.style.overflow=o}},[s,r]),!s||typeof document>"u")return null;const u=l?"overflow-hidden":n.includes("overflow-")?"":"overflow-visible";return X.createPortal(e.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-[9999] flex items-center justify-center p-4 bg-black/75 backdrop-blur-xs animate-rt-fade-in",...c,children:e.jsx("div",{className:`w-full ${t} bg-[#0F1420] border border-[#1E293B] rounded-2xl shadow-2xl p-6 animate-rt-scale-in text-slate-100 ${u} ${n}`,onClick:i=>i.stopPropagation(),children:a})}),document.body)},xe=({isOpen:s,onClose:r})=>{const[a,t]=x.useState("confirm"),[n,l]=x.useState(null),[c,u]=x.useState(0),i=x.useRef(null),o=x.useRef(null);x.useEffect(()=>(s?(t("confirm"),l(null),u(0)):(i.current&&clearInterval(i.current),o.current&&clearInterval(o.current)),()=>{i.current&&clearInterval(i.current),o.current&&clearInterval(o.current)}),[s]);const h=()=>{const p=Date.now();let d=0;o.current=setInterval(()=>{u(Math.floor((Date.now()-p)/1e3))},500),setTimeout(()=>{i.current=setInterval(async()=>{d+=1;try{const f=await fetch("/health",{cache:"no-store",headers:{Accept:"application/json"}});if(f.ok){const b=await f.json().catch(()=>null);(b==null?void 0:b.status)==="ok"&&(i.current&&clearInterval(i.current),o.current&&clearInterval(o.current),t("success"),setTimeout(()=>{window.location.reload()},600))}}catch{}d>=50&&(i.current&&clearInterval(i.current),o.current&&clearInterval(o.current),t("timeout"))},500)},600)},m=async()=>{t("restarting"),l(null);try{const p=await fetch("/api/server/restart",{method:"POST",headers:{"Content-Type":"application/json"}});if(!p.ok){const d=await p.json().catch(()=>({}));l(d.error||"Failed to initiate server restart."),t("confirm");return}}catch{}h()};return e.jsx(W,{isOpen:s,onClose:()=>{(a==="confirm"||a==="timeout")&&r()},maxWidthClass:"max-w-md",children:e.jsxs("div",{className:"space-y-4",children:[a==="confirm"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-xl bg-blue-500/15 border border-blue-500/30 text-blue-400 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"restart_alt"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Restart Mapigate Gateway?"}),e.jsx("p",{className:"text-xs text-slate-400",children:"Gracefully reload server and apply new version"})]})]}),e.jsxs("div",{className:"p-3.5 rounded-xl bg-[#0A0D14] border border-[#1E293B] text-xs text-slate-300 space-y-2 leading-relaxed",children:[e.jsx("p",{children:"Hot restarting the gateway reloads all provider modules, registries, and configuration. MITM proxy and tool DNS entries remain active across restart."}),e.jsxs("p",{className:"text-slate-400 text-[11px]",children:["If you recently installed an update (e.g. via ",e.jsx("code",{className:"text-blue-400",children:"npm install -g mapigate"})," or ",e.jsx("code",{className:"text-blue-400",children:"npm run local:publish"}),"), the new code will take effect immediately without needing to open a terminal or turn off DNS."]})]}),n&&e.jsx("div",{className:"p-3 rounded-lg bg-rose-500/10 border border-rose-500/30 text-xs text-rose-300",children:n}),e.jsxs("div",{className:"flex items-center justify-end gap-3 pt-2",children:[e.jsx("button",{type:"button",onClick:r,className:"rt-btn rt-btn--secondary text-xs py-2 px-4 cursor-pointer",children:"Cancel"}),e.jsxs("button",{type:"button",onClick:m,className:"rt-btn rt-btn--primary text-xs py-2 px-4 flex items-center gap-1.5 cursor-pointer font-semibold",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"restart_alt"}),"Restart Gateway"]})]})]}),a==="restarting"&&e.jsxs("div",{className:"py-6 px-2 text-center space-y-4",children:[e.jsxs("div",{className:"relative size-14 mx-auto flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 rounded-full border-2 border-blue-500/20 border-t-blue-500 animate-spin"}),e.jsx("span",{className:"material-symbols-outlined text-[28px] text-blue-400",children:"restart_alt"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Restarting Mapigate Gateway..."}),e.jsxs("p",{className:"text-xs text-slate-400",children:["Re-spawning daemon and binding port (",c,"s)"]})]}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Please wait. This page will refresh automatically once the new server responds."})]}),a==="success"&&e.jsxs("div",{className:"py-6 px-2 text-center space-y-4",children:[e.jsx("div",{className:"size-14 mx-auto rounded-full bg-emerald-500/15 border border-emerald-500/30 text-emerald-400 flex items-center justify-center",children:e.jsx("span",{className:"material-symbols-outlined text-[32px]",children:"check_circle"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Restart Succeeded!"}),e.jsx("p",{className:"text-xs text-emerald-400 font-medium",children:"Gateway is back online. Refreshing dashboard..."})]})]}),a==="timeout"&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-xl bg-amber-500/15 border border-amber-500/30 text-amber-400 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"schedule"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Restart Taking Longer Than Expected"}),e.jsx("p",{className:"text-xs text-slate-400",children:"The gateway server has not responded yet."})]})]}),e.jsxs("div",{className:"p-3.5 rounded-xl bg-[#0A0D14] border border-[#1E293B] text-xs text-slate-300 space-y-2",children:[e.jsx("p",{children:"If the server failed to restart automatically, you can start it manually in your terminal:"}),e.jsx("div",{className:"bg-[#111827] p-2.5 rounded-lg border border-[#1E293B] font-mono text-[11px] text-blue-400",children:"mpg start"})]}),e.jsxs("div",{className:"flex items-center justify-end gap-3 pt-2",children:[e.jsx("button",{type:"button",onClick:r,className:"rt-btn rt-btn--secondary text-xs py-2 px-4 cursor-pointer",children:"Close"}),e.jsxs("button",{type:"button",onClick:()=>window.location.reload(),className:"rt-btn rt-btn--primary text-xs py-2 px-4 flex items-center gap-1.5 cursor-pointer",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"refresh"}),"Refresh Page"]})]})]})]})})},me=({isOpen:s,onClose:r,currentVersion:a,latestVersion:t})=>{const[n,l]=x.useState("confirm"),[c,u]=x.useState(null),[i,o]=x.useState(0),h=x.useRef(null),m=x.useRef(null);x.useEffect(()=>(s?(l("confirm"),u(null),o(0)):(h.current&&clearInterval(h.current),m.current&&clearInterval(m.current)),()=>{h.current&&clearInterval(h.current),m.current&&clearInterval(m.current)}),[s]);const p=()=>{let f=0;setTimeout(()=>{h.current=setInterval(async()=>{f+=1;try{const b=await fetch("/health",{cache:"no-store",headers:{Accept:"application/json"}});if(b.ok){const j=await b.json().catch(()=>null);(j==null?void 0:j.status)==="ok"&&(h.current&&clearInterval(h.current),m.current&&clearInterval(m.current),l("success"),setTimeout(()=>{window.location.reload()},800))}}catch{}f>=60&&(h.current&&clearInterval(h.current),m.current&&clearInterval(m.current),l("timeout"))},500)},800)},d=async()=>{l("upgrading"),u(null),o(0);const f=Date.now();m.current=setInterval(()=>{o(Math.floor((Date.now()-f)/1e3))},500);try{const b=await fetch("/api/server/upgrade",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({force:!1})}),j=await b.json().catch(()=>({}));if(!b.ok||!j.success){m.current&&clearInterval(m.current),u(j.error||"Failed to upgrade Mapigate."),l("error");return}l("restarting"),p()}catch(b){m.current&&clearInterval(m.current),u((b==null?void 0:b.message)||"Network error while requesting upgrade."),l("error")}};return e.jsx(W,{isOpen:s,onClose:()=>{(n==="confirm"||n==="error"||n==="timeout")&&r()},maxWidthClass:"max-w-md",children:e.jsxs("div",{className:"space-y-4",children:[n==="confirm"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-xl bg-amber-500/15 border border-amber-500/30 text-amber-400 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"upgrade"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Upgrade Mapigate Gateway"}),e.jsx("p",{className:"text-xs text-slate-400",children:"Install the latest release from npm and reload"})]})]}),e.jsxs("div",{className:"p-3.5 rounded-xl bg-[#0A0D14] border border-[#1E293B] space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-400",children:"Current Version:"}),e.jsxs("span",{className:"font-mono font-semibold text-slate-300",children:["v",a||"0.0.0"]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-400",children:"Target Version:"}),e.jsxs("span",{className:"font-mono font-semibold text-amber-400",children:["v",t||"latest"]})]}),e.jsxs("div",{className:"pt-2 border-t border-[#1E293B] text-[11px] text-slate-400 leading-relaxed",children:["Mapigate will run ",e.jsxs("code",{className:"text-amber-400 font-mono",children:["npm install -g mapigate@",t||"latest"]})," and hot-reload the gateway. All database settings, API keys, and active combos will be preserved."]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-2",children:[e.jsxs("a",{href:"https://www.npmjs.com/package/mapigate",target:"_blank",rel:"noreferrer",className:"text-[11px] text-blue-400 hover:text-blue-300 hover:underline inline-flex items-center gap-1",children:[e.jsx("span",{children:"View on npm"}),e.jsx("span",{className:"material-symbols-outlined text-[13px]",children:"open_in_new"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"button",onClick:r,className:"rt-btn rt-btn--secondary text-xs py-2 px-3.5 cursor-pointer",children:"Cancel"}),e.jsxs("button",{type:"button",onClick:d,className:"rt-btn rt-btn--primary text-xs py-2 px-4 flex items-center gap-1.5 cursor-pointer font-semibold bg-amber-600 hover:bg-amber-500 text-white border-amber-500/40",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"upgrade"}),"Upgrade to v",t]})]})]})]}),n==="upgrading"&&e.jsxs("div",{className:"py-6 px-2 text-center space-y-4",children:[e.jsxs("div",{className:"relative size-14 mx-auto flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 rounded-full border-2 border-amber-500/20 border-t-amber-500 animate-spin"}),e.jsx("span",{className:"material-symbols-outlined text-[28px] text-amber-400",children:"download"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Upgrading Mapigate..."}),e.jsxs("p",{className:"text-xs text-slate-400 font-mono",children:["npm install -g mapigate@",t||"latest"," (",i,"s)"]})]}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Downloading and installing update. Please do not close this window."})]}),n==="restarting"&&e.jsxs("div",{className:"py-6 px-2 text-center space-y-4",children:[e.jsxs("div",{className:"relative size-14 mx-auto flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 rounded-full border-2 border-blue-500/20 border-t-blue-500 animate-spin"}),e.jsx("span",{className:"material-symbols-outlined text-[28px] text-blue-400",children:"restart_alt"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Restarting Gateway..."}),e.jsxs("p",{className:"text-xs text-slate-400",children:["Re-spawning daemon with v",t," (",i,"s)"]})]}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Gateway is reloading. This dashboard will refresh automatically once online."})]}),n==="success"&&e.jsxs("div",{className:"py-6 px-2 text-center space-y-4",children:[e.jsx("div",{className:"size-14 mx-auto rounded-full bg-emerald-500/15 border border-emerald-500/30 text-emerald-400 flex items-center justify-center",children:e.jsx("span",{className:"material-symbols-outlined text-[32px]",children:"check_circle"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Upgrade Succeeded!"}),e.jsxs("p",{className:"text-xs text-emerald-400 font-medium",children:["Mapigate v",t," is live. Refreshing dashboard..."]})]})]}),n==="error"&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-xl bg-rose-500/15 border border-rose-500/30 text-rose-400 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"error"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Upgrade Failed"}),e.jsx("p",{className:"text-xs text-slate-400",children:"An error occurred while updating"})]})]}),c&&e.jsx("div",{className:"p-3 rounded-lg bg-rose-500/10 border border-rose-500/30 text-xs text-rose-300 font-mono break-words leading-relaxed max-h-36 overflow-y-auto",children:c}),e.jsxs("div",{className:"p-3 rounded-xl bg-[#0A0D14] border border-[#1E293B] text-[11px] text-slate-400 space-y-1.5 leading-relaxed",children:[e.jsx("p",{className:"font-semibold text-slate-300",children:"You can upgrade manually from your terminal:"}),e.jsxs("div",{className:"p-2 rounded bg-black/50 font-mono text-slate-200 text-[10px] space-y-1 select-all",children:[e.jsx("div",{children:"npm install -g mapigate@latest"}),e.jsx("div",{children:"mpg restart"})]})]}),e.jsxs("div",{className:"flex items-center justify-end gap-2 pt-2",children:[e.jsx("button",{type:"button",onClick:r,className:"rt-btn rt-btn--secondary text-xs py-2 px-4 cursor-pointer",children:"Close"}),e.jsxs("button",{type:"button",onClick:d,className:"rt-btn rt-btn--primary text-xs py-2 px-4 flex items-center gap-1 cursor-pointer font-semibold",children:[e.jsx("span",{className:"material-symbols-outlined text-[15px]",children:"refresh"}),"Retry"]})]})]}),n==="timeout"&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-xl bg-amber-500/15 border border-amber-500/30 text-amber-400 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"schedule"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Server Still Starting"}),e.jsx("p",{className:"text-xs text-slate-400",children:"The gateway has not responded yet"})]})]}),e.jsxs("div",{className:"p-3.5 rounded-xl bg-[#0A0D14] border border-[#1E293B] text-xs text-slate-300 space-y-2 leading-relaxed",children:[e.jsx("p",{children:"The upgrade may have completed, but the server is taking longer than expected to bind to port."}),e.jsxs("p",{className:"text-slate-400 text-[11px]",children:["You can try refreshing the page or checking ",e.jsx("code",{className:"text-blue-400",children:"mpg status"})," in your terminal."]})]}),e.jsxs("div",{className:"flex items-center justify-end gap-2 pt-2",children:[e.jsx("button",{type:"button",onClick:r,className:"rt-btn rt-btn--secondary text-xs py-2 px-4 cursor-pointer",children:"Close"}),e.jsxs("button",{type:"button",onClick:()=>window.location.reload(),className:"rt-btn rt-btn--primary text-xs py-2 px-4 flex items-center gap-1.5 cursor-pointer font-semibold",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"refresh"}),"Refresh Page"]})]})]})]})})},pe=x.lazy(()=>y(()=>import("./ProvidersTab-KfP8Lt0p.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(s=>({default:s.ProvidersTab}))),he=x.lazy(()=>y(()=>import("./ProviderDetailPage-k1kl7EIO.js"),__vite__mapDeps([8,1,6,4,9,5,3,10,2,7])).then(s=>({default:s.ProviderDetailPage}))),fe=x.lazy(()=>y(()=>import("./CombosTab-DpKJ-Tdm.js"),__vite__mapDeps([11,1,12,3,4,13,5,9,2,7])).then(s=>({default:s.CombosTab}))),be=x.lazy(()=>y(()=>import("./ComboDetailPage-RbsO_iJo.js"),__vite__mapDeps([14,1,2,13,12,3,4,5,9,7])).then(s=>({default:s.ComboDetailPage}))),ge=x.lazy(()=>y(()=>import("./UsageTab-C-Cs4o-K.js"),__vite__mapDeps([15,1,7,5,4,16,9])).then(s=>({default:s.UsageTab}))),ve=x.lazy(()=>y(()=>import("./QuotaTab-BA1BaQbz.js"),__vite__mapDeps([17,1,4,5,9,10,2,7])).then(s=>({default:s.QuotaTab}))),je=x.lazy(()=>y(()=>import("./CliToolsTab-D4DtbZ7V.js"),__vite__mapDeps([18,1,6,4,5,3,7])).then(s=>({default:s.CliToolsTab}))),ye=x.lazy(()=>y(()=>import("./MitmTab-DDSeULv5.js"),__vite__mapDeps([19,1,3,4,5,7])).then(s=>({default:s.MitmTab}))),we=x.lazy(()=>y(()=>import("./EndpointTab-BYSh-fMY.js"),__vite__mapDeps([20,1,9,2,7])).then(s=>({default:s.EndpointTab}))),Ne=x.lazy(()=>y(()=>import("./TokenSaverTab-B3Fbu_yc.js"),__vite__mapDeps([21,1])).then(s=>({default:s.TokenSaverTab}))),ke=x.lazy(()=>y(()=>import("./ConsoleLogTab-DfNJ54Az.js"),__vite__mapDeps([22,1,9,7,5])).then(s=>({default:s.ConsoleLogTab}))),Te=x.lazy(()=>y(()=>import("./SettingsTab-FET_sXur.js"),__vite__mapDeps([23,1,7])).then(s=>({default:s.SettingsTab}))),_e=x.lazy(()=>y(()=>import("./CallbackPage-sTRnWJ-d.js"),__vite__mapDeps([24,1])));function J(){return e.jsx("div",{className:"flex items-center justify-center py-24 text-slate-500",children:e.jsx("div",{className:"size-6 rounded-full border-2 border-blue-500/20 border-t-blue-500 animate-spin"})})}function Ee(){const s=typeof window<"u"?new URLSearchParams(window.location.search):null,r=!!(s&&(s.has("user_id")&&(s.has("access_token")||s.has("accessToken")||s.has("token"))||s.has("userId")&&(s.has("access_token")||s.has("accessToken")||s.has("token"))));return typeof window<"u"&&(window.location.pathname==="/callback"||window.location.pathname==="/auth/callback"||window.location.pathname==="/authorize"||window.location.pathname.startsWith("/callback")||r)?e.jsx(x.Suspense,{fallback:e.jsx(J,{}),children:e.jsx(_e,{})}):e.jsx(Ce,{})}function Ce(){const s=w(g=>g.isChecking),r=w(g=>g.isLocked),a=w(g=>g.checkAuth),t=C(g=>g.fetchSystemInfo);x.useEffect(()=>{a(),t()},[a,t]);const[n,l]=x.useState("providers"),[c,u]=x.useState(""),[i,o]=x.useState(null),[h,m]=x.useState(null),[p,d]=x.useState(!1),[f,b]=x.useState(!1),j=C(g=>g.info),k=g=>{l(g),o(null),m(null)};return s?e.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-[#0A0D14] text-slate-400",children:e.jsx("div",{className:"size-8 rounded-full border-2 border-blue-500/20 border-t-blue-500 animate-spin"})}):r?e.jsx(ce,{}):e.jsxs("div",{className:"rt-app",children:[e.jsx(re,{currentTab:n,onSelectTab:k,onUpgradeClick:()=>b(!0)}),e.jsxs("div",{className:"flex-1 flex flex-col min-w-0 h-full overflow-hidden",children:[e.jsx(ie,{currentTab:n,searchQuery:c,onSearchChange:u,detailProvider:i,onBackToProviders:()=>o(null),detailCombo:h,onBackToCombos:()=>m(null),onRestartClick:()=>d(!0),onSelectTab:k}),e.jsx("main",{className:"flex-1 overflow-y-auto px-4 sm:px-6 py-6 w-full",children:e.jsxs(x.Suspense,{fallback:e.jsx(J,{}),children:[n==="endpoint"&&e.jsx(we,{onRestartClick:()=>d(!0)}),n==="providers"&&(i?e.jsx(he,{provider:i,onBack:()=>o(null)}):e.jsx(pe,{searchQuery:c,onSelectProvider:g=>o(g)})),n==="combos"&&(h?e.jsx(be,{combo:h,onBack:()=>m(null),onComboUpdated:g=>m(g),onComboDeleted:()=>m(null)}):e.jsx(fe,{onSelectCombo:g=>m(g)})),n==="usage"&&e.jsx(ge,{}),n==="quota"&&e.jsx(ve,{searchQuery:c}),n==="tokensaver"&&e.jsx(Ne,{}),n==="clitools"&&e.jsx(je,{}),n==="mitm"&&e.jsx(ye,{}),n==="consolelog"&&e.jsx(ke,{}),n==="settings"&&e.jsx(Te,{onRestartClick:()=>d(!0),onUpgradeClick:()=>b(!0)})]})})]}),e.jsx(xe,{isOpen:p,onClose:()=>d(!1)}),e.jsx(me,{isOpen:f,onClose:()=>b(!1),currentVersion:j==null?void 0:j.version,latestVersion:j==null?void 0:j.latestVersion})]})}Z.createRoot(document.getElementById("root")).render(e.jsx(ee.StrictMode,{children:e.jsx(Ee,{})}));export{N as A,E as D,W as P,xe as R,ue as a,Ae as b,ae as c,D as d,G as e,w as f,C as u};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProvidersTab-DyeFqcx4.js","assets/vendor-BcOI2aZ9.js","assets/ConfirmModal-gmHKbGNe.js","assets/ModelAutocompleteInput-BH4gr6Dr.js","assets/metadataRegistry-4BIaQVmV.js","assets/ToolIcon-BZE0Fv7L.js","assets/providersData-C-7jZmPi.js","assets/lucide-Cc35htxl.js","assets/ProviderDetailPage-DvqxjQHh.js","assets/Select-BNRH8LIG.js","assets/EditAccountModal-PEltZRS8.js","assets/CombosTab-D0T91znw.js","assets/dnd-kit-DecqzwfZ.js","assets/ModelSelectModal-B7-jAYUU.js","assets/ComboDetailPage-8ZPxPl5N.js","assets/UsageTab-Du6U3MIb.js","assets/recharts-X4_nm3od.js","assets/QuotaTab-DrNRwUP6.js","assets/CliToolsTab-AP4tHWEj.js","assets/MitmTab-De7zsN2f.js","assets/EndpointTab-CYnFpxjA.js","assets/TokenSaverTab-B3Fbu_yc.js","assets/ConsoleLogTab-Bpvxqa2f.js","assets/SettingsTab-DS6HQKrg.js","assets/CallbackPage-sTRnWJ-d.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as M,j as e,r as x,a as X,e as Z,R as ee}from"./vendor-BcOI2aZ9.js";import{G as K}from"./lucide-Cc35htxl.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))t(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&t(c)}).observe(document,{childList:!0,subtree:!0});function a(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function t(n){if(n.ep)return;n.ep=!0;const l=a(n);fetch(n.href,l)}})();const te="modulepreload",se=function(s){return"/"+s},F={},y=function(r,a,t){let n=Promise.resolve();if(a&&a.length>0){let c=function(o){return Promise.all(o.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),i=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));n=c(a.map(o=>{if(o=se(o),o in F)return;F[o]=!0;const h=o.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${m}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":te,h||(p.as="script"),p.crossOrigin="",p.href=o,i&&p.setAttribute("nonce",i),document.head.appendChild(p),h)return new Promise((d,f)=>{p.addEventListener("load",d),p.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return n.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return r().catch(l)})},E=20128,D="127.0.0.1",ae=`http://${D}:${E}`,Ae=`${ae}/v1`,C=M(s=>({info:null,loading:!1,fetchSystemInfo:async()=>{try{s({loading:!0});const r=await fetch("/api/settings/system-info");if(r.ok){const a=await r.json(),t=typeof window<"u"&&window.location.port?Number(window.location.port):void 0,n=a.port||(t&&t!==5173?t:E),l=a.host||(typeof window<"u"&&window.location.hostname?window.location.hostname:D),c={dataDir:a.dataDir||"",dbPath:a.dbPath||"",isDevelopmentMode:!!a.isDevelopmentMode,appName:a.appName||"Mapigate",version:a.version||"",port:n,host:l,configuredHost:a.configuredHost||l,configuredPort:a.configuredPort||n,isRestartRequired:!!a.isRestartRequired};return s({info:c,loading:!1}),(async()=>{try{const u=await fetch("/api/settings/version");if(u.ok){const i=await u.json();s(o=>o.info?{...o,info:{...o.info,latestVersion:i.latestVersion,hasUpdate:!!i.hasUpdate}}:o)}}catch{}})(),c}}catch{}return s({loading:!1}),null},checkForUpdate:async()=>{try{const r=await fetch("/api/settings/version?force=true");if(r.ok){const a=await r.json();s(t=>t.info?{...t,info:{...t.info,latestVersion:a.latestVersion,hasUpdate:!!a.hasUpdate}}:t)}}catch{}}})),re=({currentTab:s,onSelectTab:r,onUpgradeClick:a})=>{const t=C(i=>i.info),n=t==null?void 0:t.version,l=(t==null?void 0:t.port)||(typeof window<"u"&&window.location.port&&window.location.port!=="5173"?Number(window.location.port):E),c=(t==null?void 0:t.host)||(typeof window<"u"&&window.location.hostname?window.location.hostname:D),u=[{id:"endpoint",label:"Endpoint & Key",icon:"api"},{id:"providers",label:"Providers",icon:"dns"},{id:"combos",label:"Combo & Adapter",icon:"layers"},{id:"usage",label:"Usage & Analytics",icon:"bar_chart"},{id:"quota",label:"Quota Tracker",icon:"data_usage"},{id:"tokensaver",label:"Token Saver",icon:"savings"},{id:"clitools",label:"Tools & Mappings",icon:"widgets"},{id:"mitm",label:"MITM Proxy",icon:"alt_route"}];return e.jsxs("aside",{className:"rt-sidebar",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"rt-sidebar__brand pt-5 pr-4 flex items-center gap-3",children:[e.jsx("div",{className:"rt-sidebar__brand-icon shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[20px]",children:"graph_5"})}),e.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("h1",{className:"text-sm font-bold tracking-tight text-white leading-none truncate",children:"Mapigate"}),n&&(t!=null&&t.hasUpdate&&t.latestVersion?e.jsxs("button",{type:"button",onClick:()=>a==null?void 0:a(),className:"group relative inline-flex items-center gap-1 text-[10px] px-1.5 py-0.5 rounded-md bg-amber-500/15 text-amber-300 border border-amber-500/35 font-mono font-semibold shrink-0 select-none leading-none hover:bg-amber-500/25 transition-all cursor-pointer",title:`New version v${t.latestVersion} available! Click to upgrade`,children:[e.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-amber-400 opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5 bg-amber-500"})]}),e.jsxs("span",{children:["v",n]}),e.jsx("span",{className:"text-[9px] text-amber-400 group-hover:translate-y-[-0.5px] transition-transform",children:"↑"})]}):e.jsxs("span",{className:"text-[10px] px-1.5 py-0.5 rounded-md bg-blue-500/15 text-blue-300 border border-blue-500/30 font-mono font-semibold shrink-0 shadow-xs select-none leading-none",title:`Mapigate Version v${n}`,children:["v",n]}))]}),e.jsx("span",{className:"text-[11px] text-slate-400 leading-normal mt-1 truncate",children:"AI Model API Gateway"})]})]}),e.jsx("nav",{className:"px-3 pt-3 space-y-1",children:u.map(i=>{const o=s===i.id;return e.jsxs("button",{onClick:()=>r(i.id),className:`rt-sidebar__nav-item ${o?"rt-sidebar__nav-item--active":""}`,children:[e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:i.icon}),e.jsx("span",{children:i.label})]},i.id)})}),e.jsx("div",{className:"px-5 pt-6 pb-2",children:e.jsx("span",{className:"text-[10px] font-bold text-slate-500 tracking-wider uppercase",children:"SYSTEM PREFERENCES"})}),e.jsxs("nav",{className:"px-3 space-y-1",children:[e.jsxs("button",{onClick:()=>r("consolelog"),className:`rt-sidebar__nav-item ${s==="consolelog"?"rt-sidebar__nav-item--active":""}`,children:[e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"terminal"}),e.jsx("span",{children:"Console Log"})]}),e.jsxs("button",{onClick:()=>r("settings"),className:`rt-sidebar__nav-item ${s==="settings"?"rt-sidebar__nav-item--active":""}`,children:[e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"tune"}),e.jsx("span",{children:"Settings"})]})]})]}),e.jsxs("div",{className:"p-4 border-t border-[#1E293B] space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs text-slate-400 bg-[#111827] px-3.5 py-2.5 rounded-xl border border-[#1E293B] shadow-inner",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"rt-beacon size-2 bg-emerald-400"}),e.jsxs("span",{className:"font-semibold text-slate-200",children:["Port ",l]})]}),e.jsx("span",{className:"text-[10px] text-blue-300 font-mono bg-blue-500/10 px-1.5 py-0.5 rounded border border-blue-500/20",children:c})]}),e.jsxs("a",{href:"https://github.com/joutvhu/mapigate",target:"_blank",rel:"noreferrer",title:"Mapigate on GitHub (joutvhu/mapigate)",className:"flex items-center justify-center gap-2 w-full py-1.5 px-3 rounded-xl bg-[#111827]/60 hover:bg-white/5 border border-[#1E293B]/60 hover:border-[#1E293B] text-[11px] font-medium text-slate-400 hover:text-white transition-all cursor-pointer",children:[e.jsx(K,{className:"size-3.5 text-slate-400"}),e.jsx("span",{children:"GitHub · joutvhu/mapigate"})]})]})]})},S="mapigate_auth_token";let V=!1;const R=new Set;function ne(s){return R.add(s),()=>{R.delete(s)}}function Q(){for(const s of R)try{s()}catch{}}class N{static getToken(){if(typeof window>"u")return null;try{return localStorage.getItem(S)}catch{return null}}static setToken(r){if(!(typeof window>"u"))try{localStorage.setItem(S,r)}catch{}}static removeToken(){if(!(typeof window>"u"))try{localStorage.removeItem(S)}catch{}}static async checkStatus(){try{const r=this.getToken(),a={};r&&(a.Authorization=`Bearer ${r}`);const t=await fetch("/api/auth/status",{headers:a});if(!t.ok)return{enabled:!1,authenticated:!0};const n=await t.json();return{enabled:!!n.enabled,authenticated:!!n.authenticated}}catch{return{enabled:!1,authenticated:!0}}}static async login(r){try{const a=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:r})}),t=await a.json();return a.ok&&t.success?(t.token&&this.setToken(t.token),{success:!0,token:t.token}):{success:!1,error:t.error||"Invalid master password"}}catch(a){return{success:!1,error:a.message||"Failed to authenticate"}}}static async logout(){try{await fetch("/api/auth/logout",{method:"POST"})}catch{}this.removeToken(),Q()}static async setup(r){try{const a=await fetch("/api/auth/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:r})}),t=await a.json();return a.ok&&t.success?(t.token&&this.setToken(t.token),{success:!0,token:t.token}):{success:!1,error:t.error||"Failed to setup master password"}}catch(a){return{success:!1,error:a.message||"Failed to setup master password"}}}static async changePassword(r,a){try{const t=await fetch("/api/auth/change-password",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:r,newPassword:a})}),n=await t.json();return t.ok&&n.success?(n.token&&this.setToken(n.token),{success:!0,token:n.token}):{success:!1,error:n.error||"Failed to change master password"}}catch(t){return{success:!1,error:t.message||"Failed to change master password"}}}static async removePassword(r){try{const a=await fetch("/api/auth/remove-password",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:r})}),t=await a.json();return a.ok&&t.success?(this.removeToken(),{success:!0}):{success:!1,error:t.error||"Failed to remove master password"}}catch(a){return{success:!1,error:a.message||"Failed to remove master password"}}}}function oe(){if(typeof window>"u"||V)return;V=!0;const s=window.fetch.bind(window);window.fetch=async(r,a)=>{let t="";typeof r=="string"?t=r:r instanceof URL?t=r.toString():r&&typeof r.url=="string"&&(t=r.url);let n=!1;try{const o=new URL(t,window.location.origin);n=o.origin===window.location.origin&&(o.pathname==="/api"||o.pathname.startsWith("/api/"))}catch{n=t.startsWith("/api/")}const l=t.includes("/api/auth/status")||t.includes("/api/auth/login");let c=a;const u=N.getToken();if(n&&u){const o=new Headers((a==null?void 0:a.headers)||(r instanceof Request?r.headers:void 0));o.has("Authorization")||o.set("Authorization",`Bearer ${u}`),c={...a,headers:o}}const i=await s(r,c);if(n&&!l&&i.status===401)try{const h=await i.clone().json();h&&h.code==="AUTH_REQUIRED"&&Q()}catch{}return i}}oe();const w=M((s,r)=>({isChecking:!0,isPasswordSet:!1,isAuthenticated:!0,isLocked:!1,checkAuth:async()=>{s({isChecking:!0});try{const a=await N.checkStatus();if(!a.enabled){s({isChecking:!1,isPasswordSet:!1,isAuthenticated:!0,isLocked:!1});return}s({isChecking:!1,isPasswordSet:!0,isAuthenticated:a.authenticated,isLocked:!a.authenticated})}catch{s({isChecking:!1,isPasswordSet:!1,isAuthenticated:!0,isLocked:!1})}},login:async a=>{const t=await N.login(a);return t.success?(s({isAuthenticated:!0,isLocked:!1}),{success:!0}):{success:!1,error:t.error}},logout:async()=>{await N.logout();const a=r().isPasswordSet;s({isAuthenticated:!a,isLocked:a})},lock:()=>{N.removeToken(),s({isPasswordSet:!0,isAuthenticated:!1,isLocked:!0})},unlock:a=>{N.setToken(a),s({isAuthenticated:!0,isLocked:!1})}}));typeof window<"u"&&(ne(()=>{w.getState().lock()}),window.addEventListener("storage",s=>{(s.key===S||s.key===null)&&(N.getToken()?w.setState({isAuthenticated:!0,isLocked:!1}):w.getState().isPasswordSet&&w.setState({isAuthenticated:!1,isLocked:!0}))}));const G=M(s=>({status:null,loading:!1,fetchStatus:async()=>{try{s({loading:!0});const r=await fetch("/api/mitm/status");if(r.ok){const a=await r.json(),t=a.dnsStatus||{},n=Object.entries(t).filter(([c,u])=>!!u).map(([c])=>c),l={running:!!a.running,port:Number(a.port)||443,certExists:!!a.certExists,certTrusted:!!a.certTrusted,dnsStatus:t,orphanedDns:!!a.orphanedDns,activeDnsCount:n.length,activeDnsTools:n};return s({status:l,loading:!1}),l}}catch{}return s({loading:!1}),null}})),le={antigravity:"Antigravity",kiro:"Kiro",copilot:"GitHub Copilot",cursor:"Cursor"};function H(s){return!s||s.length===0?"":s.map(r=>le[r]||r.charAt(0).toUpperCase()+r.slice(1)).join(", ")}const q={endpoint:{title:"Endpoint & Key",subtitle:"Manage your local AI gateway endpoint and master keys",icon:"api"},providers:{title:"Providers",subtitle:"Manage your AI provider connections and encrypted API credentials",icon:"dns"},combos:{title:"Combos & Adapter",subtitle:"Group models under smart fallback and load-balancing combos",icon:"layers"},usage:{title:"Usage & Analytics",subtitle:"Real-time token metrics, savings analysis, and interactive routing topology",icon:"bar_chart"},quota:{title:"Quota Tracker",subtitle:"Track rate limits and multi-account sliding quota reset times",icon:"data_usage"},tokensaver:{title:"Token Saver",subtitle:"Lossless context optimization saving 20-40% input tokens",icon:"savings"},clitools:{title:"Tools & Mappings",subtitle:"One-click connection setups and universal model rewrite rules for AI assistants, IDEs & tools",icon:"widgets"},mitm:{title:"MITM Proxy",subtitle:"Intercept CLI & IDE tool traffic (Antigravity, Kiro, Copilot) via local Root CA",icon:"alt_route"},consolelog:{title:"Console Log",subtitle:"Live gateway server stdout, request streaming events, and system logs",icon:"terminal"},settings:{title:"Settings",subtitle:"Local SQLite database, hardware encryption vault, and system preferences",icon:"tune"}},ie=({currentTab:s,searchQuery:r,onSearchChange:a,detailProvider:t,onBackToProviders:n,detailCombo:l,onBackToCombos:c,onRestartClick:u,onSelectTab:i})=>{const o=q[s]||q.providers,h=w(v=>v.isPasswordSet),m=w(v=>v.lock),p=C(v=>v.info),d=C(v=>v.fetchSystemInfo);p==null||p.version;const f=G(v=>v.status),b=G(v=>v.fetchStatus);x.useEffect(()=>{b(),d();const v=setInterval(()=>{document.hidden||(b(),d())},1e4),$=()=>{b(),d()};return window.addEventListener("focus",$),()=>{clearInterval(v),window.removeEventListener("focus",$)}},[b,d]);const j=!!(f!=null&&f.running),k=(f==null?void 0:f.port)||443,g=(f==null?void 0:f.activeDnsCount)||0,L=(f==null?void 0:f.activeDnsTools)||[],Y=!!(f!=null&&f.orphanedDns),P=(p==null?void 0:p.host)||"127.0.0.1",I=(p==null?void 0:p.configuredHost)||P,B=!!(p!=null&&p.isRestartRequired),A=P==="0.0.0.0";let O=A?`Network: LAN Active (0.0.0.0:${(p==null?void 0:p.port)||E}) • Accessible from local network • Click to configure Endpoint`:`Network: Local Only (127.0.0.1:${(p==null?void 0:p.port)||E}) • Isolated to this machine • Click to configure Endpoint`,U=A?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20 hover:bg-emerald-500/20":"bg-blue-500/10 text-blue-400 border-blue-500/20 hover:bg-blue-500/20",z=A?"wifi":"shield";B&&(O=`⚠️ Restart Required: Configured for ${I==="0.0.0.0"?"LAN Active":"Local Only"} (${I}), but running on ${P}. Click Restart button to apply.`,U="bg-amber-500/15 text-amber-300 border-amber-500/30 hover:bg-amber-500/25 animate-pulse",z="restart_alt");let T="MITM Proxy: Stopped • Click to open settings",_="text-slate-500 hover:text-slate-300";return Y?(T=`⚠️ MITM Warning: Server stopped but ${g} DNS redirect(s) still active (${H(L)})! Tools cannot connect. Click to fix.`,_="text-amber-400 hover:text-amber-300 animate-pulse"):j?g>0?(T=`MITM Proxy: Active on port ${k} • ${g} tool DNS active (${H(L)}) • Click to manage`,_="text-emerald-400 hover:text-emerald-300"):(T=`MITM Proxy: Running on port ${k} (Idle, 0 tool DNS active) • Click to configure`,_="text-blue-400 hover:text-blue-300"):(T="MITM Proxy: Stopped • Click to open settings",_="text-slate-500 hover:text-slate-300"),e.jsxs("header",{className:"rt-header",children:[e.jsxs("div",{className:"flex items-center gap-3.5 min-w-0",children:[e.jsx("div",{className:"rt-header__icon-box",children:e.jsx("span",{className:"material-symbols-outlined text-[20px]",children:o.icon})}),e.jsxs("div",{className:"flex flex-col min-w-0",children:[s==="providers"&&t?e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("button",{type:"button",onClick:n,className:"text-sm font-bold text-slate-400 hover:text-white flex items-center gap-1 cursor-pointer transition-colors",title:"Back to Providers",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"arrow_back"}),"Providers"]}),e.jsx("span",{className:"text-slate-600 text-xs",children:"/"}),e.jsx("h2",{className:"text-sm font-bold text-white tracking-tight leading-tight",children:t.name})]}):s==="combos"&&l?e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("button",{type:"button",onClick:c,className:"text-sm font-bold text-slate-400 hover:text-white flex items-center gap-1 cursor-pointer transition-colors",title:"Back to Combos",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"arrow_back"}),"Combos"]}),e.jsx("span",{className:"text-slate-600 text-xs",children:"/"}),e.jsx("h2",{className:"text-sm font-bold text-white tracking-tight leading-tight font-mono",children:l.name})]}):e.jsx("h2",{className:"text-sm font-bold text-white tracking-tight leading-tight",children:o.title}),e.jsx("p",{className:"text-[11px] text-slate-400 truncate leading-tight mt-0.5",children:s==="providers"&&t?`Configure credentials, upstream headers, and fallback strategy for ${t.name}`:s==="combos"&&l?`Configure priority order, models, and fallback routing for ${l.name}`:o.subtitle})]})]}),e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsxs("div",{className:"relative w-64 h-8",children:[e.jsx("span",{className:"material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-[15px] text-slate-500 pointer-events-none",children:"search"}),e.jsx("input",{type:"text",placeholder:"Search providers & models...",value:r,onChange:v=>a(v.target.value),className:"w-full h-8 bg-[#111827] border border-[#1E293B] rounded-lg pl-9 pr-8 text-xs text-white placeholder-slate-500 focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500/30 transition-all"}),r&&e.jsx("button",{type:"button",onClick:()=>a(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-slate-500 hover:text-white transition-colors cursor-pointer flex items-center justify-center w-5 h-5 rounded hover:bg-white/5",title:"Clear search",children:e.jsx("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("button",{type:"button",onClick:()=>{B&&u?u():i==null||i("endpoint")},title:O,className:`w-8 h-8 rounded-lg border text-xs font-medium transition-all cursor-pointer shadow-xs inline-flex items-center justify-center ${U}`,children:e.jsx("span",{className:"material-symbols-outlined text-[17px]",children:z})}),e.jsx("button",{type:"button",onClick:()=>i==null?void 0:i("mitm"),title:T,className:`w-8 h-8 rounded-lg border border-[#1E293B] bg-[#111827] hover:bg-white/5 ${_} transition-colors cursor-pointer inline-flex items-center justify-center shadow-xs`,children:e.jsx("span",{className:"material-symbols-outlined text-[17px]",children:"alt_route"})})]}),e.jsxs("div",{className:"flex items-center gap-1.5 border-l border-[#1E293B] pl-2.5",children:[u&&e.jsx("button",{type:"button",onClick:u,title:"Restart Mapigate Gateway (Hot Reload)",className:"w-8 h-8 rounded-lg border border-[#1E293B] bg-[#111827] hover:bg-white/5 hover:text-blue-400 text-slate-400 transition-colors cursor-pointer inline-flex items-center justify-center shadow-xs",children:e.jsx("span",{className:"material-symbols-outlined text-[17px]",children:"restart_alt"})}),h&&e.jsx("button",{type:"button",onClick:m,title:"Lock Dashboard (Master Password Protected)",className:"w-8 h-8 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 border border-amber-500/20 hover:border-amber-500/30 transition-all cursor-pointer inline-flex items-center justify-center shadow-xs",children:e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"lock"})})]}),e.jsx("div",{className:"flex items-center border-l border-[#1E293B] pl-2.5",children:e.jsx("a",{href:"https://github.com/joutvhu/mapigate",target:"_blank",rel:"noreferrer",title:"Mapigate on GitHub (joutvhu/mapigate)",className:"hidden sm:inline-flex items-center justify-center w-8 h-8 rounded-lg bg-[#111827] hover:bg-white/5 text-slate-400 hover:text-white border border-[#1E293B] transition-all cursor-pointer shadow-xs",children:e.jsx(K,{className:"size-4"})})})]})]})},ce=()=>{const[s,r]=x.useState(""),[a,t]=x.useState(!1),[n,l]=x.useState(!1),[c,u]=x.useState(null),i=x.useRef(null),o=w(m=>m.login);x.useEffect(()=>{var m;(m=i.current)==null||m.focus()},[]);const h=async m=>{var d;if(m.preventDefault(),!s.trim()||n)return;l(!0),u(null);const p=await o(s);p.success||(u(p.error||"Incorrect master password"),l(!1),(d=i.current)==null||d.select())};return e.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-[#07090E] p-4 animate-rt-fade-in select-none",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"absolute -top-[25%] left-1/2 -translate-x-1/2 w-[650px] h-[450px] bg-gradient-to-b from-blue-600/15 via-indigo-600/10 to-transparent blur-[140px] rounded-full"}),e.jsx("div",{className:"absolute -bottom-[20%] left-1/2 -translate-x-1/2 w-[500px] h-[300px] bg-blue-500/5 blur-[120px] rounded-full"})]}),e.jsxs("div",{className:"w-full max-w-sm relative z-10 space-y-6",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center text-center space-y-3",children:[e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-blue-500 to-indigo-500 rounded-2xl blur-md opacity-40 group-hover:opacity-75 transition-opacity"}),e.jsx("div",{className:"relative size-12 rounded-2xl bg-gradient-to-br from-blue-500 to-indigo-600 text-white flex items-center justify-center shadow-lg shadow-blue-500/30 border border-blue-400/30",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"graph_5"})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx("h1",{className:"text-xl font-bold tracking-tight text-white font-sans",children:"Mapigate"}),e.jsx("span",{className:"text-[10px] uppercase font-semibold px-1.5 py-0.5 rounded bg-blue-500/20 text-blue-400 border border-blue-500/30 font-mono",children:"AI"})]}),e.jsx("p",{className:"text-xs text-slate-400 mt-1 font-medium",children:"Ultra-lightweight Local AI Gateway"})]})]}),e.jsxs("div",{className:"bg-[#0D111A]/90 backdrop-blur-xl border border-slate-800/80 shadow-2xl shadow-black/60 rounded-2xl p-6 sm:p-7 text-center space-y-5 border-t-blue-500/50",children:[e.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800/60",children:[e.jsxs("div",{className:"flex items-center gap-2 text-left",children:[e.jsx("div",{className:"size-8 rounded-lg bg-blue-500/10 border border-blue-500/20 text-blue-400 flex items-center justify-center",children:e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"lock"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xs font-semibold text-white tracking-tight",children:"Dashboard Locked"}),e.jsx("p",{className:"text-[11px] text-slate-400",children:"Authentication required"})]})]}),e.jsx("span",{className:"text-[10px] font-mono px-2 py-0.5 rounded-full bg-slate-800/80 text-slate-300 border border-slate-700/50",children:"v1.0"})]}),e.jsxs("form",{onSubmit:h,className:"space-y-4",children:[e.jsxs("div",{className:"relative text-left",children:[e.jsx("span",{className:"material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-[18px] text-slate-500",children:"key"}),e.jsx("input",{ref:i,type:a?"text":"password",placeholder:"Enter master password...",value:s,onChange:m=>{r(m.target.value),c&&u(null)},disabled:n,className:"w-full bg-[#07090E] border border-slate-800 rounded-xl pl-9 pr-10 py-2.5 text-xs text-white placeholder-slate-500 focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 transition-all font-mono"}),e.jsx("button",{type:"button",onClick:()=>t(!a),tabIndex:-1,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-500 hover:text-slate-300 transition-colors cursor-pointer","aria-label":a?"Hide password":"Show password",children:e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:a?"visibility_off":"visibility"})})]}),c&&e.jsxs("div",{className:"p-2.5 rounded-lg bg-rose-500/10 border border-rose-500/30 text-xs text-rose-300 flex items-center gap-2 text-left animate-rt-scale-in",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px] shrink-0 text-rose-400",children:"error"}),e.jsx("span",{className:"truncate",children:c})]}),e.jsx("button",{type:"submit",disabled:n||!s.trim(),className:"w-full rt-btn rt-btn--primary text-xs py-2.5 px-4 flex items-center justify-center gap-2 cursor-pointer font-semibold shadow-lg shadow-blue-500/20 disabled:opacity-50 disabled:cursor-not-allowed transition-all",children:n?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"material-symbols-outlined text-[16px] animate-spin",children:"progress_activity"}),"Verifying..."]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"lock_open"}),"Unlock Dashboard"]})})]})]}),e.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-slate-500 text-[11px]",children:[e.jsx("span",{className:"material-symbols-outlined text-[14px] text-blue-400",children:"verified_user"}),e.jsx("span",{children:"100% Local-First · Coding assistants proxy unaffected"})]})]})]})};function de(s){let r={...s},a=!1,t=!1,n=0;const l=d=>{r={...d}},c=()=>{var f;if(r.disabled)return;const d=Date.now();d-n<250||(n=d,(f=r.onClose)==null||f.call(r))};return{updateOptions:l,handleMouseDown:d=>{r.disabled||(d.target===d.currentTarget&&(d.button===0||d.button===void 0)?a=!0:a=!1)},handleMouseUp:d=>{if(r.disabled){a=!1;return}a&&d.target===d.currentTarget&&(d.button===0||d.button===void 0)&&c(),a=!1},handleTouchStart:d=>{r.disabled||(d.target===d.currentTarget?t=!0:t=!1)},handleTouchEnd:d=>{if(r.disabled){t=!1;return}t&&d.target===d.currentTarget&&c(),t=!1},handleClick:d=>{r.disabled||d.detail===0&&d.target===d.currentTarget&&c()},reset:()=>{a=!1,t=!1},get isMouseDown(){return a},get isTouchStart(){return t}}}function ue(s,r=!1){const a=x.useRef(null);a.current?a.current.updateOptions({onClose:s,disabled:r}):a.current=de({onClose:s,disabled:r}),x.useEffect(()=>{if(typeof window>"u")return;const n=()=>{var c;(c=a.current)==null||c.reset()},l=()=>{var c;(c=a.current)==null||c.reset()};return window.addEventListener("mouseup",n),window.addEventListener("touchend",l),()=>{window.removeEventListener("mouseup",n),window.removeEventListener("touchend",l)}},[]);const t=a.current;return{handleBackdropMouseDown:t.handleMouseDown,handleBackdropMouseUp:t.handleMouseUp,handleBackdropTouchStart:t.handleTouchStart,handleBackdropTouchEnd:t.handleTouchEnd,handleBackdropClick:t.handleClick,backdropProps:{onMouseDown:t.handleMouseDown,onMouseUp:t.handleMouseUp,onTouchStart:t.handleTouchStart,onTouchEnd:t.handleTouchEnd,onClick:t.handleClick}}}const W=({isOpen:s,onClose:r,children:a,maxWidthClass:t="max-w-xl",className:n="",overflowHidden:l=!1})=>{const{backdropProps:c}=ue(r);if(x.useEffect(()=>{if(!s)return;const i=h=>{h.key==="Escape"&&r()};document.addEventListener("keydown",i);const o=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",i),document.body.style.overflow=o}},[s,r]),!s||typeof document>"u")return null;const u=l?"overflow-hidden":n.includes("overflow-")?"":"overflow-visible";return X.createPortal(e.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-[9999] flex items-center justify-center p-4 bg-black/75 backdrop-blur-xs animate-rt-fade-in",...c,children:e.jsx("div",{className:`w-full ${t} bg-[#0F1420] border border-[#1E293B] rounded-2xl shadow-2xl p-6 animate-rt-scale-in text-slate-100 ${u} ${n}`,onClick:i=>i.stopPropagation(),children:a})}),document.body)},xe=({isOpen:s,onClose:r})=>{const[a,t]=x.useState("confirm"),[n,l]=x.useState(null),[c,u]=x.useState(0),i=x.useRef(null),o=x.useRef(null);x.useEffect(()=>(s?(t("confirm"),l(null),u(0)):(i.current&&clearInterval(i.current),o.current&&clearInterval(o.current)),()=>{i.current&&clearInterval(i.current),o.current&&clearInterval(o.current)}),[s]);const h=()=>{const p=Date.now();let d=0;o.current=setInterval(()=>{u(Math.floor((Date.now()-p)/1e3))},500),setTimeout(()=>{i.current=setInterval(async()=>{d+=1;try{const f=await fetch("/health",{cache:"no-store",headers:{Accept:"application/json"}});if(f.ok){const b=await f.json().catch(()=>null);(b==null?void 0:b.status)==="ok"&&(i.current&&clearInterval(i.current),o.current&&clearInterval(o.current),t("success"),setTimeout(()=>{window.location.reload()},600))}}catch{}d>=50&&(i.current&&clearInterval(i.current),o.current&&clearInterval(o.current),t("timeout"))},500)},600)},m=async()=>{t("restarting"),l(null);try{const p=await fetch("/api/server/restart",{method:"POST",headers:{"Content-Type":"application/json"}});if(!p.ok){const d=await p.json().catch(()=>({}));l(d.error||"Failed to initiate server restart."),t("confirm");return}}catch{}h()};return e.jsx(W,{isOpen:s,onClose:()=>{(a==="confirm"||a==="timeout")&&r()},maxWidthClass:"max-w-md",children:e.jsxs("div",{className:"space-y-4",children:[a==="confirm"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-xl bg-blue-500/15 border border-blue-500/30 text-blue-400 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"restart_alt"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Restart Mapigate Gateway?"}),e.jsx("p",{className:"text-xs text-slate-400",children:"Gracefully reload server and apply new version"})]})]}),e.jsxs("div",{className:"p-3.5 rounded-xl bg-[#0A0D14] border border-[#1E293B] text-xs text-slate-300 space-y-2 leading-relaxed",children:[e.jsx("p",{children:"Hot restarting the gateway reloads all provider modules, registries, and configuration. MITM proxy and tool DNS entries remain active across restart."}),e.jsxs("p",{className:"text-slate-400 text-[11px]",children:["If you recently installed an update (e.g. via ",e.jsx("code",{className:"text-blue-400",children:"npm install -g mapigate"})," or ",e.jsx("code",{className:"text-blue-400",children:"npm run local:publish"}),"), the new code will take effect immediately without needing to open a terminal or turn off DNS."]})]}),n&&e.jsx("div",{className:"p-3 rounded-lg bg-rose-500/10 border border-rose-500/30 text-xs text-rose-300",children:n}),e.jsxs("div",{className:"flex items-center justify-end gap-3 pt-2",children:[e.jsx("button",{type:"button",onClick:r,className:"rt-btn rt-btn--secondary text-xs py-2 px-4 cursor-pointer",children:"Cancel"}),e.jsxs("button",{type:"button",onClick:m,className:"rt-btn rt-btn--primary text-xs py-2 px-4 flex items-center gap-1.5 cursor-pointer font-semibold",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"restart_alt"}),"Restart Gateway"]})]})]}),a==="restarting"&&e.jsxs("div",{className:"py-6 px-2 text-center space-y-4",children:[e.jsxs("div",{className:"relative size-14 mx-auto flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 rounded-full border-2 border-blue-500/20 border-t-blue-500 animate-spin"}),e.jsx("span",{className:"material-symbols-outlined text-[28px] text-blue-400",children:"restart_alt"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Restarting Mapigate Gateway..."}),e.jsxs("p",{className:"text-xs text-slate-400",children:["Re-spawning daemon and binding port (",c,"s)"]})]}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Please wait. This page will refresh automatically once the new server responds."})]}),a==="success"&&e.jsxs("div",{className:"py-6 px-2 text-center space-y-4",children:[e.jsx("div",{className:"size-14 mx-auto rounded-full bg-emerald-500/15 border border-emerald-500/30 text-emerald-400 flex items-center justify-center",children:e.jsx("span",{className:"material-symbols-outlined text-[32px]",children:"check_circle"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Restart Succeeded!"}),e.jsx("p",{className:"text-xs text-emerald-400 font-medium",children:"Gateway is back online. Refreshing dashboard..."})]})]}),a==="timeout"&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-xl bg-amber-500/15 border border-amber-500/30 text-amber-400 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"schedule"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Restart Taking Longer Than Expected"}),e.jsx("p",{className:"text-xs text-slate-400",children:"The gateway server has not responded yet."})]})]}),e.jsxs("div",{className:"p-3.5 rounded-xl bg-[#0A0D14] border border-[#1E293B] text-xs text-slate-300 space-y-2",children:[e.jsx("p",{children:"If the server failed to restart automatically, you can start it manually in your terminal:"}),e.jsx("div",{className:"bg-[#111827] p-2.5 rounded-lg border border-[#1E293B] font-mono text-[11px] text-blue-400",children:"mpg start"})]}),e.jsxs("div",{className:"flex items-center justify-end gap-3 pt-2",children:[e.jsx("button",{type:"button",onClick:r,className:"rt-btn rt-btn--secondary text-xs py-2 px-4 cursor-pointer",children:"Close"}),e.jsxs("button",{type:"button",onClick:()=>window.location.reload(),className:"rt-btn rt-btn--primary text-xs py-2 px-4 flex items-center gap-1.5 cursor-pointer",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"refresh"}),"Refresh Page"]})]})]})]})})},me=({isOpen:s,onClose:r,currentVersion:a,latestVersion:t})=>{const[n,l]=x.useState("confirm"),[c,u]=x.useState(null),[i,o]=x.useState(0),h=x.useRef(null),m=x.useRef(null);x.useEffect(()=>(s?(l("confirm"),u(null),o(0)):(h.current&&clearInterval(h.current),m.current&&clearInterval(m.current)),()=>{h.current&&clearInterval(h.current),m.current&&clearInterval(m.current)}),[s]);const p=()=>{let f=0;setTimeout(()=>{h.current=setInterval(async()=>{f+=1;try{const b=await fetch("/health",{cache:"no-store",headers:{Accept:"application/json"}});if(b.ok){const j=await b.json().catch(()=>null);(j==null?void 0:j.status)==="ok"&&(h.current&&clearInterval(h.current),m.current&&clearInterval(m.current),l("success"),setTimeout(()=>{window.location.reload()},800))}}catch{}f>=60&&(h.current&&clearInterval(h.current),m.current&&clearInterval(m.current),l("timeout"))},500)},800)},d=async()=>{l("upgrading"),u(null),o(0);const f=Date.now();m.current=setInterval(()=>{o(Math.floor((Date.now()-f)/1e3))},500);try{const b=await fetch("/api/server/upgrade",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({force:!1})}),j=await b.json().catch(()=>({}));if(!b.ok||!j.success){m.current&&clearInterval(m.current),u(j.error||"Failed to upgrade Mapigate."),l("error");return}l("restarting"),p()}catch(b){m.current&&clearInterval(m.current),u((b==null?void 0:b.message)||"Network error while requesting upgrade."),l("error")}};return e.jsx(W,{isOpen:s,onClose:()=>{(n==="confirm"||n==="error"||n==="timeout")&&r()},maxWidthClass:"max-w-md",children:e.jsxs("div",{className:"space-y-4",children:[n==="confirm"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-xl bg-amber-500/15 border border-amber-500/30 text-amber-400 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"upgrade"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Upgrade Mapigate Gateway"}),e.jsx("p",{className:"text-xs text-slate-400",children:"Install the latest release from npm and reload"})]})]}),e.jsxs("div",{className:"p-3.5 rounded-xl bg-[#0A0D14] border border-[#1E293B] space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-400",children:"Current Version:"}),e.jsxs("span",{className:"font-mono font-semibold text-slate-300",children:["v",a||"0.0.0"]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-400",children:"Target Version:"}),e.jsxs("span",{className:"font-mono font-semibold text-amber-400",children:["v",t||"latest"]})]}),e.jsxs("div",{className:"pt-2 border-t border-[#1E293B] text-[11px] text-slate-400 leading-relaxed",children:["Mapigate will run ",e.jsxs("code",{className:"text-amber-400 font-mono",children:["npm install -g mapigate@",t||"latest"]})," and hot-reload the gateway. All database settings, API keys, and active combos will be preserved."]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-2",children:[e.jsxs("a",{href:"https://www.npmjs.com/package/mapigate",target:"_blank",rel:"noreferrer",className:"text-[11px] text-blue-400 hover:text-blue-300 hover:underline inline-flex items-center gap-1",children:[e.jsx("span",{children:"View on npm"}),e.jsx("span",{className:"material-symbols-outlined text-[13px]",children:"open_in_new"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"button",onClick:r,className:"rt-btn rt-btn--secondary text-xs py-2 px-3.5 cursor-pointer",children:"Cancel"}),e.jsxs("button",{type:"button",onClick:d,className:"rt-btn rt-btn--primary text-xs py-2 px-4 flex items-center gap-1.5 cursor-pointer font-semibold bg-amber-600 hover:bg-amber-500 text-white border-amber-500/40",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"upgrade"}),"Upgrade to v",t]})]})]})]}),n==="upgrading"&&e.jsxs("div",{className:"py-6 px-2 text-center space-y-4",children:[e.jsxs("div",{className:"relative size-14 mx-auto flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 rounded-full border-2 border-amber-500/20 border-t-amber-500 animate-spin"}),e.jsx("span",{className:"material-symbols-outlined text-[28px] text-amber-400",children:"download"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Upgrading Mapigate..."}),e.jsxs("p",{className:"text-xs text-slate-400 font-mono",children:["npm install -g mapigate@",t||"latest"," (",i,"s)"]})]}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Downloading and installing update. Please do not close this window."})]}),n==="restarting"&&e.jsxs("div",{className:"py-6 px-2 text-center space-y-4",children:[e.jsxs("div",{className:"relative size-14 mx-auto flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 rounded-full border-2 border-blue-500/20 border-t-blue-500 animate-spin"}),e.jsx("span",{className:"material-symbols-outlined text-[28px] text-blue-400",children:"restart_alt"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Restarting Gateway..."}),e.jsxs("p",{className:"text-xs text-slate-400",children:["Re-spawning daemon with v",t," (",i,"s)"]})]}),e.jsx("p",{className:"text-[11px] text-slate-500",children:"Gateway is reloading. This dashboard will refresh automatically once online."})]}),n==="success"&&e.jsxs("div",{className:"py-6 px-2 text-center space-y-4",children:[e.jsx("div",{className:"size-14 mx-auto rounded-full bg-emerald-500/15 border border-emerald-500/30 text-emerald-400 flex items-center justify-center",children:e.jsx("span",{className:"material-symbols-outlined text-[32px]",children:"check_circle"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Upgrade Succeeded!"}),e.jsxs("p",{className:"text-xs text-emerald-400 font-medium",children:["Mapigate v",t," is live. Refreshing dashboard..."]})]})]}),n==="error"&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-xl bg-rose-500/15 border border-rose-500/30 text-rose-400 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"error"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Upgrade Failed"}),e.jsx("p",{className:"text-xs text-slate-400",children:"An error occurred while updating"})]})]}),c&&e.jsx("div",{className:"p-3 rounded-lg bg-rose-500/10 border border-rose-500/30 text-xs text-rose-300 font-mono break-words leading-relaxed max-h-36 overflow-y-auto",children:c}),e.jsxs("div",{className:"p-3 rounded-xl bg-[#0A0D14] border border-[#1E293B] text-[11px] text-slate-400 space-y-1.5 leading-relaxed",children:[e.jsx("p",{className:"font-semibold text-slate-300",children:"You can upgrade manually from your terminal:"}),e.jsxs("div",{className:"p-2 rounded bg-black/50 font-mono text-slate-200 text-[10px] space-y-1 select-all",children:[e.jsx("div",{children:"npm install -g mapigate@latest"}),e.jsx("div",{children:"mpg restart"})]})]}),e.jsxs("div",{className:"flex items-center justify-end gap-2 pt-2",children:[e.jsx("button",{type:"button",onClick:r,className:"rt-btn rt-btn--secondary text-xs py-2 px-4 cursor-pointer",children:"Close"}),e.jsxs("button",{type:"button",onClick:d,className:"rt-btn rt-btn--primary text-xs py-2 px-4 flex items-center gap-1 cursor-pointer font-semibold",children:[e.jsx("span",{className:"material-symbols-outlined text-[15px]",children:"refresh"}),"Retry"]})]})]}),n==="timeout"&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-xl bg-amber-500/15 border border-amber-500/30 text-amber-400 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"material-symbols-outlined text-[24px]",children:"schedule"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-bold text-white",children:"Server Still Starting"}),e.jsx("p",{className:"text-xs text-slate-400",children:"The gateway has not responded yet"})]})]}),e.jsxs("div",{className:"p-3.5 rounded-xl bg-[#0A0D14] border border-[#1E293B] text-xs text-slate-300 space-y-2 leading-relaxed",children:[e.jsx("p",{children:"The upgrade may have completed, but the server is taking longer than expected to bind to port."}),e.jsxs("p",{className:"text-slate-400 text-[11px]",children:["You can try refreshing the page or checking ",e.jsx("code",{className:"text-blue-400",children:"mpg status"})," in your terminal."]})]}),e.jsxs("div",{className:"flex items-center justify-end gap-2 pt-2",children:[e.jsx("button",{type:"button",onClick:r,className:"rt-btn rt-btn--secondary text-xs py-2 px-4 cursor-pointer",children:"Close"}),e.jsxs("button",{type:"button",onClick:()=>window.location.reload(),className:"rt-btn rt-btn--primary text-xs py-2 px-4 flex items-center gap-1.5 cursor-pointer font-semibold",children:[e.jsx("span",{className:"material-symbols-outlined text-[16px]",children:"refresh"}),"Refresh Page"]})]})]})]})})},pe=x.lazy(()=>y(()=>import("./ProvidersTab-DyeFqcx4.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(s=>({default:s.ProvidersTab}))),he=x.lazy(()=>y(()=>import("./ProviderDetailPage-DvqxjQHh.js"),__vite__mapDeps([8,1,6,4,9,5,3,10,2,7])).then(s=>({default:s.ProviderDetailPage}))),fe=x.lazy(()=>y(()=>import("./CombosTab-D0T91znw.js"),__vite__mapDeps([11,1,12,3,4,13,5,9,2,7])).then(s=>({default:s.CombosTab}))),be=x.lazy(()=>y(()=>import("./ComboDetailPage-8ZPxPl5N.js"),__vite__mapDeps([14,1,2,13,12,3,4,5,9,7])).then(s=>({default:s.ComboDetailPage}))),ge=x.lazy(()=>y(()=>import("./UsageTab-Du6U3MIb.js"),__vite__mapDeps([15,1,7,5,4,16,9])).then(s=>({default:s.UsageTab}))),ve=x.lazy(()=>y(()=>import("./QuotaTab-DrNRwUP6.js"),__vite__mapDeps([17,1,4,5,9,10,2,7])).then(s=>({default:s.QuotaTab}))),je=x.lazy(()=>y(()=>import("./CliToolsTab-AP4tHWEj.js"),__vite__mapDeps([18,1,6,4,5,3,7])).then(s=>({default:s.CliToolsTab}))),ye=x.lazy(()=>y(()=>import("./MitmTab-De7zsN2f.js"),__vite__mapDeps([19,1,3,4,5,7])).then(s=>({default:s.MitmTab}))),we=x.lazy(()=>y(()=>import("./EndpointTab-CYnFpxjA.js"),__vite__mapDeps([20,1,9,2,7])).then(s=>({default:s.EndpointTab}))),Ne=x.lazy(()=>y(()=>import("./TokenSaverTab-B3Fbu_yc.js"),__vite__mapDeps([21,1])).then(s=>({default:s.TokenSaverTab}))),ke=x.lazy(()=>y(()=>import("./ConsoleLogTab-Bpvxqa2f.js"),__vite__mapDeps([22,1,9,7,5])).then(s=>({default:s.ConsoleLogTab}))),Te=x.lazy(()=>y(()=>import("./SettingsTab-DS6HQKrg.js"),__vite__mapDeps([23,1,7])).then(s=>({default:s.SettingsTab}))),_e=x.lazy(()=>y(()=>import("./CallbackPage-sTRnWJ-d.js"),__vite__mapDeps([24,1])));function J(){return e.jsx("div",{className:"flex items-center justify-center py-24 text-slate-500",children:e.jsx("div",{className:"size-6 rounded-full border-2 border-blue-500/20 border-t-blue-500 animate-spin"})})}function Ee(){const s=typeof window<"u"?new URLSearchParams(window.location.search):null,r=!!(s&&(s.has("user_id")&&(s.has("access_token")||s.has("accessToken")||s.has("token"))||s.has("userId")&&(s.has("access_token")||s.has("accessToken")||s.has("token"))));return typeof window<"u"&&(window.location.pathname==="/callback"||window.location.pathname==="/auth/callback"||window.location.pathname==="/authorize"||window.location.pathname.startsWith("/callback")||r)?e.jsx(x.Suspense,{fallback:e.jsx(J,{}),children:e.jsx(_e,{})}):e.jsx(Ce,{})}function Ce(){const s=w(g=>g.isChecking),r=w(g=>g.isLocked),a=w(g=>g.checkAuth),t=C(g=>g.fetchSystemInfo);x.useEffect(()=>{a(),t()},[a,t]);const[n,l]=x.useState("providers"),[c,u]=x.useState(""),[i,o]=x.useState(null),[h,m]=x.useState(null),[p,d]=x.useState(!1),[f,b]=x.useState(!1),j=C(g=>g.info),k=g=>{l(g),o(null),m(null)};return s?e.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-[#0A0D14] text-slate-400",children:e.jsx("div",{className:"size-8 rounded-full border-2 border-blue-500/20 border-t-blue-500 animate-spin"})}):r?e.jsx(ce,{}):e.jsxs("div",{className:"rt-app",children:[e.jsx(re,{currentTab:n,onSelectTab:k,onUpgradeClick:()=>b(!0)}),e.jsxs("div",{className:"flex-1 flex flex-col min-w-0 h-full overflow-hidden",children:[e.jsx(ie,{currentTab:n,searchQuery:c,onSearchChange:u,detailProvider:i,onBackToProviders:()=>o(null),detailCombo:h,onBackToCombos:()=>m(null),onRestartClick:()=>d(!0),onSelectTab:k}),e.jsx("main",{className:"flex-1 overflow-y-auto px-4 sm:px-6 py-6 w-full",children:e.jsxs(x.Suspense,{fallback:e.jsx(J,{}),children:[n==="endpoint"&&e.jsx(we,{onRestartClick:()=>d(!0)}),n==="providers"&&(i?e.jsx(he,{provider:i,onBack:()=>o(null)}):e.jsx(pe,{searchQuery:c,onSelectProvider:g=>o(g)})),n==="combos"&&(h?e.jsx(be,{combo:h,onBack:()=>m(null),onComboUpdated:g=>m(g),onComboDeleted:()=>m(null)}):e.jsx(fe,{onSelectCombo:g=>m(g)})),n==="usage"&&e.jsx(ge,{}),n==="quota"&&e.jsx(ve,{searchQuery:c}),n==="tokensaver"&&e.jsx(Ne,{}),n==="clitools"&&e.jsx(je,{}),n==="mitm"&&e.jsx(ye,{}),n==="consolelog"&&e.jsx(ke,{}),n==="settings"&&e.jsx(Te,{onRestartClick:()=>d(!0),onUpgradeClick:()=>b(!0)})]})})]}),e.jsx(xe,{isOpen:p,onClose:()=>d(!1)}),e.jsx(me,{isOpen:f,onClose:()=>b(!1),currentVersion:j==null?void 0:j.version,latestVersion:j==null?void 0:j.latestVersion})]})}Z.createRoot(document.getElementById("root")).render(e.jsx(ee.StrictMode,{children:e.jsx(Ee,{})}));export{N as A,E as D,W as P,xe as R,ue as a,Ae as b,ae as c,D as d,G as e,w as f,C as u};
|