@inspectr/app 0.0.3 → 0.0.4

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.
@@ -1 +1 @@
1
- @layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-serif:ui-serif,Georgia,Cambria,"Times New Roman",Times,serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-300:oklch(.808 .114 19.571);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-red-800:oklch(.444 .177 26.899);--color-red-900:oklch(.396 .141 25.723);--color-red-950:oklch(.258 .092 26.042);--color-orange-50:oklch(.98 .016 73.684);--color-orange-100:oklch(.954 .038 75.164);--color-orange-200:oklch(.901 .076 70.697);--color-orange-300:oklch(.837 .128 66.29);--color-orange-400:oklch(.75 .183 55.934);--color-orange-500:oklch(.705 .213 47.604);--color-orange-600:oklch(.646 .222 41.116);--color-orange-700:oklch(.553 .195 38.402);--color-orange-800:oklch(.47 .157 37.304);--color-orange-900:oklch(.408 .123 38.172);--color-orange-950:oklch(.266 .079 36.259);--color-amber-50:oklch(.987 .022 95.277);--color-amber-100:oklch(.962 .059 95.617);--color-amber-200:oklch(.924 .12 95.746);--color-amber-300:oklch(.879 .169 91.605);--color-amber-400:oklch(.828 .189 84.429);--color-amber-500:oklch(.769 .188 70.08);--color-amber-600:oklch(.666 .179 58.318);--color-amber-700:oklch(.555 .163 48.998);--color-amber-800:oklch(.473 .137 46.201);--color-amber-900:oklch(.414 .112 45.904);--color-amber-950:oklch(.279 .077 45.635);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-200:oklch(.945 .129 101.54);--color-yellow-300:oklch(.905 .182 98.111);--color-yellow-400:oklch(.852 .199 91.936);--color-yellow-500:oklch(.795 .184 86.047);--color-yellow-600:oklch(.681 .162 75.834);--color-yellow-700:oklch(.554 .135 66.442);--color-yellow-800:oklch(.476 .114 61.907);--color-yellow-900:oklch(.421 .095 57.708);--color-yellow-950:oklch(.286 .066 53.813);--color-lime-50:oklch(.986 .031 120.757);--color-lime-100:oklch(.967 .067 122.328);--color-lime-200:oklch(.938 .127 124.321);--color-lime-300:oklch(.897 .196 126.665);--color-lime-400:oklch(.841 .238 128.85);--color-lime-500:oklch(.768 .233 130.85);--color-lime-600:oklch(.648 .2 131.684);--color-lime-700:oklch(.532 .157 131.589);--color-lime-800:oklch(.453 .124 130.933);--color-lime-900:oklch(.405 .101 131.063);--color-lime-950:oklch(.274 .072 132.109);--color-green-50:oklch(.982 .018 155.826);--color-green-100:oklch(.962 .044 156.743);--color-green-200:oklch(.925 .084 155.995);--color-green-300:oklch(.871 .15 154.449);--color-green-400:oklch(.792 .209 151.711);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-green-800:oklch(.448 .119 151.328);--color-green-900:oklch(.393 .095 152.535);--color-green-950:oklch(.266 .065 152.934);--color-emerald-50:oklch(.979 .021 166.113);--color-emerald-100:oklch(.95 .052 163.051);--color-emerald-200:oklch(.905 .093 164.15);--color-emerald-300:oklch(.845 .143 164.978);--color-emerald-400:oklch(.765 .177 163.223);--color-emerald-500:oklch(.696 .17 162.48);--color-emerald-600:oklch(.596 .145 163.225);--color-emerald-700:oklch(.508 .118 165.612);--color-emerald-800:oklch(.432 .095 166.913);--color-emerald-900:oklch(.378 .077 168.94);--color-emerald-950:oklch(.262 .051 172.552);--color-teal-50:oklch(.984 .014 180.72);--color-teal-100:oklch(.953 .051 180.801);--color-teal-200:oklch(.91 .096 180.426);--color-teal-300:oklch(.855 .138 181.071);--color-teal-400:oklch(.777 .152 181.912);--color-teal-500:oklch(.704 .14 182.503);--color-teal-600:oklch(.6 .118 184.704);--color-teal-700:oklch(.511 .096 186.391);--color-teal-800:oklch(.437 .078 188.216);--color-teal-900:oklch(.386 .063 188.416);--color-teal-950:oklch(.277 .046 192.524);--color-cyan-50:oklch(.984 .019 200.873);--color-cyan-100:oklch(.956 .045 203.388);--color-cyan-200:oklch(.917 .08 205.041);--color-cyan-300:oklch(.865 .127 207.078);--color-cyan-400:oklch(.789 .154 211.53);--color-cyan-500:oklch(.715 .143 215.221);--color-cyan-600:oklch(.609 .126 221.723);--color-cyan-700:oklch(.52 .105 223.128);--color-cyan-800:oklch(.45 .085 224.283);--color-cyan-900:oklch(.398 .07 227.392);--color-cyan-950:oklch(.302 .056 229.695);--color-sky-50:oklch(.977 .013 236.62);--color-sky-100:oklch(.951 .026 236.824);--color-sky-200:oklch(.901 .058 230.902);--color-sky-300:oklch(.828 .111 230.318);--color-sky-400:oklch(.746 .16 232.661);--color-sky-500:oklch(.685 .169 237.323);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-sky-950:oklch(.293 .066 243.157);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-indigo-50:oklch(.962 .018 272.314);--color-indigo-100:oklch(.93 .034 272.788);--color-indigo-200:oklch(.87 .065 274.039);--color-indigo-300:oklch(.785 .115 274.713);--color-indigo-400:oklch(.673 .182 276.935);--color-indigo-500:oklch(.585 .233 277.117);--color-indigo-600:oklch(.511 .262 276.966);--color-indigo-700:oklch(.457 .24 277.023);--color-indigo-800:oklch(.398 .195 277.366);--color-indigo-900:oklch(.359 .144 278.697);--color-indigo-950:oklch(.257 .09 281.288);--color-violet-50:oklch(.969 .016 293.756);--color-violet-100:oklch(.943 .029 294.588);--color-violet-200:oklch(.894 .057 293.283);--color-violet-300:oklch(.811 .111 293.571);--color-violet-400:oklch(.702 .183 293.541);--color-violet-500:oklch(.606 .25 292.717);--color-violet-600:oklch(.541 .281 293.009);--color-violet-700:oklch(.491 .27 292.581);--color-violet-800:oklch(.432 .232 292.759);--color-violet-900:oklch(.38 .189 293.745);--color-violet-950:oklch(.283 .141 291.089);--color-purple-50:oklch(.977 .014 308.299);--color-purple-100:oklch(.946 .033 307.174);--color-purple-200:oklch(.902 .063 306.703);--color-purple-300:oklch(.827 .119 306.383);--color-purple-400:oklch(.714 .203 305.504);--color-purple-500:oklch(.627 .265 303.9);--color-purple-600:oklch(.558 .288 302.321);--color-purple-700:oklch(.496 .265 301.924);--color-purple-800:oklch(.438 .218 303.724);--color-purple-900:oklch(.381 .176 304.987);--color-purple-950:oklch(.291 .149 302.717);--color-fuchsia-50:oklch(.977 .017 320.058);--color-fuchsia-100:oklch(.952 .037 318.852);--color-fuchsia-200:oklch(.903 .076 319.62);--color-fuchsia-300:oklch(.833 .145 321.434);--color-fuchsia-400:oklch(.74 .238 322.16);--color-fuchsia-500:oklch(.667 .295 322.15);--color-fuchsia-600:oklch(.591 .293 322.896);--color-fuchsia-700:oklch(.518 .253 323.949);--color-fuchsia-800:oklch(.452 .211 324.591);--color-fuchsia-900:oklch(.401 .17 325.612);--color-fuchsia-950:oklch(.293 .136 325.661);--color-pink-50:oklch(.971 .014 343.198);--color-pink-100:oklch(.948 .028 342.258);--color-pink-200:oklch(.899 .061 343.231);--color-pink-300:oklch(.823 .12 346.018);--color-pink-400:oklch(.718 .202 349.761);--color-pink-500:oklch(.656 .241 354.308);--color-pink-600:oklch(.592 .249 .584);--color-pink-700:oklch(.525 .223 3.958);--color-pink-800:oklch(.459 .187 3.815);--color-pink-900:oklch(.408 .153 2.432);--color-pink-950:oklch(.284 .109 3.907);--color-rose-50:oklch(.969 .015 12.422);--color-rose-100:oklch(.941 .03 12.58);--color-rose-200:oklch(.892 .058 10.001);--color-rose-300:oklch(.81 .117 11.638);--color-rose-400:oklch(.712 .194 13.428);--color-rose-500:oklch(.645 .246 16.439);--color-rose-600:oklch(.586 .253 17.585);--color-rose-700:oklch(.514 .222 16.935);--color-rose-800:oklch(.455 .188 13.697);--color-rose-900:oklch(.41 .159 10.272);--color-rose-950:oklch(.271 .105 12.094);--color-slate-50:oklch(.984 .003 247.858);--color-slate-100:oklch(.968 .007 247.896);--color-slate-200:oklch(.929 .013 255.508);--color-slate-300:oklch(.869 .022 252.894);--color-slate-400:oklch(.704 .04 256.788);--color-slate-500:oklch(.554 .046 257.417);--color-slate-600:oklch(.446 .043 257.281);--color-slate-700:oklch(.372 .044 257.287);--color-slate-800:oklch(.279 .041 260.031);--color-slate-900:oklch(.208 .042 265.755);--color-slate-950:oklch(.129 .042 264.695);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-gray-950:oklch(.13 .028 261.692);--color-zinc-50:oklch(.985 0 0);--color-zinc-100:oklch(.967 .001 286.375);--color-zinc-200:oklch(.92 .004 286.32);--color-zinc-300:oklch(.871 .006 286.286);--color-zinc-400:oklch(.705 .015 286.067);--color-zinc-500:oklch(.552 .016 285.938);--color-zinc-600:oklch(.442 .017 285.786);--color-zinc-700:oklch(.37 .013 285.805);--color-zinc-800:oklch(.274 .006 286.033);--color-zinc-900:oklch(.21 .006 285.885);--color-zinc-950:oklch(.141 .005 285.823);--color-neutral-50:oklch(.985 0 0);--color-neutral-100:oklch(.97 0 0);--color-neutral-200:oklch(.922 0 0);--color-neutral-300:oklch(.87 0 0);--color-neutral-400:oklch(.708 0 0);--color-neutral-500:oklch(.556 0 0);--color-neutral-600:oklch(.439 0 0);--color-neutral-700:oklch(.371 0 0);--color-neutral-800:oklch(.269 0 0);--color-neutral-900:oklch(.205 0 0);--color-neutral-950:oklch(.145 0 0);--color-stone-50:oklch(.985 .001 106.423);--color-stone-100:oklch(.97 .001 106.424);--color-stone-200:oklch(.923 .003 48.717);--color-stone-300:oklch(.869 .005 56.366);--color-stone-400:oklch(.709 .01 56.259);--color-stone-500:oklch(.553 .013 58.071);--color-stone-600:oklch(.444 .011 73.639);--color-stone-700:oklch(.374 .01 67.558);--color-stone-800:oklch(.268 .007 34.298);--color-stone-900:oklch(.216 .006 56.043);--color-stone-950:oklch(.147 .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--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;--container-6xl:72rem;--container-7xl:80rem;--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 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--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;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--inset-shadow-2xs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-2xl:0 25px 25px #00000026;--ease-in:cubic-bezier(.4,0,1,1);--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;--animate-bounce:bounce 1s infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings)}}@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%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,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}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-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{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;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}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-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{.static{position:static}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.border{border-style:var(--tw-border-style);border-width:1px}.lowercase{text-transform:lowercase}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,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;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}/*! tailwindcss v4.0.6 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:InterVariable,sans-serif;--font-serif:ui-serif,Georgia,Cambria,"Times New Roman",Times,serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-300:oklch(.808 .114 19.571);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-red-800:oklch(.444 .177 26.899);--color-red-900:oklch(.396 .141 25.723);--color-red-950:oklch(.258 .092 26.042);--color-orange-50:oklch(.98 .016 73.684);--color-orange-100:oklch(.954 .038 75.164);--color-orange-200:oklch(.901 .076 70.697);--color-orange-300:oklch(.837 .128 66.29);--color-orange-400:oklch(.75 .183 55.934);--color-orange-500:oklch(.705 .213 47.604);--color-orange-600:oklch(.646 .222 41.116);--color-orange-700:oklch(.553 .195 38.402);--color-orange-800:oklch(.47 .157 37.304);--color-orange-900:oklch(.408 .123 38.172);--color-orange-950:oklch(.266 .079 36.259);--color-amber-50:oklch(.987 .022 95.277);--color-amber-100:oklch(.962 .059 95.617);--color-amber-200:oklch(.924 .12 95.746);--color-amber-300:oklch(.879 .169 91.605);--color-amber-400:oklch(.828 .189 84.429);--color-amber-500:oklch(.769 .188 70.08);--color-amber-600:oklch(.666 .179 58.318);--color-amber-700:oklch(.555 .163 48.998);--color-amber-800:oklch(.473 .137 46.201);--color-amber-900:oklch(.414 .112 45.904);--color-amber-950:oklch(.279 .077 45.635);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-200:oklch(.945 .129 101.54);--color-yellow-300:oklch(.905 .182 98.111);--color-yellow-400:oklch(.852 .199 91.936);--color-yellow-500:oklch(.795 .184 86.047);--color-yellow-600:oklch(.681 .162 75.834);--color-yellow-700:oklch(.554 .135 66.442);--color-yellow-800:oklch(.476 .114 61.907);--color-yellow-900:oklch(.421 .095 57.708);--color-yellow-950:oklch(.286 .066 53.813);--color-lime-50:oklch(.986 .031 120.757);--color-lime-100:oklch(.967 .067 122.328);--color-lime-200:oklch(.938 .127 124.321);--color-lime-300:oklch(.897 .196 126.665);--color-lime-400:oklch(.841 .238 128.85);--color-lime-500:oklch(.768 .233 130.85);--color-lime-600:oklch(.648 .2 131.684);--color-lime-700:oklch(.532 .157 131.589);--color-lime-800:oklch(.453 .124 130.933);--color-lime-900:oklch(.405 .101 131.063);--color-lime-950:oklch(.274 .072 132.109);--color-green-50:oklch(.982 .018 155.826);--color-green-100:oklch(.962 .044 156.743);--color-green-200:oklch(.925 .084 155.995);--color-green-300:oklch(.871 .15 154.449);--color-green-400:oklch(.792 .209 151.711);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-green-800:oklch(.448 .119 151.328);--color-green-900:oklch(.393 .095 152.535);--color-green-950:oklch(.266 .065 152.934);--color-emerald-50:oklch(.979 .021 166.113);--color-emerald-100:oklch(.95 .052 163.051);--color-emerald-200:oklch(.905 .093 164.15);--color-emerald-300:oklch(.845 .143 164.978);--color-emerald-400:oklch(.765 .177 163.223);--color-emerald-500:oklch(.696 .17 162.48);--color-emerald-600:oklch(.596 .145 163.225);--color-emerald-700:oklch(.508 .118 165.612);--color-emerald-800:oklch(.432 .095 166.913);--color-emerald-900:oklch(.378 .077 168.94);--color-emerald-950:oklch(.262 .051 172.552);--color-teal-50:oklch(.984 .014 180.72);--color-teal-100:oklch(.953 .051 180.801);--color-teal-200:oklch(.91 .096 180.426);--color-teal-300:oklch(.855 .138 181.071);--color-teal-400:oklch(.777 .152 181.912);--color-teal-500:oklch(.704 .14 182.503);--color-teal-600:oklch(.6 .118 184.704);--color-teal-700:oklch(.511 .096 186.391);--color-teal-800:oklch(.437 .078 188.216);--color-teal-900:oklch(.386 .063 188.416);--color-teal-950:oklch(.277 .046 192.524);--color-cyan-50:oklch(.984 .019 200.873);--color-cyan-100:oklch(.956 .045 203.388);--color-cyan-200:oklch(.917 .08 205.041);--color-cyan-300:oklch(.865 .127 207.078);--color-cyan-400:oklch(.789 .154 211.53);--color-cyan-500:oklch(.715 .143 215.221);--color-cyan-600:oklch(.609 .126 221.723);--color-cyan-700:oklch(.52 .105 223.128);--color-cyan-800:oklch(.45 .085 224.283);--color-cyan-900:oklch(.398 .07 227.392);--color-cyan-950:oklch(.302 .056 229.695);--color-sky-50:oklch(.977 .013 236.62);--color-sky-100:oklch(.951 .026 236.824);--color-sky-200:oklch(.901 .058 230.902);--color-sky-300:oklch(.828 .111 230.318);--color-sky-400:oklch(.746 .16 232.661);--color-sky-500:oklch(.685 .169 237.323);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-sky-950:oklch(.293 .066 243.157);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-indigo-50:oklch(.962 .018 272.314);--color-indigo-100:oklch(.93 .034 272.788);--color-indigo-200:oklch(.87 .065 274.039);--color-indigo-300:oklch(.785 .115 274.713);--color-indigo-400:oklch(.673 .182 276.935);--color-indigo-500:oklch(.585 .233 277.117);--color-indigo-600:oklch(.511 .262 276.966);--color-indigo-700:oklch(.457 .24 277.023);--color-indigo-800:oklch(.398 .195 277.366);--color-indigo-900:oklch(.359 .144 278.697);--color-indigo-950:oklch(.257 .09 281.288);--color-violet-50:oklch(.969 .016 293.756);--color-violet-100:oklch(.943 .029 294.588);--color-violet-200:oklch(.894 .057 293.283);--color-violet-300:oklch(.811 .111 293.571);--color-violet-400:oklch(.702 .183 293.541);--color-violet-500:oklch(.606 .25 292.717);--color-violet-600:oklch(.541 .281 293.009);--color-violet-700:oklch(.491 .27 292.581);--color-violet-800:oklch(.432 .232 292.759);--color-violet-900:oklch(.38 .189 293.745);--color-violet-950:oklch(.283 .141 291.089);--color-purple-50:oklch(.977 .014 308.299);--color-purple-100:oklch(.946 .033 307.174);--color-purple-200:oklch(.902 .063 306.703);--color-purple-300:oklch(.827 .119 306.383);--color-purple-400:oklch(.714 .203 305.504);--color-purple-500:oklch(.627 .265 303.9);--color-purple-600:oklch(.558 .288 302.321);--color-purple-700:oklch(.496 .265 301.924);--color-purple-800:oklch(.438 .218 303.724);--color-purple-900:oklch(.381 .176 304.987);--color-purple-950:oklch(.291 .149 302.717);--color-fuchsia-50:oklch(.977 .017 320.058);--color-fuchsia-100:oklch(.952 .037 318.852);--color-fuchsia-200:oklch(.903 .076 319.62);--color-fuchsia-300:oklch(.833 .145 321.434);--color-fuchsia-400:oklch(.74 .238 322.16);--color-fuchsia-500:oklch(.667 .295 322.15);--color-fuchsia-600:oklch(.591 .293 322.896);--color-fuchsia-700:oklch(.518 .253 323.949);--color-fuchsia-800:oklch(.452 .211 324.591);--color-fuchsia-900:oklch(.401 .17 325.612);--color-fuchsia-950:oklch(.293 .136 325.661);--color-pink-50:oklch(.971 .014 343.198);--color-pink-100:oklch(.948 .028 342.258);--color-pink-200:oklch(.899 .061 343.231);--color-pink-300:oklch(.823 .12 346.018);--color-pink-400:oklch(.718 .202 349.761);--color-pink-500:oklch(.656 .241 354.308);--color-pink-600:oklch(.592 .249 .584);--color-pink-700:oklch(.525 .223 3.958);--color-pink-800:oklch(.459 .187 3.815);--color-pink-900:oklch(.408 .153 2.432);--color-pink-950:oklch(.284 .109 3.907);--color-rose-50:oklch(.969 .015 12.422);--color-rose-100:oklch(.941 .03 12.58);--color-rose-200:oklch(.892 .058 10.001);--color-rose-300:oklch(.81 .117 11.638);--color-rose-400:oklch(.712 .194 13.428);--color-rose-500:oklch(.645 .246 16.439);--color-rose-600:oklch(.586 .253 17.585);--color-rose-700:oklch(.514 .222 16.935);--color-rose-800:oklch(.455 .188 13.697);--color-rose-900:oklch(.41 .159 10.272);--color-rose-950:oklch(.271 .105 12.094);--color-slate-50:oklch(.984 .003 247.858);--color-slate-100:oklch(.968 .007 247.896);--color-slate-200:oklch(.929 .013 255.508);--color-slate-300:oklch(.869 .022 252.894);--color-slate-400:oklch(.704 .04 256.788);--color-slate-500:oklch(.554 .046 257.417);--color-slate-600:oklch(.446 .043 257.281);--color-slate-700:oklch(.372 .044 257.287);--color-slate-800:oklch(.279 .041 260.031);--color-slate-900:oklch(.208 .042 265.755);--color-slate-950:oklch(.129 .042 264.695);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-gray-950:oklch(.13 .028 261.692);--color-zinc-50:oklch(.985 0 0);--color-zinc-100:oklch(.967 .001 286.375);--color-zinc-200:oklch(.92 .004 286.32);--color-zinc-300:oklch(.871 .006 286.286);--color-zinc-400:oklch(.705 .015 286.067);--color-zinc-500:oklch(.552 .016 285.938);--color-zinc-600:oklch(.442 .017 285.786);--color-zinc-700:oklch(.37 .013 285.805);--color-zinc-800:oklch(.274 .006 286.033);--color-zinc-900:oklch(.21 .006 285.885);--color-zinc-950:oklch(.141 .005 285.823);--color-neutral-50:oklch(.985 0 0);--color-neutral-100:oklch(.97 0 0);--color-neutral-200:oklch(.922 0 0);--color-neutral-300:oklch(.87 0 0);--color-neutral-400:oklch(.708 0 0);--color-neutral-500:oklch(.556 0 0);--color-neutral-600:oklch(.439 0 0);--color-neutral-700:oklch(.371 0 0);--color-neutral-800:oklch(.269 0 0);--color-neutral-900:oklch(.205 0 0);--color-neutral-950:oklch(.145 0 0);--color-stone-50:oklch(.985 .001 106.423);--color-stone-100:oklch(.97 .001 106.424);--color-stone-200:oklch(.923 .003 48.717);--color-stone-300:oklch(.869 .005 56.366);--color-stone-400:oklch(.709 .01 56.259);--color-stone-500:oklch(.553 .013 58.071);--color-stone-600:oklch(.444 .011 73.639);--color-stone-700:oklch(.374 .01 67.558);--color-stone-800:oklch(.268 .007 34.298);--color-stone-900:oklch(.216 .006 56.043);--color-stone-950:oklch(.147 .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--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;--container-6xl:72rem;--container-7xl:80rem;--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 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--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;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--inset-shadow-2xs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-2xl:0 25px 25px #00000026;--ease-in:cubic-bezier(.4,0,1,1);--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;--animate-bounce:bounce 1s infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings)}}@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,ui-sans-serif,system-ui,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}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-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{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;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}:-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{.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-10{z-index:10}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-4{margin-right:calc(var(--spacing)*4)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-100{height:calc(var(--spacing)*100)}.h-full{height:100%}.h-screen{height:100vh}.max-h-0{max-height:calc(var(--spacing)*0)}.max-h-40{max-height:calc(var(--spacing)*40)}.w-1\/2{width:50%}.w-1\/3{width:33.3333%}.w-1\/4{width:25%}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-2\/3{width:66.6667%}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-20{width:calc(var(--spacing)*20)}.w-100{width:calc(var(--spacing)*100)}.w-16{width:calc(var(--spacing)*16)}.w-full{width:100%}.flex-1{flex:1}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*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-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-x-px>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(-1px*var(--tw-space-x-reverse));margin-inline-end:calc(-1px*calc(1 - var(--tw-space-x-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)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:var(--radius-md)}.rounded-s-lg{border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.rounded-e-lg{border-start-end-radius:var(--radius-lg);border-end-end-radius:var(--radius-lg)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-e-0{border-inline-end-style:var(--tw-border-style);border-inline-end-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-700{border-color:var(--color-blue-700)}.border-gray-300{border-color:var(--color-gray-300)}.border-slate-200{border-color:var(--color-slate-200)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-200{background-color:var(--color-blue-200)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-green-200{background-color:var(--color-green-200)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-green-800{background-color:var(--color-green-800)}.bg-orange-600{background-color:var(--color-orange-600)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-800{background-color:var(--color-red-800)}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing)*0)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.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))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.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-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-800{color:var(--color-green-800)}.text-orange-200{color:var(--color-orange-200)}.text-red-100{color:var(--color-red-100)}.text-red-500{color:var(--color-red-500)}.text-slate-500{color:var(--color-slate-500)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.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)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition-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-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-300{--tw-duration:.3s;transition-duration:.3s}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:text-blue-700:hover{color:var(--color-blue-700)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:text-red-700:hover{color:var(--color-red-700)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:opacity-50:disabled{opacity:.5}@media (width>=40rem){.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.rtl\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:180deg}@media (prefers-color-scheme:dark){.dark\:border-gray-700{border-color:var(--color-gray-700)}.dark\:bg-gray-700{background-color:var(--color-gray-700)}.dark\:bg-gray-800{background-color:var(--color-gray-800)}.dark\:text-gray-400{color:var(--color-gray-400)}.dark\:text-white{color:var(--color-white)}@media (hover:hover){.dark\:hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.dark\:hover\:text-white:hover{color:var(--color-white)}}}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@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-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@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-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@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-duration{syntax:"*";inherits:false}html,body{margin:0;width:100%;height:100%}
1
+ @layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-serif:ui-serif,Georgia,Cambria,"Times New Roman",Times,serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-300:oklch(.808 .114 19.571);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-red-800:oklch(.444 .177 26.899);--color-red-900:oklch(.396 .141 25.723);--color-red-950:oklch(.258 .092 26.042);--color-orange-50:oklch(.98 .016 73.684);--color-orange-100:oklch(.954 .038 75.164);--color-orange-200:oklch(.901 .076 70.697);--color-orange-300:oklch(.837 .128 66.29);--color-orange-400:oklch(.75 .183 55.934);--color-orange-500:oklch(.705 .213 47.604);--color-orange-600:oklch(.646 .222 41.116);--color-orange-700:oklch(.553 .195 38.402);--color-orange-800:oklch(.47 .157 37.304);--color-orange-900:oklch(.408 .123 38.172);--color-orange-950:oklch(.266 .079 36.259);--color-amber-50:oklch(.987 .022 95.277);--color-amber-100:oklch(.962 .059 95.617);--color-amber-200:oklch(.924 .12 95.746);--color-amber-300:oklch(.879 .169 91.605);--color-amber-400:oklch(.828 .189 84.429);--color-amber-500:oklch(.769 .188 70.08);--color-amber-600:oklch(.666 .179 58.318);--color-amber-700:oklch(.555 .163 48.998);--color-amber-800:oklch(.473 .137 46.201);--color-amber-900:oklch(.414 .112 45.904);--color-amber-950:oklch(.279 .077 45.635);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-200:oklch(.945 .129 101.54);--color-yellow-300:oklch(.905 .182 98.111);--color-yellow-400:oklch(.852 .199 91.936);--color-yellow-500:oklch(.795 .184 86.047);--color-yellow-600:oklch(.681 .162 75.834);--color-yellow-700:oklch(.554 .135 66.442);--color-yellow-800:oklch(.476 .114 61.907);--color-yellow-900:oklch(.421 .095 57.708);--color-yellow-950:oklch(.286 .066 53.813);--color-lime-50:oklch(.986 .031 120.757);--color-lime-100:oklch(.967 .067 122.328);--color-lime-200:oklch(.938 .127 124.321);--color-lime-300:oklch(.897 .196 126.665);--color-lime-400:oklch(.841 .238 128.85);--color-lime-500:oklch(.768 .233 130.85);--color-lime-600:oklch(.648 .2 131.684);--color-lime-700:oklch(.532 .157 131.589);--color-lime-800:oklch(.453 .124 130.933);--color-lime-900:oklch(.405 .101 131.063);--color-lime-950:oklch(.274 .072 132.109);--color-green-50:oklch(.982 .018 155.826);--color-green-100:oklch(.962 .044 156.743);--color-green-200:oklch(.925 .084 155.995);--color-green-300:oklch(.871 .15 154.449);--color-green-400:oklch(.792 .209 151.711);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-green-800:oklch(.448 .119 151.328);--color-green-900:oklch(.393 .095 152.535);--color-green-950:oklch(.266 .065 152.934);--color-emerald-50:oklch(.979 .021 166.113);--color-emerald-100:oklch(.95 .052 163.051);--color-emerald-200:oklch(.905 .093 164.15);--color-emerald-300:oklch(.845 .143 164.978);--color-emerald-400:oklch(.765 .177 163.223);--color-emerald-500:oklch(.696 .17 162.48);--color-emerald-600:oklch(.596 .145 163.225);--color-emerald-700:oklch(.508 .118 165.612);--color-emerald-800:oklch(.432 .095 166.913);--color-emerald-900:oklch(.378 .077 168.94);--color-emerald-950:oklch(.262 .051 172.552);--color-teal-50:oklch(.984 .014 180.72);--color-teal-100:oklch(.953 .051 180.801);--color-teal-200:oklch(.91 .096 180.426);--color-teal-300:oklch(.855 .138 181.071);--color-teal-400:oklch(.777 .152 181.912);--color-teal-500:oklch(.704 .14 182.503);--color-teal-600:oklch(.6 .118 184.704);--color-teal-700:oklch(.511 .096 186.391);--color-teal-800:oklch(.437 .078 188.216);--color-teal-900:oklch(.386 .063 188.416);--color-teal-950:oklch(.277 .046 192.524);--color-cyan-50:oklch(.984 .019 200.873);--color-cyan-100:oklch(.956 .045 203.388);--color-cyan-200:oklch(.917 .08 205.041);--color-cyan-300:oklch(.865 .127 207.078);--color-cyan-400:oklch(.789 .154 211.53);--color-cyan-500:oklch(.715 .143 215.221);--color-cyan-600:oklch(.609 .126 221.723);--color-cyan-700:oklch(.52 .105 223.128);--color-cyan-800:oklch(.45 .085 224.283);--color-cyan-900:oklch(.398 .07 227.392);--color-cyan-950:oklch(.302 .056 229.695);--color-sky-50:oklch(.977 .013 236.62);--color-sky-100:oklch(.951 .026 236.824);--color-sky-200:oklch(.901 .058 230.902);--color-sky-300:oklch(.828 .111 230.318);--color-sky-400:oklch(.746 .16 232.661);--color-sky-500:oklch(.685 .169 237.323);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-sky-950:oklch(.293 .066 243.157);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-indigo-50:oklch(.962 .018 272.314);--color-indigo-100:oklch(.93 .034 272.788);--color-indigo-200:oklch(.87 .065 274.039);--color-indigo-300:oklch(.785 .115 274.713);--color-indigo-400:oklch(.673 .182 276.935);--color-indigo-500:oklch(.585 .233 277.117);--color-indigo-600:oklch(.511 .262 276.966);--color-indigo-700:oklch(.457 .24 277.023);--color-indigo-800:oklch(.398 .195 277.366);--color-indigo-900:oklch(.359 .144 278.697);--color-indigo-950:oklch(.257 .09 281.288);--color-violet-50:oklch(.969 .016 293.756);--color-violet-100:oklch(.943 .029 294.588);--color-violet-200:oklch(.894 .057 293.283);--color-violet-300:oklch(.811 .111 293.571);--color-violet-400:oklch(.702 .183 293.541);--color-violet-500:oklch(.606 .25 292.717);--color-violet-600:oklch(.541 .281 293.009);--color-violet-700:oklch(.491 .27 292.581);--color-violet-800:oklch(.432 .232 292.759);--color-violet-900:oklch(.38 .189 293.745);--color-violet-950:oklch(.283 .141 291.089);--color-purple-50:oklch(.977 .014 308.299);--color-purple-100:oklch(.946 .033 307.174);--color-purple-200:oklch(.902 .063 306.703);--color-purple-300:oklch(.827 .119 306.383);--color-purple-400:oklch(.714 .203 305.504);--color-purple-500:oklch(.627 .265 303.9);--color-purple-600:oklch(.558 .288 302.321);--color-purple-700:oklch(.496 .265 301.924);--color-purple-800:oklch(.438 .218 303.724);--color-purple-900:oklch(.381 .176 304.987);--color-purple-950:oklch(.291 .149 302.717);--color-fuchsia-50:oklch(.977 .017 320.058);--color-fuchsia-100:oklch(.952 .037 318.852);--color-fuchsia-200:oklch(.903 .076 319.62);--color-fuchsia-300:oklch(.833 .145 321.434);--color-fuchsia-400:oklch(.74 .238 322.16);--color-fuchsia-500:oklch(.667 .295 322.15);--color-fuchsia-600:oklch(.591 .293 322.896);--color-fuchsia-700:oklch(.518 .253 323.949);--color-fuchsia-800:oklch(.452 .211 324.591);--color-fuchsia-900:oklch(.401 .17 325.612);--color-fuchsia-950:oklch(.293 .136 325.661);--color-pink-50:oklch(.971 .014 343.198);--color-pink-100:oklch(.948 .028 342.258);--color-pink-200:oklch(.899 .061 343.231);--color-pink-300:oklch(.823 .12 346.018);--color-pink-400:oklch(.718 .202 349.761);--color-pink-500:oklch(.656 .241 354.308);--color-pink-600:oklch(.592 .249 .584);--color-pink-700:oklch(.525 .223 3.958);--color-pink-800:oklch(.459 .187 3.815);--color-pink-900:oklch(.408 .153 2.432);--color-pink-950:oklch(.284 .109 3.907);--color-rose-50:oklch(.969 .015 12.422);--color-rose-100:oklch(.941 .03 12.58);--color-rose-200:oklch(.892 .058 10.001);--color-rose-300:oklch(.81 .117 11.638);--color-rose-400:oklch(.712 .194 13.428);--color-rose-500:oklch(.645 .246 16.439);--color-rose-600:oklch(.586 .253 17.585);--color-rose-700:oklch(.514 .222 16.935);--color-rose-800:oklch(.455 .188 13.697);--color-rose-900:oklch(.41 .159 10.272);--color-rose-950:oklch(.271 .105 12.094);--color-slate-50:oklch(.984 .003 247.858);--color-slate-100:oklch(.968 .007 247.896);--color-slate-200:oklch(.929 .013 255.508);--color-slate-300:oklch(.869 .022 252.894);--color-slate-400:oklch(.704 .04 256.788);--color-slate-500:oklch(.554 .046 257.417);--color-slate-600:oklch(.446 .043 257.281);--color-slate-700:oklch(.372 .044 257.287);--color-slate-800:oklch(.279 .041 260.031);--color-slate-900:oklch(.208 .042 265.755);--color-slate-950:oklch(.129 .042 264.695);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-gray-950:oklch(.13 .028 261.692);--color-zinc-50:oklch(.985 0 0);--color-zinc-100:oklch(.967 .001 286.375);--color-zinc-200:oklch(.92 .004 286.32);--color-zinc-300:oklch(.871 .006 286.286);--color-zinc-400:oklch(.705 .015 286.067);--color-zinc-500:oklch(.552 .016 285.938);--color-zinc-600:oklch(.442 .017 285.786);--color-zinc-700:oklch(.37 .013 285.805);--color-zinc-800:oklch(.274 .006 286.033);--color-zinc-900:oklch(.21 .006 285.885);--color-zinc-950:oklch(.141 .005 285.823);--color-neutral-50:oklch(.985 0 0);--color-neutral-100:oklch(.97 0 0);--color-neutral-200:oklch(.922 0 0);--color-neutral-300:oklch(.87 0 0);--color-neutral-400:oklch(.708 0 0);--color-neutral-500:oklch(.556 0 0);--color-neutral-600:oklch(.439 0 0);--color-neutral-700:oklch(.371 0 0);--color-neutral-800:oklch(.269 0 0);--color-neutral-900:oklch(.205 0 0);--color-neutral-950:oklch(.145 0 0);--color-stone-50:oklch(.985 .001 106.423);--color-stone-100:oklch(.97 .001 106.424);--color-stone-200:oklch(.923 .003 48.717);--color-stone-300:oklch(.869 .005 56.366);--color-stone-400:oklch(.709 .01 56.259);--color-stone-500:oklch(.553 .013 58.071);--color-stone-600:oklch(.444 .011 73.639);--color-stone-700:oklch(.374 .01 67.558);--color-stone-800:oklch(.268 .007 34.298);--color-stone-900:oklch(.216 .006 56.043);--color-stone-950:oklch(.147 .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--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;--container-6xl:72rem;--container-7xl:80rem;--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 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--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;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--inset-shadow-2xs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-2xl:0 25px 25px #00000026;--ease-in:cubic-bezier(.4,0,1,1);--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;--animate-bounce:bounce 1s infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings)}}@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%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,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}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-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{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;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}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-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{.static{position:static}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.border{border-style:var(--tw-border-style);border-width:1px}.lowercase{text-transform:lowercase}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,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;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}/*! tailwindcss v4.0.6 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:InterVariable,sans-serif;--font-serif:ui-serif,Georgia,Cambria,"Times New Roman",Times,serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-300:oklch(.808 .114 19.571);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-red-800:oklch(.444 .177 26.899);--color-red-900:oklch(.396 .141 25.723);--color-red-950:oklch(.258 .092 26.042);--color-orange-50:oklch(.98 .016 73.684);--color-orange-100:oklch(.954 .038 75.164);--color-orange-200:oklch(.901 .076 70.697);--color-orange-300:oklch(.837 .128 66.29);--color-orange-400:oklch(.75 .183 55.934);--color-orange-500:oklch(.705 .213 47.604);--color-orange-600:oklch(.646 .222 41.116);--color-orange-700:oklch(.553 .195 38.402);--color-orange-800:oklch(.47 .157 37.304);--color-orange-900:oklch(.408 .123 38.172);--color-orange-950:oklch(.266 .079 36.259);--color-amber-50:oklch(.987 .022 95.277);--color-amber-100:oklch(.962 .059 95.617);--color-amber-200:oklch(.924 .12 95.746);--color-amber-300:oklch(.879 .169 91.605);--color-amber-400:oklch(.828 .189 84.429);--color-amber-500:oklch(.769 .188 70.08);--color-amber-600:oklch(.666 .179 58.318);--color-amber-700:oklch(.555 .163 48.998);--color-amber-800:oklch(.473 .137 46.201);--color-amber-900:oklch(.414 .112 45.904);--color-amber-950:oklch(.279 .077 45.635);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-200:oklch(.945 .129 101.54);--color-yellow-300:oklch(.905 .182 98.111);--color-yellow-400:oklch(.852 .199 91.936);--color-yellow-500:oklch(.795 .184 86.047);--color-yellow-600:oklch(.681 .162 75.834);--color-yellow-700:oklch(.554 .135 66.442);--color-yellow-800:oklch(.476 .114 61.907);--color-yellow-900:oklch(.421 .095 57.708);--color-yellow-950:oklch(.286 .066 53.813);--color-lime-50:oklch(.986 .031 120.757);--color-lime-100:oklch(.967 .067 122.328);--color-lime-200:oklch(.938 .127 124.321);--color-lime-300:oklch(.897 .196 126.665);--color-lime-400:oklch(.841 .238 128.85);--color-lime-500:oklch(.768 .233 130.85);--color-lime-600:oklch(.648 .2 131.684);--color-lime-700:oklch(.532 .157 131.589);--color-lime-800:oklch(.453 .124 130.933);--color-lime-900:oklch(.405 .101 131.063);--color-lime-950:oklch(.274 .072 132.109);--color-green-50:oklch(.982 .018 155.826);--color-green-100:oklch(.962 .044 156.743);--color-green-200:oklch(.925 .084 155.995);--color-green-300:oklch(.871 .15 154.449);--color-green-400:oklch(.792 .209 151.711);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-green-800:oklch(.448 .119 151.328);--color-green-900:oklch(.393 .095 152.535);--color-green-950:oklch(.266 .065 152.934);--color-emerald-50:oklch(.979 .021 166.113);--color-emerald-100:oklch(.95 .052 163.051);--color-emerald-200:oklch(.905 .093 164.15);--color-emerald-300:oklch(.845 .143 164.978);--color-emerald-400:oklch(.765 .177 163.223);--color-emerald-500:oklch(.696 .17 162.48);--color-emerald-600:oklch(.596 .145 163.225);--color-emerald-700:oklch(.508 .118 165.612);--color-emerald-800:oklch(.432 .095 166.913);--color-emerald-900:oklch(.378 .077 168.94);--color-emerald-950:oklch(.262 .051 172.552);--color-teal-50:oklch(.984 .014 180.72);--color-teal-100:oklch(.953 .051 180.801);--color-teal-200:oklch(.91 .096 180.426);--color-teal-300:oklch(.855 .138 181.071);--color-teal-400:oklch(.777 .152 181.912);--color-teal-500:oklch(.704 .14 182.503);--color-teal-600:oklch(.6 .118 184.704);--color-teal-700:oklch(.511 .096 186.391);--color-teal-800:oklch(.437 .078 188.216);--color-teal-900:oklch(.386 .063 188.416);--color-teal-950:oklch(.277 .046 192.524);--color-cyan-50:oklch(.984 .019 200.873);--color-cyan-100:oklch(.956 .045 203.388);--color-cyan-200:oklch(.917 .08 205.041);--color-cyan-300:oklch(.865 .127 207.078);--color-cyan-400:oklch(.789 .154 211.53);--color-cyan-500:oklch(.715 .143 215.221);--color-cyan-600:oklch(.609 .126 221.723);--color-cyan-700:oklch(.52 .105 223.128);--color-cyan-800:oklch(.45 .085 224.283);--color-cyan-900:oklch(.398 .07 227.392);--color-cyan-950:oklch(.302 .056 229.695);--color-sky-50:oklch(.977 .013 236.62);--color-sky-100:oklch(.951 .026 236.824);--color-sky-200:oklch(.901 .058 230.902);--color-sky-300:oklch(.828 .111 230.318);--color-sky-400:oklch(.746 .16 232.661);--color-sky-500:oklch(.685 .169 237.323);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-sky-950:oklch(.293 .066 243.157);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-indigo-50:oklch(.962 .018 272.314);--color-indigo-100:oklch(.93 .034 272.788);--color-indigo-200:oklch(.87 .065 274.039);--color-indigo-300:oklch(.785 .115 274.713);--color-indigo-400:oklch(.673 .182 276.935);--color-indigo-500:oklch(.585 .233 277.117);--color-indigo-600:oklch(.511 .262 276.966);--color-indigo-700:oklch(.457 .24 277.023);--color-indigo-800:oklch(.398 .195 277.366);--color-indigo-900:oklch(.359 .144 278.697);--color-indigo-950:oklch(.257 .09 281.288);--color-violet-50:oklch(.969 .016 293.756);--color-violet-100:oklch(.943 .029 294.588);--color-violet-200:oklch(.894 .057 293.283);--color-violet-300:oklch(.811 .111 293.571);--color-violet-400:oklch(.702 .183 293.541);--color-violet-500:oklch(.606 .25 292.717);--color-violet-600:oklch(.541 .281 293.009);--color-violet-700:oklch(.491 .27 292.581);--color-violet-800:oklch(.432 .232 292.759);--color-violet-900:oklch(.38 .189 293.745);--color-violet-950:oklch(.283 .141 291.089);--color-purple-50:oklch(.977 .014 308.299);--color-purple-100:oklch(.946 .033 307.174);--color-purple-200:oklch(.902 .063 306.703);--color-purple-300:oklch(.827 .119 306.383);--color-purple-400:oklch(.714 .203 305.504);--color-purple-500:oklch(.627 .265 303.9);--color-purple-600:oklch(.558 .288 302.321);--color-purple-700:oklch(.496 .265 301.924);--color-purple-800:oklch(.438 .218 303.724);--color-purple-900:oklch(.381 .176 304.987);--color-purple-950:oklch(.291 .149 302.717);--color-fuchsia-50:oklch(.977 .017 320.058);--color-fuchsia-100:oklch(.952 .037 318.852);--color-fuchsia-200:oklch(.903 .076 319.62);--color-fuchsia-300:oklch(.833 .145 321.434);--color-fuchsia-400:oklch(.74 .238 322.16);--color-fuchsia-500:oklch(.667 .295 322.15);--color-fuchsia-600:oklch(.591 .293 322.896);--color-fuchsia-700:oklch(.518 .253 323.949);--color-fuchsia-800:oklch(.452 .211 324.591);--color-fuchsia-900:oklch(.401 .17 325.612);--color-fuchsia-950:oklch(.293 .136 325.661);--color-pink-50:oklch(.971 .014 343.198);--color-pink-100:oklch(.948 .028 342.258);--color-pink-200:oklch(.899 .061 343.231);--color-pink-300:oklch(.823 .12 346.018);--color-pink-400:oklch(.718 .202 349.761);--color-pink-500:oklch(.656 .241 354.308);--color-pink-600:oklch(.592 .249 .584);--color-pink-700:oklch(.525 .223 3.958);--color-pink-800:oklch(.459 .187 3.815);--color-pink-900:oklch(.408 .153 2.432);--color-pink-950:oklch(.284 .109 3.907);--color-rose-50:oklch(.969 .015 12.422);--color-rose-100:oklch(.941 .03 12.58);--color-rose-200:oklch(.892 .058 10.001);--color-rose-300:oklch(.81 .117 11.638);--color-rose-400:oklch(.712 .194 13.428);--color-rose-500:oklch(.645 .246 16.439);--color-rose-600:oklch(.586 .253 17.585);--color-rose-700:oklch(.514 .222 16.935);--color-rose-800:oklch(.455 .188 13.697);--color-rose-900:oklch(.41 .159 10.272);--color-rose-950:oklch(.271 .105 12.094);--color-slate-50:oklch(.984 .003 247.858);--color-slate-100:oklch(.968 .007 247.896);--color-slate-200:oklch(.929 .013 255.508);--color-slate-300:oklch(.869 .022 252.894);--color-slate-400:oklch(.704 .04 256.788);--color-slate-500:oklch(.554 .046 257.417);--color-slate-600:oklch(.446 .043 257.281);--color-slate-700:oklch(.372 .044 257.287);--color-slate-800:oklch(.279 .041 260.031);--color-slate-900:oklch(.208 .042 265.755);--color-slate-950:oklch(.129 .042 264.695);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-gray-950:oklch(.13 .028 261.692);--color-zinc-50:oklch(.985 0 0);--color-zinc-100:oklch(.967 .001 286.375);--color-zinc-200:oklch(.92 .004 286.32);--color-zinc-300:oklch(.871 .006 286.286);--color-zinc-400:oklch(.705 .015 286.067);--color-zinc-500:oklch(.552 .016 285.938);--color-zinc-600:oklch(.442 .017 285.786);--color-zinc-700:oklch(.37 .013 285.805);--color-zinc-800:oklch(.274 .006 286.033);--color-zinc-900:oklch(.21 .006 285.885);--color-zinc-950:oklch(.141 .005 285.823);--color-neutral-50:oklch(.985 0 0);--color-neutral-100:oklch(.97 0 0);--color-neutral-200:oklch(.922 0 0);--color-neutral-300:oklch(.87 0 0);--color-neutral-400:oklch(.708 0 0);--color-neutral-500:oklch(.556 0 0);--color-neutral-600:oklch(.439 0 0);--color-neutral-700:oklch(.371 0 0);--color-neutral-800:oklch(.269 0 0);--color-neutral-900:oklch(.205 0 0);--color-neutral-950:oklch(.145 0 0);--color-stone-50:oklch(.985 .001 106.423);--color-stone-100:oklch(.97 .001 106.424);--color-stone-200:oklch(.923 .003 48.717);--color-stone-300:oklch(.869 .005 56.366);--color-stone-400:oklch(.709 .01 56.259);--color-stone-500:oklch(.553 .013 58.071);--color-stone-600:oklch(.444 .011 73.639);--color-stone-700:oklch(.374 .01 67.558);--color-stone-800:oklch(.268 .007 34.298);--color-stone-900:oklch(.216 .006 56.043);--color-stone-950:oklch(.147 .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--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;--container-6xl:72rem;--container-7xl:80rem;--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 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--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;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--inset-shadow-2xs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-2xl:0 25px 25px #00000026;--ease-in:cubic-bezier(.4,0,1,1);--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;--animate-bounce:bounce 1s infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings)}}@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,ui-sans-serif,system-ui,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}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-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{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;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}:-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{.sr-only{clip:rect(0,0,0,0);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}.inset-0{inset:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.-right-1{right:calc(var(--spacing)*-1)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-10{z-index:10}.z-50{z-index:50}.mx-4{margin-inline:calc(var(--spacing)*4)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-4{margin-right:calc(var(--spacing)*4)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.inline-flex{display:inline-flex}.table{display:table}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.h-1{height:calc(var(--spacing)*1)}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-100{height:calc(var(--spacing)*100)}.h-full{height:100%}.h-screen{height:100vh}.max-h-0{max-height:calc(var(--spacing)*0)}.max-h-40{max-height:calc(var(--spacing)*40)}.w-1\/2{width:50%}.w-1\/3{width:33.3333%}.w-1\/4{width:25%}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-2\/3{width:66.6667%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-100{width:calc(var(--spacing)*100)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-80{width:calc(var(--spacing)*80)}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.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-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*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-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-x-px>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(-1px*var(--tw-space-x-reverse));margin-inline-end:calc(-1px*calc(1 - var(--tw-space-x-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(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-s-lg{border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.rounded-e-lg{border-start-end-radius:var(--radius-lg);border-end-end-radius:var(--radius-lg)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-e-0{border-inline-end-style:var(--tw-border-style);border-inline-end-width:0}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-700{border-color:var(--color-blue-700)}.border-gray-300{border-color:var(--color-gray-300)}.border-green-500{border-color:var(--color-green-500)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-600{border-color:var(--color-slate-600)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-200{background-color:var(--color-blue-200)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-green-200{background-color:var(--color-green-200)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-green-700{background-color:var(--color-green-700)}.bg-green-800{background-color:var(--color-green-800)}.bg-orange-600{background-color:var(--color-orange-600)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-red-800{background-color:var(--color-red-800)}.bg-white{background-color:var(--color-white)}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-0{padding:calc(var(--spacing)*0)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--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-\[10px\]{font-size:10px}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.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-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-800{color:var(--color-green-800)}.text-orange-200{color:var(--color-orange-200)}.text-red-100{color:var(--color-red-100)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-50{opacity:.5}.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-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-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)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition-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-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-300{--tw-duration:.3s;transition-duration:.3s}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\:text-blue-700:hover{color:var(--color-blue-700)}.hover\:text-gray-500:hover{color:var(--color-gray-500)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:text-red-700:hover{color:var(--color-red-700)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.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:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-green-500:focus{--tw-ring-color:var(--color-green-500)}.focus\:ring-offset-2:focus{--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)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:opacity-50:disabled{opacity:.5}@media (width>=40rem){.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.rtl\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:180deg}@media (prefers-color-scheme:dark){.dark\:border-gray-700{border-color:var(--color-gray-700)}.dark\:bg-gray-700{background-color:var(--color-gray-700)}.dark\:bg-gray-800{background-color:var(--color-gray-800)}.dark\:text-gray-400{color:var(--color-gray-400)}.dark\:text-white{color:var(--color-white)}@media (hover:hover){.dark\:hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.dark\:hover\:text-white:hover{color:var(--color-white)}}}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@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-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@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-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@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-duration{syntax:"*";inherits:false}html,body{margin:0;width:100%;height:100%}
@@ -0,0 +1,23 @@
1
+ import{r as z,a as Te}from"./index.uG8-tmmD.js";var Ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uo(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Hr={exports:{}},Dt={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ur;function Vo(){if(Ur)return Dt;Ur=1;var s=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function f(b,A,C){var O=null;if(C!==void 0&&(O=""+C),A.key!==void 0&&(O=""+A.key),"key"in A){C={};for(var P in A)P!=="key"&&(C[P]=A[P])}else C=A;return A=C.ref,{$$typeof:s,type:b,key:O,ref:A!==void 0?A:null,props:C}}return Dt.Fragment=d,Dt.jsx=f,Dt.jsxs=f,Dt}var Vr;function Wo(){return Vr||(Vr=1,Hr.exports=Vo()),Hr.exports}var u=Wo(),ur={exports:{}},Yo=ur.exports,Wr;function Xo(){return Wr||(Wr=1,function(s,d){(function(f,b){s.exports=b()})(Yo,function(){var f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])})(e,t)},b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function A(e,t,n){for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var C=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ho,O=Object.keys,P=Array.isArray;function I(e,t){return typeof t!="object"||O(t).forEach(function(n){e[n]=t[n]}),e}typeof Promise>"u"||C.Promise||(C.Promise=Promise);var F=Object.getPrototypeOf,q={}.hasOwnProperty;function L(e,t){return q.call(e,t)}function Q(e,t){typeof t=="function"&&(t=t(F(e))),(typeof Reflect>"u"?O:Reflect.ownKeys)(t).forEach(function(n){G(e,n,t[n])})}var $=Object.defineProperty;function G(e,t,n,r){$(e,t,I(n&&L(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function pe(e){return{from:function(t){return e.prototype=Object.create(t.prototype),G(e.prototype,"constructor",e),{extend:Q.bind(null,e.prototype)}}}}var ve=Object.getOwnPropertyDescriptor,je=[].slice;function ie(e,t,n){return je.call(e,t,n)}function ke(e,t){return t(e)}function ge(e){if(!e)throw new Error("Assertion Failed")}function fe(e){C.setImmediate?setImmediate(e):setTimeout(e,0)}function ee(e,t){if(typeof t=="string"&&L(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var n=[],r=0,o=t.length;r<o;++r){var a=ee(e,t[r]);n.push(a)}return n}var i=t.indexOf(".");if(i!==-1){var c=e[t.substr(0,i)];return c==null?void 0:ee(c,t.substr(i+1))}}function X(e,t,n){if(e&&t!==void 0&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){ge(typeof n!="string"&&"length"in n);for(var r=0,o=t.length;r<o;++r)X(e,t[r],n[r])}else{var a,i,c=t.indexOf(".");c!==-1?(a=t.substr(0,c),(i=t.substr(c+1))===""?n===void 0?P(e)&&!isNaN(parseInt(a))?e.splice(a,1):delete e[a]:e[a]=n:X(c=!(c=e[a])||!L(e,a)?e[a]={}:c,i,n)):n===void 0?P(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function oe(e){var t,n={};for(t in e)L(e,t)&&(n[t]=e[t]);return n}var se=[].concat;function ne(e){return se.apply([],e)}var rt="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(ne([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return C[e]}),Oe=new Set(rt.map(function(e){return C[e]})),qe=null;function Ke(e){return qe=new WeakMap,e=function t(n){if(!n||typeof n!="object")return n;var r=qe.get(n);if(r)return r;if(P(n)){r=[],qe.set(n,r);for(var o=0,a=n.length;o<a;++o)r.push(t(n[o]))}else if(Oe.has(n.constructor))r=n;else{var i,c=F(n);for(i in r=c===Object.prototype?{}:Object.create(c),qe.set(n,r),n)L(n,i)&&(r[i]=t(n[i]))}return r}(e),qe=null,e}var tt={}.toString;function Y(e){return tt.call(e).slice(8,-1)}var ce=typeof Symbol<"u"?Symbol.iterator:"@@iterator",Qe=typeof ce=="symbol"?function(e){var t;return e!=null&&(t=e[ce])&&t.apply(e)}:function(){return null};function Pe(e,t){return t=e.indexOf(t),0<=t&&e.splice(t,1),0<=t}var Se={};function De(e){var t,n,r,o;if(arguments.length===1){if(P(e))return e.slice();if(this===Se&&typeof e=="string")return[e];if(o=Qe(e)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(e==null)return[e];if(typeof(t=e.length)!="number")return[e];for(n=new Array(t);t--;)n[t]=e[t];return n}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var re=typeof Symbol<"u"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},At=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Be=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(At),de={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function be(e,t){this.name=e,this.message=t}function He(e,t){return e+". Errors: "+Object.keys(t).map(function(n){return t[n].toString()}).filter(function(n,r,o){return o.indexOf(n)===r}).join(`
10
+ `)}function Ie(e,t,n,r){this.failures=t,this.failedKeys=r,this.successCount=n,this.message=He(e,t)}function pt(e,t){this.name="BulkError",this.failures=Object.keys(t).map(function(n){return t[n]}),this.failuresByPos=t,this.message=He(e,this.failures)}pe(be).from(Error).extend({toString:function(){return this.name+": "+this.message}}),pe(Ie).from(be),pe(pt).from(be);var wn=Be.reduce(function(e,t){return e[t]=t+"Error",e},{}),ho=be,U=Be.reduce(function(e,t){var n=t+"Error";function r(o,a){this.name=n,o?typeof o=="string"?(this.message="".concat(o).concat(a?`
11
+ `+a:""),this.inner=a||null):typeof o=="object"&&(this.message="".concat(o.name," ").concat(o.message),this.inner=o):(this.message=de[t]||n,this.inner=null)}return pe(r).from(ho),e[t]=r,e},{});U.Syntax=SyntaxError,U.Type=TypeError,U.Range=RangeError;var lr=At.reduce(function(e,t){return e[t+"Error"]=U[t],e},{}),zt=Be.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=U[t]),e},{});function ue(){}function kt(e){return e}function po(e,t){return e==null||e===kt?t:function(n){return t(e(n))}}function nt(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function mo(e,t){return e===ue?t:function(){var n=e.apply(this,arguments);n!==void 0&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?nt(r,this.onsuccess):r),o&&(this.onerror=this.onerror?nt(o,this.onerror):o),a!==void 0?a:n}}function yo(e,t){return e===ue?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?nt(n,this.onsuccess):n),r&&(this.onerror=this.onerror?nt(r,this.onerror):r)}}function vo(e,t){return e===ue?t:function(n){var r=e.apply(this,arguments);I(n,r);var o=this.onsuccess,a=this.onerror;return this.onsuccess=null,this.onerror=null,n=t.apply(this,arguments),o&&(this.onsuccess=this.onsuccess?nt(o,this.onsuccess):o),a&&(this.onerror=this.onerror?nt(a,this.onerror):a),r===void 0?n===void 0?void 0:n:I(r,n)}}function go(e,t){return e===ue?t:function(){return t.apply(this,arguments)!==!1&&e.apply(this,arguments)}}function jn(e,t){return e===ue?t:function(){var n=e.apply(this,arguments);if(n&&typeof n.then=="function"){for(var r=this,o=arguments.length,a=new Array(o);o--;)a[o]=arguments[o];return n.then(function(){return t.apply(r,a)})}return t.apply(this,arguments)}}zt.ModifyError=Ie,zt.DexieError=be,zt.BulkError=pt;var Fe=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function fr(e){Fe=e}var _t={},dr=100,rt=typeof Promise>"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,F(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,F(t),e]}(),At=rt[0],Be=rt[1],rt=rt[2],Be=Be&&Be.then,ot=At&&At.constructor,kn=!!rt,Ct=function(e,t){Ot.push([e,t]),Qt&&(queueMicrotask(xo),Qt=!1)},_n=!0,Qt=!0,at=[],Ht=[],An=kt,We={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ue,pgp:!1,env:{},finalize:ue},H=We,Ot=[],it=0,Ut=[];function D(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=H;if(typeof e!="function"){if(e!==_t)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&On(this,this._value))}this._state=null,this._value=null,++t.ref,function n(r,o){try{o(function(a){if(r._state===null){if(a===r)throw new TypeError("A promise cannot be resolved with itself.");var i=r._lib&&mt();a&&typeof a.then=="function"?n(r,function(c,h){a instanceof D?a._then(c,h):a.then(c,h)}):(r._state=!0,r._value=a,pr(r)),i&&yt()}},On.bind(null,r))}catch(a){On(r,a)}}(this,e)}var Cn={get:function(){var e=H,t=Xt;function n(r,o){var a=this,i=!e.global&&(e!==H||t!==Xt),c=i&&!Xe(),h=new D(function(m,g){Nn(a,new hr(yr(r,e,i,c),yr(o,e,i,c),m,g,e))});return this._consoleTask&&(h._consoleTask=this._consoleTask),h}return n.prototype=_t,n},set:function(e){G(this,"then",e&&e.prototype===_t?Cn:{get:function(){return e},set:Cn.set})}};function hr(e,t,n,r,o){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=n,this.reject=r,this.psd=o}function On(e,t){var n,r;Ht.push(t),e._state===null&&(n=e._lib&&mt(),t=An(t),e._state=!1,e._value=t,r=e,at.some(function(o){return o._value===r._value})||at.push(r),pr(e),n&&yt())}function pr(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Nn(e,t[n]);var o=e._PSD;--o.ref||o.finalize(),it===0&&(++it,Ct(function(){--it==0&&Pn()},[]))}function Nn(e,t){if(e._state!==null){var n=e._state?t.onFulfilled:t.onRejected;if(n===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++it,Ct(bo,[n,e,t])}else e._listeners.push(t)}function bo(e,t,n){try{var r,o=t._value;!t._state&&Ht.length&&(Ht=[]),r=Fe&&t._consoleTask?t._consoleTask.run(function(){return e(o)}):e(o),t._state||Ht.indexOf(o)!==-1||function(a){for(var i=at.length;i;)if(at[--i]._value===a._value)return at.splice(i,1)}(t),n.resolve(r)}catch(a){n.reject(a)}finally{--it==0&&Pn(),--n.psd.ref||n.psd.finalize()}}function xo(){st(We,function(){mt()&&yt()})}function mt(){var e=_n;return Qt=_n=!1,e}function yt(){var e,t,n;do for(;0<Ot.length;)for(e=Ot,Ot=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(0<Ot.length);Qt=_n=!0}function Pn(){var e=at;at=[],e.forEach(function(r){r._PSD.onunhandled.call(null,r._value,r)});for(var t=Ut.slice(0),n=t.length;n;)t[--n]()}function Vt(e){return new D(_t,!1,e)}function he(e,t){var n=H;return function(){var r=mt(),o=H;try{return Ge(n,!0),e.apply(this,arguments)}catch(a){t&&t(a)}finally{Ge(o,!1),r&&yt()}}}Q(D.prototype,{then:Cn,_then:function(e,t){Nn(this,new hr(null,null,e,t,H))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=e,n=arguments[1];return typeof t=="function"?this.then(null,function(r){return(r instanceof t?n:Vt)(r)}):this.then(null,function(r){return(r&&r.name===t?n:Vt)(r)})},finally:function(e){return this.then(function(t){return D.resolve(e()).then(function(){return t})},function(t){return D.resolve(e()).then(function(){return Vt(t)})})},timeout:function(e,t){var n=this;return e<1/0?new D(function(r,o){var a=setTimeout(function(){return o(new U.Timeout(t))},e);n.then(r,o).finally(clearTimeout.bind(null,a))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&G(D.prototype,Symbol.toStringTag,"Dexie.Promise"),We.env=mr(),Q(D,{all:function(){var e=De.apply(null,arguments).map(Gt);return new D(function(t,n){e.length===0&&t([]);var r=e.length;e.forEach(function(o,a){return D.resolve(o).then(function(i){e[a]=i,--r||t(e)},n)})})},resolve:function(e){return e instanceof D?e:e&&typeof e.then=="function"?new D(function(t,n){e.then(t,n)}):new D(_t,!0,e)},reject:Vt,race:function(){var e=De.apply(null,arguments).map(Gt);return new D(function(t,n){e.map(function(r){return D.resolve(r).then(t,n)})})},PSD:{get:function(){return H},set:function(e){return H=e}},totalEchoes:{get:function(){return Xt}},newPSD:Ye,usePSD:st,scheduler:{get:function(){return Ct},set:function(e){Ct=e}},rejectionMapper:{get:function(){return An},set:function(e){An=e}},follow:function(e,t){return new D(function(n,r){return Ye(function(o,a){var i=H;i.unhandleds=[],i.onunhandled=a,i.finalize=nt(function(){var c,h=this;c=function(){h.unhandleds.length===0?o():a(h.unhandleds[0])},Ut.push(function m(){c(),Ut.splice(Ut.indexOf(m),1)}),++it,Ct(function(){--it==0&&Pn()},[])},i.finalize),e()},t,n,r)})}}),ot&&(ot.allSettled&&G(D,"allSettled",function(){var e=De.apply(null,arguments).map(Gt);return new D(function(t){e.length===0&&t([]);var n=e.length,r=new Array(n);e.forEach(function(o,a){return D.resolve(o).then(function(i){return r[a]={status:"fulfilled",value:i}},function(i){return r[a]={status:"rejected",reason:i}}).then(function(){return--n||t(r)})})})}),ot.any&&typeof AggregateError<"u"&&G(D,"any",function(){var e=De.apply(null,arguments).map(Gt);return new D(function(t,n){e.length===0&&n(new AggregateError([]));var r=e.length,o=new Array(r);e.forEach(function(a,i){return D.resolve(a).then(function(c){return t(c)},function(c){o[i]=c,--r||n(new AggregateError(o))})})})}),ot.withResolvers&&(D.withResolvers=ot.withResolvers));var xe={awaits:0,echoes:0,id:0},wo=0,Wt=[],Yt=0,Xt=0,jo=0;function Ye(e,t,n,r){var o=H,a=Object.create(o);return a.parent=o,a.ref=0,a.global=!1,a.id=++jo,We.env,a.env=kn?{Promise:D,PromiseProp:{value:D,configurable:!0,writable:!0},all:D.all,race:D.race,allSettled:D.allSettled,any:D.any,resolve:D.resolve,reject:D.reject}:{},t&&I(a,t),++o.ref,a.finalize=function(){--this.parent.ref||this.parent.finalize()},r=st(a,e,n,r),a.ref===0&&a.finalize(),r}function vt(){return xe.id||(xe.id=++wo),++xe.awaits,xe.echoes+=dr,xe.id}function Xe(){return!!xe.awaits&&(--xe.awaits==0&&(xe.id=0),xe.echoes=xe.awaits*dr,!0)}function Gt(e){return xe.echoes&&e&&e.constructor===ot?(vt(),e.then(function(t){return Xe(),t},function(t){return Xe(),me(t)})):e}function ko(){var e=Wt[Wt.length-1];Wt.pop(),Ge(e,!1)}function Ge(e,t){var n,r=H;(t?!xe.echoes||Yt++&&e===H:!Yt||--Yt&&e===H)||queueMicrotask(t?function(o){++Xt,xe.echoes&&--xe.echoes!=0||(xe.echoes=xe.awaits=xe.id=0),Wt.push(H),Ge(o,!0)}.bind(null,e):ko),e!==H&&(H=e,r===We&&(We.env=mr()),kn&&(n=We.env.Promise,t=e.env,(r.global||e.global)&&(Object.defineProperty(C,"Promise",t.PromiseProp),n.all=t.all,n.race=t.race,n.resolve=t.resolve,n.reject=t.reject,t.allSettled&&(n.allSettled=t.allSettled),t.any&&(n.any=t.any))))}function mr(){var e=C.Promise;return kn?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(C,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function st(e,t,n,r,o){var a=H;try{return Ge(e,!0),t(n,r,o)}finally{Ge(a,!1)}}function yr(e,t,n,r){return typeof e!="function"?e:function(){var o=H;n&&vt(),Ge(t,!0);try{return e.apply(this,arguments)}finally{Ge(o,!1),r&&queueMicrotask(Xe)}}}function Sn(e){Promise===ot&&xe.echoes===0?Yt===0?e():enqueueNativeMicroTask(e):setTimeout(e,0)}(""+Be).indexOf("[native code]")===-1&&(vt=Xe=ue);var me=D.reject,ut="￿",Ue="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",vr="String expected.",gt=[],Jt="__dbnames",En="readonly",Rn="readwrite";function ct(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var gr={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Zt(e){return typeof e!="string"||/\./.test(e)?function(t){return t}:function(t){return t[e]===void 0&&e in t&&delete(t=Ke(t))[e],t}}function br(){throw U.Type()}function te(e,t){try{var n=xr(e),r=xr(t);if(n!==r)return n==="Array"?1:r==="Array"?-1:n==="binary"?1:r==="binary"?-1:n==="string"?1:r==="string"?-1:n==="Date"?1:r!=="Date"?NaN:-1;switch(n){case"number":case"Date":case"string":return t<e?1:e<t?-1:0;case"binary":return function(o,a){for(var i=o.length,c=a.length,h=i<c?i:c,m=0;m<h;++m)if(o[m]!==a[m])return o[m]<a[m]?-1:1;return i===c?0:i<c?-1:1}(wr(e),wr(t));case"Array":return function(o,a){for(var i=o.length,c=a.length,h=i<c?i:c,m=0;m<h;++m){var g=te(o[m],a[m]);if(g!==0)return g}return i===c?0:i<c?-1:1}(e,t)}}catch{}return NaN}function xr(e){var t=typeof e;return t!="object"?t:ArrayBuffer.isView(e)?"binary":(e=Y(e),e==="ArrayBuffer"?"binary":e)}function wr(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var jr=(le.prototype._trans=function(e,t,n){var r=this._tx||H.trans,o=this.name,a=Fe&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(e==="readonly"?"read":"write"," ").concat(this.name));function i(m,g,l){if(!l.schema[o])throw new U.NotFound("Table "+o+" not part of transaction");return t(l.idbtrans,l)}var c=mt();try{var h=r&&r.db._novip===this.db._novip?r===H.trans?r._promise(e,i,n):Ye(function(){return r._promise(e,i,n)},{trans:r,transless:H.transless||H}):function m(g,l,w,p){if(g.idbdb&&(g._state.openComplete||H.letThrough||g._vip)){var v=g._createTransaction(l,w,g._dbSchema);try{v.create(),g._state.PR1398_maxLoop=3}catch(x){return x.name===wn.InvalidState&&g.isOpen()&&0<--g._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),g.close({disableAutoOpen:!1}),g.open().then(function(){return m(g,l,w,p)})):me(x)}return v._promise(l,function(x,y){return Ye(function(){return H.trans=v,p(x,y,v)})}).then(function(x){if(l==="readwrite")try{v.idbtrans.commit()}catch{}return l==="readonly"?x:v._completion.then(function(){return x})})}if(g._state.openComplete)return me(new U.DatabaseClosed(g._state.dbOpenError));if(!g._state.isBeingOpened){if(!g._state.autoOpen)return me(new U.DatabaseClosed);g.open().catch(ue)}return g._state.dbReadyPromise.then(function(){return m(g,l,w,p)})}(this.db,e,[this.name],i);return a&&(h._consoleTask=a,h=h.catch(function(m){return console.trace(m),me(m)})),h}finally{c&&yt()}},le.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):e==null?me(new U.Type("Invalid argument to Table.get()")):this._trans("readonly",function(r){return n.core.get({trans:r,key:e}).then(function(o){return n.hook.reading.fire(o)})}).then(t)},le.prototype.where=function(e){if(typeof e=="string")return new this.db.WhereClause(this,e);if(P(e))return new this.db.WhereClause(this,"[".concat(e.join("+"),"]"));var t=O(e);if(t.length===1)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter(function(c){if(c.compound&&t.every(function(m){return 0<=c.keyPath.indexOf(m)})){for(var h=0;h<t.length;++h)if(t.indexOf(c.keyPath[h])===-1)return!1;return!0}return!1}).sort(function(c,h){return c.keyPath.length-h.keyPath.length})[0];if(n&&this.db._maxKey!==ut){var a=n.keyPath.slice(0,t.length);return this.where(a).equals(a.map(function(h){return e[h]}))}!n&&Fe&&console.warn("The query ".concat(JSON.stringify(e)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(t.join("+"),"]"));var r=this.schema.idxByName;function o(c,h){return te(c,h)===0}var i=t.reduce(function(l,h){var m=l[0],g=l[1],l=r[h],w=e[h];return[m||l,m||!l?ct(g,l&&l.multi?function(p){return p=ee(p,h),P(p)&&p.some(function(v){return o(w,v)})}:function(p){return o(w,ee(p,h))}):g]},[null,null]),a=i[0],i=i[1];return a?this.where(a.name).equals(e[a.keyPath]).filter(i):n?this.filter(i):this.where(t).equals("")},le.prototype.filter=function(e){return this.toCollection().and(e)},le.prototype.count=function(e){return this.toCollection().count(e)},le.prototype.offset=function(e){return this.toCollection().offset(e)},le.prototype.limit=function(e){return this.toCollection().limit(e)},le.prototype.each=function(e){return this.toCollection().each(e)},le.prototype.toArray=function(e){return this.toCollection().toArray(e)},le.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},le.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,P(e)?"[".concat(e.join("+"),"]"):e))},le.prototype.reverse=function(){return this.toCollection().reverse()},le.prototype.mapToClass=function(e){var t,n=this.db,r=this.name;function o(){return t!==null&&t.apply(this,arguments)||this}(this.schema.mappedClass=e).prototype instanceof br&&(function(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function g(){this.constructor=h}f(h,m),h.prototype=m===null?Object.create(m):(g.prototype=m.prototype,new g)}(o,t=e),Object.defineProperty(o.prototype,"db",{get:function(){return n},enumerable:!1,configurable:!0}),o.prototype.table=function(){return r},e=o);for(var a=new Set,i=e.prototype;i;i=F(i))Object.getOwnPropertyNames(i).forEach(function(h){return a.add(h)});function c(h){if(!h)return h;var m,g=Object.create(e.prototype);for(m in h)if(!a.has(m))try{g[m]=h[m]}catch{}return g}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=c,this.hook("reading",c),e},le.prototype.defineClass=function(){return this.mapToClass(function(e){I(this,e)})},le.prototype.add=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,a=r.keyPath,i=e;return a&&o&&(i=Zt(a)(e)),this._trans("readwrite",function(c){return n.core.mutate({trans:c,type:"add",keys:t!=null?[t]:null,values:[i]})}).then(function(c){return c.numFailures?D.reject(c.failures[0]):c.lastResult}).then(function(c){if(a)try{X(e,a,c)}catch{}return c})},le.prototype.update=function(e,t){return typeof e!="object"||P(e)?this.where(":id").equals(e).modify(t):(e=ee(e,this.schema.primKey.keyPath),e===void 0?me(new U.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(e).modify(t))},le.prototype.put=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,a=r.keyPath,i=e;return a&&o&&(i=Zt(a)(e)),this._trans("readwrite",function(c){return n.core.mutate({trans:c,type:"put",values:[i],keys:t!=null?[t]:null})}).then(function(c){return c.numFailures?D.reject(c.failures[0]):c.lastResult}).then(function(c){if(a)try{X(e,a,c)}catch{}return c})},le.prototype.delete=function(e){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})}).then(function(n){return n.numFailures?D.reject(n.failures[0]):void 0})},le.prototype.clear=function(){var e=this;return this._trans("readwrite",function(t){return e.core.mutate({trans:t,type:"deleteRange",range:gr})}).then(function(t){return t.numFailures?D.reject(t.failures[0]):void 0})},le.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",function(n){return t.core.getMany({keys:e,trans:n}).then(function(r){return r.map(function(o){return t.hook.reading.fire(o)})})})},le.prototype.bulkAdd=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,a=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(i){var m=r.schema.primKey,c=m.auto,m=m.keyPath;if(m&&o)throw new U.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new U.InvalidArgument("Arguments objects and keys must have the same length");var h=e.length,m=m&&c?e.map(Zt(m)):e;return r.core.mutate({trans:i,type:"add",keys:o,values:m,wantResults:a}).then(function(v){var l=v.numFailures,w=v.results,p=v.lastResult,v=v.failures;if(l===0)return a?w:p;throw new pt("".concat(r.name,".bulkAdd(): ").concat(l," of ").concat(h," operations failed"),v)})})},le.prototype.bulkPut=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,a=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(i){var m=r.schema.primKey,c=m.auto,m=m.keyPath;if(m&&o)throw new U.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new U.InvalidArgument("Arguments objects and keys must have the same length");var h=e.length,m=m&&c?e.map(Zt(m)):e;return r.core.mutate({trans:i,type:"put",keys:o,values:m,wantResults:a}).then(function(v){var l=v.numFailures,w=v.results,p=v.lastResult,v=v.failures;if(l===0)return a?w:p;throw new pt("".concat(r.name,".bulkPut(): ").concat(l," of ").concat(h," operations failed"),v)})})},le.prototype.bulkUpdate=function(e){var t=this,n=this.core,r=e.map(function(i){return i.key}),o=e.map(function(i){return i.changes}),a=[];return this._trans("readwrite",function(i){return n.getMany({trans:i,keys:r,cache:"clone"}).then(function(c){var h=[],m=[];e.forEach(function(l,w){var p=l.key,v=l.changes,x=c[w];if(x){for(var y=0,j=Object.keys(v);y<j.length;y++){var k=j[y],_=v[k];if(k===t.schema.primKey.keyPath){if(te(_,p)!==0)throw new U.Constraint("Cannot update primary key in bulkUpdate()")}else X(x,k,_)}a.push(w),h.push(p),m.push(x)}});var g=h.length;return n.mutate({trans:i,type:"put",keys:h,values:m,updates:{keys:r,changeSpecs:o}}).then(function(l){var w=l.numFailures,p=l.failures;if(w===0)return g;for(var v=0,x=Object.keys(p);v<x.length;v++){var y,j=x[v],k=a[Number(j)];k!=null&&(y=p[j],delete p[j],p[k]=y)}throw new pt("".concat(t.name,".bulkUpdate(): ").concat(w," of ").concat(g," operations failed"),p)})})})},le.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",function(r){return t.core.mutate({trans:r,type:"delete",keys:e})}).then(function(i){var o=i.numFailures,a=i.lastResult,i=i.failures;if(o===0)return a;throw new pt("".concat(t.name,".bulkDelete(): ").concat(o," of ").concat(n," operations failed"),i)})},le);function le(){}function Nt(e){function t(i,c){if(c){for(var h=arguments.length,m=new Array(h-1);--h;)m[h-1]=arguments[h];return n[i].subscribe.apply(null,m),e}if(typeof i=="string")return n[i]}var n={};t.addEventType=a;for(var r=1,o=arguments.length;r<o;++r)a(arguments[r]);return t;function a(i,c,h){if(typeof i!="object"){var m;c=c||go;var g={subscribers:[],fire:h=h||ue,subscribe:function(l){g.subscribers.indexOf(l)===-1&&(g.subscribers.push(l),g.fire=c(g.fire,l))},unsubscribe:function(l){g.subscribers=g.subscribers.filter(function(w){return w!==l}),g.fire=g.subscribers.reduce(c,h)}};return n[i]=t[i]=g}O(m=i).forEach(function(l){var w=m[l];if(P(w))a(l,m[l][0],m[l][1]);else{if(w!=="asap")throw new U.InvalidArgument("Invalid event config");var p=a(l,kt,function(){for(var v=arguments.length,x=new Array(v);v--;)x[v]=arguments[v];p.subscribers.forEach(function(y){fe(function(){y.apply(null,x)})})})}})}}function Pt(e,t){return pe(t).from({prototype:e}),t}function bt(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Mn(e,t){e.filter=ct(e.filter,t)}function qn(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return ct(r(),t())}:t,e.justLimit=n&&!r}function $t(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new U.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function kr(e,t,n){var r=$t(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:r,range:e.range}})}function en(e,t,n,r){var o=e.replayFilter?ct(e.filter,e.replayFilter()):e.filter;if(e.or){var a={},i=function(c,h,m){var g,l;o&&!o(h,m,function(w){return h.stop(w)},function(w){return h.fail(w)})||((l=""+(g=h.primaryKey))=="[object ArrayBuffer]"&&(l=""+new Uint8Array(g)),L(a,l)||(a[l]=!0,t(c,h,m)))};return Promise.all([e.or._iterate(i,n),_r(kr(e,r,n),e.algorithm,i,!e.keysOnly&&e.valueMapper)])}return _r(kr(e,r,n),ct(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function _r(e,t,n,r){var o=he(r?function(a,i,c){return n(r(a),i,c)}:n);return e.then(function(a){if(a)return a.start(function(){var i=function(){return a.continue()};t&&!t(a,function(c){return i=c},function(c){a.stop(c),i=ue},function(c){a.fail(c),i=ue})||o(a.value,a,function(c){return i=c}),i()})})}var St=(Ar.prototype.execute=function(e){var t=this["@@propmod"];if(t.add!==void 0){var n=t.add;if(P(n))return A(A([],P(e)?e:[],!0),n).sort();if(typeof n=="number")return(Number(e)||0)+n;if(typeof n=="bigint")try{return BigInt(e)+n}catch{return BigInt(0)+n}throw new TypeError("Invalid term ".concat(n))}if(t.remove!==void 0){var r=t.remove;if(P(r))return P(e)?e.filter(function(o){return!r.includes(o)}).sort():[];if(typeof r=="number")return Number(e)-r;if(typeof r=="bigint")try{return BigInt(e)-r}catch{return BigInt(0)-r}throw new TypeError("Invalid subtrahend ".concat(r))}return n=(n=t.replacePrefix)===null||n===void 0?void 0:n[0],n&&typeof e=="string"&&e.startsWith(n)?t.replacePrefix[1]+e.substring(n.length):e},Ar);function Ar(e){this["@@propmod"]=e}var _o=(ae.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,me.bind(null,n.error)):n.table._trans("readonly",e).then(t)},ae.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,me.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},ae.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=ct(t.algorithm,e)},ae.prototype._iterate=function(e,t){return en(this._ctx,e,t,this._ctx.table.core)},ae.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&I(n,e),t._ctx=n,t},ae.prototype.raw=function(){return this._ctx.valueMapper=null,this},ae.prototype.each=function(e){var t=this._ctx;return this._read(function(n){return en(t,e,n,t.table.core)})},ae.prototype.count=function(e){var t=this;return this._read(function(n){var r=t._ctx,o=r.table.core;if(bt(r,!0))return o.count({trans:n,query:{index:$t(r,o.schema),range:r.range}}).then(function(i){return Math.min(i,r.limit)});var a=0;return en(r,function(){return++a,!1},n,o).then(function(){return a})}).then(e)},ae.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],o=n.length-1;function a(h,m){return m?a(h[n[m]],m-1):h[r]}var i=this._ctx.dir==="next"?1:-1;function c(h,m){return te(a(h,o),a(m,o))*i}return this.toArray(function(h){return h.sort(c)}).then(t)},ae.prototype.toArray=function(e){var t=this;return this._read(function(n){var r=t._ctx;if(r.dir==="next"&&bt(r,!0)&&0<r.limit){var o=r.valueMapper,a=$t(r,r.table.core.schema);return r.table.core.query({trans:n,limit:r.limit,values:!0,query:{index:a,range:r.range}}).then(function(c){return c=c.result,o?c.map(o):c})}var i=[];return en(r,function(c){return i.push(c)},n,r.table.core).then(function(){return i})},e)},ae.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,bt(t)?qn(t,function(){var n=e;return function(r,o){return n===0||(n===1?--n:o(function(){r.advance(n),n=0}),!1)}}):qn(t,function(){var n=e;return function(){return--n<0}})),this},ae.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),qn(this._ctx,function(){var t=e;return function(n,r,o){return--t<=0&&r(o),0<=t}},!0),this},ae.prototype.until=function(e,t){return Mn(this._ctx,function(n,r,o){return!e(n.value)||(r(o),t)}),this},ae.prototype.first=function(e){return this.limit(1).toArray(function(t){return t[0]}).then(e)},ae.prototype.last=function(e){return this.reverse().first(e)},ae.prototype.filter=function(e){var t;return Mn(this._ctx,function(n){return e(n.value)}),(t=this._ctx).isMatch=ct(t.isMatch,e),this},ae.prototype.and=function(e){return this.filter(e)},ae.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},ae.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},ae.prototype.desc=function(){return this.reverse()},ae.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(n,r){e(r.key,r)})},ae.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},ae.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(n,r){e(r.primaryKey,r)})},ae.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(r,o){n.push(o.key)}).then(function(){return n}).then(e)},ae.prototype.primaryKeys=function(e){var t=this._ctx;if(t.dir==="next"&&bt(t,!0)&&0<t.limit)return this._read(function(r){var o=$t(t,t.table.core.schema);return t.table.core.query({trans:r,values:!1,limit:t.limit,query:{index:o,range:t.range}})}).then(function(r){return r.result}).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(r,o){n.push(o.primaryKey)}).then(function(){return n}).then(e)},ae.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},ae.prototype.firstKey=function(e){return this.limit(1).keys(function(t){return t[0]}).then(e)},ae.prototype.lastKey=function(e){return this.reverse().firstKey(e)},ae.prototype.distinct=function(){var e=this._ctx,e=e.index&&e.table.schema.idxByName[e.index];if(!e||!e.multi)return this;var t={};return Mn(this._ctx,function(o){var r=o.primaryKey.toString(),o=L(t,r);return t[r]=!0,!o}),this},ae.prototype.modify=function(e){var t=this,n=this._ctx;return this._write(function(r){var o,a,i;i=typeof e=="function"?e:(o=O(e),a=o.length,function(y){for(var j=!1,k=0;k<a;++k){var _=o[k],N=e[_],S=ee(y,_);N instanceof St?(X(y,_,N.execute(S)),j=!0):S!==N&&(X(y,_,N),j=!0)}return j});var c=n.table.core,l=c.schema.primaryKey,h=l.outbound,m=l.extractKey,g=200,l=t.db._options.modifyChunkSize;l&&(g=typeof l=="object"?l[c.name]||l["*"]||200:l);function w(y,_){var k=_.failures,_=_.numFailures;v+=y-_;for(var N=0,S=O(k);N<S.length;N++){var K=S[N];p.push(k[K])}}var p=[],v=0,x=[];return t.clone().primaryKeys().then(function(y){function j(_){var N=Math.min(g,y.length-_);return c.getMany({trans:r,keys:y.slice(_,_+N),cache:"immutable"}).then(function(S){for(var K=[],E=[],R=h?[]:null,B=[],M=0;M<N;++M){var T=S[M],W={value:Ke(T),primKey:y[_+M]};i.call(W,W.value,W)!==!1&&(W.value==null?B.push(y[_+M]):h||te(m(T),m(W.value))===0?(E.push(W.value),h&&R.push(y[_+M])):(B.push(y[_+M]),K.push(W.value)))}return Promise.resolve(0<K.length&&c.mutate({trans:r,type:"add",values:K}).then(function(J){for(var Z in J.failures)B.splice(parseInt(Z),1);w(K.length,J)})).then(function(){return(0<E.length||k&&typeof e=="object")&&c.mutate({trans:r,type:"put",keys:R,values:E,criteria:k,changeSpec:typeof e!="function"&&e,isAdditionalChunk:0<_}).then(function(J){return w(E.length,J)})}).then(function(){return(0<B.length||k&&e===Kn)&&c.mutate({trans:r,type:"delete",keys:B,criteria:k,isAdditionalChunk:0<_}).then(function(J){return w(B.length,J)})}).then(function(){return y.length>_+N&&j(_+g)})})}var k=bt(n)&&n.limit===1/0&&(typeof e!="function"||e===Kn)&&{index:n.index,range:n.range};return j(0).then(function(){if(0<p.length)throw new Ie("Error modifying one or more objects",p,v,x);return y.length})})})},ae.prototype.delete=function(){var e=this._ctx,t=e.range;return bt(e)&&(e.isPrimKey||t.type===3)?this._write(function(n){var r=e.table.core.schema.primaryKey,o=t;return e.table.core.count({trans:n,query:{index:r,range:o}}).then(function(a){return e.table.core.mutate({trans:n,type:"deleteRange",range:o}).then(function(i){var c=i.failures;if(i.lastResult,i.results,i=i.numFailures,i)throw new Ie("Could not delete some values",Object.keys(c).map(function(h){return c[h]}),a-i);return a-i})})}):this.modify(Kn)},ae);function ae(){}var Kn=function(e,t){return t.value=null};function Ao(e,t){return e<t?-1:e===t?0:1}function Co(e,t){return t<e?-1:e===t?0:1}function Ee(e,t,n){return e=e instanceof Or?new e.Collection(e):e,e._ctx.error=new(n||TypeError)(t),e}function xt(e){return new e.Collection(e,function(){return Cr("")}).limit(0)}function tn(e,t,n,r){var o,a,i,c,h,m,g,l=n.length;if(!n.every(function(v){return typeof v=="string"}))return Ee(e,vr);function w(v){o=v==="next"?function(y){return y.toUpperCase()}:function(y){return y.toLowerCase()},a=v==="next"?function(y){return y.toLowerCase()}:function(y){return y.toUpperCase()},i=v==="next"?Ao:Co;var x=n.map(function(y){return{lower:a(y),upper:o(y)}}).sort(function(y,j){return i(y.lower,j.lower)});c=x.map(function(y){return y.upper}),h=x.map(function(y){return y.lower}),g=(m=v)==="next"?"":r}w("next"),e=new e.Collection(e,function(){return Je(c[0],h[l-1]+r)}),e._ondirectionchange=function(v){w(v)};var p=0;return e._addAlgorithm(function(v,x,y){var j=v.key;if(typeof j!="string")return!1;var k=a(j);if(t(k,h,p))return!0;for(var _=null,N=p;N<l;++N){var S=function(K,E,R,B,M,T){for(var W=Math.min(K.length,B.length),J=-1,Z=0;Z<W;++Z){var Re=E[Z];if(Re!==B[Z])return M(K[Z],R[Z])<0?K.substr(0,Z)+R[Z]+R.substr(Z+1):M(K[Z],B[Z])<0?K.substr(0,Z)+B[Z]+R.substr(Z+1):0<=J?K.substr(0,J)+E[J]+R.substr(J+1):null;M(K[Z],Re)<0&&(J=Z)}return W<B.length&&T==="next"?K+R.substr(K.length):W<K.length&&T==="prev"?K.substr(0,R.length):J<0?null:K.substr(0,J)+B[J]+R.substr(J+1)}(j,k,c[N],h[N],i,m);S===null&&_===null?p=N+1:(_===null||0<i(_,S))&&(_=S)}return x(_!==null?function(){v.continue(_+g)}:y),!1}),e}function Je(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function Cr(e){return{type:1,lower:e,upper:e}}var Or=(Object.defineProperty(we.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),we.prototype.between=function(e,t,n,r){n=n!==!1,r=r===!0;try{return 0<this._cmp(e,t)||this._cmp(e,t)===0&&(n||r)&&(!n||!r)?xt(this):new this.Collection(this,function(){return Je(e,t,!n,!r)})}catch{return Ee(this,Ue)}},we.prototype.equals=function(e){return e==null?Ee(this,Ue):new this.Collection(this,function(){return Cr(e)})},we.prototype.above=function(e){return e==null?Ee(this,Ue):new this.Collection(this,function(){return Je(e,void 0,!0)})},we.prototype.aboveOrEqual=function(e){return e==null?Ee(this,Ue):new this.Collection(this,function(){return Je(e,void 0,!1)})},we.prototype.below=function(e){return e==null?Ee(this,Ue):new this.Collection(this,function(){return Je(void 0,e,!1,!0)})},we.prototype.belowOrEqual=function(e){return e==null?Ee(this,Ue):new this.Collection(this,function(){return Je(void 0,e)})},we.prototype.startsWith=function(e){return typeof e!="string"?Ee(this,vr):this.between(e,e+ut,!0,!0)},we.prototype.startsWithIgnoreCase=function(e){return e===""?this.startsWith(e):tn(this,function(t,n){return t.indexOf(n[0])===0},[e],ut)},we.prototype.equalsIgnoreCase=function(e){return tn(this,function(t,n){return t===n[0]},[e],"")},we.prototype.anyOfIgnoreCase=function(){var e=De.apply(Se,arguments);return e.length===0?xt(this):tn(this,function(t,n){return n.indexOf(t)!==-1},e,"")},we.prototype.startsWithAnyOfIgnoreCase=function(){var e=De.apply(Se,arguments);return e.length===0?xt(this):tn(this,function(t,n){return n.some(function(r){return t.indexOf(r)===0})},e,ut)},we.prototype.anyOf=function(){var e=this,t=De.apply(Se,arguments),n=this._cmp;try{t.sort(n)}catch{return Ee(this,Ue)}if(t.length===0)return xt(this);var r=new this.Collection(this,function(){return Je(t[0],t[t.length-1])});r._ondirectionchange=function(a){n=a==="next"?e._ascending:e._descending,t.sort(n)};var o=0;return r._addAlgorithm(function(a,i,c){for(var h=a.key;0<n(h,t[o]);)if(++o===t.length)return i(c),!1;return n(h,t[o])===0||(i(function(){a.continue(t[o])}),!1)}),r},we.prototype.notEqual=function(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},we.prototype.noneOf=function(){var e=De.apply(Se,arguments);if(e.length===0)return new this.Collection(this);try{e.sort(this._ascending)}catch{return Ee(this,Ue)}var t=e.reduce(function(n,r){return n?n.concat([[n[n.length-1][1],r]]):[[-1/0,r]]},null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},we.prototype.inAnyRange=function(j,t){var n=this,r=this._cmp,o=this._ascending,a=this._descending,i=this._min,c=this._max;if(j.length===0)return xt(this);if(!j.every(function(k){return k[0]!==void 0&&k[1]!==void 0&&o(k[0],k[1])<=0}))return Ee(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",U.InvalidArgument);var h=!t||t.includeLowers!==!1,m=t&&t.includeUppers===!0,g,l=o;function w(k,_){return l(k[0],_[0])}try{(g=j.reduce(function(k,_){for(var N=0,S=k.length;N<S;++N){var K=k[N];if(r(_[0],K[1])<0&&0<r(_[1],K[0])){K[0]=i(K[0],_[0]),K[1]=c(K[1],_[1]);break}}return N===S&&k.push(_),k},[])).sort(w)}catch{return Ee(this,Ue)}var p=0,v=m?function(k){return 0<o(k,g[p][1])}:function(k){return 0<=o(k,g[p][1])},x=h?function(k){return 0<a(k,g[p][0])}:function(k){return 0<=a(k,g[p][0])},y=v,j=new this.Collection(this,function(){return Je(g[0][0],g[g.length-1][1],!h,!m)});return j._ondirectionchange=function(k){l=k==="next"?(y=v,o):(y=x,a),g.sort(w)},j._addAlgorithm(function(k,_,N){for(var S,K=k.key;y(K);)if(++p===g.length)return _(N),!1;return!v(S=K)&&!x(S)||(n._cmp(K,g[p][1])===0||n._cmp(K,g[p][0])===0||_(function(){l===o?k.continue(g[p][0]):k.continue(g[p][1])}),!1)}),j},we.prototype.startsWithAnyOf=function(){var e=De.apply(Se,arguments);return e.every(function(t){return typeof t=="string"})?e.length===0?xt(this):this.inAnyRange(e.map(function(t){return[t,t+ut]})):Ee(this,"startsWithAnyOf() only works with strings")},we);function we(){}function Le(e){return he(function(t){return Et(t),e(t.target.error),!1})}function Et(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Rt="storagemutated",Bn="x-storagemutated-1",Ze=Nt(null,Rt),Oo=(ze.prototype._lock=function(){return ge(!H.global),++this._reculock,this._reculock!==1||H.global||(H.lockOwnerFor=this),this},ze.prototype._unlock=function(){if(ge(!H.global),--this._reculock==0)for(H.global||(H.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var e=this._blockedFuncs.shift();try{st(e[1],e[0])}catch{}}return this},ze.prototype._locked=function(){return this._reculock&&H.lockOwnerFor!==this},ze.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(ge(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new U.DatabaseClosed(r);case"MissingAPIError":throw new U.MissingAPI(r.message,r);default:throw new U.OpenFailed(r)}if(!this.active)throw new U.TransactionInactive;return ge(this._completion._state===null),(e=this.idbtrans=e||(this.db.core||n).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=he(function(o){Et(o),t._reject(e.error)}),e.onabort=he(function(o){Et(o),t.active&&t._reject(new U.Abort(e.error)),t.active=!1,t.on("abort").fire(o)}),e.oncomplete=he(function(){t.active=!1,t._resolve(),"mutatedParts"in e&&Ze.storagemutated.fire(e.mutatedParts)}),this},ze.prototype._promise=function(e,t,n){var r=this;if(e==="readwrite"&&this.mode!=="readwrite")return me(new U.ReadOnly("Transaction is readonly"));if(!this.active)return me(new U.TransactionInactive);if(this._locked())return new D(function(a,i){r._blockedFuncs.push([function(){r._promise(e,t,n).then(a,i)},H])});if(n)return Ye(function(){var a=new D(function(i,c){r._lock();var h=t(i,c,r);h&&h.then&&h.then(i,c)});return a.finally(function(){return r._unlock()}),a._lib=!0,a});var o=new D(function(a,i){var c=t(a,i,r);c&&c.then&&c.then(a,i)});return o._lib=!0,o},ze.prototype._root=function(){return this.parent?this.parent._root():this},ze.prototype.waitFor=function(e){var t,n=this._root(),r=D.resolve(e);n._waitingFor?n._waitingFor=n._waitingFor.then(function(){return r}):(n._waitingFor=r,n._waitingQueue=[],t=n.idbtrans.objectStore(n.storeNames[0]),function a(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(t.get(-1/0).onsuccess=a)}());var o=n._waitingFor;return new D(function(a,i){r.then(function(c){return n._waitingQueue.push(he(a.bind(null,c)))},function(c){return n._waitingQueue.push(he(i.bind(null,c)))}).finally(function(){n._waitingFor===o&&(n._waitingFor=null)})})},ze.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new U.Abort))},ze.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(L(t,e))return t[e];var n=this.schema[e];if(!n)throw new U.NotFound("Table "+e+" not part of transaction");return n=new this.db.Table(e,n,this),n.core=this.db.core.table(e),t[e]=n},ze);function ze(){}function Dn(e,t,n,r,o,a,i){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:a,src:(n&&!i?"&":"")+(r?"*":"")+(o?"++":"")+Nr(t)}}function Nr(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function In(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:(r=function(o){return[o.name,o]},n.reduce(function(o,a,i){return i=r(a,i),i&&(o[i[0]]=i[1]),o},{}))};var r}var Mt=function(e){try{return e.only([[]]),Mt=function(){return[[]]},[[]]}catch{return Mt=function(){return ut},ut}};function Tn(e){return e==null?function(){}:typeof e=="string"?(t=e).split(".").length===1?function(n){return n[t]}:function(n){return ee(n,t)}:function(n){return ee(n,e)};var t}function Pr(e){return[].slice.call(e)}var No=0;function qt(e){return e==null?":id":typeof e=="string"?e:"[".concat(e.join("+"),"]")}function Po(e,t,h){function r(y){if(y.type===3)return null;if(y.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var p=y.lower,v=y.upper,x=y.lowerOpen,y=y.upperOpen;return p===void 0?v===void 0?null:t.upperBound(v,!!y):v===void 0?t.lowerBound(p,!!x):t.bound(p,v,!!x,!!y)}function o(w){var p,v=w.name;return{name:v,schema:w,mutate:function(x){var y=x.trans,j=x.type,k=x.keys,_=x.values,N=x.range;return new Promise(function(S,K){S=he(S);var E=y.objectStore(v),R=E.keyPath==null,B=j==="put"||j==="add";if(!B&&j!=="delete"&&j!=="deleteRange")throw new Error("Invalid operation type: "+j);var M,T=(k||_||{length:1}).length;if(k&&_&&k.length!==_.length)throw new Error("Given keys array must have same length as given values array.");if(T===0)return S({numFailures:0,failures:{},results:[],lastResult:void 0});function W(Ne){++Re,Et(Ne)}var J=[],Z=[],Re=0;if(j==="deleteRange"){if(N.type===4)return S({numFailures:Re,failures:Z,results:[],lastResult:void 0});N.type===3?J.push(M=E.clear()):J.push(M=E.delete(r(N)))}else{var R=B?R?[_,k]:[_,null]:[k,null],V=R[0],Ae=R[1];if(B)for(var Ce=0;Ce<T;++Ce)J.push(M=Ae&&Ae[Ce]!==void 0?E[j](V[Ce],Ae[Ce]):E[j](V[Ce])),M.onerror=W;else for(Ce=0;Ce<T;++Ce)J.push(M=E[j](V[Ce])),M.onerror=W}function mn(Ne){Ne=Ne.target.result,J.forEach(function(dt,rr){return dt.error!=null&&(Z[rr]=dt.error)}),S({numFailures:Re,failures:Z,results:j==="delete"?k:J.map(function(dt){return dt.result}),lastResult:Ne})}M.onerror=function(Ne){W(Ne),mn(Ne)},M.onsuccess=mn})},getMany:function(x){var y=x.trans,j=x.keys;return new Promise(function(k,_){k=he(k);for(var N,S=y.objectStore(v),K=j.length,E=new Array(K),R=0,B=0,M=function(J){J=J.target,E[J._pos]=J.result,++B===R&&k(E)},T=Le(_),W=0;W<K;++W)j[W]!=null&&((N=S.get(j[W]))._pos=W,N.onsuccess=M,N.onerror=T,++R);R===0&&k(E)})},get:function(x){var y=x.trans,j=x.key;return new Promise(function(k,_){k=he(k);var N=y.objectStore(v).get(j);N.onsuccess=function(S){return k(S.target.result)},N.onerror=Le(_)})},query:(p=m,function(x){return new Promise(function(y,j){y=he(y);var k,_,N,R=x.trans,S=x.values,K=x.limit,M=x.query,E=K===1/0?void 0:K,B=M.index,M=M.range,R=R.objectStore(v),B=B.isPrimaryKey?R:R.index(B.name),M=r(M);if(K===0)return y({result:[]});p?((E=S?B.getAll(M,E):B.getAllKeys(M,E)).onsuccess=function(T){return y({result:T.target.result})},E.onerror=Le(j)):(k=0,_=!S&&"openKeyCursor"in B?B.openKeyCursor(M):B.openCursor(M),N=[],_.onsuccess=function(T){var W=_.result;return W?(N.push(S?W.value:W.primaryKey),++k===K?y({result:N}):void W.continue()):y({result:N})},_.onerror=Le(j))})}),openCursor:function(x){var y=x.trans,j=x.values,k=x.query,_=x.reverse,N=x.unique;return new Promise(function(S,K){S=he(S);var B=k.index,E=k.range,R=y.objectStore(v),R=B.isPrimaryKey?R:R.index(B.name),B=_?N?"prevunique":"prev":N?"nextunique":"next",M=!j&&"openKeyCursor"in R?R.openKeyCursor(r(E),B):R.openCursor(r(E),B);M.onerror=Le(K),M.onsuccess=he(function(T){var W,J,Z,Re,V=M.result;V?(V.___id=++No,V.done=!1,W=V.continue.bind(V),J=(J=V.continuePrimaryKey)&&J.bind(V),Z=V.advance.bind(V),Re=function(){throw new Error("Cursor not stopped")},V.trans=y,V.stop=V.continue=V.continuePrimaryKey=V.advance=function(){throw new Error("Cursor not started")},V.fail=he(K),V.next=function(){var Ae=this,Ce=1;return this.start(function(){return Ce--?Ae.continue():Ae.stop()}).then(function(){return Ae})},V.start=function(Ae){function Ce(){if(M.result)try{Ae()}catch(Ne){V.fail(Ne)}else V.done=!0,V.start=function(){throw new Error("Cursor behind last entry")},V.stop()}var mn=new Promise(function(Ne,dt){Ne=he(Ne),M.onerror=Le(dt),V.fail=dt,V.stop=function(rr){V.stop=V.continue=V.continuePrimaryKey=V.advance=Re,Ne(rr)}});return M.onsuccess=he(function(Ne){M.onsuccess=Ce,Ce()}),V.continue=W,V.continuePrimaryKey=J,V.advance=Z,Ce(),mn},S(V)):S(null)},K)})},count:function(x){var y=x.query,j=x.trans,k=y.index,_=y.range;return new Promise(function(N,S){var K=j.objectStore(v),E=k.isPrimaryKey?K:K.index(k.name),K=r(_),E=K?E.count(K):E.count();E.onsuccess=he(function(R){return N(R.target.result)}),E.onerror=Le(S)})}}}var a,i,c,g=(i=h,c=Pr((a=e).objectStoreNames),{schema:{name:a.name,tables:c.map(function(w){return i.objectStore(w)}).map(function(w){var p=w.keyPath,y=w.autoIncrement,v=P(p),x={},y={name:w.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:p==null,compound:v,keyPath:p,autoIncrement:y,unique:!0,extractKey:Tn(p)},indexes:Pr(w.indexNames).map(function(j){return w.index(j)}).map(function(N){var k=N.name,_=N.unique,S=N.multiEntry,N=N.keyPath,S={name:k,compound:P(N),keyPath:N,unique:_,multiEntry:S,extractKey:Tn(N)};return x[qt(N)]=S}),getIndexByKeyPath:function(j){return x[qt(j)]}};return x[":id"]=y.primaryKey,p!=null&&(x[qt(p)]=y.primaryKey),y})},hasGetAll:0<c.length&&"getAll"in i.objectStore(c[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),h=g.schema,m=g.hasGetAll,g=h.tables.map(o),l={};return g.forEach(function(w){return l[w.name]=w}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(w){if(!l[w])throw new Error("Table '".concat(w,"' not found"));return l[w]},MIN_KEY:-1/0,MAX_KEY:Mt(t),schema:h}}function So(e,t,n,r){var o=n.IDBKeyRange;return n.indexedDB,{dbcore:(r=Po(t,o,r),e.dbcore.reduce(function(a,i){return i=i.create,b(b({},a),i(a))},r))}}function nn(e,r){var n=r.db,r=So(e._middlewares,n,e._deps,r);e.core=r.dbcore,e.tables.forEach(function(o){var a=o.name;e.core.schema.tables.some(function(i){return i.name===a})&&(o.core=e.core.table(a),e[a]instanceof e.Table&&(e[a].core=o.core))})}function rn(e,t,n,r){n.forEach(function(o){var a=r[o];t.forEach(function(i){var c=function h(m,g){return ve(m,g)||(m=F(m))&&h(m,g)}(i,o);(!c||"value"in c&&c.value===void 0)&&(i===e.Transaction.prototype||i instanceof e.Transaction?G(i,o,{get:function(){return this.table(o)},set:function(h){$(this,o,{value:h,writable:!0,configurable:!0,enumerable:!0})}}):i[o]=new e.Table(o,a))})})}function Fn(e,t){t.forEach(function(n){for(var r in n)n[r]instanceof e.Table&&delete n[r]})}function Eo(e,t){return e._cfg.version-t._cfg.version}function Ro(e,t,n,r){var o=e._dbSchema;n.objectStoreNames.contains("$meta")&&!o.$meta&&(o.$meta=In("$meta",Er("")[0],[]),e._storeNames.push("$meta"));var a=e._createTransaction("readwrite",e._storeNames,o);a.create(n),a._completion.catch(r);var i=a._reject.bind(a),c=H.transless||H;Ye(function(){return H.trans=a,H.transless=c,t!==0?(nn(e,n),m=t,((h=a).storeNames.includes("$meta")?h.table("$meta").get("version").then(function(g){return g??m}):D.resolve(m)).then(function(g){return w=g,p=a,v=n,x=[],g=(l=e)._versions,y=l._dbSchema=an(0,l.idbdb,v),(g=g.filter(function(j){return j._cfg.version>=w})).length!==0?(g.forEach(function(j){x.push(function(){var k=y,_=j._cfg.dbschema;sn(l,k,v),sn(l,_,v),y=l._dbSchema=_;var N=Ln(k,_);N.add.forEach(function(B){zn(v,B[0],B[1].primKey,B[1].indexes)}),N.change.forEach(function(B){if(B.recreate)throw new U.Upgrade("Not yet support for changing primary key");var M=v.objectStore(B.name);B.add.forEach(function(T){return on(M,T)}),B.change.forEach(function(T){M.deleteIndex(T.name),on(M,T)}),B.del.forEach(function(T){return M.deleteIndex(T)})});var S=j._cfg.contentUpgrade;if(S&&j._cfg.version>w){nn(l,v),p._memoizedTables={};var K=oe(_);N.del.forEach(function(B){K[B]=k[B]}),Fn(l,[l.Transaction.prototype]),rn(l,[l.Transaction.prototype],O(K),K),p.schema=K;var E,R=re(S);return R&&vt(),N=D.follow(function(){var B;(E=S(p))&&R&&(B=Xe.bind(null,null),E.then(B,B))}),E&&typeof E.then=="function"?D.resolve(E):N.then(function(){return E})}}),x.push(function(k){var _,N,S=j._cfg.dbschema;_=S,N=k,[].slice.call(N.db.objectStoreNames).forEach(function(K){return _[K]==null&&N.db.deleteObjectStore(K)}),Fn(l,[l.Transaction.prototype]),rn(l,[l.Transaction.prototype],l._storeNames,l._dbSchema),p.schema=l._dbSchema}),x.push(function(k){l.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(l.idbdb.version/10)===j._cfg.version?(l.idbdb.deleteObjectStore("$meta"),delete l._dbSchema.$meta,l._storeNames=l._storeNames.filter(function(_){return _!=="$meta"})):k.objectStore("$meta").put(j._cfg.version,"version"))})}),function j(){return x.length?D.resolve(x.shift()(p.idbtrans)).then(j):D.resolve()}().then(function(){Sr(y,v)})):D.resolve();var l,w,p,v,x,y}).catch(i)):(O(o).forEach(function(g){zn(n,g,o[g].primKey,o[g].indexes)}),nn(e,n),void D.follow(function(){return e.on.populate.fire(a)}).catch(i));var h,m})}function Mo(e,t){Sr(e._dbSchema,t),t.db.version%10!=0||t.objectStoreNames.contains("$meta")||t.db.createObjectStore("$meta").add(Math.ceil(t.db.version/10-1),"version");var n=an(0,e.idbdb,t);sn(e,e._dbSchema,t);for(var r=0,o=Ln(n,e._dbSchema).change;r<o.length;r++){var a=function(i){if(i.change.length||i.recreate)return console.warn("Unable to patch indexes of table ".concat(i.name," because it has changes on the type of index or primary key.")),{value:void 0};var c=t.objectStore(i.name);i.add.forEach(function(h){Fe&&console.debug("Dexie upgrade patch: Creating missing index ".concat(i.name,".").concat(h.src)),on(c,h)})}(o[r]);if(typeof a=="object")return a.value}}function Ln(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var o=e[n],a=t[n];if(o){var i={name:n,def:a,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(a.primKey.keyPath||"")||o.primKey.auto!==a.primKey.auto)i.recreate=!0,r.change.push(i);else{var c=o.idxByName,h=a.idxByName,m=void 0;for(m in c)h[m]||i.del.push(m);for(m in h){var g=c[m],l=h[m];g?g.src!==l.src&&i.change.push(l):i.add.push(l)}(0<i.del.length||0<i.add.length||0<i.change.length)&&r.change.push(i)}}else r.add.push([n,a])}return r}function zn(e,t,n,r){var o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(a){return on(o,a)}),o}function Sr(e,t){O(e).forEach(function(n){t.db.objectStoreNames.contains(n)||(Fe&&console.debug("Dexie: Creating missing table",n),zn(t,n,e[n].primKey,e[n].indexes))})}function on(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function an(e,t,n){var r={};return ie(t.objectStoreNames,0).forEach(function(o){for(var a=n.objectStore(o),i=Dn(Nr(m=a.keyPath),m||"",!0,!1,!!a.autoIncrement,m&&typeof m!="string",!0),c=[],h=0;h<a.indexNames.length;++h){var g=a.index(a.indexNames[h]),m=g.keyPath,g=Dn(g.name,m,!!g.unique,!!g.multiEntry,!1,m&&typeof m!="string",!1);c.push(g)}r[o]=In(o,i,c)}),r}function sn(e,t,n){for(var r=n.db.objectStoreNames,o=0;o<r.length;++o){var a=r[o],i=n.objectStore(a);e._hasGetAll="getAll"in i;for(var c=0;c<i.indexNames.length;++c){var h=i.indexNames[c],m=i.index(h).keyPath,g=typeof m=="string"?m:"["+ie(m).join("+")+"]";!t[a]||(m=t[a].idxByName[g])&&(m.name=h,delete t[a].idxByName[g],t[a].idxByName[h]=m)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&C.WorkerGlobalScope&&C instanceof C.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function Er(e){return e.split(",").map(function(t,n){var r=(t=t.trim()).replace(/([&*]|\+\+)/g,""),o=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return Dn(r,o||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),P(o),n===0)})}var qo=(un.prototype._parseStoresSpec=function(e,t){O(e).forEach(function(n){if(e[n]!==null){var r=Er(e[n]),o=r.shift();if(o.unique=!0,o.multi)throw new U.Schema("Primary key cannot be multi-valued");r.forEach(function(a){if(a.auto)throw new U.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new U.Schema("Index must have a name and cannot be an empty string")}),t[n]=In(n,o,r)}})},un.prototype.stores=function(n){var t=this.db;this._cfg.storesSource=this._cfg.storesSource?I(this._cfg.storesSource,n):n;var n=t._versions,r={},o={};return n.forEach(function(a){I(r,a._cfg.storesSource),o=a._cfg.dbschema={},a._parseStoresSpec(r,o)}),t._dbSchema=o,Fn(t,[t._allTables,t,t.Transaction.prototype]),rn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],O(o),o),t._storeNames=O(o),this},un.prototype.upgrade=function(e){return this._cfg.contentUpgrade=jn(this._cfg.contentUpgrade||ue,e),this},un);function un(){}function Qn(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new Ve(Jt,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function Hn(e){return e&&typeof e.databases=="function"}function Un(e){return Ye(function(){return H.letThrough=!0,e()})}function Vn(e){return!("from"in e)}var _e=function(e,t){if(!this){var n=new _e;return e&&"d"in e&&I(n,e),n}I(this,arguments.length?{d:1,from:e,to:1<arguments.length?t:e}:{d:0})};function Kt(e,t,n){var r=te(t,n);if(!isNaN(r)){if(0<r)throw RangeError();if(Vn(e))return I(e,{from:t,to:n,d:1});var o=e.l,r=e.r;if(te(n,e.from)<0)return o?Kt(o,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Mr(e);if(0<te(t,e.to))return r?Kt(r,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Mr(e);te(t,e.from)<0&&(e.from=t,e.l=null,e.d=r?r.d+1:1),0<te(n,e.to)&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1),n=!e.r,o&&!e.l&&Bt(e,o),r&&n&&Bt(e,r)}}function Bt(e,t){Vn(t)||function n(r,h){var a=h.from,i=h.to,c=h.l,h=h.r;Kt(r,a,i),c&&n(r,c),h&&n(r,h)}(e,t)}function Rr(e,t){var n=cn(t),r=n.next();if(r.done)return!1;for(var o=r.value,a=cn(e),i=a.next(o.from),c=i.value;!r.done&&!i.done;){if(te(c.from,o.to)<=0&&0<=te(c.to,o.from))return!0;te(o.from,c.from)<0?o=(r=n.next(c.from)).value:c=(i=a.next(o.from)).value}return!1}function cn(e){var t=Vn(e)?null:{s:0,n:e};return{next:function(n){for(var r=0<arguments.length;t;)switch(t.s){case 0:if(t.s=1,r)for(;t.n.l&&te(n,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!r||te(n,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Mr(e){var t,n,r=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((n=e.l)===null||n===void 0?void 0:n.d)||0),o=1<r?"r":r<-1?"l":"";o&&(t=o=="r"?"l":"r",n=b({},e),r=e[o],e.from=r.from,e.to=r.to,e[o]=r[o],n[o]=r[t],(e[t]=n).d=qr(n)),e.d=qr(e)}function qr(n){var t=n.r,n=n.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}function ln(e,t){return O(t).forEach(function(n){e[n]?Bt(e[n],t[n]):e[n]=function r(o){var a,i,c={};for(a in o)L(o,a)&&(i=o[a],c[a]=!i||typeof i!="object"||Oe.has(i.constructor)?i:r(i));return c}(t[n])}),e}function Wn(e,t){return e.all||t.all||Object.keys(e).some(function(n){return t[n]&&Rr(t[n],e[n])})}Q(_e.prototype,((Be={add:function(e){return Bt(this,e),this},addKey:function(e){return Kt(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(n){return Kt(t,n,n)}),this},hasKey:function(e){var t=cn(this).next(e).value;return t&&te(t.from,e)<=0&&0<=te(t.to,e)}})[ce]=function(){return cn(this)},Be));var lt={},Yn={},Xn=!1;function fn(e){ln(Yn,e),Xn||(Xn=!0,setTimeout(function(){Xn=!1,Gn(Yn,!(Yn={}))},0))}function Gn(e,t){t===void 0&&(t=!1);var n=new Set;if(e.all)for(var r=0,o=Object.values(lt);r<o.length;r++)Kr(i=o[r],e,n,t);else for(var a in e){var i,c=/^idb\:\/\/(.*)\/(.*)\//.exec(a);c&&(a=c[1],c=c[2],(i=lt["idb://".concat(a,"/").concat(c)])&&Kr(i,e,n,t))}n.forEach(function(h){return h()})}function Kr(e,t,n,r){for(var o=[],a=0,i=Object.entries(e.queries.query);a<i.length;a++){for(var c=i[a],h=c[0],m=[],g=0,l=c[1];g<l.length;g++){var w=l[g];Wn(t,w.obsSet)?w.subscribers.forEach(function(y){return n.add(y)}):r&&m.push(w)}r&&o.push([h,m])}if(r)for(var p=0,v=o;p<v.length;p++){var x=v[p],h=x[0],m=x[1];e.queries.query[h]=m}}function Ko(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?me(t.dbOpenError):e});t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller,o=Math.round(10*e.verno),a=!1;function i(){if(t.openCanceller!==r)throw new U.DatabaseClosed("db.open() was cancelled")}function c(){return new D(function(w,p){if(i(),!n)throw new U.MissingAPI;var v=e.name,x=t.autoSchema||!o?n.open(v):n.open(v,o);if(!x)throw new U.MissingAPI;x.onerror=Le(p),x.onblocked=he(e._fireOnBlocked),x.onupgradeneeded=he(function(y){var j;g=x.transaction,t.autoSchema&&!e._options.allowEmptyDB?(x.onerror=Et,g.abort(),x.result.close(),(j=n.deleteDatabase(v)).onsuccess=j.onerror=he(function(){p(new U.NoSuchDatabase("Database ".concat(v," doesnt exist")))})):(g.onerror=Le(p),y=y.oldVersion>Math.pow(2,62)?0:y.oldVersion,l=y<1,e.idbdb=x.result,a&&Mo(e,g),Ro(e,y/10,g,p))},p),x.onsuccess=he(function(){g=null;var y,j,k,_,N,S=e.idbdb=x.result,K=ie(S.objectStoreNames);if(0<K.length)try{var E=S.transaction((_=K).length===1?_[0]:_,"readonly");if(t.autoSchema)j=S,k=E,(y=e).verno=j.version/10,k=y._dbSchema=an(0,j,k),y._storeNames=ie(j.objectStoreNames,0),rn(y,[y._allTables],O(k),k);else if(sn(e,e._dbSchema,E),((N=Ln(an(0,(N=e).idbdb,E),N._dbSchema)).add.length||N.change.some(function(R){return R.add.length||R.change.length}))&&!a)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),S.close(),o=S.version+1,a=!0,w(c());nn(e,E)}catch{}gt.push(e),S.onversionchange=he(function(R){t.vcFired=!0,e.on("versionchange").fire(R)}),S.onclose=he(function(R){e.on("close").fire(R)}),l&&(N=e._deps,E=v,S=N.indexedDB,N=N.IDBKeyRange,Hn(S)||E===Jt||Qn(S,N).put({name:E}).catch(ue)),w()},p)}).catch(function(w){switch(w?.name){case"UnknownError":if(0<t.PR1398_maxLoop)return t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),c();break;case"VersionError":if(0<o)return o=0,c()}return D.reject(w)})}var h,m=t.dbReadyResolve,g=null,l=!1;return D.race([r,(typeof navigator>"u"?D.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(w){function p(){return indexedDB.databases().finally(w)}h=setInterval(p,100),p()}).finally(function(){return clearInterval(h)}):Promise.resolve()).then(c)]).then(function(){return i(),t.onReadyBeingFired=[],D.resolve(Un(function(){return e.on.ready.fire(e.vip)})).then(function w(){if(0<t.onReadyBeingFired.length){var p=t.onReadyBeingFired.reduce(jn,ue);return t.onReadyBeingFired=[],D.resolve(Un(function(){return p(e.vip)})).then(w)}})}).finally(function(){t.openCanceller===r&&(t.onReadyBeingFired=null,t.isBeingOpened=!1)}).catch(function(w){t.dbOpenError=w;try{g&&g.abort()}catch{}return r===t.openCanceller&&e._close(),me(w)}).finally(function(){t.openComplete=!0,m()}).then(function(){var w;return l&&(w={},e.tables.forEach(function(p){p.schema.indexes.forEach(function(v){v.name&&(w["idb://".concat(e.name,"/").concat(p.name,"/").concat(v.name)]=new _e(-1/0,[[[]]]))}),w["idb://".concat(e.name,"/").concat(p.name,"/")]=w["idb://".concat(e.name,"/").concat(p.name,"/:dels")]=new _e(-1/0,[[[]]])}),Ze(Rt).fire(w),Gn(w,!0)),e})}function Jn(e){function t(a){return e.next(a)}var n=o(t),r=o(function(a){return e.throw(a)});function o(a){return function(h){var c=a(h),h=c.value;return c.done?h:h&&typeof h.then=="function"?h.then(n,r):P(h)?Promise.all(h).then(n,r):n(h)}}return o(t)()}function dn(e,t,n){for(var r=P(e)?e.slice():[e],o=0;o<n;++o)r.push(t);return r}var Bo={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return b(b({},e),{table:function(t){var n=e.table(t),r=n.schema,o={},a=[];function i(l,w,p){var v=qt(l),x=o[v]=o[v]||[],y=l==null?0:typeof l=="string"?1:l.length,j=0<w,j=b(b({},p),{name:j?"".concat(v,"(virtual-from:").concat(p.name,")"):p.name,lowLevelIndex:p,isVirtual:j,keyTail:w,keyLength:y,extractKey:Tn(l),unique:!j&&p.unique});return x.push(j),j.isPrimaryKey||a.push(j),1<y&&i(y===2?l[0]:l.slice(0,y-1),w+1,p),x.sort(function(k,_){return k.keyTail-_.keyTail}),j}t=i(r.primaryKey.keyPath,0,r.primaryKey),o[":id"]=[t];for(var c=0,h=r.indexes;c<h.length;c++){var m=h[c];i(m.keyPath,0,m)}function g(l){var w,p=l.query.index;return p.isVirtual?b(b({},l),{query:{index:p.lowLevelIndex,range:(w=l.query.range,p=p.keyTail,{type:w.type===1?2:w.type,lower:dn(w.lower,w.lowerOpen?e.MAX_KEY:e.MIN_KEY,p),lowerOpen:!0,upper:dn(w.upper,w.upperOpen?e.MIN_KEY:e.MAX_KEY,p),upperOpen:!0})}}):l}return b(b({},n),{schema:b(b({},r),{primaryKey:t,indexes:a,getIndexByKeyPath:function(l){return(l=o[qt(l)])&&l[0]}}),count:function(l){return n.count(g(l))},query:function(l){return n.query(g(l))},openCursor:function(l){var w=l.query.index,p=w.keyTail,v=w.isVirtual,x=w.keyLength;return v?n.openCursor(g(l)).then(function(j){return j&&y(j)}):n.openCursor(l);function y(j){return Object.create(j,{continue:{value:function(k){k!=null?j.continue(dn(k,l.reverse?e.MAX_KEY:e.MIN_KEY,p)):l.unique?j.continue(j.key.slice(0,x).concat(l.reverse?e.MIN_KEY:e.MAX_KEY,p)):j.continue()}},continuePrimaryKey:{value:function(k,_){j.continuePrimaryKey(dn(k,e.MAX_KEY,p),_)}},primaryKey:{get:function(){return j.primaryKey}},key:{get:function(){var k=j.key;return x===1?k[0]:k.slice(0,x)}},value:{get:function(){return j.value}}})}}})}})}};function Zn(e,t,n,r){return n=n||{},r=r||"",O(e).forEach(function(o){var a,i,c;L(t,o)?(a=e[o],i=t[o],typeof a=="object"&&typeof i=="object"&&a&&i?(c=Y(a))!==Y(i)?n[r+o]=t[o]:c==="Object"?Zn(a,i,n,r+o+"."):a!==i&&(n[r+o]=t[o]):a!==i&&(n[r+o]=t[o])):n[r+o]=void 0}),O(t).forEach(function(o){L(e,o)||(n[r+o]=t[o])}),n}function $n(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var Do={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return b(b({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey;return b(b({},n),{mutate:function(o){var a=H.trans,i=a.table(t).hook,c=i.deleting,h=i.creating,m=i.updating;switch(o.type){case"add":if(h.fire===ue)break;return a._promise("readwrite",function(){return g(o)},!0);case"put":if(h.fire===ue&&m.fire===ue)break;return a._promise("readwrite",function(){return g(o)},!0);case"delete":if(c.fire===ue)break;return a._promise("readwrite",function(){return g(o)},!0);case"deleteRange":if(c.fire===ue)break;return a._promise("readwrite",function(){return function l(w,p,v){return n.query({trans:w,values:!1,query:{index:r,range:p},limit:v}).then(function(x){var y=x.result;return g({type:"delete",keys:y,trans:w}).then(function(j){return 0<j.numFailures?Promise.reject(j.failures[0]):y.length<v?{failures:[],numFailures:0,lastResult:void 0}:l(w,b(b({},p),{lower:y[y.length-1],lowerOpen:!0}),v)})})}(o.trans,o.range,1e4)},!0)}return n.mutate(o);function g(l){var w,p,v,x=H.trans,y=l.keys||$n(r,l);if(!y)throw new Error("Keys missing");return(l=l.type==="add"||l.type==="put"?b(b({},l),{keys:y}):b({},l)).type!=="delete"&&(l.values=A([],l.values)),l.keys&&(l.keys=A([],l.keys)),w=n,v=y,((p=l).type==="add"?Promise.resolve([]):w.getMany({trans:p.trans,keys:v,cache:"immutable"})).then(function(j){var k=y.map(function(_,N){var S,K,E,R=j[N],B={onerror:null,onsuccess:null};return l.type==="delete"?c.fire.call(B,_,R,x):l.type==="add"||R===void 0?(S=h.fire.call(B,_,l.values[N],x),_==null&&S!=null&&(l.keys[N]=_=S,r.outbound||X(l.values[N],r.keyPath,_))):(S=Zn(R,l.values[N]),(K=m.fire.call(B,S,_,R,x))&&(E=l.values[N],Object.keys(K).forEach(function(M){L(E,M)?E[M]=K[M]:X(E,M,K[M])}))),B});return n.mutate(l).then(function(_){for(var N=_.failures,S=_.results,K=_.numFailures,_=_.lastResult,E=0;E<y.length;++E){var R=(S||y)[E],B=k[E];R==null?B.onerror&&B.onerror(N[E]):B.onsuccess&&B.onsuccess(l.type==="put"&&j[E]?l.values[E]:R)}return{failures:N,results:S,numFailures:K,lastResult:_}}).catch(function(_){return k.forEach(function(N){return N.onerror&&N.onerror(_)}),Promise.reject(_)})})}}})}})}};function Br(e,t,n){try{if(!t||t.keys.length<e.length)return null;for(var r=[],o=0,a=0;o<t.keys.length&&a<e.length;++o)te(t.keys[o],e[a])===0&&(r.push(n?Ke(t.values[o]):t.values[o]),++a);return r.length===e.length?r:null}catch{return null}}var Io={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return b(b({},n),{getMany:function(r){if(!r.cache)return n.getMany(r);var o=Br(r.keys,r.trans._cache,r.cache==="clone");return o?D.resolve(o):n.getMany(r).then(function(a){return r.trans._cache={keys:r.keys,values:r.cache==="clone"?Ke(a):a},a})},mutate:function(r){return r.type!=="add"&&(r.trans._cache=null),n.mutate(r)}})}}}};function Dr(e,t){return e.trans.mode==="readonly"&&!!e.subscr&&!e.trans.explicit&&e.trans.db._options.cache!=="disabled"&&!t.schema.primaryKey.outbound}function Ir(e,t){switch(e){case"query":return t.values&&!t.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var To={stack:"dbcore",level:0,name:"Observability",create:function(e){var t=e.schema.name,n=new _e(e.MIN_KEY,e.MAX_KEY);return b(b({},e),{transaction:function(r,o,a){if(H.subscr&&o!=="readonly")throw new U.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(H.querier));return e.transaction(r,o,a)},table:function(r){var o=e.table(r),a=o.schema,i=a.primaryKey,l=a.indexes,c=i.extractKey,h=i.outbound,m=i.autoIncrement&&l.filter(function(p){return p.compound&&p.keyPath.includes(i.keyPath)}),g=b(b({},o),{mutate:function(p){function v(M){return M="idb://".concat(t,"/").concat(r,"/").concat(M),_[M]||(_[M]=new _e)}var x,y,j,k=p.trans,_=p.mutatedParts||(p.mutatedParts={}),N=v(""),S=v(":dels"),K=p.type,B=p.type==="deleteRange"?[p.range]:p.type==="delete"?[p.keys]:p.values.length<50?[$n(i,p).filter(function(M){return M}),p.values]:[],E=B[0],R=B[1],B=p.trans._cache;return P(E)?(N.addKeys(E),(B=K==="delete"||E.length===R.length?Br(E,B):null)||S.addKeys(E),(B||R)&&(x=v,y=B,j=R,a.indexes.forEach(function(M){var T=x(M.name||"");function W(Z){return Z!=null?M.extractKey(Z):null}function J(Z){return M.multiEntry&&P(Z)?Z.forEach(function(Re){return T.addKey(Re)}):T.addKey(Z)}(y||j).forEach(function(Z,Ae){var V=y&&W(y[Ae]),Ae=j&&W(j[Ae]);te(V,Ae)!==0&&(V!=null&&J(V),Ae!=null&&J(Ae))})}))):E?(R={from:(R=E.lower)!==null&&R!==void 0?R:e.MIN_KEY,to:(R=E.upper)!==null&&R!==void 0?R:e.MAX_KEY},S.add(R),N.add(R)):(N.add(n),S.add(n),a.indexes.forEach(function(M){return v(M.name).add(n)})),o.mutate(p).then(function(M){return!E||p.type!=="add"&&p.type!=="put"||(N.addKeys(M.results),m&&m.forEach(function(T){for(var W=p.values.map(function(V){return T.extractKey(V)}),J=T.keyPath.findIndex(function(V){return V===i.keyPath}),Z=0,Re=M.results.length;Z<Re;++Z)W[Z][J]=M.results[Z];v(T.name).addKeys(W)})),k.mutatedParts=ln(k.mutatedParts||{},_),M})}}),l=function(v){var x=v.query,v=x.index,x=x.range;return[v,new _e((v=x.lower)!==null&&v!==void 0?v:e.MIN_KEY,(x=x.upper)!==null&&x!==void 0?x:e.MAX_KEY)]},w={get:function(p){return[i,new _e(p.key)]},getMany:function(p){return[i,new _e().addKeys(p.keys)]},count:l,query:l,openCursor:l};return O(w).forEach(function(p){g[p]=function(v){var x=H.subscr,y=!!x,j=Dr(H,o)&&Ir(p,v)?v.obsSet={}:x;if(y){var k=function(R){return R="idb://".concat(t,"/").concat(r,"/").concat(R),j[R]||(j[R]=new _e)},_=k(""),N=k(":dels"),x=w[p](v),y=x[0],x=x[1];if((p==="query"&&y.isPrimaryKey&&!v.values?N:k(y.name||"")).add(x),!y.isPrimaryKey){if(p!=="count"){var S=p==="query"&&h&&v.values&&o.query(b(b({},v),{values:!1}));return o[p].apply(this,arguments).then(function(R){if(p==="query"){if(h&&v.values)return S.then(function(W){return W=W.result,_.addKeys(W),R});var B=v.values?R.result.map(c):R.result;(v.values?_:N).addKeys(B)}else if(p==="openCursor"){var M=R,T=v.values;return M&&Object.create(M,{key:{get:function(){return N.addKey(M.primaryKey),M.key}},primaryKey:{get:function(){var W=M.primaryKey;return N.addKey(W),W}},value:{get:function(){return T&&_.addKey(M.primaryKey),M.value}}})}return R})}N.add(n)}}return o[p].apply(this,arguments)}}),g}})}};function Tr(e,t,n){if(n.numFailures===0)return t;if(t.type==="deleteRange")return null;var r=t.keys?t.keys.length:"values"in t&&t.values?t.values.length:1;return n.numFailures===r?null:(t=b({},t),P(t.keys)&&(t.keys=t.keys.filter(function(o,a){return!(a in n.failures)})),"values"in t&&P(t.values)&&(t.values=t.values.filter(function(o,a){return!(a in n.failures)})),t)}function er(e,t){return n=e,((r=t).lower===void 0||(r.lowerOpen?0<te(n,r.lower):0<=te(n,r.lower)))&&(e=e,(t=t).upper===void 0||(t.upperOpen?te(e,t.upper)<0:te(e,t.upper)<=0));var n,r}function Fr(e,t,w,r,o,a){if(!w||w.length===0)return e;var i=t.query.index,c=i.multiEntry,h=t.query.range,m=r.schema.primaryKey.extractKey,g=i.extractKey,l=(i.lowLevelIndex||i).extractKey,w=w.reduce(function(p,v){var x=p,y=[];if(v.type==="add"||v.type==="put")for(var j=new _e,k=v.values.length-1;0<=k;--k){var _,N=v.values[k],S=m(N);j.hasKey(S)||(_=g(N),(c&&P(_)?_.some(function(M){return er(M,h)}):er(_,h))&&(j.addKey(S),y.push(N)))}switch(v.type){case"add":var K=new _e().addKeys(t.values?p.map(function(T){return m(T)}):p),x=p.concat(t.values?y.filter(function(T){return T=m(T),!K.hasKey(T)&&(K.addKey(T),!0)}):y.map(function(T){return m(T)}).filter(function(T){return!K.hasKey(T)&&(K.addKey(T),!0)}));break;case"put":var E=new _e().addKeys(v.values.map(function(T){return m(T)}));x=p.filter(function(T){return!E.hasKey(t.values?m(T):T)}).concat(t.values?y:y.map(function(T){return m(T)}));break;case"delete":var R=new _e().addKeys(v.keys);x=p.filter(function(T){return!R.hasKey(t.values?m(T):T)});break;case"deleteRange":var B=v.range;x=p.filter(function(T){return!er(m(T),B)})}return x},e);return w===e?e:(w.sort(function(p,v){return te(l(p),l(v))||te(m(p),m(v))}),t.limit&&t.limit<1/0&&(w.length>t.limit?w.length=t.limit:e.length===t.limit&&w.length<t.limit&&(o.dirty=!0)),a?Object.freeze(w):w)}function Lr(e,t){return te(e.lower,t.lower)===0&&te(e.upper,t.upper)===0&&!!e.lowerOpen==!!t.lowerOpen&&!!e.upperOpen==!!t.upperOpen}function Fo(e,t){return function(n,r,o,a){if(n===void 0)return r!==void 0?-1:0;if(r===void 0)return 1;if((r=te(n,r))===0){if(o&&a)return 0;if(o)return 1;if(a)return-1}return r}(e.lower,t.lower,e.lowerOpen,t.lowerOpen)<=0&&0<=function(n,r,o,a){if(n===void 0)return r!==void 0?1:0;if(r===void 0)return-1;if((r=te(n,r))===0){if(o&&a)return 0;if(o)return-1;if(a)return 1}return r}(e.upper,t.upper,e.upperOpen,t.upperOpen)}function Lo(e,t,n,r){e.subscribers.add(n),r.addEventListener("abort",function(){var o,a;e.subscribers.delete(n),e.subscribers.size===0&&(o=e,a=t,setTimeout(function(){o.subscribers.size===0&&Pe(a,o)},3e3))})}var zo={stack:"dbcore",level:0,name:"Cache",create:function(e){var t=e.schema.name;return b(b({},e),{transaction:function(n,r,o){var a,i,c=e.transaction(n,r,o);return r==="readwrite"&&(i=(a=new AbortController).signal,o=function(h){return function(){if(a.abort(),r==="readwrite"){for(var m=new Set,g=0,l=n;g<l.length;g++){var w=l[g],p=lt["idb://".concat(t,"/").concat(w)];if(p){var v=e.table(w),x=p.optimisticOps.filter(function(T){return T.trans===c});if(c._explicit&&h&&c.mutatedParts)for(var y=0,j=Object.values(p.queries.query);y<j.length;y++)for(var k=0,_=(K=j[y]).slice();k<_.length;k++)Wn((E=_[k]).obsSet,c.mutatedParts)&&(Pe(K,E),E.subscribers.forEach(function(T){return m.add(T)}));else if(0<x.length){p.optimisticOps=p.optimisticOps.filter(function(T){return T.trans!==c});for(var N=0,S=Object.values(p.queries.query);N<S.length;N++)for(var K,E,R,B=0,M=(K=S[N]).slice();B<M.length;B++)(E=M[B]).res!=null&&c.mutatedParts&&(h&&!E.dirty?(R=Object.isFrozen(E.res),R=Fr(E.res,E.req,x,v,E,R),E.dirty?(Pe(K,E),E.subscribers.forEach(function(T){return m.add(T)})):R!==E.res&&(E.res=R,E.promise=D.resolve({result:R}))):(E.dirty&&Pe(K,E),E.subscribers.forEach(function(T){return m.add(T)})))}}}m.forEach(function(T){return T()})}}},c.addEventListener("abort",o(!1),{signal:i}),c.addEventListener("error",o(!1),{signal:i}),c.addEventListener("complete",o(!0),{signal:i})),c},table:function(n){var r=e.table(n),o=r.schema.primaryKey;return b(b({},r),{mutate:function(a){var i=H.trans;if(o.outbound||i.db._options.cache==="disabled"||i.explicit||i.idbtrans.mode!=="readwrite")return r.mutate(a);var c=lt["idb://".concat(t,"/").concat(n)];return c?(i=r.mutate(a),a.type!=="add"&&a.type!=="put"||!(50<=a.values.length||$n(o,a).some(function(h){return h==null}))?(c.optimisticOps.push(a),a.mutatedParts&&fn(a.mutatedParts),i.then(function(h){0<h.numFailures&&(Pe(c.optimisticOps,a),(h=Tr(0,a,h))&&c.optimisticOps.push(h),a.mutatedParts&&fn(a.mutatedParts))}),i.catch(function(){Pe(c.optimisticOps,a),a.mutatedParts&&fn(a.mutatedParts)})):i.then(function(h){var m=Tr(0,b(b({},a),{values:a.values.map(function(g,l){var w;return h.failures[l]||(g=(w=o.keyPath)!==null&&w!==void 0&&w.includes(".")?Ke(g):b({},g),X(g,o.keyPath,h.results[l])),g})}),h);c.optimisticOps.push(m),queueMicrotask(function(){return a.mutatedParts&&fn(a.mutatedParts)})}),i):r.mutate(a)},query:function(a){if(!Dr(H,r)||!Ir("query",a))return r.query(a);var i=((m=H.trans)===null||m===void 0?void 0:m.db._options.cache)==="immutable",l=H,c=l.requery,h=l.signal,m=function(v,x,y,j){var k=lt["idb://".concat(v,"/").concat(x)];if(!k)return[];if(!(x=k.queries[y]))return[null,!1,k,null];var _=x[(j.query?j.query.index.name:null)||""];if(!_)return[null,!1,k,null];switch(y){case"query":var N=_.find(function(S){return S.req.limit===j.limit&&S.req.values===j.values&&Lr(S.req.query.range,j.query.range)});return N?[N,!0,k,_]:[_.find(function(S){return("limit"in S.req?S.req.limit:1/0)>=j.limit&&(!j.values||S.req.values)&&Fo(S.req.query.range,j.query.range)}),!1,k,_];case"count":return N=_.find(function(S){return Lr(S.req.query.range,j.query.range)}),[N,!!N,k,_]}}(t,n,"query",a),g=m[0],l=m[1],w=m[2],p=m[3];return g&&l?g.obsSet=a.obsSet:(l=r.query(a).then(function(v){var x=v.result;if(g&&(g.res=x),i){for(var y=0,j=x.length;y<j;++y)Object.freeze(x[y]);Object.freeze(x)}else v.result=Ke(x);return v}).catch(function(v){return p&&g&&Pe(p,g),Promise.reject(v)}),g={obsSet:a.obsSet,promise:l,subscribers:new Set,type:"query",req:a,dirty:!1},p?p.push(g):(p=[g],(w=w||(lt["idb://".concat(t,"/").concat(n)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[a.query.index.name||""]=p)),Lo(g,p,c,h),g.promise.then(function(v){return{result:Fr(v.result,a,w?.optimisticOps,r,g,i)}})}})}})}};function hn(e,t){return new Proxy(e,{get:function(n,r,o){return r==="db"?t:Reflect.get(n,r,o)}})}var Ve=(ye.prototype.version=function(e){if(isNaN(e)||e<.1)throw new U.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new U.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);var t=this._versions,n=t.filter(function(r){return r._cfg.version===e})[0];return n||(n=new this.Version(e),t.push(n),t.sort(Eo),n.stores({}),this._state.autoSchema=!1,n)},ye.prototype._whenReady=function(e){var t=this;return this.idbdb&&(this._state.openComplete||H.letThrough||this._vip)?e():new D(function(n,r){if(t._state.openComplete)return r(new U.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._state.autoOpen)return void r(new U.DatabaseClosed);t.open().catch(ue)}t._state.dbReadyPromise.then(n,r)}).then(e)},ye.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,o=e.name;return o&&this.unuse({stack:t,name:o}),e=this._middlewares[t]||(this._middlewares[t]=[]),e.push({stack:t,create:n,level:r??10,name:o}),e.sort(function(a,i){return a.level-i.level}),this},ye.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(function(o){return r?o.create!==r:!!n&&o.name!==n})),this},ye.prototype.open=function(){var e=this;return st(We,function(){return Ko(e)})},ye.prototype._close=function(){var e=this._state,t=gt.indexOf(this);if(0<=t&&gt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}e.isBeingOpened||(e.dbReadyPromise=new D(function(n){e.dbReadyResolve=n}),e.openCanceller=new D(function(n,r){e.cancelOpen=r}))},ye.prototype.close=function(n){var t=(n===void 0?{disableAutoOpen:!0}:n).disableAutoOpen,n=this._state;t?(n.isBeingOpened&&n.cancelOpen(new U.DatabaseClosed),this._close(),n.autoOpen=!1,n.dbOpenError=new U.DatabaseClosed):(this._close(),n.autoOpen=this._options.autoOpen||n.isBeingOpened,n.openComplete=!1,n.dbOpenError=null)},ye.prototype.delete=function(e){var t=this;e===void 0&&(e={disableAutoOpen:!0});var n=0<arguments.length&&typeof arguments[0]!="object",r=this._state;return new D(function(o,a){function i(){t.close(e);var c=t._deps.indexedDB.deleteDatabase(t.name);c.onsuccess=he(function(){var h,m,g;h=t._deps,m=t.name,g=h.indexedDB,h=h.IDBKeyRange,Hn(g)||m===Jt||Qn(g,h).delete(m).catch(ue),o()}),c.onerror=Le(a),c.onblocked=t._fireOnBlocked}if(n)throw new U.InvalidArgument("Invalid closeOptions argument to db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})},ye.prototype.backendDB=function(){return this.idbdb},ye.prototype.isOpen=function(){return this.idbdb!==null},ye.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&e.name==="DatabaseClosed"},ye.prototype.hasFailed=function(){return this._state.dbOpenError!==null},ye.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(ye.prototype,"tables",{get:function(){var e=this;return O(this._allTables).map(function(t){return e._allTables[t]})},enumerable:!1,configurable:!0}),ye.prototype.transaction=function(){var e=function(t,n,r){var o=arguments.length;if(o<2)throw new U.InvalidArgument("Too few arguments");for(var a=new Array(o-1);--o;)a[o-1]=arguments[o];return r=a.pop(),[t,ne(a),r]}.apply(this,arguments);return this._transaction.apply(this,e)},ye.prototype._transaction=function(e,t,n){var r=this,o=H.trans;o&&o.db===this&&e.indexOf("!")===-1||(o=null);var a,i,c=e.indexOf("?")!==-1;e=e.replace("!","").replace("?","");try{if(i=t.map(function(m){if(m=m instanceof r.Table?m.name:m,typeof m!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return m}),e=="r"||e===En)a=En;else{if(e!="rw"&&e!=Rn)throw new U.InvalidArgument("Invalid transaction mode: "+e);a=Rn}if(o){if(o.mode===En&&a===Rn){if(!c)throw new U.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&i.forEach(function(m){if(o&&o.storeNames.indexOf(m)===-1){if(!c)throw new U.SubTransaction("Table "+m+" not included in parent transaction.");o=null}}),c&&o&&!o.active&&(o=null)}}catch(m){return o?o._promise(null,function(g,l){l(m)}):me(m)}var h=function m(g,l,w,p,v){return D.resolve().then(function(){var x=H.transless||H,y=g._createTransaction(l,w,g._dbSchema,p);if(y.explicit=!0,x={trans:y,transless:x},p)y.idbtrans=p.idbtrans;else try{y.create(),y.idbtrans._explicit=!0,g._state.PR1398_maxLoop=3}catch(_){return _.name===wn.InvalidState&&g.isOpen()&&0<--g._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),g.close({disableAutoOpen:!1}),g.open().then(function(){return m(g,l,w,null,v)})):me(_)}var j,k=re(v);return k&&vt(),x=D.follow(function(){var _;(j=v.call(y,y))&&(k?(_=Xe.bind(null,null),j.then(_,_)):typeof j.next=="function"&&typeof j.throw=="function"&&(j=Jn(j)))},x),(j&&typeof j.then=="function"?D.resolve(j).then(function(_){return y.active?_:me(new U.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):x.then(function(){return j})).then(function(_){return p&&y._resolve(),y._completion.then(function(){return _})}).catch(function(_){return y._reject(_),me(_)})})}.bind(null,this,a,i,o,n);return o?o._promise(a,h,"lock"):H.trans?st(H.transless,function(){return r._whenReady(h)}):this._whenReady(h)},ye.prototype.table=function(e){if(!L(this._allTables,e))throw new U.InvalidTable("Table ".concat(e," does not exist"));return this._allTables[e]},ye);function ye(e,t){var n=this;this._middlewares={},this.verno=0;var r=ye.dependencies;this._options=t=b({addons:ye.addons,autoOpen:!0,indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange,cache:"cloned"},t),this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange},r=t.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var o,a,i,c,h,m={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ue,dbReadyPromise:null,cancelOpen:ue,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:t.autoOpen};m.dbReadyPromise=new D(function(l){m.dbReadyResolve=l}),m.openCanceller=new D(function(l,w){m.cancelOpen=w}),this._state=m,this.name=e,this.on=Nt(this,"populate","blocked","versionchange","close",{ready:[jn,ue]}),this.on.ready.subscribe=ke(this.on.ready.subscribe,function(l){return function(w,p){ye.vip(function(){var v,x=n._state;x.openComplete?(x.dbOpenError||D.resolve().then(w),p&&l(w)):x.onReadyBeingFired?(x.onReadyBeingFired.push(w),p&&l(w)):(l(w),v=n,p||l(function y(){v.on.ready.unsubscribe(w),v.on.ready.unsubscribe(y)}))})}}),this.Collection=(o=this,Pt(_o.prototype,function(j,y){this.db=o;var p=gr,v=null;if(y)try{p=y()}catch(k){v=k}var x=j._ctx,y=x.table,j=y.hook.reading.fire;this._ctx={table:y,index:x.index,isPrimKey:!x.index||y.schema.primKey.keyPath&&x.index===y.schema.primKey.name,range:p,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:v,or:x.or,valueMapper:j!==kt?j:null}})),this.Table=(a=this,Pt(jr.prototype,function(l,w,p){this.db=a,this._tx=p,this.name=l,this.schema=w,this.hook=a._allTables[l]?a._allTables[l].hook:Nt(null,{creating:[mo,ue],reading:[po,kt],updating:[vo,ue],deleting:[yo,ue]})})),this.Transaction=(i=this,Pt(Oo.prototype,function(l,w,p,v,x){var y=this;this.db=i,this.mode=l,this.storeNames=w,this.schema=p,this.chromeTransactionDurability=v,this.idbtrans=null,this.on=Nt(this,"complete","error","abort"),this.parent=x||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new D(function(j,k){y._resolve=j,y._reject=k}),this._completion.then(function(){y.active=!1,y.on.complete.fire()},function(j){var k=y.active;return y.active=!1,y.on.error.fire(j),y.parent?y.parent._reject(j):k&&y.idbtrans&&y.idbtrans.abort(),me(j)})})),this.Version=(c=this,Pt(qo.prototype,function(l){this.db=c,this._cfg={version:l,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(h=this,Pt(Or.prototype,function(l,w,p){if(this.db=h,this._ctx={table:l,index:w===":id"?null:w,or:p},this._cmp=this._ascending=te,this._descending=function(v,x){return te(x,v)},this._max=function(v,x){return 0<te(v,x)?v:x},this._min=function(v,x){return te(v,x)<0?v:x},this._IDBKeyRange=h._deps.IDBKeyRange,!this._IDBKeyRange)throw new U.MissingAPI})),this.on("versionchange",function(l){0<l.newVersion?console.warn("Another connection wants to upgrade database '".concat(n.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(n.name,"'. Closing db now to resume the delete request.")),n.close({disableAutoOpen:!1})}),this.on("blocked",function(l){!l.newVersion||l.newVersion<l.oldVersion?console.warn("Dexie.delete('".concat(n.name,"') was blocked")):console.warn("Upgrade '".concat(n.name,"' blocked by other connection holding version ").concat(l.oldVersion/10))}),this._maxKey=Mt(t.IDBKeyRange),this._createTransaction=function(l,w,p,v){return new n.Transaction(l,w,p,n._options.chromeTransactionDurability,v)},this._fireOnBlocked=function(l){n.on("blocked").fire(l),gt.filter(function(w){return w.name===n.name&&w!==n&&!w._state.vcFired}).map(function(w){return w.on("versionchange").fire(l)})},this.use(Io),this.use(zo),this.use(To),this.use(Bo),this.use(Do);var g=new Proxy(this,{get:function(l,w,p){if(w==="_vip")return!0;if(w==="table")return function(x){return hn(n.table(x),g)};var v=Reflect.get(l,w,p);return v instanceof jr?hn(v,g):w==="tables"?v.map(function(x){return hn(x,g)}):w==="_createTransaction"?function(){return hn(v.apply(this,arguments),g)}:v}});this.vip=g,r.forEach(function(l){return l(n)})}var pn,Be=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",Qo=(tr.prototype.subscribe=function(e,t,n){return this._subscribe(e&&typeof e!="function"?e:{next:e,error:t,complete:n})},tr.prototype[Be]=function(){return this},tr);function tr(e){this._subscribe=e}try{pn={indexedDB:C.indexedDB||C.mozIndexedDB||C.webkitIndexedDB||C.msIndexedDB,IDBKeyRange:C.IDBKeyRange||C.webkitIDBKeyRange}}catch{pn={indexedDB:null,IDBKeyRange:null}}function zr(e){var t,n=!1,r=new Qo(function(o){var a=re(e),i,c=!1,h={},m={},g={get closed(){return c},unsubscribe:function(){c||(c=!0,i&&i.abort(),l&&Ze.storagemutated.unsubscribe(p))}};o.start&&o.start(g);var l=!1,w=function(){return Sn(v)},p=function(x){ln(h,x),Wn(m,h)&&w()},v=function(){var x,y,j;!c&&pn.indexedDB&&(h={},x={},i&&i.abort(),i=new AbortController,j=function(k){var _=mt();try{a&&vt();var N=Ye(e,k);return N=a?N.finally(Xe):N}finally{_&&yt()}}(y={subscr:x,signal:i.signal,requery:w,querier:e,trans:null}),Promise.resolve(j).then(function(k){n=!0,t=k,c||y.signal.aborted||(h={},function(_){for(var N in _)if(L(_,N))return;return 1}(m=x)||l||(Ze(Rt,p),l=!0),Sn(function(){return!c&&o.next&&o.next(k)}))},function(k){n=!1,["DatabaseClosedError","AbortError"].includes(k?.name)||c||Sn(function(){c||o.error&&o.error(k)})}))};return setTimeout(w,0),g});return r.hasValue=function(){return n},r.getValue=function(){return t},r}var ft=Ve;function nr(e){var t=$e;try{$e=!0,Ze.storagemutated.fire(e),Gn(e,!0)}finally{$e=t}}Q(ft,b(b({},zt),{delete:function(e){return new ft(e,{addons:[]}).delete()},exists:function(e){return new ft(e,{addons:[]}).open().then(function(t){return t.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return t=ft.dependencies,n=t.indexedDB,t=t.IDBKeyRange,(Hn(n)?Promise.resolve(n.databases()).then(function(r){return r.map(function(o){return o.name}).filter(function(o){return o!==Jt})}):Qn(n,t).toCollection().primaryKeys()).then(e)}catch{return me(new U.MissingAPI)}var t,n},defineClass:function(){return function(e){I(this,e)}},ignoreTransaction:function(e){return H.trans?st(H.transless,e):e()},vip:Un,async:function(e){return function(){try{var t=Jn(e.apply(this,arguments));return t&&typeof t.then=="function"?t:D.resolve(t)}catch(n){return me(n)}}},spawn:function(e,t,n){try{var r=Jn(e.apply(n,t||[]));return r&&typeof r.then=="function"?r:D.resolve(r)}catch(o){return me(o)}},currentTransaction:{get:function(){return H.trans||null}},waitFor:function(e,t){return t=D.resolve(typeof e=="function"?ft.ignoreTransaction(e):e).timeout(t||6e4),H.trans?H.trans.waitFor(t):t},Promise:D,debug:{get:function(){return Fe},set:function(e){fr(e)}},derive:pe,extend:I,props:Q,override:ke,Events:Nt,on:Ze,liveQuery:zr,extendObservabilitySet:ln,getByKeyPath:ee,setByKeyPath:X,delByKeyPath:function(e,t){typeof t=="string"?X(e,t,void 0):"length"in t&&[].map.call(t,function(n){X(e,n,void 0)})},shallowClone:oe,deepClone:Ke,getObjectDiff:Zn,cmp:te,asap:fe,minKey:-1/0,addons:[],connections:gt,errnames:wn,dependencies:pn,cache:lt,semVer:"4.0.11",version:"4.0.11".split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,2*n)})})),ft.maxKey=Mt(ft.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Ze(Rt,function(e){$e||(e=new CustomEvent(Bn,{detail:e}),$e=!0,dispatchEvent(e),$e=!1)}),addEventListener(Bn,function(e){e=e.detail,$e||nr(e)}));var wt,$e=!1,Qr=function(){};return typeof BroadcastChannel<"u"&&((Qr=function(){(wt=new BroadcastChannel(Bn)).onmessage=function(e){return e.data&&nr(e.data)}})(),typeof wt.unref=="function"&&wt.unref(),Ze(Rt,function(e){$e||wt.postMessage(e)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(e){if(!Ve.disableBfCache&&e.persisted){Fe&&console.debug("Dexie: handling persisted pagehide"),wt?.close();for(var t=0,n=gt;t<n.length;t++)n[t].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(e){!Ve.disableBfCache&&e.persisted&&(Fe&&console.debug("Dexie: handling persisted pageshow"),Qr(),nr({all:new _e(-1/0,[[]])}))})),D.rejectionMapper=function(e,t){return!e||e instanceof be||e instanceof TypeError||e instanceof SyntaxError||!e.name||!lr[e.name]?e:(t=new lr[e.name](t||e.message,e),"stack"in e&&G(t,"stack",{get:function(){return this.inner.stack}}),t)},fr(Fe),b(Ve,Object.freeze({__proto__:null,Dexie:Ve,liveQuery:zr,Entity:br,cmp:te,PropModification:St,replacePrefix:function(e,t){return new St({replacePrefix:[e,t]})},add:function(e){return new St({add:e})},remove:function(e){return new St({remove:e})},default:Ve,RangeSet:_e,mergeRanges:Bt,rangesOverlap:Rr}),{default:Ve}),Ve})}(ur)),ur.exports}var Go=Xo();const cr=Uo(Go),Yr=Symbol.for("Dexie"),gn=globalThis[Yr]||(globalThis[Yr]=cr);if(cr.semVer!==gn.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${cr.semVer} and ${gn.semVer}`);const{liveQuery:Jo,mergeRanges:gi,rangesOverlap:bi,RangeSet:xi,cmp:wi,Entity:ji,PropModification:ki,replacePrefix:_i,add:Ai,remove:Ci}=gn;function Zo(s,d,f){var b,A;typeof s=="function"?(b=d||[],A=f):(b=[],A=d);var C=Te.useRef({hasResult:!1,result:A,error:null}),O=Te.useReducer(function(F){return F+1},0);O[0];var P=O[1],I=Te.useMemo(function(){var F=typeof s=="function"?s():s;if(!F||typeof F.subscribe!="function")throw s===F?new TypeError("Given argument to useObservable() was neither a valid observable nor a function."):new TypeError("Observable factory given to useObservable() did not return a valid observable.");if(!C.current.hasResult&&typeof window<"u"&&(typeof F.hasValue!="function"||F.hasValue()))if(typeof F.getValue=="function")C.current.result=F.getValue(),C.current.hasResult=!0;else{var q=F.subscribe(function(L){C.current.result=L,C.current.hasResult=!0});typeof q=="function"?q():q.unsubscribe()}return F},b);if(Te.useDebugValue(C.current.result),Te.useEffect(function(){var F=I.subscribe(function(q){var L=C.current;(L.error!==null||L.result!==q)&&(L.error=null,L.result=q,L.hasResult=!0,P())},function(q){var L=C.current;L.error!==q&&(L.error=q,P())});return typeof F=="function"?F:F.unsubscribe.bind(F)},b),C.current.error)throw C.current.error;return C.current.result}function Xr(s,d,f){return Zo(function(){return Jo(s)},d||[],f)}const no=s=>s>=200&&s<300?"bg-green-200 text-green-800":s>=300&&s<400?"bg-blue-200 text-blue-800":s>=400&&s<500?"bg-orange-600 text-orange-200":s>=500?"bg-red-800 text-red-100":"bg-gray-200 text-gray-800",$o=["bg-blue-100","border-l-4","border-blue-700"].join(" "),ea=({request:s,reqId:d,onSelect:f,onRemove:b,selected:A})=>{var C,O;const P=I=>{f(I)};return u.jsx("li",{className:`flex items-center cursor-pointer hover:bg-gray-200 ${A?$o:""}`,onClick:()=>{P(s)},children:u.jsxs("div",{className:"flex items-center p-2 w-full",children:[u.jsx("div",{className:"w-16 flex justify-center",children:u.jsx("span",{className:`inline-flex px-3 py-1 text-xs font-semibold rounded-full ${no((C=s?.response)==null?void 0:C.statusCode)}`,children:((O=s?.response)==null?void 0:O.statusCode)||"N/A"})}),u.jsx("div",{className:"w-20 text-center font-medium",children:s.method||"GET"}),u.jsx("div",{className:"flex-grow truncate text-left",children:s.path||s.url}),u.jsxs("div",{className:"w-20 text-gray-500 text-center",children:[s.latency,"ms"]}),u.jsx("button",{className:"w-8 h-8 flex items-center justify-center cursor-pointer text-red-500 hover:text-red-700",onClick:I=>{I.stopPropagation(),b(d)},children:"✕"})]})})},ta=({isOpen:s,onClose:d,sortField:f,sortDirection:b,filters:A,setSortField:C,setSortDirection:O,setFilters:P})=>{const I=()=>{C("time"),O("desc")},F=()=>{P({})},q=Q=>{const $=Q.target.value;P(G=>({...G,timestampRange:$,customStart:void 0,customEnd:void 0}))},L=(Q,$)=>{P(G=>({...G,timestampRange:{...typeof G.timestampRange=="object"&&G.timestampRange||{},[Q]:$}}))};return u.jsxs(u.Fragment,{children:[s&&u.jsx("div",{className:"fixed inset-0 bg-black opacity-50",style:{zIndex:9998},onClick:d}),u.jsxs("div",{className:`fixed top-0 left-0 h-full w-100 bg-white shadow-xl transform transition-transform duration-300
12
+ ${s?"translate-x-0":"-translate-x-full"}
13
+ `,style:{zIndex:9999},children:[u.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-gray-300 bg-gray-50",children:[u.jsx("h2",{className:"pl-4 text-lg font-semibold text-gray-800",children:"Filter & Sort"}),u.jsx("button",{onClick:d,className:"text-gray-600 hover:text-gray-800 focus:outline-none cursor-pointer","aria-label":"Close",children:"×"})]}),u.jsxs("div",{className:"p-4 overflow-y-auto h-full",children:[u.jsxs("section",{className:"mb-6 ml-4 mr-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h3",{className:"mb-3 text-xs font-bold text-gray-600 uppercase tracking-wide",children:"Sort By"}),u.jsx("button",{onClick:I,className:"text-xs text-blue-600 hover:underline cursor-pointer",children:"Reset"})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("label",{className:"flex items-center",children:[u.jsx("input",{type:"radio",name:"sortField",value:"time",checked:f==="time",onChange:Q=>C(Q.target.value),className:"form-radio text-blue-600"}),u.jsx("span",{className:"ml-3 text-gray-700",children:"Timestamp"})]}),u.jsxs("label",{className:"flex items-center",children:[u.jsx("input",{type:"radio",name:"sortField",value:"statusCode",checked:f==="statusCode",onChange:Q=>C(Q.target.value),className:"form-radio text-blue-600"}),u.jsx("span",{className:"ml-3 text-gray-700",children:"Status"})]}),u.jsxs("label",{className:"flex items-center",children:[u.jsx("input",{type:"radio",name:"sortField",value:"method",checked:f==="method",onChange:Q=>C(Q.target.value),className:"form-radio text-blue-600"}),u.jsx("span",{className:"ml-3 text-gray-700",children:"Method"})]})]}),u.jsxs("div",{className:"mt-4",children:[u.jsx("h4",{className:"mb-2 text-xs font-bold text-gray-600 uppercase tracking-wide",children:"Sort Direction"}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("label",{className:"flex items-center",children:[u.jsx("input",{type:"radio",name:"sortDirection",value:"asc",checked:b==="asc",onChange:Q=>O(Q.target.value),className:"form-radio text-blue-600"}),u.jsx("span",{className:"ml-3 text-gray-700",children:"Ascending"})]}),u.jsxs("label",{className:"flex items-center",children:[u.jsx("input",{type:"radio",name:"sortDirection",value:"desc",checked:b==="desc",onChange:Q=>O(Q.target.value),className:"form-radio text-blue-600"}),u.jsx("span",{className:"ml-3 text-gray-700",children:"Descending"})]})]})]})]}),u.jsxs("section",{className:"mb-6 ml-4 mr-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h3",{className:"mb-3 text-xs font-bold text-gray-600 uppercase tracking-wide",children:"Filters"}),u.jsx("button",{onClick:F,className:"text-xs text-blue-600 hover:underline cursor-pointer",children:"Reset"})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Quick Time Range"}),u.jsxs("select",{value:typeof A.timestampRange=="string"?A.timestampRange:"",onChange:q,className:"block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm",children:[u.jsx("option",{value:"",children:"Any"}),u.jsx("option",{value:"15M",children:"Last 15 minutes"}),u.jsx("option",{value:"30M",children:"Last 30 minutes"}),u.jsx("option",{value:"1H",children:"Last 1 hour"}),u.jsx("option",{value:"3H",children:"Last 3 hours"}),u.jsx("option",{value:"6H",children:"Last 6 hours"}),u.jsx("option",{value:"12H",children:"Last 12 hours"}),u.jsx("option",{value:"24H",children:"Last 24 hours"}),u.jsx("option",{value:"48H",children:"Last 2 days"}),u.jsx("option",{value:"week",children:"Last Week"}),u.jsx("option",{value:"month",children:"Last Month"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Specific Time Range"}),u.jsxs("div",{className:"flex space-x-2",children:[u.jsx("input",{type:"datetime-local",value:typeof A.timestampRange=="object"&&A.timestampRange.start?A.timestampRange.start:"",onChange:Q=>L("start",Q.target.value),className:"w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"}),u.jsx("input",{type:"datetime-local",value:typeof A.timestampRange=="object"&&A.timestampRange.end?A.timestampRange.end:"",onChange:Q=>L("end",Q.target.value),className:"w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Status"}),u.jsx("input",{type:"number",placeholder:"e.g. 200",value:A.status||"",onChange:Q=>P($=>({...$,status:Q.target.value})),className:"block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Method"}),u.jsxs("select",{value:A.method||"",onChange:Q=>P($=>({...$,method:Q.target.value})),className:"block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm",children:[u.jsx("option",{value:"",children:"Any"}),u.jsx("option",{value:"GET",children:"GET"}),u.jsx("option",{value:"POST",children:"POST"}),u.jsx("option",{value:"PUT",children:"PUT"}),u.jsx("option",{value:"PATCH",children:"PATCH"}),u.jsx("option",{value:"DELETE",children:"DELETE"}),u.jsx("option",{value:"OPTIONS",children:"OPTIONS"}),u.jsx("option",{value:"HEAD",children:"HEAD"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Path"}),u.jsx("input",{type:"text",placeholder:"e.g. /api/users",value:A.path||"",onChange:Q=>P($=>({...$,path:Q.target.value})),className:"block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Duration (ms)"}),u.jsxs("div",{className:"flex space-x-2",children:[u.jsx("input",{type:"number",placeholder:"Min",value:A.durationMin||"",onChange:Q=>P($=>({...$,durationMin:Q.target.value})),className:"w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"}),u.jsx("input",{type:"number",placeholder:"Max",value:A.durationMax||"",onChange:Q=>P($=>({...$,durationMax:Q.target.value})),className:"w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Host"}),u.jsx("input",{type:"text",placeholder:"e.g. localhost",value:A.host||"",onChange:Q=>P($=>({...$,host:Q.target.value})),className:"block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"})]})]})]})]})]})]})},na=({currentPage:s,totalPages:d,onPageChange:f})=>{const b=((A,C)=>{const O=[];if(C<=7)for(let P=1;P<=C;P++)O.push(P);else if(A<=4){for(let P=1;P<=5;P++)O.push(P);O.push("ellipsis"),O.push(C)}else if(A>=C-3){O.push(1),O.push("ellipsis");for(let P=C-4;P<=C;P++)O.push(P)}else O.push(1),O.push("ellipsis"),O.push(A-1),O.push(A),O.push(A+1),O.push("ellipsis"),O.push(C);return O})(s,d);return u.jsx("nav",{className:"p-2 border-t border-gray-300",children:u.jsxs("ul",{className:"flex items-center justify-center -space-x-px h-8 text-sm",children:[u.jsx("li",{children:u.jsxs("button",{onClick:()=>f(s-1),disabled:s<=1,className:"flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-e-0 border-gray-300 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 disabled:opacity-50 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white cursor-pointer",children:[u.jsx("span",{className:"sr-only",children:"Previous"}),u.jsx("svg",{className:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 1 1 5l4 4"})})]})}),b.map((A,C)=>{if(A==="ellipsis")return u.jsx("li",{children:u.jsx("span",{className:"flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 cursor-pointer",children:"..."})},`ellipsis-${C}`);const O=A===s;return u.jsx("li",{children:u.jsx("button",{onClick:()=>f(A),className:O?"z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white cursor-pointer":"flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white cursor-pointer",children:A})},A)}),u.jsx("li",{children:u.jsxs("button",{onClick:()=>f(s+1),disabled:s>=d,className:"flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 disabled:opacity-50 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white cursor-pointer",children:[u.jsx("span",{className:"sr-only",children:"Next"}),u.jsx("svg",{className:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10",children:u.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 9 4-4-4-4"})})]})})]})})},ra=({open:s,onClose:d,onConfirmAll:f,onConfirmFiltered:b,hasFilters:A})=>s?u.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[u.jsx("div",{className:"absolute inset-0 bg-black opacity-50",onClick:d}),u.jsxs("div",{className:"relative bg-white rounded-lg shadow-xl max-w-md w-full mx-4 p-6 z-10",children:[u.jsxs("div",{className:"flex items-center",children:[u.jsx("div",{className:"flex-shrink-0 bg-red-100 rounded-full p-2",children:u.jsx("svg",{className:"size-6 text-red-600",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",children:u.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})})}),u.jsxs("div",{className:"ml-4",children:[u.jsx("h3",{className:"text-lg font-medium text-gray-900",children:A?"Clear Requests":"Clear All Requests"}),u.jsx("p",{className:"mt-2 text-sm text-gray-500",children:A?"You have active filters. Would you like to clear only the filtered requests or all requests?":"Are you sure you want to clear all requests? This action cannot be undone."})]})]}),u.jsxs("div",{className:"mt-6 flex justify-end space-x-3",children:[u.jsx("button",{onClick:d,className:"px-4 py-2 bg-gray-200 rounded hover:bg-gray-300 text-sm",children:"Cancel"}),A&&u.jsx("button",{onClick:()=>{b(),d()},className:"px-4 py-2 bg-yellow-500 text-white rounded hover:bg-yellow-600 text-sm",children:"Clear Filtered"}),u.jsx("button",{onClick:()=>{f(),d()},className:"px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 text-sm",children:"Clear All"})]})]})]}):null,oa=({requests:s,onSelect:d,onRemove:f,clearRequests:b,clearFilteredRequests:A,selectedRequest:C,currentPage:O,totalPages:P,totalCount:I,onPageChange:F,sortField:q,sortDirection:L,filters:Q,setSortField:$,setSortDirection:G,setFilters:pe})=>{const[ve,je]=z.useState(!1),[ie,ke]=z.useState(!1),ge=Object.entries(Q||{}).reduce((ee,[X,oe])=>X==="timestampRange"&&typeof oe=="object"?oe.start||oe.end?ee+1:ee:oe?ee+1:ee,0),fe=ge>0?"bg-green-500 text-white":"bg-blue-500 text-white";return u.jsxs("div",{className:"flex flex-col h-full relative",children:[u.jsxs("div",{className:"p-4 flex justify-between items-center",children:[u.jsxs("span",{className:"font-bold text-xl",children:["Requests (",s.length," of ",I,")"]}),u.jsxs("div",{className:"space-x-2 relative",children:[u.jsxs("button",{className:`relative px-3 py-1 rounded text-xs cursor-pointer ${fe}`,onClick:()=>je(!0),children:[u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4 text-white",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"})}),ge>0&&u.jsx("span",{className:"absolute -top-1 -right-1 bg-green-700 text-white text-[10px] font-bold w-4 h-4 flex items-center justify-center rounded-full",children:ge})]}),u.jsx("button",{className:"px-3 py-1 bg-red-500 text-white rounded text-xs cursor-pointer",onClick:()=>ke(!0),children:u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4 text-white",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]})]}),u.jsxs("div",{className:"flex items-center bg-gray-200 p-2 border-b border-gray-300 text-sm font-bold cursor-pointer",onClick:()=>je(!0),children:[u.jsx("div",{className:"w-16 text-center",children:"Status"}),u.jsx("div",{className:"w-20 text-center",children:"Method"}),u.jsx("div",{className:"flex-grow text-left",children:"Path"}),u.jsx("div",{className:"w-20 text-center",children:"Duration"}),u.jsx("div",{className:"w-10"})]}),u.jsx("ul",{className:"overflow-y-auto flex-grow",style:{maxHeight:"calc(100vh - 40px - 100px - 49px)"},children:s.map((ee,X)=>{const oe=ee.id||X;return u.jsx(ea,{reqId:oe,request:ee,onSelect:d,onRemove:f,selected:C&&C.id===oe},oe)})}),u.jsx(na,{currentPage:O,totalPages:P,onPageChange:F}),u.jsx(ta,{isOpen:ve,onClose:()=>je(!1),sortField:q,sortDirection:L,filters:Q,setSortField:$,setSortDirection:G,setFilters:pe}),u.jsx(ra,{open:ie,onClose:()=>ke(!1),onConfirmAll:b,onConfirmFiltered:A,hasFilters:ge>0})]})},or=({message:s,subMessage:d,onClose:f})=>{const[b,A]=z.useState(3e3),[C,O]=z.useState(!1);z.useEffect(()=>{const I=setInterval(()=>{C||A(F=>F<=50?(clearInterval(I),f(),0):F-50)},50);return()=>clearInterval(I)},[C,f]);const P=b/3e3*100;return u.jsx("div",{className:"fixed top-4 right-4 z-50 w-80",onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:u.jsx("div",{className:"bg-white border-l-4 border-green-500 p-2 shadow-lg rounded-lg",children:u.jsxs("div",{className:"flex items-start",children:[u.jsx("div",{className:"flex-shrink-0",children:u.jsx("svg",{className:"h-6 w-6 text-green-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15L15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})}),u.jsxs("div",{className:"ml-1 flex-1",children:[u.jsx("p",{className:"text-sm font-medium text-gray-900",children:s}),d&&u.jsx("p",{className:"mt-1 text-sm text-gray-500 break-words",children:d}),u.jsx("div",{className:"w-full h-1 rounded-t-lg bg-green-500",style:{width:`${P}%`}})]}),u.jsx("div",{className:"ml-auto pl-1",children:u.jsxs("button",{onClick:f,className:"text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",children:[u.jsx("span",{className:"sr-only",children:"Close"}),u.jsx("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:u.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 0 1 1.414 0L10 8.586l4.293-4.293a1 1 0 1 1 1.414 1.414L11.414 10l4.293 4.293a1 1 0 0 1-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 1 1-1.414-1.414L8.586 10 4.293 5.707a1 1 0 0 1 0-1.414z",clipRule:"evenodd"})})]})})]})})})},aa=({request:s})=>{var d,f;const[b,A]=z.useState(!1),[C,O]=z.useState(!1),[P,I]=z.useState(!1),F=G=>{if(!G)return"N/A";const pe=new Date(G),ve=pe.toLocaleDateString("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}),je=pe.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});return`${ve} at ${je}`},q=()=>{const{method:G,url:pe,request:ve}=s;let je=`curl -X ${G} '${pe}'`;return ve.headers&&Object.entries(ve.headers).forEach(([ie,ke])=>{je+=` -H '${ie}: ${ke}'`}),ve.payload&&(je+=` --data '${ve.payload}'`),je},L=()=>{const G=q();navigator.clipboard.writeText(G).then(()=>{A(!0)}).catch(pe=>{console.error("[Inspectr] Failed to copy cURL command:",pe)})},Q=()=>{navigator.clipboard.writeText(s.url).then(()=>{O(!0)}).catch(G=>{console.error("[Inspectr] Failed to copy URL:",G)})},$=()=>{fetch("/api/replay",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then(G=>{if(!G.ok)throw new Error("Replay failed");return G.json()}).then(()=>{I(!0)}).catch(G=>{console.error("[Inspectr] Failed to replay request:",G)})};return u.jsxs("div",{className:"mb-4 p-4 bg-white rounded shadow relative",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("h2",{className:"font-bold text-2xl",children:"Request Details"}),u.jsxs("div",{className:"flex space-x-2",children:[u.jsxs("button",{onClick:L,className:"flex items-center space-x-2 px-2 py-1 border border-slate-600 text-slate-600 rounded focus:outline-none cursor-pointer",children:[u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"h-4 w-4",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"})}),u.jsx("span",{className:"text-xs",children:"Copy as cURL"})]}),u.jsxs("button",{onClick:$,className:"flex items-center space-x-2 px-2 py-1 border border-slate-600 text-slate-600 rounded focus:outline-none cursor-pointer",children:[u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-4 w-4",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),u.jsx("span",{className:"text-xs",children:"Replay"})]})]})]}),u.jsxs("div",{className:"flex flex-col space-y-1",children:[u.jsxs("div",{className:"flex items-center space-x-2 font-mono text-lg",children:[u.jsx("span",{className:"font-bold",children:s.method}),u.jsx("span",{className:"text-blue-600",children:s.path}),u.jsx("span",{className:`inline-flex px-3 py-1 text-xs font-semibold rounded-full ${no((d=s?.response)==null?void 0:d.statusCode)}`,children:(f=s?.response)==null?void 0:f.statusCode}),u.jsx("span",{className:"text-sm",children:s.response.statusMessage})]}),u.jsxs("div",{className:"flex items-center text-gray-600",children:[u.jsx("span",{onClick:Q,className:"cursor-pointer",children:s.url}),u.jsx("button",{onClick:Q,className:"cursor-pointer",children:u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:"w-4 h-4",children:u.jsx("path",{d:"M48.186 92.137c0-8.392 6.49-14.89 16.264-14.89s29.827-.225 29.827-.225-.306-6.99-.306-15.88c0-8.888 7.954-14.96 17.49-14.96 9.538 0 56.786.401 61.422.401 4.636 0 8.397 1.719 13.594 5.67 5.196 3.953 13.052 10.56 16.942 14.962 3.89 4.402 5.532 6.972 5.532 10.604 0 3.633 0 76.856-.06 85.34-.059 8.485-7.877 14.757-17.134 14.881-9.257.124-29.135.124-29.135.124s.466 6.275.466 15.15-8.106 15.811-17.317 16.056c-9.21.245-71.944-.49-80.884-.245-8.94.245-16.975-6.794-16.975-15.422s.274-93.175.274-101.566zm16.734 3.946l-1.152 92.853a3.96 3.96 0 0 0 3.958 4.012l73.913.22a3.865 3.865 0 0 0 3.91-3.978l-.218-8.892a1.988 1.988 0 0 0-2.046-1.953s-21.866.64-31.767.293c-9.902-.348-16.672-6.807-16.675-15.516-.003-8.709.003-69.142.003-69.142a1.989 1.989 0 0 0-2.007-1.993l-23.871.082a4.077 4.077 0 0 0-4.048 4.014zm106.508-35.258c-1.666-1.45-3.016-.84-3.016 1.372v17.255c0 1.106.894 2.007 1.997 2.013l20.868.101c2.204.011 2.641-1.156.976-2.606l-20.825-18.135zm-57.606.847a2.002 2.002 0 0 0-2.02 1.988l-.626 96.291a2.968 2.968 0 0 0 2.978 2.997l75.2-.186a2.054 2.054 0 0 0 2.044-2.012l1.268-62.421a1.951 1.951 0 0 0-1.96-2.004s-26.172.042-30.783.042c-4.611 0-7.535-2.222-7.535-6.482S152.3 63.92 152.3 63.92a2.033 2.033 0 0 0-2.015-2.018l-36.464-.23z",stroke:"#979797",fillRule:"evenodd"})})})]}),u.jsxs("div",{className:"text-gray-500 text-xs",children:["Received on ",F(s.request.timestamp)," • Took ",s.latency,"ms to respond"]})]}),b&&u.jsx(or,{message:"cURL command copied!",subMessage:"You can now paste it into your terminal.",onClose:()=>A(!1)}),C&&u.jsx(or,{message:"URL copied!",subMessage:"The request URL has been copied to your clipboard.",onClose:()=>O(!1)}),P&&u.jsx(or,{message:"Replay sent!",subMessage:"The request event has been replayd.",onClose:()=>I(!1)})]})};function ia(s,d,f){return d in s?Object.defineProperty(s,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):s[d]=f,s}function Gr(s,d){var f=Object.keys(s);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(s);d&&(b=b.filter(function(A){return Object.getOwnPropertyDescriptor(s,A).enumerable})),f.push.apply(f,b)}return f}function Jr(s){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?Gr(Object(f),!0).forEach(function(b){ia(s,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(f)):Gr(Object(f)).forEach(function(b){Object.defineProperty(s,b,Object.getOwnPropertyDescriptor(f,b))})}return s}function sa(s,d){if(s==null)return{};var f={},b=Object.keys(s),A,C;for(C=0;C<b.length;C++)A=b[C],!(d.indexOf(A)>=0)&&(f[A]=s[A]);return f}function ua(s,d){if(s==null)return{};var f=sa(s,d),b,A;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(s);for(A=0;A<C.length;A++)b=C[A],!(d.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(s,b)&&(f[b]=s[b])}return f}function ca(s,d){return la(s)||fa(s,d)||da(s,d)||ha()}function la(s){if(Array.isArray(s))return s}function fa(s,d){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var f=[],b=!0,A=!1,C=void 0;try{for(var O=s[Symbol.iterator](),P;!(b=(P=O.next()).done)&&(f.push(P.value),!(d&&f.length===d));b=!0);}catch(I){A=!0,C=I}finally{try{!b&&O.return!=null&&O.return()}finally{if(A)throw C}}return f}}function da(s,d){if(s){if(typeof s=="string")return Zr(s,d);var f=Object.prototype.toString.call(s).slice(8,-1);if(f==="Object"&&s.constructor&&(f=s.constructor.name),f==="Map"||f==="Set")return Array.from(s);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return Zr(s,d)}}function Zr(s,d){(d==null||d>s.length)&&(d=s.length);for(var f=0,b=new Array(d);f<d;f++)b[f]=s[f];return b}function ha(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pa(s,d,f){return d in s?Object.defineProperty(s,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):s[d]=f,s}function $r(s,d){var f=Object.keys(s);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(s);d&&(b=b.filter(function(A){return Object.getOwnPropertyDescriptor(s,A).enumerable})),f.push.apply(f,b)}return f}function eo(s){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?$r(Object(f),!0).forEach(function(b){pa(s,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(f)):$r(Object(f)).forEach(function(b){Object.defineProperty(s,b,Object.getOwnPropertyDescriptor(f,b))})}return s}function ma(){for(var s=arguments.length,d=new Array(s),f=0;f<s;f++)d[f]=arguments[f];return function(b){return d.reduceRight(function(A,C){return C(A)},b)}}function It(s){return function d(){for(var f=this,b=arguments.length,A=new Array(b),C=0;C<b;C++)A[C]=arguments[C];return A.length>=s.length?s.apply(this,A):function(){for(var O=arguments.length,P=new Array(O),I=0;I<O;I++)P[I]=arguments[I];return d.apply(f,[].concat(A,P))}}}function bn(s){return{}.toString.call(s).includes("Object")}function ya(s){return!Object.keys(s).length}function Ft(s){return typeof s=="function"}function va(s,d){return Object.prototype.hasOwnProperty.call(s,d)}function ga(s,d){return bn(d)||et("changeType"),Object.keys(d).some(function(f){return!va(s,f)})&&et("changeField"),d}function ba(s){Ft(s)||et("selectorType")}function xa(s){Ft(s)||bn(s)||et("handlerType"),bn(s)&&Object.values(s).some(function(d){return!Ft(d)})&&et("handlersType")}function wa(s){s||et("initialIsRequired"),bn(s)||et("initialType"),ya(s)&&et("initialContent")}function ja(s,d){throw new Error(s[d]||s.default)}var ka={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},et=It(ja)(ka),yn={changes:ga,selector:ba,handler:xa,initial:wa};function _a(s){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};yn.initial(s),yn.handler(d);var f={current:s},b=It(Oa)(f,d),A=It(Ca)(f),C=It(yn.changes)(s),O=It(Aa)(f);function P(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(q){return q};return yn.selector(F),F(f.current)}function I(F){ma(b,A,C,O)(F)}return[P,I]}function Aa(s,d){return Ft(d)?d(s.current):d}function Ca(s,d){return s.current=eo(eo({},s.current),d),d}function Oa(s,d,f){return Ft(d)?d(s.current):Object.keys(f).forEach(function(b){var A;return(A=d[b])===null||A===void 0?void 0:A.call(d,s.current[b])}),f}var Na={create:_a},Pa={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Sa(s){return function d(){for(var f=this,b=arguments.length,A=new Array(b),C=0;C<b;C++)A[C]=arguments[C];return A.length>=s.length?s.apply(this,A):function(){for(var O=arguments.length,P=new Array(O),I=0;I<O;I++)P[I]=arguments[I];return d.apply(f,[].concat(A,P))}}}function Ea(s){return{}.toString.call(s).includes("Object")}function Ra(s){return s||to("configIsRequired"),Ea(s)||to("configType"),s.urls?(Ma(),{paths:{vs:s.urls.monacoBase}}):s}function Ma(){console.warn(ro.deprecation)}function qa(s,d){throw new Error(s[d]||s.default)}var ro={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
15
+ You are using deprecated way of configuration.
16
+
17
+ Instead of using
18
+ monaco.config({ urls: { monacoBase: '...' } })
19
+ use
20
+ monaco.config({ paths: { vs: '...' } })
21
+
22
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
23
+ `},to=Sa(qa)(ro),Ka={config:Ra},Ba=function(){for(var s=arguments.length,d=new Array(s),f=0;f<s;f++)d[f]=arguments[f];return function(b){return d.reduceRight(function(A,C){return C(A)},b)}};function oo(s,d){return Object.keys(d).forEach(function(f){d[f]instanceof Object&&s[f]&&Object.assign(d[f],oo(s[f],d[f]))}),Jr(Jr({},s),d)}var Da={type:"cancelation",msg:"operation is manually canceled"};function ar(s){var d=!1,f=new Promise(function(b,A){s.then(function(C){return d?A(Da):b(C)}),s.catch(A)});return f.cancel=function(){return d=!0},f}var Ia=Na.create({config:Pa,isInitialized:!1,resolve:null,reject:null,monaco:null}),ao=ca(Ia,2),Lt=ao[0],xn=ao[1];function Ta(s){var d=Ka.config(s),f=d.monaco,b=ua(d,["monaco"]);xn(function(A){return{config:oo(A.config,b),monaco:f}})}function Fa(){var s=Lt(function(d){var f=d.monaco,b=d.isInitialized,A=d.resolve;return{monaco:f,isInitialized:b,resolve:A}});if(!s.isInitialized){if(xn({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),ar(ir);if(window.monaco&&window.monaco.editor)return io(window.monaco),s.resolve(window.monaco),ar(ir);Ba(La,Qa)(Ha)}return ar(ir)}function La(s){return document.body.appendChild(s)}function za(s){var d=document.createElement("script");return s&&(d.src=s),d}function Qa(s){var d=Lt(function(b){var A=b.config,C=b.reject;return{config:A,reject:C}}),f=za("".concat(d.config.paths.vs,"/loader.js"));return f.onload=function(){return s()},f.onerror=d.reject,f}function Ha(){var s=Lt(function(f){var b=f.config,A=f.resolve,C=f.reject;return{config:b,resolve:A,reject:C}}),d=window.require;d.config(s.config),d(["vs/editor/editor.main"],function(f){io(f),s.resolve(f)},function(f){s.reject(f)})}function io(s){Lt().monaco||xn({monaco:s})}function Ua(){return Lt(function(s){var d=s.monaco;return d})}var ir=new Promise(function(s,d){return xn({resolve:s,reject:d})}),so={config:Ta,init:Fa,__getMonacoInstance:Ua},Va={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},sr=Va,Wa={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Ya=Wa;function Xa({children:s}){return Te.createElement("div",{style:Ya.container},s)}var Ga=Xa,Ja=Ga;function Za({width:s,height:d,isEditorReady:f,loading:b,_ref:A,className:C,wrapperProps:O}){return Te.createElement("section",{style:{...sr.wrapper,width:s,height:d},...O},!f&&Te.createElement(Ja,null,b),Te.createElement("div",{ref:A,style:{...sr.fullWidth,...!f&&sr.hide},className:C}))}var $a=Za,uo=z.memo($a);function ei(s){z.useEffect(s,[])}var co=ei;function ti(s,d,f=!0){let b=z.useRef(!0);z.useEffect(b.current||!f?()=>{b.current=!1}:s,d)}var Me=ti;function Tt(){}function jt(s,d,f,b){return ni(s,b)||ri(s,d,f,b)}function ni(s,d){return s.editor.getModel(lo(s,d))}function ri(s,d,f,b){return s.editor.createModel(d,f,b?lo(s,b):void 0)}function lo(s,d){return s.Uri.parse(d)}function oi({original:s,modified:d,language:f,originalLanguage:b,modifiedLanguage:A,originalModelPath:C,modifiedModelPath:O,keepCurrentOriginalModel:P=!1,keepCurrentModifiedModel:I=!1,theme:F="light",loading:q="Loading...",options:L={},height:Q="100%",width:$="100%",className:G,wrapperProps:pe={},beforeMount:ve=Tt,onMount:je=Tt}){let[ie,ke]=z.useState(!1),[ge,fe]=z.useState(!0),ee=z.useRef(null),X=z.useRef(null),oe=z.useRef(null),se=z.useRef(je),ne=z.useRef(ve),Oe=z.useRef(!1);co(()=>{let Y=so.init();return Y.then(ce=>(X.current=ce)&&fe(!1)).catch(ce=>ce?.type!=="cancelation"&&console.error("Monaco initialization: error:",ce)),()=>ee.current?tt():Y.cancel()}),Me(()=>{if(ee.current&&X.current){let Y=ee.current.getOriginalEditor(),ce=jt(X.current,s||"",b||f||"text",C||"");ce!==Y.getModel()&&Y.setModel(ce)}},[C],ie),Me(()=>{if(ee.current&&X.current){let Y=ee.current.getModifiedEditor(),ce=jt(X.current,d||"",A||f||"text",O||"");ce!==Y.getModel()&&Y.setModel(ce)}},[O],ie),Me(()=>{let Y=ee.current.getModifiedEditor();Y.getOption(X.current.editor.EditorOption.readOnly)?Y.setValue(d||""):d!==Y.getValue()&&(Y.executeEdits("",[{range:Y.getModel().getFullModelRange(),text:d||"",forceMoveMarkers:!0}]),Y.pushUndoStop())},[d],ie),Me(()=>{var Y,ce;(ce=(Y=ee.current)==null?void 0:Y.getModel())==null||ce.original.setValue(s||"")},[s],ie),Me(()=>{let{original:Y,modified:ce}=ee.current.getModel();X.current.editor.setModelLanguage(Y,b||f||"text"),X.current.editor.setModelLanguage(ce,A||f||"text")},[f,b,A],ie),Me(()=>{var Y;(Y=X.current)==null||Y.editor.setTheme(F)},[F],ie),Me(()=>{var Y;(Y=ee.current)==null||Y.updateOptions(L)},[L],ie);let qe=z.useCallback(()=>{var Y;if(!X.current)return;ne.current(X.current);let ce=jt(X.current,s||"",b||f||"text",C||""),Qe=jt(X.current,d||"",A||f||"text",O||"");(Y=ee.current)==null||Y.setModel({original:ce,modified:Qe})},[f,d,A,s,b,C,O]),Ke=z.useCallback(()=>{var Y;!Oe.current&&oe.current&&(ee.current=X.current.editor.createDiffEditor(oe.current,{automaticLayout:!0,...L}),qe(),(Y=X.current)==null||Y.editor.setTheme(F),ke(!0),Oe.current=!0)},[L,F,qe]);z.useEffect(()=>{ie&&se.current(ee.current,X.current)},[ie]),z.useEffect(()=>{!ge&&!ie&&Ke()},[ge,ie,Ke]);function tt(){var Y,ce,Qe,Pe;let Se=(Y=ee.current)==null?void 0:Y.getModel();P||(ce=Se?.original)==null||ce.dispose(),I||(Qe=Se?.modified)==null||Qe.dispose(),(Pe=ee.current)==null||Pe.dispose()}return Te.createElement(uo,{width:$,height:Q,isEditorReady:ie,loading:q,_ref:oe,className:G,wrapperProps:pe})}var ai=oi;z.memo(ai);function ii(s){let d=z.useRef();return z.useEffect(()=>{d.current=s},[s]),d.current}var si=ii,vn=new Map;function ui({defaultValue:s,defaultLanguage:d,defaultPath:f,value:b,language:A,path:C,theme:O="light",line:P,loading:I="Loading...",options:F={},overrideServices:q={},saveViewState:L=!0,keepCurrentModel:Q=!1,width:$="100%",height:G="100%",className:pe,wrapperProps:ve={},beforeMount:je=Tt,onMount:ie=Tt,onChange:ke,onValidate:ge=Tt}){let[fe,ee]=z.useState(!1),[X,oe]=z.useState(!0),se=z.useRef(null),ne=z.useRef(null),Oe=z.useRef(null),qe=z.useRef(ie),Ke=z.useRef(je),tt=z.useRef(),Y=z.useRef(b),ce=si(C),Qe=z.useRef(!1),Pe=z.useRef(!1);co(()=>{let re=so.init();return re.then(de=>(se.current=de)&&oe(!1)).catch(de=>de?.type!=="cancelation"&&console.error("Monaco initialization: error:",de)),()=>ne.current?De():re.cancel()}),Me(()=>{var re,de,be,He;let Ie=jt(se.current,s||b||"",d||A||"",C||f||"");Ie!==((re=ne.current)==null?void 0:re.getModel())&&(L&&vn.set(ce,(de=ne.current)==null?void 0:de.saveViewState()),(be=ne.current)==null||be.setModel(Ie),L&&((He=ne.current)==null||He.restoreViewState(vn.get(C))))},[C],fe),Me(()=>{var re;(re=ne.current)==null||re.updateOptions(F)},[F],fe),Me(()=>{!ne.current||b===void 0||(ne.current.getOption(se.current.editor.EditorOption.readOnly)?ne.current.setValue(b):b!==ne.current.getValue()&&(Pe.current=!0,ne.current.executeEdits("",[{range:ne.current.getModel().getFullModelRange(),text:b,forceMoveMarkers:!0}]),ne.current.pushUndoStop(),Pe.current=!1))},[b],fe),Me(()=>{var re,de;let be=(re=ne.current)==null?void 0:re.getModel();be&&A&&((de=se.current)==null||de.editor.setModelLanguage(be,A))},[A],fe),Me(()=>{var re;P!==void 0&&((re=ne.current)==null||re.revealLine(P))},[P],fe),Me(()=>{var re;(re=se.current)==null||re.editor.setTheme(O)},[O],fe);let Se=z.useCallback(()=>{var re;if(!(!Oe.current||!se.current)&&!Qe.current){Ke.current(se.current);let de=C||f,be=jt(se.current,b||s||"",d||A||"",de||"");ne.current=(re=se.current)==null?void 0:re.editor.create(Oe.current,{model:be,automaticLayout:!0,...F},q),L&&ne.current.restoreViewState(vn.get(de)),se.current.editor.setTheme(O),P!==void 0&&ne.current.revealLine(P),ee(!0),Qe.current=!0}},[s,d,f,b,A,C,F,q,L,O,P]);z.useEffect(()=>{fe&&qe.current(ne.current,se.current)},[fe]),z.useEffect(()=>{!X&&!fe&&Se()},[X,fe,Se]),Y.current=b,z.useEffect(()=>{var re,de;fe&&ke&&((re=tt.current)==null||re.dispose(),tt.current=(de=ne.current)==null?void 0:de.onDidChangeModelContent(be=>{Pe.current||ke(ne.current.getValue(),be)}))},[fe,ke]),z.useEffect(()=>{if(fe){let re=se.current.editor.onDidChangeMarkers(de=>{var be;let He=(be=ne.current.getModel())==null?void 0:be.uri;if(He&&de.find(Ie=>Ie.path===He.path)){let Ie=se.current.editor.getModelMarkers({resource:He});ge?.(Ie)}});return()=>{re?.dispose()}}return()=>{}},[fe,ge]);function De(){var re,de;(re=tt.current)==null||re.dispose(),Q?L&&vn.set(C,ne.current.saveViewState()):(de=ne.current.getModel())==null||de.dispose(),ne.current.dispose()}return Te.createElement(uo,{width:$,height:G,isEditorReady:fe,loading:I,_ref:Oe,className:pe,wrapperProps:ve})}var ci=ui,li=z.memo(ci),fo=li;const fi=({request:s})=>{const[d,f]=z.useState(!1),[b,A]=z.useState(!1),C=F=>Object.entries(F||{}).map(([q,L])=>u.jsxs("tr",{children:[u.jsx("td",{className:"border border-slate-200 px-2 py-1 font-mono text-slate-500 text-xs",children:q}),u.jsx("td",{className:"border border-slate-200 px-2 py-1 font-mono text-xs",children:L})]},q)),O=s.request.payload,P=!O||typeof O=="object"&&Object.keys(O).length===0||typeof O=="string"&&(O.trim()===""||O.trim()==="{}"),I=F=>{try{const q=JSON.parse(F);return JSON.stringify(q,null,2)}catch{return F}};return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-4",children:[u.jsxs("button",{className:"w-full p-2 text-left font-bold bg-gray-200",onClick:()=>f(!d),children:["Query Parameters (",Object.keys(s.request.queryParams||{}).length,")"]}),d&&u.jsx("div",{className:"p-0",children:u.jsxs("table",{className:"w-full border-collapse border border-gray-300",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"bg-gray-100",children:[u.jsx("th",{className:"border border-slate-200 px-2 py-1 w-1/4 text-left",children:"Key"}),u.jsx("th",{className:"border border-slate-200 px-2 py-1 text-left",children:"Value"})]})}),u.jsx("tbody",{children:C(s.request.queryParams)})]})})]}),u.jsxs("div",{className:"mb-4",children:[u.jsxs("button",{className:"w-full p-2 text-left font-bold bg-gray-200",onClick:()=>A(!b),children:["Headers (",Object.keys(s.request.headers||{}).length,")"]}),b&&u.jsx("div",{className:"p-0",children:u.jsxs("table",{className:"w-full border-collapse border border-gray-300",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"bg-gray-100",children:[u.jsx("th",{className:"border border-slate-200 px-2 py-1 w-1/4 text-left",children:"Header"}),u.jsx("th",{className:"border border-slate-200 px-2 py-1 text-left",children:"Value"})]})}),u.jsx("tbody",{children:C(s.request.headers)})]})})]}),u.jsxs("div",{children:[u.jsx("button",{className:"w-full p-2 text-left font-bold bg-gray-200",children:"Request Body"}),P?u.jsx("div",{className:"p-4 bg-white rounded-b shadow",children:"No payload"}):u.jsx("div",{className:"bg-white rounded-b shadow p-0 h-100",children:u.jsx(fo,{height:"100%",defaultLanguage:"json",value:I(O),options:{readOnly:!0,minimap:{enabled:!1},automaticLayout:!0,fontFamily:'"Cascadia Code", "Jetbrains Mono", "Fira Code", "Menlo", "Consolas", monospace',tabSize:2,scrollBeyondLastLine:!1}})})]})]})},di=({request:s})=>{const[d,f]=z.useState(!1),b=P=>Object.entries(P||{}).map(([I,F])=>u.jsxs("tr",{children:[u.jsx("td",{className:"border border-slate-200 px-2 py-1 font-mono text-slate-500 text-xs",children:I}),u.jsx("td",{className:"border border-slate-200 px-2 py-1 font-mono text-xs",children:F})]},I)),A=s.response.payload,C=!A||typeof A=="object"&&Object.keys(A).length===0||typeof A=="string"&&(A.trim()===""||A.trim()==="{}"),O=P=>{try{const I=JSON.parse(P);return JSON.stringify(I,null,2)}catch{return P}};return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-4",children:[u.jsxs("button",{className:"w-full p-2 text-left font-bold bg-gray-200",onClick:()=>f(!d),children:["Headers (",Object.keys(s.response.headers||{}).length,")"]}),d&&u.jsx("div",{className:"p-0",children:u.jsxs("table",{className:"w-full border-collapse border border-gray-300",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"bg-gray-100",children:[u.jsx("th",{className:"border border-slate-200 px-2 py-1 w-1/4 text-left",children:"Header"}),u.jsx("th",{className:"border border-slate-200 px-2 py-1 text-left",children:"Value"})]})}),u.jsx("tbody",{children:b(s.response.headers)})]})})]}),u.jsxs("div",{children:[u.jsx("button",{className:"w-full p-2 text-left font-bold bg-gray-200",children:"Response Body"}),C?u.jsx("div",{className:"p-4 bg-white rounded-b shadow",children:"No payload"}):u.jsx("div",{className:"bg-white rounded-b shadow p-0 h-100",children:u.jsx(fo,{height:"100%",defaultLanguage:"json",value:O(A),options:{readOnly:!0,minimap:{enabled:!1},automaticLayout:!0,fontFamily:'"Cascadia Code", "Jetbrains Mono", "Fira Code", "Menlo", "Consolas", monospace',tabSize:2,scrollBeyondLastLine:!1}})})]})]})},hi=({request:s,currentTab:d,setCurrentTab:f})=>s?u.jsxs("div",{children:[u.jsx(aa,{request:s}),u.jsxs("div",{className:"flex space-x-2",children:[u.jsx("button",{className:`px-4 py-2 rounded-t ${d==="request"?"bg-blue-600 text-white":"bg-gray-200 text-gray-700"}`,onClick:()=>f("request"),children:"Request"}),u.jsx("button",{className:`px-4 py-2 rounded-t ${d==="response"?"bg-blue-600 text-white":"bg-gray-200 text-gray-700"}`,onClick:()=>f("response"),children:"Response"})]}),u.jsx("div",{className:"p-4 bg-white rounded-b shadow",children:d==="request"?u.jsx(fi,{request:s}):u.jsx(di,{request:s})})]}):u.jsx("div",{className:"text-gray-500",children:"No request selected."}),pi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAACHxJREFUeJztnX+MFGcdxiul8UWMcECtlSIcR+GKYKsHhTu9dsQr9PhxV+TSEtTYVqXVHnD9AZWWhkG7tY1pY2uUtrYRQhZbTyC1Ftyilhg1Ri0Ww4gh1pomeze3O8ZaClZ68PoZ50gu6+zdLjd732FmnuT5j5DvPJ/bfZ93fu155yVKlChRokSJEg1FatLssXi09ByxE6FfjHfjU/g/+HE8TnquWKgv/D9jXeCf4irp+SItAj4f/9wn/DN+EL9Les7IinCXDxC+63/ij0vPGUn1LbivDQLA9Y+lZ42kCPZ6fLoEACdxrfS8kZL7vY5/XUL4Z7xVeuZIiUA/XOJf/xn/FV8kPXdkRJj3lBG+7tsffEF67kjI3ekOUj0zuAVfjtfg7/R5pfTskRBBzsJvFQn/V8kOOAARosL34tfxOwU+VST8N8ZMr7+sPe3svW27o295Kq+/uDWvb3o0rz/3zbxe9UCu5wYzd1/bppySPr7QizDvxr1lfs9/a+0zPW3tO53TRQBoAPSuuDe3Qfr4Qi/C/FuZ4b9dbXxm0rrO/CsA0AMA0CvuyR2VPr7Qi0APlQng+Y5dzlUA6C0BwEHp4wu9CPQ6/O8yKuaC23c7z3V05vUgAE7wFbRU+vhCL+XtdJvwdvzDfn7VB0AWV92xx+kEQAYAGQBkAJABQAYAGQBkAPAsABayCCdnR89Gyjv1/CMfADukZ4uFCHoC/pMPgOukZ4uFCLq2yLpwofRssRBBf8on/C7puWIjwr7ZB8A+6bnOSRHceHxbvxNlpfi3PgA2r3/BWXXX806aFpSmBaVpQWlaUJoWlKYFpWlBaVpQmhaUpgWlP70xt6P1ztz2pWty3792dc/TTTf1PGWssp9obLO/29Bq3zJ/iT1WOp+Kqq/NfK/MjVYxLwTAcwDQANAl7AP0io05DQANAA0ADQANAA0AXd9i63nN9qNzmrqjW1UJ7WP4HwGEfxxXA+BokACuvNa2ATBdOqeKidDq8b8CAJB979S6KgCcCBhAHgCzpHOqmAjuAnfxDADA4TWdr05av9fRAX8F7QLACOmcKirCm4ifxFaJdk9BFJ6e3r9hnzMTABYALABYALAAYAHAAoAFAAsAFgAsAFgAsABgAcACgAUACwAWACwAHG5osR+bv9hOrh0XirAb8JsFALZJzxUbEXaz8m667Q/gIem5YiPCXumzBrRLzxUbEfZXfAC0Ss8VGxH2Rh8Ac6XnCq2Ud0FlKV6Nbw3AewsBjJ919bS7M85aWpBJCzJpQSYtyKQFmbQgkxZk0oJMWpBJCzJpQSYtyKQFmbQgkxZk0oJMWpBJCzJpQSY11GQfYNYt6DYvb+w2Z9d3mTPndJkzrugyp83KbqqpzS6fOj0b7oqqvLuW9wfQ8wf08vs7xwLgtaD3AQDQANAA0ADQANAA0ADQANDVl2ZfnDItO0Y656IinDZV3n2bZ+Newq/CWQEAp6fUZJdL51xUbjup9F8/zhP+hTgnAEBPrsneKp1zURHOlfjtCgPIEf4HsCMA4ASfgI9K51xUyjvd3KG8uxUqBeB1wp+Mjw0zgC4AtLMGnC+d87CKwDsLAFjl/h8rv54bCYCLADCh5c7cOABULVrd8z4AjAbAKAC8u6HFvgAAIyJ9PeBspLx7goYEINEQlAAQVgJAWAmAsxAhVeGpATnj04IUbqQFGbQggxZk0IIMWpBBCzJoQQYtyKAFGbQggxZksAgbLMIGLchgETZoQQaLsMEibLAIG7Qgg0XYoAUZtCCDFmTQggxakEELMmouy1ZL5zqolPd0y2Oq/Acsyt0HTMHHh7mGnqaGPk0NHSWdc1Ep767mSoZ/BsCH8JsCG7FeNmKLpHMuKsJZW+HwXR8j/PcLnoq4QzrnoiKcxcPwCdCEPwHbAgBO8QkI70MehDMKb1XFn2YMxPU3b5kIgL8LANjOGhD+t3IR0iX4amwE4G2FAMbWNkwHwPwht6Ab7QUAuAYATQBYAIBPFm1BtdkZ0rmKSHmPrRZ+Cj4hPVdsRNhf9gFwg/RcsZEbtg+Au6Tnio0Ie5H6/4s8j0jPFRsp/zuq09JznbMivDr88hCr6Esb9jl1QdbQhhb70LzF9jzpfCoqghuDfx/AXuDI6m2vXBL4PqDZ/sOcpu7w3nYyVBFcIz4WAAAbj1//gnM84I3YMQA0SudUMSnvfW+5AAC4zwzXAOBIwAB6ADBTOqeKiuA2K+91kkOFsAQAewIE8M68ZnuLdD4Vl/KuGSzs2+GaJfpFHwApACwBQAoAKQCkAJACQAoAKQCkAJACwP0A+BoAtgxwb+jmhlZ72fwldnjP9UuKsG/0AfAz6bliI8K+ygeAu5Yk9/AMhwj6UuX/tsQPSs8WCxH0OHzQB8D10rPFQgQ9Aj/jA+BZ6dkiJ0IdqbwbfN3TFf2fF/Z7xcH/NmS0oF8O8pzwQVpQR9um3Ejp4wu9lPeMQanXld2HQZpv3+38oIR9gPve0C9JH1/oRaBHy9yQZTp2OXPXdeZPlvDaykPSxxd6EeiRMgGcvHjusskA+F0JAF6WPr7Qi0BX4RNlQtjavrO7GQC9g7w3tE36+EIv5T1ls0x5L/TYVuCXigB4a3R13Ufa087DADgAgAMAOACAXwBgf98bs1pZhOP1dEvQIugZ+I0iEP6IJ/b7t251na28W1vC+1zXuSTl3fj1kwG+in6DP4+vwd/APcp7u9bj0rNHRoS5rsz1wf3dgc9Kzx0ZEWZNGfsE139RyS9rBCvl/VZkqQCSW1iClvJeBlLKDcDupctJ0vNGTsr7NaXDJQDYKT1rZKW8p3EGejGI24CukJ4zsurr+XsGAPBV6RkjL+VdqPG70WsHfo/0fLGQ8h6J/bbyzh/l8X0q+W354ZdKLtAnSpQoUaJEicrRfwFj5g/5zsKE0wAAAABJRU5ErkJggg==",mi=({sseEndpoint:s,setSseEndpoint:d,isConnected:f})=>{const[b,A]=z.useState(!1),[C,O]=z.useState(s);z.useEffect(()=>{if(typeof window<"u"){const I=localStorage.getItem("sseEndpoint");!s&&I&&(O(I),d(I))}},[s,d]);const P=()=>{typeof window<"u"&&localStorage.setItem("sseEndpoint",C),d(C),A(!1)};return u.jsxs("div",{className:"fixed bottom-0 left-0 w-full",children:[u.jsxs("div",{className:"flex items-center justify-between bg-gray-200 px-4 py-2 w-full cursor-pointer select-none",onClick:()=>A(I=>!I),children:[u.jsx("div",{className:"flex items-center gap-4",children:u.jsxs("span",{className:`px-2 py-1 rounded-full text-xs font-semibold flex items-center ${f?"bg-green-500 text-white":"bg-red-500"}`,children:[u.jsx("span",{className:`w-2 h-2 rounded-full mr-1 ${f?"bg-green-800":"bg-red-800"}`}),f?"Connected":"Disconnected"]})}),u.jsxs("a",{href:"https://github.com/thim81/inspectr",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2",onClick:I=>I.stopPropagation(),children:[u.jsx("img",{src:pi,alt:"Inspectr Logo",className:"h-6"}),u.jsx("span",{className:"text-gray-700 font-semibold text-sm",children:"Inspectr"})]})]}),u.jsx("div",{className:`bg-gray-100 border-t border-gray-300 transition-all duration-300 overflow-hidden ${b?"max-h-40 opacity-100 py-4":"max-h-0 opacity-0 py-0"}`,children:u.jsxs("div",{className:"px-6",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-4 items-center",children:[u.jsx("div",{children:u.jsx("h2",{className:"text-lg font-semibold text-gray-800 mb-4",children:"Configuration"})}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("label",{className:"text-gray-700 font-semibold whitespace-nowrap",children:"SSE Endpoint:"}),u.jsx("input",{type:"text",value:C,onChange:I=>O(I.target.value),className:"border p-2 rounded flex-1 bg-white",placeholder:"Enter SSE Endpoint..."})]})]}),u.jsx("div",{className:"flex justify-end mt-4",children:u.jsx("button",{onClick:P,className:"bg-green-600 text-white px-4 py-2 rounded-md",children:"Apply"})})]})})]})};class yi{constructor(){this.db=new gn("InspectrDB"),this.db.version(1).stores({events:"id, time, method, statusCode, path, latency, server"})}transformEvent(d){var f;const{id:b,time:A,data:C}=d;return{id:b,time:A,method:C.method,url:C.url,server:C.server,path:C.path,clientIp:C.clientIp,latency:C.latency,statusCode:(f=C.response)==null?void 0:f.statusCode,raw:d}}async upsertEvent(d){const f=this.transformEvent(d);return await this.db.events.put(f)}async deleteEvent(d){return await this.db.events.delete(d)}async getEvent(d){return await this.db.events.get(d)}async queryEvents(d={}){const{filters:f={},sort:b={field:"time",order:"desc"},page:A=1,pageSize:C=20}=d;let O=this.db.events.toCollection();if(f.timestampRange){if(typeof f.timestampRange=="string"){let q=new Date;switch(f.timestampRange){case"15M":q.setMinutes(q.getMinutes()-15);break;case"30M":q.setMinutes(q.getMinutes()-30);break;case"1H":q.setHours(q.getHours()-1);break;case"3H":q.setHours(q.getHours()-3);break;case"6H":q.setHours(q.getHours()-6);break;case"12H":q.setHours(q.getHours()-12);break;case"24H":q.setHours(q.getHours()-24);break;case"48H":q.setHours(q.getHours()-48);break;case"week":q.setDate(q.getDate()-7);break;case"month":q.setMonth(q.getMonth()-1);break}O=O.filter(L=>new Date(L.time)>=q)}else if(typeof f.timestampRange=="object"){if(f.timestampRange.start&&f.timestampRange.end){const q=new Date(f.timestampRange.start),L=new Date(f.timestampRange.end);O=O.filter(Q=>{const $=new Date(Q.time);return $>=q&&$<=L})}else if(f.timestampRange.start){const q=new Date(f.timestampRange.start);O=O.filter(L=>new Date(L.time)>=q)}else if(f.timestampRange.end){const q=new Date(f.timestampRange.end);O=O.filter(L=>new Date(L.time)<=q)}}}f.status!==void 0&&f?.status.length>2&&(O=O.filter(q=>Number(q.statusCode)===Number(f.status))),f.method&&(O=O.filter(q=>q.method.toLowerCase()===f.method.toLowerCase())),f.path&&(O=O.filter(q=>q.path.includes(f.path))),f.durationMin&&(O=O.filter(q=>Number(q.latency)>=Number(f.durationMin))),f.durationMax&&(O=O.filter(q=>Number(q.latency)<=Number(f.durationMax))),f.host&&(O=O.filter(q=>q.server.toLowerCase().includes(f.host.toLowerCase())));let P;if(typeof O.orderBy=="function")try{P=O.orderBy(b.field),b.order==="desc"&&(P=P.reverse())}catch(q){console.error("[EventDB] orderBy error, fallback sorting:",q),P=(await O.toArray()).sort((L,Q)=>{const $=b.field;return L[$]<Q[$]?b.order==="asc"?-1:1:L[$]>Q[$]?b.order==="asc"?1:-1:0})}else P=(await O.toArray()).sort((q,L)=>{const Q=b.field;return q[Q]<L[Q]?b.order==="asc"?-1:1:q[Q]>L[Q]?b.order==="asc"?1:-1:0});const I=(A-1)*C;let F;return Array.isArray(P)?F=P.slice(I,I+C):typeof P.offset=="function"?F=await P.offset(I).limit(C).toArray():F=[],F.map(q=>({id:q.id,...q.raw.data}))}async clearEvents(){return await this.db.events.clear()}}const ht=new yi,Oi=({sseEndpoint:s="/api/sse"})=>{const[d,f]=z.useState(null),[b,A]=z.useState("request"),[C,O]=z.useState(s),[P,I]=z.useState(!1),F=100,[q,L]=z.useState(1),[Q,$]=z.useState("time"),[G,pe]=z.useState("desc"),[ve,je]=z.useState({}),ie=Xr(()=>ht.queryEvents({sort:{field:Q,order:G},filters:ve,page:q,pageSize:F}),[q,Q,G,ve]),ke=Xr(()=>ht.db.events.count(),[]),ge=ke?Math.ceil(ke/F):1;z.useEffect(()=>{if(typeof window<"u"){const oe=localStorage.getItem("sseEndpoint");!C&&oe&&O(oe)}},[C]),z.useEffect(()=>{const oe=()=>`req-${Math.random().toString(36).substr(2,9)}`,se=new EventSource(C);return console.log(`Inspectr EventSource created with URL: ${C}`),se.onopen=()=>{console.log("SSE Inspectr connection opened"),I(!0)},se.onmessage=ne=>{try{const Oe=JSON.parse(ne.data);Oe.id||(Oe.id=oe()),ht.upsertEvent(Oe).catch(qe=>console.error("Error saving event to DB:",qe))}catch(Oe){console.error("Error parsing SSE Inspectr data:",Oe)}},se.onerror=ne=>{console.error("SSE Inspectr error:",ne),I(!1)},()=>{console.log("Closing Inspectr EventSource"),se.close(),I(!1)}},[C]),z.useEffect(()=>{!d&&ie&&ie.length>0&&f(ie[0])},[ie,d]);const fe=()=>{f(null),ht.clearEvents().catch(oe=>console.error("Error clearing events from DB:",oe))},ee=async()=>{try{const oe=await ht.queryEvents({filters:ve,sort:{field:"time",order:"desc"},page:1,pageSize:Number.MAX_SAFE_INTEGER});await Promise.all(oe.map(se=>ht.deleteEvent(se.id))),d&&oe.some(se=>se.id===d.id)&&f(null)}catch(oe){console.error("Error clearing filtered requests:",oe)}},X=oe=>{d&&(d.id||"")===oe&&f(null),ht.deleteEvent(oe).catch(se=>console.error("Error deleting event from DB:",se))};return u.jsxs("div",{className:"flex flex-col h-screen",children:[u.jsxs("div",{className:"flex flex-grow",children:[u.jsx("div",{className:"w-1/3 border-r border-gray-300 overflow-y-auto",children:u.jsx(oa,{requests:ie||[],onSelect:f,onRemove:X,clearRequests:fe,clearFilteredRequests:ee,selectedRequest:d,currentPage:q,totalPages:ge,totalCount:ke||0,onPageChange:L,sortField:Q,sortDirection:G,filters:ve,setSortField:$,setSortDirection:pe,setFilters:je})}),u.jsx("div",{className:"w-2/3 p-4",children:u.jsx(hi,{request:d,currentTab:b,setCurrentTab:A})})]}),u.jsx(mi,{sseEndpoint:C,setSseEndpoint:O,isConnected:P})]})};export{Oi as InspectrApp};
package/dist/index.html CHANGED
@@ -1,3 +1,3 @@
1
- <!DOCTYPE html><html lang="en" data-astro-cid-sckkx6r4> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width"><link rel="icon" type="image/icon" href="/favicon.ico"><meta name="description" content="Inspectr – Simplifying API and Webhook debugging"><title>Inspectr</title><link rel="stylesheet" href="/_astro/index.DqJDusVa.css"></head> <body data-astro-cid-sckkx6r4> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="1Ol29b" prefix="r0" component-url="/_astro/ui.VFnAlxts.js" component-export="InspectrApp" renderer-url="/_astro/client.WCY5ZO72.js" props="{}" ssr client="load" opts="{&quot;name&quot;:&quot;InspectrApp&quot;,&quot;value&quot;:true}" await-children><div class="flex flex-col h-screen"><div class="flex flex-grow"><div class="w-1/3 border-r border-gray-300 overflow-y-auto"><div class="flex flex-col h-full relative"><div class="p-4 flex justify-between items-center"><span class="font-bold text-xl">Requests (<!-- -->0<!-- --> of <!-- -->0<!-- -->)</span><div class="space-x-2"><button class="px-3 py-1 bg-blue-500 text-white rounded text-xs cursor-pointer">Filters</button><button class="px-3 py-1 bg-red-500 text-white rounded text-xs cursor-pointer">Clear All</button></div></div><div class="flex items-center bg-gray-200 p-2 border-b border-gray-300 text-sm font-bold cursor-pointer"><div class="w-16 text-center">Status</div><div class="w-20 text-center">Method</div><div class="flex-grow text-left">Path</div><div class="w-20 text-center">Duration</div><div class="w-10"></div></div><ul class="overflow-y-auto flex-grow" style="max-height:calc(100vh - 40px - 100px - 49px)"></ul><nav class="p-2 border-t border-gray-300"><ul class="flex items-center justify-center -space-x-px h-8 text-sm"><li><button disabled="" class="flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-e-0 border-gray-300 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 disabled:opacity-50 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white cursor-pointer"><span class="sr-only">Previous</span><svg class="w-2.5 h-2.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 1 1 5l4 4"></path></svg></button></li><li><button class="z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white cursor-pointer">1</button></li><li><button disabled="" class="flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 disabled:opacity-50 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white cursor-pointer"><span class="sr-only">Next</span><svg class="w-2.5 h-2.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"></path></svg></button></li></ul></nav><div class="fixed top-0 left-0 h-full w-100 bg-white shadow-xl transform transition-transform duration-300
1
+ <!DOCTYPE html><html lang="en" data-astro-cid-sckkx6r4> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width"><link rel="icon" type="image/icon" href="/favicon.ico"><meta name="description" content="Inspectr – Simplifying API and Webhook debugging"><title>Inspectr</title><link rel="stylesheet" href="/_astro/index.mhLLulM4.css"></head> <body data-astro-cid-sckkx6r4> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t),11:t=>1/0*t},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="1XJL95" prefix="r0" component-url="/_astro/ui.DN9AB-cN.js" component-export="InspectrApp" renderer-url="/_astro/client.WCY5ZO72.js" props="{}" ssr client="load" opts="{&quot;name&quot;:&quot;InspectrApp&quot;,&quot;value&quot;:true}" await-children><div class="flex flex-col h-screen"><div class="flex flex-grow"><div class="w-1/3 border-r border-gray-300 overflow-y-auto"><div class="flex flex-col h-full relative"><div class="p-4 flex justify-between items-center"><span class="font-bold text-xl">Requests (<!-- -->0<!-- --> of <!-- -->0<!-- -->)</span><div class="space-x-2 relative"><button class="relative px-3 py-1 rounded text-xs cursor-pointer bg-blue-500 text-white"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 text-white"><path stroke-linecap="round" stroke-linejoin="round" d="M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"></path></svg></button><button class="px-3 py-1 bg-red-500 text-white rounded text-xs cursor-pointer"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 text-white"><path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"></path></svg></button></div></div><div class="flex items-center bg-gray-200 p-2 border-b border-gray-300 text-sm font-bold cursor-pointer"><div class="w-16 text-center">Status</div><div class="w-20 text-center">Method</div><div class="flex-grow text-left">Path</div><div class="w-20 text-center">Duration</div><div class="w-10"></div></div><ul class="overflow-y-auto flex-grow" style="max-height:calc(100vh - 40px - 100px - 49px)"></ul><nav class="p-2 border-t border-gray-300"><ul class="flex items-center justify-center -space-x-px h-8 text-sm"><li><button disabled="" class="flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-e-0 border-gray-300 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 disabled:opacity-50 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white cursor-pointer"><span class="sr-only">Previous</span><svg class="w-2.5 h-2.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 1 1 5l4 4"></path></svg></button></li><li><button class="z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white cursor-pointer">1</button></li><li><button disabled="" class="flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 disabled:opacity-50 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white cursor-pointer"><span class="sr-only">Next</span><svg class="w-2.5 h-2.5 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"></path></svg></button></li></ul></nav><div class="fixed top-0 left-0 h-full w-100 bg-white shadow-xl transform transition-transform duration-300
2
2
  -translate-x-full
3
- " style="z-index:9999"><div class="flex items-center justify-between px-4 py-3 border-b border-gray-300 bg-gray-50"><h2 class="pl-4 text-lg font-semibold text-gray-800">Filter &amp; Sort</h2><button class="text-gray-600 hover:text-gray-800 focus:outline-none cursor-pointer" aria-label="Close">×</button></div><div class="p-4 overflow-y-auto h-full"><section class="mb-6 ml-4 mr-4"><div class="flex items-center justify-between"><h3 class="mb-3 text-xs font-bold text-gray-600 uppercase tracking-wide">Sort By</h3><button class="text-xs text-blue-600 hover:underline cursor-pointer">Reset</button></div><div class="space-y-3"><label class="flex items-center"><input type="radio" class="form-radio text-blue-600" name="sortField" checked="" value="time"/><span class="ml-3 text-gray-700">Timestamp</span></label><label class="flex items-center"><input type="radio" class="form-radio text-blue-600" name="sortField" value="statusCode"/><span class="ml-3 text-gray-700">Status</span></label><label class="flex items-center"><input type="radio" class="form-radio text-blue-600" name="sortField" value="method"/><span class="ml-3 text-gray-700">Method</span></label></div><div class="mt-4"><h4 class="mb-2 text-xs font-bold text-gray-600 uppercase tracking-wide">Sort Direction</h4><div class="space-y-3"><label class="flex items-center"><input type="radio" class="form-radio text-blue-600" name="sortDirection" value="asc"/><span class="ml-3 text-gray-700">Ascending</span></label><label class="flex items-center"><input type="radio" class="form-radio text-blue-600" name="sortDirection" checked="" value="desc"/><span class="ml-3 text-gray-700">Descending</span></label></div></div></section><section class="mb-6 ml-4 mr-4"><div class="flex items-center justify-between"><h3 class="mb-3 text-xs font-bold text-gray-600 uppercase tracking-wide">Filters</h3><button class="text-xs text-blue-600 hover:underline cursor-pointer">Reset</button></div><div class="space-y-4"><div><label class="block text-sm font-medium text-gray-700 mb-1">Status</label><input type="number" placeholder="e.g. 200" class="block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Method</label><select class="block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"><option value="" selected="">Any</option><option value="GET">GET</option><option value="POST">POST</option><option value="PUT">PUT</option><option value="PATCH">PATCH</option><option value="DELETE">DELETE</option><option value="OPTIONS">OPTIONS</option></select></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Path</label><input type="text" placeholder="e.g. /api/users" class="block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Duration (ms)</label><div class="flex space-x-2"><input type="number" placeholder="Min" class="w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/><input type="number" placeholder="Max" class="w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/></div></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Host</label><input type="text" placeholder="e.g. localhost" class="block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/></div></div></section></div></div></div></div><div class="w-2/3 p-4"><div class="text-gray-500">No request selected.</div></div></div><div class="fixed bottom-0 left-0 w-full"><div class="flex items-center justify-between bg-gray-200 px-4 py-2 w-full cursor-pointer select-none"><div class="flex items-center gap-4"><span class="px-2 py-1 rounded-full text-xs font-semibold flex items-center bg-red-500"><span class="w-2 h-2 rounded-full mr-1 bg-red-800"></span>Disconnected</span></div><a href="https://github.com/thim81/inspectr" target="_blank" rel="noopener noreferrer" class="flex items-center gap-2"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAACHxJREFUeJztnX+MFGcdxiul8UWMcECtlSIcR+GKYKsHhTu9dsQr9PhxV+TSEtTYVqXVHnD9AZWWhkG7tY1pY2uUtrYRQhZbTyC1Ftyilhg1Ri0Ww4gh1pomeze3O8ZaClZ68PoZ50gu6+zdLjd732FmnuT5j5DvPJ/bfZ93fu155yVKlChRokSJEg1FatLssXi09ByxE6FfjHfjU/g/+HE8TnquWKgv/D9jXeCf4irp+SItAj4f/9wn/DN+EL9Les7IinCXDxC+63/ij0vPGUn1LbivDQLA9Y+lZ42kCPZ6fLoEACdxrfS8kZL7vY5/XUL4Z7xVeuZIiUA/XOJf/xn/FV8kPXdkRJj3lBG+7tsffEF67kjI3ekOUj0zuAVfjtfg7/R5pfTskRBBzsJvFQn/V8kOOAARosL34tfxOwU+VST8N8ZMr7+sPe3svW27o295Kq+/uDWvb3o0rz/3zbxe9UCu5wYzd1/bppySPr7QizDvxr1lfs9/a+0zPW3tO53TRQBoAPSuuDe3Qfr4Qi/C/FuZ4b9dbXxm0rrO/CsA0AMA0CvuyR2VPr7Qi0APlQng+Y5dzlUA6C0BwEHp4wu9CPQ6/O8yKuaC23c7z3V05vUgAE7wFbRU+vhCL+XtdJvwdvzDfn7VB0AWV92xx+kEQAYAGQBkAJABQAYAGQBkAPAsABayCCdnR89Gyjv1/CMfADukZ4uFCHoC/pMPgOukZ4uFCLq2yLpwofRssRBBf8on/C7puWIjwr7ZB8A+6bnOSRHceHxbvxNlpfi3PgA2r3/BWXXX806aFpSmBaVpQWlaUJoWlKYFpWlBaVpQmhaUpgWlP70xt6P1ztz2pWty3792dc/TTTf1PGWssp9obLO/29Bq3zJ/iT1WOp+Kqq/NfK/MjVYxLwTAcwDQANAl7AP0io05DQANAA0ADQANAA0AXd9i63nN9qNzmrqjW1UJ7WP4HwGEfxxXA+BokACuvNa2ATBdOqeKidDq8b8CAJB979S6KgCcCBhAHgCzpHOqmAjuAnfxDADA4TWdr05av9fRAX8F7QLACOmcKirCm4ifxFaJdk9BFJ6e3r9hnzMTABYALABYALAAYAHAAoAFAAsAFgAsAFgAsABgAcACgAUACwAWACwAHG5osR+bv9hOrh0XirAb8JsFALZJzxUbEXaz8m667Q/gIem5YiPCXumzBrRLzxUbEfZXfAC0Ss8VGxH2Rh8Ac6XnCq2Ud0FlKV6Nbw3AewsBjJ919bS7M85aWpBJCzJpQSYtyKQFmbQgkxZk0oJMWpBJCzJpQSYtyKQFmbQgkxZk0oJMWpBJCzJpQSY11GQfYNYt6DYvb+w2Z9d3mTPndJkzrugyp83KbqqpzS6fOj0b7oqqvLuW9wfQ8wf08vs7xwLgtaD3AQDQANAA0ADQANAA0ADQANDVl2ZfnDItO0Y656IinDZV3n2bZ+Newq/CWQEAp6fUZJdL51xUbjup9F8/zhP+hTgnAEBPrsneKp1zURHOlfjtCgPIEf4HsCMA4ASfgI9K51xUyjvd3KG8uxUqBeB1wp+Mjw0zgC4AtLMGnC+d87CKwDsLAFjl/h8rv54bCYCLADCh5c7cOABULVrd8z4AjAbAKAC8u6HFvgAAIyJ9PeBspLx7goYEINEQlAAQVgJAWAmAsxAhVeGpATnj04IUbqQFGbQggxZk0IIMWpBBCzJoQQYtyKAFGbQggxZksAgbLMIGLchgETZoQQaLsMEibLAIG7Qgg0XYoAUZtCCDFmTQggxakEELMmouy1ZL5zqolPd0y2Oq/Acsyt0HTMHHh7mGnqaGPk0NHSWdc1Ep767mSoZ/BsCH8JsCG7FeNmKLpHMuKsJZW+HwXR8j/PcLnoq4QzrnoiKcxcPwCdCEPwHbAgBO8QkI70MehDMKb1XFn2YMxPU3b5kIgL8LANjOGhD+t3IR0iX4amwE4G2FAMbWNkwHwPwht6Ab7QUAuAYATQBYAIBPFm1BtdkZ0rmKSHmPrRZ+Cj4hPVdsRNhf9gFwg/RcsZEbtg+Au6Tnio0Ie5H6/4s8j0jPFRsp/zuq09JznbMivDr88hCr6Esb9jl1QdbQhhb70LzF9jzpfCoqghuDfx/AXuDI6m2vXBL4PqDZ/sOcpu7w3nYyVBFcIz4WAAAbj1//gnM84I3YMQA0SudUMSnvfW+5AAC4zwzXAOBIwAB6ADBTOqeKiuA2K+91kkOFsAQAewIE8M68ZnuLdD4Vl/KuGSzs2+GaJfpFHwApACwBQAoAKQCkAJACQAoAKQCkAJACwP0A+BoAtgxwb+jmhlZ72fwldnjP9UuKsG/0AfAz6bliI8K+ygeAu5Yk9/AMhwj6UuX/tsQPSs8WCxH0OHzQB8D10rPFQgQ9Aj/jA+BZ6dkiJ0IdqbwbfN3TFf2fF/Z7xcH/NmS0oF8O8pzwQVpQR9um3Ejp4wu9lPeMQanXld2HQZpv3+38oIR9gPve0C9JH1/oRaBHy9yQZTp2OXPXdeZPlvDaykPSxxd6EeiRMgGcvHjusskA+F0JAF6WPr7Qi0BX4RNlQtjavrO7GQC9g7w3tE36+EIv5T1ls0x5L/TYVuCXigB4a3R13Ufa087DADgAgAMAOACAXwBgf98bs1pZhOP1dEvQIugZ+I0iEP6IJ/b7t251na28W1vC+1zXuSTl3fj1kwG+in6DP4+vwd/APcp7u9bj0rNHRoS5rsz1wf3dgc9Kzx0ZEWZNGfsE139RyS9rBCvl/VZkqQCSW1iClvJeBlLKDcDupctJ0vNGTsr7NaXDJQDYKT1rZKW8p3EGejGI24CukJ4zsurr+XsGAPBV6RkjL+VdqPG70WsHfo/0fLGQ8h6J/bbyzh/l8X0q+W354ZdKLtAnSpQoUaJEicrRfwFj5g/5zsKE0wAAAABJRU5ErkJggg==" alt="Inspectr Logo" class="h-6"/><span class="text-gray-700 font-semibold text-sm">Inspectr</span></a></div><div class="bg-gray-100 border-t border-gray-300 transition-all duration-300 overflow-hidden max-h-0 opacity-0 py-0"><div class="px-6"><div class="grid grid-cols-2 gap-4 items-center"><div><h2 class="text-lg font-semibold text-gray-800 mb-4">Configuration</h2></div><div class="flex items-center gap-2"><label class="text-gray-700 font-semibold whitespace-nowrap">SSE Endpoint:</label><input type="text" class="border p-2 rounded flex-1 bg-white" placeholder="Enter SSE Endpoint..." value="/api/sse"/></div></div><div class="flex justify-end mt-4"><button class="bg-green-600 text-white px-4 py-2 rounded-md">Apply</button></div></div></div></div></div><!--astro:end--></astro-island> </body></html>
3
+ " style="z-index:9999"><div class="flex items-center justify-between px-4 py-3 border-b border-gray-300 bg-gray-50"><h2 class="pl-4 text-lg font-semibold text-gray-800">Filter &amp; Sort</h2><button class="text-gray-600 hover:text-gray-800 focus:outline-none cursor-pointer" aria-label="Close">×</button></div><div class="p-4 overflow-y-auto h-full"><section class="mb-6 ml-4 mr-4"><div class="flex items-center justify-between"><h3 class="mb-3 text-xs font-bold text-gray-600 uppercase tracking-wide">Sort By</h3><button class="text-xs text-blue-600 hover:underline cursor-pointer">Reset</button></div><div class="space-y-3"><label class="flex items-center"><input type="radio" class="form-radio text-blue-600" name="sortField" checked="" value="time"/><span class="ml-3 text-gray-700">Timestamp</span></label><label class="flex items-center"><input type="radio" class="form-radio text-blue-600" name="sortField" value="statusCode"/><span class="ml-3 text-gray-700">Status</span></label><label class="flex items-center"><input type="radio" class="form-radio text-blue-600" name="sortField" value="method"/><span class="ml-3 text-gray-700">Method</span></label></div><div class="mt-4"><h4 class="mb-2 text-xs font-bold text-gray-600 uppercase tracking-wide">Sort Direction</h4><div class="space-y-3"><label class="flex items-center"><input type="radio" class="form-radio text-blue-600" name="sortDirection" value="asc"/><span class="ml-3 text-gray-700">Ascending</span></label><label class="flex items-center"><input type="radio" class="form-radio text-blue-600" name="sortDirection" checked="" value="desc"/><span class="ml-3 text-gray-700">Descending</span></label></div></div></section><section class="mb-6 ml-4 mr-4"><div class="flex items-center justify-between"><h3 class="mb-3 text-xs font-bold text-gray-600 uppercase tracking-wide">Filters</h3><button class="text-xs text-blue-600 hover:underline cursor-pointer">Reset</button></div><div class="space-y-4"><div><label class="block text-sm font-medium text-gray-700 mb-1">Quick Time Range</label><select class="block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"><option value="" selected="">Any</option><option value="15M">Last 15 minutes</option><option value="30M">Last 30 minutes</option><option value="1H">Last 1 hour</option><option value="3H">Last 3 hours</option><option value="6H">Last 6 hours</option><option value="12H">Last 12 hours</option><option value="24H">Last 24 hours</option><option value="48H">Last 2 days</option><option value="week">Last Week</option><option value="month">Last Month</option></select></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Specific Time Range</label><div class="flex space-x-2"><input type="datetime-local" class="w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/><input type="datetime-local" class="w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/></div></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Status</label><input type="number" placeholder="e.g. 200" class="block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Method</label><select class="block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"><option value="" selected="">Any</option><option value="GET">GET</option><option value="POST">POST</option><option value="PUT">PUT</option><option value="PATCH">PATCH</option><option value="DELETE">DELETE</option><option value="OPTIONS">OPTIONS</option><option value="HEAD">HEAD</option></select></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Path</label><input type="text" placeholder="e.g. /api/users" class="block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Duration (ms)</label><div class="flex space-x-2"><input type="number" placeholder="Min" class="w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/><input type="number" placeholder="Max" class="w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/></div></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Host</label><input type="text" placeholder="e.g. localhost" class="block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" value=""/></div></div></section></div></div></div></div><div class="w-2/3 p-4"><div class="text-gray-500">No request selected.</div></div></div><div class="fixed bottom-0 left-0 w-full"><div class="flex items-center justify-between bg-gray-200 px-4 py-2 w-full cursor-pointer select-none"><div class="flex items-center gap-4"><span class="px-2 py-1 rounded-full text-xs font-semibold flex items-center bg-red-500"><span class="w-2 h-2 rounded-full mr-1 bg-red-800"></span>Disconnected</span></div><a href="https://github.com/thim81/inspectr" target="_blank" rel="noopener noreferrer" class="flex items-center gap-2"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAACHxJREFUeJztnX+MFGcdxiul8UWMcECtlSIcR+GKYKsHhTu9dsQr9PhxV+TSEtTYVqXVHnD9AZWWhkG7tY1pY2uUtrYRQhZbTyC1Ftyilhg1Ri0Ww4gh1pomeze3O8ZaClZ68PoZ50gu6+zdLjd732FmnuT5j5DvPJ/bfZ93fu155yVKlChRokSJEg1FatLssXi09ByxE6FfjHfjU/g/+HE8TnquWKgv/D9jXeCf4irp+SItAj4f/9wn/DN+EL9Les7IinCXDxC+63/ij0vPGUn1LbivDQLA9Y+lZ42kCPZ6fLoEACdxrfS8kZL7vY5/XUL4Z7xVeuZIiUA/XOJf/xn/FV8kPXdkRJj3lBG+7tsffEF67kjI3ekOUj0zuAVfjtfg7/R5pfTskRBBzsJvFQn/V8kOOAARosL34tfxOwU+VST8N8ZMr7+sPe3svW27o295Kq+/uDWvb3o0rz/3zbxe9UCu5wYzd1/bppySPr7QizDvxr1lfs9/a+0zPW3tO53TRQBoAPSuuDe3Qfr4Qi/C/FuZ4b9dbXxm0rrO/CsA0AMA0CvuyR2VPr7Qi0APlQng+Y5dzlUA6C0BwEHp4wu9CPQ6/O8yKuaC23c7z3V05vUgAE7wFbRU+vhCL+XtdJvwdvzDfn7VB0AWV92xx+kEQAYAGQBkAJABQAYAGQBkAPAsABayCCdnR89Gyjv1/CMfADukZ4uFCHoC/pMPgOukZ4uFCLq2yLpwofRssRBBf8on/C7puWIjwr7ZB8A+6bnOSRHceHxbvxNlpfi3PgA2r3/BWXXX806aFpSmBaVpQWlaUJoWlKYFpWlBaVpQmhaUpgWlP70xt6P1ztz2pWty3792dc/TTTf1PGWssp9obLO/29Bq3zJ/iT1WOp+Kqq/NfK/MjVYxLwTAcwDQANAl7AP0io05DQANAA0ADQANAA0AXd9i63nN9qNzmrqjW1UJ7WP4HwGEfxxXA+BokACuvNa2ATBdOqeKidDq8b8CAJB979S6KgCcCBhAHgCzpHOqmAjuAnfxDADA4TWdr05av9fRAX8F7QLACOmcKirCm4ifxFaJdk9BFJ6e3r9hnzMTABYALABYALAAYAHAAoAFAAsAFgAsAFgAsABgAcACgAUACwAWACwAHG5osR+bv9hOrh0XirAb8JsFALZJzxUbEXaz8m667Q/gIem5YiPCXumzBrRLzxUbEfZXfAC0Ss8VGxH2Rh8Ac6XnCq2Ud0FlKV6Nbw3AewsBjJ919bS7M85aWpBJCzJpQSYtyKQFmbQgkxZk0oJMWpBJCzJpQSYtyKQFmbQgkxZk0oJMWpBJCzJpQSY11GQfYNYt6DYvb+w2Z9d3mTPndJkzrugyp83KbqqpzS6fOj0b7oqqvLuW9wfQ8wf08vs7xwLgtaD3AQDQANAA0ADQANAA0ADQANDVl2ZfnDItO0Y656IinDZV3n2bZ+Newq/CWQEAp6fUZJdL51xUbjup9F8/zhP+hTgnAEBPrsneKp1zURHOlfjtCgPIEf4HsCMA4ASfgI9K51xUyjvd3KG8uxUqBeB1wp+Mjw0zgC4AtLMGnC+d87CKwDsLAFjl/h8rv54bCYCLADCh5c7cOABULVrd8z4AjAbAKAC8u6HFvgAAIyJ9PeBspLx7goYEINEQlAAQVgJAWAmAsxAhVeGpATnj04IUbqQFGbQggxZk0IIMWpBBCzJoQQYtyKAFGbQggxZksAgbLMIGLchgETZoQQaLsMEibLAIG7Qgg0XYoAUZtCCDFmTQggxakEELMmouy1ZL5zqolPd0y2Oq/Acsyt0HTMHHh7mGnqaGPk0NHSWdc1Ep767mSoZ/BsCH8JsCG7FeNmKLpHMuKsJZW+HwXR8j/PcLnoq4QzrnoiKcxcPwCdCEPwHbAgBO8QkI70MehDMKb1XFn2YMxPU3b5kIgL8LANjOGhD+t3IR0iX4amwE4G2FAMbWNkwHwPwht6Ab7QUAuAYATQBYAIBPFm1BtdkZ0rmKSHmPrRZ+Cj4hPVdsRNhf9gFwg/RcsZEbtg+Au6Tnio0Ie5H6/4s8j0jPFRsp/zuq09JznbMivDr88hCr6Esb9jl1QdbQhhb70LzF9jzpfCoqghuDfx/AXuDI6m2vXBL4PqDZ/sOcpu7w3nYyVBFcIz4WAAAbj1//gnM84I3YMQA0SudUMSnvfW+5AAC4zwzXAOBIwAB6ADBTOqeKiuA2K+91kkOFsAQAewIE8M68ZnuLdD4Vl/KuGSzs2+GaJfpFHwApACwBQAoAKQCkAJACQAoAKQCkAJACwP0A+BoAtgxwb+jmhlZ72fwldnjP9UuKsG/0AfAz6bliI8K+ygeAu5Yk9/AMhwj6UuX/tsQPSs8WCxH0OHzQB8D10rPFQgQ9Aj/jA+BZ6dkiJ0IdqbwbfN3TFf2fF/Z7xcH/NmS0oF8O8pzwQVpQR9um3Ejp4wu9lPeMQanXld2HQZpv3+38oIR9gPve0C9JH1/oRaBHy9yQZTp2OXPXdeZPlvDaykPSxxd6EeiRMgGcvHjusskA+F0JAF6WPr7Qi0BX4RNlQtjavrO7GQC9g7w3tE36+EIv5T1ls0x5L/TYVuCXigB4a3R13Ufa087DADgAgAMAOACAXwBgf98bs1pZhOP1dEvQIugZ+I0iEP6IJ/b7t251na28W1vC+1zXuSTl3fj1kwG+in6DP4+vwd/APcp7u9bj0rNHRoS5rsz1wf3dgc9Kzx0ZEWZNGfsE139RyS9rBCvl/VZkqQCSW1iClvJeBlLKDcDupctJ0vNGTsr7NaXDJQDYKT1rZKW8p3EGejGI24CukJ4zsurr+XsGAPBV6RkjL+VdqPG70WsHfo/0fLGQ8h6J/bbyzh/l8X0q+W354ZdKLtAnSpQoUaJEicrRfwFj5g/5zsKE0wAAAABJRU5ErkJggg==" alt="Inspectr Logo" class="h-6"/><span class="text-gray-700 font-semibold text-sm">Inspectr</span></a></div><div class="bg-gray-100 border-t border-gray-300 transition-all duration-300 overflow-hidden max-h-0 opacity-0 py-0"><div class="px-6"><div class="grid grid-cols-2 gap-4 items-center"><div><h2 class="text-lg font-semibold text-gray-800 mb-4">Configuration</h2></div><div class="flex items-center gap-2"><label class="text-gray-700 font-semibold whitespace-nowrap">SSE Endpoint:</label><input type="text" class="border p-2 rounded flex-1 bg-white" placeholder="Enter SSE Endpoint..." value="/api/sse"/></div></div><div class="flex justify-end mt-4"><button class="bg-green-600 text-white px-4 py-2 rounded-md">Apply</button></div></div></div></div></div><!--astro:end--></astro-island> </body></html>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@inspectr/app",
3
3
  "description": "Standalone Inspectr app for inspecting API requests & Webhook events.",
4
4
  "type": "module",
5
- "version": "0.0.3",
5
+ "version": "0.0.4",
6
6
  "author": "Tim Haselaars",
7
7
  "homepage": "https://github.com/thim81/inspectr#readme",
8
8
  "bugs": "https://github.com/thim81/inspectr-app/issues",
@@ -37,7 +37,7 @@
37
37
  "devDependencies": {
38
38
  "@astrojs/react": "^4.2.0",
39
39
  "@tailwindcss/vite": "^4.0.6",
40
- "@inspectr/ui": "^0.0.10",
40
+ "@inspectr/ui": "^0.0.11",
41
41
  "@types/react": "^19.0.8",
42
42
  "@types/react-dom": "^19.0.3",
43
43
  "astro": "^5.3.0",
@@ -1,23 +0,0 @@
1
- import{r as Q,a as Re}from"./index.uG8-tmmD.js";var Qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uo(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Qr={exports:{}},Dt={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Ur;function Vo(){if(Ur)return Dt;Ur=1;var s=Symbol.for("react.transitional.element"),p=Symbol.for("react.fragment");function d(b,O,A){var C=null;if(A!==void 0&&(C=""+A),O.key!==void 0&&(C=""+O.key),"key"in O){A={};for(var E in O)E!=="key"&&(A[E]=O[E])}else A=O;return O=A.ref,{$$typeof:s,type:b,key:C,ref:O!==void 0?O:null,props:A}}return Dt.Fragment=p,Dt.jsx=d,Dt.jsxs=d,Dt}var Vr;function Ho(){return Vr||(Vr=1,Qr.exports=Vo()),Qr.exports}var y=Ho(),sr={exports:{}},Wo=sr.exports,Hr;function Jo(){return Hr||(Hr=1,function(s,p){(function(d,b){s.exports=b()})(Wo,function(){var d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])})(e,t)},b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function O(e,t,n){for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var A=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Qo,C=Object.keys,E=Array.isArray;function T(e,t){return typeof t!="object"||C(t).forEach(function(n){e[n]=t[n]}),e}typeof Promise>"u"||A.Promise||(A.Promise=Promise);var L=Object.getPrototypeOf,z={}.hasOwnProperty;function M(e,t){return z.call(e,t)}function ie(e,t){typeof t=="function"&&(t=t(L(e))),(typeof Reflect>"u"?C:Reflect.ownKeys)(t).forEach(function(n){ae(e,n,t[n])})}var pe=Object.defineProperty;function ae(e,t,n,r){pe(e,t,T(n&&M(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function ge(e){return{from:function(t){return e.prototype=Object.create(t.prototype),ae(e.prototype,"constructor",e),{extend:ie.bind(null,e.prototype)}}}}var Ce=Object.getOwnPropertyDescriptor,Ie=[].slice;function re(e,t,n){return Ie.call(e,t,n)}function be(e,t){return t(e)}function Ae(e){if(!e)throw new Error("Assertion Failed")}function le(e){A.setImmediate?setImmediate(e):setTimeout(e,0)}function te(e,t){if(typeof t=="string"&&M(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var n=[],r=0,o=t.length;r<o;++r){var i=te(e,t[r]);n.push(i)}return n}var a=t.indexOf(".");if(a!==-1){var u=e[t.substr(0,a)];return u==null?void 0:te(u,t.substr(a+1))}}function V(e,t,n){if(e&&t!==void 0&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){Ae(typeof n!="string"&&"length"in n);for(var r=0,o=t.length;r<o;++r)V(e,t[r],n[r])}else{var i,a,u=t.indexOf(".");u!==-1?(i=t.substr(0,u),(a=t.substr(u+1))===""?n===void 0?E(e)&&!isNaN(parseInt(i))?e.splice(i,1):delete e[i]:e[i]=n:V(u=!(u=e[i])||!M(e,i)?e[i]={}:u,a,n)):n===void 0?E(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function _e(e){var t,n={};for(t in e)M(e,t)&&(n[t]=e[t]);return n}var fe=[].concat;function Y(e){return fe.apply([],e)}var rt="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Y([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return A[e]}),qe=new Set(rt.map(function(e){return A[e]})),Te=null;function Ke(e){return Te=new WeakMap,e=function t(n){if(!n||typeof n!="object")return n;var r=Te.get(n);if(r)return r;if(E(n)){r=[],Te.set(n,r);for(var o=0,i=n.length;o<i;++o)r.push(t(n[o]))}else if(qe.has(n.constructor))r=n;else{var a,u=L(n);for(a in r=u===Object.prototype?{}:Object.create(u),Te.set(n,r),n)M(n,a)&&(r[a]=t(n[a]))}return r}(e),Te=null,e}var tt={}.toString;function J(e){return tt.call(e).slice(8,-1)}var oe=typeof Symbol<"u"?Symbol.iterator:"@@iterator",Qe=typeof oe=="symbol"?function(e){var t;return e!=null&&(t=e[oe])&&t.apply(e)}:function(){return null};function Oe(e,t){return t=e.indexOf(t),0<=t&&e.splice(t,1),0<=t}var Pe={};function Be(e){var t,n,r,o;if(arguments.length===1){if(E(e))return e.slice();if(this===Pe&&typeof e=="string")return[e];if(o=Qe(e)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(e==null)return[e];if(typeof(t=e.length)!="number")return[e];for(n=new Array(t);t--;)n[t]=e[t];return n}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var $=typeof Symbol<"u"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},kt=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Me=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(kt),ue={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ye(e,t){this.name=e,this.message=t}function Ue(e,t){return e+". Errors: "+Object.keys(t).map(function(n){return t[n].toString()}).filter(function(n,r,o){return o.indexOf(n)===r}).join(`
10
- `)}function De(e,t,n,r){this.failures=t,this.failedKeys=r,this.successCount=n,this.message=Ue(e,t)}function ht(e,t){this.name="BulkError",this.failures=Object.keys(t).map(function(n){return t[n]}),this.failuresByPos=t,this.message=Ue(e,this.failures)}ge(ye).from(Error).extend({toString:function(){return this.name+": "+this.message}}),ge(De).from(ye),ge(ht).from(ye);var wn=Me.reduce(function(e,t){return e[t]=t+"Error",e},{}),fo=ye,U=Me.reduce(function(e,t){var n=t+"Error";function r(o,i){this.name=n,o?typeof o=="string"?(this.message="".concat(o).concat(i?`
11
- `+i:""),this.inner=i||null):typeof o=="object"&&(this.message="".concat(o.name," ").concat(o.message),this.inner=o):(this.message=ue[t]||n,this.inner=null)}return ge(r).from(fo),e[t]=r,e},{});U.Syntax=SyntaxError,U.Type=TypeError,U.Range=RangeError;var cr=kt.reduce(function(e,t){return e[t+"Error"]=U[t],e},{}),zt=Me.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=U[t]),e},{});function ne(){}function jt(e){return e}function ho(e,t){return e==null||e===jt?t:function(n){return t(e(n))}}function nt(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function po(e,t){return e===ne?t:function(){var n=e.apply(this,arguments);n!==void 0&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?nt(r,this.onsuccess):r),o&&(this.onerror=this.onerror?nt(o,this.onerror):o),i!==void 0?i:n}}function yo(e,t){return e===ne?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?nt(n,this.onsuccess):n),r&&(this.onerror=this.onerror?nt(r,this.onerror):r)}}function mo(e,t){return e===ne?t:function(n){var r=e.apply(this,arguments);T(n,r);var o=this.onsuccess,i=this.onerror;return this.onsuccess=null,this.onerror=null,n=t.apply(this,arguments),o&&(this.onsuccess=this.onsuccess?nt(o,this.onsuccess):o),i&&(this.onerror=this.onerror?nt(i,this.onerror):i),r===void 0?n===void 0?void 0:n:T(r,n)}}function vo(e,t){return e===ne?t:function(){return t.apply(this,arguments)!==!1&&e.apply(this,arguments)}}function jn(e,t){return e===ne?t:function(){var n=e.apply(this,arguments);if(n&&typeof n.then=="function"){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then(function(){return t.apply(r,i)})}return t.apply(this,arguments)}}zt.ModifyError=De,zt.DexieError=ye,zt.BulkError=ht;var Fe=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function lr(e){Fe=e}var _t={},fr=100,rt=typeof Promise>"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,L(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,L(t),e]}(),kt=rt[0],Me=rt[1],rt=rt[2],Me=Me&&Me.then,ot=kt&&kt.constructor,_n=!!rt,At=function(e,t){Ot.push([e,t]),Qt&&(queueMicrotask(bo),Qt=!1)},kn=!0,Qt=!0,it=[],Ut=[],An=jt,We={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:ne,pgp:!1,env:{},finalize:ne},F=We,Ot=[],at=0,Vt=[];function R(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=F;if(typeof e!="function"){if(e!==_t)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&Pn(this,this._value))}this._state=null,this._value=null,++t.ref,function n(r,o){try{o(function(i){if(r._state===null){if(i===r)throw new TypeError("A promise cannot be resolved with itself.");var a=r._lib&&pt();i&&typeof i.then=="function"?n(r,function(u,l){i instanceof R?i._then(u,l):i.then(u,l)}):(r._state=!0,r._value=i,hr(r)),a&&yt()}},Pn.bind(null,r))}catch(i){Pn(r,i)}}(this,e)}var On={get:function(){var e=F,t=Gt;function n(r,o){var i=this,a=!e.global&&(e!==F||t!==Gt),u=a&&!Ge(),l=new R(function(h,g){Cn(i,new dr(yr(r,e,a,u),yr(o,e,a,u),h,g,e))});return this._consoleTask&&(l._consoleTask=this._consoleTask),l}return n.prototype=_t,n},set:function(e){ae(this,"then",e&&e.prototype===_t?On:{get:function(){return e},set:On.set})}};function dr(e,t,n,r,o){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=n,this.reject=r,this.psd=o}function Pn(e,t){var n,r;Ut.push(t),e._state===null&&(n=e._lib&&pt(),t=An(t),e._state=!1,e._value=t,r=e,it.some(function(o){return o._value===r._value})||it.push(r),hr(e),n&&yt())}function hr(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Cn(e,t[n]);var o=e._PSD;--o.ref||o.finalize(),at===0&&(++at,At(function(){--at==0&&En()},[]))}function Cn(e,t){if(e._state!==null){var n=e._state?t.onFulfilled:t.onRejected;if(n===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++at,At(go,[n,e,t])}else e._listeners.push(t)}function go(e,t,n){try{var r,o=t._value;!t._state&&Ut.length&&(Ut=[]),r=Fe&&t._consoleTask?t._consoleTask.run(function(){return e(o)}):e(o),t._state||Ut.indexOf(o)!==-1||function(i){for(var a=it.length;a;)if(it[--a]._value===i._value)return it.splice(a,1)}(t),n.resolve(r)}catch(i){n.reject(i)}finally{--at==0&&En(),--n.psd.ref||n.psd.finalize()}}function bo(){st(We,function(){pt()&&yt()})}function pt(){var e=kn;return Qt=kn=!1,e}function yt(){var e,t,n;do for(;0<Ot.length;)for(e=Ot,Ot=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(0<Ot.length);Qt=kn=!0}function En(){var e=it;it=[],e.forEach(function(r){r._PSD.onunhandled.call(null,r._value,r)});for(var t=Vt.slice(0),n=t.length;n;)t[--n]()}function Ht(e){return new R(_t,!1,e)}function ce(e,t){var n=F;return function(){var r=pt(),o=F;try{return Xe(n,!0),e.apply(this,arguments)}catch(i){t&&t(i)}finally{Xe(o,!1),r&&yt()}}}ie(R.prototype,{then:On,_then:function(e,t){Cn(this,new dr(null,null,e,t,F))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=e,n=arguments[1];return typeof t=="function"?this.then(null,function(r){return(r instanceof t?n:Ht)(r)}):this.then(null,function(r){return(r&&r.name===t?n:Ht)(r)})},finally:function(e){return this.then(function(t){return R.resolve(e()).then(function(){return t})},function(t){return R.resolve(e()).then(function(){return Ht(t)})})},timeout:function(e,t){var n=this;return e<1/0?new R(function(r,o){var i=setTimeout(function(){return o(new U.Timeout(t))},e);n.then(r,o).finally(clearTimeout.bind(null,i))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&ae(R.prototype,Symbol.toStringTag,"Dexie.Promise"),We.env=pr(),ie(R,{all:function(){var e=Be.apply(null,arguments).map(Xt);return new R(function(t,n){e.length===0&&t([]);var r=e.length;e.forEach(function(o,i){return R.resolve(o).then(function(a){e[i]=a,--r||t(e)},n)})})},resolve:function(e){return e instanceof R?e:e&&typeof e.then=="function"?new R(function(t,n){e.then(t,n)}):new R(_t,!0,e)},reject:Ht,race:function(){var e=Be.apply(null,arguments).map(Xt);return new R(function(t,n){e.map(function(r){return R.resolve(r).then(t,n)})})},PSD:{get:function(){return F},set:function(e){return F=e}},totalEchoes:{get:function(){return Gt}},newPSD:Je,usePSD:st,scheduler:{get:function(){return At},set:function(e){At=e}},rejectionMapper:{get:function(){return An},set:function(e){An=e}},follow:function(e,t){return new R(function(n,r){return Je(function(o,i){var a=F;a.unhandleds=[],a.onunhandled=i,a.finalize=nt(function(){var u,l=this;u=function(){l.unhandleds.length===0?o():i(l.unhandleds[0])},Vt.push(function h(){u(),Vt.splice(Vt.indexOf(h),1)}),++at,At(function(){--at==0&&En()},[])},a.finalize),e()},t,n,r)})}}),ot&&(ot.allSettled&&ae(R,"allSettled",function(){var e=Be.apply(null,arguments).map(Xt);return new R(function(t){e.length===0&&t([]);var n=e.length,r=new Array(n);e.forEach(function(o,i){return R.resolve(o).then(function(a){return r[i]={status:"fulfilled",value:a}},function(a){return r[i]={status:"rejected",reason:a}}).then(function(){return--n||t(r)})})})}),ot.any&&typeof AggregateError<"u"&&ae(R,"any",function(){var e=Be.apply(null,arguments).map(Xt);return new R(function(t,n){e.length===0&&n(new AggregateError([]));var r=e.length,o=new Array(r);e.forEach(function(i,a){return R.resolve(i).then(function(u){return t(u)},function(u){o[a]=u,--r||n(new AggregateError(o))})})})}),ot.withResolvers&&(R.withResolvers=ot.withResolvers));var me={awaits:0,echoes:0,id:0},xo=0,Wt=[],Jt=0,Gt=0,wo=0;function Je(e,t,n,r){var o=F,i=Object.create(o);return i.parent=o,i.ref=0,i.global=!1,i.id=++wo,We.env,i.env=_n?{Promise:R,PromiseProp:{value:R,configurable:!0,writable:!0},all:R.all,race:R.race,allSettled:R.allSettled,any:R.any,resolve:R.resolve,reject:R.reject}:{},t&&T(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()},r=st(i,e,n,r),i.ref===0&&i.finalize(),r}function mt(){return me.id||(me.id=++xo),++me.awaits,me.echoes+=fr,me.id}function Ge(){return!!me.awaits&&(--me.awaits==0&&(me.id=0),me.echoes=me.awaits*fr,!0)}function Xt(e){return me.echoes&&e&&e.constructor===ot?(mt(),e.then(function(t){return Ge(),t},function(t){return Ge(),de(t)})):e}function jo(){var e=Wt[Wt.length-1];Wt.pop(),Xe(e,!1)}function Xe(e,t){var n,r=F;(t?!me.echoes||Jt++&&e===F:!Jt||--Jt&&e===F)||queueMicrotask(t?function(o){++Gt,me.echoes&&--me.echoes!=0||(me.echoes=me.awaits=me.id=0),Wt.push(F),Xe(o,!0)}.bind(null,e):jo),e!==F&&(F=e,r===We&&(We.env=pr()),_n&&(n=We.env.Promise,t=e.env,(r.global||e.global)&&(Object.defineProperty(A,"Promise",t.PromiseProp),n.all=t.all,n.race=t.race,n.resolve=t.resolve,n.reject=t.reject,t.allSettled&&(n.allSettled=t.allSettled),t.any&&(n.any=t.any))))}function pr(){var e=A.Promise;return _n?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(A,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function st(e,t,n,r,o){var i=F;try{return Xe(e,!0),t(n,r,o)}finally{Xe(i,!1)}}function yr(e,t,n,r){return typeof e!="function"?e:function(){var o=F;n&&mt(),Xe(t,!0);try{return e.apply(this,arguments)}finally{Xe(o,!1),r&&queueMicrotask(Ge)}}}function Nn(e){Promise===ot&&me.echoes===0?Jt===0?e():enqueueNativeMicroTask(e):setTimeout(e,0)}(""+Me).indexOf("[native code]")===-1&&(mt=Ge=ne);var de=R.reject,ut="￿",Ve="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",mr="String expected.",vt=[],Yt="__dbnames",Sn="readonly",Kn="readwrite";function ct(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var vr={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Zt(e){return typeof e!="string"||/\./.test(e)?function(t){return t}:function(t){return t[e]===void 0&&e in t&&delete(t=Ke(t))[e],t}}function gr(){throw U.Type()}function Z(e,t){try{var n=br(e),r=br(t);if(n!==r)return n==="Array"?1:r==="Array"?-1:n==="binary"?1:r==="binary"?-1:n==="string"?1:r==="string"?-1:n==="Date"?1:r!=="Date"?NaN:-1;switch(n){case"number":case"Date":case"string":return t<e?1:e<t?-1:0;case"binary":return function(o,i){for(var a=o.length,u=i.length,l=a<u?a:u,h=0;h<l;++h)if(o[h]!==i[h])return o[h]<i[h]?-1:1;return a===u?0:a<u?-1:1}(xr(e),xr(t));case"Array":return function(o,i){for(var a=o.length,u=i.length,l=a<u?a:u,h=0;h<l;++h){var g=Z(o[h],i[h]);if(g!==0)return g}return a===u?0:a<u?-1:1}(e,t)}}catch{}return NaN}function br(e){var t=typeof e;return t!="object"?t:ArrayBuffer.isView(e)?"binary":(e=J(e),e==="ArrayBuffer"?"binary":e)}function xr(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var wr=(se.prototype._trans=function(e,t,n){var r=this._tx||F.trans,o=this.name,i=Fe&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(e==="readonly"?"read":"write"," ").concat(this.name));function a(h,g,c){if(!c.schema[o])throw new U.NotFound("Table "+o+" not part of transaction");return t(c.idbtrans,c)}var u=pt();try{var l=r&&r.db._novip===this.db._novip?r===F.trans?r._promise(e,a,n):Je(function(){return r._promise(e,a,n)},{trans:r,transless:F.transless||F}):function h(g,c,w,f){if(g.idbdb&&(g._state.openComplete||F.letThrough||g._vip)){var v=g._createTransaction(c,w,g._dbSchema);try{v.create(),g._state.PR1398_maxLoop=3}catch(x){return x.name===wn.InvalidState&&g.isOpen()&&0<--g._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),g.close({disableAutoOpen:!1}),g.open().then(function(){return h(g,c,w,f)})):de(x)}return v._promise(c,function(x,m){return Je(function(){return F.trans=v,f(x,m,v)})}).then(function(x){if(c==="readwrite")try{v.idbtrans.commit()}catch{}return c==="readonly"?x:v._completion.then(function(){return x})})}if(g._state.openComplete)return de(new U.DatabaseClosed(g._state.dbOpenError));if(!g._state.isBeingOpened){if(!g._state.autoOpen)return de(new U.DatabaseClosed);g.open().catch(ne)}return g._state.dbReadyPromise.then(function(){return h(g,c,w,f)})}(this.db,e,[this.name],a);return i&&(l._consoleTask=i,l=l.catch(function(h){return console.trace(h),de(h)})),l}finally{u&&yt()}},se.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):e==null?de(new U.Type("Invalid argument to Table.get()")):this._trans("readonly",function(r){return n.core.get({trans:r,key:e}).then(function(o){return n.hook.reading.fire(o)})}).then(t)},se.prototype.where=function(e){if(typeof e=="string")return new this.db.WhereClause(this,e);if(E(e))return new this.db.WhereClause(this,"[".concat(e.join("+"),"]"));var t=C(e);if(t.length===1)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter(function(u){if(u.compound&&t.every(function(h){return 0<=u.keyPath.indexOf(h)})){for(var l=0;l<t.length;++l)if(t.indexOf(u.keyPath[l])===-1)return!1;return!0}return!1}).sort(function(u,l){return u.keyPath.length-l.keyPath.length})[0];if(n&&this.db._maxKey!==ut){var i=n.keyPath.slice(0,t.length);return this.where(i).equals(i.map(function(l){return e[l]}))}!n&&Fe&&console.warn("The query ".concat(JSON.stringify(e)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(t.join("+"),"]"));var r=this.schema.idxByName;function o(u,l){return Z(u,l)===0}var a=t.reduce(function(c,l){var h=c[0],g=c[1],c=r[l],w=e[l];return[h||c,h||!c?ct(g,c&&c.multi?function(f){return f=te(f,l),E(f)&&f.some(function(v){return o(w,v)})}:function(f){return o(w,te(f,l))}):g]},[null,null]),i=a[0],a=a[1];return i?this.where(i.name).equals(e[i.keyPath]).filter(a):n?this.filter(a):this.where(t).equals("")},se.prototype.filter=function(e){return this.toCollection().and(e)},se.prototype.count=function(e){return this.toCollection().count(e)},se.prototype.offset=function(e){return this.toCollection().offset(e)},se.prototype.limit=function(e){return this.toCollection().limit(e)},se.prototype.each=function(e){return this.toCollection().each(e)},se.prototype.toArray=function(e){return this.toCollection().toArray(e)},se.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},se.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,E(e)?"[".concat(e.join("+"),"]"):e))},se.prototype.reverse=function(){return this.toCollection().reverse()},se.prototype.mapToClass=function(e){var t,n=this.db,r=this.name;function o(){return t!==null&&t.apply(this,arguments)||this}(this.schema.mappedClass=e).prototype instanceof gr&&(function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function g(){this.constructor=l}d(l,h),l.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}(o,t=e),Object.defineProperty(o.prototype,"db",{get:function(){return n},enumerable:!1,configurable:!0}),o.prototype.table=function(){return r},e=o);for(var i=new Set,a=e.prototype;a;a=L(a))Object.getOwnPropertyNames(a).forEach(function(l){return i.add(l)});function u(l){if(!l)return l;var h,g=Object.create(e.prototype);for(h in l)if(!i.has(h))try{g[h]=l[h]}catch{}return g}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=u,this.hook("reading",u),e},se.prototype.defineClass=function(){return this.mapToClass(function(e){T(this,e)})},se.prototype.add=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=e;return i&&o&&(a=Zt(i)(e)),this._trans("readwrite",function(u){return n.core.mutate({trans:u,type:"add",keys:t!=null?[t]:null,values:[a]})}).then(function(u){return u.numFailures?R.reject(u.failures[0]):u.lastResult}).then(function(u){if(i)try{V(e,i,u)}catch{}return u})},se.prototype.update=function(e,t){return typeof e!="object"||E(e)?this.where(":id").equals(e).modify(t):(e=te(e,this.schema.primKey.keyPath),e===void 0?de(new U.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(e).modify(t))},se.prototype.put=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=e;return i&&o&&(a=Zt(i)(e)),this._trans("readwrite",function(u){return n.core.mutate({trans:u,type:"put",values:[a],keys:t!=null?[t]:null})}).then(function(u){return u.numFailures?R.reject(u.failures[0]):u.lastResult}).then(function(u){if(i)try{V(e,i,u)}catch{}return u})},se.prototype.delete=function(e){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})}).then(function(n){return n.numFailures?R.reject(n.failures[0]):void 0})},se.prototype.clear=function(){var e=this;return this._trans("readwrite",function(t){return e.core.mutate({trans:t,type:"deleteRange",range:vr})}).then(function(t){return t.numFailures?R.reject(t.failures[0]):void 0})},se.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",function(n){return t.core.getMany({keys:e,trans:n}).then(function(r){return r.map(function(o){return t.hook.reading.fire(o)})})})},se.prototype.bulkAdd=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,i=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(a){var h=r.schema.primKey,u=h.auto,h=h.keyPath;if(h&&o)throw new U.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new U.InvalidArgument("Arguments objects and keys must have the same length");var l=e.length,h=h&&u?e.map(Zt(h)):e;return r.core.mutate({trans:a,type:"add",keys:o,values:h,wantResults:i}).then(function(v){var c=v.numFailures,w=v.results,f=v.lastResult,v=v.failures;if(c===0)return i?w:f;throw new ht("".concat(r.name,".bulkAdd(): ").concat(c," of ").concat(l," operations failed"),v)})})},se.prototype.bulkPut=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,i=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(a){var h=r.schema.primKey,u=h.auto,h=h.keyPath;if(h&&o)throw new U.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new U.InvalidArgument("Arguments objects and keys must have the same length");var l=e.length,h=h&&u?e.map(Zt(h)):e;return r.core.mutate({trans:a,type:"put",keys:o,values:h,wantResults:i}).then(function(v){var c=v.numFailures,w=v.results,f=v.lastResult,v=v.failures;if(c===0)return i?w:f;throw new ht("".concat(r.name,".bulkPut(): ").concat(c," of ").concat(l," operations failed"),v)})})},se.prototype.bulkUpdate=function(e){var t=this,n=this.core,r=e.map(function(a){return a.key}),o=e.map(function(a){return a.changes}),i=[];return this._trans("readwrite",function(a){return n.getMany({trans:a,keys:r,cache:"clone"}).then(function(u){var l=[],h=[];e.forEach(function(c,w){var f=c.key,v=c.changes,x=u[w];if(x){for(var m=0,j=Object.keys(v);m<j.length;m++){var _=j[m],k=v[_];if(_===t.schema.primKey.keyPath){if(Z(k,f)!==0)throw new U.Constraint("Cannot update primary key in bulkUpdate()")}else V(x,_,k)}i.push(w),l.push(f),h.push(x)}});var g=l.length;return n.mutate({trans:a,type:"put",keys:l,values:h,updates:{keys:r,changeSpecs:o}}).then(function(c){var w=c.numFailures,f=c.failures;if(w===0)return g;for(var v=0,x=Object.keys(f);v<x.length;v++){var m,j=x[v],_=i[Number(j)];_!=null&&(m=f[j],delete f[j],f[_]=m)}throw new ht("".concat(t.name,".bulkUpdate(): ").concat(w," of ").concat(g," operations failed"),f)})})})},se.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",function(r){return t.core.mutate({trans:r,type:"delete",keys:e})}).then(function(a){var o=a.numFailures,i=a.lastResult,a=a.failures;if(o===0)return i;throw new ht("".concat(t.name,".bulkDelete(): ").concat(o," of ").concat(n," operations failed"),a)})},se);function se(){}function Pt(e){function t(a,u){if(u){for(var l=arguments.length,h=new Array(l-1);--l;)h[l-1]=arguments[l];return n[a].subscribe.apply(null,h),e}if(typeof a=="string")return n[a]}var n={};t.addEventType=i;for(var r=1,o=arguments.length;r<o;++r)i(arguments[r]);return t;function i(a,u,l){if(typeof a!="object"){var h;u=u||vo;var g={subscribers:[],fire:l=l||ne,subscribe:function(c){g.subscribers.indexOf(c)===-1&&(g.subscribers.push(c),g.fire=u(g.fire,c))},unsubscribe:function(c){g.subscribers=g.subscribers.filter(function(w){return w!==c}),g.fire=g.subscribers.reduce(u,l)}};return n[a]=t[a]=g}C(h=a).forEach(function(c){var w=h[c];if(E(w))i(c,h[c][0],h[c][1]);else{if(w!=="asap")throw new U.InvalidArgument("Invalid event config");var f=i(c,jt,function(){for(var v=arguments.length,x=new Array(v);v--;)x[v]=arguments[v];f.subscribers.forEach(function(m){le(function(){m.apply(null,x)})})})}})}}function Ct(e,t){return ge(t).from({prototype:e}),t}function gt(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Mn(e,t){e.filter=ct(e.filter,t)}function qn(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return ct(r(),t())}:t,e.justLimit=n&&!r}function $t(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new U.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function jr(e,t,n){var r=$t(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:r,range:e.range}})}function en(e,t,n,r){var o=e.replayFilter?ct(e.filter,e.replayFilter()):e.filter;if(e.or){var i={},a=function(u,l,h){var g,c;o&&!o(l,h,function(w){return l.stop(w)},function(w){return l.fail(w)})||((c=""+(g=l.primaryKey))=="[object ArrayBuffer]"&&(c=""+new Uint8Array(g)),M(i,c)||(i[c]=!0,t(u,l,h)))};return Promise.all([e.or._iterate(a,n),_r(jr(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return _r(jr(e,r,n),ct(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function _r(e,t,n,r){var o=ce(r?function(i,a,u){return n(r(i),a,u)}:n);return e.then(function(i){if(i)return i.start(function(){var a=function(){return i.continue()};t&&!t(i,function(u){return a=u},function(u){i.stop(u),a=ne},function(u){i.fail(u),a=ne})||o(i.value,i,function(u){return a=u}),a()})})}var Et=(kr.prototype.execute=function(e){var t=this["@@propmod"];if(t.add!==void 0){var n=t.add;if(E(n))return O(O([],E(e)?e:[],!0),n).sort();if(typeof n=="number")return(Number(e)||0)+n;if(typeof n=="bigint")try{return BigInt(e)+n}catch{return BigInt(0)+n}throw new TypeError("Invalid term ".concat(n))}if(t.remove!==void 0){var r=t.remove;if(E(r))return E(e)?e.filter(function(o){return!r.includes(o)}).sort():[];if(typeof r=="number")return Number(e)-r;if(typeof r=="bigint")try{return BigInt(e)-r}catch{return BigInt(0)-r}throw new TypeError("Invalid subtrahend ".concat(r))}return n=(n=t.replacePrefix)===null||n===void 0?void 0:n[0],n&&typeof e=="string"&&e.startsWith(n)?t.replacePrefix[1]+e.substring(n.length):e},kr);function kr(e){this["@@propmod"]=e}var _o=(ee.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,de.bind(null,n.error)):n.table._trans("readonly",e).then(t)},ee.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,de.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},ee.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=ct(t.algorithm,e)},ee.prototype._iterate=function(e,t){return en(this._ctx,e,t,this._ctx.table.core)},ee.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&T(n,e),t._ctx=n,t},ee.prototype.raw=function(){return this._ctx.valueMapper=null,this},ee.prototype.each=function(e){var t=this._ctx;return this._read(function(n){return en(t,e,n,t.table.core)})},ee.prototype.count=function(e){var t=this;return this._read(function(n){var r=t._ctx,o=r.table.core;if(gt(r,!0))return o.count({trans:n,query:{index:$t(r,o.schema),range:r.range}}).then(function(a){return Math.min(a,r.limit)});var i=0;return en(r,function(){return++i,!1},n,o).then(function(){return i})}).then(e)},ee.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],o=n.length-1;function i(l,h){return h?i(l[n[h]],h-1):l[r]}var a=this._ctx.dir==="next"?1:-1;function u(l,h){return Z(i(l,o),i(h,o))*a}return this.toArray(function(l){return l.sort(u)}).then(t)},ee.prototype.toArray=function(e){var t=this;return this._read(function(n){var r=t._ctx;if(r.dir==="next"&&gt(r,!0)&&0<r.limit){var o=r.valueMapper,i=$t(r,r.table.core.schema);return r.table.core.query({trans:n,limit:r.limit,values:!0,query:{index:i,range:r.range}}).then(function(u){return u=u.result,o?u.map(o):u})}var a=[];return en(r,function(u){return a.push(u)},n,r.table.core).then(function(){return a})},e)},ee.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,gt(t)?qn(t,function(){var n=e;return function(r,o){return n===0||(n===1?--n:o(function(){r.advance(n),n=0}),!1)}}):qn(t,function(){var n=e;return function(){return--n<0}})),this},ee.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),qn(this._ctx,function(){var t=e;return function(n,r,o){return--t<=0&&r(o),0<=t}},!0),this},ee.prototype.until=function(e,t){return Mn(this._ctx,function(n,r,o){return!e(n.value)||(r(o),t)}),this},ee.prototype.first=function(e){return this.limit(1).toArray(function(t){return t[0]}).then(e)},ee.prototype.last=function(e){return this.reverse().first(e)},ee.prototype.filter=function(e){var t;return Mn(this._ctx,function(n){return e(n.value)}),(t=this._ctx).isMatch=ct(t.isMatch,e),this},ee.prototype.and=function(e){return this.filter(e)},ee.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},ee.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},ee.prototype.desc=function(){return this.reverse()},ee.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(n,r){e(r.key,r)})},ee.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},ee.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(n,r){e(r.primaryKey,r)})},ee.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(r,o){n.push(o.key)}).then(function(){return n}).then(e)},ee.prototype.primaryKeys=function(e){var t=this._ctx;if(t.dir==="next"&&gt(t,!0)&&0<t.limit)return this._read(function(r){var o=$t(t,t.table.core.schema);return t.table.core.query({trans:r,values:!1,limit:t.limit,query:{index:o,range:t.range}})}).then(function(r){return r.result}).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(r,o){n.push(o.primaryKey)}).then(function(){return n}).then(e)},ee.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},ee.prototype.firstKey=function(e){return this.limit(1).keys(function(t){return t[0]}).then(e)},ee.prototype.lastKey=function(e){return this.reverse().firstKey(e)},ee.prototype.distinct=function(){var e=this._ctx,e=e.index&&e.table.schema.idxByName[e.index];if(!e||!e.multi)return this;var t={};return Mn(this._ctx,function(o){var r=o.primaryKey.toString(),o=M(t,r);return t[r]=!0,!o}),this},ee.prototype.modify=function(e){var t=this,n=this._ctx;return this._write(function(r){var o,i,a;a=typeof e=="function"?e:(o=C(e),i=o.length,function(m){for(var j=!1,_=0;_<i;++_){var k=o[_],P=e[k],N=te(m,k);P instanceof Et?(V(m,k,P.execute(N)),j=!0):N!==P&&(V(m,k,P),j=!0)}return j});var u=n.table.core,c=u.schema.primaryKey,l=c.outbound,h=c.extractKey,g=200,c=t.db._options.modifyChunkSize;c&&(g=typeof c=="object"?c[u.name]||c["*"]||200:c);function w(m,k){var _=k.failures,k=k.numFailures;v+=m-k;for(var P=0,N=C(_);P<N.length;P++){var B=N[P];f.push(_[B])}}var f=[],v=0,x=[];return t.clone().primaryKeys().then(function(m){function j(k){var P=Math.min(g,m.length-k);return u.getMany({trans:r,keys:m.slice(k,k+P),cache:"immutable"}).then(function(N){for(var B=[],S=[],K=l?[]:null,D=[],q=0;q<P;++q){var I=N[q],W={value:Ke(I),primKey:m[k+q]};a.call(W,W.value,W)!==!1&&(W.value==null?D.push(m[k+q]):l||Z(h(I),h(W.value))===0?(S.push(W.value),l&&K.push(m[k+q])):(D.push(m[k+q]),B.push(W.value)))}return Promise.resolve(0<B.length&&u.mutate({trans:r,type:"add",values:B}).then(function(G){for(var X in G.failures)D.splice(parseInt(X),1);w(B.length,G)})).then(function(){return(0<S.length||_&&typeof e=="object")&&u.mutate({trans:r,type:"put",keys:K,values:S,criteria:_,changeSpec:typeof e!="function"&&e,isAdditionalChunk:0<k}).then(function(G){return w(S.length,G)})}).then(function(){return(0<D.length||_&&e===Bn)&&u.mutate({trans:r,type:"delete",keys:D,criteria:_,isAdditionalChunk:0<k}).then(function(G){return w(D.length,G)})}).then(function(){return m.length>k+P&&j(k+g)})})}var _=gt(n)&&n.limit===1/0&&(typeof e!="function"||e===Bn)&&{index:n.index,range:n.range};return j(0).then(function(){if(0<f.length)throw new De("Error modifying one or more objects",f,v,x);return m.length})})})},ee.prototype.delete=function(){var e=this._ctx,t=e.range;return gt(e)&&(e.isPrimKey||t.type===3)?this._write(function(n){var r=e.table.core.schema.primaryKey,o=t;return e.table.core.count({trans:n,query:{index:r,range:o}}).then(function(i){return e.table.core.mutate({trans:n,type:"deleteRange",range:o}).then(function(a){var u=a.failures;if(a.lastResult,a.results,a=a.numFailures,a)throw new De("Could not delete some values",Object.keys(u).map(function(l){return u[l]}),i-a);return i-a})})}):this.modify(Bn)},ee);function ee(){}var Bn=function(e,t){return t.value=null};function ko(e,t){return e<t?-1:e===t?0:1}function Ao(e,t){return t<e?-1:e===t?0:1}function Ee(e,t,n){return e=e instanceof Or?new e.Collection(e):e,e._ctx.error=new(n||TypeError)(t),e}function bt(e){return new e.Collection(e,function(){return Ar("")}).limit(0)}function tn(e,t,n,r){var o,i,a,u,l,h,g,c=n.length;if(!n.every(function(v){return typeof v=="string"}))return Ee(e,mr);function w(v){o=v==="next"?function(m){return m.toUpperCase()}:function(m){return m.toLowerCase()},i=v==="next"?function(m){return m.toLowerCase()}:function(m){return m.toUpperCase()},a=v==="next"?ko:Ao;var x=n.map(function(m){return{lower:i(m),upper:o(m)}}).sort(function(m,j){return a(m.lower,j.lower)});u=x.map(function(m){return m.upper}),l=x.map(function(m){return m.lower}),g=(h=v)==="next"?"":r}w("next"),e=new e.Collection(e,function(){return Ye(u[0],l[c-1]+r)}),e._ondirectionchange=function(v){w(v)};var f=0;return e._addAlgorithm(function(v,x,m){var j=v.key;if(typeof j!="string")return!1;var _=i(j);if(t(_,l,f))return!0;for(var k=null,P=f;P<c;++P){var N=function(B,S,K,D,q,I){for(var W=Math.min(B.length,D.length),G=-1,X=0;X<W;++X){var Ne=S[X];if(Ne!==D[X])return q(B[X],K[X])<0?B.substr(0,X)+K[X]+K.substr(X+1):q(B[X],D[X])<0?B.substr(0,X)+D[X]+K.substr(X+1):0<=G?B.substr(0,G)+S[G]+K.substr(G+1):null;q(B[X],Ne)<0&&(G=X)}return W<D.length&&I==="next"?B+K.substr(B.length):W<B.length&&I==="prev"?B.substr(0,K.length):G<0?null:B.substr(0,G)+D[G]+K.substr(G+1)}(j,_,u[P],l[P],a,h);N===null&&k===null?f=P+1:(k===null||0<a(k,N))&&(k=N)}return x(k!==null?function(){v.continue(k+g)}:m),!1}),e}function Ye(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function Ar(e){return{type:1,lower:e,upper:e}}var Or=(Object.defineProperty(ve.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),ve.prototype.between=function(e,t,n,r){n=n!==!1,r=r===!0;try{return 0<this._cmp(e,t)||this._cmp(e,t)===0&&(n||r)&&(!n||!r)?bt(this):new this.Collection(this,function(){return Ye(e,t,!n,!r)})}catch{return Ee(this,Ve)}},ve.prototype.equals=function(e){return e==null?Ee(this,Ve):new this.Collection(this,function(){return Ar(e)})},ve.prototype.above=function(e){return e==null?Ee(this,Ve):new this.Collection(this,function(){return Ye(e,void 0,!0)})},ve.prototype.aboveOrEqual=function(e){return e==null?Ee(this,Ve):new this.Collection(this,function(){return Ye(e,void 0,!1)})},ve.prototype.below=function(e){return e==null?Ee(this,Ve):new this.Collection(this,function(){return Ye(void 0,e,!1,!0)})},ve.prototype.belowOrEqual=function(e){return e==null?Ee(this,Ve):new this.Collection(this,function(){return Ye(void 0,e)})},ve.prototype.startsWith=function(e){return typeof e!="string"?Ee(this,mr):this.between(e,e+ut,!0,!0)},ve.prototype.startsWithIgnoreCase=function(e){return e===""?this.startsWith(e):tn(this,function(t,n){return t.indexOf(n[0])===0},[e],ut)},ve.prototype.equalsIgnoreCase=function(e){return tn(this,function(t,n){return t===n[0]},[e],"")},ve.prototype.anyOfIgnoreCase=function(){var e=Be.apply(Pe,arguments);return e.length===0?bt(this):tn(this,function(t,n){return n.indexOf(t)!==-1},e,"")},ve.prototype.startsWithAnyOfIgnoreCase=function(){var e=Be.apply(Pe,arguments);return e.length===0?bt(this):tn(this,function(t,n){return n.some(function(r){return t.indexOf(r)===0})},e,ut)},ve.prototype.anyOf=function(){var e=this,t=Be.apply(Pe,arguments),n=this._cmp;try{t.sort(n)}catch{return Ee(this,Ve)}if(t.length===0)return bt(this);var r=new this.Collection(this,function(){return Ye(t[0],t[t.length-1])});r._ondirectionchange=function(i){n=i==="next"?e._ascending:e._descending,t.sort(n)};var o=0;return r._addAlgorithm(function(i,a,u){for(var l=i.key;0<n(l,t[o]);)if(++o===t.length)return a(u),!1;return n(l,t[o])===0||(a(function(){i.continue(t[o])}),!1)}),r},ve.prototype.notEqual=function(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},ve.prototype.noneOf=function(){var e=Be.apply(Pe,arguments);if(e.length===0)return new this.Collection(this);try{e.sort(this._ascending)}catch{return Ee(this,Ve)}var t=e.reduce(function(n,r){return n?n.concat([[n[n.length-1][1],r]]):[[-1/0,r]]},null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},ve.prototype.inAnyRange=function(j,t){var n=this,r=this._cmp,o=this._ascending,i=this._descending,a=this._min,u=this._max;if(j.length===0)return bt(this);if(!j.every(function(_){return _[0]!==void 0&&_[1]!==void 0&&o(_[0],_[1])<=0}))return Ee(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",U.InvalidArgument);var l=!t||t.includeLowers!==!1,h=t&&t.includeUppers===!0,g,c=o;function w(_,k){return c(_[0],k[0])}try{(g=j.reduce(function(_,k){for(var P=0,N=_.length;P<N;++P){var B=_[P];if(r(k[0],B[1])<0&&0<r(k[1],B[0])){B[0]=a(B[0],k[0]),B[1]=u(B[1],k[1]);break}}return P===N&&_.push(k),_},[])).sort(w)}catch{return Ee(this,Ve)}var f=0,v=h?function(_){return 0<o(_,g[f][1])}:function(_){return 0<=o(_,g[f][1])},x=l?function(_){return 0<i(_,g[f][0])}:function(_){return 0<=i(_,g[f][0])},m=v,j=new this.Collection(this,function(){return Ye(g[0][0],g[g.length-1][1],!l,!h)});return j._ondirectionchange=function(_){c=_==="next"?(m=v,o):(m=x,i),g.sort(w)},j._addAlgorithm(function(_,k,P){for(var N,B=_.key;m(B);)if(++f===g.length)return k(P),!1;return!v(N=B)&&!x(N)||(n._cmp(B,g[f][1])===0||n._cmp(B,g[f][0])===0||k(function(){c===o?_.continue(g[f][0]):_.continue(g[f][1])}),!1)}),j},ve.prototype.startsWithAnyOf=function(){var e=Be.apply(Pe,arguments);return e.every(function(t){return typeof t=="string"})?e.length===0?bt(this):this.inAnyRange(e.map(function(t){return[t,t+ut]})):Ee(this,"startsWithAnyOf() only works with strings")},ve);function ve(){}function Le(e){return ce(function(t){return Nt(t),e(t.target.error),!1})}function Nt(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var St="storagemutated",Dn="x-storagemutated-1",Ze=Pt(null,St),Oo=(ze.prototype._lock=function(){return Ae(!F.global),++this._reculock,this._reculock!==1||F.global||(F.lockOwnerFor=this),this},ze.prototype._unlock=function(){if(Ae(!F.global),--this._reculock==0)for(F.global||(F.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var e=this._blockedFuncs.shift();try{st(e[1],e[0])}catch{}}return this},ze.prototype._locked=function(){return this._reculock&&F.lockOwnerFor!==this},ze.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(Ae(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new U.DatabaseClosed(r);case"MissingAPIError":throw new U.MissingAPI(r.message,r);default:throw new U.OpenFailed(r)}if(!this.active)throw new U.TransactionInactive;return Ae(this._completion._state===null),(e=this.idbtrans=e||(this.db.core||n).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=ce(function(o){Nt(o),t._reject(e.error)}),e.onabort=ce(function(o){Nt(o),t.active&&t._reject(new U.Abort(e.error)),t.active=!1,t.on("abort").fire(o)}),e.oncomplete=ce(function(){t.active=!1,t._resolve(),"mutatedParts"in e&&Ze.storagemutated.fire(e.mutatedParts)}),this},ze.prototype._promise=function(e,t,n){var r=this;if(e==="readwrite"&&this.mode!=="readwrite")return de(new U.ReadOnly("Transaction is readonly"));if(!this.active)return de(new U.TransactionInactive);if(this._locked())return new R(function(i,a){r._blockedFuncs.push([function(){r._promise(e,t,n).then(i,a)},F])});if(n)return Je(function(){var i=new R(function(a,u){r._lock();var l=t(a,u,r);l&&l.then&&l.then(a,u)});return i.finally(function(){return r._unlock()}),i._lib=!0,i});var o=new R(function(i,a){var u=t(i,a,r);u&&u.then&&u.then(i,a)});return o._lib=!0,o},ze.prototype._root=function(){return this.parent?this.parent._root():this},ze.prototype.waitFor=function(e){var t,n=this._root(),r=R.resolve(e);n._waitingFor?n._waitingFor=n._waitingFor.then(function(){return r}):(n._waitingFor=r,n._waitingQueue=[],t=n.idbtrans.objectStore(n.storeNames[0]),function i(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(t.get(-1/0).onsuccess=i)}());var o=n._waitingFor;return new R(function(i,a){r.then(function(u){return n._waitingQueue.push(ce(i.bind(null,u)))},function(u){return n._waitingQueue.push(ce(a.bind(null,u)))}).finally(function(){n._waitingFor===o&&(n._waitingFor=null)})})},ze.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new U.Abort))},ze.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(M(t,e))return t[e];var n=this.schema[e];if(!n)throw new U.NotFound("Table "+e+" not part of transaction");return n=new this.db.Table(e,n,this),n.core=this.db.core.table(e),t[e]=n},ze);function ze(){}function Rn(e,t,n,r,o,i,a){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+Pr(t)}}function Pr(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function In(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:(r=function(o){return[o.name,o]},n.reduce(function(o,i,a){return a=r(i,a),a&&(o[a[0]]=a[1]),o},{}))};var r}var Kt=function(e){try{return e.only([[]]),Kt=function(){return[[]]},[[]]}catch{return Kt=function(){return ut},ut}};function Tn(e){return e==null?function(){}:typeof e=="string"?(t=e).split(".").length===1?function(n){return n[t]}:function(n){return te(n,t)}:function(n){return te(n,e)};var t}function Cr(e){return[].slice.call(e)}var Po=0;function Mt(e){return e==null?":id":typeof e=="string"?e:"[".concat(e.join("+"),"]")}function Co(e,t,l){function r(m){if(m.type===3)return null;if(m.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var f=m.lower,v=m.upper,x=m.lowerOpen,m=m.upperOpen;return f===void 0?v===void 0?null:t.upperBound(v,!!m):v===void 0?t.lowerBound(f,!!x):t.bound(f,v,!!x,!!m)}function o(w){var f,v=w.name;return{name:v,schema:w,mutate:function(x){var m=x.trans,j=x.type,_=x.keys,k=x.values,P=x.range;return new Promise(function(N,B){N=ce(N);var S=m.objectStore(v),K=S.keyPath==null,D=j==="put"||j==="add";if(!D&&j!=="delete"&&j!=="deleteRange")throw new Error("Invalid operation type: "+j);var q,I=(_||k||{length:1}).length;if(_&&k&&_.length!==k.length)throw new Error("Given keys array must have same length as given values array.");if(I===0)return N({numFailures:0,failures:{},results:[],lastResult:void 0});function W(ke){++Ne,Nt(ke)}var G=[],X=[],Ne=0;if(j==="deleteRange"){if(P.type===4)return N({numFailures:Ne,failures:X,results:[],lastResult:void 0});P.type===3?G.push(q=S.clear()):G.push(q=S.delete(r(P)))}else{var K=D?K?[k,_]:[k,null]:[_,null],H=K[0],we=K[1];if(D)for(var je=0;je<I;++je)G.push(q=we&&we[je]!==void 0?S[j](H[je],we[je]):S[j](H[je])),q.onerror=W;else for(je=0;je<I;++je)G.push(q=S[j](H[je])),q.onerror=W}function yn(ke){ke=ke.target.result,G.forEach(function(dt,rr){return dt.error!=null&&(X[rr]=dt.error)}),N({numFailures:Ne,failures:X,results:j==="delete"?_:G.map(function(dt){return dt.result}),lastResult:ke})}q.onerror=function(ke){W(ke),yn(ke)},q.onsuccess=yn})},getMany:function(x){var m=x.trans,j=x.keys;return new Promise(function(_,k){_=ce(_);for(var P,N=m.objectStore(v),B=j.length,S=new Array(B),K=0,D=0,q=function(G){G=G.target,S[G._pos]=G.result,++D===K&&_(S)},I=Le(k),W=0;W<B;++W)j[W]!=null&&((P=N.get(j[W]))._pos=W,P.onsuccess=q,P.onerror=I,++K);K===0&&_(S)})},get:function(x){var m=x.trans,j=x.key;return new Promise(function(_,k){_=ce(_);var P=m.objectStore(v).get(j);P.onsuccess=function(N){return _(N.target.result)},P.onerror=Le(k)})},query:(f=h,function(x){return new Promise(function(m,j){m=ce(m);var _,k,P,K=x.trans,N=x.values,B=x.limit,q=x.query,S=B===1/0?void 0:B,D=q.index,q=q.range,K=K.objectStore(v),D=D.isPrimaryKey?K:K.index(D.name),q=r(q);if(B===0)return m({result:[]});f?((S=N?D.getAll(q,S):D.getAllKeys(q,S)).onsuccess=function(I){return m({result:I.target.result})},S.onerror=Le(j)):(_=0,k=!N&&"openKeyCursor"in D?D.openKeyCursor(q):D.openCursor(q),P=[],k.onsuccess=function(I){var W=k.result;return W?(P.push(N?W.value:W.primaryKey),++_===B?m({result:P}):void W.continue()):m({result:P})},k.onerror=Le(j))})}),openCursor:function(x){var m=x.trans,j=x.values,_=x.query,k=x.reverse,P=x.unique;return new Promise(function(N,B){N=ce(N);var D=_.index,S=_.range,K=m.objectStore(v),K=D.isPrimaryKey?K:K.index(D.name),D=k?P?"prevunique":"prev":P?"nextunique":"next",q=!j&&"openKeyCursor"in K?K.openKeyCursor(r(S),D):K.openCursor(r(S),D);q.onerror=Le(B),q.onsuccess=ce(function(I){var W,G,X,Ne,H=q.result;H?(H.___id=++Po,H.done=!1,W=H.continue.bind(H),G=(G=H.continuePrimaryKey)&&G.bind(H),X=H.advance.bind(H),Ne=function(){throw new Error("Cursor not stopped")},H.trans=m,H.stop=H.continue=H.continuePrimaryKey=H.advance=function(){throw new Error("Cursor not started")},H.fail=ce(B),H.next=function(){var we=this,je=1;return this.start(function(){return je--?we.continue():we.stop()}).then(function(){return we})},H.start=function(we){function je(){if(q.result)try{we()}catch(ke){H.fail(ke)}else H.done=!0,H.start=function(){throw new Error("Cursor behind last entry")},H.stop()}var yn=new Promise(function(ke,dt){ke=ce(ke),q.onerror=Le(dt),H.fail=dt,H.stop=function(rr){H.stop=H.continue=H.continuePrimaryKey=H.advance=Ne,ke(rr)}});return q.onsuccess=ce(function(ke){q.onsuccess=je,je()}),H.continue=W,H.continuePrimaryKey=G,H.advance=X,je(),yn},N(H)):N(null)},B)})},count:function(x){var m=x.query,j=x.trans,_=m.index,k=m.range;return new Promise(function(P,N){var B=j.objectStore(v),S=_.isPrimaryKey?B:B.index(_.name),B=r(k),S=B?S.count(B):S.count();S.onsuccess=ce(function(K){return P(K.target.result)}),S.onerror=Le(N)})}}}var i,a,u,g=(a=l,u=Cr((i=e).objectStoreNames),{schema:{name:i.name,tables:u.map(function(w){return a.objectStore(w)}).map(function(w){var f=w.keyPath,m=w.autoIncrement,v=E(f),x={},m={name:w.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:f==null,compound:v,keyPath:f,autoIncrement:m,unique:!0,extractKey:Tn(f)},indexes:Cr(w.indexNames).map(function(j){return w.index(j)}).map(function(P){var _=P.name,k=P.unique,N=P.multiEntry,P=P.keyPath,N={name:_,compound:E(P),keyPath:P,unique:k,multiEntry:N,extractKey:Tn(P)};return x[Mt(P)]=N}),getIndexByKeyPath:function(j){return x[Mt(j)]}};return x[":id"]=m.primaryKey,f!=null&&(x[Mt(f)]=m.primaryKey),m})},hasGetAll:0<u.length&&"getAll"in a.objectStore(u[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),l=g.schema,h=g.hasGetAll,g=l.tables.map(o),c={};return g.forEach(function(w){return c[w.name]=w}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(w){if(!c[w])throw new Error("Table '".concat(w,"' not found"));return c[w]},MIN_KEY:-1/0,MAX_KEY:Kt(t),schema:l}}function Eo(e,t,n,r){var o=n.IDBKeyRange;return n.indexedDB,{dbcore:(r=Co(t,o,r),e.dbcore.reduce(function(i,a){return a=a.create,b(b({},i),a(i))},r))}}function nn(e,r){var n=r.db,r=Eo(e._middlewares,n,e._deps,r);e.core=r.dbcore,e.tables.forEach(function(o){var i=o.name;e.core.schema.tables.some(function(a){return a.name===i})&&(o.core=e.core.table(i),e[i]instanceof e.Table&&(e[i].core=o.core))})}function rn(e,t,n,r){n.forEach(function(o){var i=r[o];t.forEach(function(a){var u=function l(h,g){return Ce(h,g)||(h=L(h))&&l(h,g)}(a,o);(!u||"value"in u&&u.value===void 0)&&(a===e.Transaction.prototype||a instanceof e.Transaction?ae(a,o,{get:function(){return this.table(o)},set:function(l){pe(this,o,{value:l,writable:!0,configurable:!0,enumerable:!0})}}):a[o]=new e.Table(o,i))})})}function Fn(e,t){t.forEach(function(n){for(var r in n)n[r]instanceof e.Table&&delete n[r]})}function No(e,t){return e._cfg.version-t._cfg.version}function So(e,t,n,r){var o=e._dbSchema;n.objectStoreNames.contains("$meta")&&!o.$meta&&(o.$meta=In("$meta",Nr("")[0],[]),e._storeNames.push("$meta"));var i=e._createTransaction("readwrite",e._storeNames,o);i.create(n),i._completion.catch(r);var a=i._reject.bind(i),u=F.transless||F;Je(function(){return F.trans=i,F.transless=u,t!==0?(nn(e,n),h=t,((l=i).storeNames.includes("$meta")?l.table("$meta").get("version").then(function(g){return g??h}):R.resolve(h)).then(function(g){return w=g,f=i,v=n,x=[],g=(c=e)._versions,m=c._dbSchema=an(0,c.idbdb,v),(g=g.filter(function(j){return j._cfg.version>=w})).length!==0?(g.forEach(function(j){x.push(function(){var _=m,k=j._cfg.dbschema;sn(c,_,v),sn(c,k,v),m=c._dbSchema=k;var P=Ln(_,k);P.add.forEach(function(D){zn(v,D[0],D[1].primKey,D[1].indexes)}),P.change.forEach(function(D){if(D.recreate)throw new U.Upgrade("Not yet support for changing primary key");var q=v.objectStore(D.name);D.add.forEach(function(I){return on(q,I)}),D.change.forEach(function(I){q.deleteIndex(I.name),on(q,I)}),D.del.forEach(function(I){return q.deleteIndex(I)})});var N=j._cfg.contentUpgrade;if(N&&j._cfg.version>w){nn(c,v),f._memoizedTables={};var B=_e(k);P.del.forEach(function(D){B[D]=_[D]}),Fn(c,[c.Transaction.prototype]),rn(c,[c.Transaction.prototype],C(B),B),f.schema=B;var S,K=$(N);return K&&mt(),P=R.follow(function(){var D;(S=N(f))&&K&&(D=Ge.bind(null,null),S.then(D,D))}),S&&typeof S.then=="function"?R.resolve(S):P.then(function(){return S})}}),x.push(function(_){var k,P,N=j._cfg.dbschema;k=N,P=_,[].slice.call(P.db.objectStoreNames).forEach(function(B){return k[B]==null&&P.db.deleteObjectStore(B)}),Fn(c,[c.Transaction.prototype]),rn(c,[c.Transaction.prototype],c._storeNames,c._dbSchema),f.schema=c._dbSchema}),x.push(function(_){c.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(c.idbdb.version/10)===j._cfg.version?(c.idbdb.deleteObjectStore("$meta"),delete c._dbSchema.$meta,c._storeNames=c._storeNames.filter(function(k){return k!=="$meta"})):_.objectStore("$meta").put(j._cfg.version,"version"))})}),function j(){return x.length?R.resolve(x.shift()(f.idbtrans)).then(j):R.resolve()}().then(function(){Er(m,v)})):R.resolve();var c,w,f,v,x,m}).catch(a)):(C(o).forEach(function(g){zn(n,g,o[g].primKey,o[g].indexes)}),nn(e,n),void R.follow(function(){return e.on.populate.fire(i)}).catch(a));var l,h})}function Ko(e,t){Er(e._dbSchema,t),t.db.version%10!=0||t.objectStoreNames.contains("$meta")||t.db.createObjectStore("$meta").add(Math.ceil(t.db.version/10-1),"version");var n=an(0,e.idbdb,t);sn(e,e._dbSchema,t);for(var r=0,o=Ln(n,e._dbSchema).change;r<o.length;r++){var i=function(a){if(a.change.length||a.recreate)return console.warn("Unable to patch indexes of table ".concat(a.name," because it has changes on the type of index or primary key.")),{value:void 0};var u=t.objectStore(a.name);a.add.forEach(function(l){Fe&&console.debug("Dexie upgrade patch: Creating missing index ".concat(a.name,".").concat(l.src)),on(u,l)})}(o[r]);if(typeof i=="object")return i.value}}function Ln(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var o=e[n],i=t[n];if(o){var a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto)a.recreate=!0,r.change.push(a);else{var u=o.idxByName,l=i.idxByName,h=void 0;for(h in u)l[h]||a.del.push(h);for(h in l){var g=u[h],c=l[h];g?g.src!==c.src&&a.change.push(c):a.add.push(c)}(0<a.del.length||0<a.add.length||0<a.change.length)&&r.change.push(a)}}else r.add.push([n,i])}return r}function zn(e,t,n,r){var o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(i){return on(o,i)}),o}function Er(e,t){C(e).forEach(function(n){t.db.objectStoreNames.contains(n)||(Fe&&console.debug("Dexie: Creating missing table",n),zn(t,n,e[n].primKey,e[n].indexes))})}function on(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function an(e,t,n){var r={};return re(t.objectStoreNames,0).forEach(function(o){for(var i=n.objectStore(o),a=Rn(Pr(h=i.keyPath),h||"",!0,!1,!!i.autoIncrement,h&&typeof h!="string",!0),u=[],l=0;l<i.indexNames.length;++l){var g=i.index(i.indexNames[l]),h=g.keyPath,g=Rn(g.name,h,!!g.unique,!!g.multiEntry,!1,h&&typeof h!="string",!1);u.push(g)}r[o]=In(o,a,u)}),r}function sn(e,t,n){for(var r=n.db.objectStoreNames,o=0;o<r.length;++o){var i=r[o],a=n.objectStore(i);e._hasGetAll="getAll"in a;for(var u=0;u<a.indexNames.length;++u){var l=a.indexNames[u],h=a.index(l).keyPath,g=typeof h=="string"?h:"["+re(h).join("+")+"]";!t[i]||(h=t[i].idxByName[g])&&(h.name=l,delete t[i].idxByName[g],t[i].idxByName[l]=h)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&A.WorkerGlobalScope&&A instanceof A.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function Nr(e){return e.split(",").map(function(t,n){var r=(t=t.trim()).replace(/([&*]|\+\+)/g,""),o=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return Rn(r,o||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),E(o),n===0)})}var Mo=(un.prototype._parseStoresSpec=function(e,t){C(e).forEach(function(n){if(e[n]!==null){var r=Nr(e[n]),o=r.shift();if(o.unique=!0,o.multi)throw new U.Schema("Primary key cannot be multi-valued");r.forEach(function(i){if(i.auto)throw new U.Schema("Only primary key can be marked as autoIncrement (++)");if(!i.keyPath)throw new U.Schema("Index must have a name and cannot be an empty string")}),t[n]=In(n,o,r)}})},un.prototype.stores=function(n){var t=this.db;this._cfg.storesSource=this._cfg.storesSource?T(this._cfg.storesSource,n):n;var n=t._versions,r={},o={};return n.forEach(function(i){T(r,i._cfg.storesSource),o=i._cfg.dbschema={},i._parseStoresSpec(r,o)}),t._dbSchema=o,Fn(t,[t._allTables,t,t.Transaction.prototype]),rn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],C(o),o),t._storeNames=C(o),this},un.prototype.upgrade=function(e){return this._cfg.contentUpgrade=jn(this._cfg.contentUpgrade||ne,e),this},un);function un(){}function Qn(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new He(Yt,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function Un(e){return e&&typeof e.databases=="function"}function Vn(e){return Je(function(){return F.letThrough=!0,e()})}function Hn(e){return!("from"in e)}var xe=function(e,t){if(!this){var n=new xe;return e&&"d"in e&&T(n,e),n}T(this,arguments.length?{d:1,from:e,to:1<arguments.length?t:e}:{d:0})};function qt(e,t,n){var r=Z(t,n);if(!isNaN(r)){if(0<r)throw RangeError();if(Hn(e))return T(e,{from:t,to:n,d:1});var o=e.l,r=e.r;if(Z(n,e.from)<0)return o?qt(o,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Kr(e);if(0<Z(t,e.to))return r?qt(r,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Kr(e);Z(t,e.from)<0&&(e.from=t,e.l=null,e.d=r?r.d+1:1),0<Z(n,e.to)&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1),n=!e.r,o&&!e.l&&Bt(e,o),r&&n&&Bt(e,r)}}function Bt(e,t){Hn(t)||function n(r,l){var i=l.from,a=l.to,u=l.l,l=l.r;qt(r,i,a),u&&n(r,u),l&&n(r,l)}(e,t)}function Sr(e,t){var n=cn(t),r=n.next();if(r.done)return!1;for(var o=r.value,i=cn(e),a=i.next(o.from),u=a.value;!r.done&&!a.done;){if(Z(u.from,o.to)<=0&&0<=Z(u.to,o.from))return!0;Z(o.from,u.from)<0?o=(r=n.next(u.from)).value:u=(a=i.next(o.from)).value}return!1}function cn(e){var t=Hn(e)?null:{s:0,n:e};return{next:function(n){for(var r=0<arguments.length;t;)switch(t.s){case 0:if(t.s=1,r)for(;t.n.l&&Z(n,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!r||Z(n,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Kr(e){var t,n,r=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((n=e.l)===null||n===void 0?void 0:n.d)||0),o=1<r?"r":r<-1?"l":"";o&&(t=o=="r"?"l":"r",n=b({},e),r=e[o],e.from=r.from,e.to=r.to,e[o]=r[o],n[o]=r[t],(e[t]=n).d=Mr(n)),e.d=Mr(e)}function Mr(n){var t=n.r,n=n.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}function ln(e,t){return C(t).forEach(function(n){e[n]?Bt(e[n],t[n]):e[n]=function r(o){var i,a,u={};for(i in o)M(o,i)&&(a=o[i],u[i]=!a||typeof a!="object"||qe.has(a.constructor)?a:r(a));return u}(t[n])}),e}function Wn(e,t){return e.all||t.all||Object.keys(e).some(function(n){return t[n]&&Sr(t[n],e[n])})}ie(xe.prototype,((Me={add:function(e){return Bt(this,e),this},addKey:function(e){return qt(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(n){return qt(t,n,n)}),this},hasKey:function(e){var t=cn(this).next(e).value;return t&&Z(t.from,e)<=0&&0<=Z(t.to,e)}})[oe]=function(){return cn(this)},Me));var lt={},Jn={},Gn=!1;function fn(e){ln(Jn,e),Gn||(Gn=!0,setTimeout(function(){Gn=!1,Xn(Jn,!(Jn={}))},0))}function Xn(e,t){t===void 0&&(t=!1);var n=new Set;if(e.all)for(var r=0,o=Object.values(lt);r<o.length;r++)qr(a=o[r],e,n,t);else for(var i in e){var a,u=/^idb\:\/\/(.*)\/(.*)\//.exec(i);u&&(i=u[1],u=u[2],(a=lt["idb://".concat(i,"/").concat(u)])&&qr(a,e,n,t))}n.forEach(function(l){return l()})}function qr(e,t,n,r){for(var o=[],i=0,a=Object.entries(e.queries.query);i<a.length;i++){for(var u=a[i],l=u[0],h=[],g=0,c=u[1];g<c.length;g++){var w=c[g];Wn(t,w.obsSet)?w.subscribers.forEach(function(m){return n.add(m)}):r&&h.push(w)}r&&o.push([l,h])}if(r)for(var f=0,v=o;f<v.length;f++){var x=v[f],l=x[0],h=x[1];e.queries.query[l]=h}}function qo(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?de(t.dbOpenError):e});t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller,o=Math.round(10*e.verno),i=!1;function a(){if(t.openCanceller!==r)throw new U.DatabaseClosed("db.open() was cancelled")}function u(){return new R(function(w,f){if(a(),!n)throw new U.MissingAPI;var v=e.name,x=t.autoSchema||!o?n.open(v):n.open(v,o);if(!x)throw new U.MissingAPI;x.onerror=Le(f),x.onblocked=ce(e._fireOnBlocked),x.onupgradeneeded=ce(function(m){var j;g=x.transaction,t.autoSchema&&!e._options.allowEmptyDB?(x.onerror=Nt,g.abort(),x.result.close(),(j=n.deleteDatabase(v)).onsuccess=j.onerror=ce(function(){f(new U.NoSuchDatabase("Database ".concat(v," doesnt exist")))})):(g.onerror=Le(f),m=m.oldVersion>Math.pow(2,62)?0:m.oldVersion,c=m<1,e.idbdb=x.result,i&&Ko(e,g),So(e,m/10,g,f))},f),x.onsuccess=ce(function(){g=null;var m,j,_,k,P,N=e.idbdb=x.result,B=re(N.objectStoreNames);if(0<B.length)try{var S=N.transaction((k=B).length===1?k[0]:k,"readonly");if(t.autoSchema)j=N,_=S,(m=e).verno=j.version/10,_=m._dbSchema=an(0,j,_),m._storeNames=re(j.objectStoreNames,0),rn(m,[m._allTables],C(_),_);else if(sn(e,e._dbSchema,S),((P=Ln(an(0,(P=e).idbdb,S),P._dbSchema)).add.length||P.change.some(function(K){return K.add.length||K.change.length}))&&!i)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),N.close(),o=N.version+1,i=!0,w(u());nn(e,S)}catch{}vt.push(e),N.onversionchange=ce(function(K){t.vcFired=!0,e.on("versionchange").fire(K)}),N.onclose=ce(function(K){e.on("close").fire(K)}),c&&(P=e._deps,S=v,N=P.indexedDB,P=P.IDBKeyRange,Un(N)||S===Yt||Qn(N,P).put({name:S}).catch(ne)),w()},f)}).catch(function(w){switch(w?.name){case"UnknownError":if(0<t.PR1398_maxLoop)return t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),u();break;case"VersionError":if(0<o)return o=0,u()}return R.reject(w)})}var l,h=t.dbReadyResolve,g=null,c=!1;return R.race([r,(typeof navigator>"u"?R.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(w){function f(){return indexedDB.databases().finally(w)}l=setInterval(f,100),f()}).finally(function(){return clearInterval(l)}):Promise.resolve()).then(u)]).then(function(){return a(),t.onReadyBeingFired=[],R.resolve(Vn(function(){return e.on.ready.fire(e.vip)})).then(function w(){if(0<t.onReadyBeingFired.length){var f=t.onReadyBeingFired.reduce(jn,ne);return t.onReadyBeingFired=[],R.resolve(Vn(function(){return f(e.vip)})).then(w)}})}).finally(function(){t.openCanceller===r&&(t.onReadyBeingFired=null,t.isBeingOpened=!1)}).catch(function(w){t.dbOpenError=w;try{g&&g.abort()}catch{}return r===t.openCanceller&&e._close(),de(w)}).finally(function(){t.openComplete=!0,h()}).then(function(){var w;return c&&(w={},e.tables.forEach(function(f){f.schema.indexes.forEach(function(v){v.name&&(w["idb://".concat(e.name,"/").concat(f.name,"/").concat(v.name)]=new xe(-1/0,[[[]]]))}),w["idb://".concat(e.name,"/").concat(f.name,"/")]=w["idb://".concat(e.name,"/").concat(f.name,"/:dels")]=new xe(-1/0,[[[]]])}),Ze(St).fire(w),Xn(w,!0)),e})}function Yn(e){function t(i){return e.next(i)}var n=o(t),r=o(function(i){return e.throw(i)});function o(i){return function(l){var u=i(l),l=u.value;return u.done?l:l&&typeof l.then=="function"?l.then(n,r):E(l)?Promise.all(l).then(n,r):n(l)}}return o(t)()}function dn(e,t,n){for(var r=E(e)?e.slice():[e],o=0;o<n;++o)r.push(t);return r}var Bo={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return b(b({},e),{table:function(t){var n=e.table(t),r=n.schema,o={},i=[];function a(c,w,f){var v=Mt(c),x=o[v]=o[v]||[],m=c==null?0:typeof c=="string"?1:c.length,j=0<w,j=b(b({},f),{name:j?"".concat(v,"(virtual-from:").concat(f.name,")"):f.name,lowLevelIndex:f,isVirtual:j,keyTail:w,keyLength:m,extractKey:Tn(c),unique:!j&&f.unique});return x.push(j),j.isPrimaryKey||i.push(j),1<m&&a(m===2?c[0]:c.slice(0,m-1),w+1,f),x.sort(function(_,k){return _.keyTail-k.keyTail}),j}t=a(r.primaryKey.keyPath,0,r.primaryKey),o[":id"]=[t];for(var u=0,l=r.indexes;u<l.length;u++){var h=l[u];a(h.keyPath,0,h)}function g(c){var w,f=c.query.index;return f.isVirtual?b(b({},c),{query:{index:f.lowLevelIndex,range:(w=c.query.range,f=f.keyTail,{type:w.type===1?2:w.type,lower:dn(w.lower,w.lowerOpen?e.MAX_KEY:e.MIN_KEY,f),lowerOpen:!0,upper:dn(w.upper,w.upperOpen?e.MIN_KEY:e.MAX_KEY,f),upperOpen:!0})}}):c}return b(b({},n),{schema:b(b({},r),{primaryKey:t,indexes:i,getIndexByKeyPath:function(c){return(c=o[Mt(c)])&&c[0]}}),count:function(c){return n.count(g(c))},query:function(c){return n.query(g(c))},openCursor:function(c){var w=c.query.index,f=w.keyTail,v=w.isVirtual,x=w.keyLength;return v?n.openCursor(g(c)).then(function(j){return j&&m(j)}):n.openCursor(c);function m(j){return Object.create(j,{continue:{value:function(_){_!=null?j.continue(dn(_,c.reverse?e.MAX_KEY:e.MIN_KEY,f)):c.unique?j.continue(j.key.slice(0,x).concat(c.reverse?e.MIN_KEY:e.MAX_KEY,f)):j.continue()}},continuePrimaryKey:{value:function(_,k){j.continuePrimaryKey(dn(_,e.MAX_KEY,f),k)}},primaryKey:{get:function(){return j.primaryKey}},key:{get:function(){var _=j.key;return x===1?_[0]:_.slice(0,x)}},value:{get:function(){return j.value}}})}}})}})}};function Zn(e,t,n,r){return n=n||{},r=r||"",C(e).forEach(function(o){var i,a,u;M(t,o)?(i=e[o],a=t[o],typeof i=="object"&&typeof a=="object"&&i&&a?(u=J(i))!==J(a)?n[r+o]=t[o]:u==="Object"?Zn(i,a,n,r+o+"."):i!==a&&(n[r+o]=t[o]):i!==a&&(n[r+o]=t[o])):n[r+o]=void 0}),C(t).forEach(function(o){M(e,o)||(n[r+o]=t[o])}),n}function $n(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var Do={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return b(b({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey;return b(b({},n),{mutate:function(o){var i=F.trans,a=i.table(t).hook,u=a.deleting,l=a.creating,h=a.updating;switch(o.type){case"add":if(l.fire===ne)break;return i._promise("readwrite",function(){return g(o)},!0);case"put":if(l.fire===ne&&h.fire===ne)break;return i._promise("readwrite",function(){return g(o)},!0);case"delete":if(u.fire===ne)break;return i._promise("readwrite",function(){return g(o)},!0);case"deleteRange":if(u.fire===ne)break;return i._promise("readwrite",function(){return function c(w,f,v){return n.query({trans:w,values:!1,query:{index:r,range:f},limit:v}).then(function(x){var m=x.result;return g({type:"delete",keys:m,trans:w}).then(function(j){return 0<j.numFailures?Promise.reject(j.failures[0]):m.length<v?{failures:[],numFailures:0,lastResult:void 0}:c(w,b(b({},f),{lower:m[m.length-1],lowerOpen:!0}),v)})})}(o.trans,o.range,1e4)},!0)}return n.mutate(o);function g(c){var w,f,v,x=F.trans,m=c.keys||$n(r,c);if(!m)throw new Error("Keys missing");return(c=c.type==="add"||c.type==="put"?b(b({},c),{keys:m}):b({},c)).type!=="delete"&&(c.values=O([],c.values)),c.keys&&(c.keys=O([],c.keys)),w=n,v=m,((f=c).type==="add"?Promise.resolve([]):w.getMany({trans:f.trans,keys:v,cache:"immutable"})).then(function(j){var _=m.map(function(k,P){var N,B,S,K=j[P],D={onerror:null,onsuccess:null};return c.type==="delete"?u.fire.call(D,k,K,x):c.type==="add"||K===void 0?(N=l.fire.call(D,k,c.values[P],x),k==null&&N!=null&&(c.keys[P]=k=N,r.outbound||V(c.values[P],r.keyPath,k))):(N=Zn(K,c.values[P]),(B=h.fire.call(D,N,k,K,x))&&(S=c.values[P],Object.keys(B).forEach(function(q){M(S,q)?S[q]=B[q]:V(S,q,B[q])}))),D});return n.mutate(c).then(function(k){for(var P=k.failures,N=k.results,B=k.numFailures,k=k.lastResult,S=0;S<m.length;++S){var K=(N||m)[S],D=_[S];K==null?D.onerror&&D.onerror(P[S]):D.onsuccess&&D.onsuccess(c.type==="put"&&j[S]?c.values[S]:K)}return{failures:P,results:N,numFailures:B,lastResult:k}}).catch(function(k){return _.forEach(function(P){return P.onerror&&P.onerror(k)}),Promise.reject(k)})})}}})}})}};function Br(e,t,n){try{if(!t||t.keys.length<e.length)return null;for(var r=[],o=0,i=0;o<t.keys.length&&i<e.length;++o)Z(t.keys[o],e[i])===0&&(r.push(n?Ke(t.values[o]):t.values[o]),++i);return r.length===e.length?r:null}catch{return null}}var Ro={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return b(b({},n),{getMany:function(r){if(!r.cache)return n.getMany(r);var o=Br(r.keys,r.trans._cache,r.cache==="clone");return o?R.resolve(o):n.getMany(r).then(function(i){return r.trans._cache={keys:r.keys,values:r.cache==="clone"?Ke(i):i},i})},mutate:function(r){return r.type!=="add"&&(r.trans._cache=null),n.mutate(r)}})}}}};function Dr(e,t){return e.trans.mode==="readonly"&&!!e.subscr&&!e.trans.explicit&&e.trans.db._options.cache!=="disabled"&&!t.schema.primaryKey.outbound}function Rr(e,t){switch(e){case"query":return t.values&&!t.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var Io={stack:"dbcore",level:0,name:"Observability",create:function(e){var t=e.schema.name,n=new xe(e.MIN_KEY,e.MAX_KEY);return b(b({},e),{transaction:function(r,o,i){if(F.subscr&&o!=="readonly")throw new U.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(F.querier));return e.transaction(r,o,i)},table:function(r){var o=e.table(r),i=o.schema,a=i.primaryKey,c=i.indexes,u=a.extractKey,l=a.outbound,h=a.autoIncrement&&c.filter(function(f){return f.compound&&f.keyPath.includes(a.keyPath)}),g=b(b({},o),{mutate:function(f){function v(q){return q="idb://".concat(t,"/").concat(r,"/").concat(q),k[q]||(k[q]=new xe)}var x,m,j,_=f.trans,k=f.mutatedParts||(f.mutatedParts={}),P=v(""),N=v(":dels"),B=f.type,D=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[$n(a,f).filter(function(q){return q}),f.values]:[],S=D[0],K=D[1],D=f.trans._cache;return E(S)?(P.addKeys(S),(D=B==="delete"||S.length===K.length?Br(S,D):null)||N.addKeys(S),(D||K)&&(x=v,m=D,j=K,i.indexes.forEach(function(q){var I=x(q.name||"");function W(X){return X!=null?q.extractKey(X):null}function G(X){return q.multiEntry&&E(X)?X.forEach(function(Ne){return I.addKey(Ne)}):I.addKey(X)}(m||j).forEach(function(X,we){var H=m&&W(m[we]),we=j&&W(j[we]);Z(H,we)!==0&&(H!=null&&G(H),we!=null&&G(we))})}))):S?(K={from:(K=S.lower)!==null&&K!==void 0?K:e.MIN_KEY,to:(K=S.upper)!==null&&K!==void 0?K:e.MAX_KEY},N.add(K),P.add(K)):(P.add(n),N.add(n),i.indexes.forEach(function(q){return v(q.name).add(n)})),o.mutate(f).then(function(q){return!S||f.type!=="add"&&f.type!=="put"||(P.addKeys(q.results),h&&h.forEach(function(I){for(var W=f.values.map(function(H){return I.extractKey(H)}),G=I.keyPath.findIndex(function(H){return H===a.keyPath}),X=0,Ne=q.results.length;X<Ne;++X)W[X][G]=q.results[X];v(I.name).addKeys(W)})),_.mutatedParts=ln(_.mutatedParts||{},k),q})}}),c=function(v){var x=v.query,v=x.index,x=x.range;return[v,new xe((v=x.lower)!==null&&v!==void 0?v:e.MIN_KEY,(x=x.upper)!==null&&x!==void 0?x:e.MAX_KEY)]},w={get:function(f){return[a,new xe(f.key)]},getMany:function(f){return[a,new xe().addKeys(f.keys)]},count:c,query:c,openCursor:c};return C(w).forEach(function(f){g[f]=function(v){var x=F.subscr,m=!!x,j=Dr(F,o)&&Rr(f,v)?v.obsSet={}:x;if(m){var _=function(K){return K="idb://".concat(t,"/").concat(r,"/").concat(K),j[K]||(j[K]=new xe)},k=_(""),P=_(":dels"),x=w[f](v),m=x[0],x=x[1];if((f==="query"&&m.isPrimaryKey&&!v.values?P:_(m.name||"")).add(x),!m.isPrimaryKey){if(f!=="count"){var N=f==="query"&&l&&v.values&&o.query(b(b({},v),{values:!1}));return o[f].apply(this,arguments).then(function(K){if(f==="query"){if(l&&v.values)return N.then(function(W){return W=W.result,k.addKeys(W),K});var D=v.values?K.result.map(u):K.result;(v.values?k:P).addKeys(D)}else if(f==="openCursor"){var q=K,I=v.values;return q&&Object.create(q,{key:{get:function(){return P.addKey(q.primaryKey),q.key}},primaryKey:{get:function(){var W=q.primaryKey;return P.addKey(W),W}},value:{get:function(){return I&&k.addKey(q.primaryKey),q.value}}})}return K})}P.add(n)}}return o[f].apply(this,arguments)}}),g}})}};function Ir(e,t,n){if(n.numFailures===0)return t;if(t.type==="deleteRange")return null;var r=t.keys?t.keys.length:"values"in t&&t.values?t.values.length:1;return n.numFailures===r?null:(t=b({},t),E(t.keys)&&(t.keys=t.keys.filter(function(o,i){return!(i in n.failures)})),"values"in t&&E(t.values)&&(t.values=t.values.filter(function(o,i){return!(i in n.failures)})),t)}function er(e,t){return n=e,((r=t).lower===void 0||(r.lowerOpen?0<Z(n,r.lower):0<=Z(n,r.lower)))&&(e=e,(t=t).upper===void 0||(t.upperOpen?Z(e,t.upper)<0:Z(e,t.upper)<=0));var n,r}function Tr(e,t,w,r,o,i){if(!w||w.length===0)return e;var a=t.query.index,u=a.multiEntry,l=t.query.range,h=r.schema.primaryKey.extractKey,g=a.extractKey,c=(a.lowLevelIndex||a).extractKey,w=w.reduce(function(f,v){var x=f,m=[];if(v.type==="add"||v.type==="put")for(var j=new xe,_=v.values.length-1;0<=_;--_){var k,P=v.values[_],N=h(P);j.hasKey(N)||(k=g(P),(u&&E(k)?k.some(function(q){return er(q,l)}):er(k,l))&&(j.addKey(N),m.push(P)))}switch(v.type){case"add":var B=new xe().addKeys(t.values?f.map(function(I){return h(I)}):f),x=f.concat(t.values?m.filter(function(I){return I=h(I),!B.hasKey(I)&&(B.addKey(I),!0)}):m.map(function(I){return h(I)}).filter(function(I){return!B.hasKey(I)&&(B.addKey(I),!0)}));break;case"put":var S=new xe().addKeys(v.values.map(function(I){return h(I)}));x=f.filter(function(I){return!S.hasKey(t.values?h(I):I)}).concat(t.values?m:m.map(function(I){return h(I)}));break;case"delete":var K=new xe().addKeys(v.keys);x=f.filter(function(I){return!K.hasKey(t.values?h(I):I)});break;case"deleteRange":var D=v.range;x=f.filter(function(I){return!er(h(I),D)})}return x},e);return w===e?e:(w.sort(function(f,v){return Z(c(f),c(v))||Z(h(f),h(v))}),t.limit&&t.limit<1/0&&(w.length>t.limit?w.length=t.limit:e.length===t.limit&&w.length<t.limit&&(o.dirty=!0)),i?Object.freeze(w):w)}function Fr(e,t){return Z(e.lower,t.lower)===0&&Z(e.upper,t.upper)===0&&!!e.lowerOpen==!!t.lowerOpen&&!!e.upperOpen==!!t.upperOpen}function To(e,t){return function(n,r,o,i){if(n===void 0)return r!==void 0?-1:0;if(r===void 0)return 1;if((r=Z(n,r))===0){if(o&&i)return 0;if(o)return 1;if(i)return-1}return r}(e.lower,t.lower,e.lowerOpen,t.lowerOpen)<=0&&0<=function(n,r,o,i){if(n===void 0)return r!==void 0?1:0;if(r===void 0)return-1;if((r=Z(n,r))===0){if(o&&i)return 0;if(o)return-1;if(i)return 1}return r}(e.upper,t.upper,e.upperOpen,t.upperOpen)}function Fo(e,t,n,r){e.subscribers.add(n),r.addEventListener("abort",function(){var o,i;e.subscribers.delete(n),e.subscribers.size===0&&(o=e,i=t,setTimeout(function(){o.subscribers.size===0&&Oe(i,o)},3e3))})}var Lo={stack:"dbcore",level:0,name:"Cache",create:function(e){var t=e.schema.name;return b(b({},e),{transaction:function(n,r,o){var i,a,u=e.transaction(n,r,o);return r==="readwrite"&&(a=(i=new AbortController).signal,o=function(l){return function(){if(i.abort(),r==="readwrite"){for(var h=new Set,g=0,c=n;g<c.length;g++){var w=c[g],f=lt["idb://".concat(t,"/").concat(w)];if(f){var v=e.table(w),x=f.optimisticOps.filter(function(I){return I.trans===u});if(u._explicit&&l&&u.mutatedParts)for(var m=0,j=Object.values(f.queries.query);m<j.length;m++)for(var _=0,k=(B=j[m]).slice();_<k.length;_++)Wn((S=k[_]).obsSet,u.mutatedParts)&&(Oe(B,S),S.subscribers.forEach(function(I){return h.add(I)}));else if(0<x.length){f.optimisticOps=f.optimisticOps.filter(function(I){return I.trans!==u});for(var P=0,N=Object.values(f.queries.query);P<N.length;P++)for(var B,S,K,D=0,q=(B=N[P]).slice();D<q.length;D++)(S=q[D]).res!=null&&u.mutatedParts&&(l&&!S.dirty?(K=Object.isFrozen(S.res),K=Tr(S.res,S.req,x,v,S,K),S.dirty?(Oe(B,S),S.subscribers.forEach(function(I){return h.add(I)})):K!==S.res&&(S.res=K,S.promise=R.resolve({result:K}))):(S.dirty&&Oe(B,S),S.subscribers.forEach(function(I){return h.add(I)})))}}}h.forEach(function(I){return I()})}}},u.addEventListener("abort",o(!1),{signal:a}),u.addEventListener("error",o(!1),{signal:a}),u.addEventListener("complete",o(!0),{signal:a})),u},table:function(n){var r=e.table(n),o=r.schema.primaryKey;return b(b({},r),{mutate:function(i){var a=F.trans;if(o.outbound||a.db._options.cache==="disabled"||a.explicit||a.idbtrans.mode!=="readwrite")return r.mutate(i);var u=lt["idb://".concat(t,"/").concat(n)];return u?(a=r.mutate(i),i.type!=="add"&&i.type!=="put"||!(50<=i.values.length||$n(o,i).some(function(l){return l==null}))?(u.optimisticOps.push(i),i.mutatedParts&&fn(i.mutatedParts),a.then(function(l){0<l.numFailures&&(Oe(u.optimisticOps,i),(l=Ir(0,i,l))&&u.optimisticOps.push(l),i.mutatedParts&&fn(i.mutatedParts))}),a.catch(function(){Oe(u.optimisticOps,i),i.mutatedParts&&fn(i.mutatedParts)})):a.then(function(l){var h=Ir(0,b(b({},i),{values:i.values.map(function(g,c){var w;return l.failures[c]||(g=(w=o.keyPath)!==null&&w!==void 0&&w.includes(".")?Ke(g):b({},g),V(g,o.keyPath,l.results[c])),g})}),l);u.optimisticOps.push(h),queueMicrotask(function(){return i.mutatedParts&&fn(i.mutatedParts)})}),a):r.mutate(i)},query:function(i){if(!Dr(F,r)||!Rr("query",i))return r.query(i);var a=((h=F.trans)===null||h===void 0?void 0:h.db._options.cache)==="immutable",c=F,u=c.requery,l=c.signal,h=function(v,x,m,j){var _=lt["idb://".concat(v,"/").concat(x)];if(!_)return[];if(!(x=_.queries[m]))return[null,!1,_,null];var k=x[(j.query?j.query.index.name:null)||""];if(!k)return[null,!1,_,null];switch(m){case"query":var P=k.find(function(N){return N.req.limit===j.limit&&N.req.values===j.values&&Fr(N.req.query.range,j.query.range)});return P?[P,!0,_,k]:[k.find(function(N){return("limit"in N.req?N.req.limit:1/0)>=j.limit&&(!j.values||N.req.values)&&To(N.req.query.range,j.query.range)}),!1,_,k];case"count":return P=k.find(function(N){return Fr(N.req.query.range,j.query.range)}),[P,!!P,_,k]}}(t,n,"query",i),g=h[0],c=h[1],w=h[2],f=h[3];return g&&c?g.obsSet=i.obsSet:(c=r.query(i).then(function(v){var x=v.result;if(g&&(g.res=x),a){for(var m=0,j=x.length;m<j;++m)Object.freeze(x[m]);Object.freeze(x)}else v.result=Ke(x);return v}).catch(function(v){return f&&g&&Oe(f,g),Promise.reject(v)}),g={obsSet:i.obsSet,promise:c,subscribers:new Set,type:"query",req:i,dirty:!1},f?f.push(g):(f=[g],(w=w||(lt["idb://".concat(t,"/").concat(n)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[i.query.index.name||""]=f)),Fo(g,f,u,l),g.promise.then(function(v){return{result:Tr(v.result,i,w?.optimisticOps,r,g,a)}})}})}})}};function hn(e,t){return new Proxy(e,{get:function(n,r,o){return r==="db"?t:Reflect.get(n,r,o)}})}var He=(he.prototype.version=function(e){if(isNaN(e)||e<.1)throw new U.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new U.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);var t=this._versions,n=t.filter(function(r){return r._cfg.version===e})[0];return n||(n=new this.Version(e),t.push(n),t.sort(No),n.stores({}),this._state.autoSchema=!1,n)},he.prototype._whenReady=function(e){var t=this;return this.idbdb&&(this._state.openComplete||F.letThrough||this._vip)?e():new R(function(n,r){if(t._state.openComplete)return r(new U.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._state.autoOpen)return void r(new U.DatabaseClosed);t.open().catch(ne)}t._state.dbReadyPromise.then(n,r)}).then(e)},he.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,o=e.name;return o&&this.unuse({stack:t,name:o}),e=this._middlewares[t]||(this._middlewares[t]=[]),e.push({stack:t,create:n,level:r??10,name:o}),e.sort(function(i,a){return i.level-a.level}),this},he.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(function(o){return r?o.create!==r:!!n&&o.name!==n})),this},he.prototype.open=function(){var e=this;return st(We,function(){return qo(e)})},he.prototype._close=function(){var e=this._state,t=vt.indexOf(this);if(0<=t&&vt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}e.isBeingOpened||(e.dbReadyPromise=new R(function(n){e.dbReadyResolve=n}),e.openCanceller=new R(function(n,r){e.cancelOpen=r}))},he.prototype.close=function(n){var t=(n===void 0?{disableAutoOpen:!0}:n).disableAutoOpen,n=this._state;t?(n.isBeingOpened&&n.cancelOpen(new U.DatabaseClosed),this._close(),n.autoOpen=!1,n.dbOpenError=new U.DatabaseClosed):(this._close(),n.autoOpen=this._options.autoOpen||n.isBeingOpened,n.openComplete=!1,n.dbOpenError=null)},he.prototype.delete=function(e){var t=this;e===void 0&&(e={disableAutoOpen:!0});var n=0<arguments.length&&typeof arguments[0]!="object",r=this._state;return new R(function(o,i){function a(){t.close(e);var u=t._deps.indexedDB.deleteDatabase(t.name);u.onsuccess=ce(function(){var l,h,g;l=t._deps,h=t.name,g=l.indexedDB,l=l.IDBKeyRange,Un(g)||h===Yt||Qn(g,l).delete(h).catch(ne),o()}),u.onerror=Le(i),u.onblocked=t._fireOnBlocked}if(n)throw new U.InvalidArgument("Invalid closeOptions argument to db.delete()");r.isBeingOpened?r.dbReadyPromise.then(a):a()})},he.prototype.backendDB=function(){return this.idbdb},he.prototype.isOpen=function(){return this.idbdb!==null},he.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&e.name==="DatabaseClosed"},he.prototype.hasFailed=function(){return this._state.dbOpenError!==null},he.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(he.prototype,"tables",{get:function(){var e=this;return C(this._allTables).map(function(t){return e._allTables[t]})},enumerable:!1,configurable:!0}),he.prototype.transaction=function(){var e=function(t,n,r){var o=arguments.length;if(o<2)throw new U.InvalidArgument("Too few arguments");for(var i=new Array(o-1);--o;)i[o-1]=arguments[o];return r=i.pop(),[t,Y(i),r]}.apply(this,arguments);return this._transaction.apply(this,e)},he.prototype._transaction=function(e,t,n){var r=this,o=F.trans;o&&o.db===this&&e.indexOf("!")===-1||(o=null);var i,a,u=e.indexOf("?")!==-1;e=e.replace("!","").replace("?","");try{if(a=t.map(function(h){if(h=h instanceof r.Table?h.name:h,typeof h!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return h}),e=="r"||e===Sn)i=Sn;else{if(e!="rw"&&e!=Kn)throw new U.InvalidArgument("Invalid transaction mode: "+e);i=Kn}if(o){if(o.mode===Sn&&i===Kn){if(!u)throw new U.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&a.forEach(function(h){if(o&&o.storeNames.indexOf(h)===-1){if(!u)throw new U.SubTransaction("Table "+h+" not included in parent transaction.");o=null}}),u&&o&&!o.active&&(o=null)}}catch(h){return o?o._promise(null,function(g,c){c(h)}):de(h)}var l=function h(g,c,w,f,v){return R.resolve().then(function(){var x=F.transless||F,m=g._createTransaction(c,w,g._dbSchema,f);if(m.explicit=!0,x={trans:m,transless:x},f)m.idbtrans=f.idbtrans;else try{m.create(),m.idbtrans._explicit=!0,g._state.PR1398_maxLoop=3}catch(k){return k.name===wn.InvalidState&&g.isOpen()&&0<--g._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),g.close({disableAutoOpen:!1}),g.open().then(function(){return h(g,c,w,null,v)})):de(k)}var j,_=$(v);return _&&mt(),x=R.follow(function(){var k;(j=v.call(m,m))&&(_?(k=Ge.bind(null,null),j.then(k,k)):typeof j.next=="function"&&typeof j.throw=="function"&&(j=Yn(j)))},x),(j&&typeof j.then=="function"?R.resolve(j).then(function(k){return m.active?k:de(new U.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):x.then(function(){return j})).then(function(k){return f&&m._resolve(),m._completion.then(function(){return k})}).catch(function(k){return m._reject(k),de(k)})})}.bind(null,this,i,a,o,n);return o?o._promise(i,l,"lock"):F.trans?st(F.transless,function(){return r._whenReady(l)}):this._whenReady(l)},he.prototype.table=function(e){if(!M(this._allTables,e))throw new U.InvalidTable("Table ".concat(e," does not exist"));return this._allTables[e]},he);function he(e,t){var n=this;this._middlewares={},this.verno=0;var r=he.dependencies;this._options=t=b({addons:he.addons,autoOpen:!0,indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange,cache:"cloned"},t),this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange},r=t.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var o,i,a,u,l,h={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ne,dbReadyPromise:null,cancelOpen:ne,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:t.autoOpen};h.dbReadyPromise=new R(function(c){h.dbReadyResolve=c}),h.openCanceller=new R(function(c,w){h.cancelOpen=w}),this._state=h,this.name=e,this.on=Pt(this,"populate","blocked","versionchange","close",{ready:[jn,ne]}),this.on.ready.subscribe=be(this.on.ready.subscribe,function(c){return function(w,f){he.vip(function(){var v,x=n._state;x.openComplete?(x.dbOpenError||R.resolve().then(w),f&&c(w)):x.onReadyBeingFired?(x.onReadyBeingFired.push(w),f&&c(w)):(c(w),v=n,f||c(function m(){v.on.ready.unsubscribe(w),v.on.ready.unsubscribe(m)}))})}}),this.Collection=(o=this,Ct(_o.prototype,function(j,m){this.db=o;var f=vr,v=null;if(m)try{f=m()}catch(_){v=_}var x=j._ctx,m=x.table,j=m.hook.reading.fire;this._ctx={table:m,index:x.index,isPrimKey:!x.index||m.schema.primKey.keyPath&&x.index===m.schema.primKey.name,range:f,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:v,or:x.or,valueMapper:j!==jt?j:null}})),this.Table=(i=this,Ct(wr.prototype,function(c,w,f){this.db=i,this._tx=f,this.name=c,this.schema=w,this.hook=i._allTables[c]?i._allTables[c].hook:Pt(null,{creating:[po,ne],reading:[ho,jt],updating:[mo,ne],deleting:[yo,ne]})})),this.Transaction=(a=this,Ct(Oo.prototype,function(c,w,f,v,x){var m=this;this.db=a,this.mode=c,this.storeNames=w,this.schema=f,this.chromeTransactionDurability=v,this.idbtrans=null,this.on=Pt(this,"complete","error","abort"),this.parent=x||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new R(function(j,_){m._resolve=j,m._reject=_}),this._completion.then(function(){m.active=!1,m.on.complete.fire()},function(j){var _=m.active;return m.active=!1,m.on.error.fire(j),m.parent?m.parent._reject(j):_&&m.idbtrans&&m.idbtrans.abort(),de(j)})})),this.Version=(u=this,Ct(Mo.prototype,function(c){this.db=u,this._cfg={version:c,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(l=this,Ct(Or.prototype,function(c,w,f){if(this.db=l,this._ctx={table:c,index:w===":id"?null:w,or:f},this._cmp=this._ascending=Z,this._descending=function(v,x){return Z(x,v)},this._max=function(v,x){return 0<Z(v,x)?v:x},this._min=function(v,x){return Z(v,x)<0?v:x},this._IDBKeyRange=l._deps.IDBKeyRange,!this._IDBKeyRange)throw new U.MissingAPI})),this.on("versionchange",function(c){0<c.newVersion?console.warn("Another connection wants to upgrade database '".concat(n.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(n.name,"'. Closing db now to resume the delete request.")),n.close({disableAutoOpen:!1})}),this.on("blocked",function(c){!c.newVersion||c.newVersion<c.oldVersion?console.warn("Dexie.delete('".concat(n.name,"') was blocked")):console.warn("Upgrade '".concat(n.name,"' blocked by other connection holding version ").concat(c.oldVersion/10))}),this._maxKey=Kt(t.IDBKeyRange),this._createTransaction=function(c,w,f,v){return new n.Transaction(c,w,f,n._options.chromeTransactionDurability,v)},this._fireOnBlocked=function(c){n.on("blocked").fire(c),vt.filter(function(w){return w.name===n.name&&w!==n&&!w._state.vcFired}).map(function(w){return w.on("versionchange").fire(c)})},this.use(Ro),this.use(Lo),this.use(Io),this.use(Bo),this.use(Do);var g=new Proxy(this,{get:function(c,w,f){if(w==="_vip")return!0;if(w==="table")return function(x){return hn(n.table(x),g)};var v=Reflect.get(c,w,f);return v instanceof wr?hn(v,g):w==="tables"?v.map(function(x){return hn(x,g)}):w==="_createTransaction"?function(){return hn(v.apply(this,arguments),g)}:v}});this.vip=g,r.forEach(function(c){return c(n)})}var pn,Me=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",zo=(tr.prototype.subscribe=function(e,t,n){return this._subscribe(e&&typeof e!="function"?e:{next:e,error:t,complete:n})},tr.prototype[Me]=function(){return this},tr);function tr(e){this._subscribe=e}try{pn={indexedDB:A.indexedDB||A.mozIndexedDB||A.webkitIndexedDB||A.msIndexedDB,IDBKeyRange:A.IDBKeyRange||A.webkitIDBKeyRange}}catch{pn={indexedDB:null,IDBKeyRange:null}}function Lr(e){var t,n=!1,r=new zo(function(o){var i=$(e),a,u=!1,l={},h={},g={get closed(){return u},unsubscribe:function(){u||(u=!0,a&&a.abort(),c&&Ze.storagemutated.unsubscribe(f))}};o.start&&o.start(g);var c=!1,w=function(){return Nn(v)},f=function(x){ln(l,x),Wn(h,l)&&w()},v=function(){var x,m,j;!u&&pn.indexedDB&&(l={},x={},a&&a.abort(),a=new AbortController,j=function(_){var k=pt();try{i&&mt();var P=Je(e,_);return P=i?P.finally(Ge):P}finally{k&&yt()}}(m={subscr:x,signal:a.signal,requery:w,querier:e,trans:null}),Promise.resolve(j).then(function(_){n=!0,t=_,u||m.signal.aborted||(l={},function(k){for(var P in k)if(M(k,P))return;return 1}(h=x)||c||(Ze(St,f),c=!0),Nn(function(){return!u&&o.next&&o.next(_)}))},function(_){n=!1,["DatabaseClosedError","AbortError"].includes(_?.name)||u||Nn(function(){u||o.error&&o.error(_)})}))};return setTimeout(w,0),g});return r.hasValue=function(){return n},r.getValue=function(){return t},r}var ft=He;function nr(e){var t=$e;try{$e=!0,Ze.storagemutated.fire(e),Xn(e,!0)}finally{$e=t}}ie(ft,b(b({},zt),{delete:function(e){return new ft(e,{addons:[]}).delete()},exists:function(e){return new ft(e,{addons:[]}).open().then(function(t){return t.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return t=ft.dependencies,n=t.indexedDB,t=t.IDBKeyRange,(Un(n)?Promise.resolve(n.databases()).then(function(r){return r.map(function(o){return o.name}).filter(function(o){return o!==Yt})}):Qn(n,t).toCollection().primaryKeys()).then(e)}catch{return de(new U.MissingAPI)}var t,n},defineClass:function(){return function(e){T(this,e)}},ignoreTransaction:function(e){return F.trans?st(F.transless,e):e()},vip:Vn,async:function(e){return function(){try{var t=Yn(e.apply(this,arguments));return t&&typeof t.then=="function"?t:R.resolve(t)}catch(n){return de(n)}}},spawn:function(e,t,n){try{var r=Yn(e.apply(n,t||[]));return r&&typeof r.then=="function"?r:R.resolve(r)}catch(o){return de(o)}},currentTransaction:{get:function(){return F.trans||null}},waitFor:function(e,t){return t=R.resolve(typeof e=="function"?ft.ignoreTransaction(e):e).timeout(t||6e4),F.trans?F.trans.waitFor(t):t},Promise:R,debug:{get:function(){return Fe},set:function(e){lr(e)}},derive:ge,extend:T,props:ie,override:be,Events:Pt,on:Ze,liveQuery:Lr,extendObservabilitySet:ln,getByKeyPath:te,setByKeyPath:V,delByKeyPath:function(e,t){typeof t=="string"?V(e,t,void 0):"length"in t&&[].map.call(t,function(n){V(e,n,void 0)})},shallowClone:_e,deepClone:Ke,getObjectDiff:Zn,cmp:Z,asap:le,minKey:-1/0,addons:[],connections:vt,errnames:wn,dependencies:pn,cache:lt,semVer:"4.0.11",version:"4.0.11".split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,2*n)})})),ft.maxKey=Kt(ft.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Ze(St,function(e){$e||(e=new CustomEvent(Dn,{detail:e}),$e=!0,dispatchEvent(e),$e=!1)}),addEventListener(Dn,function(e){e=e.detail,$e||nr(e)}));var xt,$e=!1,zr=function(){};return typeof BroadcastChannel<"u"&&((zr=function(){(xt=new BroadcastChannel(Dn)).onmessage=function(e){return e.data&&nr(e.data)}})(),typeof xt.unref=="function"&&xt.unref(),Ze(St,function(e){$e||xt.postMessage(e)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(e){if(!He.disableBfCache&&e.persisted){Fe&&console.debug("Dexie: handling persisted pagehide"),xt?.close();for(var t=0,n=vt;t<n.length;t++)n[t].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(e){!He.disableBfCache&&e.persisted&&(Fe&&console.debug("Dexie: handling persisted pageshow"),zr(),nr({all:new xe(-1/0,[[]])}))})),R.rejectionMapper=function(e,t){return!e||e instanceof ye||e instanceof TypeError||e instanceof SyntaxError||!e.name||!cr[e.name]?e:(t=new cr[e.name](t||e.message,e),"stack"in e&&ae(t,"stack",{get:function(){return this.inner.stack}}),t)},lr(Fe),b(He,Object.freeze({__proto__:null,Dexie:He,liveQuery:Lr,Entity:gr,cmp:Z,PropModification:Et,replacePrefix:function(e,t){return new Et({replacePrefix:[e,t]})},add:function(e){return new Et({add:e})},remove:function(e){return new Et({remove:e})},default:He,RangeSet:xe,mergeRanges:Bt,rangesOverlap:Sr}),{default:He}),He})}(sr)),sr.exports}var Go=Jo();const ur=Uo(Go),Wr=Symbol.for("Dexie"),gn=globalThis[Wr]||(globalThis[Wr]=ur);if(ur.semVer!==gn.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${ur.semVer} and ${gn.semVer}`);const{liveQuery:Xo,mergeRanges:ma,rangesOverlap:va,RangeSet:ga,cmp:ba,Entity:xa,PropModification:wa,replacePrefix:ja,add:_a,remove:ka}=gn;function Yo(s,p,d){var b,O;typeof s=="function"?(b=p||[],O=d):(b=[],O=p);var A=Re.useRef({hasResult:!1,result:O,error:null}),C=Re.useReducer(function(L){return L+1},0);C[0];var E=C[1],T=Re.useMemo(function(){var L=typeof s=="function"?s():s;if(!L||typeof L.subscribe!="function")throw s===L?new TypeError("Given argument to useObservable() was neither a valid observable nor a function."):new TypeError("Observable factory given to useObservable() did not return a valid observable.");if(!A.current.hasResult&&typeof window<"u"&&(typeof L.hasValue!="function"||L.hasValue()))if(typeof L.getValue=="function")A.current.result=L.getValue(),A.current.hasResult=!0;else{var z=L.subscribe(function(M){A.current.result=M,A.current.hasResult=!0});typeof z=="function"?z():z.unsubscribe()}return L},b);if(Re.useDebugValue(A.current.result),Re.useEffect(function(){var L=T.subscribe(function(z){var M=A.current;(M.error!==null||M.result!==z)&&(M.error=null,M.result=z,M.hasResult=!0,E())},function(z){var M=A.current;M.error!==z&&(M.error=z,E())});return typeof L=="function"?L:L.unsubscribe.bind(L)},b),A.current.error)throw A.current.error;return A.current.result}function Jr(s,p,d){return Yo(function(){return Xo(s)},p||[],d)}const to=s=>s>=200&&s<300?"bg-green-200 text-green-800":s>=300&&s<400?"bg-blue-200 text-blue-800":s>=400&&s<500?"bg-orange-600 text-orange-200":s>=500?"bg-red-800 text-red-100":"bg-gray-200 text-gray-800",Zo=["bg-blue-100","border-l-4","border-blue-700"].join(" "),$o=({request:s,reqId:p,onSelect:d,onRemove:b,selected:O})=>{var A,C;const E=T=>{d(T)};return y.jsx("li",{className:`flex items-center cursor-pointer hover:bg-gray-200 ${O?Zo:""}`,onClick:()=>{E(s)},children:y.jsxs("div",{className:"flex items-center p-2 w-full",children:[y.jsx("div",{className:"w-16 flex justify-center",children:y.jsx("span",{className:`inline-flex px-3 py-1 text-xs font-semibold rounded-full ${to((A=s?.response)==null?void 0:A.statusCode)}`,children:((C=s?.response)==null?void 0:C.statusCode)||"N/A"})}),y.jsx("div",{className:"w-20 text-center font-medium",children:s.method||"GET"}),y.jsx("div",{className:"flex-grow truncate text-left",children:s.path||s.url}),y.jsxs("div",{className:"w-20 text-gray-500 text-center",children:[s.latency,"ms"]}),y.jsx("button",{className:"w-8 h-8 flex items-center justify-center cursor-pointer text-red-500 hover:text-red-700",onClick:T=>{T.stopPropagation(),b(p)},children:"✕"})]})})},ei=({isOpen:s,onClose:p,sortField:d,sortDirection:b,filters:O,setSortField:A,setSortDirection:C,setFilters:E})=>{const T=()=>{A("time"),C("asc")},L=()=>{E({})};return y.jsxs(y.Fragment,{children:[s&&y.jsx("div",{className:"fixed inset-0 bg-black opacity-50",style:{zIndex:9998},onClick:p}),y.jsxs("div",{className:`fixed top-0 left-0 h-full w-100 bg-white shadow-xl transform transition-transform duration-300
12
- ${s?"translate-x-0":"-translate-x-full"}
13
- `,style:{zIndex:9999},children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-gray-300 bg-gray-50",children:[y.jsx("h2",{className:"pl-4 text-lg font-semibold text-gray-800",children:"Filter & Sort"}),y.jsx("button",{onClick:p,className:"text-gray-600 hover:text-gray-800 focus:outline-none cursor-pointer","aria-label":"Close",children:"×"})]}),y.jsxs("div",{className:"p-4 overflow-y-auto h-full",children:[y.jsxs("section",{className:"mb-6 ml-4 mr-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h3",{className:"mb-3 text-xs font-bold text-gray-600 uppercase tracking-wide",children:"Sort By"}),y.jsx("button",{onClick:T,className:"text-xs text-blue-600 hover:underline cursor-pointer",children:"Reset"})]}),y.jsxs("div",{className:"space-y-3",children:[y.jsxs("label",{className:"flex items-center",children:[y.jsx("input",{type:"radio",name:"sortField",value:"time",checked:d==="time",onChange:z=>A(z.target.value),className:"form-radio text-blue-600"}),y.jsx("span",{className:"ml-3 text-gray-700",children:"Timestamp"})]}),y.jsxs("label",{className:"flex items-center",children:[y.jsx("input",{type:"radio",name:"sortField",value:"statusCode",checked:d==="statusCode",onChange:z=>A(z.target.value),className:"form-radio text-blue-600"}),y.jsx("span",{className:"ml-3 text-gray-700",children:"Status"})]}),y.jsxs("label",{className:"flex items-center",children:[y.jsx("input",{type:"radio",name:"sortField",value:"method",checked:d==="method",onChange:z=>A(z.target.value),className:"form-radio text-blue-600"}),y.jsx("span",{className:"ml-3 text-gray-700",children:"Method"})]})]}),y.jsxs("div",{className:"mt-4",children:[y.jsx("h4",{className:"mb-2 text-xs font-bold text-gray-600 uppercase tracking-wide",children:"Sort Direction"}),y.jsxs("div",{className:"space-y-3",children:[y.jsxs("label",{className:"flex items-center",children:[y.jsx("input",{type:"radio",name:"sortDirection",value:"asc",checked:b==="asc",onChange:z=>C(z.target.value),className:"form-radio text-blue-600"}),y.jsx("span",{className:"ml-3 text-gray-700",children:"Ascending"})]}),y.jsxs("label",{className:"flex items-center",children:[y.jsx("input",{type:"radio",name:"sortDirection",value:"desc",checked:b==="desc",onChange:z=>C(z.target.value),className:"form-radio text-blue-600"}),y.jsx("span",{className:"ml-3 text-gray-700",children:"Descending"})]})]})]})]}),y.jsxs("section",{className:"mb-6 ml-4 mr-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h3",{className:"mb-3 text-xs font-bold text-gray-600 uppercase tracking-wide",children:"Filters"}),y.jsx("button",{onClick:L,className:"text-xs text-blue-600 hover:underline cursor-pointer",children:"Reset"})]}),y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Status"}),y.jsx("input",{type:"number",placeholder:"e.g. 200",value:O.status||"",onChange:z=>E(M=>({...M,status:z.target.value})),className:"block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Method"}),y.jsxs("select",{value:O.method||"",onChange:z=>E(M=>({...M,method:z.target.value})),className:"block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm",children:[y.jsx("option",{value:"",children:"Any"}),y.jsx("option",{value:"GET",children:"GET"}),y.jsx("option",{value:"POST",children:"POST"}),y.jsx("option",{value:"PUT",children:"PUT"}),y.jsx("option",{value:"PATCH",children:"PATCH"}),y.jsx("option",{value:"DELETE",children:"DELETE"}),y.jsx("option",{value:"OPTIONS",children:"OPTIONS"})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Path"}),y.jsx("input",{type:"text",placeholder:"e.g. /api/users",value:O.path||"",onChange:z=>E(M=>({...M,path:z.target.value})),className:"block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Duration (ms)"}),y.jsxs("div",{className:"flex space-x-2",children:[y.jsx("input",{type:"number",placeholder:"Min",value:O.durationMin||"",onChange:z=>E(M=>({...M,durationMin:z.target.value})),className:"w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"}),y.jsx("input",{type:"number",placeholder:"Max",value:O.durationMax||"",onChange:z=>E(M=>({...M,durationMax:z.target.value})),className:"w-1/2 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Host"}),y.jsx("input",{type:"text",placeholder:"e.g. localhost",value:O.host||"",onChange:z=>E(M=>({...M,host:z.target.value})),className:"block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:ring-blue-500 focus:border-blue-500 sm:text-sm"})]})]})]})]})]})]})},ti=({currentPage:s,totalPages:p,onPageChange:d})=>{const b=((O,A)=>{const C=[];if(A<=7)for(let E=1;E<=A;E++)C.push(E);else if(O<=4){for(let E=1;E<=5;E++)C.push(E);C.push("ellipsis"),C.push(A)}else if(O>=A-3){C.push(1),C.push("ellipsis");for(let E=A-4;E<=A;E++)C.push(E)}else C.push(1),C.push("ellipsis"),C.push(O-1),C.push(O),C.push(O+1),C.push("ellipsis"),C.push(A);return C})(s,p);return y.jsx("nav",{className:"p-2 border-t border-gray-300",children:y.jsxs("ul",{className:"flex items-center justify-center -space-x-px h-8 text-sm",children:[y.jsx("li",{children:y.jsxs("button",{onClick:()=>d(s-1),disabled:s<=1,className:"flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-e-0 border-gray-300 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 disabled:opacity-50 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white cursor-pointer",children:[y.jsx("span",{className:"sr-only",children:"Previous"}),y.jsx("svg",{className:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10",children:y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 1 1 5l4 4"})})]})}),b.map((O,A)=>{if(O==="ellipsis")return y.jsx("li",{children:y.jsx("span",{className:"flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 cursor-pointer",children:"..."})},`ellipsis-${A}`);const C=O===s;return y.jsx("li",{children:y.jsx("button",{onClick:()=>d(O),className:C?"z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white cursor-pointer":"flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white cursor-pointer",children:O})},O)}),y.jsx("li",{children:y.jsxs("button",{onClick:()=>d(s+1),disabled:s>=p,className:"flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 disabled:opacity-50 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white cursor-pointer",children:[y.jsx("span",{className:"sr-only",children:"Next"}),y.jsx("svg",{className:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10",children:y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 9 4-4-4-4"})})]})})]})})},ni=({requests:s,onSelect:p,onRemove:d,clearRequests:b,selectedRequest:O,currentPage:A,totalPages:C,totalCount:E,onPageChange:T,sortField:L,sortDirection:z,filters:M,setSortField:ie,setSortDirection:pe,setFilters:ae})=>{const[ge,Ce]=Q.useState(!1);return y.jsxs("div",{className:"flex flex-col h-full relative",children:[y.jsxs("div",{className:"p-4 flex justify-between items-center",children:[y.jsxs("span",{className:"font-bold text-xl",children:["Requests (",s.length," of ",E,")"]}),y.jsxs("div",{className:"space-x-2",children:[y.jsx("button",{className:"px-3 py-1 bg-blue-500 text-white rounded text-xs cursor-pointer",onClick:()=>Ce(!0),children:"Filters"}),y.jsx("button",{className:"px-3 py-1 bg-red-500 text-white rounded text-xs cursor-pointer",onClick:b,children:"Clear All"})]})]}),y.jsxs("div",{className:"flex items-center bg-gray-200 p-2 border-b border-gray-300 text-sm font-bold cursor-pointer",onClick:()=>Ce(!0),children:[y.jsx("div",{className:"w-16 text-center",children:"Status"}),y.jsx("div",{className:"w-20 text-center",children:"Method"}),y.jsx("div",{className:"flex-grow text-left",children:"Path"}),y.jsx("div",{className:"w-20 text-center",children:"Duration"}),y.jsx("div",{className:"w-10"})]}),y.jsx("ul",{className:"overflow-y-auto flex-grow",style:{maxHeight:"calc(100vh - 40px - 100px - 49px)"},children:s.map((Ie,re)=>{const be=Ie.id||re;return y.jsx($o,{reqId:be,request:Ie,onSelect:p,onRemove:d,selected:O&&O.id===be},be)})}),y.jsx(ti,{currentPage:A,totalPages:C,onPageChange:T}),y.jsx(ei,{isOpen:ge,onClose:()=>Ce(!1),sortField:L,sortDirection:z,filters:M,setSortField:ie,setSortDirection:pe,setFilters:ae})]})},ri=({request:s})=>{var p,d;const b=O=>{if(!O)return"N/A";const A=new Date(O),C=A.toLocaleDateString("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}),E=A.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});return`${C} at ${E}`};return y.jsxs("div",{className:"mb-4 p-4 bg-white rounded shadow",children:[y.jsx("h2",{className:"font-bold text-lg mb-2",children:"Request Details"}),y.jsxs("div",{className:"flex flex-col space-y-1",children:[y.jsxs("div",{className:"flex items-center space-x-2 font-mono text-lg",children:[y.jsx("span",{className:"font-bold",children:s.method}),y.jsx("span",{className:"text-blue-600",children:s.path}),y.jsx("span",{className:`inline-flex px-3 py-1 text-xs font-semibold rounded-full ${to((p=s?.response)==null?void 0:p.statusCode)}`,children:(d=s?.response)==null?void 0:d.statusCode}),y.jsx("span",{className:"text-sm",children:s.response.statusMessage})]}),y.jsx("div",{className:"text-gray-600",children:s.url}),y.jsxs("div",{className:"text-gray-500 text-xs",children:["Received on ",b(s.request.timestamp)," • Took ",s.latency,"ms to respond"]})]})]})};function oi(s,p,d){return p in s?Object.defineProperty(s,p,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[p]=d,s}function Gr(s,p){var d=Object.keys(s);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(s);p&&(b=b.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),d.push.apply(d,b)}return d}function Xr(s){for(var p=1;p<arguments.length;p++){var d=arguments[p]!=null?arguments[p]:{};p%2?Gr(Object(d),!0).forEach(function(b){oi(s,b,d[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(d)):Gr(Object(d)).forEach(function(b){Object.defineProperty(s,b,Object.getOwnPropertyDescriptor(d,b))})}return s}function ii(s,p){if(s==null)return{};var d={},b=Object.keys(s),O,A;for(A=0;A<b.length;A++)O=b[A],!(p.indexOf(O)>=0)&&(d[O]=s[O]);return d}function ai(s,p){if(s==null)return{};var d=ii(s,p),b,O;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(s);for(O=0;O<A.length;O++)b=A[O],!(p.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(s,b)&&(d[b]=s[b])}return d}function si(s,p){return ui(s)||ci(s,p)||li(s,p)||fi()}function ui(s){if(Array.isArray(s))return s}function ci(s,p){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var d=[],b=!0,O=!1,A=void 0;try{for(var C=s[Symbol.iterator](),E;!(b=(E=C.next()).done)&&(d.push(E.value),!(p&&d.length===p));b=!0);}catch(T){O=!0,A=T}finally{try{!b&&C.return!=null&&C.return()}finally{if(O)throw A}}return d}}function li(s,p){if(s){if(typeof s=="string")return Yr(s,p);var d=Object.prototype.toString.call(s).slice(8,-1);if(d==="Object"&&s.constructor&&(d=s.constructor.name),d==="Map"||d==="Set")return Array.from(s);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return Yr(s,p)}}function Yr(s,p){(p==null||p>s.length)&&(p=s.length);for(var d=0,b=new Array(p);d<p;d++)b[d]=s[d];return b}function fi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function di(s,p,d){return p in s?Object.defineProperty(s,p,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[p]=d,s}function Zr(s,p){var d=Object.keys(s);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(s);p&&(b=b.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),d.push.apply(d,b)}return d}function $r(s){for(var p=1;p<arguments.length;p++){var d=arguments[p]!=null?arguments[p]:{};p%2?Zr(Object(d),!0).forEach(function(b){di(s,b,d[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(d)):Zr(Object(d)).forEach(function(b){Object.defineProperty(s,b,Object.getOwnPropertyDescriptor(d,b))})}return s}function hi(){for(var s=arguments.length,p=new Array(s),d=0;d<s;d++)p[d]=arguments[d];return function(b){return p.reduceRight(function(O,A){return A(O)},b)}}function It(s){return function p(){for(var d=this,b=arguments.length,O=new Array(b),A=0;A<b;A++)O[A]=arguments[A];return O.length>=s.length?s.apply(this,O):function(){for(var C=arguments.length,E=new Array(C),T=0;T<C;T++)E[T]=arguments[T];return p.apply(d,[].concat(O,E))}}}function bn(s){return{}.toString.call(s).includes("Object")}function pi(s){return!Object.keys(s).length}function Ft(s){return typeof s=="function"}function yi(s,p){return Object.prototype.hasOwnProperty.call(s,p)}function mi(s,p){return bn(p)||et("changeType"),Object.keys(p).some(function(d){return!yi(s,d)})&&et("changeField"),p}function vi(s){Ft(s)||et("selectorType")}function gi(s){Ft(s)||bn(s)||et("handlerType"),bn(s)&&Object.values(s).some(function(p){return!Ft(p)})&&et("handlersType")}function bi(s){s||et("initialIsRequired"),bn(s)||et("initialType"),pi(s)&&et("initialContent")}function xi(s,p){throw new Error(s[p]||s.default)}var wi={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},et=It(xi)(wi),mn={changes:mi,selector:vi,handler:gi,initial:bi};function ji(s){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};mn.initial(s),mn.handler(p);var d={current:s},b=It(Ai)(d,p),O=It(ki)(d),A=It(mn.changes)(s),C=It(_i)(d);function E(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(z){return z};return mn.selector(L),L(d.current)}function T(L){hi(b,O,A,C)(L)}return[E,T]}function _i(s,p){return Ft(p)?p(s.current):p}function ki(s,p){return s.current=$r($r({},s.current),p),p}function Ai(s,p,d){return Ft(p)?p(s.current):Object.keys(d).forEach(function(b){var O;return(O=p[b])===null||O===void 0?void 0:O.call(p,s.current[b])}),d}var Oi={create:ji},Pi={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Ci(s){return function p(){for(var d=this,b=arguments.length,O=new Array(b),A=0;A<b;A++)O[A]=arguments[A];return O.length>=s.length?s.apply(this,O):function(){for(var C=arguments.length,E=new Array(C),T=0;T<C;T++)E[T]=arguments[T];return p.apply(d,[].concat(O,E))}}}function Ei(s){return{}.toString.call(s).includes("Object")}function Ni(s){return s||eo("configIsRequired"),Ei(s)||eo("configType"),s.urls?(Si(),{paths:{vs:s.urls.monacoBase}}):s}function Si(){console.warn(no.deprecation)}function Ki(s,p){throw new Error(s[p]||s.default)}var no={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
15
- You are using deprecated way of configuration.
16
-
17
- Instead of using
18
- monaco.config({ urls: { monacoBase: '...' } })
19
- use
20
- monaco.config({ paths: { vs: '...' } })
21
-
22
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
23
- `},eo=Ci(Ki)(no),Mi={config:Ni},qi=function(){for(var s=arguments.length,p=new Array(s),d=0;d<s;d++)p[d]=arguments[d];return function(b){return p.reduceRight(function(O,A){return A(O)},b)}};function ro(s,p){return Object.keys(p).forEach(function(d){p[d]instanceof Object&&s[d]&&Object.assign(p[d],ro(s[d],p[d]))}),Xr(Xr({},s),p)}var Bi={type:"cancelation",msg:"operation is manually canceled"};function or(s){var p=!1,d=new Promise(function(b,O){s.then(function(A){return p?O(Bi):b(A)}),s.catch(O)});return d.cancel=function(){return p=!0},d}var Di=Oi.create({config:Pi,isInitialized:!1,resolve:null,reject:null,monaco:null}),oo=si(Di,2),Lt=oo[0],xn=oo[1];function Ri(s){var p=Mi.config(s),d=p.monaco,b=ai(p,["monaco"]);xn(function(O){return{config:ro(O.config,b),monaco:d}})}function Ii(){var s=Lt(function(p){var d=p.monaco,b=p.isInitialized,O=p.resolve;return{monaco:d,isInitialized:b,resolve:O}});if(!s.isInitialized){if(xn({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),or(ir);if(window.monaco&&window.monaco.editor)return io(window.monaco),s.resolve(window.monaco),or(ir);qi(Ti,Li)(zi)}return or(ir)}function Ti(s){return document.body.appendChild(s)}function Fi(s){var p=document.createElement("script");return s&&(p.src=s),p}function Li(s){var p=Lt(function(b){var O=b.config,A=b.reject;return{config:O,reject:A}}),d=Fi("".concat(p.config.paths.vs,"/loader.js"));return d.onload=function(){return s()},d.onerror=p.reject,d}function zi(){var s=Lt(function(d){var b=d.config,O=d.resolve,A=d.reject;return{config:b,resolve:O,reject:A}}),p=window.require;p.config(s.config),p(["vs/editor/editor.main"],function(d){io(d),s.resolve(d)},function(d){s.reject(d)})}function io(s){Lt().monaco||xn({monaco:s})}function Qi(){return Lt(function(s){var p=s.monaco;return p})}var ir=new Promise(function(s,p){return xn({resolve:s,reject:p})}),ao={config:Ri,init:Ii,__getMonacoInstance:Qi},Ui={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ar=Ui,Vi={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Hi=Vi;function Wi({children:s}){return Re.createElement("div",{style:Hi.container},s)}var Ji=Wi,Gi=Ji;function Xi({width:s,height:p,isEditorReady:d,loading:b,_ref:O,className:A,wrapperProps:C}){return Re.createElement("section",{style:{...ar.wrapper,width:s,height:p},...C},!d&&Re.createElement(Gi,null,b),Re.createElement("div",{ref:O,style:{...ar.fullWidth,...!d&&ar.hide},className:A}))}var Yi=Xi,so=Q.memo(Yi);function Zi(s){Q.useEffect(s,[])}var uo=Zi;function $i(s,p,d=!0){let b=Q.useRef(!0);Q.useEffect(b.current||!d?()=>{b.current=!1}:s,p)}var Se=$i;function Tt(){}function wt(s,p,d,b){return ea(s,b)||ta(s,p,d,b)}function ea(s,p){return s.editor.getModel(co(s,p))}function ta(s,p,d,b){return s.editor.createModel(p,d,b?co(s,b):void 0)}function co(s,p){return s.Uri.parse(p)}function na({original:s,modified:p,language:d,originalLanguage:b,modifiedLanguage:O,originalModelPath:A,modifiedModelPath:C,keepCurrentOriginalModel:E=!1,keepCurrentModifiedModel:T=!1,theme:L="light",loading:z="Loading...",options:M={},height:ie="100%",width:pe="100%",className:ae,wrapperProps:ge={},beforeMount:Ce=Tt,onMount:Ie=Tt}){let[re,be]=Q.useState(!1),[Ae,le]=Q.useState(!0),te=Q.useRef(null),V=Q.useRef(null),_e=Q.useRef(null),fe=Q.useRef(Ie),Y=Q.useRef(Ce),qe=Q.useRef(!1);uo(()=>{let J=ao.init();return J.then(oe=>(V.current=oe)&&le(!1)).catch(oe=>oe?.type!=="cancelation"&&console.error("Monaco initialization: error:",oe)),()=>te.current?tt():J.cancel()}),Se(()=>{if(te.current&&V.current){let J=te.current.getOriginalEditor(),oe=wt(V.current,s||"",b||d||"text",A||"");oe!==J.getModel()&&J.setModel(oe)}},[A],re),Se(()=>{if(te.current&&V.current){let J=te.current.getModifiedEditor(),oe=wt(V.current,p||"",O||d||"text",C||"");oe!==J.getModel()&&J.setModel(oe)}},[C],re),Se(()=>{let J=te.current.getModifiedEditor();J.getOption(V.current.editor.EditorOption.readOnly)?J.setValue(p||""):p!==J.getValue()&&(J.executeEdits("",[{range:J.getModel().getFullModelRange(),text:p||"",forceMoveMarkers:!0}]),J.pushUndoStop())},[p],re),Se(()=>{var J,oe;(oe=(J=te.current)==null?void 0:J.getModel())==null||oe.original.setValue(s||"")},[s],re),Se(()=>{let{original:J,modified:oe}=te.current.getModel();V.current.editor.setModelLanguage(J,b||d||"text"),V.current.editor.setModelLanguage(oe,O||d||"text")},[d,b,O],re),Se(()=>{var J;(J=V.current)==null||J.editor.setTheme(L)},[L],re),Se(()=>{var J;(J=te.current)==null||J.updateOptions(M)},[M],re);let Te=Q.useCallback(()=>{var J;if(!V.current)return;Y.current(V.current);let oe=wt(V.current,s||"",b||d||"text",A||""),Qe=wt(V.current,p||"",O||d||"text",C||"");(J=te.current)==null||J.setModel({original:oe,modified:Qe})},[d,p,O,s,b,A,C]),Ke=Q.useCallback(()=>{var J;!qe.current&&_e.current&&(te.current=V.current.editor.createDiffEditor(_e.current,{automaticLayout:!0,...M}),Te(),(J=V.current)==null||J.editor.setTheme(L),be(!0),qe.current=!0)},[M,L,Te]);Q.useEffect(()=>{re&&fe.current(te.current,V.current)},[re]),Q.useEffect(()=>{!Ae&&!re&&Ke()},[Ae,re,Ke]);function tt(){var J,oe,Qe,Oe;let Pe=(J=te.current)==null?void 0:J.getModel();E||(oe=Pe?.original)==null||oe.dispose(),T||(Qe=Pe?.modified)==null||Qe.dispose(),(Oe=te.current)==null||Oe.dispose()}return Re.createElement(so,{width:pe,height:ie,isEditorReady:re,loading:z,_ref:_e,className:ae,wrapperProps:ge})}var ra=na;Q.memo(ra);function oa(s){let p=Q.useRef();return Q.useEffect(()=>{p.current=s},[s]),p.current}var ia=oa,vn=new Map;function aa({defaultValue:s,defaultLanguage:p,defaultPath:d,value:b,language:O,path:A,theme:C="light",line:E,loading:T="Loading...",options:L={},overrideServices:z={},saveViewState:M=!0,keepCurrentModel:ie=!1,width:pe="100%",height:ae="100%",className:ge,wrapperProps:Ce={},beforeMount:Ie=Tt,onMount:re=Tt,onChange:be,onValidate:Ae=Tt}){let[le,te]=Q.useState(!1),[V,_e]=Q.useState(!0),fe=Q.useRef(null),Y=Q.useRef(null),qe=Q.useRef(null),Te=Q.useRef(re),Ke=Q.useRef(Ie),tt=Q.useRef(),J=Q.useRef(b),oe=ia(A),Qe=Q.useRef(!1),Oe=Q.useRef(!1);uo(()=>{let $=ao.init();return $.then(ue=>(fe.current=ue)&&_e(!1)).catch(ue=>ue?.type!=="cancelation"&&console.error("Monaco initialization: error:",ue)),()=>Y.current?Be():$.cancel()}),Se(()=>{var $,ue,ye,Ue;let De=wt(fe.current,s||b||"",p||O||"",A||d||"");De!==(($=Y.current)==null?void 0:$.getModel())&&(M&&vn.set(oe,(ue=Y.current)==null?void 0:ue.saveViewState()),(ye=Y.current)==null||ye.setModel(De),M&&((Ue=Y.current)==null||Ue.restoreViewState(vn.get(A))))},[A],le),Se(()=>{var $;($=Y.current)==null||$.updateOptions(L)},[L],le),Se(()=>{!Y.current||b===void 0||(Y.current.getOption(fe.current.editor.EditorOption.readOnly)?Y.current.setValue(b):b!==Y.current.getValue()&&(Oe.current=!0,Y.current.executeEdits("",[{range:Y.current.getModel().getFullModelRange(),text:b,forceMoveMarkers:!0}]),Y.current.pushUndoStop(),Oe.current=!1))},[b],le),Se(()=>{var $,ue;let ye=($=Y.current)==null?void 0:$.getModel();ye&&O&&((ue=fe.current)==null||ue.editor.setModelLanguage(ye,O))},[O],le),Se(()=>{var $;E!==void 0&&(($=Y.current)==null||$.revealLine(E))},[E],le),Se(()=>{var $;($=fe.current)==null||$.editor.setTheme(C)},[C],le);let Pe=Q.useCallback(()=>{var $;if(!(!qe.current||!fe.current)&&!Qe.current){Ke.current(fe.current);let ue=A||d,ye=wt(fe.current,b||s||"",p||O||"",ue||"");Y.current=($=fe.current)==null?void 0:$.editor.create(qe.current,{model:ye,automaticLayout:!0,...L},z),M&&Y.current.restoreViewState(vn.get(ue)),fe.current.editor.setTheme(C),E!==void 0&&Y.current.revealLine(E),te(!0),Qe.current=!0}},[s,p,d,b,O,A,L,z,M,C,E]);Q.useEffect(()=>{le&&Te.current(Y.current,fe.current)},[le]),Q.useEffect(()=>{!V&&!le&&Pe()},[V,le,Pe]),J.current=b,Q.useEffect(()=>{var $,ue;le&&be&&(($=tt.current)==null||$.dispose(),tt.current=(ue=Y.current)==null?void 0:ue.onDidChangeModelContent(ye=>{Oe.current||be(Y.current.getValue(),ye)}))},[le,be]),Q.useEffect(()=>{if(le){let $=fe.current.editor.onDidChangeMarkers(ue=>{var ye;let Ue=(ye=Y.current.getModel())==null?void 0:ye.uri;if(Ue&&ue.find(De=>De.path===Ue.path)){let De=fe.current.editor.getModelMarkers({resource:Ue});Ae?.(De)}});return()=>{$?.dispose()}}return()=>{}},[le,Ae]);function Be(){var $,ue;($=tt.current)==null||$.dispose(),ie?M&&vn.set(A,Y.current.saveViewState()):(ue=Y.current.getModel())==null||ue.dispose(),Y.current.dispose()}return Re.createElement(so,{width:pe,height:ae,isEditorReady:le,loading:T,_ref:qe,className:ge,wrapperProps:Ce})}var sa=aa,ua=Q.memo(sa),lo=ua;const ca=({request:s})=>{const[p,d]=Q.useState(!1),[b,O]=Q.useState(!1),A=L=>Object.entries(L||{}).map(([z,M])=>y.jsxs("tr",{children:[y.jsx("td",{className:"border border-slate-200 px-2 py-1 font-mono text-slate-500 text-xs",children:z}),y.jsx("td",{className:"border border-slate-200 px-2 py-1 font-mono text-xs",children:M})]},z)),C=s.request.payload,E=!C||typeof C=="object"&&Object.keys(C).length===0||typeof C=="string"&&(C.trim()===""||C.trim()==="{}"),T=L=>{try{const z=JSON.parse(L);return JSON.stringify(z,null,2)}catch{return L}};return y.jsxs("div",{children:[y.jsxs("div",{className:"mb-4",children:[y.jsxs("button",{className:"w-full p-2 text-left font-bold bg-gray-200",onClick:()=>d(!p),children:["Query Parameters (",Object.keys(s.request.queryParams||{}).length,")"]}),p&&y.jsx("div",{className:"p-0",children:y.jsxs("table",{className:"w-full border-collapse border border-gray-300",children:[y.jsx("thead",{children:y.jsxs("tr",{className:"bg-gray-100",children:[y.jsx("th",{className:"border border-slate-200 px-2 py-1 w-1/4 text-left",children:"Key"}),y.jsx("th",{className:"border border-slate-200 px-2 py-1 text-left",children:"Value"})]})}),y.jsx("tbody",{children:A(s.request.queryParams)})]})})]}),y.jsxs("div",{className:"mb-4",children:[y.jsxs("button",{className:"w-full p-2 text-left font-bold bg-gray-200",onClick:()=>O(!b),children:["Headers (",Object.keys(s.request.headers||{}).length,")"]}),b&&y.jsx("div",{className:"p-0",children:y.jsxs("table",{className:"w-full border-collapse border border-gray-300",children:[y.jsx("thead",{children:y.jsxs("tr",{className:"bg-gray-100",children:[y.jsx("th",{className:"border border-slate-200 px-2 py-1 w-1/4 text-left",children:"Header"}),y.jsx("th",{className:"border border-slate-200 px-2 py-1 text-left",children:"Value"})]})}),y.jsx("tbody",{children:A(s.request.headers)})]})})]}),y.jsxs("div",{children:[y.jsx("button",{className:"w-full p-2 text-left font-bold bg-gray-200",children:"Request Body"}),E?y.jsx("div",{className:"hidden"}):y.jsx("div",{className:"bg-white rounded-b shadow p-0 h-100",children:y.jsx(lo,{height:"100%",defaultLanguage:"json",value:T(C),options:{readOnly:!0,minimap:{enabled:!1},automaticLayout:!0,fontFamily:'"Cascadia Code", "Jetbrains Mono", "Fira Code", "Menlo", "Consolas", monospace',tabSize:2,scrollBeyondLastLine:!1}})})]})]})},la=({request:s})=>{const[p,d]=Q.useState(!1),b=E=>Object.entries(E||{}).map(([T,L])=>y.jsxs("tr",{children:[y.jsx("td",{className:"border border-slate-200 px-2 py-1 font-mono text-slate-500 text-xs",children:T}),y.jsx("td",{className:"border border-slate-200 px-2 py-1 font-mono text-xs",children:L})]},T)),O=s.response.payload,A=!O||typeof O=="object"&&Object.keys(O).length===0||typeof O=="string"&&(O.trim()===""||O.trim()==="{}"),C=E=>{try{const T=JSON.parse(E);return JSON.stringify(T,null,2)}catch{return E}};return y.jsxs("div",{children:[y.jsxs("div",{className:"mb-4",children:[y.jsxs("button",{className:"w-full p-2 text-left font-bold bg-gray-200",onClick:()=>d(!p),children:["Headers (",Object.keys(s.response.headers||{}).length,")"]}),p&&y.jsx("div",{className:"p-0",children:y.jsxs("table",{className:"w-full border-collapse border border-gray-300",children:[y.jsx("thead",{children:y.jsxs("tr",{className:"bg-gray-100",children:[y.jsx("th",{className:"border border-slate-200 px-2 py-1 w-1/4 text-left",children:"Header"}),y.jsx("th",{className:"border border-slate-200 px-2 py-1 text-left",children:"Value"})]})}),y.jsx("tbody",{children:b(s.response.headers)})]})})]}),y.jsxs("div",{children:[y.jsx("button",{className:"w-full p-2 text-left font-bold bg-gray-200",children:"Response Body"}),A?y.jsx("div",{className:"hidden"}):y.jsx("div",{className:"bg-white rounded-b shadow p-0 h-100",children:y.jsx(lo,{height:"100%",defaultLanguage:"json",value:C(O),options:{readOnly:!0,minimap:{enabled:!1},automaticLayout:!0,fontFamily:'"Cascadia Code", "Jetbrains Mono", "Fira Code", "Menlo", "Consolas", monospace',tabSize:2,scrollBeyondLastLine:!1}})})]})]})},fa=({request:s,currentTab:p,setCurrentTab:d})=>s?y.jsxs("div",{children:[y.jsx(ri,{request:s}),y.jsxs("div",{className:"flex space-x-2",children:[y.jsx("button",{className:`px-4 py-2 rounded-t ${p==="request"?"bg-blue-600 text-white":"bg-gray-200 text-gray-700"}`,onClick:()=>d("request"),children:"Request"}),y.jsx("button",{className:`px-4 py-2 rounded-t ${p==="response"?"bg-blue-600 text-white":"bg-gray-200 text-gray-700"}`,onClick:()=>d("response"),children:"Response"})]}),y.jsx("div",{className:"p-4 bg-white rounded-b shadow",children:p==="request"?y.jsx(ca,{request:s}):y.jsx(la,{request:s})})]}):y.jsx("div",{className:"text-gray-500",children:"No request selected."}),da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAACHxJREFUeJztnX+MFGcdxiul8UWMcECtlSIcR+GKYKsHhTu9dsQr9PhxV+TSEtTYVqXVHnD9AZWWhkG7tY1pY2uUtrYRQhZbTyC1Ftyilhg1Ri0Ww4gh1pomeze3O8ZaClZ68PoZ50gu6+zdLjd732FmnuT5j5DvPJ/bfZ93fu155yVKlChRokSJEg1FatLssXi09ByxE6FfjHfjU/g/+HE8TnquWKgv/D9jXeCf4irp+SItAj4f/9wn/DN+EL9Les7IinCXDxC+63/ij0vPGUn1LbivDQLA9Y+lZ42kCPZ6fLoEACdxrfS8kZL7vY5/XUL4Z7xVeuZIiUA/XOJf/xn/FV8kPXdkRJj3lBG+7tsffEF67kjI3ekOUj0zuAVfjtfg7/R5pfTskRBBzsJvFQn/V8kOOAARosL34tfxOwU+VST8N8ZMr7+sPe3svW27o295Kq+/uDWvb3o0rz/3zbxe9UCu5wYzd1/bppySPr7QizDvxr1lfs9/a+0zPW3tO53TRQBoAPSuuDe3Qfr4Qi/C/FuZ4b9dbXxm0rrO/CsA0AMA0CvuyR2VPr7Qi0APlQng+Y5dzlUA6C0BwEHp4wu9CPQ6/O8yKuaC23c7z3V05vUgAE7wFbRU+vhCL+XtdJvwdvzDfn7VB0AWV92xx+kEQAYAGQBkAJABQAYAGQBkAPAsABayCCdnR89Gyjv1/CMfADukZ4uFCHoC/pMPgOukZ4uFCLq2yLpwofRssRBBf8on/C7puWIjwr7ZB8A+6bnOSRHceHxbvxNlpfi3PgA2r3/BWXXX806aFpSmBaVpQWlaUJoWlKYFpWlBaVpQmhaUpgWlP70xt6P1ztz2pWty3792dc/TTTf1PGWssp9obLO/29Bq3zJ/iT1WOp+Kqq/NfK/MjVYxLwTAcwDQANAl7AP0io05DQANAA0ADQANAA0AXd9i63nN9qNzmrqjW1UJ7WP4HwGEfxxXA+BokACuvNa2ATBdOqeKidDq8b8CAJB979S6KgCcCBhAHgCzpHOqmAjuAnfxDADA4TWdr05av9fRAX8F7QLACOmcKirCm4ifxFaJdk9BFJ6e3r9hnzMTABYALABYALAAYAHAAoAFAAsAFgAsAFgAsABgAcACgAUACwAWACwAHG5osR+bv9hOrh0XirAb8JsFALZJzxUbEXaz8m667Q/gIem5YiPCXumzBrRLzxUbEfZXfAC0Ss8VGxH2Rh8Ac6XnCq2Ud0FlKV6Nbw3AewsBjJ919bS7M85aWpBJCzJpQSYtyKQFmbQgkxZk0oJMWpBJCzJpQSYtyKQFmbQgkxZk0oJMWpBJCzJpQSY11GQfYNYt6DYvb+w2Z9d3mTPndJkzrugyp83KbqqpzS6fOj0b7oqqvLuW9wfQ8wf08vs7xwLgtaD3AQDQANAA0ADQANAA0ADQANDVl2ZfnDItO0Y656IinDZV3n2bZ+Newq/CWQEAp6fUZJdL51xUbjup9F8/zhP+hTgnAEBPrsneKp1zURHOlfjtCgPIEf4HsCMA4ASfgI9K51xUyjvd3KG8uxUqBeB1wp+Mjw0zgC4AtLMGnC+d87CKwDsLAFjl/h8rv54bCYCLADCh5c7cOABULVrd8z4AjAbAKAC8u6HFvgAAIyJ9PeBspLx7goYEINEQlAAQVgJAWAmAsxAhVeGpATnj04IUbqQFGbQggxZk0IIMWpBBCzJoQQYtyKAFGbQggxZksAgbLMIGLchgETZoQQaLsMEibLAIG7Qgg0XYoAUZtCCDFmTQggxakEELMmouy1ZL5zqolPd0y2Oq/Acsyt0HTMHHh7mGnqaGPk0NHSWdc1Ep767mSoZ/BsCH8JsCG7FeNmKLpHMuKsJZW+HwXR8j/PcLnoq4QzrnoiKcxcPwCdCEPwHbAgBO8QkI70MehDMKb1XFn2YMxPU3b5kIgL8LANjOGhD+t3IR0iX4amwE4G2FAMbWNkwHwPwht6Ab7QUAuAYATQBYAIBPFm1BtdkZ0rmKSHmPrRZ+Cj4hPVdsRNhf9gFwg/RcsZEbtg+Au6Tnio0Ie5H6/4s8j0jPFRsp/zuq09JznbMivDr88hCr6Esb9jl1QdbQhhb70LzF9jzpfCoqghuDfx/AXuDI6m2vXBL4PqDZ/sOcpu7w3nYyVBFcIz4WAAAbj1//gnM84I3YMQA0SudUMSnvfW+5AAC4zwzXAOBIwAB6ADBTOqeKiuA2K+91kkOFsAQAewIE8M68ZnuLdD4Vl/KuGSzs2+GaJfpFHwApACwBQAoAKQCkAJACQAoAKQCkAJACwP0A+BoAtgxwb+jmhlZ72fwldnjP9UuKsG/0AfAz6bliI8K+ygeAu5Yk9/AMhwj6UuX/tsQPSs8WCxH0OHzQB8D10rPFQgQ9Aj/jA+BZ6dkiJ0IdqbwbfN3TFf2fF/Z7xcH/NmS0oF8O8pzwQVpQR9um3Ejp4wu9lPeMQanXld2HQZpv3+38oIR9gPve0C9JH1/oRaBHy9yQZTp2OXPXdeZPlvDaykPSxxd6EeiRMgGcvHjusskA+F0JAF6WPr7Qi0BX4RNlQtjavrO7GQC9g7w3tE36+EIv5T1ls0x5L/TYVuCXigB4a3R13Ufa087DADgAgAMAOACAXwBgf98bs1pZhOP1dEvQIugZ+I0iEP6IJ/b7t251na28W1vC+1zXuSTl3fj1kwG+in6DP4+vwd/APcp7u9bj0rNHRoS5rsz1wf3dgc9Kzx0ZEWZNGfsE139RyS9rBCvl/VZkqQCSW1iClvJeBlLKDcDupctJ0vNGTsr7NaXDJQDYKT1rZKW8p3EGejGI24CukJ4zsurr+XsGAPBV6RkjL+VdqPG70WsHfo/0fLGQ8h6J/bbyzh/l8X0q+W354ZdKLtAnSpQoUaJEicrRfwFj5g/5zsKE0wAAAABJRU5ErkJggg==",ha=({sseEndpoint:s,setSseEndpoint:p,isConnected:d})=>{const[b,O]=Q.useState(!1),[A,C]=Q.useState(s);Q.useEffect(()=>{if(typeof window<"u"){const T=localStorage.getItem("sseEndpoint");!s&&T&&(C(T),p(T))}},[s,p]);const E=()=>{typeof window<"u"&&localStorage.setItem("sseEndpoint",A),p(A),O(!1)};return y.jsxs("div",{className:"fixed bottom-0 left-0 w-full",children:[y.jsxs("div",{className:"flex items-center justify-between bg-gray-200 px-4 py-2 w-full cursor-pointer select-none",onClick:()=>O(T=>!T),children:[y.jsx("div",{className:"flex items-center gap-4",children:y.jsxs("span",{className:`px-2 py-1 rounded-full text-xs font-semibold flex items-center ${d?"bg-green-500 text-white":"bg-red-500"}`,children:[y.jsx("span",{className:`w-2 h-2 rounded-full mr-1 ${d?"bg-green-800":"bg-red-800"}`}),d?"Connected":"Disconnected"]})}),y.jsxs("a",{href:"https://github.com/thim81/inspectr",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2",children:[y.jsx("img",{src:da,alt:"Inspectr Logo",className:"h-6"}),y.jsx("span",{className:"text-gray-700 font-semibold text-sm",children:"Inspectr"})]})]}),y.jsx("div",{className:`bg-gray-100 border-t border-gray-300 transition-all duration-300 overflow-hidden ${b?"max-h-40 opacity-100 py-4":"max-h-0 opacity-0 py-0"}`,children:y.jsxs("div",{className:"px-6",children:[y.jsxs("div",{className:"grid grid-cols-2 gap-4 items-center",children:[y.jsx("div",{children:y.jsx("h2",{className:"text-lg font-semibold text-gray-800 mb-4",children:"Configuration"})}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("label",{className:"text-gray-700 font-semibold whitespace-nowrap",children:"SSE Endpoint:"}),y.jsx("input",{type:"text",value:A,onChange:T=>C(T.target.value),className:"border p-2 rounded flex-1 bg-white",placeholder:"Enter SSE Endpoint..."})]})]}),y.jsx("div",{className:"flex justify-end mt-4",children:y.jsx("button",{onClick:E,className:"bg-green-600 text-white px-4 py-2 rounded-md",children:"Apply"})})]})})]})};class pa{constructor(){this.db=new gn("InspectrDB"),this.db.version(1).stores({events:"id, time, method, statusCode, path, latency, server"})}transformEvent(p){var d;const{id:b,time:O,data:A}=p;return{id:b,time:O,method:A.method,url:A.url,server:A.server,path:A.path,clientIp:A.clientIp,latency:A.latency,statusCode:(d=A.response)==null?void 0:d.statusCode,raw:p}}async upsertEvent(p){const d=this.transformEvent(p);return await this.db.events.put(d)}async deleteEvent(p){return await this.db.events.delete(p)}async getEvent(p){return await this.db.events.get(p)}async queryEvents(p={}){const{filters:d={},sort:b={field:"time",order:"desc"},page:O=1,pageSize:A=20}=p;await this.db.events.count();let C=this.db.events.toCollection();if(await C.toArray(),d.timestampRange){let M=new Date;if(d.timestampRange==="24H")M.setHours(M.getHours()-24);else if(d.timestampRange==="48H")M.setHours(M.getHours()-48);else if(d.timestampRange==="week")M.setDate(M.getDate()-7);else if(d.timestampRange==="month")M.setMonth(M.getMonth()-1);else if(d.timestampRange.start&&d.timestampRange.end){const ie=new Date(d.timestampRange.start),pe=new Date(d.timestampRange.end);C=C.filter(ae=>{const ge=new Date(ae.time);return ge>=ie&&ge<=pe})}["24H","48H","week","month"].includes(d.timestampRange)&&(C=C.filter(ie=>new Date(ie.time)>=M))}d.status!==void 0&&d?.status.length>2&&(C=C.filter(M=>Number(M.statusCode)===Number(d.status))),d.method&&(C=C.filter(M=>M.method.toLowerCase()===d.method.toLowerCase())),d.path&&(C=C.filter(M=>M.path.includes(d.path))),d.durationMin&&(C=C.filter(M=>Number(M.latency)>=Number(d.durationMin))),d.durationMax&&(C=C.filter(M=>Number(M.latency)<=Number(d.durationMax))),d.host&&(C=C.filter(M=>M.server.toLowerCase().includes(d.host.toLowerCase())));let E;if(typeof C.orderBy=="function")try{E=C.orderBy(b.field),b.order==="desc"&&(E=E.reverse())}catch(M){console.error("[EventDB] orderBy error, fallback sorting:",M),E=(await C.toArray()).sort((ie,pe)=>{const ae=b.field;return ie[ae]<pe[ae]?b.order==="asc"?-1:1:ie[ae]>pe[ae]?b.order==="asc"?1:-1:0})}else E=(await C.toArray()).sort((M,ie)=>{const pe=b.field;return M[pe]<ie[pe]?b.order==="asc"?-1:1:M[pe]>ie[pe]?b.order==="asc"?1:-1:0});let T;Array.isArray(E)?T=E:T=await E.toArray();const L=(O-1)*A;let z;return Array.isArray(E)?z=T.slice(L,L+A):typeof E.offset=="function"?z=await E.offset(L).limit(A).toArray():z=[],z.map(M=>({id:M.id,...M.raw.data}))}async clearEvents(){return await this.db.events.clear()}}const Rt=new pa,Aa=({sseEndpoint:s})=>{const[p,d]=Q.useState(null),[b,O]=Q.useState("request"),[A,C]=Q.useState("/api/sse"),[E,T]=Q.useState(!1),L=100,[z,M]=Q.useState(1),[ie,pe]=Q.useState("time"),[ae,ge]=Q.useState("desc"),[Ce,Ie]=Q.useState({}),re=Jr(()=>Rt.queryEvents({sort:{field:ie,order:ae},filters:Ce,page:z,pageSize:L}),[z,ie,ae,Ce]),be=Jr(()=>Rt.db.events.count(),[]),Ae=be?Math.ceil(be/L):1;Q.useEffect(()=>{if(typeof window<"u"){const V=localStorage.getItem("sseEndpoint");!s&&V&&C(V)}},[s]),Q.useEffect(()=>{const V=()=>`req-${Math.random().toString(36).substr(2,9)}`,_e=new EventSource(A);return console.log(`Inspectr EventSource created with URL: ${A}`),_e.onopen=()=>{console.log("SSE Inspectr connection opened"),T(!0)},_e.onmessage=fe=>{try{const Y=JSON.parse(fe.data);Y.id||(Y.id=V()),Rt.upsertEvent(Y).catch(qe=>console.error("Error saving event to DB:",qe))}catch(Y){console.error("Error parsing SSE Inspectr data:",Y)}},_e.onerror=fe=>{console.error("SSE Inspectr error:",fe),T(!1)},()=>{console.log("Closing Inspectr EventSource"),_e.close(),T(!1)}},[A]),Q.useEffect(()=>{!p&&re&&re.length>0&&d(re[0])},[re,p]);const le=()=>{d(null),Rt.clearEvents().catch(V=>console.error("Error clearing events from DB:",V))},te=V=>{p&&(p.id||"")===V&&d(null),Rt.deleteEvent(V).catch(_e=>console.error("Error deleting event from DB:",_e))};return y.jsxs("div",{className:"flex flex-col h-screen",children:[y.jsxs("div",{className:"flex flex-grow",children:[y.jsx("div",{className:"w-1/3 border-r border-gray-300 overflow-y-auto",children:y.jsx(ni,{requests:re||[],onSelect:d,onRemove:te,clearRequests:le,selectedRequest:p,currentPage:z,totalPages:Ae,totalCount:be||0,onPageChange:M,sortField:ie,sortDirection:ae,filters:Ce,setSortField:pe,setSortDirection:ge,setFilters:Ie})}),y.jsx("div",{className:"w-2/3 p-4",children:y.jsx(fa,{request:p,currentTab:b,setCurrentTab:O})})]}),y.jsx(ha,{sseEndpoint:A,setSseEndpoint:C,isConnected:E})]})};export{Aa as InspectrApp};