@graphql-hive/laboratory
Version:
[Hive](https://the-guild.dev/graphql/hive) is a fully open-source schema registry, analytics, metrics and gateway for [GraphQL federation](https://the-guild.dev/graphql/hive/federation) and other GraphQL APIs.
38,908 lines • 1.74 MB
JavaScript
import { $ as e, $t as t, A as n, An as r, At as i, B as a, Bt as o, C as s, Cn as c, Ct as l, D as u, Dn as d, Dt as f, E as p, En as m, Et as h, F as g, Ft as _, G as v, Gt as y, Ht as b, I as x, It as S, J as C, Jt as w, K as T, Kt as E, L as D, Lt as O, M as k, Mt as A, N as ee, Nt as j, O as te, On as M, Ot as ne, P as N, Pt as re, Q as ie, Qt as ae, R as oe, S as se, Sn as ce, St as le, T as ue, Tn as P, Tt as de, Ut as fe, Vt as pe, W as me, Wt as he, X as ge, Xt as _e, Y as ve, Z as ye, Zt as be, _ as xe, _n as Se, _t as Ce, a as we, an as Te, at as Ee, b as De, bn as Oe, bt as ke, c as Ae, cn as je, ct as Me, d as Ne, dn as Pe, dt as Fe, en as Ie, et as Le, f as Re, fn as ze, ft as Be, g as Ve, gn as He, gt as Ue, h as We, hn as Ge, ht as Ke, i as qe, in as Je, it as Ye, j as Xe, jt as Ze, k as Qe, kn as $e, kt as et, l as tt, ln as nt, lt as rt, m as it, mn as at, mt as ot, n as st, nn as ct, nt as lt, o as ut, on as dt, ot as ft, p as pt, pn as mt, pt as ht, q as gt, rn as _t, rt as vt, s as yt, sn as bt, st as xt, t as F, tn as St, tt as Ct, u as wt, un as Tt, ut as Et, v as Dt, vn as Ot, vt as kt, w as At, wn as jt, wt as Mt, x as Nt, xn as Pt, xt as Ft, y as It, yn as Lt, yt as Rt, z as zt, zt as Bt } from "./monaco-editor-9vzaiziT.js";
import { Gu as Vt, Ku as Ht, Uu as Ut, Wu as Wt, a as Gt, c as Kt, d as qt, f as Jt, h as Yt, i as Xt, l as Zt, m as Qt, n as $t, o as en, p as tn, r as nn, s as rn, t as an, u as on } from "./editor.api-DX-lPANk.js";
import "./monaco.contribution-Bw1EXBxx.js";
import "./monaco.contribution-DBdSHkPx.js";
import sn from "react-dom/client";
import * as I from "react";
import L, { Fragment as cn, cloneElement as ln, createContext as un, forwardRef as dn, isValidElement as fn, memo as pn, useCallback as R, useContext as mn, useDeferredValue as hn, useEffect as z, useId as gn, useImperativeHandle as _n, useInsertionEffect as vn, useLayoutEffect as yn, useMemo as B, useReducer as bn, useRef as V, useState as H, useSyncExternalStore as xn } from "react";
import * as Sn from "react-dom";
import Cn, { createPortal as wn, unstable_batchedUpdates as Tn } from "react-dom";
import { AlignLeftIcon as En, BookOpenIcon as Dn, BookmarkIcon as On, Box as kn, BoxIcon as An, Boxes as jn, CheckIcon as Mn, ChevronDownIcon as Nn, ChevronLeftIcon as Pn, ChevronUpIcon as Fn, CircleCheckIcon as In, CirclePlus as Ln, CircleXIcon as Rn, ClockIcon as zn, CopyMinusIcon as Bn, CuboidIcon as Vn, FileIcon as Hn, FilePlus2Icon as Un, FileTextIcon as Wn, FlaskConicalIcon as Gn, FolderClockIcon as Kn, FolderIcon as qn, FolderOpenIcon as Jn, FolderPlusIcon as Yn, FoldersIcon as Xn, GitForkIcon as Zn, GlobeIcon as Qn, GripVerticalIcon as $n, HistoryIcon as er, InfoIcon as tr, Layers2Icon as nr, ListOrderedIcon as rr, ListTreeIcon as ir, Loader2Icon as ar, LockIcon as or, MaximizeIcon as sr, MinimizeIcon as cr, MoreHorizontalIcon as lr, NetworkIcon as ur, OctagonXIcon as dr, PanelLeftCloseIcon as fr, PanelLeftOpenIcon as pr, PencilIcon as mr, PlayIcon as hr, PowerIcon as U, PowerOffIcon as gr, RefreshCcwIcon as _r, RefreshCwIcon as vr, ScrollTextIcon as yr, SearchIcon as br, ServerIcon as xr, SettingsIcon as Sr, SquareIcon as Cr, SquarePenIcon as wr, SquareTerminal as Tr, TextAlignStartIcon as Er, Trash2Icon as Dr, TrashIcon as Or, TriangleAlertIcon as kr, UnlinkIcon as Ar, XIcon as jr, ZoomInIcon as Mr, ZoomOutIcon as Nr } from "lucide-react";
import * as Pr from "zod";
import { z as W } from "zod";
import { useForm as Fr } from "@tanstack/react-form";
import { createClient as Ir } from "graphql-ws";
import { format as Lr } from "date-fns";
import { compressToEncodedURIComponent as Rr, decompressFromEncodedURIComponent as zr } from "lz-string";
import { Fragment as Br, jsx as G, jsxs as K } from "react/jsx-runtime";
import { __assign as Vr, __rest as Hr, __spreadArray as Ur } from "tslib";
// src/index.css?inline
var Wr = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-content:\"\";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-orange-400:oklch(75% .183 55.934);--color-amber-400:oklch(82.8% .189 84.429);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-lime-400:oklch(84.1% .238 128.85);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-teal-400:oklch(77.7% .152 181.912);--color-blue-400:oklch(70.7% .165 254.624);--color-indigo-400:oklch(67.3% .182 276.935);--color-pink-500:oklch(65.6% .241 354.308);--color-rose-400:oklch(71.2% .194 13.428);--color-gray-400:oklch(70.7% .022 261.325);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--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:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-widest:.1em;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-xs:.125rem;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-accent:hsl(var(--accent));--color-destructive:hsl(var(--destructive));--color-ring:hsl(var(--ring))}}@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,-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){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{*{--tw-border-style:solid;--tw-translate-x:0;--tw-translate-y:0;outline-color:hsl(var(--ring))}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, hsl(var(--ring)) 50%, transparent)}}*,:after,:before,::backdrop{border:0 solid hsl(var(--border))}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing) * 4)}.top-\\[50\\%\\]{top:50%}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-5{left:calc(var(--spacing) * 5)}.left-\\[50\\%\\]{left:50%}.left-full{left:100%}.-z-10{z-index:calc(10 * -1)}.-z-20{z-index:calc(20 * -1)}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-100{z-index:100}.z-150{z-index:150}.z-200{z-index:200}.order-first{order:-9999}.order-last{order:9999}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0\\!{margin:0!important}.-mx-0\\.5{margin-inline:calc(var(--spacing) * -.5)}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-auto{margin-inline:auto}.-my-2{margin-block:calc(var(--spacing) * -2)}.my-1{margin-block:var(--spacing)}.-mt-2{margin-top:calc(var(--spacing) * -2)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-auto{margin-top:auto}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-px{margin-bottom:1px}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-full{width:100%;height:100%}.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-6\\!{height:calc(var(--spacing) * 6)!important}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-64{height:calc(var(--spacing) * 64)}.h-96{height:calc(var(--spacing) * 96)}.h-\\[1\\.15rem\\]{height:1.15rem}.h-\\[49\\.5px\\]{height:49.5px}.h-\\[50px\\]{height:50px}.h-\\[calc\\(100\\%-1px\\)\\]{height:calc(100% - 1px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\\(--radix-context-menu-content-available-height\\){max-height:var(--radix-context-menu-content-available-height)}.max-h-150{max-height:calc(var(--spacing) * 150)}.max-h-\\[300px\\]{max-height:300px}.max-h-\\[var\\(--radix-select-content-available-height\\)\\]{max-height:var(--radix-select-content-available-height)}.min-h-16{min-height:calc(var(--spacing) * 16)}.\\!w-8{width:calc(var(--spacing) * 8)!important}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-12{width:calc(var(--spacing) * 12)}.w-56{width:calc(var(--spacing) * 56)}.w-72{width:calc(var(--spacing) * 72)}.w-96{width:calc(var(--spacing) * 96)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-2xl\\!{max-width:var(--container-2xl)!important}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:0}.min-w-6{min-width:calc(var(--spacing) * 6)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-10{min-width:calc(var(--spacing) * 10)}.min-w-72{min-width:calc(var(--spacing) * 72)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-\\(--radix-context-menu-content-transform-origin\\){transform-origin:var(--radix-context-menu-content-transform-origin)}.origin-\\[var\\(--radix-dropdown-menu-content-transform-origin\\)\\]{transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\\[var\\(--radix-select-content-transform-origin\\)\\]{transform-origin:var(--radix-select-content-transform-origin)}.origin-\\[var\\(--radix-tooltip-content-transform-origin\\)\\]{transform-origin:var(--radix-tooltip-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\\[dash_500ms_linear_infinite\\]{animation:.5s linear infinite dash}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-spin{animation:var(--animate-spin)}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:var(--spacing)}.scroll-py-1{scroll-padding-block:var(--spacing)}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\\[1fr_auto\\]{grid-template-columns:1fr auto}.grid-cols-\\[1fr_auto_auto\\]{grid-template-columns:1fr auto auto}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.grid-rows-\\[auto_1fr\\]{grid-template-rows:auto 1fr}.grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}.grid-rows-\\[auto_auto_1fr\\]{grid-template-rows:auto auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0{gap:0}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\\[--spacing\\(var\\(--gap\\)\\)\\]{gap:calc(var(--spacing) * var(--gap))}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[calc\\(var\\(--radius\\)-5px\\)\\]{border-radius:calc(var(--radius) - 5px)}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.\\!rounded-l-none{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.\\!rounded-l-sm{border-top-left-radius:calc(var(--radius) - 4px)!important;border-bottom-left-radius:calc(var(--radius) - 4px)!important}.\\!rounded-r-none{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.\\!rounded-r-sm{border-top-right-radius:calc(var(--radius) - 4px)!important;border-bottom-right-radius:calc(var(--radius) - 4px)!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-border{border-color:hsl(var(--border))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.border-l-transparent{border-left-color:#0000}.\\!bg-accent\\/50{background-color:hsl(var(--accent))!important}@supports (color:color-mix(in lab, red, red)){.\\!bg-accent\\/50{background-color:color-mix(in oklab, hsl(var(--accent)) 50%, transparent)!important}}.\\!bg-destructive\\/60{background-color:hsl(var(--destructive))!important}@supports (color:color-mix(in lab, red, red)){.\\!bg-destructive\\/60{background-color:color-mix(in oklab, hsl(var(--destructive)) 60%, transparent)!important}}.bg-accent\\/50{background-color:hsl(var(--accent))}@supports (color:color-mix(in lab, red, red)){.bg-accent\\/50{background-color:color-mix(in oklab, hsl(var(--accent)) 50%, transparent)}}.bg-background{background-color:hsl(var(--background))}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive\\/60{background-color:hsl(var(--destructive))}@supports (color:color-mix(in lab, red, red)){.bg-destructive\\/60{background-color:color-mix(in oklab, hsl(var(--destructive)) 60%, transparent)}}.bg-foreground{background-color:hsl(var(--foreground))}.bg-green-400\\/10{background-color:#05df721a}@supports (color:color-mix(in lab, red, red)){.bg-green-400\\/10{background-color:color-mix(in oklab, var(--color-green-400) 10%, transparent)}}.bg-input,.bg-input\\/30{background-color:hsl(var(--input))}@supports (color:color-mix(in lab, red, red)){.bg-input\\/30{background-color:color-mix(in oklab, hsl(var(--input)) 30%, transparent)}}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary,.bg-primary\\/10{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab, red, red)){.bg-primary\\/10{background-color:color-mix(in oklab, hsl(var(--primary)) 10%, transparent)}}.bg-red-400\\/10{background-color:#ff65681a}@supports (color:color-mix(in lab, red, red)){.bg-red-400\\/10{background-color:color-mix(in oklab, var(--color-red-400) 10%, transparent)}}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-\\[radial-gradient\\(hsl\\(var\\(--border\\)\\)_1px\\,transparent_1px\\)\\]{background-image:radial-gradient(hsl(var(--border)) 1px,transparent 1px)}.bg-size-\\[16px_16px\\]{background-size:16px 16px}.fill-current{fill:currentColor}.fill-foreground{fill:hsl(var(--foreground))}.fill-none{fill:none}.stroke-border{stroke:hsl(var(--border))}.stroke-2{stroke-width:2px}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\!{padding:var(--spacing)!important}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-6{padding:calc(var(--spacing) * 6)}.p-\\[3px\\]{padding:3px}.p-px{padding:1px}.\\!px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)!important}.px-0\\!{padding-inline:0!important}.px-0\\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-7{padding-inline:calc(var(--spacing) * 7)}.py-0{padding-block:0}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pr-0{padding-right:0}.pr-0\\!{padding-right:0!important}.pr-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-0{padding-bottom:0}.pb-1{padding-bottom:var(--spacing)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.\\!pl-1\\.5{padding-left:calc(var(--spacing) * 1.5)!important}.pl-1{padding-left:var(--spacing)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-8{padding-left:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.align-\\[-2px\\]{vertical-align:-2px}.font-mono{font-family:var(--font-mono)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\\/relaxed{font-size:var(--text-sm);line-height:var(--leading-relaxed)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.\\!text-white{color:var(--color-white)!important}.text-amber-400{color:var(--color-amber-400)}.text-background{color:hsl(var(--background))}.text-blue-400{color:var(--color-blue-400)}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-foreground{color:hsl(var(--foreground))}.text-gray-400{color:var(--color-gray-400)}.text-green-400{color:var(--color-green-400)}.text-green-500{color:var(--color-green-500)}.text-indigo-400{color:var(--color-indigo-400)}.text-lime-400{color:var(--color-lime-400)}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\\!{color:hsl(var(--muted-foreground))!important}.text-orange-400{color:var(--color-orange-400)}.text-pink-500{color:var(--color-pink-500)}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-rose-400{color:var(--color-rose-400)}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-teal-400{color:var(--color-teal-400)}.text-white{color:var(--color-white)}.text-yellow-400{color:var(--color-yellow-400)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.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-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;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)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-ring\\/50{--tw-ring-color:hsl(var(--ring))}@supports (color:color-mix(in lab, red, red)){.ring-ring\\/50{--tw-ring-color:color-mix(in oklab, hsl(var(--ring)) 50%, transparent)}}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.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-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;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))}.transition-none{transition-property:none}.duration-200{--tw-duration:.2s;transition-duration:.2s}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.\\[stroke-dasharray\\:12_8\\]{stroke-dasharray:12 8}.paused{animation-play-state:paused}.running{animation-play-state:running}:is(.\\*\\:border-b>*){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}:is(.\\*\\:border-dashed>*){--tw-border-style:dashed;border-style:dashed}:is(.\\*\\:border-border>*){border-color:hsl(var(--border))}:is(.\\*\\:pb-2>*){padding-bottom:calc(var(--spacing) * 2)}@media (hover:hover){.group-hover\\:bg-accent\\/50:is(:where(.group):hover *){background-color:hsl(var(--accent))}@supports (color:color-mix(in lab, red, red)){.group-hover\\:bg-accent\\/50:is(:where(.group):hover *){background-color:color-mix(in oklab, hsl(var(--accent)) 50%, transparent)}}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-has-\\[\\[data-orientation\\=horizontal\\]\\]\\/field\\:text-balance:is(:where(.group\\/field):has([data-orientation=horizontal]) *){text-wrap:balance}.group-has-\\[\\>input\\]\\/input-group\\:pt-2\\.5:is(:where(.group\\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2.5)}.group-has-\\[\\>input\\]\\/input-group\\:pb-2\\.5:is(:where(.group\\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2.5)}.group-data-\\[disabled\\=true\\]\\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\\[disabled\\=true\\]\\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\\[disabled\\=true\\]\\/field\\:opacity-50:is(:where(.group\\/field)[data-disabled=true] *),.group-data-\\[disabled\\=true\\]\\/input-group\\:opacity-50:is(:where(.group\\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\\[variant\\=outline\\]\\/field-group\\:-mb-2:is(:where(.group\\/field-group)[data-variant=outline] *){margin-bottom:calc(var(--spacing) * -2)}.peer-disabled\\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.selection\\:bg-primary ::selection{background-color:hsl(var(--primary))}.selection\\:bg-primary::selection{background-color:hsl(var(--primary))}.selection\\:text-primary-foreground ::selection{color:hsl(var(--primary-foreground))}.selection\\:text-primary-foreground::selection{color:hsl(var(--primary-foreground))}.file\\:inline-flex::file-selector-button{display:inline-flex}.file\\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-y-0:after{content:var(--tw-content);inset-block:0}.after\\:left-1\\/2:after{content:var(--tw-content);left:50%}.after\\:w-1:after{content:var(--tw-content);width:var(--spacing)}.after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.last\\:mt-0:last-child{margin-top:0}:is(.\\*\\:last\\:border-b-0>*):last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}:is(.\\*\\:last\\:pb-0>*):last-child{padding-bottom:0}.empty\\:hidden:empty{display:none}.focus-within\\:border-ring:focus-within{border-color:hsl(var(--ring))}.focus-within\\:ring-\\[3px\\]:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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-within\\:ring-ring\\/50:focus-within{--tw-ring-color:hsl(var(--ring))}@supports (color:color-mix(in lab, red, red)){.focus-within\\:ring-ring\\/50:focus-within{--tw-ring-color:color-mix(in oklab, hsl(var(--ring)) 50%, transparent)}}@media (hover:hover){.hover\\:bg-accent:hover,.hover\\:bg-accent\\/50:hover{background-color:hsl(var(--accent))}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, hsl(var(--accent)) 50%, transparent)}}.hover\\:bg-input\\/50:hover{background-color:hsl(var(--input))}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-input\\/50:hover{background-color:color-mix(in oklab, hsl(var(--input)) 50%, transparent)}}.hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab, hsl(var(--primary)) 90%, transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary))}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab, hsl(var(--secondary)) 80%, transparent)}}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-destructive:hover{color:hsl(var(--destructive))}.hover\\:text-foreground:hover{color:hsl(var(--foreground))}.hover\\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\\:text-primary:hover{color:hsl(var(--primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-100:hover{opacity:1}.hover\\:ring-4:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + 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\\:z-10:focus{z-index:10}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.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-ring:focus{--tw-ring-color:hsl(var(--ring))}.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-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:z-10:focus-visible{z-index:10}.focus-visible\\:border-ring:focus-visible{border-color:hsl(var(--ring))}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + 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-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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-visible\\:ring-destructive\\/40:focus-visible{--tw-ring-color:hsl(var(--destructive))}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-destructive\\/40:focus-visible{--tw-ring-color:color-mix(in oklab, hsl(var(--destructive)) 40%, transparent)}}.focus-visible\\:ring-ring:focus-visible,.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:hsl(var(--ring))}@supports (color:color-mix(in lab, red, red)){.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab, hsl(var(--ring)) 50%, transparent)}}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-ring:focus-visible{outline-color:hsl(var(--ring))}:is(.\\*\\:focus-visible\\:relative>*):focus-visible{position:relative}:is(.\\*\\:focus-visible\\:z-10>*):focus-visible{z-index:10}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-\\[\\[data-slot\\=input-group-control\\]\\:focus-visible\\]\\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:hsl(var(--ring))}.has-\\[\\[data-slot\\=input-group-control\\]\\:focus-visible\\]\\:ring-\\[3px\\]:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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)}.has-\\[\\[data-slot\\=input-group-control\\]\\:focus-visible\\]\\:ring-ring\\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:hsl(var(--ring))}@supports (color:color-mix(in lab, red, red)){.has-\\[\\[data-slot\\=input-group-control\\]\\:focus-visible\\]\\:ring-ring\\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, hsl(var(--ring)) 50%, transparent)}}.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:border-destructive:has([data-slot][aria-invalid=true]){border-color:hsl(var(--destructive))}.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:hsl(var(--destructive))}@supports (color:color-mix(in lab, red, red)){.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, hsl(var(--destructive)) 20%, transparent)}}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:h-auto:has(>[data-align=block-end]){height:auto}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:h-auto:has(>[data-align=block-start]){height:auto}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\\[\\>\\[data-slot\\=button-group\\]\\]\\:gap-2:has(>[data-slot=button-group]){gap:calc(var(--spacing) * 2)}.has-\\[\\>\\[data-slot\\=card-action\\]\\]\\:grid-cols-\\[1fr_auto\\]:has(>[data-slot=card-action]){grid-template-columns:1fr auto}.has-\\[\\>\\[data-slot\\=checkbox-group\\]\\]\\:gap-3:has(>[data-slot=checkbox-group]){gap:calc(var(--spacing) * 3)}.has-\\[\\>\\[data-slot\\=field-content\\]\\]\\:items-start:has(>[data-slot=field-content]){align-items:flex-start}.has-\\[\\>\\[data-slot\\=field\\]\\]\\:w-full:has(>[data-slot=field]){width:100%}.has-\\[\\>\\[data-slot\\=field\\]\\]\\:flex-col:has(>[data-slot=field]){flex-direction:column}.has-\\[\\>\\[data-slot\\=field\\]\\]\\:rounded-md:has(>[data-slot=field]){border-radius:calc(var(--radius) - 2px)}.has-\\[\\>\\[data-slot\\=field\\]\\]\\:border:has(>[data-slot=field]){border-style:var(--tw-border-style);border-width:1px}.has-\\[\\>\\[data-slot\\=radio-group\\]\\]\\:gap-3:has(>[data-slot=radio-group]){gap:calc(var(--spacing) * 3)}.has-\\[\\>\\[data-state\\=checked\\]\\]\\:border-primary:has(>[data-state=checked]){border-color:hsl(var(--primary))}.has-\\[\\>\\[data-state\\=checked\\]\\]\\:bg-primary\\/10:has(>[data-state=checked]){background-color:hsl(var(--primary))}@supports (color:color-mix(in lab, red, red)){.has-\\[\\>\\[data-state\\=checked\\]\\]\\:bg-primary\\/10:has(>[data-state=checked]){background-color:color-mix(in oklab, hsl(var(--primary)) 10%, transparent)}}.has-\\[\\>button\\]\\:mr-\\[-0\\.45rem\\]:has(>button){margin-right:-.45rem}.has-\\[\\>button\\]\\:ml-\\[-0\\.45rem\\]:has(>button){margin-left:-.45rem}.has-\\[\\>kbd\\]\\:mr-\\[-0\\.35rem\\]:has(>kbd){margin-right:-.35rem}.has-\\[\\>kbd\\]\\:ml-\\[-0\\.35rem\\]:has(>kbd){margin-left:-.35rem}.has-\\[\\>svg\\]\\:p-0:has(>svg){padding:0}.has-\\[\\>svg\\]\\:px-2:has(>svg){padding-inline:calc(var(--spacing) * 2)}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.has-\\[\\>textarea\\]\\:h-auto:has(>textarea){height:auto}.aria-invalid\\:border-destructive[aria-invalid=true]{border-color:hsl(var(--destructive))}.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:hsl(var(--destructive))}@supports (color:color-mix(in lab, red, red)){.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, hsl(var(--destructive)) 20%, transparent)}}.aria-invalid\\:ring-destructive\\/40[aria-invalid=true]{--tw-ring-color:hsl(var(--destructive))}@supports (color:color-mix(in lab, red, red)){.aria-invalid\\:ring-destructive\\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, hsl(var(--destructive)) 40%, transparent)}}.data-disabled\\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\\:opacity-50[data-disabled]{opacity:.5}.data-dragging\\:cursor-grabbing[data-dragging]{cursor:grabbing}.data-dragging\\:opacity-0[data-dragging]{opacity:0}.data-inset\\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-placeholder\\:text-muted-foreground[data-placeholder]{color:hsl(var(--muted-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\\[disabled\\=true\\]\\:opacity-50[data-disabled=true]{opacity:.5}.data-\\[invalid\\=true\\]\\:text-destructive[data-invalid=true]{color:hsl(var(--destructive))}.data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal]{height:calc(var(--spacing) * 1.5)}.data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal]{height:100%}.data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.data-\\[orientation\\=vertical\\]\\:h-auto[data-orientation=vertical]{height:auto}.data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.data-\\[orientation\\=vertical\\]\\:h-px[data-orientation=vertical]{height:1px}.data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical]{min-height:calc(var(--spacing) * 44)}.data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical]{width:calc(var(--spacing) * 1.5)}.data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical]{width:auto}.data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical]{width:100%}.data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical]{flex-direction:column}.data-\\[orientation\\=vertical\\]\\:after\\:left-0[data-orientation=vertical]:after{content:var(--tw-content);left:0}.data-\\[orientation\\=vertical\\]\\:after\\:h-1[data-orientation=vertical]:after{content:var(--tw-content);height:var(--spacing)}.data-\\[orientation\\=vertical\\]\\:after\\:w-full[data-orientation=vertical]:after{content:var(--tw-content);width:100%}.data-\\[orientation\\=vertical\\]\\:after\\:translate-x-0[data-orientation=vertical]:after{content:var(--tw-content);--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[orientation\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-orientation=vertical]:after{content:var(--tw-content);--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[selected\\=true\\]\\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\\[selected\\=true\\]\\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\\[size\\=default\\]\\:h-9[data-size=default]{height:calc(var(--spacing) * 9)}.data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:calc(var(--spacing) * 8)}.data-\\[slot\\=checkbox-group\\]\\:gap-3[data-slot=checkbox-group]{gap:calc(var(--spacing) * 3)}:is(.\\*\\*\\:data-\\[slot\\=command-input-wrapper\\]\\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing) * 12)}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing) * 2)}.data-\\[spacing\\=0\\]\\:rounded-none[data-spacing=\"0\"]{border-radius:0}.data-\\[spacing\\=0\\]\\:shadow-none[data-spacing=\"0\"]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\\[spacing\\=0\\]\\:first\\:rounded-l-md[data-spacing=\"0\"]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\\[spacing\\=0\\]\\:last\\:rounded-r-md[data-spacing=\"0\"]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\\[state\\=active\\]\\:border-input[data-state=active]{border-color:hsl(var(--input))}.data-\\[state\\=active\\]\\:bg-input\\/30[data-state=active]{background-color:hsl(var(--input))}@supports (color:color-mix(in lab, red, red)){.data-\\[state\\=active\\]\\:bg-input\\/30[data-state=active]{background-color:color-mix(in oklab, hsl(var(--input)) 30%, transparent)}}.data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\\[state\\=active\\]\\:shadow-sm[data-state=active]{--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)}.data-\\[state\\=checked\\]\\:translate-x-\\[calc\\(100\\%-2px\\)\\][data-state=checked]{--tw-translate-x:calc(100% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[state\\=checked\\]\\:border-primary[data-state=checked]{border-color:hsl(var(--primary))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\\[state\\=checked\\]\\:bg-primary-foreground[data-state=checked]{background-color:hsl(var(--primary-foreground))}.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=on\\]\\:bg-accent[data-state=on]{background-color:hsl(var(--accent))}.data-\\[state\\=on\\]\\:bg-transparent[data-state=on]{background-color:#0000}.data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[state\\=unchecked\\]\\:bg-foreground[data-state=unchecked]{background-color:hsl(var(--foreground))}.data-\\[state\\=unchecked\\]\\:bg-input\\/80[data-state=unchecked]{background-color:hsl(var(--input))}@supports (color:color-mix(in lab, red, red)){.data-\\[state\\=unchecked\\]\\:bg-input\\/80[data-state=unchecked]{background-color:color-mix(in oklab, hsl(var(--input)) 80%, transparent)}}.data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:hsl(var(--destructive))}.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20[data-variant=destructive]:focus{background-color:hsl(var(--destructive))}@supports (color:color-mix(in lab, red, red)){.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20[data-variant=destructive]:focus{background-color:color-mix(in oklab, hsl(var(--destructive)) 20%, transparent)}}.data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive]:focus{color:hsl(var(--destructive))}.data-\\[variant\\=label\\]\\:text-sm[data-variant=label]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.data-\\[variant\\=legend\\]\\:text-base[data-variant=legend]{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border-l-0[data-spacing=\"0\"][data-variant=outline]{border-left-style:var(--tw-border-style);border-left-width:0}.data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:first\\:border-l[data-spacing=\"0\"][data-variant=outline]:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\\[spacing\\=default\\]\\:data-\\[variant\\=outline\\]\\:shadow-xs[data-spacing=default][data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.nth-last-2\\:-mt-1:nth-last-child(2){margin-top:calc(var(--spacing) * -1)}@media (width>=40rem){.sm\\:max-w-\\[425px\\]{max-width:425px}.sm\\:max-w-lg{max-width:var(--container-lg)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:text-left{text-align:left}}@media (width>=48rem){.md\\:p-12{padding:calc(var(--spacing) * 12)}.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@container field-group (width>=28rem){.\\@md\\/field-group\\:flex-row{flex-direction:row}.\\@md\\/field-group\\:items-center{align-items:center}.\\@md\\/field-group\\:has-\\[\\>\\[data-slot\\=field-content\\]\\]\\:items-start:has(>[data-slot=field-content]){align-items:flex-start}}@media (prefers-color-scheme:dark){.dark\\:bg-input\\/30{background-color:hsl(var(--input))}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-input\\/30{background-color:color-mix(in oklab, hsl(var(--input)) 30%, transparent)}}.dark\\:bg-transparent{background-color:#0000}.dark\\:has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:hsl(var(--destructive))}@supports (color:color-mix(in lab, red, red)){.dark\\:has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/40:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, hsl(var(--destructive)) 40%, transparent)}}.dark\\:aria-invalid\\:ring-destructive\\/40[aria-invalid=true]{--tw-ring-color:hsl(var(--destructive))}@supports (color:color-mix(in lab, red, red)){.dark\\:aria-invalid\\:ring-destructive\\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, hsl(var(--destructive)) 40%, transparent)}}}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing) * 2)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing) * 1.5)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing) * 2)}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:size-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]{height:calc(var(--spacing) * 12)}.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing) * 2)}.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]{padding-block:calc(var(--spacing) * 3)}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:size-5 [cmdk-item] svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.\\[\\&_a\\]\\:text-primary a{color:hsl(var(--primary))}.\\[\\&_a\\]\\:underline a{text-decoration-line:underline}.\\[\\&_code\\]\\:rounded code{border-radius:.25rem}.\\[\\&_code\\]\\:bg-black\\/20 code{background-color:#0003}@supports (color:color-mix(in lab, red, red)){.\\[\\&_code\\]\\:bg-black\\/20 code{background-color:color-mix(in oklab, var(--color-black) 20%, transparent)}}.\\[\\&_code\\]\\:px-1 code{padding-inline:var(--spacing)}.\\[\\&_code\\]\\:py-0\\.5 code{padding-block:calc(var(--spacing) * .5)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-6 svg:not([class*=size-]){width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'text-\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*=text-]){color:hsl(var(--muted-foreground))}.\\[\\.border-b\\]\\:pb-3.border-b{padding-bottom:calc(var(--spacing) * 3)}.\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--spacing) * 6)}.\\[\\.border-t\\]\\:pt-3.border-t{padding-top:calc(var(--spacing) * 3)}.\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--spacing) * 6)}:is(.\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:is(.\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:is(.\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\\[state\\=on\\]\\:\\*\\:\\[svg\\]\\:fill-yellow-500[data-state=on]>*):is(svg){fill:var(--color-yellow-500)}:is(.data-\\[state\\=on\\]\\:\\*\\:\\[svg\\]\\:stroke-yellow-500[data-state=on]>*):is(svg){stroke:var(--color-yellow-500)}:is(.data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:text-destructive\\![data-variant=destructive]>*):is(svg){color:hsl(var(--destructive))!important}.\\[\\&\\>\\*\\]\\:w-full>*{width:100%}.\\[\\&\\>\\*\\]\\:data-\\[slot\\=field\\]\\:p-4>[data-slot=field]{padding:calc(var(--spacing) * 4)}@container field-group (width>=28rem){.\\@md\\/field-group\\:\\[\\&\\>\\*\\]\\:w-auto>*{width:auto}}.\\[\\&\\>\\*\\:not\\(\\:first-child\\)\\]\\:rounded-t-none>:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.\\[\\&\\>\\*\\:not\\(\\:first-child\\)\\]\\:rounded-l-none>:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.\\[\\&\\>\\*\\:not\\(\\:first-child\\)\\]\\:border-t-0>:not(:first-child){border-top-style:var(--tw-border-style);border-top-width:0}.\\[\\&\\>\\*\\:not\\(\\:first-child\\)\\]\\:border-l-0>:not(:first-child){border-left-style:var(--tw-border-style);border-left-width:0}.\\[\\&\\>\\*\\:not\\(\\:last-child\\)\\]\\:rounded-r-none>:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.\\[\\&\\>\\*\\:not\\(\\:last-child\\)\\]\\:rounded-b-none>:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0}.\\[\\&\\>\\.sr-only\\]\\:w-auto>.sr-only{width:auto}.\\[\\&\\>\\[data-slot\\=field-group\\]\\]\\:gap-4>[data-slot=field-group]{gap:calc(var(--spacing) * 4)}.\\[\\&\\>\\[data-slot\\=field-label\\]\\]\\:flex-auto>[data-slot=field-label]{flex:auto}@container field-group (width>=28rem){.\\@md\\/field-group\\:\\[\\&\\>\\[data-slot\\=field-label\\]\\]\\:flex-auto>[data-slot=field-label]{flex:auto}}.has-\\[select\\[aria-hidden\\=true\\]\\:last-child\\]\\:\\[\\&\\>\\[data-slot\\=select-trigger\\]\\:last-of-type\\]\\:rounded-r-md:has(:is(select[aria-hidden=true]:last-child))>[data-slot=select-trigger]:last-of-type{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\\[\\&\\>\\[data-slot\\=select-trigger\\]\\:not\\(\\[class\\*\\=\\'w-\\'\\]\\)\\]\\:w-fit>[data-slot=select-trigger]:not([class*=w-]){width:fit-content}:is(.has-\\[\\>\\[data-slot\\=field-content\\]\\]\\:\\[\\&\\>\\[role\\=checkbox\\]\\,\\[role\\=radio\\]\\]\\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.has-\\[\\>\\[data-slot\\=field-content\\]\\]\\:\\[\\&\\>\\[role\\=checkbox\\]\\,\\[role\\=radio\\]\\]\\:mt-px:has(>[data-slot=field-content]) [role=radio]){margin-top:1px}@container field-group (width>=28rem){:is(.\\@md\\/field-group\\:has-\\[\\>\\[data-slot\\=field-content\\]\\]\\:\\[\\&\\>\\[role\\=checkbox\\]\\,\\[role\\=radio\\]\\]\\:mt-px:has(>[data-slot=field-content])>[role=checkbox],.\\@md\\/field-group\\:has-\\[\\>\\[data-slot\\=field-content\\]\\]\\:\\[\\&\\>\\[role\\=checkbox\\]\\,\\[role\\=radio\\]\\]\\:mt-px:has(>[data-slot=field-content]) [role=radio]){margin-top:1px}}.\\[\\&\\>a\\]\\:underline>a{text-decoration-line:underline}.\\[\\&\\>a\\]\\:underline-offset-4>a{text-underline-offset:4px}.\\[\\&\\>a\\:hover\\]\\:text-primary>a:hover{color:hsl(var(--primary))}.\\[\\&\\>input\\]\\:flex-1>input{flex:1}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:\\[\\&\\>input\\]\\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:\\[\\&\\>input\\]\\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\\[\\>\\[data-align\\=inline-end\\]\\]\\:\\[\\&\\>input\\]\\:pr-2:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 2)}.has-\\[\\>\\[data-align\\=inline-start\\]\\]\\:\\[\\&\\>input\\]\\:pl-2:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 2)}.\\[\\&\\>kbd\\]\\:rounded-\\[calc\\(var\\(--radius\\)-5px\\)\\]>kbd{border-radius:calc(var(--radius) - 5px)}.\\[\\&\\>svg\\]\\:pointer-events-none>svg{pointer-events:none}.\\[\\&\\>svg\\]\\:size-3>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-3\\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4>svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&\\[data-orientation\\=vertical\\]\\>div\\]\\:rotate-90[data-orientation=vertical]>div{rotate:90deg}[data-variant=legend]+.\\[\\[data-variant\\=legend\\]\\+\\&\\]\\:-mt-1\\.5{margin-top:calc(var(--spacing) * -1.5)}@media (hover:hover){a.\\[a\\&\\]\\:hover\\:bg-accent:hover{background-color:hsl(var(--accent))}a.\\[a\\&\\]\\:hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive))}@supports (color:color-mix(in lab, red, red)){a.\\[a\\&\\]\\:hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab, hsl(var(--destructive)) 90%, transparent)}}a.\\[a\\&\\]\\:hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary))}@supports (color:color-mix(in lab, red, red)){a.\\[a\\&\\]\\:hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab, hsl(var(--primary)) 90%, transparent)}}a.\\[a\\&\\]\\:hover\\:bg-secondary\\/90:hover{background-color:hsl(var(--secondary))}@supports (color:color-mix(in lab, red, red)){a.\\[a\\&\\]\\:hover\\:bg-secondary\\/90:hover{background-color:color-mix(in oklab, hsl(var(--secondary)) 90%, transparent)}}a.\\[a\\&\\]\\:hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}}}@property --tw-animation-delay{syntax:\"*\";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:\"*\";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:\"*\";inherits:false}@property --tw-animation-fill-mode{syntax:\"*\";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:\"*\";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:\"*\";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:\"*\";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:\"*\";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:\"*\";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:\"*\";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:\"*\";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:\"*\";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:\"*\";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:\"*\";inherits:false;initial-value:0}:host,.hive-laboratory{width:100%;height:100%;display:block}.hive-laboratory .inactive-line{opacity:.5}.hive-laboratory{--color-neutral-1:0 0% 99%;--color-neutral-2:180 9% 97%;--color-neutral-3:210 7% 95%;--color-neutral-4:200 6% 92%;--color-neutral-5:210 6% 89%;--color-neutral-6:204 5% 79%;--color-neutral-7:197 4% 67%;--color-neutral-8:196 4% 51%;--color-neutral-9:193 9% 32%;--color-neutral-10:188 15% 21%;--color-neutral-11:188 19% 15%;--color-neutral-12:175 23% 10%;--color-accent:206 96% 35%;--color-ring:216 58% 49%;--color-destructive:357 96% 58%;--radius:var(--hive-laboratory-radius,.5rem);--background:var(--hive-laboratory-background,var(--color-neutral-2));--foreground:var(--hive-laboratory-foreground,var(--color-neutral-11));--muted:var(--hive-laboratory-muted,var(--color-neutral-3));--muted-foreground:var(--hive-laboratory-muted-foreground,var(--color-neutral-11));--popover:var(--hive-laboratory-popover,var(--color-neutral-3));--popover-foreground:var(--hive-laboratory-popover-foreground,var(--color-neutral-11));--card:var(--hive-laboratory-card,var(--color-neutral-1));--card-foreground:var(--hive-laboratory-card-foreground,var(--color-neutral-11));--border:var(--hive-laboratory-border,var(--color-neutral-5));--input:var(--hive-laboratory-input,var(--color-neutral-5));--primary:var(--hive-laboratory-primary,var(--color-accent));--primary-foreground:var(--hive-laboratory-primary-foreground,var(--color-neutral-1));--secondary:var(--hive-laboratory-secondary,var(--color-neutral-3));--secondary-foreground:var(--hive-laboratory-secondary-foreground,var(--color-neutral-8));--accent:var(--hive-laboratory-accent,var(--color-neutral-4));--accent-foreground:var(--hive-laboratory-accent-foreground,var(--color-neutral-11));--destructive:var(--hive-laboratory-destructive,var(--color-destructive));--destructive-foreground:var(--hive-laboratory-destructive-foreground,var(--color-neutral-1));--ring:var(--hive-laboratory-ring,var(--color-ring))}.hive-laboratory .monaco-editor{--vscode-focusBorder:transparent!important}.hive-laboratory.dark{--color-neutral-1:210 21% 5%;--color-neutral-2:210 16% 7%;--color-neutral-3:214 14% 10%;--color-neutral-4:210 13% 13%;--color-neutral-5:210 12% 16%;--color-neutral-6:210 11% 21%;--color-neutral-7:210 12% 27%;--color-neutral-8:210 11% 34%;--color-neutral-9:210 10% 43%;--color-neutral-10:213 9% 58%;--color-neutral-11:210 11% 75%;--color-neutral-12:204 14% 93%;--color-accent:48 100% 83%;--color-destructive:358.75 100% 70%;--radius:var(--hive-laboratory-radius,.5rem);--background:var(--hive-laboratory-background,var(--color-neutral-1));--foreground:var(--hive-laboratory-foreground,var(--color-neutral-11));--muted:var(--hive-laboratory-muted,var(--color-neutral-3));--muted-foreground:var(--hive-laboratory-muted-foreground,var(--color-neutral-11));--popover:var(--hive-laboratory-popover,var(--color-neutral-3));--popover-foreground:var(--hive-laboratory-popover-foreground,var(--color-neutral-11));--card:var(--hive-laboratory-card,var(--color-neutral-2));--card-foreground:var(--hive-laboratory-card-foreground,var(--color-neutral-11));--border:var(--hive-laboratory-border,var(--color-neutral-5));--input:var(--hive-laboratory-input,var(--color-neutral-5));--primary:var(--hive-laboratory-primary,var(--color-accent));--primary-foreground:var(--hive-laboratory-primary-foreground,var(--color-neutral-1));--secondary:var(--hive-laboratory-secondary,var(--color-neutral-3));--secondary-foreground:var(--hive-laboratory-secondary-foreground,var(--color-neutral-11));--accent:var(--hive-laboratory-accent,var(--color-neutral-6));--accent-foreground:var(--hive-laboratory-accent-foreground,var(--color-neutral-11));--destructive:var(--hive-laboratory-destructive,var(--color-destructive));--destructive-foreground:var(--hive-laboratory-destructive-foreground,var(--color-neutral-1));--ring:var(--hive-laboratory-ring,var(--color-ring))}@layer color{.hive-laboratory{background-color:hsl(var(--background));color:hsl(var(--foreground))}}@keyframes dash{to{stroke-dashoffset:-20px}}@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}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-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-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-content{syntax:\"*\";inherits:false;initial-value:\"\"}@keyframes spin{to{transform:rotate(360deg)}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}", Gr = "/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{align-items:center;width:100%;height:100%;margin:0 auto;padding:0;display:flex}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{cursor:pointer;justify-content:center;align-items:center;display:block;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{align-items:center;width:16px;height:16px;display:flex}.monaco-action-bar .action-label{border-radius:5px;padding:3px;font-size:11px;display:flex}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{color:var(--vscode-disabledForeground)}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #bbb;margin-left:.8em;margin-right:.8em;padding-top:1px;display:block}.monaco-action-bar .action-item .action-label.separator{cursor:default;background-color:#bbb;width:1px;min-width:1px;height:16px;padding:0;margin:5px 4px!important}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{flex:1;justify-content:center;align-items:center;min-width:60px;max-width:170px;margin-right:10px;display:flex;overflow:hidden}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{cursor:default;align-items:center;display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.monaco-aria-container{position:absolute;left:-999em}.monaco-text-button{border:1px solid var(--vscode-button-border,transparent);box-sizing:border-box;cursor:pointer;text-align:center;border-radius:2px;justify-content:center;align-items:center;width:100%;padding:4px;line-height:18px;display:flex}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{cursor:default;opacity:.4!important}.monaco-text-button .codicon{margin:0 .2em;color:inherit!important}.monaco-text-button.monaco-text-button-with-short-label{flex-flow:wrap;height:28px;padding:0 4px;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;width:0;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{font-style:inherit;justify-content:center;align-items:center;padding:4px 0;font-weight:400;display:flex}.monaco-button-dropdown{cursor:pointer;display:flex}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator,.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{cursor:default;padding:4px 0}.monaco-button-dropdown .monaco-button-dropdown-separator>div{width:1px;height:100%}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border,transparent);border-radius:0 2px 2px 0;align-items:center;display:flex;border-left-width:0!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{flex-direction:column;align-items:center;margin:4px 5px;display:flex}.monaco-description-button .monaco-button-description{padding:4px 20px;font-size:11px;font-style:italic}.monaco-description-button .monaco-button-description,.monaco-description-button .monaco-button-label{justify-content:center;align-items:center;display:flex}.monaco-description-button .monaco-button-description>.codicon,.monaco-description-button .monaco-button-label>.codicon{margin:0 .2em;color:inherit!important}.monaco-button-dropdown.default-colors>.monaco-button,.monaco-button.default-colors{background-color:var(--vscode-button-background);color:var(--vscode-button-foreground)}.monaco-button-dropdown.default-colors>.monaco-button:hover,.monaco-button.default-colors:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary,.monaco-button.default-colors.secondary{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover,.monaco-button.default-colors.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-bottom:1px solid var(--vscode-button-border);border-top:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}@font-face{font-display:block;font-family:codicon;src:url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI3T0tHAAABjAAAAGBjbWFwQ5s/ewAACSQAABreZ2x5ZvJtKHkAACekAAD3FGhlYWRYl6BTAAAA4AAAADZoaGVhAlsC+QAAALwAAAAkaG10eBxB//oAAAHsAAAHOGxvY2EFi8dWAAAkBAAAA55tYXhwAu8BgQAAARgAAAAgbmFtZZP3uUsAAR64AAAB+HBvc3RjGEbCAAEgsAAAGSQAAQAAASwAAAAAASz////+AS4AAQAAAAAAAAAAAAAAAAAAAc4AAQAAAAEAAFT7+XFfDzz1AAsBLAAAAAB8JbCAAAAAAHwlsID////9AS4BLQAAAAgAAgAAAAAAAAABAAABzgF1ABcAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAQBKwGQAAUAAADLANIAAAAqAMsA0gAAAJAADgBNAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAwOpg8QEBLAAAABsBRwADAAAAAQAAAAAAAAAAAAAAAAACAAAAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEs//8BLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLP//ASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEs//8BLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASz//wEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASz//wEsAAABLAAAASwAAAEs//8BLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAAAAABQAAAAMAAAAsAAAABAAABSYAAQAAAAAEIAADAAEAAAAsAAMACgAABSYABAP0AAAAEgAQAAMAAuqI6ozqx+rJ6wnrTuw08QH//wAA6mDqiuqP6snqzOsL61DxAf//AAAAAAAAAAAAAAAAAAAAAAABABIAYgBmANYA1gFQAdYDngAAAAMA8QFKAUcAtAE3AZUBJQFuAQ4BdABOAcMBYAFqAWkAkQA2ATAAhgDPAP4AQQGTAHkAFwG+AJsAiAFDAR0BFAEVAagAyQCmALwBoAGAA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tkAADrZAAAAYoAAOtlAADrZQAAAYwAAOtmAADrZgAAAY4AAOtnAADrZwAAAZcAAOtoAADraAAAAZgAAOtpAADraQAAAaEAAOtqAADragAAAaIAAOtrAADrawAAAaQAAOtsAADrbAAAAaYAAOttAADrbQAAAacAAOtuAADrbgAAAakAAOtvAADrbwAAAaoAAOtwAADrcAAAAasAAOtxAADrcQAAAawAAOtyAADrcgAAAa0AAOtzAADrcwAAAbEAAOt0AADrdAAAAbMAAOt1AADrdQAAAbQAAOt2AADrdgAAAbUAAOt3AADrdwAAAbgAAOt4AADreAAAAbkAAOt5AADreQAAAboAAOt6AADregAAAbwAAOt7AADrewAAAb0AAOt8AADrfAAAAcQAAOt9AADrfQAAAcUAAOt+AADrfgAAAcYAAOt/AADrfwAAAccAAOuAAADrgAAAAcgAAOuBAADrgQAAAcwAAOuCAADrggAAAc0AAOuDAADrgwAAAPQAAOuEAADrhAAAAPUAAOuFAADrhQAAAPcAAOuGAADrhgAAAPgAAOuHAADrhwAAAGAAAOuIAADriAAAAGEAAOuJAADriQAAAHAAAOuKAADrigAAADoAAOuLAADriwAAAHEAAOuMAADrjAAAAGQAAOuNAADrjQAAAY8AAOuOAADrjgAAAG8AAOuPAADrjwAAAHMAAOuQAADrkAAAAG0AAOuRAADrkQAAAFsAAOuSAADrkgAAACcAAOuTAADrkwAAACgAAOuUAADrlAAAAQkAAOuVAADrlQAAAI0AAOuWAADrlgAAAJIAAOuXAADrlwAAAMYAAOuYAADrmAAAAbIAAOuZAADrmQAAAAEAAOuaAADrmgAAABgAAOubAADrmwAAAGUAAOucAADrnAAAAO4AAOudAADrnQAAAR4AAOueAADrngAAAVUAAOufAADrnwAAAZIAAOugAADroAAAASoAAOuhAADroQAAALoAAOuiAADrogAAAWMAAOujAADrowAAAWIAAOukAADrpAAAASIAAOulAADrpQAAAXcAAOumAADrpgAAASsAAOunAADrpwAAATkAAOuoAADrqAAAAFoAAOupAADrqQAAAbsAAOuqAADrqgAAAEQAAOurAADrqwAAAQoAAOusAADrrAAAAI4AAOutAADrrQAAAMEAAOuuAADrrgAAAP8AAOuvAADrrwAAARoAAOuwAADrsAAAAToAAOuxAADrsQAAACoAAOuyAADrsgAAASkAAOuzAADrswAAASEAAOu0AADrtAAAADcAAOu1AADrtQAAADgAAOu2AADrtgAAAEoAAOu3AADrtwAAAZQAAOu4AADruAAAAbYAAOu5AADruQAAAbAAAOu6AADrugAAAa4AAOu7AADruwAAAa8AAOu8AADrvAAAALAAAOu9AADrvQAAAVMAAOu+AADrvgAAAVYAAOu/AADrvwAAARkAAOvAAADrwAAAAGwAAOvBAADrwQAAAckAAOvCAADrwgAAAcsAAOvDAADrwwAAAcoAAOvEAADrxAAAAZoAAOvFAADrxQAAAZsAAOvGAADrxgAAAZwAAOvHAADrxwAAAZ0AAOvIAADryAAAAZ4AAOvJAADryQAAAZ8AAOvKAADrygAAAZkAAOvLAADrywAAABEAAOvMAADrzAAAAFMAAOvNAADrzQAAASQAAOvOAADrzgAAAJ0AAOvPAADrzwAAAcIAAOvQAADr0AAAAGoAAOvRAADr0QAAANEAAOvSAADr0gAAAN0AAOvTAADr0wAAANwAAOvUAADr1AAAANsAAOvVAADr1QAAAFEAAOvWAADr1gAAAFAAAOvXAADr1wAAAE8AAOvYAADr2AAAABUAAOvZAADr2QAAANIAAOvaAADr2gAAAK8AAOvbAADr2wAAALEAAOvcAADr3AAAAFkAAOvdAADr3QAAAGgAAOveAADr3gAAAVgAAOvfAADr3wAAAKQAAOvgAADr4AAAAGYAAOvhAADr4QAAABYAAOviAADr4gAAAMIAAOvjAADr4wAAAMMAAOvkAADr5AAAAScAAOvlAADr5QAAACAAAOvmAADr5gAAACEAAOvnAADr5wAAAP0AAOvoAADr6AAAABQAAOvpAADr6QAAAbcAAOvqAADr6gAAARYAAOvrAADr6wAAAO0AAOvsAADr7AAAAN4AAOvtAADr7QAAAN8AAOvuAADr7gAAAOQAAOvvAADr7wAAAOIAAOvwAADr8AAAAOMAAOvxAADr8QAAAOYAAO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eXBlBnVubG9jawZ1bm11dGUKdW52ZXJpZmllZA52YXJpYWJsZS1ncm91cA92ZXJpZmllZC1maWxsZWQIdmVyaWZpZWQIdmVyc2lvbnMJdm0tYWN0aXZlCnZtLWNvbm5lY3QKdm0tb3V0bGluZQp2bS1ydW5uaW5nAnZtAnZyD3ZzY29kZS1pbnNpZGVycwZ2c2NvZGUEd2FuZAd3YXJuaW5nBXdhdGNoCndoaXRlc3BhY2UKd2hvbGUtd29yZAZ3aW5kb3cJd29yZC13cmFwEXdvcmtzcGFjZS10cnVzdGVkEXdvcmtzcGFjZS11bmtub3duE3dvcmtzcGFjZS11bnRydXN0ZWQHem9vbS1pbgh6b29tLW91dAAA)format(\"truetype\")}.codicon[class*=codicon-]{text-align:center;text-rendering:auto;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;user-select:none;font:16px/1 codicon;text-decoration:none;display:inline-block}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.codicon-modifier-spin{animation:1.5s steps(30,end) infinite codicon-spin}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.context-view{position:absolute}.context-view.fixed{all:initial;color:inherit;font-family:inherit;font-size:13px;position:fixed}.monaco-count-badge{box-sizing:border-box;text-align:center;border-radius:11px;min-width:18px;min-height:18px;padding:3px 6px;font-size:11px;font-weight:400;line-height:11px;display:inline-block}.monaco-count-badge.long{border-radius:2px;min-height:auto;padding:2px 3px;line-height:normal}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;justify-content:center;align-items:center;height:100%;display:flex}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{border-radius:5px;flex-direction:row;display:flex!important}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{margin-left:-3px;padding-left:0;padding-right:0;font-size:12px;line-height:16px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{width:100%;font-size:13px}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.hc-light .monaco-findInput.highlight-0 .controls,.monaco-findInput.highlight-0 .controls{animation:.1s linear monaco-findInput-highlight-0}.hc-light .monaco-findInput.highlight-1 .controls,.monaco-findInput.highlight-1 .controls{animation:.1s linear monaco-findInput-highlight-1}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:.1s linear monaco-findInput-highlight-dark-0}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:.1s linear monaco-findInput-highlight-dark-1}@keyframes monaco-findInput-highlight-0{0%{background:#fdff00cc}to{background:0 0}}@keyframes monaco-findInput-highlight-1{0%{background:#fdff00cc}99%{background:0 0}}@keyframes monaco-findInput-highlight-dark-0{0%{background:#ffffff70}to{background:0 0}}@keyframes monaco-findInput-highlight-dark-1{0%{background:#ffffff70}99%{background:0 0}}.monaco-hover{box-sizing:border-box;cursor:default;-webkit-user-select:text;user-select:text;white-space:var(--vscode-hover-whiteSpace,normal);line-height:1.5em;animation:.1s linear fadein;position:absolute;overflow:hidden}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:var(--vscode-hover-maxWidth,500px);word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6,.monaco-hover p,.monaco-hover ul{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0;border-right:0;height:1px;margin:4px -8px -4px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace,pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{padding:0 8px;font-style:italic}.monaco-hover .hover-row.status-bar .actions{width:100%;padding:0 8px;display:flex}.monaco-hover .hover-row.status-bar .actions .action-container{cursor:pointer;margin-right:16px}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .hover-row.status-bar .actions .action-container a{color:var(--vscode-textLink-foreground);-webkit-text-decoration:var(--text-link-decoration);text-decoration:var(--text-link-decoration)}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link,.monaco-hover .hover-contents a.code-link:hover{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:\"(\"}.monaco-hover .hover-contents a.code-link:after{content:\")\"}.monaco-hover .hover-contents a.code-link>span{color:var(--vscode-textLink-foreground);text-underline-position:under;border-bottom:1px solid #0000;text-decoration:underline}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span.codicon{margin-bottom:2px}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{cursor:default;opacity:.4;pointer-events:none}.monaco-icon-label{text-overflow:ellipsis;display:flex;overflow:hidden}.monaco-icon-label:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;background-position:0;background-repeat:no-repeat;background-size:16px;flex-shrink:0;width:16px;height:22px;padding-right:6px;display:inline-block;line-height:inherit!important}.monaco-icon-label-iconpath{width:16px;height:16px;margin-top:2px;padding-left:2px;display:flex}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{opacity:.5;margin:0 2px}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-suffix-container>.label-suffix{opacity:.7;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;white-space:pre;margin-left:.5em;font-size:.9em}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{opacity:.66;text-decoration:line-through}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;text-align:center;margin:auto 16px 0 5px;font-size:90%;font-weight:600}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-inputbox{box-sizing:border-box;font-size:inherit;border-radius:2px;padding:0;display:block;position:relative}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{width:100%;height:100%;position:relative}.monaco-inputbox>.ibwrapper>.input{box-sizing:border-box;color:inherit;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;resize:none;border:none;width:100%;display:inline-block}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{scrollbar-width:none;outline:none;display:block}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{box-sizing:border-box;visibility:hidden;white-space:pre-wrap;word-wrap:break-word;width:100%;display:inline-block;position:absolute;top:0;left:0}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{box-sizing:border-box;text-align:left;word-wrap:break-word;width:100%;margin-top:-1px;padding:.4em;font-size:12px;line-height:17px;display:inline-block;overflow:hidden}.monaco-inputbox .monaco-action-bar{position:absolute;top:4px;right:2px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-keybinding{align-items:center;line-height:10px;display:flex}.monaco-keybinding>.monaco-keybinding-key{vertical-align:middle;border-style:solid;border-width:1px;border-radius:3px;margin:0 2px;padding:3px 5px;font-size:11px;display:inline-block}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-list{white-space:nowrap;width:100%;height:100%;position:relative}.monaco-list.mouse-support{-webkit-user-select:none;user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{width:100%;height:100%;position:relative}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{box-sizing:border-box;width:100%;position:absolute;overflow:hidden}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list .monaco-scrollable-element>.scrollbar.vertical,.monaco-pane-view>.monaco-split-view2.vertical>.monaco-scrollable-element>.scrollbar.vertical{z-index:14}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{z-index:1000;border-radius:10px;padding:1px 7px;font-size:12px;display:inline-block;position:absolute}.monaco-list-type-filter-message{box-sizing:border-box;opacity:.7;pointer-events:none;text-align:center;white-space:normal;width:100%;height:100%;padding:40px 1em 1em;position:absolute;top:0;left:0}.monaco-list-type-filter-message:empty{display:none}.monaco-mouse-cursor-text{cursor:text}.monaco-progress-container{width:100%;height:2px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:2px;display:none;position:absolute;left:0}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{transition:width .1s linear;left:0}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-timing-function:linear;animation-iteration-count:infinite;transform:translateZ(0)}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100,end)}@keyframes progress{0%{transform:translate(0)scaleX(1)}50%{transform:translate(2500%)scaleX(3)}to{transform:translate(4900%)scaleX(1)}}:root{--vscode-sash-size:4px;--vscode-sash-hover-size:4px}.monaco-sash{touch-action:none;z-index:35;position:absolute}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;height:100%;width:var(--vscode-sash-size);top:0}.monaco-sash.horizontal{cursor:ns-resize;height:var(--vscode-sash-size);width:100%;left:0}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:\" \";cursor:all-scroll;height:calc(var(--vscode-sash-size)*2);width:calc(var(--vscode-sash-size)*2);z-index:100;display:block;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-.5);top:calc(var(--vscode-sash-size)*-1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{bottom:calc(var(--vscode-sash-size)*-1);left:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{right:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash:before{content:\"\";pointer-events:none;background:0 0;width:100%;height:100%;position:absolute}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.active:before,.monaco-sash.hover:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{left:calc(50% - var(--vscode-sash-hover-size)/2);width:var(--vscode-sash-hover-size)}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - var(--vscode-sash-hover-size)/2)}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:#0ff}.monaco-sash.debug.disabled{background:#0ff3}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;z-index:11;background:0 0;transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{display:none;position:absolute}.monaco-scrollable-element>.shadow.top{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;width:100%;height:3px;display:block;top:0;left:3px}.monaco-scrollable-element>.shadow.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;width:3px;height:100%;display:block;top:3px;left:0}.monaco-scrollable-element>.shadow.top-left-corner{width:3px;height:3px;display:block;top:0;left:0}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box{cursor:pointer;border-radius:2px;width:100%}.monaco-select-box-dropdown-container{text-transform:none;font-size:13px;font-weight:400}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-width:100px;min-height:18px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{border-radius:5px;font-size:11px}.monaco-select-box-dropdown-padding{--dropdown-padding-top:1px;--dropdown-padding-bottom:1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top:3px;--dropdown-padding-bottom:4px}.monaco-select-box-dropdown-container{box-sizing:border-box;display:none}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{font-family:var(--monaco-monospace-font);line-height:15px}.monaco-select-box-dropdown-container.visible{text-align:left;border-bottom-right-radius:3px;border-bottom-left-radius:3px;flex-direction:column;width:1px;display:flex;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{box-sizing:border-box;padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;padding-top:var(--dropdown-padding-top);flex:none;align-self:flex-start;width:100%;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-bottom:var(--dropdown-padding-bottom);padding-top:var(--dropdown-padding-top)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{float:left;text-overflow:ellipsis;white-space:nowrap;padding-left:3.5px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{float:left;opacity:.7;text-overflow:ellipsis;white-space:nowrap;padding-left:3.5px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{float:right;text-overflow:ellipsis;white-space:nowrap;padding-right:10px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{width:1px;height:1px;position:absolute;top:auto;left:-10000px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{opacity:0;flex:auto;align-self:flex-start}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{max-height:0;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{white-space:nowrap;padding-left:4px;padding-right:8px}.monaco-split-view2{width:100%;height:100%;position:relative}.monaco-split-view2>.sash-container{pointer-events:none;width:100%;height:100%;position:absolute}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{white-space:nowrap;width:100%;height:100%;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:normal;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{background-color:var(--separator-border);content:\" \";pointer-events:none;z-index:5;position:absolute;top:0;left:0}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{width:1px;height:100%}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{width:100%;height:1px}.monaco-table{white-space:nowrap;flex-direction:column;width:100%;height:100%;display:flex;position:relative;overflow:hidden}.monaco-table>.monaco-split-view2{border-bottom:1px solid #0000}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{height:100%;display:flex}.monaco-table-th{text-overflow:ellipsis;width:100%;height:100%;font-weight:700;overflow:hidden}.monaco-table-td,.monaco-table-th{box-sizing:border-box;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;overflow:hidden}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:\"\";left:calc(var(--vscode-sash-size)/2);border-left:1px solid #0000;width:0;position:absolute}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-custom-toggle{box-sizing:border-box;cursor:pointer;float:left;-webkit-user-select:none;user-select:none;border:1px solid #0000;border-radius:3px;width:20px;height:20px;margin-left:2px;padding:1px;overflow:hidden}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle,.hc-light .monaco-custom-toggle:hover{background:0 0}.monaco-custom-toggle.monaco-checkbox{opacity:1;border:1px solid #0000;border-radius:3px;width:18px;height:18px;margin-left:0;margin-right:9px;padding:0;background-size:16px!important}.monaco-action-bar .checkbox-action-item{border-radius:2px;align-items:center;padding-right:2px;display:flex}.monaco-action-bar .checkbox-action-item:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-action-bar .checkbox-action-item>.monaco-custom-toggle.monaco-checkbox{margin-right:4px}.monaco-action-bar .checkbox-action-item>.checkbox-label{font-size:12px}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{padding:0;display:inline-block}.monaco-tl-row{align-items:center;height:100%;display:flex;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{pointer-events:none;height:100%;position:absolute;top:0;left:16px}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{box-sizing:border-box;border-left:1px solid #0000;height:100%;display:inline-block}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{text-align:right;flex-shrink:0;justify-content:center;align-items:center;width:16px;padding-right:6px;font-size:10px;transform:translate(3px);display:flex!important}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:1.25s steps(30,end) infinite codicon-spin}.monaco-tree-type-filter{border:1px solid var(--vscode-widget-border);z-index:100;border-bottom-right-radius:4px;border-bottom-left-radius:4px;max-width:200px;margin:0 6px;padding:3px;display:flex;position:absolute;top:0}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{cursor:grab;justify-content:center;align-items:center;margin-right:2px;display:flex!important}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container{background-color:var(--vscode-sideBar-background);z-index:13;width:100%;height:0;position:absolute;top:0;left:0}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{background-color:var(--vscode-sideBar-background);width:100%;position:absolute;overflow:hidden;opacity:1!important}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row:hover{cursor:pointer;background-color:var(--vscode-list-hoverBackground)!important}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty,.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty .monaco-tree-sticky-container-shadow{display:none}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow{width:100%;height:0;position:absolute;bottom:-3px;left:0}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container[tabindex=\"0\"]:focus{outline:none}.monaco-editor .inputarea{color:#0000;resize:none;z-index:-10;background-color:#0000;border:none;min-width:0;min-height:0;margin:0;padding:0;position:absolute;overflow:hidden;outline:none!important}.monaco-editor .inputarea.ime-input{caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground);z-index:10}.monaco-workbench .workbench-hover{background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorHoverWidget-foreground);z-index:40;border-radius:3px;max-width:700px;font-size:13px;line-height:19px;position:relative;overflow:hidden}.monaco-workbench .workbench-hover hr{border-bottom:none}.monaco-workbench .workbench-hover:not(.skip-fade-in){animation:.1s linear fadein}.monaco-workbench .workbench-hover.compact{font-size:12px}.monaco-workbench .workbench-hover.compact .hover-contents{padding:2px 8px}.monaco-workbench .workbench-hover-container.locked .workbench-hover{outline:1px solid var(--vscode-editorHoverWidget-border)}.monaco-workbench .workbench-hover-container.locked .workbench-hover:focus,.monaco-workbench .workbench-hover-lock:focus{outline:1px solid var(--vscode-focusBorder)}.monaco-workbench .workbench-hover-container.locked .workbench-hover-lock:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-workbench .workbench-hover-pointer{pointer-events:none;z-index:41;position:absolute}.monaco-workbench .workbench-hover-pointer:after{background-color:var(--vscode-editorHoverWidget-background);border-bottom:1px solid var(--vscode-editorHoverWidget-border);border-right:1px solid var(--vscode-editorHoverWidget-border);content:\"\";width:5px;height:5px;position:absolute}.monaco-workbench .locked .workbench-hover-pointer:after{border-bottom-width:2px;border-right-width:2px;width:4px;height:4px}.monaco-workbench .workbench-hover-pointer.left{left:-3px}.monaco-workbench .workbench-hover-pointer.right{right:3px}.monaco-workbench .workbench-hover-pointer.top{top:-3px}.monaco-workbench .workbench-hover-pointer.bottom{bottom:3px}.monaco-workbench .workbench-hover-pointer.left:after{transform:rotate(135deg)}.monaco-workbench .workbench-hover-pointer.right:after{transform:rotate(315deg)}.monaco-workbench .workbench-hover-pointer.top:after{transform:rotate(225deg)}.monaco-workbench .workbench-hover-pointer.bottom:after{transform:rotate(45deg)}.monaco-workbench .workbench-hover a{color:var(--vscode-textLink-foreground)}.monaco-workbench .workbench-hover a:focus{outline:1px solid;outline-color:var(--vscode-focusBorder);outline-offset:-1px;text-decoration:underline}.monaco-workbench .workbench-hover a:active,.monaco-workbench .workbench-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-workbench .workbench-hover code{background:var(--vscode-textCodeBlock-background)}.monaco-workbench .workbench-hover .hover-row .actions{background:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-workbench .workbench-hover.right-aligned{left:1px}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions{flex-direction:row-reverse}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions .action-container{margin-left:16px;margin-right:0}.monaco-editor .blockDecorations-container{pointer-events:none;position:absolute;top:0}.monaco-editor .blockDecorations-block{box-sizing:border-box;position:absolute}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{box-sizing:border-box;height:100%;display:block;position:absolute;top:0;left:0}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{height:100%;position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{justify-content:center;align-items:center;display:flex;position:absolute}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{box-sizing:border-box;height:100%;position:absolute}.monaco-editor .margin-view-overlays .line-numbers{box-sizing:border-box;cursor:default;font-variant-numeric:tabular-nums;text-align:right;vertical-align:middle;display:inline-block;position:absolute;bottom:0}.monaco-editor .relative-current-line-number{text-align:left;width:100%;display:inline-block}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.mtkcontrol{color:#fff!important;background:#960000!important}.mtkoverflow{background-color:var(--vscode-button-background,var(--vscode-editor-background));border-color:var(--vscode-contrastBorder);color:var(--vscode-button-foreground,var(--vscode-editor-foreground));cursor:pointer;border-style:solid;border-width:1px;border-radius:2px;padding:4px}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{-webkit-user-select:none;user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{-webkit-user-select:text;user-select:text}.monaco-editor.enable-user-select{-webkit-user-select:auto;user-select:auto;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{width:100%;position:absolute}.monaco-editor .lines-content>.view-lines>.view-line>span{position:absolute;top:0;bottom:0}.monaco-editor .mtkw,.monaco-editor .mtkz{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{background:#fff;position:absolute;top:0}.monaco-editor .margin-view-overlays .cldr{height:100%;position:absolute}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-editor .margin-view-overlays .cmdr{width:100%;height:100%;position:absolute;left:0}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{width:0;position:absolute}.monaco-editor .minimap-shadow-visible{width:6px;position:absolute;left:-6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{width:1px;position:absolute;left:-1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .minimap{z-index:5}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset;position:absolute;top:0}.monaco-editor .scroll-decoration{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;height:6px;position:absolute;top:0;left:0}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{box-sizing:border-box;position:absolute;overflow:hidden}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{border-style:solid;border-width:1px;background:0 0!important}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-style:solid;border-bottom-width:2px;background:0 0!important}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-style:solid;border-bottom-width:1px;background:0 0!important}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:.5s ease-in-out 20 alternate monaco-cursor-smooth}.cursor-phase{animation:.5s ease-in-out 20 alternate monaco-cursor-phase}.cursor-expand>.cursor{animation:.5s ease-in-out 20 alternate monaco-cursor-expand}.monaco-editor .mwh{position:absolute;color:var(--vscode-editorWhitespace-foreground)!important}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);overflow-wrap:normal;position:relative;overflow:visible}.monaco-editor,.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);border:1px solid var(--vscode-editor-rangeHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);border:1px solid var(--vscode-editor-symbolHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .margin-view-overlays>div,.monaco-editor .view-overlays>div{width:100%;position:absolute}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{background:var(--vscode-editorError-background);content:\"\";width:100%;height:100%;display:block}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{background:var(--vscode-editorWarning-background);content:\"\";width:100%;height:100%;display:block}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{background:var(--vscode-editorInfo-background);content:\"\";width:100%;height:100%;display:block}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;-webkit-text-decoration-color:var(--vscode-editor-foreground,inherit);text-decoration-color:var(--vscode-editor-foreground,inherit)}.monaco-component.diff-review{-webkit-user-select:none;user-select:none;z-index:99}.monaco-diff-editor .diff-review{position:absolute}.monaco-component.diff-review .diff-review-line-number{color:var(--vscode-editorLineNumber-foreground);text-align:right;display:inline-block}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.monaco-component.diff-review .diff-review-row{white-space:pre}.monaco-component.diff-review .diff-review-table{min-width:100%;display:table}.monaco-component.diff-review .diff-review-row{width:100%;display:table-row}.monaco-component.diff-review .diff-review-spacer{vertical-align:middle;width:10px;display:inline-block}.monaco-component.diff-review .diff-review-spacer>.codicon{font-size:9px!important}.monaco-component.diff-review .diff-review-actions{z-index:100;display:inline-block;position:absolute;top:2px;right:10px}.monaco-component.diff-review .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.monaco-component.diff-review .revertButton{cursor:pointer}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{height:0;font-size:13px;line-height:14px;transform:translateY(-10px)}.monaco-editor .diff-hidden-lines .bottom.dragging,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .bottom,.monaco-editor .diff-hidden-lines .top{background-color:#0000;background-clip:padding-box;border-top:4px solid #0000;border-bottom:2px solid #0000;height:4px;transition:background-color .1s ease-out}.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *{cursor:n-resize!important}.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *{cursor:s-resize!important}.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *{cursor:ns-resize!important}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{background:var(--vscode-editor-background);z-index:1;justify-content:center;align-items:center;display:flex}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow),inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow);color:var(--vscode-diffEditor-unchangedRegionForeground);text-overflow:ellipsis;white-space:nowrap;height:24px;display:block;overflow:hidden}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedModified,.monaco-editor .movedOriginal{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedModified.currentMove,.monaco-editor .movedOriginal.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{pointer-events:none;position:absolute}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2px}.monaco-editor .char-delete.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-removedTextBackground);margin-left:-1px}.monaco-editor .char-insert.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{justify-content:flex-end;margin-top:-4px;display:flex}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{width:12px;height:12px;font-size:12px}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:#00000008}.monaco-diff-editor.vs-dark .diffOverview{background:#ffffff03}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:0 0}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:#ababab66}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:0 0}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{align-items:center;opacity:.7!important;font-size:11px!important;display:flex!important}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-diff-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-editor.hc-light .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{z-index:10;position:absolute}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-diff-editor .char-insert,.monaco-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-diff-editor .line-insert,.monaco-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground,var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-insert,.monaco-editor .line-insert{border:1px solid var(--vscode-diffEditor-insertedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-insert,.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .char-insert,.monaco-editor.hc-light .line-insert{border-style:dashed}.monaco-editor .char-delete,.monaco-editor .line-delete{border:1px solid var(--vscode-diffEditor-removedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-delete,.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .char-delete,.monaco-editor.hc-light .line-delete{border-style:dashed}.monaco-diff-editor .gutter-insert,.monaco-editor .gutter-insert,.monaco-editor .inline-added-margin-view-zone{background-color:var(--vscode-diffEditorGutter-insertedLineBackground,var(--vscode-diffEditor-insertedLineBackground),var(--vscode-diffEditor-insertedTextBackground))}.monaco-diff-editor .char-delete,.monaco-editor .char-delete,.monaco-editor .inline-deleted-text{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .inline-deleted-text{text-decoration:line-through}.monaco-diff-editor .line-delete,.monaco-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground,var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor .gutter-delete,.monaco-editor .gutter-delete,.monaco-editor .inline-deleted-margin-view-zone{background-color:var(--vscode-diffEditorGutter-removedLineBackground,var(--vscode-diffEditor-removedLineBackground),var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{border-left:1px solid var(--vscode-diffEditor-border);box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor.side-by-side .editor.original{border-right:1px solid var(--vscode-diffEditor-border);box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .diagonal-fill{background-image:linear-gradient(-45deg,var(--vscode-diffEditor-diagonalFill) 12.5%,#0000 12.5%,#0000 50%,var(--vscode-diffEditor-diagonalFill) 50%,var(--vscode-diffEditor-diagonalFill) 62.5%,#0000 62.5%,#0000 100%);background-size:8px 8px}.monaco-diff-editor .gutter{flex-grow:0;flex-shrink:0;position:relative;overflow:hidden}.monaco-diff-editor .gutter>div{position:absolute}.monaco-diff-editor .gutter .gutterItem{opacity:0;transition:opacity .7s}.monaco-diff-editor .gutter .gutterItem.showAlways{opacity:1;transition:none}.monaco-diff-editor .gutter .gutterItem.noTransition{transition:none}.monaco-diff-editor .gutter:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.monaco-diff-editor .gutter .gutterItem .background{border-left:2px solid var(--vscode-menu-border);width:1px;height:100%;position:absolute;left:50%}.monaco-diff-editor .gutter .gutterItem .buttons{justify-content:center;align-items:center;width:100%;display:flex;position:absolute}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar{height:fit-content}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar{line-height:1}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container{background:var(--vscode-editorGutter-commentRangeForeground);border-radius:4px;width:fit-content}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container .action-item:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-diff-editor .gutter .gutterItem .buttons .monaco-toolbar .monaco-action-bar .actions-container .action-item .action-label{padding:1px 2px}.monaco-diff-editor .diff-hidden-lines-compact{height:11px;display:flex}.monaco-diff-editor .diff-hidden-lines-compact .line-left,.monaco-diff-editor .diff-hidden-lines-compact .line-right{border-top:1px solid;border-color:var(--vscode-editorCodeLens-foreground);opacity:.5;width:100%;height:1px;margin:auto}.monaco-diff-editor .diff-hidden-lines-compact .line-left{width:20px}.monaco-diff-editor .diff-hidden-lines-compact .text{color:var(--vscode-editorCodeLens-foreground);text-wrap:nowrap;margin:0 4px;font-size:11px;line-height:11px}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);vertical-align:middle;border-style:solid;border-width:1px;border-radius:3px;padding:1px 3px}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}.monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);width:100%;height:100%;position:relative;overflow-y:hidden}.monaco-component.multiDiffEditor>div{width:100%;height:100%;position:absolute;top:0;left:0}.monaco-component.multiDiffEditor>div.placeholder{visibility:hidden;place-content:center;place-items:center;display:grid}.monaco-component.multiDiffEditor>div.placeholder.visible{visibility:visible}.monaco-component.multiDiffEditor .active{--vscode-multiDiffEditor-border:var(--vscode-focusBorder)}.monaco-component.multiDiffEditor .multiDiffEntry{flex-direction:column;flex:1;display:flex;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button{cursor:pointer;margin:0 5px}.monaco-component.multiDiffEditor .multiDiffEntry .collapse-button a{display:block}.monaco-component.multiDiffEditor .multiDiffEntry .header{background:var(--vscode-editor-background);z-index:1000}.monaco-component.multiDiffEditor .multiDiffEntry .header:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content{background:var(--vscode-multiDiffEditor-headerBackground);border-top:1px solid var(--vscode-multiDiffEditor-border);color:var(--vscode-foreground);align-items:center;margin:8px 0 0;padding:4px 5px;display:flex}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path{flex:1;min-width:0;display:flex}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .title{font-size:14px;line-height:22px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .title.original{text-overflow:ellipsis;flex:1;min-width:0}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .file-path .status{opacity:.75;margin:0 10px;font-weight:600;line-height:22px}.monaco-component.multiDiffEditor .multiDiffEntry .header .header-content .actions{padding:0 8px}.monaco-component.multiDiffEditor .multiDiffEntry .editorParent{border-bottom:1px solid var(--vscode-multiDiffEditor-border);flex-direction:column;flex:1;display:flex;overflow:hidden}.monaco-component.multiDiffEditor .multiDiffEntry .editorContainer{flex:1}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border);box-sizing:border-box}.monaco-editor .lightBulbWidget{justify-content:center;align-items:center;display:flex}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget.codicon-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .lightBulbWidget:before{z-index:2;position:relative}.monaco-editor .lightBulbWidget:after{content:\"\";opacity:.3;z-index:1;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.monaco-editor .glyph-margin-widgets .cgmr[class*=codicon-gutter-lightbulb]{cursor:pointer;display:block}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-aifix-auto-fix,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-auto-fix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .codelens-decoration{color:var(--vscode-editorCodeLens-foreground);font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);text-overflow:ellipsis;white-space:nowrap;display:inline-block;overflow:hidden}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{-webkit-user-select:none;user-select:none;vertical-align:sub;white-space:nowrap}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration>a:hover,.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{color:var(--vscode-editorCodeLens-foreground);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);vertical-align:middle;color:currentColor!important}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:.1s linear fadein}.colorpicker-widget{-webkit-user-select:none;user-select:none;height:190px}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{box-sizing:border-box;cursor:pointer;border:.1em solid #000;width:.8em;height:.8em;margin:.1em .2em 0;line-height:.8em;display:inline-block}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:.1em solid #eee}.colorpicker-header{height:24px;image-rendering:pixelated;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=) 0 0/9px 9px;display:flex;position:relative}.colorpicker-header .picked-color{color:#fff;cursor:pointer;white-space:nowrap;flex:1;justify-content:center;align-items:center;width:240px;line-height:24px;display:flex;overflow:hidden}.colorpicker-header .picked-color .picked-color-presentation{white-space:nowrap;margin-left:5px;margin-right:5px}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{cursor:pointer;width:74px;z-index:inherit}.standalone-colorpicker{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border);cursor:pointer}.colorpicker-header .close-button-inner-div{text-align:center;width:100%;height:100%}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{padding:8px;display:flex;position:relative}.colorpicker-body .saturation-wrap{flex:1;min-width:220px;height:150px;position:relative;overflow:hidden}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{border:1px solid #fff;border-radius:100%;width:9px;height:9px;margin:-5px 0 0 -5px;position:absolute;box-shadow:0 0 2px #000c}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .standalone-strip{width:25px;height:122px}.colorpicker-body .hue-strip{cursor:grab;background:linear-gradient(red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);margin-left:8px;position:relative}.colorpicker-body .opacity-strip{cursor:grab;image-rendering:pixelated;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=) 0 0/9px 9px;margin-left:8px;position:relative}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{box-sizing:border-box;border:1px solid #ffffffb5;width:calc(100% + 4px);height:4px;position:absolute;top:0;left:-2px;box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{pointer-events:none;height:150px}.colorpicker-body .standalone-strip .standalone-overlay{pointer-events:none;height:122px}.standalone-colorpicker-body{border:1px solid #0000;border-bottom:1px solid var(--vscode-editorHoverWidget-border);display:block;overflow:hidden}.colorpicker-body .insert-button{background:var(--vscode-button-background);color:var(--vscode-button-foreground);cursor:pointer;border:none;border-radius:2px;width:58px;height:20px;padding:0;position:absolute;bottom:8px;right:8px}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor.hc-light .dnd-target,.monaco-editor.vs .dnd-target{color:#fff;border-right:2px dotted #000}.monaco-editor.vs-dark .dnd-target{color:#51504f;border-right:2px dotted #aeafad}.monaco-editor.hc-black .dnd-target{color:#000;border-right:2px dotted #fff}.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.post-edit-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-widget-border,transparent);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border-radius:4px;overflow:hidden}.post-edit-widget .monaco-button{border:none;border-radius:0;padding:2px}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}.monaco-editor .findOptionsWidget{border:2px solid var(--vscode-contrastBorder)}.monaco-editor .find-widget,.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground)}.monaco-editor .find-widget{border-bottom:1px solid var(--vscode-widget-border);border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);box-sizing:border-box;z-index:35;border-bottom-right-radius:4px;border-bottom-left-radius:4px;height:33px;padding:0 4px;line-height:19px;transition:transform .2s linear;position:absolute;overflow:hidden;transform:translateY(calc(-100% - 10px))}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-color:var(--vscode-focusBorder);outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:#0000;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:3px 25px 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{align-items:center;height:25px;display:flex}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;flex:1;display:flex}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{box-sizing:border-box;flex:initial;text-align:center;vertical-align:middle;height:25px;margin:0 0 0 3px;padding:2px 0 0 2px;line-height:23px;display:flex}.monaco-editor .find-widget .button{cursor:pointer;flex:initial;background-position:50%;background-repeat:no-repeat;border-radius:5px;justify-content:center;align-items:center;width:16px;height:16px;margin-left:3px;padding:3px;display:flex}.monaco-editor .find-widget .codicon-find-selection{border-radius:5px;width:22px;height:22px;padding:3px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{box-sizing:border-box;border-radius:0;width:18px;height:100%;position:absolute;top:0;left:3px}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{vertical-align:middle;flex:none;display:flex;position:relative}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .find-widget.no-results .matchesCount{color:var(--vscode-errorForeground)}.monaco-editor .findMatch{animation-duration:0;background-color:var(--vscode-editor-findMatchHighlightBackground);animation-name:inherit!important}.monaco-editor .currentFindMatch{background-color:var(--vscode-editor-findMatchBackground);border:2px solid var(--vscode-editor-findMatchBorder);box-sizing:border-box;padding:1px}.monaco-editor .findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor .find-widget .monaco-sash{background-color:var(--vscode-editorWidget-resizeBorder,var(--vscode-editorWidget-border));left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .find-widget .button:not(.disabled):hover,.monaco-editor .find-widget .codicon-find-selection:hover{background-color:var(--vscode-toolbar-hoverBackground)!important}.monaco-editor.currentFindMatch{background-color:var(--vscode-editor-findMatchBackground)}.monaco-editor.findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor.findMatch{background-color:var(--vscode-editorWidget-background)}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;top:5px;right:4px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{cursor:pointer;opacity:0;justify-content:center;align-items:center;margin-left:2px;font-size:140%;transition:opacity .5s;display:flex}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{transition:initial}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:var(--vscode-editor-foldPlaceholderForeground);content:\"⋯\";cursor:pointer;margin:.1em .2em 0;line-height:1em;display:inline}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{vertical-align:text-top;margin-right:4px;display:inline-block}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{padding-right:5px;display:inline-block}.monaco-editor .marker-widget .descriptioncontainer{-webkit-user-select:text;user-select:text;white-space:pre;padding:8px 12px 0 20px;position:absolute}.monaco-editor .marker-widget .descriptioncontainer .message{flex-direction:column;display:flex}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{color:inherit;opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:\"(\"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:\")\"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{color:var(--vscode-textLink-activeForeground);text-underline-position:under;border-bottom:1px solid #0000;text-decoration:underline}.monaco-editor .marker-widget .descriptioncontainer .filename{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .goto-definition-link{cursor:pointer;text-decoration:underline;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{vertical-align:top;display:inline-block}.monaco-editor .reference-zone-widget .messages{text-align:center;width:100%;height:100%;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground);line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{color:var(--vscode-peekViewResult-fileForeground);width:100%;height:100%;display:inline-flex}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-left:auto;margin-right:12px}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input,.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder,transparent);box-sizing:border-box}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover-content{box-sizing:border-box;padding-bottom:2px;padding-right:2px}.monaco-editor .monaco-hover{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);border-radius:3px}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row{display:flex}.monaco-editor .monaco-hover .hover-row .hover-row-contents{flex-direction:column;min-width:0;display:flex}.monaco-editor .monaco-hover .hover-row .verbosity-actions{border-right:1px solid var(--vscode-editorHoverWidget-border);flex-direction:column;justify-content:end;padding-left:5px;padding-right:5px;display:flex}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon{cursor:pointer;font-size:11px}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.enabled{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.disabled{opacity:.6}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .inlineSuggestionsHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{opacity:.6;margin-left:4px;display:flex}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{padding:2px 3px;font-size:8px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{justify-content:center;min-width:19px;display:flex}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:#0000;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{cursor:pointer;text-underline-position:under;text-decoration:underline;display:inline-block}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .inline-edit-remove{background-color:var(--vscode-editorGhostText-background);font-style:italic}.monaco-editor .inline-edit-hidden{opacity:0;font-size:0}.monaco-editor .inline-edit-decoration,.monaco-editor .suggest-preview-text .inline-edit{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-underline-position:under;text-decoration:underline}.monaco-editor .inline-edit-decoration,.monaco-editor .inline-edit-decoration-preview,.monaco-editor .suggest-preview-text .inline-edit{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .inlineEditHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineEditHints a,.monaco-editor .inlineEditHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineEditHints .keybinding{opacity:.6;margin-left:4px;display:flex}.monaco-editor .inlineEditHints .keybinding .monaco-keybinding-key{padding:2px 3px;font-size:8px}.monaco-editor .inlineEditStatusBarItemLabel{margin-right:2px}.monaco-editor .inlineEditSideBySide{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);white-space:pre;z-index:39}.monaco-editor div.inline-edits-widget{--widget-color:var(--vscode-notifications-background)}.monaco-editor div.inline-edits-widget .promptEditor .monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground)}.monaco-editor div.inline-edits-widget .promptEditor,.monaco-editor div.inline-edits-widget .toolbar{opacity:0;transition:opacity .2s ease-in-out}.monaco-editor div.inline-edits-widget.focused .promptEditor,.monaco-editor div.inline-edits-widget.focused .toolbar,.monaco-editor div.inline-edits-widget:hover .promptEditor,.monaco-editor div.inline-edits-widget:hover .toolbar{opacity:1}.monaco-editor div.inline-edits-widget .preview .monaco-editor{--vscode-editor-background:var(--widget-color)}.monaco-editor div.inline-edits-widget .preview .monaco-editor .mtk1{color:var(--vscode-editorGhostText-foreground)}.monaco-editor div.inline-edits-widget .preview .monaco-editor .current-line-margin,.monaco-editor div.inline-edits-widget .preview .monaco-editor .view-overlays .current-line-exact{border:none}.monaco-editor div.inline-edits-widget svg .gradient-start{stop-color:var(--vscode-editor-background)}.monaco-editor div.inline-edits-widget svg .gradient-stop{stop-color:var(--widget-color)}.inline-editor-progress-decoration{width:1em;height:1em;display:inline-block}.inline-progress-widget{justify-content:center;align-items:center;display:flex!important}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{animation:none;font-size:90%!important}.inline-progress-widget:hover .icon:before{content:var(--vscode-icon-x-content);font-family:var(--vscode-icon-x-font-family)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-underline-position:under;text-decoration:underline}.monaco-editor .detected-link-active{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .monaco-editor-overlaymessage{z-index:10000;padding-bottom:8px}.monaco-editor .monaco-editor-overlaymessage.below{z-index:10000;padding-top:8px;padding-bottom:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:.15s ease-out fadeIn}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:.1s ease-out fadeOut}.monaco-editor .monaco-editor-overlaymessage .message{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);color:var(--vscode-editorHoverWidget-foreground);border-radius:3px;padding:2px 4px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{z-index:1000;border:8px solid #0000;position:absolute;left:2px;width:0!important;height:0!important}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .parameter-hints-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);cursor:default;z-index:39;flex-direction:column;line-height:1.5em;display:flex}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{flex-direction:row;max-width:440px;display:flex}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{border-left:1px solid var(--vscode-editorHoverWidget-border);content:\"\";opacity:.5;height:100%;display:block;position:absolute}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{flex-direction:column;flex:1;min-height:100%;display:flex}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{border-bottom:1px solid var(--vscode-editorHoverWidget-border);content:\"\";opacity:.5;width:100%;padding-top:4px;display:block;position:absolute;left:0}.monaco-editor .parameter-hints-widget .code{font-family:var(--vscode-parameterHintsWidget-editorFontFamily),var(--vscode-parameterHintsWidget-editorFontFamilyDefault)}.monaco-editor .parameter-hints-widget .docs{white-space:pre-wrap;padding:0 10px 0 5px}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:normal}.monaco-editor .parameter-hints-widget .docs code{background-color:var(--vscode-textCodeBlock-background);font-family:var(--monaco-monospace-font);border-radius:3px;padding:0 .4em}.monaco-editor .parameter-hints-widget .docs .code,.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{flex-direction:column;justify-content:flex-end;align-items:center;min-width:22px;display:none}.monaco-editor .parameter-hints-widget.multiple .controls{padding:0 2px;display:flex}.monaco-editor .parameter-hints-widget.multiple .button{cursor:pointer;background-repeat:no-repeat;width:16px;height:16px}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{font-family:var(--monaco-monospace-font);text-align:center;height:12px;line-height:12px}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{margin-right:.5em;font-weight:700}.monaco-editor .peekview-widget .head{box-sizing:border-box;flex-wrap:nowrap;justify-content:space-between;display:flex}.monaco-editor .peekview-widget .head .peekview-title{text-overflow:ellipsis;align-items:baseline;min-width:0;margin-left:20px;font-size:13px;display:flex;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){margin-left:.5em;font-size:.9em}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename,.monaco-editor .peekview-widget .head .peekview-title .meta{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:\"-\";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{text-align:right;flex:1;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{align-self:center;margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground)}.monaco-editor .editorPlaceholder{text-overflow:ellipsis;text-wrap:nowrap;color:var(--vscode-editor-placeholder-foreground);pointer-events:none;position:absolute;top:0;overflow:hidden}.monaco-editor .rename-box{color:inherit;z-index:100;border-radius:4px}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input-with-button{border-radius:2px;width:calc(100% - 8px);padding:3px}.monaco-editor .rename-box .rename-input{width:calc(100% - 8px);padding:0}.monaco-editor .rename-box .rename-input:focus{outline:none}.monaco-editor .rename-box .rename-suggestions-button{cursor:pointer;background-color:#0000;border:none;border-radius:5px;align-items:center;padding:3px;display:flex}.monaco-editor .rename-box .rename-suggestions-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row{border-radius:2px}.monaco-editor .rename-box .rename-label{opacity:.8;display:none}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .snippet-placeholder{background-color:var(--vscode-editor-snippetTabstopHighlightBackground,transparent);outline-color:var(--vscode-editor-snippetTabstopHighlightBorder,transparent);outline-width:1px;outline-style:solid;min-width:2px}.monaco-editor .finish-snippet-placeholder{background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground,transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder,transparent);outline-width:1px;outline-style:solid}.monaco-editor .sticky-widget{overflow:hidden}.monaco-editor .sticky-widget-line-numbers{background-color:inherit;float:left}.monaco-editor .sticky-widget-lines-scrollable{background-color:inherit;width:var(--vscode-editorStickyScroll-scrollableWidth);display:inline-block;position:absolute;overflow:hidden}.monaco-editor .sticky-widget-lines{background-color:inherit;position:absolute}.monaco-editor .sticky-line-content,.monaco-editor .sticky-line-number{background-color:inherit;color:var(--vscode-editorLineNumber-foreground);white-space:nowrap;display:inline-block;position:absolute}.monaco-editor .sticky-line-number .codicon-folding-collapsed,.monaco-editor .sticky-line-number .codicon-folding-expanded{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{background-color:inherit;white-space:nowrap;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-line-number-inner{text-align:right;display:inline-block}.monaco-editor .sticky-widget{border-bottom:1px solid var(--vscode-editorStickyScroll-border)}.monaco-editor .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{background-color:var(--vscode-editorStickyScroll-background);box-shadow:var(--vscode-editorStickyScroll-shadow) 0 4px 2px -2px;z-index:4;width:100%;right:auto!important}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .suggest-widget{z-index:40;border-radius:3px;flex-direction:column;width:430px;display:flex}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{background-color:var(--vscode-editorSuggestWidget-background);border-color:var(--vscode-editorSuggestWidget-border);border-style:solid;border-width:1px;flex:0 auto;width:100%}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-light .suggest-details,.monaco-editor.hc-light .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{border-top:1px solid var(--vscode-editorSuggestWidget-border);box-sizing:border-box;flex-flow:row;justify-content:space-between;width:100%;padding:0 4px;font-size:80%;display:none;overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:\", \";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{width:100%;height:100%}.monaco-editor .suggest-widget .monaco-list{-webkit-user-select:none;user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{-mox-box-sizing:border-box;box-sizing:border-box;cursor:pointer;touch-action:none;white-space:nowrap;background-position:2px 2px;background-repeat:no-repeat;padding-right:10px;display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;padding-left:2px;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{text-overflow:ellipsis;white-space:pre;justify-content:space-between;display:flex;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;cursor:pointer;opacity:1;font-size:14px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{opacity:.6;text-overflow:ellipsis;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{opacity:.4;text-overflow:ellipsis;align-self:center;margin-left:12px;font-size:85%;line-height:normal;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{text-overflow:ellipsis;white-space:nowrap;margin-left:1.1em;font-size:85%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-grow:1;flex-shrink:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{flex-shrink:4;max-width:70%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{visibility:hidden;width:18px;height:18px;display:inline-block;position:absolute;right:10px}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;-webkit-text-decoration:unset;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{background-position:50%;background-repeat:no-repeat;background-size:80%;width:16px;height:16px;margin-left:2px;display:block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{align-items:center;margin-right:4px;display:flex}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{border:.1em solid #000;width:.7em;height:.7em;margin:0 0 0 .3em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{color:var(--vscode-editorSuggestWidget-foreground);cursor:default;flex-direction:column;display:flex}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;width:100%;height:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{opacity:.7;text-overflow:ellipsis;white-space:pre;flex:2;margin:0 24px 0 0;padding:4px 0 12px 5px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{white-space:pre-wrap;margin:0;padding:4px 5px}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{white-space:normal;min-height:calc(1rem + 8px);padding:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-enum,.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-value{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.editor-banner{background:var(--vscode-banner-background);box-sizing:border-box;cursor:default;width:100%;height:26px;font-size:12px;display:flex;overflow:visible}.editor-banner .icon-container{flex-shrink:0;align-items:center;padding:0 6px 0 10px;display:flex}.editor-banner .icon-container.custom-icon{background-position:50%;background-repeat:no-repeat;background-size:16px;width:16px;margin:0 6px 0 10px;padding:0}.editor-banner .message-container{text-overflow:ellipsis;white-space:nowrap;align-items:center;line-height:26px;display:flex;overflow:hidden}.editor-banner .message-container p{margin-block:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;margin:0 4px;line-height:26px}.editor-banner .message-actions-container a.monaco-button{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{margin-left:12px;padding:3px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-editor .unicode-highlight{background-color:var(--vscode-editorUnicodeHighlight-background);border:1px solid var(--vscode-editorUnicodeHighlight-border);box-sizing:border-box}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);border:1px solid var(--vscode-editor-selectionHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);border:1px solid var(--vscode-editor-wordHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);border:1px solid var(--vscode-editor-wordHighlightStrongBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);border:1px solid var(--vscode-editor-wordHighlightTextBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .zone-widget{z-index:10;position:absolute}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-top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+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGg1M3YzNkgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px;width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;overflow:hidden}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MyIgaGVpZ2h0PSIzNiIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjQzVDNUM1IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOFYzMi4wM2g0NC4wMjh6TTQuMDA4LjAwOEE0LjAwMyA0LjAwMyAwIDAgMCAuMDA1IDQuMDFWMzIuMDNhNC4wMDMgNC4wMDMgMCAwIDAgNC4wMDMgNC4wMDJoNDQuMDI4YTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzLTQuMDAyVjQuMDFBNC4wMDMgNC4wMDMgMCAwIDAgNDguMDM2LjAwOHpNOC4wMSA4LjAxM2g0LjAwM3Y0LjAwM0g4LjAxem0xMi4wMDggMGgtNC4wMDJ2NC4wMDNoNC4wMDJ6bTQuMDAzIDBoNC4wMDJ2NC4wMDNoLTQuMDAyem0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDN6bTQuMDAyIDBoNC4wMDN2NC4wMDNINDAuMDN6bS0yNC4wMTUgOC4wMDVIOC4wMXY0LjAwM2g4LjAwNnptNC4wMDIgMGg0LjAwM3Y0LjAwM2gtNC4wMDN6bTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3ptMTIuMDA4IDB2NC4wMDNoLTguMDA1di00LjAwM3ptLTMyLjAyMSA4LjAwNUg4LjAxdjQuMDAzaDQuMDAzem00LjAwMyAwaDIwLjAxM3Y0LjAwM0gxNi4wMTZ6bTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzeiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGg1M3YzNkgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==) 50% no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);-webkit-user-select:text;user-select:text;z-index:50;padding:10px}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{background-color:var(--vscode-editorHoverWidget-border);border:0;height:1px}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{float:right;font-size:60%;font-weight:400}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{color:#555;background-color:#dedede66;border:1px solid #ccc6;border-bottom-color:#bababa66;box-shadow:inset 0 -1px #bababa66}.hc-black .monaco-keybinding>.monaco-keybinding-key{box-shadow:none;color:#fff;background-color:#0000;border:1px solid #6fc3df}.hc-light .monaco-keybinding>.monaco-keybinding-key{box-shadow:none;color:#292929;background-color:#0000;border:1px solid #0f4a85}.vs-dark .monaco-keybinding>.monaco-keybinding-key{color:#ccc;background-color:#8080802b;border:1px solid #3339;border-bottom-color:#4449;box-shadow:inset 0 -1px #4449}.monaco-editor{--monaco-monospace-font:\"SF Mono\",Monaco,Menlo,Consolas,\"Ubuntu Mono\",\"Liberation Mono\",\"DejaVu Sans Mono\",\"Courier New\",monospace;font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);width:1px;height:1px;margin:-1px;padding:0;top:0;overflow:hidden;position:absolute!important}.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex=\"-1\"]:focus,.monaco-diff-editor [tabindex=\"0\"]:focus,.monaco-diff-editor button:focus,.monaco-diff-editor input[type=button]:focus,.monaco-diff-editor input[type=checkbox]:focus,.monaco-diff-editor input[type=search]:focus,.monaco-diff-editor input[type=text]:focus,.monaco-diff-editor select:focus,.monaco-diff-editor textarea:focus,.monaco-editor{opacity:1;outline-color:var(--vscode-focusBorder);outline-offset:-1px;outline-width:1px;outline-style:solid}.action-widget{background-color:var(--vscode-editorActionList-background);box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorActionList-foreground);z-index:40;border-radius:5px;width:100%;min-width:160px;max-width:80vw;padding:4px;font-size:13px;display:block;border:1px solid var(--vscode-editorWidget-border)!important}.context-view-block{z-index:-1}.context-view-block,.context-view-pointerBlock{cursor:auto;width:100%;height:100%;position:fixed;top:0;left:0}.context-view-pointerBlock{z-index:2}.action-widget .monaco-list{-webkit-user-select:none;user-select:none;border:0!important}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{cursor:pointer;touch-action:none;white-space:nowrap;border-radius:4px;width:100%;padding:0 10px}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){color:var(--vscode-editorActionList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder,transparent);outline-offset:-1px;background-color:var(--vscode-editorActionList-focusBackground)!important}.action-widget .monaco-list-row.group-header{font-size:12px;font-weight:600;color:var(--vscode-descriptionForeground)!important}.action-widget .monaco-list-row.group-header:not(:first-of-type){margin-top:2px}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before,.action-widget .monaco-list .option-disabled:before{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:default!important;background-color:#0000!important;outline:0 solid!important}.action-widget .monaco-list-row.action{align-items:center;gap:8px;display:flex}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{text-overflow:ellipsis;flex:1;overflow:hidden}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorActionList-background);border-top:1px solid var(--vscode-editorHoverWidget-border);margin-top:2px}.action-widget .action-widget-action-bar:before{content:\"\";width:100%;display:block}.action-widget .action-widget-action-bar .actions-container{padding:3px 8px 0}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);pointer-events:all;padding:0;font-size:12px;line-height:22px}.action-widget-action-bar .action-item{pointer-events:none;margin-right:16px}.action-widget-action-bar .action-label:hover{background-color:#0000!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-action-bar .action-item.menu-entry .action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;width:16px;height:16px}.monaco-action-bar .action-item.menu-entry.text-only .action-label{color:var(--vscode-descriptionForeground);border-radius:2px;overflow:hidden}.monaco-action-bar .action-item.menu-entry.text-only.use-comma:not(:last-of-type) .action-label:after{content:\", \"}.monaco-action-bar .action-item.menu-entry.text-only+.action-item:not(.text-only)>.monaco-dropdown .action-label{color:var(--vscode-descriptionForeground)}.monaco-dropdown-with-default{border-radius:5px;flex-direction:row;display:flex!important}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;width:16px;height:16px}.monaco-dropdown-with-default:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{margin-left:-3px;padding-left:0;padding-right:0;font-size:12px;line-height:16px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.quick-input-widget{z-index:2550;-webkit-app-region:no-drag;border-radius:6px;width:600px;margin-left:-300px;position:absolute;left:50%}.quick-input-titlebar{border-top-left-radius:5px;border-top-right-radius:5px;align-items:center;display:flex}.quick-input-left-action-bar{flex:1;margin-left:4px;display:flex}.quick-input-inline-action-bar{margin:2px 0 0 5px}.quick-input-title{text-align:center;text-overflow:ellipsis;padding:3px 0;overflow:hidden}.quick-input-right-action-bar{flex:1;margin-right:4px;display:flex}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{flex:1;margin:4px 2px}.quick-input-header{padding:8px 6px 2px;display:flex}.quick-input-widget.hidden-input .quick-input-header{margin-bottom:0;padding:0}.quick-input-and-message{flex-direction:column;flex-grow:1;min-width:0;display:flex;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;align-items:center;display:flex;position:absolute;right:4px}.quick-input-count .monaco-count-badge{vertical-align:middle;border-radius:2px;min-height:auto;padding:2px 4px;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{align-items:center;height:25px;padding:0 6px;font-size:11px;display:flex}.quick-input-message{overflow-wrap:break-word;margin-top:-1px;padding:5px}.quick-input-message>.codicon{vertical-align:text-bottom;margin:0 .2em}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{max-height:440px;padding-bottom:5px;overflow:hidden}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;padding:0 6px;display:flex;overflow:hidden}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-style:solid;border-top-width:1px}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index=\"0\"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{flex:1;height:100%;display:flex;overflow:hidden}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{background-position:0;background-repeat:no-repeat;background-size:16px;justify-content:center;align-items:center;width:16px;height:22px;padding-right:6px;display:flex}.quick-input-list .quick-input-list-rows{text-overflow:ellipsis;flex-direction:column;flex:1;height:100%;margin-left:5px;display:flex;overflow:hidden}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{align-items:center;display:flex}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;text-overflow:ellipsis;line-height:normal;overflow:hidden}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{background-color:unset;font-weight:700;color:var(--vscode-list-highlightForeground)!important}.quick-input-list .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight{color:var(--vscode-list-focusHighlightForeground)!important}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{flex:0;display:flex;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.passive-focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:0 0}.quick-input-list .quick-input-list-separator-as-item{padding:4px 6px;font-size:12px}.quick-input-list .quick-input-list-separator-as-item .label-name{font-weight:600}.quick-input-list .quick-input-list-separator-as-item .label-description{opacity:1!important}.quick-input-list .monaco-tree-sticky-row .quick-input-list-entry.quick-input-list-separator-as-item.quick-input-list-separator-border{border-top-style:none}.quick-input-list .monaco-tree-sticky-row{padding:0 5px}.quick-input-list .monaco-tl-twistie{display:none!important}.extension-editor .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.markers-panel .marker-icon .codicon.codicon-error,.markers-panel .marker-icon.error,.monaco-editor .zone-widget .codicon.codicon-error,.preferences-editor .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.extension-editor .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.markers-panel .marker-icon .codicon.codicon-warning,.markers-panel .marker-icon.warning,.monaco-editor .zone-widget .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.extension-editor .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.markers-panel .marker-icon .codicon.codicon-info,.markers-panel .marker-icon.info,.monaco-editor .zone-widget .codicon.codicon-info,.preferences-editor .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}", Kr = [];
for (let e = 0; e < 256; ++e) Kr.push((e + 256).toString(16).slice(1));
function qr(e, t = 0) {
return (Kr[e[t + 0]] + Kr[e[t + 1]] + Kr[e[t + 2]] + Kr[e[t + 3]] + "-" + Kr[e[t + 4]] + Kr[e[t + 5]] + "-" + Kr[e[t + 6]] + Kr[e[t + 7]] + "-" + Kr[e[t + 8]] + Kr[e[t + 9]] + "-" + Kr[e[t + 10]] + Kr[e[t + 11]] + Kr[e[t + 12]] + Kr[e[t + 13]] + Kr[e[t + 14]] + Kr[e[t + 15]]).toLowerCase();
}
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/rng.js
var Jr = /* @__PURE__ */ new Uint8Array(16);
function Yr() {
return crypto.getRandomValues(Jr);
}
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/v4.js
function Xr(e, t, n) {
return !t && !e && crypto.randomUUID ? crypto.randomUUID() : Zr(e, t, n);
}
function Zr(e, t, n) {
e ||= {};
let r = e.random ?? e.rng?.() ?? Yr();
if (r.length < 16) throw Error("Random bytes length must be >= 16");
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
for (let e = 0; e < 16; ++e) t[n + e] = r[e];
return t;
}
return qr(r);
}
// src/lib/collections.ts
var Qr = (e, t) => {
Promise.resolve(e).then((e) => {
e?.id && t(e.id);
});
}, $r = (e) => {
let [t, n] = H(e.defaultCollections ?? []), r = V(t), i = R((t) => {
r.current = t, n(t), e.onCollectionsChange?.(t);
}, [e]), a = R((e, t) => {
i(r.current.map((n) => n.id === e ? {
...n,
id: t
} : n));
}, [i]), o = R((t, n, a) => {
i(r.current.map((e) => e.id === t ? {
...e,
operations: e.operations.map((e) => e.id === n ? {
...e,
id: a
} : e)
} : e)), e.onOperationIdChange?.(n, a);
}, [i, e]);
return {
collections: t,
addCollection: R((n) => {
let r = {
...n,
id: Xr(),
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
operations: n.operations?.map((e) => ({
...e,
createdAt: (/* @__PURE__ */ new Date()).toISOString()
})) ?? []
};
return i([...t, r]), Promise.resolve(e.onCollectionCreate?.(r)).then((t) => {
let n = t?.id ?? r.id;
t?.id && a(r.id, t.id);
let i = {
...r,
id: n
};
for (let t of r.operations) Qr(e.onCollectionOperationCreate?.(i, t), (e) => o(n, t.id, e));
}), r;
}, [
t,
e,
i,
a,
o
]),
addOperationToCollection: R((n, r) => {
let a = {
...r,
createdAt: (/* @__PURE__ */ new Date()).toISOString()
}, s = t.map((e) => e.id === n ? {
...e,
operations: [...e.operations, a]
} : e);
i(s);
let c = s.find((e) => e.id === n);
c && (e.onCollectionUpdate?.(c), Qr(e.onCollectionOperationCreate?.(c, a), (e) => o(n, a.id, e)));
}, [
t,
e,
i,
o
]),
deleteCollection: R((n) => {
let r = t.find((e) => e.id === n), a = t.filter((e) => e.id !== n);
i(a), r && e.onCollectionDelete?.(r);
}, [
t,
e,
i
]),
deleteOperationFromCollection: R((n, r) => {
let a, o = t.map((e) => e.id === n ? {
...e,
operations: e.operations.filter((e) => e.id !== r || (a = e, !1))
} : e);
i(o);
let s = o.find((e) => e.id === n);
s && (e.onCollectionUpdate?.(s), a && e.onCollectionOperationDelete?.(s, a));
}, [
t,
e,
i
]),
updateCollection: R((n, r) => {
let a = t.map((e) => e.id === n ? {
...e,
...r
} : e);
i(a);
let o = a.find((e) => e.id === n);
o && e.onCollectionUpdate?.(o);
}, [
t,
e,
i
]),
updateOperationInCollection: R((n, r, a) => {
let o, s = t.map((e) => e.id === n ? {
...e,
operations: e.operations.map((e) => e.id === r ? (o = {
...e,
...a
}, o) : e)
} : e);
i(s);
let c = s.find((e) => e.id === n);
c && (e.onCollectionUpdate?.(c), o && e.onCollectionOperationUpdate?.(c, o));
}, [
t,
e,
i
])
};
}, ei = Object.freeze({
major: 17,
minor: 1,
patch: 0,
preReleaseTag: null
});
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/jsutils/isAsyncIterable.mjs
function ti(e) {
return typeof e?.[Symbol.asyncIterator] == "function";
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/error/locatedError.mjs
function ni(e, t, n) {
let r = d(e);
return ri(r) ? r : new P(r.message, {
nodes: r.nodes ?? t,
source: r.source,
positions: r.positions,
path: n,
originalError: r
});
}
function ri(e) {
return Array.isArray(e.path);
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/utilities/getOperationAST.mjs
function ii(e, t) {
let n = null;
for (let r of e.definitions) if (r.kind === "OperationDefinition") {
if (t == null) {
if (n) return null;
n = r;
} else if (r.name?.value === t) return r;
}
return n;
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/buildResolveInfo.mjs
function ai(e, t, n, r, i, a, o) {
let { schema: s, fragmentDefinitions: c, rootValue: l, operation: u, variableValues: d } = e;
return {
fieldName: t.name,
fieldNodes: n,
returnType: t.type,
parentType: r,
path: i,
schema: s,
fragments: c,
rootValue: l,
operation: u,
variableValues: d,
getAbortSignal: a,
getAsyncHelpers: o
};
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/jsutils/promiseWithResolvers.mjs
function oi() {
let e, t;
return {
promise: new Promise((n, r) => {
e = n, t = r;
}),
resolve: e,
reject: t
};
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/cancellablePromise.mjs
function si(e) {
let { promise: t, resolve: n, reject: r } = oi(), i = !1, a = (e) => {
i || (i = !0, n(e));
}, o = (e) => {
i || (i = !0, r(e));
};
return e.then(a, o), {
promise: t,
abort(e) {
o(e);
}
};
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/AsyncWorkTracker.mjs
var ci = class {
constructor() {
this.pendingAsyncWork = /* @__PURE__ */ new Set();
}
add(e) {
let t = this.pendingAsyncWork, n = e.then(() => {
t.delete(n);
}, () => {
t.delete(n);
});
t.add(n);
}
addValues(e) {
for (let t of e) $e(t) && this.add(t);
}
wait() {
if (this.pendingAsyncWork.size !== 0) return this.waitForPendingAsyncWork();
}
promiseAllTrackOnReject(e) {
let t = Promise.all(e);
return t.then(void 0, () => {
this.addValues(e);
}), t;
}
async waitForPendingAsyncWork() {
for (; this.pendingAsyncWork.size > 0;) await Promise.allSettled(Array.from(this.pendingAsyncWork));
}
};
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/createSharedExecutionContext.mjs
function li(e) {
let t = new ci(), n, r = (e) => t.promiseAllTrackOnReject(e);
return {
asyncWorkTracker: t,
getAbortSignal: () => e,
getAsyncHelpers: () => n ??= {
promiseAll: r,
track: (e) => t.addValues(e)
},
promiseAll: r
};
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/jsutils/memoize2.mjs
function ui(e) {
let t;
return function(n, r) {
t ??= /* @__PURE__ */ new WeakMap();
let i = t.get(n);
i === void 0 && (i = /* @__PURE__ */ new WeakMap(), t.set(n, i));
let a = i.get(r);
return a === void 0 && (a = e(n, r), i.set(r, a)), a;
};
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/jsutils/memoize3.mjs
function di(e) {
let t;
return function(n, r, i) {
t ??= /* @__PURE__ */ new WeakMap();
let a = t.get(n);
a === void 0 && (a = /* @__PURE__ */ new WeakMap(), t.set(n, a));
let o = a.get(r);
o === void 0 && (o = /* @__PURE__ */ new WeakMap(), a.set(r, o));
let s = o.get(i);
return s === void 0 && (s = e(n, r, i), o.set(i, s)), s;
};
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/jsutils/promiseForObject.mjs
function fi(e, t) {
let n = Object.keys(e);
return t(Object.values(e)).then((e) => {
let t = Object.create(null);
for (let r = 0; r < n.length; ++r) t[n[r]] = e[r];
return t;
});
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/jsutils/promiseReduce.mjs
function pi(e, t, n) {
let r = n;
for (let n of e) r = M(r) ? r.then((e) => t(e, n)) : t(r, n);
return r;
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/AbortedGraphQLExecutionError.mjs
var mi = class extends Error {
constructor(e, t) {
super(hi(e), { cause: e }), this.name = "AbortedGraphQLExecutionError", this.abortedResult = t;
}
get [Symbol.toStringTag]() {
return "AbortedGraphQLExecutionError";
}
};
function hi(e) {
return e instanceof Error || typeof e == "object" && e && "message" in e && typeof e.message == "string" ? e.message : String(e);
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/collectIteratorPromises.mjs
function gi(e) {
let t = [];
try {
for (;;) {
let n = e.next();
if (n.done) return t;
$e(n.value) && t.push(n.value);
}
} catch {
return t;
}
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/getStreamUsage.mjs
function _i(e, t) {
let { operation: n, variableValues: r } = e, i = Re(ve, t[0].node, r, t[0].fragmentVariableValues);
if (!i || i.if === !1) return;
typeof i.initialCount != "number" && c(!1, "initialCount must be a number"), i.initialCount >= 0 || c(!1, "initialCount must be a positive integer"), n.operation === Pt.SUBSCRIPTION && c(!1, "`@stream` directive not supported on subscription operations. Disable `@stream` by setting the `if` argument to `false`.");
let a = t.map((e) => ({
node: e.node,
deferUsage: void 0,
fragmentVariableValues: e.fragmentVariableValues
}));
return {
initialCount: i.initialCount,
label: typeof i.label == "string" ? i.label : void 0,
fieldDetailsList: a
};
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/hooks.mjs
function vi(e, t) {
try {
e?.(t);
} catch {}
}
function yi(e, t, n) {
let r = t.asyncWorkTracker.wait();
r === void 0 ? vi(n, { validatedExecutionArgs: e }) : r.then(() => {
vi(n, { validatedExecutionArgs: e });
}).catch(() => void 0);
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/returnIteratorCatchingErrors.mjs
async function bi(e) {
try {
await e.return?.();
} catch {}
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/Executor.mjs
var xi = di((e, t, n) => {
let { schema: r, fragments: i, variableValues: a, hideSuggestions: o } = e;
return wt(r, i, a, t, n, o);
}), Si = ui((e, t) => _i(e, t)), Ci = class {
constructor() {
this._errorPositions = /* @__PURE__ */ new Set(), this._errors = [];
}
get errors() {
return this._errors;
}
add(e, t) {
this.hasNulledPosition(t) || (this._errorPositions.add(t), this._errors.push(e));
}
hasNulledPosition(e) {
let t = e;
for (; t !== void 0;) {
if (this._errorPositions.has(t)) return !0;
t = t.prev;
}
return this._errorPositions.has(void 0);
}
}, wi = /* @__PURE__ */ Error("This operation was aborted"), Ti = class {
constructor(e, t) {
this.validatedExecutionArgs = e, this.aborted = !1, this.abortReason = wi, this.collectedErrors = new Ci(), t === void 0 ? (this.resolverAbortController = new AbortController(), this.sharedExecutionContext = li(this.resolverAbortController.signal)) : this.sharedExecutionContext = t;
let { getAbortSignal: n, getAsyncHelpers: r, promiseAll: i } = this.sharedExecutionContext;
this.getAbortSignal = n, this.getAsyncHelpers = r, this.promiseAll = i;
}
executeRootSelectionSet(e) {
return Xe(te) ? k(te, this.buildExecuteContextFromValidatedArgs(this.validatedExecutionArgs), () => this.executeRootSelectionSetImpl(e)) : this.executeRootSelectionSetImpl(e);
}
buildExecuteContextFromValidatedArgs(e) {
return {
schema: e.schema,
document: e.document,
operation: e.operation,
rawVariableValues: e.rawVariableValues,
operationName: e.operation.name?.value,
operationType: e.operation.operation
};
}
executeRootSelectionSetImpl(e) {
let t = this.validatedExecutionArgs.externalAbortSignal, n;
if (t) {
t.throwIfAborted();
let e = () => {
this.abort(t.reason);
};
n = () => t.removeEventListener("abort", e), t.addEventListener("abort", e);
}
let r = () => {
n?.();
}, i;
try {
let { schema: t, fragments: n, rootValue: a, operation: o, variableValues: s, hideSuggestions: c } = this.validatedExecutionArgs, { operation: l, selectionSet: u } = o, d = t.getRootType(l);
if (d == null) throw new P(`Schema is not configured to execute ${l} operation.`, { nodes: o });
let { groupedFieldSet: f, newDeferUsages: p } = tt(t, n, s, d, u, c);
if (i = this.executeCollectedRootFields(d, a, f, e ?? l === Pt.MUTATION, p), M(i)) {
let e = i.then((e) => (r(), this.buildResponse(e)), (e) => (r(), this.collectedErrors.add(jt(e), void 0), this.buildResponse(null)));
this.sharedExecutionContext.asyncWorkTracker.add(e);
let { promise: t, abort: n } = si(e.then((e) => this.finish(e)));
return this.abortResultPromise = () => {
n(this.createAbortedExecutionError(e));
}, this.aborted && this.abortResultPromise(), t;
}
r();
} catch (e) {
return r(), this.collectedErrors.add(jt(e), void 0), this.finish(this.buildResponse(null));
}
return this.finish(this.buildResponse(i));
}
abort(e) {
this.aborted || (this.aborted = !0, e !== void 0 && (this.abortReason = e), this.abortResultPromise?.(), this.resolverAbortController?.abort(this.abortReason));
}
finish(e) {
if (this.aborted) throw this.createAbortedExecutionError(e);
return this.aborted = !0, e;
}
createAbortedExecutionError(e) {
return new mi(this.abortReason, e);
}
getFinishSharedExecution() {
let e = this.resolverAbortController, t = this.validatedExecutionArgs.hooks?.asyncWorkFinished;
if (t === void 0) return () => e?.abort();
let n = this.validatedExecutionArgs, r = this.sharedExecutionContext;
return () => {
e?.abort(), yi(n, r, t);
};
}
buildResponse(e) {
this.getFinishSharedExecution()();
let t = this.collectedErrors.errors;
return t.length ? {
errors: t,
data: e
} : { data: e };
}
executeCollectedRootFields(e, t, n, r, i) {
return this.executeRootGroupedFieldSet(e, t, n, r, void 0);
}
executeRootGroupedFieldSet(e, t, n, r, i) {
return r ? this.executeFieldsSerially(e, t, void 0, n, i) : this.executeFields(e, t, void 0, n, i);
}
executeFieldsSerially(e, t, r, i, a) {
let o = Xe(n) ? n : void 0;
return pi(i, (i, [s, c]) => {
if (this.aborted) throw Error("Aborted!");
let l = Ye(r, s, e.name), u = this.executeField(e, t, c, l, a, o);
return u === void 0 ? i : M(u) ? u.then((e) => (i[s] = e, o = Xe(n) ? n : void 0, i)) : (i[s] = u, i);
}, Object.create(null));
}
executeFields(e, t, r, i, a) {
let o = Object.create(null), s = !1, c = Xe(n) ? n : void 0;
try {
for (let [n, l] of i) {
let i = Ye(r, n, e.name), u = this.executeField(e, t, l, i, a, c);
u !== void 0 && (o[n] = u, M(u) && (s = !0));
}
} catch (e) {
throw s && this.sharedExecutionContext.asyncWorkTracker.addValues(Object.values(o)), e;
}
return s ? fi(o, this.promiseAll) : o;
}
executeField(e, t, n, r, i, a) {
let o = this.validatedExecutionArgs, { schema: s, contextValue: c, variableValues: l, hideSuggestions: u } = o, d = n[0], f = d.node, p = f.name.value, m = s.getField(e, p);
if (!m) return;
let h = m.type, g = m.resolve ?? o.fieldResolver;
if (a !== void 0) {
let e = g;
g = (t, n, r, i) => k(a, this.buildResolveContext(n, i, m.resolve === void 0), () => e(t, n, r, i));
}
let _ = ai(o, m, Ei(n), e, r, this.getAbortSignal, this.getAsyncHelpers);
try {
let e = Ne(m, f, l, d.fragmentVariableValues, u), a = g(t, e, c, _);
if ($e(a)) return this.completePromisedValue(h, n, _, r, a, i);
let o = this.completeValue(h, n, _, r, a, i);
return M(o) ? o.then(void 0, (e) => (this.handleFieldError(e, h, n, r), null)) : o;
} catch (e) {
return this.handleFieldError(e, h, n, r), null;
}
}
buildResolveContext(e, t, n) {
let r;
return {
fieldName: t.fieldName,
alias: String(t.path.key),
parentType: t.parentType.name,
fieldType: String(t.returnType),
args: e,
isDefaultResolver: n,
get fieldPath() {
return r ??= Ee(t.path).join("."), r;
}
};
}
handleFieldError(e, t, n, r) {
let a = ni(e, Ei(n), Ee(r));
if (this.validatedExecutionArgs.errorPropagation && i(t)) throw a;
this.collectedErrors.add(a, r);
}
completeValue(e, t, n, a, o, s) {
if (o instanceof Error) throw o;
if (i(e)) {
let r = this.completeValue(e.ofType, t, n, a, o, s);
if (r === null) throw Error(`Cannot return null for non-nullable field ${n.parentType}.${n.fieldName}.`);
return r;
}
if (o == null) return null;
if (ne(e)) return this.completeListValue(e, t, n, a, o, s);
if (f(e)) return this.completeLeafValue(e, o);
if (Ft(e)) return this.completeAbstractValue(e, t, n, a, o, s);
if (A(e)) return this.completeObjectValue(e, t, n, a, o, s);
c(!1, "Cannot complete value of unexpected output type: " + r(e));
}
async completePromisedValue(e, t, n, r, i, a) {
try {
let o = await i;
if (this.aborted) throw Error("Aborted!");
let s = this.completeValue(e, t, n, r, o, a);
return M(s) && (s = await s), s;
} catch (n) {
return this.handleFieldError(n, e, t, r), null;
}
}
async completeAsyncIterableValue(e, t, n, r, i, a) {
let o = typeof r.key == "number" ? void 0 : Si(this.validatedExecutionArgs, t), s = !1, c = [], l = i[Symbol.asyncIterator](), u = 0, d;
try {
for (; !(o?.initialCount === u && this.handleStream(u, r, {
handle: l,
isAsync: !0
}, o, n, e));) {
let i = Ye(r, u, void 0);
try {
d = await l.next();
} catch (e) {
throw ni(e, Ei(t), Ee(r));
}
if (this.aborted || d.done) break;
let o = d.value;
this.completeMaybePromisedListItemValue(o, c, e, t, n, i, a) && (s = !0), u++;
}
} catch (e) {
throw this.sharedExecutionContext.asyncWorkTracker.add(bi(l)), s && this.sharedExecutionContext.asyncWorkTracker.addValues(c), e;
}
if (this.aborted) throw d?.done || this.sharedExecutionContext.asyncWorkTracker.add(bi(l)), Error("Aborted!");
return s ? this.promiseAll(c) : c;
}
handleStream(e, t, n, r, i, a) {
return !1;
}
completeListValue(e, t, n, r, i, a) {
let o = e.ofType;
if (ti(i)) return this.completeAsyncIterableValue(o, t, n, r, i, a);
if (!ce(i)) throw new P(`Expected Iterable, but did not find one for field "${n.parentType}.${n.fieldName}".`);
return this.completeIterableValue(o, t, n, r, i, a);
}
completeIterableValue(e, t, n, r, i, a) {
let o = typeof r.key == "number" ? void 0 : Si(this.validatedExecutionArgs, t), s = !1, c = [], l = 0, u = i[Symbol.iterator]();
try {
for (; !(o?.initialCount === l && this.handleStream(l, r, { handle: u }, o, n, e));) {
let i = u.next();
if (i.done) break;
let o = i.value, d = Ye(r, l, void 0);
this.completeMaybePromisedListItemValue(o, c, e, t, n, d, a) && (s = !0), l++;
}
} catch (e) {
let t = this.sharedExecutionContext.asyncWorkTracker;
throw s && t.addValues(c), t.addValues(gi(u)), e;
}
return s ? this.promiseAll(c) : c;
}
completeMaybePromisedListItemValue(e, t, n, r, i, a, o) {
return $e(e) ? (t.push(this.completePromisedListItemValue(e, n, r, i, a, o)), !0) : !!this.completeListItemValue(e, t, n, r, i, a, o);
}
completeListItemValue(e, t, n, r, i, a, o) {
try {
let s = this.completeValue(n, r, i, a, e, o);
if (M(s)) return t.push(s.then(void 0, (e) => (this.handleFieldError(e, n, r, a), null))), !0;
t.push(s);
} catch (e) {
this.handleFieldError(e, n, r, a), t.push(null);
}
return !1;
}
async completePromisedListItemValue(e, t, n, r, i, a) {
try {
let o = await e;
if (this.aborted) throw Error("Aborted!");
let s = this.completeValue(t, n, r, i, o, a);
return M(s) && (s = await s), s;
} catch (e) {
return this.handleFieldError(e, t, n, i), null;
}
}
completeLeafValue(e, t) {
let n = e.coerceOutputValue(t);
if (n == null) throw Error(`Expected \`${r(e)}.coerceOutputValue(${r(t)})\` to return non-nullable value, returned: ${r(n)}`);
return n;
}
completeAbstractValue(e, t, n, r, i, a) {
let o = this.validatedExecutionArgs, { schema: s, contextValue: c } = o, l = (e.resolveType ?? o.typeResolver)(i, c, n, e);
return $e(l) ? l.then((o) => {
if (this.aborted) throw Error("Aborted!");
return this.completeObjectValue(this.ensureValidRuntimeType(o, s, e, t, n, i), t, n, r, i, a);
}) : this.completeObjectValue(this.ensureValidRuntimeType(l, s, e, t, n, i), t, n, r, i, a);
}
ensureValidRuntimeType(e, t, n, i, a, o) {
if (e == null) throw new P(`Abstract type "${n}" must resolve to an Object type at runtime for field "${a.parentType}.${a.fieldName}". Either the "${n}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`, { nodes: Ei(i) });
if (typeof e != "string") throw new P(`Abstract type "${n}" must resolve to an Object type at runtime for field "${a.parentType}.${a.fieldName}" with value ${r(o)}, received "${r(e)}", which is not a valid Object type name.`);
let s = t.getType(e);
if (s == null) throw new P(`Abstract type "${n}" was resolved to a type "${e}" that does not exist inside the schema.`, { nodes: Ei(i) });
if (!A(s)) throw new P(`Abstract type "${n}" was resolved to a non-object type "${e}".`, { nodes: Ei(i) });
if (!t.isSubType(n, s)) throw new P(`Runtime Object type "${s}" is not a possible type for "${n}".`, { nodes: Ei(i) });
return s;
}
completeObjectValue(e, t, n, r, i, a) {
if (e.isTypeOf) {
let o = e.isTypeOf(i, this.validatedExecutionArgs.contextValue, n);
if ($e(o)) return o.then((n) => {
if (this.aborted) throw Error("Aborted!");
if (!n) throw this.invalidReturnTypeError(e, i, t);
return this.collectAndExecuteSubfields(e, t, r, i, a);
});
if (!o) throw this.invalidReturnTypeError(e, i, t);
}
return this.collectAndExecuteSubfields(e, t, r, i, a);
}
invalidReturnTypeError(e, t, n) {
return new P(`Expected value of type "${e}" but got: ${r(t)}.`, { nodes: Ei(n) });
}
collectAndExecuteSubfields(e, t, n, r, i) {
let { groupedFieldSet: a, newDeferUsages: o } = xi(this.validatedExecutionArgs, e, t);
return this.executeCollectedSubfields(e, r, n, a, o, i);
}
executeCollectedSubfields(e, t, n, r, i, a) {
return this.executeFields(e, t, n, r, void 0);
}
};
function Ei(e) {
return e.map((e) => e.node);
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/jsutils/memoize1.mjs
function Di(e) {
let t;
return function(n) {
t ??= /* @__PURE__ */ new WeakMap();
let r = t.get(n);
return r === void 0 && (r = e(n), t.set(n, r)), r;
};
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/jsutils/isSameSet.mjs
function Oi(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/incremental/buildExecutionPlan.mjs
function ki(e, t = /* @__PURE__ */ new Set()) {
let n = /* @__PURE__ */ new Map(), r = new Ae();
for (let [i, a] of e) {
let e = Ai(a);
Oi(e, t) ? n.set(i, a) : r.getOrInsertComputed(e, () => /* @__PURE__ */ new Map()).set(i, a);
}
return {
groupedFieldSet: n,
newGroupedFieldSets: r
};
}
function Ai(e) {
let t = /* @__PURE__ */ new Set();
for (let n of e) {
let e = n.deferUsage;
if (e === void 0) return t.clear(), t;
t.add(e);
}
for (let e of t) {
let n = e.parentDeferUsage;
for (; n !== void 0;) {
if (t.has(n)) {
t.delete(e);
break;
}
n = n.parentDeferUsage;
}
}
return t;
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/incremental/Computation.mjs
var ji = class {
constructor(e, t) {
this._fn = e, this._onAbort = t;
}
prime() {
if (this._maybePromise) return this._maybePromise;
try {
let e = this._fn();
M(e) ? (this._maybePromise = {
status: "pending",
promise: e
}, e.then((e) => {
this._maybePromise = {
status: "fulfilled",
value: e
};
}, (e) => {
this._maybePromise = {
status: "rejected",
reason: e
};
})) : this._maybePromise = {
status: "fulfilled",
value: e
};
} catch (e) {
this._maybePromise = {
status: "rejected",
reason: e
};
}
return this._maybePromise;
}
result() {
let e = this.prime();
switch (e.status) {
case "fulfilled": return e.value;
case "rejected": throw e.reason;
case "pending": return e.promise;
}
}
abort(e) {
let t = this._maybePromise;
if (!t) this._maybePromise = {
status: "rejected",
reason: e
};
else if (t.status === "pending" && (this._maybePromise = {
status: "rejected",
reason: e
}, this._onAbort)) return this._onAbort(e);
}
}, Mi = Symbol.asyncDispose ?? Symbol.for("Symbol.asyncDispose");
function Ni(e, t, n = t) {
let r = !1, i = !1, a = (e) => {
if (!(r || i)) return i = !0, Pi(e);
};
return {
[Symbol.asyncIterator]() {
return this;
},
next() {
let t = e.next();
return t.then((e) => {
e.done && (r = !0);
}).catch(() => void 0), t;
},
async return() {
return await a(t), e.return();
},
async throw(t) {
return await a(() => n(t)), e.throw(t);
},
async [Mi]() {
await a(t), typeof e[Mi] == "function" && await e[Mi]();
}
};
}
function Pi(e) {
try {
let t = e();
if (M(t)) return t.catch(() => {});
} catch {}
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/mapAsyncIterable.mjs
function Fi(e, t) {
let n = e[Symbol.asyncIterator](), r = n.return?.bind(n), i = n.throw?.bind(n), a = r ? () => Ii(r) : () => Promise.resolve(), o = i ? (e) => Ii(() => i(e)) : a;
return Ni(Li(e, t), a, o);
}
async function Ii(e) {
try {
await e();
} catch {}
}
async function* Li(e, t) {
for await (let n of e) {
let e = t(n);
M(e) ? yield await e : yield e;
}
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/incremental/Queue.mjs
var Ri = class {
constructor(e, t = 1) {
this._backlog = 0, this._waiters = [], this._entries = [], this._isStopped = !1, this._stopRequested = !1, this._stopCleanupCallbacks = [], this._batchRequests = /* @__PURE__ */ new Set(), this._capacity = this._normalizeCapacity(t);
let { promise: n, resolve: r } = oi();
this._resolveStarted = r;
try {
let t = e({
push: this._push.bind(this),
stop: this._stop.bind(this),
onStop: this._onStop.bind(this),
started: n
});
M(t) && t.catch(this._stop.bind(this));
} catch (e) {
let t = this._stop(e);
M(t) && t.catch(() => void 0);
}
}
subscribe(e = (e) => Array.from(e)) {
return Ni(this._iteratorLoop(e), () => this.cancel(), this.abort.bind(this));
}
cancel() {
return this._stopRequested ? this._stopCompletion : this._terminate(void 0, () => {
this._isStopped = !0, this._batchRequests.forEach((e) => e.resolve(void 0)), this._batchRequests.clear();
});
}
abort(e) {
return this._stopRequested ? this._stopCompletion : this._terminate(e, () => {
this._isStopped = !0, this._batchRequests.size ? (this._batchRequests.forEach((t) => t.reject(e)), this._batchRequests.clear()) : this._entries.push({
kind: "item",
settled: {
status: "rejected",
reason: e
}
});
});
}
async forEachBatch(e) {
let t = this.subscribe(async (t) => {
let { promise: n, resolve: r } = oi(), i = (function* () {
yield* t, r();
})();
await Promise.all([e(i), n]);
});
for await (let e of t);
}
setCapacity(e) {
this._capacity = this._normalizeCapacity(e), this._flush();
}
getCapacity() {
return this._capacity;
}
isStopped() {
return this._isStopped;
}
_normalizeCapacity(e) {
return Math.max(1, Math.floor(e));
}
_flush() {
for (; this._waiters.length > 0 && this._backlog < this._capacity;) this._waiters.shift()?.();
}
_reserve() {
if (this._backlog += 1, this._backlog < this._capacity) return;
let { promise: e, resolve: t } = oi();
return this._waiters.push(t), e;
}
_release() {
this._backlog > 0 && --this._backlog, this._flush();
}
_onStop(e) {
if (this._stopRequested) throw Error("Cannot register onStop cleanup after stop has been requested.");
this._stopCleanupCallbacks.push(e);
}
_runStopCleanup(e, t) {
this._stopRequested = !0;
let n = this._stopCleanupCallbacks.flatMap((t) => {
try {
let n = t(e);
return M(n) ? [n] : [];
} catch {
return [];
}
}), r = n.length > 0 ? Promise.allSettled(n).then(() => void 0) : void 0;
if (M(r)) return this._stopCompletion = r.then(t, t).then(() => void 0), this._stopCompletion;
t();
}
async *_iteratorLoop(e) {
this._resolveStarted();
let t;
for (; t = await this._waitForNextBatch();) {
let n = e(t);
M(n) && (n = await n), n !== void 0 && (yield n);
}
}
_waitForNextBatch() {
let { promise: e, resolve: t, reject: n } = oi();
return this._batchRequests.add({
resolve: t,
reject: n
}), this._deliverBatchIfReady(), e;
}
_push(e) {
if (this._stopRequested) return;
let t = this._reserve();
if (M(e)) {
let t = { kind: "item" };
this._entries.push(t), e.then((e) => {
t.settled = {
status: "fulfilled",
value: e
}, this._deliverBatchIfReady();
}, (e) => {
t.settled = {
status: "rejected",
reason: e
}, this._deliverBatchIfReady();
});
} else this._entries.push({
kind: "item",
settled: {
status: "fulfilled",
value: e
}
}), this._deliverBatchIfReady();
return t;
}
_terminate(e, t) {
for (let e of this._entries) e.kind === "item" && this._release();
return this._entries.length = 0, this._runStopCleanup(e, t);
}
_stop(e) {
if (this._stopRequested) return this._stopCompletion;
let t = this._runStopCleanup(e, () => {
if (e === void 0) {
if (this._entries.length === 0) {
this._isStopped = !0, this._deliverBatchIfReady();
return;
}
this._entries.push({ kind: "stop" }), this._deliverBatchIfReady();
} else this._entries.push({
kind: "item",
settled: {
status: "rejected",
reason: e
}
}), this._entries.push({ kind: "stop" }), this._deliverBatchIfReady();
});
return M(t) && t.catch(() => void 0), t;
}
_deliverBatchIfReady() {
if (!this._batchRequests.size) return;
let e = this._entries[0], t = this._batchRequests;
if (e !== void 0) {
e.kind === "stop" && c(!1);
let n = e.settled;
if (n !== void 0) {
if (n.status === "fulfilled") {
this._batchRequests = /* @__PURE__ */ new Set(), t.forEach((e) => e.resolve(this._drainBatch()));
return;
}
this._entries.shift(), this._release(), this._isStopped = !0, this._batchRequests = /* @__PURE__ */ new Set(), t.forEach((e) => e.reject(n.reason));
}
} else this._isStopped && (this._batchRequests = /* @__PURE__ */ new Set(), t.forEach((e) => e.resolve(void 0)));
}
*_drainBatch() {
for (;;) {
let e = this._entries[0];
if (e === void 0) return;
if (e.kind === "stop") {
this._isStopped = !0, this._entries.shift();
return;
}
let t = e.settled;
if (t === void 0 || t.status === "rejected") return;
this._entries.shift(), this._release(), yield t.value;
}
}
};
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/incremental/WorkQueue.mjs
function zi(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a, o, { newGroups: s, newStreams: l } = h(e), u = b(s);
for (let e of u) t.add(e);
for (let e of l) n.add(e);
return {
initialGroups: u,
initialStreams: l,
events: new Ri(({ push: e, stop: r, onStop: i, started: s }) => {
a = e, o = r, s.then(() => {
for (let e of t) S(e);
for (let e of n) w(e);
}), i((e) => d(e));
}, 1).subscribe((e) => T(e))
};
function d(e) {
let r = [];
for (let n of t) f(n, e, r);
for (let t of n) m(t, e, r);
if (r.length > 0) return Promise.allSettled(r).then(() => void 0);
}
function f(e, t, n) {
let i = r.get(e);
if (i) {
for (let e of i.tasks) p(e, t, n);
for (let e of i.childGroups) f(e, t, n);
}
}
function p(e, t, n) {
let r = e.computation.abort(t);
M(r) && n.push(r);
let a = i.get(e);
if (a) for (let e of a.childStreams) m(e, t, n);
}
function m(e, t, n) {
let r = e.queue.abort(t);
M(r) && n.push(r);
}
function h(e, t) {
if (!e) return {
newGroups: [],
newStreams: []
};
let { groups: n, tasks: r, streams: i } = e, a = n ? g(n, t) : [];
if (r) for (let e of r) v(e);
return {
newGroups: a,
newStreams: i ? y(i, t) : []
};
}
function g(e, t) {
let n = new Set(e), r = /* @__PURE__ */ new Set(), i = [];
for (let a of e) _(a, n, i, r, t);
return i;
}
function _(e, t, n, i, a) {
if (i.has(e)) return;
i.add(e);
let o = e.parent;
if (o !== void 0 && (t.has(o) && _(o, t, n, i, a), !r.has(o))) return;
let s = {
childGroups: [],
tasks: /* @__PURE__ */ new Set(),
pending: 0
};
r.set(e, s), a === void 0 && !o ? n.push(e) : o && r.get(o)?.childGroups.push(e);
}
function v(e) {
for (let n of e.groups) {
let i = r.get(n);
i && (i.tasks.add(e), i.pending++, t.has(n) && C(e));
}
}
function y(e, t) {
if (!t) return e;
let n = i.get(t);
return n && n.childStreams.push(...e), [];
}
function b(e, t = []) {
for (let n of e) {
let e = r.get(n);
e && (e.tasks.size === 0 ? (r.delete(n), b(e.childGroups, t)) : t.push(n));
}
return t;
}
function x(e, i) {
let a = [], o = [...e], s = [...i];
for (let e of o) {
t.add(e), S(e);
let n = r.get(e);
n && D(e, n, a, o, s);
}
for (let e of s) n.add(e), w(e);
return a;
}
function S(e) {
let t = r.get(e);
if (t) for (let e of t.tasks) C(e);
}
function C(e) {
let t = i.has(e);
t || i.set(e, {
value: void 0,
childStreams: []
});
try {
let n = e.computation.result();
if (t) return;
M(n) ? n.then((t) => {
a({
kind: "TASK_SUCCESS",
task: e,
result: t
});
}, (t) => {
a({
kind: "TASK_FAILURE",
task: e,
error: t
});
}) : a({
kind: "TASK_SUCCESS",
task: e,
result: n
});
} catch (t) {
a({
kind: "TASK_FAILURE",
task: e,
error: t
});
}
}
async function w(e) {
try {
await e.queue.forEachBatch(async (t) => {
let n = a({
kind: "STREAM_ITEMS",
stream: e,
items: t
});
M(n) && await n;
}), a({
kind: "STREAM_SUCCESS",
stream: e
});
} catch (t) {
a({
kind: "STREAM_FAILURE",
stream: e,
error: t
});
}
}
function T(e) {
let r = [];
for (let t of e) switch (t.kind) {
case "TASK_SUCCESS":
r.push(...E(t));
break;
case "TASK_FAILURE":
r.push(...O(t));
break;
case "STREAM_ITEMS":
r.push(...k(t));
break;
case "STREAM_SUCCESS":
n.has(t.stream) && (n.delete(t.stream), r.push(t));
break;
case "STREAM_FAILURE": n.delete(t.stream), r.push(t);
}
return t.size === 0 && n.size === 0 && (o(), r.push({ kind: "WORK_QUEUE_TERMINATION" })), r.length > 0 ? r : void 0;
}
function E(e) {
let { task: t, result: n } = e, { value: a, work: o } = n, s = i.get(t);
if (!s) return [];
s.value = a, h(o, t);
let c = [], l = [], u = [];
for (let e of t.groups) {
let t = r.get(e);
t && (t.pending--, D(e, t, c, l, u));
}
return [...c, ...x(l, u)];
}
function D(e, n, r, i, a) {
if (t.has(e) && n.pending === 0) {
let { groupValuesEvent: t, groupSuccessEvent: o, newGroups: s, newStreams: c } = A(e, n);
t && r.push(t), r.push(o), i.push(...s), a.push(...c);
}
}
function O(e) {
let { task: n, error: a } = e;
if (!i.has(n)) return [];
let o = [];
for (let e of n.groups) {
let n = r.get(e);
n && t.has(e) && o.push(ee(e, n, a));
}
return o;
}
function k(e) {
let { stream: t, items: r } = e, i = [], a = [], o = [];
for (let { value: e, work: t } of r) {
let { newGroups: n, newStreams: r } = h(t), s = b(n);
x(s, r).length !== 0 && c(!1), i.push(e), a.push(...s), o.push(...r);
}
let s = {
kind: "STREAM_VALUES",
stream: t,
values: i,
newGroups: a,
newStreams: o
};
return t.queue.isStopped() ? (n.delete(t), [s, {
kind: "STREAM_SUCCESS",
stream: t
}]) : [s];
}
function A(e, n) {
r.delete(e);
let a = [], o = [];
for (let e of n.tasks) {
let t = i.get(e);
if (t) {
let { value: n, childStreams: r } = t;
n !== void 0 && a.push(n);
for (let e of r) o.push(e);
te(e);
}
}
let s = b(n.childGroups);
return t.delete(e), {
groupValuesEvent: a.length ? {
kind: "GROUP_VALUES",
group: e,
values: a
} : void 0,
groupSuccessEvent: {
kind: "GROUP_SUCCESS",
group: e,
newGroups: s,
newStreams: o
},
newGroups: s,
newStreams: o
};
}
function ee(e, t, n) {
return j(e, t), {
kind: "GROUP_FAILURE",
group: e,
error: n
};
}
function j(e, n) {
t.delete(e), r.delete(e);
for (let e of n.tasks) e.groups.every((e) => !r.has(e)) && te(e);
for (let e of n.childGroups) {
let t = r.get(e);
t && j(e, t);
}
}
function te(e) {
for (let t of e.groups) r.get(t)?.tasks.delete(e);
i.delete(e);
}
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/incremental/IncrementalPublisher.mjs
var Bi = class {
constructor() {
this._ids = /* @__PURE__ */ new Map(), this._nextId = 0, this._cachedPathToArray = Di((e) => Ee(e));
}
buildResponse(e, t, n, r, i) {
let { initialGroups: a, initialStreams: o, events: s } = zi(n);
function c() {
f.throw(r?.reason).catch(() => {});
}
r && r.addEventListener("abort", c);
let l = () => {
i(), r?.removeEventListener("abort", c);
}, u = this._toPendingResults(a, o), d = t.length ? {
errors: t,
data: e,
pending: u,
hasNext: !0
} : {
data: e,
pending: u,
hasNext: !0
}, f = Ni(Fi(s, (e) => this._handleBatch(e, l)), () => l());
return {
initialResult: d,
subsequentResults: f
};
}
_pathToArray(e) {
return e == null ? [] : this._cachedPathToArray(e);
}
_ensureId(e) {
let t = this._ids.get(e);
return t === void 0 && (t = String(this._nextId++), this._ids.set(e, t)), t;
}
_toPendingResults(e, t) {
let n = [];
for (let r of [e, t]) for (let e of r) {
let t = {
id: this._ensureId(e),
path: this._pathToArray(e.path)
};
e.label !== void 0 && (t.label = e.label), n.push(t);
}
return n;
}
_handleBatch(e, t) {
let n = {
pending: [],
incremental: [],
completed: [],
hasNext: !0
};
for (let r of e) this._handleWorkQueueEvent(r, n, t);
let { incremental: r, completed: i, pending: a, hasNext: o } = n, s = { hasNext: o };
return a.length > 0 && (s.pending = a), r.length > 0 && (s.incremental = r), i.length > 0 && (s.completed = i), s;
}
_handleWorkQueueEvent(e, t, n) {
switch (e.kind) {
case "GROUP_VALUES": {
let n = e.group, r = this._ensureId(n);
for (let i of e.values) {
let { bestId: e, subPath: a } = this._getBestIdAndSubPath(r, n, i), o = {
id: e,
data: i.data
};
i.errors !== void 0 && (o.errors = i.errors), a !== void 0 && (o.subPath = a), t.incremental.push(o);
}
break;
}
case "GROUP_SUCCESS": {
let n = e.group, r = this._ensureId(n);
t.completed.push({ id: r }), this._ids.delete(n), (e.newGroups.length > 0 || e.newStreams.length > 0) && t.pending.push(...this._toPendingResults(e.newGroups, e.newStreams));
break;
}
case "GROUP_FAILURE": {
let { group: n, error: r } = e, i = this._ensureId(n);
t.completed.push({
id: i,
errors: [jt(r)]
}), this._ids.delete(n);
break;
}
case "STREAM_VALUES": {
let n = e.stream, r = this._ensureId(n), { values: i, newGroups: a, newStreams: o } = e, s = [], c = [];
for (let e of i) s.push(e.item), e.errors !== void 0 && c.push(...e.errors);
t.incremental.push(c.length > 0 ? {
id: r,
items: s,
errors: c
} : {
id: r,
items: s
}), (a.length > 0 || o.length > 0) && t.pending.push(...this._toPendingResults(a, o));
break;
}
case "STREAM_SUCCESS": {
let n = e.stream;
t.completed.push({ id: this._ensureId(n) }), this._ids.delete(n);
break;
}
case "STREAM_FAILURE": {
let n = e.stream;
t.completed.push({
id: this._ensureId(n),
errors: [jt(e.error)]
}), this._ids.delete(n);
break;
}
case "WORK_QUEUE_TERMINATION": n?.(), t.hasNext = !1;
}
}
_getBestIdAndSubPath(e, t, n) {
let r = this._pathToArray(t.path).length, i = e;
for (let e of n.deliveryGroups) {
if (e === t) continue;
let n = this._ids.get(e);
if (n === void 0) continue;
let a = this._pathToArray(e.path).length;
a > r && (r = a, i = n);
}
let a = n.path.slice(r);
return {
bestId: i,
subPath: a.length > 0 ? a : void 0
};
}
}, Vi = Di((e) => ki(e)), Hi = ui((e, t) => ki(e, t)), Ui = class e extends Ti {
constructor(e, t, n) {
super(e, t), this.deferUsageSet = n, this.groups = [], this.tasks = [], this.streams = [];
}
getCreateSubExecutor() {
let t = this.validatedExecutionArgs, n = this.sharedExecutionContext;
return (r) => new e(t, n, r);
}
abort(e) {
super.abort(e);
for (let t of this.tasks) {
let n = t.computation.abort(e);
M(n) && c(!1);
}
for (let t of this.streams) {
let n = t.queue.abort(e);
M(n) && c(!1);
}
}
buildResponse(e) {
let t = this.getIncrementalWork(), { tasks: n, streams: r } = t;
if (n?.length === 0 && r?.length === 0) return super.buildResponse(e);
let i = this.collectedErrors.errors;
return e === null && c(!1), new Bi().buildResponse(e, i, t, this.validatedExecutionArgs.externalAbortSignal, this.getFinishSharedExecution());
}
executeCollectedRootFields(e, t, n, r, i) {
if (i.length === 0) return this.executeRootGroupedFieldSet(e, t, n, r, void 0);
this.validatedExecutionArgs.operation.operation === Pt.SUBSCRIPTION && c(!1, "`@defer` directive not supported on subscription operations. Disable `@defer` by setting the `if` argument to `false`.");
let { newDeliveryGroups: a, newDeliveryGroupMap: o } = this.getNewDeliveryGroupMap(i, void 0, void 0), { groupedFieldSet: s, newGroupedFieldSets: l } = this.buildRootExecutionPlan(n), u = this.executeRootGroupedFieldSet(e, t, s, r, o);
return this.groups.push(...a), l.size > 0 && this.collectExecutionGroups(e, t, void 0, l, o), u;
}
buildRootExecutionPlan(e) {
return Vi(e);
}
executeCollectedSubfields(e, t, n, r, i, a) {
if (i.length > 0 && this.validatedExecutionArgs.operation.operation === Pt.SUBSCRIPTION && c(!1, "`@defer` directive not supported on subscription operations. Disable `@defer` by setting the `if` argument to `false`."), a === void 0 && i.length === 0) return this.executeFields(e, t, n, r, a);
let { newDeliveryGroups: o, newDeliveryGroupMap: s } = this.getNewDeliveryGroupMap(i, a, n), { groupedFieldSet: l, newGroupedFieldSets: u } = this.buildSubExecutionPlan(r), d = this.executeFields(e, t, n, l, s);
return this.groups.push(...o), u.size > 0 && this.collectExecutionGroups(e, t, n, u, s), d;
}
buildSubExecutionPlan(e) {
return this.deferUsageSet === void 0 ? Vi(e) : Hi(e, this.deferUsageSet);
}
collectExecutionGroups(e, t, n, r, i) {
let a = this.getCreateSubExecutor();
for (let [o, s] of r) {
let r = Gi(o, i), c = a(o), l = {
groups: r,
path: n,
computation: new ji(() => c.executeExecutionGroup(r, e, t, n, s, i), (e) => c.abort(e))
}, u = this.deferUsageSet;
this.validatedExecutionArgs.enableEarlyExecution && (this.shouldDefer(u, o) ? Promise.resolve().then(() => l.computation.prime()) : l.computation.prime()), this.tasks.push(l);
}
}
executeExecutionGroup(e, t, n, r, i, a) {
let o;
try {
o = this.executeFields(t, n, r, i, a);
} catch (e) {
throw this.abort(), e;
}
return M(o) ? o.then((t) => this.buildExecutionGroupResult(e, r, t), (e) => {
throw this.abort(), e;
}) : this.buildExecutionGroupResult(e, r, o);
}
buildExecutionGroupResult(e, t, n) {
let r = n, i = this.collectedErrors.errors;
return this.finish({
value: i.length ? {
deliveryGroups: e,
path: Ee(t),
errors: i,
data: r
} : {
deliveryGroups: e,
path: Ee(t),
data: r
},
work: this.getIncrementalWork()
});
}
getIncrementalWork() {
let { groups: e, tasks: t, streams: n, collectedErrors: r } = this;
if (r.errors.length === 0) return {
groups: e,
tasks: t,
streams: n
};
let i = /* @__PURE__ */ Error("Cancelled secondary to null within original result"), a = [];
for (let e of t) if (r.hasNulledPosition(e.path)) {
let t = e.computation.abort(i);
M(t) && c(!1);
} else a.push(e);
let o = [];
for (let e of n) if (r.hasNulledPosition(e.path)) {
let t = e.queue.abort(i);
M(t) && c(!1);
} else o.push(e);
return {
groups: e,
tasks: a,
streams: o
};
}
getNewDeliveryGroupMap(e, t, n) {
let r = [], i = new Map(t);
for (let t of e) {
let e = t.parentDeferUsage, a = e === void 0 ? void 0 : Ki(e, i), o = {
path: n,
label: t.label,
parent: a
};
r.push(o), i.set(t, o);
}
return {
newDeliveryGroups: r,
newDeliveryGroupMap: i
};
}
shouldDefer(e, t) {
return e === void 0 || !Array.from(t).every((t) => e.has(t));
}
handleStream(e, t, n, r, i, a) {
let { handle: o, isAsync: s } = n, c = this.buildStreamItemQueue(e, t, o, r.fieldDetailsList, i, a, s), l = {
label: r.label,
path: t,
queue: c,
initialCount: e
};
return this.streams.push(l), !0;
}
buildStreamItemQueue(e, t, n, r, i, a, o) {
let s = this.getCreateSubExecutor(), { enableEarlyExecution: c } = this.validatedExecutionArgs, l = this.sharedExecutionContext;
return new Ri(async ({ push: u, stop: d, onStop: f, started: p }) => {
let m = /* @__PURE__ */ new Set(), h = !1, g = !1;
if (f((e) => {
if (g = !0, !h) {
for (let t of m) t(e);
o ? l.asyncWorkTracker.add(bi(n)) : l.asyncWorkTracker.addValues(gi(n));
}
}), await (c ? Promise.resolve() : p), g) return;
let _ = e;
for (;;) {
let e;
try {
if (o) {
if (e = await n.next(), g) return;
} else e = n.next();
} catch (e) {
throw ni(e, Wi(r), Ee(t));
}
if (e.done) {
h = !0;
let e = d();
M(e) && e.catch(() => void 0);
return;
}
let l = Ye(t, _, void 0), f = s(), p = f.completeStreamItem(l, e.value, r, i, a);
if (M(p)) {
if (c) {
let e = (e) => f.abort(e);
m.add(e), p = p.finally(() => {
m.delete(e);
});
} else if (p = await p, g) return;
}
let v = u(p);
if (M(v) && (await v, g)) return;
_ += 1;
}
}, 100);
}
completeStreamItem(e, t, n, r, i) {
if ($e(t)) return this.completePromisedValue(i, n, r, e, t, void 0).then((e) => this.buildStreamItemResult(e), (t) => (this.handleFieldError(t, i, n, e), this.buildStreamItemResult(null))).then(void 0, (e) => {
throw this.abort(), e;
});
let a;
try {
try {
a = this.completeValue(i, n, r, e, t, void 0);
} catch (t) {
return this.handleFieldError(t, i, n, e), this.buildStreamItemResult(null);
}
} catch (e) {
throw this.abort(), e;
}
return M(a) ? a.then((e) => this.buildStreamItemResult(e), (t) => (this.handleFieldError(t, i, n, e), this.buildStreamItemResult(null))).then(void 0, (e) => {
throw this.abort(), e;
}) : this.buildStreamItemResult(a);
}
buildStreamItemResult(e) {
let t = e, n = this.collectedErrors.errors, r = this.getIncrementalWork();
return this.finish(n.length > 0 ? {
value: {
item: t,
errors: n
},
work: r
} : {
value: { item: t },
work: r
});
}
};
function Wi(e) {
return e.map((e) => e.node);
}
function Gi(e, t) {
return Array.from(e).map((e) => Ki(e, t));
}
function Ki(e, t) {
return t.get(e);
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/execution/execute.mjs
function qi(e) {
let t, n = () => (t === void 0 && (t = ii(e.document, e.operationName)), t);
return {
schema: e.schema,
document: e.document,
rawVariableValues: e.variableValues,
get operationName() {
return e.operationName ?? n()?.name?.value;
},
get operationType() {
return n()?.operation;
}
};
}
function Ji(e) {
return Xe(u) ? k(u, qi(e), () => Yi(e)) : Yi(e);
}
function Yi(e) {
let t = Qi(e);
return "schema" in t ? Xi(t) : { errors: t };
}
function Xi(e) {
return new Ui(e).executeRootSelectionSet();
}
function Zi(e) {
let t = Ji(e);
if (M(t) || "initialResult" in t) throw Error("GraphQL execution failed to complete synchronously.");
return t;
}
function Qi(e) {
let { schema: t, document: n, rootValue: r, contextValue: i, variableValues: a, operationName: o, fieldResolver: s, typeResolver: c, subscribeFieldResolver: l, abortSignal: u, enableEarlyExecution: d, hooks: f, options: p } = e;
ee(t);
let m, h = Object.create(null), g = Object.create(null), _ = [];
for (let e of n.definitions) switch (e.kind) {
case He:
if (o == null) {
if (m !== void 0) return [new P("Must provide operation name if query contains multiple operations.")];
m = e;
} else e.name?.value === o && (m = e);
break;
case be: {
h[e.name.value] = e;
let n;
if (e.variableDefinitions) {
let r = Object.create(null);
for (let n of e.variableDefinitions) {
let e = it(t, n);
e instanceof P ? _.push(e) : r[e.name] = e;
}
n = r;
}
g[e.name.value] = {
definition: e,
variableSignatures: n
};
break;
}
}
if (!m) return o == null ? [new P("Must provide an operation.")] : [new P(`Unknown operation named "${o}".`)];
if (_.length > 0) return _;
let v = m.variableDefinitions ?? [], y = e.hideSuggestions ?? !1, b = a ?? {}, x = {
maxErrors: p?.maxCoercionErrors ?? 50,
hideSuggestions: y
}, S = Qe, C = Xe(S) ? k(S, {
schema: t,
document: n,
operation: m,
rawVariableValues: a,
operationName: m.name?.value,
operationType: m.operation
}, () => pt(t, v, b, x)) : pt(t, v, b, x);
if (C.errors) return C.errors;
let w = !m.directives?.find((e) => e.name.value === T.name);
return {
schema: t,
document: n,
fragmentDefinitions: h,
fragments: g,
rootValue: r,
contextValue: i,
operation: m,
variableValues: C.variableValues,
fieldResolver: s ?? ea,
typeResolver: c ?? $i,
subscribeFieldResolver: l ?? ea,
hideSuggestions: y,
errorPropagation: w,
externalAbortSignal: u ?? void 0,
enableEarlyExecution: d === !0,
hooks: f ?? void 0,
rawVariableValues: a
};
}
var $i = function(e, t, n, r) {
if (m(e) && typeof e.__typename == "string") return e.__typename;
let i = n.schema.getPossibleTypes(r), a = [];
try {
for (let r = 0; r < i.length; r++) {
let o = i[r];
if (o.isTypeOf) {
let i = o.isTypeOf(e, t, n);
if ($e(i)) a[r] = i;
else if (i) return a.length && n.getAsyncHelpers().track(a), o.name;
}
}
} catch (e) {
throw a.length && n.getAsyncHelpers().track(a), e;
}
if (a.length) return n.getAsyncHelpers().promiseAll(a).then((e) => {
for (let t = 0; t < e.length; t++) if (e[t]) return i[t].name;
});
}, ea = function(e, t, n, r) {
if (m(e) || typeof e == "function") {
let i = e[r.fieldName];
return typeof i == "function" ? e[r.fieldName](t, n, r) : i;
}
};
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/utilities/getIntrospectionQuery.mjs
function ta(e) {
let t = {
descriptions: !0,
specifiedByUrl: !1,
directiveIsRepeatable: !1,
schemaDescription: !1,
inputValueDeprecation: !1,
experimentalDirectiveDeprecation: !1,
oneOf: !1,
typeDepth: 9,
...e
}, n = t.descriptions ? "description" : "", r = t.specifiedByUrl ? "specifiedByURL" : "", i = t.directiveIsRepeatable ? "isRepeatable" : "", a = t.schemaDescription ? n : "";
function o(e) {
return t.inputValueDeprecation ? e : "";
}
function s(e) {
return t.experimentalDirectiveDeprecation ? e : "";
}
let c = t.oneOf ? "isOneOf" : "";
function l(e, t) {
if (e <= 0) return "";
if (e > 100) throw Error("Please set typeDepth to a reasonable value between 0 and 100; the default is 9.");
return `
${t}ofType {
${t} name
${t} kind${l(e - 1, t + " ")}
${t}}`;
}
return `
query IntrospectionQuery {
__schema {
${a}
queryType { name kind }
mutationType { name kind }
subscriptionType { name kind }
types {
...FullType
}
directives${s("(includeDeprecated: true)")} {
name
${n}
${i}
${s("isDeprecated")}
${s("deprecationReason")}
locations
args${o("(includeDeprecated: true)")} {
...InputValue
}
}
}
}
fragment FullType on __Type {
kind
name
${n}
${r}
${c}
fields(includeDeprecated: true) {
name
${n}
args${o("(includeDeprecated: true)")} {
...InputValue
}
type {
...TypeRef
}
isDeprecated
deprecationReason
}
inputFields${o("(includeDeprecated: true)")} {
...InputValue
}
interfaces {
...TypeRef
}
enumValues(includeDeprecated: true) {
name
${n}
isDeprecated
deprecationReason
}
possibleTypes {
...TypeRef
}
}
fragment InputValue on __InputValue {
name
${n}
type { ...TypeRef }
defaultValue
${o("isDeprecated")}
${o("deprecationReason")}
}
fragment TypeRef on __Type {
kind
name${l(t.typeDepth, " ")}
}
`;
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/utilities/introspectionFromSchema.mjs
function na(e, t) {
let n = {
specifiedByUrl: !0,
directiveIsRepeatable: !0,
schemaDescription: !0,
inputValueDeprecation: !0,
experimentalDirectiveDeprecation: !0,
oneOf: !0,
...t
}, r = Zi({
schema: e,
document: De(ta(n))
});
return (r.errors != null || r.data == null) && c(!1), r.data;
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/utilities/buildClientSchema.mjs
function ra(e, t) {
m(e) && m(e.__schema) || pe(!1, `Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${r(e)}.`);
let n = e.__schema, i = new Map(n.types.map((e) => [e.name, g(e)]));
for (let e of [...lt, ...a]) i.has(e.name) && i.set(e.name, e);
let s = n.queryType == null ? null : p(n.queryType), c = n.mutationType == null ? null : p(n.mutationType), l = n.subscriptionType == null ? null : p(n.subscriptionType), u = n.directives == null ? [] : n.directives.map(A);
return new N({
description: n.description,
query: s,
mutation: c,
subscription: l,
types: [...i.values()],
directives: u,
assumeValid: t?.assumeValid
});
function d(e) {
if (e.kind === D.LIST) {
let t = e.ofType;
if (t == null) throw Error("Decorated type deeper than introspection query.");
return new Fe(d(t));
}
if (e.kind === D.NON_NULL) {
let t = e.ofType;
if (t == null) throw Error("Decorated type deeper than introspection query.");
let n = d(t);
return new Be(Ce(n));
}
return f(e);
}
function f(e) {
let t = e.name;
if (!t) throw Error(`Unknown type reference: ${r(e)}.`);
let n = i.get(t);
if (n == null) throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);
return n;
}
function p(e) {
return kt(f(e));
}
function h(e) {
return Ue(f(e));
}
function g(e) {
switch (e.kind) {
case D.SCALAR: return _(e);
case D.OBJECT: return b(e);
case D.INTERFACE: return x(e);
case D.UNION: return S(e);
case D.ENUM: return C(e);
case D.INPUT_OBJECT: return w(e);
default: throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${r(e)}.`);
}
}
function _(e) {
return new ot({
name: e.name,
description: e.description,
specifiedByURL: e.specifiedByURL
});
}
function y(e) {
if (e.interfaces === null && e.kind === D.INTERFACE) return [];
if (e.interfaces == null) {
let t = r(e);
throw Error(`Introspection result missing interfaces: ${t}.`);
}
return e.interfaces.map(h);
}
function b(e) {
return new ht({
name: e.name,
description: e.description,
interfaces: () => y(e),
fields: () => T(e)
});
}
function x(e) {
return new Et({
name: e.name,
description: e.description,
interfaces: () => y(e),
fields: () => T(e)
});
}
function S(e) {
if (e.possibleTypes == null) {
let t = r(e);
throw Error(`Introspection result missing possibleTypes: ${t}.`);
}
return new Ke({
name: e.name,
description: e.description,
types: () => e.possibleTypes.map(p)
});
}
function C(e) {
if (e.enumValues == null) {
let t = r(e);
throw Error(`Introspection result missing enumValues: ${t}.`);
}
return new Me({
name: e.name,
description: e.description,
values: o(e.enumValues, (e) => e.name, (e) => ({
description: e.description,
deprecationReason: e.deprecationReason
}))
});
}
function w(e) {
if (e.inputFields == null) {
let t = r(e);
throw Error(`Introspection result missing inputFields: ${t}.`);
}
return new rt({
name: e.name,
description: e.description,
fields: () => O(e.inputFields),
isOneOf: e.isOneOf
});
}
function T(e) {
if (e.fields == null) throw Error(`Introspection result missing fields: ${r(e)}.`);
return o(e.fields, (e) => e.name, E);
}
function E(e) {
let t = d(e.type);
if (!j(t)) {
let e = r(t);
throw Error(`Introspection must provide output type for fields, but received: ${e}.`);
}
if (e.args == null) {
let t = r(e);
throw Error(`Introspection result missing field args: ${t}.`);
}
return {
description: e.description,
deprecationReason: e.deprecationReason,
type: t,
args: O(e.args)
};
}
function O(e) {
return o(e, (e) => e.name, k);
}
function k(e) {
let t = d(e.type);
if (!de(t)) {
let e = r(t);
throw Error(`Introspection must provide input type for arguments, but received: ${e}.`);
}
return {
description: e.description,
type: t,
default: e.defaultValue == null ? void 0 : { literal: Nt(e.defaultValue) },
deprecationReason: e.deprecationReason
};
}
function A(e) {
if (e.args == null) {
let t = r(e);
throw Error(`Introspection result missing directive args: ${t}.`);
}
if (e.locations == null) {
let t = r(e);
throw Error(`Introspection result missing directive locations: ${t}.`);
}
return new v({
name: e.name,
description: e.description,
isRepeatable: e.isRepeatable,
deprecationReason: e.deprecationReason,
locations: e.locations.slice(),
args: O(e.args)
});
}
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/utilities/valueFromAST.mjs
function ia(e, t, n) {
if (e) {
if (e.kind === "Variable") {
let r = e.name.value;
if (n == null || !Object.hasOwn(n, r)) return;
let a = n[r];
return a === void 0 || a === null && i(t) ? void 0 : a;
}
if (i(t)) return e.kind === "NullValue" ? void 0 : ia(e, t.ofType, n);
if (e.kind === "NullValue") return null;
if (ne(t)) {
let r = t.ofType;
if (e.kind === "ListValue") {
let t = [];
for (let a of e.values) if (aa(a, n)) {
if (i(r)) return;
t.push(null);
} else {
let e = ia(a, r, n);
if (e === void 0) return;
t.push(e);
}
return t;
}
let a = ia(e, r, n);
return a === void 0 ? void 0 : [a];
}
if (Mt(t)) {
if (e.kind !== "ObjectValue") return;
let r = Object.create(null), a = t.getFields();
if (e.fields.some((e) => !Object.hasOwn(a, e.name.value))) return;
let o = new Map(e.fields.map((e) => [e.name.value, e]));
for (let e of Object.values(a)) {
let t = o.get(e.name);
if (t == null || aa(t.value, n)) {
if (e.defaultValue !== void 0) r[e.name] = e.defaultValue;
else if (i(e.type)) return;
continue;
}
let a = ia(t.value, e.type, n);
if (a === void 0) return;
r[e.name] = a;
}
if (t.isOneOf) {
let e = Object.keys(r);
if (o.size !== 1 || e.length !== 1) return;
for (let [e, t] of o) if (t.value.kind === "NullValue" || r[e] === null) return;
}
return r;
}
if (f(t)) {
let r;
try {
r = t.parseLiteral(e, n);
} catch {
return;
}
return r === void 0 ? void 0 : r;
}
c(!1, "Unexpected input type: " + r(t));
}
}
function aa(e, t) {
return e.kind === "Variable" && (t == null || !Object.hasOwn(t, e.name.value) || t[e.name.value] === void 0);
}
// ../../../node_modules/.pnpm/graphql@17.1.0/node_modules/graphql/utilities/stripIgnoredCharacters.mjs
function oa(e) {
let t = s(e) ? e : new se(e), n = t.body, r = new At(t), i = "", a = !1;
for (; r.advance().kind !== p.EOF;) {
let e = r.token, t = e.kind, o = !ue(e.kind);
a && (o || e.kind === p.SPREAD) && (i += " ");
let s = n.slice(e.start, e.end);
t === p.BLOCK_STRING ? i += Bt(e.value, { minimize: !0 }) : i += s, a = o;
}
return i;
}
// src/lib/schema-path.ts
var sa = "on:";
function ca(e) {
return `${sa}${e}`;
}
function la(e) {
return e.startsWith(sa) && e.slice(3) || null;
}
var ua = (e) => {
let t = la(e);
return t === null ? {
kind: "field",
name: e
} : {
kind: "typeCondition",
typeName: t
};
}, da = (e) => {
switch (e) {
case "query": return Pt.QUERY;
case "mutation": return Pt.MUTATION;
case "subscription": return Pt.SUBSCRIPTION;
default: return null;
}
};
function fa(e) {
let [t, ...n] = e.split(".");
return {
operation: da(t),
segments: n.map(ua)
};
}
var pa = (e, t) => {
switch (e) {
case Pt.QUERY: return t.getQueryType();
case Pt.MUTATION: return t.getMutationType();
case Pt.SUBSCRIPTION: return t.getSubscriptionType();
}
};
function ma(e, t) {
let { operation: n, segments: r } = fa(e);
if (!n || r.length === 0) return null;
let i = pa(n, t), a = [];
for (let e of r) {
if (!i) return null;
if (e.kind === "typeCondition") {
let n = t.getType(e.typeName);
if (!n || !A(n)) return null;
if (A(i)) {
if (i.name !== n.name) return null;
} else if (_(i) || h(i)) {
if (!t.isSubType(i, n)) return null;
} else return null;
a.push({
segment: e,
parentType: i,
field: null,
type: n
}), i = n;
continue;
}
if (!A(i) && !h(i)) return null;
let n = i.getFields()[e.name];
if (!n) return null;
let r = Rt(n.type);
a.push({
segment: e,
parentType: i,
field: n,
type: r
}), i = r;
}
return a;
}
// src/lib/docs.ts
var ha = (e, t) => {
if (!t) return null;
let n = ma(e.join("."), t)?.at(-1);
return n ? n.field ? {
kind: "field",
typeName: n.parentType.name,
fieldName: n.field.name
} : {
kind: "type",
name: n.type.name
} : null;
}, ga = (e) => {
let [t, n] = H(e.defaultActivePanel ?? null), [r, i] = H([]), a = R((e) => {
i((t) => [...t, e]);
}, []), o = R(() => {
i((e) => e.slice(0, -1));
}, []), s = R(() => {
i([]);
}, []);
return {
activePanel: t,
docsNavStack: r,
setActivePanel: n,
openDocs: R((e) => {
n("docs"), e && i((t) => [...t, e]);
}, []),
pushDocs: a,
popDocs: o,
resetDocs: s
};
}, _a = class {
constructor(e, t) {
this.lessThanOrEqualTo = (e) => this.line < e.line || this.line === e.line && this.character <= e.character, this.line = e, this.character = t;
}
setLine(e) {
this.line = e;
}
setCharacter(e) {
this.character = e;
}
};
// ../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js
F({
id: "abap",
extensions: [".abap"],
aliases: ["abap", "ABAP"],
loader: () => import("./abap-DJfVjCTn.js")
}), F({
id: "apex",
extensions: [".cls"],
aliases: ["Apex", "apex"],
mimetypes: ["text/x-apex-source", "text/x-apex"],
loader: () => import("./apex-C-wizs8H.js")
}), F({
id: "azcli",
extensions: [".azcli"],
aliases: ["Azure CLI", "azcli"],
loader: () => import("./azcli-JLo_QJ6Q.js")
}), F({
id: "bat",
extensions: [".bat", ".cmd"],
aliases: ["Batch", "bat"],
loader: () => import("./bat-D4Oxqg4W.js")
}), F({
id: "bicep",
extensions: [".bicep"],
aliases: ["Bicep"],
loader: () => import("./bicep-CLGstFal.js")
}), F({
id: "cameligo",
extensions: [".mligo"],
aliases: ["Cameligo"],
loader: () => import("./cameligo-BzyIOZ6x.js")
}), F({
id: "clojure",
extensions: [
".clj",
".cljs",
".cljc",
".edn"
],
aliases: ["clojure", "Clojure"],
loader: () => import("./clojure-Bc7-6ogM.js")
}), F({
id: "coffeescript",
extensions: [".coffee"],
aliases: [
"CoffeeScript",
"coffeescript",
"coffee"
],
mimetypes: ["text/x-coffeescript", "text/coffeescript"],
loader: () => import("./coffee-DiMY_LXM.js")
}), F({
id: "c",
extensions: [".c", ".h"],
aliases: ["C", "c"],
loader: () => import("./cpp-C5tCL4fN.js")
}), F({
id: "cpp",
extensions: [
".cpp",
".cc",
".cxx",
".hpp",
".hh",
".hxx"
],
aliases: [
"C++",
"Cpp",
"cpp"
],
loader: () => import("./cpp-C5tCL4fN.js")
}), F({
id: "csharp",
extensions: [
".cs",
".csx",
".cake"
],
aliases: ["C#", "csharp"],
loader: () => import("./csharp-M47Gfx0S.js")
}), F({
id: "csp",
extensions: [".csp"],
aliases: ["CSP", "csp"],
loader: () => import("./csp-D-VNNbm2.js")
}), F({
id: "css",
extensions: [".css"],
aliases: ["CSS", "css"],
mimetypes: ["text/css"],
loader: () => import("./css-4vQ207et.js")
}), F({
id: "cypher",
extensions: [".cypher", ".cyp"],
aliases: ["Cypher", "OpenCypher"],
loader: () => import("./cypher-CG2Fo8Ab.js")
}), F({
id: "dart",
extensions: [".dart"],
aliases: ["Dart", "dart"],
mimetypes: ["text/x-dart-source", "text/x-dart"],
loader: () => import("./dart-Dh1KcolM.js")
}), F({
id: "dockerfile",
extensions: [".dockerfile"],
filenames: ["Dockerfile"],
aliases: ["Dockerfile"],
loader: () => import("./dockerfile-BPon5q1x.js")
}), F({
id: "ecl",
extensions: [".ecl"],
aliases: [
"ECL",
"Ecl",
"ecl"
],
loader: () => import("./ecl-D-nKmbfj.js")
}), F({
id: "elixir",
extensions: [".ex", ".exs"],
aliases: [
"Elixir",
"elixir",
"ex"
],
loader: () => import("./elixir-CxwOyso8.js")
}), F({
id: "flow9",
extensions: [".flow"],
aliases: [
"Flow9",
"Flow",
"flow9",
"flow"
],
loader: () => import("./flow9-DlxxldFa.js")
}), F({
id: "fsharp",
extensions: [
".fs",
".fsi",
".ml",
".mli",
".fsx",
".fsscript"
],
aliases: [
"F#",
"FSharp",
"fsharp"
],
loader: () => import("./fsharp-xsFpyPjh.js")
}), F({
id: "freemarker2",
extensions: [
".ftl",
".ftlh",
".ftlx"
],
aliases: ["FreeMarker2", "Apache FreeMarker2"],
loader: () => import("./freemarker2-y8ufgtkW.js").then((e) => e.TagAutoInterpolationDollar)
}), F({
id: "freemarker2.tag-angle.interpolation-dollar",
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
loader: () => import("./freemarker2-y8ufgtkW.js").then((e) => e.TagAngleInterpolationDollar)
}), F({
id: "freemarker2.tag-bracket.interpolation-dollar",
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
loader: () => import("./freemarker2-y8ufgtkW.js").then((e) => e.TagBracketInterpolationDollar)
}), F({
id: "freemarker2.tag-angle.interpolation-bracket",
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
loader: () => import("./freemarker2-y8ufgtkW.js").then((e) => e.TagAngleInterpolationBracket)
}), F({
id: "freemarker2.tag-bracket.interpolation-bracket",
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
loader: () => import("./freemarker2-y8ufgtkW.js").then((e) => e.TagBracketInterpolationBracket)
}), F({
id: "freemarker2.tag-auto.interpolation-dollar",
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
loader: () => import("./freemarker2-y8ufgtkW.js").then((e) => e.TagAutoInterpolationDollar)
}), F({
id: "freemarker2.tag-auto.interpolation-bracket",
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
loader: () => import("./freemarker2-y8ufgtkW.js").then((e) => e.TagAutoInterpolationBracket)
}), F({
id: "go",
extensions: [".go"],
aliases: ["Go"],
loader: () => import("./go-D9iGli1e.js")
}), F({
id: "handlebars",
extensions: [".handlebars", ".hbs"],
aliases: [
"Handlebars",
"handlebars",
"hbs"
],
mimetypes: ["text/x-handlebars-template"],
loader: () => import("./handlebars-HjDbVRH1.js")
}), F({
id: "hcl",
extensions: [
".tf",
".tfvars",
".hcl"
],
aliases: [
"Terraform",
"tf",
"HCL",
"hcl"
],
loader: () => import("./hcl-BiW11Dn4.js")
}), F({
id: "html",
extensions: [
".html",
".htm",
".shtml",
".xhtml",
".mdoc",
".jsp",
".asp",
".aspx",
".jshtm"
],
aliases: [
"HTML",
"htm",
"html",
"xhtml"
],
mimetypes: [
"text/html",
"text/x-jshtm",
"text/template",
"text/ng-template"
],
loader: () => import("./html-uyIDVwfF.js")
}), F({
id: "ini",
extensions: [
".ini",
".properties",
".gitconfig"
],
filenames: [
"config",
".gitattributes",
".gitconfig",
".editorconfig"
],
aliases: ["Ini", "ini"],
loader: () => import("./ini-BIL1DCs9.js")
}), F({
id: "java",
extensions: [".java", ".jav"],
aliases: ["Java", "java"],
mimetypes: ["text/x-java-source", "text/x-java"],
loader: () => import("./java-Cp3YjMJt.js")
}), F({
id: "javascript",
extensions: [
".js",
".es6",
".jsx",
".mjs",
".cjs"
],
firstLine: "^#!.*\\bnode",
filenames: ["jakefile"],
aliases: [
"JavaScript",
"javascript",
"js"
],
mimetypes: ["text/javascript"],
loader: () => import("./javascript-yYhnPOiP.js")
}), F({
id: "julia",
extensions: [".jl"],
aliases: ["julia", "Julia"],
loader: () => import("./julia-BrSinb_r.js")
}), F({
id: "kotlin",
extensions: [".kt", ".kts"],
aliases: ["Kotlin", "kotlin"],
mimetypes: ["text/x-kotlin-source", "text/x-kotlin"],
loader: () => import("./kotlin-E7wpLXOv.js")
}), F({
id: "less",
extensions: [".less"],
aliases: ["Less", "less"],
mimetypes: ["text/x-less", "text/less"],
loader: () => import("./less-JSVfu2uE.js")
}), F({
id: "lexon",
extensions: [".lex"],
aliases: ["Lexon"],
loader: () => import("./lexon-BCjf-OlJ.js")
}), F({
id: "lua",
extensions: [".lua"],
aliases: ["Lua", "lua"],
loader: () => import("./lua-C_QjWI8D.js")
}), F({
id: "liquid",
extensions: [".liquid", ".html.liquid"],
aliases: ["Liquid", "liquid"],
mimetypes: ["application/liquid"],
loader: () => import("./liquid-BH9DqTRo.js")
}), F({
id: "m3",
extensions: [
".m3",
".i3",
".mg",
".ig"
],
aliases: [
"Modula-3",
"Modula3",
"modula3",
"m3"
],
loader: () => import("./m3-CYFZg2F9.js")
}), F({
id: "markdown",
extensions: [
".md",
".markdown",
".mdown",
".mkdn",
".mkd",
".mdwn",
".mdtxt",
".mdtext"
],
aliases: ["Markdown", "markdown"],
loader: () => import("./markdown-DZRg9xdi.js")
}), F({
id: "mdx",
extensions: [".mdx"],
aliases: ["MDX", "mdx"],
loader: () => import("./mdx-BDpN4ykY.js")
}), F({
id: "mips",
extensions: [".s"],
aliases: ["MIPS", "MIPS-V"],
mimetypes: [
"text/x-mips",
"text/mips",
"text/plaintext"
],
loader: () => import("./mips-BefGfqJ8.js")
}), F({
id: "msdax",
extensions: [".dax", ".msdax"],
aliases: ["DAX", "MSDAX"],
loader: () => import("./msdax-BUmzJZpL.js")
}), F({
id: "mysql",
extensions: [],
aliases: ["MySQL", "mysql"],
loader: () => import("./mysql-DY0HKDZF.js")
}), F({
id: "objective-c",
extensions: [".m"],
aliases: ["Objective-C"],
loader: () => import("./objective-c-CdVs4RRa.js")
}), F({
id: "pascal",
extensions: [
".pas",
".p",
".pp"
],
aliases: ["Pascal", "pas"],
mimetypes: ["text/x-pascal-source", "text/x-pascal"],
loader: () => import("./pascal-CP9BQd9R.js")
}), F({
id: "pascaligo",
extensions: [".ligo"],
aliases: ["Pascaligo", "ligo"],
loader: () => import("./pascaligo-pOPo8Vin.js")
}), F({
id: "perl",
extensions: [".pl", ".pm"],
aliases: ["Perl", "pl"],
loader: () => import("./perl-C52DvlcU.js")
}), F({
id: "pgsql",
extensions: [],
aliases: [
"PostgreSQL",
"postgres",
"pg",
"postgre"
],
loader: () => import("./pgsql-BOA0D5zF.js")
}), F({
id: "php",
extensions: [
".php",
".php4",
".php5",
".phtml",
".ctp"
],
aliases: ["PHP", "php"],
mimetypes: ["application/x-php"],
loader: () => import("./php-JQJW7hNl.js")
}), F({
id: "pla",
extensions: [".pla"],
loader: () => import("./pla-CAviQYLC.js")
}), F({
id: "postiats",
extensions: [
".dats",
".sats",
".hats"
],
aliases: ["ATS", "ATS/Postiats"],
loader: () => import("./postiats-BADVPZtc.js")
}), F({
id: "powerquery",
extensions: [".pq", ".pqm"],
aliases: [
"PQ",
"M",
"Power Query",
"Power Query M"
],
loader: () => import("./powerquery-CWIAT5r_.js")
}), F({
id: "powershell",
extensions: [
".ps1",
".psm1",
".psd1"
],
aliases: [
"PowerShell",
"powershell",
"ps",
"ps1"
],
loader: () => import("./powershell-C3yaJ_JE.js")
}), F({
id: "proto",
extensions: [".proto"],
aliases: ["protobuf", "Protocol Buffers"],
loader: () => import("./protobuf-CZdStSFi.js")
}), F({
id: "pug",
extensions: [".jade", ".pug"],
aliases: [
"Pug",
"Jade",
"jade"
],
loader: () => import("./pug-BGwtpptB.js")
}), F({
id: "python",
extensions: [
".py",
".rpy",
".pyw",
".cpy",
".gyp",
".gypi"
],
aliases: ["Python", "py"],
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
loader: () => import("./python-Cwv1krk1.js")
}), F({
id: "qsharp",
extensions: [".qs"],
aliases: ["Q#", "qsharp"],
loader: () => import("./qsharp-Pl2G9hBi.js")
}), F({
id: "r",
extensions: [
".r",
".rhistory",
".rmd",
".rprofile",
".rt"
],
aliases: ["R", "r"],
loader: () => import("./r-DK9Om0Yu.js")
}), F({
id: "razor",
extensions: [".cshtml"],
aliases: ["Razor", "razor"],
mimetypes: ["text/x-cshtml"],
loader: () => import("./razor-dwsRCg_i.js")
}), F({
id: "redis",
extensions: [".redis"],
aliases: ["redis"],
loader: () => import("./redis-CWNAamdd.js")
}), F({
id: "redshift",
extensions: [],
aliases: ["Redshift", "redshift"],
loader: () => import("./redshift-D1YU59wy.js")
}), F({
id: "restructuredtext",
extensions: [".rst"],
aliases: ["reStructuredText", "restructuredtext"],
loader: () => import("./restructuredtext-BD_WI4Pb.js")
}), F({
id: "ruby",
extensions: [
".rb",
".rbx",
".rjs",
".gemspec",
".pp"
],
filenames: ["rakefile", "Gemfile"],
aliases: ["Ruby", "rb"],
loader: () => import("./ruby-BGJ2whxA.js")
}), F({
id: "rust",
extensions: [".rs", ".rlib"],
aliases: ["Rust", "rust"],
loader: () => import("./rust-BmJtAoEt.js")
}), F({
id: "sb",
extensions: [".sb"],
aliases: ["Small Basic", "sb"],
loader: () => import("./sb-7HHCLl-B.js")
}), F({
id: "scala",
extensions: [
".scala",
".sc",
".sbt"
],
aliases: [
"Scala",
"scala",
"SBT",
"Sbt",
"sbt",
"Dotty",
"dotty"
],
mimetypes: [
"text/x-scala-source",
"text/x-scala",
"text/x-sbt",
"text/x-dotty"
],
loader: () => import("./scala-BqVt48RY.js")
}), F({
id: "scheme",
extensions: [
".scm",
".ss",
".sch",
".rkt"
],
aliases: ["scheme", "Scheme"],
loader: () => import("./scheme-fRru7VA9.js")
}), F({
id: "scss",
extensions: [".scss"],
aliases: [
"Sass",
"sass",
"scss"
],
mimetypes: ["text/x-scss", "text/scss"],
loader: () => import("./scss-hYSduByp.js")
}), F({
id: "shell",
extensions: [".sh", ".bash"],
aliases: ["Shell", "sh"],
loader: () => import("./shell-wdpWN_OX.js")
}), F({
id: "sol",
extensions: [".sol"],
aliases: [
"sol",
"solidity",
"Solidity"
],
loader: () => import("./solidity-DSfUs86b.js")
}), F({
id: "aes",
extensions: [".aes"],
aliases: [
"aes",
"sophia",
"Sophia"
],
loader: () => import("./sophia-BT7C9vQj.js")
}), F({
id: "sparql",
extensions: [".rq"],
aliases: ["sparql", "SPARQL"],
loader: () => import("./sparql-B97_WiX_.js")
}), F({
id: "sql",
extensions: [".sql"],
aliases: ["SQL"],
loader: () => import("./sql-DffsI-sh.js")
}), F({
id: "st",
extensions: [
".st",
".iecst",
".iecplc",
".lc3lib",
".TcPOU",
".TcDUT",
".TcGVL",
".TcIO"
],
aliases: [
"StructuredText",
"scl",
"stl"
],
loader: () => import("./st-B6mixH59.js")
}), F({
id: "swift",
aliases: ["Swift", "swift"],
extensions: [".swift"],
mimetypes: ["text/swift"],
loader: () => import("./swift-Cmh0PLyA.js")
}), F({
id: "systemverilog",
extensions: [".sv", ".svh"],
aliases: [
"SV",
"sv",
"SystemVerilog",
"systemverilog"
],
loader: () => import("./systemverilog-B559cS0l.js")
}), F({
id: "verilog",
extensions: [".v", ".vh"],
aliases: [
"V",
"v",
"Verilog",
"verilog"
],
loader: () => import("./systemverilog-B559cS0l.js")
}), F({
id: "tcl",
extensions: [".tcl"],
aliases: [
"tcl",
"Tcl",
"tcltk",
"TclTk",
"tcl/tk",
"Tcl/Tk"
],
loader: () => import("./tcl-CZ8xc4U0.js")
}), F({
id: "twig",
extensions: [".twig"],
aliases: ["Twig", "twig"],
mimetypes: ["text/x-twig"],
loader: () => import("./twig-f5T3Rmt6.js")
}), F({
id: "typescript",
extensions: [
".ts",
".tsx",
".cts",
".mts"
],
aliases: [
"TypeScript",
"ts",
"typescript"
],
mimetypes: ["text/typescript"],
loader: () => import("./typescript-CX5OeLyd.js")
}), F({
id: "typespec",
extensions: [".tsp"],
aliases: ["TypeSpec"],
loader: () => import("./typespec-C3kqPTVN.js")
}), F({
id: "vb",
extensions: [".vb"],
aliases: ["Visual Basic", "vb"],
loader: () => import("./vb-NoM0CyQk.js")
}), F({
id: "wgsl",
extensions: [".wgsl"],
aliases: [
"WebGPU Shading Language",
"WGSL",
"wgsl"
],
loader: () => import("./wgsl-BozHp15f.js")
}), F({
id: "xml",
extensions: [
".xml",
".xsd",
".dtd",
".ascx",
".csproj",
".config",
".props",
".targets",
".wxi",
".wxl",
".wxs",
".xaml",
".svg",
".svgz",
".opf",
".xslt",
".xsl"
],
firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
aliases: ["XML", "xml"],
mimetypes: [
"text/xml",
"application/xml",
"application/xaml+xml",
"application/xml-dtd"
],
loader: () => import("./xml-y45JvZu_.js")
}), F({
id: "yaml",
extensions: [".yaml", ".yml"],
aliases: [
"YAML",
"yaml",
"YML",
"yml"
],
mimetypes: ["application/x-yaml", "text/x-yaml"],
loader: () => import("./yaml-D1B9FGwj.js")
});
// ../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/css/monaco.contribution.js
var va = Object.defineProperty, ya = Object.getOwnPropertyDescriptor, ba = Object.getOwnPropertyNames, xa = Object.prototype.hasOwnProperty, Sa = (e, t, n, r) => {
if (t && typeof t == "object" || typeof t == "function") for (let i of ba(t)) !xa.call(e, i) && i !== n && va(e, i, {
get: () => t[i],
enumerable: !(r = ya(t, i)) || r.enumerable
});
return e;
}, Ca = (e, t, n) => (Sa(e, t, "default"), n && Sa(n, t, "default")), wa = {};
Ca(wa, Qt);
var Ta = class {
constructor(e, t, n) {
this._onDidChange = new wa.Emitter(), this._languageId = e, this.setOptions(t), this.setModeConfiguration(n);
}
get onDidChange() {
return this._onDidChange.event;
}
get languageId() {
return this._languageId;
}
get modeConfiguration() {
return this._modeConfiguration;
}
get diagnosticsOptions() {
return this.options;
}
get options() {
return this._options;
}
setOptions(e) {
this._options = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
}
setDiagnosticsOptions(e) {
this.setOptions(e);
}
setModeConfiguration(e) {
this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
}
}, Ea = {
validate: !0,
lint: {
compatibleVendorPrefixes: "ignore",
vendorPrefix: "warning",
duplicateProperties: "warning",
emptyRules: "warning",
importStatement: "ignore",
boxModel: "ignore",
universalSelector: "ignore",
zeroUnits: "ignore",
fontFaceProperties: "warning",
hexColorLength: "error",
argumentsInColorFunction: "error",
unknownProperties: "warning",
ieHack: "ignore",
unknownVendorSpecificProperties: "ignore",
propertyIgnoredDueToDisplay: "warning",
important: "ignore",
float: "ignore",
idSelector: "ignore"
},
data: { useDefaultDataProvider: !0 },
format: {
newlineBetweenSelectors: !0,
newlineBetweenRules: !0,
spaceAroundSelectorSeparator: !1,
braceStyle: "collapse",
maxPreserveNewLines: void 0,
preserveNewLines: !0
}
}, Da = {
completionItems: !0,
hovers: !0,
documentSymbols: !0,
definitions: !0,
references: !0,
documentHighlights: !0,
rename: !0,
colors: !0,
foldingRanges: !0,
diagnostics: !0,
selectionRanges: !0,
documentFormattingEdits: !0,
documentRangeFormattingEdits: !0
}, Oa = new Ta("css", Ea, Da), ka = new Ta("scss", Ea, Da), Aa = new Ta("less", Ea, Da);
wa.languages.css = {
cssDefaults: Oa,
lessDefaults: Aa,
scssDefaults: ka
};
function ja() {
return import("./cssMode-DI4knJrA.js");
}
wa.languages.onLanguage("less", () => {
ja().then((e) => e.setupMode(Aa));
}), wa.languages.onLanguage("scss", () => {
ja().then((e) => e.setupMode(ka));
}), wa.languages.onLanguage("css", () => {
ja().then((e) => e.setupMode(Oa));
});
// ../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/html/monaco.contribution.js
var Ma = Object.defineProperty, Na = Object.getOwnPropertyDescriptor, Pa = Object.getOwnPropertyNames, Fa = Object.prototype.hasOwnProperty, Ia = (e, t, n, r) => {
if (t && typeof t == "object" || typeof t == "function") for (let i of Pa(t)) !Fa.call(e, i) && i !== n && Ma(e, i, {
get: () => t[i],
enumerable: !(r = Na(t, i)) || r.enumerable
});
return e;
}, La = (e, t, n) => (Ia(e, t, "default"), n && Ia(n, t, "default")), Ra = {};
La(Ra, Qt);
var za = class {
constructor(e, t, n) {
this._onDidChange = new Ra.Emitter(), this._languageId = e, this.setOptions(t), this.setModeConfiguration(n);
}
get onDidChange() {
return this._onDidChange.event;
}
get languageId() {
return this._languageId;
}
get options() {
return this._options;
}
get modeConfiguration() {
return this._modeConfiguration;
}
setOptions(e) {
this._options = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
}
setModeConfiguration(e) {
this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
}
}, Ba = {
format: {
tabSize: 4,
insertSpaces: !1,
wrapLineLength: 120,
unformatted: "default\": \"a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var",
contentUnformatted: "pre",
indentInnerHtml: !1,
preserveNewLines: !0,
maxPreserveNewLines: void 0,
indentHandlebars: !1,
endWithNewline: !1,
extraLiners: "head, body, /html",
wrapAttributes: "auto"
},
suggest: {},
data: { useDefaultDataProvider: !0 }
};
function Va(e) {
return {
completionItems: !0,
hovers: !0,
documentSymbols: !0,
links: !0,
documentHighlights: !0,
rename: !0,
colors: !0,
foldingRanges: !0,
selectionRanges: !0,
diagnostics: e === Ha,
documentFormattingEdits: e === Ha,
documentRangeFormattingEdits: e === Ha
};
}
var Ha = "html", Ua = "handlebars", Wa = "razor", Ga = Qa(Ha, Ba, Va(Ha)), Ka = Ga.defaults, qa = Qa(Ua, Ba, Va(Ua)), Ja = qa.defaults, Ya = Qa(Wa, Ba, Va(Wa)), Xa = Ya.defaults;
Ra.languages.html = {
htmlDefaults: Ka,
razorDefaults: Xa,
handlebarDefaults: Ja,
htmlLanguageService: Ga,
handlebarLanguageService: qa,
razorLanguageService: Ya,
registerHTMLLanguageService: Qa
};
function Za() {
return import("./htmlMode-DzAGauTE.js");
}
function Qa(e, t = Ba, n = Va(e)) {
let r = new za(e, t, n), i, a = Ra.languages.onLanguage(e, async () => {
i = (await Za()).setupMode(r);
});
return {
defaults: r,
dispose() {
a.dispose(), i?.dispose(), i = void 0;
}
};
}
// ../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/editor.main.js
var $a = /* @__PURE__ */ Wt({
CancellationTokenSource: () => an,
Emitter: () => $t,
KeyCode: () => nn,
KeyMod: () => Xt,
MarkerSeverity: () => Gt,
MarkerTag: () => en,
Position: () => rn,
Range: () => Kt,
Selection: () => Zt,
SelectionDirection: () => on,
Token: () => qt,
Uri: () => Jt,
editor: () => tn,
languages: () => Yt
}), eo = "hive-laboratory.openDocs", to = (e) => new _a(e.lineNumber - 1, e.column - 1), no = (e, t, n) => {
let r = qe(t, to(n), e);
if (!r) return null;
let { typeInfo: i } = r;
if (i.fieldDef && i.parentType) return {
kind: "field",
typeName: Rt(i.parentType).name,
fieldName: i.fieldDef.name
};
let a = i.type ?? i.inputType;
return a ? {
kind: "type",
name: Rt(a).name
} : null;
}, ro = (e) => {
let t = tn.registerCommand(eo, (t, ...n) => {
e.openDocs(n[0]);
}), n = Yt.registerHoverProvider("graphql", { provideHover(t, n) {
let r = e.getSchema();
if (!r) return null;
let i = t.getValue(), a = st(r, i, to(n), void 0, { useMarkdown: !0 });
if (!a || typeof a != "string") return null;
let o = [{ value: a }], s = no(r, i, n);
return s && o.push({
isTrusted: !0,
value: `[Open in Docs](command:${eo}?${encodeURIComponent(JSON.stringify([s]))})`
}), { contents: o };
} });
return () => {
n.dispose(), t.dispose();
};
}, io = /@font-face\s*\{[^}]*\}/g, ao = "data-hive-laboratory-fonts", oo = !1;
function so(e) {
if (oo || typeof document > "u" || (oo = !0, document.head.querySelector(`[${ao}]`))) return;
let t = e.match(io);
if (!t?.length) return;
let n = document.createElement("style");
n.setAttribute(ao, ""), n.textContent = t.join("\n"), document.head.append(n);
}
// ../../../node_modules/.pnpm/sonner@2.0.7_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.mjs
var co = (/* @__PURE__ */ Ut(((e, t, n) => {
(function() {
var n, r = "Expected a function", i = "__lodash_hash_undefined__", a = "__lodash_placeholder__", o = 1, s = 2, c = 8, l = 16, u = 32, d = 64, f = 128, p = 256, m = 512, h = 1 / 0, g = 9007199254740991, _ = 17976931348623157e292, v = NaN, y = 4294967295, b = y - 1, x = y >>> 1, S = [
["ary", f],
["bind", o],
["bindKey", s],
["curry", c],
["curryRight", l],
["flip", m],
["partial", u],
["partialRight", d],
["rearg", p]
], C = "[object Arguments]", w = "[object Array]", T = "[object AsyncFunction]", E = "[object Boolean]", D = "[object Date]", O = "[object DOMException]", k = "[object Error]", A = "[object Function]", ee = "[object GeneratorFunction]", j = "[object Map]", te = "[object Number]", M = "[object Null]", ne = "[object Object]", N = "[object Promise]", re = "[object Proxy]", ie = "[object RegExp]", ae = "[object Set]", oe = "[object String]", se = "[object Symbol]", ce = "[object Undefined]", le = "[object WeakMap]", ue = "[object WeakSet]", P = "[object ArrayBuffer]", de = "[object DataView]", fe = "[object Float32Array]", pe = "[object Float64Array]", me = "[object Int8Array]", he = "[object Int16Array]", ge = "[object Int32Array]", _e = "[object Uint8Array]", ve = "[object Uint8ClampedArray]", ye = "[object Uint16Array]", be = "[object Uint32Array]", xe = /\b__p \+= '';/g, Se = /\b(__p \+=) '' \+/g, Ce = /(__e\(.*?\)|\b__t\)) \+\n'';/g, we = /&(?:amp|lt|gt|quot|#39);/g, Te = /[&<>"']/g, Ee = RegExp(we.source), De = RegExp(Te.source), Oe = /<%-([\s\S]+?)%>/g, ke = /<%([\s\S]+?)%>/g, Ae = /<%=([\s\S]+?)%>/g, je = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Me = /^\w*$/, Ne = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Pe = /[\\^$.*+?()[\]{}|]/g, Fe = RegExp(Pe.source), Ie = /^\s+/, Le = /\s/, Re = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, ze = /\{\n\/\* \[wrapped with (.+)\] \*/, Be = /,? & /, Ve = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, He = /[()=,{}\[\]\/\s]/, Ue = /\\(\\)?/g, We = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Ge = /\w*$/, Ke = /^[-+]0x[0-9a-f]+$/i, qe = /^0b[01]+$/i, Je = /^\[object .+?Constructor\]$/, Ye = /^0o[0-7]+$/i, Xe = /^(?:0|[1-9]\d*)$/, Ze = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Qe = /($^)/, $e = /['\n\r\u2028\u2029\\]/g, et = "\\ud800-\\udfff", tt = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", nt = "\\u2700-\\u27bf", rt = "a-z\\xdf-\\xf6\\xf8-\\xff", it = "\\xac\\xb1\\xd7\\xf7", at = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", ot = "\\u2000-\\u206f", st = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ct = "A-Z\\xc0-\\xd6\\xd8-\\xde", lt = "\\ufe0e\\ufe0f", ut = it + at + ot + st, dt = "['’]", ft = "[" + et + "]", pt = "[" + ut + "]", mt = "[" + tt + "]", ht = "\\d+", gt = "[" + nt + "]", _t = "[" + rt + "]", vt = "[^" + et + ut + ht + nt + rt + ct + "]", yt = "\\ud83c[\\udffb-\\udfff]", bt = "(?:" + mt + "|" + yt + ")", xt = "[^" + et + "]", F = "(?:\\ud83c[\\udde6-\\uddff]){2}", St = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ct = "[" + ct + "]", wt = "\\u200d", Tt = "(?:" + _t + "|" + vt + ")", Et = "(?:" + Ct + "|" + vt + ")", Dt = "(?:" + dt + "(?:d|ll|m|re|s|t|ve))?", Ot = "(?:" + dt + "(?:D|LL|M|RE|S|T|VE))?", kt = bt + "?", At = "[" + lt + "]?", jt = "(?:" + wt + "(?:" + [
xt,
F,
St
].join("|") + ")" + At + kt + ")*", Mt = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Nt = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Pt = At + kt + jt, Ft = "(?:" + [
gt,
F,
St
].join("|") + ")" + Pt, It = "(?:" + [
xt + mt + "?",
mt,
F,
St,
ft
].join("|") + ")", Lt = RegExp(dt, "g"), Rt = RegExp(mt, "g"), zt = RegExp(yt + "(?=" + yt + ")|" + It + Pt, "g"), Bt = RegExp([
Ct + "?" + _t + "+" + Dt + "(?=" + [
pt,
Ct,
"$"
].join("|") + ")",
Et + "+" + Ot + "(?=" + [
pt,
Ct + Tt,
"$"
].join("|") + ")",
Ct + "?" + Tt + "+" + Dt,
Ct + "+" + Ot,
Nt,
Mt,
ht,
Ft
].join("|"), "g"), Vt = RegExp("[" + wt + et + tt + lt + "]"), Ht = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Ut = /* @__PURE__ */ "Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout".split("."), Wt = -1, Gt = {};
Gt[fe] = Gt[pe] = Gt[me] = Gt[he] = Gt[ge] = Gt[_e] = Gt[ve] = Gt[ye] = Gt[be] = !0, Gt[C] = Gt[w] = Gt[P] = Gt[E] = Gt[de] = Gt[D] = Gt[k] = Gt[A] = Gt[j] = Gt[te] = Gt[ne] = Gt[ie] = Gt[ae] = Gt[oe] = Gt[le] = !1;
var Kt = {};
Kt[C] = Kt[w] = Kt[P] = Kt[de] = Kt[E] = Kt[D] = Kt[fe] = Kt[pe] = Kt[me] = Kt[he] = Kt[ge] = Kt[j] = Kt[te] = Kt[ne] = Kt[ie] = Kt[ae] = Kt[oe] = Kt[se] = Kt[_e] = Kt[ve] = Kt[ye] = Kt[be] = !0, Kt[k] = Kt[A] = Kt[le] = !1;
var qt = {
À: "A",
Á: "A",
Â: "A",
Ã: "A",
Ä: "A",
Å: "A",
à: "a",
á: "a",
â: "a",
ã: "a",
ä: "a",
å: "a",
Ç: "C",
ç: "c",
Ð: "D",
ð: "d",
È: "E",
É: "E",
Ê: "E",
Ë: "E",
è: "e",
é: "e",
ê: "e",
ë: "e",
Ì: "I",
Í: "I",
Î: "I",
Ï: "I",
ì: "i",
í: "i",
î: "i",
ï: "i",
Ñ: "N",
ñ: "n",
Ò: "O",
Ó: "O",
Ô: "O",
Õ: "O",
Ö: "O",
Ø: "O",
ò: "o",
ó: "o",
ô: "o",
õ: "o",
ö: "o",
ø: "o",
Ù: "U",
Ú: "U",
Û: "U",
Ü: "U",
ù: "u",
ú: "u",
û: "u",
ü: "u",
Ý: "Y",
ý: "y",
ÿ: "y",
Æ: "Ae",
æ: "ae",
Þ: "Th",
þ: "th",
ß: "ss",
Ā: "A",
Ă: "A",
Ą: "A",
ā: "a",
ă: "a",
ą: "a",
Ć: "C",
Ĉ: "C",
Ċ: "C",
Č: "C",
ć: "c",
ĉ: "c",
ċ: "c",
č: "c",
Ď: "D",
Đ: "D",
ď: "d",
đ: "d",
Ē: "E",
Ĕ: "E",
Ė: "E",
Ę: "E",
Ě: "E",
ē: "e",
ĕ: "e",
ė: "e",
ę: "e",
ě: "e",
Ĝ: "G",
Ğ: "G",
Ġ: "G",
Ģ: "G",
ĝ: "g",
ğ: "g",
ġ: "g",
ģ: "g",
Ĥ: "H",
Ħ: "H",
ĥ: "h",
ħ: "h",
Ĩ: "I",
Ī: "I",
Ĭ: "I",
Į: "I",
İ: "I",
ĩ: "i",
ī: "i",
ĭ: "i",
į: "i",
ı: "i",
Ĵ: "J",
ĵ: "j",
Ķ: "K",
ķ: "k",
ĸ: "k",
Ĺ: "L",
Ļ: "L",
Ľ: "L",
Ŀ: "L",
Ł: "L",
ĺ: "l",
ļ: "l",
ľ: "l",
ŀ: "l",
ł: "l",
Ń: "N",
Ņ: "N",
Ň: "N",
Ŋ: "N",
ń: "n",
ņ: "n",
ň: "n",
ŋ: "n",
Ō: "O",
Ŏ: "O",
Ő: "O",
ō: "o",
ŏ: "o",
ő: "o",
Ŕ: "R",
Ŗ: "R",
Ř: "R",
ŕ: "r",
ŗ: "r",
ř: "r",
Ś: "S",
Ŝ: "S",
Ş: "S",
Š: "S",
ś: "s",
ŝ: "s",
ş: "s",
š: "s",
Ţ: "T",
Ť: "T",
Ŧ: "T",
ţ: "t",
ť: "t",
ŧ: "t",
Ũ: "U",
Ū: "U",
Ŭ: "U",
Ů: "U",
Ű: "U",
Ų: "U",
ũ: "u",
ū: "u",
ŭ: "u",
ů: "u",
ű: "u",
ų: "u",
Ŵ: "W",
ŵ: "w",
Ŷ: "Y",
ŷ: "y",
Ÿ: "Y",
Ź: "Z",
Ż: "Z",
Ž: "Z",
ź: "z",
ż: "z",
ž: "z",
IJ: "IJ",
ij: "ij",
Œ: "Oe",
œ: "oe",
ʼn: "'n",
ſ: "s"
}, Jt = {
"&": "&",
"<": "<",
">": ">",
"\"": """,
"'": "'"
}, Yt = {
"&": "&",
"<": "<",
">": ">",
""": "\"",
"'": "'"
}, Xt = {
"\\": "\\",
"'": "'",
"\n": "n",
"\r": "r",
"\u2028": "u2028",
"\u2029": "u2029"
}, Zt = parseFloat, Qt = parseInt, $t = typeof global == "object" && global && global.Object === Object && global, en = typeof self == "object" && self && self.Object === Object && self, tn = $t || en || Function("return this")(), nn = typeof e == "object" && e && !e.nodeType && e, rn = nn && typeof t == "object" && t && !t.nodeType && t, an = rn && rn.exports === nn, on = an && $t.process, sn = function() {
try {
return rn && rn.require && rn.require("util").types || on && on.binding && on.binding("util");
} catch {}
}(), I = sn && sn.isArrayBuffer, L = sn && sn.isDate, cn = sn && sn.isMap, ln = sn && sn.isRegExp, un = sn && sn.isSet, dn = sn && sn.isTypedArray;
function fn(e, t, n) {
switch (n.length) {
case 0: return e.call(t);
case 1: return e.call(t, n[0]);
case 2: return e.call(t, n[0], n[1]);
case 3: return e.call(t, n[0], n[1], n[2]);
}
return e.apply(t, n);
}
function pn(e, t, n, r) {
for (var i = -1, a = e == null ? 0 : e.length; ++i < a;) {
var o = e[i];
t(r, o, n(o), e);
}
return r;
}
function R(e, t) {
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1;);
return e;
}
function mn(e, t) {
for (var n = e == null ? 0 : e.length; n-- && t(e[n], n, e) !== !1;);
return e;
}
function hn(e, t) {
for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (!t(e[n], n, e)) return !1;
return !0;
}
function z(e, t) {
for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
var o = e[n];
t(o, n, e) && (a[i++] = o);
}
return a;
}
function gn(e, t) {
return !!(e != null && e.length) && Tn(e, t, 0) > -1;
}
function _n(e, t, n) {
for (var r = -1, i = e == null ? 0 : e.length; ++r < i;) if (n(t, e[r])) return !0;
return !1;
}
function vn(e, t) {
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
return i;
}
function yn(e, t) {
for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
return e;
}
function B(e, t, n, r) {
var i = -1, a = e == null ? 0 : e.length;
for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
return n;
}
function bn(e, t, n, r) {
var i = e == null ? 0 : e.length;
for (r && i && (n = e[--i]); i--;) n = t(n, e[i], i, e);
return n;
}
function V(e, t) {
for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
return !1;
}
var H = kn("length");
function xn(e) {
return e.split("");
}
function Sn(e) {
return e.match(Ve) || [];
}
function Cn(e, t, n) {
var r;
return n(e, function(e, n, i) {
if (t(e, n, i)) return r = n, !1;
}), r;
}
function wn(e, t, n, r) {
for (var i = e.length, a = n + (r ? 1 : -1); r ? a-- : ++a < i;) if (t(e[a], a, e)) return a;
return -1;
}
function Tn(e, t, n) {
return t === t ? tr(e, t, n) : wn(e, Dn, n);
}
function En(e, t, n, r) {
for (var i = n - 1, a = e.length; ++i < a;) if (r(e[i], t)) return i;
return -1;
}
function Dn(e) {
return e !== e;
}
function On(e, t) {
var n = e == null ? 0 : e.length;
return n ? Nn(e, t) / n : v;
}
function kn(e) {
return function(t) {
return t == null ? n : t[e];
};
}
function An(e) {
return function(t) {
return e == null ? n : e[t];
};
}
function jn(e, t, n, r, i) {
return i(e, function(e, i, a) {
n = r ? (r = !1, e) : t(n, e, i, a);
}), n;
}
function Mn(e, t) {
var n = e.length;
for (e.sort(t); n--;) e[n] = e[n].value;
return e;
}
function Nn(e, t) {
for (var r, i = -1, a = e.length; ++i < a;) {
var o = t(e[i]);
o !== n && (r = r === n ? o : r + o);
}
return r;
}
function Pn(e, t) {
for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
return r;
}
function Fn(e, t) {
return vn(t, function(t) {
return [t, e[t]];
});
}
function In(e) {
return e && e.slice(0, ar(e) + 1).replace(Ie, "");
}
function Ln(e) {
return function(t) {
return e(t);
};
}
function Rn(e, t) {
return vn(t, function(t) {
return e[t];
});
}
function zn(e, t) {
return e.has(t);
}
function Bn(e, t) {
for (var n = -1, r = e.length; ++n < r && Tn(t, e[n], 0) > -1;);
return n;
}
function Vn(e, t) {
for (var n = e.length; n-- && Tn(t, e[n], 0) > -1;);
return n;
}
function Hn(e, t) {
for (var n = e.length, r = 0; n--;) e[n] === t && ++r;
return r;
}
var Un = An(qt), Wn = An(Jt);
function Gn(e) {
return "\\" + Xt[e];
}
function Kn(e, t) {
return e == null ? n : e[t];
}
function qn(e) {
return Vt.test(e);
}
function Jn(e) {
return Ht.test(e);
}
function Yn(e) {
for (var t, n = []; !(t = e.next()).done;) n.push(t.value);
return n;
}
function Xn(e) {
var t = -1, n = Array(e.size);
return e.forEach(function(e, r) {
n[++t] = [r, e];
}), n;
}
function Zn(e, t) {
return function(n) {
return e(t(n));
};
}
function Qn(e, t) {
for (var n = -1, r = e.length, i = 0, o = []; ++n < r;) {
var s = e[n];
(s === t || s === a) && (e[n] = a, o[i++] = n);
}
return o;
}
function $n(e) {
var t = -1, n = Array(e.size);
return e.forEach(function(e) {
n[++t] = e;
}), n;
}
function er(e) {
var t = -1, n = Array(e.size);
return e.forEach(function(e) {
n[++t] = [e, e];
}), n;
}
function tr(e, t, n) {
for (var r = n - 1, i = e.length; ++r < i;) if (e[r] === t) return r;
return -1;
}
function nr(e, t, n) {
for (var r = n + 1; r--;) if (e[r] === t) return r;
return r;
}
function rr(e) {
return qn(e) ? sr(e) : H(e);
}
function ir(e) {
return qn(e) ? cr(e) : xn(e);
}
function ar(e) {
for (var t = e.length; t-- && Le.test(e.charAt(t)););
return t;
}
var or = An(Yt);
function sr(e) {
for (var t = zt.lastIndex = 0; zt.test(e);) ++t;
return t;
}
function cr(e) {
return e.match(zt) || [];
}
function lr(e) {
return e.match(Bt) || [];
}
var ur = (function e(t) {
t = t == null ? tn : ur.defaults(tn.Object(), t, ur.pick(tn, Ut));
var Le = t.Array, Ve = t.Date, et = t.Error, tt = t.Function, nt = t.Math, rt = t.Object, it = t.RegExp, at = t.String, ot = t.TypeError, st = Le.prototype, ct = tt.prototype, lt = rt.prototype, ut = t["__core-js_shared__"], dt = ct.toString, ft = lt.hasOwnProperty, pt = 0, mt = function() {
var e = /[^.]+$/.exec(ut && ut.keys && ut.keys.IE_PROTO || "");
return e ? "Symbol(src)_1." + e : "";
}(), ht = lt.toString, gt = dt.call(rt), _t = tn._, vt = it("^" + dt.call(ft).replace(Pe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), yt = an ? t.Buffer : n, bt = t.Symbol, xt = t.Uint8Array, F = yt ? yt.allocUnsafe : n, St = Zn(rt.getPrototypeOf, rt), Ct = rt.create, wt = lt.propertyIsEnumerable, Tt = st.splice, Et = bt ? bt.isConcatSpreadable : n, Dt = bt ? bt.iterator : n, Ot = bt ? bt.toStringTag : n, kt = function() {
try {
var e = Io(rt, "defineProperty");
return e({}, "", {}), e;
} catch {}
}(), At = t.clearTimeout !== tn.clearTimeout && t.clearTimeout, jt = Ve && Ve.now !== tn.Date.now && Ve.now, Mt = t.setTimeout !== tn.setTimeout && t.setTimeout, Nt = nt.ceil, Pt = nt.floor, Ft = rt.getOwnPropertySymbols, It = yt ? yt.isBuffer : n, zt = t.isFinite, Bt = st.join, Vt = Zn(rt.keys, rt), Ht = nt.max, qt = nt.min, Jt = Ve.now, Yt = t.parseInt, Xt = nt.random, $t = st.reverse, en = Io(t, "DataView"), nn = Io(t, "Map"), rn = Io(t, "Promise"), on = Io(t, "Set"), sn = Io(t, "WeakMap"), H = Io(rt, "create"), xn = sn && new sn(), An = {}, tr = xs(en), sr = xs(nn), cr = xs(rn), dr = xs(on), fr = xs(sn), pr = bt ? bt.prototype : n, mr = pr ? pr.valueOf : n, hr = pr ? pr.toString : n;
function U(e) {
if (uu(e) && !Jl(e) && !(e instanceof yr)) {
if (e instanceof vr) return e;
if (ft.call(e, "__wrapped__")) return Cs(e);
}
return new vr(e);
}
var gr = function() {
function e() {}
return function(t) {
if (!lu(t)) return {};
if (Ct) return Ct(t);
e.prototype = t;
var r = new e();
return e.prototype = n, r;
};
}();
function _r() {}
function vr(e, t) {
this.__wrapped__ = e, this.__actions__ = [], this.__chain__ = !!t, this.__index__ = 0, this.__values__ = n;
}
U.templateSettings = {
escape: Oe,
evaluate: ke,
interpolate: Ae,
variable: "",
imports: { _: U }
}, U.prototype = _r.prototype, U.prototype.constructor = U, vr.prototype = gr(_r.prototype), vr.prototype.constructor = vr;
function yr(e) {
this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = y, this.__views__ = [];
}
function br() {
var e = new yr(this.__wrapped__);
return e.__actions__ = Ka(this.__actions__), e.__dir__ = this.__dir__, e.__filtered__ = this.__filtered__, e.__iteratees__ = Ka(this.__iteratees__), e.__takeCount__ = this.__takeCount__, e.__views__ = Ka(this.__views__), e;
}
function xr() {
if (this.__filtered__) {
var e = new yr(this);
e.__dir__ = -1, e.__filtered__ = !0;
} else e = this.clone(), e.__dir__ *= -1;
return e;
}
function Sr() {
var e = this.__wrapped__.value(), t = this.__dir__, n = Jl(e), r = t < 0, i = n ? e.length : 0, a = Vo(0, i, this.__views__), o = a.start, s = a.end, c = s - o, l = r ? s : o - 1, u = this.__iteratees__, d = u.length, f = 0, p = qt(c, this.__takeCount__);
if (!n || !r && i == c && p == c) return Da(e, this.__actions__);
var m = [];
outer: for (; c-- && f < p;) {
l += t;
for (var h = -1, g = e[l]; ++h < d;) {
var _ = u[h], v = _.iteratee, y = _.type, b = v(g);
if (y == 2) g = b;
else if (!b) {
if (y == 1) continue outer;
break outer;
}
}
m[f++] = g;
}
return m;
}
yr.prototype = gr(_r.prototype), yr.prototype.constructor = yr;
function Cr(e) {
var t = -1, n = e == null ? 0 : e.length;
for (this.clear(); ++t < n;) {
var r = e[t];
this.set(r[0], r[1]);
}
}
function wr() {
this.__data__ = H ? H(null) : {}, this.size = 0;
}
function Tr(e) {
var t = this.has(e) && delete this.__data__[e];
return this.size -= +!!t, t;
}
function Er(e) {
var t = this.__data__;
if (H) {
var r = t[e];
return r === i ? n : r;
}
return ft.call(t, e) ? t[e] : n;
}
function Dr(e) {
var t = this.__data__;
return H ? t[e] !== n : ft.call(t, e);
}
function Or(e, t) {
var r = this.__data__;
return this.size += +!this.has(e), r[e] = H && t === n ? i : t, this;
}
Cr.prototype.clear = wr, Cr.prototype.delete = Tr, Cr.prototype.get = Er, Cr.prototype.has = Dr, Cr.prototype.set = Or;
function kr(e) {
var t = -1, n = e == null ? 0 : e.length;
for (this.clear(); ++t < n;) {
var r = e[t];
this.set(r[0], r[1]);
}
}
function Ar() {
this.__data__ = [], this.size = 0;
}
function jr(e) {
var t = this.__data__, n = $r(t, e);
return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Tt.call(t, n, 1), --this.size, !0);
}
function Mr(e) {
var t = this.__data__, r = $r(t, e);
return r < 0 ? n : t[r][1];
}
function Nr(e) {
return $r(this.__data__, e) > -1;
}
function Pr(e, t) {
var n = this.__data__, r = $r(n, e);
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
}
kr.prototype.clear = Ar, kr.prototype.delete = jr, kr.prototype.get = Mr, kr.prototype.has = Nr, kr.prototype.set = Pr;
function W(e) {
var t = -1, n = e == null ? 0 : e.length;
for (this.clear(); ++t < n;) {
var r = e[t];
this.set(r[0], r[1]);
}
}
function Fr() {
this.size = 0, this.__data__ = {
hash: new Cr(),
map: new (nn || kr)(),
string: new Cr()
};
}
function Ir(e) {
var t = Po(this, e).delete(e);
return this.size -= +!!t, t;
}
function Lr(e) {
return Po(this, e).get(e);
}
function Rr(e) {
return Po(this, e).has(e);
}
function zr(e, t) {
var n = Po(this, e), r = n.size;
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
}
W.prototype.clear = Fr, W.prototype.delete = Ir, W.prototype.get = Lr, W.prototype.has = Rr, W.prototype.set = zr;
function Br(e) {
var t = -1, n = e == null ? 0 : e.length;
for (this.__data__ = new W(); ++t < n;) this.add(e[t]);
}
function G(e) {
return this.__data__.set(e, i), this;
}
function K(e) {
return this.__data__.has(e);
}
Br.prototype.add = Br.prototype.push = G, Br.prototype.has = K;
function Vr(e) {
var t = this.__data__ = new kr(e);
this.size = t.size;
}
function Hr() {
this.__data__ = new kr(), this.size = 0;
}
function Ur(e) {
var t = this.__data__, n = t.delete(e);
return this.size = t.size, n;
}
function Wr(e) {
return this.__data__.get(e);
}
function Gr(e) {
return this.__data__.has(e);
}
function Kr(e, t) {
var n = this.__data__;
if (n instanceof kr) {
var r = n.__data__;
if (!nn || r.length < 199) return r.push([e, t]), this.size = ++n.size, this;
n = this.__data__ = new W(r);
}
return n.set(e, t), this.size = n.size, this;
}
Vr.prototype.clear = Hr, Vr.prototype.delete = Ur, Vr.prototype.get = Wr, Vr.prototype.has = Gr, Vr.prototype.set = Kr;
function qr(e, t) {
var n = Jl(e), r = !n && ql(e), i = !n && !r && $l(e), a = !n && !r && !i && Tu(e), o = n || r || i || a, s = o ? Pn(e.length, at) : [], c = s.length;
for (var l in e) (t || ft.call(e, l)) && !(o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || Yo(l, c))) && s.push(l);
return s;
}
function Jr(e) {
var t = e.length;
return t ? e[oa(0, t - 1)] : n;
}
function Yr(e, t) {
return vs(Ka(e), ai(t, 0, e.length));
}
function Xr(e) {
return vs(Ka(e));
}
function Zr(e, t, r) {
(r !== n && !Wl(e[t], r) || r === n && !(t in e)) && ri(e, t, r);
}
function Qr(e, t, r) {
var i = e[t];
(!(ft.call(e, t) && Wl(i, r)) || r === n && !(t in e)) && ri(e, t, r);
}
function $r(e, t) {
for (var n = e.length; n--;) if (Wl(e[n][0], t)) return n;
return -1;
}
function ei(e, t, n, r) {
return di(e, function(e, i, a) {
t(r, e, n(e), a);
}), r;
}
function ti(e, t) {
return e && qa(t, sd(t), e);
}
function ni(e, t) {
return e && qa(t, cd(t), e);
}
function ri(e, t, n) {
t == "__proto__" && kt ? kt(e, t, {
configurable: !0,
enumerable: !0,
value: n,
writable: !0
}) : e[t] = n;
}
function ii(e, t) {
for (var r = -1, i = t.length, a = Le(i), o = e == null; ++r < i;) a[r] = o ? n : td(e, t[r]);
return a;
}
function ai(e, t, r) {
return e === e && (r !== n && (e = e <= r ? e : r), t !== n && (e = e >= t ? e : t)), e;
}
function oi(e, t, r, i, a, o) {
var s, c = t & 1, l = t & 2, u = t & 4;
if (r && (s = a ? r(e, i, a, o) : r(e)), s !== n) return s;
if (!lu(e)) return e;
var d = Jl(e);
if (d) {
if (s = Wo(e), !c) return Ka(e, s);
} else {
var f = Bo(e), p = f == A || f == ee;
if ($l(e)) return Ia(e, c);
if (f == ne || f == C || p && !a) {
if (s = l || p ? {} : Go(e), !c) return l ? Ya(e, ni(s, e)) : Ja(e, ti(s, e));
} else {
if (!Kt[f]) return a ? e : {};
s = Ko(e, f, c);
}
}
o ||= new Vr();
var m = o.get(e);
if (m) return m;
o.set(e, s), Su(e) ? e.forEach(function(n) {
s.add(oi(n, t, r, n, e, o));
}) : du(e) && e.forEach(function(n, i) {
s.set(i, oi(n, t, r, i, e, o));
});
var h = d ? n : (u ? l ? ko : Oo : l ? cd : sd)(e);
return R(h || e, function(n, i) {
h && (i = n, n = e[i]), Qr(s, i, oi(n, t, r, i, e, o));
}), s;
}
function si(e) {
var t = sd(e);
return function(n) {
return ci(n, e, t);
};
}
function ci(e, t, r) {
var i = r.length;
if (e == null) return !i;
for (e = rt(e); i--;) {
var a = r[i], o = t[a], s = e[a];
if (s === n && !(a in e) || !o(s)) return !1;
}
return !0;
}
function li(e, t, i) {
if (typeof e != "function") throw new ot(r);
return ms(function() {
e.apply(n, i);
}, t);
}
function ui(e, t, n, r) {
var i = -1, a = gn, o = !0, s = e.length, c = [], l = t.length;
if (!s) return c;
n && (t = vn(t, Ln(n))), r ? (a = _n, o = !1) : t.length >= 200 && (a = zn, o = !1, t = new Br(t));
outer: for (; ++i < s;) {
var u = e[i], d = n == null ? u : n(u);
if (u = r || u !== 0 ? u : 0, o && d === d) {
for (var f = l; f--;) if (t[f] === d) continue outer;
c.push(u);
} else a(t, d, r) || c.push(u);
}
return c;
}
var di = Qa(bi), fi = Qa(xi, !0);
function pi(e, t) {
var n = !0;
return di(e, function(e, r, i) {
return n = !!t(e, r, i), n;
}), n;
}
function mi(e, t, r) {
for (var i = -1, a = e.length; ++i < a;) {
var o = e[i], s = t(o);
if (s != null && (c === n ? s === s && !wu(s) : r(s, c))) var c = s, l = o;
}
return l;
}
function hi(e, t, r, i) {
var a = e.length;
for (r = Nu(r), r < 0 && (r = -r > a ? 0 : a + r), i = i === n || i > a ? a : Nu(i), i < 0 && (i += a), i = r > i ? 0 : Pu(i); r < i;) e[r++] = t;
return e;
}
function gi(e, t) {
var n = [];
return di(e, function(e, r, i) {
t(e, r, i) && n.push(e);
}), n;
}
function _i(e, t, n, r, i) {
var a = -1, o = e.length;
for (n ||= Jo, i ||= []; ++a < o;) {
var s = e[a];
t > 0 && n(s) ? t > 1 ? _i(s, t - 1, n, r, i) : yn(i, s) : r || (i[i.length] = s);
}
return i;
}
var vi = $a(), yi = $a(!0);
function bi(e, t) {
return e && vi(e, t, sd);
}
function xi(e, t) {
return e && yi(e, t, sd);
}
function Si(e, t) {
return z(t, function(t) {
return X(e[t]);
});
}
function Ci(e, t) {
t = Ma(t, e);
for (var r = 0, i = t.length; e != null && r < i;) e = e[bs(t[r++])];
return r && r == i ? e : n;
}
function wi(e, t, n) {
var r = t(e);
return Jl(e) ? r : yn(r, n(e));
}
function Ti(e) {
return e == null ? e === n ? ce : M : Ot && Ot in rt(e) ? Lo(e) : cs(e);
}
function Ei(e, t) {
return e > t;
}
function Di(e, t) {
return e != null && ft.call(e, t);
}
function Oi(e, t) {
return e != null && t in rt(e);
}
function ki(e, t, n) {
return e >= qt(t, n) && e < Ht(t, n);
}
function Ai(e, t, r) {
for (var i = r ? _n : gn, a = e[0].length, o = e.length, s = o, c = Le(o), l = Infinity, u = []; s--;) {
var d = e[s];
s && t && (d = vn(d, Ln(t))), l = qt(d.length, l), c[s] = !r && (t || a >= 120 && d.length >= 120) ? new Br(s && d) : n;
}
d = e[0];
var f = -1, p = c[0];
outer: for (; ++f < a && u.length < l;) {
var m = d[f], h = t ? t(m) : m;
if (m = r || m !== 0 ? m : 0, !(p ? zn(p, h) : i(u, h, r))) {
for (s = o; --s;) {
var g = c[s];
if (!(g ? zn(g, h) : i(e[s], h, r))) continue outer;
}
p && p.push(h), u.push(m);
}
}
return u;
}
function ji(e, t, n, r) {
return bi(e, function(e, i, a) {
t(r, n(e), i, a);
}), r;
}
function Mi(e, t, r) {
t = Ma(t, e), e = us(e, t);
var i = e == null ? e : e[bs(Js(t))];
return i == null ? n : fn(i, e, r);
}
function Ni(e) {
return uu(e) && Ti(e) == C;
}
function Pi(e) {
return uu(e) && Ti(e) == P;
}
function Fi(e) {
return uu(e) && Ti(e) == D;
}
function Ii(e, t, n, r, i) {
return e === t ? !0 : e == null || t == null || !uu(e) && !uu(t) ? e !== e && t !== t : Li(e, t, n, r, Ii, i);
}
function Li(e, t, n, r, i, a) {
var o = Jl(e), s = Jl(t), c = o ? w : Bo(e), l = s ? w : Bo(t);
c = c == C ? ne : c, l = l == C ? ne : l;
var u = c == ne, d = l == ne, f = c == l;
if (f && $l(e)) {
if (!$l(t)) return !1;
o = !0, u = !1;
}
if (f && !u) return a ||= new Vr(), o || Tu(e) ? wo(e, t, n, r, i, a) : To(e, t, c, n, r, i, a);
if (!(n & 1)) {
var p = u && ft.call(e, "__wrapped__"), m = d && ft.call(t, "__wrapped__");
if (p || m) {
var h = p ? e.value() : e, g = m ? t.value() : t;
return a ||= new Vr(), i(h, g, n, r, a);
}
}
return f ? (a ||= new Vr(), Eo(e, t, n, r, i, a)) : !1;
}
function Ri(e) {
return uu(e) && Bo(e) == j;
}
function zi(e, t, r, i) {
var a = r.length, o = a, s = !i;
if (e == null) return !o;
for (e = rt(e); a--;) {
var c = r[a];
if (s && c[2] ? c[1] !== e[c[0]] : !(c[0] in e)) return !1;
}
for (; ++a < o;) {
c = r[a];
var l = c[0], u = e[l], d = c[1];
if (s && c[2]) {
if (u === n && !(l in e)) return !1;
} else {
var f = new Vr();
if (i) var p = i(u, d, l, e, t, f);
if (!(p === n ? Ii(d, u, 3, i, f) : p)) return !1;
}
}
return !0;
}
function Bi(e) {
return !lu(e) || es(e) ? !1 : (X(e) ? vt : Je).test(xs(e));
}
function Vi(e) {
return uu(e) && Ti(e) == ie;
}
function Hi(e) {
return uu(e) && Bo(e) == ae;
}
function Ui(e) {
return uu(e) && cu(e.length) && !!Gt[Ti(e)];
}
function Wi(e) {
return typeof e == "function" ? e : e == null ? gf : typeof e == "object" ? Jl(e) ? Xi(e[0], e[1]) : Yi(e) : kf(e);
}
function Gi(e) {
if (!ns(e)) return Vt(e);
var t = [];
for (var n in rt(e)) ft.call(e, n) && n != "constructor" && t.push(n);
return t;
}
function Ki(e) {
if (!lu(e)) return ss(e);
var t = ns(e), n = [];
for (var r in e) (r != "constructor" || !t && ft.call(e, r)) && n.push(r);
return n;
}
function qi(e, t) {
return e < t;
}
function Ji(e, t) {
var n = -1, r = Xl(e) ? Le(e.length) : [];
return di(e, function(e, i, a) {
r[++n] = t(e, i, a);
}), r;
}
function Yi(e) {
var t = Fo(e);
return t.length == 1 && t[0][2] ? is(t[0][0], t[0][1]) : function(n) {
return n === e || zi(n, e, t);
};
}
function Xi(e, t) {
return Zo(e) && rs(t) ? is(bs(e), t) : function(r) {
var i = td(r, e);
return i === n && i === t ? rd(r, e) : Ii(t, i, 3);
};
}
function Zi(e, t, r, i, a) {
e !== t && vi(t, function(o, s) {
if (a ||= new Vr(), lu(o)) Qi(e, t, s, r, Zi, i, a);
else {
var c = i ? i(fs(e, s), o, s + "", e, t, a) : n;
c === n && (c = o), Zr(e, s, c);
}
}, cd);
}
function Qi(e, t, r, i, a, o, s) {
var c = fs(e, r), l = fs(t, r), u = s.get(l);
if (u) Zr(e, r, u);
else {
var d = o ? o(c, l, r + "", e, t, s) : n, f = d === n;
if (f) {
var p = Jl(l), m = !p && $l(l), h = !p && !m && Tu(l);
d = l, p || m || h ? Jl(c) ? d = c : Zl(c) ? d = Ka(c) : m ? (f = !1, d = Ia(l, !0)) : h ? (f = !1, d = Va(l, !0)) : d = [] : yu(l) || ql(l) ? (d = c, ql(c) ? d = Iu(c) : (!lu(c) || X(c)) && (d = Go(l))) : f = !1;
}
f && (s.set(l, d), a(d, l, i, o, s), s.delete(l)), Zr(e, r, d);
}
}
function $i(e, t) {
var r = e.length;
if (r) return t += t < 0 ? r : 0, Yo(t, r) ? e[t] : n;
}
function ea(e, t, n) {
t = t.length ? vn(t, function(e) {
return Jl(e) ? function(t) {
return Ci(t, e.length === 1 ? e[0] : e);
} : e;
}) : [gf];
var r = -1;
return t = vn(t, Ln(No())), Mn(Ji(e, function(e, n, i) {
return {
criteria: vn(t, function(t) {
return t(e);
}),
index: ++r,
value: e
};
}), function(e, t) {
return Ua(e, t, n);
});
}
function ta(e, t) {
return na(e, t, function(t, n) {
return rd(e, n);
});
}
function na(e, t, n) {
for (var r = -1, i = t.length, a = {}; ++r < i;) {
var o = t[r], s = Ci(e, o);
n(s, o) && fa(a, Ma(o, e), s);
}
return a;
}
function ra(e) {
return function(t) {
return Ci(t, e);
};
}
function ia(e, t, n, r) {
var i = r ? En : Tn, a = -1, o = t.length, s = e;
for (e === t && (t = Ka(t)), n && (s = vn(e, Ln(n))); ++a < o;) for (var c = 0, l = t[a], u = n ? n(l) : l; (c = i(s, u, c, r)) > -1;) s !== e && Tt.call(s, c, 1), Tt.call(e, c, 1);
return e;
}
function aa(e, t) {
for (var n = e ? t.length : 0, r = n - 1; n--;) {
var i = t[n];
if (n == r || i !== a) {
var a = i;
Yo(i) ? Tt.call(e, i, 1) : wa(e, i);
}
}
return e;
}
function oa(e, t) {
return e + Pt(Xt() * (t - e + 1));
}
function sa(e, t, n, r) {
for (var i = -1, a = Ht(Nt((t - e) / (n || 1)), 0), o = Le(a); a--;) o[r ? a : ++i] = e, e += n;
return o;
}
function ca(e, t) {
var n = "";
if (!e || t < 1 || t > g) return n;
do
t % 2 && (n += e), t = Pt(t / 2), t && (e += e);
while (t);
return n;
}
function la(e, t) {
return hs(ls(e, t, gf), e + "");
}
function ua(e) {
return Jr(Ed(e));
}
function da(e, t) {
var n = Ed(e);
return vs(n, ai(t, 0, n.length));
}
function fa(e, t, r, i) {
if (!lu(e)) return e;
t = Ma(t, e);
for (var a = -1, o = t.length, s = o - 1, c = e; c != null && ++a < o;) {
var l = bs(t[a]), u = r;
if (l === "__proto__" || l === "constructor" || l === "prototype") return e;
if (a != s) {
var d = c[l];
u = i ? i(d, l, c) : n, u === n && (u = lu(d) ? d : Yo(t[a + 1]) ? [] : {});
}
Qr(c, l, u), c = c[l];
}
return e;
}
var pa = xn ? function(e, t) {
return xn.set(e, t), e;
} : gf, ma = kt ? function(e, t) {
return kt(e, "toString", {
configurable: !0,
enumerable: !1,
value: ff(t),
writable: !0
});
} : gf;
function ha(e) {
return vs(Ed(e));
}
function ga(e, t, n) {
var r = -1, i = e.length;
t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
for (var a = Le(i); ++r < i;) a[r] = e[r + t];
return a;
}
function _a(e, t) {
var n;
return di(e, function(e, r, i) {
return n = t(e, r, i), !n;
}), !!n;
}
function va(e, t, n) {
var r = 0, i = e == null ? r : e.length;
if (typeof t == "number" && t === t && i <= x) {
for (; r < i;) {
var a = r + i >>> 1, o = e[a];
o !== null && !wu(o) && (n ? o <= t : o < t) ? r = a + 1 : i = a;
}
return i;
}
return ya(e, t, gf, n);
}
function ya(e, t, r, i) {
var a = 0, o = e == null ? 0 : e.length;
if (o === 0) return 0;
t = r(t);
for (var s = t !== t, c = t === null, l = wu(t), u = t === n; a < o;) {
var d = Pt((a + o) / 2), f = r(e[d]), p = f !== n, m = f === null, h = f === f, g = wu(f);
if (s) var _ = i || h;
else _ = u ? h && (i || p) : c ? h && p && (i || !m) : l ? h && p && !m && (i || !g) : m || g ? !1 : i ? f <= t : f < t;
_ ? a = d + 1 : o = d;
}
return qt(o, b);
}
function ba(e, t) {
for (var n = -1, r = e.length, i = 0, a = []; ++n < r;) {
var o = e[n], s = t ? t(o) : o;
if (!n || !Wl(s, c)) {
var c = s;
a[i++] = o === 0 ? 0 : o;
}
}
return a;
}
function xa(e) {
return typeof e == "number" ? e : wu(e) ? v : +e;
}
function Sa(e) {
if (typeof e == "string") return e;
if (Jl(e)) return vn(e, Sa) + "";
if (wu(e)) return hr ? hr.call(e) : "";
var t = e + "";
return t == "0" && 1 / e == -Infinity ? "-0" : t;
}
function Ca(e, t, n) {
var r = -1, i = gn, a = e.length, o = !0, s = [], c = s;
if (n) o = !1, i = _n;
else if (a >= 200) {
var l = t ? null : vo(e);
if (l) return $n(l);
o = !1, i = zn, c = new Br();
} else c = t ? [] : s;
outer: for (; ++r < a;) {
var u = e[r], d = t ? t(u) : u;
if (u = n || u !== 0 ? u : 0, o && d === d) {
for (var f = c.length; f--;) if (c[f] === d) continue outer;
t && c.push(d), s.push(u);
} else i(c, d, n) || (c !== s && c.push(d), s.push(u));
}
return s;
}
function wa(e, t) {
t = Ma(t, e);
var n = -1, r = t.length;
if (!r) return !0;
for (; ++n < r;) {
var i = bs(t[n]);
if (i === "__proto__" && !ft.call(e, "__proto__") || (i === "constructor" || i === "prototype") && n < r - 1) return !1;
}
var a = us(e, t);
return a == null || delete a[bs(Js(t))];
}
function Ta(e, t, n, r) {
return fa(e, t, n(Ci(e, t)), r);
}
function Ea(e, t, n, r) {
for (var i = e.length, a = r ? i : -1; (r ? a-- : ++a < i) && t(e[a], a, e););
return n ? ga(e, r ? 0 : a, r ? a + 1 : i) : ga(e, r ? a + 1 : 0, r ? i : a);
}
function Da(e, t) {
var n = e;
return n instanceof yr && (n = n.value()), B(t, function(e, t) {
return t.func.apply(t.thisArg, yn([e], t.args));
}, n);
}
function Oa(e, t, n) {
var r = e.length;
if (r < 2) return r ? Ca(e[0]) : [];
for (var i = -1, a = Le(r); ++i < r;) for (var o = e[i], s = -1; ++s < r;) s != i && (a[i] = ui(a[i] || o, e[s], t, n));
return Ca(_i(a, 1), t, n);
}
function ka(e, t, r) {
for (var i = -1, a = e.length, o = t.length, s = {}; ++i < a;) {
var c = i < o ? t[i] : n;
r(s, e[i], c);
}
return s;
}
function Aa(e) {
return Zl(e) ? e : [];
}
function ja(e) {
return typeof e == "function" ? e : gf;
}
function Ma(e, t) {
return Jl(e) ? e : Zo(e, t) ? [e] : ys(Ru(e));
}
var Na = la;
function Pa(e, t, r) {
var i = e.length;
return r = r === n ? i : r, !t && r >= i ? e : ga(e, t, r);
}
var Fa = At || function(e) {
return tn.clearTimeout(e);
};
function Ia(e, t) {
if (t) return e.slice();
var n = e.length, r = F ? F(n) : new e.constructor(n);
return e.copy(r), r;
}
function La(e) {
var t = new e.constructor(e.byteLength);
return new xt(t).set(new xt(e)), t;
}
function Ra(e, t) {
var n = t ? La(e.buffer) : e.buffer;
return new e.constructor(n, e.byteOffset, e.byteLength);
}
function za(e) {
var t = new e.constructor(e.source, Ge.exec(e));
return t.lastIndex = e.lastIndex, t;
}
function Ba(e) {
return mr ? rt(mr.call(e)) : {};
}
function Va(e, t) {
var n = t ? La(e.buffer) : e.buffer;
return new e.constructor(n, e.byteOffset, e.length);
}
function Ha(e, t) {
if (e !== t) {
var r = e !== n, i = e === null, a = e === e, o = wu(e), s = t !== n, c = t === null, l = t === t, u = wu(t);
if (!c && !u && !o && e > t || o && s && l && !c && !u || i && s && l || !r && l || !a) return 1;
if (!i && !o && !u && e < t || u && r && a && !i && !o || c && r && a || !s && a || !l) return -1;
}
return 0;
}
function Ua(e, t, n) {
for (var r = -1, i = e.criteria, a = t.criteria, o = i.length, s = n.length; ++r < o;) {
var c = Ha(i[r], a[r]);
if (c) return r >= s ? c : c * (n[r] == "desc" ? -1 : 1);
}
return e.index - t.index;
}
function Wa(e, t, n, r) {
for (var i = -1, a = e.length, o = n.length, s = -1, c = t.length, l = Ht(a - o, 0), u = Le(c + l), d = !r; ++s < c;) u[s] = t[s];
for (; ++i < o;) (d || i < a) && (u[n[i]] = e[i]);
for (; l--;) u[s++] = e[i++];
return u;
}
function Ga(e, t, n, r) {
for (var i = -1, a = e.length, o = -1, s = n.length, c = -1, l = t.length, u = Ht(a - s, 0), d = Le(u + l), f = !r; ++i < u;) d[i] = e[i];
for (var p = i; ++c < l;) d[p + c] = t[c];
for (; ++o < s;) (f || i < a) && (d[p + n[o]] = e[i++]);
return d;
}
function Ka(e, t) {
var n = -1, r = e.length;
for (t ||= Le(r); ++n < r;) t[n] = e[n];
return t;
}
function qa(e, t, r, i) {
var a = !r;
r ||= {};
for (var o = -1, s = t.length; ++o < s;) {
var c = t[o], l = i ? i(r[c], e[c], c, r, e) : n;
l === n && (l = e[c]), a ? ri(r, c, l) : Qr(r, c, l);
}
return r;
}
function Ja(e, t) {
return qa(e, Ro(e), t);
}
function Ya(e, t) {
return qa(e, zo(e), t);
}
function Xa(e, t) {
return function(n, r) {
var i = Jl(n) ? pn : ei, a = t ? t() : {};
return i(n, e, No(r, 2), a);
};
}
function Za(e) {
return la(function(t, r) {
var i = -1, a = r.length, o = a > 1 ? r[a - 1] : n, s = a > 2 ? r[2] : n;
for (o = e.length > 3 && typeof o == "function" ? (a--, o) : n, s && Xo(r[0], r[1], s) && (o = a < 3 ? n : o, a = 1), t = rt(t); ++i < a;) {
var c = r[i];
c && e(t, c, i, o);
}
return t;
});
}
function Qa(e, t) {
return function(n, r) {
if (n == null) return n;
if (!Xl(n)) return e(n, r);
for (var i = n.length, a = t ? i : -1, o = rt(n); (t ? a-- : ++a < i) && r(o[a], a, o) !== !1;);
return n;
};
}
function $a(e) {
return function(t, n, r) {
for (var i = -1, a = rt(t), o = r(t), s = o.length; s--;) {
var c = o[e ? s : ++i];
if (n(a[c], c, a) === !1) break;
}
return t;
};
}
function eo(e, t, n) {
var r = t & o, i = ro(e);
function a() {
return (this && this !== tn && this instanceof a ? i : e).apply(r ? n : this, arguments);
}
return a;
}
function to(e) {
return function(t) {
t = Ru(t);
var r = qn(t) ? ir(t) : n, i = r ? r[0] : t.charAt(0), a = r ? Pa(r, 1).join("") : t.slice(1);
return i[e]() + a;
};
}
function no(e) {
return function(t) {
return B(sf(Nd(t).replace(Lt, "")), e, "");
};
}
function ro(e) {
return function() {
var t = arguments;
switch (t.length) {
case 0: return new e();
case 1: return new e(t[0]);
case 2: return new e(t[0], t[1]);
case 3: return new e(t[0], t[1], t[2]);
case 4: return new e(t[0], t[1], t[2], t[3]);
case 5: return new e(t[0], t[1], t[2], t[3], t[4]);
case 6: return new e(t[0], t[1], t[2], t[3], t[4], t[5]);
case 7: return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6]);
}
var n = gr(e.prototype), r = e.apply(n, t);
return lu(r) ? r : n;
};
}
function io(e, t, r) {
var i = ro(e);
function a() {
for (var o = arguments.length, s = Le(o), c = o, l = Mo(a); c--;) s[c] = arguments[c];
var u = o < 3 && s[0] !== l && s[o - 1] !== l ? [] : Qn(s, l);
return o -= u.length, o < r ? go(e, t, so, a.placeholder, n, s, u, n, n, r - o) : fn(this && this !== tn && this instanceof a ? i : e, this, s);
}
return a;
}
function ao(e) {
return function(t, r, i) {
var a = rt(t);
if (!Xl(t)) {
var o = No(r, 3);
t = sd(t), r = function(e) {
return o(a[e], e, a);
};
}
var s = e(t, r, i);
return s > -1 ? a[o ? t[s] : s] : n;
};
}
function oo(e) {
return Do(function(t) {
var i = t.length, a = i, o = vr.prototype.thru;
for (e && t.reverse(); a--;) {
var s = t[a];
if (typeof s != "function") throw new ot(r);
if (o && !l && jo(s) == "wrapper") var l = new vr([], !0);
}
for (a = l ? a : i; ++a < i;) {
s = t[a];
var d = jo(s), m = d == "wrapper" ? Ao(s) : n;
l = m && $o(m[0]) && m[1] == (f | c | u | p) && !m[4].length && m[9] == 1 ? l[jo(m[0])].apply(l, m[3]) : s.length == 1 && $o(s) ? l[d]() : l.thru(s);
}
return function() {
var e = arguments, n = e[0];
if (l && e.length == 1 && Jl(n)) return l.plant(n).value();
for (var r = 0, a = i ? t[r].apply(this, e) : n; ++r < i;) a = t[r].call(this, a);
return a;
};
});
}
function so(e, t, r, i, a, u, d, p, h, g) {
var _ = t & f, v = t & o, y = t & s, b = t & (c | l), x = t & m, S = y ? n : ro(e);
function C() {
for (var n = arguments.length, o = Le(n), s = n; s--;) o[s] = arguments[s];
if (b) var c = Mo(C), l = Hn(o, c);
if (i && (o = Wa(o, i, a, b)), u && (o = Ga(o, u, d, b)), n -= l, b && n < g) {
var f = Qn(o, c);
return go(e, t, so, C.placeholder, r, o, f, p, h, g - n);
}
var m = v ? r : this, w = y ? m[e] : e;
return n = o.length, p ? o = ds(o, p) : x && n > 1 && o.reverse(), _ && h < n && (o.length = h), this && this !== tn && this instanceof C && (w = S || ro(w)), w.apply(m, o);
}
return C;
}
function co(e, t) {
return function(n, r) {
return ji(n, e, t(r), {});
};
}
function lo(e, t) {
return function(r, i) {
var a;
if (r === n && i === n) return t;
if (r !== n && (a = r), i !== n) {
if (a === n) return i;
typeof r == "string" || typeof i == "string" ? (r = Sa(r), i = Sa(i)) : (r = xa(r), i = xa(i)), a = e(r, i);
}
return a;
};
}
function uo(e) {
return Do(function(t) {
return t = vn(t, Ln(No())), la(function(n) {
var r = this;
return e(t, function(e) {
return fn(e, r, n);
});
});
});
}
function fo(e, t) {
t = t === n ? " " : Sa(t);
var r = t.length;
if (r < 2) return r ? ca(t, e) : t;
var i = ca(t, Nt(e / rr(t)));
return qn(t) ? Pa(ir(i), 0, e).join("") : i.slice(0, e);
}
function po(e, t, n, r) {
var i = t & o, a = ro(e);
function s() {
for (var t = -1, o = arguments.length, c = -1, l = r.length, u = Le(l + o), d = this && this !== tn && this instanceof s ? a : e; ++c < l;) u[c] = r[c];
for (; o--;) u[c++] = arguments[++t];
return fn(d, i ? n : this, u);
}
return s;
}
function mo(e) {
return function(t, r, i) {
return i && typeof i != "number" && Xo(t, r, i) && (r = i = n), t = Mu(t), r === n ? (r = t, t = 0) : r = Mu(r), i = i === n ? t < r ? 1 : -1 : Mu(i), sa(t, r, i, e);
};
}
function ho(e) {
return function(t, n) {
return (typeof t != "string" || typeof n != "string") && (t = Fu(t), n = Fu(n)), e(t, n);
};
}
function go(e, t, r, i, a, l, f, p, m, h) {
var g = t & c, _ = g ? f : n, v = g ? n : f, y = g ? l : n, b = g ? n : l;
t |= g ? u : d, t &= ~(g ? d : u), t & 4 || (t &= ~(o | s));
var x = [
e,
t,
a,
y,
_,
b,
v,
p,
m,
h
], S = r.apply(n, x);
return $o(e) && ps(S, x), S.placeholder = i, gs(S, e, t);
}
function _o(e) {
var t = nt[e];
return function(e, n) {
if (e = Fu(e), n = n == null ? 0 : qt(Nu(n), 292), n && zt(e)) {
var r = (Ru(e) + "e").split("e");
return r = (Ru(t(r[0] + "e" + (+r[1] + n))) + "e").split("e"), +(r[0] + "e" + (+r[1] - n));
}
return t(e);
};
}
var vo = on && 1 / $n(new on([, -0]))[1] == h ? function(e) {
return new on(e);
} : wf;
function yo(e) {
return function(t) {
var n = Bo(t);
return n == j ? Xn(t) : n == ae ? er(t) : Fn(t, e(t));
};
}
function bo(e, t, i, a, f, p, m, h) {
var g = t & s;
if (!g && typeof e != "function") throw new ot(r);
var _ = a ? a.length : 0;
if (_ || (t &= ~(u | d), a = f = n), m = m === n ? m : Ht(Nu(m), 0), h = h === n ? h : Nu(h), _ -= f ? f.length : 0, t & d) {
var v = a, y = f;
a = f = n;
}
var b = g ? n : Ao(e), x = [
e,
t,
i,
a,
f,
v,
y,
p,
m,
h
];
if (b && os(x, b), e = x[0], t = x[1], i = x[2], a = x[3], f = x[4], h = x[9] = x[9] === n ? g ? 0 : e.length : Ht(x[9] - _, 0), !h && t & (c | l) && (t &= ~(c | l)), !t || t == o) var S = eo(e, t, i);
else S = t == c || t == l ? io(e, t, h) : (t == u || t == (o | u)) && !f.length ? po(e, t, i, a) : so.apply(n, x);
return gs((b ? pa : ps)(S, x), e, t);
}
function xo(e, t, r, i) {
return e === n || Wl(e, lt[r]) && !ft.call(i, r) ? t : e;
}
function So(e, t, r, i, a, o) {
return lu(e) && lu(t) && (o.set(t, e), Zi(e, t, n, So, o), o.delete(t)), e;
}
function Co(e) {
return yu(e) ? n : e;
}
function wo(e, t, r, i, a, o) {
var s = r & 1, c = e.length, l = t.length;
if (c != l && !(s && l > c)) return !1;
var u = o.get(e), d = o.get(t);
if (u && d) return u == t && d == e;
var f = -1, p = !0, m = r & 2 ? new Br() : n;
for (o.set(e, t), o.set(t, e); ++f < c;) {
var h = e[f], g = t[f];
if (i) var _ = s ? i(g, h, f, t, e, o) : i(h, g, f, e, t, o);
if (_ !== n) {
if (_) continue;
p = !1;
break;
}
if (m) {
if (!V(t, function(e, t) {
if (!zn(m, t) && (h === e || a(h, e, r, i, o))) return m.push(t);
})) {
p = !1;
break;
}
} else if (!(h === g || a(h, g, r, i, o))) {
p = !1;
break;
}
}
return o.delete(e), o.delete(t), p;
}
function To(e, t, n, r, i, a, o) {
switch (n) {
case de:
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
e = e.buffer, t = t.buffer;
case P: return !(e.byteLength != t.byteLength || !a(new xt(e), new xt(t)));
case E:
case D:
case te: return Wl(+e, +t);
case k: return e.name == t.name && e.message == t.message;
case ie:
case oe: return e == t + "";
case j: var s = Xn;
case ae:
var c = r & 1;
if (s ||= $n, e.size != t.size && !c) return !1;
var l = o.get(e);
if (l) return l == t;
r |= 2, o.set(e, t);
var u = wo(s(e), s(t), r, i, a, o);
return o.delete(e), u;
case se: if (mr) return mr.call(e) == mr.call(t);
}
return !1;
}
function Eo(e, t, r, i, a, o) {
var s = r & 1, c = Oo(e), l = c.length;
if (l != Oo(t).length && !s) return !1;
for (var u = l; u--;) {
var d = c[u];
if (!(s ? d in t : ft.call(t, d))) return !1;
}
var f = o.get(e), p = o.get(t);
if (f && p) return f == t && p == e;
var m = !0;
o.set(e, t), o.set(t, e);
for (var h = s; ++u < l;) {
d = c[u];
var g = e[d], _ = t[d];
if (i) var v = s ? i(_, g, d, t, e, o) : i(g, _, d, e, t, o);
if (!(v === n ? g === _ || a(g, _, r, i, o) : v)) {
m = !1;
break;
}
h ||= d == "constructor";
}
if (m && !h) {
var y = e.constructor, b = t.constructor;
y != b && "constructor" in e && "constructor" in t && !(typeof y == "function" && y instanceof y && typeof b == "function" && b instanceof b) && (m = !1);
}
return o.delete(e), o.delete(t), m;
}
function Do(e) {
return hs(ls(e, n, Ls), e + "");
}
function Oo(e) {
return wi(e, sd, Ro);
}
function ko(e) {
return wi(e, cd, zo);
}
var Ao = xn ? function(e) {
return xn.get(e);
} : wf;
function jo(e) {
for (var t = e.name + "", n = An[t], r = ft.call(An, t) ? n.length : 0; r--;) {
var i = n[r], a = i.func;
if (a == null || a == e) return i.name;
}
return t;
}
function Mo(e) {
return (ft.call(U, "placeholder") ? U : e).placeholder;
}
function No() {
var e = U.iteratee || _f;
return e = e === _f ? Wi : e, arguments.length ? e(arguments[0], arguments[1]) : e;
}
function Po(e, t) {
var n = e.__data__;
return Qo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
}
function Fo(e) {
for (var t = sd(e), n = t.length; n--;) {
var r = t[n], i = e[r];
t[n] = [
r,
i,
rs(i)
];
}
return t;
}
function Io(e, t) {
var r = Kn(e, t);
return Bi(r) ? r : n;
}
function Lo(e) {
var t = ft.call(e, Ot), r = e[Ot];
try {
e[Ot] = n;
var i = !0;
} catch {}
var a = ht.call(e);
return i && (t ? e[Ot] = r : delete e[Ot]), a;
}
var Ro = Ft ? function(e) {
return e == null ? [] : (e = rt(e), z(Ft(e), function(t) {
return wt.call(e, t);
}));
} : Nf, zo = Ft ? function(e) {
for (var t = []; e;) yn(t, Ro(e)), e = St(e);
return t;
} : Nf, Bo = Ti;
(en && Bo(new en(/* @__PURE__ */ new ArrayBuffer(1))) != de || nn && Bo(new nn()) != j || rn && Bo(rn.resolve()) != N || on && Bo(new on()) != ae || sn && Bo(new sn()) != le) && (Bo = function(e) {
var t = Ti(e), r = t == ne ? e.constructor : n, i = r ? xs(r) : "";
if (i) switch (i) {
case tr: return de;
case sr: return j;
case cr: return N;
case dr: return ae;
case fr: return le;
}
return t;
});
function Vo(e, t, n) {
for (var r = -1, i = n.length; ++r < i;) {
var a = n[r], o = a.size;
switch (a.type) {
case "drop":
e += o;
break;
case "dropRight":
t -= o;
break;
case "take":
t = qt(t, e + o);
break;
case "takeRight": e = Ht(e, t - o);
}
}
return {
start: e,
end: t
};
}
function Ho(e) {
var t = e.match(ze);
return t ? t[1].split(Be) : [];
}
function Uo(e, t, n) {
t = Ma(t, e);
for (var r = -1, i = t.length, a = !1; ++r < i;) {
var o = bs(t[r]);
if (!(a = e != null && n(e, o))) break;
e = e[o];
}
return a || ++r != i ? a : (i = e == null ? 0 : e.length, !!i && cu(i) && Yo(o, i) && (Jl(e) || ql(e)));
}
function Wo(e) {
var t = e.length, n = new e.constructor(t);
return t && typeof e[0] == "string" && ft.call(e, "index") && (n.index = e.index, n.input = e.input), n;
}
function Go(e) {
return typeof e.constructor == "function" && !ns(e) ? gr(St(e)) : {};
}
function Ko(e, t, n) {
var r = e.constructor;
switch (t) {
case P: return La(e);
case E:
case D: return new r(+e);
case de: return Ra(e, n);
case fe:
case pe:
case me:
case he:
case ge:
case _e:
case ve:
case ye:
case be: return Va(e, n);
case j: return new r();
case te:
case oe: return new r(e);
case ie: return za(e);
case ae: return new r();
case se: return Ba(e);
}
}
function qo(e, t) {
var n = t.length;
if (!n) return e;
var r = n - 1;
return t[r] = (n > 1 ? "& " : "") + t[r], t = t.join(n > 2 ? ", " : " "), e.replace(Re, "{\n/* [wrapped with " + t + "] */\n");
}
function Jo(e) {
return Jl(e) || ql(e) || !!(Et && e && e[Et]);
}
function Yo(e, t) {
var n = typeof e;
return t ??= g, !!t && (n == "number" || n != "symbol" && Xe.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
function Xo(e, t, n) {
if (!lu(n)) return !1;
var r = typeof t;
return (r == "number" ? Xl(n) && Yo(t, n.length) : r == "string" && t in n) ? Wl(n[t], e) : !1;
}
function Zo(e, t) {
if (Jl(e)) return !1;
var n = typeof e;
return n == "number" || n == "symbol" || n == "boolean" || e == null || wu(e) ? !0 : Me.test(e) || !je.test(e) || t != null && e in rt(t);
}
function Qo(e) {
var t = typeof e;
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
function $o(e) {
var t = jo(e), n = U[t];
if (typeof n != "function" || !(t in yr.prototype)) return !1;
if (e === n) return !0;
var r = Ao(n);
return !!r && e === r[0];
}
function es(e) {
return !!mt && mt in e;
}
var ts = ut ? X : Pf;
function ns(e) {
var t = e && e.constructor;
return e === (typeof t == "function" && t.prototype || lt);
}
function rs(e) {
return e === e && !lu(e);
}
function is(e, t) {
return function(r) {
return r != null && r[e] === t && (t !== n || e in rt(r));
};
}
function as(e) {
var t = El(e, function(e) {
return n.size === 500 && n.clear(), e;
}), n = t.cache;
return t;
}
function os(e, t) {
var n = e[1], r = t[1], i = n | r, l = i < (o | s | f), u = r == f && n == c || r == f && n == p && e[7].length <= t[8] || r == (f | p) && t[7].length <= t[8] && n == c;
if (!(l || u)) return e;
r & o && (e[2] = t[2], i |= n & o ? 0 : 4);
var d = t[3];
if (d) {
var m = e[3];
e[3] = m ? Wa(m, d, t[4]) : d, e[4] = m ? Qn(e[3], a) : t[4];
}
return d = t[5], d && (m = e[5], e[5] = m ? Ga(m, d, t[6]) : d, e[6] = m ? Qn(e[5], a) : t[6]), d = t[7], d && (e[7] = d), r & f && (e[8] = e[8] == null ? t[8] : qt(e[8], t[8])), e[9] ??= t[9], e[0] = t[0], e[1] = i, e;
}
function ss(e) {
var t = [];
if (e != null) for (var n in rt(e)) t.push(n);
return t;
}
function cs(e) {
return ht.call(e);
}
function ls(e, t, r) {
return t = Ht(t === n ? e.length - 1 : t, 0), function() {
for (var n = arguments, i = -1, a = Ht(n.length - t, 0), o = Le(a); ++i < a;) o[i] = n[t + i];
i = -1;
for (var s = Le(t + 1); ++i < t;) s[i] = n[i];
return s[t] = r(o), fn(e, this, s);
};
}
function us(e, t) {
return t.length < 2 ? e : Ci(e, ga(t, 0, -1));
}
function ds(e, t) {
for (var r = e.length, i = qt(t.length, r), a = Ka(e); i--;) {
var o = t[i];
e[i] = Yo(o, r) ? a[o] : n;
}
return e;
}
function fs(e, t) {
if ((t !== "constructor" || typeof e[t] != "function") && t != "__proto__") return e[t];
}
var ps = _s(pa), ms = Mt || function(e, t) {
return tn.setTimeout(e, t);
}, hs = _s(ma);
function gs(e, t, n) {
var r = t + "";
return hs(e, qo(r, Ss(Ho(r), n)));
}
function _s(e) {
var t = 0, r = 0;
return function() {
var i = Jt(), a = 16 - (i - r);
if (r = i, a > 0) {
if (++t >= 800) return arguments[0];
} else t = 0;
return e.apply(n, arguments);
};
}
function vs(e, t) {
var r = -1, i = e.length, a = i - 1;
for (t = t === n ? i : t; ++r < t;) {
var o = oa(r, a), s = e[o];
e[o] = e[r], e[r] = s;
}
return e.length = t, e;
}
var ys = as(function(e) {
var t = [];
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Ne, function(e, n, r, i) {
t.push(r ? i.replace(Ue, "$1") : n || e);
}), t;
});
function bs(e) {
if (typeof e == "string" || wu(e)) return e;
var t = e + "";
return t == "0" && 1 / e == -Infinity ? "-0" : t;
}
function xs(e) {
if (e != null) {
try {
return dt.call(e);
} catch {}
try {
return e + "";
} catch {}
}
return "";
}
function Ss(e, t) {
return R(S, function(n) {
var r = "_." + n[0];
t & n[1] && !gn(e, r) && e.push(r);
}), e.sort();
}
function Cs(e) {
if (e instanceof yr) return e.clone();
var t = new vr(e.__wrapped__, e.__chain__);
return t.__actions__ = Ka(e.__actions__), t.__index__ = e.__index__, t.__values__ = e.__values__, t;
}
function ws(e, t, r) {
t = (r ? Xo(e, t, r) : t === n) ? 1 : Ht(Nu(t), 0);
var i = e == null ? 0 : e.length;
if (!i || t < 1) return [];
for (var a = 0, o = 0, s = Le(Nt(i / t)); a < i;) s[o++] = ga(e, a, a += t);
return s;
}
function Ts(e) {
for (var t = -1, n = e == null ? 0 : e.length, r = 0, i = []; ++t < n;) {
var a = e[t];
a && (i[r++] = a);
}
return i;
}
function Es() {
var e = arguments.length;
if (!e) return [];
for (var t = Le(e - 1), n = arguments[0], r = e; r--;) t[r - 1] = arguments[r];
return yn(Jl(n) ? Ka(n) : [n], _i(t, 1));
}
var Ds = la(function(e, t) {
return Zl(e) ? ui(e, _i(t, 1, Zl, !0)) : [];
}), Os = la(function(e, t) {
var r = Js(t);
return Zl(r) && (r = n), Zl(e) ? ui(e, _i(t, 1, Zl, !0), No(r, 2)) : [];
}), ks = la(function(e, t) {
var r = Js(t);
return Zl(r) && (r = n), Zl(e) ? ui(e, _i(t, 1, Zl, !0), n, r) : [];
});
function As(e, t, r) {
var i = e == null ? 0 : e.length;
return i ? (t = r || t === n ? 1 : Nu(t), ga(e, t < 0 ? 0 : t, i)) : [];
}
function js(e, t, r) {
var i = e == null ? 0 : e.length;
return i ? (t = r || t === n ? 1 : Nu(t), t = i - t, ga(e, 0, t < 0 ? 0 : t)) : [];
}
function Ms(e, t) {
return e && e.length ? Ea(e, No(t, 3), !0, !0) : [];
}
function Ns(e, t) {
return e && e.length ? Ea(e, No(t, 3), !0) : [];
}
function Ps(e, t, n, r) {
var i = e == null ? 0 : e.length;
return i ? (n && typeof n != "number" && Xo(e, t, n) && (n = 0, r = i), hi(e, t, n, r)) : [];
}
function Fs(e, t, n) {
var r = e == null ? 0 : e.length;
if (!r) return -1;
var i = n == null ? 0 : Nu(n);
return i < 0 && (i = Ht(r + i, 0)), wn(e, No(t, 3), i);
}
function Is(e, t, r) {
var i = e == null ? 0 : e.length;
if (!i) return -1;
var a = i - 1;
return r !== n && (a = Nu(r), a = r < 0 ? Ht(i + a, 0) : qt(a, i - 1)), wn(e, No(t, 3), a, !0);
}
function Ls(e) {
return e != null && e.length ? _i(e, 1) : [];
}
function Rs(e) {
return e != null && e.length ? _i(e, h) : [];
}
function zs(e, t) {
return e != null && e.length ? (t = t === n ? 1 : Nu(t), _i(e, t)) : [];
}
function Bs(e) {
for (var t = -1, n = e == null ? 0 : e.length, r = {}; ++t < n;) {
var i = e[t];
ri(r, i[0], i[1]);
}
return r;
}
function Vs(e) {
return e && e.length ? e[0] : n;
}
function Hs(e, t, n) {
var r = e == null ? 0 : e.length;
if (!r) return -1;
var i = n == null ? 0 : Nu(n);
return i < 0 && (i = Ht(r + i, 0)), Tn(e, t, i);
}
function Us(e) {
return e != null && e.length ? ga(e, 0, -1) : [];
}
var Ws = la(function(e) {
var t = vn(e, Aa);
return t.length && t[0] === e[0] ? Ai(t) : [];
}), Gs = la(function(e) {
var t = Js(e), r = vn(e, Aa);
return t === Js(r) ? t = n : r.pop(), r.length && r[0] === e[0] ? Ai(r, No(t, 2)) : [];
}), Ks = la(function(e) {
var t = Js(e), r = vn(e, Aa);
return t = typeof t == "function" ? t : n, t && r.pop(), r.length && r[0] === e[0] ? Ai(r, n, t) : [];
});
function qs(e, t) {
return e == null ? "" : Bt.call(e, t);
}
function Js(e) {
var t = e == null ? 0 : e.length;
return t ? e[t - 1] : n;
}
function Ys(e, t, r) {
var i = e == null ? 0 : e.length;
if (!i) return -1;
var a = i;
return r !== n && (a = Nu(r), a = a < 0 ? Ht(i + a, 0) : qt(a, i - 1)), t === t ? nr(e, t, a) : wn(e, Dn, a, !0);
}
function Xs(e, t) {
return e && e.length ? $i(e, Nu(t)) : n;
}
var Zs = la(Qs);
function Qs(e, t) {
return e && e.length && t && t.length ? ia(e, t) : e;
}
function $s(e, t, n) {
return e && e.length && t && t.length ? ia(e, t, No(n, 2)) : e;
}
function ec(e, t, r) {
return e && e.length && t && t.length ? ia(e, t, n, r) : e;
}
var tc = Do(function(e, t) {
var n = e == null ? 0 : e.length, r = ii(e, t);
return aa(e, vn(t, function(e) {
return Yo(e, n) ? +e : e;
}).sort(Ha)), r;
});
function nc(e, t) {
var n = [];
if (!(e && e.length)) return n;
var r = -1, i = [], a = e.length;
for (t = No(t, 3); ++r < a;) {
var o = e[r];
t(o, r, e) && (n.push(o), i.push(r));
}
return aa(e, i), n;
}
function rc(e) {
return e == null ? e : $t.call(e);
}
function ic(e, t, r) {
var i = e == null ? 0 : e.length;
return i ? (r && typeof r != "number" && Xo(e, t, r) ? (t = 0, r = i) : (t = t == null ? 0 : Nu(t), r = r === n ? i : Nu(r)), ga(e, t, r)) : [];
}
function ac(e, t) {
return va(e, t);
}
function oc(e, t, n) {
return ya(e, t, No(n, 2));
}
function sc(e, t) {
var n = e == null ? 0 : e.length;
if (n) {
var r = va(e, t);
if (r < n && Wl(e[r], t)) return r;
}
return -1;
}
function cc(e, t) {
return va(e, t, !0);
}
function lc(e, t, n) {
return ya(e, t, No(n, 2), !0);
}
function uc(e, t) {
if (e != null && e.length) {
var n = va(e, t, !0) - 1;
if (Wl(e[n], t)) return n;
}
return -1;
}
function dc(e) {
return e && e.length ? ba(e) : [];
}
function fc(e, t) {
return e && e.length ? ba(e, No(t, 2)) : [];
}
function q(e) {
var t = e == null ? 0 : e.length;
return t ? ga(e, 1, t) : [];
}
function pc(e, t, r) {
return e && e.length ? (t = r || t === n ? 1 : Nu(t), ga(e, 0, t < 0 ? 0 : t)) : [];
}
function mc(e, t, r) {
var i = e == null ? 0 : e.length;
return i ? (t = r || t === n ? 1 : Nu(t), t = i - t, ga(e, t < 0 ? 0 : t, i)) : [];
}
function hc(e, t) {
return e && e.length ? Ea(e, No(t, 3), !1, !0) : [];
}
function gc(e, t) {
return e && e.length ? Ea(e, No(t, 3)) : [];
}
var _c = la(function(e) {
return Ca(_i(e, 1, Zl, !0));
}), vc = la(function(e) {
var t = Js(e);
return Zl(t) && (t = n), Ca(_i(e, 1, Zl, !0), No(t, 2));
}), yc = la(function(e) {
var t = Js(e);
return t = typeof t == "function" ? t : n, Ca(_i(e, 1, Zl, !0), n, t);
});
function J(e) {
return e && e.length ? Ca(e) : [];
}
function bc(e, t) {
return e && e.length ? Ca(e, No(t, 2)) : [];
}
function xc(e, t) {
return t = typeof t == "function" ? t : n, e && e.length ? Ca(e, n, t) : [];
}
function Sc(e) {
if (!(e && e.length)) return [];
var t = 0;
return e = z(e, function(e) {
if (Zl(e)) return t = Ht(e.length, t), !0;
}), Pn(t, function(t) {
return vn(e, kn(t));
});
}
function Cc(e, t) {
if (!(e && e.length)) return [];
var r = Sc(e);
return t == null ? r : vn(r, function(e) {
return fn(t, n, e);
});
}
var wc = la(function(e, t) {
return Zl(e) ? ui(e, t) : [];
}), Tc = la(function(e) {
return Oa(z(e, Zl));
}), Ec = la(function(e) {
var t = Js(e);
return Zl(t) && (t = n), Oa(z(e, Zl), No(t, 2));
}), Dc = la(function(e) {
var t = Js(e);
return t = typeof t == "function" ? t : n, Oa(z(e, Zl), n, t);
}), Oc = la(Sc);
function kc(e, t) {
return ka(e || [], t || [], Qr);
}
function Ac(e, t) {
return ka(e || [], t || [], fa);
}
var jc = la(function(e) {
var t = e.length, r = t > 1 ? e[t - 1] : n;
return r = typeof r == "function" ? (e.pop(), r) : n, Cc(e, r);
});
function Mc(e) {
var t = U(e);
return t.__chain__ = !0, t;
}
function Nc(e, t) {
return t(e), e;
}
function Pc(e, t) {
return t(e);
}
var Fc = Do(function(e) {
var t = e.length, r = t ? e[0] : 0, i = this.__wrapped__, a = function(t) {
return ii(t, e);
};
return t > 1 || this.__actions__.length || !(i instanceof yr) || !Yo(r) ? this.thru(a) : (i = i.slice(r, +r + +!!t), i.__actions__.push({
func: Pc,
args: [a],
thisArg: n
}), new vr(i, this.__chain__).thru(function(e) {
return t && !e.length && e.push(n), e;
}));
});
function Ic() {
return Mc(this);
}
function Lc() {
return new vr(this.value(), this.__chain__);
}
function Y() {
this.__values__ === n && (this.__values__ = ju(this.value()));
var e = this.__index__ >= this.__values__.length;
return {
done: e,
value: e ? n : this.__values__[this.__index__++]
};
}
function Rc() {
return this;
}
function zc(e) {
for (var t, r = this; r instanceof _r;) {
var i = Cs(r);
i.__index__ = 0, i.__values__ = n, t ? a.__wrapped__ = i : t = i;
var a = i;
r = r.__wrapped__;
}
return a.__wrapped__ = e, t;
}
function Bc() {
var e = this.__wrapped__;
if (e instanceof yr) {
var t = e;
return this.__actions__.length && (t = new yr(this)), t = t.reverse(), t.__actions__.push({
func: Pc,
args: [rc],
thisArg: n
}), new vr(t, this.__chain__);
}
return this.thru(rc);
}
function Vc() {
return Da(this.__wrapped__, this.__actions__);
}
var Hc = Xa(function(e, t, n) {
ft.call(e, n) ? ++e[n] : ri(e, n, 1);
});
function Uc(e, t, r) {
var i = Jl(e) ? hn : pi;
return r && Xo(e, t, r) && (t = n), i(e, No(t, 3));
}
function Wc(e, t) {
return (Jl(e) ? z : gi)(e, No(t, 3));
}
var Gc = ao(Fs), Kc = ao(Is);
function qc(e, t) {
return _i(nl(e, t), 1);
}
function Jc(e, t) {
return _i(nl(e, t), h);
}
function Yc(e, t, r) {
return r = r === n ? 1 : Nu(r), _i(nl(e, t), r);
}
function Xc(e, t) {
return (Jl(e) ? R : di)(e, No(t, 3));
}
function Zc(e, t) {
return (Jl(e) ? mn : fi)(e, No(t, 3));
}
var Qc = Xa(function(e, t, n) {
ft.call(e, n) ? e[n].push(t) : ri(e, n, [t]);
});
function $c(e, t, n, r) {
e = Xl(e) ? e : Ed(e), n = n && !r ? Nu(n) : 0;
var i = e.length;
return n < 0 && (n = Ht(i + n, 0)), Cu(e) ? n <= i && e.indexOf(t, n) > -1 : !!i && Tn(e, t, n) > -1;
}
var el = la(function(e, t, n) {
var r = -1, i = typeof t == "function", a = Xl(e) ? Le(e.length) : [];
return di(e, function(e) {
a[++r] = i ? fn(t, e, n) : Mi(e, t, n);
}), a;
}), tl = Xa(function(e, t, n) {
ri(e, n, t);
});
function nl(e, t) {
return (Jl(e) ? vn : Ji)(e, No(t, 3));
}
function rl(e, t, r, i) {
return e == null ? [] : (Jl(t) || (t = t == null ? [] : [t]), r = i ? n : r, Jl(r) || (r = r == null ? [] : [r]), ea(e, t, r));
}
var il = Xa(function(e, t, n) {
e[+!n].push(t);
}, function() {
return [[], []];
});
function al(e, t, n) {
var r = Jl(e) ? B : jn, i = arguments.length < 3;
return r(e, No(t, 4), n, i, di);
}
function ol(e, t, n) {
var r = Jl(e) ? bn : jn, i = arguments.length < 3;
return r(e, No(t, 4), n, i, fi);
}
function sl(e, t) {
return (Jl(e) ? z : gi)(e, Dl(No(t, 3)));
}
function cl(e) {
return (Jl(e) ? Jr : ua)(e);
}
function ll(e, t, r) {
return t = (r ? Xo(e, t, r) : t === n) ? 1 : Nu(t), (Jl(e) ? Yr : da)(e, t);
}
function ul(e) {
return (Jl(e) ? Xr : ha)(e);
}
function dl(e) {
if (e == null) return 0;
if (Xl(e)) return Cu(e) ? rr(e) : e.length;
var t = Bo(e);
return t == j || t == ae ? e.size : Gi(e).length;
}
function fl(e, t, r) {
var i = Jl(e) ? V : _a;
return r && Xo(e, t, r) && (t = n), i(e, No(t, 3));
}
var pl = la(function(e, t) {
if (e == null) return [];
var n = t.length;
return n > 1 && Xo(e, t[0], t[1]) ? t = [] : n > 2 && Xo(t[0], t[1], t[2]) && (t = [t[0]]), ea(e, _i(t, 1), []);
}), ml = jt || function() {
return tn.Date.now();
};
function hl(e, t) {
if (typeof t != "function") throw new ot(r);
return e = Nu(e), function() {
if (--e < 1) return t.apply(this, arguments);
};
}
function gl(e, t, r) {
return t = r ? n : t, t = e && t == null ? e.length : t, bo(e, f, n, n, n, n, t);
}
function _l(e, t) {
var i;
if (typeof t != "function") throw new ot(r);
return e = Nu(e), function() {
return --e > 0 && (i = t.apply(this, arguments)), e <= 1 && (t = n), i;
};
}
var vl = la(function(e, t, n) {
var r = o;
if (n.length) {
var i = Qn(n, Mo(vl));
r |= u;
}
return bo(e, r, t, n, i);
}), yl = la(function(e, t, n) {
var r = o | s;
if (n.length) {
var i = Qn(n, Mo(yl));
r |= u;
}
return bo(t, r, e, n, i);
});
function bl(e, t, r) {
t = r ? n : t;
var i = bo(e, c, n, n, n, n, n, t);
return i.placeholder = bl.placeholder, i;
}
function xl(e, t, r) {
t = r ? n : t;
var i = bo(e, l, n, n, n, n, n, t);
return i.placeholder = xl.placeholder, i;
}
function Sl(e, t, i) {
var a, o, s, c, l, u, d = 0, f = !1, p = !1, m = !0;
if (typeof e != "function") throw new ot(r);
t = Fu(t) || 0, lu(i) && (f = !!i.leading, p = "maxWait" in i, s = p ? Ht(Fu(i.maxWait) || 0, t) : s, m = "trailing" in i ? !!i.trailing : m);
function h(t) {
var r = a, i = o;
return a = o = n, d = t, c = e.apply(i, r), c;
}
function g(e) {
return d = e, l = ms(y, t), f ? h(e) : c;
}
function _(e) {
var n = e - u, r = e - d, i = t - n;
return p ? qt(i, s - r) : i;
}
function v(e) {
var r = e - u, i = e - d;
return u === n || r >= t || r < 0 || p && i >= s;
}
function y() {
var e = ml();
if (v(e)) return b(e);
l = ms(y, _(e));
}
function b(e) {
return l = n, m && a ? h(e) : (a = o = n, c);
}
function x() {
l !== n && Fa(l), d = 0, a = u = o = l = n;
}
function S() {
return l === n ? c : b(ml());
}
function C() {
var e = ml(), r = v(e);
if (a = arguments, o = this, u = e, r) {
if (l === n) return g(u);
if (p) return Fa(l), l = ms(y, t), h(u);
}
return l === n && (l = ms(y, t)), c;
}
return C.cancel = x, C.flush = S, C;
}
var Cl = la(function(e, t) {
return li(e, 1, t);
}), wl = la(function(e, t, n) {
return li(e, Fu(t) || 0, n);
});
function Tl(e) {
return bo(e, m);
}
function El(e, t) {
if (typeof e != "function" || t != null && typeof t != "function") throw new ot(r);
var n = function() {
var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
if (a.has(i)) return a.get(i);
var o = e.apply(this, r);
return n.cache = a.set(i, o) || a, o;
};
return n.cache = new (El.Cache || W)(), n;
}
El.Cache = W;
function Dl(e) {
if (typeof e != "function") throw new ot(r);
return function() {
var t = arguments;
switch (t.length) {
case 0: return !e.call(this);
case 1: return !e.call(this, t[0]);
case 2: return !e.call(this, t[0], t[1]);
case 3: return !e.call(this, t[0], t[1], t[2]);
}
return !e.apply(this, t);
};
}
function Ol(e) {
return _l(2, e);
}
var kl = Na(function(e, t) {
t = t.length == 1 && Jl(t[0]) ? vn(t[0], Ln(No())) : vn(_i(t, 1), Ln(No()));
var n = t.length;
return la(function(r) {
for (var i = -1, a = qt(r.length, n); ++i < a;) r[i] = t[i].call(this, r[i]);
return fn(e, this, r);
});
}), Al = la(function(e, t) {
return bo(e, u, n, t, Qn(t, Mo(Al)));
}), jl = la(function(e, t) {
return bo(e, d, n, t, Qn(t, Mo(jl)));
}), Ml = Do(function(e, t) {
return bo(e, p, n, n, n, t);
});
function Nl(e, t) {
if (typeof e != "function") throw new ot(r);
return t = t === n ? t : Nu(t), la(e, t);
}
function Pl(e, t) {
if (typeof e != "function") throw new ot(r);
return t = t == null ? 0 : Ht(Nu(t), 0), la(function(n) {
var r = n[t], i = Pa(n, 0, t);
return r && yn(i, r), fn(e, this, i);
});
}
function Fl(e, t, n) {
var i = !0, a = !0;
if (typeof e != "function") throw new ot(r);
return lu(n) && (i = "leading" in n ? !!n.leading : i, a = "trailing" in n ? !!n.trailing : a), Sl(e, t, {
leading: i,
maxWait: t,
trailing: a
});
}
function Il(e) {
return gl(e, 1);
}
function Ll(e, t) {
return Al(ja(t), e);
}
function Rl() {
if (!arguments.length) return [];
var e = arguments[0];
return Jl(e) ? e : [e];
}
function zl(e) {
return oi(e, 4);
}
function Bl(e, t) {
return t = typeof t == "function" ? t : n, oi(e, 4, t);
}
function Vl(e) {
return oi(e, 5);
}
function Hl(e, t) {
return t = typeof t == "function" ? t : n, oi(e, 5, t);
}
function Ul(e, t) {
return t == null || ci(e, t, sd(t));
}
function Wl(e, t) {
return e === t || e !== e && t !== t;
}
var Gl = ho(Ei), Kl = ho(function(e, t) {
return e >= t;
}), ql = Ni(function() {
return arguments;
}()) ? Ni : function(e) {
return uu(e) && ft.call(e, "callee") && !wt.call(e, "callee");
}, Jl = Le.isArray, Yl = I ? Ln(I) : Pi;
function Xl(e) {
return e != null && cu(e.length) && !X(e);
}
function Zl(e) {
return uu(e) && Xl(e);
}
function Ql(e) {
return e === !0 || e === !1 || uu(e) && Ti(e) == E;
}
var $l = It || Pf, eu = L ? Ln(L) : Fi;
function tu(e) {
return uu(e) && e.nodeType === 1 && !yu(e);
}
function nu(e) {
if (e == null) return !0;
if (Xl(e) && (Jl(e) || typeof e == "string" || typeof e.splice == "function" || $l(e) || Tu(e) || ql(e))) return !e.length;
var t = Bo(e);
if (t == j || t == ae) return !e.size;
if (ns(e)) return !Gi(e).length;
for (var n in e) if (ft.call(e, n)) return !1;
return !0;
}
function ru(e, t) {
return Ii(e, t);
}
function iu(e, t, r) {
r = typeof r == "function" ? r : n;
var i = r ? r(e, t) : n;
return i === n ? Ii(e, t, n, r) : !!i;
}
function au(e) {
if (!uu(e)) return !1;
var t = Ti(e);
return t == k || t == O || typeof e.message == "string" && typeof e.name == "string" && !yu(e);
}
function ou(e) {
return typeof e == "number" && zt(e);
}
function X(e) {
if (!lu(e)) return !1;
var t = Ti(e);
return t == A || t == ee || t == T || t == re;
}
function su(e) {
return typeof e == "number" && e == Nu(e);
}
function cu(e) {
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= g;
}
function lu(e) {
var t = typeof e;
return e != null && (t == "object" || t == "function");
}
function uu(e) {
return typeof e == "object" && !!e;
}
var du = cn ? Ln(cn) : Ri;
function fu(e, t) {
return e === t || zi(e, t, Fo(t));
}
function pu(e, t, r) {
return r = typeof r == "function" ? r : n, zi(e, t, Fo(t), r);
}
function mu(e) {
return vu(e) && e != +e;
}
function hu(e) {
if (ts(e)) throw new et("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");
return Bi(e);
}
function gu(e) {
return e === null;
}
function _u(e) {
return e == null;
}
function vu(e) {
return typeof e == "number" || uu(e) && Ti(e) == te;
}
function yu(e) {
if (!uu(e) || Ti(e) != ne) return !1;
var t = St(e);
if (t === null) return !0;
var n = ft.call(t, "constructor") && t.constructor;
return typeof n == "function" && n instanceof n && dt.call(n) == gt;
}
var bu = ln ? Ln(ln) : Vi;
function xu(e) {
return su(e) && e >= -g && e <= g;
}
var Su = un ? Ln(un) : Hi;
function Cu(e) {
return typeof e == "string" || !Jl(e) && uu(e) && Ti(e) == oe;
}
function wu(e) {
return typeof e == "symbol" || uu(e) && Ti(e) == se;
}
var Tu = dn ? Ln(dn) : Ui;
function Eu(e) {
return e === n;
}
function Du(e) {
return uu(e) && Bo(e) == le;
}
function Ou(e) {
return uu(e) && Ti(e) == ue;
}
var ku = ho(qi), Au = ho(function(e, t) {
return e <= t;
});
function ju(e) {
if (!e) return [];
if (Xl(e)) return Cu(e) ? ir(e) : Ka(e);
if (Dt && e[Dt]) return Yn(e[Dt]());
var t = Bo(e);
return (t == j ? Xn : t == ae ? $n : Ed)(e);
}
function Mu(e) {
return e ? (e = Fu(e), e === h || e === -Infinity ? (e < 0 ? -1 : 1) * _ : e === e ? e : 0) : e === 0 ? e : 0;
}
function Nu(e) {
var t = Mu(e), n = t % 1;
return t === t ? n ? t - n : t : 0;
}
function Pu(e) {
return e ? ai(Nu(e), 0, y) : 0;
}
function Fu(e) {
if (typeof e == "number") return e;
if (wu(e)) return v;
if (lu(e)) {
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
e = lu(t) ? t + "" : t;
}
if (typeof e != "string") return e === 0 ? e : +e;
e = In(e);
var n = qe.test(e);
return n || Ye.test(e) ? Qt(e.slice(2), n ? 2 : 8) : Ke.test(e) ? v : +e;
}
function Iu(e) {
return qa(e, cd(e));
}
function Lu(e) {
return e ? ai(Nu(e), -g, g) : e === 0 ? e : 0;
}
function Ru(e) {
return e == null ? "" : Sa(e);
}
var zu = Za(function(e, t) {
if (ns(t) || Xl(t)) qa(t, sd(t), e);
else for (var n in t) ft.call(t, n) && Qr(e, n, t[n]);
}), Bu = Za(function(e, t) {
qa(t, cd(t), e);
}), Vu = Za(function(e, t, n, r) {
qa(t, cd(t), e, r);
}), Hu = Za(function(e, t, n, r) {
qa(t, sd(t), e, r);
}), Uu = Do(ii);
function Wu(e, t) {
var n = gr(e);
return t == null ? n : ti(n, t);
}
var Gu = la(function(e, t) {
e = rt(e);
var r = -1, i = t.length, a = i > 2 ? t[2] : n;
for (a && Xo(t[0], t[1], a) && (i = 1); ++r < i;) for (var o = t[r], s = cd(o), c = -1, l = s.length; ++c < l;) {
var u = s[c], d = e[u];
(d === n || Wl(d, lt[u]) && !ft.call(e, u)) && (e[u] = o[u]);
}
return e;
}), Ku = la(function(e) {
return e.push(n, So), fn(fd, n, e);
});
function qu(e, t) {
return Cn(e, No(t, 3), bi);
}
function Ju(e, t) {
return Cn(e, No(t, 3), xi);
}
function Yu(e, t) {
return e == null ? e : vi(e, No(t, 3), cd);
}
function Xu(e, t) {
return e == null ? e : yi(e, No(t, 3), cd);
}
function Zu(e, t) {
return e && bi(e, No(t, 3));
}
function Qu(e, t) {
return e && xi(e, No(t, 3));
}
function $u(e) {
return e == null ? [] : Si(e, sd(e));
}
function ed(e) {
return e == null ? [] : Si(e, cd(e));
}
function td(e, t, r) {
var i = e == null ? n : Ci(e, t);
return i === n ? r : i;
}
function nd(e, t) {
return e != null && Uo(e, t, Di);
}
function rd(e, t) {
return e != null && Uo(e, t, Oi);
}
var id = co(function(e, t, n) {
t != null && typeof t.toString != "function" && (t = ht.call(t)), e[t] = n;
}, ff(gf)), ad = co(function(e, t, n) {
t != null && typeof t.toString != "function" && (t = ht.call(t)), ft.call(e, t) ? e[t].push(n) : e[t] = [n];
}, No), od = la(Mi);
function sd(e) {
return Xl(e) ? qr(e) : Gi(e);
}
function cd(e) {
return Xl(e) ? qr(e, !0) : Ki(e);
}
function ld(e, t) {
var n = {};
return t = No(t, 3), bi(e, function(e, r, i) {
ri(n, t(e, r, i), e);
}), n;
}
function ud(e, t) {
var n = {};
return t = No(t, 3), bi(e, function(e, r, i) {
ri(n, r, t(e, r, i));
}), n;
}
var dd = Za(function(e, t, n) {
Zi(e, t, n);
}), fd = Za(function(e, t, n, r) {
Zi(e, t, n, r);
}), pd = Do(function(e, t) {
var n = {};
if (e == null) return n;
var r = !1;
t = vn(t, function(t) {
return t = Ma(t, e), r ||= t.length > 1, t;
}), qa(e, ko(e), n), r && (n = oi(n, 7, Co));
for (var i = t.length; i--;) wa(n, t[i]);
return n;
});
function md(e, t) {
return gd(e, Dl(No(t)));
}
var hd = Do(function(e, t) {
return e == null ? {} : ta(e, t);
});
function gd(e, t) {
if (e == null) return {};
var n = vn(ko(e), function(e) {
return [e];
});
return t = No(t), na(e, n, function(e, n) {
return t(e, n[0]);
});
}
function _d(e, t, r) {
t = Ma(t, e);
var i = -1, a = t.length;
for (a || (a = 1, e = n); ++i < a;) {
var o = e == null ? n : e[bs(t[i])];
o === n && (i = a, o = r), e = X(o) ? o.call(e) : o;
}
return e;
}
function vd(e, t, n) {
return e == null ? e : fa(e, t, n);
}
function yd(e, t, r, i) {
return i = typeof i == "function" ? i : n, e == null ? e : fa(e, t, r, i);
}
var bd = yo(sd), xd = yo(cd);
function Sd(e, t, n) {
var r = Jl(e), i = r || $l(e) || Tu(e);
if (t = No(t, 4), n == null) {
var a = e && e.constructor;
n = i ? r ? new a() : [] : lu(e) && X(a) ? gr(St(e)) : {};
}
return (i ? R : bi)(e, function(e, r, i) {
return t(n, e, r, i);
}), n;
}
function Cd(e, t) {
return e == null || wa(e, t);
}
function wd(e, t, n) {
return e == null ? e : Ta(e, t, ja(n));
}
function Td(e, t, r, i) {
return i = typeof i == "function" ? i : n, e == null ? e : Ta(e, t, ja(r), i);
}
function Ed(e) {
return e == null ? [] : Rn(e, sd(e));
}
function Dd(e) {
return e == null ? [] : Rn(e, cd(e));
}
function Od(e, t, r) {
return r === n && (r = t, t = n), r !== n && (r = Fu(r), r = r === r ? r : 0), t !== n && (t = Fu(t), t = t === t ? t : 0), ai(Fu(e), t, r);
}
function kd(e, t, r) {
return t = Mu(t), r === n ? (r = t, t = 0) : r = Mu(r), e = Fu(e), ki(e, t, r);
}
function Ad(e, t, r) {
if (r && typeof r != "boolean" && Xo(e, t, r) && (t = r = n), r === n && (typeof t == "boolean" ? (r = t, t = n) : typeof e == "boolean" && (r = e, e = n)), e === n && t === n ? (e = 0, t = 1) : (e = Mu(e), t === n ? (t = e, e = 0) : t = Mu(t)), e > t) {
var i = e;
e = t, t = i;
}
if (r || e % 1 || t % 1) {
var a = Xt();
return qt(e + a * (t - e + Zt("1e-" + ((a + "").length - 1))), t);
}
return oa(e, t);
}
var jd = no(function(e, t, n) {
return t = t.toLowerCase(), e + (n ? Md(t) : t);
});
function Md(e) {
return of(Ru(e).toLowerCase());
}
function Nd(e) {
return e = Ru(e), e && e.replace(Ze, Un).replace(Rt, "");
}
function Pd(e, t, r) {
e = Ru(e), t = Sa(t);
var i = e.length;
r = r === n ? i : ai(Nu(r), 0, i);
var a = r;
return r -= t.length, r >= 0 && e.slice(r, a) == t;
}
function Fd(e) {
return e = Ru(e), e && De.test(e) ? e.replace(Te, Wn) : e;
}
function Id(e) {
return e = Ru(e), e && Fe.test(e) ? e.replace(Pe, "\\$&") : e;
}
var Ld = no(function(e, t, n) {
return e + (n ? "-" : "") + t.toLowerCase();
}), Rd = no(function(e, t, n) {
return e + (n ? " " : "") + t.toLowerCase();
}), zd = to("toLowerCase");
function Bd(e, t, n) {
e = Ru(e), t = Nu(t);
var r = t ? rr(e) : 0;
if (!t || r >= t) return e;
var i = (t - r) / 2;
return fo(Pt(i), n) + e + fo(Nt(i), n);
}
function Vd(e, t, n) {
e = Ru(e), t = Nu(t);
var r = t ? rr(e) : 0;
return t && r < t ? e + fo(t - r, n) : e;
}
function Hd(e, t, n) {
e = Ru(e), t = Nu(t);
var r = t ? rr(e) : 0;
return t && r < t ? fo(t - r, n) + e : e;
}
function Ud(e, t, n) {
return n || t == null ? t = 0 : t &&= +t, Yt(Ru(e).replace(Ie, ""), t || 0);
}
function Wd(e, t, r) {
return t = (r ? Xo(e, t, r) : t === n) ? 1 : Nu(t), ca(Ru(e), t);
}
function Gd() {
var e = arguments, t = Ru(e[0]);
return e.length < 3 ? t : t.replace(e[1], e[2]);
}
var Kd = no(function(e, t, n) {
return e + (n ? "_" : "") + t.toLowerCase();
});
function qd(e, t, r) {
return r && typeof r != "number" && Xo(e, t, r) && (t = r = n), r = r === n ? y : r >>> 0, r ? (e = Ru(e), e && (typeof t == "string" || t != null && !bu(t)) && (t = Sa(t), !t && qn(e)) ? Pa(ir(e), 0, r) : e.split(t, r)) : [];
}
var Jd = no(function(e, t, n) {
return e + (n ? " " : "") + of(t);
});
function Yd(e, t, n) {
return e = Ru(e), n = n == null ? 0 : ai(Nu(n), 0, e.length), t = Sa(t), e.slice(n, n + t.length) == t;
}
function Xd(e, t, r) {
var i = U.templateSettings;
r && Xo(e, t, r) && (t = n), e = Ru(e), t = Hu({}, t, i, xo);
var a = Hu({}, t.imports, i.imports, xo), o = sd(a), s = Rn(a, o);
R(o, function(e) {
if (He.test(e)) throw new et("Invalid `imports` option passed into `_.template`");
});
var c, l, u = 0, d = t.interpolate || Qe, f = "__p += '", p = it((t.escape || Qe).source + "|" + d.source + "|" + (d === Ae ? We : Qe).source + "|" + (t.evaluate || Qe).source + "|$", "g"), m = "//# sourceURL=" + (ft.call(t, "sourceURL") ? (t.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++Wt + "]") + "\n";
e.replace(p, function(t, n, r, i, a, o) {
return r ||= i, f += e.slice(u, o).replace($e, Gn), n && (c = !0, f += "' +\n__e(" + n + ") +\n'"), a && (l = !0, f += "';\n" + a + ";\n__p += '"), r && (f += "' +\n((__t = (" + r + ")) == null ? '' : __t) +\n'"), u = o + t.length, t;
}), f += "';\n";
var h = ft.call(t, "variable") && t.variable;
if (!h) f = "with (obj) {\n" + f + "\n}\n";
else if (He.test(h)) throw new et("Invalid `variable` option passed into `_.template`");
f = (l ? f.replace(xe, "") : f).replace(Se, "$1").replace(Ce, "$1;"), f = "function(" + (h || "obj") + ") {\n" + (h ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (c ? ", __e = _.escape" : "") + (l ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + f + "return __p\n}";
var g = cf(function() {
return tt(o, m + "return " + f).apply(n, s);
});
if (g.source = f, au(g)) throw g;
return g;
}
function Zd(e) {
return Ru(e).toLowerCase();
}
function Qd(e) {
return Ru(e).toUpperCase();
}
function $d(e, t, r) {
if (e = Ru(e), e && (r || t === n)) return In(e);
if (!e || !(t = Sa(t))) return e;
var i = ir(e), a = ir(t);
return Pa(i, Bn(i, a), Vn(i, a) + 1).join("");
}
function ef(e, t, r) {
if (e = Ru(e), e && (r || t === n)) return e.slice(0, ar(e) + 1);
if (!e || !(t = Sa(t))) return e;
var i = ir(e);
return Pa(i, 0, Vn(i, ir(t)) + 1).join("");
}
function tf(e, t, r) {
if (e = Ru(e), e && (r || t === n)) return e.replace(Ie, "");
if (!e || !(t = Sa(t))) return e;
var i = ir(e);
return Pa(i, Bn(i, ir(t))).join("");
}
function nf(e, t) {
var r = 30, i = "...";
if (lu(t)) {
var a = "separator" in t ? t.separator : a;
r = "length" in t ? Nu(t.length) : r, i = "omission" in t ? Sa(t.omission) : i;
}
e = Ru(e);
var o = e.length;
if (qn(e)) {
var s = ir(e);
o = s.length;
}
if (r >= o) return e;
var c = r - rr(i);
if (c < 1) return i;
var l = s ? Pa(s, 0, c).join("") : e.slice(0, c);
if (a === n) return l + i;
if (s && (c += l.length - c), bu(a)) {
if (e.slice(c).search(a)) {
var u, d = l;
for (a.global || (a = it(a.source, Ru(Ge.exec(a)) + "g")), a.lastIndex = 0; u = a.exec(d);) var f = u.index;
l = l.slice(0, f === n ? c : f);
}
} else if (e.indexOf(Sa(a), c) != c) {
var p = l.lastIndexOf(a);
p > -1 && (l = l.slice(0, p));
}
return l + i;
}
function rf(e) {
return e = Ru(e), e && Ee.test(e) ? e.replace(we, or) : e;
}
var af = no(function(e, t, n) {
return e + (n ? " " : "") + t.toUpperCase();
}), of = to("toUpperCase");
function sf(e, t, r) {
return e = Ru(e), t = r ? n : t, t === n ? Jn(e) ? lr(e) : Sn(e) : e.match(t) || [];
}
var cf = la(function(e, t) {
try {
return fn(e, n, t);
} catch (e) {
return au(e) ? e : new et(e);
}
}), lf = Do(function(e, t) {
return R(t, function(t) {
t = bs(t), ri(e, t, vl(e[t], e));
}), e;
});
function uf(e) {
var t = e == null ? 0 : e.length, n = No();
return e = t ? vn(e, function(e) {
if (typeof e[1] != "function") throw new ot(r);
return [n(e[0]), e[1]];
}) : [], la(function(n) {
for (var r = -1; ++r < t;) {
var i = e[r];
if (fn(i[0], this, n)) return fn(i[1], this, n);
}
});
}
function df(e) {
return si(oi(e, 1));
}
function ff(e) {
return function() {
return e;
};
}
function pf(e, t) {
return e == null || e !== e ? t : e;
}
var mf = oo(), hf = oo(!0);
function gf(e) {
return e;
}
function _f(e) {
return Wi(typeof e == "function" ? e : oi(e, 1));
}
function vf(e) {
return Yi(oi(e, 1));
}
function yf(e, t) {
return Xi(e, oi(t, 1));
}
var bf = la(function(e, t) {
return function(n) {
return Mi(n, e, t);
};
}), xf = la(function(e, t) {
return function(n) {
return Mi(e, n, t);
};
});
function Sf(e, t, n) {
var r = sd(t), i = Si(t, r);
n == null && (!lu(t) || !i.length && r.length) && (n = t, t = e, e = this, i = Si(t, sd(t)));
var a = !(lu(n) && "chain" in n) || !!n.chain, o = X(e);
return R(i, function(n) {
var r = t[n];
e[n] = r, o && (e.prototype[n] = function() {
var t = this.__chain__;
if (a || t) {
var n = e(this.__wrapped__);
return (n.__actions__ = Ka(this.__actions__)).push({
func: r,
args: arguments,
thisArg: e
}), n.__chain__ = t, n;
}
return r.apply(e, yn([this.value()], arguments));
});
}), e;
}
function Cf() {
return tn._ === this && (tn._ = _t), this;
}
function wf() {}
function Tf(e) {
return e = Nu(e), la(function(t) {
return $i(t, e);
});
}
var Ef = uo(vn), Df = uo(hn), Of = uo(V);
function kf(e) {
return Zo(e) ? kn(bs(e)) : ra(e);
}
function Af(e) {
return function(t) {
return e == null ? n : Ci(e, t);
};
}
var jf = mo(), Mf = mo(!0);
function Nf() {
return [];
}
function Pf() {
return !1;
}
function Ff() {
return {};
}
function If() {
return "";
}
function Lf() {
return !0;
}
function Rf(e, t) {
if (e = Nu(e), e < 1 || e > g) return [];
var n = y, r = qt(e, y);
t = No(t), e -= y;
for (var i = Pn(r, t); ++n < e;) t(n);
return i;
}
function zf(e) {
return Jl(e) ? vn(e, bs) : wu(e) ? [e] : Ka(ys(Ru(e)));
}
function Bf(e) {
var t = ++pt;
return Ru(e) + t;
}
var Vf = lo(function(e, t) {
return e + t;
}, 0), Hf = _o("ceil"), Uf = lo(function(e, t) {
return e / t;
}, 1), Wf = _o("floor");
function Gf(e) {
return e && e.length ? mi(e, gf, Ei) : n;
}
function Kf(e, t) {
return e && e.length ? mi(e, No(t, 2), Ei) : n;
}
function qf(e) {
return On(e, gf);
}
function Jf(e, t) {
return On(e, No(t, 2));
}
function Yf(e) {
return e && e.length ? mi(e, gf, qi) : n;
}
function Xf(e, t) {
return e && e.length ? mi(e, No(t, 2), qi) : n;
}
var Zf = lo(function(e, t) {
return e * t;
}, 1), Qf = _o("round"), $f = lo(function(e, t) {
return e - t;
}, 0);
function ep(e) {
return e && e.length ? Nn(e, gf) : 0;
}
function tp(e, t) {
return e && e.length ? Nn(e, No(t, 2)) : 0;
}
return U.after = hl, U.ary = gl, U.assign = zu, U.assignIn = Bu, U.assignInWith = Vu, U.assignWith = Hu, U.at = Uu, U.before = _l, U.bind = vl, U.bindAll = lf, U.bindKey = yl, U.castArray = Rl, U.chain = Mc, U.chunk = ws, U.compact = Ts, U.concat = Es, U.cond = uf, U.conforms = df, U.constant = ff, U.countBy = Hc, U.create = Wu, U.curry = bl, U.curryRight = xl, U.debounce = Sl, U.defaults = Gu, U.defaultsDeep = Ku, U.defer = Cl, U.delay = wl, U.difference = Ds, U.differenceBy = Os, U.differenceWith = ks, U.drop = As, U.dropRight = js, U.dropRightWhile = Ms, U.dropWhile = Ns, U.fill = Ps, U.filter = Wc, U.flatMap = qc, U.flatMapDeep = Jc, U.flatMapDepth = Yc, U.flatten = Ls, U.flattenDeep = Rs, U.flattenDepth = zs, U.flip = Tl, U.flow = mf, U.flowRight = hf, U.fromPairs = Bs, U.functions = $u, U.functionsIn = ed, U.groupBy = Qc, U.initial = Us, U.intersection = Ws, U.intersectionBy = Gs, U.intersectionWith = Ks, U.invert = id, U.invertBy = ad, U.invokeMap = el, U.iteratee = _f, U.keyBy = tl, U.keys = sd, U.keysIn = cd, U.map = nl, U.mapKeys = ld, U.mapValues = ud, U.matches = vf, U.matchesProperty = yf, U.memoize = El, U.merge = dd, U.mergeWith = fd, U.method = bf, U.methodOf = xf, U.mixin = Sf, U.negate = Dl, U.nthArg = Tf, U.omit = pd, U.omitBy = md, U.once = Ol, U.orderBy = rl, U.over = Ef, U.overArgs = kl, U.overEvery = Df, U.overSome = Of, U.partial = Al, U.partialRight = jl, U.partition = il, U.pick = hd, U.pickBy = gd, U.property = kf, U.propertyOf = Af, U.pull = Zs, U.pullAll = Qs, U.pullAllBy = $s, U.pullAllWith = ec, U.pullAt = tc, U.range = jf, U.rangeRight = Mf, U.rearg = Ml, U.reject = sl, U.remove = nc, U.rest = Nl, U.reverse = rc, U.sampleSize = ll, U.set = vd, U.setWith = yd, U.shuffle = ul, U.slice = ic, U.sortBy = pl, U.sortedUniq = dc, U.sortedUniqBy = fc, U.split = qd, U.spread = Pl, U.tail = q, U.take = pc, U.takeRight = mc, U.takeRightWhile = hc, U.takeWhile = gc, U.tap = Nc, U.throttle = Fl, U.thru = Pc, U.toArray = ju, U.toPairs = bd, U.toPairsIn = xd, U.toPath = zf, U.toPlainObject = Iu, U.transform = Sd, U.unary = Il, U.union = _c, U.unionBy = vc, U.unionWith = yc, U.uniq = J, U.uniqBy = bc, U.uniqWith = xc, U.unset = Cd, U.unzip = Sc, U.unzipWith = Cc, U.update = wd, U.updateWith = Td, U.values = Ed, U.valuesIn = Dd, U.without = wc, U.words = sf, U.wrap = Ll, U.xor = Tc, U.xorBy = Ec, U.xorWith = Dc, U.zip = Oc, U.zipObject = kc, U.zipObjectDeep = Ac, U.zipWith = jc, U.entries = bd, U.entriesIn = xd, U.extend = Bu, U.extendWith = Vu, Sf(U, U), U.add = Vf, U.attempt = cf, U.camelCase = jd, U.capitalize = Md, U.ceil = Hf, U.clamp = Od, U.clone = zl, U.cloneDeep = Vl, U.cloneDeepWith = Hl, U.cloneWith = Bl, U.conformsTo = Ul, U.deburr = Nd, U.defaultTo = pf, U.divide = Uf, U.endsWith = Pd, U.eq = Wl, U.escape = Fd, U.escapeRegExp = Id, U.every = Uc, U.find = Gc, U.findIndex = Fs, U.findKey = qu, U.findLast = Kc, U.findLastIndex = Is, U.findLastKey = Ju, U.floor = Wf, U.forEach = Xc, U.forEachRight = Zc, U.forIn = Yu, U.forInRight = Xu, U.forOwn = Zu, U.forOwnRight = Qu, U.get = td, U.gt = Gl, U.gte = Kl, U.has = nd, U.hasIn = rd, U.head = Vs, U.identity = gf, U.includes = $c, U.indexOf = Hs, U.inRange = kd, U.invoke = od, U.isArguments = ql, U.isArray = Jl, U.isArrayBuffer = Yl, U.isArrayLike = Xl, U.isArrayLikeObject = Zl, U.isBoolean = Ql, U.isBuffer = $l, U.isDate = eu, U.isElement = tu, U.isEmpty = nu, U.isEqual = ru, U.isEqualWith = iu, U.isError = au, U.isFinite = ou, U.isFunction = X, U.isInteger = su, U.isLength = cu, U.isMap = du, U.isMatch = fu, U.isMatchWith = pu, U.isNaN = mu, U.isNative = hu, U.isNil = _u, U.isNull = gu, U.isNumber = vu, U.isObject = lu, U.isObjectLike = uu, U.isPlainObject = yu, U.isRegExp = bu, U.isSafeInteger = xu, U.isSet = Su, U.isString = Cu, U.isSymbol = wu, U.isTypedArray = Tu, U.isUndefined = Eu, U.isWeakMap = Du, U.isWeakSet = Ou, U.join = qs, U.kebabCase = Ld, U.last = Js, U.lastIndexOf = Ys, U.lowerCase = Rd, U.lowerFirst = zd, U.lt = ku, U.lte = Au, U.max = Gf, U.maxBy = Kf, U.mean = qf, U.meanBy = Jf, U.min = Yf, U.minBy = Xf, U.stubArray = Nf, U.stubFalse = Pf, U.stubObject = Ff, U.stubString = If, U.stubTrue = Lf, U.multiply = Zf, U.nth = Xs, U.noConflict = Cf, U.noop = wf, U.now = ml, U.pad = Bd, U.padEnd = Vd, U.padStart = Hd, U.parseInt = Ud, U.random = Ad, U.reduce = al, U.reduceRight = ol, U.repeat = Wd, U.replace = Gd, U.result = _d, U.round = Qf, U.runInContext = e, U.sample = cl, U.size = dl, U.snakeCase = Kd, U.some = fl, U.sortedIndex = ac, U.sortedIndexBy = oc, U.sortedIndexOf = sc, U.sortedLastIndex = cc, U.sortedLastIndexBy = lc, U.sortedLastIndexOf = uc, U.startCase = Jd, U.startsWith = Yd, U.subtract = $f, U.sum = ep, U.sumBy = tp, U.template = Xd, U.times = Rf, U.toFinite = Mu, U.toInteger = Nu, U.toLength = Pu, U.toLower = Zd, U.toNumber = Fu, U.toSafeInteger = Lu, U.toString = Ru, U.toUpper = Qd, U.trim = $d, U.trimEnd = ef, U.trimStart = tf, U.truncate = nf, U.unescape = rf, U.uniqueId = Bf, U.upperCase = af, U.upperFirst = of, U.each = Xc, U.eachRight = Zc, U.first = Vs, Sf(U, function() {
var e = {};
return bi(U, function(t, n) {
ft.call(U.prototype, n) || (e[n] = t);
}), e;
}(), { chain: !1 }), U.VERSION = "4.18.1", R([
"bind",
"bindKey",
"curry",
"curryRight",
"partial",
"partialRight"
], function(e) {
U[e].placeholder = U;
}), R(["drop", "take"], function(e, t) {
yr.prototype[e] = function(r) {
r = r === n ? 1 : Ht(Nu(r), 0);
var i = this.__filtered__ && !t ? new yr(this) : this.clone();
return i.__filtered__ ? i.__takeCount__ = qt(r, i.__takeCount__) : i.__views__.push({
size: qt(r, y),
type: e + (i.__dir__ < 0 ? "Right" : "")
}), i;
}, yr.prototype[e + "Right"] = function(t) {
return this.reverse()[e](t).reverse();
};
}), R([
"filter",
"map",
"takeWhile"
], function(e, t) {
var n = t + 1, r = n == 1 || n == 3;
yr.prototype[e] = function(e) {
var t = this.clone();
return t.__iteratees__.push({
iteratee: No(e, 3),
type: n
}), t.__filtered__ = t.__filtered__ || r, t;
};
}), R(["head", "last"], function(e, t) {
var n = "take" + (t ? "Right" : "");
yr.prototype[e] = function() {
return this[n](1).value()[0];
};
}), R(["initial", "tail"], function(e, t) {
var n = "drop" + (t ? "" : "Right");
yr.prototype[e] = function() {
return this.__filtered__ ? new yr(this) : this[n](1);
};
}), yr.prototype.compact = function() {
return this.filter(gf);
}, yr.prototype.find = function(e) {
return this.filter(e).head();
}, yr.prototype.findLast = function(e) {
return this.reverse().find(e);
}, yr.prototype.invokeMap = la(function(e, t) {
return typeof e == "function" ? new yr(this) : this.map(function(n) {
return Mi(n, e, t);
});
}), yr.prototype.reject = function(e) {
return this.filter(Dl(No(e)));
}, yr.prototype.slice = function(e, t) {
e = Nu(e);
var r = this;
return r.__filtered__ && (e > 0 || t < 0) ? new yr(r) : (e < 0 ? r = r.takeRight(-e) : e && (r = r.drop(e)), t !== n && (t = Nu(t), r = t < 0 ? r.dropRight(-t) : r.take(t - e)), r);
}, yr.prototype.takeRightWhile = function(e) {
return this.reverse().takeWhile(e).reverse();
}, yr.prototype.toArray = function() {
return this.take(y);
}, bi(yr.prototype, function(e, t) {
var r = /^(?:filter|find|map|reject)|While$/.test(t), i = /^(?:head|last)$/.test(t), a = U[i ? "take" + (t == "last" ? "Right" : "") : t], o = i || /^find/.test(t);
a && (U.prototype[t] = function() {
var t = this.__wrapped__, s = i ? [1] : arguments, c = t instanceof yr, l = s[0], u = c || Jl(t), d = function(e) {
var t = a.apply(U, yn([e], s));
return i && f ? t[0] : t;
};
u && r && typeof l == "function" && l.length != 1 && (c = u = !1);
var f = this.__chain__, p = !!this.__actions__.length, m = o && !f, h = c && !p;
if (!o && u) {
t = h ? t : new yr(this);
var g = e.apply(t, s);
return g.__actions__.push({
func: Pc,
args: [d],
thisArg: n
}), new vr(g, f);
}
return m && h ? e.apply(this, s) : (g = this.thru(d), m ? i ? g.value()[0] : g.value() : g);
});
}), R([
"pop",
"push",
"shift",
"sort",
"splice",
"unshift"
], function(e) {
var t = st[e], n = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", r = /^(?:pop|shift)$/.test(e);
U.prototype[e] = function() {
var e = arguments;
if (r && !this.__chain__) {
var i = this.value();
return t.apply(Jl(i) ? i : [], e);
}
return this[n](function(n) {
return t.apply(Jl(n) ? n : [], e);
});
};
}), bi(yr.prototype, function(e, t) {
var n = U[t];
if (n) {
var r = n.name + "";
ft.call(An, r) || (An[r] = []), An[r].push({
name: t,
func: n
});
}
}), An[so(n, s).name] = [{
name: "wrapper",
func: n
}], yr.prototype.clone = br, yr.prototype.reverse = xr, yr.prototype.value = Sr, U.prototype.at = Fc, U.prototype.chain = Ic, U.prototype.commit = Lc, U.prototype.next = Y, U.prototype.plant = zc, U.prototype.reverse = Bc, U.prototype.toJSON = U.prototype.valueOf = U.prototype.value = Vc, U.prototype.first = U.prototype.head, Dt && (U.prototype[Dt] = Rc), U;
})();
typeof define == "function" && typeof define.amd == "object" && define.amd ? (tn._ = ur, define(function() {
return ur;
})) : rn ? ((rn.exports = ur)._ = ur, nn._ = ur) : tn._ = ur;
}).call(n);
})))();
function lo(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
var uo = (e) => {
switch (e) {
case "success": return mo;
case "info": return go;
case "warning": return ho;
case "error": return _o;
default: return null;
}
}, fo = Array(12).fill(0), po = ({ visible: e, className: t }) => /*#__PURE__*/ L.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
}, /*#__PURE__*/ L.createElement("div", { className: "sonner-spinner" }, fo.map((e, t) => /*#__PURE__*/ L.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
})))), mo = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
height: "20",
width: "20"
}, /*#__PURE__*/ L.createElement("path", {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
})), ho = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
height: "20",
width: "20"
}, /*#__PURE__*/ L.createElement("path", {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
})), go = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
height: "20",
width: "20"
}, /*#__PURE__*/ L.createElement("path", {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
})), _o = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
height: "20",
width: "20"
}, /*#__PURE__*/ L.createElement("path", {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
})), vo = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
viewBox: "0 0 24 24",
fill: "none",
stroke: "currentColor",
strokeWidth: "1.5",
strokeLinecap: "round",
strokeLinejoin: "round"
}, /*#__PURE__*/ L.createElement("line", {
x1: "18",
y1: "6",
x2: "6",
y2: "18"
}), /*#__PURE__*/ L.createElement("line", {
x1: "6",
y1: "6",
x2: "18",
y2: "18"
})), yo = () => {
let [e, t] = L.useState(document.hidden);
return L.useEffect(() => {
let e = () => {
t(document.hidden);
};
return document.addEventListener("visibilitychange", e), () => window.removeEventListener("visibilitychange", e);
}, []), e;
}, bo = 1, xo = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), () => {
let t = this.subscribers.indexOf(e);
this.subscribers.splice(t, 1);
}), this.publish = (e) => {
this.subscribers.forEach((t) => t(e));
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e];
}, this.create = (e) => {
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id : bo++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 || e.dismissible;
return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
...n,
...e,
id: r,
title: t
}), {
...n,
...e,
id: r,
dismissible: a,
title: t
}) : n) : this.addToast({
title: t,
...n,
dismissible: a,
id: r
}), r;
}, this.dismiss = (e) => (e ? (this.dismissedToasts.add(e), requestAnimationFrame(() => this.subscribers.forEach((t) => t({
id: e,
dismiss: !0
})))) : this.toasts.forEach((e) => {
this.subscribers.forEach((t) => t({
id: e.id,
dismiss: !0
}));
}), e), this.message = (e, t) => this.create({
...t,
message: e
}), this.error = (e, t) => this.create({
...t,
message: e,
type: "error"
}), this.success = (e, t) => this.create({
...t,
type: "success",
message: e
}), this.info = (e, t) => this.create({
...t,
type: "info",
message: e
}), this.warning = (e, t) => this.create({
...t,
type: "warning",
message: e
}), this.loading = (e, t) => this.create({
...t,
type: "loading",
message: e
}), this.promise = (e, t) => {
if (!t) return;
let n;
t.loading !== void 0 && (n = this.create({
...t,
promise: e,
type: "loading",
message: t.loading,
description: typeof t.description == "function" ? void 0 : t.description
}));
let r = Promise.resolve(e instanceof Function ? e() : e), i = n !== void 0, a, o = r.then(async (e) => {
if (a = ["resolve", e], L.isValidElement(e)) i = !1, this.create({
id: n,
type: "default",
message: e
});
else if (Co(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !L.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "error",
description: a,
...o
});
} else if (e instanceof Error) {
i = !1;
let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !L.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "error",
description: a,
...o
});
} else if (t.success !== void 0) {
i = !1;
let r = typeof t.success == "function" ? await t.success(e) : t.success, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !L.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "success",
description: a,
...o
});
}
}).catch(async (e) => {
if (a = ["reject", e], t.error !== void 0) {
i = !1;
let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !L.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "error",
description: a,
...o
});
}
}).finally(() => {
i && (this.dismiss(n), n = void 0), t.finally == null || t.finally.call(t);
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
let n = t?.id || bo++;
return this.create({
jsx: e(n),
id: n,
...t
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
}
}(), So = (e, t) => {
let n = t?.id || bo++;
return xo.addToast({
title: e,
...t,
id: n
}), n;
}, Co = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", wo = Object.assign(So, {
success: xo.success,
info: xo.info,
warning: xo.warning,
error: xo.error,
custom: xo.custom,
message: xo.message,
promise: xo.promise,
dismiss: xo.dismiss,
loading: xo.loading
}, {
getHistory: () => xo.toasts,
getToasts: () => xo.getActiveToasts()
});
lo("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
function To(e) {
return e.label !== void 0;
}
var Eo = 3, Do = "24px", Oo = "16px", ko = 4e3, Ao = 356, jo = 14, Mo = 45, No = 200;
function Po(...e) {
return e.filter(Boolean).join(" ");
}
function Fo(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
var Io = (e) => {
let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = L.useState(null), [O, k] = L.useState(null), [A, ee] = L.useState(!1), [j, te] = L.useState(!1), [M, ne] = L.useState(!1), [N, re] = L.useState(!1), [ie, ae] = L.useState(!1), [oe, se] = L.useState(0), [ce, le] = L.useState(0), ue = L.useRef(n.duration || y || ko), P = L.useRef(null), de = L.useRef(null), fe = c === 0, pe = c + 1 <= o, me = n.type, he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = L.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = L.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = L.useMemo(() => n.duration || y || ko, [n.duration, y]), xe = L.useRef(0), Se = L.useRef(0), Ce = L.useRef(0), we = L.useRef(null), [Te, Ee] = b.split("-"), De = L.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = yo(), ke = n.invert || t, Ae = me === "loading";
Se.current = L.useMemo(() => ve * x + De, [ve, De]), L.useEffect(() => {
ue.current = be;
}, [be]), L.useEffect(() => {
ee(!0);
}, []), L.useEffect(() => {
let e = de.current;
if (e) {
let t = e.getBoundingClientRect().height;
return le(t), a((e) => [{
toastId: n.id,
height: t,
position: n.position
}, ...e]), () => a((e) => e.filter((e) => e.toastId !== n.id));
}
}, [a, n.id]), L.useLayoutEffect(() => {
if (!A) return;
let e = de.current, t = e.style.height;
e.style.height = "auto";
let r = e.getBoundingClientRect().height;
e.style.height = t, le(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
...e,
height: r
} : e) : [{
toastId: n.id,
height: r,
position: n.position
}, ...e]);
}, [
A,
n.title,
n.description,
a,
n.id,
n.jsx,
n.action,
n.cancel
]);
let je = L.useCallback(() => {
te(!0), se(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
}, No);
}, [
n,
d,
a,
Se
]);
L.useEffect(() => {
if (n.promise && me === "loading" || n.duration === Infinity || n.type === "loading") return;
let e;
return u || i || Oe ? (() => {
if (Ce.current < xe.current) {
let e = (/* @__PURE__ */ new Date()).getTime() - xe.current;
ue.current -= e;
}
Ce.current = (/* @__PURE__ */ new Date()).getTime();
})() : ue.current !== Infinity && (xe.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {
n.onAutoClose == null || n.onAutoClose.call(n, n), je();
}, ue.current)), () => clearTimeout(e);
}, [
u,
i,
n,
me,
Oe,
je
]), L.useEffect(() => {
n.delete && (je(), n.onDismiss == null || n.onDismiss.call(n, n));
}, [je, n.delete]);
function Me() {
return w?.loading ? /*#__PURE__*/ L.createElement("div", {
className: Po(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": me === "loading"
}, w.loading) : /*#__PURE__*/ L.createElement(po, {
className: Po(C?.loader, n?.classNames?.loader),
visible: me === "loading"
});
}
let Ne = n.icon || w?.[me] || uo(me);
return /*#__PURE__*/ L.createElement("li", {
tabIndex: 0,
ref: de,
className: Po(_, ge, C?.toast, n?.classNames?.toast, C?.default, C?.[me], n?.classNames?.[me]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
"data-mounted": A,
"data-promise": !!n.promise,
"data-swiped": ie,
"data-removed": j,
"data-visible": pe,
"data-y-position": Te,
"data-x-position": Ee,
"data-index": c,
"data-front": fe,
"data-swiping": M,
"data-dismissible": he,
"data-type": me,
"data-invert": ke,
"data-swipe-out": N,
"data-swipe-direction": O,
"data-expanded": !!(u || S && A),
"data-testid": n.testId,
style: {
"--index": c,
"--toasts-before": c,
"--z-index": l.length - c,
"--offset": `${j ? oe : Se.current}px`,
"--initial-height": S ? "auto" : `${ce}px`,
...m,
...n.style
},
onDragEnd: () => {
ne(!1), D(null), we.current = null;
},
onPointerDown: (e) => {
e.button !== 2 && !Ae && he && (P.current = /* @__PURE__ */ new Date(), se(Se.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (ne(!0), we.current = {
x: e.clientX,
y: e.clientY
}));
},
onPointerUp: () => {
if (N || !he) return;
we.current = null;
let e = Number(de.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(de.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - P.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
if (Math.abs(i) >= Mo || a > .11) se(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), je(), re(!0);
else {
var o, s;
(o = de.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = de.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), ae(!1), ne(!1), D(null);
}
},
onPointerMove: (t) => {
var n, r;
if (!we.current || !he || window.getSelection()?.toString().length > 0) return;
let i = t.clientY - we.current.y, a = t.clientX - we.current.x, o = e.swipeDirections ?? Fo(b);
!E && (Math.abs(a) > 1 || Math.abs(i) > 1) && D(Math.abs(a) > Math.abs(i) ? "x" : "y");
let s = {
x: 0,
y: 0
}, c = (e) => 1 / (1.5 + Math.abs(e) / 20);
if (E === "y") {
if (o.includes("top") || o.includes("bottom")) {
if (o.includes("top") && i < 0 || o.includes("bottom") && i > 0) s.y = i;
else {
let e = i * c(i);
s.y = Math.abs(e) < Math.abs(i) ? e : i;
}
}
} else if (E === "x" && (o.includes("left") || o.includes("right"))) {
if (o.includes("left") && a < 0 || o.includes("right") && a > 0) s.x = a;
else {
let e = a * c(a);
s.x = Math.abs(e) < Math.abs(a) ? e : a;
}
}
(Math.abs(s.x) > 0 || Math.abs(s.y) > 0) && ae(!0), (n = de.current) == null || n.style.setProperty("--swipe-amount-x", `${s.x}px`), (r = de.current) == null || r.style.setProperty("--swipe-amount-y", `${s.y}px`);
}
}, ye && !n.jsx && me !== "loading" ? /*#__PURE__*/ L.createElement("button", {
"aria-label": T,
"data-disabled": Ae,
"data-close-button": !0,
onClick: Ae || !he ? () => {} : () => {
je(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: Po(C?.closeButton, n?.classNames?.closeButton)
}, w?.close ?? vo) : null, (me || n.icon || n.promise) && n.icon !== null && (w?.[me] !== null || n.icon) ? /*#__PURE__*/ L.createElement("div", {
"data-icon": "",
className: Po(C?.icon, n?.classNames?.icon)
}, n.promise || n.type === "loading" && !n.icon ? n.icon || Me() : null, n.type === "loading" ? null : Ne) : null, /*#__PURE__*/ L.createElement("div", {
"data-content": "",
className: Po(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ L.createElement("div", {
"data-title": "",
className: Po(C?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ L.createElement("div", {
"data-description": "",
className: Po(v, _e, C?.description, n?.classNames?.description)
}, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ L.isValidElement(n.cancel) ? n.cancel : n.cancel && To(n.cancel) ? /*#__PURE__*/ L.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
To(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), je());
},
className: Po(C?.cancelButton, n?.classNames?.cancelButton)
}, n.cancel.label) : null, /*#__PURE__*/ L.isValidElement(n.action) ? n.action : n.action && To(n.action) ? /*#__PURE__*/ L.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
To(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), e.defaultPrevented || je());
},
className: Po(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
function Lo() {
if (typeof window > "u" || typeof document > "u") return "ltr";
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
function Ro(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Oo : Do;
function o(e) {
[
"top",
"right",
"bottom",
"left"
].forEach((t) => {
n[`${i}-${t}`] = typeof e == "number" ? `${e}px` : e;
});
}
typeof e == "number" || typeof e == "string" ? o(e) : typeof e == "object" ? [
"top",
"right",
"bottom",
"left"
].forEach((t) => {
e[t] === void 0 ? n[`${i}-${t}`] = a : n[`${i}-${t}`] = typeof e[t] == "number" ? `${e[t]}px` : e[t];
}) : o(a);
}), n;
}
var zo = /*#__PURE__*/ L.forwardRef(function(e, t) {
let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = Eo, toastOptions: g, dir: _ = Lo(), gap: v = jo, icons: y, containerAriaLabel: b = "Notifications" } = e, [x, S] = L.useState([]), C = L.useMemo(() => n ? x.filter((e) => e.toasterId === n) : x.filter((e) => !e.toasterId), [x, n]), w = L.useMemo(() => Array.from(new Set([i].concat(C.filter((e) => e.position).map((e) => e.position)))), [C, i]), [T, E] = L.useState([]), [D, O] = L.useState(!1), [k, A] = L.useState(!1), [ee, j] = L.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), te = L.useRef(null), M = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ne = L.useRef(null), N = L.useRef(!1), re = L.useCallback((e) => {
S((t) => (t.find((t) => t.id === e.id)?.delete || xo.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return L.useEffect(() => xo.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
S((t) => t.map((t) => t.id === e.id ? {
...t,
delete: !0
} : t));
}) : setTimeout(() => {
Cn.flushSync(() => {
S((t) => {
let n = t.findIndex((t) => t.id === e.id);
return n === -1 ? [e, ...t] : [
...t.slice(0, n),
{
...t[n],
...e
},
...t.slice(n + 1)
];
});
});
});
}), [x]), L.useEffect(() => {
if (d !== "system") {
j(d);
return;
}
if (d === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? j("dark") : j("light")), typeof window > "u") return;
let e = window.matchMedia("(prefers-color-scheme: dark)");
try {
e.addEventListener("change", ({ matches: e }) => {
j(e ? "dark" : "light");
});
} catch {
e.addListener(({ matches: e }) => {
try {
j(e ? "dark" : "light");
} catch (e) {
console.error(e);
}
});
}
}, [d]), L.useEffect(() => {
x.length <= 1 && O(!1);
}, [x]), L.useEffect(() => {
let e = (e) => {
if (a.every((t) => e[t] || e.code === t)) {
var t;
O(!0), (t = te.current) == null || t.focus();
}
e.code === "Escape" && (document.activeElement === te.current || te.current?.contains(document.activeElement)) && O(!1);
};
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
}, [a]), L.useEffect(() => {
if (te.current) return () => {
ne.current && (ne.current.focus({ preventScroll: !0 }), ne.current = null, N.current = !1);
};
}, [te.current]), /*#__PURE__*/ L.createElement("section", {
ref: t,
"aria-label": `${b} ${M}`,
tabIndex: -1,
"aria-live": "polite",
"aria-relevant": "additions text",
"aria-atomic": "false",
suppressHydrationWarning: !0
}, w.map((t, n) => {
let [i, a] = t.split("-");
return C.length ? /*#__PURE__*/ L.createElement("ol", {
key: t,
dir: _ === "auto" ? Lo() : _,
tabIndex: -1,
ref: te,
className: c,
"data-sonner-toaster": !0,
"data-sonner-theme": ee,
"data-y-position": i,
"data-x-position": a,
style: {
"--front-toast-height": `${T[0]?.height || 0}px`,
"--width": `${Ao}px`,
"--gap": `${v}px`,
...m,
...Ro(l, u)
},
onBlur: (e) => {
N.current && !e.currentTarget.contains(e.relatedTarget) && (N.current = !1, ne.current &&= (ne.current.focus({ preventScroll: !0 }), null));
},
onFocus: (e) => {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || N.current || (N.current = !0, ne.current = e.relatedTarget);
},
onMouseEnter: () => O(!0),
onMouseMove: () => O(!0),
onMouseLeave: () => {
k || O(!1);
},
onDragEnd: () => O(!1),
onPointerDown: (e) => {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || A(!0);
},
onPointerUp: () => A(!1)
}, C.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ L.createElement(Io, {
key: n.id,
icons: y,
index: i,
toast: n,
defaultRichColors: f,
duration: g?.duration ?? p,
className: g?.className,
descriptionClassName: g?.descriptionClassName,
invert: r,
visibleToasts: h,
closeButton: g?.closeButton ?? s,
interacting: k,
position: t,
style: g?.style,
unstyled: g?.unstyled,
classNames: g?.classNames,
cancelButtonStyle: g?.cancelButtonStyle,
actionButtonStyle: g?.actionButtonStyle,
closeButtonAriaLabel: g?.closeButtonAriaLabel,
removeToast: re,
toasts: C.filter((e) => e.position == n.position),
heights: T.filter((e) => e.position == n.position),
setHeights: E,
expandByDefault: o,
gap: v,
expanded: D,
swipeDirections: e.swipeDirections
}))) : null;
}));
});
// src/lib/operations.utils.ts
function Bo(e) {
return e.replace(/\{(\s+)?\}/g, "");
}
var Vo = (e) => {
let n = la(e);
return n === null ? {
kind: w,
name: {
kind: je,
value: e
}
} : {
kind: t,
typeCondition: {
kind: nt,
name: {
kind: je,
value: n
}
},
selectionSet: {
kind: Se,
selections: []
}
};
}, Ho = (e, t) => {
let n = la(t);
for (let r of e.selections) if (n === null) {
if (r.kind === "Field" && r.name.value === t) return {
parent: e,
node: r
};
} else if (r.kind === "InlineFragment" && r.typeCondition?.name.value === n) return {
parent: e,
node: r
};
for (let n of e.selections) if (n.kind === "InlineFragment" && !n.typeCondition) {
let e = Ho(n.selectionSet, t);
if (e) return e;
}
}, Uo = (e) => e.selections;
function Wo(e, t, n = !1) {
if (t.length === 0) return null;
if (!e.selectionSet) {
if (!n) return null;
e.selectionSet = {
kind: Se,
selections: []
};
}
let r = e.selectionSet, i = [];
for (let e = 0; e < t.length; ++e) {
let a = Ho(r, t[e]);
if (!a) {
if (!n) return null;
let i = Vo(t[e]);
Uo(r).push(i), a = {
parent: r,
node: i
};
}
let { node: o } = a;
if (i.push(a), e === t.length - 1) break;
if (!o.selectionSet) {
if (!n) return null;
o.selectionSet = {
kind: Se,
selections: []
};
}
r = o.selectionSet;
}
return i;
}
var Go = (e) => {
e.selectionSet ||= {
kind: Se,
selections: []
};
let t = e.selectionSet;
t.selections.some((e) => e.kind === "Field" && e.name.value === "__typename") || Uo(t).unshift({
kind: w,
name: {
kind: je,
value: "__typename"
}
});
}, Ko = (e, t) => {
e.selections = e.selections.filter((e) => e !== t);
};
function qo(e, t, n) {
if (!e || !t) return !1;
e = Bo(e);
let [r, ...i] = t.split("."), a;
try {
a = De(e);
} catch {}
if (!a) return !1;
let o = a.definitions.find((e) => e.kind === "OperationDefinition" && e.operation === r ? !n || e.name?.value === n : !1);
return o ? i.length === 0 || Wo(o, i) !== null : !1;
}
function Jo(e, t, n, r) {
e = Bo(e);
let [i, ...a] = t.split("."), o;
try {
o = De(e);
} catch {}
o ??= {
kind: y,
definitions: [{
kind: He,
operation: i,
name: {
kind: je,
value: "Untitled"
},
selectionSet: {
kind: Se,
selections: []
}
}]
};
let s = o.definitions.find((e) => e.kind === "OperationDefinition" && e.operation === i ? !n || e.name?.value === n : !1);
if (s || (s = {
kind: He,
operation: i,
name: {
kind: je,
value: "Untitled"
},
selectionSet: {
kind: Se,
selections: []
}
}, o.definitions.push(s)), a.length === 0) return O(o).split("\n").map((e) => e.includes(`${i} Untitled`) ? e + " {}" : e).join("\n");
let c = Wo(s, a, !0), l = r ? ma(t, r) : null;
return c && l && c.forEach((e, t) => {
l[t] && Ft(l[t].type) && Go(e.node);
}), O(o);
}
function Yo(e, t, n) {
e = Bo(e);
let [r, ...i] = t.split("."), a;
try {
a = De(e);
} catch {}
if (!a) return e;
let o = a.definitions.find((e) => e.kind === "OperationDefinition" && e.operation === r ? !n || e.name?.value === n : !1);
if (!o) return e;
let s = Wo(o, i);
if (s) {
let e = s[s.length - 1];
Ko(e.parent, e.node);
for (let e = s.length - 2; e >= 0; --e) {
let { parent: t, node: n } = s[e];
if (n.kind !== "InlineFragment" || n.selectionSet.selections.length > 0) break;
Ko(t, n);
}
}
return o.selectionSet?.selections.length === 0 ? a.definitions.length > 1 ? `${O({
...a,
definitions: a.definitions.filter((e) => e !== o)
})}
${r} ${o.name?.value} {}` : `${r} ${o.name?.value} {}` : (o = a.definitions.find((e) => e.kind === "OperationDefinition" && e.operation === r ? !n || e.name?.value === n : !1), O(a));
}
function Xo(e) {
try {
return De(e).definitions.find((e) => e.kind === He)?.name?.value;
} catch {
let t = e.match(/(query|mutation|subscription)\s+([a-zA-Z0-9_]+)/);
return t ? t[2] : null;
}
}
function Zo(e) {
try {
return De(e).definitions.find((e) => e.kind === He)?.operation;
} catch {
return null;
}
}
function Qo(e, t, n, r) {
if (!e || !t) return !1;
e = Bo(e);
let [i, ...a] = t.split("."), o;
try {
o = De(e);
} catch {}
if (!o) return !1;
let s = o.definitions.find((e) => e.kind === "OperationDefinition" && e.operation === i ? !r || e.name?.value === r : !1);
if (!s) return !1;
let c = Wo(s, a)?.at(-1)?.node;
return c?.kind === "Field" ? c.arguments?.some((e) => e.name.value === n) ?? !1 : !1;
}
function $o(e, t, n, r, i) {
e = Bo(e);
let [a, ...o] = t.split("."), s;
try {
s = De(e);
} catch {}
s ||= {
kind: y,
definitions: [{
kind: He,
operation: a,
name: {
kind: je,
value: "NewOperation"
},
selectionSet: {
kind: Se,
selections: []
}
}]
};
let c = s.definitions.find((e) => e.kind === "OperationDefinition" && e.operation === a ? !i || e.name?.value === i : !1);
c || (c = {
kind: He,
operation: a,
name: {
kind: je,
value: "NewOperation"
},
selectionSet: {
kind: Se,
selections: []
}
}, s.definitions.push(c)), e = O(s), qo(e, t, i) || (s = De(Jo(e, t, i, r)), c = s.definitions.find((e) => e.kind === "OperationDefinition" && e.operation === a ? !i || e.name?.value === i : !1));
let l = Wo(c, o)?.at(-1)?.node, u = ls(t, r)?.args.find((e) => e.name === n);
if (l?.kind !== "Field" || !u) return O(s);
let d = c.variableDefinitions ||= [], f = u.name, p = 2;
for (; d.find((e) => e.variable.name.value === f);) f = u.name + p, ++p;
return d.push({
kind: Oe,
variable: {
kind: Lt,
name: {
kind: je,
value: f
}
},
type: {
kind: nt,
name: {
kind: je,
value: u.type.toString()
}
}
}), (l.arguments ||= []).push({
kind: b,
name: {
kind: je,
value: n
},
value: {
kind: Lt,
name: {
kind: je,
value: f
}
}
}), O(s);
}
function es(e, t, n, r) {
e = Bo(e);
let [i, ...a] = t.split("."), o;
try {
o = De(e);
} catch {}
if (!o) return e;
let s = o.definitions.find((e) => e.kind === "OperationDefinition" && e.operation === i ? !r || e.name?.value === r : !1);
if (!s) return e;
let c = Wo(s, a)?.at(-1)?.node;
return c?.kind === "Field" && c.arguments && (c.arguments = c.arguments.filter((e) => e.name.value !== n)), O(o);
}
function ts(e) {
try {
let t = De(e), n = [[t.definitions[0].kind === "OperationDefinition" ? t.definitions[0].operation : "query"]], r = (e, t = []) => {
for (let i of e) if (i.kind === "Field") {
let e = [...t, i.name.value];
n.push(e), i.selectionSet && r(i.selectionSet.selections, e);
} else if (i.kind === "InlineFragment") {
let e = i.typeCondition ? [...t, ca(i.typeCondition.name.value)] : t;
i.typeCondition && n.push(e), r(i.selectionSet.selections, e);
}
};
for (let e of t.definitions) e.kind === "OperationDefinition" && e.selectionSet && r(e.selectionSet.selections, n[0]);
return n;
} catch {
return [];
}
}
function ns(e) {
return ts(e).map((e) => e.join("."));
}
function rs(e, t, n) {
let r = new Set(e);
for (let e of t) n.includes(e) || r.delete(e);
for (let e of n) r.add(e);
return r.size === e.length && e.every((e) => r.has(e)) ? e : [...r];
}
function is(e) {
return e instanceof Be || e instanceof Fe ? is(e.ofType) : e;
}
function as(e, t, n) {
if (n.length > 1) {
let t = e.length - n.length;
if (t < 0) return !1;
for (let r = 0; r <= t; ++r) {
let t = !0;
for (let i = 0; i < n.length; ++i) if (!e[r + i].includes(n[i])) {
t = !1;
break;
}
if (t) return !0;
}
return !1;
}
for (let n of e) if (n.includes(t)) return !0;
return !1;
}
function os(e, t, n) {
let r = t.trim().toLowerCase();
if (!r) return {
matchedPaths: [],
visiblePaths: /* @__PURE__ */ new Set(),
forcedOpenPaths: /* @__PURE__ */ new Set(),
hasMore: !1,
nodesVisited: 0
};
let i = n?.maxDepth ?? 8, a = n?.maxMatches ?? 500, o = n?.maxNodes ?? 4e4, s = r.split(".").filter(Boolean), c = [], l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), d = [], f = 0, p = [
[Pt.QUERY, e.getQueryType() ?? null],
[Pt.MUTATION, e.getMutationType() ?? null],
[Pt.SUBSCRIPTION, e.getSubscriptionType() ?? null]
], m = n?.operationTypes && n.operationTypes.length > 0 ? p.filter(([e]) => n.operationTypes.includes(e)) : p;
for (let [e, t] of m) if (t) for (let n of Object.values(t.getFields())) d.push({
operation: e,
field: n,
pathSegments: [n.name],
fieldSegments: [n.name],
typeTrail: [t.name],
depth: 1
});
let g = 0, v = !1;
for (; f < d.length;) {
if (g >= o || c.length >= a) {
v = !0;
break;
}
let t = d[f++];
++g;
let n = `${t.operation}.${t.pathSegments.join(".")}`;
if (as(t.fieldSegments.map((e) => e.toLowerCase()), r, s)) {
c.push(n), l.add(n);
let e = n.indexOf(".");
for (; e !== -1;) {
let t = n.slice(0, e);
l.add(t), u.add(t), e = n.indexOf(".", e + 1);
}
}
if (t.depth >= i) continue;
let p = is(t.field.type);
if (t.typeTrail.includes(p.name)) continue;
let m = [...t.typeTrail, p.name], y = (e, n, r) => {
d.push({
operation: t.operation,
field: e,
pathSegments: n ? [
...t.pathSegments,
ca(n.name),
e.name
] : [...t.pathSegments, e.name],
fieldSegments: [...t.fieldSegments, e.name],
typeTrail: r,
depth: t.depth + 1
});
};
if (A(p) || h(p)) for (let e of Object.values(p.getFields())) y(e, null, m);
let b = _(p) ? p.getTypes() : h(p) ? e.getPossibleTypes(p) : [], x = h(p) ? new Set(Object.keys(p.getFields())) : null;
for (let e of b) {
if (t.typeTrail.includes(e.name)) continue;
let n = [...m, e.name];
for (let t of Object.values(e.getFields())) x?.has(t.name) || y(t, e, n);
}
}
return {
matchedPaths: c,
visiblePaths: l,
forcedOpenPaths: u,
hasMore: v,
nodesVisited: g
};
}
function ss(e, t) {
let n = new Set(Object.keys(t).map((e) => e.toLowerCase()));
return {
...Object.fromEntries(Object.entries(e).filter(([e]) => !n.has(e.toLowerCase()))),
...t
};
}
function cs(e, t) {
return e.replace(/\{\{(.*?)\}\}/g, (e, n) => (0, co.get)(t, n) ?? e);
}
function ls(e, t) {
let n = ma(e, t);
if (!n) return null;
for (let e = n.length - 1; e >= 0; --e) {
let { field: t } = n[e];
if (t) return t;
}
return null;
}
// ../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
function us(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
for (t = 0; t < i; t++) e[t] && (n = us(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
function ds() {
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = us(e)) && (r && (r += " "), r += t);
return r;
}
// ../../../node_modules/.pnpm/tailwind-merge@3.7.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
var fs = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
}, ps = (e, t) => ({
classGroupId: e,
validator: t
}), ms = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
}), hs = "-", gs = [], _s = "arbitrary..", vs = (e) => {
let t = xs(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
if (e.startsWith("[") && e.endsWith("]")) return bs(e);
let n = e.split(hs);
return ys(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
return t ? i ? fs(i, t) : t : i || gs;
}
return n[e] || gs;
}
};
}, ys = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
let n = ys(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
let o = t === 0 ? e.join(hs) : e.slice(t).join(hs), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
}, bs = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
return r ? _s + r : void 0;
})(), xs = (e) => {
let { theme: t, classGroups: n } = e;
return Ss(n, t);
}, Ss = (e, t) => {
let n = ms();
for (let r in e) {
let i = e[r];
Cs(i, n, r, t);
}
return n;
}, Cs = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
ws(i, t, n, r);
}
}, ws = (e, t, n, r) => {
typeof e == "string" ? Ts(e, t, n) : typeof e == "function" ? Es(e, t, n, r) : Ds(e, t, n, r);
}, Ts = (e, t, n) => {
let r = e === "" ? t : Os(t, e);
r.classGroupId = n;
}, Es = (e, t, n, r) => {
ks(e) ? Cs(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(ps(n, e)));
}, Ds = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
Cs(o, Os(t, a), n, r);
}
}, Os = (e, t) => {
let n = e, r = t.split(hs), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
i || (i = ms(), n.nextPart.set(t, i)), n = i;
}
return n;
}, ks = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, As = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
};
let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {
n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));
};
return {
get(e) {
let t = n[e];
if (t !== void 0) return t;
if ((t = r[e]) !== void 0) return i(e, t), t;
},
set(e, t) {
e in n ? n[e] = t : i(e, t);
}
};
}, js = "!", Ms = ":", Ns = [], Ps = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
}), Fs = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
if (o === Ms) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
if (o === "/") {
a = s;
continue;
}
}
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
s.endsWith(js) ? (c = s.slice(0, -1), l = !0) : s.startsWith(js) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
return Ps(t, l, c, u);
};
if (t) {
let e = t + Ms, n = r;
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Ps(Ns, !1, t, void 0, !0);
}
if (n) {
let e = r;
r = (t) => n({
className: t,
parseClassName: e
});
}
return r;
}, Is = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
}), (e) => {
let n = [], r = [];
for (let i = 0; i < e.length; i++) {
let a = e[i], o = a[0] === "[", s = t.has(a);
o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
}, Ls = (e) => ({
cache: As(e.cacheSize),
parseClassName: Fs(e),
sortModifiers: Is(e),
postfixLookupClassGroupIds: Rs(e),
...vs(e)
}), Rs = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
}, zs = /\s+/, Bs = (e, t) => {
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(zs), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
l = t + (l.length > 0 ? " " + l : l);
continue;
}
let h = !!m, g;
if (h) {
g = r(p.substring(0, m));
let e = g && o[g] ? r(p) : void 0;
e && e !== g && (g = e, h = !1);
} else g = r(p);
if (!g) {
if (!h || (g = r(p), !g)) {
l = t + (l.length > 0 ? " " + l : l);
continue;
}
h = !1;
}
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + js : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
for (let e = 0; e < b.length; ++e) {
let t = b[e];
s.push(v + t);
}
l = t + (l.length > 0 ? " " + l : l);
}
return l;
}, Vs = (...e) => {
let t = 0, n, r, i = "";
for (; t < e.length;) (n = e[t++]) && (r = Hs(n)) && (i && (i += " "), i += r);
return i;
}, Hs = (e) => {
if (typeof e == "string") return e;
let t, n = "";
for (let r = 0; r < e.length; r++) e[r] && (t = Hs(e[r])) && (n && (n += " "), n += t);
return n;
}, Us = (e, ...t) => {
let n, r, i, a, o = (o) => (n = Ls(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
let a = Bs(e, n);
return i(e, a), a;
};
return a = o, (...e) => a(Vs(...e));
}, Ws = [], Gs = (e) => {
let t = (t) => t[e] || Ws;
return t.isThemeGetter = !0, t.themeKey = e, t;
}, Ks = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qs = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Js = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ys = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xs = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Zs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Qs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $s = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ec = (e) => Js.test(e), tc = (e) => !!e && !Number.isNaN(Number(e)), nc = (e) => !!e && Number.isInteger(Number(e)), rc = (e) => e.endsWith("%") && tc(e.slice(0, -1)), ic = (e) => Ys.test(e), ac = () => !0, oc = (e) => Xs.test(e) && !Zs.test(e), sc = () => !1, cc = (e) => Qs.test(e), lc = (e) => $s.test(e), uc = (e) => !q(e) && !J(e), dc = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), fc = (e) => Dc(e, jc, sc), q = (e) => Ks.test(e), pc = (e) => Dc(e, Mc, oc), mc = (e) => Dc(e, Nc, tc), hc = (e) => Dc(e, Fc, ac), gc = (e) => Dc(e, Pc, sc), _c = (e) => Dc(e, kc, sc), vc = (e) => Dc(e, Ac, lc), yc = (e) => Dc(e, Ic, cc), J = (e) => qs.test(e), bc = (e) => Oc(e, Mc), xc = (e) => Oc(e, Pc), Sc = (e) => Oc(e, kc), Cc = (e) => Oc(e, jc), wc = (e) => Oc(e, Ac), Tc = (e) => Oc(e, Ic, !0), Ec = (e) => Oc(e, Fc, !0), Dc = (e, t, n) => {
let r = Ks.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
}, Oc = (e, t, n = !1) => {
let r = qs.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
}, kc = (e) => e === "position" || e === "percentage", Ac = (e) => e === "image" || e === "url", jc = (e) => e === "length" || e === "size" || e === "bg-size", Mc = (e) => e === "length", Nc = (e) => e === "number", Pc = (e) => e === "family-name", Fc = (e) => e === "number" || e === "weight", Ic = (e) => e === "shadow", Lc = /*#__PURE__*/ Us(() => {
let e = Gs("color"), t = Gs("font"), n = Gs("text"), r = Gs("font-weight"), i = Gs("tracking"), a = Gs("leading"), o = Gs("breakpoint"), s = Gs("container"), c = Gs("spacing"), l = Gs("radius"), u = Gs("shadow"), d = Gs("inset-shadow"), f = Gs("text-shadow"), p = Gs("drop-shadow"), m = Gs("blur"), h = Gs("perspective"), g = Gs("aspect"), _ = Gs("ease"), v = Gs("animate"), y = () => [
"auto",
"avoid",
"all",
"avoid-page",
"page",
"left",
"right",
"column"
], b = () => [
"center",
"top",
"bottom",
"left",
"right",
"top-left",
"left-top",
"top-right",
"right-top",
"bottom-right",
"right-bottom",
"bottom-left",
"left-bottom"
], x = () => [
...b(),
J,
q
], S = () => [
"auto",
"hidden",
"clip",
"visible",
"scroll"
], C = () => [
"auto",
"contain",
"none"
], w = () => [
J,
q,
c
], T = () => [
ec,
"full",
"auto",
...w()
], E = () => [
nc,
"none",
"subgrid",
J,
q
], D = () => [
"auto",
{ span: [
"full",
nc,
J,
q
] },
nc,
J,
q
], O = () => [
nc,
"auto",
J,
q
], k = () => [
"auto",
"min",
"max",
"fr",
J,
q
], A = () => [
"start",
"end",
"center",
"between",
"around",
"evenly",
"stretch",
"baseline",
"center-safe",
"end-safe"
], ee = () => [
"start",
"end",
"center",
"stretch",
"center-safe",
"end-safe"
], j = () => ["auto", ...w()], te = () => [
ec,
"auto",
"full",
"dvw",
"dvh",
"lvw",
"lvh",
"svw",
"svh",
"min",
"max",
"fit",
...w()
], M = () => [
s,
ec,
"screen",
"full",
"dvw",
"lvw",
"svw",
"min",
"max",
"fit",
...w()
], ne = () => [
ec,
"screen",
"full",
"lh",
"dvh",
"lvh",
"svh",
"min",
"max",
"fit",
...w()
], N = () => [
e,
J,
q
], re = () => [
...b(),
Sc,
_c,
{ position: [J, q] }
], ie = () => ["no-repeat", { repeat: [
"",
"x",
"y",
"space",
"round"
] }], ae = () => [
"auto",
"cover",
"contain",
Cc,
fc,
{ size: [J, q] }
], oe = () => [
rc,
bc,
pc
], se = () => [
"",
"none",
"full",
l,
J,
q
], ce = () => [
"",
tc,
bc,
pc
], le = () => [
"solid",
"dashed",
"dotted",
"double"
], ue = () => [
"normal",
"multiply",
"screen",
"overlay",
"darken",
"lighten",
"color-dodge",
"color-burn",
"hard-light",
"soft-light",
"difference",
"exclusion",
"hue",
"saturation",
"color",
"luminosity"
], P = () => [
tc,
rc,
Sc,
_c
], de = () => [
"",
"none",
m,
J,
q
], fe = () => [
"none",
tc,
J,
q
], pe = () => [
"none",
tc,
J,
q
], me = () => [
tc,
J,
q
], he = () => [
ec,
"full",
...w()
];
return {
cacheSize: 500,
theme: {
animate: [
"spin",
"ping",
"pulse",
"bounce"
],
aspect: ["video"],
blur: [ic],
breakpoint: [ic],
color: [ac],
container: [ic],
"drop-shadow": [ic],
ease: [
"in",
"out",
"in-out"
],
font: [uc],
"font-weight": [
"thin",
"extralight",
"light",
"normal",
"medium",
"semibold",
"bold",
"extrabold",
"black"
],
"inset-shadow": [ic],
leading: [
"none",
"tight",
"snug",
"normal",
"relaxed",
"loose"
],
perspective: [
"dramatic",
"near",
"normal",
"midrange",
"distant",
"none"
],
radius: [ic],
shadow: [ic],
spacing: ["px", tc],
text: [ic],
"text-shadow": [ic],
tracking: [
"tighter",
"tight",
"normal",
"wide",
"wider",
"widest"
]
},
classGroups: {
aspect: [{ aspect: [
"auto",
"square",
ec,
q,
J,
g
] }],
container: ["container"],
"container-type": [{ "@container": [
"",
"normal",
"size",
J,
q
] }],
"container-named": [dc],
columns: [{ columns: [
tc,
"auto",
q,
J,
s
] }],
"break-after": [{ "break-after": y() }],
"break-before": [{ "break-before": y() }],
"break-inside": [{ "break-inside": [
"auto",
"avoid",
"avoid-page",
"avoid-column"
] }],
"box-decoration": [{ "box-decoration": ["slice", "clone"] }],
box: [{ box: ["border", "content"] }],
display: [
"block",
"inline-block",
"inline",
"flex",
"inline-flex",
"table",
"inline-table",
"table-caption",
"table-cell",
"table-column",
"table-column-group",
"table-footer-group",
"table-header-group",
"table-row-group",
"table-row",
"flow-root",
"grid",
"inline-grid",
"contents",
"list-item",
"hidden"
],
sr: ["sr-only", "not-sr-only"],
float: [{ float: [
"right",
"left",
"none",
"start",
"end"
] }],
clear: [{ clear: [
"left",
"right",
"both",
"none",
"start",
"end"
] }],
isolation: ["isolate", "isolation-auto"],
"object-fit": [{ object: [
"contain",
"cover",
"fill",
"none",
"scale-down"
] }],
"object-position": [{ object: x() }],
overflow: [{ overflow: S() }],
"overflow-x": [{ "overflow-x": S() }],
"overflow-y": [{ "overflow-y": S() }],
overscroll: [{ overscroll: C() }],
"overscroll-x": [{ "overscroll-x": C() }],
"overscroll-y": [{ "overscroll-y": C() }],
position: [
"static",
"fixed",
"absolute",
"relative",
"sticky"
],
inset: [{ inset: T() }],
"inset-x": [{ "inset-x": T() }],
"inset-y": [{ "inset-y": T() }],
start: [{
"inset-s": T(),
start: T()
}],
end: [{
"inset-e": T(),
end: T()
}],
"inset-bs": [{ "inset-bs": T() }],
"inset-be": [{ "inset-be": T() }],
top: [{ top: T() }],
right: [{ right: T() }],
bottom: [{ bottom: T() }],
left: [{ left: T() }],
visibility: [
"visible",
"invisible",
"collapse"
],
z: [{ z: [
nc,
"auto",
J,
q
] }],
basis: [{ basis: [
ec,
"full",
"auto",
s,
...w()
] }],
"flex-direction": [{ flex: [
"row",
"row-reverse",
"col",
"col-reverse"
] }],
"flex-wrap": [{ flex: [
"nowrap",
"wrap",
"wrap-reverse"
] }],
flex: [{ flex: [
tc,
ec,
"auto",
"initial",
"none",
q
] }],
grow: [{ grow: [
"",
tc,
J,
q
] }],
shrink: [{ shrink: [
"",
tc,
J,
q
] }],
order: [{ order: [
nc,
"first",
"last",
"none",
J,
q
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
"col-start": [{ "col-start": O() }],
"col-end": [{ "col-end": O() }],
"grid-rows": [{ "grid-rows": E() }],
"row-start-end": [{ row: D() }],
"row-start": [{ "row-start": O() }],
"row-end": [{ "row-end": O() }],
"grid-flow": [{ "grid-flow": [
"row",
"col",
"dense",
"row-dense",
"col-dense"
] }],
"auto-cols": [{ "auto-cols": k() }],
"auto-rows": [{ "auto-rows": k() }],
gap: [{ gap: w() }],
"gap-x": [{ "gap-x": w() }],
"gap-y": [{ "gap-y": w() }],
"justify-content": [{ justify: [...A(), "normal"] }],
"justify-items": [{ "justify-items": [...ee(), "normal"] }],
"justify-self": [{ "justify-self": ["auto", ...ee()] }],
"align-content": [{ content: ["normal", ...A()] }],
"align-items": [{ items: [...ee(), { baseline: ["", "last"] }] }],
"align-self": [{ self: [
"auto",
...ee(),
{ baseline: ["", "last"] }
] }],
"place-content": [{ "place-content": A() }],
"place-items": [{ "place-items": [...ee(), "baseline"] }],
"place-self": [{ "place-self": ["auto", ...ee()] }],
p: [{ p: w() }],
px: [{ px: w() }],
py: [{ py: w() }],
ps: [{ ps: w() }],
pe: [{ pe: w() }],
pbs: [{ pbs: w() }],
pbe: [{ pbe: w() }],
pt: [{ pt: w() }],
pr: [{ pr: w() }],
pb: [{ pb: w() }],
pl: [{ pl: w() }],
m: [{ m: j() }],
mx: [{ mx: j() }],
my: [{ my: j() }],
ms: [{ ms: j() }],
me: [{ me: j() }],
mbs: [{ mbs: j() }],
mbe: [{ mbe: j() }],
mt: [{ mt: j() }],
mr: [{ mr: j() }],
mb: [{ mb: j() }],
ml: [{ ml: j() }],
"space-x": [{ "space-x": w() }],
"space-x-reverse": ["space-x-reverse"],
"space-y": [{ "space-y": w() }],
"space-y-reverse": ["space-y-reverse"],
size: [{ size: te() }],
"inline-size": [{ inline: ["auto", ...M()] }],
"min-inline-size": [{ "min-inline": ["auto", ...M()] }],
"max-inline-size": [{ "max-inline": ["none", ...M()] }],
"block-size": [{ block: ["auto", ...ne()] }],
"min-block-size": [{ "min-block": ["auto", ...ne()] }],
"max-block-size": [{ "max-block": ["none", ...ne()] }],
w: [{ w: [
s,
"screen",
...te()
] }],
"min-w": [{ "min-w": [
s,
"screen",
"none",
...te()
] }],
"max-w": [{ "max-w": [
s,
"screen",
"none",
"prose",
{ screen: [o] },
...te()
] }],
h: [{ h: [
"screen",
"lh",
...te()
] }],
"min-h": [{ "min-h": [
"screen",
"lh",
"none",
...te()
] }],
"max-h": [{ "max-h": [
"screen",
"lh",
"none",
...te()
] }],
"font-size": [{ text: [
"base",
n,
bc,
pc
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
Ec,
hc
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
"extra-condensed",
"condensed",
"semi-condensed",
"normal",
"semi-expanded",
"expanded",
"extra-expanded",
"ultra-expanded",
rc,
q
] }],
"font-family": [{ font: [
xc,
gc,
t
] }],
"font-features": [{ "font-features": [q] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
"fvn-figure": ["lining-nums", "oldstyle-nums"],
"fvn-spacing": ["proportional-nums", "tabular-nums"],
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
J,
q
] }],
"line-clamp": [{ "line-clamp": [
tc,
"none",
J,
mc
] }],
leading: [{ leading: [
"none",
a,
...w()
] }],
"list-image": [{ "list-image": [
"none",
J,
q
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
J,
q
] }],
"text-alignment": [{ text: [
"left",
"center",
"right",
"justify",
"start",
"end"
] }],
"placeholder-color": [{ placeholder: N() }],
"text-color": [{ text: N() }],
"text-decoration": [
"underline",
"overline",
"line-through",
"no-underline"
],
"text-decoration-style": [{ decoration: [...le(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
tc,
"from-font",
"auto",
J,
pc
] }],
"text-decoration-color": [{ decoration: N() }],
"underline-offset": [{ "underline-offset": [
tc,
"auto",
J,
q
] }],
"text-transform": [
"uppercase",
"lowercase",
"capitalize",
"normal-case"
],
"text-overflow": [
"truncate",
"text-ellipsis",
"text-clip"
],
"text-wrap": [{ text: [
"wrap",
"nowrap",
"balance",
"pretty"
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
nc,
J,
q
] }],
"vertical-align": [{ align: [
"baseline",
"top",
"middle",
"bottom",
"text-top",
"text-bottom",
"sub",
"super",
J,
q
] }],
whitespace: [{ whitespace: [
"normal",
"nowrap",
"pre",
"pre-line",
"pre-wrap",
"break-spaces"
] }],
break: [{ break: [
"normal",
"words",
"all",
"keep"
] }],
wrap: [{ wrap: [
"break-word",
"anywhere",
"normal"
] }],
hyphens: [{ hyphens: [
"none",
"manual",
"auto"
] }],
content: [{ content: [
"none",
J,
q
] }],
"bg-attachment": [{ bg: [
"fixed",
"local",
"scroll"
] }],
"bg-clip": [{ "bg-clip": [
"border",
"padding",
"content",
"text"
] }],
"bg-origin": [{ "bg-origin": [
"border",
"padding",
"content"
] }],
"bg-position": [{ bg: re() }],
"bg-repeat": [{ bg: ie() }],
"bg-size": [{ bg: ae() }],
"bg-image": [{ bg: [
"none",
{
linear: [
{ to: [
"t",
"tr",
"r",
"br",
"b",
"bl",
"l",
"tl"
] },
nc,
J,
q
],
radial: [
"",
J,
q
],
conic: [
"",
nc,
J,
q
]
},
wc,
vc
] }],
"bg-color": [{ bg: N() }],
"gradient-from-pos": [{ from: oe() }],
"gradient-via-pos": [{ via: oe() }],
"gradient-to-pos": [{ to: oe() }],
"gradient-from": [{ from: N() }],
"gradient-via": [{ via: N() }],
"gradient-to": [{ to: N() }],
rounded: [{ rounded: se() }],
"rounded-s": [{ "rounded-s": se() }],
"rounded-e": [{ "rounded-e": se() }],
"rounded-t": [{ "rounded-t": se() }],
"rounded-r": [{ "rounded-r": se() }],
"rounded-b": [{ "rounded-b": se() }],
"rounded-l": [{ "rounded-l": se() }],
"rounded-ss": [{ "rounded-ss": se() }],
"rounded-se": [{ "rounded-se": se() }],
"rounded-ee": [{ "rounded-ee": se() }],
"rounded-es": [{ "rounded-es": se() }],
"rounded-tl": [{ "rounded-tl": se() }],
"rounded-tr": [{ "rounded-tr": se() }],
"rounded-br": [{ "rounded-br": se() }],
"rounded-bl": [{ "rounded-bl": se() }],
"border-w": [{ border: ce() }],
"border-w-x": [{ "border-x": ce() }],
"border-w-y": [{ "border-y": ce() }],
"border-w-s": [{ "border-s": ce() }],
"border-w-e": [{ "border-e": ce() }],
"border-w-bs": [{ "border-bs": ce() }],
"border-w-be": [{ "border-be": ce() }],
"border-w-t": [{ "border-t": ce() }],
"border-w-r": [{ "border-r": ce() }],
"border-w-b": [{ "border-b": ce() }],
"border-w-l": [{ "border-l": ce() }],
"divide-x": [{ "divide-x": ce() }],
"divide-x-reverse": ["divide-x-reverse"],
"divide-y": [{ "divide-y": ce() }],
"divide-y-reverse": ["divide-y-reverse"],
"border-style": [{ border: [
...le(),
"hidden",
"none"
] }],
"divide-style": [{ divide: [
...le(),
"hidden",
"none"
] }],
"border-color": [{ border: N() }],
"border-color-x": [{ "border-x": N() }],
"border-color-y": [{ "border-y": N() }],
"border-color-s": [{ "border-s": N() }],
"border-color-e": [{ "border-e": N() }],
"border-color-bs": [{ "border-bs": N() }],
"border-color-be": [{ "border-be": N() }],
"border-color-t": [{ "border-t": N() }],
"border-color-r": [{ "border-r": N() }],
"border-color-b": [{ "border-b": N() }],
"border-color-l": [{ "border-l": N() }],
"divide-color": [{ divide: N() }],
"outline-style": [{ outline: [
...le(),
"none",
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
tc,
J,
q
] }],
"outline-w": [{ outline: [
"",
tc,
bc,
pc
] }],
"outline-color": [{ outline: N() }],
shadow: [{ shadow: [
"",
"inner",
"none",
u,
Tc,
yc
] }],
"shadow-color": [{ shadow: N() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
Tc,
yc
] }],
"inset-shadow-color": [{ "inset-shadow": N() }],
"ring-w": [{ ring: ce() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: N() }],
"ring-offset-w": [{ "ring-offset": [tc, pc] }],
"ring-offset-color": [{ "ring-offset": N() }],
"inset-ring-w": [{ "inset-ring": ce() }],
"inset-ring-color": [{ "inset-ring": N() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
Tc,
yc
] }],
"text-shadow-color": [{ "text-shadow": N() }],
opacity: [{ opacity: [
tc,
J,
q
] }],
"mix-blend": [{ "mix-blend": [
...ue(),
"plus-darker",
"plus-lighter"
] }],
"bg-blend": [{ "bg-blend": ue() }],
"mask-clip": [{ "mask-clip": [
"border",
"padding",
"content",
"fill",
"stroke",
"view"
] }, "mask-no-clip"],
"mask-composite": [{ mask: [
"add",
"subtract",
"intersect",
"exclude"
] }],
"mask-image-linear-pos": [{ "mask-linear": [tc] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": P() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": P() }],
"mask-image-linear-from-color": [{ "mask-linear-from": N() }],
"mask-image-linear-to-color": [{ "mask-linear-to": N() }],
"mask-image-t-from-pos": [{ "mask-t-from": P() }],
"mask-image-t-to-pos": [{ "mask-t-to": P() }],
"mask-image-t-from-color": [{ "mask-t-from": N() }],
"mask-image-t-to-color": [{ "mask-t-to": N() }],
"mask-image-r-from-pos": [{ "mask-r-from": P() }],
"mask-image-r-to-pos": [{ "mask-r-to": P() }],
"mask-image-r-from-color": [{ "mask-r-from": N() }],
"mask-image-r-to-color": [{ "mask-r-to": N() }],
"mask-image-b-from-pos": [{ "mask-b-from": P() }],
"mask-image-b-to-pos": [{ "mask-b-to": P() }],
"mask-image-b-from-color": [{ "mask-b-from": N() }],
"mask-image-b-to-color": [{ "mask-b-to": N() }],
"mask-image-l-from-pos": [{ "mask-l-from": P() }],
"mask-image-l-to-pos": [{ "mask-l-to": P() }],
"mask-image-l-from-color": [{ "mask-l-from": N() }],
"mask-image-l-to-color": [{ "mask-l-to": N() }],
"mask-image-x-from-pos": [{ "mask-x-from": P() }],
"mask-image-x-to-pos": [{ "mask-x-to": P() }],
"mask-image-x-from-color": [{ "mask-x-from": N() }],
"mask-image-x-to-color": [{ "mask-x-to": N() }],
"mask-image-y-from-pos": [{ "mask-y-from": P() }],
"mask-image-y-to-pos": [{ "mask-y-to": P() }],
"mask-image-y-from-color": [{ "mask-y-from": N() }],
"mask-image-y-to-color": [{ "mask-y-to": N() }],
"mask-image-radial": [{ "mask-radial": [J, q] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": P() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": P() }],
"mask-image-radial-from-color": [{ "mask-radial-from": N() }],
"mask-image-radial-to-color": [{ "mask-radial-to": N() }],
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
"mask-image-radial-size": [{ "mask-radial": [{
closest: ["side", "corner"],
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
"mask-image-conic-pos": [{ "mask-conic": [tc] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": P() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": P() }],
"mask-image-conic-from-color": [{ "mask-conic-from": N() }],
"mask-image-conic-to-color": [{ "mask-conic-to": N() }],
"mask-mode": [{ mask: [
"alpha",
"luminance",
"match"
] }],
"mask-origin": [{ "mask-origin": [
"border",
"padding",
"content",
"fill",
"stroke",
"view"
] }],
"mask-position": [{ mask: re() }],
"mask-repeat": [{ mask: ie() }],
"mask-size": [{ mask: ae() }],
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
J,
q
] }],
filter: [{ filter: [
"",
"none",
J,
q
] }],
blur: [{ blur: de() }],
brightness: [{ brightness: [
tc,
J,
q
] }],
contrast: [{ contrast: [
tc,
J,
q
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
Tc,
yc
] }],
"drop-shadow-color": [{ "drop-shadow": N() }],
grayscale: [{ grayscale: [
"",
tc,
J,
q
] }],
"hue-rotate": [{ "hue-rotate": [
tc,
J,
q
] }],
invert: [{ invert: [
"",
tc,
J,
q
] }],
saturate: [{ saturate: [
tc,
J,
q
] }],
sepia: [{ sepia: [
"",
tc,
J,
q
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
J,
q
] }],
"backdrop-blur": [{ "backdrop-blur": de() }],
"backdrop-brightness": [{ "backdrop-brightness": [
tc,
J,
q
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
tc,
J,
q
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
tc,
J,
q
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
tc,
J,
q
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
tc,
J,
q
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
tc,
J,
q
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
tc,
J,
q
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
tc,
J,
q
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
"border-spacing-x": [{ "border-spacing-x": w() }],
"border-spacing-y": [{ "border-spacing-y": w() }],
"table-layout": [{ table: ["auto", "fixed"] }],
caption: [{ caption: ["top", "bottom"] }],
transition: [{ transition: [
"",
"all",
"colors",
"opacity",
"shadow",
"transform",
"none",
J,
q
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
tc,
"initial",
J,
q
] }],
ease: [{ ease: [
"linear",
"initial",
_,
J,
q
] }],
delay: [{ delay: [
tc,
J,
q
] }],
animate: [{ animate: [
"none",
v,
J,
q
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
J,
q
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: fe() }],
"rotate-x": [{ "rotate-x": fe() }],
"rotate-y": [{ "rotate-y": fe() }],
"rotate-z": [{ "rotate-z": fe() }],
scale: [{ scale: pe() }],
"scale-x": [{ "scale-x": pe() }],
"scale-y": [{ "scale-y": pe() }],
"scale-z": [{ "scale-z": pe() }],
"scale-3d": ["scale-3d"],
skew: [{ skew: me() }],
"skew-x": [{ "skew-x": me() }],
"skew-y": [{ "skew-y": me() }],
transform: [{ transform: [
J,
q,
"",
"none",
"gpu",
"cpu"
] }],
"transform-origin": [{ origin: x() }],
"transform-style": [{ transform: ["3d", "flat"] }],
translate: [{ translate: he() }],
"translate-x": [{ "translate-x": he() }],
"translate-y": [{ "translate-y": he() }],
"translate-z": [{ "translate-z": he() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
nc,
J,
q
] }],
accent: [{ accent: N() }],
appearance: [{ appearance: ["none", "auto"] }],
"caret-color": [{ caret: N() }],
"color-scheme": [{ scheme: [
"normal",
"dark",
"light",
"light-dark",
"only-dark",
"only-light"
] }],
cursor: [{ cursor: [
"auto",
"default",
"pointer",
"wait",
"text",
"move",
"help",
"not-allowed",
"none",
"context-menu",
"progress",
"cell",
"crosshair",
"vertical-text",
"alias",
"copy",
"no-drop",
"grab",
"grabbing",
"all-scroll",
"col-resize",
"row-resize",
"n-resize",
"e-resize",
"s-resize",
"w-resize",
"ne-resize",
"nw-resize",
"se-resize",
"sw-resize",
"ew-resize",
"ns-resize",
"nesw-resize",
"nwse-resize",
"zoom-in",
"zoom-out",
J,
q
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
resize: [{ resize: [
"none",
"",
"y",
"x"
] }],
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
"scrollbar-thumb-color": [{ "scrollbar-thumb": N() }],
"scrollbar-track-color": [{ "scrollbar-track": N() }],
"scrollbar-gutter": [{ "scrollbar-gutter": [
"auto",
"stable",
"both"
] }],
"scrollbar-w": [{ scrollbar: [
"auto",
"thin",
"none"
] }],
"scroll-m": [{ "scroll-m": w() }],
"scroll-mx": [{ "scroll-mx": w() }],
"scroll-my": [{ "scroll-my": w() }],
"scroll-ms": [{ "scroll-ms": w() }],
"scroll-me": [{ "scroll-me": w() }],
"scroll-mbs": [{ "scroll-mbs": w() }],
"scroll-mbe": [{ "scroll-mbe": w() }],
"scroll-mt": [{ "scroll-mt": w() }],
"scroll-mr": [{ "scroll-mr": w() }],
"scroll-mb": [{ "scroll-mb": w() }],
"scroll-ml": [{ "scroll-ml": w() }],
"scroll-p": [{ "scroll-p": w() }],
"scroll-px": [{ "scroll-px": w() }],
"scroll-py": [{ "scroll-py": w() }],
"scroll-ps": [{ "scroll-ps": w() }],
"scroll-pe": [{ "scroll-pe": w() }],
"scroll-pbs": [{ "scroll-pbs": w() }],
"scroll-pbe": [{ "scroll-pbe": w() }],
"scroll-pt": [{ "scroll-pt": w() }],
"scroll-pr": [{ "scroll-pr": w() }],
"scroll-pb": [{ "scroll-pb": w() }],
"scroll-pl": [{ "scroll-pl": w() }],
"snap-align": [{ snap: [
"start",
"end",
"center",
"align-none"
] }],
"snap-stop": [{ snap: ["normal", "always"] }],
"snap-type": [{ snap: [
"none",
"x",
"y",
"both"
] }],
"snap-strictness": [{ snap: ["mandatory", "proximity"] }],
touch: [{ touch: [
"auto",
"none",
"manipulation"
] }],
"touch-x": [{ "touch-pan": [
"x",
"left",
"right"
] }],
"touch-y": [{ "touch-pan": [
"y",
"up",
"down"
] }],
"touch-pz": ["touch-pinch-zoom"],
select: [{ select: [
"none",
"text",
"all",
"auto"
] }],
"will-change": [{ "will-change": [
"auto",
"scroll",
"contents",
"transform",
J,
q
] }],
fill: [{ fill: ["none", ...N()] }],
"stroke-w": [{ stroke: [
tc,
bc,
pc,
mc
] }],
stroke: [{ stroke: ["none", ...N()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
},
conflictingClassGroups: {
"container-named": ["container-type"],
overflow: ["overflow-x", "overflow-y"],
overscroll: ["overscroll-x", "overscroll-y"],
inset: [
"inset-x",
"inset-y",
"inset-bs",
"inset-be",
"start",
"end",
"top",
"right",
"bottom",
"left"
],
"inset-x": [
"start",
"end",
"right",
"left"
],
"inset-y": [
"inset-bs",
"inset-be",
"top",
"bottom"
],
flex: [
"basis",
"grow",
"shrink"
],
gap: ["gap-x", "gap-y"],
p: [
"px",
"py",
"ps",
"pe",
"pbs",
"pbe",
"pt",
"pr",
"pb",
"pl"
],
px: [
"ps",
"pe",
"pr",
"pl"
],
py: [
"pbs",
"pbe",
"pt",
"pb"
],
m: [
"mx",
"my",
"ms",
"me",
"mbs",
"mbe",
"mt",
"mr",
"mb",
"ml"
],
mx: [
"ms",
"me",
"mr",
"ml"
],
my: [
"mbs",
"mbe",
"mt",
"mb"
],
size: ["w", "h"],
"font-size": ["leading"],
"fvn-normal": [
"fvn-ordinal",
"fvn-slashed-zero",
"fvn-figure",
"fvn-spacing",
"fvn-fraction"
],
"fvn-ordinal": ["fvn-normal"],
"fvn-slashed-zero": ["fvn-normal"],
"fvn-figure": ["fvn-normal"],
"fvn-spacing": ["fvn-normal"],
"fvn-fraction": ["fvn-normal"],
"line-clamp": ["display", "overflow"],
rounded: [
"rounded-s",
"rounded-e",
"rounded-t",
"rounded-r",
"rounded-b",
"rounded-l",
"rounded-ss",
"rounded-se",
"rounded-ee",
"rounded-es",
"rounded-tl",
"rounded-tr",
"rounded-br",
"rounded-bl"
],
"rounded-s": ["rounded-ss", "rounded-es"],
"rounded-e": ["rounded-se", "rounded-ee"],
"rounded-t": ["rounded-tl", "rounded-tr"],
"rounded-r": ["rounded-tr", "rounded-br"],
"rounded-b": ["rounded-br", "rounded-bl"],
"rounded-l": ["rounded-tl", "rounded-bl"],
"border-spacing": ["border-spacing-x", "border-spacing-y"],
"border-w": [
"border-w-x",
"border-w-y",
"border-w-s",
"border-w-e",
"border-w-bs",
"border-w-be",
"border-w-t",
"border-w-r",
"border-w-b",
"border-w-l"
],
"border-w-x": [
"border-w-s",
"border-w-e",
"border-w-r",
"border-w-l"
],
"border-w-y": [
"border-w-bs",
"border-w-be",
"border-w-t",
"border-w-b"
],
"border-color": [
"border-color-x",
"border-color-y",
"border-color-s",
"border-color-e",
"border-color-bs",
"border-color-be",
"border-color-t",
"border-color-r",
"border-color-b",
"border-color-l"
],
"border-color-x": [
"border-color-s",
"border-color-e",
"border-color-r",
"border-color-l"
],
"border-color-y": [
"border-color-bs",
"border-color-be",
"border-color-t",
"border-color-b"
],
translate: [
"translate-x",
"translate-y",
"translate-none"
],
"translate-none": [
"translate",
"translate-x",
"translate-y",
"translate-z"
],
"scroll-m": [
"scroll-mx",
"scroll-my",
"scroll-ms",
"scroll-me",
"scroll-mbs",
"scroll-mbe",
"scroll-mt",
"scroll-mr",
"scroll-mb",
"scroll-ml"
],
"scroll-mx": [
"scroll-ms",
"scroll-me",
"scroll-mr",
"scroll-ml"
],
"scroll-my": [
"scroll-mbs",
"scroll-mbe",
"scroll-mt",
"scroll-mb"
],
"scroll-p": [
"scroll-px",
"scroll-py",
"scroll-ps",
"scroll-pe",
"scroll-pbs",
"scroll-pbe",
"scroll-pt",
"scroll-pr",
"scroll-pb",
"scroll-pl"
],
"scroll-px": [
"scroll-ps",
"scroll-pe",
"scroll-pr",
"scroll-pl"
],
"scroll-py": [
"scroll-pbs",
"scroll-pbe",
"scroll-pt",
"scroll-pb"
],
touch: [
"touch-x",
"touch-y",
"touch-pz"
],
"touch-x": ["touch"],
"touch-y": ["touch"],
"touch-pz": ["touch"]
},
conflictingClassGroupModifiers: { "font-size": ["leading"] },
postfixLookupClassGroups: ["container-type"],
orderSensitiveModifiers: [
"*",
"**",
"after",
"backdrop",
"before",
"details-content",
"file",
"first-letter",
"first-line",
"marker",
"placeholder",
"selection"
]
};
});
// src/lib/utils.ts
function Y(...e) {
return Lc(ds(e));
}
var Rc = [
"B",
"KB",
"MB",
"GB"
];
function zc(e) {
if (!Number.isFinite(e) || e <= 0) return "0 B";
let t = Math.min(Math.floor(Math.log(e) / Math.log(1024)), Rc.length - 1), n = e / 1024 ** t;
return `${t === 0 ? n : Number(n.toFixed(1))} ${Rc[t]}`;
}
function Bc(e) {
return e.replace(/_/g, " ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").trim().split(/\s+/).map((e) => e.toLowerCase());
}
async function Vc(e, t, n) {
for (; !n?.aborted;) await e(), await new Promise((e) => {
let r = setTimeout(e, t);
n?.addEventListener("abort", () => {
clearTimeout(r), e();
}, { once: !0 });
});
}
function Hc(e) {
return typeof Object(e)[Symbol.asyncIterator] == "function";
}
async function* Uc(e, t) {
let n = e[Symbol.asyncIterator](), r = new Promise((e) => {
t.aborted ? e({ done: !0 }) : t.addEventListener("abort", () => e({ done: !0 }), { once: !0 });
});
try {
for (; !t.aborted;) {
let e = await Promise.race([n.next(), r]);
if (e.done) return;
yield e.value;
}
} finally {
await n.return?.(void 0);
}
}
var Wc = /https?:\/\/[^\s<>"'`]+/g;
function Gc(e) {
let t = [], n = 0;
for (let r of e.matchAll(Wc)) {
let i = r.index ?? 0, a = r[0], o = a.match(/[.,;:!?]+$/)?.[0] ?? "";
o && (a = a.slice(0, -o.length)), a.endsWith(")") && !a.includes("(") && (a = a.slice(0, -1), o = ")" + o), i > n && t.push({
type: "text",
value: e.slice(n, i)
}), t.push({
type: "url",
value: a
}), o && t.push({
type: "text",
value: o
}), n = i + r[0].length;
}
return n < e.length && t.push({
type: "text",
value: e.slice(n)
}), t;
}
// ../../../node_modules/.pnpm/isomorphic-ws@5.0.0_ws@8.22.0/node_modules/isomorphic-ws/browser.js
var Kc = null;
typeof WebSocket < "u" ? Kc = WebSocket : typeof MozWebSocket < "u" ? Kc = MozWebSocket : typeof global < "u" ? Kc = global.WebSocket || global.MozWebSocket : typeof window < "u" ? Kc = window.WebSocket || window.MozWebSocket : typeof self < "u" && (Kc = self.WebSocket || self.MozWebSocket);
var qc = Kc, Jc = Symbol.for("@whatwg-node/promise-helpers/FakePromise");
function Yc(e) {
return typeof e?.then == "function";
}
function Xc(e) {
let t = e;
return t && t.then && t.catch && t.finally;
}
function Zc(e, t, n, r) {
if (r) {
let i = tl().then(e).then(t, n);
return i = i.finally(r), ll(i);
}
let i, a;
try {
i = e(void 0), a = Yc(i);
} catch (e) {
if (!n) throw e;
let t = n(e);
return Yc(t) ? ll(tl(t)) : t;
}
if (!a) {
let e = t(i);
return Yc(e) ? ll(tl(e)) : e;
}
return ll(tl(i).then(t, n));
}
var Qc = class {
__fakePromiseValue;
[Jc];
constructor(e) {
this.__fakePromiseValue = e, this[Jc] = "resolved";
}
then(e, t) {
if (e) try {
return tl(e(this.__fakePromiseValue));
} catch (e) {
return rl(e);
}
return this;
}
catch(e) {
return this;
}
finally(e) {
if (e) try {
let t = this.__fakePromiseValue;
return tl(e()).then(() => t, () => t);
} catch (e) {
return rl(e);
}
return this;
}
get [Symbol.toStringTag]() {
return "Promise";
}
}, $c = class {
__fakeRejectError;
[Jc];
constructor(e) {
this.__fakeRejectError = e, this[Jc] = "rejected";
}
then(e, t) {
if (t) try {
return tl(t(this.__fakeRejectError));
} catch (e) {
return rl(e);
}
return this;
}
catch(e) {
if (e) try {
return tl(e(this.__fakeRejectError));
} catch (e) {
return rl(e);
}
return this;
}
finally(e) {
if (e) try {
e();
} catch (e) {
return rl(e);
}
return this;
}
get [Symbol.toStringTag]() {
return "Promise";
}
}, el = class {
_thenable;
constructor(e) {
this._thenable = e;
}
then(e, t) {
return tl(this._thenable.then(e, t));
}
catch(e) {
return tl(this._thenable.then((e) => e, e));
}
finally(e) {
return tl(e ? cl(this._thenable, e) : this._thenable);
}
get [Symbol.toStringTag]() {
return "Promise";
}
};
function tl(e) {
return e && Xc(e) ? e : Yc(e) ? new el(e) : new Qc(e);
}
function nl() {
if (Promise.withResolvers) return Promise.withResolvers();
let e, t;
return {
promise: new Promise(function(n, r) {
e = n, t = r;
}),
get resolve() {
return e;
},
get reject() {
return t;
}
};
}
function rl(e) {
return new $c(e);
}
function il(e, t, n, r) {
Symbol.asyncIterator in e && (e = e[Symbol.asyncIterator]());
let i, a, o;
if (r) {
let e;
o = (t) => (e ||= Zc(r, () => t, () => t), e);
}
typeof e.return == "function" && (i = e.return, a = (t) => {
let n = () => {
throw t;
};
return i.call(e).then(n, n);
});
function s(e) {
return e.done ? o ? o(e) : e : Zc(() => e.value, (e) => Zc(() => t(e), al, a));
}
let c;
if (n) {
let e, t = n;
c = (n) => (e ||= Zc(() => n, (e) => Zc(() => t(e), al, a)), e);
}
return {
next() {
return e.next().then(s, c);
},
return() {
let t = i ? i.call(e).then(s, c) : tl({
value: void 0,
done: !0
});
return o ? t.then(o) : t;
},
throw(t) {
return typeof e.throw == "function" ? e.throw(t).then(s, c) : a ? a(t) : rl(t);
},
[Symbol.asyncIterator]() {
return this;
}
};
}
function al(e) {
return {
value: e,
done: !1
};
}
function ol(e) {
return e?.[Jc] === "resolved";
}
function sl(e) {
return e?.[Jc] === "rejected";
}
function cl(e, t) {
return "finally" in e ? e.finally(t) : e.then((e) => {
let n = t();
return Yc(n) ? n.then(() => e) : e;
}, (e) => {
let n = t();
if (Yc(n)) return n.then(() => {
throw e;
});
throw e;
});
}
function ll(e) {
if (ol(e)) return e.__fakePromiseValue;
if (sl(e)) throw e.__fakeRejectError;
return e;
}
// ../../../node_modules/.pnpm/@envelop+core@6.0.1/node_modules/@envelop/core/esm/document-string-map.js
var ul = /* @__PURE__ */ new WeakMap();
function dl(e, t) {
let n = ul.get(e);
return !n && t && (n = t(e), ul.set(e, n)), n;
}
// ../../../node_modules/.pnpm/@graphql-tools+executor-common@2.0.0_graphql@17.1.0/node_modules/@graphql-tools/executor-common/dist/index.js
function fl(e) {
return oa(O(e));
}
var pl = function(e) {
return dl(e, fl);
};
function ml({ executionRequest: e, excludeQuery: t, printFn: n = pl }) {
return {
query: t ? void 0 : n(e.document),
variables: (e.variables && Object.keys(e.variables).length) > 0 ? e.variables : void 0,
operationName: e.operationName ? e.operationName : void 0,
extensions: e.extensions && Object.keys(e.extensions).length > 0 ? e.extensions : void 0
};
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/helpers.js
var hl = /^(https?|wss?|file):\/\//;
function gl(e) {
return typeof e != "string" || !hl.test(e) ? !1 : URL.canParse(e);
}
var _l = (e) => Array.isArray(e) ? e : e ? [e] : [];
function vl(e) {
return e != null;
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/memoize.js
function yl(e) {
let t = /* @__PURE__ */ new WeakMap();
return function(n) {
let r = t.get(n);
if (r === void 0) {
let r = e(n);
return t.set(n, r), r;
}
return r;
};
}
function bl(e) {
let t = /* @__PURE__ */ new WeakMap();
return function(n, r) {
let i = t.get(n);
if (!i) {
i = /* @__PURE__ */ new WeakMap(), t.set(n, i);
let a = e(n, r);
return i.set(r, a), a;
}
let a = i.get(r);
if (a === void 0) {
let t = e(n, r);
return i.set(r, t), t;
}
return a;
};
}
function xl(e) {
let t = /* @__PURE__ */ new WeakMap();
return function(n, r, i) {
let a = t.get(n);
if (!a) {
a = /* @__PURE__ */ new WeakMap(), t.set(n, a);
let o = /* @__PURE__ */ new WeakMap();
a.set(r, o);
let s = e(n, r, i);
return o.set(i, s), s;
}
let o = a.get(r);
if (!o) {
o = /* @__PURE__ */ new WeakMap(), a.set(r, o);
let t = e(n, r, i);
return o.set(i, t), t;
}
let s = o.get(i);
if (s === void 0) {
let t = e(n, r, i);
return o.set(i, t), t;
}
return s;
};
}
function Sl(e) {
let t = /* @__PURE__ */ new WeakMap();
return function(n, r, i, a) {
let o = t.get(n);
if (!o) {
o = /* @__PURE__ */ new WeakMap(), t.set(n, o);
let s = /* @__PURE__ */ new WeakMap();
o.set(r, s);
let c = /* @__PURE__ */ new WeakMap();
s.set(i, c);
let l = e(n, r, i, a);
return c.set(a, l), l;
}
let s = o.get(r);
if (!s) {
s = /* @__PURE__ */ new WeakMap(), o.set(r, s);
let t = /* @__PURE__ */ new WeakMap();
s.set(i, t);
let c = e(n, r, i, a);
return t.set(a, c), c;
}
let c = s.get(i);
if (!c) {
c = /* @__PURE__ */ new WeakMap(), s.set(i, c);
let t = e(n, r, i, a);
return c.set(a, t), t;
}
let l = c.get(a);
if (l === void 0) {
let t = e(n, r, i, a);
return c.set(a, t), t;
}
return l;
};
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/getDirectiveExtensions.js
function Cl(e, t, n = ["directives"]) {
let r = {};
if (e.extensions) {
let t = e.extensions;
for (let e of n) t = t?.[e];
if (t != null) for (let e in t) {
let n = t[e], i = e;
if (Array.isArray(n)) for (let e of n) {
let t = r[i];
t || (t = [], r[i] = t), t.push(e);
}
else {
let e = r[i];
e || (e = [], r[i] = e), e.push(n);
}
}
}
let i = yl((e) => JSON.stringify(e)), a = [];
e.astNode && a.push(e.astNode), e.extensionASTNodes && a.push(...e.extensionASTNodes);
for (let e of a) if (e.directives?.length) for (let n of e.directives) {
let e = n.name.value, o = r[e];
o || (o = [], r[e] = o);
let s = t?.getDirective(e), c = {};
if (s && (c = Ne(s, n)), n.arguments) for (let e of n.arguments) {
let t = e.name.value;
if (c[t] == null) {
let n = s?.args.find((e) => e.name === t);
n && (c[t] = ia(e.value, n.type));
}
c[t] ?? (c[t] = S(e.value));
}
if (a.length > 0 && o.length > 0) {
let e = i(c);
if (o.some((t) => i(t) === e)) continue;
}
o.push(c);
}
return r;
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/get-directives.js
function wl(e, t = ["directives"]) {
let n = Cl(e, void 0, t);
return Object.entries(n).map(([e, t]) => t?.map((t) => ({
name: e,
args: t
}))).flat(Infinity).filter(Boolean);
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/inspect.js
var Tl = 3;
function El() {
let e = globalThis.process?.getBuiltinModule;
if (typeof e == "function") try {
let t = e("util");
return typeof t?.inspect == "function" ? (e) => t.inspect(e, {
depth: Tl,
colors: !1,
compact: !0,
breakLength: Infinity
}).replaceAll("[Object: null prototype] ", "") : void 0;
} catch {
return;
}
}
var Dl = El();
function Ol(e, t = Tl) {
if (t > 0 && e != null && typeof e.toJSON == "function") try {
let n = e.toJSON();
if (n !== e) return typeof n == "string" ? n : Ol(n, t - 1);
} catch {}
if (Dl) return Dl(e);
if (typeof e == "string") return JSON.stringify(e);
if (typeof e == "function") return e.name ? `[function ${e.name}]` : "[function]";
if (e === void 0) return "undefined";
try {
return JSON.stringify(e) ?? String(e);
} catch {
return String(e);
}
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/astFromType.js
function kl(e) {
if (i(e)) {
let t = kl(e.ofType);
if (t.kind === "NonNullType") throw Error(`Invalid type node ${Ol(e)}. Inner type of non-null type cannot be a non-null type.`);
return {
kind: Tt,
type: t
};
}
return ne(e) ? {
kind: bt,
type: kl(e.ofType)
} : {
kind: nt,
name: {
kind: je,
value: e.name
}
};
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/astFromValueUntyped.js
function Al(e) {
if (e === null) return { kind: Pe };
if (e === void 0) return null;
if (Array.isArray(e)) {
let t = [];
for (let n of e) {
let e = Al(n);
e != null && t.push(e);
}
return {
kind: dt,
values: t
};
}
if (typeof e == "object") {
if (e?.toJSON) return Al(e.toJSON());
let t = [];
for (let n in e) {
let r = e[n], i = Al(r);
i && t.push({
kind: mt,
name: {
kind: je,
value: n
},
value: i
});
}
return {
kind: ze,
fields: t
};
}
if (typeof e == "boolean") return {
kind: fe,
value: e
};
if (typeof e == "bigint") return {
kind: _t,
value: String(e)
};
if (typeof e == "number" && isFinite(e)) {
let t = String(e);
return jl.test(t) ? {
kind: _t,
value: t
} : {
kind: _e,
value: t
};
}
if (typeof e == "string") return {
kind: Ot,
value: e
};
throw TypeError(`Cannot convert value to AST: ${e}.`);
}
var jl = /^-?(?:0|[1-9][0-9]*)$/;
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/jsutils.js
function Ml(e) {
return typeof e == "object" && !!e && typeof e[Symbol.iterator] == "function";
}
function Nl(e) {
return typeof e == "object" && !!e;
}
function Pl(e, t, n) {
let r = n;
for (let n of e) r = Zc(() => r, (e) => t(e, n));
return r;
}
function Fl(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
function Il(e) {
return e === "__proto__" || e === "constructor" || e === "prototype";
}
function Ll(e) {
return typeof e != "string" && typeof e != "number" ? !1 : !Il(e);
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/astFromValue.js
function Rl(e, t) {
if (i(t)) {
let n = Rl(e, t.ofType);
return n?.kind === "NullValue" ? null : n;
}
if (e === null) return { kind: Pe };
if (e === void 0) return null;
if (ne(t)) {
let n = t.ofType;
if (Ml(e)) {
let t = [];
for (let r of e) {
let e = Rl(r, n);
e != null && t.push(e);
}
return {
kind: dt,
values: t
};
}
return Rl(e, n);
}
if (Mt(t)) {
if (!Nl(e)) return null;
let n = [];
for (let r of Object.values(t.getFields())) {
let t = Rl(e[r.name], r.type);
t && n.push({
kind: mt,
name: {
kind: je,
value: r.name
},
value: t
});
}
return {
kind: ze,
fields: n
};
}
if (f(t)) {
if (l(t)) {
let n = t.getValues();
for (let t of n) if (t.value === e || t.name === e) {
e = t.name;
break;
}
return {
kind: E,
value: e
};
}
if (e = t.serialize(e), e == null) return null;
if (t.name === "ID" && typeof e == "string" && zl.test(e)) return {
kind: _t,
value: e
};
}
return Al(e);
}
var zl = /^-?(?:0|[1-9][0-9]*)$/, Bl = (e) => "default" in e && e.default ? "value" in e.default ? Al(e.default.value) ?? void 0 : Rl(S(e.default.literal), e.type) ?? void 0 : e.defaultValue === void 0 ? void 0 : Rl(e.defaultValue, e.type) ?? void 0;
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/descriptionFromObject.js
function Vl(e) {
return e.trim().length > 0;
}
function Hl(e) {
if (typeof e.description == "string") return Vl(e.description) ? {
kind: Ot,
value: e.description,
block: !0
} : void 0;
if (e.astNode?.description && Vl(e.astNode.description.value)) return {
...e.astNode.description,
block: !0
};
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/rootTypes.js
function Ul(e, t, n) {
let r = Kl(e).get(t);
if (r == null) throw new P(`Schema is not configured to execute ${t} operation.`, { nodes: n });
return r;
}
var Wl = yl(function(e) {
let t = Gl(e);
return new Set([...t].map((e) => e.name));
}), Gl = yl(function(e) {
let t = Kl(e);
return new Set(t.values());
}), Kl = yl(function(e) {
let t = /* @__PURE__ */ new Map(), n = e.getQueryType();
n && t.set("query", n);
let r = e.getMutationType();
r && t.set("mutation", r);
let i = e.getSubscriptionType();
return i && t.set("subscription", i), t;
});
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js
function ql(e, t, n) {
let r = [], i = Ql(e), a = $l(e, n), o;
if (a == null && i.length > 0) o = i;
else {
let r = wl(e, n);
if (r != null) {
let e = i.slice();
o = Zl(t, r).map((t) => eu(e, t) ?? t);
}
}
let s = null, c = null, l = null;
return o != null && (r = o.filter((e) => ye.every((t) => t.name !== e.name.value)), s = o.find((e) => e.name.value === "deprecated"), c = o.find((e) => e.name.value === "specifiedBy"), l = o.find((e) => e.name.value === "oneOf")), e.deprecationReason != null && s == null && (s = Yl(e.deprecationReason)), (e.specifiedByUrl != null || e.specifiedByURL != null && c == null) && (c = Xl("specifiedBy", { url: e.specifiedByUrl || e.specifiedByURL })), e.isOneOf && l == null && (l = Xl("oneOf")), s != null && r.push(s), c != null && r.push(c), l != null && r.push(l), r;
}
function Jl(e, t, n) {
return {
kind: ct,
description: Hl(e),
name: {
kind: je,
value: e.name
},
type: kl(e.type),
defaultValue: Bl(e),
directives: ql(e, t, n)
};
}
function Yl(e) {
return Xl("deprecated", { reason: e }, me);
}
function Xl(e, t, n) {
let r = [];
for (let e in t) {
let i = t[e], a;
if (n != null) {
let t = n.args.find((t) => t.name === e);
t && (a = Rl(i, t.type));
}
a ??= Al(i), a != null && r.push({
kind: b,
name: {
kind: je,
value: e
},
value: a
});
}
return {
kind: he,
name: {
kind: je,
value: e
},
arguments: r
};
}
function Zl(e, t) {
let n = [];
for (let { name: r, args: i } of t) {
let t = e?.getDirective(r);
n.push(Xl(r, i, t));
}
return n;
}
function Ql(e) {
let t = [];
if (e.astNode?.directives?.length && t.push(...e.astNode.directives), e.extensionASTNodes) for (let n of e.extensionASTNodes) n.directives?.length && t.push(...n.directives);
return t;
}
function $l(e, t = ["directives"]) {
if (e.extensions == null) return null;
let n = e.extensions;
for (let e of t) n = n?.[e];
return n ?? null;
}
function eu(e, t) {
let n = e.findIndex((e) => tu(e, t));
if (n !== -1) return e.splice(n, 1)[0];
}
function tu(e, t) {
if (e.name.value !== t.name.value) return !1;
let n = e.arguments ?? [], r = t.arguments ?? [];
if (n.length !== r.length) return !1;
for (let e of n) {
let t = ru(r, e.name.value);
if (t == null || !nu(e.value, t.value)) return !1;
}
return !0;
}
function nu(e, t) {
if (e.kind === "ListValue" && t.kind === "ListValue") return e.values.length === t.values.length && e.values.every((e, n) => nu(e, t.values[n]));
if (e.kind === "ObjectValue" && t.kind === "ObjectValue") {
if (e.fields.length !== t.fields.length) return !1;
for (let n of e.fields) {
let e = ru(t.fields, n.name.value);
if (e == null || !nu(n.value, e.value)) return !1;
}
return !0;
}
return e.kind === "NullValue" || t.kind === "NullValue" ? e.kind === "NullValue" && t.kind === "NullValue" : (e.kind === "EnumValue" || e.kind === "StringValue") && (t.kind === "EnumValue" || t.kind === "StringValue") || e.kind === t.kind && "value" in e && "value" in t ? e.value === t.value : !1;
}
function ru(e, t) {
for (let n = 0; n < e.length; n++) if (e[n].name.value === t) return e[n];
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/comments.js
var iu = 80, au = {};
function ou(e) {
return "\n# " + e.replace(/\n/g, "\n# ");
}
function X(e, t) {
return e ? e.filter((e) => e).join(t || "") : "";
}
function su(e) {
return e?.some((e) => e.includes("\n")) ?? !1;
}
function cu(e) {
return (t, n, r, i, a) => {
let o = [], s = i.reduce((e, t) => ([
"fields",
"arguments",
"values"
].includes(t) && e.name && o.push(e.name.value), e[t]), a[0]), c = [...o, s?.name?.value].filter(Boolean).join("."), l = [];
return t.kind.includes("Definition") && au[c] && l.push(...au[c]), X([
...l.map(ou),
t.description,
e(t, n, r, i, a)
], "\n");
};
}
function lu(e) {
return e && ` ${e.replace(/\n/g, "\n ")}`;
}
function uu(e) {
return e && e.length !== 0 ? `{\n${lu(X(e, "\n"))}\n}` : "";
}
function du(e, t, n) {
return t ? e + t + (n || "") : "";
}
function fu(e, t = !1) {
let n = e.replace(/\\/g, "\\\\").replace(/"""/g, "\\\"\"\"");
return (e[0] === " " || e[0] === " ") && e.indexOf("\n") === -1 ? `"""${n.replace(/"$/, "\"\n")}"""` : `"""\n${t ? n : lu(n)}\n"""`;
}
var pu = {
Name: { leave: (e) => e.value },
Variable: { leave: (e) => "$" + e.name },
Document: { leave: (e) => X(e.definitions, "\n\n") },
OperationDefinition: { leave: (e) => {
let t = du("(", X(e.variableDefinitions, ", "), ")");
return X([
e.operation,
X([e.name, t]),
X(e.directives, " ")
], " ") + " " + e.selectionSet;
} },
VariableDefinition: { leave: ({ variable: e, type: t, defaultValue: n, directives: r }) => e + ": " + t + du(" = ", n) + du(" ", X(r, " ")) },
SelectionSet: { leave: ({ selections: e }) => uu(e) },
Field: { leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
let a = du("", e, ": ") + t, o = a + du("(", X(n, ", "), ")");
return o.length > iu && (o = a + du("(\n", lu(X(n, "\n")), "\n)")), X([
o,
X(r, " "),
i
], " ");
} },
Argument: { leave: ({ name: e, value: t }) => e + ": " + t },
FragmentSpread: { leave: ({ name: e, directives: t }) => "..." + e + du(" ", X(t, " ")) },
InlineFragment: { leave: ({ typeCondition: e, directives: t, selectionSet: n }) => X([
"...",
du("on ", e),
X(t, " "),
n
], " ") },
FragmentDefinition: { leave: ({ name: e, typeCondition: t, variableDefinitions: n, directives: r, selectionSet: i }) => `fragment ${e}${du("(", X(n, ", "), ")")} on ${t} ${du("", X(r, " "), " ")}` + i },
IntValue: { leave: ({ value: e }) => e },
FloatValue: { leave: ({ value: e }) => e },
StringValue: { leave: ({ value: e, block: t }) => t ? fu(e) : JSON.stringify(e) },
BooleanValue: { leave: ({ value: e }) => e ? "true" : "false" },
NullValue: { leave: () => "null" },
EnumValue: { leave: ({ value: e }) => e },
ListValue: { leave: ({ values: e }) => "[" + X(e, ", ") + "]" },
ObjectValue: { leave: ({ fields: e }) => "{" + X(e, ", ") + "}" },
ObjectField: { leave: ({ name: e, value: t }) => e + ": " + t },
Directive: { leave: ({ name: e, arguments: t }) => "@" + e + du("(", X(t, ", "), ")") },
NamedType: { leave: ({ name: e }) => e },
ListType: { leave: ({ type: e }) => "[" + e + "]" },
NonNullType: { leave: ({ type: e }) => e + "!" },
SchemaDefinition: { leave: ({ directives: e, operationTypes: t }) => X([
"schema",
X(e, " "),
uu(t)
], " ") },
OperationTypeDefinition: { leave: ({ operation: e, type: t }) => e + ": " + t },
ScalarTypeDefinition: { leave: ({ name: e, directives: t }) => X([
"scalar",
e,
X(t, " ")
], " ") },
ObjectTypeDefinition: { leave: ({ name: e, interfaces: t, directives: n, fields: r }) => X([
"type",
e,
du("implements ", X(t, " & ")),
X(n, " "),
uu(r)
], " ") },
FieldDefinition: { leave: ({ name: e, arguments: t, type: n, directives: r }) => e + (su(t) ? du("(\n", lu(X(t, "\n")), "\n)") : du("(", X(t, ", "), ")")) + ": " + n + du(" ", X(r, " ")) },
InputValueDefinition: { leave: ({ name: e, type: t, defaultValue: n, directives: r }) => X([
e + ": " + t,
du("= ", n),
X(r, " ")
], " ") },
InterfaceTypeDefinition: { leave: ({ name: e, interfaces: t, directives: n, fields: r }) => X([
"interface",
e,
du("implements ", X(t, " & ")),
X(n, " "),
uu(r)
], " ") },
UnionTypeDefinition: { leave: ({ name: e, directives: t, types: n }) => X([
"union",
e,
X(t, " "),
du("= ", X(n, " | "))
], " ") },
EnumTypeDefinition: { leave: ({ name: e, directives: t, values: n }) => X([
"enum",
e,
X(t, " "),
uu(n)
], " ") },
EnumValueDefinition: { leave: ({ name: e, directives: t }) => X([e, X(t, " ")], " ") },
InputObjectTypeDefinition: { leave: ({ name: e, directives: t, fields: n }) => X([
"input",
e,
X(t, " "),
uu(n)
], " ") },
DirectiveDefinition: { leave: ({ name: e, arguments: t, repeatable: n, locations: r }) => "directive @" + e + (su(t) ? du("(\n", lu(X(t, "\n")), "\n)") : du("(", X(t, ", "), ")")) + (n ? " repeatable" : "") + " on " + X(r, " | ") },
SchemaExtension: { leave: ({ directives: e, operationTypes: t }) => X([
"extend schema",
X(e, " "),
uu(t)
], " ") },
ScalarTypeExtension: { leave: ({ name: e, directives: t }) => X([
"extend scalar",
e,
X(t, " ")
], " ") },
ObjectTypeExtension: { leave: ({ name: e, interfaces: t, directives: n, fields: r }) => X([
"extend type",
e,
du("implements ", X(t, " & ")),
X(n, " "),
uu(r)
], " ") },
InterfaceTypeExtension: { leave: ({ name: e, interfaces: t, directives: n, fields: r }) => X([
"extend interface",
e,
du("implements ", X(t, " & ")),
X(n, " "),
uu(r)
], " ") },
UnionTypeExtension: { leave: ({ name: e, directives: t, types: n }) => X([
"extend union",
e,
X(t, " "),
du("= ", X(n, " | "))
], " ") },
EnumTypeExtension: { leave: ({ name: e, directives: t, values: n }) => X([
"extend enum",
e,
X(t, " "),
uu(n)
], " ") },
InputObjectTypeExtension: { leave: ({ name: e, directives: t, fields: n }) => X([
"extend input",
e,
X(t, " "),
uu(n)
], " ") }
};
Object.keys(pu).reduce((e, t) => ({
...e,
[t]: { leave: cu(pu[t].leave) }
}), {});
function mu(e) {
let t = e.loc;
if (!t) return;
let n = [], r = t.startToken.prev;
for (; r != null && r.kind === p.COMMENT && r.next != null && r.prev != null && r.line + 1 === r.next.line && r.line !== r.prev.line;) {
let e = String(r.value);
n.push(e), r = r.prev;
}
return n.length > 0 ? n.reverse().join("\n") : void 0;
}
function hu(e) {
let t = e.split(/\r\n|[\n\r]/g), n = gu(t);
if (n !== 0) for (let e = 1; e < t.length; e++) t[e] = t[e].slice(n);
for (; t.length > 0 && vu(t[0]);) t.shift();
for (; t.length > 0 && vu(t[t.length - 1]);) t.pop();
return t.join("\n");
}
function gu(e) {
let t = null;
for (let n = 1; n < e.length; n++) {
let r = e[n], i = _u(r);
if (i !== r.length && (t === null || i < t) && (t = i, t === 0)) break;
}
return t === null ? 0 : t;
}
function _u(e) {
let t = 0;
for (; t < e.length && (e[t] === " " || e[t] === " ");) t++;
return t;
}
function vu(e) {
return _u(e) === e.length;
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/parse-graphql-sdl.js
function yu(e, t, n = {}) {
let r;
try {
n.commentDescriptions && t.includes("#") ? (r = bu(t, n), n.noLocation && (r = De(O(r), n))) : r = De(new se(t, e), n);
} catch (e) {
if (e.message.includes("EOF") && t.replace(/(\#[^*]*)/g, "").trim() === "") r = {
kind: y,
definitions: []
};
else throw e;
}
return {
location: e,
document: r
};
}
function bu(e, t = {}) {
let n = De(e, {
...t,
noLocation: !1
});
return It(n, { leave: (e) => {
if (xu(e)) {
let t = mu(e);
if (t !== void 0) {
let n = hu("\n" + t), r = n.includes("\n");
return e.description ? {
...e,
description: {
...e.description,
value: e.description.value + "\n" + n,
block: !0
}
} : {
...e,
description: {
kind: Ot,
value: n,
block: r
}
};
}
}
} });
}
function xu(e) {
return We(e) || e.kind === "FieldDefinition" || e.kind === "InputValueDefinition" || e.kind === "EnumValueDefinition";
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/Interfaces.js
var Su;
(function(e) {
e.TYPE = "MapperKind.TYPE", e.SCALAR_TYPE = "MapperKind.SCALAR_TYPE", e.ENUM_TYPE = "MapperKind.ENUM_TYPE", e.COMPOSITE_TYPE = "MapperKind.COMPOSITE_TYPE", e.OBJECT_TYPE = "MapperKind.OBJECT_TYPE", e.INPUT_OBJECT_TYPE = "MapperKind.INPUT_OBJECT_TYPE", e.ABSTRACT_TYPE = "MapperKind.ABSTRACT_TYPE", e.UNION_TYPE = "MapperKind.UNION_TYPE", e.INTERFACE_TYPE = "MapperKind.INTERFACE_TYPE", e.ROOT_OBJECT = "MapperKind.ROOT_OBJECT", e.QUERY = "MapperKind.QUERY", e.MUTATION = "MapperKind.MUTATION", e.SUBSCRIPTION = "MapperKind.SUBSCRIPTION", e.DIRECTIVE = "MapperKind.DIRECTIVE", e.FIELD = "MapperKind.FIELD", e.COMPOSITE_FIELD = "MapperKind.COMPOSITE_FIELD", e.OBJECT_FIELD = "MapperKind.OBJECT_FIELD", e.ROOT_FIELD = "MapperKind.ROOT_FIELD", e.QUERY_ROOT_FIELD = "MapperKind.QUERY_ROOT_FIELD", e.MUTATION_ROOT_FIELD = "MapperKind.MUTATION_ROOT_FIELD", e.SUBSCRIPTION_ROOT_FIELD = "MapperKind.SUBSCRIPTION_ROOT_FIELD", e.INTERFACE_FIELD = "MapperKind.INTERFACE_FIELD", e.INPUT_OBJECT_FIELD = "MapperKind.INPUT_OBJECT_FIELD", e.ARGUMENT = "MapperKind.ARGUMENT", e.ENUM_VALUE = "MapperKind.ENUM_VALUE";
})(Su ||= {});
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/getObjectTypeFromTypeMap.js
function Cu(e, t) {
if (t) {
let n = e[t.name];
if (A(n)) return n;
}
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/stub.js
function wu(e) {
return lt.find((t) => t.name === e);
}
function Tu(e) {
if ("getFields" in e) {
let t = e.getFields();
for (let e in t) return t[e].name === "_fake";
}
return !1;
}
function Eu(e) {
return wu(e.name) ?? e;
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/rewire.js
function Du(e, t) {
let n = Object.create(null);
for (let t in e) n[t] = e[t];
let r = Object.create(null);
for (let e in n) {
let t = n[e];
if (t == null || e.startsWith("__")) continue;
let i = t.name;
i.startsWith("__") || (r[i] == null ? r[i] = t : console.warn(`Duplicate schema type name ${i} found; keeping the existing one found in the schema`));
}
let a = Ou(r, n);
for (let e of a) r[e] = c(r[e]);
return {
typeMap: r,
directives: t.map((e) => Au(e, n, a) ? o(e) : e)
};
function o(e) {
if (ge(e)) return e;
let t = e.toConfig();
return t.args = s(t.args), new v(t);
}
function s(e) {
let t = {};
for (let n in e) {
let r = e[n], i = p(r.type);
i != null && (r.type = i, t[n] = r);
}
return t;
}
function c(e) {
if (A(e)) {
let t = e.toConfig(), n = {
...t,
fields: () => u(t.fields),
interfaces: () => f(t.interfaces)
};
return new ht(n);
}
if (h(e)) {
let t = e.toConfig(), n = {
...t,
fields: () => u(t.fields)
};
return "interfaces" in n && (n.interfaces = () => f(t.interfaces)), new Et(n);
}
if (_(e)) {
let t = e.toConfig(), n = {
...t,
types: () => f(t.types)
};
return new Ke(n);
}
if (Mt(e)) {
let t = e.toConfig(), n = {
...t,
fields: () => d(t.fields)
};
return new rt(n);
}
if (l(e)) {
let t = e.toConfig();
return new Me(t);
}
if (re(e)) {
if (Ct(e)) return e;
let t = e.toConfig();
return new ot(t);
}
throw Error(`Unexpected schema type: ${e}`);
}
function u(e) {
let t = {};
for (let n in e) {
let r = e[n], i = p(r.type);
i != null && r.args && (r.type = i, r.args = s(r.args), t[n] = r);
}
return t;
}
function d(e) {
let t = {};
for (let n in e) {
let r = e[n], i = p(r.type);
i != null && (r.type = i, t[n] = r);
}
return t;
}
function f(e) {
let t = [];
for (let n of e) {
let e = p(n);
e != null && t.push(e);
}
return t;
}
function p(e) {
if (ne(e)) {
let t = p(e.ofType);
return t == null ? null : new Fe(t);
}
if (i(e)) {
let t = p(e.ofType);
return t == null ? null : new Be(t);
}
if (et(e)) {
let t = n[e.name];
return t === void 0 && (t = Tu(e) ? Eu(e) : c(e), r[t.name] = n[e.name] = t), t == null ? null : r[t.name];
}
return null;
}
}
function Ou(e, t) {
let n = /* @__PURE__ */ new Set(), r = !0;
for (; r;) {
r = !1;
for (let i in e) n.has(i) || ku(e[i], t, n) && (n.add(i), r = !0);
}
return n;
}
function ku(e, t, n, r = /* @__PURE__ */ new Set()) {
if (r.has(e)) return !1;
r.add(e);
for (let i of Mu(e)) if (n.has(i.name) || ju(i, t) !== i || !(i.name in t) && ku(i, t, n, r)) return !0;
return !1;
}
function Au(e, t, n) {
if (ge(e)) return !1;
for (let r of e.args) {
let e = Rt(r.type);
if (n.has(e.name) || ju(e, t) !== e) return !0;
}
return !1;
}
function ju(e, t) {
return e.name in t ? t[e.name] : e;
}
function Mu(e) {
let t = [];
if (A(e) || h(e)) {
for (let n of e.getInterfaces()) t.push(n);
for (let n of Object.values(e.getFields())) {
t.push(Rt(n.type));
for (let e of n.args) t.push(Rt(e.type));
}
} else if (_(e)) t.push(...e.getTypes());
else if (Mt(e)) for (let n of Object.values(e.getFields())) t.push(Rt(n.type));
return t;
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/transformInputValue.js
function Nu(e, t, n = null, r = null) {
if (t == null) return t;
let i = ke(e);
if (f(i)) return n == null ? t : n(i, t);
if (ne(i)) return (Array.isArray(t) ? t : [t]).map((e) => Nu(i.ofType, e, n, r));
if (Mt(i)) {
let e = i.getFields(), a = {};
for (let i in t) {
let o = e[i];
o != null && (a[i] = Nu(o.type, t[i], n, r));
}
return r == null ? a : r(i, a);
}
}
function Pu(e, t) {
return Nu(e, t, (e, t) => {
try {
return e.serialize(t);
} catch {
return t;
}
});
}
function Fu(e, t) {
return Nu(e, t, (e, t) => {
try {
return e.parseValue(t);
} catch {
return t;
}
});
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/mapSchema.js
function Iu(e, t = {}) {
let n = Gu(Wu(Ru(Hu(zu(Ru(Hu(e.getTypeMap(), e, Pu), e, t, (e) => f(e)), e, t), e, Fu), e, t, (e) => !f(e)), e, t), e, t), { typeMap: r, directives: i } = Du(n, Bu(Ku(e.getDirectives(), e, t), n, Fu));
return new N({
...e.toConfig(),
query: Cu(r, Cu(n, e.getQueryType())),
mutation: Cu(r, Cu(n, e.getMutationType())),
subscription: Cu(r, Cu(n, e.getSubscriptionType())),
types: Object.values(r),
directives: i
});
}
var Lu = [
"String",
"ID",
"Int",
"Float",
"Boolean"
];
function Ru(e, t, n, r = () => !0) {
let i = {};
for (let a in e) if (!a.startsWith("__") && !Lu.includes(a)) {
let o = e[a];
if (o == null || !r(o)) {
i[a] = o;
continue;
}
let s = Ju(t, n, a);
if (s == null) {
i[a] = o;
continue;
}
let c = s(o, t);
if (c === void 0) {
i[a] = o;
continue;
}
i[a] = c;
}
return i;
}
function zu(e, t, n) {
let r = $u(n);
return r ? Ru(e, t, { [Su.ENUM_TYPE]: (e) => {
let n = e.toConfig(), i = n.values, a = {};
for (let n in i) {
let o = i[n], s = r(o, e.name, t, n);
if (s === void 0) a[n] = o;
else if (Array.isArray(s)) {
let [e, t] = s;
a[e] = t === void 0 ? o : t;
} else s !== null && (a[n] = s);
}
return ed(new Me({
...n,
values: a
}));
} }, (e) => l(e)) : e;
}
function Bu(e, t, n) {
return e.map((e) => {
let r = e.toConfig(), i = !1;
for (let e in r.args) {
let a = r.args[e];
if (a.defaultValue === void 0) continue;
let o = Uu(t, a.type);
if (o != null) {
let t = n(o, Pu(a.type, a.defaultValue));
r.args[e] = {
...a,
defaultValue: Vu(o, t) ? t : a.defaultValue
}, i = !0;
}
}
return i ? new v(r) : e;
});
}
function Vu(e, t) {
return t == null ? !0 : i(e) ? Vu(e.ofType, t) : ne(e) ? Array.isArray(t) && t.every((t) => Vu(e.ofType, t)) : !l(e) || e.getValues().some((e) => e.value === t);
}
function Hu(e, t, n) {
let r = Gu(e, t, { [Su.ARGUMENT]: (t) => {
if (t.defaultValue === void 0) return t;
let r = Uu(e, t.type);
if (r != null) return {
...t,
defaultValue: n(r, t.defaultValue)
};
} });
return Wu(r, t, { [Su.INPUT_OBJECT_FIELD]: (e) => {
if (e.defaultValue === void 0) return e;
let t = Uu(r, e.type);
if (t != null) return {
...e,
defaultValue: n(t, e.defaultValue)
};
} });
}
function Uu(e, t) {
if (ne(t)) {
let n = Uu(e, t.ofType);
return n == null ? null : new Fe(n);
}
if (i(t)) {
let n = Uu(e, t.ofType);
return n == null ? null : new Be(n);
}
return et(t) ? e[t.name] ?? null : null;
}
function Wu(e, t, n) {
let r = {};
for (let i in e) if (!i.startsWith("__")) {
let a = e[i];
if (!A(a) && !h(a) && !Mt(a)) {
r[i] = a;
continue;
}
let o = Xu(t, n, i);
if (o == null) {
r[i] = a;
continue;
}
let s = a.toConfig(), c = s.fields, l = {};
for (let e in c) {
let n = c[e], r = o(n, e, i, t);
if (r === void 0) l[e] = n;
else if (Array.isArray(r)) {
let [e, t] = r;
t.astNode != null && (t.astNode = {
...t.astNode,
name: {
...t.astNode.name,
value: e
}
}), l[e] = t === void 0 ? n : t;
} else r !== null && (l[e] = r);
}
r[i] = A(a) ? ed(new ht({
...s,
fields: l
})) : h(a) ? ed(new Et({
...s,
fields: l
})) : ed(new rt({
...s,
fields: l
}));
}
return r;
}
function Gu(e, t, n) {
let r = {};
for (let i in e) if (!i.startsWith("__")) {
let a = e[i];
if (!A(a) && !h(a)) {
r[i] = a;
continue;
}
let o = Zu(n);
if (o == null) {
r[i] = a;
continue;
}
let s = a.toConfig(), c = s.fields, l = {};
for (let e in c) {
let n = c[e], r = n.args;
if (r == null) {
l[e] = n;
continue;
}
let a = Object.keys(r);
if (!a.length) {
l[e] = n;
continue;
}
let s = {};
for (let n of a) {
let a = r[n], c = o(a, e, i, t);
if (c === void 0) s[n] = a;
else if (Array.isArray(c)) {
let [e, t] = c;
s[e] = t;
} else c !== null && (s[n] = c);
}
l[e] = {
...n,
args: s
};
}
r[i] = A(a) ? new ht({
...s,
fields: l
}) : h(a) ? new Et({
...s,
fields: l
}) : new rt({
...s,
fields: l
});
}
return r;
}
function Ku(e, t, n) {
let r = Qu(n);
if (r == null) return e.slice();
let i = [];
for (let n of e) {
let e = r(n, t);
e === void 0 ? i.push(n) : e !== null && i.push(e);
}
return i;
}
function qu(e, t) {
let n = e.getType(t), r = [Su.TYPE];
return A(n) ? (r.push(Su.COMPOSITE_TYPE, Su.OBJECT_TYPE), t === e.getQueryType()?.name ? r.push(Su.ROOT_OBJECT, Su.QUERY) : t === e.getMutationType()?.name ? r.push(Su.ROOT_OBJECT, Su.MUTATION) : t === e.getSubscriptionType()?.name && r.push(Su.ROOT_OBJECT, Su.SUBSCRIPTION)) : Mt(n) ? r.push(Su.INPUT_OBJECT_TYPE) : h(n) ? r.push(Su.COMPOSITE_TYPE, Su.ABSTRACT_TYPE, Su.INTERFACE_TYPE) : _(n) ? r.push(Su.COMPOSITE_TYPE, Su.ABSTRACT_TYPE, Su.UNION_TYPE) : l(n) ? r.push(Su.ENUM_TYPE) : re(n) && r.push(Su.SCALAR_TYPE), r;
}
function Ju(e, t, n) {
let r = qu(e, n), i, a = [...r];
for (; !i && a.length > 0;) i = t[a.pop()];
return i ?? null;
}
function Yu(e, t) {
let n = e.getType(t), r = [Su.FIELD];
return A(n) ? (r.push(Su.COMPOSITE_FIELD, Su.OBJECT_FIELD), t === e.getQueryType()?.name ? r.push(Su.ROOT_FIELD, Su.QUERY_ROOT_FIELD) : t === e.getMutationType()?.name ? r.push(Su.ROOT_FIELD, Su.MUTATION_ROOT_FIELD) : t === e.getSubscriptionType()?.name && r.push(Su.ROOT_FIELD, Su.SUBSCRIPTION_ROOT_FIELD)) : h(n) ? r.push(Su.COMPOSITE_FIELD, Su.INTERFACE_FIELD) : Mt(n) && r.push(Su.INPUT_OBJECT_FIELD), r;
}
function Xu(e, t, n) {
let r = Yu(e, n), i, a = [...r];
for (; !i && a.length > 0;) i = t[a.pop()];
return i ?? null;
}
function Zu(e) {
return e[Su.ARGUMENT] ?? null;
}
function Qu(e) {
return e[Su.DIRECTIVE] ?? null;
}
function $u(e) {
return e[Su.ENUM_VALUE] ?? null;
}
function ed(e) {
if (A(e)) {
let t = e.toConfig();
if (t.astNode != null) {
let e = [];
for (let n in t.fields) {
let r = t.fields[n];
r.astNode != null && e.push(r.astNode);
}
t.astNode = {
...t.astNode,
kind: at,
fields: e
};
}
return t.extensionASTNodes != null && (t.extensionASTNodes = t.extensionASTNodes.map((e) => ({
...e,
kind: Ge,
fields: void 0
}))), new ht(t);
}
if (h(e)) {
let t = e.toConfig();
if (t.astNode != null) {
let e = [];
for (let n in t.fields) {
let r = t.fields[n];
r.astNode != null && e.push(r.astNode);
}
t.astNode = {
...t.astNode,
kind: Je,
fields: e
};
}
return t.extensionASTNodes != null && (t.extensionASTNodes = t.extensionASTNodes.map((e) => ({
...e,
kind: Te,
fields: void 0
}))), new Et(t);
}
if (Mt(e)) {
let t = e.toConfig();
if (t.astNode != null) {
let e = [];
for (let n in t.fields) {
let r = t.fields[n];
r.astNode != null && e.push(r.astNode);
}
t.astNode = {
...t.astNode,
kind: Ie,
fields: e
};
}
return t.extensionASTNodes != null && (t.extensionASTNodes = t.extensionASTNodes.map((e) => ({
...e,
kind: St,
fields: void 0
}))), new rt(t);
}
if (l(e)) {
let t = e.toConfig();
if (t.astNode != null) {
let e = [];
for (let n in t.values) {
let r = t.values[n];
r.astNode != null && e.push(r.astNode);
}
t.astNode = {
...t.astNode,
values: e
};
}
return t.extensionASTNodes != null && (t.extensionASTNodes = t.extensionASTNodes.map((e) => ({
...e,
values: void 0
}))), new Me(t);
}
return e;
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/mergeDeep.js
function td(e) {
return typeof e == "object" && !!e && !Array.isArray(e);
}
function nd(e) {
return {
enumerable: e?.enumerable ?? !1,
nonEnumerable: e?.nonEnumerable ?? !1
};
}
function rd(e, t = !1, n = !1, r = !1) {
return td(e) ? {
respectPrototype: e.respectPrototype ?? !1,
respectArrays: e.respectArrays ?? !1,
respectArrayLength: e.respectArrayLength ?? !1,
respectSymbols: nd(e.respectSymbols)
} : {
respectPrototype: e ?? !1,
respectArrays: t,
respectArrayLength: n,
respectSymbols: {
enumerable: !1,
nonEnumerable: r
}
};
}
function id(e, t = !1, n = !1, r = !1, i = !1) {
return ad(e, rd(t, n, r, i));
}
function ad(e, t) {
let { respectPrototype: n, respectArrayLength: r, respectSymbols: i } = t, a = i.enumerable, o = i.nonEnumerable;
if (e.length === 0) return;
if (e.length === 1) return e[0];
let s, c = !0, l = e.every((e) => {
if (Array.isArray(e)) {
if (s === void 0) return s = e.length, !0;
if (s === e.length) return !0;
} else c = !1;
return !1;
});
if (r && l) return Array(s).fill(null).map((n, r) => ad(e.map((e) => e[r]), t));
if (c) return e.flat(1);
let u, d;
n && (d = e.find((e) => od(e)), d && (u ??= {}, Object.setPrototypeOf(u, Object.create(Object.getPrototypeOf(d)))));
for (let n of e) if (n !== void 0) {
if (od(n)) {
if (u ??= {}, d) {
let e = Object.getPrototypeOf(u), t = Object.getPrototypeOf(n);
if (t) for (let n of Object.getOwnPropertyNames(t)) {
let r = Object.getOwnPropertyDescriptor(t, n);
vl(r) && Object.defineProperty(e, n, r);
}
}
for (let e in n) Il(e) || (Object.prototype.hasOwnProperty.call(u, e) && n[e] !== void 0 ? u[e] = ad([u[e], n[e]], t) : u[e] = n[e]);
if (u != null && (a || o)) for (let e of Object.getOwnPropertySymbols(n)) {
if (!Object.getOwnPropertyDescriptor(n, e).enumerable) {
if (o) {
if (Object.prototype.hasOwnProperty.call(u, e)) {
let t = Object.getOwnPropertyDescriptor(u, e);
t.configurable ? Object.defineProperty(u, e, {
value: n[e],
writable: !0,
enumerable: !1,
configurable: !0
}) : (t.writable || t.set) && (u[e] = n[e]);
} else Object.defineProperty(u, e, {
value: n[e],
writable: !0,
enumerable: !1,
configurable: !0
});
}
continue;
}
if (!a) continue;
let r = Object.prototype.hasOwnProperty.call(u, e);
if (r && n[e] !== void 0) {
let r = Object.getOwnPropertyDescriptor(u, e), i = ad([u[e], n[e]], t);
r.writable || r.set ? u[e] = i : r.configurable && Object.defineProperty(u, e, {
value: i,
writable: !0,
enumerable: !0,
configurable: !0
});
} else if (!r) u[e] = n[e];
else {
let t = Object.getOwnPropertyDescriptor(u, e);
t.writable || t.set ? u[e] = n[e] : t.configurable && Object.defineProperty(u, e, {
value: n[e],
writable: !0,
enumerable: !0,
configurable: !0
});
}
}
} else u = Array.isArray(n) && Array.isArray(u) ? ad([u, n], t) : n;
}
return u;
}
function od(e) {
return e && typeof e == "object" && !Array.isArray(e);
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/implementsAbstractType.js
function sd(e, t, n) {
return n == null || t == null ? !1 : t === n ? !0 : le(t) && le(n) ? ft(e, t, n) : !1;
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/errors.js
function cd(e, t) {
return t != null && e.coordinate == null && Object.defineProperties(e, { coordinate: {
value: t,
enumerable: !0,
configurable: !0
} }), e;
}
function ld(e, t, n, r) {
return cd(ni(e, t, n), r ? `${r.parentType.name}.${r.fieldName}` : void 0);
}
function ud(e, t, n) {
return cd(new P(e.message, {
nodes: e.nodes,
source: e.source,
positions: e.positions,
path: t ?? e.path,
originalError: e,
extensions: e.extensions
}), n ? `${n.parentType.name}.${n.fieldName}` : e.coordinate);
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/observableToAsyncIterable.js
function dd(e) {
let t = [], n = [], r = !0, i = {}, a = () => {
if (r) {
r = !1, i.current?.unsubscribe();
for (let e of t) e({
value: void 0,
done: !0
});
t.length = 0, n.length = 0;
}
}, o = (e) => {
t.length === 0 ? n.push({
value: e,
done: !1
}) : t.shift()({
value: e,
done: !1
});
}, s = (e) => {
t.length === 0 ? n.push({
value: { errors: [e] },
done: !1
}) : t.shift()({
value: { errors: [e] },
done: !1
});
}, c = () => {
t.length === 0 ? n.push({
value: void 0,
done: !0
}) : (t.shift()({
value: void 0,
done: !0
}), a());
}, l = () => new Promise((e) => {
if (n.length !== 0) {
let t = n.shift();
t.done && a(), e(t);
} else t.push(e);
});
return i.current = e.subscribe({
next(e) {
return o(e);
},
error(e) {
return s(e);
},
complete() {
return c();
}
}), r || i.current.unsubscribe(), {
next() {
return r ? l() : this.return();
},
return() {
return a(), tl({
value: void 0,
done: !0
});
},
throw(e) {
return a(), rl(e);
},
[Symbol.asyncIterator]() {
return this;
}
};
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/AccumulatorMap.js
var fd = class extends Map {
get [Symbol.toStringTag]() {
return "AccumulatorMap";
}
add(e, t) {
let n = this.get(e);
n === void 0 ? this.set(e, [t]) : n.push(t);
}
}, pd = new v({
name: "defer",
description: "Directs the executor to defer this fragment when the `if` argument is true or undefined.",
locations: [vt.FRAGMENT_SPREAD, vt.INLINE_FRAGMENT],
args: {
if: {
type: new Be(ie),
description: "Deferred when true or undefined.",
defaultValue: !0
},
label: {
type: Le,
description: "Unique name"
}
}
}), md = new v({
name: "stream",
description: "Directs the executor to stream plural fields when the `if` argument is true or undefined.",
locations: [vt.FIELD],
args: {
if: {
type: new Be(ie),
description: "Stream when true or undefined.",
defaultValue: !0
},
label: {
type: Le,
description: "Unique name"
},
initialCount: {
defaultValue: 0,
type: e,
description: "Number of items to return immediately"
}
}
});
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/getDirectiveValues.js
function hd(e, t, n) {
return ei.major >= 17 ? Re(e, t, n) : Re(e, t, n?.coerced);
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/collectFields.js
var gd = /* @__PURE__ */ new Set([
"skip",
"include",
"defer"
]);
function _d(e) {
for (let t of e.definitions) if ((t.kind === "OperationDefinition" || t.kind === "FragmentDefinition") && vd(t.selectionSet)) return !0;
return !1;
}
function vd(e) {
for (let n of e.selections) {
if (yd(n.directives)) return !0;
switch (n.kind) {
case w:
if (n.selectionSet && vd(n.selectionSet)) return !0;
break;
case t:
if (vd(n.selectionSet)) return !0;
break;
case ae:
}
}
return !1;
}
function yd(e) {
if (e == null) return !1;
for (let t of e) {
let e = t.name.value;
if (gd.has(e)) {
for (let n of t.arguments ?? []) if (n.value.kind === "Variable" && (n.name.value === "if" || e === "defer" && n.name.value === "label")) return !0;
}
}
return !1;
}
function bd(e, n, r, i, a, o, s, c) {
for (let l of a.selections) switch (l.kind) {
case w:
if (!Sd(r, l)) continue;
o.add(wd(l), l);
break;
case t: {
if (!Sd(r, l) || !Cd(e, l, i)) continue;
let t = Td(r, l);
if (t) {
let a = new fd(), o = [];
bd(e, n, r, i, l.selectionSet, a, o, c), s.push({
label: t.label,
fields: a,
patches: o.length > 0 ? o : void 0
});
} else bd(e, n, r, i, l.selectionSet, o, s, c);
break;
}
case ae: {
let t = l.name.value;
if (!Sd(r, l)) continue;
let a = Td(r, l);
if (c.has(t) && !a) continue;
let u = n[t];
if (!u || !Cd(e, u, i)) continue;
if (a || c.add(t), a) {
let t = new fd(), o = [];
bd(e, n, r, i, u.selectionSet, t, o, c), s.push({
label: a.label,
fields: t,
patches: o.length > 0 ? o : void 0
});
} else bd(e, n, r, i, u.selectionSet, o, s, c);
break;
}
}
}
function xd(e, t, n, r, i) {
let a = new fd(), o = [];
return bd(e, t, n, r, i, a, o, /* @__PURE__ */ new Set()), {
fields: a,
patches: o
};
}
function Sd(e, t) {
return hd(C, t, e)?.if !== !0 && hd(gt, t, e)?.if !== !1;
}
function Cd(e, t, n) {
let r = t.typeCondition;
if (!r) return !0;
let i = Dt(e, r);
return i === n ? !0 : Ft(i) ? e.getPossibleTypes(i).includes(n) : !1;
}
function wd(e) {
return e.alias ? e.alias.value : e.name.value;
}
function Td(e, t) {
let n = hd(pd, t, e);
if (n && n.if !== !1) return { label: typeof n.label == "string" ? n.label : void 0 };
}
function Ed(e, t, n, r, i) {
let a = new fd(), o = /* @__PURE__ */ new Set(), s = [];
for (let c of i) c.selectionSet && bd(e, t, n, r, c.selectionSet, a, s, o);
return {
fields: a,
patches: s
};
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/getOperationASTFromRequest.js
function Dd(e, t) {
let n = ii(e, t);
if (!n) throw Error(`Cannot infer operation ${t || ""}`);
return n;
}
var Od = yl(function(e) {
return Dd(e.document, e.operationName);
});
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/isAsyncIterable.js
function kd(e) {
return e?.[Symbol.asyncIterator] != null;
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/Path.js
function Ad(e, t, n) {
return {
prev: e,
key: t,
typename: n
};
}
function jd(e) {
let t = [], n = e;
for (; n;) t.push(n.key), n = n.prev;
return t.reverse();
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/mergeIncrementalResult.js
var Md = /* @__PURE__ */ new WeakMap();
function Nd(e) {
let t = Md.get(e);
return t ?? (t = /* @__PURE__ */ new Map(), Md.set(e, t)), t;
}
function Pd({ incrementalResult: e, executionResult: t }) {
if (e.pending) {
let n = Nd(t);
for (let t of e.pending) n.set(t.id, t.path);
}
let n = Fd(e, t);
if (n !== void 0) {
let r = ["data", ...n];
if (e.items) {
if (e.id != null && (e.path == null || e.path.length === 0)) Ld(t, r, e.items);
else if (Id(r)) for (let n of e.items) Rd(t, r, n), r[r.length - 1]++;
}
e.data && Rd(t, r, e.data);
}
if (e.errors && (t.errors = t.errors || [], t.errors.push(...e.errors)), e.extensions && Rd(t, ["extensions"], e.extensions), e.incremental && e.incremental.forEach((e) => {
Pd({
incrementalResult: e,
executionResult: t
});
}), e.completed) for (let n of e.completed) n.errors && (t.errors = t.errors || [], t.errors.push(...n.errors));
}
function Fd(e, t) {
if (e.id != null) {
let n = Nd(t).get(e.id);
return n == null ? void 0 : [...n, ...e.subPath ?? []];
}
return e.path ?? [];
}
function Id(e) {
return e.every(Ll);
}
function Ld(e, t, n) {
if (!Id(t) || t.length === 0) return;
let r = e;
for (let e = 0; e < t.length; e++) {
let i = t[e];
if (i === "__proto__" || !Ll(i)) return;
if (e === t.length - 1) {
Fl(r, i) && r[i] != null || (r[i] = []), Array.isArray(r[i]) && r[i].push(...n);
return;
}
Fl(r, i) && r[i] != null || (r[i] = typeof t[e + 1] == "number" ? [] : {}), r = r[i];
}
}
function Rd(e, t, n) {
if (!Id(t)) return;
let r = e, i = 0;
for (; i < t.length - 1; i++) {
let e = t[i];
if (e === "__proto__" || !Ll(e)) return;
Fl(r, e) && r[e] != null || (r[e] = typeof t[i + 1] == "number" ? [] : {}), r = r[e];
}
let a = t[i];
if (a === "__proto__" || !Ll(a)) return;
let o = Fl(r, a) ? r[a] : void 0;
r[a] = o == null ? n : id([o, n]);
}
// ../../../node_modules/.pnpm/@graphql-tools+utils@13.2.3_graphql@17.1.0/node_modules/@graphql-tools/utils/esm/incrementalSpec.js
var zd = "multipart/mixed", Bd = [{
id: "v0.1",
parameter: "deferSpec",
value: "20220824",
default: !0
}, {
id: "v0.2",
parameter: "incrementalSpec",
value: "v0.2"
}];
function Vd(e = Bd) {
return e.find((e) => e.default) ?? e[0];
}
function Hd(e, t = {}) {
let n = `${zd}; boundary="${t.boundary ?? "-"}"`;
return e == null || t.echoSpec !== !0 ? n : `${n}; ${e.parameter}=${e.value}`;
}
Hd();
// ../../../node_modules/.pnpm/@whatwg-node+disposablestack@0.1.0/node_modules/@whatwg-node/disposablestack/esm/symbols.js
var Ud = {
get dispose() {
return Symbol.dispose || Symbol.for("dispose");
},
get asyncDispose() {
return Symbol.asyncDispose || Symbol.for("asyncDispose");
}
};
// ../../../node_modules/.pnpm/isows@1.0.8_ws@8.22.0/node_modules/isows/_esm/utils.js
function Wd() {
if (typeof WebSocket < "u") return WebSocket;
if (global.WebSocket !== void 0) return global.WebSocket;
if (window.WebSocket !== void 0) return window.WebSocket;
if (self.WebSocket !== void 0) return self.WebSocket;
throw Error("`WebSocket` is not supported in this environment");
}
// ../../../node_modules/.pnpm/isows@1.0.8_ws@8.22.0/node_modules/isows/_esm/native.js
var Gd = Wd();
// ../../../node_modules/.pnpm/@graphql-tools+executor-graphql-ws@4.0.0_graphql@17.1.0/node_modules/@graphql-tools/executor-graphql-ws/dist/index.js
function Kd() {
return typeof window < "u";
}
function qd(e) {
return "subscribe" in e;
}
function Jd(e) {
let t, n = /* @__PURE__ */ new Map(), r = (e) => t, i = pl;
if (qd(e)) t = e;
else {
e.print && (i = e.print);
let a = e.headers, o = a ? class extends Gd {
constructor(e, t) {
Kd() ? super(e, t) : super(e, {
protocols: [t],
protocol: t,
headers: a
});
}
} : Gd, s = e, c = (e) => {
let t = Ir({
url: s.url,
webSocketImpl: o,
lazy: s.lazy !== !1,
lazyCloseTimeout: s.lazyCloseTimeout || 0,
connectionParams: () => ({
...typeof s.connectionParams == "function" ? s.connectionParams() : s.connectionParams,
...e
}),
on: s.on
});
return s.onClient && s.onClient(t), t;
};
t = c(), r = (e) => {
if (!e) return t;
let r = JSON.stringify(e), i = n.get(r);
return i || (i = c({ ...e }), n.set(r, i)), i;
};
}
let a = function(e) {
let { extensions: t, operationType: n = Od(e).operation, info: a, signal: o = a?.signal } = e, s = t?.connectionParams && typeof t?.connectionParams == "object" ? t.connectionParams : void 0, c = r(s).iterate(ml({
executionRequest: e,
printFn: i
}));
return c.return && o && o.addEventListener("abort", () => {
c.return?.();
}, { once: !0 }), n === "subscription" ? c : c.next().then(({ value: e }) => e);
};
return Object.defineProperty(a, Ud.asyncDispose, { value: function() {
let e = [t, ...n.values()];
return n.clear(), Promise.all(e.map((e) => e.dispose())).then(() => {});
} }), a;
}
// ../../../node_modules/.pnpm/@graphql-hive+signal@3.0.0/node_modules/@graphql-hive/signal/dist/index.js
var Yd = !globalThis.Bun && globalThis.process?.release?.name === "node", Xd = Symbol("CONTROLLER_IN_SIGNAL"), Zd = typeof FinalizationRegistry == "function" ? new FinalizationRegistry((e) => e()) : null;
function Qd(e) {
if (e.length === 0) return;
if (e.length === 1) return e[0];
if (!Yd) return AbortSignal.any(e);
for (let t of e) if (t.aborted) return t;
let t = new AbortController(), n = new WeakRef(t), r = [], i = e.length;
for (let t of e) {
let e = function() {
n.deref()?.abort(o.deref()?.reason);
}, o = new WeakRef(t);
t.addEventListener("abort", e), r.push([o, e]), Zd.register(t, () => !--i && a(), t);
}
function a() {
for (let [e, t] of r) {
let r = e.deref();
r && (r.removeEventListener("abort", t), Zd.unregister(r));
let i = n.deref();
i && (Zd.unregister(i.signal), delete i.signal[Xd]);
}
}
return t.signal.addEventListener("abort", a), Zd.register(t.signal, a, t.signal), t.signal[Xd] = t, t.signal;
}
function $d(e) {
return e != null && !!e?.toString?.()?.includes("AbortError");
}
function ef(e) {
let t = e.map((e) => e.reason).filter((e) => e != null && !$d(e));
return t.length < 2 ? t[0] : AggregateError(t);
}
function tf(e) {
if (e.length === 0) return;
if (e.length === 1) return e[0];
if (e.every((e) => e.aborted)) {
let t = ef(e);
return t === void 0 ? e[0] : AbortSignal.abort(t);
}
let t = new AbortController(), n = new WeakRef(t), r = [], i = /* @__PURE__ */ new Set(), a = 0, o = 0;
for (let t of e) if (t.aborted) {
let e = t.reason;
e != null && !$d(e) && i.add(e);
} else a++, o++;
function s() {
if (a !== 0) return;
let e;
e = i.size < 2 ? i.values().next().value : AggregateError(i), n.deref()?.abort(e);
}
for (let t of e) {
let e = function() {
a--;
let e = n.deref()?.reason;
e != null && !$d(e) && i.add(e), s();
};
if (t.aborted) continue;
let n = new WeakRef(t);
t.addEventListener("abort", e), r.push([n, e]), Zd?.register(t, () => !--o && c(), t);
}
function c() {
for (let [e, t] of r) {
let n = e.deref();
n && (n.removeEventListener("abort", t), Zd?.unregister(n));
}
let e = n.deref();
e && (e.signal.removeEventListener("abort", c), Zd?.unregister(e.signal), delete e.signal[Xd]);
}
return t.signal.addEventListener("abort", c), Zd?.register(t.signal, c, t.signal), t.signal[Xd] = t, t.signal;
}
// ../../../node_modules/.pnpm/@repeaterjs+repeater@3.1.0/node_modules/@repeaterjs/repeater/src/core.js
var nf = (/* @__PURE__ */ Ut(((e, t) => {
t.exports.fetch = globalThis.fetch, t.exports.Headers = globalThis.Headers, t.exports.Request = globalThis.Request, t.exports.Response = globalThis.Response, t.exports.FormData = globalThis.FormData, t.exports.ReadableStream = globalThis.ReadableStream, t.exports.WritableStream = globalThis.WritableStream, t.exports.TransformStream = globalThis.TransformStream, t.exports.CompressionStream = globalThis.CompressionStream, t.exports.DecompressionStream = globalThis.DecompressionStream, t.exports.TextDecoderStream = globalThis.TextDecoderStream, t.exports.TextEncoderStream = globalThis.TextEncoderStream, t.exports.Blob = globalThis.Blob, t.exports.File = globalThis.File, t.exports.crypto = globalThis.crypto, t.exports.btoa = globalThis.btoa, t.exports.TextEncoder = globalThis.TextEncoder, t.exports.TextDecoder = globalThis.TextDecoder, t.exports.URLPattern = globalThis.URLPattern, t.exports.URL = globalThis.URL, t.exports.URLSearchParams = globalThis.URLSearchParams, t.exports.createFetch = () => ({
fetch: globalThis.fetch,
Headers: globalThis.Headers,
Request: globalThis.Request,
Response: globalThis.Response,
FormData: globalThis.FormData,
ReadableStream: globalThis.ReadableStream,
WritableStream: globalThis.WritableStream,
TransformStream: globalThis.TransformStream,
CompressionStream: globalThis.CompressionStream,
DecompressionStream: globalThis.DecompressionStream,
TextDecoderStream: globalThis.TextDecoderStream,
TextEncoderStream: globalThis.TextEncoderStream,
Blob: globalThis.Blob,
File: globalThis.File,
crypto: globalThis.crypto,
btoa: globalThis.btoa,
TextEncoder: globalThis.TextEncoder,
TextDecoder: globalThis.TextDecoder,
URLPattern: globalThis.URLPattern,
URL: globalThis.URL,
URLSearchParams: globalThis.URLSearchParams
});
})))(), rf = class extends Error {
constructor(e) {
super(e), Object.defineProperty(this, "name", {
value: "RepeaterOverflowError",
enumerable: !1
}), typeof Object.setPrototypeOf == "function" ? Object.setPrototypeOf(this, this.constructor.prototype) : this.__proto__ = this.constructor.prototype, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, this.constructor);
}
};
function af(e) {
e != null && typeof e.then == "function" && e.then(ff, ff);
}
var of = 0, sf = 1, cf = 2, lf = 3, uf = 4, df = 1024, ff = () => {};
function pf(e) {
let t = e.err, n = Promise.resolve(e.execution).then((e) => {
if (t != null) throw t;
return e;
});
return e.err = void 0, e.execution = n.then(() => void 0, () => void 0), e.pending === void 0 ? n : e.pending.then(() => n);
}
function mf(e, t) {
let n = e.state >= lf;
return Promise.resolve(t).then((t) => !n && e.state >= uf ? pf(e).then((e) => ({
value: e,
done: !0
})) : {
value: t,
done: n
});
}
function hf(e, t) {
if (!(e.state >= cf)) {
if (e.state = cf, e.onnext(), e.onstop(), e.err ??= t, e.pushes.length === 0 && (e.buffer === void 0 || e.buffer.empty)) gf(e);
else for (let t of e.pushes) t.resolve();
}
}
function gf(e) {
if (!(e.state >= lf)) {
e.state < cf && hf(e), e.state = lf, e.buffer = void 0;
for (let t of e.nexts) {
let n = e.pending === void 0 ? pf(e) : e.pending.then(() => pf(e));
t.resolve(mf(e, n));
}
e.pushes = [], e.nexts = [];
}
}
function _f(e) {
e.state >= uf || (e.state < lf && gf(e), e.state = uf);
}
function vf(e, t) {
if (af(t), e.pushes.length >= 1024) throw new rf(`No more than ${df} pending calls to push are allowed on a single repeater.`);
if (e.state >= cf) return Promise.resolve(void 0);
let n = e.pending === void 0 ? Promise.resolve(t) : e.pending.then(() => t);
n = n.catch((t) => {
e.state < cf && (e.err = t), _f(e);
});
let r;
e.nexts.length ? (e.nexts.shift().resolve(mf(e, n)), r = e.nexts.length ? Promise.resolve(e.nexts[0].value) : e.buffer !== void 0 && !e.buffer.full ? Promise.resolve(void 0) : new Promise((t) => e.onnext = t)) : e.buffer !== void 0 && !e.buffer.full ? (e.buffer.add(n), r = Promise.resolve(void 0)) : r = new Promise((t) => e.pushes.push({
resolve: t,
value: n
}));
let i = !0, a = Object.create(r), o = r.catch((e) => {
if (i) throw e;
});
return a.then = (e, t) => (i = !1, Promise.prototype.then.call(r, e, t)), a.catch = (e) => (i = !1, Promise.prototype.catch.call(r, e)), a.finally = r.finally.bind(r), e.pending = n.then(() => o).catch((t) => {
e.err = t, _f(e);
}), a;
}
function yf(e) {
let t = new Promise((t) => e.onstop = () => t(void 0));
return Object.assign(hf.bind(null, e), {
then: t.then.bind(t),
catch: t.catch.bind(t),
finally: t.finally.bind(t)
});
}
function bf(e) {
if (e.state >= sf) return;
e.state = sf;
let t = vf.bind(null, e), n = yf(e);
e.execution = new Promise((r) => r(e.executor(t, n))), e.execution.catch(() => hf(e));
}
var xf = /* @__PURE__ */ new WeakMap(), Sf = class {
constructor(e, t) {
xf.set(this, {
executor: e,
buffer: t,
err: void 0,
state: of,
pushes: [],
nexts: [],
pending: void 0,
execution: void 0,
onnext: ff,
onstop: ff
});
}
next(e) {
af(e);
let t = xf.get(this);
if (t === void 0) throw Error("WeakMap error");
if (t.nexts.length >= 1024) throw new rf(`No more than ${df} pending calls to next are allowed on a single repeater.`);
if (t.state <= of && bf(t), t.onnext(e), t.buffer !== void 0 && !t.buffer.empty) {
let e = mf(t, t.buffer.remove());
if (t.pushes.length) {
let e = t.pushes.shift();
t.buffer.add(e.value), t.onnext = e.resolve;
}
return e;
}
if (t.pushes.length) {
let e = t.pushes.shift();
return t.onnext = e.resolve, mf(t, e.value);
}
return t.state >= cf ? (gf(t), mf(t, pf(t))) : new Promise((n) => t.nexts.push({
resolve: n,
value: e
}));
}
return(e) {
af(e);
let t = xf.get(this);
if (t === void 0) throw Error("WeakMap error");
return gf(t), t.execution = Promise.resolve(t.execution).then(() => e), mf(t, pf(t));
}
throw(e) {
let t = xf.get(this);
if (t === void 0) throw Error("WeakMap error");
return t.state <= of || t.state >= cf || t.buffer !== void 0 && !t.buffer.empty ? (gf(t), t.err ??= e, mf(t, pf(t))) : this.next(Promise.reject(e));
}
[Symbol.asyncIterator]() {
return this;
}
};
typeof Symbol.asyncDispose == "symbol" && (Sf.prototype[Symbol.asyncDispose] = function() {
return this.return();
}), typeof Symbol.dispose == "symbol" && (Sf.prototype[Symbol.dispose] = function() {
this.return();
});
// ../../../node_modules/.pnpm/@repeaterjs+repeater@3.1.0/node_modules/@repeaterjs/repeater/src/_chunks/chunk-RTTLBQUC.js
function Cf(e) {
return e != null && typeof e.then == "function";
}
function wf(e) {
let t = /* @__PURE__ */ new Set(), n = {
deferreds: t,
settled: !1
};
return Promise.resolve(e).then((e) => {
for (let { resolve: n } of t) n(e);
t.clear(), n.settled = !0;
}, (e) => {
for (let { reject: n } of t) n(e);
t.clear(), n.settled = !0;
}), n;
}
var Tf = /* @__PURE__ */ new WeakMap();
function Ef(e) {
let t;
return new Promise((n, r) => {
t = {
resolve: n,
reject: r
};
for (let i of e) {
if (!Cf(i)) {
Promise.resolve(i).then(n, r);
continue;
}
let e = Tf.get(i);
e === void 0 ? (e = wf(i), e.deferreds.add(t), Tf.set(i, e)) : e.settled ? Promise.resolve(i).then(n, r) : e.deferreds.add(t);
}
}).finally(() => {
for (let n of e) if (Cf(n)) {
let e = Tf.get(n);
e && e.deferreds.delete(t);
}
});
}
// ../../../node_modules/.pnpm/@repeaterjs+repeater@3.1.0/node_modules/@repeaterjs/repeater/src/combinators.js
function Df(e, t) {
let n = [];
for (let r of e) r != null && typeof r[Symbol.asyncIterator] == "function" ? n.push(r[Symbol.asyncIterator]()) : r != null && typeof r[Symbol.iterator] == "function" ? n.push(r[Symbol.iterator]()) : n.push(async function* () {
if (t.yieldValues && (yield r), t.returnValues) return r;
}());
return n;
}
function Of(e) {
let t = Df(e, { returnValues: !0 });
return new Sf(async (e, n) => {
if (!t.length) {
n();
return;
}
let r;
try {
for (;;) {
let i = await Ef([...t.map((e) => Promise.resolve(e.next()).then((e) => (e.done && (n(), r === void 0 && (r = e)), e), (e) => {
n(e);
})), n]);
if (i === void 0 || i.done) break;
await e(i.value);
}
return r && r.value;
} finally {
n(), await Ef(t.map((e) => e.return && e.return()));
}
});
}
function kf(e) {
let t = Df(e, { yieldValues: !0 });
return new Sf(async (e, n) => {
if (!t.length) {
n();
return;
}
let r;
try {
return await Promise.all(t.map(async (t) => {
try {
for (;;) {
let i;
try {
i = await Ef([Promise.resolve(t.next()), n]);
} catch (e) {
n(e);
return;
}
if (i === void 0) return;
if (i.done) {
r = i;
return;
}
await e(i.value);
}
} finally {
t.return && await t.return();
}
})), r && r.value;
} finally {
n();
}
});
}
function Af(e) {
let t = Df(e, { returnValues: !0 });
return new Sf(async (e, n) => {
if (!t.length) return n(), [];
try {
for (;;) {
let r;
try {
r = await Ef([Promise.all(t.map((e) => e.next())), n]);
} catch (e) {
n(e);
return;
}
if (r === void 0) return;
let i = r.map((e) => e.value);
if (r.some((e) => e.done)) return i;
await e(i);
}
} finally {
n(), await Promise.all(t.map((e) => e.return && e.return()));
}
});
}
function jf(e) {
let t = Df(e, {
yieldValues: !0,
returnValues: !0
});
return new Sf(async (e, n) => {
if (!t.length) return n(), [];
try {
let r;
try {
r = await Ef([Promise.all(t.map((e) => e.next())), n]);
} catch (e) {
n(e);
return;
}
if (r === void 0) return;
let i = r.map((e) => e.value);
return r.every((e) => e.done) ? i : (await e(i.slice()), await Promise.all(t.map(async (t, a) => {
if (r[a].done) return r[a].value;
for (;;) {
let o;
try {
o = await Ef([Promise.resolve(t.next()), n]);
} catch (e) {
return n(e), r[a].value;
}
if (o === void 0) return r[a].value;
if (o.done) return o.value;
i[a] = o.value, await e(i.slice());
}
})));
} finally {
n(), await Promise.all(t.map((e) => e.return && e.return()));
}
});
}
// ../../../node_modules/.pnpm/@repeaterjs+repeater@3.1.0/node_modules/@repeaterjs/repeater/src/index.js
var Mf = class extends Sf {
static race = Of;
static merge = kf;
static zip = Af;
static latest = jf;
};
// ../../../node_modules/.pnpm/meros@1.3.2_@types+node@26.6.6/node_modules/meros/browser/index.mjs
async function Nf(e, t) {
if (!e.ok || !e.body || e.bodyUsed) return e;
let n = e.headers.get("content-type");
if (!n || !~n.indexOf("multipart/")) return e;
let r = n.indexOf("boundary="), i = "-";
if (~r) {
let e = r + 9, t = n.indexOf(";", e);
i = n.slice(e, t > -1 ? t : void 0).trim().replace(/"/g, "");
}
return async function* (e, t, n) {
let r, i, a, o = new TextDecoder("utf8"), s = e.getReader(), c = !n || !n.multiple, l = t.length, u = "", d = [];
try {
let e;
e: for (; !(e = await s.read()).done;) {
let n = o.decode(e.value, { stream: !0 });
r = u.length, u += n;
let s = n.indexOf(t);
for (~s ? r += s : r = u.indexOf(t), d = []; ~r;) {
let e = u.slice(0, r), n = u.slice(r + l);
if (i) {
let t = e.indexOf("\r\n\r\n") + 4, r = e.lastIndexOf("\r\n", t), i = !1, o = e.slice(t, r > -1 ? void 0 : r), s = String(e.slice(0, t)).trim().split("\r\n"), l = {}, u = s.length;
for (; a = s[--u]; a = a.split(": "), l[a.shift().toLowerCase()] = a.join(": "));
if (a = l["content-type"], a && ~a.indexOf("application/json")) try {
o = JSON.parse(o), i = !0;
} catch {}
if (a = {
headers: l,
body: o,
json: i
}, c ? yield a : d.push(a), n.slice(0, 2) === "--") break e;
} else t = "\r\n" + t, i = l += 2;
u = n, r = u.indexOf(t);
}
d.length && (yield d);
}
} finally {
d.length && (yield d), await s.cancel();
}
}(e.body, `--${i}`, t);
}
// ../../../node_modules/.pnpm/meros@1.3.2_@types+node@26.6.6/node_modules/meros/node/index.mjs
async function Pf(e, t) {
let n = e.headers["content-type"];
if (!n || !~n.indexOf("multipart/")) return e;
let r = n.indexOf("boundary="), i = "-";
if (~r) {
let e = r + 9, t = n.indexOf(";", e);
i = n.slice(e, t > -1 ? t : void 0).trim().replace(/"/g, "");
}
return async function* (e, t, n) {
let r, i, a, o = !n || !n.multiple, s = Buffer.byteLength(t), c = Buffer.alloc(0), l = [];
e: for await (let n of e) {
r = c.byteLength, c = Buffer.concat([c, n]);
let e = n.indexOf(t);
for (~e ? r += e : r = c.indexOf(t), l = []; ~r;) {
let e = c.subarray(0, r), n = c.subarray(r + s);
if (i) {
let t = e.indexOf("\r\n\r\n") + 4, r = e.lastIndexOf("\r\n", t), i = !1, s = e.subarray(t, r > -1 ? void 0 : r), c = String(e.subarray(0, t)).trim().split("\r\n"), u = {}, d = c.length;
for (; a = c[--d]; a = a.split(": "), u[a.shift().toLowerCase()] = a.join(": "));
if (a = u["content-type"], a && ~a.indexOf("application/json")) try {
s = JSON.parse(String(s)), i = !0;
} catch {}
if (a = {
headers: u,
body: s,
json: i
}, o ? yield a : l.push(a), n[0] === 45 && n[1] === 45) break e;
} else t = "\r\n" + t, i = s += 2;
c = n, r = c.indexOf(t);
}
l.length && (yield l);
}
l.length && (yield l);
}(e, `--${i}`, t);
}
// ../../../node_modules/.pnpm/@graphql-tools+executor-http@4.0.0_@types+node@26.6.6_graphql@17.1.0/node_modules/@graphql-tools/executor-http/dist/index.js
function Ff(e) {
if (typeof e != "object" || !e) return !1;
let t = Object.getPrototypeOf(e);
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
}
function If(e, t, n = "") {
if (!arguments.length) throw TypeError("Argument 1 `value` is required.");
if (typeof t != "function") throw TypeError("Argument 2 `isExtractable` must be a function.");
if (typeof n != "string") throw TypeError("Argument 3 `path` must be a string.");
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
function a(e, n, o) {
if (t(e)) {
let t = i.get(e);
return t ? t.push(n) : i.set(e, [n]), null;
}
let s = Array.isArray(e) || typeof FileList < "u" && e instanceof FileList, c = Ff(e);
if (s || c) {
let t = r.get(e), i = !t;
if (i && (t = s ? [] : e instanceof Object ? {} : Object.create(null), r.set(e, t)), !o.has(e)) {
let r = n ? `${n}.` : "", c = new Set(o).add(e);
if (s) {
let n = 0;
for (let o of e) {
let e = a(o, r + n++, c);
i && t.push(e);
}
} else for (let n in e) {
let o = a(e[n], r + n, c);
i && (t[n] = o);
}
}
return t;
}
return e;
}
return {
clone: a(e, n, /* @__PURE__ */ new Set()),
files: i
};
}
function Lf(e) {
return typeof File < "u" && e instanceof File || typeof Blob < "u" && e instanceof Blob;
}
function Rf(e) {
return typeof e.createReadStream == "function";
}
function zf(e) {
let t = [], n = e[Symbol.asyncIterator]();
function r() {
return Zc(() => n.next(), ({ value: e, done: n }) => (e != null && t.push(e), n ? t : r()));
}
return r();
}
function Bf(e, { File: t = nf.File, FormData: n = nf.FormData }) {
if (!e.variables) return JSON.stringify(e);
let { clone: r, files: i } = If(Object.assign({}, e.variables), ((e) => Lf(e) || e?.promise || kd(e) || e?.then || typeof e?.arrayBuffer == "function"), "variables");
if (i.size === 0) return JSON.stringify(e);
let a = {}, o = [], s = 0;
for (let [e, t] of i) a[s] = t, o[s] = e, s++;
let c = new n();
c.append("operations", JSON.stringify({
...e,
variables: r
})), c.append("map", JSON.stringify(a));
function l(e, n) {
let r = n.toString();
if (e != null) return Zc(() => e?.promise || e, (e) => {
let n = e.filename || e.name || e.path || `blob-${r}`;
if (Vf(e)) c.append(r, e, n);
else if (kd(e)) return Zc(() => zf(e), (e) => {
let i = new Uint8Array(e);
c.append(r, new t([i], n), n);
});
else if (Rf(e)) return Zc(() => zf(e.createReadStream()), (i) => {
let a = new Uint8Array(i);
c.append(r, new t([a], n, { type: e.mimetype }), n);
});
else c.append(r, new t([e], n), n);
});
}
let u = [];
for (let e in o) {
let t = o[e], n = l(t, Number(e));
Yc(n) && u.push(n);
}
return u.length > 0 ? Promise.all(u).then(() => c) : c;
}
function Vf(e) {
return typeof e.arrayBuffer == "function";
}
function Hf(e, t) {
return e instanceof P ? e : e?.name === "TimeoutError" ? new P(e.message, {
extensions: {
http: {
status: 504,
...t?.http || {}
},
code: "TIMEOUT_ERROR",
...t || {}
},
originalError: e
}) : new P(e.message, {
extensions: t,
originalError: e
});
}
function Uf(e, t) {
return { errors: [Hf(e, t)] };
}
function Wf(e) {
let t = new nf.TextEncoder().encode(e);
return Zc(() => crypto.subtle.digest("SHA-256", t), (e) => {
let t = "";
for (let n of new Uint8Array(e)) t += n.toString(16).padStart(2, "0");
return t;
});
}
var Gf = "\n\n";
function Kf(e) {
return e && typeof e.getReader == "function";
}
function qf(e, t, n) {
let r = e.body;
if (!Kf(r)) throw Error("Response body is expected to be a readable stream but got; " + Ol(r));
return new Mf((e, i) => {
let a = new nf.TextDecoder(), o = r.getReader(), s = !1;
o.closed.then(() => s = !0).catch((e) => s = e);
let c = () => {
o.cancel(n?.reason).catch(() => {});
};
n && (n.aborted ? c() : n.addEventListener("abort", c, { once: !0 })), i.then(() => {
n?.removeEventListener("abort", c), t?.abort(), r.locked && o.cancel().catch(() => {});
}).catch((e) => {
n?.removeEventListener("abort", c), o.cancel(e);
});
let l = "";
async function u() {
if (n?.aborted) return await e(Uf(n.reason)), i();
if (!r?.locked) return i();
let t, c;
try {
let e = await o.read();
t = e.done, c = e.value;
} catch (t) {
if (n?.aborted) return await e(Uf(n.reason)), i();
let r = t instanceof Error ? t : Error(String(t));
return await e({ errors: [new P(r.message, { originalError: r })] }), i();
}
if (n?.aborted) return await e(Uf(n.reason)), i();
if (t) return i();
for (l += typeof c == "string" ? c : a.decode(c);;) {
let t = l.indexOf(Gf);
if (t === -1) break;
let n = l.slice(0, t);
l = l.slice(t + 2);
let r = n.split("\n").filter((e) => e.startsWith("data:")).map((e) => e.slice(5).trim()).join("\n");
if (r) {
let t = JSON.parse(r);
await e(t.payload || t);
}
if (n.split("event:")[1]?.trim().split("\n")[0]?.trim() === "complete") return i();
}
return s ? i() : u();
}
return u();
});
}
function Jf(e) {
return typeof e == "object" && !!e && "pipe" in e;
}
async function Yf(e, t) {
let n = t?.mergeIncremental !== !1, r = e.body, i = e.headers.get("content-type") || "", a;
if (Jf(r)) {
r.headers = { "content-type": i };
let e = await Pf(r);
"next" in e && (a = e);
} else {
let t = await Nf(e);
"next" in t && (a = t);
}
if (a == null) return {};
if (!n) return il(a, (e) => e.json ? e.body : {});
let o = {};
return il(a, (e) => {
if (e.json) {
let t = e.body;
Pd({
incrementalResult: t,
executionResult: o
}), t.hasNext != null && (o.hasNext = t.hasNext);
}
return o;
});
}
var Xf = yl(function(e) {
return e.operation === "query" && e.directives?.some((e) => e.name.value === "live");
});
function Zf({ baseUrl: e = "", body: t }) {
let n = "https://dummyhostname.com", r = e.startsWith("http") ? e : e?.startsWith("/") ? `${n}${e}` : `${n}/${e}`, i = new URL(r);
return t.query && i.searchParams.set("query", t.query), t.variables && Object.keys(t.variables).length > 0 && i.searchParams.set("variables", JSON.stringify(t.variables)), t.operationName && i.searchParams.set("operationName", t.operationName), t.extensions && i.searchParams.set("extensions", JSON.stringify(t.extensions)), i.toString().replace(n, "");
}
function Qf(e) {
let t = e?.print ?? pl, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Map(), a, o = (o, s) => {
if (o.context?.request?.cf || (a ||= new AbortController()), a?.signal.aborted) return Uf(a.signal.reason);
let c = o.extensions?.fetch ?? e?.fetch ?? nf.fetch, l = o.extensions?.method || e?.method, u = Od(o), d = u.operation;
d === "query" && (e?.useGETForQueries || o.extensions?.useGETForQueries || (e?.useGETForHashedQueries || o.extensions?.useGETForHashedQueries) && s) && (l = "GET");
let f = o.incrementalSpec ?? e?.incrementalSpec, p = `application/graphql-response+json, application/json, ${f == null ? Hd() : Hd(Bd.find((e) => e.id === f) ?? Vd(Bd), { echoSpec: !0 })}`, m;
d === "subscription" || Xf(u) ? (l ||= "GET", p = "text/event-stream", m = new AbortController()) : l ||= "POST";
let h;
o.extensions?.endpoint && (typeof o.extensions.endpoint == "string" && (h = o.extensions.endpoint), typeof o.extensions.endpoint == "function" && (h = o.extensions.endpoint(o))), h || (typeof e?.endpoint == "string" && (h = e.endpoint), typeof e?.endpoint == "function" && (h = e.endpoint(o))), h ||= "/graphql";
let g = !1, _ = { accept: p };
if (e?.headers && (g = !0, Object.assign(_, typeof e?.headers == "function" ? e.headers(o) : e?.headers)), o.extensions?.headers) {
g = !0;
let { headers: e, ...t } = o.extensions;
Object.assign(_, e), o.extensions = t;
}
let v = [];
a?.signal && v.push(a.signal);
let y = o.signal || o.info?.signal;
if (y) {
if (y.aborted) return Uf(y.reason);
v.push(y);
}
if (e?.timeout) {
let t = typeof e.timeout == "number" ? e.timeout : e.timeout(o);
t && v.push(AbortSignal.timeout(t));
}
m && v.push(m.signal);
let b = v.length ? Qd(v) : void 0, x = { request: { method: l } }, S = t(o.document), C = function() {
return ml({
executionRequest: o,
excludeQuery: s,
printFn: t
});
};
e?.apq && (C = function() {
return Zc(() => Wf(S), (e) => {
let n = o.extensions || {};
return n.persistedQuery = {
version: 1,
sha256Hash: e
}, ml({
executionRequest: {
...o,
extensions: n
},
excludeQuery: s,
printFn: t
});
});
});
function w(e) {
return x.code = "SUBREQUEST_HTTP_ERROR", e.name === "AggregateError" ? { errors: e.errors.map((e) => $f(e, {
signal: b,
endpoint: h,
upstreamErrorExtensions: x
})) } : { errors: [$f(e, {
signal: b,
endpoint: h,
upstreamErrorExtensions: x
})] };
}
function T(t, a, o) {
if (e?.deduplicateInflightRequests === !1 || d !== "query") return s();
function s() {
let n = Zc(() => c(t.url, {
method: t.method,
headers: t.headers,
body: t.body,
credentials: t.credentials,
signal: t.signal
}, a, o), (t) => Zc(() => {
if (x.response ||= {}, x.response.status = t.status, x.response.statusText = t.statusText, e?.exposeHTTPDetailsInExtensions ? x.response.headers = Object.fromEntries(t.headers.entries()) : Object.defineProperty(x.response, "headers", { get() {
return Object.fromEntries(t.headers.entries());
} }), e?.retry != null && !t.status.toString().startsWith("2")) throw Error(t.statusText || `Upstream HTTP Error: ${t.status}`);
let n = t.headers.get("content-type");
return n?.includes("text/event-stream") ? qf(t, m, b) : n?.includes("multipart/mixed") ? Yf(t, { mergeIncremental: e?.mergeIncremental }) : t.text();
}, (e) => {
if (typeof e == "string") {
if (x.response ||= {}, x.response.body = e, e) try {
let t = JSON.parse(e);
if (x.response.body = t, t.data == null && (t.errors == null || t.errors.length === 0)) {
let t = `Unexpected empty "data" and "errors" fields in result: ${e}`;
return x.code = "RESPONSE_VALIDATION_FAILED", { errors: [new P(t, {
originalError: Error(t),
extensions: x
})] };
}
return Array.isArray(t.errors) ? {
...t,
errors: t.errors.map(({ message: e, ...t }) => new P(e, t))
} : t;
} catch (t) {
return x.code = "RESPONSE_VALIDATION_FAILED", { errors: [new P(`Unexpected response: ${JSON.stringify(e)}`, {
extensions: x,
originalError: t
})] };
}
{
let e = "No response returned";
return x.code = "RESPONSE_VALIDATION_FAILED", { errors: [new P(e, {
extensions: x,
originalError: /* @__PURE__ */ Error(e)
})] };
}
}
return e;
}, w), w);
return e?.exposeHTTPDetailsInExtensions ? Zc(() => n, (e) => (x.response?.body && (x.response.body = structuredClone(x.response.body)), e.extensions ||= {}, e.extensions = Object.assign(e.extensions, x), e)) : n;
}
if (typeof t.body == "object") return s();
let l = i;
if (a != null && e?.deduplicateInflightRequestsPerContext !== !1) {
if (Object(a) !== a) return s();
let e = r.get(a);
e || (e = /* @__PURE__ */ new Map(), r.set(a, e)), l = e;
}
let u = `${t.url}|${t.method}`;
t.body && (u += `|${t.body}`), g && (u += `|${JSON.stringify(t.headers)}`);
let f = l.get(u);
return f && n.add(f), f || (f = s(), Yc(f) && (l.set(u, f), f.finally(() => {
l.delete(u);
}))), Zc(() => f, (e) => {
if (e == null || !e.data || !n.has(f)) return e;
let t = { ...e };
return e.data && (t.data = structuredClone(e.data)), t;
});
}
return Zc(() => C(), (t) => {
switch (l) {
case "GET": {
(e?.useContentTypeForGETRequests || o.extensions?.useContentTypeForGETRequests) && !_["content-type"] && (_["content-type"] = "application/json");
let n = Zf({
baseUrl: h,
body: t
}), r = {
url: n,
method: "GET",
headers: _,
signal: b,
credentials: e?.credentials
};
return x.request.url = n, T(r, o.context, o.info);
}
case "POST": return x.request.body = t, Zc(() => Bf(t, {
File: e?.File,
FormData: e?.FormData
}), (t) => (typeof t == "string" && !_["content-type"] && (x.request.body = t, _["content-type"] = "application/json"), T({
url: h,
method: "POST",
body: t,
headers: _,
credentials: e?.credentials,
signal: b
}, o.context, o.info)), w);
}
}, w);
}, s = o;
if (e?.apq != null && (s = function(e) {
return Zc(() => o(e, !0), (t) => t.errors?.some((e) => e.extensions.code === "PERSISTED_QUERY_NOT_FOUND" || e.message === "PersistedQueryNotFound") ? o(e, !1) : t);
}), e?.retry != null) {
let t = s;
s = function(n) {
let r, i = 0;
function o() {
return a?.signal.aborted ? Uf(a.signal.reason) : (i++, i > e.retry ? r ?? { errors: [new P("No response returned from fetch")] } : Zc(() => t(n), (e) => (r = e, r?.errors?.length ? o() : r)));
}
return o();
};
}
return Object.defineProperties(s, {
[Ud.dispose]: { get() {
return function() {
a?.abort(e?.getDisposeReason?.()), a = void 0;
};
} },
[Ud.asyncDispose]: { get() {
return function() {
a?.abort(e?.getDisposeReason?.()), a = void 0;
};
} }
}), s;
}
function $f(e, { signal: t, endpoint: n, upstreamErrorExtensions: r }) {
return typeof e == "string" ? new P(e, { extensions: r }) : e.name === "GraphQLError" ? e : e.name === "TypeError" && e.message === "fetch failed" ? new P(`fetch failed to ${n}`, {
extensions: r,
originalError: e
}) : e.name === "AbortError" ? Hf(t?.reason || e, r) : e.message ? new P(e.message, {
extensions: r,
originalError: e
}) : new P("Unknown error", {
extensions: r,
originalError: e
});
}
// ../../../node_modules/.pnpm/@graphql-tools+executor-legacy-ws@2.0.10_graphql@17.1.0/node_modules/@graphql-tools/executor-legacy-ws/esm/index.js
var ep;
(function(e) {
e.CONNECTION_INIT = "connection_init", e.CONNECTION_ACK = "connection_ack", e.CONNECTION_ERROR = "connection_error", e.CONNECTION_KEEP_ALIVE = "ka", e.START = "start", e.STOP = "stop", e.CONNECTION_TERMINATE = "connection_terminate", e.DATA = "data", e.ERROR = "error", e.COMPLETE = "complete";
})(ep ||= {});
function tp(e) {
return typeof e == "object" && !!e && !Array.isArray(e);
}
function np(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = 0;
function a() {
let e = n?.connectionParams;
if (typeof e == "function") {
let t = e();
return tp(t) ? { ...t } : {};
}
return tp(e) ? { ...e } : {};
}
function o(e) {
let t = e.extensions?.connectionParams;
return tp(t) ? { ...t } : {};
}
let s = function(s) {
let c = {
...a(),
...o(s)
};
i += 1;
let l = `${i.toString(36)}-${Math.random().toString(36).slice(2)}`;
return dd({ subscribe(i) {
let a = !1, o = new t(e, "graphql-ws", {
followRedirects: !0,
headers: n?.headers,
rejectUnauthorized: n?.rejectUnauthorized ?? !0,
skipUTF8Validation: !0
});
function u(e) {
a || (a = !0, r.delete(f), o.readyState === qc.OPEN && (e && o.send(JSON.stringify({
type: ep.STOP,
id: l
})), o.send(JSON.stringify({ type: ep.CONNECTION_TERMINATE }))), o.terminate());
}
function d(e) {
a || (u(!1), i.error(e), i.complete());
}
function f() {
a || (u(!1), i.complete());
}
return r.add(f), o.onopen = () => {
a || o.send(JSON.stringify({
type: ep.CONNECTION_INIT,
payload: c
}), (e) => {
e && d(e);
});
}, o.onerror = (e) => {
d(e.error);
}, o.onclose = () => {
a || (a = !0, r.delete(f), i.complete());
}, o.onmessage = (e) => {
if (a) return;
let t;
try {
t = JSON.parse(e.data.toString("utf-8"));
} catch (e) {
d(e);
return;
}
switch (t.type) {
case ep.CONNECTION_ACK:
o.send(JSON.stringify({
type: ep.START,
id: l,
payload: {
query: O(s.document),
variables: s.variables,
operationName: s.operationName
}
}), (e) => {
e && d(e);
});
break;
case ep.CONNECTION_ERROR:
d(t.payload);
break;
case ep.CONNECTION_KEEP_ALIVE: break;
case ep.DATA:
if (t.id !== l) break;
i.next(t.payload);
break;
case ep.ERROR:
if (t.id !== l) break;
d(t.payload);
break;
case ep.COMPLETE:
if (t.id !== l) break;
u(!1), i.complete();
}
}, { unsubscribe: () => {
u(!0);
} };
} });
};
return s[Symbol.dispose] = () => {
for (let e of [...r]) e();
}, s;
}
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/coerceError.js
function rp(e) {
if (e instanceof Error) return e;
if (typeof e == "object" && e && "message" in e && typeof e.message == "string") {
let t;
"cause" in e && (t = { cause: e.cause });
let n = Error(e.message, t);
return "stack" in e && typeof e.stack == "string" && (n.stack = e.stack), "name" in e && typeof e.name == "string" && (n.name = e.name), n;
}
return Error(String(e));
}
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/compactExecutionResultMap.js
var ip = function() {};
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/flattenAsyncIterable.js
function ap(e) {
let t = [];
for (let n of e) Yc(n) && t.push(n);
return t.length === 0 ? tl() : t.length === 1 ? t[0].then(() => {}) : Promise.all(t).then(() => {});
}
function op(e) {
let t = e[Symbol.asyncIterator](), n, r, i = !1;
async function a() {
if (i) return {
value: void 0,
done: !0
};
try {
if (!n) {
if (r) return await r, await a();
let e;
r = new Promise((t) => {
e = t;
});
let o = await t.next();
return o.done ? (i = !0, await a()) : (n = o.value[Symbol.asyncIterator](), r = void 0, e(), await a());
}
let e = n, o = await n.next();
return o.done ? (n === e && (n = void 0), await a()) : o;
} catch (e) {
throw i = !0, e;
}
}
return {
next: a,
return() {
return i = !0, ap([n?.return?.(), t.return?.()]).then(() => ({
value: void 0,
done: !0
}));
},
throw(e) {
return i = !0, ap([n?.throw?.(e), t.throw?.(e)]).then(() => {
throw e;
});
},
[Symbol.asyncIterator]() {
return this;
},
[Ud.asyncDispose]() {
return i = !0, ap([n?.[Ud.asyncDispose]?.(), t?.[Ud.asyncDispose]?.()]);
}
};
}
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/incremental.js
function sp() {
return {
nextId: 0,
ids: /* @__PURE__ */ new Map(),
announced: /* @__PURE__ */ new Set()
};
}
var cp = class {
path;
label;
parentContext;
hasIterator;
iteratorCompleted;
openCount;
constructor(e) {
this.path = jd(e.path), this.label = e.label, this.parentContext = e.parentContext, this.hasIterator = e.hasIterator === !0, this.iteratorCompleted = !1, this.openCount = 0;
}
retain() {
this.openCount++;
}
release() {
this.openCount--;
}
isStillPending() {
return this.openCount > 0 || this.hasIterator && !this.iteratorCompleted;
}
};
function lp(e, t) {
if (e.incrementalSpec === "v0.2") return new cp(t);
}
function up(e, t) {
e.subsequentPayloads.delete(t), t.type === "stream" && t.streamGroup?.release();
}
function dp(e, t) {
if (t.length > e.length) return !1;
for (let n = 0; n < t.length; n++) if (e[n] !== t[n]) return !1;
return !0;
}
function fp(e, t) {
if (t == null || t.length === 0) return !1;
for (let n of t) if (dp(e, n)) return !0;
return !1;
}
function pp(e, t) {
for (let n of t) if (e.length > n.length && dp(e, n)) return !0;
return !1;
}
function mp(e, t) {
for (let n of t) if (e.length === n.length && dp(e, n)) return !0;
return !1;
}
function hp(e) {
return e == null || typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0;
}
function gp(e, t, n) {
if (n == null || n.length === 0 || typeof e != "object" || !e) return e;
if (Array.isArray(e)) return e.map((e, r) => {
let i = [...t, r];
return fp(i, n) ? null : gp(e, i, n);
});
let r = {};
for (let [i, a] of Object.entries(e)) {
let e = [...t, i];
if (!pp(e, n)) {
if (mp(e, n)) {
if (a != null) {
Array.isArray(a) && a.length === 0 && (r[i] = a);
continue;
}
r[i] = null;
} else r[i] = gp(a, e, n);
}
}
return r;
}
function _p(e, t) {
let n = e.publisher;
return n != null && n.announced.has(Cp(t));
}
function vp(e, t) {
t.cancelled = !0, xp(t) && t.iterator?.return && t.iterator.return().catch(() => {}), t.isCompleted || (xp(t) ? t.addItems(null) : t.addData(null)), e.incrementalSpec === "v0.2" && _p(e, t) || up(e, t);
}
var yp = class {
type;
errors;
label;
path;
promise;
data;
parentContext;
deliveryParent;
deferUsage;
isCompleted;
cancelled;
_exeContext;
_resolve;
constructor(e) {
this.type = "defer", this.label = e.label, this.path = jd(e.path), this.parentContext = e.parentContext, this.deliveryParent = e.deliveryParent ?? e.parentContext, this.deferUsage = e.deferUsage, this.errors = [], this._exeContext = e.exeContext, this._exeContext.subsequentPayloads.add(this), this.isCompleted = !1, this.cancelled = !1, this.data = null, this.promise = new Promise((e) => {
this._resolve = (t) => {
e(t);
};
}).then((e) => {
this.data = e, this.isCompleted = !0;
});
}
addData(e) {
let t = this.parentContext?.promise;
t ? this._resolve?.(t.then(() => e)) : this._resolve?.(e);
}
}, bp = class {
type;
errors;
label;
path;
items;
promise;
parentContext;
iterator;
isCompletedIterator;
isCompleted;
cancelled;
streamGroup;
_exeContext;
_resolve;
constructor(e) {
this.type = "stream", this.items = null, this.label = e.label, this.path = jd(e.path), this.parentContext = e.parentContext, this.iterator = e.iterator, this.streamGroup = e.streamGroup, this.errors = [], this._exeContext = e.exeContext, this._exeContext.subsequentPayloads.add(this), this.streamGroup?.retain(), this.isCompleted = !1, this.cancelled = !1, this.items = null, this.promise = new Promise((e) => {
this._resolve = (t) => {
e(t);
};
}).then((e) => {
this.items = e, this.isCompleted = !0;
});
}
addItems(e) {
let t = this.parentContext?.promise;
t ? this._resolve?.(t.then(() => e)) : this._resolve?.(e);
}
setIsCompletedIterator() {
this.isCompletedIterator = !0, this.streamGroup && (this.streamGroup.iteratorCompleted = !0);
}
};
function xp(e) {
return e.type === "stream";
}
function Sp(e, t) {
let n = e.ids.get(t);
return n === void 0 && (n = String(e.nextId++), e.ids.set(t, n)), n;
}
function Cp(e) {
return e.type === "stream" ? e.streamGroup ?? e : e;
}
function wp(e) {
return e.type === "stream" ? e.streamGroup?.parentContext : e.deliveryParent ?? e.parentContext;
}
function Tp(e, t) {
let n = wp(e);
return n == null || t.announced.has(Cp(n));
}
function Ep(e, t) {
let n = {
id: Sp(e, Cp(t)),
path: t.type === "stream" ? t.streamGroup?.path ?? t.path : t.path
}, r = t.type === "stream" ? t.streamGroup?.label : t.label;
return r !== void 0 && (n.label = r), n;
}
function Dp(e, t, n) {
if (e.cancelled) return;
let r = Cp(e);
t.announced.has(r) || Tp(e, t) && (n.push(Ep(t, e)), t.announced.add(r));
}
function Op(e) {
let t = e.publisher;
if (t == null) return [];
let n = [];
for (let r of e.subsequentPayloads) wp(r) ?? Dp(r, t, n);
return n;
}
function kp(e) {
let t = [];
for (let n of e.subsequentPayloads) {
let r = {};
if (n.isCompleted && (up(e, n), !n.cancelled)) {
if (xp(n)) {
let e = n.items;
if (n.isCompletedIterator) continue;
r.items = e;
} else {
let t = gp(n.data, n.path, e.nulledPaths);
if (hp(t) && n.errors.length === 0) continue;
r.data = t ?? null;
}
r.path = n.path, n.label && (r.label = n.label), n.errors.length > 0 && (r.errors = n.errors), t.push(r);
}
}
return t;
}
function Ap(e, t) {
let n = e.publisher;
if (n == null) return { hasNext: e.subsequentPayloads.size > 0 };
let r = [], i = [], a = [], o;
do {
o = r.length;
for (let e of t) Dp(e, n, r);
for (let t of e.subsequentPayloads) Dp(t, n, r);
} while (r.length !== o);
let s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set();
for (let r of t) {
if (r.type === "defer") {
if (!n.announced.has(r)) continue;
let t = Sp(n, r);
if (r.cancelled) {
a.push({ id: t });
continue;
}
let o = gp(r.data, r.path, e.nulledPaths);
if (r.data == null && r.errors.length > 0 || hp(o) && r.errors.length > 0) a.push({
id: t,
errors: r.errors
});
else if (hp(o) && r.errors.length === 0) a.push({ id: t });
else {
let e = {
id: t,
data: o ?? null
};
r.errors.length > 0 && (e.errors = r.errors), i.push(e), a.push({ id: t });
}
continue;
}
if (r.isCompletedIterator) {
r.streamGroup && l.add(r.streamGroup);
continue;
}
let t = r.streamGroup;
if (t == null || !n.announced.has(t)) continue;
let o = s.get(t);
o ?? (o = {
items: [],
errors: [],
failed: !1
}, s.set(t, o)), r.items == null ? (o.failed = !0, o.errors.push(...r.errors)) : (o.items.push(...r.items), r.errors.length > 0 && o.errors.push(...r.errors));
}
for (let [e, t] of s) {
let r = Sp(n, e);
if (t.failed) {
let e = { id: r };
t.errors.length > 0 && (e.errors = t.errors), a.push(e);
continue;
}
let o = {
id: r,
items: t.items
};
t.errors.length > 0 && (o.errors = t.errors), i.push(o), e.isStillPending() || c.add(e);
}
for (let e of l) n.announced.has(e) && !e.isStillPending() && !s.has(e) && c.add(e);
for (let e of c) a.push({ id: Sp(n, e) });
let u = e.subsequentPayloads.size > 0;
if (!u) {
for (let e of s.keys()) if (e.isStillPending()) {
u = !0;
break;
}
}
let d = { hasNext: u };
return r.length > 0 && (d.pending = r), i.length > 0 && (d.incremental = i), a.length > 0 && (d.completed = a), d;
}
function jp(e) {
let t = !1, n = e.incrementalSpec === "v0.2", r = () => {
t = !0, e.detachSignalListener?.();
};
async function i() {
if (t) return {
value: void 0,
done: !0
};
let a = Array.from(e.subsequentPayloads).map((e) => e.promise);
if (a.length === 0) return r(), {
value: { hasNext: !1 },
done: !1
};
if (e.signalPromise ? await Promise.race([e.signalPromise, ...a]) : await Promise.race(a), t) return {
value: void 0,
done: !0
};
if (n) {
let t = [];
for (let n of e.subsequentPayloads) n.isCompleted && (t.push(n), up(e, n));
let n = Ap(e, t);
return !(n.hasNext || n.incremental != null || n.pending != null || n.completed != null) && n.hasNext || !n.incremental && !n.pending && !n.completed && n.hasNext ? i() : (n.hasNext || r(), {
value: n,
done: !1
});
}
let o = kp(e), s = e.subsequentPayloads.size > 0;
return !o.length && s ? i() : (s || r(), {
value: o.length ? {
incremental: o,
hasNext: s
} : { hasNext: s },
done: !1
});
}
function a() {
let t = [];
return e.subsequentPayloads.forEach((e) => {
if (xp(e) && e.iterator?.return) {
let n = e.iterator.return();
Yc(n) && t.push(n);
}
}), t.length === 0 ? tl() : t.length === 1 ? t[0].then(() => {}) : Promise.all(t).then(() => {});
}
return {
[Symbol.asyncIterator]() {
return this;
},
next: i,
return() {
return r(), a().then(() => ({
value: void 0,
done: !0
}));
},
throw(e) {
return r(), a().then(() => {
throw e;
});
},
[Ud.asyncDispose]() {
return r(), a();
}
};
}
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/isSameSet.js
function Mp(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/getBySet.js
function Np(e, t) {
for (let n of e.keys()) if (Mp(n, t)) return e.get(n);
}
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/incrementalCollect.js
var Pp = class extends Map {
add(e, t) {
let n = this.get(e);
n === void 0 ? this.set(e, [t]) : n.push(t);
}
};
function Fp(e, t, n, r, i, a) {
let o = new Pp(), s = [];
return Lp({
schema: e,
fragments: t,
variableValues: n,
runtimeType: r,
visitedFragmentNames: /* @__PURE__ */ new Map()
}, i, o, s, a), {
groupedFieldSet: o,
newDeferUsages: s
};
}
function Ip(e, t, n, r, i, a, o) {
let s = new Pp(), c = [], l = {
schema: e,
fragments: t,
variableValues: n,
runtimeType: r,
visitedFragmentNames: /* @__PURE__ */ new Map()
};
for (let e of i) if (e.selectionSet) {
let t = o?.has(e) ? o.get(e) : a;
Lp(l, e.selectionSet, s, c, t);
}
return {
groupedFieldSet: s,
newDeferUsages: c
};
}
function Lp(e, n, r, i, a) {
let { schema: o, fragments: s, variableValues: c, runtimeType: l, visitedFragmentNames: u } = e;
for (let d of n.selections) switch (d.kind) {
case w:
if (!Sd(c, d)) continue;
r.add(wd(d), {
node: d,
deferUsage: a
});
break;
case t: {
if (!Sd(c, d) || !Cd(o, d, l)) continue;
let t = Rp(c, d, a);
t ? (i.push(t), Lp(e, d.selectionSet, r, i, t)) : Lp(e, d.selectionSet, r, i, a);
break;
}
case ae: {
let t = d.name.value;
if (!Sd(c, d)) continue;
let n = s[t];
if (!n || !Cd(o, n, l)) continue;
let f = Rp(c, d, a), p = u.get(t), m;
if (f) {
if (p !== void 0) continue;
u.set(t, !0), i.push(f), m = f;
} else {
if (p === !1) continue;
u.set(t, !1), m = a;
}
Lp(e, n.selectionSet, r, i, m);
break;
}
}
}
function Rp(e, t, n) {
let r = hd(pd, t, e);
if (r && r.if !== !1) return {
label: typeof r.label == "string" ? r.label : void 0,
parentDeferUsage: n
};
}
function zp(e, t = /* @__PURE__ */ new Set()) {
let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
for (let [i, a] of e) {
let e = Bp(a);
if (Mp(e, t)) {
n.set(i, a);
continue;
}
let o = Np(r, e);
o === void 0 && (o = /* @__PURE__ */ new Map(), r.set(e, o)), o.set(i, a);
}
return {
groupedFieldSet: n,
newGroupedFieldSets: r
};
}
function Bp(e) {
let t = /* @__PURE__ */ new Set();
for (let n of e) {
let e = n.deferUsage;
if (e === void 0) return t.clear(), t;
t.add(e);
}
for (let e of t) {
let n = e.parentDeferUsage;
for (; n !== void 0;) {
if (t.has(n)) {
t.delete(e);
break;
}
n = n.parentDeferUsage;
}
}
return t;
}
function Vp(e, t) {
let n = /* @__PURE__ */ new Map();
for (let [r, i] of e) n.set(r, i.map((e) => (t?.set(e.node, e.deferUsage), e.node)));
return n;
}
function Hp(e) {
for (let t of e) if (t.parentDeferUsage == null || !e.has(t.parentDeferUsage)) return t;
}
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/invariant.js
function Up(e, t) {
if (!e) throw Error(t ?? "Unexpected invariant triggered.");
}
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/promiseForObject.js
function Wp(e, t, n) {
t?.throwIfAborted();
let r = Object.setPrototypeOf(new ip(), null), i = [];
for (let t in e) {
let n = Zc(() => e[t], (e) => {
r[t] = e;
});
Yc(n) && (r[t] = void 0, i.push(n));
}
if (!i.length) return r;
let a = i.length === 1 ? i[0] : Promise.all(i);
return n ? Promise.race([n, a]).then(() => r) : a.then(() => r);
}
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/execute.js
var Gp = Object.freeze(Object.create(null)), Kp = Object.freeze({
coerced: Object.freeze(Object.create(null)),
sources: Object.freeze(Object.create(null))
}), qp = ei.major >= 17, Jp = Sl(function(e, t, n, r) {
return xd(e, t, Kp, n, r);
}), Yp = Sl(function(e, t, n, r) {
return Ed(e, t, Kp, n, r);
}), Xp = xl(function(e, t, n) {
return Ed(e.schema, e.fragments, e.variableValues, t, n);
});
function Zp(e, t, n) {
return e.collectFieldsDependsOnVariables ? xd(e.schema, e.fragments, e.variableValues, t, n) : Jp(e.schema, e.fragments, t, n);
}
function Qp(e, t, n) {
return e.collectFieldsDependsOnVariables ? Xp(e, t, n) : Yp(e.schema, e.fragments, t, n);
}
var $p = xl(function(e, t, n) {
return Ne(e, t, n);
});
function em(e, t, n) {
return e.args.length === 0 ? Gp : $p(e, t, qp ? n : n.coerced);
}
var tm = bl(function(e, t) {
let n = hd(md, e, t);
if (n && n.if !== !1) return Up(typeof n.initialCount == "number", "initialCount must be a number"), Up(n.initialCount >= 0, "initialCount must be a positive integer"), {
initialCount: n.initialCount,
label: typeof n.label == "string" ? n.label : void 0
};
});
function nm(e) {
let t = lm(e);
return "schema" in t ? rm(t) : { errors: t.map((e) => (Object.defineProperty(e, "extensions", { value: {
...e.extensions,
http: {
...e.extensions?.http || {},
status: 400
}
} }), e)) };
}
function rm(e) {
return e.signal?.throwIfAborted(), Zc(() => dm(e), (t) => {
let n = im(t, e.errors);
if (e.subsequentPayloads.size > 0) {
let t = {
...n,
hasNext: !0
};
return e.incrementalSpec === "v0.2" && (t.pending = Op(e)), {
initialResult: t,
subsequentResults: jp(e)
};
}
return e.detachSignalListener?.(), n;
}, (t) => (e.signal?.throwIfAborted(), e.nulledPaths ??= [], Zm(e, void 0, void 0), t.errors ? e.errors.push(...t.errors) : e.errors.push(t), e.detachSignalListener?.(), im(null, e.errors)));
}
function im(e, t) {
return t.length === 0 ? { data: e } : {
errors: t,
data: e
};
}
var am = /* @__PURE__ */ new WeakMap(), om = /* @__PURE__ */ new WeakMap();
function sm(e) {
let t = am.get(e);
if (t === void 0) {
t = Object.create(null);
for (let n of e.definitions) n.kind === "FragmentDefinition" && (t[n.name.value] = n);
am.set(e, t);
}
return t;
}
function cm(e) {
let t = om.get(e);
return t === void 0 && (t = _d(e), om.set(e, t)), t;
}
function lm(e) {
let { schema: t, document: n, rootValue: r, contextValue: i, variableValues: a, operationName: o, fieldResolver: s, typeResolver: c, subscribeFieldResolver: l, signal: u, schemaCoordinateInErrors: d, hideSuggestions: f, incrementalSpec: p = "v0.1" } = e;
u?.throwIfAborted(), ee(t);
let m = sm(n), h;
for (let e of n.definitions) switch (e.kind) {
case He: if (o == null) {
if (h !== void 0) return [new P("Must provide operation name if query contains multiple operations.", { extensions: { code: "OPERATION_RESOLUTION_FAILURE" } })];
h = e;
} else e.name?.value === o && (h = e);
}
if (h == null) return o == null ? [new P("Must provide an operation.", { extensions: { code: "OPERATION_RESOLUTION_FAILURE" } })] : [new P(`Unknown operation named "${o}".`, { extensions: { code: "OPERATION_RESOLUTION_FAILURE" } })];
/* c8 ignore next */
let g = h.variableDefinitions ?? [], _ = pt(t, g, a ?? {}, {
maxErrors: 50,
hideSuggestions: f ?? void 0
});
if (_.errors) return _.errors;
u?.throwIfAborted();
let v = qp ? _.variableValues : {
coerced: _.coerced,
sources: Object.create(null)
}, y = qp ? v : v.coerced, b, x = () => u, S = () => b ??= {
promiseAll: Promise.all.bind(Promise),
track: (e) => {
let t = i?.waitUntil;
if (typeof t == "function") for (let n of e) Yc(n) && t(n);
}
}, C, w, T, E;
if (u) {
let e, t, n = () => {
t &&= (u.removeEventListener("abort", t), void 0);
};
T = () => {
if (e) return;
e = /* @__PURE__ */ new Set();
let r = Promise.withResolvers();
w = r.promise, w.catch(() => {
for (let t of e) t();
e.clear();
}), u.aborted ? r.reject(u.reason) : (t = () => {
r.reject(u.reason), n();
}, u.addEventListener("abort", t, { once: !0 }));
}, C = (t) => {
T(), u.aborted ? t() : e.add(t);
}, E = n;
}
let D = {
schema: t,
fragments: m,
rootValue: r,
contextValue: i,
operation: h,
variableValues: v,
collectFieldsDependsOnVariables: cm(n),
resolveInfoVariableValues: y,
fieldResolver: s ?? ea,
typeResolver: c ?? $i,
subscribeFieldResolver: l ?? ea,
subsequentPayloads: /* @__PURE__ */ new Set(),
incrementalSpec: p,
publisher: p === "v0.2" ? sp() : void 0,
errors: [],
signal: u,
getAbortSignal: x,
getAsyncHelpers: S,
onSignalAbort: C,
detachSignalListener: E,
schemaCoordinateInErrors: d
};
return T && Object.defineProperty(D, "signalPromise", {
configurable: !0,
enumerable: !0,
get() {
return T(), w;
}
}), D;
}
function um(e, t) {
let n = {
schema: e.schema,
fragments: e.fragments,
rootValue: t,
contextValue: e.contextValue,
operation: e.operation,
variableValues: e.variableValues,
collectFieldsDependsOnVariables: e.collectFieldsDependsOnVariables,
resolveInfoVariableValues: e.resolveInfoVariableValues,
fieldResolver: e.fieldResolver,
typeResolver: e.typeResolver,
subscribeFieldResolver: e.subscribeFieldResolver,
subsequentPayloads: /* @__PURE__ */ new Set(),
incrementalSpec: e.incrementalSpec,
publisher: e.incrementalSpec === "v0.2" ? sp() : void 0,
errors: [],
signal: e.signal,
getAbortSignal: e.getAbortSignal,
getAsyncHelpers: e.getAsyncHelpers,
onSignalAbort: e.onSignalAbort,
schemaCoordinateInErrors: e.schemaCoordinateInErrors
}, r = Object.getOwnPropertyDescriptor(e, "signalPromise");
return r?.get ? Object.defineProperty(n, "signalPromise", r) : r && "value" in r && (n.signalPromise = r.value), n;
}
function dm(e) {
let { operation: t, schema: n, fragments: r, variableValues: i, rootValue: a } = e, o = Ul(n, t.operation, [t]);
if (o == null) throw new P(`Schema is not configured to execute ${t.operation} operation.`, { nodes: t });
let { fields: s, patches: c } = Zp(e, o, t.selectionSet), l;
if (c.length === 0) return l = t.operation === "mutation" ? vm(e, o, a, void 0, s) : ym(e, o, a, void 0, s), l;
gm(e);
let { groupedFieldSet: u } = Fp(n, r, i, o, t.selectionSet), { groupedFieldSet: d, newGroupedFieldSets: f } = zp(u), p = Vp(d, e.deferUsageByFieldNode);
return l = t.operation === "mutation" ? vm(e, o, a, void 0, p) : ym(e, o, a, void 0, p), fm(e, o, a, void 0, f, void 0), l;
}
function fm(e, t, n, r, i, a) {
if (fp(jd(r), e.nulledPaths)) return;
let o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = [...i.entries()].sort(([e], [t]) => _m(Hp(e)) - _m(Hp(t)));
for (let [e] of l) for (let t of e) s.set(t, (s.get(t) ?? 0) + 1);
let u = [...s.keys()].sort((e, t) => _m(e) - _m(t));
for (let t of u) {
let n = (t.parentDeferUsage && o.get(t.parentDeferUsage)) ?? a;
o.set(t, new yp({
label: t.label,
path: r,
parentContext: a,
deliveryParent: n,
exeContext: e,
deferUsage: t
}));
}
for (let [i, a] of l) {
let l = Vp(a, e.deferUsageByFieldNode), u = e.deferUsagesForFieldNodes ??= /* @__PURE__ */ new WeakMap();
for (let e of l.values()) u.set(e, i);
let d = Hp(i), f = pm(e, t, n, r, l, d ? o.get(d) : void 0, [...i].map((e) => o.get(e)).filter((e) => e != null));
for (let e of i) {
let t = c.get(e) ?? [];
t.push(f), c.set(e, t);
let n = (s.get(e) ?? 1) - 1;
s.set(e, n), n === 0 && o.get(e)?.addData(mm(t));
}
}
}
function pm(e, t, n, r, i, a, o) {
try {
let s = ym(e, t, n, r, i, a);
return Yc(s) ? s.then(null, (e) => {
for (let t of o) t.errors.push(e);
return null;
}) : s;
} catch (e) {
for (let t of o) t.errors.push(e);
return null;
}
}
function mm(e) {
return e.some(Yc) ? Promise.all(e).then(hm) : hm(e);
}
function hm(e) {
let t = Object.create(null), n = !1;
for (let r of e) r != null && (n = !0, Object.assign(t, r));
return n ? t : null;
}
function gm(e) {
e.nulledPaths ??= [], e.deferUsageByFieldNode ??= /* @__PURE__ */ new WeakMap();
}
function _m(e) {
let t = 0, n = e;
for (; n?.parentDeferUsage;) t++, n = n.parentDeferUsage;
return t;
}
function vm(e, t, n, r, i) {
return Pl(i, (i, [a, o]) => {
let s = Ad(r, a, t.name);
return e.signal?.throwIfAborted(), Zc(() => Cm(e, t, n, o, s), (e) => (e === void 0 || (i[a] = e), i));
}, Object.create(null));
}
function ym(e, t, n, r, i, a) {
let o = Object.setPrototypeOf(new ip(), null), s = !1;
try {
for (let [c, l] of i) {
e.signal?.throwIfAborted();
let i = Cm(e, t, n, l, Ad(r, c, t.name), a);
i !== void 0 && (o[c] = i, Yc(i) && (s = !0));
}
} catch (t) {
if (t !== e.signal?.reason && s) return Zc(() => Wp(o, e.signal), () => {
throw t;
}, () => {
throw t;
});
throw t;
}
return s ? Wp(o, e.signal, e.signalPromise) : o;
}
var bm = Symbol.for("@graphql-tools/executor.leafFieldMemo");
function xm(e) {
let t = e[bm];
if (t !== void 0) return t;
let n = e.resolve;
if (n != null && n !== ea) return e[bm] = null, null;
let r = e.type, a = !1;
if (i(r) && (a = !0, r = r.ofType), !f(r)) return e[bm] = null, null;
let o = {
leafType: r,
nonNull: a,
hasArgs: e.args.length > 0,
name: e.name
};
return e[bm] = o, o;
}
function Sm(e, t) {
return {
fieldName: e.name,
parentType: t
};
}
function Cm(e, t, n, r, i, a) {
let o = a?.errors ?? e.errors, s = Qm(e.schema, t, r[0]);
if (!s) return;
let c = s.type, l = s.resolve ?? e.fieldResolver, u;
try {
e.signal?.throwIfAborted();
let d, f = !1, p = !1;
if (l === ea && (Nl(n) || typeof n == "function")) {
let a = xm(s);
if (a !== null) {
a.hasArgs && em(s, r[0], e.variableValues);
let o = n[a.name];
if (typeof o == "function") {
u = wm(e, s, r, t, i);
let a = em(s, r[0], e.variableValues);
d = o.call(n, a, e.contextValue, u), f = !0;
} else if (o instanceof Error) throw o;
else if (Yc(o)) u = wm(e, s, r, t, i), d = o, f = !0;
else {
if (o == null) {
if (a.nonNull) throw Error(`Cannot return null for non-nullable field ${t.name}.${a.name}.`);
return null;
}
let n;
try {
n = a.leafType.serialize(o);
} catch (e) {
throw e instanceof P ? Error(e.message) : e;
}
if (Yc(n)) u = wm(e, s, r, t, i), d = n, f = !0, p = !0;
else if (n == null) throw Error(`Expected \`${Ol(a.leafType)}.serialize(${Ol(o)})\` to return non-nullable value, returned: ${Ol(n)}`);
else return n;
}
}
}
f || (u = wm(e, s, r, t, i), d = l(n, em(s, r[0], e.variableValues), e.contextValue, u));
let m;
return m = p ? d : Yc(d) ? d.then((t) => Dm(e, c, r, u, i, t, a)) : Dm(e, c, r, u, i, d, a), Yc(m) ? m.then(void 0, (n) => {
if (n instanceof AggregateError) {
let l;
for (let d of n.errors) d = rp(d), l = Em(ld(d, r, jd(i), e.schemaCoordinateInErrors && (u ?? Sm(s, t))), c, o), Zm(e, i, a);
return l;
}
n = rp(n);
let l = Em(ld(n, r, jd(i), e.schemaCoordinateInErrors && (u ?? Sm(s, t))), c, o);
return Zm(e, i, a), l;
}) : m;
} catch (n) {
if (n instanceof AggregateError) {
let l;
for (let d of n.errors) d = rp(d), l = Em(ld(d, r, jd(i), e.schemaCoordinateInErrors && (u ?? Sm(s, t))), c, o), Zm(e, i, a);
return l;
}
let l = Em(ld(rp(n), r, jd(i), e.schemaCoordinateInErrors && (u ?? Sm(s, t))), c, o);
return Zm(e, i, a), l;
}
}
function wm(e, t, n, r, i) {
return {
fieldName: t.name,
fieldNodes: n,
returnType: t.type,
parentType: r,
path: i,
schema: e.schema,
fragments: e.fragments,
rootValue: e.rootValue,
operation: e.operation,
variableValues: e.resolveInfoVariableValues,
signal: e.signal,
getAbortSignal: e.getAbortSignal,
getAsyncHelpers: e.getAsyncHelpers
};
}
var Tm = "CRITICAL_ERROR";
function Em(e, t, n) {
if (i(t) || e.extensions?.CRITICAL_ERROR) throw e;
return n.push(e), null;
}
function Dm(e, t, n, r, a, o, s) {
if (o instanceof Error) throw o;
if (i(t)) {
let i = Dm(e, t.ofType, n, r, a, o, s);
if (i === null) throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);
return i;
}
if (o == null) return null;
if (ne(t)) return Am(e, t, n, r, a, o, s);
if (f(t)) return Mm(t, o);
if (Ft(t)) return Nm(e, t, n, r, a, o, s);
if (A(t)) return Fm(e, t, n, r, a, o, s);
/* c8 ignore next 6 */
console.assert(!1, "Cannot complete value of unexpected output type: " + Ol(t));
}
function Om(e, t, n) {
if (typeof n.key == "number") return;
let r = t[0];
if (r.directives?.length) return tm(r, e.variableValues);
}
async function km(e, t, n, r, i, a, o) {
a.return && e.onSignalAbort?.(() => {
Zc(() => a.return?.(), () => {}, () => {});
}), e.signal?.throwIfAborted();
let s = o?.errors ?? e.errors, c = Om(e, n, i), l = !1, u = [], d = 0;
for (;;) {
if (c && typeof c.initialCount == "number" && d >= c.initialCount) {
Ym(d, a, e, n, r, t, i, c.label, o, lp(e, {
path: i,
label: c.label,
parentContext: o,
hasIterator: !0
}));
break;
}
let f = Ad(i, d, void 0), p;
try {
if (p = await a.next(), p.done) break;
} catch (i) {
let a = ld(rp(i), n, jd(f), e.schemaCoordinateInErrors && r);
u.push(Em(a, t, s));
break;
}
jm(p.value, u, s, e, t, n, r, f, o) && (l = !0), d += 1;
}
return l ? Promise.all(u) : u;
}
function Am(e, t, n, r, a, o, s) {
let c = t.ofType, l = s?.errors ?? e.errors;
if (kd(o)) return km(e, c, n, r, a, o[Symbol.asyncIterator](), s);
if (!Ml(o)) throw new P(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);
let u = Om(e, n, a), d, p = !1, m = s, h = [], g = i(c) ? c.ofType : c, _ = !u && f(g) ? g : void 0, v = 0;
for (let t of o) {
let i = _ ? a : Ad(a, v, void 0);
u && typeof u.initialCount == "number" && v >= u.initialCount ? (d ??= lp(e, {
path: a,
label: u.label,
parentContext: s
}), m = qm(a, i, t, e, n, r, c, u.label, m, d), v++) : (jm(t, h, l, e, c, n, r, i, s, _, _ ? v : void 0) && (p = !0), v++);
}
return p ? Promise.all(h) : h;
}
function jm(e, t, n, r, i, a, o, s, c, l, u) {
let d = u === void 0 ? s : void 0;
try {
let f, p = Yc(e);
if (l && e != null && !(e instanceof Error) && !p) f = Mm(l, e);
else if (d ??= u === void 0 ? s : Ad(s, u, void 0), p) {
let t = d;
f = e.then((e) => Dm(r, i, a, o, t, e, c));
} else f = Dm(r, i, a, o, d, e, c);
if (Yc(f)) {
d ??= u === void 0 ? s : Ad(s, u, void 0);
let e = d;
return t.push(f.then(void 0, (t) => {
t = rp(t);
let s = Em(ld(t, a, jd(e), r.schemaCoordinateInErrors && o), i, n);
return Zm(r, e, c), s;
})), !0;
}
t.push(f);
} catch (e) {
d ??= u === void 0 ? s : Ad(s, u, void 0);
let l = Em(ld(rp(e), a, jd(d), r.schemaCoordinateInErrors && o), i, n);
Zm(r, d, c), t.push(l);
}
return !1;
}
function Mm(e, t) {
let n;
try {
n = e.serialize(t);
} catch (e) {
throw e instanceof P ? Error(e.message) : e;
}
if (n == null) throw Error(`Expected \`${Ol(e)}.serialize(${Ol(t)})\` to return non-nullable value, returned: ${Ol(n)}`);
return n;
}
function Nm(e, t, n, r, i, a, o) {
let s = t.resolveType ?? e.typeResolver, c = e.contextValue, l = s(a, c, r, t);
return Yc(l) ? l.then((s) => Fm(e, Pm(s, e, t, n, r, a), n, r, i, a, o)) : Fm(e, Pm(l, e, t, n, r, a), n, r, i, a, o);
}
function Pm(e, t, n, r, i, a) {
if (e == null) throw new P(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`, { nodes: r });
if (A(e)) throw new P("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");
if (typeof e != "string") throw new P(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${Ol(a)}, received "${Ol(e)}".`);
let o = t.schema.getType(e);
if (o == null) throw new P(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`, { nodes: r });
if (!A(o)) throw new P(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`, { nodes: r });
if (!t.schema.isSubType(n, o)) throw new P(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`, { nodes: r });
return o;
}
function Fm(e, t, n, r, i, a, o) {
if (t.isTypeOf) {
let s = t.isTypeOf(a, e.contextValue, r);
if (Yc(s)) return s.then((r) => {
if (!r) throw Im(t, a, n);
return Lm(e, t, n, i, a, o);
});
if (!s) throw Im(t, a, n);
}
return Lm(e, t, n, i, a, o);
}
function Im(e, t, n) {
return new P(`Expected value of type "${e.name}" but got: ${Ol(t)}.`, { nodes: n });
}
function Lm(e, t, n, r, i, a) {
let { fields: o, patches: s } = Qp(e, t, n);
if (s.length === 0 && e.nulledPaths == null) return ym(e, t, i, r, o, a);
gm(e);
let c = a?.type === "defer" ? a.deferUsage : void 0, l = e.incrementalSubfieldCache ??= /* @__PURE__ */ new WeakMap(), u = l.get(n);
u ?? (u = /* @__PURE__ */ new WeakMap(), l.set(n, u));
let d = u.get(t);
d ?? (d = Ip(e.schema, e.fragments, e.variableValues, t, n, c, e.deferUsageByFieldNode), u.set(t, d));
let { groupedFieldSet: f } = d, p = /* @__PURE__ */ new Set(), m = e.deferUsagesForFieldNodes?.get(n);
if (m) for (let e of m) p.add(e);
else if (c) p.add(c);
else if (a?.type === "stream") for (let t of n) {
let n = e.deferUsageByFieldNode?.get(t);
n && p.add(n);
}
let { groupedFieldSet: h, newGroupedFieldSets: g } = zp(f, p), _ = ym(e, t, i, r, Vp(h, e.deferUsageByFieldNode), a);
return fm(e, t, i, r, g, a), _;
}
function Rm(e) {
let t = lm(e);
if (!("schema" in t)) {
for (let e of t) {
let t = e.extensions ||= {}, n = t.http ||= {};
n.status = 400, e.extensions.code = "BAD_USER_INPUT";
}
return { errors: t };
}
let n = Wm(t);
return Yc(n) ? n.then((e) => Hm(t, e)) : Hm(t, n);
}
function zm(e) {
return e?.initialResult;
}
function Bm(e) {
let t = e.subsequentResults, n = !1, r = !1;
return {
[Symbol.asyncIterator]() {
return this;
},
next() {
return r ? tl({
value: void 0,
done: r
}) : n ? t.next() : (n = !0, tl({
value: e.initialResult,
done: r
}));
},
return() {
return r = !0, t.return();
},
throw(e) {
return r = !0, t.throw(e);
},
[Ud.asyncDispose]() {
return r = !0, t?.[Ud.asyncDispose]?.();
}
};
}
async function* Vm(e) {
"initialResult" in e ? yield* Bm(e) : yield e;
}
function Hm(e, t) {
return kd(t) ? op(il(t, (t) => Zc(() => rm(um(e, t)), Vm), (t) => {
throw t instanceof AggregateError ? AggregateError(t.errors.map((t) => Um(t, e.operation)), t.message) : Um(t, e.operation);
})) : t;
}
function Um(e, t) {
return new P(e.message, {
originalError: e,
nodes: [t]
});
}
function Wm(e) {
try {
let t = Gm(e);
return Yc(t) ? t.then(void 0, (e) => ({ errors: [e] })) : t;
} catch (e) {
return { errors: [e] };
}
}
function Gm(e) {
let { schema: t, operation: n, variableValues: r, rootValue: i } = e, a = t.getSubscriptionType();
if (a == null) throw new P("Schema is not configured to execute subscription operation.", { nodes: n });
let { fields: o } = Zp(e, a, n.selectionSet), [s, c] = [...o.entries()][0], l = c[0].name.value, u = Qm(t, a, c[0]);
if (!u) throw new P(`The subscription field "${l}" is not defined.`, { nodes: c });
let d = Ad(void 0, s, a.name), f = wm(e, u, c, a, d);
try {
let t = em(u, c[0], r), n = e.contextValue, a = (u.subscribe ?? e.subscribeFieldResolver)(i, t, n, f);
return Yc(a) ? a.then((t) => Km(t, e.signal, e.onSignalAbort)).then(void 0, (t) => {
throw ld(t, c, jd(d), e.schemaCoordinateInErrors && f);
}) : Km(a, e.signal, e.onSignalAbort);
} catch (t) {
throw ld(t, c, jd(d), e.schemaCoordinateInErrors && f);
}
}
function Km(e, t, n) {
if (t?.throwIfAborted(), e instanceof Error) throw e;
if (!kd(e)) throw new P(`Subscription field must return Async Iterable. Received: ${Ol(e)}.`);
return n ? { [Symbol.asyncIterator]() {
let t = e[Symbol.asyncIterator]();
return t.return && n?.(() => {
Zc(() => t.return?.(), () => {}, () => {});
}), t;
} } : e;
}
function qm(e, t, n, r, i, a, o, s, c, l) {
let u = new bp({
label: s,
path: t,
parentContext: c,
exeContext: r,
streamGroup: l
});
if (fp(u.path, r.nulledPaths)) return vp(r, u), u;
let d;
try {
try {
d = Yc(n) ? n.then((e) => Dm(r, o, i, a, t, e, u)) : Dm(r, o, i, a, t, n, u), Yc(d) && (d = d.then(void 0, (e) => {
e = rp(e);
let n = Em(ld(e, i, jd(t), r.schemaCoordinateInErrors && a), o, u.errors);
return Zm(r, t, u), n;
}));
} catch (e) {
d = Em(ld(rp(e), i, jd(t), r.schemaCoordinateInErrors && a), o, u.errors), Zm(r, t, u);
}
} catch (t) {
return u.errors.push(t), Zm(r, e, u), u.addItems(null), u;
}
let f;
return f = Yc(d) ? d.then((e) => [e], (t) => (u.errors.push(t), Zm(r, e, u), null)) : [d], u.addItems(f), u;
}
async function Jm(e, t, n, r, i, a, o) {
let s;
try {
let { value: t, done: n } = await e.next();
if (n) return a.setIsCompletedIterator(), {
done: n,
value: void 0
};
s = t;
} catch (e) {
let s = Em(ld(rp(e), n, jd(o), t.schemaCoordinateInErrors && r), i, a.errors);
return a.streamGroup && (a.streamGroup.iteratorCompleted = !0), {
done: !0,
value: s
};
}
let c;
try {
return c = Dm(t, i, n, r, o, s, a), Yc(c) && (c = c.then(void 0, (e) => {
let s = Em(ld(e, n, jd(o), t.schemaCoordinateInErrors && r), i, a.errors);
return Zm(t, o, a), s;
})), {
done: !1,
value: c
};
} catch (e) {
let s = Em(ld(e, n, jd(o), t.schemaCoordinateInErrors && r), i, a.errors);
return Zm(t, o, a), {
done: !1,
value: s
};
}
}
async function Ym(e, t, n, r, i, a, o, s, c, l) {
let u = e, d = c ?? void 0;
for (;;) {
let e = Ad(o, u, void 0), c = new bp({
label: s,
path: e,
parentContext: d,
iterator: t,
exeContext: n,
streamGroup: l
});
if (fp(c.path, n.nulledPaths)) {
vp(n, c), t.return && t.return().catch(() => {});
break;
}
let f;
try {
f = await Jm(t, n, r, i, a, c, e);
} catch (e) {
c.errors.push(e), l && (l.iteratorCompleted = !0), Zm(n, o, c), c.addItems(null), t?.return && t.return().catch(() => {});
return;
}
let { done: p, value: m } = f, h;
if (h = Yc(m) ? m.then((e) => [e], (e) => (c.errors.push(e), Zm(n, o, c), null)) : [m], c.addItems(h), p) break;
d = c, u++;
}
}
function Xm(e, t) {
let n = t.parentContext;
for (; n;) {
if (n === e) return !0;
n = n.parentContext;
}
return !1;
}
function Zm(e, t, n) {
let r = jd(t), i = e.subsequentPayloads.size > 0;
if (e.nulledPaths) e.nulledPaths.push(r);
else if (i) e.nulledPaths = [r];
else return;
i && e.subsequentPayloads.forEach((t) => {
t === n || t.cancelled || n && Xm(t, n) || dp(t.path, r) && vp(e, t);
});
}
function Qm(e, t, n) {
let r = n.name.value;
return r === x.name && e.getQueryType() === t ? x : r === oe.name && e.getQueryType() === t ? oe : r === zt.name ? zt : t.getFields()[r];
}
// ../../../node_modules/.pnpm/@graphql-tools+executor@4.1.8_graphql@17.1.0/node_modules/@graphql-tools/executor/esm/execution/normalizedExecutor.js
function $m(e) {
let t = ii(e.document, e.operationName);
if (t == null) throw Error("Must provide an operation.");
return t.operation === "subscription" ? Rm(e) : Zc(() => nm(e), (e) => zm(e) ? Bm(e) : e);
}
var eh = /* @__PURE__ */ new WeakMap();
function th(e) {
let t = eh.get(e);
return t === void 0 && (t = function(t) {
return $m({
schema: e,
document: t.document,
variableValues: t.variables,
operationName: t.operationName,
rootValue: t.rootValue,
contextValue: t.context,
signal: t.signal || t.info?.signal,
schemaCoordinateInErrors: t.schemaCoordinateInErrors,
incrementalSpec: t.incrementalSpec
});
}, eh.set(e, t)), t;
}
// ../../../node_modules/.pnpm/@graphql-tools+batch-execute@11.0.0_graphql@17.1.0/node_modules/@graphql-tools/batch-execute/dist/index.js
var nh = /* @__PURE__ */ Ht((/* @__PURE__ */ Ut(((e, t) => {
var n = /*#__PURE__*/ function() {
function e(e, t) {
if (typeof e != "function") throw TypeError("DataLoader must be constructed with a function which accepts " + ("Array<key> and returns Promise<Array<value>>, but got: " + e + "."));
this._batchLoadFn = e, this._maxBatchSize = l(t), this._batchScheduleFn = u(t), this._cacheKeyFn = d(t), this._cacheMap = f(t), this._batch = null, this.name = p(t);
}
var t = e.prototype;
return t.load = function(e) {
if (e == null) throw TypeError("The loader.load() function must be called with a value, " + ("but got: " + String(e) + "."));
var t = a(this), n = this._cacheMap, r;
if (n) {
r = this._cacheKeyFn(e);
var i = n.get(r);
if (i) {
var o = t.cacheHits ||= [];
return new Promise(function(e) {
o.push(function() {
e(i);
});
});
}
}
t.keys.push(e);
var s = new Promise(function(e, n) {
t.callbacks.push({
resolve: e,
reject: n
});
});
return n && n.set(r, s), s;
}, t.loadMany = function(e) {
if (!m(e)) throw TypeError("The loader.loadMany() function must be called with Array<key> " + ("but got: " + e + "."));
for (var t = [], n = 0; n < e.length; n++) t.push(this.load(e[n]).catch(function(e) {
return e;
}));
return Promise.all(t);
}, t.clear = function(e) {
var t = this._cacheMap;
if (t) {
var n = this._cacheKeyFn(e);
t.delete(n);
}
return this;
}, t.clearAll = function() {
var e = this._cacheMap;
return e && e.clear(), this;
}, t.prime = function(e, t) {
var n = this._cacheMap;
if (n) {
var r = this._cacheKeyFn(e);
if (n.get(r) === void 0) {
var i;
t instanceof Error ? (i = Promise.reject(t), i.catch(function() {})) : i = Promise.resolve(t), n.set(r, i);
}
}
return this;
}, e;
}(), r = typeof process == "object" && typeof process.nextTick == "function" ? function(e) {
i ||= Promise.resolve(), i.then(function() {
process.nextTick(e);
});
} : typeof setImmediate == "function" ? function(e) {
setImmediate(e);
} : function(e) {
setTimeout(e);
}, i;
function a(e) {
var t = e._batch;
if (t !== null && !t.hasDispatched && t.keys.length < e._maxBatchSize) return t;
var n = {
hasDispatched: !1,
keys: [],
callbacks: []
};
return e._batch = n, e._batchScheduleFn(function() {
o(e, n);
}), n;
}
function o(e, t) {
if (t.hasDispatched = !0, t.keys.length === 0) c(t);
else {
var n;
try {
n = e._batchLoadFn(t.keys);
} catch (n) {
return s(e, t, /* @__PURE__ */ TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function " + ("errored synchronously: " + String(n) + ".")));
}
if (!n || typeof n.then != "function") return s(e, t, /* @__PURE__ */ TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did " + ("not return a Promise: " + String(n) + ".")));
n.then(function(e) {
if (!m(e)) throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did " + ("not return a Promise of an Array: " + String(e) + "."));
if (e.length !== t.keys.length) throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys." + ("\n\nKeys:\n" + String(t.keys)) + ("\n\nValues:\n" + String(e)));
c(t);
for (var n = 0; n < t.callbacks.length; n++) {
var r = e[n];
r instanceof Error ? t.callbacks[n].reject(r) : t.callbacks[n].resolve(r);
}
}).catch(function(n) {
s(e, t, n);
});
}
}
function s(e, t, n) {
c(t);
for (var r = 0; r < t.keys.length; r++) e.clear(t.keys[r]), t.callbacks[r].reject(n);
}
function c(e) {
if (e.cacheHits) for (var t = 0; t < e.cacheHits.length; t++) e.cacheHits[t]();
}
function l(e) {
if (e && e.batch === !1) return 1;
var t = e && e.maxBatchSize;
if (t === void 0) return Infinity;
if (typeof t != "number" || t < 1) throw TypeError("maxBatchSize must be a positive number: " + t);
return t;
}
function u(e) {
var t = e && e.batchScheduleFn;
if (t === void 0) return r;
if (typeof t != "function") throw TypeError("batchScheduleFn must be a function: " + t);
return t;
}
function d(e) {
var t = e && e.cacheKeyFn;
if (t === void 0) return function(e) {
return e;
};
if (typeof t != "function") throw TypeError("cacheKeyFn must be a function: " + t);
return t;
}
function f(e) {
if (e && e.cache === !1) return null;
var t = e && e.cacheMap;
if (t === void 0) return /* @__PURE__ */ new Map();
if (t !== null) {
var n = [
"get",
"set",
"delete",
"clear"
].filter(function(e) {
return t && typeof t[e] != "function";
});
if (n.length !== 0) throw TypeError("Custom cacheMap missing methods: " + n.join(", "));
}
return t;
}
function p(e) {
return e && e.name ? e.name : null;
}
function m(e) {
return typeof e == "object" && !!e && typeof e.length == "number" && (e.length === 0 || e.length > 0 && Object.prototype.hasOwnProperty.call(e, e.length - 1));
}
t.exports = n;
})))(), 1);
function rh(e) {
return `_v${e}_`;
}
function ih(e) {
let t = /^_v(\d+)_(.*)$/.exec(e);
return t && t.length === 3 && !isNaN(Number(t[1])) && t[2] ? {
index: Number(t[1]),
originalKey: t[2]
} : null;
}
function ah(e) {
let t = ih(e);
if (!t) throw Error(`Key ${e} is not correctly prefixed`);
return t;
}
function oh(e) {
let t = 0, n = null;
for (; !n && t < e.length; t++) {
let r = e[t];
typeof r == "string" && (n = ih(r));
}
if (!n) throw Error(`Path ${e.join(".")} does not contain correctly prefixed key`);
return {
...n,
keyOffset: t
};
}
function sh(e, t, n = !1) {
let r = e[0];
if (!r) throw Error("At least one request is required");
let i = e.length;
if (i === 1) return r;
let a = /* @__PURE__ */ Object.create(null), o = [], s = [], c = [], l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ Object.create(null), d, f, p, m, h, g;
for (let r = 0; r < i; r++) {
let i = e[r];
if (i) {
d ??= i.subgraphName, f ??= i.operationName, p ??= i.operationType, m ??= i.context, h ??= i.info, g ??= i.rootValue;
let e = ch(rh(r), i);
for (let t of e.document.definitions) {
if (hh(t)) {
let e = n ? _h(t.selectionSet.selections, `batch_${r}`) : t.selectionSet.selections;
s.push(...e), p ??= t.operation, f ??= t.name?.value, t.variableDefinitions && o.push(...t.variableDefinitions);
}
gh(t) && c.push(t);
}
Object.assign(a, e.variables), u = t(u, i), i.signal && l.add(i.signal);
}
}
return f ??= h?.operation?.name?.value, p ||= "query", {
subgraphName: d,
document: {
kind: y,
definitions: [{
kind: He,
operation: p,
variableDefinitions: o,
selectionSet: {
kind: Se,
selections: s
},
name: f ? {
kind: je,
value: f
} : void 0
}, ...c]
},
variables: a,
extensions: u,
context: m,
info: h,
operationType: p,
rootValue: g,
operationName: f,
signal: tf(Array.from(l))
};
}
function ch(e, t) {
function n(t) {
return ph(t, e);
}
let r = lh(e, t.document), i = !1;
for (let e of r.definitions) if (gh(e) || hh(e) && e.variableDefinitions?.length) {
i = !0;
break;
}
let a = {}, o = !1;
i && (r = It(r, {
[Lt]: n,
[be](e) {
return o = !0, n(e);
},
[ae]: (t) => (t = ph(t, e), a[t.name.value] = !0, t)
}));
let s, c = t.variables;
if (c) {
s = /* @__PURE__ */ Object.create(null);
for (let t in c) s[e + t] = c[t];
}
return o && (r = {
...r,
definitions: r.definitions.filter((e) => !gh(e) || a[e.name.value])
}), {
document: r,
variables: s
};
}
function lh(e, t) {
return It(t, { [He]: (n) => {
let { selections: r } = n.selectionSet;
return {
...n,
selectionSet: {
...n.selectionSet,
selections: uh(e, r, t)
}
};
} }, { [y]: ["definitions"] });
}
function uh(e, n, r) {
return n.map((n) => {
switch (n.kind) {
case t: return dh(e, n, r);
case ae: return dh(e, fh(n, r), r);
case w:
default: return mh(n, e);
}
});
}
function dh(e, t, n) {
let { selections: r } = t.selectionSet;
return {
...t,
selectionSet: {
...t.selectionSet,
selections: uh(e, r, n)
}
};
}
function fh(e, n) {
let r = n.definitions.find((t) => gh(t) && t.name.value === e.name.value);
if (!r) throw Error(`Fragment ${e.name.value} does not exist`);
let { typeCondition: i, selectionSet: a } = r;
return {
kind: t,
typeCondition: i,
selectionSet: a,
directives: e.directives
};
}
function ph(e, t) {
return {
...e,
name: {
...e.name,
value: t + e.name.value
}
};
}
function mh(e, t) {
let n = e.alias ? e.alias : e.name;
return {
...e,
alias: {
...n,
value: t + n.value
}
};
}
function hh(e) {
return e.kind === He;
}
function gh(e) {
return e.kind === be;
}
function _h(e, n) {
return [{
kind: t,
directives: [{
kind: he,
name: {
kind: je,
value: "defer"
},
arguments: [{
kind: b,
name: {
kind: je,
value: "label"
},
value: {
kind: Ot,
value: n
}
}]
}],
selectionSet: {
kind: Se,
selections: [...e]
}
}];
}
function vh({ data: e, errors: t }, n) {
let r = Array(n);
if (e) for (let t in e) {
if (t === "__proto__" || t === "constructor" || t === "prototype") continue;
let { index: n, originalKey: i } = ah(t), a = r[n];
a == null ? r[n] = { data: { [i]: e[t] } } : a.data == null ? a.data = { [i]: e[t] } : a.data[i] = e[t];
}
if (t) for (let e of t) if (e.path) {
let { index: t, originalKey: n, keyOffset: i } = oh(e.path), a = ud(e, [n, ...e.path.slice(i)]), o = r[t];
if (o == null) {
r[t] = { errors: [a] };
continue;
}
if (o.errors == null) {
o.errors = [a];
continue;
}
o.errors.push(a);
} else for (let t = 0; t < n; t++) {
let n = r[t];
n == null ? r[t] = { errors: [e] } : n.errors == null ? n.errors = [e] : n.errors.push(e);
}
let i = e === null;
for (let e = 0; e < n; e++) {
let t = r[e];
t == null ? r[e] = { data: i ? null : {} } : i && t.data === void 0 && (t.data = null);
}
return r;
}
function yh(e, t, n = Th, r = !1) {
let i = bh(e, n, r), a = new nh.default(i, t), o = new nh.default(i, t);
return function(t) {
let n = t.operationType ?? Od(t)?.operation;
switch (n) {
case "query": return a.load(t);
case "mutation": return o.load(t);
case "subscription": return e(t);
default: throw Error(`Invalid operation type "${n}"`);
}
};
}
function bh(e, t, n) {
return function(r) {
if (r.length === 1 && r[0]) {
let t = r[0];
return tl().then(() => e(t)).catch((e) => e).then((e) => [e]);
}
let i = sh(r, t, n);
return tl().then(() => e(i)).then((e) => xh(e)).then((e) => vh(e, r.length)).catch((e) => r.map(() => e));
};
}
async function xh(e) {
if (!kd(e)) return e;
let t = { data: /* @__PURE__ */ Object.create(null) };
for await (let n of e) if (n.data && Object.assign(t.data, n.data), n.errors?.length && (t.errors = [...t.errors ?? [], ...n.errors]), n.incremental) for (let e of n.incremental) e.errors?.length && (t.errors = [...t.errors ?? [], ...e.errors]), e.items == null ? e.data != null && (e.path?.length ? Ch(t.data, e.path, e.data) : Object.assign(t.data, e.data)) : Array.isArray(e.path) && e.path.length > 0 && wh(t.data, e.path, e.items);
return t;
}
function Sh(e) {
return e === "__proto__" || e === "constructor" || e === "prototype";
}
function Ch(e, t, n) {
let r = e;
for (let e = 0; e < t.length; e++) {
let i = t[e];
if (Sh(i)) return;
if (e === t.length - 1) {
r[i] != null && typeof r[i] == "object" ? Object.assign(r[i], n) : r[i] = n;
return;
}
(r[i] == null || typeof r[i] != "object") && (r[i] = typeof t[e + 1] == "number" ? [] : {}), r = r[i];
}
}
function wh(e, t, n) {
let r = t[t.length - 1];
if (typeof r != "number") return;
let i = t.slice(0, -1), a = e;
for (let e = 0; e < i.length; e++) {
let t = i[e];
if (Sh(t)) return;
(a[t] == null || typeof a[t] != "object") && (a[t] = e === i.length - 1 || typeof i[e + 1] == "number" ? [] : {}), a = a[t];
}
if (Array.isArray(a)) for (let e = 0; e < n.length; e++) a[r + e] = n[e];
}
function Th(e, t) {
let n = t.extensions;
return n != null && Object.assign(e, n), e;
}
var Eh = /* @__PURE__ */ new WeakMap();
function Dh(e, t, n, r, i) {
let a = Eh.get(e);
a || (a = /* @__PURE__ */ new WeakMap(), Eh.set(e, a));
let o = a.get(t);
o || (o = /* @__PURE__ */ new Map(), a.set(t, o));
let s = i ? "1" : "0", c = o.get(s);
return c || (c = yh(t, n, r, i), o.set(s, c)), c;
}
// ../../../node_modules/.pnpm/@graphql-tools+delegate@13.0.0_graphql@17.1.0/node_modules/@graphql-tools/delegate/dist/index.js
var Oh = bl(function(e, t) {
let n = t.transforms;
return n == null ? e : n.reduce((e, n) => n.transformSchema?.(e, t) || e, e);
});
function kh(e) {
return !!e.transformedSchema;
}
function Ah(e) {
if (e != null) return Object.hasOwn(e, "coerced") && Object.hasOwn(e, "sources") ? e.coerced : e;
}
function jh(e) {
return e != null && Object.hasOwn(e, "coerced") && Object.hasOwn(e, "sources") ? e : {
coerced: e ?? {},
sources: {}
};
}
var Mh = [
"__proto__",
"constructor",
"prototype"
];
function Nh(e) {
return Mh.includes(e);
}
var Ph = /* @__PURE__ */ new WeakMap(), Fh = Symbol("PLAN_LEFT_OVER");
function Ih(e) {
if (typeof e == "object" && e) return e[Fh];
}
var Lh = Symbol.for("subschemaErrors"), Rh = Symbol.for("initialSubschema"), zh = Symbol.for("subschemaMap"), Bh = Symbol.for("incrementalReceiver");
function Vh(e) {
return e[Lh] !== void 0;
}
function Hh(e, t, n, r) {
return Object.defineProperties(e, {
[Rh]: {
value: n,
writable: !0
},
[zh]: {
value: r,
writable: !0
},
[Lh]: {
value: t,
writable: !0
}
}), e;
}
function Uh(e, t) {
return e[zh]?.[t] ?? e[Rh];
}
function Wh(e) {
return e[Lh];
}
var Gh = /* @__PURE__ */ Object.create(null), Kh = yl(function(e) {
return [e];
});
function qh(e, t, n, r, i, a = i.fieldNodes, o) {
let s = Ah(i.variableValues), c = e.delegationPlanBuilder(i.schema, n, s != null && Object.keys(s).length > 0 ? s : Gh, i.fragments != null && Object.keys(i.fragments).length > 0 ? i.fragments : Gh, a.length === 1 && a[0] ? Kh(a[0]) : a, r, i, t), l = Ph.get(c);
return l && (t[Fh] = l), Zc(() => Pl(c, (n, a) => Yh(e, o ? new Map(Array.from(a).filter(([e]) => !o(e))) : a, t, r, i), void 0), () => t);
}
function Jh(e, t, n, r, i, a, o, s) {
if (e instanceof Error || e == null) {
let i = t.transformedSchema || a.schema, s = i.getType(r.__typename), { fields: c } = xd(i, a.fragments, jh(a.variableValues), s, n), l = {};
for (let [t, n] of c) {
let r = [...o, t];
l[t] = e instanceof P ? e.message.includes("Cannot return null for non-nullable field") ? null : ud(e, r) : e instanceof Error ? ni(e, n, r) : null;
}
e = l;
} else e[Lh] && s.push(...e[Lh]);
let c = e[Rh], l = e[zh];
for (let n in e) {
if (Nh(n)) continue;
let a = r[n], o = e[n];
n === "__typename" && a !== o && Ft(t.transformedSchema.getType(o)) || ((o != null || a == null) && (typeof a == "object" && a && !(a instanceof Error) && Object.keys(a).length > 0 ? Array.isArray(a) && Array.isArray(o) && a.length === o.length ? r[n] = a.map((e, t) => o instanceof Error ? e : id([e, o[t]], void 0, !0, !0)) : o instanceof Error || (r[n] = id([a, o], void 0, !0, !0)) : r[n] = o), i[n] = l?.[n] ?? c ?? t);
}
}
function Yh(e, t, n, r, i) {
let a = n[Lh], o = jd(i.path), s = n[zh], c = [];
for (let [l, u] of t) {
let t = (l.transformedSchema || i.schema).getType(n.__typename), d = e.resolvers.get(l);
if (d) try {
let e = d(n, r, i, l, u, void 0, t);
Yc(e) ? c.push(e.then((e) => Jh(e, l, u, n, s, i, o, a), (e) => Jh(e, l, u, n, s, i, o, a))) : Jh(e, l, u, n, s, i, o, a);
} catch (e) {
Jh(e, l, u, n, s, i, o, a);
}
}
if (c.length) return c.length === 1 ? c[0] : Promise.all(c);
}
var Xh = function() {};
function Zh(e, t, n, r, i, a = rg(i), o) {
let s = ke(a);
if (e instanceof Error) return e;
if (e == null) return ng(t);
if (f(s)) try {
return s.parseValue(e);
} catch {
return null;
}
if (le(s)) {
let a = $h(s, e, t, n, r, i, o);
return Yc(a) ? Zc(() => a, (e) => Qh(e, s, i)) : Qh(a, s, i);
}
if (ne(s)) return Array.isArray(e) ? eg(s, e, t, n, r, i, o) : Zh(e, t, n, r, i, s.ofType, o);
}
function Qh(e, t, n) {
return n && Ft(t) && e.__typename != null && !n.schema.getType(e.__typename) ? null : e;
}
function $h(e, t, n, r, i, a, o) {
if (Vh(t) || Hh(t, n, r, Object.setPrototypeOf(new Xh(), null)), o || a == null) return t;
let s = a.schema.extensions?.stitchingInfo;
if (s == null) return t;
let c, l = [t.__typename, e.name];
for (let e of l) if (e != null && s.mergedTypes[e]?.targetSubschemas?.get(r)?.length) {
c = s.mergedTypes[e];
break;
}
if (!c) for (let e of l) {
let t = s.mergedTypes[e];
if (t != null) {
for (let [e, n] of t.targetSubschemas) n.length && e.name != null && e.name === r.name && (r = e, c = t);
break;
}
}
if (!c) return t;
let u = c.typeName === e.name ? void 0 : s.mergedTypes[e.name], d = (e) => !!e.transformedSchema.getType(t.__typename);
return u?.targetSubschemas.get(r)?.some((e) => !d(e)) ? Zc(() => qh(c, t, r, i, a), () => qh(u, t, r, i, a, void 0, d)) : qh(c, t, r, i, a);
}
function eg(e, t, n, r, i, a, o) {
return t.map((t) => Zh(t, n, r, i, a, e.ofType, o));
}
var tg = /* @__PURE__ */ new WeakSet();
function ng(e) {
if (e.length) {
let t = [];
for (let n of e) tg.has(n) || (t.push(n), tg.add(n));
if (t.length) {
let e = t[0];
return t.length === 1 && e ? ni(e, void 0, e.path) : AggregateError(t.map((t) => ni(t, void 0, e?.path)), t.map((e) => e.message).join(", \n"));
}
}
return null;
}
function rg(e) {
if (e == null) throw Error("Return type cannot be inferred without a source schema.");
return e.returnType;
}
function ig(e = {
data: null,
errors: []
}, t) {
let { context: n, info: r, fieldName: i = og(r), subschema: a, returnType: o = sg(r), skipTypeMerging: s, onLocatedError: c } = t, { data: l, unpathedErrors: u } = ag(e.data == null ? void 0 : e.data[i], e.errors == null ? [] : e.errors, r != null && r.path ? Ee(r.path) : void 0, c);
return Zh(l, u, a, n, r, o, s);
}
function ag(e, t, n, r, i = 1) {
if (e == null) {
if (!t.length) return {
data: null,
unpathedErrors: []
};
if (t.length === 1 && t[0]) {
let e = r ? r(t[0]) : t[0], i = n === void 0 ? e.path : e.path ? n.concat(e.path.slice(1)) : n;
return {
data: ud(t[0], i),
unpathedErrors: []
};
}
return {
data: AggregateError(t.map((e) => {
let t = r ? r(e) : e;
return ud(t, n === void 0 ? t.path : t.path ? n.concat(t.path.slice(1)) : n);
}), t.map((e) => e.message).join(",\n")),
unpathedErrors: []
};
}
if (!t.length) return {
data: e,
unpathedErrors: []
};
let a = [], o = /* @__PURE__ */ new Map();
for (let e of t) {
let t = e.path?.[i];
if (t != null) {
let n = o.get(t);
n === void 0 ? (n = [e], o.set(t, n)) : n.push(e);
} else a.push(e);
}
for (let [t, s] of o) if (e[t] !== void 0) {
let { data: o, unpathedErrors: c } = ag(e[t], s, n, r, i + 1);
e[t] = o, a.push(...c);
} else a.push(...s);
return {
data: e,
unpathedErrors: a
};
}
function og(e) {
if (e == null) throw Error("Data cannot be extracted from result without an explicit key or source schema.");
return e.fieldNodes[0].alias?.value ?? e.fieldName;
}
function sg(e) {
if (e == null) throw Error("Return type cannot be inferred without a source schema.");
return e.returnType;
}
function cg(e) {
let t = [], n = [], r = /* @__PURE__ */ new Set();
for (let i = 0; i < e.definitions.length; i++) {
let a = e.definitions[i];
a?.kind === "FragmentDefinition" ? (n.push(a), r.add(a.name.value)) : a?.kind === "OperationDefinition" && t.push(a);
}
return {
operations: t,
fragments: n,
fragmentNames: r
};
}
var lg = yl(function(e) {
return new Ve(e);
}), ug = bl(function(e, t) {
return new Ve(e, t);
}), dg = xl(function(e, t, n) {
return n(t, e);
});
function fg(e, n, r, i, a, o) {
let s = [], c = [], l = [], u = [], d = [], f = /* @__PURE__ */ Object.create(null);
for (let t of r) {
if (t.selectionSet.selections.length === 0) continue;
let n = t.typeCondition.name.value, r = e.getType(n);
r != null && (d.push(t), f[t.name.value] = r);
}
let p = /* @__PURE__ */ Object.create(null), m = 0;
for (let t of i) {
let { selectionSet: n, usedFragments: r, usedVariables: i } = Og(e, Ul(e, t.operation), f, t.selectionSet, a, o, d);
c = Fg(c, r);
let { usedVariables: h, newFragments: g, fragmentSet: _ } = Tg(e, p, d, f, c, a, o), v = Fg(i, h);
s = Fg(s, v), u = g, p = _;
let y = [];
for (let e of v) {
let n = t.variableDefinitions?.find((t) => t.variable.name.value === e);
n != null && y.push(n);
}
t.operation === "subscription" && (n.selections = n.selections.filter((e) => e.kind !== "Field" || e.name.value !== "__typename")), n.selections.length === 1 && n.selections[0] && n.selections[0].kind === "Field" && n.selections[0].name.value === "__typename" || (m += n.selections.length, l.push({
kind: He,
operation: t.operation,
name: t.name,
directives: t.directives,
variableDefinitions: y,
selectionSet: n
}));
}
if (!l.length || m === 0) throw new P("Failed to create a gateway request. The request must contain at least one operation.", { extensions: { [Tm]: !0 } });
let h = new Set(u.map((e) => e.name.value)), g = h.size < c.length, _ = {
kind: y,
definitions: [...l, ...u]
}, v = o.info?.schema?.extensions?.stitchingInfo;
if (v != null && bg(v, o.subschema)) {
let { selectionSetsByPath: r, fragments: i } = _g(n), a = lg(e), s = [], c = [];
_ = It(_, xe(a, {
[Se]: {
enter() {
c.push(/* @__PURE__ */ new Map());
},
leave() {
c.pop();
}
},
[He]: {
enter(e) {
s.push(`op:${e.operation}:${e.name?.value ?? ""}`);
},
leave() {
s.pop();
}
},
[be]: {
enter(e) {
s.push(`frag:${e.name.value}`);
},
leave() {
s.pop();
}
},
[t]: {
enter(e) {
s.push(vg(e, c[c.length - 1]));
},
leave() {
s.pop();
}
},
[w]: {
enter(e) {
s.push(e.alias?.value ?? e.name.value);
},
leave(e) {
try {
let t = a.getParentType();
if (!t) return;
let n = (v?.mergedTypes?.[t.name])?.providedSelectionsByField?.get(o.subschema)?.[e.name.value];
if (!n) return;
let c = xg(s, e, r), l = Sg(n.selections, c, i);
return l.length ? {
...e,
selectionSet: {
kind: Se,
selections: [...l, ...e.selectionSet?.selections ?? []]
}
} : void 0;
} finally {
s.pop();
}
}
}
}));
}
if (g) {
let e = _.definitions.filter((e) => e.kind === He), t = _.definitions.filter((e) => e.kind === be);
_ = {
kind: y,
definitions: [...mg(e, h), ...t]
};
}
return {
usedVariables: s,
newDocument: _
};
}
function pg(e, t, n) {
let { operations: r, fragments: i } = cg(e.document), { targetSchema: a } = t, { usedVariables: o, newDocument: s } = fg(a, e.document, i, r, n, t), c = {}, l = Ah(t.info?.variableValues);
for (let t of o) {
let n = e.variables?.[t], r = l?.[t];
n == null ? r != null && (c[t] = r) : c[t] = n, (n === null || r === null) && (c[t] = null);
}
return {
...e,
document: s,
variables: c
};
}
function mg(e, t) {
function n(e) {
let r = [];
for (let i of e) if (i.kind === "FragmentSpread") t.has(i.name.value) && r.push(i);
else if ((i.kind === "Field" || i.kind === "InlineFragment") && i.selectionSet) {
let e = n(i.selectionSet.selections);
if (e.length === 0 && i.kind === "InlineFragment" || e.length === 0 && i.kind === "Field") continue;
r.push(e === i.selectionSet.selections ? i : {
...i,
selectionSet: {
kind: Se,
selections: e
}
});
} else r.push(i);
return r;
}
return e.map((e) => ({
...e,
selectionSet: {
...e.selectionSet,
selections: n(e.selectionSet.selections)
}
}));
}
function hg(e) {
return e.kind === "Field" && !e.alias && e.name.value === "__typename";
}
function gg(e) {
let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
for (let t of e.definitions) t.kind === "FragmentDefinition" && r.set(t.name.value, t);
let i = [], a = [];
return It(e, {
[Se]: {
enter() {
a.push(/* @__PURE__ */ new Map());
},
leave() {
a.pop();
}
},
[He]: {
enter(e) {
i.push(`op:${e.operation}:${e.name?.value ?? ""}`);
},
leave() {
i.pop();
}
},
[be]: {
enter(e) {
i.push(`frag:${e.name.value}`);
},
leave() {
i.pop();
}
},
[t]: {
enter(e) {
i.push(vg(e, a[a.length - 1]));
},
leave() {
i.pop();
}
},
[w]: {
enter(e) {
if (i.push(e.alias?.value ?? e.name.value), e.selectionSet && (n.set(i.join(">"), e.selectionSet), e.alias)) {
let t = [...i.slice(0, -1), e.name.value].join(">");
n.has(t) || n.set(t, e.selectionSet);
}
},
leave() {
i.pop();
}
}
}), {
selectionSetsByPath: n,
fragments: r
};
}
var _g = yl(gg);
function vg(e, t) {
let n = e.typeCondition?.name.value ?? "";
if (!t) return `inline:${n}:0`;
let r = t.get(n) ?? 0;
return t.set(n, r + 1), `inline:${n}:${r}`;
}
function yg(e, t) {
let n = e.mergedTypes;
if (!n) return !1;
for (let e of Object.values(n)) if (e?.providedSelectionsByField?.has(t)) return !0;
return !1;
}
var bg = bl(yg);
function xg(e, t, n) {
let r = n.get(e.join(">"));
if (r || !t.alias) return r;
let i = [...e.slice(0, -1), t.name.value].join(">");
return n.get(i);
}
function Sg(e, t, n) {
if (!t) return [];
let r = /* @__PURE__ */ new Map(), i = [];
for (let t of e) t.kind === "Field" ? r.set(t.name.value, t) : i.push(t);
let a = [];
return Cg(t, r, n, /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), a), [...a, ...i];
}
function Cg(e, n, r, i, a, o) {
for (let s of e.selections) if (s.kind === "Field") {
let e = n.get(s.name.value);
if (!e) continue;
let t = s.alias?.value ?? s.name.value;
if (i.has(t)) continue;
if (i.add(t), e.selectionSet && s.selectionSet) {
let t = Sg(e.selectionSet.selections, s.selectionSet, r);
if (!t.length) continue;
o.push({
...s,
selectionSet: {
kind: Se,
selections: t
}
});
} else o.push(s);
} else if (s.kind === "InlineFragment" && s.selectionSet) {
let e = (s.directives?.length ?? 0) > 0, c = s.typeCondition != null;
if (e || c) {
let e = [];
if (Cg(s.selectionSet, n, r, /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), e), e.length === 0) continue;
o.push({
kind: t,
typeCondition: s.typeCondition,
directives: s.directives,
selectionSet: {
kind: Se,
selections: e
}
});
} else Cg(s.selectionSet, n, r, i, a, o);
} else if (s.kind === "FragmentSpread") {
let e = r.get(s.name.value);
if (!e) continue;
let c = (s.directives?.length ?? 0) > 0, l = (e.directives?.length ?? 0) > 0;
if (c || l) {
let i = [];
if (Cg(e.selectionSet, n, r, /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), i), i.length === 0) continue;
let a = [...s.directives ?? [], ...e.directives ?? []];
o.push({
kind: t,
typeCondition: e.typeCondition,
directives: a.length > 0 ? a : void 0,
selectionSet: {
kind: Se,
selections: i
}
});
} else {
if (a.has(s.name.value)) continue;
a.add(s.name.value), Cg(e.selectionSet, n, r, i, a, o);
}
}
}
function wg(e) {
let t = !1, n = e.filter((e) => !hg(e) || (t = !0, !1));
return {
hasTypeNameField: t,
selections: n
};
}
function Tg(e, t, n, r, i, a, o) {
let s = i.slice(), c = [], l = [];
for (; s.length !== 0;) {
let i = s.pop(), u = n.find((e) => e.name.value === i);
if (u != null) {
let d = i, f = u.typeCondition.name.value, p = e.getType(f);
if (p == null) throw Error(`Fragment reference type "${f}", but the type is not contained within the target schema.`);
let { selectionSet: m, usedFragments: h, usedVariables: g } = Og(e, p, r, u.selectionSet, a, o, n);
s = Fg(s, h), c = Fg(c, g), d && !(d in t) && (t[d] = !0, m.selections.length > 0 && l.push({
kind: be,
name: {
kind: je,
value: d
},
typeCondition: u.typeCondition,
selectionSet: m
}));
}
}
return {
usedVariables: c,
newFragments: l,
fragmentSet: t
};
}
var Eg = {
SelectionSet: ["selections"],
Field: ["selectionSet"],
InlineFragment: ["selectionSet"],
FragmentDefinition: ["selectionSet"]
}, Dg = {
SelectionSet: ["selections"],
Field: [
"arguments",
"directives",
"selectionSet"
],
Argument: ["value"],
InlineFragment: ["directives", "selectionSet"],
FragmentSpread: ["directives"],
FragmentDefinition: ["selectionSet"],
ObjectValue: ["fields"],
ObjectField: ["name", "value"],
Directive: ["arguments"],
ListValue: ["values"]
};
function Og(e, t, n, r, i, a, o) {
let s = [], c = [], l = kg(e, ug(e, t), n, r, i, s, /* @__PURE__ */ new WeakMap(), /* @__PURE__ */ new WeakMap(), a, o);
return It(l, { [Lt]: (e) => {
c.push(e.name.value);
} }, Dg), {
selectionSet: l,
usedFragments: s,
usedVariables: c
};
}
function kg(e, n, r, i, a, o, s, c, l, u) {
let d = [], p = Ng(l), m = /* @__PURE__ */ Object.create(null);
if (u) for (let e of u) m[e.name.value] = e;
return It(i, xe(n, {
[w]: {
enter: (i) => {
let d = n.getParentType(), p = n.getFieldDef();
if (l.context != null && l.info != null && d != null && p != null) {
let e = d.name, t = l.subschemaConfig?.merge?.[e]?.fields?.[p.name]?.override;
if (t != null && !dg(l.info, l.context, t)) return null;
}
if (A(d) || h(d)) {
if (!p) return null;
let e = p.args == null ? [] : p.args, t = /* @__PURE__ */ Object.create(null);
for (let n of e) t[n.name] = n;
if (i.arguments != null) {
let e = [];
for (let n of i.arguments) n.name.value in t && e.push(n);
if (e.length !== i.arguments.length) return {
...i,
arguments: e
};
}
}
if (_(d) && n.getType() == null) {
let n = [], p = i.name.value;
for (let e of d.getTypes()) {
let t = e.getFields()[p];
if (t != null) {
let r = Rt(t.type);
if (i.selectionSet?.selections?.length && f(r) || !i.selectionSet?.selections?.length && le(r)) continue;
n.push(e.name);
}
}
if (n.length > 0) {
let d = n.map((n) => {
if (!i.selectionSet?.selections) return {
kind: t,
typeCondition: {
kind: nt,
name: {
kind: je,
value: n
}
},
selectionSet: {
kind: Se,
selections: [i]
}
};
let d = e.getType(n).getFields()[i.name.value];
if (!d) return;
let f = kg(e, ug(e, d.type), r, i.selectionSet, a, o, s, c, l, u);
if (f.selections.length) return {
kind: t,
typeCondition: {
kind: nt,
name: {
kind: je,
value: n
}
},
selectionSet: {
kind: Se,
selections: [{
...i,
selectionSet: f
}]
}
};
}).filter((e) => e != null);
return d.length ? d.length === 1 ? d[0] : d : void 0;
}
}
},
leave: (t) => {
let r = n.getType();
if (r == null) return null;
let i = Rt(r);
if (e.getType(i.name) == null) return null;
if (A(i) || h(i)) {
let e = t.selectionSet == null ? null : t.selectionSet.selections;
if (e == null || e.length === 0) return null;
}
if (!p && jg(t.directives) && !Mg(n.getParentType(), e)) return {
...t,
directives: t.directives?.filter((e) => e.name.value !== "stream")
};
}
},
[ae]: { enter: (i) => {
if (Ag(i.directives) && !p) {
let r = m[i.name.value];
if (!r?.selectionSet?.selections?.length) return null;
let a = e.getType(r.typeCondition.name.value) ?? n.getParentType(), o = Pg(r.selectionSet.selections, a, l);
return o.length === 0 ? null : {
kind: t,
typeCondition: r.typeCondition,
selectionSet: {
kind: Se,
selections: o
}
};
}
if (!(i.name.value in r)) return null;
let a = n.getParentType(), s = r[i.name.value];
if (!sd(e, a, s)) return null;
o.push(i.name.value);
} },
[Se]: {
enter: (e, t, r, i) => {
let a = n.getParentType(), { hasTypeNameField: o, selections: s } = wg(e.selections);
return (o || a != null && Ft(a)) && s.unshift({
kind: w,
name: {
kind: je,
value: "__typename"
}
}), {
...e,
selections: s
};
},
leave: (e) => {
if (e.selections.some((e) => Array.isArray(e))) return {
...e,
selections: e.selections.flat().filter(Boolean)
};
}
},
[t]: {
enter: (t) => {
if (t.typeCondition != null) {
let r = n.getParentType(), i = e.getType(t.typeCondition.name.value);
if (!(_(r) && r.getTypes().some((e) => e.name === i?.name)) && !sd(e, r, i)) return null;
}
if (!p && Ag(t.directives) && t.selectionSet?.selections) {
let r = (t.typeCondition == null ? n.getParentType() : e.getType(t.typeCondition.name.value)) ?? n.getParentType();
d.push(Pg(t.selectionSet.selections, r, l));
} else d.push(null);
},
leave: (t, n, r) => {
let i = d.pop() ?? null;
if (Ag(t.directives) && !p) {
let e = i ?? [];
return e.length === 0 ? null : {
...t,
directives: t.directives?.filter?.((e) => e.name.value !== "defer"),
selectionSet: {
kind: Se,
selections: e
}
};
}
if (!t.selectionSet?.selections?.length) return null;
if (Array.isArray(r)) {
let n = t.typeCondition?.name.value;
if (n) {
let i = e.getType(n);
if (i && "getFields" in i) {
let e = i.getFields(), n = s.get(r);
n || (n = /* @__PURE__ */ new Set(), s.set(r, n));
let o = c.get(r);
o || (o = /* @__PURE__ */ new Set(), c.set(r, o)), t = {
...t,
selectionSet: {
...t.selectionSet,
selections: t.selectionSet.selections.map((t) => {
if (t.kind === "Field") {
let r = t.name.value;
if (!t.alias) {
let i = e[r];
if (i) {
let e;
if (Ze(i.type) ? (o.add(r), e = !0) : (n.add(r), e = !1), o.has(r) && n.has(r)) return a(), {
...t,
alias: {
kind: je,
value: e ? `_nullable_${r}` : `_nonNullable_${r}`
}
};
}
}
}
return t;
})
}
};
}
}
}
let { selections: o } = wg(t.selectionSet.selections);
return o.length === 0 ? null : {
...t,
selectionSet: {
...t.selectionSet,
selections: o
}
};
}
}
}), Eg);
}
function Ag(e) {
if (e == null) return !1;
for (let t = 0; t < e.length; t++) if (e[t].name.value === "defer") return !0;
return !1;
}
function jg(e) {
if (e == null) return !1;
for (let t = 0; t < e.length; t++) if (e[t].name.value === "stream") return !0;
return !1;
}
function Mg(e, t) {
return e == null ? !1 : e === t.getQueryType() || e === t.getMutationType() || e === t.getSubscriptionType();
}
function Ng(e) {
return e.subschemaConfig?.defer === !0;
}
function Pg(e, t, n) {
if (!t || !("getFields" in t)) return [];
let r = (n.info?.schema.extensions?.stitchingInfo)?.mergedTypes?.[t.name], i = t.getFields(), a = [], o = /* @__PURE__ */ new Set();
function s(e) {
o.has(e) || i[e] == null || (o.add(e), a.push({
kind: w,
name: {
kind: je,
value: e
}
}));
}
function c(e) {
if (r?.fieldSelectionSets) for (let t of r.fieldSelectionSets.values()) {
let n = t?.[e];
if (n?.selections) for (let e of n.selections) e.kind === "Field" && s(e.name.value);
}
let t = r?.providedSelectionsByField?.get(n.subschema)?.[e];
if (t?.selections) for (let e of t.selections) e.kind === "Field" && s(e.name.value);
}
function l(e) {
for (let t of e) if (t.kind === "Field") {
let e = t.name.value;
i[e] ?? c(e);
} else if (t.kind === "InlineFragment" && t.selectionSet) l(t.selectionSet.selections);
else if (t.kind === "FragmentSpread") {
let e = n.info?.fragments?.[t.name.value];
e?.selectionSet?.selections && l(e.selectionSet.selections);
}
}
return l(e), a;
}
function Fg(...e) {
let t = /* @__PURE__ */ Object.create(null), n = [];
for (let r of e) for (let e of r) e in t || (t[e] = !0, n.push(e));
return n;
}
function Ig(e, t) {
let n = t.transformedSchema, r = t.returnType, i = t.info?.schema, a = Jg(r, n, e);
if (i == null) return a;
let o = /* @__PURE__ */ new WeakSet(), { possibleTypesMap: s, reversePossibleTypesMap: c, interfaceExtensionsMap: l, fieldNodesByType: u, fieldNodesByField: d, dynamicSelectionSetsByField: f } = Gg(i, n), { operations: p, fragments: m, fragmentNames: h } = cg(a), { expandedFragments: g, fragmentReplacements: _ } = qg(m, h, s), v = lg(n), b = {
kind: y,
definitions: [
...p,
...m,
...g
]
}, x = /* @__PURE__ */ Object.create(null);
for (let e of b.definitions) e.kind === "FragmentDefinition" && (x[e.name.value] = e);
let S = {
Document: ["definitions"],
OperationDefinition: ["selectionSet"],
SelectionSet: ["selections"],
Field: ["selectionSet"],
InlineFragment: ["selectionSet"],
FragmentDefinition: ["selectionSet"]
};
return It(b, xe(v, { [Se]: (e) => Rg(e, _, n, v, s, c, l, u, d, f, i, o, x, t) }), S);
}
var Lg = bl(function(e, t) {
let n = /* @__PURE__ */ new Map();
return function(r) {
let i = n.get(r);
if (!i) {
i = /* @__PURE__ */ new Set();
let a = t.getType(r), o = e.getType(r);
if (Ft(a) && Ft(o)) {
let n = t.getPossibleTypes(a), r = e.getPossibleTypes(o);
for (let t of n) {
let n = e.getType(t.name);
n && (n && r.some((e) => e.name === t.name) || i.add(t.name));
}
}
n.set(r, i);
}
return i;
};
});
function Rg(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
let m = /* @__PURE__ */ new Set(), g = r.getParentType();
if (g != null) {
let r = Rt(g);
if (Bg(n, r, e, f, u, p)) {
Ft(p.returnType) && Hg(m, {
kind: w,
name: {
kind: je,
value: "__typename"
}
});
for (let t of e.selections) Hg(m, t);
return {
...e,
selections: Array.from(m)
};
}
let _ = r.name, v = s[_];
if (v) for (let e of v) Hg(m, e);
let y = o[r.name], b = [];
for (let a of e.selections) if (a.kind === "InlineFragment") {
if (a.typeCondition != null) {
if (!d.has(a)) {
d.add(a);
let e = a.typeCondition.name.value, t = Lg(n, u)(e);
for (let e of t) Hg(m, {
...a,
typeCondition: {
kind: nt,
name: {
kind: je,
value: e
}
}
});
let r = n.getType(e);
if (A(r) || h(r)) {
let e = r.getFields();
for (let t of a.selectionSet.selections) t.kind === "Field" && (e[t.name.value] || Hg(m, t));
} else if (!r) for (let e of a.selectionSet.selections) Hg(m, e);
}
let e = i[a.typeCondition.name.value];
if (e == null) {
let e = c[_]?.__typename;
if (e) for (let t of e) Hg(m, t);
Hg(m, a);
continue;
}
for (let t of e) {
let e = n.getType(t);
e != null && sd(n, r, e) && Hg(m, Wg(t, a.selectionSet));
}
e.length === 0 && Hg(m, a);
} else Hg(m, a);
} else if (a.kind === "FragmentSpread") {
let e = a.name.value;
if (!t[e]) {
Hg(m, a);
continue;
}
for (let i of t[e]) {
let e = i.typeName;
n.getType(e) != null && sd(n, r, g) && Hg(m, {
kind: ae,
name: {
kind: je,
value: i.fragmentName
}
});
}
} else {
let e = a.name.value;
if (y?.[e] ? b.push(a) : Hg(m, a), Ft(r)) {
let e = c[_]?.__typename;
if (e) for (let t of e) Hg(m, t);
}
let t = c[_];
t && Ug(a, /* @__PURE__ */ new Set(), t, m);
let n = l[_]?.[e];
if (n != null) for (let e of n) {
let t = e(a);
if (t != null) for (let e of t.selections) Hg(m, e);
}
}
if (a[r.name] && Hg(m, {
kind: w,
name: {
kind: je,
value: "__typename"
}
}), b.length) {
let e = i[r.name];
if (e != null) for (let t of e) Hg(m, Wg(t, {
kind: Se,
selections: b
}));
}
return {
...e,
selections: Array.from(m)
};
}
return e;
}
function zg(e, t) {
for (let n of t) if (n.kind === "Field" && n.name.value === e.name.value && n.alias?.value === e.alias?.value) return !(e.selectionSet && !n.selectionSet || e.selectionSet && n.selectionSet && !Vg({
incoming: e.selectionSet,
existing: n.selectionSet.selections
}));
return !1;
}
function Bg(e, t, n, r, i, a) {
let o = Rt(t);
if (f(o)) return !0;
let s = A(o) || h(o) ? o.getFields() : null;
for (let c of n.selections) if (c.kind === "Field") {
if (Ft(o)) return !1;
let t = c.name.value;
if (t === "__typename") continue;
if (s) {
let n = s[t];
if (!n) return !1;
let l = i.getType(o.name)?.getFields?.()?.[t]?.resolve;
if (l != null && l.name !== "defaultMergedResolver" && l.name !== "defaultFieldResolver") return !1;
if (a.info) {
let e = a.subschemaConfig?.merge?.[o.name]?.fields?.[n.name]?.override;
if (e != null && !dg(a.info, a.context, e)) return !1;
}
if (c.selectionSet && !Bg(e, Rt(n.type), c.selectionSet, r, i, a)) return !1;
} else return !1;
} else if (c.kind === "InlineFragment") {
if (c.typeCondition) {
let t = c.typeCondition.name.value, n = e.getType(t);
if (!n || !Bg(e, n, c.selectionSet, r, i, a)) return !1;
} else if (!Bg(e, t, c.selectionSet, r, i, a)) return !1;
} else if (c.kind === "FragmentSpread") {
let t = r[c.name.value];
if (!t) return !1;
let n = t.typeCondition.name.value, o = e.getType(n);
if (!o || !Bg(e, o, t.selectionSet, r, i, a)) return !1;
}
return !0;
}
function Vg({ incoming: e, existing: t }) {
for (let n of e.selections) if (n.kind === "Field") {
let e = t.find((e) => e.kind === "Field" && e.name.value === n.name.value && e.alias?.value === n.alias?.value);
if (!e || n.selectionSet && !e.selectionSet || n.selectionSet && e.selectionSet && !Vg({
incoming: n.selectionSet,
existing: e.selectionSet.selections
})) return !1;
} else return !1;
return !0;
}
function Hg(e, t) {
t.kind === "Field" && zg(t, e) || e.add(t);
}
function Ug(e, t, n, r) {
if (t.has(e.name.value)) return;
t.add(e.name.value);
let i = n[e.name.value];
if (i != null) for (let e of i) Hg(r, e), Ug(e, t, n, r);
}
function Wg(e, n) {
return {
kind: t,
typeCondition: {
kind: nt,
name: {
kind: je,
value: e
}
},
selectionSet: n
};
}
var Gg = bl((e, t) => {
let n = e.getTypeMap(), r = t.getTypeMap(), i = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
for (let t in n) {
let o = n[t];
if (Ft(o)) {
let n = r[t];
if (h(o) && h(n)) {
let e = n.getFields(), r = o.getFields(), i = /* @__PURE__ */ Object.create(null), s = !0;
for (let t in r) e[t] || (i[t] = !0, s = !1);
s || (a[t] = i);
}
if (a[t] || !Ft(n)) {
let n = e.getPossibleTypes(o);
i[t] = [];
for (let e of n) r[e.name] && i[t].push(e.name);
}
}
}
let o = e.extensions?.stitchingInfo;
return {
possibleTypesMap: i,
reversePossibleTypesMap: Kg(i),
interfaceExtensionsMap: a,
fieldNodesByType: o?.fieldNodesByType ?? {},
fieldNodesByField: o?.fieldNodesByField ?? {},
dynamicSelectionSetsByField: o?.dynamicSelectionSetsByField ?? {}
};
});
function Kg(e) {
let t = /* @__PURE__ */ Object.create(null);
for (let n in e) {
let r = e[n];
if (r) for (let e of r) t[e] || (t[e] = []), t[e].push(n);
}
return t;
}
function qg(e, t, n) {
let r = 0;
function i(e) {
let n;
do
n = `_${e}_Fragment${r.toString()}`, r++;
while (t.has(n));
return n;
}
let a = [], o = /* @__PURE__ */ Object.create(null);
for (let r of e) {
let e = n[r.typeCondition.name.value];
if (e != null) {
let n = r.name.value;
o[n] = [];
for (let s of e) {
let e = i(s);
t.add(e), a.push({
kind: be,
name: {
kind: je,
value: e
},
typeCondition: {
kind: nt,
name: {
kind: je,
value: s
}
},
selectionSet: r.selectionSet
}), o[n].push({
fragmentName: e,
typeName: s
});
}
}
}
return {
expandedFragments: a,
fragmentReplacements: o
};
}
function Jg(e, n, r) {
let i = Rt(e);
if (f(i)) return r;
let a = Ft(i) ? n.getPossibleTypes(i) : [i];
a.length === 0 && (a = [i]);
let o = Wl(n), s = lg(n), c = {
Document: ["definitions"],
OperationDefinition: ["selectionSet"],
SelectionSet: ["selections"],
InlineFragment: ["selectionSet"],
FragmentDefinition: ["selectionSet"]
};
return It(r, xe(s, {
[be]: (e) => {
let t = e.typeCondition.name.value;
if (!o.has(t)) return !1;
},
[w]: (e) => {
let n = s.getType();
if (n) {
let r = Rt(n);
if (Ft(r) && r.name !== i.name && a.length > 0) return {
...e,
selectionSet: {
kind: Se,
selections: a.map((n) => ({
kind: t,
typeCondition: {
kind: nt,
name: {
kind: je,
value: n.name
}
},
selectionSet: e.selectionSet
}))
}
};
}
}
}), c);
}
var Yg = class {
transformations = [];
delegationContext;
hasOverlappingAliases = !1;
constructor(e) {
this.delegationContext = e;
let t = e.transforms.slice().reverse();
for (let e of t) this.addTransform(e);
}
addTransform(e, t = {}) {
this.transformations.push({
transform: e,
context: t
});
}
transformRequest(e) {
let t = {
...e,
document: Ig(e.document, this.delegationContext)
};
for (let e of this.transformations) e.transform.transformRequest && (t = e.transform.transformRequest(t, this.delegationContext, e.context));
return pg(t, this.delegationContext, () => {
this.hasOverlappingAliases = !0;
});
}
transformResult(e) {
let t = e;
for (let e = this.transformations.length - 1; e >= 0; e--) {
let n = this.transformations[e];
n?.transform.transformResult && (t = n.transform.transformResult(t, this.delegationContext, n.context));
}
return this.hasOverlappingAliases && (t = Xg(t)), ig(t, this.delegationContext);
}
};
function Xg(e) {
if (e != null) {
if (Array.isArray(e)) return e.map(Xg);
if (typeof e == "object") {
let t = {};
for (let n in e) if (n.startsWith("_nullable_") || n.startsWith("_nonNullable_")) {
let r = n.replace(/^_nullable_/, "").replace(/^_nonNullable_/, "");
t[r] = Xg(e[n]);
} else t[n] = Xg(e[n]);
return t;
}
}
return e;
}
var Zg = {
promiseAll: Promise.all.bind(Promise),
track: () => void 0
};
function Qg(e) {
return e == null || "getAbortSignal" in e && "getAsyncHelpers" in e ? e : Object.assign(e, {
getAbortSignal: () => void 0,
getAsyncHelpers: () => Zg
});
}
function $g(e, t) {
return e === t.getMutationType() ? "mutation" : e === t.getSubscriptionType() ? "subscription" : "query";
}
function e_({ subgraphName: e, fragments: t, rootValue: n, targetOperationName: r, targetOperation: i, targetSchema: a, targetFieldName: o, selectionSet: s, fieldNodes: c, context: l, info: u, args: d }) {
let f;
if (s != null) f = s;
else {
let e = [];
for (let t of c || []) if (t.selectionSet) for (let n of t.selectionSet.selections) e.push(n);
f = e.length ? {
kind: Se,
selections: e
} : void 0;
}
let p = c?.[0], m = o ?? p?.name.value;
if (m === void 0) throw Error("Either \"targetFieldName\" or a non empty \"fieldNodes\" array must be provided.");
let h = Ah(u?.variableValues), g = h ? { ...h } : {}, _ = u?.operation.variableDefinitions ? [...u.operation.variableDefinitions] : [], v = [], x = /* @__PURE__ */ new Set();
if (d != null) {
let e = (a == null ? void 0 : Ul(a, i))?.getFields()[m]?.args;
for (let t in d) {
let n = d[t], r = e?.find((e) => e.name === t), i = p?.arguments?.find((e) => e.name.value === t);
if (i && !r) v.push(i);
else {
if (i?.value.kind === "Variable") {
let e = i.value.name.value, t = g[e], o = _.find((t) => t.variable.name.value === e), s = o && a ? Dt(u?.schema ?? a, o.type) : void 0;
if (t === n && s && r && xt(u?.schema ?? a, s, r.type)) {
v.push(i);
continue;
}
}
if (r) {
let e = Jl(r, a), o = (e) => _.some((t) => t.variable.name.value === e) || h?.[e] != null, s = t;
if (o(s)) {
s = `_${m}_${t}`;
let e = 0;
for (; o(s);) s = `_${e++}_${m}_${t}`;
}
i?.value.kind === "Variable" && x.add(i.value.name.value), _.push({
kind: Oe,
variable: {
kind: Lt,
name: {
kind: je,
value: s
}
},
type: e.type
});
let c = t_(n, r.type);
c !== void 0 && (g[s] = c), v.push({
kind: b,
name: {
kind: je,
value: t
},
value: {
kind: Lt,
name: {
kind: je,
value: s
}
}
});
} else {
let e = Al(n);
e != null && v.push({
kind: b,
name: {
kind: je,
value: t
},
value: e
});
}
}
}
}
let S = {
kind: w,
arguments: v,
name: {
kind: je,
value: m
},
selectionSet: f,
directives: p?.directives
}, C = [{
kind: He,
name: r ? {
kind: je,
value: r
} : void 0,
operation: i,
variableDefinitions: _,
selectionSet: {
kind: Se,
selections: [S]
}
}];
t != null && C.push(...t);
let T = {
kind: y,
definitions: C
};
if (x.size > 0) {
let e = /* @__PURE__ */ new Set();
It(T, {
VariableDefinition: () => !1,
Variable: (t) => {
e.add(t.name.value);
}
});
for (let t of x) if (!e.has(t)) {
let e = _.findIndex((e) => e.variable.name.value === t);
e !== -1 && (_.splice(e, 1), delete g[t]);
}
}
return {
subgraphName: e,
document: T,
variables: g,
rootValue: n,
operationName: r,
context: l,
info: Qg(u),
operationType: i
};
}
function t_(e, t) {
if (e == null) return e;
if (i(t)) return t_(e, t.ofType);
if (ne(t)) return _l(e).map((e) => t_(e, t.ofType));
if (Mt(t) && typeof e == "object") {
let n = {}, r = t.getFields();
for (let t in e) {
let i = r[t];
if (i) {
let r = t_(e[t], i.type);
r !== void 0 && (n[t] = r);
}
}
return n;
}
return t.name === "Boolean" ? !!e : t.name === "Int" || t.name === "Float" ? Number(e) : t.name === "String" ? String(e) : e;
}
var n_ = class {
constructor(e) {
this.delegationContext = e, this.fieldName = e.fieldName;
let t = e.info;
this.initialPathLength = t?.path ? Ee(t.path).length : 0;
}
fieldName;
initialPathLength;
waiters = /* @__PURE__ */ new Map();
fieldWaiters = [];
rootObject = null;
finished = !1;
attachTo(e) {
typeof e == "object" && e && (this.rootObject = e, i_(e, this, this.delegationContext));
}
start(e) {
this.consume(e).catch(() => {});
}
handleChunk(e) {
if (e?.incremental?.length) for (let t of e.incremental) this.applyPatch(t);
else if (e?.data && this.rootObject) {
let t = e.data[this.fieldName];
typeof t == "object" && t && this.mergeInto(this.rootObject, [], t);
}
}
finish() {
if (!this.finished) {
this.finished = !0;
for (let e of this.waiters.values()) for (let t of e) t.resolve(void 0);
this.waiters.clear();
for (let { deferred: e } of this.fieldWaiters) e.resolve(void 0);
this.fieldWaiters.length = 0;
}
}
async consume(e) {
try {
for await (let t of e) if (this.handleChunk(t), t?.hasNext === !1) break;
this.finish();
} catch (e) {
if (e?.name === "AbortError") {
this.finish();
return;
}
this.fail(e);
}
}
fail(e) {
if (this.finished) return;
this.finished = !0;
let t = e instanceof Error ? e : new P(e == null ? "Incremental stream failed" : String(e));
for (let e of this.waiters.values()) for (let n of e) n.resolve(t);
this.waiters.clear();
for (let { deferred: e } of this.fieldWaiters) e.resolve(t);
this.fieldWaiters.length = 0;
}
request(e) {
let t = Ee(e.path).slice(this.initialPathLength);
return this.waitForPath(t);
}
requestField(e, t) {
if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0 || this.finished) return tl(e[t]);
let n = nl();
return this.fieldWaiters.push({
parent: e,
key: t,
deferred: n
}), n.promise;
}
async *streamList(e) {
let t = Ee(e.path).slice(this.initialPathLength), n = 0;
for (;;) {
let e = o_(t, n);
if (c_(this.rootObject, e)) {
yield s_(this.rootObject, e), n++;
continue;
}
if (this.finished) {
let e = s_(this.rootObject, t);
if (Array.isArray(e)) for (; n < e.length;) e[n] !== void 0 && (yield e[n]), n++;
return;
}
let r = await this.waitForPath(e);
if (r === void 0) {
if (this.finished) return;
} else yield r, n++;
}
}
waitForPath(e) {
let t = a_(e);
if (c_(this.rootObject, e) || this.finished) return tl(s_(this.rootObject, e));
let n = nl(), r = this.waiters.get(t);
return r || (r = [], this.waiters.set(t, r)), r.push(n), n.promise;
}
applyPatch(e) {
if (!this.rootObject) return;
let t = e.path ?? [], n = t.length > 0 && t[0] === this.fieldName ? t.slice(1) : t;
if (e.items != null) {
let t = n.slice(0, -1), r = n[n.length - 1];
if (typeof r != "number") return;
let i = s_(this.rootObject, t);
if (!Array.isArray(i)) {
if (i = [], t.length === 0) return;
let e = this.rootObject;
for (let n = 0; n < t.length - 1; n++) {
let r = t[n];
(e[r] == null || typeof e[r] != "object") && (e[r] = typeof t[n + 1] == "number" ? [] : {}), e = e[r];
}
e[t[t.length - 1]] = i;
}
for (let n = 0; n < e.items.length; n++) i[r + n] = e.items[n], this.notify(a_(t, r + n), e.items[n]);
} else if (e.data != null && typeof e.data == "object") {
let t = l_(e.data, e.errors);
this.mergeInto(this.rootObject, n, t);
} else if (e.errors?.length) {
let t = e.errors[0], r = a_(n);
r && this.notify(r, t);
for (let [e, n] of this.waiters) if (e.startsWith(r ? `${r}.` : "")) {
for (let e of n) e.resolve(t);
this.waiters.delete(e);
}
}
}
mergeInto(e, t, n) {
let r = e;
for (let e of t) (r[e] == null || typeof r[e] != "object") && (r[e] = typeof e == "number" ? [] : {}, i_(r[e], this, this.delegationContext)), r = r[e];
for (let i of Object.keys(n)) {
let a = n[i];
if (Object.prototype.hasOwnProperty.call(r, i)) {
let n = r[i];
if (n === void 0) {
r[i] = a, typeof a == "object" && a && i_(a, this, this.delegationContext), this.notify(a_(t, i), a), this.notifyField(r, i, a);
continue;
}
if (n != null && a != null && typeof n == "object" && typeof a == "object" && !Array.isArray(n) && !Array.isArray(a) && !(a instanceof Error)) this.mergeInto(e, o_(t, i), a);
else if (Array.isArray(n) && typeof a == "object" && a && !(a instanceof Error)) {
let r = o_(t, i);
for (let t of Object.keys(a)) {
let i = Number(t), o = a[t], s = n[i];
Number.isInteger(i) && typeof o == "object" && o && !(o instanceof Error) && typeof s == "object" && s && !(s instanceof Error) && this.mergeInto(e, o_(r, i), o);
}
}
} else r[i] = a, typeof a == "object" && a && !(a instanceof Error) && i_(a, this, this.delegationContext), this.notify(a_(t, i), a), this.notifyField(r, i, a);
}
}
notify(e, t) {
let n = this.waiters.get(e);
if (n) {
for (let e of n) e.resolve(t);
this.waiters.delete(e);
}
}
notifyField(e, t, n) {
for (let r = this.fieldWaiters.length - 1; r >= 0; r--) {
let i = this.fieldWaiters[r];
i.parent === e && i.key === t && (i.deferred.resolve(n), this.fieldWaiters.splice(r, 1));
}
}
};
function r_(e) {
return e?.[Bh];
}
function i_(e, t, n) {
if (typeof e != "object" || !e) return;
if (Array.isArray(e)) {
for (let r = 0; r < e.length; r++) i_(e[r], t, n);
return;
}
if (e[Bh] === t) return;
Vh(e) || Hh(e, [], n.subschema, /* @__PURE__ */ Object.create(null)), Object.defineProperty(e, Bh, {
value: t,
writable: !0,
configurable: !0
});
let r = Object.keys(e);
for (let i = 0; i < r.length; i++) {
let a = e[r[i]];
typeof a == "object" && a && i_(a, t, n);
}
}
function a_(e, t) {
return t === void 0 ? e.length === 0 ? "" : e.join(".") : e.length === 0 ? String(t) : `${e.join(".")}.${t}`;
}
function o_(e, t) {
if (e.length === 0) return [t];
let n = e.slice();
return n.push(t), n;
}
function s_(e, t) {
if (e == null) return;
let n = e;
for (let e = 0; e < t.length; e++) {
if (typeof n != "object" || !n) return;
let r = t[e];
if (!Object.prototype.hasOwnProperty.call(n, r)) return;
n = n[r];
}
return n;
}
function c_(e, t) {
if (e == null) return !1;
if (t.length === 0) return !0;
let n = e;
for (let e = 0; e < t.length; e++) {
if (typeof n != "object" || !n) return !1;
let r = t[e];
if (!Object.prototype.hasOwnProperty.call(n, r)) return !1;
n = n[r];
}
return n !== void 0;
}
function l_(e, t, n) {
if (!t?.length) return e;
let r = { ...e };
for (let e of t) {
let t = e.path?.at(-1);
t != null && Object.prototype.hasOwnProperty.call(r, t) && r[t] == null && (r[String(t)] = e);
}
return r;
}
function u_(e, t, n) {
let r = e.transforms ?? e.transforms;
if (!r?.length) return n;
for (let e of r) {
let r = h_(e, t, n);
if (r != null) return r;
}
return n;
}
function d_(e, t, n) {
let r = e.transforms ?? e.transforms;
if (r?.length) for (let e of r) {
let r = g_(e);
if (r && r.typeName === t && r.newFieldName === n) return r;
}
}
function f_(e, t) {
let n = e;
for (let e of t.pathToField) {
if (typeof n != "object" || !n) return;
n = n[e];
}
if (typeof n == "object" && n) return {
parent: n,
fieldName: t.oldFieldName
};
}
function p_(e, t, n) {
let r = (() => {
let n = e.getType(t);
return A(n) ? n : void 0;
})();
if (r) {
for (let e of n.pathToField) {
let t = r.getFields()[e];
if (t == null) return;
let n = m_(t.type);
if (!A(n)) return;
r = n;
}
return r;
}
}
function m_(e) {
let t = e;
for (; typeof t == "object" && t && "ofType" in t && t.ofType;) t = t.ofType;
return t;
}
function h_(e, t, n) {
let r = e;
for (let e = 0; e < 4 && r; e++) {
let e = r.mapping?.[t]?.[n];
if (typeof e == "string") return e;
r = r.transformer;
}
}
function g_(e) {
if (e && typeof e.typeName == "string" && typeof e.newFieldName == "string" && typeof e.oldFieldName == "string" && Array.isArray(e.pathToField)) return e;
}
function __(e, t, n, r) {
let i = e.uniqueFields[t];
if (i != null) return i;
let a = e.nonUniqueFields[t];
if (a != null && a.length !== 0) {
for (let i of a) {
let a = i.merge?.[e.typeName]?.fields?.[t]?.override;
if (a != null && r != null && dg(n, r, a)) return i;
}
return a[0];
}
}
function v_(e, t) {
return !Object.prototype.hasOwnProperty.call(e, t) || e[t] === void 0;
}
function y_(e) {
for (let t of e.fieldNodes) {
let e = t.directives;
if (e != null) {
for (let t = 0; t < e.length; t++) if (e[t].name.value === "stream") return !0;
}
}
return !1;
}
function b_(e, t, n, r) {
if (!e) return null;
let i = r.fieldNodes[0].alias?.value ?? r.fieldName;
if (!Vh(e)) return ea(e, t, n, r);
let a = r_(e);
if (a && y_(r)) return a.streamList(r);
if (v_(e, i)) {
let a = r_(e);
if (a) return Zc(() => a.requestField(e, i), (t) => Zh(t, Wh(e), Uh(e, i), n, r));
let o = Ih(e);
if (o) {
let t = o.missingFieldsParentMap.get(e);
t || (t = [], o.missingFieldsParentMap.set(e, t)), t.push(...r.fieldNodes.filter((e) => o.unproxiableFieldNodes.some((t) => t === e)));
let a = o.missingFieldsParentDeferredMap.get(e);
a || (a = /* @__PURE__ */ new Map(), o.missingFieldsParentDeferredMap.set(e, a));
let s = nl();
a.set(i, s);
let c = r.schema.extensions?.stitchingInfo, l = e?.__typename || r.parentType.name;
return L_.set(s, {
parentTypeName: l,
fieldName: r.fieldName,
responseKey: i,
path: Ee(r.path),
sourceSubschema: e[Rh]
}), (c?.fieldNodesByField?.[l]?.[r.fieldName])?.every((t) => !v_(e, t.alias?.value ?? t.name.value)) ? w_(e, i, n, r) : T_(e, n, r, o), s.promise;
}
if (!v_(e, r.fieldName)) return ea(e, t, n, r);
let s = r.schema?.extensions?.stitchingInfo, c = e.__typename || r.parentType?.name, l = c ? s?.mergedTypes[c] : void 0, u = e[Rh];
if (l && u) {
let a = {
kind: w,
name: r.fieldNodes[0]?.name ?? {
kind: "Name",
value: r.fieldName
},
selectionSet: {
kind: Se,
selections: r.fieldNodes
}
};
return Zc(() => qh(l, e, u, n, r, [a]), () => {
if (!v_(e, i)) return w_(e, i, n, r);
let a = Ih(e);
if (a) {
let t = a.missingFieldsParentMap.get(e);
t || (t = [], a.missingFieldsParentMap.set(e, t)), new Set(a.unproxiableFieldNodes.map((e) => e.name.value)).has(r.fieldName) && t.push(...r.fieldNodes);
let o = a.missingFieldsParentDeferredMap.get(e);
o || (o = /* @__PURE__ */ new Map(), a.missingFieldsParentDeferredMap.set(e, o));
let l = o.get(i);
if (l) return l.promise;
let u = nl();
return o.set(i, u), L_.set(u, {
parentTypeName: e?.__typename || r.parentType.name,
fieldName: r.fieldName,
responseKey: i,
path: Ee(r.path),
sourceSubschema: e[Rh]
}), (s?.fieldNodesByField?.[c]?.[r.fieldName])?.every((t) => !v_(e, t.alias?.value ?? t.name.value)) ? w_(e, i, n, r) : T_(e, n, r, a), u.promise;
}
return x_(e, t, n, r, u, l);
});
}
return u ? x_(e, t, n, r, u) : void 0;
}
return w_(e, i, n, r);
}
function x_(e, t, n, r, i, a) {
let o = r.fieldNodes[0].alias?.value ?? r.fieldName, s = i, c = e.__typename || r.parentType.name, l = i.schema ?? (i instanceof N ? i : void 0), u = (s.transformedSchema ?? l ?? void 0)?.getType(c), d = A(u) && u.getFields()[r.fieldName] != null && a?.resolvers?.get(s);
if (d && A(u)) {
let t = {
kind: Se,
selections: r.fieldNodes
};
return Zc(() => d(e, n, r, s, t, void 0, u), (i) => {
if (Jh(i, s, t, e, e[zh] ?? /* @__PURE__ */ Object.create(null), r, Ee(r.path).slice(0, -1), e[Lh] ?? []), !v_(e, o)) return w_(e, o, n, r);
});
}
if (l == null) return;
let f = d_(i, c, r.fieldName);
if (f) {
let a = f_(e, f), s = p_(l, C_(l, c, f.typeName), f);
if (a && A(s)) {
if (!v_(a.parent, a.fieldName)) {
let t = S_(i, r, a.parent[a.fieldName]);
return e[o] = t, Zh(t, Wh(e), i, n, r);
}
let c = s.getFields()[a.fieldName]?.resolve;
if (c != null && c !== ea) return Zc(() => c(a.parent, t, n, r), (t) => {
let a = S_(i, r, t);
return e[o] = a, e[zh] && (e[zh][o] = i), Zh(a, Wh(e), i, n, r);
});
}
}
let p = u_(i, c, r.fieldName), m = l.getType(c);
if (!A(m)) {
let e = Object.values(l.getTypeMap()).filter((e) => A(e) && !e.name.startsWith("__") && e.getFields()[p] != null);
m = e.length === 1 ? e[0] : void 0;
}
if (!A(m)) return;
let h = m.getFields()[p]?.resolve;
if (h != null && h !== ea) {
if (h === b_ || h.name === "defaultMergedResolver") {
let t = l.extensions?.stitchingInfo, a = typeof e.__typename == "string" && e.__typename || c, s = t?.mergedTypes[a], u = s && __(s, p, r, n), d = u && s?.resolvers.get(u), f = u && (u.transformedSchema.getType(a) ?? l.getType(a));
if (d && u && f && A(f)) {
let t = {
kind: Se,
selections: r.fieldNodes
}, a = Hh({ ...e }, Wh(e), u, /* @__PURE__ */ Object.create(null)), s = {
...r,
schema: l
};
return Zc(() => d(a, n, s, u, t, void 0, f), (c) => {
if (Jh(c, u, t, a, a[zh] ?? /* @__PURE__ */ Object.create(null), s, Ee(r.path).slice(0, -1), a[Lh] ?? []), !v_(a, o)) {
let t = a[o];
return e[o] = t, e[zh] && (e[zh][o] = i), Zh(t, Wh(e), i, n, r);
}
});
}
} else return Zc(() => h(e, t, n, r), (t) => {
let a = S_(i, r, t);
return e[o] = a, e[zh] && (e[zh][o] = i), Zh(a, Wh(e), i, n, r);
});
}
}
function S_(e, t, n) {
if (n == null) return n;
let r = e.transforms ?? e.transforms;
if (!r?.length) return n;
let i = Rt(t.returnType)?.name;
if (!i) return n;
let a = n;
for (let e of r) {
let t = e.resultVisitorMap?.[i];
typeof t == "function" && (a = t(a));
}
return a;
}
function C_(e, t, n) {
return A(e.getType(t)) ? t : A(e.getType(n)) ? n : t;
}
function w_(e, t, n, r) {
let i = Uh(e, t), a = e[t], o = Zh(a, Wh(e), i, n, r), s = Ih(e);
return s ? Zc(() => o, (i) => (e[t] = i, T_(e, n, r, s), i), void 0, P_(s)) : o;
}
function T_(e, t, n, r) {
let i = n.schema.extensions?.stitchingInfo, a = !1;
if (i) for (let o of r.nonProxiableSubschemas) {
let s = n.parentType.name, c = /* @__PURE__ */ new Set(), l = i.mergedTypes[s], u = l?.selectionSets.get(o);
u && c.add(u);
let d = l?.entryPointSelectionSets?.get(o);
if (d) for (let e of d) c.add(e);
for (let e of r.unproxiableFieldNodes) {
let t = e.name.value, n = l?.fieldSelectionSets.get(o)?.[t];
n && c.add(n);
}
if (c.size) {
a = !0;
let l = {
kind: Se,
selections: Array.from(c).flatMap((e) => e.selections)
};
Zc(() => j_(e), (a) => {
E_(a, e, o, l, r, i, s, t, n);
}, void 0, P_(r));
}
}
a || F_(r);
}
function E_(e, t, n, r, i, a, o, s, c) {
if (k_(e, r, c.schema)) {
let r = i.missingFieldsParentMap.get(t);
if (r) {
let l = a.mergedTypes[o]?.resolvers.get(n);
if (l) {
Object.assign(t, e);
let a = {
kind: Se,
selections: r
};
Zc(() => l(t, s, c, n, a, c.parentType, c.parentType), (e) => {
D_(e, n, a, t, i, s, c);
}, (e) => O_(i, t, e), P_(i));
}
}
} else for (let l of r.selections) if (l.kind === "Field" && l.selectionSet?.selections?.length) {
let u = l.alias?.value ?? l.name.value, d = e[u], f = l.selectionSet;
if (d != null && !k_(d, f, c.schema)) {
async function p(l, p) {
let m = P_(i);
try {
let m = l.__typename, h = Uh(e, u);
if (h && m) {
let u = Ah(c.variableValues), g = a.mergedTypes[m]?.delegationPlanBuilder(c.schema, h, u != null && Object.keys(u).length > 0 ? u : Gh, c.fragments != null && Object.keys(c.fragments).length > 0 ? c.fragments : Gh, Kh(p), s, c, l);
if (g?.length) for (let e of g) for (let [t, n] of e) {
let e = a.mergedTypes[m]?.resolvers.get(t);
if (e) {
let r = a.mergedTypes[m].typeMaps.get(t)[m], i = await e(l, s, c, t, n, r, c.parentType);
i && Jh(i, t, n, l, l[zh] ||= /* @__PURE__ */ new Map(), c, Ee(c.path), l[Lh] ||= []);
}
}
k_(d, f, c.schema) && E_(e, t, n, r, i, a, o, s, c);
}
} finally {
m();
}
}
Array.isArray(d) ? d.forEach((e) => p(e, l)) : p(d, l);
}
}
}
function D_(e, t, n, r, i, a, o) {
Jh(e, t, n, r, r[zh], o, Ee(o.path), r[Lh]);
let s = i.missingFieldsParentDeferredMap.get(r);
if (s) {
let e = o.schema.extensions?.stitchingInfo, t = r?.__typename || o.parentType.name, n = /* @__PURE__ */ new Set();
for (let [c, l] of s) if (Object.prototype.hasOwnProperty.call(r, c)) l.resolve(w_(r, c, a, o)), n.add(c);
else {
let n = e?.fieldNodesByField?.[t]?.[c];
if (n && n.every((e) => {
let t = e.alias?.value ?? e.name.value;
return Object.prototype.hasOwnProperty.call(r, t);
})) {
let e = P_(i);
setTimeout(() => {
try {
T_(r, a, o, i);
} finally {
e();
}
}, 0);
}
}
for (let e of n) s.delete(e);
s.size === 0 && i.missingFieldsParentDeferredMap.delete(r);
}
}
function O_(e, t, n) {
let r = e.missingFieldsParentDeferredMap.get(t);
if (r) {
for (let [e, t] of r) t.reject(n);
e.missingFieldsParentDeferredMap.delete(t);
}
}
function k_(e, t, n) {
if (Array.isArray(e)) {
let r = /* @__PURE__ */ new Set();
for (let i of e) {
let e = k_(i, t, n);
if (e === void 0) return;
for (let t of e) r.add(t);
}
return r;
}
if (e === null) return /* @__PURE__ */ new Set();
if (e === void 0) return;
let r = /* @__PURE__ */ new Set();
for (let i of t.selections) if (i.kind === "Field") {
let t = i.alias?.value ?? i.name.value;
if (e[t] === void 0) return;
if (Vh(e)) {
let n = Uh(e, t);
n && r.add(n);
}
if (e[t] === null) continue;
if (i.selectionSet != null) {
let a = k_(e[t], i.selectionSet, n);
if (a === void 0) return;
for (let e of a) r.add(e);
}
} else if (i.kind === "InlineFragment") {
if (i.typeCondition && typeof e.__typename == "string" && !A_(e.__typename, i.typeCondition.name.value, n)) continue;
let t = k_(e, i.selectionSet, n);
if (t === void 0) return;
for (let e of t) r.add(e);
}
return r;
}
function A_(e, t, n) {
if (e === t) return !0;
if (n == null) return !1;
let r = n.getType(t), i = n.getType(e);
return r == null || i == null || !A(i) ? !1 : Ft(r) ? n.isSubType(r, i) : !1;
}
function j_(e) {
if (Yc(e)) return e.then(j_);
if (Array.isArray(e)) return Promise.all(e.map(j_));
if (typeof e == "object" && e) {
let t = [], n = {};
for (let r in e) {
let i = j_(e[r]);
Yc(i) ? t.push(i.then((e) => {
n[r] = e;
})) : n[r] = i;
}
return Rh in e && (n[Rh] = e[Rh]), zh in e && (n[zh] = e[zh]), Lh in e && (n[Lh] = e[Lh]), t.length ? Promise.all(t).then(() => n) : n;
}
return e;
}
var M_ = /* @__PURE__ */ new WeakMap();
function N_(e) {
let t = M_.get(e);
return t || (t = {
pending: 0,
drainScheduled: !1
}, M_.set(e, t)), t;
}
function P_(e) {
let t = N_(e);
t.pending++;
let n = !1;
return () => {
n || (n = !0, t.pending--, F_(e));
};
}
function F_(e) {
let t = N_(e);
t.drainScheduled || (t.drainScheduled = !0, queueMicrotask(() => {
t.drainScheduled = !1, t.pending > 0 || I_(e);
}));
}
function I_(e) {
for (let [t, n] of e.missingFieldsParentDeferredMap) if (!n.size) e.missingFieldsParentDeferredMap.delete(t);
else {
for (let [r, i] of n) {
let n = L_.get(i);
i.reject(new P(B_(e, r, n, t), { extensions: { code: "SATISFIABILITY_ERROR" } })), L_.delete(i);
}
n.clear(), e.missingFieldsParentDeferredMap.delete(t);
}
}
var L_ = /* @__PURE__ */ new WeakMap();
function R_(e, t) {
let n = e?.name;
return n ? `subschema "${n}"` : t;
}
function z_(e) {
let t = e.filter((e) => typeof e == "string");
if (t.length === 0) return "{\n}";
let n = ["{"];
for (let e = 0; e < t.length; e++) {
let r = " ".repeat(e + 1);
e === t.length - 1 ? n.push(`${r}${t[e]}`) : n.push(`${r}${t[e]} {`);
}
for (let e = t.length - 1; e >= 1; e--) n.push(`${" ".repeat(e)}}`);
return n.push("}"), n.join("\n");
}
function B_(e, t, n, r) {
let i = n?.parentTypeName || (typeof r?.__typename == "string" ? r.__typename : "Object"), a = `${i}.${n?.fieldName || t}`, o = z_(n?.path?.length ? n.path : [t]), s = R_(n?.sourceSubschema || r[Rh], "the current subschema"), c = [`- cannot find field "${a}".`];
for (let t of e.nonProxiableSubschemas) {
let e = R_(t, "another subschema"), n = (t.merge?.[i])?.selectionSet?.trim(), r = n ? `using key fields ${n} of "${i}"` : `using key fields of "${i}"`;
c.push(`- cannot move to ${e} ${r}; the key field(s) cannot be resolved from ${s}.`);
}
return `The following field cannot be satisfied by the subschemas:
${o}
because:
- from ${s}:
` + c.map((e) => ` ${e}`).join("\n");
}
function V_(e) {
return !!e?.schema;
}
var H_ = yl((e) => {
let t = e.fragments;
return Object.values(t);
});
function U_(e) {
let { info: t, schema: n, rootValue: r = n.rootValue ?? t.rootValue, operationName: i = t.operation.name?.value, operation: a = $g(t.parentType, t.schema), fieldName: o = t.fieldName, selectionSet: s, fieldNodes: c = t.fieldNodes, context: l, args: u } = e, d;
if (kh(n)) d = n.transformedSchema;
else if (g(n)) d = n;
else {
let e = (t.schema.extensions?.stitchingInfo)?.subschemaMap.get(n);
d = e == null ? Oh(n.schema, n) : e.transformedSchema;
}
let f = t ? H_(t) : void 0, p = a === "mutation" ? d.getMutationType() : a === "subscription" ? d.getSubscriptionType() : d.getQueryType(), m = e_({
subgraphName: n.name,
fragments: f,
targetSchema: p?.getFields()[o] == null && V_(n) ? n.schema : d,
rootValue: r,
targetOperationName: i,
targetOperation: a,
targetFieldName: o,
selectionSet: s,
fieldNodes: c,
context: l,
info: t,
args: u
});
return G_({
...e,
targetSchema: d,
request: m
});
}
function W_(e, t, n) {
let r = Ul(e, t), i = r.getFields()[n];
if (!i) throw Error(`Unable to find field '${n}' in type '${r}'.`);
return i.type;
}
function G_(e) {
let t = K_(e), n = new Yg(t), r = n.transformRequest(e.request);
return e.validateRequest && q_(t, r.document), Zc(() => Y_(t)(r), function(e) {
if (kd(e)) {
let r = t.operation === "query", i = ne(ke(t.returnType)), a = i && Q_(t);
return r && a ? Z_(e, n) : r && t.subschemaConfig?.defer ? X_(e, n, t) : r && i ? Z_(e, n) : il(e, (e) => n.transformResult(e));
}
return n.transformResult(e);
});
}
function K_({ request: e, schema: t, fieldName: n, returnType: r, info: i, args: a, transforms: o = [], targetSchema: s, skipTypeMerging: c = !1, onLocatedError: l }) {
let u = Od(e), d;
d = n ?? u.selectionSet.selections[0].name.value;
let f = (i?.schema.extensions?.stitchingInfo)?.subschemaMap.get(t) ?? t, p = u.operation;
if (V_(f)) {
let n = f.schema;
return {
subschema: t,
subschemaConfig: f,
targetSchema: n,
operation: p,
fieldName: d,
context: e.context,
info: i,
returnType: r ?? i?.returnType ?? W_(n, p, d),
transforms: f.transforms == null ? o : f.transforms.concat(o),
transformedSchema: s,
skipTypeMerging: c,
onLocatedError: l,
args: a
};
}
return {
subschema: t,
subschemaConfig: void 0,
targetSchema: f,
operation: p,
fieldName: d,
context: e.context,
info: i,
returnType: r ?? i?.returnType ?? W_(f, p, d),
transforms: o,
transformedSchema: s ?? f,
skipTypeMerging: c,
onLocatedError: l,
args: a
};
}
function q_(e, t) {
let n = yt(e.targetSchema, t);
if (n.length > 0) {
if (n.length > 1) throw AggregateError(n, n.map((e) => e.message).join(", \n"));
let e = n[0];
if (e) throw e.originalError || e;
}
}
var J_ = {};
function Y_(e) {
let { subschemaConfig: t, targetSchema: n, context: r } = e, i = t?.executor || th(n);
if (t?.batch) {
let e = t?.batchingOptions;
i = Dh(r ?? J_, i, e?.dataLoaderOptions, e?.extensionsReducer, e?.defer ?? t.defer);
}
return i;
}
async function X_(e, t, n) {
let r = e[Symbol.asyncIterator](), i = new n_(n), a;
for (;;) {
let e = await r.next();
if (e.done) return i.finish(), null;
if (e.value?.data?.[n.fieldName] !== void 0 || e.value?.hasNext === !1) {
a = e.value;
break;
}
}
let o = await t.transformResult(a);
return typeof o == "object" && o ? (i.attachTo(o), a?.hasNext === !1 ? i.finish() : i.start($_({ [Symbol.asyncIterator]: () => r }, t, n, o))) : i.finish(), o;
}
async function* Z_(e, t) {
let n = 0;
for await (let r of e) {
if (r.incremental) {
let e = {};
for (let n of r.incremental) if (n.items?.length) {
for (let t of n.items) nv(e, (n.path || []).slice(0, -1), t);
yield await t.transformResult({ data: e });
}
if (r.hasNext === !1) return;
continue;
}
if (r.data === void 0 && !r.errors?.length) {
if (r.hasNext === !1) return;
continue;
}
let e = await t.transformResult(r);
if (Array.isArray(e)) for (let t = n; t < e.length; t++) yield await e[t], n = t + 1;
else yield await e;
}
}
function Q_(e) {
let t = e.info?.fieldNodes;
if (t == null) return !1;
for (let e of t) {
let t = e.directives;
if (t != null) {
for (let e = 0; e < t.length; e++) if (t[e].name.value === "stream") return !0;
}
}
return !1;
}
async function* $_(e, t, n, r) {
let i = n.fieldName;
for await (let a of e) if (a?.incremental?.length) {
let e = a.incremental.length - 1;
for (let [o, s] of a.incremental.entries()) {
let c = o < e || a.hasNext;
if (s.items != null) {
let e = Array.isArray(s.path) && s.path.length > 0 ? ev(s.path, n) : null;
yield {
incremental: [e == null ? s : {
...s,
path: e
}],
hasNext: c
};
continue;
}
if (s.data != null && s.path?.length) {
let e = ev(s.path, n);
if (e != null) {
yield {
incremental: [{
...s,
path: e
}],
hasNext: c
};
continue;
}
let a = {};
if (nv(a, s.path, { ...s.data }), a[i] != null && typeof a[i] == "object") {
let e = tv(n, r);
e != null && a[i].__typename == null && (a[i].__typename = e);
}
try {
let e = await t.transformResult({
data: a,
errors: s.errors
});
e instanceof Error ? yield {
incremental: [{
path: [i],
data: null,
errors: [e]
}],
hasNext: c
} : typeof e == "object" && e ? yield {
data: { [i]: e },
hasNext: c
} : yield {
incremental: [s],
hasNext: c
};
} catch {
yield {
incremental: [s],
hasNext: c
};
}
continue;
}
let l = Array.isArray(s.path) && s.path.length > 0 ? ev(s.path, n) : null;
yield {
incremental: [l == null ? s : {
...s,
path: l
}],
hasNext: c
};
}
} else if (a?.data) try {
let e = await t.transformResult(a);
typeof e == "object" && e && !(e instanceof Error) && (yield {
data: { [i]: e },
hasNext: a.hasNext
});
} catch {}
else a?.hasNext === !1 && (yield { hasNext: !1 });
}
function ev(e, t) {
let n = t.transforms ?? t.subschemaConfig?.transforms ?? [], r = e.slice(), i = !1;
for (let e = n.length - 1; e >= 0; e--) {
let t = n[e];
if (typeof t.errorPathTransformer != "function" || !Array.isArray(t.path) || t.path.length === 0) continue;
let a = t.path, o = !0;
for (let e = 0; e < a.length; e++) if (r[e] !== a[e]) {
o = !1;
break;
}
o && (i = !0, r = [...a, ...t.errorPathTransformer(r.slice(a.length))]);
}
return i ? r : null;
}
function tv(e, t) {
let n = e.transforms ?? e.subschemaConfig?.transforms ?? [];
for (let e of n) {
let t = e;
if (typeof t.typeName == "string" && typeof t.newFieldName == "string" && Array.isArray(t.pathToField)) return t.typeName;
}
let r = t.__typename;
return typeof r == "string" ? r : void 0;
}
function nv(e, t, n) {
let r = e;
for (let e = 0; e < t.length - 1; e++) {
let n = t[e];
if (n == null || n === "__proto__" || n === "constructor" || n === "prototype") return;
Object.prototype.hasOwnProperty.call(r, n) && r[n] != null || (r[n] = typeof t[e + 1] == "number" ? [] : {}), r = r[n];
}
let i = t[t.length - 1];
if (i == null || i === "__proto__" || i === "constructor" || i === "prototype") return;
let a = Object.prototype.hasOwnProperty.call(r, i) ? r[i] : void 0;
r[i] = a ? id([a, n]) : n;
}
// ../../../node_modules/.pnpm/@graphql-tools+wrap@12.0.0_graphql@17.1.0/node_modules/@graphql-tools/wrap/dist/index.js
function rv(e) {
let t = e.schema, n = e.createProxyingResolver ?? ov, r = Kl(t), i = {};
for (let [t, a] of r.entries()) {
let r = a.name, o = a.getFields();
i[r] = {};
for (let a in o) {
let o = av(e, n({
subschemaConfig: e,
operation: t,
fieldName: a
}));
t === "subscription" ? i[r][a] = {
subscribe: o,
resolve: iv
} : i[r][a] = { resolve: o };
}
}
return i;
}
function iv(e) {
return e;
}
function av(e, t) {
return function(n, r, i, a) {
if (n != null) {
let t = a.fieldNodes[0].alias?.value ?? a.fieldName;
if (Vh(n)) {
let r = Wh(n), o = Uh(n, t);
if (e === o && n[t] !== void 0) return Zh(n[t], r, o, i, a);
}
}
return t(n, r, i, a);
};
}
function ov({ subschemaConfig: e, operation: t }) {
return function(n, r, i, a) {
return U_({
schema: e,
operation: t,
rootValue: n,
args: r,
context: i,
info: a
});
};
}
var sv = yl(function(e) {
let t = e.schema;
return Oh(cv(t, rv(e)), e);
});
function cv(e, t) {
return Iu(e, {
[Su.ROOT_FIELD]: (e, n, r) => ({
...e,
...t[r]?.[n]
}),
[Su.OBJECT_FIELD]: (e) => ({
...e,
resolve: b_,
subscribe: void 0
}),
[Su.OBJECT_TYPE]: (e) => {
let t = e.toConfig();
return new ht({
...t,
isTypeOf: void 0
});
},
[Su.INTERFACE_TYPE]: (e) => {
let t = e.toConfig();
return new Et({
...t,
resolveType: void 0
});
},
[Su.UNION_TYPE]: (e) => {
let t = e.toConfig();
return new Ke({
...t,
resolveType: void 0
});
},
[Su.ENUM_VALUE]: (e) => ({
...e,
value: void 0
}),
[Su.SCALAR_TYPE]: (e) => {
if (Ct(e)) return e;
let t = {
...e.toConfig(),
serialize: void 0,
parseValue: void 0,
parseLiteral: void 0,
coerceOutputValue: void 0,
coerceInputValue: void 0,
coerceInputLiteral: void 0,
valueToLiteral: void 0
};
return new ot(t);
}
});
}
function lv(e, t) {
if (e?.data?.__schema) return ra(e.data, t);
if (e?.errors) {
let t = e.errors.map((e) => new P(e.message, e));
throw e.errors.length === 1 ? t[0] : AggregateError(t, "Could not obtain introspection result");
}
throw new P(`Could not obtain introspection result, received the following as response;
${Ol(e)}`);
}
function uv(e, t, n) {
let r = De(ta(n), n);
return Zc(() => Zc(() => e({
document: r,
context: t
}), (e) => kd(e) ? e[Symbol.asyncIterator]().next().then(({ value: e }) => e) : e), (e) => lv(e, n));
}
// ../../../node_modules/.pnpm/@graphql-tools+url-loader@10.0.10_@types+node@26.6.6_graphql@17.1.0/node_modules/@graphql-tools/url-loader/esm/defaultAsyncFetch.js
var dv = nf.fetch, fv = /* @__PURE__ */ Ht((/* @__PURE__ */ Ut(((e, t) => {
var n = new TextEncoder(), r = new TextDecoder();
function i(...e) {
let t = new i.Request(...e), n = new XMLHttpRequest();
n.withCredentials = t.credentials === "include", n.timeout = t[a].timeout, n.open(t.method, t.url, !1);
let r = !1;
try {
n.responseType = "arraybuffer";
} catch {
n.overrideMimeType("text/plain; charset=x-user-defined"), r = !0;
}
for (let e of t.headers) n.setRequestHeader(...e);
n.send(t[a].body || null);
let o = n.getAllResponseHeaders();
o &&= o.split("\r\n").filter(Boolean).map((e) => e.split(": ", 2));
let s = n.response;
if (r) {
let e = new Uint8Array(s.length);
for (let t = 0; t < s.length; t++) e[t] = s.charCodeAt(t) & 255;
s = e;
}
let c = new i.Response(s, {
headers: o,
status: n.status,
statusText: n.statusText
});
return c[a].url = n.responseURL, c[a].redirected = n.responseURL !== t.url, c;
}
var a = Symbol("SyncFetch Internals"), o = [
"mode",
"cache",
"redirect",
"referrer",
"integrity"
], s = {
100: "Continue",
101: "Switching Protocols",
200: "OK",
201: "Created",
202: "Accepted",
203: "Non-Authoritative Information",
204: "No Content",
205: "Reset Content",
206: "Partial Content",
300: "Multiple Choices",
301: "Moved Permanently",
302: "Found",
303: "See Other",
304: "Not Modified",
305: "Use Proxy",
307: "Temporary Redirect",
400: "Bad Request",
401: "Unauthorized",
402: "Payment Required",
403: "Forbidden",
404: "Not Found",
405: "Method Not Allowed",
406: "Not Acceptable",
407: "Proxy Authentication Required",
408: "Request Timeout",
409: "Conflict",
410: "Gone",
411: "Length Required",
412: "Precondition Failed",
413: "Payload Too Large",
414: "URI Too Long",
415: "Unsupported Media Type",
416: "Range Not Satisfiable",
417: "Expectation Failed",
426: "Upgrade Required",
500: "Internal Server Error",
501: "Not Implemented",
502: "Bad Gateway",
503: "Service Unavailable",
504: "Gateway Timeout",
505: "HTTP Version Not Supported"
}, c = class e {
constructor(t, n = {}) {
for (let e of o) if (e in n) throw TypeError(`option ${e} not supported`);
if (n.credentials === "same-origin") throw TypeError("option credentials with value 'same-origin' not supported");
if (this[a] = {
method: n.method || "GET",
headers: new i.Headers(n.headers),
body: p(n.body),
credentials: n.credentials || "omit",
timeout: n.timeout || 0
}, typeof t == "string") this[a].url = t;
else if (t instanceof e) this[a].url = t.url, n.method || (this[a].method = t.method), n.headers || (this[a].headers = t.headers), n.body || (this[a].body = t[a].body), n.credentials || (this[a].credentials = t.credentials);
else throw TypeError("Request input should be a URL string or a Request object");
}
get cache() {
return "default";
}
get credentials() {
return this[a].credentials;
}
get destination() {
return "";
}
get headers() {
return this[a].headers;
}
get integrity() {
return "";
}
get method() {
return this[a].method;
}
get mode() {
return "cors";
}
get priority() {
return "auto";
}
get redirect() {
return "follow";
}
get referrer() {
return "about:client";
}
get referrerPolicy() {
return "";
}
get url() {
return this[a].url;
}
clone() {
return d(this), new e(this.url, this[a]);
}
}, l = class e {
constructor(e, t = {}) {
this[a] = {
body: p(e),
bodyUsed: !1,
headers: new i.Headers(t.headers),
status: t.status,
statusText: t.statusText
};
}
get headers() {
return this[a].headers;
}
get ok() {
let e = this[a].status;
return e >= 200 && e < 300;
}
get redirected() {
return this[a].redirected;
}
get status() {
return this[a].status;
}
get statusText() {
return this[a].statusText;
}
get url() {
return this[a].url;
}
clone() {
return this.redirect(this[a].url, this[a].status);
}
redirect(t, n) {
d(this);
let r = new e(this[a].body, {
headers: this[a].headers,
status: n || this[a].status,
statusText: s[n] || this[a].statusText
});
return r[a].url = t || this[a].url, r[a].redirected = this[a].redirected, r;
}
}, u = class e {
constructor(e) {
this[a] = {
body: p(e),
bodyUsed: !1
};
}
get bodyUsed() {
return this[a].bodyUsed;
}
static mixin(t) {
for (let n of Object.getOwnPropertyNames(e.prototype)) {
if (n === "constructor") continue;
let r = Object.getOwnPropertyDescriptor(e.prototype, n);
Object.defineProperty(t, n, {
...r,
enumerable: !0
});
}
}
arrayBuffer() {
let e = f(this);
return e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength);
}
blob() {
let e = this.headers && this.headers.get("content-type");
return new Blob([f(this)], e && { type: e });
}
text() {
return r.decode(f(this));
}
json() {
try {
return JSON.parse(this.text());
} catch (e) {
throw TypeError(`invalid json response body at ${this.url} reason: ${e.message}`, "invalid-json");
}
}
};
function d(e) {
if (e.bodyUsed) throw TypeError(`body used already for: ${e.url}`);
}
function f(e) {
return d(e), e[a].bodyUsed = !0, e[a].body || /* @__PURE__ */ new Uint8Array();
}
function p(e) {
return typeof e == "string" ? n.encode(e) : e || null;
}
u.mixin(c.prototype), u.mixin(l.prototype), i.Headers = class {
constructor(e) {
if (e instanceof i.Headers) this[a] = { ...e[a] };
else if (this[a] = {}, Array.isArray(e)) for (let [t, n] of e) this.append(t, n);
else if (typeof e == "object") for (let t in e) this.set(t, e[t]);
}
append(e, t) {
e = e.toLowerCase(), this[a][e] || (this[a][e] = []), this[a][e].push(t);
}
delete(e) {
delete this[a][e.toLowerCase()];
}
set(e, t) {
this[a][e.toLowerCase()] = [t];
}
entries() {
let e = [];
for (let t in this[a]) for (let n of this[a][t]) e.push([t, n]);
return e;
}
get(e) {
return e = e.toLowerCase(), e in this[a] ? this[a][e].join(", ") : null;
}
keys() {
return Object.keys(this[a]);
}
has(e) {
return e.toLowerCase() in this[a];
}
values() {
let e = [];
for (let t in this[a]) for (let n of this[a][t]) e.push(n);
return e;
}
*[Symbol.iterator]() {
for (let e in this[a]) for (let t of this[a][e]) yield [e, t];
}
}, i.Request = c, i.Response = l, t.exports = i;
})))(), 1), pv = (e, t) => (typeof e == "string" ? delete t?.signal : delete e.signal, (0, fv.default)(e, t)), mv = (e) => import(`${e}`), hv = (e) => Vt(`${e}`), gv;
(function(e) {
e.WS = "WS", e.LEGACY_WS = "LEGACY_WS", e.SSE = "SSE", e.GRAPHQL_SSE = "GRAPHQL_SSE";
})(gv ||= {});
var _v = [
"http:",
"https:",
"ws:",
"wss:"
];
function vv(e) {
return _v.some((t) => e.startsWith(t)) ? gl(e) : !1;
}
var yv = class {
buildHTTPExecutor(e, t, n) {
return Qf({
endpoint: bv(e, {
wss: "https",
ws: "http"
}),
fetch: t,
...n
});
}
buildWSExecutor(e, t, n) {
return Jd({
url: bv(e, {
https: "wss",
http: "ws"
}),
webSocketImpl: t,
connectionParams: n
});
}
buildWSLegacyExecutor(e, t, n) {
return np(bv(e, {
https: "wss",
http: "ws"
}), t, n);
}
getFetch(e, t) {
if (e) {
if (typeof e == "string") {
let [n, r] = e.split("#");
return Zc(() => t(n), (e) => r ? e[r] : e);
}
if (typeof e == "function") return e;
}
return t === mv ? dv : pv;
}
getDefaultMethodFromOptions(e, t) {
return e && (t = e), t;
}
getWebSocketImpl(e, t) {
if (typeof t?.webSocketImpl == "string") {
let [n, r] = t.webSocketImpl.split("#");
return Zc(() => e(n), (e) => r ? e[r] : e);
}
return t?.webSocketImpl || qc;
}
buildSubscriptionExecutor(e, t, n, r) {
return r?.subscriptionsProtocol === gv.SSE ? this.buildHTTPExecutor(e, t, r) : r?.subscriptionsProtocol === gv.GRAPHQL_SSE ? (r?.subscriptionsEndpoint || (e += "/stream"), this.buildHTTPExecutor(e, t, r)) : (t) => Zc(() => Zc(() => this.getWebSocketImpl(n, r), (t) => r?.subscriptionsProtocol === gv.LEGACY_WS ? this.buildWSLegacyExecutor(e, t, r) : this.buildWSExecutor(e, t, r?.connectionParams)), (e) => e(t));
}
getExecutor(e, t, n) {
let r, i = () => Zc(() => r ||= this.getFetch(n?.customFetch, t), (t) => this.buildHTTPExecutor(e, t, n)), a = () => o ||= i(), o;
if (n?.subscriptionsEndpoint != null || n?.subscriptionsProtocol !== gv.SSE) {
let i = Zc(() => r ||= this.getFetch(n?.customFetch, t), (r) => {
let i = n?.subscriptionsEndpoint || e;
return this.buildSubscriptionExecutor(i, r, t, n);
});
function o(e) {
return e.operationType = e.operationType || Od(e)?.operation, e.operationType === "subscription" && Xf(Od(e)) && (e.operationType = "subscription"), e.operationType === "subscription" ? i : a();
}
return (e) => Zc(() => o(e), (t) => t(e));
}
return (e) => Zc(a, (t) => t(e));
}
getExecutorAsync(e, t) {
return this.getExecutor(e, mv, t);
}
getExecutorSync(e, t) {
return this.getExecutor(e, hv, t);
}
handleSDL(e, t, n) {
let r = this.getDefaultMethodFromOptions(n?.method, "GET");
return Zc(() => t(e, {
method: r,
headers: typeof n?.headers == "function" ? n.headers() : n?.headers
}), (t) => Zc(() => t.text(), (t) => yu(e, t, n)));
}
async load(e, t) {
if (!vv(e)) return [];
let n = { location: e }, r;
if (t?.handleAsSDL || e.endsWith(".graphql") || e.endsWith(".graphqls")) {
let r = await this.getFetch(t?.customFetch, mv);
if (n = await this.handleSDL(e, r, t), !n.schema && !n.document && !n.rawSDL) throw Error("Invalid SDL response");
n.schema = n.schema || (n.document ? we(n.document, t) : n.rawSDL ? ut(n.rawSDL, t) : void 0);
} else r = this.getExecutorAsync(e, t), n.schema = await uv(r, {}, t);
if (!n.schema) throw Error("Invalid introspected schema");
return t?.endpoint && (r = this.getExecutorAsync(t.endpoint, t)), r && (n.schema = sv({
schema: n.schema,
executor: r,
batch: t?.batch
})), [n];
}
loadSync(e, t) {
if (!vv(e)) return [];
let n = { location: e }, r;
if (t?.handleAsSDL || e.endsWith(".graphql") || e.endsWith(".graphqls")) {
let r = this.getFetch(t?.customFetch, hv);
if (n = this.handleSDL(e, r, t), !n.schema && !n.document && !n.rawSDL) throw Error("Invalid SDL response");
n.schema = n.schema || (n.document ? we(n.document, t) : n.rawSDL ? ut(n.rawSDL, t) : void 0);
} else r = this.getExecutorSync(e, t), n.schema = uv(r, {}, t);
if (!n.schema) throw Error("Invalid introspected schema");
return t?.endpoint && (r = this.getExecutorSync(t.endpoint, t)), r && (n.schema = sv({
schema: n.schema,
executor: r
})), [n];
}
};
function bv(e, t) {
return Object.entries(t).reduce((e, [t, n]) => e.replace(`${t}://`, `${n}://`).replace(`${t}:\\`, `${n}:\\`), e);
}
// src/lib/endpoint.ts
var xv = "Expected error reason", Sv = (e) => {
let [t, n] = H(e.defaultEndpoint ?? null), [r, i] = H(null), [a, o] = H(!1), s = V(null), c = V(!1), l = R((e) => {
let t = e ? JSON.stringify(e) : null;
t !== s.current && (s.current = t, i(e));
}, []), u = R((t) => {
n(t), e.onEndpointChange?.(t);
}, [e]), d = B(() => r ? ra(r) : null, [r]), f = B(() => new yv(), []), p = V(e.operationsApi?.activeOperation?.headers), m = V(e.envApi?.env?.variables), h = V(e.pluginsApi?.pluginsState);
p.current = e.operationsApi?.activeOperation?.headers, m.current = e.envApi?.env?.variables, h.current = e.pluginsApi?.pluginsState;
let g = B(() => (0, co.debounce)(async (n, r) => {
o(!0);
try {
if (t === e.defaultEndpoint && e.defaultSchemaIntrospection && !r?.force && !c.current) {
l(e.defaultSchemaIntrospection ?? null);
return;
}
if (!t) {
l(null);
return;
}
let i = r?.env?.variables ?? m.current ?? {}, a = r?.pluginsState ?? h.current ?? {}, o = {};
if (e.settingsApi?.settings.introspection.headers) try {
o = JSON.parse(e.settingsApi?.settings.introspection.headers);
} catch {}
if (e.settingsApi?.settings.introspection.includeActiveOperationHeaders && p.current) try {
o = {
...o,
...JSON.parse(p.current)
};
} catch {}
let s = JSON.stringify(o), u = {};
if (s.includes("{{")) try {
let t = await e.preflightApi?.runPreflight?.(e.pluginsApi?.plugins ?? [], e.pluginsApi?.pluginsState ?? {});
t && (e.envApi?.setEnv(t.env), e.pluginsApi?.setPluginsState(t.pluginsState), i = t.env.variables, a = t.pluginsState, u = t.headers);
} catch {
wo.error("Failed to run preflight");
}
let d = {};
try {
d = JSON.parse(cs(s, {
...i,
plugins: a
}));
} catch {
wo.error("Failed to parse headers"), d = {};
}
d = ss(d, u);
let g = await f.load(t, {
subscriptionsEndpoint: t,
subscriptionsProtocol: e.settingsApi?.settings.subscriptions.protocol ?? gv.GRAPHQL_SSE,
headers: d,
credentials: e.settingsApi?.settings.fetch.credentials,
specifiedByUrl: !0,
directiveIsRepeatable: !0,
inputValueDeprecation: !0,
timeout: e.settingsApi?.settings.fetch.timeout,
useGETForQueries: e.settingsApi?.settings.fetch.useGETForQueries,
exposeHTTPDetailsInExtensions: !0,
descriptions: e.enableDocs === !0,
method: e.settingsApi?.settings.introspection.method ?? "POST",
fetch: (e, t) => fetch(e, {
...t,
signal: n
})
});
if (g.length === 0 || !g[0].schema) throw Error("Failed to fetch schema");
l(na(g[0].schema));
} catch (e) {
if (e && typeof e == "object" && "message" in e && typeof e.message == "string") {
if (e.message === "Expected error reason") return;
wo.error(e.message);
} else wo.error("Failed to fetch schema");
throw l(null), e;
} finally {
o(!1);
}
}, 500), [
l,
t,
e.defaultEndpoint,
e.defaultSchemaIntrospection,
e.enableDocs,
e.settingsApi?.settings.fetch.timeout,
e.settingsApi?.settings.introspection.method,
e.settingsApi?.settings.introspection.headers,
e.settingsApi?.settings.introspection.includeActiveOperationHeaders
]);
z(() => () => {
g.cancel(), o(!1);
}, [g]), z(() => {
c.current = !1;
}, [t, e.defaultSchemaIntrospection]);
let _ = R(() => {
c.current = !0, o(!0), g(void 0, { force: !0 });
}, [g]), v = B(() => t !== e.defaultEndpoint || !e.defaultSchemaIntrospection, [
t,
e.defaultEndpoint,
e.defaultSchemaIntrospection
]), y = B(() => v && e.settingsApi?.settings.introspection.pollSchema !== !1, [v, e.settingsApi?.settings.introspection.pollSchema]);
z(() => {
if (!y || !t) return;
let e = new AbortController();
return Vc(async () => {
try {
await g(e.signal);
} catch {
e.abort(/* @__PURE__ */ Error("Aborted because of schema polling error"));
}
}, 5e3, e.signal), () => {
e.abort(/* @__PURE__ */ Error(xv));
};
}, [y, g]);
let b = R(() => {
e.defaultEndpoint && u(e.defaultEndpoint);
}, [e.defaultEndpoint]);
return z(() => {
if (t && !y) {
let e = new AbortController();
return g(e.signal), () => {
e.abort(/* @__PURE__ */ Error(xv));
};
}
}, [
t,
g,
y
]), z(() => {
if (!t || !y) return;
let n = new AbortController();
return g(n.signal, {
env: e.envApi?.env ?? void 0,
pluginsState: e.pluginsApi?.pluginsState
}), () => {
n.abort(/* @__PURE__ */ Error(xv));
};
}, [
t,
y,
g,
e.settingsApi?.settings.introspection.headers,
e.settingsApi?.settings.introspection.includeActiveOperationHeaders
]), {
endpoint: t,
setEndpoint: u,
schema: d,
introspection: r,
fetchSchema: g,
reloadSchema: _,
restoreDefaultEndpoint: b,
defaultEndpoint: e.defaultEndpoint ?? null,
canIntrospect: v,
shouldPollSchema: y,
isFetchingSchema: a
};
}, Cv = (e) => {
let [t, n] = H(e.defaultEnv ?? { variables: {} });
return {
env: t,
setEnv: R((t) => {
n(t), e.onEnvChange?.(t);
}, [e])
};
}, wv = (e) => {
let [t, n] = H(e.defaultHistory ?? []), r = V(t);
return z(() => {
r.current = t;
}, [t]), {
history: t,
addHistory: R((r) => {
let i = {
...r,
id: Xr()
}, a = [...t, i];
return n(a), e.onHistoryChange?.(a), e.onHistoryCreate?.(i), i;
}, [t, e]),
addResponseToHistory: R((t, i) => {
let a = r.current.find((e) => e.id === t);
if (a && "responses" in a) {
let o = [...a.responses, {
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
data: i
}], s = {
...a,
responses: o
}, c = r.current.map((e) => e.id === t ? s : e);
n(c), e.onHistoryChange?.(c), e.onHistoryUpdate?.(s);
}
}, [e]),
deleteHistory: R((t) => {
let i = r.current.find((e) => e.id === t), a = r.current.filter((e) => e.id !== t);
n(a), e.onHistoryChange?.(a), i && e.onHistoryDelete?.(i);
}, [e]),
deleteAllHistory: R(() => {
let t = [...r.current];
if (n([]), e.onHistoryChange?.([]), e.onHistoryDelete) for (let n of t) e.onHistoryDelete(n);
}, [e]),
deleteHistoryByDay: R((t) => {
let i = r.current.filter((e) => Lr(new Date(e.createdAt), "dd MMM yyyy") === t), a = r.current.filter((e) => Lr(new Date(e.createdAt), "dd MMM yyyy") !== t);
if (n(a), e.onHistoryChange?.(a), e.onHistoryDelete) for (let t of i) e.onHistoryDelete(t);
}, [e])
};
};
// src/lib/monaco-shadow-dom.ts
function Tv(e) {
let t = (e) => {
let t = e.target;
typeof t?.closest == "function" && t.closest(".monaco-editor") && e.stopPropagation();
};
return e.addEventListener("mousemove", t), () => e.removeEventListener("mousemove", t);
}
// src/lib/operations.ts
function Ev(e) {
try {
return ii(De(e))?.operation ?? null;
} catch {
return null;
}
}
var Dv = (e, t) => {
let n = e.definitions.filter((e) => !(e.kind === "OperationDefinition" && t && e.name?.value !== t));
return {
kind: y,
definitions: n
};
}, Ov = (e) => {
let [t, n] = H(e.defaultOperations ?? []), r = B(() => {
let n = e.tabsApi?.activeTab;
return n && n.type === "operation" ? t.find((e) => e.id === n.data.id) ?? null : null;
}, [e.tabsApi, t]), i = R((t) => {
let n = e.tabsApi?.tabs.find((e) => e.type === "operation" && e.data.id === t) ?? null;
n && e.tabsApi?.setActiveTab(n);
}, [e.tabsApi]), a = R((t) => {
n(t), e.onOperationsChange?.(t);
}, [e]), o = V(t);
o.current = t;
let s = R((t, r) => {
let i = o.current.map((e) => e.id === t ? {
...e,
id: r
} : e);
n(i), e.onOperationsChange?.(i);
}, [e]), c = R((r) => {
let i = {
id: Xr(),
...r
}, a = [...t, i];
return n(a), e.onOperationsChange?.(a), e.onOperationCreate?.(i), i;
}, [t, e]);
z(() => {
let t = new URLSearchParams(window.location.search).get("share");
if (t) {
let n = zr(t);
if (n) {
let { n: t, q: r, v: i, h: a, e: o } = JSON.parse(n), s = c({
name: t,
query: r,
variables: i,
headers: a,
extensions: o
}), l = e.tabsApi?.addTab({
type: "operation",
data: s
});
l && e.tabsApi?.setActiveTab(l);
let u = new URLSearchParams(window.location.search);
u.delete("share"), window.history.replaceState(null, "", window.location.pathname + "?" + u.toString());
}
}
}, []);
let l = R((i) => {
let a = {
...r,
...i
};
if (a.query) {
let e = Xo(a.query);
e && (a.name = e);
}
let o = t.map((e) => e.id === r?.id ? a : e);
if (n(o), e.onOperationsChange?.(o), a.id && e.onOperationUpdate?.(a), e.collectionsApi && e.checkPermissions?.("collectionsOperations:update") && r?.id) {
let t = e.collectionsApi.collections.find((e) => e.operations.some((e) => e.id === r.id))?.id ?? "";
e.collectionsApi.updateOperationInCollection(t, r.id, a);
}
}, [
r,
t,
e.checkPermissions,
e.collectionsApi
]), u = R((a) => {
let o = t.find((e) => e.id === a), s = t.filter((e) => e.id !== a);
n(s), e.onOperationsChange?.(s), o && e.onOperationDelete?.(o), r?.id === a && i(s[0]?.id ?? "");
}, [
r,
t,
e,
i
]), d = R((e, t, n) => {
if (!r) return;
let i = {
...r,
query: Jo(r.query, e, t, n)
};
l(i);
}, [r, l]), f = R((e, t) => {
if (!r?.query) return;
let n = {
...r,
query: Yo(r.query, e, t)
};
l(n);
}, [r, l]), p = R((e, t, n, i) => {
if (!r?.query) return;
let a = {
...r,
query: $o(r.query, e, t, n, i)
};
l(a);
}, [r, l]), m = R((e, t, n) => {
if (!r?.query) return;
let i = {
...r,
query: es(r.query, e, t, n)
};
l(i);
}, [r, l]), [h, g] = H({}), _ = R((e) => Object.keys(h).includes(e), [h]), v = B(() => r ? _(r.id) : !1, [r, _]), y = B(() => new yv(), []), b = R(async (t, n, i = e.pluginsApi?.plugins ?? [], a = e.pluginsApi?.pluginsState ?? {}) => {
if (!r?.query) return null;
let o, s;
if (n?.env) o = n.env, s = n.headers ?? {};
else {
let t = await e.preflightApi?.runPreflight?.(i, a);
o = t?.env ?? { variables: {} }, s = t?.headers ?? {}, t && (a = t.pluginsState, e.pluginsApi?.setPluginsState(a));
}
o && Object.keys(o?.variables ?? {}).length > 0 ? e.envApi?.setEnv(o) : o = e.envApi?.env ?? { variables: {} };
let c = ss(r.headers ? JSON.parse(cs(r.headers, {
...o.variables,
plugins: a
})) : {}, s), l = r.variables ? JSON.parse(cs(r.variables, {
...o.variables,
plugins: a
})) : {}, u = r.extensions ? JSON.parse(cs(r.extensions, {
...o.variables,
plugins: a
})) : {}, d = y.getExecutorAsync(t, {
subscriptionsEndpoint: t,
subscriptionsProtocol: e.settingsApi?.settings.subscriptions.protocol ?? gv.GRAPHQL_SSE,
credentials: e.settingsApi?.settings.fetch.credentials,
specifiedByUrl: !0,
directiveIsRepeatable: !0,
inputValueDeprecation: !0,
timeout: e.settingsApi?.settings.fetch.timeout,
useGETForQueries: e.settingsApi?.settings.fetch.useGETForQueries,
exposeHTTPDetailsInExtensions: !0,
fetch
}), f = Dv(De(r.query)), p = new AbortController();
g((e) => ({
...e,
[r.id]: () => {
p.abort("Operation aborted by user");
}
}));
try {
let e = await d({
document: f,
operationName: n?.operationName,
variables: l,
extensions: {
...u,
headers: c
},
signal: p.signal
});
if (Hc(e)) {
try {
for await (let t of Uc(e, p.signal)) n?.onResponse?.(JSON.stringify(t ?? {}));
} finally {
g((e) => {
let t = { ...e };
return delete t[r.id], t;
});
}
return null;
}
return e.extensions?.response?.body && delete e.extensions.response.body, g((e) => {
let t = { ...e };
return delete t[r.id], t;
}), e;
} catch (e) {
return g((e) => {
let t = { ...e };
return delete t[r.id], t;
}), p.signal.aborted ? null : e instanceof Error ? { errors: [new P(e.message)] } : { errors: [new P("An unknown error occurred")] };
}
}, [
r,
e.preflightApi,
e.envApi,
e.pluginsApi,
e.settingsApi
]), x = R((e) => Ev(e.query) === "subscription", []), S = B(() => r ? x(r) : !1, [r, x]);
return {
operations: t,
setOperations: a,
replaceOperationId: s,
runActiveOperation: b,
setActiveOperation: i,
activeOperation: r,
addOperation: c,
updateActiveOperation: l,
deleteOperation: u,
addPathToActiveOperation: d,
deletePathFromActiveOperation: f,
addArgToActiveOperation: p,
deleteArgFromActiveOperation: m,
isActiveOperationLoading: v,
stopActiveOperation: h[r?.id ?? ""],
isActiveOperationSubscription: S,
isOperationSubscription: x,
isOperationLoading: _
};
}, kv = (e) => {
let [t, n] = H({
...e.plugins?.reduce((e, t) => (e[t.id] = t.defaultState ?? {}, e), {}),
...e.defaultPluginsState
}), r = R((t) => {
n(t), e.onPluginsStateChange?.(t);
}, [e]);
return {
plugins: e.plugins ?? [],
pluginsState: t,
setPluginsState: r
};
}, Av = ";(function (root, factory) {\n if (typeof exports === \"object\") {\n // CommonJS\n module.exports = exports = factory();\n }\n else if (typeof define === \"function\" && define.amd) {\n // AMD\n define([], factory);\n }\n else {\n // Global (browser)\n root.CryptoJS = factory();\n }\n}(this, function () {\n\n /*globals window, global, require*/\n\n /**\n * CryptoJS core components.\n */\n var CryptoJS = CryptoJS || (function (Math, undefined) {\n\n var crypto;\n\n // Native crypto from window (Browser)\n if (typeof window !== 'undefined' && window.crypto) {\n crypto = window.crypto;\n }\n\n // Native crypto in web worker (Browser)\n if (typeof self !== 'undefined' && self.crypto) {\n crypto = self.crypto;\n }\n\n // Native crypto from worker\n if (typeof globalThis !== 'undefined' && globalThis.crypto) {\n crypto = globalThis.crypto;\n }\n\n // Native (experimental IE 11) crypto from window (Browser)\n if (!crypto && typeof window !== 'undefined' && window.msCrypto) {\n crypto = window.msCrypto;\n }\n\n // Native crypto from global (NodeJS)\n if (!crypto && typeof global !== 'undefined' && global.crypto) {\n crypto = global.crypto;\n }\n\n // Native crypto import via require (NodeJS)\n if (!crypto && typeof require === 'function') {\n try {\n crypto = require('crypto');\n } catch (err) {}\n }\n\n /*\n * Cryptographically secure pseudorandom number generator\n *\n * As Math.random() is cryptographically not safe to use\n */\n var cryptoSecureRandomInt = function () {\n if (crypto) {\n // Use getRandomValues method (Browser)\n if (typeof crypto.getRandomValues === 'function') {\n try {\n return crypto.getRandomValues(new Uint32Array(1))[0];\n } catch (err) {}\n }\n\n // Use randomBytes method (NodeJS)\n if (typeof crypto.randomBytes === 'function') {\n try {\n return crypto.randomBytes(4).readInt32LE();\n } catch (err) {}\n }\n }\n\n throw new Error('Native crypto module could not be used to get secure random number.');\n };\n\n /*\n * Local polyfill of Object.create\n\n */\n var create = Object.create || (function () {\n function F() {}\n\n return function (obj) {\n var subtype;\n\n F.prototype = obj;\n\n subtype = new F();\n\n F.prototype = null;\n\n return subtype;\n };\n }());\n\n /**\n * CryptoJS namespace.\n */\n var C = {};\n\n /**\n * Library namespace.\n */\n var C_lib = C.lib = {};\n\n /**\n * Base object for prototypal inheritance.\n */\n var Base = C_lib.Base = (function () {\n\n\n return {\n /**\n * Creates a new object that inherits from this object.\n *\n * @param {Object} overrides Properties to copy into the new object.\n *\n * @return {Object} The new object.\n *\n * @static\n *\n * @example\n *\n * var MyType = CryptoJS.lib.Base.extend({\n * field: 'value',\n *\n * method: function () {\n * }\n * });\n */\n extend: function (overrides) {\n // Spawn\n var subtype = create(this);\n\n // Augment\n if (overrides) {\n subtype.mixIn(overrides);\n }\n\n // Create default initializer\n if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n subtype.init = function () {\n subtype.$super.init.apply(this, arguments);\n };\n }\n\n // Initializer's prototype is the subtype object\n subtype.init.prototype = subtype;\n\n // Reference supertype\n subtype.$super = this;\n\n return subtype;\n },\n\n /**\n * Extends this object and runs the init method.\n * Arguments to create() will be passed to init().\n *\n * @return {Object} The new object.\n *\n * @static\n *\n * @example\n *\n * var instance = MyType.create();\n */\n create: function () {\n var instance = this.extend();\n instance.init.apply(instance, arguments);\n\n return instance;\n },\n\n /**\n * Initializes a newly created object.\n * Override this method to add some logic when your objects are created.\n *\n * @example\n *\n * var MyType = CryptoJS.lib.Base.extend({\n * init: function () {\n * // ...\n * }\n * });\n */\n init: function () {\n },\n\n /**\n * Copies properties into this object.\n *\n * @param {Object} properties The properties to mix in.\n *\n * @example\n *\n * MyType.mixIn({\n * field: 'value'\n * });\n */\n mixIn: function (properties) {\n for (var propertyName in properties) {\n if (properties.hasOwnProperty(propertyName)) {\n this[propertyName] = properties[propertyName];\n }\n }\n\n // IE won't copy toString using the loop above\n if (properties.hasOwnProperty('toString')) {\n this.toString = properties.toString;\n }\n },\n\n /**\n * Creates a copy of this object.\n *\n * @return {Object} The clone.\n *\n * @example\n *\n * var clone = instance.clone();\n */\n clone: function () {\n return this.init.prototype.extend(this);\n }\n };\n }());\n\n /**\n * An array of 32-bit words.\n *\n * @property {Array} words The array of 32-bit words.\n * @property {number} sigBytes The number of significant bytes in this word array.\n */\n var WordArray = C_lib.WordArray = Base.extend({\n /**\n * Initializes a newly created word array.\n *\n * @param {Array} words (Optional) An array of 32-bit words.\n * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n *\n * @example\n *\n * var wordArray = CryptoJS.lib.WordArray.create();\n * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n */\n init: function (words, sigBytes) {\n words = this.words = words || [];\n\n if (sigBytes != undefined) {\n this.sigBytes = sigBytes;\n } else {\n this.sigBytes = words.length * 4;\n }\n },\n\n /**\n * Converts this word array to a string.\n *\n * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n *\n * @return {string} The stringified word array.\n *\n * @example\n *\n * var string = wordArray + '';\n * var string = wordArray.toString();\n * var string = wordArray.toString(CryptoJS.enc.Utf8);\n */\n toString: function (encoder) {\n return (encoder || Hex).stringify(this);\n },\n\n /**\n * Concatenates a word array to this word array.\n *\n * @param {WordArray} wordArray The word array to append.\n *\n * @return {WordArray} This word array.\n *\n * @example\n *\n * wordArray1.concat(wordArray2);\n */\n concat: function (wordArray) {\n // Shortcuts\n var thisWords = this.words;\n var thatWords = wordArray.words;\n var thisSigBytes = this.sigBytes;\n var thatSigBytes = wordArray.sigBytes;\n\n // Clamp excess bits\n this.clamp();\n\n // Concat\n if (thisSigBytes % 4) {\n // Copy one byte at a time\n for (var i = 0; i < thatSigBytes; i++) {\n var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n }\n } else {\n // Copy one word at a time\n for (var j = 0; j < thatSigBytes; j += 4) {\n thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2];\n }\n }\n this.sigBytes += thatSigBytes;\n\n // Chainable\n return this;\n },\n\n /**\n * Removes insignificant bits.\n *\n * @example\n *\n * wordArray.clamp();\n */\n clamp: function () {\n // Shortcuts\n var words = this.words;\n var sigBytes = this.sigBytes;\n\n // Clamp\n words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n words.length = Math.ceil(sigBytes / 4);\n },\n\n /**\n * Creates a copy of this word array.\n *\n * @return {WordArray} The clone.\n *\n * @example\n *\n * var clone = wordArray.clone();\n */\n clone: function () {\n var clone = Base.clone.call(this);\n clone.words = this.words.slice(0);\n\n return clone;\n },\n\n /**\n * Creates a word array filled with random bytes.\n *\n * @param {number} nBytes The number of random bytes to generate.\n *\n * @return {WordArray} The random word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.lib.WordArray.random(16);\n */\n random: function (nBytes) {\n var words = [];\n\n for (var i = 0; i < nBytes; i += 4) {\n words.push(cryptoSecureRandomInt());\n }\n\n return new WordArray.init(words, nBytes);\n }\n });\n\n /**\n * Encoder namespace.\n */\n var C_enc = C.enc = {};\n\n /**\n * Hex encoding strategy.\n */\n var Hex = C_enc.Hex = {\n /**\n * Converts a word array to a hex string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @return {string} The hex string.\n *\n * @static\n *\n * @example\n *\n * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n */\n stringify: function (wordArray) {\n // Shortcuts\n var words = wordArray.words;\n var sigBytes = wordArray.sigBytes;\n\n // Convert\n var hexChars = [];\n for (var i = 0; i < sigBytes; i++) {\n var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n hexChars.push((bite >>> 4).toString(16));\n hexChars.push((bite & 0x0f).toString(16));\n }\n\n return hexChars.join('');\n },\n\n /**\n * Converts a hex string to a word array.\n *\n * @param {string} hexStr The hex string.\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n */\n parse: function (hexStr) {\n // Shortcut\n var hexStrLength = hexStr.length;\n\n // Convert\n var words = [];\n for (var i = 0; i < hexStrLength; i += 2) {\n words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n }\n\n return new WordArray.init(words, hexStrLength / 2);\n }\n };\n\n /**\n * Latin1 encoding strategy.\n */\n var Latin1 = C_enc.Latin1 = {\n /**\n * Converts a word array to a Latin1 string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @return {string} The Latin1 string.\n *\n * @static\n *\n * @example\n *\n * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n */\n stringify: function (wordArray) {\n // Shortcuts\n var words = wordArray.words;\n var sigBytes = wordArray.sigBytes;\n\n // Convert\n var latin1Chars = [];\n for (var i = 0; i < sigBytes; i++) {\n var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n latin1Chars.push(String.fromCharCode(bite));\n }\n\n return latin1Chars.join('');\n },\n\n /**\n * Converts a Latin1 string to a word array.\n *\n * @param {string} latin1Str The Latin1 string.\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n */\n parse: function (latin1Str) {\n // Shortcut\n var latin1StrLength = latin1Str.length;\n\n // Convert\n var words = [];\n for (var i = 0; i < latin1StrLength; i++) {\n words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n }\n\n return new WordArray.init(words, latin1StrLength);\n }\n };\n\n /**\n * UTF-8 encoding strategy.\n */\n var Utf8 = C_enc.Utf8 = {\n /**\n * Converts a word array to a UTF-8 string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @return {string} The UTF-8 string.\n *\n * @static\n *\n * @example\n *\n * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n */\n stringify: function (wordArray) {\n try {\n return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n } catch (e) {\n throw new Error('Malformed UTF-8 data');\n }\n },\n\n /**\n * Converts a UTF-8 string to a word array.\n *\n * @param {string} utf8Str The UTF-8 string.\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n */\n parse: function (utf8Str) {\n return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n }\n };\n\n /**\n * Abstract buffered block algorithm template.\n *\n * The property blockSize must be implemented in a concrete subtype.\n *\n * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n */\n var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n /**\n * Resets this block algorithm's data buffer to its initial state.\n *\n * @example\n *\n * bufferedBlockAlgorithm.reset();\n */\n reset: function () {\n // Initial values\n this._data = new WordArray.init();\n this._nDataBytes = 0;\n },\n\n /**\n * Adds new data to this block algorithm's buffer.\n *\n * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n *\n * @example\n *\n * bufferedBlockAlgorithm._append('data');\n * bufferedBlockAlgorithm._append(wordArray);\n */\n _append: function (data) {\n // Convert string to WordArray, else assume WordArray already\n if (typeof data == 'string') {\n data = Utf8.parse(data);\n }\n\n // Append\n this._data.concat(data);\n this._nDataBytes += data.sigBytes;\n },\n\n /**\n * Processes available data blocks.\n *\n * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n *\n * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n *\n * @return {WordArray} The processed data.\n *\n * @example\n *\n * var processedData = bufferedBlockAlgorithm._process();\n * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n */\n _process: function (doFlush) {\n var processedWords;\n\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n var dataSigBytes = data.sigBytes;\n var blockSize = this.blockSize;\n var blockSizeBytes = blockSize * 4;\n\n // Count blocks ready\n var nBlocksReady = dataSigBytes / blockSizeBytes;\n if (doFlush) {\n // Round up to include partial blocks\n nBlocksReady = Math.ceil(nBlocksReady);\n } else {\n // Round down to include only full blocks,\n // less the number of blocks that must remain in the buffer\n nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n }\n\n // Count words ready\n var nWordsReady = nBlocksReady * blockSize;\n\n // Count bytes ready\n var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n // Process blocks\n if (nWordsReady) {\n for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n // Perform concrete-algorithm logic\n this._doProcessBlock(dataWords, offset);\n }\n\n // Remove processed words\n processedWords = dataWords.splice(0, nWordsReady);\n data.sigBytes -= nBytesReady;\n }\n\n // Return processed words\n return new WordArray.init(processedWords, nBytesReady);\n },\n\n /**\n * Creates a copy of this object.\n *\n * @return {Object} The clone.\n *\n * @example\n *\n * var clone = bufferedBlockAlgorithm.clone();\n */\n clone: function () {\n var clone = Base.clone.call(this);\n clone._data = this._data.clone();\n\n return clone;\n },\n\n _minBufferSize: 0\n });\n\n /**\n * Abstract hasher template.\n *\n * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n */\n var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n /**\n * Configuration options.\n */\n cfg: Base.extend(),\n\n /**\n * Initializes a newly created hasher.\n *\n * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n *\n * @example\n *\n * var hasher = CryptoJS.algo.SHA256.create();\n */\n init: function (cfg) {\n // Apply config defaults\n this.cfg = this.cfg.extend(cfg);\n\n // Set initial values\n this.reset();\n },\n\n /**\n * Resets this hasher to its initial state.\n *\n * @example\n *\n * hasher.reset();\n */\n reset: function () {\n // Reset data buffer\n BufferedBlockAlgorithm.reset.call(this);\n\n // Perform concrete-hasher logic\n this._doReset();\n },\n\n /**\n * Updates this hasher with a message.\n *\n * @param {WordArray|string} messageUpdate The message to append.\n *\n * @return {Hasher} This hasher.\n *\n * @example\n *\n * hasher.update('message');\n * hasher.update(wordArray);\n */\n update: function (messageUpdate) {\n // Append\n this._append(messageUpdate);\n\n // Update the hash\n this._process();\n\n // Chainable\n return this;\n },\n\n /**\n * Finalizes the hash computation.\n * Note that the finalize operation is effectively a destructive, read-once operation.\n *\n * @param {WordArray|string} messageUpdate (Optional) A final message update.\n *\n * @return {WordArray} The hash.\n *\n * @example\n *\n * var hash = hasher.finalize();\n * var hash = hasher.finalize('message');\n * var hash = hasher.finalize(wordArray);\n */\n finalize: function (messageUpdate) {\n // Final message update\n if (messageUpdate) {\n this._append(messageUpdate);\n }\n\n // Perform concrete-hasher logic\n var hash = this._doFinalize();\n\n return hash;\n },\n\n blockSize: 512/32,\n\n /**\n * Creates a shortcut function to a hasher's object interface.\n *\n * @param {Hasher} hasher The hasher to create a helper for.\n *\n * @return {Function} The shortcut function.\n *\n * @static\n *\n * @example\n *\n * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n */\n _createHelper: function (hasher) {\n return function (message, cfg) {\n return new hasher.init(cfg).finalize(message);\n };\n },\n\n /**\n * Creates a shortcut function to the HMAC's object interface.\n *\n * @param {Hasher} hasher The hasher to use in this HMAC helper.\n *\n * @return {Function} The shortcut function.\n *\n * @static\n *\n * @example\n *\n * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n */\n _createHmacHelper: function (hasher) {\n return function (message, key) {\n return new C_algo.HMAC.init(hasher, key).finalize(message);\n };\n }\n });\n\n /**\n * Algorithm namespace.\n */\n var C_algo = C.algo = {};\n\n return C;\n }(Math));\n\n\n (function (undefined) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Base = C_lib.Base;\n var X32WordArray = C_lib.WordArray;\n\n /**\n * x64 namespace.\n */\n var C_x64 = C.x64 = {};\n\n /**\n * A 64-bit word.\n */\n var X64Word = C_x64.Word = Base.extend({\n /**\n * Initializes a newly created 64-bit word.\n *\n * @param {number} high The high 32 bits.\n * @param {number} low The low 32 bits.\n *\n * @example\n *\n * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);\n */\n init: function (high, low) {\n this.high = high;\n this.low = low;\n }\n\n /**\n * Bitwise NOTs this word.\n *\n * @return {X64Word} A new x64-Word object after negating.\n *\n * @example\n *\n * var negated = x64Word.not();\n */\n // not: function () {\n // var high = ~this.high;\n // var low = ~this.low;\n\n // return X64Word.create(high, low);\n // },\n\n /**\n * Bitwise ANDs this word with the passed word.\n *\n * @param {X64Word} word The x64-Word to AND with this word.\n *\n * @return {X64Word} A new x64-Word object after ANDing.\n *\n * @example\n *\n * var anded = x64Word.and(anotherX64Word);\n */\n // and: function (word) {\n // var high = this.high & word.high;\n // var low = this.low & word.low;\n\n // return X64Word.create(high, low);\n // },\n\n /**\n * Bitwise ORs this word with the passed word.\n *\n * @param {X64Word} word The x64-Word to OR with this word.\n *\n * @return {X64Word} A new x64-Word object after ORing.\n *\n * @example\n *\n * var ored = x64Word.or(anotherX64Word);\n */\n // or: function (word) {\n // var high = this.high | word.high;\n // var low = this.low | word.low;\n\n // return X64Word.create(high, low);\n // },\n\n /**\n * Bitwise XORs this word with the passed word.\n *\n * @param {X64Word} word The x64-Word to XOR with this word.\n *\n * @return {X64Word} A new x64-Word object after XORing.\n *\n * @example\n *\n * var xored = x64Word.xor(anotherX64Word);\n */\n // xor: function (word) {\n // var high = this.high ^ word.high;\n // var low = this.low ^ word.low;\n\n // return X64Word.create(high, low);\n // },\n\n /**\n * Shifts this word n bits to the left.\n *\n * @param {number} n The number of bits to shift.\n *\n * @return {X64Word} A new x64-Word object after shifting.\n *\n * @example\n *\n * var shifted = x64Word.shiftL(25);\n */\n // shiftL: function (n) {\n // if (n < 32) {\n // var high = (this.high << n) | (this.low >>> (32 - n));\n // var low = this.low << n;\n // } else {\n // var high = this.low << (n - 32);\n // var low = 0;\n // }\n\n // return X64Word.create(high, low);\n // },\n\n /**\n * Shifts this word n bits to the right.\n *\n * @param {number} n The number of bits to shift.\n *\n * @return {X64Word} A new x64-Word object after shifting.\n *\n * @example\n *\n * var shifted = x64Word.shiftR(7);\n */\n // shiftR: function (n) {\n // if (n < 32) {\n // var low = (this.low >>> n) | (this.high << (32 - n));\n // var high = this.high >>> n;\n // } else {\n // var low = this.high >>> (n - 32);\n // var high = 0;\n // }\n\n // return X64Word.create(high, low);\n // },\n\n /**\n * Rotates this word n bits to the left.\n *\n * @param {number} n The number of bits to rotate.\n *\n * @return {X64Word} A new x64-Word object after rotating.\n *\n * @example\n *\n * var rotated = x64Word.rotL(25);\n */\n // rotL: function (n) {\n // return this.shiftL(n).or(this.shiftR(64 - n));\n // },\n\n /**\n * Rotates this word n bits to the right.\n *\n * @param {number} n The number of bits to rotate.\n *\n * @return {X64Word} A new x64-Word object after rotating.\n *\n * @example\n *\n * var rotated = x64Word.rotR(7);\n */\n // rotR: function (n) {\n // return this.shiftR(n).or(this.shiftL(64 - n));\n // },\n\n /**\n * Adds this word with the passed word.\n *\n * @param {X64Word} word The x64-Word to add with this word.\n *\n * @return {X64Word} A new x64-Word object after adding.\n *\n * @example\n *\n * var added = x64Word.add(anotherX64Word);\n */\n // add: function (word) {\n // var low = (this.low + word.low) | 0;\n // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;\n // var high = (this.high + word.high + carry) | 0;\n\n // return X64Word.create(high, low);\n // }\n });\n\n /**\n * An array of 64-bit words.\n *\n * @property {Array} words The array of CryptoJS.x64.Word objects.\n * @property {number} sigBytes The number of significant bytes in this word array.\n */\n var X64WordArray = C_x64.WordArray = Base.extend({\n /**\n * Initializes a newly created word array.\n *\n * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.\n * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n *\n * @example\n *\n * var wordArray = CryptoJS.x64.WordArray.create();\n *\n * var wordArray = CryptoJS.x64.WordArray.create([\n * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\n * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\n * ]);\n *\n * var wordArray = CryptoJS.x64.WordArray.create([\n * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\n * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\n * ], 10);\n */\n init: function (words, sigBytes) {\n words = this.words = words || [];\n\n if (sigBytes != undefined) {\n this.sigBytes = sigBytes;\n } else {\n this.sigBytes = words.length * 8;\n }\n },\n\n /**\n * Converts this 64-bit word array to a 32-bit word array.\n *\n * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.\n *\n * @example\n *\n * var x32WordArray = x64WordArray.toX32();\n */\n toX32: function () {\n // Shortcuts\n var x64Words = this.words;\n var x64WordsLength = x64Words.length;\n\n // Convert\n var x32Words = [];\n for (var i = 0; i < x64WordsLength; i++) {\n var x64Word = x64Words[i];\n x32Words.push(x64Word.high);\n x32Words.push(x64Word.low);\n }\n\n return X32WordArray.create(x32Words, this.sigBytes);\n },\n\n /**\n * Creates a copy of this word array.\n *\n * @return {X64WordArray} The clone.\n *\n * @example\n *\n * var clone = x64WordArray.clone();\n */\n clone: function () {\n var clone = Base.clone.call(this);\n\n // Clone \"words\" array\n var words = clone.words = this.words.slice(0);\n\n // Clone each X64Word object\n var wordsLength = words.length;\n for (var i = 0; i < wordsLength; i++) {\n words[i] = words[i].clone();\n }\n\n return clone;\n }\n });\n }());\n\n\n (function () {\n // Check if typed arrays are supported\n if (typeof ArrayBuffer != 'function') {\n return;\n }\n\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n\n // Reference original init\n var superInit = WordArray.init;\n\n // Augment WordArray.init to handle typed arrays\n var subInit = WordArray.init = function (typedArray) {\n // Convert buffers to uint8\n if (typedArray instanceof ArrayBuffer) {\n typedArray = new Uint8Array(typedArray);\n }\n\n // Convert other array views to uint8\n if (\n typedArray instanceof Int8Array ||\n (typeof Uint8ClampedArray !== \"undefined\" && typedArray instanceof Uint8ClampedArray) ||\n typedArray instanceof Int16Array ||\n typedArray instanceof Uint16Array ||\n typedArray instanceof Int32Array ||\n typedArray instanceof Uint32Array ||\n typedArray instanceof Float32Array ||\n typedArray instanceof Float64Array\n ) {\n typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);\n }\n\n // Handle Uint8Array\n if (typedArray instanceof Uint8Array) {\n // Shortcut\n var typedArrayByteLength = typedArray.byteLength;\n\n // Extract bytes\n var words = [];\n for (var i = 0; i < typedArrayByteLength; i++) {\n words[i >>> 2] |= typedArray[i] << (24 - (i % 4) * 8);\n }\n\n // Initialize this word array\n superInit.call(this, words, typedArrayByteLength);\n } else {\n // Else call normal init\n superInit.apply(this, arguments);\n }\n };\n\n subInit.prototype = WordArray;\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var C_enc = C.enc;\n\n /**\n * UTF-16 BE encoding strategy.\n */\n var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = {\n /**\n * Converts a word array to a UTF-16 BE string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @return {string} The UTF-16 BE string.\n *\n * @static\n *\n * @example\n *\n * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);\n */\n stringify: function (wordArray) {\n // Shortcuts\n var words = wordArray.words;\n var sigBytes = wordArray.sigBytes;\n\n // Convert\n var utf16Chars = [];\n for (var i = 0; i < sigBytes; i += 2) {\n var codePoint = (words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff;\n utf16Chars.push(String.fromCharCode(codePoint));\n }\n\n return utf16Chars.join('');\n },\n\n /**\n * Converts a UTF-16 BE string to a word array.\n *\n * @param {string} utf16Str The UTF-16 BE string.\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);\n */\n parse: function (utf16Str) {\n // Shortcut\n var utf16StrLength = utf16Str.length;\n\n // Convert\n var words = [];\n for (var i = 0; i < utf16StrLength; i++) {\n words[i >>> 1] |= utf16Str.charCodeAt(i) << (16 - (i % 2) * 16);\n }\n\n return WordArray.create(words, utf16StrLength * 2);\n }\n };\n\n /**\n * UTF-16 LE encoding strategy.\n */\n C_enc.Utf16LE = {\n /**\n * Converts a word array to a UTF-16 LE string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @return {string} The UTF-16 LE string.\n *\n * @static\n *\n * @example\n *\n * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);\n */\n stringify: function (wordArray) {\n // Shortcuts\n var words = wordArray.words;\n var sigBytes = wordArray.sigBytes;\n\n // Convert\n var utf16Chars = [];\n for (var i = 0; i < sigBytes; i += 2) {\n var codePoint = swapEndian((words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff);\n utf16Chars.push(String.fromCharCode(codePoint));\n }\n\n return utf16Chars.join('');\n },\n\n /**\n * Converts a UTF-16 LE string to a word array.\n *\n * @param {string} utf16Str The UTF-16 LE string.\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);\n */\n parse: function (utf16Str) {\n // Shortcut\n var utf16StrLength = utf16Str.length;\n\n // Convert\n var words = [];\n for (var i = 0; i < utf16StrLength; i++) {\n words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << (16 - (i % 2) * 16));\n }\n\n return WordArray.create(words, utf16StrLength * 2);\n }\n };\n\n function swapEndian(word) {\n return ((word << 8) & 0xff00ff00) | ((word >>> 8) & 0x00ff00ff);\n }\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var C_enc = C.enc;\n\n /**\n * Base64 encoding strategy.\n */\n var Base64 = C_enc.Base64 = {\n /**\n * Converts a word array to a Base64 string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @return {string} The Base64 string.\n *\n * @static\n *\n * @example\n *\n * var base64String = CryptoJS.enc.Base64.stringify(wordArray);\n */\n stringify: function (wordArray) {\n // Shortcuts\n var words = wordArray.words;\n var sigBytes = wordArray.sigBytes;\n var map = this._map;\n\n // Clamp excess bits\n wordArray.clamp();\n\n // Convert\n var base64Chars = [];\n for (var i = 0; i < sigBytes; i += 3) {\n var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;\n var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;\n\n var triplet = (byte1 << 16) | (byte2 << 8) | byte3;\n\n for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {\n base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));\n }\n }\n\n // Add padding\n var paddingChar = map.charAt(64);\n if (paddingChar) {\n while (base64Chars.length % 4) {\n base64Chars.push(paddingChar);\n }\n }\n\n return base64Chars.join('');\n },\n\n /**\n * Converts a Base64 string to a word array.\n *\n * @param {string} base64Str The Base64 string.\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Base64.parse(base64String);\n */\n parse: function (base64Str) {\n // Shortcuts\n var base64StrLength = base64Str.length;\n var map = this._map;\n var reverseMap = this._reverseMap;\n\n if (!reverseMap) {\n reverseMap = this._reverseMap = [];\n for (var j = 0; j < map.length; j++) {\n reverseMap[map.charCodeAt(j)] = j;\n }\n }\n\n // Ignore padding\n var paddingChar = map.charAt(64);\n if (paddingChar) {\n var paddingIndex = base64Str.indexOf(paddingChar);\n if (paddingIndex !== -1) {\n base64StrLength = paddingIndex;\n }\n }\n\n // Convert\n return parseLoop(base64Str, base64StrLength, reverseMap);\n\n },\n\n _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='\n };\n\n function parseLoop(base64Str, base64StrLength, reverseMap) {\n var words = [];\n var nBytes = 0;\n for (var i = 0; i < base64StrLength; i++) {\n if (i % 4) {\n var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);\n var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);\n var bitsCombined = bits1 | bits2;\n words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);\n nBytes++;\n }\n }\n return WordArray.create(words, nBytes);\n }\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var C_enc = C.enc;\n\n /**\n * Base64url encoding strategy.\n */\n var Base64url = C_enc.Base64url = {\n /**\n * Converts a word array to a Base64url string.\n *\n * @param {WordArray} wordArray The word array.\n *\n * @param {boolean} urlSafe Whether to use url safe\n *\n * @return {string} The Base64url string.\n *\n * @static\n *\n * @example\n *\n * var base64String = CryptoJS.enc.Base64url.stringify(wordArray);\n */\n stringify: function (wordArray, urlSafe) {\n if (urlSafe === undefined) {\n urlSafe = true\n }\n // Shortcuts\n var words = wordArray.words;\n var sigBytes = wordArray.sigBytes;\n var map = urlSafe ? this._safe_map : this._map;\n\n // Clamp excess bits\n wordArray.clamp();\n\n // Convert\n var base64Chars = [];\n for (var i = 0; i < sigBytes; i += 3) {\n var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;\n var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;\n\n var triplet = (byte1 << 16) | (byte2 << 8) | byte3;\n\n for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {\n base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));\n }\n }\n\n // Add padding\n var paddingChar = map.charAt(64);\n if (paddingChar) {\n while (base64Chars.length % 4) {\n base64Chars.push(paddingChar);\n }\n }\n\n return base64Chars.join('');\n },\n\n /**\n * Converts a Base64url string to a word array.\n *\n * @param {string} base64Str The Base64url string.\n *\n * @param {boolean} urlSafe Whether to use url safe\n *\n * @return {WordArray} The word array.\n *\n * @static\n *\n * @example\n *\n * var wordArray = CryptoJS.enc.Base64url.parse(base64String);\n */\n parse: function (base64Str, urlSafe) {\n if (urlSafe === undefined) {\n urlSafe = true\n }\n\n // Shortcuts\n var base64StrLength = base64Str.length;\n var map = urlSafe ? this._safe_map : this._map;\n var reverseMap = this._reverseMap;\n\n if (!reverseMap) {\n reverseMap = this._reverseMap = [];\n for (var j = 0; j < map.length; j++) {\n reverseMap[map.charCodeAt(j)] = j;\n }\n }\n\n // Ignore padding\n var paddingChar = map.charAt(64);\n if (paddingChar) {\n var paddingIndex = base64Str.indexOf(paddingChar);\n if (paddingIndex !== -1) {\n base64StrLength = paddingIndex;\n }\n }\n\n // Convert\n return parseLoop(base64Str, base64StrLength, reverseMap);\n\n },\n\n _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',\n _safe_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_',\n };\n\n function parseLoop(base64Str, base64StrLength, reverseMap) {\n var words = [];\n var nBytes = 0;\n for (var i = 0; i < base64StrLength; i++) {\n if (i % 4) {\n var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);\n var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);\n var bitsCombined = bits1 | bits2;\n words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);\n nBytes++;\n }\n }\n return WordArray.create(words, nBytes);\n }\n }());\n\n\n (function (Math) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var Hasher = C_lib.Hasher;\n var C_algo = C.algo;\n\n // Constants table\n var T = [];\n\n // Compute constants\n (function () {\n for (var i = 0; i < 64; i++) {\n T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;\n }\n }());\n\n /**\n * MD5 hash algorithm.\n */\n var MD5 = C_algo.MD5 = Hasher.extend({\n _doReset: function () {\n this._hash = new WordArray.init([\n 0x67452301, 0xefcdab89,\n 0x98badcfe, 0x10325476\n ]);\n },\n\n _doProcessBlock: function (M, offset) {\n // Swap endian\n for (var i = 0; i < 16; i++) {\n // Shortcuts\n var offset_i = offset + i;\n var M_offset_i = M[offset_i];\n\n M[offset_i] = (\n (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n );\n }\n\n // Shortcuts\n var H = this._hash.words;\n\n var M_offset_0 = M[offset + 0];\n var M_offset_1 = M[offset + 1];\n var M_offset_2 = M[offset + 2];\n var M_offset_3 = M[offset + 3];\n var M_offset_4 = M[offset + 4];\n var M_offset_5 = M[offset + 5];\n var M_offset_6 = M[offset + 6];\n var M_offset_7 = M[offset + 7];\n var M_offset_8 = M[offset + 8];\n var M_offset_9 = M[offset + 9];\n var M_offset_10 = M[offset + 10];\n var M_offset_11 = M[offset + 11];\n var M_offset_12 = M[offset + 12];\n var M_offset_13 = M[offset + 13];\n var M_offset_14 = M[offset + 14];\n var M_offset_15 = M[offset + 15];\n\n // Working variables\n var a = H[0];\n var b = H[1];\n var c = H[2];\n var d = H[3];\n\n // Computation\n a = FF(a, b, c, d, M_offset_0, 7, T[0]);\n d = FF(d, a, b, c, M_offset_1, 12, T[1]);\n c = FF(c, d, a, b, M_offset_2, 17, T[2]);\n b = FF(b, c, d, a, M_offset_3, 22, T[3]);\n a = FF(a, b, c, d, M_offset_4, 7, T[4]);\n d = FF(d, a, b, c, M_offset_5, 12, T[5]);\n c = FF(c, d, a, b, M_offset_6, 17, T[6]);\n b = FF(b, c, d, a, M_offset_7, 22, T[7]);\n a = FF(a, b, c, d, M_offset_8, 7, T[8]);\n d = FF(d, a, b, c, M_offset_9, 12, T[9]);\n c = FF(c, d, a, b, M_offset_10, 17, T[10]);\n b = FF(b, c, d, a, M_offset_11, 22, T[11]);\n a = FF(a, b, c, d, M_offset_12, 7, T[12]);\n d = FF(d, a, b, c, M_offset_13, 12, T[13]);\n c = FF(c, d, a, b, M_offset_14, 17, T[14]);\n b = FF(b, c, d, a, M_offset_15, 22, T[15]);\n\n a = GG(a, b, c, d, M_offset_1, 5, T[16]);\n d = GG(d, a, b, c, M_offset_6, 9, T[17]);\n c = GG(c, d, a, b, M_offset_11, 14, T[18]);\n b = GG(b, c, d, a, M_offset_0, 20, T[19]);\n a = GG(a, b, c, d, M_offset_5, 5, T[20]);\n d = GG(d, a, b, c, M_offset_10, 9, T[21]);\n c = GG(c, d, a, b, M_offset_15, 14, T[22]);\n b = GG(b, c, d, a, M_offset_4, 20, T[23]);\n a = GG(a, b, c, d, M_offset_9, 5, T[24]);\n d = GG(d, a, b, c, M_offset_14, 9, T[25]);\n c = GG(c, d, a, b, M_offset_3, 14, T[26]);\n b = GG(b, c, d, a, M_offset_8, 20, T[27]);\n a = GG(a, b, c, d, M_offset_13, 5, T[28]);\n d = GG(d, a, b, c, M_offset_2, 9, T[29]);\n c = GG(c, d, a, b, M_offset_7, 14, T[30]);\n b = GG(b, c, d, a, M_offset_12, 20, T[31]);\n\n a = HH(a, b, c, d, M_offset_5, 4, T[32]);\n d = HH(d, a, b, c, M_offset_8, 11, T[33]);\n c = HH(c, d, a, b, M_offset_11, 16, T[34]);\n b = HH(b, c, d, a, M_offset_14, 23, T[35]);\n a = HH(a, b, c, d, M_offset_1, 4, T[36]);\n d = HH(d, a, b, c, M_offset_4, 11, T[37]);\n c = HH(c, d, a, b, M_offset_7, 16, T[38]);\n b = HH(b, c, d, a, M_offset_10, 23, T[39]);\n a = HH(a, b, c, d, M_offset_13, 4, T[40]);\n d = HH(d, a, b, c, M_offset_0, 11, T[41]);\n c = HH(c, d, a, b, M_offset_3, 16, T[42]);\n b = HH(b, c, d, a, M_offset_6, 23, T[43]);\n a = HH(a, b, c, d, M_offset_9, 4, T[44]);\n d = HH(d, a, b, c, M_offset_12, 11, T[45]);\n c = HH(c, d, a, b, M_offset_15, 16, T[46]);\n b = HH(b, c, d, a, M_offset_2, 23, T[47]);\n\n a = II(a, b, c, d, M_offset_0, 6, T[48]);\n d = II(d, a, b, c, M_offset_7, 10, T[49]);\n c = II(c, d, a, b, M_offset_14, 15, T[50]);\n b = II(b, c, d, a, M_offset_5, 21, T[51]);\n a = II(a, b, c, d, M_offset_12, 6, T[52]);\n d = II(d, a, b, c, M_offset_3, 10, T[53]);\n c = II(c, d, a, b, M_offset_10, 15, T[54]);\n b = II(b, c, d, a, M_offset_1, 21, T[55]);\n a = II(a, b, c, d, M_offset_8, 6, T[56]);\n d = II(d, a, b, c, M_offset_15, 10, T[57]);\n c = II(c, d, a, b, M_offset_6, 15, T[58]);\n b = II(b, c, d, a, M_offset_13, 21, T[59]);\n a = II(a, b, c, d, M_offset_4, 6, T[60]);\n d = II(d, a, b, c, M_offset_11, 10, T[61]);\n c = II(c, d, a, b, M_offset_2, 15, T[62]);\n b = II(b, c, d, a, M_offset_9, 21, T[63]);\n\n // Intermediate hash value\n H[0] = (H[0] + a) | 0;\n H[1] = (H[1] + b) | 0;\n H[2] = (H[2] + c) | 0;\n H[3] = (H[3] + d) | 0;\n },\n\n _doFinalize: function () {\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n\n var nBitsTotal = this._nDataBytes * 8;\n var nBitsLeft = data.sigBytes * 8;\n\n // Add padding\n dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\n var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);\n var nBitsTotalL = nBitsTotal;\n dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (\n (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |\n (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)\n );\n dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |\n (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)\n );\n\n data.sigBytes = (dataWords.length + 1) * 4;\n\n // Hash final blocks\n this._process();\n\n // Shortcuts\n var hash = this._hash;\n var H = hash.words;\n\n // Swap endian\n for (var i = 0; i < 4; i++) {\n // Shortcut\n var H_i = H[i];\n\n H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\n (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n }\n\n // Return final computed hash\n return hash;\n },\n\n clone: function () {\n var clone = Hasher.clone.call(this);\n clone._hash = this._hash.clone();\n\n return clone;\n }\n });\n\n function FF(a, b, c, d, x, s, t) {\n var n = a + ((b & c) | (~b & d)) + x + t;\n return ((n << s) | (n >>> (32 - s))) + b;\n }\n\n function GG(a, b, c, d, x, s, t) {\n var n = a + ((b & d) | (c & ~d)) + x + t;\n return ((n << s) | (n >>> (32 - s))) + b;\n }\n\n function HH(a, b, c, d, x, s, t) {\n var n = a + (b ^ c ^ d) + x + t;\n return ((n << s) | (n >>> (32 - s))) + b;\n }\n\n function II(a, b, c, d, x, s, t) {\n var n = a + (c ^ (b | ~d)) + x + t;\n return ((n << s) | (n >>> (32 - s))) + b;\n }\n\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.MD5('message');\n * var hash = CryptoJS.MD5(wordArray);\n */\n C.MD5 = Hasher._createHelper(MD5);\n\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacMD5(message, key);\n */\n C.HmacMD5 = Hasher._createHmacHelper(MD5);\n }(Math));\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var Hasher = C_lib.Hasher;\n var C_algo = C.algo;\n\n // Reusable object\n var W = [];\n\n /**\n * SHA-1 hash algorithm.\n */\n var SHA1 = C_algo.SHA1 = Hasher.extend({\n _doReset: function () {\n this._hash = new WordArray.init([\n 0x67452301, 0xefcdab89,\n 0x98badcfe, 0x10325476,\n 0xc3d2e1f0\n ]);\n },\n\n _doProcessBlock: function (M, offset) {\n // Shortcut\n var H = this._hash.words;\n\n // Working variables\n var a = H[0];\n var b = H[1];\n var c = H[2];\n var d = H[3];\n var e = H[4];\n\n // Computation\n for (var i = 0; i < 80; i++) {\n if (i < 16) {\n W[i] = M[offset + i] | 0;\n } else {\n var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];\n W[i] = (n << 1) | (n >>> 31);\n }\n\n var t = ((a << 5) | (a >>> 27)) + e + W[i];\n if (i < 20) {\n t += ((b & c) | (~b & d)) + 0x5a827999;\n } else if (i < 40) {\n t += (b ^ c ^ d) + 0x6ed9eba1;\n } else if (i < 60) {\n t += ((b & c) | (b & d) | (c & d)) - 0x70e44324;\n } else /* if (i < 80) */ {\n t += (b ^ c ^ d) - 0x359d3e2a;\n }\n\n e = d;\n d = c;\n c = (b << 30) | (b >>> 2);\n b = a;\n a = t;\n }\n\n // Intermediate hash value\n H[0] = (H[0] + a) | 0;\n H[1] = (H[1] + b) | 0;\n H[2] = (H[2] + c) | 0;\n H[3] = (H[3] + d) | 0;\n H[4] = (H[4] + e) | 0;\n },\n\n _doFinalize: function () {\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n\n var nBitsTotal = this._nDataBytes * 8;\n var nBitsLeft = data.sigBytes * 8;\n\n // Add padding\n dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n data.sigBytes = dataWords.length * 4;\n\n // Hash final blocks\n this._process();\n\n // Return final computed hash\n return this._hash;\n },\n\n clone: function () {\n var clone = Hasher.clone.call(this);\n clone._hash = this._hash.clone();\n\n return clone;\n }\n });\n\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.SHA1('message');\n * var hash = CryptoJS.SHA1(wordArray);\n */\n C.SHA1 = Hasher._createHelper(SHA1);\n\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacSHA1(message, key);\n */\n C.HmacSHA1 = Hasher._createHmacHelper(SHA1);\n }());\n\n\n (function (Math) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var Hasher = C_lib.Hasher;\n var C_algo = C.algo;\n\n // Initialization and round constants tables\n var H = [];\n var K = [];\n\n // Compute constants\n (function () {\n function isPrime(n) {\n var sqrtN = Math.sqrt(n);\n for (var factor = 2; factor <= sqrtN; factor++) {\n if (!(n % factor)) {\n return false;\n }\n }\n\n return true;\n }\n\n function getFractionalBits(n) {\n return ((n - (n | 0)) * 0x100000000) | 0;\n }\n\n var n = 2;\n var nPrime = 0;\n while (nPrime < 64) {\n if (isPrime(n)) {\n if (nPrime < 8) {\n H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\n }\n K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\n\n nPrime++;\n }\n\n n++;\n }\n }());\n\n // Reusable object\n var W = [];\n\n /**\n * SHA-256 hash algorithm.\n */\n var SHA256 = C_algo.SHA256 = Hasher.extend({\n _doReset: function () {\n this._hash = new WordArray.init(H.slice(0));\n },\n\n _doProcessBlock: function (M, offset) {\n // Shortcut\n var H = this._hash.words;\n\n // Working variables\n var a = H[0];\n var b = H[1];\n var c = H[2];\n var d = H[3];\n var e = H[4];\n var f = H[5];\n var g = H[6];\n var h = H[7];\n\n // Computation\n for (var i = 0; i < 64; i++) {\n if (i < 16) {\n W[i] = M[offset + i] | 0;\n } else {\n var gamma0x = W[i - 15];\n var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\n ((gamma0x << 14) | (gamma0x >>> 18)) ^\n (gamma0x >>> 3);\n\n var gamma1x = W[i - 2];\n var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\n ((gamma1x << 13) | (gamma1x >>> 19)) ^\n (gamma1x >>> 10);\n\n W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\n }\n\n var ch = (e & f) ^ (~e & g);\n var maj = (a & b) ^ (a & c) ^ (b & c);\n\n var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\n var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\n\n var t1 = h + sigma1 + ch + K[i] + W[i];\n var t2 = sigma0 + maj;\n\n h = g;\n g = f;\n f = e;\n e = (d + t1) | 0;\n d = c;\n c = b;\n b = a;\n a = (t1 + t2) | 0;\n }\n\n // Intermediate hash value\n H[0] = (H[0] + a) | 0;\n H[1] = (H[1] + b) | 0;\n H[2] = (H[2] + c) | 0;\n H[3] = (H[3] + d) | 0;\n H[4] = (H[4] + e) | 0;\n H[5] = (H[5] + f) | 0;\n H[6] = (H[6] + g) | 0;\n H[7] = (H[7] + h) | 0;\n },\n\n _doFinalize: function () {\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n\n var nBitsTotal = this._nDataBytes * 8;\n var nBitsLeft = data.sigBytes * 8;\n\n // Add padding\n dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n data.sigBytes = dataWords.length * 4;\n\n // Hash final blocks\n this._process();\n\n // Return final computed hash\n return this._hash;\n },\n\n clone: function () {\n var clone = Hasher.clone.call(this);\n clone._hash = this._hash.clone();\n\n return clone;\n }\n });\n\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.SHA256('message');\n * var hash = CryptoJS.SHA256(wordArray);\n */\n C.SHA256 = Hasher._createHelper(SHA256);\n\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacSHA256(message, key);\n */\n C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\n }(Math));\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var C_algo = C.algo;\n var SHA256 = C_algo.SHA256;\n\n /**\n * SHA-224 hash algorithm.\n */\n var SHA224 = C_algo.SHA224 = SHA256.extend({\n _doReset: function () {\n this._hash = new WordArray.init([\n 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,\n 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4\n ]);\n },\n\n _doFinalize: function () {\n var hash = SHA256._doFinalize.call(this);\n\n hash.sigBytes -= 4;\n\n return hash;\n }\n });\n\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.SHA224('message');\n * var hash = CryptoJS.SHA224(wordArray);\n */\n C.SHA224 = SHA256._createHelper(SHA224);\n\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacSHA224(message, key);\n */\n C.HmacSHA224 = SHA256._createHmacHelper(SHA224);\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Hasher = C_lib.Hasher;\n var C_x64 = C.x64;\n var X64Word = C_x64.Word;\n var X64WordArray = C_x64.WordArray;\n var C_algo = C.algo;\n\n function X64Word_create() {\n return X64Word.create.apply(X64Word, arguments);\n }\n\n // Constants\n var K = [\n X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd),\n X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc),\n X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019),\n X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118),\n X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe),\n X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2),\n X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1),\n X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694),\n X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3),\n X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65),\n X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483),\n X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5),\n X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210),\n X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4),\n X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725),\n X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70),\n X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926),\n X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df),\n X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8),\n X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b),\n X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001),\n X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30),\n X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910),\n X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8),\n X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53),\n X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8),\n X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb),\n X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3),\n X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60),\n X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec),\n X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9),\n X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b),\n X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207),\n X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178),\n X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6),\n X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b),\n X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493),\n X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c),\n X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a),\n X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)\n ];\n\n // Reusable objects\n var W = [];\n (function () {\n for (var i = 0; i < 80; i++) {\n W[i] = X64Word_create();\n }\n }());\n\n /**\n * SHA-512 hash algorithm.\n */\n var SHA512 = C_algo.SHA512 = Hasher.extend({\n _doReset: function () {\n this._hash = new X64WordArray.init([\n new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),\n new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),\n new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f),\n new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)\n ]);\n },\n\n _doProcessBlock: function (M, offset) {\n // Shortcuts\n var H = this._hash.words;\n\n var H0 = H[0];\n var H1 = H[1];\n var H2 = H[2];\n var H3 = H[3];\n var H4 = H[4];\n var H5 = H[5];\n var H6 = H[6];\n var H7 = H[7];\n\n var H0h = H0.high;\n var H0l = H0.low;\n var H1h = H1.high;\n var H1l = H1.low;\n var H2h = H2.high;\n var H2l = H2.low;\n var H3h = H3.high;\n var H3l = H3.low;\n var H4h = H4.high;\n var H4l = H4.low;\n var H5h = H5.high;\n var H5l = H5.low;\n var H6h = H6.high;\n var H6l = H6.low;\n var H7h = H7.high;\n var H7l = H7.low;\n\n // Working variables\n var ah = H0h;\n var al = H0l;\n var bh = H1h;\n var bl = H1l;\n var ch = H2h;\n var cl = H2l;\n var dh = H3h;\n var dl = H3l;\n var eh = H4h;\n var el = H4l;\n var fh = H5h;\n var fl = H5l;\n var gh = H6h;\n var gl = H6l;\n var hh = H7h;\n var hl = H7l;\n\n // Rounds\n for (var i = 0; i < 80; i++) {\n var Wil;\n var Wih;\n\n // Shortcut\n var Wi = W[i];\n\n // Extend message\n if (i < 16) {\n Wih = Wi.high = M[offset + i * 2] | 0;\n Wil = Wi.low = M[offset + i * 2 + 1] | 0;\n } else {\n // Gamma0\n var gamma0x = W[i - 15];\n var gamma0xh = gamma0x.high;\n var gamma0xl = gamma0x.low;\n var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);\n var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));\n\n // Gamma1\n var gamma1x = W[i - 2];\n var gamma1xh = gamma1x.high;\n var gamma1xl = gamma1x.low;\n var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);\n var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));\n\n // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n var Wi7 = W[i - 7];\n var Wi7h = Wi7.high;\n var Wi7l = Wi7.low;\n\n var Wi16 = W[i - 16];\n var Wi16h = Wi16.high;\n var Wi16l = Wi16.low;\n\n Wil = gamma0l + Wi7l;\n Wih = gamma0h + Wi7h + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0);\n Wil = Wil + gamma1l;\n Wih = Wih + gamma1h + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0);\n Wil = Wil + Wi16l;\n Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0);\n\n Wi.high = Wih;\n Wi.low = Wil;\n }\n\n var chh = (eh & fh) ^ (~eh & gh);\n var chl = (el & fl) ^ (~el & gl);\n var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch);\n var majl = (al & bl) ^ (al & cl) ^ (bl & cl);\n\n var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));\n var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));\n var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9));\n var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9));\n\n // t1 = h + sigma1 + ch + K[i] + W[i]\n var Ki = K[i];\n var Kih = Ki.high;\n var Kil = Ki.low;\n\n var t1l = hl + sigma1l;\n var t1h = hh + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0);\n var t1l = t1l + chl;\n var t1h = t1h + chh + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0);\n var t1l = t1l + Kil;\n var t1h = t1h + Kih + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0);\n var t1l = t1l + Wil;\n var t1h = t1h + Wih + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0);\n\n // t2 = sigma0 + maj\n var t2l = sigma0l + majl;\n var t2h = sigma0h + majh + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0);\n\n // Update working variables\n hh = gh;\n hl = gl;\n gh = fh;\n gl = fl;\n fh = eh;\n fl = el;\n el = (dl + t1l) | 0;\n eh = (dh + t1h + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0;\n dh = ch;\n dl = cl;\n ch = bh;\n cl = bl;\n bh = ah;\n bl = al;\n al = (t1l + t2l) | 0;\n ah = (t1h + t2h + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0;\n }\n\n // Intermediate hash value\n H0l = H0.low = (H0l + al);\n H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0));\n H1l = H1.low = (H1l + bl);\n H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0));\n H2l = H2.low = (H2l + cl);\n H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0));\n H3l = H3.low = (H3l + dl);\n H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0));\n H4l = H4.low = (H4l + el);\n H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0));\n H5l = H5.low = (H5l + fl);\n H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0));\n H6l = H6.low = (H6l + gl);\n H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0));\n H7l = H7.low = (H7l + hl);\n H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0));\n },\n\n _doFinalize: function () {\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n\n var nBitsTotal = this._nDataBytes * 8;\n var nBitsLeft = data.sigBytes * 8;\n\n // Add padding\n dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);\n dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 31] = nBitsTotal;\n data.sigBytes = dataWords.length * 4;\n\n // Hash final blocks\n this._process();\n\n // Convert hash to 32-bit word array before returning\n var hash = this._hash.toX32();\n\n // Return final computed hash\n return hash;\n },\n\n clone: function () {\n var clone = Hasher.clone.call(this);\n clone._hash = this._hash.clone();\n\n return clone;\n },\n\n blockSize: 1024/32\n });\n\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.SHA512('message');\n * var hash = CryptoJS.SHA512(wordArray);\n */\n C.SHA512 = Hasher._createHelper(SHA512);\n\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacSHA512(message, key);\n */\n C.HmacSHA512 = Hasher._createHmacHelper(SHA512);\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_x64 = C.x64;\n var X64Word = C_x64.Word;\n var X64WordArray = C_x64.WordArray;\n var C_algo = C.algo;\n var SHA512 = C_algo.SHA512;\n\n /**\n * SHA-384 hash algorithm.\n */\n var SHA384 = C_algo.SHA384 = SHA512.extend({\n _doReset: function () {\n this._hash = new X64WordArray.init([\n new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507),\n new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939),\n new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511),\n new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4)\n ]);\n },\n\n _doFinalize: function () {\n var hash = SHA512._doFinalize.call(this);\n\n hash.sigBytes -= 16;\n\n return hash;\n }\n });\n\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.SHA384('message');\n * var hash = CryptoJS.SHA384(wordArray);\n */\n C.SHA384 = SHA512._createHelper(SHA384);\n\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacSHA384(message, key);\n */\n C.HmacSHA384 = SHA512._createHmacHelper(SHA384);\n }());\n\n\n (function (Math) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var Hasher = C_lib.Hasher;\n var C_x64 = C.x64;\n var X64Word = C_x64.Word;\n var C_algo = C.algo;\n\n // Constants tables\n var RHO_OFFSETS = [];\n var PI_INDEXES = [];\n var ROUND_CONSTANTS = [];\n\n // Compute Constants\n (function () {\n // Compute rho offset constants\n var x = 1, y = 0;\n for (var t = 0; t < 24; t++) {\n RHO_OFFSETS[x + 5 * y] = ((t + 1) * (t + 2) / 2) % 64;\n\n var newX = y % 5;\n var newY = (2 * x + 3 * y) % 5;\n x = newX;\n y = newY;\n }\n\n // Compute pi index constants\n for (var x = 0; x < 5; x++) {\n for (var y = 0; y < 5; y++) {\n PI_INDEXES[x + 5 * y] = y + ((2 * x + 3 * y) % 5) * 5;\n }\n }\n\n // Compute round constants\n var LFSR = 0x01;\n for (var i = 0; i < 24; i++) {\n var roundConstantMsw = 0;\n var roundConstantLsw = 0;\n\n for (var j = 0; j < 7; j++) {\n if (LFSR & 0x01) {\n var bitPosition = (1 << j) - 1;\n if (bitPosition < 32) {\n roundConstantLsw ^= 1 << bitPosition;\n } else /* if (bitPosition >= 32) */ {\n roundConstantMsw ^= 1 << (bitPosition - 32);\n }\n }\n\n // Compute next LFSR\n if (LFSR & 0x80) {\n // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1\n LFSR = (LFSR << 1) ^ 0x71;\n } else {\n LFSR <<= 1;\n }\n }\n\n ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw);\n }\n }());\n\n // Reusable objects for temporary values\n var T = [];\n (function () {\n for (var i = 0; i < 25; i++) {\n T[i] = X64Word.create();\n }\n }());\n\n /**\n * SHA-3 hash algorithm.\n */\n var SHA3 = C_algo.SHA3 = Hasher.extend({\n /**\n * Configuration options.\n *\n * @property {number} outputLength\n * The desired number of bits in the output hash.\n * Only values permitted are: 224, 256, 384, 512.\n * Default: 512\n */\n cfg: Hasher.cfg.extend({\n outputLength: 512\n }),\n\n _doReset: function () {\n var state = this._state = []\n for (var i = 0; i < 25; i++) {\n state[i] = new X64Word.init();\n }\n\n this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;\n },\n\n _doProcessBlock: function (M, offset) {\n // Shortcuts\n var state = this._state;\n var nBlockSizeLanes = this.blockSize / 2;\n\n // Absorb\n for (var i = 0; i < nBlockSizeLanes; i++) {\n // Shortcuts\n var M2i = M[offset + 2 * i];\n var M2i1 = M[offset + 2 * i + 1];\n\n // Swap endian\n M2i = (\n (((M2i << 8) | (M2i >>> 24)) & 0x00ff00ff) |\n (((M2i << 24) | (M2i >>> 8)) & 0xff00ff00)\n );\n M2i1 = (\n (((M2i1 << 8) | (M2i1 >>> 24)) & 0x00ff00ff) |\n (((M2i1 << 24) | (M2i1 >>> 8)) & 0xff00ff00)\n );\n\n // Absorb message into state\n var lane = state[i];\n lane.high ^= M2i1;\n lane.low ^= M2i;\n }\n\n // Rounds\n for (var round = 0; round < 24; round++) {\n // Theta\n for (var x = 0; x < 5; x++) {\n // Mix column lanes\n var tMsw = 0, tLsw = 0;\n for (var y = 0; y < 5; y++) {\n var lane = state[x + 5 * y];\n tMsw ^= lane.high;\n tLsw ^= lane.low;\n }\n\n // Temporary values\n var Tx = T[x];\n Tx.high = tMsw;\n Tx.low = tLsw;\n }\n for (var x = 0; x < 5; x++) {\n // Shortcuts\n var Tx4 = T[(x + 4) % 5];\n var Tx1 = T[(x + 1) % 5];\n var Tx1Msw = Tx1.high;\n var Tx1Lsw = Tx1.low;\n\n // Mix surrounding columns\n var tMsw = Tx4.high ^ ((Tx1Msw << 1) | (Tx1Lsw >>> 31));\n var tLsw = Tx4.low ^ ((Tx1Lsw << 1) | (Tx1Msw >>> 31));\n for (var y = 0; y < 5; y++) {\n var lane = state[x + 5 * y];\n lane.high ^= tMsw;\n lane.low ^= tLsw;\n }\n }\n\n // Rho Pi\n for (var laneIndex = 1; laneIndex < 25; laneIndex++) {\n var tMsw;\n var tLsw;\n\n // Shortcuts\n var lane = state[laneIndex];\n var laneMsw = lane.high;\n var laneLsw = lane.low;\n var rhoOffset = RHO_OFFSETS[laneIndex];\n\n // Rotate lanes\n if (rhoOffset < 32) {\n tMsw = (laneMsw << rhoOffset) | (laneLsw >>> (32 - rhoOffset));\n tLsw = (laneLsw << rhoOffset) | (laneMsw >>> (32 - rhoOffset));\n } else /* if (rhoOffset >= 32) */ {\n tMsw = (laneLsw << (rhoOffset - 32)) | (laneMsw >>> (64 - rhoOffset));\n tLsw = (laneMsw << (rhoOffset - 32)) | (laneLsw >>> (64 - rhoOffset));\n }\n\n // Transpose lanes\n var TPiLane = T[PI_INDEXES[laneIndex]];\n TPiLane.high = tMsw;\n TPiLane.low = tLsw;\n }\n\n // Rho pi at x = y = 0\n var T0 = T[0];\n var state0 = state[0];\n T0.high = state0.high;\n T0.low = state0.low;\n\n // Chi\n for (var x = 0; x < 5; x++) {\n for (var y = 0; y < 5; y++) {\n // Shortcuts\n var laneIndex = x + 5 * y;\n var lane = state[laneIndex];\n var TLane = T[laneIndex];\n var Tx1Lane = T[((x + 1) % 5) + 5 * y];\n var Tx2Lane = T[((x + 2) % 5) + 5 * y];\n\n // Mix rows\n lane.high = TLane.high ^ (~Tx1Lane.high & Tx2Lane.high);\n lane.low = TLane.low ^ (~Tx1Lane.low & Tx2Lane.low);\n }\n }\n\n // Iota\n var lane = state[0];\n var roundConstant = ROUND_CONSTANTS[round];\n lane.high ^= roundConstant.high;\n lane.low ^= roundConstant.low;\n }\n },\n\n _doFinalize: function () {\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n var nBitsTotal = this._nDataBytes * 8;\n var nBitsLeft = data.sigBytes * 8;\n var blockSizeBits = this.blockSize * 32;\n\n // Add padding\n dataWords[nBitsLeft >>> 5] |= 0x1 << (24 - nBitsLeft % 32);\n dataWords[((Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits) >>> 5) - 1] |= 0x80;\n data.sigBytes = dataWords.length * 4;\n\n // Hash final blocks\n this._process();\n\n // Shortcuts\n var state = this._state;\n var outputLengthBytes = this.cfg.outputLength / 8;\n var outputLengthLanes = outputLengthBytes / 8;\n\n // Squeeze\n var hashWords = [];\n for (var i = 0; i < outputLengthLanes; i++) {\n // Shortcuts\n var lane = state[i];\n var laneMsw = lane.high;\n var laneLsw = lane.low;\n\n // Swap endian\n laneMsw = (\n (((laneMsw << 8) | (laneMsw >>> 24)) & 0x00ff00ff) |\n (((laneMsw << 24) | (laneMsw >>> 8)) & 0xff00ff00)\n );\n laneLsw = (\n (((laneLsw << 8) | (laneLsw >>> 24)) & 0x00ff00ff) |\n (((laneLsw << 24) | (laneLsw >>> 8)) & 0xff00ff00)\n );\n\n // Squeeze state to retrieve hash\n hashWords.push(laneLsw);\n hashWords.push(laneMsw);\n }\n\n // Return final computed hash\n return new WordArray.init(hashWords, outputLengthBytes);\n },\n\n clone: function () {\n var clone = Hasher.clone.call(this);\n\n var state = clone._state = this._state.slice(0);\n for (var i = 0; i < 25; i++) {\n state[i] = state[i].clone();\n }\n\n return clone;\n }\n });\n\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.SHA3('message');\n * var hash = CryptoJS.SHA3(wordArray);\n */\n C.SHA3 = Hasher._createHelper(SHA3);\n\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacSHA3(message, key);\n */\n C.HmacSHA3 = Hasher._createHmacHelper(SHA3);\n }(Math));\n\n\n /** @preserve\n (c) 2012 by Cédric Mesnil. All rights reserved.\n\n Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n (function (Math) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var Hasher = C_lib.Hasher;\n var C_algo = C.algo;\n\n // Constants table\n var _zl = WordArray.create([\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\n 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,\n 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,\n 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,\n 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]);\n var _zr = WordArray.create([\n 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,\n 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,\n 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,\n 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,\n 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]);\n var _sl = WordArray.create([\n 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,\n 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,\n 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,\n 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,\n 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ]);\n var _sr = WordArray.create([\n 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,\n 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,\n 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,\n 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,\n 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ]);\n\n var _hl = WordArray.create([ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);\n var _hr = WordArray.create([ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);\n\n /**\n * RIPEMD160 hash algorithm.\n */\n var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({\n _doReset: function () {\n this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);\n },\n\n _doProcessBlock: function (M, offset) {\n\n // Swap endian\n for (var i = 0; i < 16; i++) {\n // Shortcuts\n var offset_i = offset + i;\n var M_offset_i = M[offset_i];\n\n // Swap\n M[offset_i] = (\n (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n );\n }\n // Shortcut\n var H = this._hash.words;\n var hl = _hl.words;\n var hr = _hr.words;\n var zl = _zl.words;\n var zr = _zr.words;\n var sl = _sl.words;\n var sr = _sr.words;\n\n // Working variables\n var al, bl, cl, dl, el;\n var ar, br, cr, dr, er;\n\n ar = al = H[0];\n br = bl = H[1];\n cr = cl = H[2];\n dr = dl = H[3];\n er = el = H[4];\n // Computation\n var t;\n for (var i = 0; i < 80; i += 1) {\n t = (al + M[offset+zl[i]])|0;\n if (i<16){\n t += f1(bl,cl,dl) + hl[0];\n } else if (i<32) {\n t += f2(bl,cl,dl) + hl[1];\n } else if (i<48) {\n t += f3(bl,cl,dl) + hl[2];\n } else if (i<64) {\n t += f4(bl,cl,dl) + hl[3];\n } else {// if (i<80) {\n t += f5(bl,cl,dl) + hl[4];\n }\n t = t|0;\n t = rotl(t,sl[i]);\n t = (t+el)|0;\n al = el;\n el = dl;\n dl = rotl(cl, 10);\n cl = bl;\n bl = t;\n\n t = (ar + M[offset+zr[i]])|0;\n if (i<16){\n t += f5(br,cr,dr) + hr[0];\n } else if (i<32) {\n t += f4(br,cr,dr) + hr[1];\n } else if (i<48) {\n t += f3(br,cr,dr) + hr[2];\n } else if (i<64) {\n t += f2(br,cr,dr) + hr[3];\n } else {// if (i<80) {\n t += f1(br,cr,dr) + hr[4];\n }\n t = t|0;\n t = rotl(t,sr[i]) ;\n t = (t+er)|0;\n ar = er;\n er = dr;\n dr = rotl(cr, 10);\n cr = br;\n br = t;\n }\n // Intermediate hash value\n t = (H[1] + cl + dr)|0;\n H[1] = (H[2] + dl + er)|0;\n H[2] = (H[3] + el + ar)|0;\n H[3] = (H[4] + al + br)|0;\n H[4] = (H[0] + bl + cr)|0;\n H[0] = t;\n },\n\n _doFinalize: function () {\n // Shortcuts\n var data = this._data;\n var dataWords = data.words;\n\n var nBitsTotal = this._nDataBytes * 8;\n var nBitsLeft = data.sigBytes * 8;\n\n // Add padding\n dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |\n (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)\n );\n data.sigBytes = (dataWords.length + 1) * 4;\n\n // Hash final blocks\n this._process();\n\n // Shortcuts\n var hash = this._hash;\n var H = hash.words;\n\n // Swap endian\n for (var i = 0; i < 5; i++) {\n // Shortcut\n var H_i = H[i];\n\n // Swap\n H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\n (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n }\n\n // Return final computed hash\n return hash;\n },\n\n clone: function () {\n var clone = Hasher.clone.call(this);\n clone._hash = this._hash.clone();\n\n return clone;\n }\n });\n\n\n function f1(x, y, z) {\n return ((x) ^ (y) ^ (z));\n\n }\n\n function f2(x, y, z) {\n return (((x)&(y)) | ((~x)&(z)));\n }\n\n function f3(x, y, z) {\n return (((x) | (~(y))) ^ (z));\n }\n\n function f4(x, y, z) {\n return (((x) & (z)) | ((y)&(~(z))));\n }\n\n function f5(x, y, z) {\n return ((x) ^ ((y) |(~(z))));\n\n }\n\n function rotl(x,n) {\n return (x<<n) | (x>>>(32-n));\n }\n\n\n /**\n * Shortcut function to the hasher's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n *\n * @return {WordArray} The hash.\n *\n * @static\n *\n * @example\n *\n * var hash = CryptoJS.RIPEMD160('message');\n * var hash = CryptoJS.RIPEMD160(wordArray);\n */\n C.RIPEMD160 = Hasher._createHelper(RIPEMD160);\n\n /**\n * Shortcut function to the HMAC's object interface.\n *\n * @param {WordArray|string} message The message to hash.\n * @param {WordArray|string} key The secret key.\n *\n * @return {WordArray} The HMAC.\n *\n * @static\n *\n * @example\n *\n * var hmac = CryptoJS.HmacRIPEMD160(message, key);\n */\n C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160);\n }(Math));\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Base = C_lib.Base;\n var C_enc = C.enc;\n var Utf8 = C_enc.Utf8;\n var C_algo = C.algo;\n\n /**\n * HMAC algorithm.\n */\n var HMAC = C_algo.HMAC = Base.extend({\n /**\n * Initializes a newly created HMAC.\n *\n * @param {Hasher} hasher The hash algorithm to use.\n * @param {WordArray|string} key The secret key.\n *\n * @example\n *\n * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);\n */\n init: function (hasher, key) {\n // Init hasher\n hasher = this._hasher = new hasher.init();\n\n // Convert string to WordArray, else assume WordArray already\n if (typeof key == 'string') {\n key = Utf8.parse(key);\n }\n\n // Shortcuts\n var hasherBlockSize = hasher.blockSize;\n var hasherBlockSizeBytes = hasherBlockSize * 4;\n\n // Allow arbitrary length keys\n if (key.sigBytes > hasherBlockSizeBytes) {\n key = hasher.finalize(key);\n }\n\n // Clamp excess bits\n key.clamp();\n\n // Clone key for inner and outer pads\n var oKey = this._oKey = key.clone();\n var iKey = this._iKey = key.clone();\n\n // Shortcuts\n var oKeyWords = oKey.words;\n var iKeyWords = iKey.words;\n\n // XOR keys with pad constants\n for (var i = 0; i < hasherBlockSize; i++) {\n oKeyWords[i] ^= 0x5c5c5c5c;\n iKeyWords[i] ^= 0x36363636;\n }\n oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes;\n\n // Set initial values\n this.reset();\n },\n\n /**\n * Resets this HMAC to its initial state.\n *\n * @example\n *\n * hmacHasher.reset();\n */\n reset: function () {\n // Shortcut\n var hasher = this._hasher;\n\n // Reset\n hasher.reset();\n hasher.update(this._iKey);\n },\n\n /**\n * Updates this HMAC with a message.\n *\n * @param {WordArray|string} messageUpdate The message to append.\n *\n * @return {HMAC} This HMAC instance.\n *\n * @example\n *\n * hmacHasher.update('message');\n * hmacHasher.update(wordArray);\n */\n update: function (messageUpdate) {\n this._hasher.update(messageUpdate);\n\n // Chainable\n return this;\n },\n\n /**\n * Finalizes the HMAC computation.\n * Note that the finalize operation is effectively a destructive, read-once operation.\n *\n * @param {WordArray|string} messageUpdate (Optional) A final message update.\n *\n * @return {WordArray} The HMAC.\n *\n * @example\n *\n * var hmac = hmacHasher.finalize();\n * var hmac = hmacHasher.finalize('message');\n * var hmac = hmacHasher.finalize(wordArray);\n */\n finalize: function (messageUpdate) {\n // Shortcut\n var hasher = this._hasher;\n\n // Compute HMAC\n var innerHash = hasher.finalize(messageUpdate);\n hasher.reset();\n var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));\n\n return hmac;\n }\n });\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Base = C_lib.Base;\n var WordArray = C_lib.WordArray;\n var C_algo = C.algo;\n var SHA256 = C_algo.SHA256;\n var HMAC = C_algo.HMAC;\n\n /**\n * Password-Based Key Derivation Function 2 algorithm.\n */\n var PBKDF2 = C_algo.PBKDF2 = Base.extend({\n /**\n * Configuration options.\n *\n * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\n * @property {Hasher} hasher The hasher to use. Default: SHA256\n * @property {number} iterations The number of iterations to perform. Default: 250000\n */\n cfg: Base.extend({\n keySize: 128/32,\n hasher: SHA256,\n iterations: 250000\n }),\n\n /**\n * Initializes a newly created key derivation function.\n *\n * @param {Object} cfg (Optional) The configuration options to use for the derivation.\n *\n * @example\n *\n * var kdf = CryptoJS.algo.PBKDF2.create();\n * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });\n * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });\n */\n init: function (cfg) {\n this.cfg = this.cfg.extend(cfg);\n },\n\n /**\n * Computes the Password-Based Key Derivation Function 2.\n *\n * @param {WordArray|string} password The password.\n * @param {WordArray|string} salt A salt.\n *\n * @return {WordArray} The derived key.\n *\n * @example\n *\n * var key = kdf.compute(password, salt);\n */\n compute: function (password, salt) {\n // Shortcut\n var cfg = this.cfg;\n\n // Init HMAC\n var hmac = HMAC.create(cfg.hasher, password);\n\n // Initial values\n var derivedKey = WordArray.create();\n var blockIndex = WordArray.create([0x00000001]);\n\n // Shortcuts\n var derivedKeyWords = derivedKey.words;\n var blockIndexWords = blockIndex.words;\n var keySize = cfg.keySize;\n var iterations = cfg.iterations;\n\n // Generate key\n while (derivedKeyWords.length < keySize) {\n var block = hmac.update(salt).finalize(blockIndex);\n hmac.reset();\n\n // Shortcuts\n var blockWords = block.words;\n var blockWordsLength = blockWords.length;\n\n // Iterations\n var intermediate = block;\n for (var i = 1; i < iterations; i++) {\n intermediate = hmac.finalize(intermediate);\n hmac.reset();\n\n // Shortcut\n var intermediateWords = intermediate.words;\n\n // XOR intermediate with block\n for (var j = 0; j < blockWordsLength; j++) {\n blockWords[j] ^= intermediateWords[j];\n }\n }\n\n derivedKey.concat(block);\n blockIndexWords[0]++;\n }\n derivedKey.sigBytes = keySize * 4;\n\n return derivedKey;\n }\n });\n\n /**\n * Computes the Password-Based Key Derivation Function 2.\n *\n * @param {WordArray|string} password The password.\n * @param {WordArray|string} salt A salt.\n * @param {Object} cfg (Optional) The configuration options to use for this computation.\n *\n * @return {WordArray} The derived key.\n *\n * @static\n *\n * @example\n *\n * var key = CryptoJS.PBKDF2(password, salt);\n * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });\n * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });\n */\n C.PBKDF2 = function (password, salt, cfg) {\n return PBKDF2.create(cfg).compute(password, salt);\n };\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Base = C_lib.Base;\n var WordArray = C_lib.WordArray;\n var C_algo = C.algo;\n var MD5 = C_algo.MD5;\n\n /**\n * This key derivation function is meant to conform with EVP_BytesToKey.\n * www.openssl.org/docs/crypto/EVP_BytesToKey.html\n */\n var EvpKDF = C_algo.EvpKDF = Base.extend({\n /**\n * Configuration options.\n *\n * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\n * @property {Hasher} hasher The hash algorithm to use. Default: MD5\n * @property {number} iterations The number of iterations to perform. Default: 1\n */\n cfg: Base.extend({\n keySize: 128/32,\n hasher: MD5,\n iterations: 1\n }),\n\n /**\n * Initializes a newly created key derivation function.\n *\n * @param {Object} cfg (Optional) The configuration options to use for the derivation.\n *\n * @example\n *\n * var kdf = CryptoJS.algo.EvpKDF.create();\n * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });\n * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });\n */\n init: function (cfg) {\n this.cfg = this.cfg.extend(cfg);\n },\n\n /**\n * Derives a key from a password.\n *\n * @param {WordArray|string} password The password.\n * @param {WordArray|string} salt A salt.\n *\n * @return {WordArray} The derived key.\n *\n * @example\n *\n * var key = kdf.compute(password, salt);\n */\n compute: function (password, salt) {\n var block;\n\n // Shortcut\n var cfg = this.cfg;\n\n // Init hasher\n var hasher = cfg.hasher.create();\n\n // Initial values\n var derivedKey = WordArray.create();\n\n // Shortcuts\n var derivedKeyWords = derivedKey.words;\n var keySize = cfg.keySize;\n var iterations = cfg.iterations;\n\n // Generate key\n while (derivedKeyWords.length < keySize) {\n if (block) {\n hasher.update(block);\n }\n block = hasher.update(password).finalize(salt);\n hasher.reset();\n\n // Iterations\n for (var i = 1; i < iterations; i++) {\n block = hasher.finalize(block);\n hasher.reset();\n }\n\n derivedKey.concat(block);\n }\n derivedKey.sigBytes = keySize * 4;\n\n return derivedKey;\n }\n });\n\n /**\n * Derives a key from a password.\n *\n * @param {WordArray|string} password The password.\n * @param {WordArray|string} salt A salt.\n * @param {Object} cfg (Optional) The configuration options to use for this computation.\n *\n * @return {WordArray} The derived key.\n *\n * @static\n *\n * @example\n *\n * var key = CryptoJS.EvpKDF(password, salt);\n * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });\n * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });\n */\n C.EvpKDF = function (password, salt, cfg) {\n return EvpKDF.create(cfg).compute(password, salt);\n };\n }());\n\n\n /**\n * Cipher core components.\n */\n CryptoJS.lib.Cipher || (function (undefined) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var Base = C_lib.Base;\n var WordArray = C_lib.WordArray;\n var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;\n var C_enc = C.enc;\n var Utf8 = C_enc.Utf8;\n var Base64 = C_enc.Base64;\n var C_algo = C.algo;\n var EvpKDF = C_algo.EvpKDF;\n\n /**\n * Abstract base cipher template.\n *\n * @property {number} keySize This cipher's key size. Default: 4 (128 bits)\n * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)\n * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.\n * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.\n */\n var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({\n /**\n * Configuration options.\n *\n * @property {WordArray} iv The IV to use for this operation.\n */\n cfg: Base.extend(),\n\n /**\n * Creates this cipher in encryption mode.\n *\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {Cipher} A cipher instance.\n *\n * @static\n *\n * @example\n *\n * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });\n */\n createEncryptor: function (key, cfg) {\n return this.create(this._ENC_XFORM_MODE, key, cfg);\n },\n\n /**\n * Creates this cipher in decryption mode.\n *\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {Cipher} A cipher instance.\n *\n * @static\n *\n * @example\n *\n * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });\n */\n createDecryptor: function (key, cfg) {\n return this.create(this._DEC_XFORM_MODE, key, cfg);\n },\n\n /**\n * Initializes a newly created cipher.\n *\n * @param {number} xformMode Either the encryption or decryption transormation mode constant.\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @example\n *\n * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });\n */\n init: function (xformMode, key, cfg) {\n // Apply config defaults\n this.cfg = this.cfg.extend(cfg);\n\n // Store transform mode and key\n this._xformMode = xformMode;\n this._key = key;\n\n // Set initial values\n this.reset();\n },\n\n /**\n * Resets this cipher to its initial state.\n *\n * @example\n *\n * cipher.reset();\n */\n reset: function () {\n // Reset data buffer\n BufferedBlockAlgorithm.reset.call(this);\n\n // Perform concrete-cipher logic\n this._doReset();\n },\n\n /**\n * Adds data to be encrypted or decrypted.\n *\n * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.\n *\n * @return {WordArray} The data after processing.\n *\n * @example\n *\n * var encrypted = cipher.process('data');\n * var encrypted = cipher.process(wordArray);\n */\n process: function (dataUpdate) {\n // Append\n this._append(dataUpdate);\n\n // Process available blocks\n return this._process();\n },\n\n /**\n * Finalizes the encryption or decryption process.\n * Note that the finalize operation is effectively a destructive, read-once operation.\n *\n * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.\n *\n * @return {WordArray} The data after final processing.\n *\n * @example\n *\n * var encrypted = cipher.finalize();\n * var encrypted = cipher.finalize('data');\n * var encrypted = cipher.finalize(wordArray);\n */\n finalize: function (dataUpdate) {\n // Final data update\n if (dataUpdate) {\n this._append(dataUpdate);\n }\n\n // Perform concrete-cipher logic\n var finalProcessedData = this._doFinalize();\n\n return finalProcessedData;\n },\n\n keySize: 128/32,\n\n ivSize: 128/32,\n\n _ENC_XFORM_MODE: 1,\n\n _DEC_XFORM_MODE: 2,\n\n /**\n * Creates shortcut functions to a cipher's object interface.\n *\n * @param {Cipher} cipher The cipher to create a helper for.\n *\n * @return {Object} An object with encrypt and decrypt shortcut functions.\n *\n * @static\n *\n * @example\n *\n * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);\n */\n _createHelper: (function () {\n function selectCipherStrategy(key) {\n if (typeof key == 'string') {\n return PasswordBasedCipher;\n } else {\n return SerializableCipher;\n }\n }\n\n return function (cipher) {\n return {\n encrypt: function (message, key, cfg) {\n return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);\n },\n\n decrypt: function (ciphertext, key, cfg) {\n return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);\n }\n };\n };\n }())\n });\n\n /**\n * Abstract base stream cipher template.\n *\n * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)\n */\n var StreamCipher = C_lib.StreamCipher = Cipher.extend({\n _doFinalize: function () {\n // Process partial blocks\n var finalProcessedBlocks = this._process(!!'flush');\n\n return finalProcessedBlocks;\n },\n\n blockSize: 1\n });\n\n /**\n * Mode namespace.\n */\n var C_mode = C.mode = {};\n\n /**\n * Abstract base block cipher mode template.\n */\n var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({\n /**\n * Creates this mode for encryption.\n *\n * @param {Cipher} cipher A block cipher instance.\n * @param {Array} iv The IV words.\n *\n * @static\n *\n * @example\n *\n * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);\n */\n createEncryptor: function (cipher, iv) {\n return this.Encryptor.create(cipher, iv);\n },\n\n /**\n * Creates this mode for decryption.\n *\n * @param {Cipher} cipher A block cipher instance.\n * @param {Array} iv The IV words.\n *\n * @static\n *\n * @example\n *\n * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);\n */\n createDecryptor: function (cipher, iv) {\n return this.Decryptor.create(cipher, iv);\n },\n\n /**\n * Initializes a newly created mode.\n *\n * @param {Cipher} cipher A block cipher instance.\n * @param {Array} iv The IV words.\n *\n * @example\n *\n * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);\n */\n init: function (cipher, iv) {\n this._cipher = cipher;\n this._iv = iv;\n }\n });\n\n /**\n * Cipher Block Chaining mode.\n */\n var CBC = C_mode.CBC = (function () {\n /**\n * Abstract base CBC mode.\n */\n var CBC = BlockCipherMode.extend();\n\n /**\n * CBC encryptor.\n */\n CBC.Encryptor = CBC.extend({\n /**\n * Processes the data block at offset.\n *\n * @param {Array} words The data words to operate on.\n * @param {number} offset The offset where the block starts.\n *\n * @example\n *\n * mode.processBlock(data.words, offset);\n */\n processBlock: function (words, offset) {\n // Shortcuts\n var cipher = this._cipher;\n var blockSize = cipher.blockSize;\n\n // XOR and encrypt\n xorBlock.call(this, words, offset, blockSize);\n cipher.encryptBlock(words, offset);\n\n // Remember this block to use with next block\n this._prevBlock = words.slice(offset, offset + blockSize);\n }\n });\n\n /**\n * CBC decryptor.\n */\n CBC.Decryptor = CBC.extend({\n /**\n * Processes the data block at offset.\n *\n * @param {Array} words The data words to operate on.\n * @param {number} offset The offset where the block starts.\n *\n * @example\n *\n * mode.processBlock(data.words, offset);\n */\n processBlock: function (words, offset) {\n // Shortcuts\n var cipher = this._cipher;\n var blockSize = cipher.blockSize;\n\n // Remember this block to use with next block\n var thisBlock = words.slice(offset, offset + blockSize);\n\n // Decrypt and XOR\n cipher.decryptBlock(words, offset);\n xorBlock.call(this, words, offset, blockSize);\n\n // This block becomes the previous block\n this._prevBlock = thisBlock;\n }\n });\n\n function xorBlock(words, offset, blockSize) {\n var block;\n\n // Shortcut\n var iv = this._iv;\n\n // Choose mixing block\n if (iv) {\n block = iv;\n\n // Remove IV for subsequent blocks\n this._iv = undefined;\n } else {\n block = this._prevBlock;\n }\n\n // XOR blocks\n for (var i = 0; i < blockSize; i++) {\n words[offset + i] ^= block[i];\n }\n }\n\n return CBC;\n }());\n\n /**\n * Padding namespace.\n */\n var C_pad = C.pad = {};\n\n /**\n * PKCS #5/7 padding strategy.\n */\n var Pkcs7 = C_pad.Pkcs7 = {\n /**\n * Pads data using the algorithm defined in PKCS #5/7.\n *\n * @param {WordArray} data The data to pad.\n * @param {number} blockSize The multiple that the data should be padded to.\n *\n * @static\n *\n * @example\n *\n * CryptoJS.pad.Pkcs7.pad(wordArray, 4);\n */\n pad: function (data, blockSize) {\n // Shortcut\n var blockSizeBytes = blockSize * 4;\n\n // Count padding bytes\n var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;\n\n // Create padding word\n var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes;\n\n // Create padding\n var paddingWords = [];\n for (var i = 0; i < nPaddingBytes; i += 4) {\n paddingWords.push(paddingWord);\n }\n var padding = WordArray.create(paddingWords, nPaddingBytes);\n\n // Add padding\n data.concat(padding);\n },\n\n /**\n * Unpads data that had been padded using the algorithm defined in PKCS #5/7.\n *\n * @param {WordArray} data The data to unpad.\n *\n * @static\n *\n * @example\n *\n * CryptoJS.pad.Pkcs7.unpad(wordArray);\n */\n unpad: function (data) {\n // Get number of padding bytes from last byte\n var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\n\n // Remove padding\n data.sigBytes -= nPaddingBytes;\n }\n };\n\n /**\n * Abstract base block cipher template.\n *\n * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)\n */\n var BlockCipher = C_lib.BlockCipher = Cipher.extend({\n /**\n * Configuration options.\n *\n * @property {Mode} mode The block mode to use. Default: CBC\n * @property {Padding} padding The padding strategy to use. Default: Pkcs7\n */\n cfg: Cipher.cfg.extend({\n mode: CBC,\n padding: Pkcs7\n }),\n\n reset: function () {\n var modeCreator;\n\n // Reset cipher\n Cipher.reset.call(this);\n\n // Shortcuts\n var cfg = this.cfg;\n var iv = cfg.iv;\n var mode = cfg.mode;\n\n // Reset block mode\n if (this._xformMode == this._ENC_XFORM_MODE) {\n modeCreator = mode.createEncryptor;\n } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {\n modeCreator = mode.createDecryptor;\n // Keep at least one block in the buffer for unpadding\n this._minBufferSize = 1;\n }\n\n if (this._mode && this._mode.__creator == modeCreator) {\n this._mode.init(this, iv && iv.words);\n } else {\n this._mode = modeCreator.call(mode, this, iv && iv.words);\n this._mode.__creator = modeCreator;\n }\n },\n\n _doProcessBlock: function (words, offset) {\n this._mode.processBlock(words, offset);\n },\n\n _doFinalize: function () {\n var finalProcessedBlocks;\n\n // Shortcut\n var padding = this.cfg.padding;\n\n // Finalize\n if (this._xformMode == this._ENC_XFORM_MODE) {\n // Pad data\n padding.pad(this._data, this.blockSize);\n\n // Process final blocks\n finalProcessedBlocks = this._process(!!'flush');\n } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {\n // Process final blocks\n finalProcessedBlocks = this._process(!!'flush');\n\n // Unpad data\n padding.unpad(finalProcessedBlocks);\n }\n\n return finalProcessedBlocks;\n },\n\n blockSize: 128/32\n });\n\n /**\n * A collection of cipher parameters.\n *\n * @property {WordArray} ciphertext The raw ciphertext.\n * @property {WordArray} key The key to this ciphertext.\n * @property {WordArray} iv The IV used in the ciphering operation.\n * @property {WordArray} salt The salt used with a key derivation function.\n * @property {Cipher} algorithm The cipher algorithm.\n * @property {Mode} mode The block mode used in the ciphering operation.\n * @property {Padding} padding The padding scheme used in the ciphering operation.\n * @property {number} blockSize The block size of the cipher.\n * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.\n */\n var CipherParams = C_lib.CipherParams = Base.extend({\n /**\n * Initializes a newly created cipher params object.\n *\n * @param {Object} cipherParams An object with any of the possible cipher parameters.\n *\n * @example\n *\n * var cipherParams = CryptoJS.lib.CipherParams.create({\n * ciphertext: ciphertextWordArray,\n * key: keyWordArray,\n * iv: ivWordArray,\n * salt: saltWordArray,\n * algorithm: CryptoJS.algo.AES,\n * mode: CryptoJS.mode.CBC,\n * padding: CryptoJS.pad.PKCS7,\n * blockSize: 4,\n * formatter: CryptoJS.format.OpenSSL\n * });\n */\n init: function (cipherParams) {\n this.mixIn(cipherParams);\n },\n\n /**\n * Converts this cipher params object to a string.\n *\n * @param {Format} formatter (Optional) The formatting strategy to use.\n *\n * @return {string} The stringified cipher params.\n *\n * @throws Error If neither the formatter nor the default formatter is set.\n *\n * @example\n *\n * var string = cipherParams + '';\n * var string = cipherParams.toString();\n * var string = cipherParams.toString(CryptoJS.format.OpenSSL);\n */\n toString: function (formatter) {\n return (formatter || this.formatter).stringify(this);\n }\n });\n\n /**\n * Format namespace.\n */\n var C_format = C.format = {};\n\n /**\n * OpenSSL formatting strategy.\n */\n var OpenSSLFormatter = C_format.OpenSSL = {\n /**\n * Converts a cipher params object to an OpenSSL-compatible string.\n *\n * @param {CipherParams} cipherParams The cipher params object.\n *\n * @return {string} The OpenSSL-compatible string.\n *\n * @static\n *\n * @example\n *\n * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);\n */\n stringify: function (cipherParams) {\n var wordArray;\n\n // Shortcuts\n var ciphertext = cipherParams.ciphertext;\n var salt = cipherParams.salt;\n\n // Format\n if (salt) {\n wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);\n } else {\n wordArray = ciphertext;\n }\n\n return wordArray.toString(Base64);\n },\n\n /**\n * Converts an OpenSSL-compatible string to a cipher params object.\n *\n * @param {string} openSSLStr The OpenSSL-compatible string.\n *\n * @return {CipherParams} The cipher params object.\n *\n * @static\n *\n * @example\n *\n * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);\n */\n parse: function (openSSLStr) {\n var salt;\n\n // Parse base64\n var ciphertext = Base64.parse(openSSLStr);\n\n // Shortcut\n var ciphertextWords = ciphertext.words;\n\n // Test for salt\n if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {\n // Extract salt\n salt = WordArray.create(ciphertextWords.slice(2, 4));\n\n // Remove salt from ciphertext\n ciphertextWords.splice(0, 4);\n ciphertext.sigBytes -= 16;\n }\n\n return CipherParams.create({ ciphertext: ciphertext, salt: salt });\n }\n };\n\n /**\n * A cipher wrapper that returns ciphertext as a serializable cipher params object.\n */\n var SerializableCipher = C_lib.SerializableCipher = Base.extend({\n /**\n * Configuration options.\n *\n * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL\n */\n cfg: Base.extend({\n format: OpenSSLFormatter\n }),\n\n /**\n * Encrypts a message.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {WordArray|string} message The message to encrypt.\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {CipherParams} A cipher params object.\n *\n * @static\n *\n * @example\n *\n * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);\n * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });\n * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n */\n encrypt: function (cipher, message, key, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg);\n\n // Encrypt\n var encryptor = cipher.createEncryptor(key, cfg);\n var ciphertext = encryptor.finalize(message);\n\n // Shortcut\n var cipherCfg = encryptor.cfg;\n\n // Create and return serializable cipher params\n return CipherParams.create({\n ciphertext: ciphertext,\n key: key,\n iv: cipherCfg.iv,\n algorithm: cipher,\n mode: cipherCfg.mode,\n padding: cipherCfg.padding,\n blockSize: cipher.blockSize,\n formatter: cfg.format\n });\n },\n\n /**\n * Decrypts serialized ciphertext.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\n * @param {WordArray} key The key.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {WordArray} The plaintext.\n *\n * @static\n *\n * @example\n *\n * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n */\n decrypt: function (cipher, ciphertext, key, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg);\n\n // Convert string to CipherParams\n ciphertext = this._parse(ciphertext, cfg.format);\n\n // Decrypt\n var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);\n\n return plaintext;\n },\n\n /**\n * Converts serialized ciphertext to CipherParams,\n * else assumed CipherParams already and returns ciphertext unchanged.\n *\n * @param {CipherParams|string} ciphertext The ciphertext.\n * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.\n *\n * @return {CipherParams} The unserialized ciphertext.\n *\n * @static\n *\n * @example\n *\n * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);\n */\n _parse: function (ciphertext, format) {\n if (typeof ciphertext == 'string') {\n return format.parse(ciphertext, this);\n } else {\n return ciphertext;\n }\n }\n });\n\n /**\n * Key derivation function namespace.\n */\n var C_kdf = C.kdf = {};\n\n /**\n * OpenSSL key derivation function.\n */\n var OpenSSLKdf = C_kdf.OpenSSL = {\n /**\n * Derives a key and IV from a password.\n *\n * @param {string} password The password to derive from.\n * @param {number} keySize The size in words of the key to generate.\n * @param {number} ivSize The size in words of the IV to generate.\n * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.\n *\n * @return {CipherParams} A cipher params object with the key, IV, and salt.\n *\n * @static\n *\n * @example\n *\n * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);\n * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');\n */\n execute: function (password, keySize, ivSize, salt, hasher) {\n // Generate random salt\n if (!salt) {\n salt = WordArray.random(64/8);\n }\n\n // Derive key and IV\n if (!hasher) {\n var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);\n } else {\n var key = EvpKDF.create({ keySize: keySize + ivSize, hasher: hasher }).compute(password, salt);\n }\n\n\n // Separate key and IV\n var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);\n key.sigBytes = keySize * 4;\n\n // Return params\n return CipherParams.create({ key: key, iv: iv, salt: salt });\n }\n };\n\n /**\n * A serializable cipher wrapper that derives the key from a password,\n * and returns ciphertext as a serializable cipher params object.\n */\n var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({\n /**\n * Configuration options.\n *\n * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL\n */\n cfg: SerializableCipher.cfg.extend({\n kdf: OpenSSLKdf\n }),\n\n /**\n * Encrypts a message using a password.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {WordArray|string} message The message to encrypt.\n * @param {string} password The password.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {CipherParams} A cipher params object.\n *\n * @static\n *\n * @example\n *\n * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');\n * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });\n */\n encrypt: function (cipher, message, password, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg);\n\n // Derive key and other params\n var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);\n\n // Add IV to config\n cfg.iv = derivedParams.iv;\n\n // Encrypt\n var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);\n\n // Mix in derived params\n ciphertext.mixIn(derivedParams);\n\n return ciphertext;\n },\n\n /**\n * Decrypts serialized ciphertext using a password.\n *\n * @param {Cipher} cipher The cipher algorithm to use.\n * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\n * @param {string} password The password.\n * @param {Object} cfg (Optional) The configuration options to use for this operation.\n *\n * @return {WordArray} The plaintext.\n *\n * @static\n *\n * @example\n *\n * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });\n * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });\n */\n decrypt: function (cipher, ciphertext, password, cfg) {\n // Apply config defaults\n cfg = this.cfg.extend(cfg);\n\n // Convert string to CipherParams\n ciphertext = this._parse(ciphertext, cfg.format);\n\n // Derive key and other params\n var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);\n\n // Add IV to config\n cfg.iv = derivedParams.iv;\n\n // Decrypt\n var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);\n\n return plaintext;\n }\n });\n }());\n\n\n /**\n * Cipher Feedback block mode.\n */\n CryptoJS.mode.CFB = (function () {\n var CFB = CryptoJS.lib.BlockCipherMode.extend();\n\n CFB.Encryptor = CFB.extend({\n processBlock: function (words, offset) {\n // Shortcuts\n var cipher = this._cipher;\n var blockSize = cipher.blockSize;\n\n generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);\n\n // Remember this block to use with next block\n this._prevBlock = words.slice(offset, offset + blockSize);\n }\n });\n\n CFB.Decryptor = CFB.extend({\n processBlock: function (words, offset) {\n // Shortcuts\n var cipher = this._cipher;\n var blockSize = cipher.blockSize;\n\n // Remember this block to use with next block\n var thisBlock = words.slice(offset, offset + blockSize);\n\n generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);\n\n // This block becomes the previous block\n this._prevBlock = thisBlock;\n }\n });\n\n function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) {\n var keystream;\n\n // Shortcut\n var iv = this._iv;\n\n // Generate keystream\n if (iv) {\n keystream = iv.slice(0);\n\n // Remove IV for subsequent blocks\n this._iv = undefined;\n } else {\n keystream = this._prevBlock;\n }\n cipher.encryptBlock(keystream, 0);\n\n // Encrypt\n for (var i = 0; i < blockSize; i++) {\n words[offset + i] ^= keystream[i];\n }\n }\n\n return CFB;\n }());\n\n\n /**\n * Counter block mode.\n */\n CryptoJS.mode.CTR = (function () {\n var CTR = CryptoJS.lib.BlockCipherMode.extend();\n\n var Encryptor = CTR.Encryptor = CTR.extend({\n processBlock: function (words, offset) {\n // Shortcuts\n var cipher = this._cipher\n var blockSize = cipher.blockSize;\n var iv = this._iv;\n var counter = this._counter;\n\n // Generate keystream\n if (iv) {\n counter = this._counter = iv.slice(0);\n\n // Remove IV for subsequent blocks\n this._iv = undefined;\n }\n var keystream = counter.slice(0);\n cipher.encryptBlock(keystream, 0);\n\n // Increment counter\n counter[blockSize - 1] = (counter[blockSize - 1] + 1) | 0\n\n // Encrypt\n for (var i = 0; i < blockSize; i++) {\n words[offset + i] ^= keystream[i];\n }\n }\n });\n\n CTR.Decryptor = Encryptor;\n\n return CTR;\n }());\n\n\n /** @preserve\n * Counter block mode compatible with Dr Brian Gladman fileenc.c\n * derived from CryptoJS.mode.CTR\n * Jan Hruby jhruby.web@gmail.com\n */\n CryptoJS.mode.CTRGladman = (function () {\n var CTRGladman = CryptoJS.lib.BlockCipherMode.extend();\n\n function incWord(word)\n {\n if (((word >> 24) & 0xff) === 0xff) { //overflow\n var b1 = (word >> 16)&0xff;\n var b2 = (word >> 8)&0xff;\n var b3 = word & 0xff;\n\n if (b1 === 0xff) // overflow b1\n {\n b1 = 0;\n if (b2 === 0xff)\n {\n b2 = 0;\n if (b3 === 0xff)\n {\n b3 = 0;\n }\n else\n {\n ++b3;\n }\n }\n else\n {\n ++b2;\n }\n }\n else\n {\n ++b1;\n }\n\n word = 0;\n word += (b1 << 16);\n word += (b2 << 8);\n word += b3;\n }\n else\n {\n word += (0x01 << 24);\n }\n return word;\n }\n\n function incCounter(counter)\n {\n if ((counter[0] = incWord(counter[0])) === 0)\n {\n // encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8\n counter[1] = incWord(counter[1]);\n }\n return counter;\n }\n\n var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({\n processBlock: function (words, offset) {\n // Shortcuts\n var cipher = this._cipher\n var blockSize = cipher.blockSize;\n var iv = this._iv;\n var counter = this._counter;\n\n // Generate keystream\n if (iv) {\n counter = this._counter = iv.slice(0);\n\n // Remove IV for subsequent blocks\n this._iv = undefined;\n }\n\n incCounter(counter);\n\n var keystream = counter.slice(0);\n cipher.encryptBlock(keystream, 0);\n\n // Encrypt\n for (var i = 0; i < blockSize; i++) {\n words[offset + i] ^= keystream[i];\n }\n }\n });\n\n CTRGladman.Decryptor = Encryptor;\n\n return CTRGladman;\n }());\n\n\n\n\n /**\n * Output Feedback block mode.\n */\n CryptoJS.mode.OFB = (function () {\n var OFB = CryptoJS.lib.BlockCipherMode.extend();\n\n var Encryptor = OFB.Encryptor = OFB.extend({\n processBlock: function (words, offset) {\n // Shortcuts\n var cipher = this._cipher\n var blockSize = cipher.blockSize;\n var iv = this._iv;\n var keystream = this._keystream;\n\n // Generate keystream\n if (iv) {\n keystream = this._keystream = iv.slice(0);\n\n // Remove IV for subsequent blocks\n this._iv = undefined;\n }\n cipher.encryptBlock(keystream, 0);\n\n // Encrypt\n for (var i = 0; i < blockSize; i++) {\n words[offset + i] ^= keystream[i];\n }\n }\n });\n\n OFB.Decryptor = Encryptor;\n\n return OFB;\n }());\n\n\n /**\n * Electronic Codebook block mode.\n */\n CryptoJS.mode.ECB = (function () {\n var ECB = CryptoJS.lib.BlockCipherMode.extend();\n\n ECB.Encryptor = ECB.extend({\n processBlock: function (words, offset) {\n this._cipher.encryptBlock(words, offset);\n }\n });\n\n ECB.Decryptor = ECB.extend({\n processBlock: function (words, offset) {\n this._cipher.decryptBlock(words, offset);\n }\n });\n\n return ECB;\n }());\n\n\n /**\n * ANSI X.923 padding strategy.\n */\n CryptoJS.pad.AnsiX923 = {\n pad: function (data, blockSize) {\n // Shortcuts\n var dataSigBytes = data.sigBytes;\n var blockSizeBytes = blockSize * 4;\n\n // Count padding bytes\n var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes;\n\n // Compute last byte position\n var lastBytePos = dataSigBytes + nPaddingBytes - 1;\n\n // Pad\n data.clamp();\n data.words[lastBytePos >>> 2] |= nPaddingBytes << (24 - (lastBytePos % 4) * 8);\n data.sigBytes += nPaddingBytes;\n },\n\n unpad: function (data) {\n // Get number of padding bytes from last byte\n var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\n\n // Remove padding\n data.sigBytes -= nPaddingBytes;\n }\n };\n\n\n /**\n * ISO 10126 padding strategy.\n */\n CryptoJS.pad.Iso10126 = {\n pad: function (data, blockSize) {\n // Shortcut\n var blockSizeBytes = blockSize * 4;\n\n // Count padding bytes\n var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;\n\n // Pad\n data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).\n concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));\n },\n\n unpad: function (data) {\n // Get number of padding bytes from last byte\n var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\n\n // Remove padding\n data.sigBytes -= nPaddingBytes;\n }\n };\n\n\n /**\n * ISO/IEC 9797-1 Padding Method 2.\n */\n CryptoJS.pad.Iso97971 = {\n pad: function (data, blockSize) {\n // Add 0x80 byte\n data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1));\n\n // Zero pad the rest\n CryptoJS.pad.ZeroPadding.pad(data, blockSize);\n },\n\n unpad: function (data) {\n // Remove zero padding\n CryptoJS.pad.ZeroPadding.unpad(data);\n\n // Remove one more byte -- the 0x80 byte\n data.sigBytes--;\n }\n };\n\n\n /**\n * Zero padding strategy.\n */\n CryptoJS.pad.ZeroPadding = {\n pad: function (data, blockSize) {\n // Shortcut\n var blockSizeBytes = blockSize * 4;\n\n // Pad\n data.clamp();\n data.sigBytes += blockSizeBytes - ((data.sigBytes % blockSizeBytes) || blockSizeBytes);\n },\n\n unpad: function (data) {\n // Shortcut\n var dataWords = data.words;\n\n // Unpad\n var i = data.sigBytes - 1;\n for (var i = data.sigBytes - 1; i >= 0; i--) {\n if (((dataWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff)) {\n data.sigBytes = i + 1;\n break;\n }\n }\n }\n };\n\n\n /**\n * A noop padding strategy.\n */\n CryptoJS.pad.NoPadding = {\n pad: function () {\n },\n\n unpad: function () {\n }\n };\n\n\n (function (undefined) {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var CipherParams = C_lib.CipherParams;\n var C_enc = C.enc;\n var Hex = C_enc.Hex;\n var C_format = C.format;\n\n var HexFormatter = C_format.Hex = {\n /**\n * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.\n *\n * @param {CipherParams} cipherParams The cipher params object.\n *\n * @return {string} The hexadecimally encoded string.\n *\n * @static\n *\n * @example\n *\n * var hexString = CryptoJS.format.Hex.stringify(cipherParams);\n */\n stringify: function (cipherParams) {\n return cipherParams.ciphertext.toString(Hex);\n },\n\n /**\n * Converts a hexadecimally encoded ciphertext string to a cipher params object.\n *\n * @param {string} input The hexadecimally encoded string.\n *\n * @return {CipherParams} The cipher params object.\n *\n * @static\n *\n * @example\n *\n * var cipherParams = CryptoJS.format.Hex.parse(hexString);\n */\n parse: function (input) {\n var ciphertext = Hex.parse(input);\n return CipherParams.create({ ciphertext: ciphertext });\n }\n };\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var BlockCipher = C_lib.BlockCipher;\n var C_algo = C.algo;\n\n // Lookup tables\n var SBOX = [];\n var INV_SBOX = [];\n var SUB_MIX_0 = [];\n var SUB_MIX_1 = [];\n var SUB_MIX_2 = [];\n var SUB_MIX_3 = [];\n var INV_SUB_MIX_0 = [];\n var INV_SUB_MIX_1 = [];\n var INV_SUB_MIX_2 = [];\n var INV_SUB_MIX_3 = [];\n\n // Compute lookup tables\n (function () {\n // Compute double table\n var d = [];\n for (var i = 0; i < 256; i++) {\n if (i < 128) {\n d[i] = i << 1;\n } else {\n d[i] = (i << 1) ^ 0x11b;\n }\n }\n\n // Walk GF(2^8)\n var x = 0;\n var xi = 0;\n for (var i = 0; i < 256; i++) {\n // Compute sbox\n var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4);\n sx = (sx >>> 8) ^ (sx & 0xff) ^ 0x63;\n SBOX[x] = sx;\n INV_SBOX[sx] = x;\n\n // Compute multiplication\n var x2 = d[x];\n var x4 = d[x2];\n var x8 = d[x4];\n\n // Compute sub bytes, mix columns tables\n var t = (d[sx] * 0x101) ^ (sx * 0x1010100);\n SUB_MIX_0[x] = (t << 24) | (t >>> 8);\n SUB_MIX_1[x] = (t << 16) | (t >>> 16);\n SUB_MIX_2[x] = (t << 8) | (t >>> 24);\n SUB_MIX_3[x] = t;\n\n // Compute inv sub bytes, inv mix columns tables\n var t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100);\n INV_SUB_MIX_0[sx] = (t << 24) | (t >>> 8);\n INV_SUB_MIX_1[sx] = (t << 16) | (t >>> 16);\n INV_SUB_MIX_2[sx] = (t << 8) | (t >>> 24);\n INV_SUB_MIX_3[sx] = t;\n\n // Compute next counter\n if (!x) {\n x = xi = 1;\n } else {\n x = x2 ^ d[d[d[x8 ^ x2]]];\n xi ^= d[d[xi]];\n }\n }\n }());\n\n // Precomputed Rcon lookup\n var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];\n\n /**\n * AES block cipher algorithm.\n */\n var AES = C_algo.AES = BlockCipher.extend({\n _doReset: function () {\n var t;\n\n // Skip reset of nRounds has been set before and key did not change\n if (this._nRounds && this._keyPriorReset === this._key) {\n return;\n }\n\n // Shortcuts\n var key = this._keyPriorReset = this._key;\n var keyWords = key.words;\n var keySize = key.sigBytes / 4;\n\n // Compute number of rounds\n var nRounds = this._nRounds = keySize + 6;\n\n // Compute number of key schedule rows\n var ksRows = (nRounds + 1) * 4;\n\n // Compute key schedule\n var keySchedule = this._keySchedule = [];\n for (var ksRow = 0; ksRow < ksRows; ksRow++) {\n if (ksRow < keySize) {\n keySchedule[ksRow] = keyWords[ksRow];\n } else {\n t = keySchedule[ksRow - 1];\n\n if (!(ksRow % keySize)) {\n // Rot word\n t = (t << 8) | (t >>> 24);\n\n // Sub word\n t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];\n\n // Mix Rcon\n t ^= RCON[(ksRow / keySize) | 0] << 24;\n } else if (keySize > 6 && ksRow % keySize == 4) {\n // Sub word\n t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];\n }\n\n keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;\n }\n }\n\n // Compute inv key schedule\n var invKeySchedule = this._invKeySchedule = [];\n for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {\n var ksRow = ksRows - invKsRow;\n\n if (invKsRow % 4) {\n var t = keySchedule[ksRow];\n } else {\n var t = keySchedule[ksRow - 4];\n }\n\n if (invKsRow < 4 || ksRow <= 4) {\n invKeySchedule[invKsRow] = t;\n } else {\n invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[(t >>> 16) & 0xff]] ^\n INV_SUB_MIX_2[SBOX[(t >>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];\n }\n }\n },\n\n encryptBlock: function (M, offset) {\n this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);\n },\n\n decryptBlock: function (M, offset) {\n // Swap 2nd and 4th rows\n var t = M[offset + 1];\n M[offset + 1] = M[offset + 3];\n M[offset + 3] = t;\n\n this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX);\n\n // Inv swap 2nd and 4th rows\n var t = M[offset + 1];\n M[offset + 1] = M[offset + 3];\n M[offset + 3] = t;\n },\n\n _doCryptBlock: function (M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {\n // Shortcut\n var nRounds = this._nRounds;\n\n // Get input, add round key\n var s0 = M[offset] ^ keySchedule[0];\n var s1 = M[offset + 1] ^ keySchedule[1];\n var s2 = M[offset + 2] ^ keySchedule[2];\n var s3 = M[offset + 3] ^ keySchedule[3];\n\n // Key schedule row counter\n var ksRow = 4;\n\n // Rounds\n for (var round = 1; round < nRounds; round++) {\n // Shift rows, sub bytes, mix columns, add round key\n var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[(s1 >>> 16) & 0xff] ^ SUB_MIX_2[(s2 >>> 8) & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];\n var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[(s2 >>> 16) & 0xff] ^ SUB_MIX_2[(s3 >>> 8) & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];\n var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[(s3 >>> 16) & 0xff] ^ SUB_MIX_2[(s0 >>> 8) & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];\n var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[(s0 >>> 16) & 0xff] ^ SUB_MIX_2[(s1 >>> 8) & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++];\n\n // Update state\n s0 = t0;\n s1 = t1;\n s2 = t2;\n s3 = t3;\n }\n\n // Shift rows, sub bytes, add round key\n var t0 = ((SBOX[s0 >>> 24] << 24) | (SBOX[(s1 >>> 16) & 0xff] << 16) | (SBOX[(s2 >>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];\n var t1 = ((SBOX[s1 >>> 24] << 24) | (SBOX[(s2 >>> 16) & 0xff] << 16) | (SBOX[(s3 >>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];\n var t2 = ((SBOX[s2 >>> 24] << 24) | (SBOX[(s3 >>> 16) & 0xff] << 16) | (SBOX[(s0 >>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];\n var t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];\n\n // Set output\n M[offset] = t0;\n M[offset + 1] = t1;\n M[offset + 2] = t2;\n M[offset + 3] = t3;\n },\n\n keySize: 256/32\n });\n\n /**\n * Shortcut functions to the cipher's object interface.\n *\n * @example\n *\n * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);\n * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);\n */\n C.AES = BlockCipher._createHelper(AES);\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var WordArray = C_lib.WordArray;\n var BlockCipher = C_lib.BlockCipher;\n var C_algo = C.algo;\n\n // Permuted Choice 1 constants\n var PC1 = [\n 57, 49, 41, 33, 25, 17, 9, 1,\n 58, 50, 42, 34, 26, 18, 10, 2,\n 59, 51, 43, 35, 27, 19, 11, 3,\n 60, 52, 44, 36, 63, 55, 47, 39,\n 31, 23, 15, 7, 62, 54, 46, 38,\n 30, 22, 14, 6, 61, 53, 45, 37,\n 29, 21, 13, 5, 28, 20, 12, 4\n ];\n\n // Permuted Choice 2 constants\n var PC2 = [\n 14, 17, 11, 24, 1, 5,\n 3, 28, 15, 6, 21, 10,\n 23, 19, 12, 4, 26, 8,\n 16, 7, 27, 20, 13, 2,\n 41, 52, 31, 37, 47, 55,\n 30, 40, 51, 45, 33, 48,\n 44, 49, 39, 56, 34, 53,\n 46, 42, 50, 36, 29, 32\n ];\n\n // Cumulative bit shift constants\n var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];\n\n // SBOXes and round permutation constants\n var SBOX_P = [\n {\n 0x0: 0x808200,\n 0x10000000: 0x8000,\n 0x20000000: 0x808002,\n 0x30000000: 0x2,\n 0x40000000: 0x200,\n 0x50000000: 0x808202,\n 0x60000000: 0x800202,\n 0x70000000: 0x800000,\n 0x80000000: 0x202,\n 0x90000000: 0x800200,\n 0xa0000000: 0x8200,\n 0xb0000000: 0x808000,\n 0xc0000000: 0x8002,\n 0xd0000000: 0x800002,\n 0xe0000000: 0x0,\n 0xf0000000: 0x8202,\n 0x8000000: 0x0,\n 0x18000000: 0x808202,\n 0x28000000: 0x8202,\n 0x38000000: 0x8000,\n 0x48000000: 0x808200,\n 0x58000000: 0x200,\n 0x68000000: 0x808002,\n 0x78000000: 0x2,\n 0x88000000: 0x800200,\n 0x98000000: 0x8200,\n 0xa8000000: 0x808000,\n 0xb8000000: 0x800202,\n 0xc8000000: 0x800002,\n 0xd8000000: 0x8002,\n 0xe8000000: 0x202,\n 0xf8000000: 0x800000,\n 0x1: 0x8000,\n 0x10000001: 0x2,\n 0x20000001: 0x808200,\n 0x30000001: 0x800000,\n 0x40000001: 0x808002,\n 0x50000001: 0x8200,\n 0x60000001: 0x200,\n 0x70000001: 0x800202,\n 0x80000001: 0x808202,\n 0x90000001: 0x808000,\n 0xa0000001: 0x800002,\n 0xb0000001: 0x8202,\n 0xc0000001: 0x202,\n 0xd0000001: 0x800200,\n 0xe0000001: 0x8002,\n 0xf0000001: 0x0,\n 0x8000001: 0x808202,\n 0x18000001: 0x808000,\n 0x28000001: 0x800000,\n 0x38000001: 0x200,\n 0x48000001: 0x8000,\n 0x58000001: 0x800002,\n 0x68000001: 0x2,\n 0x78000001: 0x8202,\n 0x88000001: 0x8002,\n 0x98000001: 0x800202,\n 0xa8000001: 0x202,\n 0xb8000001: 0x808200,\n 0xc8000001: 0x800200,\n 0xd8000001: 0x0,\n 0xe8000001: 0x8200,\n 0xf8000001: 0x808002\n },\n {\n 0x0: 0x40084010,\n 0x1000000: 0x4000,\n 0x2000000: 0x80000,\n 0x3000000: 0x40080010,\n 0x4000000: 0x40000010,\n 0x5000000: 0x40084000,\n 0x6000000: 0x40004000,\n 0x7000000: 0x10,\n 0x8000000: 0x84000,\n 0x9000000: 0x40004010,\n 0xa000000: 0x40000000,\n 0xb000000: 0x84010,\n 0xc000000: 0x80010,\n 0xd000000: 0x0,\n 0xe000000: 0x4010,\n 0xf000000: 0x40080000,\n 0x800000: 0x40004000,\n 0x1800000: 0x84010,\n 0x2800000: 0x10,\n 0x3800000: 0x40004010,\n 0x4800000: 0x40084010,\n 0x5800000: 0x40000000,\n 0x6800000: 0x80000,\n 0x7800000: 0x40080010,\n 0x8800000: 0x80010,\n 0x9800000: 0x0,\n 0xa800000: 0x4000,\n 0xb800000: 0x40080000,\n 0xc800000: 0x40000010,\n 0xd800000: 0x84000,\n 0xe800000: 0x40084000,\n 0xf800000: 0x4010,\n 0x10000000: 0x0,\n 0x11000000: 0x40080010,\n 0x12000000: 0x40004010,\n 0x13000000: 0x40084000,\n 0x14000000: 0x40080000,\n 0x15000000: 0x10,\n 0x16000000: 0x84010,\n 0x17000000: 0x4000,\n 0x18000000: 0x4010,\n 0x19000000: 0x80000,\n 0x1a000000: 0x80010,\n 0x1b000000: 0x40000010,\n 0x1c000000: 0x84000,\n 0x1d000000: 0x40004000,\n 0x1e000000: 0x40000000,\n 0x1f000000: 0x40084010,\n 0x10800000: 0x84010,\n 0x11800000: 0x80000,\n 0x12800000: 0x40080000,\n 0x13800000: 0x4000,\n 0x14800000: 0x40004000,\n 0x15800000: 0x40084010,\n 0x16800000: 0x10,\n 0x17800000: 0x40000000,\n 0x18800000: 0x40084000,\n 0x19800000: 0x40000010,\n 0x1a800000: 0x40004010,\n 0x1b800000: 0x80010,\n 0x1c800000: 0x0,\n 0x1d800000: 0x4010,\n 0x1e800000: 0x40080010,\n 0x1f800000: 0x84000\n },\n {\n 0x0: 0x104,\n 0x100000: 0x0,\n 0x200000: 0x4000100,\n 0x300000: 0x10104,\n 0x400000: 0x10004,\n 0x500000: 0x4000004,\n 0x600000: 0x4010104,\n 0x700000: 0x4010000,\n 0x800000: 0x4000000,\n 0x900000: 0x4010100,\n 0xa00000: 0x10100,\n 0xb00000: 0x4010004,\n 0xc00000: 0x4000104,\n 0xd00000: 0x10000,\n 0xe00000: 0x4,\n 0xf00000: 0x100,\n 0x80000: 0x4010100,\n 0x180000: 0x4010004,\n 0x280000: 0x0,\n 0x380000: 0x4000100,\n 0x480000: 0x4000004,\n 0x580000: 0x10000,\n 0x680000: 0x10004,\n 0x780000: 0x104,\n 0x880000: 0x4,\n 0x980000: 0x100,\n 0xa80000: 0x4010000,\n 0xb80000: 0x10104,\n 0xc80000: 0x10100,\n 0xd80000: 0x4000104,\n 0xe80000: 0x4010104,\n 0xf80000: 0x4000000,\n 0x1000000: 0x4010100,\n 0x1100000: 0x10004,\n 0x1200000: 0x10000,\n 0x1300000: 0x4000100,\n 0x1400000: 0x100,\n 0x1500000: 0x4010104,\n 0x1600000: 0x4000004,\n 0x1700000: 0x0,\n 0x1800000: 0x4000104,\n 0x1900000: 0x4000000,\n 0x1a00000: 0x4,\n 0x1b00000: 0x10100,\n 0x1c00000: 0x4010000,\n 0x1d00000: 0x104,\n 0x1e00000: 0x10104,\n 0x1f00000: 0x4010004,\n 0x1080000: 0x4000000,\n 0x1180000: 0x104,\n 0x1280000: 0x4010100,\n 0x1380000: 0x0,\n 0x1480000: 0x10004,\n 0x1580000: 0x4000100,\n 0x1680000: 0x100,\n 0x1780000: 0x4010004,\n 0x1880000: 0x10000,\n 0x1980000: 0x4010104,\n 0x1a80000: 0x10104,\n 0x1b80000: 0x4000004,\n 0x1c80000: 0x4000104,\n 0x1d80000: 0x4010000,\n 0x1e80000: 0x4,\n 0x1f80000: 0x10100\n },\n {\n 0x0: 0x80401000,\n 0x10000: 0x80001040,\n 0x20000: 0x401040,\n 0x30000: 0x80400000,\n 0x40000: 0x0,\n 0x50000: 0x401000,\n 0x60000: 0x80000040,\n 0x70000: 0x400040,\n 0x80000: 0x80000000,\n 0x90000: 0x400000,\n 0xa0000: 0x40,\n 0xb0000: 0x80001000,\n 0xc0000: 0x80400040,\n 0xd0000: 0x1040,\n 0xe0000: 0x1000,\n 0xf0000: 0x80401040,\n 0x8000: 0x80001040,\n 0x18000: 0x40,\n 0x28000: 0x80400040,\n 0x38000: 0x80001000,\n 0x48000: 0x401000,\n 0x58000: 0x80401040,\n 0x68000: 0x0,\n 0x78000: 0x80400000,\n 0x88000: 0x1000,\n 0x98000: 0x80401000,\n 0xa8000: 0x400000,\n 0xb8000: 0x1040,\n 0xc8000: 0x80000000,\n 0xd8000: 0x400040,\n 0xe8000: 0x401040,\n 0xf8000: 0x80000040,\n 0x100000: 0x400040,\n 0x110000: 0x401000,\n 0x120000: 0x80000040,\n 0x130000: 0x0,\n 0x140000: 0x1040,\n 0x150000: 0x80400040,\n 0x160000: 0x80401000,\n 0x170000: 0x80001040,\n 0x180000: 0x80401040,\n 0x190000: 0x80000000,\n 0x1a0000: 0x80400000,\n 0x1b0000: 0x401040,\n 0x1c0000: 0x80001000,\n 0x1d0000: 0x400000,\n 0x1e0000: 0x40,\n 0x1f0000: 0x1000,\n 0x108000: 0x80400000,\n 0x118000: 0x80401040,\n 0x128000: 0x0,\n 0x138000: 0x401000,\n 0x148000: 0x400040,\n 0x158000: 0x80000000,\n 0x168000: 0x80001040,\n 0x178000: 0x40,\n 0x188000: 0x80000040,\n 0x198000: 0x1000,\n 0x1a8000: 0x80001000,\n 0x1b8000: 0x80400040,\n 0x1c8000: 0x1040,\n 0x1d8000: 0x80401000,\n 0x1e8000: 0x400000,\n 0x1f8000: 0x401040\n },\n {\n 0x0: 0x80,\n 0x1000: 0x1040000,\n 0x2000: 0x40000,\n 0x3000: 0x20000000,\n 0x4000: 0x20040080,\n 0x5000: 0x1000080,\n 0x6000: 0x21000080,\n 0x7000: 0x40080,\n 0x8000: 0x1000000,\n 0x9000: 0x20040000,\n 0xa000: 0x20000080,\n 0xb000: 0x21040080,\n 0xc000: 0x21040000,\n 0xd000: 0x0,\n 0xe000: 0x1040080,\n 0xf000: 0x21000000,\n 0x800: 0x1040080,\n 0x1800: 0x21000080,\n 0x2800: 0x80,\n 0x3800: 0x1040000,\n 0x4800: 0x40000,\n 0x5800: 0x20040080,\n 0x6800: 0x21040000,\n 0x7800: 0x20000000,\n 0x8800: 0x20040000,\n 0x9800: 0x0,\n 0xa800: 0x21040080,\n 0xb800: 0x1000080,\n 0xc800: 0x20000080,\n 0xd800: 0x21000000,\n 0xe800: 0x1000000,\n 0xf800: 0x40080,\n 0x10000: 0x40000,\n 0x11000: 0x80,\n 0x12000: 0x20000000,\n 0x13000: 0x21000080,\n 0x14000: 0x1000080,\n 0x15000: 0x21040000,\n 0x16000: 0x20040080,\n 0x17000: 0x1000000,\n 0x18000: 0x21040080,\n 0x19000: 0x21000000,\n 0x1a000: 0x1040000,\n 0x1b000: 0x20040000,\n 0x1c000: 0x40080,\n 0x1d000: 0x20000080,\n 0x1e000: 0x0,\n 0x1f000: 0x1040080,\n 0x10800: 0x21000080,\n 0x11800: 0x1000000,\n 0x12800: 0x1040000,\n 0x13800: 0x20040080,\n 0x14800: 0x20000000,\n 0x15800: 0x1040080,\n 0x16800: 0x80,\n 0x17800: 0x21040000,\n 0x18800: 0x40080,\n 0x19800: 0x21040080,\n 0x1a800: 0x0,\n 0x1b800: 0x21000000,\n 0x1c800: 0x1000080,\n 0x1d800: 0x40000,\n 0x1e800: 0x20040000,\n 0x1f800: 0x20000080\n },\n {\n 0x0: 0x10000008,\n 0x100: 0x2000,\n 0x200: 0x10200000,\n 0x300: 0x10202008,\n 0x400: 0x10002000,\n 0x500: 0x200000,\n 0x600: 0x200008,\n 0x700: 0x10000000,\n 0x800: 0x0,\n 0x900: 0x10002008,\n 0xa00: 0x202000,\n 0xb00: 0x8,\n 0xc00: 0x10200008,\n 0xd00: 0x202008,\n 0xe00: 0x2008,\n 0xf00: 0x10202000,\n 0x80: 0x10200000,\n 0x180: 0x10202008,\n 0x280: 0x8,\n 0x380: 0x200000,\n 0x480: 0x202008,\n 0x580: 0x10000008,\n 0x680: 0x10002000,\n 0x780: 0x2008,\n 0x880: 0x200008,\n 0x980: 0x2000,\n 0xa80: 0x10002008,\n 0xb80: 0x10200008,\n 0xc80: 0x0,\n 0xd80: 0x10202000,\n 0xe80: 0x202000,\n 0xf80: 0x10000000,\n 0x1000: 0x10002000,\n 0x1100: 0x10200008,\n 0x1200: 0x10202008,\n 0x1300: 0x2008,\n 0x1400: 0x200000,\n 0x1500: 0x10000000,\n 0x1600: 0x10000008,\n 0x1700: 0x202000,\n 0x1800: 0x202008,\n 0x1900: 0x0,\n 0x1a00: 0x8,\n 0x1b00: 0x10200000,\n 0x1c00: 0x2000,\n 0x1d00: 0x10002008,\n 0x1e00: 0x10202000,\n 0x1f00: 0x200008,\n 0x1080: 0x8,\n 0x1180: 0x202000,\n 0x1280: 0x200000,\n 0x1380: 0x10000008,\n 0x1480: 0x10002000,\n 0x1580: 0x2008,\n 0x1680: 0x10202008,\n 0x1780: 0x10200000,\n 0x1880: 0x10202000,\n 0x1980: 0x10200008,\n 0x1a80: 0x2000,\n 0x1b80: 0x202008,\n 0x1c80: 0x200008,\n 0x1d80: 0x0,\n 0x1e80: 0x10000000,\n 0x1f80: 0x10002008\n },\n {\n 0x0: 0x100000,\n 0x10: 0x2000401,\n 0x20: 0x400,\n 0x30: 0x100401,\n 0x40: 0x2100401,\n 0x50: 0x0,\n 0x60: 0x1,\n 0x70: 0x2100001,\n 0x80: 0x2000400,\n 0x90: 0x100001,\n 0xa0: 0x2000001,\n 0xb0: 0x2100400,\n 0xc0: 0x2100000,\n 0xd0: 0x401,\n 0xe0: 0x100400,\n 0xf0: 0x2000000,\n 0x8: 0x2100001,\n 0x18: 0x0,\n 0x28: 0x2000401,\n 0x38: 0x2100400,\n 0x48: 0x100000,\n 0x58: 0x2000001,\n 0x68: 0x2000000,\n 0x78: 0x401,\n 0x88: 0x100401,\n 0x98: 0x2000400,\n 0xa8: 0x2100000,\n 0xb8: 0x100001,\n 0xc8: 0x400,\n 0xd8: 0x2100401,\n 0xe8: 0x1,\n 0xf8: 0x100400,\n 0x100: 0x2000000,\n 0x110: 0x100000,\n 0x120: 0x2000401,\n 0x130: 0x2100001,\n 0x140: 0x100001,\n 0x150: 0x2000400,\n 0x160: 0x2100400,\n 0x170: 0x100401,\n 0x180: 0x401,\n 0x190: 0x2100401,\n 0x1a0: 0x100400,\n 0x1b0: 0x1,\n 0x1c0: 0x0,\n 0x1d0: 0x2100000,\n 0x1e0: 0x2000001,\n 0x1f0: 0x400,\n 0x108: 0x100400,\n 0x118: 0x2000401,\n 0x128: 0x2100001,\n 0x138: 0x1,\n 0x148: 0x2000000,\n 0x158: 0x100000,\n 0x168: 0x401,\n 0x178: 0x2100400,\n 0x188: 0x2000001,\n 0x198: 0x2100000,\n 0x1a8: 0x0,\n 0x1b8: 0x2100401,\n 0x1c8: 0x100401,\n 0x1d8: 0x400,\n 0x1e8: 0x2000400,\n 0x1f8: 0x100001\n },\n {\n 0x0: 0x8000820,\n 0x1: 0x20000,\n 0x2: 0x8000000,\n 0x3: 0x20,\n 0x4: 0x20020,\n 0x5: 0x8020820,\n 0x6: 0x8020800,\n 0x7: 0x800,\n 0x8: 0x8020000,\n 0x9: 0x8000800,\n 0xa: 0x20800,\n 0xb: 0x8020020,\n 0xc: 0x820,\n 0xd: 0x0,\n 0xe: 0x8000020,\n 0xf: 0x20820,\n 0x80000000: 0x800,\n 0x80000001: 0x8020820,\n 0x80000002: 0x8000820,\n 0x80000003: 0x8000000,\n 0x80000004: 0x8020000,\n 0x80000005: 0x20800,\n 0x80000006: 0x20820,\n 0x80000007: 0x20,\n 0x80000008: 0x8000020,\n 0x80000009: 0x820,\n 0x8000000a: 0x20020,\n 0x8000000b: 0x8020800,\n 0x8000000c: 0x0,\n 0x8000000d: 0x8020020,\n 0x8000000e: 0x8000800,\n 0x8000000f: 0x20000,\n 0x10: 0x20820,\n 0x11: 0x8020800,\n 0x12: 0x20,\n 0x13: 0x800,\n 0x14: 0x8000800,\n 0x15: 0x8000020,\n 0x16: 0x8020020,\n 0x17: 0x20000,\n 0x18: 0x0,\n 0x19: 0x20020,\n 0x1a: 0x8020000,\n 0x1b: 0x8000820,\n 0x1c: 0x8020820,\n 0x1d: 0x20800,\n 0x1e: 0x820,\n 0x1f: 0x8000000,\n 0x80000010: 0x20000,\n 0x80000011: 0x800,\n 0x80000012: 0x8020020,\n 0x80000013: 0x20820,\n 0x80000014: 0x20,\n 0x80000015: 0x8020000,\n 0x80000016: 0x8000000,\n 0x80000017: 0x8000820,\n 0x80000018: 0x8020820,\n 0x80000019: 0x8000020,\n 0x8000001a: 0x8000800,\n 0x8000001b: 0x0,\n 0x8000001c: 0x20800,\n 0x8000001d: 0x820,\n 0x8000001e: 0x20020,\n 0x8000001f: 0x8020800\n }\n ];\n\n // Masks that select the SBOX input\n var SBOX_MASK = [\n 0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000,\n 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f\n ];\n\n /**\n * DES block cipher algorithm.\n */\n var DES = C_algo.DES = BlockCipher.extend({\n _doReset: function () {\n // Shortcuts\n var key = this._key;\n var keyWords = key.words;\n\n // Select 56 bits according to PC1\n var keyBits = [];\n for (var i = 0; i < 56; i++) {\n var keyBitPos = PC1[i] - 1;\n keyBits[i] = (keyWords[keyBitPos >>> 5] >>> (31 - keyBitPos % 32)) & 1;\n }\n\n // Assemble 16 subkeys\n var subKeys = this._subKeys = [];\n for (var nSubKey = 0; nSubKey < 16; nSubKey++) {\n // Create subkey\n var subKey = subKeys[nSubKey] = [];\n\n // Shortcut\n var bitShift = BIT_SHIFTS[nSubKey];\n\n // Select 48 bits according to PC2\n for (var i = 0; i < 24; i++) {\n // Select from the left 28 key bits\n subKey[(i / 6) | 0] |= keyBits[((PC2[i] - 1) + bitShift) % 28] << (31 - i % 6);\n\n // Select from the right 28 key bits\n subKey[4 + ((i / 6) | 0)] |= keyBits[28 + (((PC2[i + 24] - 1) + bitShift) % 28)] << (31 - i % 6);\n }\n\n // Since each subkey is applied to an expanded 32-bit input,\n // the subkey can be broken into 8 values scaled to 32-bits,\n // which allows the key to be used without expansion\n subKey[0] = (subKey[0] << 1) | (subKey[0] >>> 31);\n for (var i = 1; i < 7; i++) {\n subKey[i] = subKey[i] >>> ((i - 1) * 4 + 3);\n }\n subKey[7] = (subKey[7] << 5) | (subKey[7] >>> 27);\n }\n\n // Compute inverse subkeys\n var invSubKeys = this._invSubKeys = [];\n for (var i = 0; i < 16; i++) {\n invSubKeys[i] = subKeys[15 - i];\n }\n },\n\n encryptBlock: function (M, offset) {\n this._doCryptBlock(M, offset, this._subKeys);\n },\n\n decryptBlock: function (M, offset) {\n this._doCryptBlock(M, offset, this._invSubKeys);\n },\n\n _doCryptBlock: function (M, offset, subKeys) {\n // Get input\n this._lBlock = M[offset];\n this._rBlock = M[offset + 1];\n\n // Initial permutation\n exchangeLR.call(this, 4, 0x0f0f0f0f);\n exchangeLR.call(this, 16, 0x0000ffff);\n exchangeRL.call(this, 2, 0x33333333);\n exchangeRL.call(this, 8, 0x00ff00ff);\n exchangeLR.call(this, 1, 0x55555555);\n\n // Rounds\n for (var round = 0; round < 16; round++) {\n // Shortcuts\n var subKey = subKeys[round];\n var lBlock = this._lBlock;\n var rBlock = this._rBlock;\n\n // Feistel function\n var f = 0;\n for (var i = 0; i < 8; i++) {\n f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0];\n }\n this._lBlock = rBlock;\n this._rBlock = lBlock ^ f;\n }\n\n // Undo swap from last round\n var t = this._lBlock;\n this._lBlock = this._rBlock;\n this._rBlock = t;\n\n // Final permutation\n exchangeLR.call(this, 1, 0x55555555);\n exchangeRL.call(this, 8, 0x00ff00ff);\n exchangeRL.call(this, 2, 0x33333333);\n exchangeLR.call(this, 16, 0x0000ffff);\n exchangeLR.call(this, 4, 0x0f0f0f0f);\n\n // Set output\n M[offset] = this._lBlock;\n M[offset + 1] = this._rBlock;\n },\n\n keySize: 64/32,\n\n ivSize: 64/32,\n\n blockSize: 64/32\n });\n\n // Swap bits across the left and right words\n function exchangeLR(offset, mask) {\n var t = ((this._lBlock >>> offset) ^ this._rBlock) & mask;\n this._rBlock ^= t;\n this._lBlock ^= t << offset;\n }\n\n function exchangeRL(offset, mask) {\n var t = ((this._rBlock >>> offset) ^ this._lBlock) & mask;\n this._lBlock ^= t;\n this._rBlock ^= t << offset;\n }\n\n /**\n * Shortcut functions to the cipher's object interface.\n *\n * @example\n *\n * var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);\n * var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);\n */\n C.DES = BlockCipher._createHelper(DES);\n\n /**\n * Triple-DES block cipher algorithm.\n */\n var TripleDES = C_algo.TripleDES = BlockCipher.extend({\n _doReset: function () {\n // Shortcuts\n var key = this._key;\n var keyWords = key.words;\n // Make sure the key length is valid (64, 128 or >= 192 bit)\n if (keyWords.length !== 2 && keyWords.length !== 4 && keyWords.length < 6) {\n throw new Error('Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.');\n }\n\n // Extend the key according to the keying options defined in 3DES standard\n var key1 = keyWords.slice(0, 2);\n var key2 = keyWords.length < 4 ? keyWords.slice(0, 2) : keyWords.slice(2, 4);\n var key3 = keyWords.length < 6 ? keyWords.slice(0, 2) : keyWords.slice(4, 6);\n\n // Create DES instances\n this._des1 = DES.createEncryptor(WordArray.create(key1));\n this._des2 = DES.createEncryptor(WordArray.create(key2));\n this._des3 = DES.createEncryptor(WordArray.create(key3));\n },\n\n encryptBlock: function (M, offset) {\n this._des1.encryptBlock(M, offset);\n this._des2.decryptBlock(M, offset);\n this._des3.encryptBlock(M, offset);\n },\n\n decryptBlock: function (M, offset) {\n this._des3.decryptBlock(M, offset);\n this._des2.encryptBlock(M, offset);\n this._des1.decryptBlock(M, offset);\n },\n\n keySize: 192/32,\n\n ivSize: 64/32,\n\n blockSize: 64/32\n });\n\n /**\n * Shortcut functions to the cipher's object interface.\n *\n * @example\n *\n * var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);\n * var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);\n */\n C.TripleDES = BlockCipher._createHelper(TripleDES);\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var StreamCipher = C_lib.StreamCipher;\n var C_algo = C.algo;\n\n /**\n * RC4 stream cipher algorithm.\n */\n var RC4 = C_algo.RC4 = StreamCipher.extend({\n _doReset: function () {\n // Shortcuts\n var key = this._key;\n var keyWords = key.words;\n var keySigBytes = key.sigBytes;\n\n // Init sbox\n var S = this._S = [];\n for (var i = 0; i < 256; i++) {\n S[i] = i;\n }\n\n // Key setup\n for (var i = 0, j = 0; i < 256; i++) {\n var keyByteIndex = i % keySigBytes;\n var keyByte = (keyWords[keyByteIndex >>> 2] >>> (24 - (keyByteIndex % 4) * 8)) & 0xff;\n\n j = (j + S[i] + keyByte) % 256;\n\n // Swap\n var t = S[i];\n S[i] = S[j];\n S[j] = t;\n }\n\n // Counters\n this._i = this._j = 0;\n },\n\n _doProcessBlock: function (M, offset) {\n M[offset] ^= generateKeystreamWord.call(this);\n },\n\n keySize: 256/32,\n\n ivSize: 0\n });\n\n function generateKeystreamWord() {\n // Shortcuts\n var S = this._S;\n var i = this._i;\n var j = this._j;\n\n // Generate keystream word\n var keystreamWord = 0;\n for (var n = 0; n < 4; n++) {\n i = (i + 1) % 256;\n j = (j + S[i]) % 256;\n\n // Swap\n var t = S[i];\n S[i] = S[j];\n S[j] = t;\n\n keystreamWord |= S[(S[i] + S[j]) % 256] << (24 - n * 8);\n }\n\n // Update counters\n this._i = i;\n this._j = j;\n\n return keystreamWord;\n }\n\n /**\n * Shortcut functions to the cipher's object interface.\n *\n * @example\n *\n * var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);\n * var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);\n */\n C.RC4 = StreamCipher._createHelper(RC4);\n\n /**\n * Modified RC4 stream cipher algorithm.\n */\n var RC4Drop = C_algo.RC4Drop = RC4.extend({\n /**\n * Configuration options.\n *\n * @property {number} drop The number of keystream words to drop. Default 192\n */\n cfg: RC4.cfg.extend({\n drop: 192\n }),\n\n _doReset: function () {\n RC4._doReset.call(this);\n\n // Drop\n for (var i = this.cfg.drop; i > 0; i--) {\n generateKeystreamWord.call(this);\n }\n }\n });\n\n /**\n * Shortcut functions to the cipher's object interface.\n *\n * @example\n *\n * var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);\n * var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);\n */\n C.RC4Drop = StreamCipher._createHelper(RC4Drop);\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var StreamCipher = C_lib.StreamCipher;\n var C_algo = C.algo;\n\n // Reusable objects\n var S = [];\n var C_ = [];\n var G = [];\n\n /**\n * Rabbit stream cipher algorithm\n */\n var Rabbit = C_algo.Rabbit = StreamCipher.extend({\n _doReset: function () {\n // Shortcuts\n var K = this._key.words;\n var iv = this.cfg.iv;\n\n // Swap endian\n for (var i = 0; i < 4; i++) {\n K[i] = (((K[i] << 8) | (K[i] >>> 24)) & 0x00ff00ff) |\n (((K[i] << 24) | (K[i] >>> 8)) & 0xff00ff00);\n }\n\n // Generate initial state values\n var X = this._X = [\n K[0], (K[3] << 16) | (K[2] >>> 16),\n K[1], (K[0] << 16) | (K[3] >>> 16),\n K[2], (K[1] << 16) | (K[0] >>> 16),\n K[3], (K[2] << 16) | (K[1] >>> 16)\n ];\n\n // Generate initial counter values\n var C = this._C = [\n (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff),\n (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff),\n (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff),\n (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff)\n ];\n\n // Carry bit\n this._b = 0;\n\n // Iterate the system four times\n for (var i = 0; i < 4; i++) {\n nextState.call(this);\n }\n\n // Modify the counters\n for (var i = 0; i < 8; i++) {\n C[i] ^= X[(i + 4) & 7];\n }\n\n // IV setup\n if (iv) {\n // Shortcuts\n var IV = iv.words;\n var IV_0 = IV[0];\n var IV_1 = IV[1];\n\n // Generate four subvectors\n var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);\n var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);\n var i1 = (i0 >>> 16) | (i2 & 0xffff0000);\n var i3 = (i2 << 16) | (i0 & 0x0000ffff);\n\n // Modify counter values\n C[0] ^= i0;\n C[1] ^= i1;\n C[2] ^= i2;\n C[3] ^= i3;\n C[4] ^= i0;\n C[5] ^= i1;\n C[6] ^= i2;\n C[7] ^= i3;\n\n // Iterate the system four times\n for (var i = 0; i < 4; i++) {\n nextState.call(this);\n }\n }\n },\n\n _doProcessBlock: function (M, offset) {\n // Shortcut\n var X = this._X;\n\n // Iterate the system\n nextState.call(this);\n\n // Generate four keystream words\n S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16);\n S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16);\n S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16);\n S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16);\n\n for (var i = 0; i < 4; i++) {\n // Swap endian\n S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |\n (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);\n\n // Encrypt\n M[offset + i] ^= S[i];\n }\n },\n\n blockSize: 128/32,\n\n ivSize: 64/32\n });\n\n function nextState() {\n // Shortcuts\n var X = this._X;\n var C = this._C;\n\n // Save old counter values\n for (var i = 0; i < 8; i++) {\n C_[i] = C[i];\n }\n\n // Calculate new counter values\n C[0] = (C[0] + 0x4d34d34d + this._b) | 0;\n C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0;\n C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0;\n C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0;\n C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0;\n C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0;\n C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0;\n C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0;\n this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0;\n\n // Calculate the g-values\n for (var i = 0; i < 8; i++) {\n var gx = X[i] + C[i];\n\n // Construct high and low argument for squaring\n var ga = gx & 0xffff;\n var gb = gx >>> 16;\n\n // Calculate high and low result of squaring\n var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb;\n var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0);\n\n // High XOR low\n G[i] = gh ^ gl;\n }\n\n // Calculate new state values\n X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;\n X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;\n X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;\n X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;\n X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;\n X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;\n X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;\n X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;\n }\n\n /**\n * Shortcut functions to the cipher's object interface.\n *\n * @example\n *\n * var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);\n * var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);\n */\n C.Rabbit = StreamCipher._createHelper(Rabbit);\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var StreamCipher = C_lib.StreamCipher;\n var C_algo = C.algo;\n\n // Reusable objects\n var S = [];\n var C_ = [];\n var G = [];\n\n /**\n * Rabbit stream cipher algorithm.\n *\n * This is a legacy version that neglected to convert the key to little-endian.\n * This error doesn't affect the cipher's security,\n * but it does affect its compatibility with other implementations.\n */\n var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({\n _doReset: function () {\n // Shortcuts\n var K = this._key.words;\n var iv = this.cfg.iv;\n\n // Generate initial state values\n var X = this._X = [\n K[0], (K[3] << 16) | (K[2] >>> 16),\n K[1], (K[0] << 16) | (K[3] >>> 16),\n K[2], (K[1] << 16) | (K[0] >>> 16),\n K[3], (K[2] << 16) | (K[1] >>> 16)\n ];\n\n // Generate initial counter values\n var C = this._C = [\n (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff),\n (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff),\n (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff),\n (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff)\n ];\n\n // Carry bit\n this._b = 0;\n\n // Iterate the system four times\n for (var i = 0; i < 4; i++) {\n nextState.call(this);\n }\n\n // Modify the counters\n for (var i = 0; i < 8; i++) {\n C[i] ^= X[(i + 4) & 7];\n }\n\n // IV setup\n if (iv) {\n // Shortcuts\n var IV = iv.words;\n var IV_0 = IV[0];\n var IV_1 = IV[1];\n\n // Generate four subvectors\n var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);\n var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);\n var i1 = (i0 >>> 16) | (i2 & 0xffff0000);\n var i3 = (i2 << 16) | (i0 & 0x0000ffff);\n\n // Modify counter values\n C[0] ^= i0;\n C[1] ^= i1;\n C[2] ^= i2;\n C[3] ^= i3;\n C[4] ^= i0;\n C[5] ^= i1;\n C[6] ^= i2;\n C[7] ^= i3;\n\n // Iterate the system four times\n for (var i = 0; i < 4; i++) {\n nextState.call(this);\n }\n }\n },\n\n _doProcessBlock: function (M, offset) {\n // Shortcut\n var X = this._X;\n\n // Iterate the system\n nextState.call(this);\n\n // Generate four keystream words\n S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16);\n S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16);\n S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16);\n S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16);\n\n for (var i = 0; i < 4; i++) {\n // Swap endian\n S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |\n (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);\n\n // Encrypt\n M[offset + i] ^= S[i];\n }\n },\n\n blockSize: 128/32,\n\n ivSize: 64/32\n });\n\n function nextState() {\n // Shortcuts\n var X = this._X;\n var C = this._C;\n\n // Save old counter values\n for (var i = 0; i < 8; i++) {\n C_[i] = C[i];\n }\n\n // Calculate new counter values\n C[0] = (C[0] + 0x4d34d34d + this._b) | 0;\n C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0;\n C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0;\n C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0;\n C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0;\n C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0;\n C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0;\n C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0;\n this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0;\n\n // Calculate the g-values\n for (var i = 0; i < 8; i++) {\n var gx = X[i] + C[i];\n\n // Construct high and low argument for squaring\n var ga = gx & 0xffff;\n var gb = gx >>> 16;\n\n // Calculate high and low result of squaring\n var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb;\n var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0);\n\n // High XOR low\n G[i] = gh ^ gl;\n }\n\n // Calculate new state values\n X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;\n X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;\n X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;\n X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;\n X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;\n X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;\n X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;\n X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;\n }\n\n /**\n * Shortcut functions to the cipher's object interface.\n *\n * @example\n *\n * var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);\n * var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);\n */\n C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy);\n }());\n\n\n (function () {\n // Shortcuts\n var C = CryptoJS;\n var C_lib = C.lib;\n var BlockCipher = C_lib.BlockCipher;\n var C_algo = C.algo;\n\n const N = 16;\n\n //Origin pbox and sbox, derived from PI\n const ORIG_P = [\n 0x243F6A88, 0x85A308D3, 0x13198A2E, 0x03707344,\n 0xA4093822, 0x299F31D0, 0x082EFA98, 0xEC4E6C89,\n 0x452821E6, 0x38D01377, 0xBE5466CF, 0x34E90C6C,\n 0xC0AC29B7, 0xC97C50DD, 0x3F84D5B5, 0xB5470917,\n 0x9216D5D9, 0x8979FB1B\n ];\n\n const ORIG_S = [\n [ 0xD1310BA6, 0x98DFB5AC, 0x2FFD72DB, 0xD01ADFB7,\n 0xB8E1AFED, 0x6A267E96, 0xBA7C9045, 0xF12C7F99,\n 0x24A19947, 0xB3916CF7, 0x0801F2E2, 0x858EFC16,\n 0x636920D8, 0x71574E69, 0xA458FEA3, 0xF4933D7E,\n 0x0D95748F, 0x728EB658, 0x718BCD58, 0x82154AEE,\n 0x7B54A41D, 0xC25A59B5, 0x9C30D539, 0x2AF26013,\n 0xC5D1B023, 0x286085F0, 0xCA417918, 0xB8DB38EF,\n 0x8E79DCB0, 0x603A180E, 0x6C9E0E8B, 0xB01E8A3E,\n 0xD71577C1, 0xBD314B27, 0x78AF2FDA, 0x55605C60,\n 0xE65525F3, 0xAA55AB94, 0x57489862, 0x63E81440,\n 0x55CA396A, 0x2AAB10B6, 0xB4CC5C34, 0x1141E8CE,\n 0xA15486AF, 0x7C72E993, 0xB3EE1411, 0x636FBC2A,\n 0x2BA9C55D, 0x741831F6, 0xCE5C3E16, 0x9B87931E,\n 0xAFD6BA33, 0x6C24CF5C, 0x7A325381, 0x28958677,\n 0x3B8F4898, 0x6B4BB9AF, 0xC4BFE81B, 0x66282193,\n 0x61D809CC, 0xFB21A991, 0x487CAC60, 0x5DEC8032,\n 0xEF845D5D, 0xE98575B1, 0xDC262302, 0xEB651B88,\n 0x23893E81, 0xD396ACC5, 0x0F6D6FF3, 0x83F44239,\n 0x2E0B4482, 0xA4842004, 0x69C8F04A, 0x9E1F9B5E,\n 0x21C66842, 0xF6E96C9A, 0x670C9C61, 0xABD388F0,\n 0x6A51A0D2, 0xD8542F68, 0x960FA728, 0xAB5133A3,\n 0x6EEF0B6C, 0x137A3BE4, 0xBA3BF050, 0x7EFB2A98,\n 0xA1F1651D, 0x39AF0176, 0x66CA593E, 0x82430E88,\n 0x8CEE8619, 0x456F9FB4, 0x7D84A5C3, 0x3B8B5EBE,\n 0xE06F75D8, 0x85C12073, 0x401A449F, 0x56C16AA6,\n 0x4ED3AA62, 0x363F7706, 0x1BFEDF72, 0x429B023D,\n 0x37D0D724, 0xD00A1248, 0xDB0FEAD3, 0x49F1C09B,\n 0x075372C9, 0x80991B7B, 0x25D479D8, 0xF6E8DEF7,\n 0xE3FE501A, 0xB6794C3B, 0x976CE0BD, 0x04C006BA,\n 0xC1A94FB6, 0x409F60C4, 0x5E5C9EC2, 0x196A2463,\n 0x68FB6FAF, 0x3E6C53B5, 0x1339B2EB, 0x3B52EC6F,\n 0x6DFC511F, 0x9B30952C, 0xCC814544, 0xAF5EBD09,\n 0xBEE3D004, 0xDE334AFD, 0x660F2807, 0x192E4BB3,\n 0xC0CBA857, 0x45C8740F, 0xD20B5F39, 0xB9D3FBDB,\n 0x5579C0BD, 0x1A60320A, 0xD6A100C6, 0x402C7279,\n 0x679F25FE, 0xFB1FA3CC, 0x8EA5E9F8, 0xDB3222F8,\n 0x3C7516DF, 0xFD616B15, 0x2F501EC8, 0xAD0552AB,\n 0x323DB5FA, 0xFD238760, 0x53317B48, 0x3E00DF82,\n 0x9E5C57BB, 0xCA6F8CA0, 0x1A87562E, 0xDF1769DB,\n 0xD542A8F6, 0x287EFFC3, 0xAC6732C6, 0x8C4F5573,\n 0x695B27B0, 0xBBCA58C8, 0xE1FFA35D, 0xB8F011A0,\n 0x10FA3D98, 0xFD2183B8, 0x4AFCB56C, 0x2DD1D35B,\n 0x9A53E479, 0xB6F84565, 0xD28E49BC, 0x4BFB9790,\n 0xE1DDF2DA, 0xA4CB7E33, 0x62FB1341, 0xCEE4C6E8,\n 0xEF20CADA, 0x36774C01, 0xD07E9EFE, 0x2BF11FB4,\n 0x95DBDA4D, 0xAE909198, 0xEAAD8E71, 0x6B93D5A0,\n 0xD08ED1D0, 0xAFC725E0, 0x8E3C5B2F, 0x8E7594B7,\n 0x8FF6E2FB, 0xF2122B64, 0x8888B812, 0x900DF01C,\n 0x4FAD5EA0, 0x688FC31C, 0xD1CFF191, 0xB3A8C1AD,\n 0x2F2F2218, 0xBE0E1777, 0xEA752DFE, 0x8B021FA1,\n 0xE5A0CC0F, 0xB56F74E8, 0x18ACF3D6, 0xCE89E299,\n 0xB4A84FE0, 0xFD13E0B7, 0x7CC43B81, 0xD2ADA8D9,\n 0x165FA266, 0x80957705, 0x93CC7314, 0x211A1477,\n 0xE6AD2065, 0x77B5FA86, 0xC75442F5, 0xFB9D35CF,\n 0xEBCDAF0C, 0x7B3E89A0, 0xD6411BD3, 0xAE1E7E49,\n 0x00250E2D, 0x2071B35E, 0x226800BB, 0x57B8E0AF,\n 0x2464369B, 0xF009B91E, 0x5563911D, 0x59DFA6AA,\n 0x78C14389, 0xD95A537F, 0x207D5BA2, 0x02E5B9C5,\n 0x83260376, 0x6295CFA9, 0x11C81968, 0x4E734A41,\n 0xB3472DCA, 0x7B14A94A, 0x1B510052, 0x9A532915,\n 0xD60F573F, 0xBC9BC6E4, 0x2B60A476, 0x81E67400,\n 0x08BA6FB5, 0x571BE91F, 0xF296EC6B, 0x2A0DD915,\n 0xB6636521, 0xE7B9F9B6, 0xFF34052E, 0xC5855664,\n 0x53B02D5D, 0xA99F8FA1, 0x08BA4799, 0x6E85076A ],\n [ 0x4B7A70E9, 0xB5B32944, 0xDB75092E, 0xC4192623,\n 0xAD6EA6B0, 0x49A7DF7D, 0x9CEE60B8, 0x8FEDB266,\n 0xECAA8C71, 0x699A17FF, 0x5664526C, 0xC2B19EE1,\n 0x193602A5, 0x75094C29, 0xA0591340, 0xE4183A3E,\n 0x3F54989A, 0x5B429D65, 0x6B8FE4D6, 0x99F73FD6,\n 0xA1D29C07, 0xEFE830F5, 0x4D2D38E6, 0xF0255DC1,\n 0x4CDD2086, 0x8470EB26, 0x6382E9C6, 0x021ECC5E,\n 0x09686B3F, 0x3EBAEFC9, 0x3C971814, 0x6B6A70A1,\n 0x687F3584, 0x52A0E286, 0xB79C5305, 0xAA500737,\n 0x3E07841C, 0x7FDEAE5C, 0x8E7D44EC, 0x5716F2B8,\n 0xB03ADA37, 0xF0500C0D, 0xF01C1F04, 0x0200B3FF,\n 0xAE0CF51A, 0x3CB574B2, 0x25837A58, 0xDC0921BD,\n 0xD19113F9, 0x7CA92FF6, 0x94324773, 0x22F54701,\n 0x3AE5E581, 0x37C2DADC, 0xC8B57634, 0x9AF3DDA7,\n 0xA9446146, 0x0FD0030E, 0xECC8C73E, 0xA4751E41,\n 0xE238CD99, 0x3BEA0E2F, 0x3280BBA1, 0x183EB331,\n 0x4E548B38, 0x4F6DB908, 0x6F420D03, 0xF60A04BF,\n 0x2CB81290, 0x24977C79, 0x5679B072, 0xBCAF89AF,\n 0xDE9A771F, 0xD9930810, 0xB38BAE12, 0xDCCF3F2E,\n 0x5512721F, 0x2E6B7124, 0x501ADDE6, 0x9F84CD87,\n 0x7A584718, 0x7408DA17, 0xBC9F9ABC, 0xE94B7D8C,\n 0xEC7AEC3A, 0xDB851DFA, 0x63094366, 0xC464C3D2,\n 0xEF1C1847, 0x3215D908, 0xDD433B37, 0x24C2BA16,\n 0x12A14D43, 0x2A65C451, 0x50940002, 0x133AE4DD,\n 0x71DFF89E, 0x10314E55, 0x81AC77D6, 0x5F11199B,\n 0x043556F1, 0xD7A3C76B, 0x3C11183B, 0x5924A509,\n 0xF28FE6ED, 0x97F1FBFA, 0x9EBABF2C, 0x1E153C6E,\n 0x86E34570, 0xEAE96FB1, 0x860E5E0A, 0x5A3E2AB3,\n 0x771FE71C, 0x4E3D06FA, 0x2965DCB9, 0x99E71D0F,\n 0x803E89D6, 0x5266C825, 0x2E4CC978, 0x9C10B36A,\n 0xC6150EBA, 0x94E2EA78, 0xA5FC3C53, 0x1E0A2DF4,\n 0xF2F74EA7, 0x361D2B3D, 0x1939260F, 0x19C27960,\n 0x5223A708, 0xF71312B6, 0xEBADFE6E, 0xEAC31F66,\n 0xE3BC4595, 0xA67BC883, 0xB17F37D1, 0x018CFF28,\n 0xC332DDEF, 0xBE6C5AA5, 0x65582185, 0x68AB9802,\n 0xEECEA50F, 0xDB2F953B, 0x2AEF7DAD, 0x5B6E2F84,\n 0x1521B628, 0x29076170, 0xECDD4775, 0x619F1510,\n 0x13CCA830, 0xEB61BD96, 0x0334FE1E, 0xAA0363CF,\n 0xB5735C90, 0x4C70A239, 0xD59E9E0B, 0xCBAADE14,\n 0xEECC86BC, 0x60622CA7, 0x9CAB5CAB, 0xB2F3846E,\n 0x648B1EAF, 0x19BDF0CA, 0xA02369B9, 0x655ABB50,\n 0x40685A32, 0x3C2AB4B3, 0x319EE9D5, 0xC021B8F7,\n 0x9B540B19, 0x875FA099, 0x95F7997E, 0x623D7DA8,\n 0xF837889A, 0x97E32D77, 0x11ED935F, 0x16681281,\n 0x0E358829, 0xC7E61FD6, 0x96DEDFA1, 0x7858BA99,\n 0x57F584A5, 0x1B227263, 0x9B83C3FF, 0x1AC24696,\n 0xCDB30AEB, 0x532E3054, 0x8FD948E4, 0x6DBC3128,\n 0x58EBF2EF, 0x34C6FFEA, 0xFE28ED61, 0xEE7C3C73,\n 0x5D4A14D9, 0xE864B7E3, 0x42105D14, 0x203E13E0,\n 0x45EEE2B6, 0xA3AAABEA, 0xDB6C4F15, 0xFACB4FD0,\n 0xC742F442, 0xEF6ABBB5, 0x654F3B1D, 0x41CD2105,\n 0xD81E799E, 0x86854DC7, 0xE44B476A, 0x3D816250,\n 0xCF62A1F2, 0x5B8D2646, 0xFC8883A0, 0xC1C7B6A3,\n 0x7F1524C3, 0x69CB7492, 0x47848A0B, 0x5692B285,\n 0x095BBF00, 0xAD19489D, 0x1462B174, 0x23820E00,\n 0x58428D2A, 0x0C55F5EA, 0x1DADF43E, 0x233F7061,\n 0x3372F092, 0x8D937E41, 0xD65FECF1, 0x6C223BDB,\n 0x7CDE3759, 0xCBEE7460, 0x4085F2A7, 0xCE77326E,\n 0xA6078084, 0x19F8509E, 0xE8EFD855, 0x61D99735,\n 0xA969A7AA, 0xC50C06C2, 0x5A04ABFC, 0x800BCADC,\n 0x9E447A2E, 0xC3453484, 0xFDD56705, 0x0E1E9EC9,\n 0xDB73DBD3, 0x105588CD, 0x675FDA79, 0xE3674340,\n 0xC5C43465, 0x713E38D8, 0x3D28F89E, 0xF16DFF20,\n 0x153E21E7, 0x8FB03D4A, 0xE6E39F2B, 0xDB83ADF7 ],\n [ 0xE93D5A68, 0x948140F7, 0xF64C261C, 0x94692934,\n 0x411520F7, 0x7602D4F7, 0xBCF46B2E, 0xD4A20068,\n 0xD4082471, 0x3320F46A, 0x43B7D4B7, 0x500061AF,\n 0x1E39F62E, 0x97244546, 0x14214F74, 0xBF8B8840,\n 0x4D95FC1D, 0x96B591AF, 0x70F4DDD3, 0x66A02F45,\n 0xBFBC09EC, 0x03BD9785, 0x7FAC6DD0, 0x31CB8504,\n 0x96EB27B3, 0x55FD3941, 0xDA2547E6, 0xABCA0A9A,\n 0x28507825, 0x530429F4, 0x0A2C86DA, 0xE9B66DFB,\n 0x68DC1462, 0xD7486900, 0x680EC0A4, 0x27A18DEE,\n 0x4F3FFEA2, 0xE887AD8C, 0xB58CE006, 0x7AF4D6B6,\n 0xAACE1E7C, 0xD3375FEC, 0xCE78A399, 0x406B2A42,\n 0x20FE9E35, 0xD9F385B9, 0xEE39D7AB, 0x3B124E8B,\n 0x1DC9FAF7, 0x4B6D1856, 0x26A36631, 0xEAE397B2,\n 0x3A6EFA74, 0xDD5B4332, 0x6841E7F7, 0xCA7820FB,\n 0xFB0AF54E, 0xD8FEB397, 0x454056AC, 0xBA489527,\n 0x55533A3A, 0x20838D87, 0xFE6BA9B7, 0xD096954B,\n 0x55A867BC, 0xA1159A58, 0xCCA92963, 0x99E1DB33,\n 0xA62A4A56, 0x3F3125F9, 0x5EF47E1C, 0x9029317C,\n 0xFDF8E802, 0x04272F70, 0x80BB155C, 0x05282CE3,\n 0x95C11548, 0xE4C66D22, 0x48C1133F, 0xC70F86DC,\n 0x07F9C9EE, 0x41041F0F, 0x404779A4, 0x5D886E17,\n 0x325F51EB, 0xD59BC0D1, 0xF2BCC18F, 0x41113564,\n 0x257B7834, 0x602A9C60, 0xDFF8E8A3, 0x1F636C1B,\n 0x0E12B4C2, 0x02E1329E, 0xAF664FD1, 0xCAD18115,\n 0x6B2395E0, 0x333E92E1, 0x3B240B62, 0xEEBEB922,\n 0x85B2A20E, 0xE6BA0D99, 0xDE720C8C, 0x2DA2F728,\n 0xD0127845, 0x95B794FD, 0x647D0862, 0xE7CCF5F0,\n 0x5449A36F, 0x877D48FA, 0xC39DFD27, 0xF33E8D1E,\n 0x0A476341, 0x992EFF74, 0x3A6F6EAB, 0xF4F8FD37,\n 0xA812DC60, 0xA1EBDDF8, 0x991BE14C, 0xDB6E6B0D,\n 0xC67B5510, 0x6D672C37, 0x2765D43B, 0xDCD0E804,\n 0xF1290DC7, 0xCC00FFA3, 0xB5390F92, 0x690FED0B,\n 0x667B9FFB, 0xCEDB7D9C, 0xA091CF0B, 0xD9155EA3,\n 0xBB132F88, 0x515BAD24, 0x7B9479BF, 0x763BD6EB,\n 0x37392EB3, 0xCC115979, 0x8026E297, 0xF42E312D,\n 0x6842ADA7, 0xC66A2B3B, 0x12754CCC, 0x782EF11C,\n 0x6A124237, 0xB79251E7, 0x06A1BBE6, 0x4BFB6350,\n 0x1A6B1018, 0x11CAEDFA, 0x3D25BDD8, 0xE2E1C3C9,\n 0x44421659, 0x0A121386, 0xD90CEC6E, 0xD5ABEA2A,\n 0x64AF674E, 0xDA86A85F, 0xBEBFE988, 0x64E4C3FE,\n 0x9DBC8057, 0xF0F7C086, 0x60787BF8, 0x6003604D,\n 0xD1FD8346, 0xF6381FB0, 0x7745AE04, 0xD736FCCC,\n 0x83426B33, 0xF01EAB71, 0xB0804187, 0x3C005E5F,\n 0x77A057BE, 0xBDE8AE24, 0x55464299, 0xBF582E61,\n 0x4E58F48F, 0xF2DDFDA2, 0xF474EF38, 0x8789BDC2,\n 0x5366F9C3, 0xC8B38E74, 0xB475F255, 0x46FCD9B9,\n 0x7AEB2661, 0x8B1DDF84, 0x846A0E79, 0x915F95E2,\n 0x466E598E, 0x20B45770, 0x8CD55591, 0xC902DE4C,\n 0xB90BACE1, 0xBB8205D0, 0x11A86248, 0x7574A99E,\n 0xB77F19B6, 0xE0A9DC09, 0x662D09A1, 0xC4324633,\n 0xE85A1F02, 0x09F0BE8C, 0x4A99A025, 0x1D6EFE10,\n 0x1AB93D1D, 0x0BA5A4DF, 0xA186F20F, 0x2868F169,\n 0xDCB7DA83, 0x573906FE, 0xA1E2CE9B, 0x4FCD7F52,\n 0x50115E01, 0xA70683FA, 0xA002B5C4, 0x0DE6D027,\n 0x9AF88C27, 0x773F8641, 0xC3604C06, 0x61A806B5,\n 0xF0177A28, 0xC0F586E0, 0x006058AA, 0x30DC7D62,\n 0x11E69ED7, 0x2338EA63, 0x53C2DD94, 0xC2C21634,\n 0xBBCBEE56, 0x90BCB6DE, 0xEBFC7DA1, 0xCE591D76,\n 0x6F05E409, 0x4B7C0188, 0x39720A3D, 0x7C927C24,\n 0x86E3725F, 0x724D9DB9, 0x1AC15BB4, 0xD39EB8FC,\n 0xED545578, 0x08FCA5B5, 0xD83D7CD3, 0x4DAD0FC4,\n 0x1E50EF5E, 0xB161E6F8, 0xA28514D9, 0x6C51133C,\n 0x6FD5C7E7, 0x56E14EC4, 0x362ABFCE, 0xDDC6C837,\n 0xD79A3234, 0x92638212, 0x670EFA8E, 0x406000E0 ],\n [ 0x3A39CE37, 0xD3FAF5CF, 0xABC27737, 0x5AC52D1B,\n 0x5CB0679E, 0x4FA33742, 0xD3822740, 0x99BC9BBE,\n 0xD5118E9D, 0xBF0F7315, 0xD62D1C7E, 0xC700C47B,\n 0xB78C1B6B, 0x21A19045, 0xB26EB1BE, 0x6A366EB4,\n 0x5748AB2F, 0xBC946E79, 0xC6A376D2, 0x6549C2C8,\n 0x530FF8EE, 0x468DDE7D, 0xD5730A1D, 0x4CD04DC6,\n 0x2939BBDB, 0xA9BA4650, 0xAC9526E8, 0xBE5EE304,\n 0xA1FAD5F0, 0x6A2D519A, 0x63EF8CE2, 0x9A86EE22,\n 0xC089C2B8, 0x43242EF6, 0xA51E03AA, 0x9CF2D0A4,\n 0x83C061BA, 0x9BE96A4D, 0x8FE51550, 0xBA645BD6,\n 0x2826A2F9, 0xA73A3AE1, 0x4BA99586, 0xEF5562E9,\n 0xC72FEFD3, 0xF752F7DA, 0x3F046F69, 0x77FA0A59,\n 0x80E4A915, 0x87B08601, 0x9B09E6AD, 0x3B3EE593,\n 0xE990FD5A, 0x9E34D797, 0x2CF0B7D9, 0x022B8B51,\n 0x96D5AC3A, 0x017DA67D, 0xD1CF3ED6, 0x7C7D2D28,\n 0x1F9F25CF, 0xADF2B89B, 0x5AD6B472, 0x5A88F54C,\n 0xE029AC71, 0xE019A5E6, 0x47B0ACFD, 0xED93FA9B,\n 0xE8D3C48D, 0x283B57CC, 0xF8D56629, 0x79132E28,\n 0x785F0191, 0xED756055, 0xF7960E44, 0xE3D35E8C,\n 0x15056DD4, 0x88F46DBA, 0x03A16125, 0x0564F0BD,\n 0xC3EB9E15, 0x3C9057A2, 0x97271AEC, 0xA93A072A,\n 0x1B3F6D9B, 0x1E6321F5, 0xF59C66FB, 0x26DCF319,\n 0x7533D928, 0xB155FDF5, 0x03563482, 0x8ABA3CBB,\n 0x28517711, 0xC20AD9F8, 0xABCC5167, 0xCCAD925F,\n 0x4DE81751, 0x3830DC8E, 0x379D5862, 0x9320F991,\n 0xEA7A90C2, 0xFB3E7BCE, 0x5121CE64, 0x774FBE32,\n 0xA8B6E37E, 0xC3293D46, 0x48DE5369, 0x6413E680,\n 0xA2AE0810, 0xDD6DB224, 0x69852DFD, 0x09072166,\n 0xB39A460A, 0x6445C0DD, 0x586CDECF, 0x1C20C8AE,\n 0x5BBEF7DD, 0x1B588D40, 0xCCD2017F, 0x6BB4E3BB,\n 0xDDA26A7E, 0x3A59FF45, 0x3E350A44, 0xBCB4CDD5,\n 0x72EACEA8, 0xFA6484BB, 0x8D6612AE, 0xBF3C6F47,\n 0xD29BE463, 0x542F5D9E, 0xAEC2771B, 0xF64E6370,\n 0x740E0D8D, 0xE75B1357, 0xF8721671, 0xAF537D5D,\n 0x4040CB08, 0x4EB4E2CC, 0x34D2466A, 0x0115AF84,\n 0xE1B00428, 0x95983A1D, 0x06B89FB4, 0xCE6EA048,\n 0x6F3F3B82, 0x3520AB82, 0x011A1D4B, 0x277227F8,\n 0x611560B1, 0xE7933FDC, 0xBB3A792B, 0x344525BD,\n 0xA08839E1, 0x51CE794B, 0x2F32C9B7, 0xA01FBAC9,\n 0xE01CC87E, 0xBCC7D1F6, 0xCF0111C3, 0xA1E8AAC7,\n 0x1A908749, 0xD44FBD9A, 0xD0DADECB, 0xD50ADA38,\n 0x0339C32A, 0xC6913667, 0x8DF9317C, 0xE0B12B4F,\n 0xF79E59B7, 0x43F5BB3A, 0xF2D519FF, 0x27D9459C,\n 0xBF97222C, 0x15E6FC2A, 0x0F91FC71, 0x9B941525,\n 0xFAE59361, 0xCEB69CEB, 0xC2A86459, 0x12BAA8D1,\n 0xB6C1075E, 0xE3056A0C, 0x10D25065, 0xCB03A442,\n 0xE0EC6E0E, 0x1698DB3B, 0x4C98A0BE, 0x3278E964,\n 0x9F1F9532, 0xE0D392DF, 0xD3A0342B, 0x8971F21E,\n 0x1B0A7441, 0x4BA3348C, 0xC5BE7120, 0xC37632D8,\n 0xDF359F8D, 0x9B992F2E, 0xE60B6F47, 0x0FE3F11D,\n 0xE54CDA54, 0x1EDAD891, 0xCE6279CF, 0xCD3E7E6F,\n 0x1618B166, 0xFD2C1D05, 0x848FD2C5, 0xF6FB2299,\n 0xF523F357, 0xA6327623, 0x93A83531, 0x56CCCD02,\n 0xACF08162, 0x5A75EBB5, 0x6E163697, 0x88D273CC,\n 0xDE966292, 0x81B949D0, 0x4C50901B, 0x71C65614,\n 0xE6C6C7BD, 0x327A140A, 0x45E1D006, 0xC3F27B9A,\n 0xC9AA53FD, 0x62A80F00, 0xBB25BFE2, 0x35BDD2F6,\n 0x71126905, 0xB2040222, 0xB6CBCF7C, 0xCD769C2B,\n 0x53113EC0, 0x1640E3D3, 0x38ABBD60, 0x2547ADF0,\n 0xBA38209C, 0xF746CE76, 0x77AFA1C5, 0x20756060,\n 0x85CBFE4E, 0x8AE88DD8, 0x7AAAF9B0, 0x4CF9AA7E,\n 0x1948C25C, 0x02FB8A8C, 0x01C36AE4, 0xD6EBE1F9,\n 0x90D4F869, 0xA65CDEA0, 0x3F09252D, 0xC208E69F,\n 0xB74E6132, 0xCE77E25B, 0x578FDFE3, 0x3AC372E6 ]\n ];\n\n var BLOWFISH_CTX = {\n pbox: [],\n sbox: []\n }\n\n function F(ctx, x){\n let a = (x >> 24) & 0xFF;\n let b = (x >> 16) & 0xFF;\n let c = (x >> 8) & 0xFF;\n let d = x & 0xFF;\n\n let y = ctx.sbox[0][a] + ctx.sbox[1][b];\n y = y ^ ctx.sbox[2][c];\n y = y + ctx.sbox[3][d];\n\n return y;\n }\n\n function BlowFish_Encrypt(ctx, left, right){\n let Xl = left;\n let Xr = right;\n let temp;\n\n for(let i = 0; i < N; ++i){\n Xl = Xl ^ ctx.pbox[i];\n Xr = F(ctx, Xl) ^ Xr;\n\n temp = Xl;\n Xl = Xr;\n Xr = temp;\n }\n\n temp = Xl;\n Xl = Xr;\n Xr = temp;\n\n Xr = Xr ^ ctx.pbox[N];\n Xl = Xl ^ ctx.pbox[N + 1];\n\n return {left: Xl, right: Xr};\n }\n\n function BlowFish_Decrypt(ctx, left, right){\n let Xl = left;\n let Xr = right;\n let temp;\n\n for(let i = N + 1; i > 1; --i){\n Xl = Xl ^ ctx.pbox[i];\n Xr = F(ctx, Xl) ^ Xr;\n\n temp = Xl;\n Xl = Xr;\n Xr = temp;\n }\n\n temp = Xl;\n Xl = Xr;\n Xr = temp;\n\n Xr = Xr ^ ctx.pbox[1];\n Xl = Xl ^ ctx.pbox[0];\n\n return {left: Xl, right: Xr};\n }\n\n /**\n * Initialization ctx's pbox and sbox.\n *\n * @param {Object} ctx The object has pbox and sbox.\n * @param {Array} key An array of 32-bit words.\n * @param {int} keysize The length of the key.\n *\n * @example\n *\n * BlowFishInit(BLOWFISH_CTX, key, 128/32);\n */\n function BlowFishInit(ctx, key, keysize)\n {\n for(let Row = 0; Row < 4; Row++)\n {\n ctx.sbox[Row] = [];\n for(let Col = 0; Col < 256; Col++)\n {\n ctx.sbox[Row][Col] = ORIG_S[Row][Col];\n }\n }\n\n let keyIndex = 0;\n for(let index = 0; index < N + 2; index++)\n {\n ctx.pbox[index] = ORIG_P[index] ^ key[keyIndex];\n keyIndex++;\n if(keyIndex >= keysize)\n {\n keyIndex = 0;\n }\n }\n\n let Data1 = 0;\n let Data2 = 0;\n let res = 0;\n for(let i = 0; i < N + 2; i += 2)\n {\n res = BlowFish_Encrypt(ctx, Data1, Data2);\n Data1 = res.left;\n Data2 = res.right;\n ctx.pbox[i] = Data1;\n ctx.pbox[i + 1] = Data2;\n }\n\n for(let i = 0; i < 4; i++)\n {\n for(let j = 0; j < 256; j += 2)\n {\n res = BlowFish_Encrypt(ctx, Data1, Data2);\n Data1 = res.left;\n Data2 = res.right;\n ctx.sbox[i][j] = Data1;\n ctx.sbox[i][j + 1] = Data2;\n }\n }\n\n return true;\n }\n\n /**\n * Blowfish block cipher algorithm.\n */\n var Blowfish = C_algo.Blowfish = BlockCipher.extend({\n _doReset: function () {\n // Skip reset of nRounds has been set before and key did not change\n if (this._keyPriorReset === this._key) {\n return;\n }\n\n // Shortcuts\n var key = this._keyPriorReset = this._key;\n var keyWords = key.words;\n var keySize = key.sigBytes / 4;\n\n //Initialization pbox and sbox\n BlowFishInit(BLOWFISH_CTX, keyWords, keySize);\n },\n\n encryptBlock: function (M, offset) {\n var res = BlowFish_Encrypt(BLOWFISH_CTX, M[offset], M[offset + 1]);\n M[offset] = res.left;\n M[offset + 1] = res.right;\n },\n\n decryptBlock: function (M, offset) {\n var res = BlowFish_Decrypt(BLOWFISH_CTX, M[offset], M[offset + 1]);\n M[offset] = res.left;\n M[offset + 1] = res.right;\n },\n\n blockSize: 64/32,\n\n keySize: 128/32,\n\n ivSize: 64/32\n });\n\n /**\n * Shortcut functions to the cipher's object interface.\n *\n * @example\n *\n * var ciphertext = CryptoJS.Blowfish.encrypt(message, key, cfg);\n * var plaintext = CryptoJS.Blowfish.decrypt(ciphertext, key, cfg);\n */\n C.Blowfish = BlockCipher._createHelper(Blowfish);\n }());\n\n\n return CryptoJS;\n\n}));", jv = /* @__PURE__ */ new Set(/* @__PURE__ */ "Array.Atomics.BigInt.Boolean.DataView.Date.Error.EvalError.Infinity.JSON.Map.Math.NaN.Number.Object.Promise.Proxy.RangeError.ReferenceError.Reflect.RegExp.Set.String.Symbol.SyntaxError.TypeError.URIError.WeakMap.WeakSet.decodeURI.decodeURIComponent.encodeURI.encodeURIComponent.escape.isFinite.isNaN.parseFloat.parseInt.undefined.unescape.btoa.atob.fetch.setTimeout.console.CryptoJS.AggregateError.ArrayBuffer.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Uint16Array.Int32Array.Uint32Array.Float32Array.Float64Array.BigInt64Array.BigUint64Array.Intl.URL.URLSearchParams.TextEncoder.TextDecoder.crypto.Headers.Request.Response.AbortController.AbortSignal.FormData.Blob.clearTimeout.setInterval.clearInterval.queueMicrotask.structuredClone.performance".split(".")), Mv = (e, t = 0) => {
let n = e?.match(/<anonymous>:(\d+):(\d+)/);
return n ? {
line: Number(n[1]) - 3,
column: Number(n[2]) - t
} : {};
}, Nv = 3e4, Pv = (e) => e === null || [
"string",
"number",
"boolean"
].includes(typeof e), Fv = (e) => {
if (typeof e == "string") return e;
try {
return String(e);
} catch {
return Object.prototype.toString.call(e);
}
}, Iv = (e, t) => {
let n = /* @__PURE__ */ new Set();
for (let r of e) /^[A-Za-z_$][\w$]*$/.test(r) && !t.has(r) && n.add(r);
return n.add("window"), Array.from(n);
}, Lv = () => {
let [e, t] = H(!1), [n, r] = H({}), i = V(void 0), a = R((e) => {
let t = i.current;
i.current = void 0, t?.(e);
}, []);
return {
isPreflightPromptModalOpen: e,
setIsPreflightPromptModalOpen: t,
preflightPromptModalProps: n,
openPreflightPromptModal: R((e) => {
a(null), i.current = e.onSubmit, r({
title: e.title,
description: e.description,
placeholder: e.placeholder,
defaultValue: e.defaultValue,
onSubmit: a
}), setTimeout(() => {
t(!0);
}, 200);
}, [a]),
closePreflightPromptModal: R(() => {
a(null), t(!1);
}, [a])
};
}, Rv = (e) => {
let [t, n] = H(e.defaultPreflight ?? null), [r, i] = H(() => e.defaultPreflight?.lastTestResult?.logs ?? []), [a, o] = H(0), s = V(/* @__PURE__ */ new Set()), c = R((t) => {
n(t), e.onPreflightChange?.(t);
}, [e]), { openPreflightPromptModal: l, closePreflightPromptModal: u } = e, d = R(async (t, n, r) => {
let a = new AbortController();
s.current.add(a), o(s.current.size);
try {
return await zv(t, e.envApi?.env ?? { variables: {} }, l ? (e, t, n) => new Promise((r) => l({
title: e,
defaultValue: t,
placeholder: n?.placeholder,
description: n?.description,
onSubmit: r
})) : void 0, n, r, {
signal: a.signal,
onLog: (e) => i((t) => [...t, e])
});
} finally {
s.current.delete(a), o(s.current.size);
}
}, [e.envApi.env, l]), f = R(async (e, n) => t?.enabled ? d(t.script, e, n) : null, [t, d]), p = R(async (e, n) => d(t?.script ?? "", e, n), [t?.script, d]), m = R(() => {
for (let e of s.current) e.abort();
s.current.clear(), o(0), u?.();
}, [u]), h = R(() => {
i([]);
}, []), g = R((r) => {
n({
...t ?? {
script: "",
enabled: !0
},
lastTestResult: r
}), e.onPreflightChange?.({
...t ?? {
script: "",
enabled: !0
},
lastTestResult: r
});
}, [t, e]);
return {
preflight: t,
preflightLogs: r,
isPreflightRunning: a > 0,
setPreflight: c,
runPreflight: f,
testPreflight: p,
abortPreflight: m,
clearPreflightLogs: h,
setLastTestResult: g
};
};
async function zv(e, t, n, r = [], i = {}, a) {
let o = r.filter((e) => e.preflight?.lab?.object).map((e) => e.preflight?.lab?.object);
return new Promise((s) => {
let c = new Blob([Av.replace("}(this, function () {", "}(self, function () {"), `
const env = {
variables: ${JSON.stringify(t?.variables)} || {},
};
let promptResolve = null;
// Declared out here because the catch below needs it too, and a const inside the try
// would be out of scope exactly when a script has just failed.
const readLineAndColumn = ${Mv.toString()};
const toLogText = ${Fv.toString()};
const blockedGlobalNames = ${Iv.toString()};
const allowedGlobals = new Set(${JSON.stringify(Array.from(jv))});
self.onmessage = async (event) => {
if (event.data.type === 'prompt:result') {
promptResolve?.(event.data.value || null);
}
if (event.data.type === 'init') {
try {
// 'console.'.length: the reported column points at the member, not the statement.
const postLog = (level) => (...args) => {
self.postMessage({
type: 'log',
level,
message: args.map(toLogText),
...readLineAndColumn(new Error().stack, 8),
});
};
self.console = {
log: postLog('log'),
warn: postLog('warn'),
error: postLog('error'),
info: postLog('info'),
};
let state = ${JSON.stringify(i)};
const setState = (id, newState) => {
Object.assign(state[id] ?? {}, newState);
};
const isValidEnvValue = ${Pv.toString()};
const lab = Object.freeze({
CryptoJS,
environment: {
get: (key) => env.variables[key],
set: (key, value) => {
if (!isValidEnvValue(value)) {
console.warn(
'lab.environment stores strings, numbers, booleans and null. The value for "' + key + '" was dropped.'
);
// Dropping the key too, so an older value can't survive under a name the
// script believes it just overwrote.
delete env.variables[key];
return;
}
env.variables[key] = value;
},
delete: (key) => {
delete env.variables[key];
}
},
request: {
headers: new Headers()
},
prompt: (title, defaultValue, options) => {
return new Promise((resolve) => {
promptResolve = resolve;
self.postMessage({ type: 'prompt', title, defaultValue, options: options ?? {} });
});
},
plugins: {
${o.map((e) => e?.toString()).map((e) => e?.startsWith("object") ? `function${e.slice(6)}` : e).map((e, t) => `
...(${e})(${JSON.stringify(r[t].preflight?.lab?.props ?? {})}, state['${r[t].id}'] ?? {}, (newState) => setState('${r[t].id}', newState))
`).join(",")}
}
});
// for...in adds the enumerable worker members on the prototype chain.
const globalNames = Object.getOwnPropertyNames(globalThis);
for (const name in globalThis) {
globalNames.push(name);
}
const blockedGlobals = blockedGlobalNames(globalNames, allowedGlobals);
// call('undefined'): sloppy mode would otherwise make this the worker scope.
// The script sits on its own line so reported lines map back by a fixed offset.
const AsyncFunction = async function () {}.constructor;
await new AsyncFunction('lab', 'CryptoJS', ...blockedGlobals, 'with(lab){\\n' + event.data.script + '\\n}').call('undefined', lab, CryptoJS);
self.postMessage({ type: 'result', env: env, headers: Object.fromEntries(lab.request.headers.entries()), pluginsState: state });
} catch (err) {
const message = err && err.message ? err.message : toLogText(err);
self.postMessage({
type: 'log',
level: 'error',
message: [message],
...readLineAndColumn(err && err.stack),
});
self.postMessage({ type: 'result', error: message });
}
}
};
`], { type: "application/javascript" }), l = [], u = {}, d = URL.createObjectURL(c), f = new Worker(d, { type: "module" }), p = !1, m = (e) => {
l.push(e), a?.onLog?.(e);
}, h, g = () => {
clearTimeout(h), h = void 0;
}, _ = () => {
g(), h = setTimeout(() => {
m({
level: "system",
message: [`Run timed out after ${Nv / 1e3} seconds.`],
createdAt: (/* @__PURE__ */ new Date()).toISOString()
}), y({
status: "error",
error: `Preflight execution timed out after ${Nv / 1e3} seconds`,
logs: l,
env: t,
headers: {},
pluginsState: i
});
}, Nv);
}, v = () => {
m({
level: "system",
message: ["Run stopped."],
createdAt: (/* @__PURE__ */ new Date()).toISOString()
}), y({
status: "error",
error: "Preflight aborted",
logs: l,
env: t,
headers: {},
pluginsState: i
});
}, y = (e) => {
p || (p = !0, g(), a?.signal?.removeEventListener("abort", v), f.terminate(), URL.revokeObjectURL(d), s(e));
};
f.onmessage = ({ data: e }) => {
e.type === "result" ? e.error ? y({
status: "error",
error: e.error,
logs: l,
env: t,
headers: {},
pluginsState: e.pluginsState ?? i
}) : (Object.keys(e.headers).length > 0 && m({
level: "system",
message: [`Headers:\n${JSON.stringify(e.headers, null, 2)}`],
createdAt: (/* @__PURE__ */ new Date()).toISOString()
}), y({
status: "success",
logs: l,
env: e.env,
headers: e.headers,
pluginsState: e.pluginsState
})) : e.type === "log" ? [
"log",
"warn",
"error",
"info"
].includes(e.level) && m({
level: e.level,
message: e.message,
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
line: e.line,
column: e.column
}) : e.type === "header" ? (u[e.name] = e.value, m({
level: "system",
message: [`Header ${e.name} set to ${e.value}`],
createdAt: (/* @__PURE__ */ new Date()).toISOString()
})) : e.type === "prompt" && (g(), (n?.(e.title, e.defaultValue, e.options) ?? Promise.resolve(null)).catch(() => null).then((e) => {
p || (_(), f.postMessage({
type: "prompt:result",
value: e
}));
}));
}, f.onerror = (e) => {
y({
status: "error",
error: e.message,
logs: l,
env: t,
headers: {},
pluginsState: i
});
}, a?.signal?.aborted ? v() : (a?.signal?.addEventListener("abort", v), _(), f.postMessage({
type: "init",
script: e
}));
});
}
// src/lib/settings.ts
var Bv = {
fetch: {
credentials: "same-origin",
timeout: 1e4,
useGETForQueries: !1
},
subscriptions: { protocol: "WS" },
introspection: {
method: "POST",
headers: "",
includeActiveOperationHeaders: !1,
pollSchema: !0
}
}, Vv = (e) => ({
fetch: {
credentials: e?.fetch?.credentials ?? Bv.fetch.credentials,
timeout: e?.fetch?.timeout ?? Bv.fetch.timeout,
useGETForQueries: e?.fetch?.useGETForQueries ?? Bv.fetch.useGETForQueries
},
subscriptions: { protocol: e?.subscriptions?.protocol ?? Bv.subscriptions.protocol },
introspection: {
method: e?.introspection?.method ?? Bv.introspection.method,
headers: e?.introspection?.headers ?? Bv.introspection.headers,
includeActiveOperationHeaders: e?.introspection?.includeActiveOperationHeaders ?? Bv.introspection.includeActiveOperationHeaders,
pollSchema: e?.introspection?.pollSchema ?? Bv.introspection.pollSchema
}
}), Hv = (e) => {
let [t, n] = H(Vv(e.defaultSettings));
return {
settings: t,
setSettings: R((t) => {
let r = Vv(t);
n(r), e.onSettingsChange?.(r);
}, [e])
};
};
// src/lib/shadow-root.ts
function Uv(e) {
return e.shadowRoot ?? e.attachShadow({ mode: "open" });
}
// src/lib/tabs.ts
var Wv = (e) => {
let [t, n] = H(e.defaultTabs ?? []), [r, i] = H(e.defaultTabs?.find((t) => t.id === e.defaultActiveTabId) ?? e.defaultTabs?.[0] ?? null), a = V(t);
a.current = t;
let o = V(r);
return o.current = r, {
activeTab: r,
setActiveTab: R((t) => {
i(t), e.onActiveTabIdChange?.(t?.id ?? null);
}, [e]),
tabs: t,
setTabs: R((t) => {
n(t), e.onTabsChange?.(t);
}, [e]),
addTab: R((r) => {
let i = {
...r,
id: Xr()
}, a = [...t ?? [], i];
return n(a), e.onTabsChange?.(a), i;
}, [t, e]),
deleteTab: R((r) => {
let i = t.filter((e) => e.id !== r);
n(i), e.onTabsChange?.(i);
}, [t, e]),
updateTab: R((r, i) => {
let a = t.map((e) => e.id === r ? {
...e,
data: i
} : e);
n(a), e.onTabsChange?.(a);
}, [t, e]),
replaceOperationId: R((t, r) => {
let s = (e) => e.type === "operation", c = (e) => s(e) && e.data.id === t ? {
...e,
data: {
...e.data,
id: r
}
} : e, l = a.current.map(c);
n(l), e.onTabsChange?.(l), o.current && i(c(o.current));
}, [e])
};
}, Gv = (e) => {
let [t, n] = H(e.defaultTests ?? []), r = V(t);
return z(() => {
r.current = t;
}, [t]), {
tests: t,
addTest: R((r) => {
let i = {
...r,
id: Xr(),
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
tasks: []
}, a = [...t, i];
return n(a), e.onTestsChange?.(a), i;
}, [t, e]),
deleteTest: R((t) => {
let i = r.current.filter((e) => e.id !== t);
n(i), e.onTestsChange?.(i);
}, [e]),
addTaskToTest: R((t, i) => {
let a = {
...i,
id: Xr(),
next: null
}, o = r.current.map((e) => e.id === t ? {
...e,
tasks: [...e.tasks, a]
} : e);
n(o), e.onTestsChange?.(o);
}, [e]),
deleteTaskFromTest: R((t, i) => {
let a = r.current.map((e) => e.id === t ? {
...e,
tasks: e.tasks.filter((e) => e.id !== i)
} : e);
n(a), e.onTestsChange?.(a);
}, [e])
};
}, Kv = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qv = ds, Jv = (e, t) => (n) => {
if (t?.variants == null) return qv(e, n?.class, n?.className);
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
let t = n?.[e], a = i?.[e];
if (t === null) return null;
let o = Kv(t) || Kv(a);
return r[e][o];
}), o = n && Object.entries(n).reduce((e, t) => {
let [n, r] = t;
return r === void 0 || (e[n] = r), e;
}, {});
return qv(e, a, t?.compoundVariants?.reduce((e, t) => {
let { class: n, className: r, ...a } = t;
return Object.entries(a).every((e) => {
let [t, n] = e;
return Array.isArray(n) ? n.includes({
...i,
...o
}[t]) : {
...i,
...o
}[t] === n;
}) ? [
...e,
n,
r
] : e;
}, []), n?.class, n?.className);
};
// ../../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
function Yv(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
function Xv(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
let r = Yv(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
typeof n == "function" ? n() : Yv(e[t], null);
}
};
};
}
function Zv(...e) {
return I.useCallback(Xv(...e), e);
}
// ../../../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
var Qv = Symbol.for("react.lazy"), $v = I.use;
function ey(e) {
return typeof e == "object" && !!e && "then" in e;
}
function ty(e) {
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === Qv && "_payload" in e && ey(e._payload);
}
// @__NO_SIDE_EFFECTS__
function ny(e) {
let t = /* @__PURE__ */ iy(e), n = I.forwardRef((e, n) => {
let { children: r, ...i } = e;
ty(r) && typeof $v == "function" && (r = $v(r._payload));
let a = I.Children.toArray(r), o = a.find(oy);
if (o) {
let e = o.props.children, r = a.map((t) => t === o ? I.Children.count(e) > 1 ? I.Children.only(null) : I.isValidElement(e) ? e.props.children : null : t);
return /* @__PURE__ */ G(t, {
...i,
ref: n,
children: I.isValidElement(e) ? I.cloneElement(e, void 0, r) : null
});
}
return /* @__PURE__ */ G(t, {
...i,
ref: n,
children: r
});
});
return n.displayName = `${e}.Slot`, n;
}
var ry = /* @__PURE__ */ ny("Slot");
// @__NO_SIDE_EFFECTS__
function iy(e) {
let t = I.forwardRef((e, t) => {
let { children: n, ...r } = e;
if (ty(n) && typeof $v == "function" && (n = $v(n._payload)), I.isValidElement(n)) {
let e = cy(n), i = sy(r, n.props);
return n.type !== I.Fragment && (i.ref = t ? Xv(t, e) : e), I.cloneElement(n, i);
}
return I.Children.count(n) > 1 ? I.Children.only(null) : null;
});
return t.displayName = `${e}.SlotClone`, t;
}
var ay = Symbol("radix.slottable");
function oy(e) {
return I.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ay;
}
function sy(e, t) {
let n = { ...t };
for (let r in t) {
let i = e[r], a = t[r];
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
let t = a(...e);
return i(...e), t;
} : i && (n[r] = i) : r === "style" ? n[r] = {
...i,
...a
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
}
return {
...e,
...n
};
}
function cy(e) {
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
}
// src/components/ui/button.tsx
var ly = Jv("cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
variants: {
variant: {
default: "bg-primary text-primary-foreground hover:bg-primary/90",
destructive: "!text-white !hover:bg-destructive/90 !focus-visible:ring-destructive/40 !bg-destructive/60",
outline: "border shadow-sm hover:text-accent-foreground bg-input/30 border-input hover:bg-input/50",
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
ghost: "hover:text-accent-foreground hover:bg-accent/50",
link: "text-primary underline-offset-4 hover:underline"
},
size: {
default: "h-9 px-4 py-2 has-[>svg]:px-3",
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
icon: "size-9",
"icon-sm": "size-8",
"icon-lg": "size-10"
}
},
defaultVariants: {
variant: "default",
size: "default"
}
}), Z = dn(({ className: e, variant: t, size: n, asChild: r = !1, ...i }, a) => /* @__PURE__ */ G(r ? ry : "button", {
ref: a,
"data-slot": "button",
className: Y(ly({
variant: t,
size: n,
className: e
})),
...i
}));
Z.displayName = "Button";
// src/components/laboratory/context.tsx
var uy = un({}), dy = () => mn(uy), fy = (e) => /* @__PURE__ */ G(uy.Provider, {
value: { ...e },
children: e.children
});
typeof window < "u" && window.document && window.document.createElement;
function Q(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
return function(r) {
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
};
}
// ../../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
function py(e, t) {
let n = I.createContext(t), r = (e) => {
let { children: t, ...r } = e, i = I.useMemo(() => r, Object.values(r));
return /* @__PURE__ */ G(n.Provider, {
value: i,
children: t
});
};
r.displayName = e + "Provider";
function i(r) {
let i = I.useContext(n);
if (i) return i;
if (t !== void 0) return t;
throw Error(`\`${r}\` must be used within \`${e}\``);
}
return [r, i];
}
function my(e, t = []) {
let n = [];
function r(t, r) {
let i = I.createContext(r), a = n.length;
n = [...n, r];
let o = (t) => {
let { scope: n, children: r, ...o } = t, s = n?.[e]?.[a] || i, c = I.useMemo(() => o, Object.values(o));
return /* @__PURE__ */ G(s.Provider, {
value: c,
children: r
});
};
o.displayName = t + "Provider";
function s(n, o) {
let s = o?.[e]?.[a] || i, c = I.useContext(s);
if (c) return c;
if (r !== void 0) return r;
throw Error(`\`${n}\` must be used within \`${t}\``);
}
return [o, s];
}
let i = () => {
let t = n.map((e) => I.createContext(e));
return function(n) {
let r = n?.[e] || t;
return I.useMemo(() => ({ [`__scope${e}`]: {
...n,
[e]: r
} }), [n, r]);
};
};
return i.scopeName = e, [r, hy(i, ...t)];
}
function hy(...e) {
let t = e[0];
if (e.length === 1) return t;
let n = () => {
let n = e.map((e) => ({
useScope: e(),
scopeName: e.scopeName
}));
return function(e) {
let r = n.reduce((t, { useScope: n, scopeName: r }) => {
let i = n(e)[`__scope${r}`];
return {
...t,
...i
};
}, {});
return I.useMemo(() => ({ [`__scope${t.scopeName}`]: r }), [r]);
};
};
return n.scopeName = t.scopeName, n;
}
// ../../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
var gy = globalThis?.document ? I.useLayoutEffect : () => {}, _y = I.useId || (() => void 0), vy = 0;
function yy(e) {
let [t, n] = I.useState(_y());
return gy(() => {
e || n((e) => e ?? String(vy++));
}, [e]), e || (t ? `radix-${t}` : "");
}
// ../../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
var by = I.useInsertionEffect || gy;
function xy({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
let [i, a, o] = Sy({
defaultProp: t,
onChange: n
}), s = e !== void 0, c = s ? e : i;
{
let t = I.useRef(e !== void 0);
I.useEffect(() => {
let e = t.current;
e !== s && console.warn(`${r} is changing from ${e ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`), t.current = s;
}, [s, r]);
}
return [c, I.useCallback((t) => {
if (s) {
let n = Cy(t) ? t(e) : t;
n !== e && o.current?.(n);
} else a(t);
}, [
s,
e,
a,
o
])];
}
function Sy({ defaultProp: e, onChange: t }) {
let [n, r] = I.useState(e), i = I.useRef(n), a = I.useRef(t);
return by(() => {
a.current = t;
}, [t]), I.useEffect(() => {
i.current !== n && (a.current?.(n), i.current = n);
}, [n, i]), [
n,
r,
a
];
}
function Cy(e) {
return typeof e == "function";
}
// ../../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
// @__NO_SIDE_EFFECTS__
function wy(e) {
let t = /* @__PURE__ */ Ty(e), n = I.forwardRef((e, n) => {
let { children: r, ...i } = e, a = I.Children.toArray(r), o = a.find(Oy);
if (o) {
let e = o.props.children, r = a.map((t) => t === o ? I.Children.count(e) > 1 ? I.Children.only(null) : I.isValidElement(e) ? e.props.children : null : t);
return /* @__PURE__ */ G(t, {
...i,
ref: n,
children: I.isValidElement(e) ? I.cloneElement(e, void 0, r) : null
});
}
return /* @__PURE__ */ G(t, {
...i,
ref: n,
children: r
});
});
return n.displayName = `${e}.Slot`, n;
}
// @__NO_SIDE_EFFECTS__
function Ty(e) {
let t = I.forwardRef((e, t) => {
let { children: n, ...r } = e;
if (I.isValidElement(n)) {
let e = Ay(n), i = ky(r, n.props);
return n.type !== I.Fragment && (i.ref = t ? Xv(t, e) : e), I.cloneElement(n, i);
}
return I.Children.count(n) > 1 ? I.Children.only(null) : null;
});
return t.displayName = `${e}.SlotClone`, t;
}
var Ey = Symbol("radix.slottable");
// @__NO_SIDE_EFFECTS__
function Dy(e) {
let t = ({ children: e }) => /* @__PURE__ */ G(Br, { children: e });
return t.displayName = `${e}.Slottable`, t.__radixId = Ey, t;
}
function Oy(e) {
return I.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ey;
}
function ky(e, t) {
let n = { ...t };
for (let r in t) {
let i = e[r], a = t[r];
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
let t = a(...e);
return i(...e), t;
} : i && (n[r] = i) : r === "style" ? n[r] = {
...i,
...a
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
}
return {
...e,
...n
};
}
function Ay(e) {
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
}
// ../../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@18.3.5_@types+react@18.3.18__@types+re_05c723466ecf3b16af602a3b7d24e522/node_modules/@radix-ui/react-primitive/dist/index.mjs
var $ = [
"a",
"button",
"div",
"form",
"h2",
"h3",
"img",
"input",
"label",
"li",
"nav",
"ol",
"p",
"select",
"span",
"svg",
"ul"
].reduce((e, t) => {
let n = /* @__PURE__ */ wy(`Primitive.${t}`), r = I.forwardRef((e, r) => {
let { asChild: i, ...a } = e, o = i ? n : t;
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ G(o, {
...a,
ref: r
});
});
return r.displayName = `Primitive.${t}`, {
...e,
[t]: r
};
}, {});
function jy(e, t) {
e && Sn.flushSync(() => e.dispatchEvent(t));
}
// ../../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
function My(e) {
let t = I.useRef(e);
return I.useEffect(() => {
t.current = e;
}), I.useMemo(() => (...e) => t.current?.(...e), []);
}
// ../../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
function Ny(e, t = globalThis?.document) {
let n = My(e);
I.useEffect(() => {
let e = (e) => {
e.key === "Escape" && n(e);
};
return t.addEventListener("keydown", e, { capture: !0 }), () => t.removeEventListener("keydown", e, { capture: !0 });
}, [n, t]);
}
// ../../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@18.3.5_@types+react@18.3.18___4890fd987701c82b7735e59de1c983a3/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
var Py = "DismissableLayer", Fy = "dismissableLayer.update", Iy = "dismissableLayer.pointerDownOutside", Ly = "dismissableLayer.focusOutside", Ry, zy = I.createContext({
layers: /* @__PURE__ */ new Set(),
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
branches: /* @__PURE__ */ new Set()
}), By = I.forwardRef((e, t) => {
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l = I.useContext(zy), [u, d] = I.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, p] = I.useState({}), m = Zv(t, (e) => d(e)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), _ = h.indexOf(g), v = u ? h.indexOf(u) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, b = v >= _, x = Uy((e) => {
let t = e.target, n = [...l.branches].some((e) => e.contains(t));
b && !n && (i?.(e), o?.(e), e.defaultPrevented || s?.());
}, f), S = Wy((e) => {
let t = e.target;
[...l.branches].some((e) => e.contains(t)) || (a?.(e), o?.(e), e.defaultPrevented || s?.());
}, f);
return Ny((e) => {
v === l.layers.size - 1 && (r?.(e), !e.defaultPrevented && s && (e.preventDefault(), s()));
}, f), I.useEffect(() => {
if (u) return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Ry = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), Gy(), () => {
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = Ry);
};
}, [
u,
f,
n,
l
]), I.useEffect(() => () => {
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), Gy());
}, [u, l]), I.useEffect(() => {
let e = () => p({});
return document.addEventListener(Fy, e), () => document.removeEventListener(Fy, e);
}, []), /* @__PURE__ */ G($.div, {
...c,
ref: m,
style: {
pointerEvents: y ? b ? "auto" : "none" : void 0,
...e.style
},
onFocusCapture: Q(e.onFocusCapture, S.onFocusCapture),
onBlurCapture: Q(e.onBlurCapture, S.onBlurCapture),
onPointerDownCapture: Q(e.onPointerDownCapture, x.onPointerDownCapture)
});
});
By.displayName = Py;
var Vy = "DismissableLayerBranch", Hy = I.forwardRef((e, t) => {
let n = I.useContext(zy), r = I.useRef(null), i = Zv(t, r);
return I.useEffect(() => {
let e = r.current;
if (e) return n.branches.add(e), () => {
n.branches.delete(e);
};
}, [n.branches]), /* @__PURE__ */ G($.div, {
...e,
ref: i
});
});
Hy.displayName = Vy;
function Uy(e, t = globalThis?.document) {
let n = My(e), r = I.useRef(!1), i = I.useRef(() => {});
return I.useEffect(() => {
let e = (e) => {
if (e.target && !r.current) {
let r = function() {
Ky(Iy, n, a, { discrete: !0 });
}, a = { originalEvent: e };
e.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = r, t.addEventListener("click", i.current, { once: !0 })) : r();
} else t.removeEventListener("click", i.current);
r.current = !1;
}, a = window.setTimeout(() => {
t.addEventListener("pointerdown", e);
}, 0);
return () => {
window.clearTimeout(a), t.removeEventListener("pointerdown", e), t.removeEventListener("click", i.current);
};
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
}
function Wy(e, t = globalThis?.document) {
let n = My(e), r = I.useRef(!1);
return I.useEffect(() => {
let e = (e) => {
e.target && !r.current && Ky(Ly, n, { originalEvent: e }, { discrete: !1 });
};
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
}, [t, n]), {
onFocusCapture: () => r.current = !0,
onBlurCapture: () => r.current = !1
};
}
function Gy() {
let e = new CustomEvent(Fy);
document.dispatchEvent(e);
}
function Ky(e, t, n, { discrete: r }) {
let i = n.originalEvent.target, a = new CustomEvent(e, {
bubbles: !1,
cancelable: !0,
detail: n
});
t && i.addEventListener(e, t, { once: !0 }), r ? jy(i, a) : i.dispatchEvent(a);
}
// ../../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@18.3.5_@types+react@18.3.18__@types+_8ddb7f967c6fca9863e2396664512c79/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
var qy = "focusScope.autoFocusOnMount", Jy = "focusScope.autoFocusOnUnmount", Yy = {
bubbles: !1,
cancelable: !0
}, Xy = "FocusScope", Zy = I.forwardRef((e, t) => {
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...o } = e, [s, c] = I.useState(null), l = My(i), u = My(a), d = I.useRef(null), f = Zv(t, (e) => c(e)), p = I.useRef({
paused: !1,
pause() {
this.paused = !0;
},
resume() {
this.paused = !1;
}
}).current;
I.useEffect(() => {
if (r) {
let e = function(e) {
if (p.paused || !s) return;
let t = e.target;
s.contains(t) ? d.current = t : ib(d.current, { select: !0 });
}, t = function(e) {
if (p.paused || !s) return;
let t = e.relatedTarget;
t !== null && (s.contains(t) || ib(d.current, { select: !0 }));
}, n = function(e) {
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && ib(s);
};
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
let r = new MutationObserver(n);
return s && r.observe(s, {
childList: !0,
subtree: !0
}), () => {
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
};
}
}, [
r,
s,
p.paused
]), I.useEffect(() => {
if (s) {
ab.add(p);
let e = document.activeElement;
if (!s.contains(e)) {
let t = new CustomEvent(qy, Yy);
s.addEventListener(qy, l), s.dispatchEvent(t), t.defaultPrevented || (Qy(cb(eb(s)), { select: !0 }), document.activeElement === e && ib(s));
}
return () => {
s.removeEventListener(qy, l), setTimeout(() => {
let t = new CustomEvent(Jy, Yy);
s.addEventListener(Jy, u), s.dispatchEvent(t), t.defaultPrevented || ib(e ?? document.body, { select: !0 }), s.removeEventListener(Jy, u), ab.remove(p);
}, 0);
};
}
}, [
s,
l,
u,
p
]);
let m = I.useCallback((e) => {
if (!n && !r || p.paused) return;
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, i = document.activeElement;
if (t && i) {
let t = e.currentTarget, [r, a] = $y(t);
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n && ib(r, { select: !0 })) : e.shiftKey && i === r && (e.preventDefault(), n && ib(a, { select: !0 })) : i === t && e.preventDefault();
}
}, [
n,
r,
p.paused
]);
return /* @__PURE__ */ G($.div, {
tabIndex: -1,
...o,
ref: f,
onKeyDown: m
});
});
Zy.displayName = Xy;
function Qy(e, { select: t = !1 } = {}) {
let n = document.activeElement;
for (let r of e) if (ib(r, { select: t }), document.activeElement !== n) return;
}
function $y(e) {
let t = eb(e);
return [tb(t, e), tb(t.reverse(), e)];
}
function eb(e) {
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
let t = e.tagName === "INPUT" && e.type === "hidden";
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
for (; n.nextNode();) t.push(n.currentNode);
return t;
}
function tb(e, t) {
for (let n of e) if (!nb(n, { upTo: t })) return n;
}
function nb(e, { upTo: t }) {
if (getComputedStyle(e).visibility === "hidden") return !0;
for (; e;) {
if (t !== void 0 && e === t) return !1;
if (getComputedStyle(e).display === "none") return !0;
e = e.parentElement;
}
return !1;
}
function rb(e) {
return e instanceof HTMLInputElement && "select" in e;
}
function ib(e, { select: t = !1 } = {}) {
if (e && e.focus) {
let n = document.activeElement;
e.focus({ preventScroll: !0 }), e !== n && rb(e) && t && e.select();
}
}
var ab = ob();
function ob() {
let e = [];
return {
add(t) {
let n = e[0];
t !== n && n?.pause(), e = sb(e, t), e.unshift(t);
},
remove(t) {
e = sb(e, t), e[0]?.resume();
}
};
}
function sb(e, t) {
let n = [...e], r = n.indexOf(t);
return r !== -1 && n.splice(r, 1), n;
}
function cb(e) {
return e.filter((e) => e.tagName !== "A");
}
// ../../../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@18.3.5_@types+react@18.3.18__@types+react_b1193311eef72a38fbee911bc6654697/node_modules/@radix-ui/react-portal/dist/index.mjs
var lb = "Portal", ub = I.forwardRef((e, t) => {
let { container: n, ...r } = e, [i, a] = I.useState(!1);
gy(() => a(!0), []);
let o = n || i && globalThis?.document?.body;
return o ? Cn.createPortal(/* @__PURE__ */ G($.div, {
...r,
ref: t
}), o) : null;
});
ub.displayName = lb;
// ../../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@18.3.5_@types+react@18.3.18__@types+rea_8e9833e895c2a9c58c097a3d3806aa20/node_modules/@radix-ui/react-presence/dist/index.mjs
function db(e, t) {
return I.useReducer((e, n) => t[e][n] ?? e, e);
}
var fb = (e) => {
let { present: t, children: n } = e, r = pb(t), i = typeof n == "function" ? n({ present: r.isPresent }) : I.Children.only(n), a = Zv(r.ref, hb(i));
return typeof n == "function" || r.isPresent ? I.cloneElement(i, { ref: a }) : null;
};
fb.displayName = "Presence";
function pb(e) {
let [t, n] = I.useState(), r = I.useRef(null), i = I.useRef(e), a = I.useRef("none"), [o, s] = db(e ? "mounted" : "unmounted", {
mounted: {
UNMOUNT: "unmounted",
ANIMATION_OUT: "unmountSuspended"
},
unmountSuspended: {
MOUNT: "mounted",
ANIMATION_END: "unmounted"
},
unmounted: { MOUNT: "mounted" }
});
return I.useEffect(() => {
let e = mb(r.current);
a.current = o === "mounted" ? e : "none";
}, [o]), gy(() => {
let t = r.current, n = i.current;
if (n !== e) {
let r = a.current, o = mb(t);
e ? s("MOUNT") : o === "none" || t?.display === "none" ? s("UNMOUNT") : s(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
}
}, [e, s]), gy(() => {
if (t) {
let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
let o = mb(r.current).includes(CSS.escape(a.animationName));
if (a.target === t && o && (s("ANIMATION_END"), !i.current)) {
let r = t.style.animationFillMode;
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = r);
});
}
}, c = (e) => {
e.target === t && (a.current = mb(r.current));
};
return t.addEventListener("animationstart", c), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
n.clearTimeout(e), t.removeEventListener("animationstart", c), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
};
}
s("ANIMATION_END");
}, [t, s]), {
isPresent: ["mounted", "unmountSuspended"].includes(o),
ref: I.useCallback((e) => {
r.current = e ? getComputedStyle(e) : null, n(e);
}, [])
};
}
function mb(e) {
return e?.animationName || "none";
}
function hb(e) {
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
}
// ../../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
var gb = 0;
function _b() {
I.useEffect(() => {
let e = document.querySelectorAll("[data-radix-focus-guard]");
return document.body.insertAdjacentElement("afterbegin", e[0] ?? vb()), document.body.insertAdjacentElement("beforeend", e[1] ?? vb()), gb++, () => {
gb === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), gb--;
};
}, []);
}
function vb() {
let e = document.createElement("span");
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
}
// ../../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
var yb = "right-scroll-bar-position", bb = "width-before-scroll-bar", xb = "with-scroll-bars-hidden", Sb = "--removed-body-scroll-bar-size";
// ../../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js
function Cb(e, t) {
return typeof e == "function" ? e(t) : e && (e.current = t), e;
}
// ../../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js
function wb(e, t) {
var n = H(function() {
return {
value: e,
callback: t,
facade: {
get current() {
return n.value;
},
set current(e) {
var t = n.value;
t !== e && (n.value = e, n.callback(e, t));
}
}
};
})[0];
return n.callback = t, n.facade;
}
// ../../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
var Tb = typeof window < "u" ? I.useLayoutEffect : I.useEffect, Eb = /* @__PURE__ */ new WeakMap();
function Db(e, t) {
var n = wb(t || null, function(t) {
return e.forEach(function(e) {
return Cb(e, t);
});
});
return Tb(function() {
var t = Eb.get(n);
if (t) {
var r = new Set(t), i = new Set(e), a = n.current;
r.forEach(function(e) {
i.has(e) || Cb(e, null);
}), i.forEach(function(e) {
r.has(e) || Cb(e, a);
});
}
Eb.set(n, e);
}, [e]), n;
}
// ../../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js
function Ob(e) {
return e;
}
function kb(e, t) {
t === void 0 && (t = Ob);
var n = [], r = !1;
return {
read: function() {
if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
return n.length ? n[n.length - 1] : e;
},
useMedium: function(e) {
var i = t(e, r);
return n.push(i), function() {
n = n.filter(function(e) {
return e !== i;
});
};
},
assignSyncMedium: function(e) {
for (r = !0; n.length;) {
var t = n;
n = [], t.forEach(e);
}
n = {
push: function(t) {
return e(t);
},
filter: function() {
return n;
}
};
},
assignMedium: function(e) {
r = !0;
var t = [];
if (n.length) {
var i = n;
n = [], i.forEach(e), t = n;
}
var a = function() {
var n = t;
t = [], n.forEach(e);
}, o = function() {
return Promise.resolve().then(a);
};
o(), n = {
push: function(e) {
t.push(e), o();
},
filter: function(e) {
return t = t.filter(e), n;
}
};
}
};
}
function Ab(e) {
e === void 0 && (e = {});
var t = kb(null);
return t.options = Vr({
async: !0,
ssr: !1
}, e), t;
}
// ../../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js
var jb = function(e) {
var t = e.sideCar, n = Hr(e, ["sideCar"]);
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
var r = t.read();
if (!r) throw Error("Sidecar medium not found");
return I.createElement(r, Vr({}, n));
};
jb.isSideCarExport = !0;
function Mb(e, t) {
return e.useMedium(t), jb;
}
// ../../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js
var Nb = Ab(), Pb = function() {}, Fb = I.forwardRef(function(e, t) {
var n = I.useRef(null), r = I.useState({
onScrollCapture: Pb,
onWheelCapture: Pb,
onTouchMoveCapture: Pb
}), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, y = e.gapMode, b = Hr(e, [
"forwardProps",
"children",
"className",
"removeScrollBar",
"enabled",
"shards",
"sideCar",
"noRelative",
"noIsolation",
"inert",
"allowPinchZoom",
"as",
"gapMode"
]), x = f, S = Db([n, t]), C = Vr(Vr({}, b), i);
return I.createElement(I.Fragment, null, u && I.createElement(x, {
sideCar: Nb,
removeScrollBar: l,
shards: d,
noRelative: p,
noIsolation: m,
inert: h,
setCallbacks: a,
allowPinchZoom: !!g,
lockRef: n,
gapMode: y
}), o ? I.cloneElement(I.Children.only(s), Vr(Vr({}, C), { ref: S })) : I.createElement(v, Vr({}, C, {
className: c,
ref: S
}), s));
});
Fb.defaultProps = {
enabled: !0,
removeScrollBar: !0,
inert: !1
}, Fb.classNames = {
fullWidth: bb,
zeroRight: yb
};
// ../../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
var Ib = function() {
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
};
// ../../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js
function Lb() {
if (!document) return null;
var e = document.createElement("style");
e.type = "text/css";
var t = Ib();
return t && e.setAttribute("nonce", t), e;
}
function Rb(e, t) {
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
}
function zb(e) {
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
}
var Bb = function() {
var e = 0, t = null;
return {
add: function(n) {
e == 0 && (t = Lb()) && (Rb(t, n), zb(t)), e++;
},
remove: function() {
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
}
};
}, Vb = function() {
var e = Bb();
return function(t, n) {
I.useEffect(function() {
return e.add(t), function() {
e.remove();
};
}, [t && n]);
};
}, Hb = function() {
var e = Vb();
return function(t) {
var n = t.styles, r = t.dynamic;
return e(n, r), null;
};
}, Ub = {
left: 0,
top: 0,
right: 0,
gap: 0
}, Wb = function(e) {
return parseInt(e || "", 10) || 0;
}, Gb = function(e) {
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
return [
Wb(n),
Wb(r),
Wb(i)
];
}, Kb = function(e) {
if (e === void 0 && (e = "margin"), typeof window > "u") return Ub;
var t = Gb(e), n = document.documentElement.clientWidth, r = window.innerWidth;
return {
left: t[0],
top: t[1],
right: t[2],
gap: Math.max(0, r - n + t[2] - t[0])
};
}, qb = Hb(), Jb = "data-scroll-locked", Yb = function(e, t, n, r) {
var i = e.left, a = e.top, o = e.right, s = e.gap;
return n === void 0 && (n = "margin"), `
.${xb} {
overflow: hidden ${r};
padding-right: ${s}px ${r};
}
body[${Jb}] {
overflow: hidden ${r};
overscroll-behavior: contain;
${[
t && `position: relative ${r};`,
n === "margin" && `
padding-left: ${i}px;
padding-top: ${a}px;
padding-right: ${o}px;
margin-left:0;
margin-top:0;
margin-right: ${s}px ${r};
`,
n === "padding" && `padding-right: ${s}px ${r};`
].filter(Boolean).join("")}
}
.${yb} {
right: ${s}px ${r};
}
.${bb} {
margin-right: ${s}px ${r};
}
.${yb} .${yb} {
right: 0 ${r};
}
.${bb} .${bb} {
margin-right: 0 ${r};
}
body[${Jb}] {
${Sb}: ${s}px;
}
`;
}, Xb = function() {
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
return isFinite(e) ? e : 0;
}, Zb = function() {
I.useEffect(function() {
return document.body.setAttribute(Jb, (Xb() + 1).toString()), function() {
var e = Xb() - 1;
e <= 0 ? document.body.removeAttribute(Jb) : document.body.setAttribute(Jb, e.toString());
};
}, []);
}, Qb = function(e) {
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
Zb();
var a = I.useMemo(function() {
return Kb(i);
}, [i]);
return I.createElement(qb, { styles: Yb(a, !t, i, n ? "" : "!important") });
}, $b = !1;
if (typeof window < "u") try {
var ex = Object.defineProperty({}, "passive", { get: function() {
return $b = !0, !0;
} });
window.addEventListener("test", ex, ex), window.removeEventListener("test", ex, ex);
} catch {
$b = !1;
}
var tx = $b ? { passive: !1 } : !1, nx = function(e) {
return e.tagName === "TEXTAREA";
}, rx = function(e, t) {
if (!(e instanceof Element)) return !1;
var n = window.getComputedStyle(e);
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !nx(e) && n[t] === "visible");
}, ix = function(e) {
return rx(e, "overflowY");
}, ax = function(e) {
return rx(e, "overflowX");
}, ox = function(e, t) {
var n = t.ownerDocument, r = t;
do {
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), lx(e, r)) {
var i = ux(e, r);
if (i[1] > i[2]) return !0;
}
r = r.parentNode;
} while (r && r !== n.body);
return !1;
}, sx = function(e) {
return [
e.scrollTop,
e.scrollHeight,
e.clientHeight
];
}, cx = function(e) {
return [
e.scrollLeft,
e.scrollWidth,
e.clientWidth
];
}, lx = function(e, t) {
return e === "v" ? ix(t) : ax(t);
}, ux = function(e, t) {
return e === "v" ? sx(t) : cx(t);
}, dx = function(e, t) {
return e === "h" && t === "rtl" ? -1 : 1;
}, fx = function(e, t, n, r, i) {
var a = dx(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
do {
if (!s) break;
var p = ux(e, s), m = p[0], h = p[1] - p[2] - a * m;
(m || h) && lx(e, s) && (d += h, f += m);
var g = s.parentNode;
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
}, px = function(e) {
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
}, mx = function(e) {
return [e.deltaX, e.deltaY];
}, hx = function(e) {
return e && "current" in e ? e.current : e;
}, gx = function(e, t) {
return e[0] === t[0] && e[1] === t[1];
}, _x = function(e) {
return `
.block-interactivity-${e} {pointer-events: none;}
.allow-interactivity-${e} {pointer-events: all;}
`;
}, vx = 0, yx = [];
function bx(e) {
var t = I.useRef([]), n = I.useRef([0, 0]), r = I.useRef(), i = I.useState(vx++)[0], a = I.useState(Hb)[0], o = I.useRef(e);
I.useEffect(function() {
o.current = e;
}, [e]), I.useEffect(function() {
if (e.inert) {
document.body.classList.add(`block-interactivity-${i}`);
var t = Ur([e.lockRef.current], (e.shards || []).map(hx), !0).filter(Boolean);
return t.forEach(function(e) {
return e.classList.add(`allow-interactivity-${i}`);
}), function() {
document.body.classList.remove(`block-interactivity-${i}`), t.forEach(function(e) {
return e.classList.remove(`allow-interactivity-${i}`);
});
};
}
}, [
e.inert,
e.lockRef.current,
e.shards
]);
var s = I.useCallback(function(e, t) {
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
var i = px(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
if ("touches" in e && d === "h" && u.type === "range") return !1;
var f = window.getSelection(), p = f && f.anchorNode;
if (p && (p === u || p.contains(u))) return !1;
var m = ox(d, u);
if (!m) return !0;
if (m ? l = d : (l = d === "v" ? "h" : "v", m = ox(d, u)), !m) return !1;
if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
var h = r.current || l;
return fx(h, t, e, h === "h" ? s : c, !0);
}, []), c = I.useCallback(function(e) {
var n = e;
if (yx.length && yx[yx.length - 1] === a) {
var r = "deltaY" in n ? mx(n) : px(n), i = t.current.filter(function(e) {
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && gx(e.delta, r);
})[0];
if (i && i.should) n.cancelable && n.preventDefault();
else if (!i) {
var c = (o.current.shards || []).map(hx).filter(Boolean).filter(function(e) {
return e.contains(n.target);
});
(c.length > 0 ? s(n, c[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
}
}
}, []), l = I.useCallback(function(e, n, r, i) {
var a = {
name: e,
delta: n,
target: r,
should: i,
shadowParent: xx(r)
};
t.current.push(a), setTimeout(function() {
t.current = t.current.filter(function(e) {
return e !== a;
});
}, 1);
}, []), u = I.useCallback(function(e) {
n.current = px(e), r.current = void 0;
}, []), d = I.useCallback(function(t) {
l(t.type, mx(t), t.target, s(t, e.lockRef.current));
}, []), f = I.useCallback(function(t) {
l(t.type, px(t), t.target, s(t, e.lockRef.current));
}, []);
I.useEffect(function() {
return yx.push(a), e.setCallbacks({
onScrollCapture: d,
onWheelCapture: d,
onTouchMoveCapture: f
}), document.addEventListener("wheel", c, tx), document.addEventListener("touchmove", c, tx), document.addEventListener("touchstart", u, tx), function() {
yx = yx.filter(function(e) {
return e !== a;
}), document.removeEventListener("wheel", c, tx), document.removeEventListener("touchmove", c, tx), document.removeEventListener("touchstart", u, tx);
};
}, []);
var p = e.removeScrollBar, m = e.inert;
return I.createElement(I.Fragment, null, m ? I.createElement(a, { styles: _x(i) }) : null, p ? I.createElement(Qb, {
noRelative: e.noRelative,
gapMode: e.gapMode
}) : null);
}
function xx(e) {
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
return t;
}
// ../../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js
var Sx = Mb(Nb, bx), Cx = I.forwardRef(function(e, t) {
return I.createElement(Fb, Vr({}, e, {
ref: t,
sideCar: Sx
}));
});
Cx.classNames = Fb.classNames;
// ../../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
var wx = function(e) {
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
}, Tx = /* @__PURE__ */ new WeakMap(), Ex = /* @__PURE__ */ new WeakMap(), Dx = {}, Ox = 0, kx = function(e) {
return e && (e.host || kx(e.parentNode));
}, Ax = function(e, t) {
return t.map(function(t) {
if (e.contains(t)) return t;
var n = kx(t);
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
}).filter(function(e) {
return !!e;
});
}, jx = function(e, t, n, r) {
var i = Ax(t, Array.isArray(e) ? e : [e]);
Dx[n] || (Dx[n] = /* @__PURE__ */ new WeakMap());
var a = Dx[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
e && !s.has(e) && (s.add(e), l(e.parentNode));
};
i.forEach(l);
var u = function(e) {
e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
if (s.has(e)) u(e);
else try {
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Tx.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
Tx.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Ex.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
} catch (t) {
console.error("aria-hidden: cannot operate on ", e, t);
}
});
};
return u(t), s.clear(), Ox++, function() {
o.forEach(function(e) {
var t = Tx.get(e) - 1, i = a.get(e) - 1;
Tx.set(e, t), a.set(e, i), t || (Ex.has(e) || e.removeAttribute(r), Ex.delete(e)), i || e.removeAttribute(n);
}), Ox--, Ox || (Tx = /* @__PURE__ */ new WeakMap(), Tx = /* @__PURE__ */ new WeakMap(), Ex = /* @__PURE__ */ new WeakMap(), Dx = {});
};
}, Mx = function(e, t, n) {
n === void 0 && (n = "data-aria-hidden");
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || wx(e);
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), jx(r, i, n, "aria-hidden")) : function() {
return null;
};
}, Nx = "Dialog", [Px, Fx] = my(Nx), [Ix, Lx] = Px(Nx), Rx = (e) => {
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = I.useRef(null), c = I.useRef(null), [l, u] = xy({
prop: r,
defaultProp: i ?? !1,
onChange: a,
caller: Nx
});
return /* @__PURE__ */ G(Ix, {
scope: t,
triggerRef: s,
contentRef: c,
contentId: yy(),
titleId: yy(),
descriptionId: yy(),
open: l,
onOpenChange: u,
onOpenToggle: I.useCallback(() => u((e) => !e), [u]),
modal: o,
children: n
});
};
Rx.displayName = Nx;
var zx = "DialogTrigger", Bx = I.forwardRef((e, t) => {
let { __scopeDialog: n, ...r } = e, i = Lx(zx, n), a = Zv(t, i.triggerRef);
return /* @__PURE__ */ G($.button, {
type: "button",
"aria-haspopup": "dialog",
"aria-expanded": i.open,
"aria-controls": i.contentId,
"data-state": oS(i.open),
...r,
ref: a,
onClick: Q(e.onClick, i.onOpenToggle)
});
});
Bx.displayName = zx;
var Vx = "DialogPortal", [Hx, Ux] = Px(Vx, { forceMount: void 0 }), Wx = (e) => {
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = Lx(Vx, t);
return /* @__PURE__ */ G(Hx, {
scope: t,
forceMount: n,
children: I.Children.map(r, (e) => /* @__PURE__ */ G(fb, {
present: n || a.open,
children: /* @__PURE__ */ G(ub, {
asChild: !0,
container: i,
children: e
})
}))
});
};
Wx.displayName = Vx;
var Gx = "DialogOverlay", Kx = I.forwardRef((e, t) => {
let n = Ux(Gx, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = Lx(Gx, e.__scopeDialog);
return a.modal ? /* @__PURE__ */ G(fb, {
present: r || a.open,
children: /* @__PURE__ */ G(Jx, {
...i,
ref: t
})
}) : null;
});
Kx.displayName = Gx;
var qx = /* @__PURE__ */ wy("DialogOverlay.RemoveScroll"), Jx = I.forwardRef((e, t) => {
let { __scopeDialog: n, ...r } = e, i = Lx(Gx, n);
return /* @__PURE__ */ G(Cx, {
as: qx,
allowPinchZoom: !0,
shards: [i.contentRef],
children: /* @__PURE__ */ G($.div, {
"data-state": oS(i.open),
...r,
ref: t,
style: {
pointerEvents: "auto",
...r.style
}
})
});
}), Yx = "DialogContent", Xx = I.forwardRef((e, t) => {
let n = Ux(Yx, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = Lx(Yx, e.__scopeDialog);
return /* @__PURE__ */ G(fb, {
present: r || a.open,
children: a.modal ? /* @__PURE__ */ G(Zx, {
...i,
ref: t
}) : /* @__PURE__ */ G(Qx, {
...i,
ref: t
})
});
});
Xx.displayName = Yx;
var Zx = I.forwardRef((e, t) => {
let n = Lx(Yx, e.__scopeDialog), r = I.useRef(null), i = Zv(t, n.contentRef, r);
return I.useEffect(() => {
let e = r.current;
if (e) return Mx(e);
}, []), /* @__PURE__ */ G($x, {
...e,
ref: i,
trapFocus: n.open,
disableOutsidePointerEvents: !0,
onCloseAutoFocus: Q(e.onCloseAutoFocus, (e) => {
e.preventDefault(), n.triggerRef.current?.focus();
}),
onPointerDownOutside: Q(e.onPointerDownOutside, (e) => {
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
(t.button === 2 || n) && e.preventDefault();
}),
onFocusOutside: Q(e.onFocusOutside, (e) => e.preventDefault())
});
}), Qx = I.forwardRef((e, t) => {
let n = Lx(Yx, e.__scopeDialog), r = I.useRef(!1), i = I.useRef(!1);
return /* @__PURE__ */ G($x, {
...e,
ref: t,
trapFocus: !1,
disableOutsidePointerEvents: !1,
onCloseAutoFocus: (t) => {
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
},
onInteractOutside: (t) => {
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
let a = t.target;
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
}
});
}), $x = I.forwardRef((e, t) => {
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = Lx(Yx, n), c = I.useRef(null), l = Zv(t, c);
return _b(), /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G(Zy, {
asChild: !0,
loop: !0,
trapped: r,
onMountAutoFocus: i,
onUnmountAutoFocus: a,
children: /* @__PURE__ */ G(By, {
role: "dialog",
id: s.contentId,
"aria-describedby": s.descriptionId,
"aria-labelledby": s.titleId,
"data-state": oS(s.open),
...o,
ref: l,
onDismiss: () => s.onOpenChange(!1)
})
}), /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G(uS, { titleId: s.titleId }), /* @__PURE__ */ G(fS, {
contentRef: c,
descriptionId: s.descriptionId
})] })] });
}), eS = "DialogTitle", tS = I.forwardRef((e, t) => {
let { __scopeDialog: n, ...r } = e, i = Lx(eS, n);
return /* @__PURE__ */ G($.h2, {
id: i.titleId,
...r,
ref: t
});
});
tS.displayName = eS;
var nS = "DialogDescription", rS = I.forwardRef((e, t) => {
let { __scopeDialog: n, ...r } = e, i = Lx(nS, n);
return /* @__PURE__ */ G($.p, {
id: i.descriptionId,
...r,
ref: t
});
});
rS.displayName = nS;
var iS = "DialogClose", aS = I.forwardRef((e, t) => {
let { __scopeDialog: n, ...r } = e, i = Lx(iS, n);
return /* @__PURE__ */ G($.button, {
type: "button",
...r,
ref: t,
onClick: Q(e.onClick, () => i.onOpenChange(!1))
});
});
aS.displayName = iS;
function oS(e) {
return e ? "open" : "closed";
}
var sS = "DialogTitleWarning", [cS, lS] = py(sS, {
contentName: Yx,
titleName: eS,
docsSlug: "dialog"
}), uS = ({ titleId: e }) => {
let t = lS(sS), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
return I.useEffect(() => {
e && (document.getElementById(e) || console.error(n));
}, [n, e]), null;
}, dS = "DialogDescriptionWarning", fS = ({ contentRef: e, descriptionId: t }) => {
let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lS(dS).contentName}}.`;
return I.useEffect(() => {
let r = e.current?.getAttribute("aria-describedby");
t && r && (document.getElementById(t) || console.warn(n));
}, [
n,
e,
t
]), null;
}, pS = Rx, mS = Bx, hS = Wx, gS = Kx, _S = Xx, vS = tS, yS = rS, bS = aS;
// src/components/ui/dialog.tsx
function xS({ ...e }) {
return /* @__PURE__ */ G(pS, {
"data-slot": "dialog",
...e
});
}
function SS({ ...e }) {
return /* @__PURE__ */ G(mS, {
"data-slot": "dialog-trigger",
...e
});
}
function CS({ ...e }) {
let { container: t } = dy();
return /* @__PURE__ */ G(hS, {
"data-slot": "dialog-portal",
...e,
container: t
});
}
function wS({ ...e }) {
return /* @__PURE__ */ G(bS, {
"data-slot": "dialog-close",
...e
});
}
function TS({ className: e, ...t }) {
return /* @__PURE__ */ G(gS, {
"data-slot": "dialog-overlay",
className: Y("fixed inset-0 z-150 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
...t
});
}
function ES({ className: e, children: t, showCloseButton: n = !0, ...r }) {
return /* @__PURE__ */ K(CS, {
"data-slot": "dialog-portal",
children: [/* @__PURE__ */ G(TS, {}), /* @__PURE__ */ K(_S, {
"data-slot": "dialog-content",
className: Y("fixed top-[50%] left-[50%] z-150 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg", e),
...r,
children: [t, n && /* @__PURE__ */ K(bS, {
"data-slot": "dialog-close",
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
children: [/* @__PURE__ */ G(jr, {}), /* @__PURE__ */ G("span", {
className: "sr-only",
children: "Close"
})]
})]
})]
});
}
function DS({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "dialog-header",
className: Y("flex flex-col gap-2 text-center sm:text-left", e),
...t
});
}
function OS({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "dialog-footer",
className: Y("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
...t
});
}
function kS({ className: e, ...t }) {
return /* @__PURE__ */ G(vS, {
"data-slot": "dialog-title",
className: Y("text-lg leading-none font-semibold", e),
...t
});
}
function AS({ className: e, ...t }) {
return /* @__PURE__ */ G(yS, {
"data-slot": "dialog-description",
className: Y("text-sm text-muted-foreground", e),
...t
});
}
// ../../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@18.3.5_@types+react@18.3.18__@types+r_17649c5ead956195d564632e84fcc4bb/node_modules/@radix-ui/react-collection/dist/index.mjs
function jS(e) {
let t = e + "CollectionProvider", [n, r] = my(t), [i, a] = n(t, {
collectionRef: { current: null },
itemMap: /* @__PURE__ */ new Map()
}), o = (e) => {
let { scope: t, children: n } = e, r = L.useRef(null), a = L.useRef(/* @__PURE__ */ new Map()).current;
return /* @__PURE__ */ G(i, {
scope: t,
itemMap: a,
collectionRef: r,
children: n
});
};
o.displayName = t;
let s = e + "CollectionSlot", c = /* @__PURE__ */ wy(s), l = L.forwardRef((e, t) => {
let { scope: n, children: r } = e, i = Zv(t, a(s, n).collectionRef);
return /* @__PURE__ */ G(c, {
ref: i,
children: r
});
});
l.displayName = s;
let u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = /* @__PURE__ */ wy(u), p = L.forwardRef((e, t) => {
let { scope: n, children: r, ...i } = e, o = L.useRef(null), s = Zv(t, o), c = a(u, n);
return L.useEffect(() => (c.itemMap.set(o, {
ref: o,
...i
}), () => void c.itemMap.delete(o))), /* @__PURE__ */ G(f, {
[d]: "",
ref: s,
children: r
});
});
p.displayName = u;
function m(t) {
let n = a(e + "CollectionConsumer", t);
return L.useCallback(() => {
let e = n.collectionRef.current;
if (!e) return [];
let t = Array.from(e.querySelectorAll(`[${d}]`));
return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
}, [n.collectionRef, n.itemMap]);
}
return [
{
Provider: o,
Slot: l,
ItemSlot: p
},
m,
r
];
}
// ../../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.mjs
var MS = I.createContext(void 0);
function NS(e) {
let t = I.useContext(MS);
return e || t || "ltr";
}
// ../../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
var PS = [
"top",
"right",
"bottom",
"left"
], FS = Math.min, IS = Math.max, LS = Math.round, RS = Math.floor, zS = (e) => ({
x: e,
y: e
}), BS = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
};
function VS(e, t, n) {
return IS(e, FS(t, n));
}
function HS(e, t) {
return typeof e == "function" ? e(t) : e;
}
function US(e) {
return e.split("-")[0];
}
function WS(e) {
return e.split("-")[1];
}
function GS(e) {
return e === "x" ? "y" : "x";
}
function KS(e) {
return e === "y" ? "height" : "width";
}
function qS(e) {
let t = e[0];
return t === "t" || t === "b" ? "y" : "x";
}
function JS(e) {
return GS(qS(e));
}
function YS(e, t, n) {
n === void 0 && (n = !1);
let r = WS(e), i = JS(e), a = KS(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
return t.reference[a] > t.floating[a] && (o = iC(o)), [o, iC(o)];
}
function XS(e) {
let t = iC(e);
return [
ZS(e),
t,
ZS(t)
];
}
function ZS(e) {
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
}
var QS = ["left", "right"], $S = ["right", "left"], eC = ["top", "bottom"], tC = ["bottom", "top"];
function nC(e, t, n) {
switch (e) {
case "top":
case "bottom": return n ? t ? $S : QS : t ? QS : $S;
case "left":
case "right": return t ? eC : tC;
default: return [];
}
}
function rC(e, t, n, r) {
let i = WS(e), a = nC(US(e), n === "start", r);
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ZS)))), a;
}
function iC(e) {
let t = US(e);
return BS[t] + e.slice(t.length);
}
function aC(e) {
return {
top: e.top ?? 0,
right: e.right ?? 0,
bottom: e.bottom ?? 0,
left: e.left ?? 0
};
}
function oC(e) {
return typeof e == "number" ? {
top: e,
right: e,
bottom: e,
left: e
} : aC(e);
}
function sC(e) {
let { x: t, y: n, width: r, height: i } = e;
return {
width: r,
height: i,
top: n,
left: t,
right: t + r,
bottom: n + i,
x: t,
y: n
};
}
// ../../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
function cC(e, t, n) {
let { reference: r, floating: i } = e, a = qS(t), o = JS(t), s = KS(o), c = US(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
switch (c) {
case "top":
p = {
x: u,
y: r.y - i.height
};
break;
case "bottom":
p = {
x: u,
y: r.y + r.height
};
break;
case "right":
p = {
x: r.x + r.width,
y: d
};
break;
case "left":
p = {
x: r.x - i.width,
y: d
};
break;
default: p = {
x: r.x,
y: r.y
};
}
let m = WS(t);
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
}
async function lC(e, t) {
t === void 0 && (t = {});
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = HS(t, e), p = oC(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = sC(await i.getClippingRect({
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
boundary: c,
rootBoundary: l,
strategy: s
})), g = u === "floating" ? {
x: n,
y: r,
width: a.floating.width,
height: a.floating.height
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
x: 1,
y: 1
}, y = sC(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
elements: o,
rect: g,
offsetParent: _,
strategy: s
}) : g);
return {
top: (h.top - y.top + p.top) / v.y,
bottom: (y.bottom - h.bottom + p.bottom) / v.y,
left: (h.left - y.left + p.left) / v.x,
right: (y.right - h.right + p.right) / v.x
};
}
var uC = 50, dC = async (e, t, n) => {
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
...o,
detectOverflow: lC
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
reference: e,
floating: t,
strategy: i
}), { x: u, y: d } = cC(l, r, c), f = r, p = 0, m = {};
for (let n = 0; n < a.length; n++) {
let h = a[n];
if (!h) continue;
let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
x: u,
y: d,
initialPlacement: r,
placement: f,
strategy: i,
middlewareData: m,
rects: l,
platform: s,
elements: {
reference: e,
floating: t
}
});
u = v ?? u, d = y ?? d, m[g] = {
...m[g],
...b
}, x && p < uC && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
reference: e,
floating: t,
strategy: i
}) : x.rects), {x: u, y: d} = cC(l, f, c)), n = -1);
}
return {
x: u,
y: d,
placement: f,
strategy: i,
middlewareData: m
};
}, fC = (e) => ({
name: "arrow",
options: e,
async fn(t) {
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = HS(e, t) || {};
if (l == null) return {};
let d = oC(u), f = {
x: n,
y: r
}, p = JS(i), m = KS(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = FS(d[_], T), D = FS(d[v], T), O = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = VS(E, k, O), ee = !c.arrow && WS(i) != null && k !== A && a.reference[m] / 2 - (k < E ? E : D) - h[m] / 2 < 0, j = ee ? k < E ? k - E : k - O : 0;
return {
[p]: f[p] + j,
data: {
[p]: A,
centerOffset: k - A - j,
...ee && { alignmentOffset: j }
},
reset: ee
};
}
}), pC = function(e) {
return e === void 0 && (e = {}), {
name: "flip",
options: e,
async fn(t) {
var n;
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = HS(e, t);
if ((n = i.arrow) != null && n.alignmentOffset) return {};
let g = US(r), _ = qS(o), v = US(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [iC(o)] : XS(o)), x = p !== "none";
!d && x && b.push(...rC(o, m, p, y));
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
if (l && w.push(C[g]), u) {
let e = YS(r, a, y);
w.push(C[e[0]], C[e[1]]);
}
if (T = [...T, {
placement: r,
overflows: w
}], !w.every((e) => e <= 0)) {
let e = (i.flip?.index || 0) + 1, t = S[e];
if (t && (u !== "alignment" || _ === qS(t) || T.every((e) => qS(e.placement) !== _ || e.overflows[0] > 0))) return {
data: {
index: e,
overflows: T
},
reset: { placement: t }
};
let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
if (!n) switch (f) {
case "bestFit": {
let e = T.filter((e) => {
if (x) {
let t = qS(e.placement);
return t === _ || t === "y";
}
return !0;
}).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
e && (n = e);
break;
}
case "initialPlacement": n = o;
}
if (r !== n) return { reset: { placement: n } };
}
return {};
}
};
};
function mC(e, t) {
return {
top: e.top - t.height,
right: e.right - t.width,
bottom: e.bottom - t.height,
left: e.left - t.width
};
}
function hC(e) {
return PS.some((t) => e[t] >= 0);
}
var gC = function(e) {
return e === void 0 && (e = {}), {
name: "hide",
options: e,
async fn(t) {
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = HS(e, t);
switch (i) {
case "referenceHidden": {
let e = mC(await r.detectOverflow(t, {
...a,
elementContext: "reference"
}), n.reference);
return { data: {
referenceHiddenOffsets: e,
referenceHidden: hC(e)
} };
}
case "escaped": {
let e = mC(await r.detectOverflow(t, {
...a,
altBoundary: !0
}), n.floating);
return { data: {
escapedOffsets: e,
escaped: hC(e)
} };
}
default: return {};
}
}
};
}, _C = /*#__PURE__*/ new Set(["left", "top"]);
async function vC(e, t) {
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = US(n), s = WS(n), c = qS(n) === "y", l = _C.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = HS(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
mainAxis: d,
crossAxis: 0,
alignmentAxis: null
} : {
mainAxis: d.mainAxis || 0,
crossAxis: d.crossAxis || 0,
alignmentAxis: d.alignmentAxis
};
return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
x: p * u,
y: f * l
} : {
x: f * l,
y: p * u
};
}
var yC = function(e) {
return e === void 0 && (e = 0), {
name: "offset",
options: e,
async fn(t) {
var n;
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await vC(t, e);
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
x: r + s.x,
y: i + s.y,
data: {
...s,
placement: a
}
};
}
};
}, bC = function(e) {
return e === void 0 && (e = {}), {
name: "shift",
options: e,
async fn(t) {
let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
let { x: t, y: n } = e;
return {
x: t,
y: n
};
} }, ...l } = HS(e, t), u = {
x: n,
y: r
}, d = await a.detectOverflow(t, l), f = qS(i), p = GS(f), m = u[p], h = u[f], g = (e, t) => VS(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
o && (m = g(p, m)), s && (h = g(f, h));
let _ = c.fn({
...t,
[p]: m,
[f]: h
});
return {
..._,
data: {
x: _.x - n,
y: _.y - r,
enabled: {
[p]: o,
[f]: s
}
}
};
}
};
}, xC = function(e) {
return e === void 0 && (e = {}), {
options: e,
fn(t) {
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = HS(e, t), u = {
x: n,
y: r
}, d = qS(i), f = GS(d), p = u[f], m = u[d], h = HS(s, t), g = typeof h == "number" ? {
mainAxis: h,
crossAxis: 0
} : {
mainAxis: h.mainAxis ?? 0,
crossAxis: h.crossAxis ?? 0
};
if (c) {
let e = f === "y" ? "height" : "width", t = a.reference[f] - a.floating[e] + g.mainAxis, n = a.reference[f] + a.reference[e] - g.mainAxis;
p < t ? p = t : p > n && (p = n);
}
if (l) {
let e = f === "y" ? "width" : "height", t = _C.has(US(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
m < n ? m = n : m > r && (m = r);
}
return {
[f]: p,
[d]: m
};
}
};
}, SC = function(e) {
return e === void 0 && (e = {}), {
name: "size",
options: e,
async fn(t) {
let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = HS(e, t), c = await i.detectOverflow(t, s), l = US(n), u = WS(n), d = qS(n) === "y", { width: f, height: p } = r.floating, m, h;
l === "top" || l === "bottom" ? (m = l, h = u === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = l, m = u === "end" ? "top" : "bottom");
let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = FS(p - c[m], g), y = FS(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * IS(c.left, c.right) : S = p - 2 * IS(c.top, c.bottom)), await o({
...t,
availableWidth: C,
availableHeight: S
});
let w = await i.getDimensions(a.floating);
return f !== w.width || p !== w.height ? { reset: { rects: !0 } } : {};
}
};
};
// ../../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
function CC() {
return typeof window < "u";
}
function wC(e) {
return DC(e) ? (e.nodeName || "").toLowerCase() : "#document";
}
function TC(e) {
var t;
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
}
function EC(e) {
return ((DC(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
}
function DC(e) {
return CC() ? e instanceof Node || e instanceof TC(e).Node : !1;
}
function OC(e) {
return CC() ? e instanceof Element || e instanceof TC(e).Element : !1;
}
function kC(e) {
return CC() ? e instanceof HTMLElement || e instanceof TC(e).HTMLElement : !1;
}
function AC(e) {
return !CC() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof TC(e).ShadowRoot;
}
function jC(e) {
let { overflow: t, overflowX: n, overflowY: r, display: i } = HC(e);
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
}
function MC(e) {
return /^(table|td|th)$/.test(wC(e));
}
function NC(e) {
try {
if (e.matches(":popover-open")) return !0;
} catch {}
try {
return e.matches(":modal");
} catch {
return !1;
}
}
var PC = /transform|translate|scale|rotate|perspective|filter/, FC = /paint|layout|strict|content/, IC = (e) => !!e && e !== "none", LC;
function RC(e) {
let t = OC(e) ? HC(e) : e;
return IC(t.transform) || IC(t.translate) || IC(t.scale) || IC(t.rotate) || IC(t.perspective) || !BC() && (IC(t.backdropFilter) || IC(t.filter)) || PC.test(t.willChange || "") || FC.test(t.contain || "");
}
function zC(e) {
let t = WC(e);
for (; kC(t) && !VC(t);) {
if (RC(t)) return t;
if (NC(t)) return null;
t = WC(t);
}
return null;
}
function BC() {
return LC ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), LC;
}
function VC(e) {
return /^(html|body|#document)$/.test(wC(e));
}
function HC(e) {
return TC(e).getComputedStyle(e);
}
function UC(e) {
return OC(e) ? {
scrollLeft: e.scrollLeft,
scrollTop: e.scrollTop
} : {
scrollLeft: e.scrollX,
scrollTop: e.scrollY
};
}
function WC(e) {
if (wC(e) === "html") return e;
let t = e.assignedSlot || e.parentNode || AC(e) && e.host || EC(e);
return AC(t) ? t.host : t;
}
function GC(e) {
let t = WC(e);
return VC(t) ? (e.ownerDocument || e).body : kC(t) && jC(t) ? t : GC(t);
}
function KC(e, t, n) {
t === void 0 && (t = []), n === void 0 && (n = !0);
let r = GC(e), i = r === e.ownerDocument?.body, a = TC(r);
if (i) {
let e = qC(a);
return t.concat(a, a.visualViewport || [], jC(r) ? r : [], e && n ? KC(e) : []);
}
return t.concat(r, KC(r, [], n));
}
function qC(e) {
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
}
// ../../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
function JC(e) {
let t = HC(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = kC(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = LS(n) !== a || LS(r) !== o;
return s && (n = a, r = o), {
width: n,
height: r,
$: s
};
}
function YC(e) {
return OC(e) ? e : e.contextElement;
}
function XC(e) {
let t = YC(e);
if (!kC(t)) return zS(1);
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = JC(t), o = (a ? LS(n.width) : n.width) / r, s = (a ? LS(n.height) : n.height) / i;
return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
x: o,
y: s
};
}
var ZC = /*#__PURE__*/ zS(0);
function QC(e) {
let t = TC(e);
return !BC() || !t.visualViewport ? ZC : {
x: t.visualViewport.offsetLeft,
y: t.visualViewport.offsetTop
};
}
function $C(e, t, n) {
return t === void 0 && (t = !1), !!n && t && n === TC(e);
}
function ew(e, t, n, r) {
t === void 0 && (t = !1), n === void 0 && (n = !1);
let i = e.getBoundingClientRect(), a = YC(e), o = zS(1);
t && (r ? OC(r) && (o = XC(r)) : o = XC(e));
let s = $C(a, n, r) ? QC(a) : zS(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
if (a && r) {
let e = TC(a), t = OC(r) ? TC(r) : r, n = e, i = qC(n);
for (; i && t !== n;) {
let e = XC(i), t = i.getBoundingClientRect(), r = HC(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = TC(i), i = qC(n);
}
}
return sC({
width: u,
height: d,
x: c,
y: l
});
}
function tw(e, t) {
let n = UC(e).scrollLeft;
return t ? t.left + n : ew(EC(e)).left + n;
}
function nw(e, t) {
let n = e.getBoundingClientRect();
return {
x: n.left + t.scrollLeft - tw(e, n),
y: n.top + t.scrollTop
};
}
function rw(e) {
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = EC(r), s = t ? NC(t.floating) : !1;
if (r === o || s && a) return n;
let c = {
scrollLeft: 0,
scrollTop: 0
}, l = zS(1), u = zS(0), d = kC(r);
if ((d || !a) && ((wC(r) !== "body" || jC(o)) && (c = UC(r)), d)) {
let e = ew(r);
l = XC(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
}
let f = o && !d && !a ? nw(o, c) : zS(0);
return {
width: n.width * l.x,
height: n.height * l.y,
x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
};
}
function iw(e) {
return e.getClientRects ? Array.from(e.getClientRects()) : [];
}
function aw(e) {
let t = UC(e), n = e.ownerDocument.body, r = IS(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = IS(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + tw(e), o = -t.scrollTop;
return HC(n).direction === "rtl" && (a += IS(e.clientWidth, n.clientWidth) - r), {
width: r,
height: i,
x: a,
y: o
};
}
var ow = 25;
function sw(e, t, n) {
n === void 0 && (n = "viewport");
let r = n === "layoutViewport", i = TC(e), a = EC(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
if (o) {
let e = !BC() || t === "fixed";
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
}
if (tw(a) <= 0) {
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
o <= ow && (s -= o);
}
return {
width: s,
height: c,
x: l,
y: u
};
}
function cw(e, t) {
let n = ew(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = XC(e);
return {
width: e.clientWidth * a.x,
height: e.clientHeight * a.y,
x: i * a.x,
y: r * a.y
};
}
function lw(e, t, n) {
let r;
if (t === "viewport" || t === "layoutViewport") r = sw(e, n, t);
else if (t === "document") r = aw(EC(e));
else if (OC(t)) r = cw(t, n);
else {
let n = QC(e);
r = {
x: t.x - n.x,
y: t.y - n.y,
width: t.width,
height: t.height
};
}
return sC(r);
}
function uw(e, t) {
let n = t.get(e);
if (n) return n;
let r = KC(e, [], !1).filter((e) => OC(e) && wC(e) !== "body"), i = null, a = HC(e).position === "fixed", o = a ? WC(e) : e;
for (; OC(o) && !VC(o);) {
let e = HC(o), t = RC(o), n = i ? i.position : a ? "fixed" : "";
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = WC(o);
}
return t.set(e, r), r;
}
function dw(e) {
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? NC(t) ? [] : uw(t, this._c) : [].concat(n), r], o = lw(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
for (let e = 1; e < a.length; e++) {
let n = lw(t, a[e], i);
s = IS(n.top, s), c = FS(n.right, c), l = FS(n.bottom, l), u = IS(n.left, u);
}
return {
width: c - u,
height: l - s,
x: u,
y: s
};
}
function fw(e) {
let { width: t, height: n } = JC(e);
return {
width: t,
height: n
};
}
function pw(e, t, n) {
let r = kC(t), i = EC(t), a = n === "fixed", o = ew(e, !0, a, t), s = {
scrollLeft: 0,
scrollTop: 0
}, c = zS(0);
if ((r || !a) && ((wC(t) !== "body" || jC(i)) && (s = UC(t)), r)) {
let e = ew(t, !0, a, t);
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
}
!r && i && (c.x = tw(i));
let l = i && !r && !a ? nw(i, s) : zS(0);
return {
x: o.left + s.scrollLeft - c.x - l.x,
y: o.top + s.scrollTop - c.y - l.y,
width: o.width,
height: o.height
};
}
function mw(e) {
return HC(e).position === "static";
}
function hw(e, t) {
if (!kC(e) || HC(e).position === "fixed") return null;
if (t) return t(e);
let n = e.offsetParent;
return EC(e) === n && (n = n.ownerDocument.body), n;
}
function gw(e, t) {
let n = TC(e);
if (NC(e)) return n;
if (!kC(e)) {
let t = WC(e);
for (; t && !VC(t);) {
if (OC(t) && !mw(t)) return t;
t = WC(t);
}
return n;
}
let r = hw(e, t);
for (; r && MC(r) && mw(r);) r = hw(r, t);
return r && VC(r) && mw(r) && !RC(r) ? n : r || zC(e) || n;
}
var _w = async function(e) {
let t = this.getOffsetParent || gw, n = this.getDimensions, r = await n(e.floating);
return {
reference: pw(e.reference, await t(e.floating), e.strategy),
floating: {
x: 0,
y: 0,
width: r.width,
height: r.height
}
};
};
function vw(e) {
return HC(e).direction === "rtl";
}
var yw = {
convertOffsetParentRelativeRectToViewportRelativeRect: rw,
getDocumentElement: EC,
getClippingRect: dw,
getOffsetParent: gw,
getElementRects: _w,
getClientRects: iw,
getDimensions: fw,
getScale: XC,
isElement: OC,
isRTL: vw
};
function bw(e, t) {
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
}
function xw(e, t, n) {
let r = null, i, a = EC(e);
function o() {
var e;
clearTimeout(i), (e = r) == null || e.disconnect(), r = null;
}
function s(n, c) {
n === void 0 && (n = !1), c === void 0 && (c = 1), o();
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
if (n || t(), !f || !p) return;
let m = RS(d), h = RS(a.clientWidth - (u + f)), g = RS(a.clientHeight - (d + p)), _ = RS(u), v = {
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
threshold: IS(0, FS(1, c)) || 1
}, y = !0;
function b(t) {
let n = t[0].intersectionRatio;
if (!bw(l, e.getBoundingClientRect())) return s();
if (n !== c) {
if (!y) return s();
n ? s(!1, n) : i = setTimeout(() => {
s(!1, 1e-7);
}, 1e3);
}
y = !1;
}
try {
r = new IntersectionObserver(b, {
...v,
root: a.ownerDocument
});
} catch {
r = new IntersectionObserver(b, v);
}
r.observe(e);
}
let c = TC(e), l = () => s(n);
return c.addEventListener("resize", l), s(!0), () => {
c.removeEventListener("resize", l), o();
};
}
function Sw(e, t, n, r) {
r === void 0 && (r = {});
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = YC(e), u = i || a ? [...l ? KC(l) : [], ...t ? KC(t) : []] : [];
u.forEach((e) => {
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
});
let d = l && s ? xw(l, n, a) : null, f = -1, p = null;
o && (p = new ResizeObserver((e) => {
let [r] = e;
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
var e;
(e = p) == null || e.observe(t);
})), n();
}), l && !c && p.observe(l), t && p.observe(t));
let m, h = c ? ew(e) : null;
c && g();
function g() {
let t = ew(e);
h && !bw(h, t) && n(), h = t, m = requestAnimationFrame(g);
}
return n(), () => {
var e;
u.forEach((e) => {
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
};
}
var Cw = yC, ww = bC, Tw = pC, Ew = SC, Dw = gC, Ow = fC, kw = xC, Aw = (e, t, n) => {
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
...yw,
...i.platform,
_c: r
};
return dC(e, t, {
...i,
platform: a
});
}, jw = typeof document < "u" ? yn : function() {};
function Mw(e, t) {
if (e === t) return !0;
if (typeof e != typeof t) return !1;
if (typeof e == "function" && e.toString() === t.toString()) return !0;
let n, r, i;
if (e && t && typeof e == "object") {
if (Array.isArray(e)) {
if (n = e.length, n !== t.length) return !1;
for (r = n; r-- !== 0;) if (!Mw(e[r], t[r])) return !1;
return !0;
}
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
for (r = n; r-- !== 0;) {
let n = i[r];
if (!(n === "_owner" && e.$$typeof) && !Mw(e[n], t[n])) return !1;
}
return !0;
}
return e !== e && t !== t;
}
function Nw(e) {
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
}
function Pw(e, t) {
let n = Nw(e);
return Math.round(t * n) / n;
}
function Fw(e) {
let t = I.useRef(e);
return jw(() => {
t.current = e;
}), t;
}
function Iw(e) {
e === void 0 && (e = {});
let { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: a, floating: o } = {}, transform: s = !0, whileElementsMounted: c, open: l } = e, [u, d] = I.useState({
x: 0,
y: 0,
strategy: n,
placement: t,
middlewareData: {},
isPositioned: !1
}), [f, p] = I.useState(r);
Mw(f, r) || p(r);
let [m, h] = I.useState(null), [g, _] = I.useState(null), v = I.useCallback((e) => {
e !== S.current && (S.current = e, h(e));
}, []), y = I.useCallback((e) => {
e !== C.current && (C.current = e, _(e));
}, []), b = a || m, x = o || g, S = I.useRef(null), C = I.useRef(null), w = I.useRef(u), T = c != null, E = Fw(c), D = Fw(i), O = Fw(l), k = I.useCallback(() => {
if (!S.current || !C.current) return;
let e = {
placement: t,
strategy: n,
middleware: f
};
D.current && (e.platform = D.current), Aw(S.current, C.current, e).then((e) => {
let t = {
...e,
isPositioned: O.current !== !1
};
A.current && !Mw(w.current, t) && (w.current = t, Sn.flushSync(() => {
d(t);
}));
});
}, [
f,
t,
n,
D,
O
]);
jw(() => {
l === !1 && w.current.isPositioned && (w.current.isPositioned = !1, d((e) => ({
...e,
isPositioned: !1
})));
}, [l]);
let A = I.useRef(!1);
jw(() => (A.current = !0, () => {
A.current = !1;
}), []), jw(() => {
if (b && (S.current = b), x && (C.current = x), b && x) {
if (E.current) return E.current(b, x, k);
k();
}
}, [
b,
x,
k,
E,
T
]);
let ee = I.useMemo(() => ({
reference: S,
floating: C,
setReference: v,
setFloating: y
}), [v, y]), j = I.useMemo(() => ({
reference: b,
floating: x
}), [b, x]), te = I.useMemo(() => {
let e = {
position: n,
left: 0,
top: 0
};
if (!j.floating) return e;
let t = Pw(j.floating, u.x), r = Pw(j.floating, u.y);
return s ? {
...e,
transform: "translate(" + t + "px, " + r + "px)",
...Nw(j.floating) >= 1.5 && { willChange: "transform" }
} : {
position: n,
left: t,
top: r
};
}, [
n,
s,
j.floating,
u.x,
u.y
]);
return I.useMemo(() => ({
...u,
update: k,
refs: ee,
elements: j,
floatingStyles: te
}), [
u,
k,
ee,
j,
te
]);
}
var Lw = (e) => {
function t(e) {
return {}.hasOwnProperty.call(e, "current");
}
return {
name: "arrow",
options: e,
fn(n) {
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
return r && t(r) ? r.current == null ? {} : Ow({
element: r.current,
padding: i
}).fn(n) : r ? Ow({
element: r,
padding: i
}).fn(n) : {};
}
};
}, Rw = (e, t) => {
let n = Cw(e);
return {
name: n.name,
fn: n.fn,
options: [e, t]
};
}, zw = (e, t) => {
let n = ww(e);
return {
name: n.name,
fn: n.fn,
options: [e, t]
};
}, Bw = (e, t) => ({
fn: kw(e).fn,
options: [e, t]
}), Vw = (e, t) => {
let n = Tw(e);
return {
name: n.name,
fn: n.fn,
options: [e, t]
};
}, Hw = (e, t) => {
let n = Ew(e);
return {
name: n.name,
fn: n.fn,
options: [e, t]
};
}, Uw = (e, t) => {
let n = Dw(e);
return {
name: n.name,
fn: n.fn,
options: [e, t]
};
}, Ww = (e, t) => {
let n = Lw(e);
return {
name: n.name,
fn: n.fn,
options: [e, t]
};
}, Gw = "Arrow", Kw = I.forwardRef((e, t) => {
let { children: n, width: r = 10, height: i = 5, ...a } = e;
return /* @__PURE__ */ G($.svg, {
...a,
ref: t,
width: r,
height: i,
viewBox: "0 0 30 10",
preserveAspectRatio: "none",
children: e.asChild ? n : /* @__PURE__ */ G("polygon", { points: "0,0 30,0 15,10" })
});
});
Kw.displayName = Gw;
var qw = Kw;
// ../../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
function Jw(e) {
let [t, n] = I.useState(void 0);
return gy(() => {
if (e) {
n({
width: e.offsetWidth,
height: e.offsetHeight
});
let t = new ResizeObserver((t) => {
if (!Array.isArray(t) || !t.length) return;
let r = t[0], i, a;
if ("borderBoxSize" in r) {
let e = r.borderBoxSize, t = Array.isArray(e) ? e[0] : e;
i = t.inlineSize, a = t.blockSize;
} else i = e.offsetWidth, a = e.offsetHeight;
n({
width: i,
height: a
});
});
return t.observe(e, { box: "border-box" }), () => t.unobserve(e);
}
n(void 0);
}, [e]), t;
}
// ../../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@18.3.5_@types+react@18.3.18__@types+react_87ff82ad4f9a742363eb2dcb8ef5fb4d/node_modules/@radix-ui/react-popper/dist/index.mjs
var Yw = "Popper", [Xw, Zw] = my(Yw), [Qw, $w] = Xw(Yw), eT = (e) => {
let { __scopePopper: t, children: n } = e, [r, i] = I.useState(null);
return /* @__PURE__ */ G(Qw, {
scope: t,
anchor: r,
onAnchorChange: i,
children: n
});
};
eT.displayName = Yw;
var tT = "PopperAnchor", nT = I.forwardRef((e, t) => {
let { __scopePopper: n, virtualRef: r, ...i } = e, a = $w(tT, n), o = I.useRef(null), s = Zv(t, o), c = I.useRef(null);
return I.useEffect(() => {
let e = c.current;
c.current = r?.current || o.current, e !== c.current && a.onAnchorChange(c.current);
}), r ? null : /* @__PURE__ */ G($.div, {
...i,
ref: s
});
});
nT.displayName = tT;
var rT = "PopperContent", [iT, aT] = Xw(rT), oT = I.forwardRef((e, t) => {
let { __scopePopper: n, side: r = "bottom", sideOffset: i = 0, align: a = "center", alignOffset: o = 0, arrowPadding: s = 0, avoidCollisions: c = !0, collisionBoundary: l = [], collisionPadding: u = 0, sticky: d = "partial", hideWhenDetached: f = !1, updatePositionStrategy: p = "optimized", onPlaced: m, ...h } = e, g = $w(rT, n), [_, v] = I.useState(null), y = Zv(t, (e) => v(e)), [b, x] = I.useState(null), S = Jw(b), C = S?.width ?? 0, w = S?.height ?? 0, T = r + (a === "center" ? "" : "-" + a), E = typeof u == "number" ? u : {
top: 0,
right: 0,
bottom: 0,
left: 0,
...u
}, D = Array.isArray(l) ? l : [l], O = D.length > 0, k = {
padding: E,
boundary: D.filter(uT),
altBoundary: O
}, { refs: A, floatingStyles: ee, placement: j, isPositioned: te, middlewareData: M } = Iw({
strategy: "fixed",
placement: T,
whileElementsMounted: (...e) => Sw(...e, { animationFrame: p === "always" }),
elements: { reference: g.anchor },
middleware: [
Rw({
mainAxis: i + w,
alignmentAxis: o
}),
c && zw({
mainAxis: !0,
crossAxis: !1,
limiter: d === "partial" ? Bw() : void 0,
...k
}),
c && Vw({ ...k }),
Hw({
...k,
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
let { width: i, height: a } = t.reference, o = e.floating.style;
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
}
}),
b && Ww({
element: b,
padding: s
}),
dT({
arrowWidth: C,
arrowHeight: w
}),
f && Uw({
strategy: "referenceHidden",
...k
})
]
}), [ne, N] = fT(j), re = My(m);
gy(() => {
te && re?.();
}, [te, re]);
let ie = M.arrow?.x, ae = M.arrow?.y, oe = M.arrow?.centerOffset !== 0, [se, ce] = I.useState();
return gy(() => {
_ && ce(window.getComputedStyle(_).zIndex);
}, [_]), /* @__PURE__ */ G("div", {
ref: A.setFloating,
"data-radix-popper-content-wrapper": "",
style: {
...ee,
transform: te ? ee.transform : "translate(0, -200%)",
minWidth: "max-content",
zIndex: se,
"--radix-popper-transform-origin": [M.transformOrigin?.x, M.transformOrigin?.y].join(" "),
...M.hide?.referenceHidden && {
visibility: "hidden",
pointerEvents: "none"
}
},
dir: e.dir,
children: /* @__PURE__ */ G(iT, {
scope: n,
placedSide: ne,
onArrowChange: x,
arrowX: ie,
arrowY: ae,
shouldHideArrow: oe,
children: /* @__PURE__ */ G($.div, {
"data-side": ne,
"data-align": N,
...h,
ref: y,
style: {
...h.style,
animation: te ? void 0 : "none"
}
})
})
});
});
oT.displayName = rT;
var sT = "PopperArrow", cT = {
top: "bottom",
right: "left",
bottom: "top",
left: "right"
}, lT = I.forwardRef(function(e, t) {
let { __scopePopper: n, ...r } = e, i = aT(sT, n), a = cT[i.placedSide];
return /* @__PURE__ */ G("span", {
ref: i.onArrowChange,
style: {
position: "absolute",
left: i.arrowX,
top: i.arrowY,
[a]: 0,
transformOrigin: {
top: "",
right: "0 0",
bottom: "center 0",
left: "100% 0"
}[i.placedSide],
transform: {
top: "translateY(100%)",
right: "translateY(50%) rotate(90deg) translateX(-50%)",
bottom: "rotate(180deg)",
left: "translateY(50%) rotate(-90deg) translateX(50%)"
}[i.placedSide],
visibility: i.shouldHideArrow ? "hidden" : void 0
},
children: /* @__PURE__ */ G(qw, {
...r,
ref: t,
style: {
...r.style,
display: "block"
}
})
});
});
lT.displayName = sT;
function uT(e) {
return e !== null;
}
var dT = (e) => ({
name: "transformOrigin",
options: e,
fn(t) {
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = fT(n), u = {
start: "0%",
center: "50%",
end: "100%"
}[l], d = (i.arrow?.x ?? 0) + o / 2, f = (i.arrow?.y ?? 0) + s / 2, p = "", m = "";
return c === "bottom" ? (p = a ? u : `${d}px`, m = `${-s}px`) : c === "top" ? (p = a ? u : `${d}px`, m = `${r.floating.height + s}px`) : c === "right" ? (p = `${-s}px`, m = a ? u : `${f}px`) : c === "left" && (p = `${r.floating.width + s}px`, m = a ? u : `${f}px`), { data: {
x: p,
y: m
} };
}
});
function fT(e) {
let [t, n = "center"] = e.split("-");
return [t, n];
}
var pT = eT, mT = nT, hT = oT, gT = lT, _T = "rovingFocusGroup.onEntryFocus", vT = {
bubbles: !1,
cancelable: !0
}, yT = "RovingFocusGroup", [bT, xT, ST] = jS(yT), [CT, wT] = my(yT, [ST]), [TT, ET] = CT(yT), DT = I.forwardRef((e, t) => /* @__PURE__ */ G(bT.Provider, {
scope: e.__scopeRovingFocusGroup,
children: /* @__PURE__ */ G(bT.Slot, {
scope: e.__scopeRovingFocusGroup,
children: /* @__PURE__ */ G(OT, {
...e,
ref: t
})
})
}));
DT.displayName = yT;
var OT = I.forwardRef((e, t) => {
let { __scopeRovingFocusGroup: n, orientation: r, loop: i = !1, dir: a, currentTabStopId: o, defaultCurrentTabStopId: s, onCurrentTabStopIdChange: c, onEntryFocus: l, preventScrollOnEntryFocus: u = !1, ...d } = e, f = I.useRef(null), p = Zv(t, f), m = NS(a), [h, g] = xy({
prop: o,
defaultProp: s ?? null,
onChange: c,
caller: yT
}), [_, v] = I.useState(!1), y = My(l), b = xT(n), x = I.useRef(!1), [S, C] = I.useState(0);
return I.useEffect(() => {
let e = f.current;
if (e) return e.addEventListener(_T, y), () => e.removeEventListener(_T, y);
}, [y]), /* @__PURE__ */ G(TT, {
scope: n,
orientation: r,
dir: m,
loop: i,
currentTabStopId: h,
onItemFocus: I.useCallback((e) => g(e), [g]),
onItemShiftTab: I.useCallback(() => v(!0), []),
onFocusableItemAdd: I.useCallback(() => C((e) => e + 1), []),
onFocusableItemRemove: I.useCallback(() => C((e) => e - 1), []),
children: /* @__PURE__ */ G($.div, {
tabIndex: _ || S === 0 ? -1 : 0,
"data-orientation": r,
...d,
ref: p,
style: {
outline: "none",
...e.style
},
onMouseDown: Q(e.onMouseDown, () => {
x.current = !0;
}),
onFocus: Q(e.onFocus, (e) => {
let t = !x.current;
if (e.target === e.currentTarget && t && !_) {
let t = new CustomEvent(_T, vT);
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
let e = b().filter((e) => e.focusable);
PT([
e.find((e) => e.active),
e.find((e) => e.id === h),
...e
].filter(Boolean).map((e) => e.ref.current), u);
}
}
x.current = !1;
}),
onBlur: Q(e.onBlur, () => v(!1))
})
});
}), kT = "RovingFocusGroupItem", AT = I.forwardRef((e, t) => {
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = yy(), l = a || c, u = ET(kT, n), d = u.currentTabStopId === l, f = xT(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u;
return I.useEffect(() => {
if (r) return p(), () => m();
}, [
r,
p,
m
]), /* @__PURE__ */ G(bT.ItemSlot, {
scope: n,
id: l,
focusable: r,
active: i,
children: /* @__PURE__ */ G($.span, {
tabIndex: d ? 0 : -1,
"data-orientation": u.orientation,
...s,
ref: t,
onMouseDown: Q(e.onMouseDown, (e) => {
r ? u.onItemFocus(l) : e.preventDefault();
}),
onFocus: Q(e.onFocus, () => u.onItemFocus(l)),
onKeyDown: Q(e.onKeyDown, (e) => {
if (e.key === "Tab" && e.shiftKey) {
u.onItemShiftTab();
return;
}
if (e.target !== e.currentTarget) return;
let t = NT(e, u.orientation, u.dir);
if (t !== void 0) {
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
e.preventDefault();
let n = f().filter((e) => e.focusable).map((e) => e.ref.current);
if (t === "last") n.reverse();
else if (t === "prev" || t === "next") {
t === "prev" && n.reverse();
let r = n.indexOf(e.currentTarget);
n = u.loop ? FT(n, r + 1) : n.slice(r + 1);
}
setTimeout(() => PT(n));
}
}),
children: typeof o == "function" ? o({
isCurrentTabStop: d,
hasTabStop: h != null
}) : o
})
});
});
AT.displayName = kT;
var jT = {
ArrowLeft: "prev",
ArrowUp: "prev",
ArrowRight: "next",
ArrowDown: "next",
PageUp: "first",
Home: "first",
PageDown: "last",
End: "last"
};
function MT(e, t) {
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
}
function NT(e, t, n) {
let r = MT(e.key, n);
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return jT[r];
}
function PT(e, t = !1) {
let n = document.activeElement;
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
}
function FT(e, t) {
return e.map((n, r) => e[(t + r) % e.length]);
}
var IT = DT, LT = AT, RT = ["Enter", " "], zT = [
"ArrowDown",
"PageUp",
"Home"
], BT = [
"ArrowUp",
"PageDown",
"End"
], VT = [...zT, ...BT], HT = {
ltr: [...RT, "ArrowRight"],
rtl: [...RT, "ArrowLeft"]
}, UT = {
ltr: ["ArrowLeft"],
rtl: ["ArrowRight"]
}, WT = "Menu", [GT, KT, qT] = jS(WT), [JT, YT] = my(WT, [
qT,
Zw,
wT
]), XT = Zw(), ZT = wT(), [QT, $T] = JT(WT), [eE, tE] = JT(WT), nE = (e) => {
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = XT(t), [c, l] = I.useState(null), u = I.useRef(!1), d = My(a), f = NS(i);
return I.useEffect(() => {
let e = () => {
u.current = !0, document.addEventListener("pointerdown", t, {
capture: !0,
once: !0
}), document.addEventListener("pointermove", t, {
capture: !0,
once: !0
});
}, t = () => u.current = !1;
return document.addEventListener("keydown", e, { capture: !0 }), () => {
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
};
}, []), /* @__PURE__ */ G(pT, {
...s,
children: /* @__PURE__ */ G(QT, {
scope: t,
open: n,
onOpenChange: d,
content: c,
onContentChange: l,
children: /* @__PURE__ */ G(eE, {
scope: t,
onClose: I.useCallback(() => d(!1), [d]),
isUsingKeyboardRef: u,
dir: f,
modal: o,
children: r
})
})
});
};
nE.displayName = WT;
var rE = "MenuAnchor", iE = I.forwardRef((e, t) => {
let { __scopeMenu: n, ...r } = e, i = XT(n);
return /* @__PURE__ */ G(mT, {
...i,
...r,
ref: t
});
});
iE.displayName = rE;
var aE = "MenuPortal", [oE, sE] = JT(aE, { forceMount: void 0 }), cE = (e) => {
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = $T(aE, t);
return /* @__PURE__ */ G(oE, {
scope: t,
forceMount: n,
children: /* @__PURE__ */ G(fb, {
present: n || a.open,
children: /* @__PURE__ */ G(ub, {
asChild: !0,
container: i,
children: r
})
})
});
};
cE.displayName = aE;
var lE = "MenuContent", [uE, dE] = JT(lE), fE = I.forwardRef((e, t) => {
let n = sE(lE, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = $T(lE, e.__scopeMenu), o = tE(lE, e.__scopeMenu);
return /* @__PURE__ */ G(GT.Provider, {
scope: e.__scopeMenu,
children: /* @__PURE__ */ G(fb, {
present: r || a.open,
children: /* @__PURE__ */ G(GT.Slot, {
scope: e.__scopeMenu,
children: o.modal ? /* @__PURE__ */ G(pE, {
...i,
ref: t
}) : /* @__PURE__ */ G(mE, {
...i,
ref: t
})
})
})
});
}), pE = I.forwardRef((e, t) => {
let n = $T(lE, e.__scopeMenu), r = I.useRef(null), i = Zv(t, r);
return I.useEffect(() => {
let e = r.current;
if (e) return Mx(e);
}, []), /* @__PURE__ */ G(gE, {
...e,
ref: i,
trapFocus: n.open,
disableOutsidePointerEvents: n.open,
disableOutsideScroll: !0,
onFocusOutside: Q(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
onDismiss: () => n.onOpenChange(!1)
});
}), mE = I.forwardRef((e, t) => {
let n = $T(lE, e.__scopeMenu);
return /* @__PURE__ */ G(gE, {
...e,
ref: t,
trapFocus: !1,
disableOutsidePointerEvents: !1,
disableOutsideScroll: !1,
onDismiss: () => n.onOpenChange(!1)
});
}), hE = /* @__PURE__ */ wy("MenuContent.ScrollLock"), gE = I.forwardRef((e, t) => {
let { __scopeMenu: n, loop: r = !1, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEntryFocus: c, onEscapeKeyDown: l, onPointerDownOutside: u, onFocusOutside: d, onInteractOutside: f, onDismiss: p, disableOutsideScroll: m, ...h } = e, g = $T(lE, n), _ = tE(lE, n), v = XT(n), y = ZT(n), b = KT(n), [x, S] = I.useState(null), C = I.useRef(null), w = Zv(t, C, g.onContentChange), T = I.useRef(0), E = I.useRef(""), D = I.useRef(0), O = I.useRef(null), k = I.useRef("right"), A = I.useRef(0), ee = m ? Cx : I.Fragment, j = m ? {
as: hE,
allowPinchZoom: !0
} : void 0, te = (e) => {
let t = E.current + e, n = b().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = QE(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
(function e(t) {
E.current = t, window.clearTimeout(T.current), t !== "" && (T.current = window.setTimeout(() => e(""), 1e3));
})(t), o && setTimeout(() => o.focus());
};
I.useEffect(() => () => window.clearTimeout(T.current), []), _b();
let M = I.useCallback((e) => k.current === O.current?.side && eD(e, O.current?.area), []);
return /* @__PURE__ */ G(uE, {
scope: n,
searchRef: E,
onItemEnter: I.useCallback((e) => {
M(e) && e.preventDefault();
}, [M]),
onItemLeave: I.useCallback((e) => {
M(e) || (C.current?.focus(), S(null));
}, [M]),
onTriggerLeave: I.useCallback((e) => {
M(e) && e.preventDefault();
}, [M]),
pointerGraceTimerRef: D,
onPointerGraceIntentChange: I.useCallback((e) => {
O.current = e;
}, []),
children: /* @__PURE__ */ G(ee, {
...j,
children: /* @__PURE__ */ G(Zy, {
asChild: !0,
trapped: i,
onMountAutoFocus: Q(a, (e) => {
e.preventDefault(), C.current?.focus({ preventScroll: !0 });
}),
onUnmountAutoFocus: o,
children: /* @__PURE__ */ G(By, {
asChild: !0,
disableOutsidePointerEvents: s,
onEscapeKeyDown: l,
onPointerDownOutside: u,
onFocusOutside: d,
onInteractOutside: f,
onDismiss: p,
children: /* @__PURE__ */ G(IT, {
asChild: !0,
...y,
dir: _.dir,
orientation: "vertical",
loop: r,
currentTabStopId: x,
onCurrentTabStopIdChange: S,
onEntryFocus: Q(c, (e) => {
_.isUsingKeyboardRef.current || e.preventDefault();
}),
preventScrollOnEntryFocus: !0,
children: /* @__PURE__ */ G(hT, {
role: "menu",
"aria-orientation": "vertical",
"data-state": qE(g.open),
"data-radix-menu-content": "",
dir: _.dir,
...v,
...h,
ref: w,
style: {
outline: "none",
...h.style
},
onKeyDown: Q(h.onKeyDown, (e) => {
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
t && (e.key === "Tab" && e.preventDefault(), !n && r && te(e.key));
let i = C.current;
if (e.target !== i || !VT.includes(e.key)) return;
e.preventDefault();
let a = b().filter((e) => !e.disabled).map((e) => e.ref.current);
BT.includes(e.key) && a.reverse(), XE(a);
}),
onBlur: Q(e.onBlur, (e) => {
e.currentTarget.contains(e.target) || (window.clearTimeout(T.current), E.current = "");
}),
onPointerMove: Q(e.onPointerMove, tD((e) => {
let t = e.target, n = A.current !== e.clientX;
if (e.currentTarget.contains(t) && n) {
let t = e.clientX > A.current ? "right" : "left";
k.current = t, A.current = e.clientX;
}
}))
})
})
})
})
})
});
});
fE.displayName = lE;
var _E = "MenuGroup", vE = I.forwardRef((e, t) => {
let { __scopeMenu: n, ...r } = e;
return /* @__PURE__ */ G($.div, {
role: "group",
...r,
ref: t
});
});
vE.displayName = _E;
var yE = "MenuLabel", bE = I.forwardRef((e, t) => {
let { __scopeMenu: n, ...r } = e;
return /* @__PURE__ */ G($.div, {
...r,
ref: t
});
});
bE.displayName = yE;
var xE = "MenuItem", SE = "menu.itemSelect", CE = I.forwardRef((e, t) => {
let { disabled: n = !1, onSelect: r, ...i } = e, a = I.useRef(null), o = tE(xE, e.__scopeMenu), s = dE(xE, e.__scopeMenu), c = Zv(t, a), l = I.useRef(!1), u = () => {
let e = a.current;
if (!n && e) {
let t = new CustomEvent(SE, {
bubbles: !0,
cancelable: !0
});
e.addEventListener(SE, (e) => r?.(e), { once: !0 }), jy(e, t), t.defaultPrevented ? l.current = !1 : o.onClose();
}
};
return /* @__PURE__ */ G(wE, {
...i,
ref: c,
disabled: n,
onClick: Q(e.onClick, u),
onPointerDown: (t) => {
e.onPointerDown?.(t), l.current = !0;
},
onPointerUp: Q(e.onPointerUp, (e) => {
l.current || e.currentTarget?.click();
}),
onKeyDown: Q(e.onKeyDown, (e) => {
let t = s.searchRef.current !== "";
n || t && e.key === " " || RT.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
})
});
});
CE.displayName = xE;
var wE = I.forwardRef((e, t) => {
let { __scopeMenu: n, disabled: r = !1, textValue: i, ...a } = e, o = dE(xE, n), s = ZT(n), c = I.useRef(null), l = Zv(t, c), [u, d] = I.useState(!1), [f, p] = I.useState("");
return I.useEffect(() => {
let e = c.current;
e && p((e.textContent ?? "").trim());
}, [a.children]), /* @__PURE__ */ G(GT.ItemSlot, {
scope: n,
disabled: r,
textValue: i ?? f,
children: /* @__PURE__ */ G(LT, {
asChild: !0,
...s,
focusable: !r,
children: /* @__PURE__ */ G($.div, {
role: "menuitem",
"data-highlighted": u ? "" : void 0,
"aria-disabled": r || void 0,
"data-disabled": r ? "" : void 0,
...a,
ref: l,
onPointerMove: Q(e.onPointerMove, tD((e) => {
r ? o.onItemLeave(e) : (o.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
})),
onPointerLeave: Q(e.onPointerLeave, tD((e) => o.onItemLeave(e))),
onFocus: Q(e.onFocus, () => d(!0)),
onBlur: Q(e.onBlur, () => d(!1))
})
})
});
}), TE = "MenuCheckboxItem", EE = I.forwardRef((e, t) => {
let { checked: n = !1, onCheckedChange: r, ...i } = e;
return /* @__PURE__ */ G(PE, {
scope: e.__scopeMenu,
checked: n,
children: /* @__PURE__ */ G(CE, {
role: "menuitemcheckbox",
"aria-checked": JE(n) ? "mixed" : n,
...i,
ref: t,
"data-state": YE(n),
onSelect: Q(i.onSelect, () => r?.(JE(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
})
});
});
EE.displayName = TE;
var DE = "MenuRadioGroup", [OE, kE] = JT(DE, {
value: void 0,
onValueChange: () => {}
}), AE = I.forwardRef((e, t) => {
let { value: n, onValueChange: r, ...i } = e, a = My(r);
return /* @__PURE__ */ G(OE, {
scope: e.__scopeMenu,
value: n,
onValueChange: a,
children: /* @__PURE__ */ G(vE, {
...i,
ref: t
})
});
});
AE.displayName = DE;
var jE = "MenuRadioItem", ME = I.forwardRef((e, t) => {
let { value: n, ...r } = e, i = kE(jE, e.__scopeMenu), a = n === i.value;
return /* @__PURE__ */ G(PE, {
scope: e.__scopeMenu,
checked: a,
children: /* @__PURE__ */ G(CE, {
role: "menuitemradio",
"aria-checked": a,
...r,
ref: t,
"data-state": YE(a),
onSelect: Q(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
})
});
});
ME.displayName = jE;
var NE = "MenuItemIndicator", [PE, FE] = JT(NE, { checked: !1 }), IE = I.forwardRef((e, t) => {
let { __scopeMenu: n, forceMount: r, ...i } = e, a = FE(NE, n);
return /* @__PURE__ */ G(fb, {
present: r || JE(a.checked) || a.checked === !0,
children: /* @__PURE__ */ G($.span, {
...i,
ref: t,
"data-state": YE(a.checked)
})
});
});
IE.displayName = NE;
var LE = "MenuSeparator", RE = I.forwardRef((e, t) => {
let { __scopeMenu: n, ...r } = e;
return /* @__PURE__ */ G($.div, {
role: "separator",
"aria-orientation": "horizontal",
...r,
ref: t
});
});
RE.displayName = LE;
var zE = "MenuArrow", BE = I.forwardRef((e, t) => {
let { __scopeMenu: n, ...r } = e, i = XT(n);
return /* @__PURE__ */ G(gT, {
...i,
...r,
ref: t
});
});
BE.displayName = zE;
var [VE, HE] = JT("MenuSub"), UE = "MenuSubTrigger", WE = I.forwardRef((e, t) => {
let n = $T(UE, e.__scopeMenu), r = tE(UE, e.__scopeMenu), i = HE(UE, e.__scopeMenu), a = dE(UE, e.__scopeMenu), o = I.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = a, l = { __scopeMenu: e.__scopeMenu }, u = I.useCallback(() => {
o.current && window.clearTimeout(o.current), o.current = null;
}, []);
return I.useEffect(() => u, [u]), I.useEffect(() => {
let e = s.current;
return () => {
window.clearTimeout(e), c(null);
};
}, [s, c]), /* @__PURE__ */ G(iE, {
asChild: !0,
...l,
children: /* @__PURE__ */ G(wE, {
id: i.triggerId,
"aria-haspopup": "menu",
"aria-expanded": n.open,
"aria-controls": i.contentId,
"data-state": qE(n.open),
...e,
ref: Xv(t, i.onTriggerChange),
onClick: (t) => {
e.onClick?.(t), e.disabled || t.defaultPrevented || (t.currentTarget.focus(), n.open || n.onOpenChange(!0));
},
onPointerMove: Q(e.onPointerMove, tD((t) => {
a.onItemEnter(t), t.defaultPrevented || e.disabled || n.open || o.current || (a.onPointerGraceIntentChange(null), o.current = window.setTimeout(() => {
n.onOpenChange(!0), u();
}, 100));
})),
onPointerLeave: Q(e.onPointerLeave, tD((e) => {
u();
let t = n.content?.getBoundingClientRect();
if (t) {
let r = n.content?.dataset.side, i = r === "right", o = i ? -5 : 5, c = t[i ? "left" : "right"], l = t[i ? "right" : "left"];
a.onPointerGraceIntentChange({
area: [
{
x: e.clientX + o,
y: e.clientY
},
{
x: c,
y: t.top
},
{
x: l,
y: t.top
},
{
x: l,
y: t.bottom
},
{
x: c,
y: t.bottom
}
],
side: r
}), window.clearTimeout(s.current), s.current = window.setTimeout(() => a.onPointerGraceIntentChange(null), 300);
} else {
if (a.onTriggerLeave(e), e.defaultPrevented) return;
a.onPointerGraceIntentChange(null);
}
})),
onKeyDown: Q(e.onKeyDown, (t) => {
let i = a.searchRef.current !== "";
e.disabled || i && t.key === " " || HT[r.dir].includes(t.key) && (n.onOpenChange(!0), n.content?.focus(), t.preventDefault());
})
})
});
});
WE.displayName = UE;
var GE = "MenuSubContent", KE = I.forwardRef((e, t) => {
let n = sE(lE, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = $T(lE, e.__scopeMenu), o = tE(lE, e.__scopeMenu), s = HE(GE, e.__scopeMenu), c = I.useRef(null), l = Zv(t, c);
return /* @__PURE__ */ G(GT.Provider, {
scope: e.__scopeMenu,
children: /* @__PURE__ */ G(fb, {
present: r || a.open,
children: /* @__PURE__ */ G(GT.Slot, {
scope: e.__scopeMenu,
children: /* @__PURE__ */ G(gE, {
id: s.contentId,
"aria-labelledby": s.triggerId,
...i,
ref: l,
align: "start",
side: o.dir === "rtl" ? "left" : "right",
disableOutsidePointerEvents: !1,
disableOutsideScroll: !1,
trapFocus: !1,
onOpenAutoFocus: (e) => {
o.isUsingKeyboardRef.current && c.current?.focus(), e.preventDefault();
},
onCloseAutoFocus: (e) => e.preventDefault(),
onFocusOutside: Q(e.onFocusOutside, (e) => {
e.target !== s.trigger && a.onOpenChange(!1);
}),
onEscapeKeyDown: Q(e.onEscapeKeyDown, (e) => {
o.onClose(), e.preventDefault();
}),
onKeyDown: Q(e.onKeyDown, (e) => {
let t = e.currentTarget.contains(e.target), n = UT[o.dir].includes(e.key);
t && n && (a.onOpenChange(!1), s.trigger?.focus(), e.preventDefault());
})
})
})
})
});
});
KE.displayName = GE;
function qE(e) {
return e ? "open" : "closed";
}
function JE(e) {
return e === "indeterminate";
}
function YE(e) {
return JE(e) ? "indeterminate" : e ? "checked" : "unchecked";
}
function XE(e) {
let t = document.activeElement;
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
}
function ZE(e, t) {
return e.map((n, r) => e[(t + r) % e.length]);
}
function QE(e, t, n) {
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = ZE(e, Math.max(i, 0));
r.length === 1 && (a = a.filter((e) => e !== n));
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
return o === n ? void 0 : o;
}
function $E(e, t) {
let { x: n, y: r } = e, i = !1;
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
l > r != d > r && n < (u - c) * (r - l) / (d - l) + c && (i = !i);
}
return i;
}
function eD(e, t) {
return t ? $E({
x: e.clientX,
y: e.clientY
}, t) : !1;
}
function tD(e) {
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
}
var nD = nE, rD = iE, iD = cE, aD = fE, oD = vE, sD = bE, cD = CE, lD = EE, uD = AE, dD = ME, fD = IE, pD = RE, mD = BE, hD = WE, gD = KE, _D = "DropdownMenu", [vD, yD] = my(_D, [YT]), bD = YT(), [xD, SD] = vD(_D), CD = (e) => {
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = bD(t), l = I.useRef(null), [u, d] = xy({
prop: i,
defaultProp: a ?? !1,
onChange: o,
caller: _D
});
return /* @__PURE__ */ G(xD, {
scope: t,
triggerId: yy(),
triggerRef: l,
contentId: yy(),
open: u,
onOpenChange: d,
onOpenToggle: I.useCallback(() => d((e) => !e), [d]),
modal: s,
children: /* @__PURE__ */ G(nD, {
...c,
open: u,
onOpenChange: d,
dir: r,
modal: s,
children: n
})
});
};
CD.displayName = _D;
var wD = "DropdownMenuTrigger", TD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, disabled: r = !1, ...i } = e, a = SD(wD, n), o = bD(n);
return /* @__PURE__ */ G(rD, {
asChild: !0,
...o,
children: /* @__PURE__ */ G($.button, {
type: "button",
id: a.triggerId,
"aria-haspopup": "menu",
"aria-expanded": a.open,
"aria-controls": a.open ? a.contentId : void 0,
"data-state": a.open ? "open" : "closed",
"data-disabled": r ? "" : void 0,
disabled: r,
...i,
ref: Xv(t, a.triggerRef),
onPointerDown: Q(e.onPointerDown, (e) => {
!r && e.button === 0 && e.ctrlKey === !1 && (a.onOpenToggle(), a.open || e.preventDefault());
}),
onKeyDown: Q(e.onKeyDown, (e) => {
r || (["Enter", " "].includes(e.key) && a.onOpenToggle(), e.key === "ArrowDown" && a.onOpenChange(!0), [
"Enter",
" ",
"ArrowDown"
].includes(e.key) && e.preventDefault());
})
})
});
});
TD.displayName = wD;
var ED = "DropdownMenuPortal", DD = (e) => {
let { __scopeDropdownMenu: t, ...n } = e, r = bD(t);
return /* @__PURE__ */ G(iD, {
...r,
...n
});
};
DD.displayName = ED;
var OD = "DropdownMenuContent", kD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = SD(OD, n), a = bD(n), o = I.useRef(!1);
return /* @__PURE__ */ G(aD, {
id: i.contentId,
"aria-labelledby": i.triggerId,
...a,
...r,
ref: t,
onCloseAutoFocus: Q(e.onCloseAutoFocus, (e) => {
o.current || i.triggerRef.current?.focus(), o.current = !1, e.preventDefault();
}),
onInteractOutside: Q(e.onInteractOutside, (e) => {
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
(!i.modal || r) && (o.current = !0);
}),
style: {
...e.style,
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
}
});
});
kD.displayName = OD;
var AD = "DropdownMenuGroup", jD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(oD, {
...i,
...r,
ref: t
});
});
jD.displayName = AD;
var MD = "DropdownMenuLabel", ND = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(sD, {
...i,
...r,
ref: t
});
});
ND.displayName = MD;
var PD = "DropdownMenuItem", FD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(cD, {
...i,
...r,
ref: t
});
});
FD.displayName = PD;
var ID = "DropdownMenuCheckboxItem", LD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(lD, {
...i,
...r,
ref: t
});
});
LD.displayName = ID;
var RD = "DropdownMenuRadioGroup", zD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(uD, {
...i,
...r,
ref: t
});
});
zD.displayName = RD;
var BD = "DropdownMenuRadioItem", VD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(dD, {
...i,
...r,
ref: t
});
});
VD.displayName = BD;
var HD = "DropdownMenuItemIndicator", UD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(fD, {
...i,
...r,
ref: t
});
});
UD.displayName = HD;
var WD = "DropdownMenuSeparator", GD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(pD, {
...i,
...r,
ref: t
});
});
GD.displayName = WD;
var KD = "DropdownMenuArrow", qD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(mD, {
...i,
...r,
ref: t
});
});
qD.displayName = KD;
var JD = "DropdownMenuSubTrigger", YD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(hD, {
...i,
...r,
ref: t
});
});
YD.displayName = JD;
var XD = "DropdownMenuSubContent", ZD = I.forwardRef((e, t) => {
let { __scopeDropdownMenu: n, ...r } = e, i = bD(n);
return /* @__PURE__ */ G(gD, {
...i,
...r,
ref: t,
style: {
...e.style,
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
}
});
});
ZD.displayName = XD;
var QD = CD, $D = TD, eO = DD, tO = kD, nO = jD, rO = FD, iO = GD;
// src/components/ui/dropdown-menu.tsx
function aO({ ...e }) {
return /* @__PURE__ */ G(QD, {
"data-slot": "dropdown-menu",
...e
});
}
function oO({ ...e }) {
return /* @__PURE__ */ G($D, {
"data-slot": "dropdown-menu-trigger",
...e
});
}
function sO({ className: e, sideOffset: t = 4, ...n }) {
let [r, i] = H(null);
return /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G(eO, {
container: r,
children: /* @__PURE__ */ G(tO, {
"data-slot": "dropdown-menu-content",
sideOffset: t,
className: Y("z-50 min-w-[8rem] origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
...n
})
}), /* @__PURE__ */ G("div", {
ref: i,
style: { display: "contents" }
})] });
}
function cO({ ...e }) {
return /* @__PURE__ */ G(nO, {
"data-slot": "dropdown-menu-group",
...e
});
}
function lO({ className: e, inset: t, variant: n = "default", ...r }) {
return /* @__PURE__ */ G(rO, {
"data-slot": "dropdown-menu-item",
"data-inset": t,
"data-variant": n,
className: Y("relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!", e),
...r
});
}
function uO({ className: e, ...t }) {
return /* @__PURE__ */ G(iO, {
"data-slot": "dropdown-menu-separator",
className: Y("-mx-1 my-1 h-px bg-border", e),
...t
});
}
function dO({ className: e, ...t }) {
return /* @__PURE__ */ G("span", {
"data-slot": "dropdown-menu-shortcut",
className: Y("ml-auto text-xs tracking-widest text-muted-foreground", e),
...t
});
}
// src/components/ui/empty.tsx
function fO({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "empty",
className: Y("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12", e),
...t
});
}
function pO({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "empty-header",
className: Y("flex max-w-sm flex-col items-center gap-2 text-center", e),
...t
});
}
var mO = Jv("flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
variants: { variant: {
default: "bg-transparent",
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
} },
defaultVariants: { variant: "default" }
});
function hO({ className: e, variant: t = "default", ...n }) {
return /* @__PURE__ */ G("div", {
"data-slot": "empty-icon",
"data-variant": t,
className: Y(mO({
variant: t,
className: e
})),
...n
});
}
function gO({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "empty-title",
className: Y("text-lg font-medium tracking-tight", e),
...t
});
}
function _O({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "empty-description",
className: Y("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
...t
});
}
function vO({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "empty-content",
className: Y("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", e),
...t
});
}
// ../../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.4_@types+react-dom@18.3.5_@types+react@18.3.18__@types+re_5d8a5db982744bb10c2f702de3b7d901/node_modules/@radix-ui/react-primitive/dist/index.mjs
var yO = [
"a",
"button",
"div",
"form",
"h2",
"h3",
"img",
"input",
"label",
"li",
"nav",
"ol",
"p",
"select",
"span",
"svg",
"ul"
].reduce((e, t) => {
let n = /* @__PURE__ */ ny(`Primitive.${t}`), r = I.forwardRef((e, r) => {
let { asChild: i, ...a } = e, o = i ? n : t;
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ G(o, {
...a,
ref: r
});
});
return r.displayName = `Primitive.${t}`, {
...e,
[t]: r
};
}, {}), bO = "Label", xO = I.forwardRef((e, t) => /* @__PURE__ */ G(yO.label, {
...e,
ref: t,
onMouseDown: (t) => {
t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
}
}));
xO.displayName = bO;
var SO = xO;
// src/components/ui/label.tsx
function CO({ className: e, ...t }) {
return /* @__PURE__ */ G(SO, {
"data-slot": "label",
className: Y("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
...t
});
}
// ../../../node_modules/.pnpm/@radix-ui+react-separator@1.1.8_@types+react-dom@18.3.5_@types+react@18.3.18__@types+re_7629998996c1af6798c1fd22ba56a8ce/node_modules/@radix-ui/react-separator/dist/index.mjs
var wO = "Separator", TO = "horizontal", EO = ["horizontal", "vertical"], DO = I.forwardRef((e, t) => {
let { decorative: n, orientation: r = TO, ...i } = e, a = OO(r) ? r : TO, o = n ? { role: "none" } : {
"aria-orientation": a === "vertical" ? a : void 0,
role: "separator"
};
return /* @__PURE__ */ G(yO.div, {
"data-orientation": a,
...o,
...i,
ref: t
});
});
DO.displayName = wO;
function OO(e) {
return EO.includes(e);
}
var kO = DO;
// src/components/ui/separator.tsx
function AO({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
return /* @__PURE__ */ G(kO, {
"data-slot": "separator",
decorative: n,
orientation: t,
className: Y("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", e),
...r
});
}
// src/components/ui/field.tsx
function jO({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "field-group",
className: Y("group/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4", e),
...t
});
}
var MO = Jv("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {
variants: { orientation: {
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
horizontal: [
"flex-row items-center",
"[&>[data-slot=field-label]]:flex-auto",
"has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
],
responsive: [
"flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto",
"@md/field-group:[&>[data-slot=field-label]]:flex-auto",
"@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
]
} },
defaultVariants: { orientation: "vertical" }
});
function NO({ className: e, orientation: t = "vertical", ...n }) {
return /* @__PURE__ */ G("div", {
role: "group",
"data-slot": "field",
"data-orientation": t,
className: Y(MO({ orientation: t }), e),
...n
});
}
function PO({ className: e, ...t }) {
return /* @__PURE__ */ G(CO, {
"data-slot": "field-label",
className: Y("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4", "has-[>[data-state=checked]]:border-primary has-[>[data-state=checked]]:bg-primary/10", e),
...t
});
}
function FO({ className: e, ...t }) {
return /* @__PURE__ */ G("p", {
"data-slot": "field-description",
className: Y("text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance", "last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
...t
});
}
function IO({ className: e, children: t, errors: n, ...r }) {
let i = B(() => {
if (t) return t;
if (!n?.length) return null;
let e = [...new Map(n.map((e) => [e?.message, e])).values()];
return e?.length === 1 ? e[0]?.message : /* @__PURE__ */ G("ul", {
className: "ml-4 flex list-disc flex-col gap-1",
children: e.map((e, t) => e?.message && /* @__PURE__ */ G("li", { children: e.message }, t))
});
}, [t, n]);
return i ? /* @__PURE__ */ G("div", {
role: "alert",
"data-slot": "field-error",
className: Y("text-sm font-normal text-destructive", e),
...r,
children: i
}) : null;
}
// src/components/ui/input.tsx
function LO({ className: e, type: t, ...n }) {
return /* @__PURE__ */ G("input", {
type: t,
"data-slot": "input",
className: Y("h-9 w-full min-w-0 rounded-md border border-input bg-input/30 px-3 py-1 text-base shadow-sm transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50", "aria-invalid:border-destructive aria-invalid:ring-destructive/40", e),
...n
});
}
// ../../../node_modules/.pnpm/react-resizable-panels@4.14.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.js
function RO(e) {
let t = gn();
return `${e ?? t}`;
}
var zO = typeof window < "u" ? yn : z;
function BO(e) {
let t = V(e);
return zO(() => {
t.current = e;
}, [e]), R((...e) => t.current?.(...e), [t]);
}
function VO(...e) {
return BO((t) => {
e.forEach((e) => {
if (e) switch (typeof e) {
case "function":
e(t);
break;
case "object": e.current = t;
}
});
});
}
function HO(e, t = "Assertion error") {
if (!e) throw Error(t);
}
un(null);
var UO;
function WO() {
return UO === void 0 && (UO = typeof matchMedia == "function" && !!matchMedia("(pointer:coarse)").matches), UO;
}
function GO({ expandHitTargets: e, axis: t, rect: n }) {
let r = e ? WO() ? t.resizeTargetMinimumSize.coarse : t.resizeTargetMinimumSize.fine : 0;
if (n.width < r) {
let e = r - n.width;
n = new DOMRect(n.x - e / 2, n.y, n.width + e, n.height);
}
if (n.height < r) {
let e = r - n.height;
n = new DOMRect(n.x, n.y - e / 2, n.width, n.height + e);
}
return n;
}
function KO(e) {
switch (typeof e) {
case "number": return [e, "px"];
case "string": {
let t = parseFloat(e);
return e.endsWith("%") ? [t, "%"] : e.endsWith("px") ? [t, "px"] : e.endsWith("rem") ? [t, "rem"] : e.endsWith("em") ? [t, "em"] : e.endsWith("vh") ? [t, "vh"] : e.endsWith("vw") ? [t, "vw"] : [t, "%"];
}
}
}
var qO = class {
#e = {};
addListener(e, t) {
let n = this.#e[e];
return n === void 0 ? this.#e[e] = [t] : n.includes(t) || n.push(t), () => {
this.removeListener(e, t);
};
}
emit(e, t) {
let n = this.#e[e];
if (n !== void 0) {
if (n.length === 1) n[0].call(null, t);
else {
let e = !1, r = null, i = Array.from(n);
for (let n = 0; n < i.length; n++) {
let a = i[n];
try {
a.call(null, t);
} catch (t) {
r === null && (e = !0, r = t);
}
}
if (e) throw r;
}
}
}
removeAllListeners() {
this.#e = {};
}
removeListener(e, t) {
let n = this.#e[e];
if (n !== void 0) {
let e = n.indexOf(t);
e >= 0 && n.splice(e, 1);
}
}
}, JO = {
cursorFlags: 0,
state: "inactive"
}, YO = new qO();
function XO() {
return JO;
}
function ZO(e) {
return YO.addListener("change", e);
}
function QO(e, t = [], n, r = !1) {
let i = JO, a = { ...JO };
a.cursorFlags = e, a.state === "active" && (a.didPointerMove ||= r, a.previews = t, n && (a.previewLayoutMap = n)), JO = a, YO.emit("change", {
prev: i,
next: a
});
}
function $O(e) {
let t = JO;
JO = e, t.state === "active" && e.state !== "active" && t.didPointerMove && t.hitRegions.forEach(({ separator: e }) => {
e && e.element.ownerDocument.activeElement === e.element && e.element.blur();
}), YO.emit("change", {
prev: t,
next: e
});
}
function ek(e) {
JO.state !== "active" || !JO.previews.some((t) => t.separator === e) || $O({
...JO,
previews: JO.previews.map((t) => t.separator === e ? { ...t } : t)
});
}
function tk(e) {
if (JO.state === "inactive") return !1;
let t = JO.hitRegions.filter((t) => t.axis !== e), n = JO.state === "active" && JO.previews.some((t) => t.axis === e);
if (t.length === JO.hitRegions.length && !n) return !1;
if (t.length === 0) $O({
cursorFlags: 0,
state: "inactive"
});
else if (JO.state === "active") {
let n = new Map(JO.initialLayoutMap), r = new Map(JO.previewLayoutMap);
n.delete(e), r.delete(e), $O({
...JO,
cursorFlags: 0,
hitRegions: t,
initialLayoutMap: n,
previewLayoutMap: r,
previews: JO.previews.filter((t) => t.axis !== e)
});
} else $O({
...JO,
hitRegions: t
});
return !0;
}
var nk = (e) => e, rk = () => {}, ik = 1, ak = 2, ok = 4, sk = 8, ck = 3, lk = 12, uk;
function dk() {
return uk === void 0 && (uk = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (uk = !0)), uk;
}
function fk({ cursorFlags: e, axes: t, state: n }) {
let r = 0, i = 0;
switch (n) {
case "active":
case "hover": t.forEach((e) => {
if (!e.mutableState.disableCursor) switch (e.orientation) {
case "horizontal":
r++;
break;
case "vertical": i++;
}
});
}
if (r !== 0 || i !== 0) {
if (n === "active" && e && dk()) {
let t = (e & ik) !== 0, n = (e & ak) !== 0, r = (e & ok) !== 0, i = (e & sk) !== 0;
if (t) return r ? "se-resize" : i ? "ne-resize" : "e-resize";
if (n) return r ? "sw-resize" : i ? "nw-resize" : "w-resize";
if (r) return "s-resize";
if (i) return "n-resize";
}
return dk() ? r > 0 && i > 0 ? "move" : r > 0 ? "ew-resize" : "ns-resize" : r > 0 && i > 0 ? "grab" : r > 0 ? "col-resize" : "row-resize";
}
}
var pk = /* @__PURE__ */ new WeakMap();
function mk(e) {
if (!e.defaultView || !e.adoptedStyleSheets) return;
let { prevStyle: t, styleSheet: n } = pk.get(e) ?? {};
n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && (Object.isExtensible(e.adoptedStyleSheets) ? e.adoptedStyleSheets.push(n) : e.adoptedStyleSheets = [...e.adoptedStyleSheets, n]));
let r = XO();
switch (r.state) {
case "active":
case "hover": {
let e = fk({
cursorFlags: r.cursorFlags,
axes: r.hitRegions.map((e) => e.axis),
state: r.state
}), i = `*, *:hover {cursor: ${e} !important; }`;
if (t === i) return;
t = i, e ? n.cssRules.length === 0 ? n.insertRule(i) : n.replaceSync(i) : n.cssRules.length === 1 && n.deleteRule(0);
break;
}
case "inactive": t = void 0, n.cssRules.length === 1 && n.deleteRule(0);
}
pk.set(e, {
prevStyle: t,
styleSheet: n
});
}
function hk({ axis: e }) {
let { layoutStrategy: t, orientation: n, items: r } = e;
return t ? t.calculateAvailableSize() : r.reduce((e, t) => (e += n === "horizontal" ? t.element.offsetWidth : t.element.offsetHeight, e), 0);
}
function gk(e, t) {
let n = e.compareDocumentPosition(t);
return n & Node.DOCUMENT_POSITION_DISCONNECTED ? 0 : n & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
}
function _k(e, t) {
return Array.from(t).sort((t, n) => {
let r = e === "horizontal" ? vk(t, n) : yk(t, n);
return r === 0 ? gk(t.element, n.element) : r;
});
}
function vk(e, t) {
let n = e.element.offsetLeft - t.element.offsetLeft;
return n === 0 ? e.element.offsetWidth - t.element.offsetWidth : n;
}
function yk(e, t) {
let n = e.element.offsetTop - t.element.offsetTop;
return n === 0 ? e.element.offsetHeight - t.element.offsetHeight : n;
}
function bk(e) {
return typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
}
function xk(e, t) {
return {
x: e.x >= t.left && e.x <= t.right ? 0 : Math.min(Math.abs(e.x - t.left), Math.abs(e.x - t.right)),
y: e.y >= t.top && e.y <= t.bottom ? 0 : Math.min(Math.abs(e.y - t.top), Math.abs(e.y - t.bottom))
};
}
function Sk({ orientation: e, rects: t, targetRect: n }) {
let r = {
x: n.x + n.width / 2,
y: n.y + n.height / 2
}, i, a = Number.MAX_VALUE;
for (let n of t) {
let { x: t, y: o } = xk(r, n), s = e === "horizontal" ? t : o;
s < a && (a = s, i = n);
}
return HO(i, "No rect found"), i;
}
function Ck({ expandHitTargets: e = !0, axis: t, includeDisabled: n = !1 }) {
if (t.layoutStrategy) return t.layoutStrategy.calculateHitRegions({
expandHitTargets: e,
axis: t,
includeDisabled: n
});
let { element: r, orientation: i, items: a, separators: o } = t, s = _k(i, Array.from(r.children).filter(bk).filter((e) => !e.hasAttribute("data-resize-preview")).map((e) => ({ element: e }))).map(({ element: e }) => e), c = [], l = !1, u = !1, d = -1, f, p = -1, m = 0, h, g = [];
{
let e = -1;
for (let t of s) t.hasAttribute("data-panel") && (e++, t.hasAttribute("data-disabled") || (m++, d === -1 && (d = e), p = e));
}
if (n || m > 1) {
let r = -1;
for (let m of s) if (m.hasAttribute("data-panel")) {
r++;
let o = a.find((e) => e.element === m);
if (o) {
if (h) {
let a = h.element.getBoundingClientRect(), s = m.getBoundingClientRect(), _;
if (u) {
let e = i === "horizontal" ? new DOMRect(a.right, a.top, 0, a.height) : new DOMRect(a.left, a.bottom, a.width, 0), t = i === "horizontal" ? new DOMRect(s.left, s.top, 0, s.height) : new DOMRect(s.left, s.top, s.width, 0);
switch (g.length) {
case 0:
_ = [e, t];
break;
case 1: {
let n = g[0];
_ = [n, Sk({
orientation: i,
rects: [a, s],
targetRect: n.element.getBoundingClientRect()
}) === a ? t : e];
break;
}
default: _ = g;
}
} else _ = g.length ? g : [i === "horizontal" ? new DOMRect(a.right, s.top, s.left - a.right, s.height) : new DOMRect(s.left, a.bottom, s.width, s.top - a.bottom)];
for (let i of _) {
let a = GO({
expandHitTargets: e,
axis: t,
rect: "width" in i ? i : i.element.getBoundingClientRect()
});
(n || !l && !(r <= d || r > p)) && (f ??= hk({ axis: t }), c.push({
axis: t,
axisSize: f,
items: [h, o],
separator: "width" in i ? void 0 : i,
rect: a
})), l = !1;
}
}
u = !1, h = o, g = [];
}
} else if (m.hasAttribute("data-separator")) {
m.ariaDisabled !== null && (l = !0);
let e = o.find((e) => e.element === m);
e ? g.push(e) : (h = void 0, g = []);
} else u = !0;
}
return c;
}
function wk(e, t) {
let n = getComputedStyle(e);
return t * parseFloat(n.fontSize);
}
function Tk(e, t) {
let n = getComputedStyle(e.ownerDocument.documentElement);
return t * parseFloat(n.fontSize);
}
function Ek(e) {
return e / 100 * window.innerHeight;
}
function Dk(e) {
return e / 100 * window.innerWidth;
}
function Ok({ axisSize: e, itemElement: t, styleProp: n }) {
let r, [i, a] = KO(n);
switch (a) {
case "%":
r = i / 100 * e;
break;
case "px":
r = i;
break;
case "rem":
r = Tk(t, i);
break;
case "em":
r = wk(t, i);
break;
case "vh":
r = Ek(i);
break;
case "vw": r = Dk(i);
}
return r;
}
function kk(e) {
return parseFloat(e.toFixed(3));
}
function Ak(e) {
let { items: t } = e, n = hk({ axis: e });
return n === 0 ? t.map((e) => ({
groupResizeBehavior: e.constraintProps.groupResizeBehavior,
collapsedSize: 0,
collapsible: e.constraintProps.collapsible === !0,
defaultSize: void 0,
disabled: e.constraintProps.disabled,
minSize: 0,
maxSize: 100,
itemId: e.id
})) : t.map((e) => {
let { element: t, constraintProps: r } = e, i = 0;
r.collapsedSize !== void 0 && (i = kk(Ok({
axisSize: n,
itemElement: t,
styleProp: r.collapsedSize
}) / n * 100));
let a;
r.collapsedThreshold !== void 0 && (a = kk(Ok({
axisSize: n,
itemElement: t,
styleProp: r.collapsedThreshold
}) / n * 100));
let o;
r.defaultSize !== void 0 && (o = kk(Ok({
axisSize: n,
itemElement: t,
styleProp: r.defaultSize
}) / n * 100));
let s = 0;
r.minSize !== void 0 && (s = kk(Ok({
axisSize: n,
itemElement: t,
styleProp: r.minSize
}) / n * 100));
let c = 100;
return r.maxSize !== void 0 && (c = kk(Ok({
axisSize: n,
itemElement: t,
styleProp: r.maxSize
}) / n * 100)), {
groupResizeBehavior: r.groupResizeBehavior,
collapsedSize: i,
collapsedThreshold: a,
collapsible: r.collapsible === !0,
defaultSize: o,
disabled: r.disabled,
minSize: s,
maxSize: c,
itemId: e.id
};
});
}
var jk = /* @__PURE__ */ new Map(), Mk = new qO();
function Nk(e) {
jk = new Map(jk), jk.delete(e);
}
function Pk(e, t) {
for (let [t] of jk) if (t.id === e) return t;
}
function Fk(e, t) {
for (let [t, n] of jk) if (t.id === e) return n;
if (t) throw Error(`Could not find data for Group with id ${e}`);
}
function Ik() {
return jk;
}
function Lk(e, t) {
return Mk.addListener("axisChange", (n) => {
n.axis.id === e && t(n);
});
}
function Rk(e, t, n) {
let r = jk.get(e);
jk = new Map(jk), jk.set(e, t), Mk.emit("axisChange", {
axis: e,
isUserInteraction: n?.isUserInteraction === !0,
prev: r,
next: t
});
}
function zk(e, t) {
if (e.length !== t.length) return !1;
for (let n = 0; n < e.length; n++) if (e[n] != t[n]) return !1;
return !0;
}
function Bk(e, t, n = 0) {
return Math.abs(kk(e) - kk(t)) <= n;
}
function Vk(e, t) {
return Bk(e, t) ? 0 : e > t ? 1 : -1;
}
function Hk({ overrideDisabledItems: e, itemConstraints: t, prevSize: n, size: r }) {
let { collapsedSize: i = 0, collapsedThreshold: a, collapsible: o, disabled: s, maxSize: c = 100, minSize: l = 0 } = t;
if (s && !e) return n;
if (Vk(r, l) < 0) {
if (o) {
let e = a ?? (l - i) / 2, t = Vk(n, i) <= 0, o = t ? i + e : l - e, s = Vk(r, o);
r = Vk(r, i) <= 0 || s < 0 || a !== void 0 && t && s === 0 ? i : l;
} else r = l;
}
return r = Math.min(c, r), r = kk(r), r;
}
function Uk({ delta: e, initialLayout: t, itemConstraints: n, pivotIndices: r, prevLayout: i, trigger: a }) {
if (Bk(e, 0)) return t;
let o = a === "imperative-api", s = n.map(({ itemId: e }) => t[e]), c = n.map(({ itemId: e }) => i[e]), l = [...s], [u, d] = r;
HO(u != null, "Invalid first pivot index"), HO(d != null, "Invalid second pivot index");
let f = 0;
switch (a) {
case "keyboard":
{
let t = e < 0 ? d : u, r = n[t];
HO(r, `Panel constraints not found for index ${t}`);
let { collapsedSize: i = 0, collapsible: a, minSize: o = 0 } = r;
if (a) {
let n = s[t];
if (HO(n != null, `Previous layout not found for panel index ${t}`), Bk(n, i)) {
let t = o - n;
Vk(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
}
}
}
{
let t = e < 0 ? u : d, r = n[t];
HO(r, `No panel constraints found for index ${t}`);
let { collapsedSize: i = 0, collapsible: a, minSize: o = 0 } = r;
if (a) {
let n = s[t];
if (HO(n != null, `Previous layout not found for panel index ${t}`), Bk(n, o)) {
let t = n - i;
Vk(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
}
}
}
break;
default: {
let t = e < 0 ? d : u, r = n[t];
HO(r, `Panel constraints not found for index ${t}`);
let i = s[t], { collapsedSize: a, collapsedThreshold: o, collapsible: c, minSize: l } = r;
if (c && Vk(i, l) < 0) {
let t = l - a, n = o ?? t / 2;
if (Vk(i + Math.abs(e), l) < 0) {
let r = Vk(Math.abs(e), n);
e = r > 0 || r === 0 && o === void 0 && e < 0 ? e < 0 ? -t : t : 0;
}
}
break;
}
}
{
let t = e < 0 ? 1 : -1, r = e < 0 ? d : u, i = 0;
for (;;) {
let e = s[r];
HO(e != null, `Previous layout not found for panel index ${r}`);
let a = Hk({
overrideDisabledItems: o,
itemConstraints: n[r],
prevSize: e,
size: 100
}) - e;
if (i += a, r += t, r < 0 || r >= n.length) break;
}
let a = Math.min(Math.abs(e), Math.abs(i));
e = e < 0 ? 0 - a : a;
}
{
let t = e < 0 ? u : d;
for (; t >= 0 && t < n.length;) {
let r = Math.abs(e) - Math.abs(f), i = s[t];
HO(i != null, `Previous layout not found for panel index ${t}`);
let a = i - r, c = Hk({
overrideDisabledItems: o,
itemConstraints: n[t],
prevSize: i,
size: a
});
if (!Bk(i, c) && (f += i - c, l[t] = c, f.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, { numeric: !0 }) >= 0)) break;
e < 0 ? t-- : t++;
}
}
if (zk(c, l)) return i;
{
let t = e < 0 ? d : u, r = s[t];
HO(r != null, `Previous layout not found for panel index ${t}`);
let i = r + f, a = Hk({
overrideDisabledItems: o,
itemConstraints: n[t],
prevSize: r,
size: i
});
if (l[t] = a, !Bk(a, i)) {
let t = i - a, r = e < 0 ? d : u;
for (; r >= 0 && r < n.length;) {
let i = l[r];
HO(i != null, `Previous layout not found for panel index ${r}`);
let a = i + t, s = Hk({
overrideDisabledItems: o,
itemConstraints: n[r],
prevSize: i,
size: a
});
if (Bk(i, s) || (t -= s - i, l[r] = s), Bk(t, 0)) break;
e > 0 ? r-- : r++;
}
}
}
return Bk(Object.values(l).reduce((e, t) => t + e, 0), 100, .1) ? l.reduce((e, t, r) => (e[n[r].itemId] = t, e), {}) : i;
}
function Wk(e, t) {
if (Object.keys(e).length !== Object.keys(t).length) return !1;
for (let n in e) if (t[n] === void 0 || Vk(e[n], t[n]) !== 0) return !1;
return !0;
}
function Gk({ commit: e, document: t, event: n, hitRegions: r, initialLayoutMap: i, mountedAxes: a, pointerDownAtPoint: o, prevCursorFlags: s }) {
let c = 0, l = XO(), u = l.state === "active" ? l.previews : [], d = new Map(l.state === "active" ? l.previewLayoutMap : void 0);
r.forEach((t) => {
let { axis: r, axisSize: s } = t, { orientation: l, items: f } = r;
if (e && r.resizePreviewMode !== "separator") return;
let { disableCursor: p } = r.mutableState, m = 0;
m = o ? l === "horizontal" ? (n.clientX - o.x) / s * 100 : (n.clientY - o.y) / s * 100 : l === "horizontal" ? n.clientX < 0 ? -100 : 100 : n.clientY < 0 ? -100 : 100;
let h = i.get(r), g = a.get(r);
if (!h || !g) return;
let { defaultLayoutDeferred: _, derivedItemConstraints: v, axisSize: y, layout: b, separatorToItems: x } = g;
if (v && b && x) {
let n = r.resizePreviewMode === "separator" ? d.get(r) ?? b : b, i = Uk({
delta: m,
initialLayout: h,
itemConstraints: v,
pivotIndices: t.items.map((e) => f.indexOf(e)),
prevLayout: n,
trigger: "mouse-or-touch"
});
if (r.resizePreviewMode === "separator" && !e && !Wk(i, n)) {
d.set(r, i);
let e = 0, t = f.map((t) => (e += i[t.id] - h[t.id], s / 100 * e));
u = u.map((e) => {
if (e.axis !== r) return e;
let n = t[e.itemIndex];
return n === e.offset ? e : {
...e,
offset: n
};
});
}
if (Wk(i, n) && m !== 0 && !p) switch (l) {
case "horizontal":
c |= m < 0 ? ik : ak;
break;
case "vertical": c |= m < 0 ? ok : sk;
}
(r.resizePreviewMode !== "separator" || e) && !Wk(i, b) && Rk(t.axis, {
defaultLayoutDeferred: _,
derivedItemConstraints: v,
axisSize: y,
layout: i,
requestedAxisSize: y,
requestedLayout: i,
separatorToItems: x
});
}
});
let f = 0;
n.movementX === 0 ? f |= s & ck : f |= c & ck, n.movementY === 0 ? f |= s & lk : f |= c & lk;
let p = l.state === "active" && (n.clientX !== l.pointerDownAtPoint.x || n.clientY !== l.pointerDownAtPoint.y);
QO(f, u, d, p), mk(t);
}
function Kk(e, t) {
let n = XO(), r = Ik(), i = !1;
return n.state === "active" && (Gk({
commit: !0,
document: e,
event: t,
hitRegions: n.hitRegions,
initialLayoutMap: n.initialLayoutMap,
mountedAxes: r,
pointerDownAtPoint: n.pointerDownAtPoint,
prevCursorFlags: n.cursorFlags
}), $O({
cursorFlags: 0,
state: "inactive"
}), n.hitRegions.length > 0 && (mk(e), i = !0, n.hitRegions.forEach((e) => {
if (!r.has(e.axis)) return;
let t = Fk(e.axis.id, !0);
Rk(e.axis, t, { isUserInteraction: !0 });
}))), i;
}
function qk(e) {
e.defaultPrevented || Kk(e.currentTarget, e);
}
function Jk(e, t, n) {
let r, i = {
x: 1 / 0,
y: 1 / 0
};
for (let a of t) {
let t = xk(n, a.rect);
switch (e) {
case "horizontal":
(t.x < i.x || t.x === i.x && t.y <= i.y) && (r = a, i = t);
break;
case "vertical": (t.y < i.y || t.y === i.y && t.x <= i.x) && (r = a, i = t);
}
}
return r ? {
distance: i,
hitRegion: r
} : void 0;
}
function Yk(e) {
return typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
}
function Xk(e, t) {
if (e === t) throw Error("Cannot compare node with itself");
let n = {
a: nA(e),
b: nA(t)
}, r;
for (; n.a.at(-1) === n.b.at(-1);) r = n.a.pop(), n.b.pop();
HO(r, "Stacking order can only be calculated for elements with a common ancestor");
let i = {
a: tA(eA(n.a)),
b: tA(eA(n.b))
};
if (i.a === i.b) {
let e = r.childNodes, t = {
a: n.a.at(-1),
b: n.b.at(-1)
}, i = e.length;
for (; i--;) {
let n = e[i];
if (n === t.a) return 1;
if (n === t.b) return -1;
}
}
return Math.sign(i.a - i.b);
}
var Zk = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
function Qk(e) {
let t = getComputedStyle(rA(e) ?? e).display;
return t === "flex" || t === "inline-flex";
}
function $k(e) {
let t = getComputedStyle(e);
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || Qk(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || Zk.test(t.willChange) || t.webkitOverflowScrolling === "touch");
}
function eA(e) {
let t = e.length;
for (; t--;) {
let n = e[t];
if (HO(n, "Missing node"), $k(n)) return n;
}
return null;
}
function tA(e) {
return e && Number(getComputedStyle(e).zIndex) || 0;
}
function nA(e) {
let t = [];
for (; e;) t.push(e), e = rA(e);
return t;
}
function rA(e) {
let { parentNode: t } = e;
return Yk(t) ? t.host : t;
}
function iA(e, t) {
return e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
}
function aA(e) {
try {
return e.matches(":modal");
} catch {
return !1;
}
}
function oA({ axisElement: e, hitRegion: t, pointerEventTarget: n }) {
if (bk(n)) {
let t = n.closest("dialog");
if (t && !t.contains(e) && aA(t)) return !1;
}
if (!bk(n) || n.contains(e) || e.contains(n)) return !0;
if (Xk(n, e) > 0) {
let r = n;
for (; r;) {
if (r.contains(e)) return !0;
if (iA(r.getBoundingClientRect(), t)) return !1;
r = r.parentElement;
}
}
return !0;
}
function sA(e, t) {
let n = [];
return t.forEach((t, r) => {
if (r.disabled) return;
let i = Ck({ axis: r }), a = Jk(r.orientation, i, {
x: e.clientX,
y: e.clientY
});
a && a.distance.x <= 0 && a.distance.y <= 0 && oA({
axisElement: r.element,
hitRegion: a.hitRegion.rect,
pointerEventTarget: e.target
}) && n.push(a.hitRegion);
}), n;
}
function cA({ layout: e, itemConstraints: t }) {
let n = t.map(({ itemId: t }) => e[t]), r = [...n], i = r.reduce((e, t) => e + t, 0);
if (Object.keys(e).length !== t.length) throw Error(`Invalid ${t.length} panel layout: ${Object.values(e).map((e) => `${e}%`).join(", ")}`);
if (!Bk(i, 100) && r.length > 0) for (let e = 0; e < t.length; e++) {
let t = r[e];
HO(t != null, `No layout data found for index ${e}`);
let n = 100 / i * t;
r[e] = n;
}
let a = 0;
for (let e = 0; e < t.length; e++) {
let i = n[e];
HO(i != null, `No layout data found for index ${e}`);
let o = r[e];
HO(o != null, `No layout data found for index ${e}`);
let s = Hk({
overrideDisabledItems: !0,
itemConstraints: t[e],
prevSize: i,
size: o
});
o != s && (a += o - s, r[e] = s);
}
if (!Bk(a, 0)) for (let e = 0; e < t.length; e++) {
let n = r[e];
HO(n != null, `No layout data found for index ${e}`);
let i = n + a, o = Hk({
overrideDisabledItems: !0,
itemConstraints: t[e],
prevSize: n,
size: i
});
if (n !== o && (a -= o - n, r[e] = o, Bk(a, 0))) break;
}
return r.reduce((e, n, r) => (e[t[r].itemId] = n, e), {});
}
function lA({ axisId: e, itemId: t }) {
let n = () => {
let t = Ik();
for (let [n, { defaultLayoutDeferred: r, derivedItemConstraints: i, layout: a, axisSize: o, separatorToItems: s }] of t) if (n.id === e) return {
defaultLayoutDeferred: r,
derivedItemConstraints: i,
axis: n,
axisSize: o,
layout: a,
separatorToItems: s
};
throw Error(`Group ${e} not found`);
}, r = () => {
let e = n().derivedItemConstraints.find((e) => e.itemId === t);
if (e !== void 0) return e;
throw Error(`Panel constraints not found for Panel ${t}`);
}, i = () => {
let e = n().axis.items.find((e) => e.id === t);
if (e !== void 0) return e;
throw Error(`Layout not found for Panel ${t}`);
}, a = () => {
let e = n().layout[t];
if (e !== void 0) return e;
throw Error(`Layout not found for Panel ${t}`);
}, o = ({ nextSize: e, items: n, prevLayout: r, derivedItemConstraints: i }) => {
let o = a(), s = n.findIndex((e) => e.id === t), c = s === 0, l = s === n.length - 1;
if (l && e < o && (c || n.slice(0, s).every((e, t) => {
let n = i[t];
return n?.collapsible && Bk(n.collapsedSize, r[n.itemId]);
}))) {
let e = n.slice(0, s).reduce((e, t) => e + r[t.id], 0);
return {
...r,
[t]: kk(100 - e)
};
}
return Uk({
delta: l ? o - e : e - o,
initialLayout: r,
itemConstraints: i,
pivotIndices: l ? [s - 1, s] : [s, s + 1],
prevLayout: r,
trigger: "imperative-api"
});
}, s = (e) => {
if (e === a()) return;
let { defaultLayoutDeferred: t, derivedItemConstraints: r, axis: i, axisSize: s, layout: c, separatorToItems: l } = n(), u = cA({
layout: o({
nextSize: e,
items: i.items,
prevLayout: c,
derivedItemConstraints: r
}),
itemConstraints: r
});
Wk(c, u) || Rk(i, {
defaultLayoutDeferred: t,
derivedItemConstraints: r,
axisSize: s,
layout: u,
requestedAxisSize: s,
requestedLayout: u,
separatorToItems: l
});
};
return {
collapse: () => {
let { collapsible: e, collapsedSize: t } = r(), { mutableValues: n } = i(), o = a();
e && o !== t && (n.expandToSize = o, s(t));
},
expand: () => {
let { collapsible: e, collapsedSize: t, minSize: n } = r(), { mutableValues: o } = i(), c = a();
if (e && c === t) {
let e = o.expandToSize ?? n;
e === 0 && (e = 1), s(e);
}
},
getSize: () => {
let { axis: e } = n(), r = a(), { element: o } = i();
return {
asPercentage: r,
inPixels: e.layoutStrategy ? e.layoutStrategy.getItemSizeInPixels(t) : e.orientation === "horizontal" ? o.offsetWidth : o.offsetHeight
};
},
isCollapsed: () => {
let { collapsible: e, collapsedSize: t } = r(), n = a();
return e && Bk(t, n);
},
resize: (e) => {
let { axis: t } = n(), { element: r } = i(), a = hk({ axis: t }), o = kk(Ok({
axisSize: a,
itemElement: r,
styleProp: e
}) / a * 100);
s(o);
}
};
}
function uA(e) {
e.defaultPrevented || sA(e, Ik()).forEach((t) => {
if (t.separator && !t.separator.disableDoubleClick) {
let n = t.items.find((e) => e.constraintProps.defaultSize !== void 0);
if (n) {
let r = n.constraintProps.defaultSize, i = lA({
axisId: t.axis.id,
itemId: n.id
});
i && r !== void 0 && (i.resize(r), e.preventDefault());
}
}
});
}
function dA(e) {
let t = Ik();
for (let [n] of t) if (n.separators.some((t) => t.element === e)) return n;
throw Error("Could not find parent Group for separator element");
}
function fA({ axisId: e }) {
let t = () => {
let t = Ik();
for (let [n, r] of t) if (n.id === e) return {
axis: n,
...r
};
throw Error(`Could not find Group with id "${e}"`);
};
return {
getLayout() {
let { defaultLayoutDeferred: e, layout: n } = t();
return e ? {} : n;
},
setLayout(e) {
let { defaultLayoutDeferred: n, derivedItemConstraints: r, axis: i, axisSize: a, layout: o, separatorToItems: s } = t(), c = cA({
layout: e,
itemConstraints: r
});
return n ? o : (Wk(o, c) || Rk(i, {
defaultLayoutDeferred: n,
derivedItemConstraints: r,
axisSize: a,
layout: c,
requestedAxisSize: a,
requestedLayout: c,
separatorToItems: s
}), c);
}
};
}
function pA(e, t) {
let n = dA(e), r = Fk(n.id, !0), i = n.separators.find((t) => t.element === e);
HO(i, "Matching separator not found");
let a = r.separatorToItems.get(i);
HO(a, "Matching panels not found");
let o = a.map((e) => n.items.indexOf(e)), s = fA({ axisId: n.id }).getLayout(), c = cA({
layout: Uk({
delta: t,
initialLayout: s,
itemConstraints: r.derivedItemConstraints,
pivotIndices: o,
prevLayout: s,
trigger: "keyboard"
}),
itemConstraints: r.derivedItemConstraints
});
Wk(s, c) || Rk(n, {
defaultLayoutDeferred: r.defaultLayoutDeferred,
derivedItemConstraints: r.derivedItemConstraints,
axisSize: r.axisSize,
layout: c,
requestedAxisSize: r.axisSize,
requestedLayout: c,
separatorToItems: r.separatorToItems
}, { isUserInteraction: !0 });
}
function mA(e) {
if (e.defaultPrevented) return;
let t = e.currentTarget, n = dA(t);
if (!(n.disabled || n.separators.find((e) => e.element === t)?.disabled)) switch (e.key) {
case "ArrowDown":
e.preventDefault(), n.orientation === "vertical" && pA(t, 5);
break;
case "ArrowLeft":
e.preventDefault(), n.orientation === "horizontal" && pA(t, -5);
break;
case "ArrowRight":
e.preventDefault(), n.orientation === "horizontal" && pA(t, 5);
break;
case "ArrowUp":
e.preventDefault(), n.orientation === "vertical" && pA(t, -5);
break;
case "End":
e.preventDefault(), pA(t, 100);
break;
case "Enter": {
e.preventDefault();
let { derivedItemConstraints: r, layout: i, separatorToItems: a } = Fk(n.id, !0), o = n.separators.find((e) => e.element === t);
HO(o, "Matching separator not found");
let s = a.get(o);
HO(s, "Matching panels not found");
let c = s[0], l = r.find((e) => e.itemId === c.id);
if (HO(l, "Panel metadata not found"), l.collapsible) {
let e = i[c.id];
pA(t, (l.collapsedSize === e ? n.mutableState.expandedItemSizes[c.id] ?? l.minSize : l.collapsedSize) - e);
}
break;
}
case "F6": {
e.preventDefault();
let t = n.separators.map((e) => e.element), r = Array.from(t).findIndex((t) => t === e.currentTarget);
HO(r !== null, "Index not found"), t[e.shiftKey ? r > 0 ? r - 1 : t.length - 1 : r + 1 < t.length ? r + 1 : 0].focus({ preventScroll: !0 });
break;
}
case "Home": e.preventDefault(), pA(t, -100);
}
}
function hA(e, t) {
let { element: n, orientation: r, items: i } = e, a = n.getBoundingClientRect(), o = r === "horizontal";
return Ck({
expandHitTargets: !1,
axis: e,
includeDisabled: !0
}).map(({ items: r, rect: s, separator: c }, l) => {
let u = i.indexOf(r[0]), d = o ? s.left + s.width / 2 : s.top + s.height / 2;
return {
active: t.some((t) => {
if (t.axis !== e || t.items[0] !== r[0]) return !1;
if (c || t.separator) return t.separator === c;
let n = o ? t.rect.left + t.rect.width / 2 : t.rect.top + t.rect.height / 2;
return Bk(d, n);
}),
axis: e,
key: c ? `separator-${c.id}` : `panel-${r[0].id}-${l}`,
offset: 0,
itemIndex: u,
rect: new DOMRect((o && !c ? d : s.left) - a.left - n.clientLeft + n.scrollLeft, (!o && !c ? d : s.top) - a.top - n.clientTop + n.scrollTop, o && !c ? 0 : s.width, !o && !c ? 0 : s.height),
separator: c
};
});
}
function gA(e) {
if (e.defaultPrevented || e.pointerType === "mouse" && e.button > 0) return;
let t = Ik(), n = sA(e, t);
if (n.length === 0) return;
let r = /* @__PURE__ */ new Map(), i = !1;
n.forEach((e) => {
e.separator && (i || (i = !0, e.separator.element.focus({
focusVisible: !1,
preventScroll: !0
})));
let n = t.get(e.axis);
n && r.set(e.axis, n.layout);
});
let a = Array.from(r.keys()).flatMap((e) => e.resizePreviewMode === "separator" ? hA(e, n) : []);
$O({
cursorFlags: 0,
didPointerMove: !1,
hitRegions: n,
initialLayoutMap: r,
pointerDownAtPoint: {
x: e.clientX,
y: e.clientY
},
previewLayoutMap: new Map(r),
previews: a,
state: "active"
}), e.preventDefault();
}
function _A(e) {
let t = Ik(), n = XO();
n.state === "active" && Gk({
commit: !1,
document: e.currentTarget,
event: e,
hitRegions: n.hitRegions,
initialLayoutMap: n.initialLayoutMap,
mountedAxes: t,
prevCursorFlags: n.cursorFlags
});
}
function vA(e) {
if (e.defaultPrevented) return;
let t = XO(), n = Ik();
switch (t.state) {
case "active":
if (e.buttons === 0) {
t.previewLayoutMap.forEach((e, t) => {
let r = n.get(t);
t.resizePreviewMode === "separator" && r && !Wk(e, r.layout) && Rk(t, {
...r,
layout: e,
requestedAxisSize: r.axisSize,
requestedLayout: e
});
}), $O({
cursorFlags: 0,
state: "inactive"
}), t.hitRegions.forEach((e) => {
if (!n.has(e.axis)) return;
let t = Fk(e.axis.id, !0);
Rk(e.axis, t, { isUserInteraction: !0 });
}), mk(e.currentTarget);
return;
}
for (let n of t.hitRegions) if (n.separator) {
let { element: t } = n.separator;
t.isConnected && !t.hasPointerCapture?.(e.pointerId) && t.setPointerCapture?.(e.pointerId);
}
Gk({
commit: !1,
document: e.currentTarget,
event: e,
hitRegions: t.hitRegions,
initialLayoutMap: t.initialLayoutMap,
mountedAxes: n,
pointerDownAtPoint: t.pointerDownAtPoint,
prevCursorFlags: t.cursorFlags
});
break;
default: {
let r = sA(e, n);
r.length === 0 ? t.state !== "inactive" && $O({
cursorFlags: 0,
state: "inactive"
}) : $O({
cursorFlags: 0,
hitRegions: r,
state: "hover"
}), mk(e.currentTarget);
break;
}
}
}
function yA(e) {
if (e.relatedTarget instanceof HTMLIFrameElement) switch (XO().state) {
case "hover": $O({
cursorFlags: 0,
state: "inactive"
});
}
}
function bA(e) {
e.defaultPrevented || e.pointerType === "mouse" && e.button > 0 || Kk(e.currentTarget, e) && e.preventDefault();
}
function xA(e) {
let t = 0, n = 0, r = {};
for (let i of e) if (i.defaultSize !== void 0) {
t++;
let e = kk(i.defaultSize);
n += e, r[i.itemId] = e;
} else r[i.itemId] = void 0;
let i = e.length - t;
if (i !== 0) {
let t = kk((100 - n) / i);
for (let n of e) n.defaultSize === void 0 && (r[n.itemId] = t);
}
return r;
}
function SA(e, t) {
let n = e.map((e) => e.id), r = Object.keys(t);
if (n.length !== r.length) return !1;
for (let e of n) if (!r.includes(e)) return !1;
return !0;
}
function CA({ axis: e, itemConstraints: t }) {
let n = e.items.map(({ id: e }) => e).join(","), r = e.mutableState.defaultLayout;
return e.mutableState.layouts[n] ?? (r && SA(e.items, r) ? r : xA(t));
}
function wA({ itemIds: e, layout: t }) {
return cA({
layout: t,
itemConstraints: e.map((e) => ({
collapsedSize: 0,
collapsible: !1,
defaultSize: void 0,
disabled: void 0,
itemId: e,
maxSize: 100,
minSize: 0
}))
});
}
function TA(e, t, n) {
if (!n[0]) return;
let r = e.items.find((e) => e.element === t);
if (!r || !r.onResize) return;
let i = hk({ axis: e }), a = e.orientation === "horizontal" ? r.element.offsetWidth : r.element.offsetHeight, o = r.mutableValues.prevSize, s = {
asPercentage: kk(a / i * 100),
inPixels: a
};
r.mutableValues.prevSize = s, r.onResize(s, r.id, o);
}
function EA(e, t) {
if (Object.keys(e).length !== Object.keys(t).length) return !1;
for (let n in e) if (e[n] !== t[n]) return !1;
return !0;
}
function DA(e, t) {
return e.length === t.length && e.every((e, n) => EA(e, t[n]));
}
function OA({ axis: e, nextAxisSize: t, prevAxisSize: n, prevLayout: r }) {
if (n <= 0 || t <= 0 || n === t) return r;
let i = 0, a = 0, o = !1, s = /* @__PURE__ */ new Map(), c = [];
for (let l of e.items) {
let e = r[l.id] ?? 0;
switch (l.constraintProps.groupResizeBehavior) {
case "preserve-pixel-size": {
o = !0;
let r = kk(e / 100 * n / t * 100);
s.set(l.id, r), i += r;
break;
}
default: c.push(l.id), a += e;
}
}
if (!o || c.length === 0) return r;
let l = 100 - i, u = { ...r };
if (s.forEach((e, t) => {
u[t] = e;
}), a > 0) for (let e of c) u[e] = kk((r[e] ?? 0) / a * l);
else {
let e = kk(l / c.length);
for (let t of c) u[t] = e;
}
return u;
}
var kA = /* @__PURE__ */ new Map();
function AA(e) {
let t = !0;
HO(e.element.ownerDocument.defaultView, "Cannot register an unmounted Group");
let n = e.element.ownerDocument.defaultView.ResizeObserver, r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = new n((n) => {
for (let r of n) {
let { borderBoxSize: n, target: i } = r;
if (i === e.element) {
if (t) {
let t = hk({ axis: e });
if (t === 0) return;
let n = Fk(e.id);
if (!n) return;
let r = Ak(e), i = n.requestedAxisSize, a = n.requestedLayout;
n.defaultLayoutDeferred && (i = t, a = wA({
itemIds: e.items.map(({ id: e }) => e),
layout: CA({
axis: e,
itemConstraints: r
})
}));
let o = cA({
layout: OA({
axis: e,
nextAxisSize: t,
prevAxisSize: i,
prevLayout: a
}),
itemConstraints: r
});
if (!n.defaultLayoutDeferred && Wk(n.layout, o) && DA(n.derivedItemConstraints, r) && n.axisSize === t) continue;
Rk(e, {
defaultLayoutDeferred: !1,
derivedItemConstraints: r,
axisSize: t,
layout: o,
requestedAxisSize: i,
requestedLayout: a,
separatorToItems: n.separatorToItems
});
}
} else TA(e, i, n);
}
});
a.observe(e.element), e.items.forEach((e) => {
HO(!r.has(e.id), `Panel ids must be unique; id "${e.id}" was used more than once`), r.add(e.id), e.onResize && a.observe(e.element);
});
let o = hk({ axis: e }), s = Ak(e), c = CA({
axis: e,
itemConstraints: s
}), l = cA({
layout: c,
itemConstraints: s
}), u = e.element.ownerDocument;
kA.set(u, (kA.get(u) ?? 0) + 1);
let d = /* @__PURE__ */ new Map();
return Ck({
axis: e,
includeDisabled: !0
}).forEach((e) => {
e.separator && d.set(e.separator, e.items);
}), Rk(e, {
defaultLayoutDeferred: o === 0,
derivedItemConstraints: s,
axisSize: o,
layout: l,
requestedAxisSize: o,
requestedLayout: wA({
itemIds: e.items.map(({ id: e }) => e),
layout: c
}),
separatorToItems: d
}), e.separators.forEach((e) => {
HO(!i.has(e.id), `Separator ids must be unique; id "${e.id}" was used more than once`), i.add(e.id), e.element.addEventListener("keydown", mA);
}), kA.get(u) === 1 && (u.addEventListener("contextmenu", qk, !0), u.addEventListener("dblclick", uA, !0), u.addEventListener("pointerdown", gA, !0), u.addEventListener("pointerleave", _A), u.addEventListener("pointermove", vA), u.addEventListener("pointerout", yA), u.addEventListener("pointerup", bA, !0)), function() {
t = !1, kA.set(u, Math.max(0, (kA.get(u) ?? 0) - 1)), Nk(e), tk(e) && mk(u), e.separators.forEach((e) => {
e.element.removeEventListener("keydown", mA);
}), kA.get(u) || (u.removeEventListener("contextmenu", qk, !0), u.removeEventListener("dblclick", uA, !0), u.removeEventListener("pointerdown", gA, !0), u.removeEventListener("pointerleave", _A), u.removeEventListener("pointermove", vA), u.removeEventListener("pointerout", yA), u.removeEventListener("pointerup", bA, !0)), a.disconnect();
};
}
function jA({ derivedItemConstraints: e, axis: t, layout: n, prevLayout: r, requestedLayout: i }) {
let a = t.items.map(({ id: e }) => e).join(",");
t.mutableState.layouts[a] = i, r && e.forEach((e) => {
if (e.collapsible) {
let i = Bk(e.collapsedSize, n[e.itemId]), a = Bk(e.collapsedSize, r[e.itemId]);
i && !a && (t.mutableState.expandedItemSizes[e.itemId] = r[e.itemId]);
}
});
}
function MA() {
let [e, t] = H({});
return [e, R(() => t({}), [])];
}
function NA(e) {
let t = V({ ...e });
return zO(() => {
for (let n in e) t.current[n] = e[n];
}, [e]), t.current;
}
var PA = un(null);
function FA({ layout: e, itemConstraints: t, itemId: n, itemIndex: r }) {
let i, a, o = e[n], s = t.find((e) => e.itemId === n);
if (s) {
let c = s.maxSize, l = s.collapsible ? s.collapsedSize : s.minSize, u = [r, r + 1];
a = cA({
layout: Uk({
delta: l - o,
initialLayout: e,
itemConstraints: t,
pivotIndices: u,
prevLayout: e
}),
itemConstraints: t
})[n], i = cA({
layout: Uk({
delta: c - o,
initialLayout: e,
itemConstraints: t,
pivotIndices: u,
prevLayout: e
}),
itemConstraints: t
})[n];
}
return {
valueControls: n,
valueMax: i,
valueMin: a,
valueNow: o
};
}
function IA({ attributes: e, axisId: t, axisOrientation: n, children: r, className: i, disableCursor: a, disabled: o, disableDoubleClick: s, elementRef: c, id: l, isSharedHitRegion: u, preview: d, registerSeparator: f, requiredStyle: p, style: m, styleDefaults: h, tabIndex: g = 0, updateSeparatorProps: _ }) {
let v = NA({
disabled: o,
disableDoubleClick: s,
children: r,
className: i,
preview: d,
style: m
}), [y, b] = H({}), [x, S] = H("inactive"), [C, w] = H(!1), T = V(null), E = V(null), D = VO(T, c), O = n === "horizontal" ? "vertical" : "horizontal";
zO(() => {
let e = T.current;
if (e !== null) {
let n = {
disabled: v.disabled,
disableDoubleClick: v.disableDoubleClick,
element: e,
id: l,
get children() {
return v.children;
},
get className() {
return v.className;
},
get preview() {
return v.preview;
},
get style() {
return v.style;
}
};
E.current = n;
let r = f(n), i = ZO((e) => {
S(e.next.state !== "inactive" && e.next.hitRegions.some((e) => e.separator === n || (u?.(e) ?? !1)) ? e.next.state : "inactive");
}), a = Lk(t, (e) => {
let { derivedItemConstraints: t, layout: r, separatorToItems: i } = e.next, a = i.get(n);
if (a) {
let n = a[0], i = t.findIndex((e) => e.itemId === n.id), { layoutStrategy: o } = e.axis;
b({
...FA({
layout: r,
itemConstraints: t,
itemId: n.id,
itemIndex: i
}),
...o?.getItemAriaControls && { valueControls: o.getItemAriaControls(n.id) }
});
}
});
return () => {
E.current = null, i(), a(), r();
};
}
}, [
t,
l,
u,
f,
v
]), zO(() => {
let e = E.current;
e && ek(e);
}, [d]), z(() => {
_(l, {
disabled: o,
disableDoubleClick: s
});
}, [
o,
s,
l,
_
]);
let k;
o && !a && (k = "not-allowed");
let A;
if (o) A = "disabled";
else switch (x) {
case "active":
A = "active";
break;
default: A = C ? "focus" : x;
}
return /* @__PURE__ */ G("div", {
...e,
"aria-controls": y.valueControls,
"aria-disabled": o || void 0,
"aria-orientation": O,
"aria-valuemax": y.valueMax,
"aria-valuemin": y.valueMin,
"aria-valuenow": y.valueNow,
children: r,
className: i,
"data-separator": A,
"data-testid": l,
id: l,
onBlur: () => w(!1),
onFocus: () => w(!0),
ref: D,
role: "separator",
style: {
...h,
cursor: k,
...m,
...p,
touchAction: "none"
},
tabIndex: o ? void 0 : g
});
}
function LA(e) {
for (let t = 1; t < e.length; t++) if (gk(e[t - 1], e[t]) > 0) return !1;
return !0;
}
function RA({ separator: e }) {
let { element: t } = e, n = V(null);
return zO(() => {
let e = t.cloneNode(!0), r = [t, ...t.querySelectorAll("*")], i = [e, ...e.querySelectorAll("*")], a = t.ownerDocument.defaultView;
return r.forEach((e, t) => {
let n = i[t];
if (n instanceof a.HTMLElement || n instanceof a.SVGElement) {
let t = a.getComputedStyle(e);
for (let e = 0; e < t.length; e++) {
let r = t.item(e);
n.style.setProperty(r, t.getPropertyValue(r));
}
}
n.removeAttribute("data-testid"), n.removeAttribute("id");
}), Object.assign(e.style, {
boxSizing: "border-box",
height: "100%",
margin: "0",
position: "static",
transform: "none",
width: "100%"
}), n.current.appendChild(e), () => e.remove();
}, [t]), /* @__PURE__ */ G("div", {
ref: n,
style: {
height: "100%",
opacity: .65,
pointerEvents: "none",
width: "100%"
}
});
}
function zA() {
let e = mn(PA);
return HO(e, "Group Context not found; did you render a Panel or Separator outside of a Group?"), e;
}
function BA(e) {
let { registerOverlay: t } = zA(), n = V(e);
EA(n.current, e) || (n.current = e);
let r = n.current;
return zO(() => t(r), [t, r]), null;
}
BA.displayName = "SeparatorOverlay";
function VA({ active: e, orientation: t, style: n, ...r }) {
let i;
switch (t) {
case "horizontal":
i = {
height: "100%",
minWidth: "1px"
};
break;
case "vertical": i = {
minHeight: "1px",
width: "100%"
};
}
return /* @__PURE__ */ G("div", {
...r,
"data-separator-overlay": e ? "active" : "inactive",
style: {
...i,
...n,
flexShrink: 0,
pointerEvents: "none"
}
});
}
function HA({ overlay: e, preview: t }) {
let { axis: n, offset: r, rect: i, separator: a } = t, o = n.orientation === "horizontal", s = a?.preview, c = e;
return fn(s) && s.type === BA && (c = s.props, s = void 0), s ?? (c ? s = /* @__PURE__ */ G(VA, {
...c,
active: t.active,
orientation: n.orientation
}) : a && (s = /* @__PURE__ */ G(RA, { separator: a }))), /* @__PURE__ */ G("div", {
"aria-hidden": "true",
"data-resize-preview": !0,
inert: !0,
style: {
height: i.height,
left: i.left,
pointerEvents: "none",
position: "absolute",
top: i.top,
transform: o ? `translateX(${r}px)` : `translateY(${r}px)`,
width: i.width
},
children: s
});
}
function UA(e) {
return Array.from(e).sort(gk);
}
function WA(e, t) {
let n = V({
getLayout: () => ({}),
setLayout: nk
});
_n(t, () => n.current, []), zO(() => {
Object.assign(n.current, fA({ axisId: e }));
});
}
function GA({ groupId: e, resizePreviewMode: t }) {
let [n, r] = H([]), i = V(n);
return zO(() => {
let n = (n) => {
let a = Pk(e), o = t === "separator" && n.state === "active" ? n.previews.filter((e) => e.axis === a && (e.active || !Bk(e.offset, 0))) : [], s = i.current;
s.length === o.length && o.every((e, t) => e === s[t]) || (i.current = o, r(o));
};
if (t !== "separator") {
n(XO());
return;
}
let a = ZO(({ next: e }) => n(e));
return n(XO()), a;
}, [e, t]), n;
}
function KA({ children: e, className: t, defaultLayout: n, disableCursor: r, disabled: i, elementRef: a, groupRef: o, id: s, onLayoutChange: c, onLayoutChanged: l, orientation: u = "horizontal", resizePreviewMode: d = "panel", resizeTargetMinimumSize: f = {
coarse: 20,
fine: 10
}, style: p, ...m }) {
let h = V({
onLayoutChange: {},
onLayoutChanged: {}
}), g = BO((e) => {
Wk(h.current.onLayoutChange, e) || (h.current.onLayoutChange = e, c?.(e));
}), _ = BO((e, t, n) => {
Wk(h.current.onLayoutChanged, e) || (h.current.onLayoutChanged = e, l?.(e, {
isUserInteraction: t,
requestedLayout: n
}));
}), v = RO(s), [y, b] = H(), x = GA({
groupId: v,
resizePreviewMode: d
}), S = V(null), [C, w] = MA(), T = V([]), E = V({
lastExpandedPanelSizes: {},
layouts: {},
panels: [],
separators: []
}), D = VO(S, a);
WA(v, o);
let O = BO((e, t) => {
let r = Fk(e);
if (r) return { flexGrow: r.layout[t] ?? 1 };
if (n?.[t]) return { flexGrow: n?.[t] };
}), k = NA({
defaultLayout: n,
disableCursor: r,
resizeTargetMinimumSize: f
}), A = B(() => ({
get disableCursor() {
return !!k.disableCursor;
},
getPanelStyles: O,
id: v,
orientation: u,
registerPanel: (e) => {
let t = E.current;
return t.panels = _k(u, [...t.panels, e]), w(), () => {
t.panels = t.panels.filter((t) => t !== e), w();
};
},
registerOverlay: (e) => (b(e), () => {
b(void 0);
}),
registerSeparator: (e) => {
let t = E.current;
return t.separators = _k(u, [...t.separators, e]), w(), () => {
t.separators = t.separators.filter((t) => t !== e), w();
};
},
updatePanelProps: (e, { disabled: t }) => {
let n = E.current.panels.find((t) => t.id === e);
n && (n.constraintProps.disabled = t);
let r = Pk(v), i = Fk(v);
r && i && Rk(r, {
...i,
derivedItemConstraints: Ak(r)
});
},
updateSeparatorProps: (e, { disabled: t, disableDoubleClick: n }) => {
let r = E.current.separators.find((t) => t.id === e);
r && (r.disabled = t, r.disableDoubleClick = n);
}
}), [
O,
v,
w,
u,
k
]), ee = V(null);
return zO(() => {
let e = S.current;
if (e === null) return;
let t = E.current;
t.panels = _k(u, t.panels), t.separators = _k(u, t.separators), T.current = UA([...t.panels.map(({ element: e }) => e), ...t.separators.map(({ element: e }) => e)]);
let n;
if (k.defaultLayout !== void 0 && Object.keys(k.defaultLayout).length === t.panels.length) {
n = {};
for (let e of t.panels) {
let t = k.defaultLayout[e.id];
t !== void 0 && (n[e.id] = t);
}
}
let r = {
disabled: !!i,
element: e,
id: v,
mutableState: {
defaultLayout: n,
disableCursor: !!k.disableCursor,
expandedItemSizes: E.current.lastExpandedPanelSizes,
layouts: E.current.layouts
},
orientation: u,
items: t.panels,
resizePreviewMode: d,
get resizeTargetMinimumSize() {
return k.resizeTargetMinimumSize;
},
separators: t.separators
};
ee.current = r;
let a = AA(r), { defaultLayoutDeferred: o, derivedItemConstraints: s, layout: c, requestedLayout: l } = Fk(r.id, !0);
!o && s.length > 0 && (g(c), _(c, !1, l));
let f = Lk(v, (e) => {
let { defaultLayoutDeferred: t, derivedItemConstraints: n, layout: i, requestedLayout: a } = e.next;
if (t || n.length === 0) return;
jA({
derivedItemConstraints: n,
axis: r,
layout: i,
prevLayout: e.prev?.layout,
requestedLayout: a
});
let o = XO(), s = o.state !== "active" || !o.hitRegions.some((e) => e.axis === r);
g(i), s && _(i, e.isUserInteraction, a);
});
return () => {
ee.current = null, a(), f();
};
}, [
i,
v,
_,
g,
u,
C,
d,
k
]), zO(() => {
LA(T.current) || w();
}), z(() => {
let e = ee.current;
e && (e.mutableState.defaultLayout = n, e.mutableState.disableCursor = !!r);
}), /* @__PURE__ */ G(PA.Provider, {
value: A,
children: /* @__PURE__ */ K("div", {
...m,
className: t,
"data-group": !0,
"data-testid": v,
id: v,
ref: D,
style: {
height: "100%",
width: "100%",
overflow: "hidden",
position: d === "separator" ? "relative" : void 0,
...p,
display: "flex",
flexDirection: u === "horizontal" ? "row" : "column",
flexWrap: "nowrap",
touchAction: u === "horizontal" ? "pan-y" : "pan-x"
},
children: [e, x.map((e) => /* @__PURE__ */ G(HA, {
overlay: y,
preview: e
}, e.key))]
})
});
}
KA.displayName = "Group";
function qA(e, t) {
let { id: n } = zA(), r = V({
collapse: rk,
expand: rk,
getSize: () => ({
asPercentage: 0,
inPixels: 0
}),
isCollapsed: () => !1,
resize: rk
});
_n(t, () => r.current, []), zO(() => {
Object.assign(r.current, lA({
axisId: n,
itemId: e
}));
});
}
function JA({ children: e, className: t, collapsedSize: n = "0%", collapsedThreshold: r, collapsible: i = !1, defaultSize: a, disabled: o, elementRef: s, groupResizeBehavior: c = "preserve-relative-size", id: l, maxSize: u = "100%", minSize: d = "0%", onResize: f, panelRef: p, style: m, ...h }) {
let g = !!l, _ = RO(l), v = NA({ disabled: o }), y = V(null), b = VO(y, s), { getPanelStyles: x, id: S, orientation: C, registerPanel: w, updatePanelProps: T } = zA(), E = f !== null, D = BO((e, t, n) => {
f?.(e, l, n);
});
zO(() => {
let e = y.current;
if (e !== null) {
let t = {
element: e,
id: _,
idIsStable: g,
mutableValues: {
expandToSize: void 0,
prevSize: void 0
},
onResize: E ? D : void 0,
constraintProps: {
groupResizeBehavior: c,
collapsedSize: n,
collapsedThreshold: r,
collapsible: i,
defaultSize: a,
disabled: v.disabled,
maxSize: u,
minSize: d
}
};
return w(t);
}
}, [
c,
n,
r,
i,
a,
E,
_,
g,
u,
d,
D,
w,
v
]), z(() => {
T(_, { disabled: o });
}, [
o,
_,
T
]), qA(_, p);
let O = () => {
let e = x(S, _);
if (e) return JSON.stringify(e);
}, k = xn((e) => Lk(S, e), O, O), A;
return A = k ? JSON.parse(k) : a === void 0 ? { flexGrow: 1 } : {
flexGrow: void 0,
flexShrink: void 0,
flexBasis: a
}, /* @__PURE__ */ G("div", {
...h,
"data-disabled": o || void 0,
"data-panel": !0,
"data-testid": _,
id: _,
ref: b,
style: {
...YA,
display: "flex",
flexBasis: 0,
flexShrink: 1,
overflow: "visible",
...A
},
children: /* @__PURE__ */ G("div", {
className: t,
style: {
maxHeight: "100%",
maxWidth: "100%",
flexGrow: 1,
overflow: "auto",
...m,
touchAction: C === "horizontal" ? "pan-y" : "pan-x"
},
children: e
})
});
}
JA.displayName = "Panel";
var YA = {
minHeight: 0,
maxHeight: "100%",
height: "auto",
minWidth: 0,
maxWidth: "100%",
width: "auto",
border: "none",
borderWidth: 0,
padding: 0,
margin: 0
}, XA = { flexBasis: "auto" }, ZA = {
flexGrow: 0,
flexShrink: 0
};
function QA({ children: e, className: t, disabled: n, disableDoubleClick: r, elementRef: i, id: a, preview: o, style: s, ...c }) {
let l = RO(a), { disableCursor: u, id: d, orientation: f, registerSeparator: p, updateSeparatorProps: m } = zA();
return /* @__PURE__ */ G(IA, {
attributes: c,
axisId: d,
axisOrientation: f,
className: t,
disableCursor: u,
disabled: n,
disableDoubleClick: r,
elementRef: i,
id: l,
preview: o,
registerSeparator: p,
requiredStyle: ZA,
style: s,
styleDefaults: XA,
updateSeparatorProps: m,
children: e
});
}
QA.displayName = "Separator";
// src/components/ui/resizable.tsx
var $A = un("horizontal");
function ej({ className: e, orientation: t = "horizontal", ...n }) {
return /* @__PURE__ */ G($A.Provider, {
value: t,
children: /* @__PURE__ */ G(KA, {
"data-slot": "resizable-panel-group",
orientation: t,
"data-orientation": t,
className: Y("size-full", e),
...n
})
});
}
function tj({ ...e }) {
return /* @__PURE__ */ G(JA, {
"data-slot": "resizable-panel",
...e
});
}
function nj({ withHandle: e, className: t, ...n }) {
let r = mn($A);
return /* @__PURE__ */ G(QA, {
"data-slot": "resizable-handle",
"data-orientation": r,
className: Y("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-hidden data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:after:left-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full data-[orientation=vertical]:after:translate-x-0 data-[orientation=vertical]:after:-translate-y-1/2 [&[data-orientation=vertical]>div]:rotate-90", t),
...n,
children: e && /* @__PURE__ */ G("div", {
className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border",
children: /* @__PURE__ */ G($n, { className: "size-2.5" })
})
});
}
// src/components/ui/sonner.tsx
var rj = ({ ...e }) => /* @__PURE__ */ G(zo, {
theme: e.theme,
className: "group",
icons: {
success: /* @__PURE__ */ G(In, { className: "size-4" }),
info: /* @__PURE__ */ G(tr, { className: "size-4" }),
warning: /* @__PURE__ */ G(kr, { className: "size-4" }),
error: /* @__PURE__ */ G(dr, { className: "size-4" }),
loading: /* @__PURE__ */ G(ar, { className: "size-4 animate-spin" })
},
style: {
"--normal-bg": "var(--popover)",
"--normal-text": "var(--popover-foreground)",
"--normal-border": "var(--border)",
"--border-radius": "var(--radius)"
},
...e
}), ij = Object.freeze({
position: "absolute",
border: 0,
width: 1,
height: 1,
padding: 0,
margin: -1,
overflow: "hidden",
clip: "rect(0, 0, 0, 0)",
whiteSpace: "nowrap",
wordWrap: "normal"
}), aj = "VisuallyHidden", oj = I.forwardRef((e, t) => /* @__PURE__ */ G($.span, {
...e,
ref: t,
style: {
...ij,
...e.style
}
}));
oj.displayName = aj;
var sj = oj, [cj, lj] = my("Tooltip", [Zw]), uj = Zw(), dj = "TooltipProvider", fj = 700, pj = "tooltip.open", [mj, hj] = cj(dj), gj = (e) => {
let { __scopeTooltip: t, delayDuration: n = fj, skipDelayDuration: r = 300, disableHoverableContent: i = !1, children: a } = e, o = I.useRef(!0), s = I.useRef(!1), c = I.useRef(0);
return I.useEffect(() => {
let e = c.current;
return () => window.clearTimeout(e);
}, []), /* @__PURE__ */ G(mj, {
scope: t,
isOpenDelayedRef: o,
delayDuration: n,
onOpen: I.useCallback(() => {
window.clearTimeout(c.current), o.current = !1;
}, []),
onClose: I.useCallback(() => {
window.clearTimeout(c.current), c.current = window.setTimeout(() => o.current = !0, r);
}, [r]),
isPointerInTransitRef: s,
onPointerInTransitChange: I.useCallback((e) => {
s.current = e;
}, []),
disableHoverableContent: i,
children: a
});
};
gj.displayName = dj;
var _j = "Tooltip", [vj, yj] = cj(_j), bj = (e) => {
let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: s } = e, c = hj(_j, e.__scopeTooltip), l = uj(t), [u, d] = I.useState(null), f = yy(), p = I.useRef(0), m = o ?? c.disableHoverableContent, h = s ?? c.delayDuration, g = I.useRef(!1), [_, v] = xy({
prop: r,
defaultProp: i ?? !1,
onChange: (e) => {
e ? (c.onOpen(), document.dispatchEvent(new CustomEvent(pj))) : c.onClose(), a?.(e);
},
caller: _j
}), y = I.useMemo(() => _ ? g.current ? "delayed-open" : "instant-open" : "closed", [_]), b = I.useCallback(() => {
window.clearTimeout(p.current), p.current = 0, g.current = !1, v(!0);
}, [v]), x = I.useCallback(() => {
window.clearTimeout(p.current), p.current = 0, v(!1);
}, [v]), S = I.useCallback(() => {
window.clearTimeout(p.current), p.current = window.setTimeout(() => {
g.current = !0, v(!0), p.current = 0;
}, h);
}, [h, v]);
return I.useEffect(() => () => {
p.current &&= (window.clearTimeout(p.current), 0);
}, []), /* @__PURE__ */ G(pT, {
...l,
children: /* @__PURE__ */ G(vj, {
scope: t,
contentId: f,
open: _,
stateAttribute: y,
trigger: u,
onTriggerChange: d,
onTriggerEnter: I.useCallback(() => {
c.isOpenDelayedRef.current ? S() : b();
}, [
c.isOpenDelayedRef,
S,
b
]),
onTriggerLeave: I.useCallback(() => {
m ? x() : (window.clearTimeout(p.current), p.current = 0);
}, [x, m]),
onOpen: b,
onClose: x,
disableHoverableContent: m,
children: n
})
});
};
bj.displayName = _j;
var xj = "TooltipTrigger", Sj = I.forwardRef((e, t) => {
let { __scopeTooltip: n, ...r } = e, i = yj(xj, n), a = hj(xj, n), o = uj(n), s = Zv(t, I.useRef(null), i.onTriggerChange), c = I.useRef(!1), l = I.useRef(!1), u = I.useCallback(() => c.current = !1, []);
return I.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ G(mT, {
asChild: !0,
...o,
children: /* @__PURE__ */ G($.button, {
"aria-describedby": i.open ? i.contentId : void 0,
"data-state": i.stateAttribute,
...r,
ref: s,
onPointerMove: Q(e.onPointerMove, (e) => {
e.pointerType !== "touch" && !l.current && !a.isPointerInTransitRef.current && (i.onTriggerEnter(), l.current = !0);
}),
onPointerLeave: Q(e.onPointerLeave, () => {
i.onTriggerLeave(), l.current = !1;
}),
onPointerDown: Q(e.onPointerDown, () => {
i.open && i.onClose(), c.current = !0, document.addEventListener("pointerup", u, { once: !0 });
}),
onFocus: Q(e.onFocus, () => {
c.current || i.onOpen();
}),
onBlur: Q(e.onBlur, i.onClose),
onClick: Q(e.onClick, i.onClose)
})
});
});
Sj.displayName = xj;
var Cj = "TooltipPortal", [wj, Tj] = cj(Cj, { forceMount: void 0 }), Ej = (e) => {
let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a = yj(Cj, t);
return /* @__PURE__ */ G(wj, {
scope: t,
forceMount: n,
children: /* @__PURE__ */ G(fb, {
present: n || a.open,
children: /* @__PURE__ */ G(ub, {
asChild: !0,
container: i,
children: r
})
})
});
};
Ej.displayName = Cj;
var Dj = "TooltipContent", Oj = I.forwardRef((e, t) => {
let n = Tj(Dj, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...a } = e, o = yj(Dj, e.__scopeTooltip);
return /* @__PURE__ */ G(fb, {
present: r || o.open,
children: o.disableHoverableContent ? /* @__PURE__ */ G(Nj, {
side: i,
...a,
ref: t
}) : /* @__PURE__ */ G(kj, {
side: i,
...a,
ref: t
})
});
}), kj = I.forwardRef((e, t) => {
let n = yj(Dj, e.__scopeTooltip), r = hj(Dj, e.__scopeTooltip), i = I.useRef(null), a = Zv(t, i), [o, s] = I.useState(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = r, f = I.useCallback(() => {
s(null), d(!1);
}, [d]), p = I.useCallback((e, t) => {
let n = e.currentTarget, r = {
x: e.clientX,
y: e.clientY
}, i = Lj(r, Ij(r, n.getBoundingClientRect())), a = Rj(t.getBoundingClientRect()), o = Bj([...i, ...a]);
s(o), d(!0);
}, [d]);
return I.useEffect(() => () => f(), [f]), I.useEffect(() => {
if (c && u) {
let e = (e) => p(e, u), t = (e) => p(e, c);
return c.addEventListener("pointerleave", e), u.addEventListener("pointerleave", t), () => {
c.removeEventListener("pointerleave", e), u.removeEventListener("pointerleave", t);
};
}
}, [
c,
u,
p,
f
]), I.useEffect(() => {
if (o) {
let e = (e) => {
let t = e.target, n = {
x: e.clientX,
y: e.clientY
}, r = c?.contains(t) || u?.contains(t), i = !zj(n, o);
r ? f() : i && (f(), l());
};
return document.addEventListener("pointermove", e), () => document.removeEventListener("pointermove", e);
}
}, [
c,
u,
o,
l,
f
]), /* @__PURE__ */ G(Nj, {
...e,
ref: a
});
}), [Aj, jj] = cj(_j, { isInside: !1 }), Mj = /* @__PURE__ */ Dy("TooltipContent"), Nj = I.forwardRef((e, t) => {
let { __scopeTooltip: n, children: r, "aria-label": i, onEscapeKeyDown: a, onPointerDownOutside: o, ...s } = e, c = yj(Dj, n), l = uj(n), { onClose: u } = c;
return I.useEffect(() => (document.addEventListener(pj, u), () => document.removeEventListener(pj, u)), [u]), I.useEffect(() => {
if (c.trigger) {
let e = (e) => {
e.target?.contains(c.trigger) && u();
};
return window.addEventListener("scroll", e, { capture: !0 }), () => window.removeEventListener("scroll", e, { capture: !0 });
}
}, [c.trigger, u]), /* @__PURE__ */ G(By, {
asChild: !0,
disableOutsidePointerEvents: !1,
onEscapeKeyDown: a,
onPointerDownOutside: o,
onFocusOutside: (e) => e.preventDefault(),
onDismiss: u,
children: /* @__PURE__ */ K(hT, {
"data-state": c.stateAttribute,
...l,
...s,
ref: t,
style: {
...s.style,
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
},
children: [/* @__PURE__ */ G(Mj, { children: r }), /* @__PURE__ */ G(Aj, {
scope: n,
isInside: !0,
children: /* @__PURE__ */ G(sj, {
id: c.contentId,
role: "tooltip",
children: i || r
})
})]
})
});
});
Oj.displayName = Dj;
var Pj = "TooltipArrow", Fj = I.forwardRef((e, t) => {
let { __scopeTooltip: n, ...r } = e, i = uj(n);
return jj(Pj, n).isInside ? null : /* @__PURE__ */ G(gT, {
...i,
...r,
ref: t
});
});
Fj.displayName = Pj;
function Ij(e, t) {
let n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
switch (Math.min(n, r, i, a)) {
case a: return "left";
case i: return "right";
case n: return "top";
case r: return "bottom";
default: throw Error("unreachable");
}
}
function Lj(e, t, n = 5) {
let r = [];
switch (t) {
case "top":
r.push({
x: e.x - n,
y: e.y + n
}, {
x: e.x + n,
y: e.y + n
});
break;
case "bottom":
r.push({
x: e.x - n,
y: e.y - n
}, {
x: e.x + n,
y: e.y - n
});
break;
case "left":
r.push({
x: e.x + n,
y: e.y - n
}, {
x: e.x + n,
y: e.y + n
});
break;
case "right": r.push({
x: e.x - n,
y: e.y - n
}, {
x: e.x - n,
y: e.y + n
});
}
return r;
}
function Rj(e) {
let { top: t, right: n, bottom: r, left: i } = e;
return [
{
x: i,
y: t
},
{
x: n,
y: t
},
{
x: n,
y: r
},
{
x: i,
y: r
}
];
}
function zj(e, t) {
let { x: n, y: r } = e, i = !1;
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
l > r != d > r && n < (u - c) * (r - l) / (d - l) + c && (i = !i);
}
return i;
}
function Bj(e) {
let t = e.slice();
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)), Vj(t);
}
function Vj(e) {
if (e.length <= 1) return e.slice();
let t = [];
for (let n = 0; n < e.length; n++) {
let r = e[n];
for (; t.length >= 2;) {
let e = t[t.length - 1], n = t[t.length - 2];
if ((e.x - n.x) * (r.y - n.y) >= (e.y - n.y) * (r.x - n.x)) t.pop();
else break;
}
t.push(r);
}
t.pop();
let n = [];
for (let t = e.length - 1; t >= 0; t--) {
let r = e[t];
for (; n.length >= 2;) {
let e = n[n.length - 1], t = n[n.length - 2];
if ((e.x - t.x) * (r.y - t.y) >= (e.y - t.y) * (r.x - t.x)) n.pop();
else break;
}
n.push(r);
}
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
}
var Hj = gj, Uj = bj, Wj = Sj, Gj = Ej, Kj = Oj, qj = Fj;
// src/components/ui/tooltip.tsx
function Jj({ delayDuration: e = 0, ...t }) {
return /* @__PURE__ */ G(Hj, {
"data-slot": "tooltip-provider",
delayDuration: e,
...t
});
}
function Yj({ ...e }) {
return /* @__PURE__ */ G(Jj, { children: /* @__PURE__ */ G(Uj, {
"data-slot": "tooltip",
...e
}) });
}
var Xj = dn((e, t) => /* @__PURE__ */ G(Wj, {
ref: t,
"data-slot": "tooltip-trigger",
...e
}));
Xj.displayName = "TooltipTrigger";
function Zj({ className: e, sideOffset: t = 0, children: n, ...r }) {
let { container: i } = dy();
return /* @__PURE__ */ G(Br, { children: /* @__PURE__ */ G(Gj, {
container: i,
children: /* @__PURE__ */ K(Kj, {
"data-slot": "tooltip-content",
sideOffset: t,
className: Y("z-150 w-fit origin-[var(--radix-tooltip-content-transform-origin)] animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", e),
...r,
children: [n, /* @__PURE__ */ G(qj, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })]
})
}) });
}
// src/components/ui/input-group.tsx
function Qj({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "input-group",
role: "group",
className: Y("group/input-group relative flex w-full items-center rounded-md border border-input shadow-sm transition-[color,box-shadow] outline-none dark:bg-input/30", "h-9 min-w-0 has-[>textarea]:h-auto", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50", "has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40", e),
...t
});
}
var $j = Jv("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50", {
variants: { align: {
"inline-start": "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]",
"inline-end": "order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]",
"block-start": "order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5",
"block-end": "order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"
} },
defaultVariants: { align: "inline-start" }
});
function eM({ className: e, align: t = "inline-start", ...n }) {
return /* @__PURE__ */ G("div", {
role: "group",
"data-slot": "input-group-addon",
"data-align": t,
className: Y($j({ align: t }), e),
onClick: (e) => {
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
},
...n
});
}
var tM = Jv("text-sm shadow-none flex gap-2 items-center", {
variants: { size: {
xs: "h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",
sm: "h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5",
"icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
} },
defaultVariants: { size: "xs" }
});
function nM({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
return /* @__PURE__ */ G(Z, {
type: t,
"data-size": r,
variant: n,
className: Y(tM({ size: r }), e),
...i
});
}
function rM({ className: e, ...t }) {
return /* @__PURE__ */ G(LO, {
"data-slot": "input-group-control",
className: Y("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent", e),
...t
});
}
// src/components/icons.tsx
var iM = (e) => /* @__PURE__ */ K("svg", {
width: "100",
height: "100",
viewBox: "0 0 100 100",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
...e,
children: [
/* @__PURE__ */ G("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M49.9994 6.90218L87.3224 28.4506V71.5475L49.9994 93.0959L12.6764 71.5475V28.4506L49.9994 6.90218ZM16.8641 30.8684V62.5242L44.2789 15.0405L16.8641 30.8684ZM49.9994 13.5077L18.3969 68.2448H81.6019L49.9994 13.5077ZM77.4142 72.4325H22.5846L49.9994 88.2604L77.4142 72.4325ZM83.1347 62.5242L55.7199 15.0405L83.1347 30.8684V62.5242Z",
fill: "currentColor"
}),
/* @__PURE__ */ G("path", {
d: "M49.9994 18.14C54.8706 18.14 58.8194 14.1912 58.8194 9.32C58.8194 4.44885 54.8706 0.5 49.9994 0.5C45.1283 0.5 41.1794 4.44885 41.1794 9.32C41.1794 14.1912 45.1283 18.14 49.9994 18.14Z",
fill: "currentColor"
}),
/* @__PURE__ */ G("path", {
d: "M85.2286 38.4796C90.0998 38.4796 94.0486 34.5308 94.0486 29.6596C94.0486 24.7884 90.0998 20.8396 85.2286 20.8396C80.3575 20.8396 76.4086 24.7884 76.4086 29.6596C76.4086 34.5308 80.3575 38.4796 85.2286 38.4796Z",
fill: "currentColor"
}),
/* @__PURE__ */ G("path", {
d: "M85.2286 79.1587C90.0998 79.1587 94.0486 75.2099 94.0486 70.3387C94.0486 65.4675 90.0998 61.5187 85.2286 61.5187C80.3575 61.5187 76.4086 65.4675 76.4086 70.3387C76.4086 75.2099 80.3575 79.1587 85.2286 79.1587Z",
fill: "currentColor"
}),
/* @__PURE__ */ G("path", {
d: "M49.9994 99.4982C54.8706 99.4982 58.8194 95.5494 58.8194 90.6782C58.8194 85.807 54.8706 81.8582 49.9994 81.8582C45.1283 81.8582 41.1794 85.807 41.1794 90.6782C41.1794 95.5494 45.1283 99.4982 49.9994 99.4982Z",
fill: "currentColor"
}),
/* @__PURE__ */ G("path", {
d: "M14.7653 79.1587C19.6365 79.1587 23.5853 75.2099 23.5853 70.3387C23.5853 65.4675 19.6365 61.5187 14.7653 61.5187C9.89416 61.5187 5.94531 65.4675 5.94531 70.3387C5.94531 75.2099 9.89416 79.1587 14.7653 79.1587Z",
fill: "currentColor"
}),
/* @__PURE__ */ G("path", {
d: "M14.7653 38.4796C19.6365 38.4796 23.5853 34.5308 23.5853 29.6596C23.5853 24.7884 19.6365 20.8396 14.7653 20.8396C9.89416 20.8396 5.94531 24.7884 5.94531 29.6596C5.94531 34.5308 9.89416 38.4796 14.7653 38.4796Z",
fill: "currentColor"
})
]
}), aM = "AlertDialog", [oM, sM] = my(aM, [Fx]), cM = Fx(), lM = (e) => {
let { __scopeAlertDialog: t, ...n } = e, r = cM(t);
return /* @__PURE__ */ G(pS, {
...r,
...n,
modal: !0
});
};
lM.displayName = aM;
var uM = "AlertDialogTrigger", dM = I.forwardRef((e, t) => {
let { __scopeAlertDialog: n, ...r } = e, i = cM(n);
return /* @__PURE__ */ G(mS, {
...i,
...r,
ref: t
});
});
dM.displayName = uM;
var fM = "AlertDialogPortal", pM = (e) => {
let { __scopeAlertDialog: t, ...n } = e, r = cM(t);
return /* @__PURE__ */ G(hS, {
...r,
...n
});
};
pM.displayName = fM;
var mM = "AlertDialogOverlay", hM = I.forwardRef((e, t) => {
let { __scopeAlertDialog: n, ...r } = e, i = cM(n);
return /* @__PURE__ */ G(gS, {
...i,
...r,
ref: t
});
});
hM.displayName = mM;
var gM = "AlertDialogContent", [_M, vM] = oM(gM), yM = /* @__PURE__ */ Dy("AlertDialogContent"), bM = I.forwardRef((e, t) => {
let { __scopeAlertDialog: n, children: r, ...i } = e, a = cM(n), o = I.useRef(null), s = Zv(t, o), c = I.useRef(null);
return /* @__PURE__ */ G(cS, {
contentName: gM,
titleName: xM,
docsSlug: "alert-dialog",
children: /* @__PURE__ */ G(_M, {
scope: n,
cancelRef: c,
children: /* @__PURE__ */ K(_S, {
role: "alertdialog",
...a,
...i,
ref: s,
onOpenAutoFocus: Q(i.onOpenAutoFocus, (e) => {
e.preventDefault(), c.current?.focus({ preventScroll: !0 });
}),
onPointerDownOutside: (e) => e.preventDefault(),
onInteractOutside: (e) => e.preventDefault(),
children: [/* @__PURE__ */ G(yM, { children: r }), /* @__PURE__ */ G(kM, { contentRef: o })]
})
})
});
});
bM.displayName = gM;
var xM = "AlertDialogTitle", SM = I.forwardRef((e, t) => {
let { __scopeAlertDialog: n, ...r } = e, i = cM(n);
return /* @__PURE__ */ G(vS, {
...i,
...r,
ref: t
});
});
SM.displayName = xM;
var CM = "AlertDialogDescription", wM = I.forwardRef((e, t) => {
let { __scopeAlertDialog: n, ...r } = e, i = cM(n);
return /* @__PURE__ */ G(yS, {
...i,
...r,
ref: t
});
});
wM.displayName = CM;
var TM = "AlertDialogAction", EM = I.forwardRef((e, t) => {
let { __scopeAlertDialog: n, ...r } = e, i = cM(n);
return /* @__PURE__ */ G(bS, {
...i,
...r,
ref: t
});
});
EM.displayName = TM;
var DM = "AlertDialogCancel", OM = I.forwardRef((e, t) => {
let { __scopeAlertDialog: n, ...r } = e, { cancelRef: i } = vM(DM, n), a = cM(n), o = Zv(t, i);
return /* @__PURE__ */ G(bS, {
...a,
...r,
ref: o
});
});
OM.displayName = DM;
var kM = ({ contentRef: e }) => {
let t = `\`${gM}\` requires a description for the component to be accessible for screen reader users.
You can add a description to the \`${gM}\` by passing a \`${CM}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${gM}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
return I.useEffect(() => {
document.getElementById(e.current?.getAttribute("aria-describedby")) || console.warn(t);
}, [t, e]), null;
}, AM = lM, jM = dM, MM = pM, NM = hM, PM = bM, FM = EM, IM = OM, LM = SM, RM = wM;
// src/components/ui/alert-dialog.tsx
function zM({ ...e }) {
return /* @__PURE__ */ G(AM, {
"data-slot": "alert-dialog",
...e
});
}
var BM = dn((e, t) => /* @__PURE__ */ G(jM, {
ref: t,
"data-slot": "alert-dialog-trigger",
...e
}));
BM.displayName = "AlertDialogTrigger";
function VM({ ...e }) {
let { container: t } = dy();
return /* @__PURE__ */ G(MM, {
"data-slot": "alert-dialog-portal",
...e,
container: t
});
}
function HM({ className: e, ...t }) {
return /* @__PURE__ */ G(NM, {
"data-slot": "alert-dialog-overlay",
className: Y("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
...t
});
}
function UM({ className: e, ...t }) {
return /* @__PURE__ */ K(VM, { children: [/* @__PURE__ */ G(HM, {}), /* @__PURE__ */ G(PM, {
"data-slot": "alert-dialog-content",
className: Y("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg", e),
...t
})] });
}
function WM({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "alert-dialog-header",
className: Y("flex flex-col gap-2 text-center sm:text-left", e),
...t
});
}
function GM({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "alert-dialog-footer",
className: Y("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
...t
});
}
function KM({ className: e, ...t }) {
return /* @__PURE__ */ G(LM, {
"data-slot": "alert-dialog-title",
className: Y("text-lg font-semibold", e),
...t
});
}
function qM({ className: e, ...t }) {
return /* @__PURE__ */ G(RM, {
"data-slot": "alert-dialog-description",
className: Y("text-sm text-muted-foreground", e),
...t
});
}
function JM({ className: e, ...t }) {
return /* @__PURE__ */ G(FM, {
className: Y(ly(), e),
...t
});
}
function YM({ className: e, ...t }) {
return /* @__PURE__ */ G(IM, {
className: Y(ly({ variant: "outline" }), e),
...t
});
}
// ../../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.12_@types+react-dom@18.3.5_@types+react@18.3.18__@types_6a2c1a5f8090d5d61c33ec29a8775d96/node_modules/@radix-ui/react-collapsible/dist/index.mjs
var XM = "Collapsible", [ZM, QM] = my(XM), [$M, eN] = ZM(XM), tN = I.forwardRef((e, t) => {
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] = xy({
prop: r,
defaultProp: i ?? !1,
onChange: o,
caller: XM
});
return /* @__PURE__ */ G($M, {
scope: n,
disabled: a,
contentId: yy(),
open: c,
onOpenToggle: I.useCallback(() => l((e) => !e), [l]),
children: /* @__PURE__ */ G($.div, {
"data-state": sN(c),
"data-disabled": a ? "" : void 0,
...s,
ref: t
})
});
});
tN.displayName = XM;
var nN = "CollapsibleTrigger", rN = I.forwardRef((e, t) => {
let { __scopeCollapsible: n, ...r } = e, i = eN(nN, n);
return /* @__PURE__ */ G($.button, {
type: "button",
"aria-controls": i.contentId,
"aria-expanded": i.open || !1,
"data-state": sN(i.open),
"data-disabled": i.disabled ? "" : void 0,
disabled: i.disabled,
...r,
ref: t,
onClick: Q(e.onClick, i.onOpenToggle)
});
});
rN.displayName = nN;
var iN = "CollapsibleContent", aN = I.forwardRef((e, t) => {
let { forceMount: n, ...r } = e, i = eN(iN, e.__scopeCollapsible);
return /* @__PURE__ */ G(fb, {
present: n || i.open,
children: ({ present: e }) => /* @__PURE__ */ G(oN, {
...r,
ref: t,
present: e
})
});
});
aN.displayName = iN;
var oN = I.forwardRef((e, t) => {
let { __scopeCollapsible: n, present: r, children: i, ...a } = e, o = eN(iN, n), [s, c] = I.useState(r), l = I.useRef(null), u = Zv(t, l), d = I.useRef(0), f = d.current, p = I.useRef(0), m = p.current, h = o.open || s, g = I.useRef(h), _ = I.useRef(void 0);
return I.useEffect(() => {
let e = requestAnimationFrame(() => g.current = !1);
return () => cancelAnimationFrame(e);
}, []), gy(() => {
let e = l.current;
if (e) {
_.current = _.current || {
transitionDuration: e.style.transitionDuration,
animationName: e.style.animationName
}, e.style.transitionDuration = "0s", e.style.animationName = "none";
let t = e.getBoundingClientRect();
d.current = t.height, p.current = t.width, g.current || (e.style.transitionDuration = _.current.transitionDuration, e.style.animationName = _.current.animationName), c(r);
}
}, [o.open, r]), /* @__PURE__ */ G($.div, {
"data-state": sN(o.open),
"data-disabled": o.disabled ? "" : void 0,
id: o.contentId,
hidden: !h,
...a,
ref: u,
style: {
"--radix-collapsible-content-height": f ? `${f}px` : void 0,
"--radix-collapsible-content-width": m ? `${m}px` : void 0,
...e.style
},
children: h && i
});
});
function sN(e) {
return e ? "open" : "closed";
}
var cN = tN;
// src/components/ui/collapsible.tsx
function lN({ ...e }) {
return /* @__PURE__ */ G(cN, {
"data-slot": "collapsible",
...e
});
}
function uN({ ...e }) {
return /* @__PURE__ */ G(rN, {
"data-slot": "collapsible-trigger",
...e
});
}
function dN({ ...e }) {
return /* @__PURE__ */ G(aN, {
"data-slot": "collapsible-content",
...e
});
}
// ../../../node_modules/.pnpm/@radix-ui+number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs
function fN(e, [t, n]) {
return Math.min(n, Math.max(t, e));
}
// ../../../node_modules/.pnpm/@radix-ui+react-scroll-area@1.2.10_@types+react-dom@18.3.5_@types+react@18.3.18__@types_2c4dd8d6f68bafeeea4fce4601e0803c/node_modules/@radix-ui/react-scroll-area/dist/index.mjs
function pN(e, t) {
return I.useReducer((e, n) => t[e][n] ?? e, e);
}
var mN = "ScrollArea", [hN, gN] = my(mN), [_N, vN] = hN(mN), yN = I.forwardRef((e, t) => {
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600, ...o } = e, [s, c] = I.useState(null), [l, u] = I.useState(null), [d, f] = I.useState(null), [p, m] = I.useState(null), [h, g] = I.useState(null), [_, v] = I.useState(0), [y, b] = I.useState(0), [x, S] = I.useState(!1), [C, w] = I.useState(!1), T = Zv(t, (e) => c(e)), E = NS(i);
return /* @__PURE__ */ G(_N, {
scope: n,
type: r,
dir: E,
scrollHideDelay: a,
scrollArea: s,
viewport: l,
onViewportChange: u,
content: d,
onContentChange: f,
scrollbarX: p,
onScrollbarXChange: m,
scrollbarXEnabled: x,
onScrollbarXEnabledChange: S,
scrollbarY: h,
onScrollbarYChange: g,
scrollbarYEnabled: C,
onScrollbarYEnabledChange: w,
onCornerWidthChange: v,
onCornerHeightChange: b,
children: /* @__PURE__ */ G($.div, {
dir: E,
...o,
ref: T,
style: {
position: "relative",
"--radix-scroll-area-corner-width": _ + "px",
"--radix-scroll-area-corner-height": y + "px",
...e.style
}
})
});
});
yN.displayName = mN;
var bN = "ScrollAreaViewport", xN = I.forwardRef((e, t) => {
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = vN(bN, n), s = Zv(t, I.useRef(null), o.onViewportChange);
return /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G("style", {
dangerouslySetInnerHTML: { __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}" },
nonce: i
}), /* @__PURE__ */ G($.div, {
"data-radix-scroll-area-viewport": "",
...a,
ref: s,
style: {
overflowX: o.scrollbarXEnabled ? "scroll" : "hidden",
overflowY: o.scrollbarYEnabled ? "scroll" : "hidden",
...e.style
},
children: /* @__PURE__ */ G("div", {
ref: o.onContentChange,
style: {
minWidth: "100%",
display: "table"
},
children: r
})
})] });
});
xN.displayName = bN;
var SN = "ScrollAreaScrollbar", CN = I.forwardRef((e, t) => {
let { forceMount: n, ...r } = e, i = vN(SN, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: o } = i, s = e.orientation === "horizontal";
return I.useEffect(() => (s ? a(!0) : o(!0), () => {
s ? a(!1) : o(!1);
}), [
s,
a,
o
]), i.type === "hover" ? /* @__PURE__ */ G(wN, {
...r,
ref: t,
forceMount: n
}) : i.type === "scroll" ? /* @__PURE__ */ G(TN, {
...r,
ref: t,
forceMount: n
}) : i.type === "auto" ? /* @__PURE__ */ G(EN, {
...r,
ref: t,
forceMount: n
}) : i.type === "always" ? /* @__PURE__ */ G(DN, {
...r,
ref: t
}) : null;
});
CN.displayName = SN;
var wN = I.forwardRef((e, t) => {
let { forceMount: n, ...r } = e, i = vN(SN, e.__scopeScrollArea), [a, o] = I.useState(!1);
return I.useEffect(() => {
let e = i.scrollArea, t = 0;
if (e) {
let n = () => {
window.clearTimeout(t), o(!0);
}, r = () => {
t = window.setTimeout(() => o(!1), i.scrollHideDelay);
};
return e.addEventListener("pointerenter", n), e.addEventListener("pointerleave", r), () => {
window.clearTimeout(t), e.removeEventListener("pointerenter", n), e.removeEventListener("pointerleave", r);
};
}
}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ G(fb, {
present: n || a,
children: /* @__PURE__ */ G(EN, {
"data-state": a ? "visible" : "hidden",
...r,
ref: t
})
});
}), TN = I.forwardRef((e, t) => {
let { forceMount: n, ...r } = e, i = vN(SN, e.__scopeScrollArea), a = e.orientation === "horizontal", o = qN(() => c("SCROLL_END"), 100), [s, c] = pN("hidden", {
hidden: { SCROLL: "scrolling" },
scrolling: {
SCROLL_END: "idle",
POINTER_ENTER: "interacting"
},
interacting: {
SCROLL: "interacting",
POINTER_LEAVE: "idle"
},
idle: {
HIDE: "hidden",
SCROLL: "scrolling",
POINTER_ENTER: "interacting"
}
});
return I.useEffect(() => {
if (s === "idle") {
let e = window.setTimeout(() => c("HIDE"), i.scrollHideDelay);
return () => window.clearTimeout(e);
}
}, [
s,
i.scrollHideDelay,
c
]), I.useEffect(() => {
let e = i.viewport, t = a ? "scrollLeft" : "scrollTop";
if (e) {
let n = e[t], r = () => {
let r = e[t];
n !== r && (c("SCROLL"), o()), n = r;
};
return e.addEventListener("scroll", r), () => e.removeEventListener("scroll", r);
}
}, [
i.viewport,
a,
c,
o
]), /* @__PURE__ */ G(fb, {
present: n || s !== "hidden",
children: /* @__PURE__ */ G(DN, {
"data-state": s === "hidden" ? "hidden" : "visible",
...r,
ref: t,
onPointerEnter: Q(e.onPointerEnter, () => c("POINTER_ENTER")),
onPointerLeave: Q(e.onPointerLeave, () => c("POINTER_LEAVE"))
})
});
}), EN = I.forwardRef((e, t) => {
let n = vN(SN, e.__scopeScrollArea), { forceMount: r, ...i } = e, [a, o] = I.useState(!1), s = e.orientation === "horizontal", c = qN(() => {
if (n.viewport) {
let e = n.viewport.offsetWidth < n.viewport.scrollWidth, t = n.viewport.offsetHeight < n.viewport.scrollHeight;
o(s ? e : t);
}
}, 10);
return JN(n.viewport, c), JN(n.content, c), /* @__PURE__ */ G(fb, {
present: r || a,
children: /* @__PURE__ */ G(DN, {
"data-state": a ? "visible" : "hidden",
...i,
ref: t
})
});
}), DN = I.forwardRef((e, t) => {
let { orientation: n = "vertical", ...r } = e, i = vN(SN, e.__scopeScrollArea), a = I.useRef(null), o = I.useRef(0), [s, c] = I.useState({
content: 0,
viewport: 0,
scrollbar: {
size: 0,
paddingStart: 0,
paddingEnd: 0
}
}), l = BN(s.viewport, s.content), u = {
...r,
sizes: s,
onSizesChange: c,
hasThumb: l > 0 && l < 1,
onThumbChange: (e) => a.current = e,
onThumbPointerUp: () => o.current = 0,
onThumbPointerDown: (e) => o.current = e
};
function d(e, t) {
return HN(e, o.current, s, t);
}
return n === "horizontal" ? /* @__PURE__ */ G(ON, {
...u,
ref: t,
onThumbPositionChange: () => {
if (i.viewport && a.current) {
let e = i.viewport.scrollLeft, t = UN(e, s, i.dir);
a.current.style.transform = `translate3d(${t}px, 0, 0)`;
}
},
onWheelScroll: (e) => {
i.viewport && (i.viewport.scrollLeft = e);
},
onDragScroll: (e) => {
i.viewport && (i.viewport.scrollLeft = d(e, i.dir));
}
}) : n === "vertical" ? /* @__PURE__ */ G(kN, {
...u,
ref: t,
onThumbPositionChange: () => {
if (i.viewport && a.current) {
let e = i.viewport.scrollTop, t = UN(e, s);
a.current.style.transform = `translate3d(0, ${t}px, 0)`;
}
},
onWheelScroll: (e) => {
i.viewport && (i.viewport.scrollTop = e);
},
onDragScroll: (e) => {
i.viewport && (i.viewport.scrollTop = d(e));
}
}) : null;
}), ON = I.forwardRef((e, t) => {
let { sizes: n, onSizesChange: r, ...i } = e, a = vN(SN, e.__scopeScrollArea), [o, s] = I.useState(), c = I.useRef(null), l = Zv(t, c, a.onScrollbarXChange);
return I.useEffect(() => {
c.current && s(getComputedStyle(c.current));
}, [c]), /* @__PURE__ */ G(MN, {
"data-orientation": "horizontal",
...i,
ref: l,
sizes: n,
style: {
bottom: 0,
left: a.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
right: a.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
"--radix-scroll-area-thumb-width": VN(n) + "px",
...e.style
},
onThumbPointerDown: (t) => e.onThumbPointerDown(t.x),
onDragScroll: (t) => e.onDragScroll(t.x),
onWheelScroll: (t, n) => {
if (a.viewport) {
let r = a.viewport.scrollLeft + t.deltaX;
e.onWheelScroll(r), GN(r, n) && t.preventDefault();
}
},
onResize: () => {
c.current && a.viewport && o && r({
content: a.viewport.scrollWidth,
viewport: a.viewport.offsetWidth,
scrollbar: {
size: c.current.clientWidth,
paddingStart: zN(o.paddingLeft),
paddingEnd: zN(o.paddingRight)
}
});
}
});
}), kN = I.forwardRef((e, t) => {
let { sizes: n, onSizesChange: r, ...i } = e, a = vN(SN, e.__scopeScrollArea), [o, s] = I.useState(), c = I.useRef(null), l = Zv(t, c, a.onScrollbarYChange);
return I.useEffect(() => {
c.current && s(getComputedStyle(c.current));
}, [c]), /* @__PURE__ */ G(MN, {
"data-orientation": "vertical",
...i,
ref: l,
sizes: n,
style: {
top: 0,
right: a.dir === "ltr" ? 0 : void 0,
left: a.dir === "rtl" ? 0 : void 0,
bottom: "var(--radix-scroll-area-corner-height)",
"--radix-scroll-area-thumb-height": VN(n) + "px",
...e.style
},
onThumbPointerDown: (t) => e.onThumbPointerDown(t.y),
onDragScroll: (t) => e.onDragScroll(t.y),
onWheelScroll: (t, n) => {
if (a.viewport) {
let r = a.viewport.scrollTop + t.deltaY;
e.onWheelScroll(r), GN(r, n) && t.preventDefault();
}
},
onResize: () => {
c.current && a.viewport && o && r({
content: a.viewport.scrollHeight,
viewport: a.viewport.offsetHeight,
scrollbar: {
size: c.current.clientHeight,
paddingStart: zN(o.paddingTop),
paddingEnd: zN(o.paddingBottom)
}
});
}
});
}), [AN, jN] = hN(SN), MN = I.forwardRef((e, t) => {
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p = vN(SN, n), [m, h] = I.useState(null), g = Zv(t, (e) => h(e)), _ = I.useRef(null), v = I.useRef(""), y = p.viewport, b = r.content - r.viewport, x = My(u), S = My(c), C = qN(d, 10);
function w(e) {
if (_.current) {
let t = e.clientX - _.current.left, n = e.clientY - _.current.top;
l({
x: t,
y: n
});
}
}
return I.useEffect(() => {
let e = (e) => {
let t = e.target;
m?.contains(t) && x(e, b);
};
return document.addEventListener("wheel", e, { passive: !1 }), () => document.removeEventListener("wheel", e, { passive: !1 });
}, [
y,
m,
b,
x
]), I.useEffect(S, [r, S]), JN(m, C), JN(p.content, C), /* @__PURE__ */ G(AN, {
scope: n,
scrollbar: m,
hasThumb: i,
onThumbChange: My(a),
onThumbPointerUp: My(o),
onThumbPositionChange: S,
onThumbPointerDown: My(s),
children: /* @__PURE__ */ G($.div, {
...f,
ref: g,
style: {
position: "absolute",
...f.style
},
onPointerDown: Q(e.onPointerDown, (e) => {
e.button === 0 && (e.target.setPointerCapture(e.pointerId), _.current = m.getBoundingClientRect(), v.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", p.viewport && (p.viewport.style.scrollBehavior = "auto"), w(e));
}),
onPointerMove: Q(e.onPointerMove, w),
onPointerUp: Q(e.onPointerUp, (e) => {
let t = e.target;
t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), document.body.style.webkitUserSelect = v.current, p.viewport && (p.viewport.style.scrollBehavior = ""), _.current = null;
})
})
});
}), NN = "ScrollAreaThumb", PN = I.forwardRef((e, t) => {
let { forceMount: n, ...r } = e, i = jN(NN, e.__scopeScrollArea);
return /* @__PURE__ */ G(fb, {
present: n || i.hasThumb,
children: /* @__PURE__ */ G(FN, {
ref: t,
...r
})
});
}), FN = I.forwardRef((e, t) => {
let { __scopeScrollArea: n, style: r, ...i } = e, a = vN(NN, n), o = jN(NN, n), { onThumbPositionChange: s } = o, c = Zv(t, (e) => o.onThumbChange(e)), l = I.useRef(void 0), u = qN(() => {
l.current &&= (l.current(), void 0);
}, 100);
return I.useEffect(() => {
let e = a.viewport;
if (e) {
let t = () => {
if (u(), !l.current) {
let t = KN(e, s);
l.current = t, s();
}
};
return s(), e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
}
}, [
a.viewport,
u,
s
]), /* @__PURE__ */ G($.div, {
"data-state": o.hasThumb ? "visible" : "hidden",
...i,
ref: c,
style: {
width: "var(--radix-scroll-area-thumb-width)",
height: "var(--radix-scroll-area-thumb-height)",
...r
},
onPointerDownCapture: Q(e.onPointerDownCapture, (e) => {
let t = e.target.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
o.onThumbPointerDown({
x: n,
y: r
});
}),
onPointerUp: Q(e.onPointerUp, o.onThumbPointerUp)
});
});
PN.displayName = NN;
var IN = "ScrollAreaCorner", LN = I.forwardRef((e, t) => {
let n = vN(IN, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
return n.type !== "scroll" && r ? /* @__PURE__ */ G(RN, {
...e,
ref: t
}) : null;
});
LN.displayName = IN;
var RN = I.forwardRef((e, t) => {
let { __scopeScrollArea: n, ...r } = e, i = vN(IN, n), [a, o] = I.useState(0), [s, c] = I.useState(0), l = !!(a && s);
return JN(i.scrollbarX, () => {
let e = i.scrollbarX?.offsetHeight || 0;
i.onCornerHeightChange(e), c(e);
}), JN(i.scrollbarY, () => {
let e = i.scrollbarY?.offsetWidth || 0;
i.onCornerWidthChange(e), o(e);
}), l ? /* @__PURE__ */ G($.div, {
...r,
ref: t,
style: {
width: a,
height: s,
position: "absolute",
right: i.dir === "ltr" ? 0 : void 0,
left: i.dir === "rtl" ? 0 : void 0,
bottom: 0,
...e.style
}
}) : null;
});
function zN(e) {
return e ? parseInt(e, 10) : 0;
}
function BN(e, t) {
let n = e / t;
return isNaN(n) ? 0 : n;
}
function VN(e) {
let t = BN(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
return Math.max(r, 18);
}
function HN(e, t, n, r = "ltr") {
let i = VN(n), a = i / 2, o = t || a, s = i - o, c = n.scrollbar.paddingStart + o, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = r === "ltr" ? [0, u] : [u * -1, 0];
return WN([c, l], d)(e);
}
function UN(e, t, n = "ltr") {
let r = VN(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - i, o = t.content - t.viewport, s = a - r, c = fN(e, n === "ltr" ? [0, o] : [o * -1, 0]);
return WN([0, o], [0, s])(c);
}
function WN(e, t) {
return (n) => {
if (e[0] === e[1] || t[0] === t[1]) return t[0];
let r = (t[1] - t[0]) / (e[1] - e[0]);
return t[0] + r * (n - e[0]);
};
}
function GN(e, t) {
return e > 0 && e < t;
}
var KN = (e, t = () => {}) => {
let n = {
left: e.scrollLeft,
top: e.scrollTop
}, r = 0;
return (function i() {
let a = {
left: e.scrollLeft,
top: e.scrollTop
}, o = n.left !== a.left, s = n.top !== a.top;
(o || s) && t(), n = a, r = window.requestAnimationFrame(i);
})(), () => window.cancelAnimationFrame(r);
};
function qN(e, t) {
let n = My(e), r = I.useRef(0);
return I.useEffect(() => () => window.clearTimeout(r.current), []), I.useCallback(() => {
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
}, [n, t]);
}
function JN(e, t) {
let n = My(t);
gy(() => {
let t = 0;
if (e) {
let r = new ResizeObserver(() => {
cancelAnimationFrame(t), t = window.requestAnimationFrame(n);
});
return r.observe(e), () => {
window.cancelAnimationFrame(t), r.unobserve(e);
};
}
}, [e, n]);
}
var YN = yN, XN = xN, ZN = LN;
// src/components/ui/scroll-area.tsx
function QN({ className: e, children: t, ...n }) {
return /* @__PURE__ */ K(YN, {
"data-slot": "scroll-area",
className: Y("relative", e),
...n,
children: [
/* @__PURE__ */ G(XN, {
"data-slot": "scroll-area-viewport",
className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
children: t
}),
/* @__PURE__ */ G($N, {}),
/* @__PURE__ */ G(ZN, {})
]
});
}
function $N({ className: e, orientation: t = "vertical", ...n }) {
return /* @__PURE__ */ G(CN, {
"data-slot": "scroll-area-scrollbar",
orientation: t,
className: Y("flex touch-none p-px transition-colors select-none", t === "vertical" && "h-full w-2.5 border-l border-l-transparent", t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", e),
...n,
children: /* @__PURE__ */ G(PN, {
"data-slot": "scroll-area-thumb",
className: "relative flex-1 rounded-full bg-border"
})
});
}
// src/components/laboratory/collections.tsx
var eP = (e) => {
let { activeOperation: t, operations: n, addOperation: r, setActiveOperation: i, deleteCollection: a, updateCollection: o, deleteOperationFromCollection: s, addTab: c, setActiveTab: l, checkPermissions: u } = dy(), [d, f] = H(!1), [p, m] = H(!1), [h, g] = H(e.collection.name), _ = B(() => e.collection.operations.some((e) => e.id === t?.id), [e.collection.operations, t]);
return z(() => {
_ && f(!0);
}, [_]), /* @__PURE__ */ K(lN, {
open: d,
onOpenChange: f,
children: [/* @__PURE__ */ K("div", {
className: "group sticky top-0 z-10 flex items-center bg-background pr-2",
children: [/* @__PURE__ */ G(uN, {
asChild: !0,
children: p ? /* @__PURE__ */ K(Qj, {
className: "h-8 border-none !bg-accent/50",
children: [
/* @__PURE__ */ G(eM, {
className: "pl-2.5",
children: G(d ? Jn : qn, { className: "size-4 text-muted-foreground" })
}),
/* @__PURE__ */ G(rM, {
autoFocus: !0,
defaultValue: h,
className: "!pl-1.5 font-medium",
onChange: (e) => g(e.target.value),
onKeyDown: (t) => {
t.key === "Enter" && (o(e.collection.id, { name: h }), m(!1)), t.key === "Escape" && (g(e.collection.name), m(!1));
}
}),
/* @__PURE__ */ K(eM, {
align: "inline-end",
children: [/* @__PURE__ */ G(nM, {
className: "p-1!",
"aria-label": "Save collection name",
onClick: (t) => {
t.stopPropagation(), o(e.collection.id, { name: h }), m(!1);
},
children: /* @__PURE__ */ G(Mn, {})
}), /* @__PURE__ */ G(nM, {
className: "p-1!",
"aria-label": "Cancel renaming",
onClick: (t) => {
t.stopPropagation(), m(!1), g(e.collection.name);
},
children: /* @__PURE__ */ G(jr, {})
})]
})
]
}) : /* @__PURE__ */ K(Z, {
variant: "ghost",
className: "!hover:bg-accent/50 min-w-0 flex-1 justify-start px-2",
size: "sm",
children: [G(d ? Jn : qn, { className: "size-4 text-muted-foreground" }), e.collection.name]
})
}), !p && /* @__PURE__ */ K("div", {
className: "ml-auto flex items-center gap-2",
children: [u?.("collections:update") && /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Sj, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "link",
"aria-label": "Edit collection",
className: "p-1! pr-0! text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100",
onClick: (e) => {
e.stopPropagation(), m(!0);
},
children: /* @__PURE__ */ G(mr, {})
})
}), /* @__PURE__ */ G(Zj, { children: "Edit collection" })] }), u?.("collections:delete") && /* @__PURE__ */ K(zM, { children: [/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Sj, {
asChild: !0,
children: /* @__PURE__ */ G(BM, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "link",
"aria-label": "Delete collection",
className: "p-1! pr-0! text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100 hover:text-destructive",
onClick: (e) => {
e.stopPropagation();
},
children: /* @__PURE__ */ G(Or, {})
})
})
}), /* @__PURE__ */ G(Zj, { children: "Delete collection" })] }), /* @__PURE__ */ K(UM, { children: [/* @__PURE__ */ K(WM, { children: [/* @__PURE__ */ G(KM, { children: "Are you sure you want to delete collection?" }), /* @__PURE__ */ K(qM, { children: [e.collection.name, " will be permanently deleted. All operations in this collection will be deleted as well."] })] }), /* @__PURE__ */ K(GM, { children: [/* @__PURE__ */ G(YM, { children: "Cancel" }), /* @__PURE__ */ G(JM, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "destructive",
onClick: (t) => {
t.stopPropagation(), a(e.collection.id);
},
children: "Delete"
})
})] })] })] })]
})]
}), /* @__PURE__ */ G(dN, {
className: Y("ml-4 flex flex-col gap-1 border-l border-border pl-2"),
children: d && e.collection.operations.map((a) => {
let o = t?.id === a.id;
return /* @__PURE__ */ K("div", {
className: Y("group flex w-full items-center rounded-md pr-2", { "bg-accent/50": o }),
children: [/* @__PURE__ */ K(Z, {
variant: "ghost",
className: "min-w-0 flex-1 justify-start gap-2 px-2",
size: "sm",
onClick: () => {
if (n.some((e) => e.id === a.id)) i(a.id);
else {
let e = r(a), t = c({
type: "operation",
data: e
});
l(t);
}
},
children: [/* @__PURE__ */ G(iM, { className: "size-4 text-pink-500" }), a.name]
}), u?.("collectionsOperations:delete") && /* @__PURE__ */ K(zM, { children: [/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Sj, {
asChild: !0,
children: /* @__PURE__ */ G(BM, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "link",
"aria-label": "Delete operation",
className: "ml-auto p-1! pr-0! text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100 hover:text-destructive",
onClick: (e) => {
e.stopPropagation();
},
children: /* @__PURE__ */ G(Or, {})
})
})
}), /* @__PURE__ */ G(Zj, { children: "Delete operation" })] }), /* @__PURE__ */ K(UM, { children: [/* @__PURE__ */ K(WM, { children: [/* @__PURE__ */ K(KM, { children: [
"Are you sure you want to delete operation ",
a.name,
"?"
] }), /* @__PURE__ */ K(qM, { children: [a.name, " will be permanently deleted."] })] }), /* @__PURE__ */ K(GM, { children: [/* @__PURE__ */ G(YM, { children: "Cancel" }), /* @__PURE__ */ G(JM, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "destructive",
onClick: (t) => {
t.stopPropagation(), s(e.collection.id, a.id);
},
children: "Delete"
})
})] })] })] })]
}, a.name);
})
})]
});
}, tP = (e) => {
let { activeOperation: t, operations: n, addOperation: r, setActiveOperation: i, addTab: a, setActiveTab: o } = dy();
return /* @__PURE__ */ G("div", {
className: "flex flex-col gap-1",
children: e.items.map((e) => {
let s = t?.id === e.id;
return /* @__PURE__ */ K(Z, {
variant: "ghost",
className: Y("group w-full justify-start gap-2 px-2", { "bg-accent/50": s }),
size: "sm",
onClick: () => {
if (n.some((t) => t.id === e.id)) i(e.id);
else {
let t = r(e), n = a({
type: "operation",
data: t
});
o(n);
}
},
children: [
/* @__PURE__ */ G(iM, { className: "size-4 text-pink-500" }),
/* @__PURE__ */ G("span", {
className: "truncate text-muted-foreground",
children: e.parent.name
}),
/* @__PURE__ */ G("span", {
className: "text-muted-foreground",
children: " / "
}),
e.name
]
}, e.name);
})
});
}, nP = () => {
let [e, t] = H(""), { collections: n, openAddCollectionDialog: r, checkPermissions: i } = dy(), a = B(() => n.reduce((e, t) => [...e, ...t.operations.map((e) => ({
...e,
parent: t
}))], []).filter((t) => t.name.toLowerCase().includes(e.toLowerCase())), [n, e]);
return /* @__PURE__ */ K("div", {
className: "grid size-full grid-rows-[auto_1fr] pb-0",
children: [/* @__PURE__ */ K("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ K("div", {
className: "flex items-center gap-2 p-3 pb-0",
children: [/* @__PURE__ */ G("span", {
className: "text-base font-medium",
children: "Collections"
}), /* @__PURE__ */ G("div", {
className: "ml-auto flex items-center gap-2",
children: i?.("collections:create") && /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Sj, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "icon-sm",
"aria-label": "Add collection",
className: "size-6 rounded-sm p-1!",
onClick: r,
children: /* @__PURE__ */ G(Yn, { className: "size-4 text-primary" })
})
}), /* @__PURE__ */ G(Zj, { children: "Add collection" })] })
})]
}), /* @__PURE__ */ K("div", {
className: "relative border-b border-border p-3",
children: [
/* @__PURE__ */ G(br, { className: "absolute top-1/2 left-5 size-4 -translate-y-1/2 text-muted-foreground" }),
/* @__PURE__ */ G(LO, {
type: "text",
placeholder: "Search...",
className: Y("px-7"),
value: e,
onChange: (e) => t(e.target.value)
}),
e.length > 0 && /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "icon-sm",
"aria-label": "Clear search",
className: "absolute top-1/2 right-5 size-6 -translate-y-1/2 rounded-sm p-1!",
onClick: () => t(""),
children: /* @__PURE__ */ G(jr, { className: "size-4 text-muted-foreground" })
})
]
})]
}), /* @__PURE__ */ G("div", {
className: "size-full overflow-hidden",
children: /* @__PURE__ */ K(QN, {
className: "size-full",
children: [/* @__PURE__ */ G("div", {
className: "flex flex-col gap-1 p-3",
children: e.length > 0 ? a.length > 0 ? /* @__PURE__ */ G(tP, { items: a }) : /* @__PURE__ */ G(fO, {
className: "w-full px-0!",
children: /* @__PURE__ */ K(pO, { children: [
/* @__PURE__ */ G(hO, {
variant: "icon",
children: /* @__PURE__ */ G(br, { className: "size-6 text-muted-foreground" })
}),
/* @__PURE__ */ G(gO, {
className: "text-base",
children: "No results found"
}),
/* @__PURE__ */ G(_O, {
className: "text-xs",
children: "No collections found matching your search."
})
] })
}) : n.length > 0 ? n.map((e) => /* @__PURE__ */ G(eP, { collection: e }, e.id)) : /* @__PURE__ */ K(fO, {
className: "w-full px-0!",
children: [/* @__PURE__ */ K(pO, { children: [
/* @__PURE__ */ G(hO, {
variant: "icon",
children: /* @__PURE__ */ G(qn, { className: "size-6 text-muted-foreground" })
}),
/* @__PURE__ */ G(gO, {
className: "text-base",
children: "No collections yet"
}),
/* @__PURE__ */ G(_O, {
className: "text-xs",
children: "You haven't created any collections yet. Get started by adding your first collection."
})
] }), /* @__PURE__ */ G(vO, { children: /* @__PURE__ */ G(Z, {
variant: "secondary",
size: "sm",
onClick: r,
children: "Add collection"
}) })]
})
}), /* @__PURE__ */ G($N, {})]
})
})]
});
}, rP = 1, iP = .9, aP = .8, oP = .17, sP = .1, cP = .999, lP = .9999, uP = .99, dP = /[\\\/_+.#"@\[\(\{&]/, fP = /[\\\/_+.#"@\[\(\{&]/g, pP = /[\s-]/, mP = /[\s-]/g;
function hP(e, t, n, r, i, a, o) {
if (a === t.length) return i === e.length ? rP : uP;
var s = `${i},${a}`;
if (o[s] !== void 0) return o[s];
for (var c = r.charAt(a), l = n.indexOf(c, i), u = 0, d, f, p, m; l >= 0;) d = hP(e, t, n, r, l + 1, a + 1, o), d > u && (l === i ? d *= rP : dP.test(e.charAt(l - 1)) ? (d *= aP, p = e.slice(i, l - 1).match(fP), p && i > 0 && (d *= cP ** +p.length)) : pP.test(e.charAt(l - 1)) ? (d *= iP, m = e.slice(i, l - 1).match(mP), m && i > 0 && (d *= cP ** +m.length)) : (d *= oP, i > 0 && (d *= cP ** +(l - i))), e.charAt(l) !== t.charAt(a) && (d *= lP)), (d < sP && n.charAt(l - 1) === r.charAt(a + 1) || r.charAt(a + 1) === r.charAt(a) && n.charAt(l - 1) !== r.charAt(a)) && (f = hP(e, t, n, r, l + 1, a + 2, o), f * sP > d && (d = f * sP)), d > u && (u = d), l = n.indexOf(c, l + 1);
return o[s] = u, u;
}
function gP(e) {
return e.toLowerCase().replace(mP, " ");
}
function _P(e, t, n) {
return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, hP(e, t, gP(e), gP(t), 0, 0, {});
}
// ../../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@18.3.5_@types+react@18.3.18__@types+react@18.3.18_react-dom_1611aece7428a85dce5541d1143903f7/node_modules/cmdk/dist/index.mjs
var vP = "[cmdk-group=\"\"]", yP = "[cmdk-group-items=\"\"]", bP = "[cmdk-group-heading=\"\"]", xP = "[cmdk-item=\"\"]", SP = `${xP}:not([aria-disabled="true"])`, CP = "cmdk-item-select", wP = "data-value", TP = (e, t, n) => _P(e, t, n), EP = I.createContext(void 0), DP = () => I.useContext(EP), OP = I.createContext(void 0), kP = () => I.useContext(OP), AP = I.createContext(void 0), jP = I.forwardRef((e, t) => {
let n = GP(() => ({
search: "",
value: e.value ?? e.defaultValue ?? "",
selectedItemId: void 0,
filtered: {
count: 0,
items: /* @__PURE__ */ new Map(),
groups: /* @__PURE__ */ new Set()
}
})), r = GP(() => /* @__PURE__ */ new Set()), i = GP(() => /* @__PURE__ */ new Map()), a = GP(() => /* @__PURE__ */ new Map()), o = GP(() => /* @__PURE__ */ new Set()), s = UP(e), { label: c, children: l, value: u, onValueChange: d, filter: f, shouldFilter: p, loop: m, disablePointerSelection: h = !1, vimBindings: g = !0, ..._ } = e, v = yy(), y = yy(), b = yy(), x = I.useRef(null), S = JP();
WP(() => {
if (u !== void 0) {
let e = u.trim();
n.current.value = e, C.emit();
}
}, [u]), WP(() => {
S(6, k);
}, []);
let C = I.useMemo(() => ({
subscribe: (e) => (o.current.add(e), () => o.current.delete(e)),
snapshot: () => n.current,
setState: (e, t, r) => {
var i, a, o;
if (!Object.is(n.current[e], t)) {
if (n.current[e] = t, e === "search") O(), E(), S(1, D);
else if (e === "value") {
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
let e = document.getElementById(b);
e ? e.focus() : (i = document.getElementById(v)) == null || i.focus();
}
if (S(7, () => {
n.current.selectedItemId = A()?.id, C.emit();
}), r || S(5, k), s.current?.value !== void 0) {
let e = t ?? "";
(o = (a = s.current).onValueChange) == null || o.call(a, e);
return;
}
}
C.emit();
}
},
emit: () => {
o.current.forEach((e) => e());
}
}), []), w = I.useMemo(() => ({
value: (e, t, r) => {
t !== a.current.get(e)?.value && (a.current.set(e, {
value: t,
keywords: r
}), n.current.filtered.items.set(e, T(t, r)), S(2, () => {
E(), C.emit();
}));
},
item: (e, t) => (r.current.add(e), t && (i.current.has(t) ? i.current.get(t).add(e) : i.current.set(t, /* @__PURE__ */ new Set([e]))), S(3, () => {
O(), E(), n.current.value || D(), C.emit();
}), () => {
a.current.delete(e), r.current.delete(e), n.current.filtered.items.delete(e);
let t = A();
S(4, () => {
O(), t?.getAttribute("id") === e && D(), C.emit();
});
}),
group: (e) => (i.current.has(e) || i.current.set(e, /* @__PURE__ */ new Set()), () => {
a.current.delete(e), i.current.delete(e);
}),
filter: () => s.current.shouldFilter,
label: c || e["aria-label"],
getDisablePointerSelection: () => s.current.disablePointerSelection,
listId: v,
inputId: b,
labelId: y,
listInnerRef: x
}), []);
function T(e, t) {
let r = s.current?.filter ?? TP;
return e ? r(e, n.current.search, t) : 0;
}
function E() {
if (!n.current.search || s.current.shouldFilter === !1) return;
let e = n.current.filtered.items, t = [];
n.current.filtered.groups.forEach((n) => {
let r = i.current.get(n), a = 0;
r.forEach((t) => {
let n = e.get(t);
a = Math.max(n, a);
}), t.push([n, a]);
});
let r = x.current;
ee().sort((t, n) => {
let r = t.getAttribute("id"), i = n.getAttribute("id");
return (e.get(i) ?? 0) - (e.get(r) ?? 0);
}).forEach((e) => {
let t = e.closest(yP);
t ? t.appendChild(e.parentElement === t ? e : e.closest(`${yP} > *`)) : r.appendChild(e.parentElement === r ? e : e.closest(`${yP} > *`));
}), t.sort((e, t) => t[1] - e[1]).forEach((e) => {
let t = x.current?.querySelector(`${vP}[${wP}="${encodeURIComponent(e[0])}"]`);
t?.parentElement.appendChild(t);
});
}
function D() {
let e = ee().find((e) => e.getAttribute("aria-disabled") !== "true")?.getAttribute(wP);
C.setState("value", e || void 0);
}
function O() {
if (!n.current.search || s.current.shouldFilter === !1) {
n.current.filtered.count = r.current.size;
return;
}
n.current.filtered.groups = /* @__PURE__ */ new Set();
let e = 0;
for (let t of r.current) {
let r = T(a.current.get(t)?.value ?? "", a.current.get(t)?.keywords ?? []);
n.current.filtered.items.set(t, r), r > 0 && e++;
}
for (let [e, t] of i.current) for (let r of t) if (n.current.filtered.items.get(r) > 0) {
n.current.filtered.groups.add(e);
break;
}
n.current.filtered.count = e;
}
function k() {
var e;
let t = A();
t && (t.parentElement?.firstChild === t && ((e = t.closest(vP)?.querySelector(bP)) == null || e.scrollIntoView({ block: "nearest" })), t.scrollIntoView({ block: "nearest" }));
}
function A() {
return x.current?.querySelector(`${xP}[aria-selected="true"]`);
}
function ee() {
return Array.from(x.current?.querySelectorAll(SP) || []);
}
function j(e) {
let t = ee()[e];
t && C.setState("value", t.getAttribute(wP));
}
function te(e) {
var t;
let n = A(), r = ee(), i = r.findIndex((e) => e === n), a = r[i + e];
(t = s.current) != null && t.loop && (a = i + e < 0 ? r[r.length - 1] : i + e === r.length ? r[0] : r[i + e]), a && C.setState("value", a.getAttribute(wP));
}
function M(e) {
let t = A()?.closest(vP), n;
for (; t && !n;) t = e > 0 ? VP(t, vP) : HP(t, vP), n = t?.querySelector(SP);
n ? C.setState("value", n.getAttribute(wP)) : te(e);
}
let ne = () => j(ee().length - 1), N = (e) => {
e.preventDefault(), e.metaKey ? ne() : e.altKey ? M(1) : te(1);
}, re = (e) => {
e.preventDefault(), e.metaKey ? j(0) : e.altKey ? M(-1) : te(-1);
};
return I.createElement(yO.div, {
ref: t,
tabIndex: -1,
..._,
"cmdk-root": "",
onKeyDown: (e) => {
var t;
(t = _.onKeyDown) == null || t.call(_, e);
let n = e.nativeEvent.isComposing || e.keyCode === 229;
if (!(e.defaultPrevented || n)) switch (e.key) {
case "n":
case "j":
g && e.ctrlKey && N(e);
break;
case "ArrowDown":
N(e);
break;
case "p":
case "k":
g && e.ctrlKey && re(e);
break;
case "ArrowUp":
re(e);
break;
case "Home":
e.preventDefault(), j(0);
break;
case "End":
e.preventDefault(), ne();
break;
case "Enter": {
e.preventDefault();
let t = A();
if (t) {
let e = new Event(CP);
t.dispatchEvent(e);
}
}
}
}
}, I.createElement("label", {
"cmdk-label": "",
htmlFor: w.inputId,
id: w.labelId,
style: ZP
}, c), XP(e, (e) => I.createElement(OP.Provider, { value: C }, I.createElement(EP.Provider, { value: w }, e))));
}), MP = I.forwardRef((e, t) => {
let n = yy(), r = I.useRef(null), i = I.useContext(AP), a = DP(), o = UP(e), s = o.current?.forceMount ?? i?.forceMount;
WP(() => {
if (!s) return a.item(n, i?.id);
}, [s]);
let c = qP(n, r, [
e.value,
e.children,
r
], e.keywords), l = kP(), u = KP((e) => e.value && e.value === c.current), d = KP((e) => s || a.filter() === !1 ? !0 : !e.search || e.filtered.items.get(n) > 0);
I.useEffect(() => {
let t = r.current;
if (t && !e.disabled) return t.addEventListener(CP, f), () => t.removeEventListener(CP, f);
}, [
d,
e.onSelect,
e.disabled
]);
function f() {
var e, t;
p(), (t = (e = o.current).onSelect) == null || t.call(e, c.current);
}
function p() {
l.setState("value", c.current, !0);
}
if (!d) return null;
let { disabled: m, value: h, onSelect: g, forceMount: _, keywords: v, ...y } = e;
return I.createElement(yO.div, {
ref: Xv(r, t),
...y,
id: n,
"cmdk-item": "",
role: "option",
"aria-disabled": !!m,
"aria-selected": !!u,
"data-disabled": !!m,
"data-selected": !!u,
onPointerMove: m || a.getDisablePointerSelection() ? void 0 : p,
onClick: m ? void 0 : f
}, e.children);
}), NP = I.forwardRef((e, t) => {
let { heading: n, children: r, forceMount: i, ...a } = e, o = yy(), s = I.useRef(null), c = I.useRef(null), l = yy(), u = DP(), d = KP((e) => i || u.filter() === !1 ? !0 : !e.search || e.filtered.groups.has(o));
WP(() => u.group(o), []), qP(o, s, [
e.value,
e.heading,
c
]);
let f = I.useMemo(() => ({
id: o,
forceMount: i
}), [i]);
return I.createElement(yO.div, {
ref: Xv(s, t),
...a,
"cmdk-group": "",
role: "presentation",
hidden: !d || void 0
}, n && I.createElement("div", {
ref: c,
"cmdk-group-heading": "",
"aria-hidden": !0,
id: l
}, n), XP(e, (e) => I.createElement("div", {
"cmdk-group-items": "",
role: "group",
"aria-labelledby": n ? l : void 0
}, I.createElement(AP.Provider, { value: f }, e))));
}), PP = I.forwardRef((e, t) => {
let { alwaysRender: n, ...r } = e, i = I.useRef(null), a = KP((e) => !e.search);
return !n && !a ? null : I.createElement(yO.div, {
ref: Xv(i, t),
...r,
"cmdk-separator": "",
role: "separator"
});
}), FP = I.forwardRef((e, t) => {
let { onValueChange: n, ...r } = e, i = e.value != null, a = kP(), o = KP((e) => e.search), s = KP((e) => e.selectedItemId), c = DP();
return I.useEffect(() => {
e.value != null && a.setState("search", e.value);
}, [e.value]), I.createElement(yO.input, {
ref: t,
...r,
"cmdk-input": "",
autoComplete: "off",
autoCorrect: "off",
spellCheck: !1,
"aria-autocomplete": "list",
role: "combobox",
"aria-expanded": !0,
"aria-controls": c.listId,
"aria-labelledby": c.labelId,
"aria-activedescendant": s,
id: c.inputId,
type: "text",
value: i ? e.value : o,
onChange: (e) => {
i || a.setState("search", e.target.value), n?.(e.target.value);
}
});
}), IP = I.forwardRef((e, t) => {
let { children: n, label: r = "Suggestions", ...i } = e, a = I.useRef(null), o = I.useRef(null), s = KP((e) => e.selectedItemId), c = DP();
return I.useEffect(() => {
if (o.current && a.current) {
let e = o.current, t = a.current, n, r = new ResizeObserver(() => {
n = requestAnimationFrame(() => {
let n = e.offsetHeight;
t.style.setProperty("--cmdk-list-height", n.toFixed(1) + "px");
});
});
return r.observe(e), () => {
cancelAnimationFrame(n), r.unobserve(e);
};
}
}, []), I.createElement(yO.div, {
ref: Xv(a, t),
...i,
"cmdk-list": "",
role: "listbox",
tabIndex: -1,
"aria-activedescendant": s,
"aria-label": r,
id: c.listId
}, XP(e, (e) => I.createElement("div", {
ref: Xv(o, c.listInnerRef),
"cmdk-list-sizer": ""
}, e)));
}), LP = I.forwardRef((e, t) => {
let { open: n, onOpenChange: r, overlayClassName: i, contentClassName: a, container: o, ...s } = e;
return I.createElement(pS, {
open: n,
onOpenChange: r
}, I.createElement(hS, { container: o }, I.createElement(gS, {
"cmdk-overlay": "",
className: i
}), I.createElement(_S, {
"aria-label": e.label,
"cmdk-dialog": "",
className: a
}, I.createElement(jP, {
ref: t,
...s
}))));
}), RP = I.forwardRef((e, t) => KP((e) => e.filtered.count === 0) ? I.createElement(yO.div, {
ref: t,
...e,
"cmdk-empty": "",
role: "presentation"
}) : null), zP = I.forwardRef((e, t) => {
let { progress: n, children: r, label: i = "Loading...", ...a } = e;
return I.createElement(yO.div, {
ref: t,
...a,
"cmdk-loading": "",
role: "progressbar",
"aria-valuenow": n,
"aria-valuemin": 0,
"aria-valuemax": 100,
"aria-label": i
}, XP(e, (e) => I.createElement("div", { "aria-hidden": !0 }, e)));
}), BP = Object.assign(jP, {
List: IP,
Item: MP,
Input: FP,
Group: NP,
Separator: PP,
Dialog: LP,
Empty: RP,
Loading: zP
});
function VP(e, t) {
let n = e.nextElementSibling;
for (; n;) {
if (n.matches(t)) return n;
n = n.nextElementSibling;
}
}
function HP(e, t) {
let n = e.previousElementSibling;
for (; n;) {
if (n.matches(t)) return n;
n = n.previousElementSibling;
}
}
function UP(e) {
let t = I.useRef(e);
return WP(() => {
t.current = e;
}), t;
}
var WP = typeof window > "u" ? I.useEffect : I.useLayoutEffect;
function GP(e) {
let t = I.useRef();
return t.current === void 0 && (t.current = e()), t;
}
function KP(e) {
let t = kP(), n = () => e(t.snapshot());
return I.useSyncExternalStore(t.subscribe, n, n);
}
function qP(e, t, n, r = []) {
let i = I.useRef(), a = DP();
return WP(() => {
var o;
let s = (() => {
for (let e of n) {
if (typeof e == "string") return e.trim();
if (typeof e == "object" && "current" in e) return e.current ? e.current.textContent?.trim() : i.current;
}
})(), c = r.map((e) => e.trim());
a.value(e, s, c), (o = t.current) == null || o.setAttribute(wP, s), i.current = s;
}), i;
}
var JP = () => {
let [e, t] = I.useState(), n = GP(() => /* @__PURE__ */ new Map());
return WP(() => {
n.current.forEach((e) => e()), n.current = /* @__PURE__ */ new Map();
}, [e]), (e, r) => {
n.current.set(e, r), t({});
};
};
function YP(e) {
let t = e.type;
return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
}
function XP({ asChild: e, children: t }, n) {
return e && I.isValidElement(t) ? I.cloneElement(YP(t), { ref: t.ref }, n(t.props.children)) : n(t);
}
var ZP = {
position: "absolute",
width: "1px",
height: "1px",
padding: "0",
margin: "-1px",
overflow: "hidden",
clip: "rect(0, 0, 0, 0)",
whiteSpace: "nowrap",
borderWidth: "0"
};
// src/components/ui/command.tsx
function QP({ className: e, ...t }) {
return /* @__PURE__ */ G(BP, {
"data-slot": "command",
className: Y("flex size-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", e),
...t
});
}
function $P({ title: e = "Command Palette", description: t = "Search for a command to run...", children: n, className: r, showCloseButton: i = !0, ...a }) {
return /* @__PURE__ */ K(xS, {
...a,
children: [/* @__PURE__ */ K(DS, {
className: "sr-only",
children: [/* @__PURE__ */ G(kS, { children: e }), /* @__PURE__ */ G(AS, { children: t })]
}), /* @__PURE__ */ G(ES, {
className: Y("overflow-hidden p-0", r),
showCloseButton: i,
children: /* @__PURE__ */ G(QP, {
className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",
children: n
})
})]
});
}
function eF({ className: e, ...t }) {
return /* @__PURE__ */ K("div", {
"data-slot": "command-input-wrapper",
className: "flex h-9 items-center gap-2 border-b px-3",
children: [/* @__PURE__ */ G(br, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ G(BP.Input, {
"data-slot": "command-input",
className: Y("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", e),
...t
})]
});
}
function tF({ className: e, ...t }) {
return /* @__PURE__ */ G(BP.List, {
"data-slot": "command-list",
className: Y("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", e),
...t
});
}
function nF({ ...e }) {
return /* @__PURE__ */ G(BP.Empty, {
"data-slot": "command-empty",
className: "py-6 text-center text-sm",
...e
});
}
function rF({ className: e, ...t }) {
return /* @__PURE__ */ G(BP.Group, {
"data-slot": "command-group",
className: Y("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", e),
...t
});
}
function iF({ className: e, ...t }) {
return /* @__PURE__ */ G(BP.Separator, {
"data-slot": "command-separator",
className: Y("-mx-1 h-px bg-border", e),
...t
});
}
function aF({ className: e, ...t }) {
return /* @__PURE__ */ G(BP.Item, {
"data-slot": "command-item",
className: Y("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", e),
...t
});
}
function oF({ className: e, ...t }) {
return /* @__PURE__ */ G("span", {
"data-slot": "command-shortcut",
className: Y("ml-auto text-xs tracking-widest text-muted-foreground", e),
...t
});
}
// src/components/laboratory/command.tsx
function sF(e) {
let { endpoint: t, openAddCollectionDialog: n, addOperation: r, runActiveOperation: i, addTab: a, setActiveTab: o, tabs: s, preflight: c, env: l, plugins: u } = dy(), d = dy(), [f, p] = H(e.open ?? !1);
return z(() => {
p(e.open ?? !1);
}, [e.open]), z(() => {
let t = (t) => {
if (t.key === "j" && (t.metaKey || t.ctrlKey)) {
t.preventDefault();
let n = !f;
p(n), e.onOpenChange?.(n);
}
};
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
}, [f, e]), /* @__PURE__ */ G(Br, { children: /* @__PURE__ */ K($P, {
open: f,
onOpenChange: (t) => {
p(t), e.onOpenChange?.(t);
},
children: [/* @__PURE__ */ G(eF, { placeholder: "Type a command or search..." }), /* @__PURE__ */ K(tF, { children: [
/* @__PURE__ */ G(nF, { children: "No results found." }),
/* @__PURE__ */ K(rF, {
heading: "Operations",
children: [/* @__PURE__ */ K(aF, {
disabled: !t,
onSelect: () => {
i(t), p(!1);
},
children: [
/* @__PURE__ */ G(hr, {}),
/* @__PURE__ */ G("span", { children: "Run operation" }),
/* @__PURE__ */ G(oF, { children: "⌘↵" })
]
}), /* @__PURE__ */ K(aF, {
onSelect: () => {
let e = r({
name: "",
query: "",
variables: "",
headers: "",
extensions: ""
}), t = a({
type: "operation",
data: e
});
o(t), p(!1);
},
children: [/* @__PURE__ */ G(Un, {}), /* @__PURE__ */ G("span", { children: "Add operation" })]
})]
}),
/* @__PURE__ */ G(iF, {}),
/* @__PURE__ */ G(rF, {
heading: "Collections",
children: /* @__PURE__ */ K(aF, {
onSelect: () => {
n?.(), p(!1);
},
children: [/* @__PURE__ */ G(Yn, {}), /* @__PURE__ */ G("span", { children: "Add collection" })]
})
}),
/* @__PURE__ */ G(iF, {}),
/* @__PURE__ */ K(rF, {
heading: "Settings",
children: [/* @__PURE__ */ K(aF, {
onSelect: () => {
let e = s.find((e) => e.type === "env") ?? a({
type: "env",
data: l ?? { variables: {} }
});
o(e), p(!1);
},
children: [/* @__PURE__ */ G(xr, {}), /* @__PURE__ */ G("span", { children: "Open Environment Variables" })]
}), /* @__PURE__ */ K(aF, {
onSelect: () => {
let e = s.find((e) => e.type === "preflight") ?? a({
type: "preflight",
data: c ?? { script: "" }
});
o(e), p(!1);
},
children: [/* @__PURE__ */ G(_r, {}), /* @__PURE__ */ G("span", { children: "Open Preflight Script" })]
})]
}),
u.filter((e) => !!e.commands?.length).map((e) => /* @__PURE__ */ K(cn, { children: [/* @__PURE__ */ G(iF, {}), /* @__PURE__ */ G(rF, {
heading: e.name,
children: e.commands?.map((e, t) => /* @__PURE__ */ K(aF, {
onSelect: () => {
e.onClick(d, {}), p(!1);
},
children: [typeof e.icon == "function" ? e.icon(d, {}) : e.icon, /* @__PURE__ */ G("span", { children: typeof e.name == "function" ? e.name(d, {}) : e.name })]
}, t))
})] }, e.name))
] })]
}) });
}
// src/lib/docs-search.ts
var cF = {
types: [],
fields: [],
enumValues: [],
hasMore: !1
}, lF = (e, t, n) => {
let r = t.trim().toLowerCase();
if (!e || !r) return cF;
let i = n?.maxResults ?? 100, a = {
types: [],
fields: [],
enumValues: [],
hasMore: !1
}, o = 0, s = () => o >= i ? (a.hasMore = !0, !1) : (o++, !0);
for (let t of Object.values(e.getTypeMap())) if (!t.name.startsWith("__")) {
if (t.name.toLowerCase().includes(r)) {
if (!s()) return a;
a.types.push(t);
}
if (A(t) || h(t) || Mt(t)) {
for (let e of Object.values(t.getFields())) if (e.name.toLowerCase().includes(r)) {
if (!s()) return a;
a.fields.push({
typeName: t.name,
fieldName: e.name
});
}
} else if (l(t)) {
for (let e of t.getValues()) if (e.name.toLowerCase().includes(r)) {
if (!s()) return a;
a.enumValues.push({
typeName: t.name,
valueName: e.name
});
}
}
}
return a;
}, uF = (e) => e.type instanceof Be ? /* @__PURE__ */ K("span", { children: [/* @__PURE__ */ G(uF, { type: e.type.ofType }), /* @__PURE__ */ G("span", {
className: "text-muted-foreground!",
children: "!"
})] }) : e.type instanceof Fe ? /* @__PURE__ */ K("span", { children: [
/* @__PURE__ */ G("span", {
className: "text-muted-foreground!",
children: "["
}),
/* @__PURE__ */ G(uF, { type: e.type.ofType }),
/* @__PURE__ */ G("span", {
className: "text-muted-foreground!",
children: "]"
})
] }) : e.type instanceof ot || e.type instanceof Me ? /* @__PURE__ */ G("span", {
className: "text-teal-400",
children: e.type.name
}) : /* @__PURE__ */ G("span", {
className: "text-amber-400",
children: e.type.name
});
// ../../../node_modules/.pnpm/dompurify@3.4.17/node_modules/dompurify/dist/purify.es.mjs
function dF(e, t) {
this.v = e, this.k = t;
}
function fF(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
function pF(e) {
if (Array.isArray(e)) return e;
}
function mF(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
try {
if (a = (n = n.call(e)).next, t === 0) {
if (Object(n) !== n) return;
c = !1;
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
} catch (e) {
l = !0, i = e;
} finally {
try {
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
} finally {
if (l) throw i;
}
}
return s;
}
}
function hF() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function gF(e, t) {
return pF(e) || mF(e, t) || _F(e, t) || hF();
}
function _F(e, t) {
if (e) {
if (typeof e == "string") return fF(e, t);
var n = {}.toString.call(e).slice(8, -1);
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? fF(e, t) : void 0;
}
}
function vF(e) {
var t, n;
function r(t, n) {
try {
var a = e[t](n), o = a.value, s = o instanceof dF;
Promise.resolve(s ? o.v : o).then(function(n) {
if (s) {
var c = t === "return" && o.k ? t : "next";
if (!o.k || n.done) return r(c, n);
n = e[c](n).value;
}
i(!!a.done, n);
}, function(e) {
r("throw", e);
});
} catch (e) {
i(2, e);
}
}
function i(e, i) {
e === 2 ? t.reject(i) : t.resolve({
value: i,
done: e
}), (t = t.next) ? r(t.key, t.arg) : n = null;
}
this._invoke = function(e, i) {
return new Promise(function(a, o) {
var s = {
key: e,
arg: i,
resolve: a,
reject: o,
next: null
};
n ? n = n.next = s : (t = n = s, r(e, i));
});
}, typeof e.return != "function" && (this.return = void 0);
}
vF.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
return this;
}, vF.prototype.next = function(e) {
return this._invoke("next", e);
}, vF.prototype.throw = function(e) {
return this._invoke("throw", e);
}, vF.prototype.return = function(e) {
return this._invoke("return", e);
};
var yF = Object.entries, bF = Object.setPrototypeOf, xF = Object.isFrozen, SF = Object.getPrototypeOf, CF = Object.getOwnPropertyDescriptor, wF = Object.freeze, TF = Object.seal, EF = Object.create, DF = typeof Reflect < "u" && Reflect, OF = DF.apply, kF = DF.construct;
wF ||= function(e) {
return e;
}, TF ||= function(e) {
return e;
}, OF ||= function(e, t) {
var n = [...arguments].slice(2);
return e.apply(t, n);
}, kF ||= function(e) {
return new e(...[...arguments].slice(1));
};
var AF = eI(Array.prototype.forEach);
Array.prototype.indexOf;
var jF = eI(Array.prototype.lastIndexOf), MF = eI(Array.prototype.pop), NF = eI(Array.prototype.push), PF = eI(Array.prototype.slice), FF = eI(Array.prototype.splice), IF = Array.isArray, LF = tI(Set), RF = eI(Set.prototype.add), zF = eI(Set.prototype.has), BF = eI(String.prototype.toLowerCase), VF = eI(String.prototype.toString), HF = eI(String.prototype.match), UF = eI(String.prototype.replace), WF = eI(String.prototype.indexOf), GF = eI(String.prototype.trim), KF = eI(Number.prototype.toString), qF = eI(Boolean.prototype.toString), JF = typeof BigInt > "u" ? null : eI(BigInt.prototype.toString), YF = typeof Symbol > "u" ? null : eI(Symbol.prototype.toString), XF = eI(Object.prototype.hasOwnProperty), ZF = eI(Object.prototype.toString), QF = eI(RegExp.prototype.test), $F = tI(TypeError);
function eI(e) {
return function(t) {
t instanceof RegExp && (t.lastIndex = 0);
var n = [...arguments].slice(1);
return OF(e, t, n);
};
}
function tI(e) {
return function() {
return kF(e, [...arguments]);
};
}
function nI(e, t) {
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : BF;
if (bF && bF(e, null), !IF(t)) return e;
let r = t.length;
for (; r--;) {
let i = t[r];
if (typeof i == "string") {
let e = n(i);
e !== i && (xF(t) || (t[r] = e), i = e);
}
e[i] = !0;
}
return e;
}
function rI(e) {
for (let t = 0; t < e.length; t++) XF(e, t) || (e[t] = null);
return e;
}
function iI(e) {
let t = EF(null);
for (let r of yF(e)) {
var n = gF(r, 2);
let i = n[0], a = n[1];
XF(e, i) && (t[i] = IF(a) ? rI(a) : a && typeof a == "object" && a.constructor === Object ? iI(a) : a);
}
return t;
}
function aI(e) {
switch (typeof e) {
case "string": return e;
case "number": return KF(e);
case "boolean": return qF(e);
case "bigint": return JF ? JF(e) : "0";
case "symbol": return YF ? YF(e) : "Symbol()";
case "undefined": return ZF(e);
case "function":
case "object": {
if (e === null) return ZF(e);
let t = e, n = oI(t, "toString");
if (typeof n == "function") {
let e = n(t);
return typeof e == "string" ? e : ZF(e);
}
return ZF(e);
}
default: return ZF(e);
}
}
function oI(e, t) {
for (; e !== null;) {
let n = CF(e, t);
if (n) {
if (n.get) return eI(n.get);
if (typeof n.value == "function") return eI(n.value);
}
e = SF(e);
}
function n() {
return null;
}
return n;
}
function sI(e, t) {
for (; e !== null;) {
let n = CF(e, t);
if (n) return n.get ? eI(n.get) : null;
e = SF(e);
}
return null;
}
function cI(e) {
try {
return QF(e, ""), !0;
} catch {
return !1;
}
}
var lI = wF(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), uI = wF(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), dI = wF([
"feBlend",
"feColorMatrix",
"feComponentTransfer",
"feComposite",
"feConvolveMatrix",
"feDiffuseLighting",
"feDisplacementMap",
"feDistantLight",
"feDropShadow",
"feFlood",
"feFuncA",
"feFuncB",
"feFuncG",
"feFuncR",
"feGaussianBlur",
"feImage",
"feMerge",
"feMergeNode",
"feMorphology",
"feOffset",
"fePointLight",
"feSpecularLighting",
"feSpotLight",
"feTile",
"feTurbulence"
]), fI = wF([
"animate",
"color-profile",
"cursor",
"discard",
"font-face",
"font-face-format",
"font-face-name",
"font-face-src",
"font-face-uri",
"foreignobject",
"hatch",
"hatchpath",
"mesh",
"meshgradient",
"meshpatch",
"meshrow",
"missing-glyph",
"script",
"set",
"solidcolor",
"unknown",
"use"
]), pI = wF(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), mI = wF([
"maction",
"maligngroup",
"malignmark",
"mlongdiv",
"mscarries",
"mscarry",
"msgroup",
"mstack",
"msline",
"msrow",
"semantics",
"annotation",
"annotation-xml",
"mprescripts",
"none"
]), hI = wF(["#text"]), gI = wF(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), _I = wF(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), vI = wF(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), yI = wF([
"xlink:href",
"xml:id",
"xlink:title",
"xml:space",
"xmlns:xlink"
]), bI = TF(/{{[\w\W]*|^[\w\W]*}}/g), xI = TF(/<%[\w\W]*|^[\w\W]*%>/g), SI = TF(/\${[\w\W]*/g), CI = TF(/^data-[\-\w.\u00B7-\uFFFF]+$/), wI = TF(/^aria-[\-\w]+$/), TI = TF(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), EI = TF(/^(?:\w+script|data):/i), DI = TF(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), OI = TF(/^html$/i), kI = TF(/^[a-z][.\w]*(-[.\w]+)+$/i), AI = TF(/<[/\w!]/g), jI = TF(/<[/\w]/g), MI = TF(/<\/no(script|embed|frames)/i), NI = TF(/\/>/i), PI = {
element: 1,
attribute: 2,
text: 3,
cdataSection: 4,
entityReference: 5,
entityNode: 6,
processingInstruction: 7,
comment: 8,
document: 9,
documentType: 10,
documentFragment: 11,
notation: 12
}, FI = wF(nI({}, [
"style",
"script",
"xmp",
"iframe",
"noembed",
"noframes",
"plaintext",
"noscript"
])), II = function() {
return typeof window > "u" ? null : window;
}, LI = function(e, t) {
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
let n = null, r = "data-tt-policy-suffix";
t && t.hasAttribute(r) && (n = t.getAttribute(r));
let i = "dompurify" + (n ? "#" + n : "");
try {
return e.createPolicy(i, {
createHTML(e) {
return e;
},
createScriptURL(e) {
return e;
}
});
} catch {
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
}
}, RI = function() {
return {
afterSanitizeAttributes: [],
afterSanitizeElements: [],
afterSanitizeShadowDOM: [],
beforeSanitizeAttributes: [],
beforeSanitizeElements: [],
beforeSanitizeShadowDOM: [],
uponSanitizeAttribute: [],
uponSanitizeElement: [],
uponSanitizeShadowNode: []
};
}, zI = function(e, t, n, r) {
return XF(e, t) && IF(e[t]) ? nI(r.base ? iI(r.base) : {}, e[t], r.transform) : n;
}, BI = function(e, t, n) {
let r = XF(e, t) ? e[t] : void 0;
return r && typeof r == "object" ? iI(r) : n();
};
function VI() {
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : II(), t = (e) => VI(e);
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== PI.document || !e.Element) return t.isSupported = !1, t;
let n = e.document, r = n, i = r.currentScript;
e.DocumentFragment;
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = oI(d, "cloneNode"), p = oI(d, "remove"), m = oI(d, "removeAttributeNode"), h = oI(d, "nextSibling"), g = oI(d, "childNodes"), _ = oI(d, "parentNode"), v = oI(d, "shadowRoot"), y = oI(d, "attributes"), b = o && o.prototype ? oI(o.prototype, "nodeType") : null, x = o && o.prototype ? oI(o.prototype, "nodeName") : null, S = o && o.prototype ? oI(o.prototype, "ownerDocument") : null, C = function(e) {
return b ? b(e) : e.nodeType;
}, w = function(e) {
return x ? x(e) : e.nodeName;
}, T = sI(d, "namespaceURI"), E = function(e) {
return T ? T(e) : e.namespaceURI;
};
if (typeof a == "function") {
let e = n.createElement("template");
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
}
let D, O = "", k, A = !1, ee = 0, j = function() {
if (ee > 0) throw $F("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
}, te = function(e) {
j(), ee++;
try {
return D.createHTML(e);
} finally {
ee--;
}
}, M = function(e) {
j(), ee++;
try {
return D.createScriptURL(e);
} finally {
ee--;
}
}, ne = function() {
return A ||= (k = LI(u, i), !0), k;
}, N = n, re = N.implementation, ie = N.createNodeIterator, ae = N.createDocumentFragment, oe = N.getElementsByTagName, se = r.importNode, ce = RI();
t.isSupported = typeof yF == "function" && typeof _ == "function" && re && re.createHTMLDocument !== void 0;
let le = bI, ue = xI, P = SI, de = CI, fe = wI, pe = EI, me = DI, he = kI, ge = TI, _e = null, ve = nI({}, [
...lI,
...uI,
...dI,
...pI,
...hI
]), ye = null, be = nI({}, [
...gI,
..._I,
...vI,
...yI
]), xe = Object.seal(EF(null, {
tagNameCheck: {
writable: !0,
configurable: !1,
enumerable: !0,
value: null
},
attributeNameCheck: {
writable: !0,
configurable: !1,
enumerable: !0,
value: null
},
allowCustomizedBuiltInElements: {
writable: !0,
configurable: !1,
enumerable: !0,
value: !1
}
})), Se = null, Ce = null, we = Object.seal(EF(null, {
tagCheck: {
writable: !0,
configurable: !1,
enumerable: !0,
value: null
},
attributeCheck: {
writable: !0,
configurable: !1,
enumerable: !0,
value: null
}
})), Te = !0, Ee = !0, De = !1, Oe = !0, ke = !1, Ae = !0, je = !1, Me = !1, Ne = null, Pe = null, Fe = !1, Ie = !1, Le = !1, Re = !1, ze = !0, Be = !1, Ve = "user-content-", He = !0, Ue = !1, We = null, Ge = {}, Ke = null, qe = nI({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Je = null, Ye = nI({}, [
"audio",
"video",
"img",
"source",
"image",
"track"
]), Xe = null, Ze = nI({}, [
"alt",
"class",
"for",
"id",
"label",
"name",
"pattern",
"placeholder",
"role",
"summary",
"title",
"value",
"style",
"xmlns"
]), Qe = "http://www.w3.org/1998/Math/MathML", $e = "http://www.w3.org/2000/svg", et = "http://www.w3.org/1999/xhtml", tt = et, nt = !1, rt = null, it = nI({}, [
Qe,
$e,
et
], VF), at = wF([
"mi",
"mo",
"mn",
"ms",
"mtext"
]), ot = nI({}, at), st = wF(["annotation-xml"]), ct = nI({}, st), lt = nI({}, [
"title",
"style",
"font",
"a",
"script"
]), ut = null, dt = ["application/xhtml+xml", "text/html"], ft = null, pt = null, mt = n.createElement("form"), ht = function(e) {
return e instanceof RegExp || e instanceof Function;
}, gt = function() {
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
if (pt && pt === e) return;
e && typeof e == "object" || (e = {}), e = iI(e), ut = dt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, ft = ut === "application/xhtml+xml" ? VF : BF, _e = zI(e, "ALLOWED_TAGS", ve, { transform: ft }), ye = zI(e, "ALLOWED_ATTR", be, { transform: ft }), rt = zI(e, "ALLOWED_NAMESPACES", it, { transform: VF }), Xe = zI(e, "ADD_URI_SAFE_ATTR", Ze, {
transform: ft,
base: Ze
}), Je = zI(e, "ADD_DATA_URI_TAGS", Ye, {
transform: ft,
base: Ye
}), Ke = zI(e, "FORBID_CONTENTS", qe, { transform: ft }), Se = zI(e, "FORBID_TAGS", iI({}), { transform: ft }), Ce = zI(e, "FORBID_ATTR", iI({}), { transform: ft }), Ge = XF(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? iI(e.USE_PROFILES) : e.USE_PROFILES : !1, Te = e.ALLOW_ARIA_ATTR !== !1, Ee = e.ALLOW_DATA_ATTR !== !1, De = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Oe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ke = e.SAFE_FOR_TEMPLATES || !1, Ae = e.SAFE_FOR_XML !== !1, je = e.WHOLE_DOCUMENT || !1, Ie = e.RETURN_DOM || !1, Le = e.RETURN_DOM_FRAGMENT || !1, Re = e.RETURN_TRUSTED_TYPE || !1, Fe = e.FORCE_BODY || !1, ze = e.SANITIZE_DOM !== !1, Be = e.SANITIZE_NAMED_PROPS || !1, He = e.KEEP_CONTENT !== !1, Ue = e.IN_PLACE || !1, ge = cI(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : TI, tt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : et, ot = BI(e, "MATHML_TEXT_INTEGRATION_POINTS", () => nI({}, at)), ct = BI(e, "HTML_INTEGRATION_POINTS", () => nI({}, st));
let t = BI(e, "CUSTOM_ELEMENT_HANDLING", () => EF(null));
if (xe = EF(null), XF(t, "tagNameCheck") && ht(t.tagNameCheck) && (xe.tagNameCheck = t.tagNameCheck), XF(t, "attributeNameCheck") && ht(t.attributeNameCheck) && (xe.attributeNameCheck = t.attributeNameCheck), XF(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (xe.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), TF(xe), ke && (Ee = !1), Le && (Ie = !0), Ge && (_e = nI({}, hI), ye = EF(null), Ge.html === !0 && (nI(_e, lI), nI(ye, gI)), Ge.svg === !0 && (nI(_e, uI), nI(ye, _I), nI(ye, yI)), Ge.svgFilters === !0 && (nI(_e, dI), nI(ye, _I), nI(ye, yI)), Ge.mathMl === !0 && (nI(_e, pI), nI(ye, vI), nI(ye, yI))), we.tagCheck = null, we.attributeCheck = null, XF(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? we.tagCheck = e.ADD_TAGS : IF(e.ADD_TAGS) && (_e === ve && (_e = iI(_e)), nI(_e, e.ADD_TAGS, ft))), XF(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? we.attributeCheck = e.ADD_ATTR : IF(e.ADD_ATTR) && (ye === be && (ye = iI(ye)), nI(ye, e.ADD_ATTR, ft))), XF(e, "ADD_FORBID_CONTENTS") && IF(e.ADD_FORBID_CONTENTS) && (Ke === qe && (Ke = iI(Ke)), nI(Ke, e.ADD_FORBID_CONTENTS, ft)), He && (_e["#text"] = !0), je && nI(_e, [
"html",
"head",
"body"
]), _e.table && (nI(_e, ["tbody"]), delete Se.tbody), e.TRUSTED_TYPES_POLICY) {
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw $F("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw $F("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
let t = D;
D = e.TRUSTED_TYPES_POLICY;
try {
O = te("");
} catch (e) {
throw D = t, e;
}
} else e.TRUSTED_TYPES_POLICY === null ? (D = void 0, O = "") : (D === void 0 && (D = ne()), D && typeof O == "string" && (O = te("")));
wF && wF(e), pt = e;
}, _t = nI({}, [
...uI,
...dI,
...fI
]), vt = nI({}, [...pI, ...mI]), yt = function(e, t, n) {
return t.namespaceURI === et ? e === "svg" : t.namespaceURI === Qe ? e === "svg" && (n === "annotation-xml" || ot[n]) : !!_t[e];
}, bt = function(e, t, n) {
return t.namespaceURI === et ? e === "math" : t.namespaceURI === $e ? e === "math" && ct[n] : !!vt[e];
}, xt = function(e, t, n) {
return t.namespaceURI === $e && !ct[n] || t.namespaceURI === Qe && !ot[n] ? !1 : !vt[e] && (lt[e] || !_t[e]);
}, F = function(e) {
let t = E(e), n = BF(w(e)), r = _(e), i, a;
return r && C(r) === PI.element ? (i = { namespaceURI: E(r) }, a = BF(w(r))) : (i = { namespaceURI: tt }, a = "template"), rt[t] ? t === $e ? yt(n, i, a) : t === Qe ? bt(n, i, a) : t === et ? xt(n, i, a) : !!(ut === "application/xhtml+xml" && rt[t]) : !1;
}, St = function(e) {
NF(t.removed, { element: e });
try {
_(e).removeChild(e);
} catch {
if (p(e), !_(e)) throw $F("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
}
}, Ct = function(e, t, n) {
try {
m(e, t);
} catch {
try {
e.removeAttribute(n);
} catch {}
}
}, wt = function(e) {
Ot(e);
let t = g(e);
t && AF(PF(t), (e) => {
try {
p(e);
} catch {}
});
let n = C(e) === PI.element ? y(e) : null;
if (n) for (let t = n.length - 1; t >= 0; --t) {
let r = n[t], i = r && r.name;
typeof i == "string" && Ct(e, r, i);
}
}, Tt = function(e, n, r) {
if (!r) try {
r = n.getAttributeNode(e);
} catch {
r = null;
}
NF(t.removed, {
attribute: r || null,
from: n
});
try {
r ? m(n, r) : n.removeAttribute(e);
} catch {
try {
n.removeAttribute(e);
} catch {}
}
if (e === "is") {
if (Ie || Le) try {
St(n);
} catch {}
else try {
n.setAttribute(e, "");
} catch {}
}
}, Et = function(e) {
let t = y(e);
if (t) for (let n = t.length - 1; n >= 0; --n) {
let r = t[n], i = r && r.name;
typeof i != "string" || ye[ft(i)] || Ct(e, r, i);
}
}, Dt = function(e, t) {
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
for (; r.length > 0;) {
let e = r.pop();
if (t(e) === !1) continue;
if (n && C(e) === PI.element) {
let t = v(e);
Ut(t) && r.push(t);
}
let i = g(e);
if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
}
}, Ot = function(e) {
Dt(e, (e) => {
C(e) === PI.element && Et(e);
});
}, kt = function(e) {
let t = [];
return Dt(e, (e) => {
t.push(e);
}, !0), t;
}, At = function(e, t) {
let n = LF();
AF(kt(e), (e) => {
C(e) === PI.element && RF(n, e);
}), AF(t, (e) => {
C(e) === PI.element && !zF(n, e) && Et(e);
});
}, jt = function(e, n) {
let r = !1;
return AF(t.removed, (t) => {
t.element && (r ||= t.element === e, Ot(t.element));
}), At(e, n), r;
}, Mt = function(e, t) {
let n = We, r = null, i = () => (r || (r = LF(), AF(t, (e) => {
RF(r, e);
})), r);
for (let t = 0;; t++) {
let r = kt(e), a = [e], o = !1;
if (AF(r, (e) => {
C(e) === PI.documentFragment ? NF(a, e) : !o && !zF(n, e) && (o = zF(i(), e));
}), !o) return;
if (t >= 8) throw $F("the tree kept changing during in-place sanitization; refusing to return it");
AF(a, (t, n) => {
Nt(t, n > 0, e, i());
});
}
}, Nt = function(e, t, n, r) {
let i = Rt(e), a;
for (; a = i.nextNode();) zF(r, a) && !zF(We, a) && (t && Gt(ce.uponSanitizeShadowNode, a, null), Zt(a, n), an(a, n), Ut(a.content) && on(a.content));
}, Pt = function(e) {
We && RF(We, e);
}, Ft = function(e, t) {
return Ae ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
}, It = function(e) {
Ae && Dt(e, (e) => {
let t = C(e);
if (t === PI.processingInstruction || t === PI.comment && QF(jI, e.data)) {
try {
p(e);
} catch {}
return !1;
}
if (t === PI.element) {
let t = e, n = ft(w(e));
try {
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && Ft("for", n) && t.removeAttribute("for");
} catch {}
}
return !0;
});
}, Lt = function(e) {
let t = null, r = null;
if (Fe) e = "<remove></remove>" + e;
else {
let t = HF(e, /^[\r\n\t ]+/);
r = t && t[0];
}
ut === "application/xhtml+xml" && tt === et && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
let i = D ? te(e) : e;
if (tt === et) try {
t = new l().parseFromString(i, ut);
} catch {}
if (!t || !t.documentElement) {
t = re.createDocument(tt, "template", null);
try {
t.documentElement.innerHTML = nt ? O : i;
} catch {}
}
let a = t.body || t.documentElement;
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), tt === et ? oe.call(t, je ? "html" : "body")[0] : je ? t.documentElement : a;
}, Rt = function(e) {
let t = S ? S(e) : e.ownerDocument;
return ie.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
}, zt = function(e) {
return e = UF(e, le, " "), e = UF(e, ue, " "), e = UF(e, P, " "), e;
}, Bt = function(e) {
Vt(e);
let t = e.querySelectorAll?.call(e, "template");
t && AF(t, (e) => {
Ut(e.content) && Bt(e.content);
});
}, Vt = function(e) {
e.normalize();
let t = S ? S(e) : e.ownerDocument, n = ie.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
for (; r;) r.data = zt(r.data), r = n.nextNode();
}, Ht = function(e) {
let t = x ? x(e) : null;
return typeof t != "string" || ft(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== y(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== b(e) || e.childNodes !== g(e);
}, Ut = function(e) {
if (!b || typeof e != "object" || !e) return !1;
try {
return b(e) === PI.documentFragment;
} catch {
return !1;
}
}, Wt = function(e) {
if (!b || typeof e != "object" || !e) return !1;
try {
return typeof b(e) == "number";
} catch {
return !1;
}
};
function Gt(e, n, r) {
e.length !== 0 && AF(e, (e) => {
e.call(t, n, r, pt);
});
}
let Kt = function(e, t) {
return !!(Ae && e.hasChildNodes() && !Wt(e.firstElementChild) && QF(AI, e.textContent) && QF(AI, e.innerHTML) || Ae && FI[t] && C(e) === PI.element && E(e) === et && (Wt(e.firstElementChild) || typeof e.textContent == "string" && QF(AI, e.textContent)) || e.nodeType === PI.processingInstruction || Ae && e.nodeType === PI.comment && QF(jI, e.data));
}, qt = function(e, t) {
return e instanceof RegExp ? QF(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
}, Jt = function(e, t, n) {
if (!Se[t] && en(t) && qt(xe.tagNameCheck, t)) return !1;
if (He && !Ke[t] && !Ke[BF(t)]) {
let t = _(e), r = g(e);
if (r && t) {
let i = r.length;
for (let a = i - 1; a >= 0; --a) {
let i = e === n ? f(r[a], !0) : r[a];
t.insertBefore(i, h(e));
}
}
}
return St(e), !0;
}, Yt = function(e, t, n, r) {
return e.length === 0 ? t : t === n || t === r ? iI(t) : t;
}, Xt = function(e, t) {
return e === t || _(e) !== null ? !1 : (Ue && Ot(e), !0);
}, Zt = function(e, n) {
if (Pt(e), Gt(ce.beforeSanitizeElements, e, null), Xt(e, n)) return !0;
if (Ht(e)) return St(e), !0;
let r = ft(w(e));
if (_e = Yt(ce.uponSanitizeElement, _e, ve, Ne), Gt(ce.uponSanitizeElement, e, {
tagName: r,
allowedTags: _e
}), Xt(e, n)) return !0;
if (Kt(e, r)) return St(e), !0;
if (Se[r] || !(we.tagCheck instanceof Function && we.tagCheck(r)) && !_e[r]) {
let t = Jt(e, r, n);
return t === !1 && (Gt(ce.afterSanitizeElements, e, null), Xt(e, n)) ? !0 : t;
}
if (C(e) === PI.element && !F(e) || (r === "noscript" || r === "noembed" || r === "noframes") && QF(MI, e.innerHTML)) return St(e), !0;
if (ke && e.nodeType === PI.text) {
let n = zt(e.textContent);
e.textContent !== n && (NF(t.removed, { element: e.cloneNode() }), e.textContent = n);
}
return Gt(ce.afterSanitizeElements, e, null), Xt(e, n);
}, Qt = function(e, t, r) {
if (Ce[t] || Ft(t, e) || ze && (t === "id" || t === "name") && (r in n || r in mt)) return !1;
let i = ye[t] || we.attributeCheck instanceof Function && we.attributeCheck(t, e);
return Ee && QF(de, t) || Te && QF(fe, t) ? !0 : i ? Xe[t] || QF(ge, UF(r, me, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && WF(r, "data:") === 0 && Je[e] || De && !QF(pe, UF(r, me, "")) ? !0 : !r : en(e) && qt(xe.tagNameCheck, e) && qt(xe.attributeNameCheck, t, e) || t === "is" && xe.allowCustomizedBuiltInElements && qt(xe.tagNameCheck, r);
}, $t = nI({}, [
"annotation-xml",
"color-profile",
"font-face",
"font-face-format",
"font-face-name",
"font-face-src",
"font-face-uri",
"missing-glyph"
]), en = function(e) {
return !$t[BF(e)] && QF(he, e);
}, tn = function(e, t, n, r) {
if (D && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
case "TrustedHTML": return te(r);
case "TrustedScriptURL": return M(r);
}
return r;
}, nn = function(e, t, n, r) {
try {
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Ht(e) || (St(e), !1);
} catch {
return Tt(t, e), !1;
}
}, rn = function(e, t) {
return Ae && QF(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : BF(e) === "attributename" && HF(t, "href") !== null;
}, an = function(e, n) {
if (Gt(ce.beforeSanitizeAttributes, e, null), Xt(e, n)) return;
let r = e.attributes;
if (!r || Ht(e)) return;
ye = Yt(ce.uponSanitizeAttribute, ye, be, Pe);
let i = {
attrName: "",
attrValue: "",
keepAttr: !0,
allowedAttributes: ye,
forceKeepAttr: void 0
}, a = r.length, o = ft(e.nodeName);
for (; a--;) {
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = ft(s), d = l, f = s === "value" ? d : GF(d), p = !1;
i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, Gt(ce.uponSanitizeAttribute, e, i), f = i.attrValue, Be && (u === "id" || u === "name") && WF(f, Ve) !== 0 && (Tt(s, e, n), f = Ve + f, p = !0), rn(s, f) ? Tt(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !Oe && QF(NI, f) ? Tt(s, e, n) : (ke && (f = zt(f)), Qt(o, u, f) ? (f = tn(o, u, c, f), f !== d && nn(e, s, c, f) && p && MF(t.removed)) : Tt(s, e, n)) : Tt(s, e, n));
}
Gt(ce.afterSanitizeAttributes, e, null), Xt(e, n);
}, on = function(e) {
let t = null, n = Rt(e);
for (Gt(ce.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Gt(ce.uponSanitizeShadowNode, t, null), Zt(t, e), an(t, e), Ut(t.content) && on(t.content), C(t) === PI.element) {
let e = v(t);
Ut(e) && (sn(e), on(e));
}
ke && Vt(e), Gt(ce.afterSanitizeShadowDOM, e, null);
}, sn = function(e) {
let t = [{
node: e,
shadow: null
}];
for (; t.length > 0;) {
let e = t.pop();
if (e.shadow) {
on(e.shadow);
continue;
}
let n = e.node, r = C(n) === PI.element, i = g(n);
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
node: i[e],
shadow: null
});
if (r) {
let e = x ? x(n) : null;
if (typeof e == "string" && ft(e) === "template") {
let e = n.content;
Ut(e) && t.push({
node: e,
shadow: null
});
}
}
if (r) {
let e = v(n);
Ut(e) && t.push({
node: null,
shadow: e
}, {
node: e,
shadow: null
});
}
}
};
return t.sanitize = function(e) {
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
if (nt = !e, nt && (e = "<!-->"), typeof e != "string" && !Wt(e) && (e = aI(e), typeof e != "string")) throw $F("dirty is not a string, aborting");
if (!t.isSupported) return e;
Me ? (_e = Ne, ye = Pe) : gt(n), (ce.uponSanitizeElement.length > 0 || ce.uponSanitizeAttribute.length > 0) && (_e = iI(_e)), ce.uponSanitizeAttribute.length > 0 && (ye = iI(ye)), t.removed = [];
let c = Ue && typeof e != "string" && Wt(e), l = [], u = We;
if (c) {
It(e);
let t = w(e);
if (typeof t == "string") {
let n = ft(t);
if (!_e[n] || Se[n]) throw wt(e), $F("root node is forbidden and cannot be sanitized in-place");
}
if (Ht(e)) throw wt(e), $F("root node is clobbered and cannot be sanitized in-place");
l = kt(e), We = LF();
} else if (Wt(e)) i = Lt("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === PI.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), sn(i);
else {
if (!Ie && !ke && !je && e.indexOf("<") === -1) return D && Re ? te(e) : e;
if (i = Lt(e), !i) return Ie ? null : Re ? O : "";
}
i && Fe && St(i.firstChild);
let d = c ? e : i;
try {
c && sn(e);
let t = Rt(d);
for (; o = t.nextNode();) Zt(o, d), an(o, d), Ut(o.content) && on(o.content);
c && Mt(e, l);
} catch (t) {
throw c && (wt(e), jt(e, l)), t;
} finally {
We = u;
}
if (c) {
if (jt(e, l)) throw $F("a node selected for removal could not be safely returned; refusing to sanitize in place");
return ke && Bt(e), e;
}
if (Ie) {
if (ke && Bt(i), Le) for (s = ae.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
else s = i;
return (ye.shadowroot || ye.shadowrootmode) && (s = se.call(r, s, !0)), s;
}
let f = je ? i.outerHTML : i.innerHTML;
return je && _e["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && QF(OI, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), ke && (f = zt(f)), D && Re ? te(f) : f;
}, t.setConfig = function() {
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
gt(e), Me = !0, Ne = _e, Pe = ye;
}, t.clearConfig = function() {
pt = null, Me = !1, Ne = null, Pe = null, D = k, O = "";
}, t.isValidAttribute = function(e, t, n) {
pt || gt({});
let r = ft(e), i = ft(t);
return typeof n == "string" && (rn(t, n) || !Oe && QF(NI, n)) ? !1 : Qt(r, i, n);
}, t.addHook = function(e, t) {
typeof t == "function" && XF(ce, e) && NF(ce[e], t);
}, t.removeHook = function(e, t) {
if (XF(ce, e)) {
if (t !== void 0) {
let n = jF(ce[e], t);
return n === -1 ? void 0 : FF(ce[e], n, 1)[0];
}
return MF(ce[e]);
}
}, t.removeHooks = function(e) {
XF(ce, e) && (ce[e] = []);
}, t.removeAllHooks = function() {
ce = RI();
}, t;
}
var HI = VI(), UI = {
"": ["<em>", "</em>"],
_: ["<strong>", "</strong>"],
"*": ["<strong>", "</strong>"],
"~": ["<s>", "</s>"],
"\n": ["<br />"],
" ": ["<br />"],
"-": ["<hr />"]
};
function WI(e) {
return e.replace(RegExp("^" + (e.match(/^(\t| )+/) || "")[0], "gm"), "");
}
function GI(e) {
return (e + "").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
}
function KI(e, t) {
var n, r, i, a, o, s = /((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm, c = [], l = "", u = t || {}, d = 0;
function f(e) {
var t = UI[e[1] || ""], n = c[c.length - 1] == e;
return t ? t[1] ? (n ? c.pop() : c.push(e), t[0 | n]) : t[0] : e;
}
function p() {
for (var e = ""; c.length;) e += f(c[c.length - 1]);
return e;
}
for (e = e.replace(/^\[(.+?)\]:\s*(.+)$/gm, function(e, t, n) {
return u[t.toLowerCase()] = n, "";
}).replace(/^\n+|\n+$/g, ""); i = s.exec(e);) r = e.substring(d, i.index), d = s.lastIndex, n = i[0], r.match(/[^\\](\\\\)*\\$/) || ((o = i[3] || i[4]) ? n = "<pre class=\"code " + (i[4] ? "poetry" : i[2].toLowerCase()) + "\"><code" + (i[2] ? " class=\"language-" + i[2].toLowerCase() + "\"" : "") + ">" + WI(GI(o).replace(/^\n+|\n+$/g, "")) + "</code></pre>" : (o = i[6]) ? (o.match(/\./) && (i[5] = i[5].replace(/^\d+/gm, "")), a = KI(WI(i[5].replace(/^\s*[>*+.-]/gm, ""))), o == ">" ? o = "blockquote" : (o = o.match(/\./) ? "ol" : "ul", a = a.replace(/^(.*)(\n|$)/gm, "<li>$1</li>")), n = "<" + o + ">" + a + "</" + o + ">") : i[8] ? n = "<img src=\"" + GI(i[8]) + "\" alt=\"" + GI(i[7]) + "\">" : i[10] ? (l = l.replace("<a>", "<a href=\"" + GI(i[11] || u[r.toLowerCase()]) + "\">"), n = p() + "</a>") : i[9] ? n = "<a>" : i[12] || i[14] ? n = "<" + (o = "h" + (i[14] ? i[14].length : i[13] > "=" ? 1 : 2)) + ">" + KI(i[12] || i[15], u) + "</" + o + ">" : i[16] ? n = "<code>" + GI(i[16]) + "</code>" : (i[17] || i[1]) && (n = f(i[17] || "--"))), l += r, l += n;
return (l + e.substring(d) + p()).replace(/^\n+|\n+$/g, "");
}
// src/components/markdown.tsx
var qI = [
"p",
"a",
"code",
"pre",
"strong",
"em",
"ul",
"ol",
"li",
"blockquote",
"br"
], JI = !1, YI = () => {
JI || (JI = !0, HI.addHook("afterSanitizeAttributes", (e) => {
e.tagName === "A" && (e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("target", "_blank"));
}));
}, XI = (e) => {
let t = B(() => (YI(), HI.sanitize(KI(e.content), {
ALLOWED_TAGS: qI,
ALLOWED_ATTR: ["href", "title"]
})), [e.content]);
return /* @__PURE__ */ G("div", {
"data-slot": "markdown",
className: Y("text-xs leading-relaxed text-muted-foreground [&_a]:text-primary [&_a]:underline [&_code]:rounded [&_code]:bg-black/20 [&_code]:px-1 [&_code]:py-0.5", e.className),
dangerouslySetInnerHTML: { __html: t }
});
}, ZI = Jv("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
variants: { variant: {
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
destructive: "border-transparent text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/40 bg-destructive/60",
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
} },
defaultVariants: { variant: "default" }
});
function QI({ className: e, variant: t, asChild: n = !1, ...r }) {
return /* @__PURE__ */ G(n ? ry : "span", {
"data-slot": "badge",
className: Y(ZI({ variant: t }), e),
...r
});
}
// src/components/laboratory/docs.tsx
var $I = (e) => {
let t = e;
for (; t && "ofType" in t && t.ofType;) t = t.ofType;
return t ?? null;
}, eL = (e) => /* @__PURE__ */ K("div", {
className: "flex flex-col gap-1",
children: [/* @__PURE__ */ G("div", {
className: "px-2 pt-2 text-[11px] font-medium tracking-wide text-muted-foreground uppercase",
children: e.title
}), e.children]
}), tL = (e) => e.description ? /* @__PURE__ */ G(XI, {
className: "px-2 py-1",
content: e.description
}) : null, nL = (e) => /* @__PURE__ */ K("div", {
className: "flex flex-col gap-1 px-2 py-1",
children: [/* @__PURE__ */ G(QI, {
variant: "outline",
className: "w-fit text-muted-foreground",
children: "Deprecated"
}), e.reason ? /* @__PURE__ */ G(XI, { content: e.reason }) : null]
}), rL = (e) => /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "sm",
onClick: e.onClick,
className: Y("w-full justify-start px-2 text-xs font-normal", e.className),
children: e.children
}), iL = (e) => /* @__PURE__ */ K(Z, {
variant: "ghost",
size: "sm",
onClick: e.onClick,
className: "h-auto w-full flex-col items-start gap-0.5 px-2 py-1.5 text-xs font-normal",
children: [/* @__PURE__ */ K("div", {
className: "flex w-full items-center gap-1",
children: [
/* @__PURE__ */ G("span", {
className: "text-rose-400",
children: e.name
}),
/* @__PURE__ */ G("span", {
className: "text-muted-foreground",
children: ":"
}),
/* @__PURE__ */ G(uF, { type: e.type }),
e.isDeprecated ? /* @__PURE__ */ G(QI, {
variant: "outline",
className: "ml-auto text-muted-foreground",
children: "Deprecated"
}) : null
]
}), e.description ? /* @__PURE__ */ G("span", {
className: "line-clamp-2 text-left whitespace-normal text-muted-foreground",
children: e.description
}) : null]
}), aL = (e) => {
let t = $I(e.type);
return /* @__PURE__ */ G("button", {
type: "button",
className: "cursor-pointer",
onClick: () => t && e.onNavigate(t.name),
children: /* @__PURE__ */ G(uF, { type: e.type })
});
}, oL = (e) => /* @__PURE__ */ K("div", {
className: "flex flex-col gap-0.5 px-2 py-1 text-xs",
children: [
/* @__PURE__ */ K("div", {
className: "flex flex-wrap items-center gap-1",
children: [
/* @__PURE__ */ G("span", {
className: "text-rose-400",
children: e.arg.name
}),
/* @__PURE__ */ G("span", {
className: "text-muted-foreground",
children: ":"
}),
/* @__PURE__ */ G(aL, {
type: e.arg.type,
onNavigate: e.onNavigate
}),
e.arg.defaultValue === void 0 ? null : /* @__PURE__ */ K("span", {
className: "text-muted-foreground",
children: ["= ", JSON.stringify(e.arg.defaultValue)]
})
]
}),
/* @__PURE__ */ G(tL, { description: e.arg.description }),
e.arg.deprecationReason ? /* @__PURE__ */ G(nL, { reason: e.arg.deprecationReason }) : null
]
}), sL = (e) => /* @__PURE__ */ K("div", {
className: "flex flex-col gap-0.5 px-2 py-1 text-xs",
children: [
/* @__PURE__ */ G("span", {
className: "text-teal-400",
children: e.value.name
}),
/* @__PURE__ */ G(tL, { description: e.value.description }),
e.value.deprecationReason ? /* @__PURE__ */ G(nL, { reason: e.value.deprecationReason }) : null
]
}), cL = () => {
let { schema: e, docsNavStack: t, pushDocs: n, popDocs: r, resetDocs: i } = dy(), [a, o] = H(""), s = hn(a), c = s.trim().length > 0, u = B(() => lF(e ?? null, s), [e, s]), d = (e) => n({
kind: "type",
name: e
}), f = (e, t) => n({
kind: "field",
typeName: e,
fieldName: t
}), p = t.at(-1) ?? null, m = B(() => {
if (!e || !p) return null;
let t = e.getType(p.kind === "type" ? p.name : p.typeName);
if (!t) return null;
if (p.kind === "type") return {
kind: "type",
type: t
};
if (!A(t) && !h(t) && !Mt(t)) return null;
let n = t.getFields()[p.fieldName];
return n ? {
kind: "field",
type: t,
field: n
} : null;
}, [e, p]), g = B(() => m ? m.kind === "type" ? m.type.name : m.field.name : "Documentation", [m]);
return /* @__PURE__ */ K("div", {
className: "grid size-full grid-rows-[auto_auto_1fr] pb-0",
children: [
/* @__PURE__ */ K("div", {
className: "flex h-12 items-center gap-2 border-b border-border p-3",
children: [
t.length > 0 && !c ? /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "icon-sm",
className: "size-6 rounded-sm p-1! text-muted-foreground hover:text-foreground",
onClick: r,
children: /* @__PURE__ */ G(Pn, { className: "size-4" })
}) : null,
/* @__PURE__ */ G("span", {
className: "truncate text-base font-medium",
children: g
}),
t.length > 0 && !c ? /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "sm",
className: "ml-auto h-6 px-2 text-xs text-muted-foreground hover:text-foreground",
onClick: i,
children: "Root"
}) : null
]
}),
/* @__PURE__ */ G("div", {
className: "border-b border-border p-3",
children: /* @__PURE__ */ K(Qj, { children: [/* @__PURE__ */ G(rM, {
placeholder: "Search the schema",
value: a,
onChange: (e) => o(e.currentTarget.value)
}), /* @__PURE__ */ G(eM, { children: /* @__PURE__ */ G(br, { className: "size-4 text-muted-foreground" }) })] })
}),
/* @__PURE__ */ G("div", {
className: "size-full overflow-hidden",
children: /* @__PURE__ */ K(QN, {
className: "size-full",
children: [/* @__PURE__ */ G("div", {
className: "flex flex-col gap-1 p-3",
children: e ? c ? u.types.length === 0 && u.fields.length === 0 && u.enumValues.length === 0 ? /* @__PURE__ */ G(fO, {
className: "w-full px-0!",
children: /* @__PURE__ */ K(pO, { children: [/* @__PURE__ */ G(gO, {
className: "text-base",
children: "No matches"
}), /* @__PURE__ */ K(_O, {
className: "text-xs",
children: [
"Nothing in this schema matches \"",
s,
"\"."
]
})] })
}) : /* @__PURE__ */ K(Br, { children: [
u.types.length > 0 ? /* @__PURE__ */ G(eL, {
title: "Types",
children: u.types.map((e) => /* @__PURE__ */ G(rL, {
onClick: () => d(e.name),
children: /* @__PURE__ */ G("span", {
className: "text-amber-400",
children: e.name
})
}, e.name))
}) : null,
u.fields.length > 0 ? /* @__PURE__ */ G(eL, {
title: "Fields",
children: u.fields.map((e) => /* @__PURE__ */ K(rL, {
onClick: () => f(e.typeName, e.fieldName),
children: [/* @__PURE__ */ K("span", {
className: "text-muted-foreground",
children: [e.typeName, "."]
}), /* @__PURE__ */ G("span", {
className: "text-rose-400",
children: e.fieldName
})]
}, `${e.typeName}.${e.fieldName}`))
}) : null,
u.enumValues.length > 0 ? /* @__PURE__ */ G(eL, {
title: "Enum values",
children: u.enumValues.map((e) => /* @__PURE__ */ K(rL, {
onClick: () => d(e.typeName),
children: [/* @__PURE__ */ K("span", {
className: "text-muted-foreground",
children: [e.typeName, "."]
}), /* @__PURE__ */ G("span", {
className: "text-teal-400",
children: e.valueName
})]
}, `${e.typeName}.${e.valueName}`))
}) : null
] }) : m ? m.kind === "type" ? ((t) => {
let n = [];
if (A(t) || h(t) || Mt(t)) {
let e = Object.values(t.getFields());
e.length > 0 && n.push(/* @__PURE__ */ G(eL, {
title: "Fields",
children: e.map((e) => /* @__PURE__ */ G(iL, {
name: e.name,
type: e.type,
description: e.description,
isDeprecated: !!e.deprecationReason,
onClick: () => f(t.name, e.name)
}, e.name))
}, "fields"));
}
if (A(t) || h(t)) {
let e = t.getInterfaces();
e.length > 0 && n.push(/* @__PURE__ */ G(eL, {
title: "Implements",
children: e.map((e) => /* @__PURE__ */ G(rL, {
onClick: () => d(e.name),
children: /* @__PURE__ */ G("span", {
className: "text-amber-400",
children: e.name
})
}, e.name))
}, "implements"));
}
if (_(t) || h(t)) {
let r = _(t) ? t.getTypes() : e?.getPossibleTypes(t) ?? [];
r.length > 0 && n.push(/* @__PURE__ */ G(eL, {
title: _(t) ? "Possible types" : "Implementations",
children: r.map((e) => /* @__PURE__ */ G(rL, {
onClick: () => d(e.name),
children: /* @__PURE__ */ G("span", {
className: "text-amber-400",
children: e.name
})
}, e.name))
}, "possible"));
}
return l(t) && n.push(/* @__PURE__ */ G(eL, {
title: "Enum values",
children: t.getValues().map((e) => /* @__PURE__ */ G(sL, { value: e }, e.name))
}, "values")), /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G(tL, { description: t.description }), n] });
})(m.type) : ((e, t) => {
let n = "args" in t ? t.args : [];
return /* @__PURE__ */ K(Br, { children: [
/* @__PURE__ */ K("div", {
className: "px-2 pt-2 text-xs text-muted-foreground",
children: ["on ", /* @__PURE__ */ G("span", {
className: "text-amber-400",
children: e.name
})]
}),
/* @__PURE__ */ G(tL, { description: t.description }),
t.deprecationReason ? /* @__PURE__ */ G(nL, { reason: t.deprecationReason }) : null,
/* @__PURE__ */ G(eL, {
title: "Type",
children: /* @__PURE__ */ G("div", {
className: "px-2 py-1 text-xs",
children: /* @__PURE__ */ G(aL, {
type: t.type,
onNavigate: d
})
})
}),
n.length > 0 ? /* @__PURE__ */ G(eL, {
title: "Arguments",
children: n.map((e) => /* @__PURE__ */ G(oL, {
arg: e,
onNavigate: d
}, e.name))
}) : null
] });
})(m.type, m.field) : (() => {
if (!e) return null;
let t = [
{
label: "query",
type: e.getQueryType()
},
{
label: "mutation",
type: e.getMutationType()
},
{
label: "subscription",
type: e.getSubscriptionType()
}
].filter((e) => e.type);
return /* @__PURE__ */ G(eL, {
title: "Root types",
children: t.map((e) => /* @__PURE__ */ G(iL, {
name: e.label,
type: e.type,
description: e.type.description,
onClick: () => d(e.type.name)
}, e.label))
});
})() : /* @__PURE__ */ G(fO, {
className: "w-full px-0!",
children: /* @__PURE__ */ K(pO, { children: [
/* @__PURE__ */ G(hO, {
variant: "icon",
children: /* @__PURE__ */ G(Dn, { className: "size-6 text-muted-foreground" })
}),
/* @__PURE__ */ G(gO, {
className: "text-base",
children: "No schema yet"
}),
/* @__PURE__ */ G(_O, {
className: "text-xs",
children: "Documentation appears once the Laboratory has introspected your endpoint."
})
] })
})
}), /* @__PURE__ */ G($N, {})]
})
})
]
});
}, lL = "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace";
function uL(e) {
return {
...e,
lineNumbers: "on",
cursorStyle: "line",
cursorBlinking: "smooth",
padding: { top: 16 },
fontFamily: lL,
minimap: { enabled: !1 },
automaticLayout: !0,
stickyScroll: { enabled: !1 },
tabSize: 2,
formatOnPaste: !0,
fixedOverflowWidgets: !0
};
}
// ../../../node_modules/.pnpm/monaco-graphql@1.9.0_graphql@17.1.0_monaco-editor@0.52.2_prettier@3.4.2/node_modules/monaco-graphql/esm/api.js
var dL = class {
_onDidChange = new $t();
_formattingOptions;
_modeConfiguration;
_diagnosticSettings;
_completionSettings;
_experimentalFragmentArguments;
_schemas = null;
_schemasById = Object.create(null);
_languageId;
_externalFragmentDefinitions;
constructor({ languageId: e, schemas: t, modeConfiguration: n, formattingOptions: r, diagnosticSettings: i, completionSettings: a, experimentalFragmentArguments: o }) {
this._languageId = e, t && this.setSchemaConfig(t), this._modeConfiguration = n, this._completionSettings = a, this._diagnosticSettings = i, this._formattingOptions = r, this._experimentalFragmentArguments = o;
}
get onDidChange() {
return this._onDidChange.event;
}
get languageId() {
return this._languageId;
}
get modeConfiguration() {
return this._modeConfiguration;
}
get schemas() {
return this._schemas;
}
schemasById() {
return this._schemasById;
}
get formattingOptions() {
return this._formattingOptions;
}
get diagnosticSettings() {
return this._diagnosticSettings;
}
get completionSettings() {
return {
...this._completionSettings,
fillLeafsOnComplete: this._completionSettings.__experimental__fillLeafsOnComplete ?? this._completionSettings.fillLeafsOnComplete
};
}
get experimentalFragmentArguments() {
return this._experimentalFragmentArguments;
}
get externalFragmentDefinitions() {
return this._externalFragmentDefinitions;
}
setSchemaConfig(e) {
this._schemas = e, this._schemasById = e.reduce((e, t) => (e[t.uri] = t, e), Object.create(null)), this._onDidChange.fire(this);
}
setExternalFragmentDefinitions(e) {
this._externalFragmentDefinitions = e;
}
setModeConfiguration(e) {
this._modeConfiguration = e, this._onDidChange.fire(this);
}
setFormattingOptions(e) {
this._formattingOptions = e, this._onDidChange.fire(this);
}
setDiagnosticSettings(e) {
this._diagnosticSettings = e, this._onDidChange.fire(this);
}
setCompletionSettings(e) {
this._completionSettings = e, this._onDidChange.fire(this);
}
};
function fL(e, t) {
if (!t) return new dL({
languageId: e,
schemas: [],
formattingOptions: mL,
modeConfiguration: pL,
diagnosticSettings: hL,
completionSettings: gL,
experimentalFragmentArguments: !1
});
let { schemas: n, formattingOptions: r, modeConfiguration: i, diagnosticSettings: a, completionSettings: o, experimentalFragmentArguments: s } = t;
return new dL({
languageId: e,
schemas: n,
formattingOptions: {
...mL,
...r,
prettierConfig: {
...mL.prettierConfig,
...r?.prettierConfig
}
},
modeConfiguration: {
...pL,
...i
},
diagnosticSettings: {
...hL,
...a
},
completionSettings: {
...gL,
...o
},
experimentalFragmentArguments: s ?? !1
});
}
var pL = {
documentFormattingEdits: !0,
documentRangeFormattingEdits: !1,
completionItems: !0,
hovers: !0,
documentSymbols: !1,
tokens: !1,
colors: !1,
foldingRanges: !1,
diagnostics: !0,
selectionRanges: !1
}, mL = { prettierConfig: { tabWidth: 2 } }, hL = { jsonDiagnosticSettings: { schemaValidation: "error" } }, gL = { __experimental__fillLeafsOnComplete: !1 }, _L = "graphql", vL;
function yL(e) {
return vL || (vL = fL(_L, e), Yt.graphql = { api: vL }, bL().then((e) => e.setupMode(vL))), vL;
}
function bL() {
return import("./graphqlMode-BrkBi4ES.js");
}
// src/lib/monaco-graphql.ts
var xL = null, SL = /* @__PURE__ */ new Map();
function CL(e) {
e.operationUri && e.variablesUri && SL.set(e.operationUri, e.variablesUri);
let t = [{
introspectionJSON: e.introspection,
uri: e.schemaUri
}], n = {
validateVariablesJSON: Object.fromEntries([...SL].map(([e, t]) => [e, [t]])),
jsonDiagnosticSettings: { allowComments: !0 }
}, r = !e.enableDocs;
return xL ? (xL.setSchemaConfig(t), xL.setDiagnosticSettings(n), xL.setModeConfiguration({
...xL.modeConfiguration,
hovers: r
}), xL) : (xL = yL({
schemas: t,
diagnosticSettings: n,
modeConfiguration: { hovers: r }
}), xL.setCompletionSettings({ __experimental__fillLeafsOnComplete: !0 }), xL);
}
// ../../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js
function wL(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
function TL(e) {
if (Array.isArray(e)) return e;
}
function EL(e, t, n) {
return (t = FL(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
function DL(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
try {
if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
} catch (e) {
l = !0, i = e;
} finally {
try {
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
} finally {
if (l) throw i;
}
}
return s;
}
}
function OL() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function kL(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter(function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function AL(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? kL(Object(n), !0).forEach(function(t) {
EL(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kL(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
function jL(e, t) {
if (e == null) return {};
var n, r, i = ML(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
function ML(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
if (t.indexOf(r) !== -1) continue;
n[r] = e[r];
}
return n;
}
function NL(e, t) {
return TL(e) || DL(e, t) || IL(e, t) || OL();
}
function PL(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(e, t);
if (typeof r != "object") return r;
throw TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
function FL(e) {
var t = PL(e, "string");
return typeof t == "symbol" ? t : t + "";
}
function IL(e, t) {
if (e) {
if (typeof e == "string") return wL(e, t);
var n = {}.toString.call(e).slice(8, -1);
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? wL(e, t) : void 0;
}
}
// ../../../node_modules/.pnpm/state-local@1.0.7/node_modules/state-local/lib/es/state-local.js
function LL(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
function RL(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter(function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function zL(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? RL(Object(n), !0).forEach(function(t) {
LL(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RL(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
function BL() {
var e = [...arguments];
return function(t) {
return e.reduceRight(function(e, t) {
return t(e);
}, t);
};
}
function VL(e) {
return function t() {
var n = this, r = [...arguments];
return r.length >= e.length ? e.apply(this, r) : function() {
var e = [...arguments];
return t.apply(n, [].concat(r, e));
};
};
}
function HL(e) {
return {}.toString.call(e).includes("Object");
}
function UL(e) {
return !Object.keys(e).length;
}
function WL(e) {
return typeof e == "function";
}
function GL(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
function KL(e, t) {
return HL(t) || ZL("changeType"), Object.keys(t).some(function(t) {
return !GL(e, t);
}) && ZL("changeField"), t;
}
function qL(e) {
WL(e) || ZL("selectorType");
}
function JL(e) {
WL(e) || HL(e) || ZL("handlerType"), HL(e) && Object.values(e).some(function(e) {
return !WL(e);
}) && ZL("handlersType");
}
function YL(e) {
e || ZL("initialIsRequired"), HL(e) || ZL("initialType"), UL(e) && ZL("initialContent");
}
function XL(e, t) {
throw Error(e[t] || e.default);
}
var ZL = VL(XL)({
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"
}), QL = {
changes: KL,
selector: qL,
handler: JL,
initial: YL
};
function $L(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
QL.initial(e), QL.handler(t);
var n = { current: e }, r = VL(nR)(n, t), i = VL(tR)(n), a = VL(QL.changes)(e), o = VL(eR)(n);
function s() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(e) {
return e;
};
return QL.selector(e), e(n.current);
}
function c(e) {
BL(r, i, a, o)(e);
}
return [s, c];
}
function eR(e, t) {
return WL(t) ? t(e.current) : t;
}
function tR(e, t) {
return e.current = zL(zL({}, e.current), t), t;
}
function nR(e, t, n) {
return WL(t) ? t(e.current) : Object.keys(n).forEach(function(n) {
return t[n]?.call(t, e.current[n]);
}), n;
}
var rR = { create: $L }, iR = { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs" } };
// ../../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/curry.js
function aR(e) {
return function t() {
var n = this, r = [...arguments];
return r.length >= e.length ? e.apply(this, r) : function() {
var e = [...arguments];
return t.apply(n, [].concat(r, e));
};
};
}
// ../../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js
function oR(e) {
return {}.toString.call(e).includes("Object");
}
// ../../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/validators/index.js
function sR(e) {
return e || dR("configIsRequired"), oR(e) || dR("configType"), e.urls ? (cR(), { paths: { vs: e.urls.monacoBase } }) : e;
}
function cR() {
console.warn(uR.deprecation);
}
function lR(e, t) {
throw Error(e[t] || e.default);
}
var uR = {
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!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "
}, dR = aR(lR)(uR), fR = { config: sR }, pR = function() {
var e = [...arguments];
return function(t) {
return e.reduceRight(function(e, t) {
return t(e);
}, t);
};
};
// ../../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js
function mR(e, t) {
return Object.keys(t).forEach(function(n) {
t[n] instanceof Object && e[n] && Object.assign(t[n], mR(e[n], t[n]));
}), AL(AL({}, e), t);
}
// ../../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js
var hR = {
type: "cancelation",
msg: "operation is manually canceled"
};
function gR(e) {
var t = !1, n = new Promise(function(n, r) {
e.then(function(e) {
return t ? r(hR) : n(e);
}), e.catch(r);
});
return n.cancel = function() {
return t = !0;
}, n;
}
// ../../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/loader/index.js
var _R = ["monaco"], vR = NL(rR.create({
config: iR,
isInitialized: !1,
resolve: null,
reject: null,
monaco: null
}), 2), yR = vR[0], bR = vR[1];
function xR(e) {
var t = fR.config(e), n = t.monaco, r = jL(t, _R);
bR(function(e) {
return {
config: mR(e.config, r),
monaco: n
};
});
}
function SR() {
var e = yR(function(e) {
return {
monaco: e.monaco,
isInitialized: e.isInitialized,
resolve: e.resolve
};
});
if (!e.isInitialized) {
if (bR({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), gR(kR);
if (window.monaco && window.monaco.editor) return DR(window.monaco), e.resolve(window.monaco), gR(kR);
pR(CR, TR)(ER);
}
return gR(kR);
}
function CR(e) {
return document.body.appendChild(e);
}
function wR(e) {
var t = document.createElement("script");
return e && (t.src = e), t;
}
function TR(e) {
var t = yR(function(e) {
return {
config: e.config,
reject: e.reject
};
}), n = wR(`${t.config.paths.vs}/loader.js`);
return n.onload = function() {
return e();
}, n.onerror = t.reject, n;
}
function ER() {
var e = yR(function(e) {
return {
config: e.config,
resolve: e.resolve,
reject: e.reject
};
}), t = window.require;
t.config(e.config), t(["vs/editor/editor.main"], function(t) {
var n = t.m || t;
DR(n), e.resolve(n);
}, function(t) {
e.reject(t);
});
}
function DR(e) {
yR().monaco || bR({ monaco: e });
}
function OR() {
return yR(function(e) {
return e.monaco;
});
}
var kR = new Promise(function(e, t) {
return bR({
resolve: e,
reject: t
});
}), AR = {
config: xR,
init: SR,
__getMonacoInstance: OR
}, jR = {
wrapper: {
display: "flex",
position: "relative",
textAlign: "initial"
},
fullWidth: { width: "100%" },
hide: { display: "none" }
}, MR = { container: {
display: "flex",
height: "100%",
width: "100%",
justifyContent: "center",
alignItems: "center"
} };
function NR({ children: e }) {
return L.createElement("div", { style: MR.container }, e);
}
var PR = NR;
function FR({ width: e, height: t, isEditorReady: n, loading: r, _ref: i, className: a, wrapperProps: o }) {
return L.createElement("section", {
style: {
...jR.wrapper,
width: e,
height: t
},
...o
}, !n && L.createElement(PR, null, r), L.createElement("div", {
ref: i,
style: {
...jR.fullWidth,
...!n && jR.hide
},
className: a
}));
}
var IR = pn(FR);
function LR(e) {
z(e, []);
}
var RR = LR;
function zR(e, t, n = !0) {
let r = V(!0);
z(r.current || !n ? () => {
r.current = !1;
} : e, t);
}
var BR = zR;
function VR() {}
function HR(e, t, n, r) {
return UR(e, r) || WR(e, t, n, r);
}
function UR(e, t) {
return e.editor.getModel(GR(e, t));
}
function WR(e, t, n, r) {
return e.editor.createModel(t, n, r ? GR(e, r) : void 0);
}
function GR(e, t) {
return e.Uri.parse(t);
}
function KR({ original: e, modified: t, language: n, originalLanguage: r, modifiedLanguage: i, originalModelPath: a, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: c = !1, theme: l = "light", loading: u = "Loading...", options: d = {}, height: f = "100%", width: p = "100%", className: m, wrapperProps: h = {}, beforeMount: g = VR, onMount: _ = VR }) {
let [v, y] = H(!1), [b, x] = H(!0), S = V(null), C = V(null), w = V(null), T = V(_), E = V(g), D = V(!1);
RR(() => {
let e = AR.init();
return e.then((e) => (C.current = e) && x(!1)).catch((e) => e?.type !== "cancelation" && console.error("Monaco initialization: error:", e)), () => S.current ? A() : e.cancel();
}), BR(() => {
if (S.current && C.current) {
let t = S.current.getOriginalEditor(), i = HR(C.current, e || "", r || n || "text", a || "");
i !== t.getModel() && t.setModel(i);
}
}, [a], v), BR(() => {
if (S.current && C.current) {
let e = S.current.getModifiedEditor(), r = HR(C.current, t || "", i || n || "text", o || "");
r !== e.getModel() && e.setModel(r);
}
}, [o], v), BR(() => {
let e = S.current.getModifiedEditor();
e.getOption(C.current.editor.EditorOption.readOnly) ? e.setValue(t || "") : t !== e.getValue() && (e.executeEdits("", [{
range: e.getModel().getFullModelRange(),
text: t || "",
forceMoveMarkers: !0
}]), e.pushUndoStop());
}, [t], v), BR(() => {
S.current?.getModel()?.original.setValue(e || "");
}, [e], v), BR(() => {
let { original: e, modified: t } = S.current.getModel();
C.current.editor.setModelLanguage(e, r || n || "text"), C.current.editor.setModelLanguage(t, i || n || "text");
}, [
n,
r,
i
], v), BR(() => {
C.current?.editor.setTheme(l);
}, [l], v), BR(() => {
S.current?.updateOptions(d);
}, [d], v);
let O = R(() => {
if (!C.current) return;
E.current(C.current);
let s = HR(C.current, e || "", r || n || "text", a || ""), c = HR(C.current, t || "", i || n || "text", o || "");
S.current?.setModel({
original: s,
modified: c
});
}, [
n,
t,
i,
e,
r,
a,
o
]), k = R(() => {
!D.current && w.current && (S.current = C.current.editor.createDiffEditor(w.current, {
automaticLayout: !0,
...d
}), O(), C.current?.editor.setTheme(l), y(!0), D.current = !0);
}, [
d,
l,
O
]);
z(() => {
v && T.current(S.current, C.current);
}, [v]), z(() => {
!b && !v && k();
}, [
b,
v,
k
]);
function A() {
let e = S.current?.getModel();
s || e?.original?.dispose(), c || e?.modified?.dispose(), S.current?.dispose();
}
return L.createElement(IR, {
width: p,
height: f,
isEditorReady: v,
loading: u,
_ref: w,
className: m,
wrapperProps: h
});
}
pn(KR);
function qR(e) {
let t = V();
return z(() => {
t.current = e;
}, [e]), t.current;
}
var JR = qR, YR = /* @__PURE__ */ new Map();
function XR({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: i, path: a, theme: o = "light", line: s, loading: c = "Loading...", options: l = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: f = !1, width: p = "100%", height: m = "100%", className: h, wrapperProps: g = {}, beforeMount: _ = VR, onMount: v = VR, onChange: y, onValidate: b = VR }) {
let [x, S] = H(!1), [C, w] = H(!0), T = V(null), E = V(null), D = V(null), O = V(v), k = V(_), A = V(void 0), ee = V(r), j = JR(a), te = V(!1), M = V(!1);
RR(() => {
let e = AR.init();
return e.then((e) => (T.current = e) && w(!1)).catch((e) => e?.type !== "cancelation" && console.error("Monaco initialization: error:", e)), () => E.current ? N() : e.cancel();
}), BR(() => {
let o = HR(T.current, e || r || "", t || i || "", a || n || "");
o !== E.current?.getModel() && (d && YR.set(j, E.current?.saveViewState()), E.current?.setModel(o), d && E.current?.restoreViewState(YR.get(a)));
}, [a], x), BR(() => {
E.current?.updateOptions(l);
}, [l], x), BR(() => {
!E.current || r === void 0 || (E.current.getOption(T.current.editor.EditorOption.readOnly) ? E.current.setValue(r) : r !== E.current.getValue() && (M.current = !0, E.current.executeEdits("", [{
range: E.current.getModel().getFullModelRange(),
text: r,
forceMoveMarkers: !0
}]), E.current.pushUndoStop(), M.current = !1));
}, [r], x), BR(() => {
let e = E.current?.getModel();
x && e && i && T.current?.editor.setModelLanguage(e, i);
}, [i, x], x), BR(() => {
s !== void 0 && E.current?.revealLine(s);
}, [s], x), BR(() => {
T.current?.editor.setTheme(o);
}, [o], x);
let ne = R(() => {
if (D.current && T.current && !te.current) {
k.current(T.current);
let c = a || n, f = HR(T.current, r || e || "", t || i || "", c || "");
E.current = T.current?.editor.create(D.current, {
model: f,
automaticLayout: !0,
...l
}, u), d && E.current.restoreViewState(YR.get(c)), T.current.editor.setTheme(o), s !== void 0 && E.current.revealLine(s), S(!0), te.current = !0;
}
}, [
e,
t,
n,
r,
i,
a,
l,
u,
d,
o,
s
]);
z(() => {
x && O.current(E.current, T.current);
}, [x]), z(() => {
!C && !x && ne();
}, [
C,
x,
ne
]), ee.current = r, z(() => {
x && y && (A.current?.dispose(), A.current = E.current?.onDidChangeModelContent((e) => {
M.current || y(E.current.getValue(), e);
}));
}, [x, y]), z(() => {
if (x) {
let e = T.current.editor.onDidChangeMarkers((e) => {
let t = E.current.getModel()?.uri;
if (t && e.find((e) => e.path === t.path)) {
let e = T.current.editor.getModelMarkers({ resource: t });
b?.(e);
}
});
return () => {
e?.dispose();
};
}
return () => {};
}, [x, b]);
function N() {
A.current?.dispose(), f ? d && YR.set(a, E.current.saveViewState()) : E.current.getModel()?.dispose(), E.current.dispose(), E.current = null, te.current = !1, S(!1);
}
return L.createElement(IR, {
width: p,
height: m,
isEditorReady: x,
loading: c,
_ref: D,
className: h,
wrapperProps: g
});
}
var ZR = pn(XR);
typeof window < "u" && (window.monaco = $a), AR.config({ monaco: $a }), Yt.register({ id: "dotenv" }), tn.defineTheme("hive-laboratory-dark", {
base: "vs-dark",
inherit: !0,
rules: [
{
token: "",
foreground: "F8F9FA",
background: "fffffe"
},
{
token: "invalid",
foreground: "cd3131"
},
{
token: "emphasis",
fontStyle: "italic"
},
{
token: "strong",
fontStyle: "bold"
},
{
token: "variable",
foreground: "001188"
},
{
token: "variable.predefined",
foreground: "4864AA"
},
{
token: "constant",
foreground: "dd0000"
},
{
token: "comment",
foreground: "15803d"
},
{
token: "number",
foreground: "fde68a"
},
{
token: "number.hex",
foreground: "3030c0"
},
{
token: "regexp",
foreground: "800000"
},
{
token: "annotation",
foreground: "808080"
},
{
token: "type",
foreground: "fde68a"
},
{
token: "delimiter",
foreground: "6E757C"
},
{
token: "delimiter.html",
foreground: "383838"
},
{
token: "delimiter.xml",
foreground: "facc15"
},
{
token: "tag",
foreground: "800000"
},
{
token: "tag.id.jade",
foreground: "4F76AC"
},
{
token: "tag.class.jade",
foreground: "4F76AC"
},
{
token: "meta.scss",
foreground: "800000"
},
{
token: "metatag",
foreground: "e00000"
},
{
token: "metatag.content.html",
foreground: "FF0000"
},
{
token: "metatag.html",
foreground: "808080"
},
{
token: "metatag.xml",
foreground: "808080"
},
{
token: "metatag.php",
fontStyle: "bold"
},
{
token: "key",
foreground: "93c5fd"
},
{
token: "string.key.json",
foreground: "93c5fd"
},
{
token: "string.value.json",
foreground: "fdba74"
},
{
token: "attribute.name",
foreground: "FF0000"
},
{
token: "attribute.value",
foreground: "34d399"
},
{
token: "attribute.value.number",
foreground: "fdba74"
},
{
token: "attribute.value.unit",
foreground: "fdba74"
},
{
token: "attribute.value.html",
foreground: "facc15"
},
{
token: "attribute.value.xml",
foreground: "facc15"
},
{
token: "string",
foreground: "2dd4bf"
},
{
token: "string.html",
foreground: "facc15"
},
{
token: "string.sql",
foreground: "FF0000"
},
{
token: "string.yaml",
foreground: "34d399"
},
{
token: "keyword",
foreground: "60a5fa"
},
{
token: "keyword.json",
foreground: "34d399"
},
{
token: "keyword.flow",
foreground: "AF00DB"
},
{
token: "keyword.flow.scss",
foreground: "facc15"
},
{
token: "operator.scss",
foreground: "666666"
},
{
token: "operator.sql",
foreground: "778899"
},
{
token: "operator.swift",
foreground: "666666"
},
{
token: "predefined.sql",
foreground: "FF00FF"
}
],
colors: {
"editor.foreground": "#f6f8fa",
"editor.background": "#0f121400",
"editor.selectionBackground": "#2A2F34",
"editor.inactiveSelectionBackground": "#2A2F34",
"editor.lineHighlightBackground": "#2A2F34",
"editorCursor.foreground": "#ffffff",
"editorWhitespace.foreground": "#6a737d",
"editorIndentGuide.background": "#6E757C",
"editorIndentGuide.activeBackground": "#CFD4D9",
"editor.selectionHighlightBorder": "#2A2F34"
}
}), tn.defineTheme("hive-laboratory-light", {
base: "vs",
inherit: !0,
rules: [],
colors: {}
}), Yt.setMonarchTokensProvider("dotenv", { tokenizer: {
root: [[/^\s*#.*$/, "comment"], [
/^\s*([A-Za-z_][A-Za-z0-9_]*)\s*=/,
"key",
"@value"
]],
value: [
[
/"([^"\\]|\\.)*$/,
"string",
"@pop"
],
[
/"([^"\\]|\\.)*"/,
"string",
"@pop"
],
[
/'([^'\\]|\\.)*$/,
"string",
"@pop"
],
[
/'([^'\\]|\\.)*'/,
"string",
"@pop"
],
[
/[^#\n]+/,
"string",
"@pop"
]
]
} });
var QR = dn((e, t) => {
let n = gn(), r = V(null), { introspection: i, endpoint: a, theme: o, enableDocs: s } = dy(), c = e.language === "json" || e.defaultLanguage === "json", [l, u] = H(!!Yt.typescript), [d, f] = H(Yt.getLanguages().some((e) => e.id === "json"));
z(() => {
i && CL({
introspection: i,
schemaUri: `schema_${a}.graphql`,
operationUri: e.uri?.toString(),
variablesUri: e.variablesUri?.toString(),
enableDocs: s
});
}, [
a,
i,
s,
e.uri?.toString(),
e.variablesUri?.toString()
]), z(() => {
(async function() {
if (c && !d && (await import("./monaco.contribution-Bw1EXBxx.js").then((e) => e.t), f(!0)), Yt.typescript || (await import("./monaco.contribution-DBdSHkPx.js").then((e) => e.t), u(!0)), !e.extraLibs?.length) return;
let t = Yt.typescript;
if (!t) return;
let r = Object.values(t.typescriptDefaults.getExtraLibs()).map((e) => e.content);
if (e.extraLibs.every((e) => r.includes(e))) return;
let i = n.replace(/[^a-zA-Z0-9_-]/g, "_");
t.typescriptDefaults.setCompilerOptions({
target: t.ScriptTarget.ESNext,
module: t.ModuleKind.ESNext,
allowNonTsExtensions: !0,
allowJs: !0,
lib: ["esnext", "webworker"]
}), t.typescriptDefaults.setExtraLibs(e.extraLibs.map((e, t) => ({
content: e,
filePath: `file:///hive-lab-globals-${i}-${t}.d.ts`
})));
})();
}, [
n,
d,
e.extraLibs,
c
]), _n(t, () => ({ setValue: (e) => {
r.current && r.current.setValue(e);
} }), []);
let p = R((t) => {
let n = null, r = () => {
n?.clear();
try {
let r = t.getValue(), i = De(r).definitions.find((e) => {
if (e.kind !== "OperationDefinition" || !e.loc) return !1;
let n = t.getPosition();
if (n) return e.loc.startToken.line <= n.lineNumber && e.loc.endToken.line >= n.lineNumber;
});
if (i?.loc) {
let r = [];
i.loc.startToken.line > 1 && r.push({
range: new Kt(0, 0, i.loc.startToken.line - 1, i.loc.startToken.column),
options: {
isWholeLine: !0,
inlineClassName: "inactive-line"
}
});
let a = t.getModel()?.getLineCount() ?? 0, o = t.getModel()?.getLineMaxColumn(a) ?? 0;
i.loc.endToken.line < a && r.push({
range: new Kt(i.loc.endToken.line + 1, i.loc.endToken.column, a, o),
options: {
isWholeLine: !0,
inlineClassName: "inactive-line"
}
}), n = t.createDecorationsCollection(r), e.onOperationNameChange?.(i.name?.value ?? null);
}
} catch {}
};
t.onDidChangeCursorPosition(r), r();
}, [e.onOperationNameChange]), m = R((e) => {
r.current = e, p(e);
}, [p]), h = V(null);
return yn(() => {
h.current = r.current?.getPosition() ?? null;
}, [e.value]), z(() => {
r.current && h.current && (r.current.setPosition(h.current), h.current = null);
}, [e.value]), !l && e.language === "typescript" || !d && c ? null : /* @__PURE__ */ G("div", {
className: Y("size-full overflow-hidden", e.className),
children: /* @__PURE__ */ G(ZR, {
...e,
className: "size-full",
theme: o === "dark" ? "hive-laboratory-dark" : "hive-laboratory-light",
onMount: m,
loading: null,
options: uL(e.options),
defaultPath: e.uri?.toString()
})
});
}), $R = () => {
let { env: e, setEnv: t } = dy();
return /* @__PURE__ */ G("div", {
className: "size-full bg-card",
children: /* @__PURE__ */ G(QR, {
defaultValue: Object.entries(e?.variables ?? {}).map(([e, t]) => `${e}=${t}`).join("\n"),
onChange: (e) => {
t({ variables: Object.fromEntries(e?.split("\n").filter((e) => e.trim() && !e.trim().startsWith("#")).map((e) => {
let t = e.split(/=(.*)/s);
return [t[0].trim(), (t[1] ?? "").trim()];
}) ?? []) });
},
language: "dotenv",
options: { scrollbar: { horizontal: "hidden" } }
})
});
}, ez = (e) => {
let { activeTab: t, addTab: n, setActiveTab: r, deleteHistory: i } = dy(), a = B(() => t?.type === "history" && t.data.id === e.historyItem.id, [t, e.historyItem]), o = B(() => !e.historyItem.status || e.historyItem.status < 200 || e.historyItem.status >= 300 || "response" in e.historyItem && JSON.parse(e.historyItem.response).errors, [e.historyItem]);
return /* @__PURE__ */ K(Z, {
variant: "ghost",
size: "sm",
className: Y("group sticky top-0 w-full justify-start bg-background px-2", { "bg-accent/50": a }),
onClick: () => {
r(n({
type: "history",
data: e.historyItem,
readOnly: !0
}));
},
children: [
/* @__PURE__ */ G(er, { className: Y("size-4 text-indigo-400", {
"text-green-500": !e.historyItem.status || e.historyItem.status >= 200 && e.historyItem.status < 300,
"text-red-500": o
}) }),
/* @__PURE__ */ G("span", {
className: "text-muted-foreground",
children: Lr(new Date(e.historyItem.createdAt), "HH:mm")
}),
/* @__PURE__ */ G("div", {
className: "truncate",
children: e.historyItem.operation.name || "Untitled"
}),
/* @__PURE__ */ G("div", {
className: "ml-auto flex items-center gap-2",
children: /* @__PURE__ */ K(zM, { children: [/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(BM, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "link",
className: "ml-auto p-1! pr-0! text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100 hover:text-destructive",
onClick: (e) => {
e.stopPropagation();
},
children: /* @__PURE__ */ G(Or, {})
})
})
}), /* @__PURE__ */ G(Zj, { children: "Delete history" })] }), /* @__PURE__ */ K(UM, { children: [/* @__PURE__ */ K(WM, { children: [/* @__PURE__ */ G(KM, { children: "Are you sure you want to delete history?" }), /* @__PURE__ */ G(qM, { children: "This history operation will be permanently deleted." })] }), /* @__PURE__ */ K(GM, { children: [/* @__PURE__ */ G(YM, { children: "Cancel" }), /* @__PURE__ */ G(JM, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "destructive",
onClick: (t) => {
t.stopPropagation(), i(e.historyItem.id);
},
children: "Delete"
})
})] })] })] })
})
]
});
}, tz = (e) => {
let { deleteHistoryByDay: t } = dy(), [n, r] = H(!1);
return /* @__PURE__ */ K(lN, {
open: n,
onOpenChange: r,
children: [/* @__PURE__ */ G(uN, {
asChild: !0,
children: /* @__PURE__ */ K(Z, {
variant: "ghost",
className: "group sticky top-0 w-full justify-start bg-background px-2",
size: "sm",
children: [
G(n ? Jn : Kn, { className: "size-4 text-muted-foreground" }),
e.group.date,
/* @__PURE__ */ K(zM, { children: [/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(BM, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "link",
className: "ml-auto p-1! pr-0! text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100 hover:text-destructive",
onClick: (e) => {
e.stopPropagation();
},
children: /* @__PURE__ */ G(Or, {})
})
})
}), /* @__PURE__ */ G(Zj, { children: "Delete history" })] }), /* @__PURE__ */ K(UM, { children: [/* @__PURE__ */ K(WM, { children: [/* @__PURE__ */ G(KM, { children: "Are you sure you want to delete history?" }), /* @__PURE__ */ K(qM, { children: [
"All history for ",
e.group.date,
" will be permanently deleted."
] })] }), /* @__PURE__ */ K(GM, { children: [/* @__PURE__ */ G(YM, { children: "Cancel" }), /* @__PURE__ */ G(JM, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "destructive",
onClick: (n) => {
n.stopPropagation(), t(e.group.date);
},
children: "Delete"
})
})] })] })] })
]
})
}), /* @__PURE__ */ G(dN, {
className: Y("ml-4 flex flex-col gap-1 border-l border-border pl-2"),
children: e.group.items.map((e) => /* @__PURE__ */ G(ez, { historyItem: e }, e.id))
})]
});
}, nz = () => {
let { history: e, deleteAllHistory: t, tabs: n, setTabs: r, setActiveTab: i } = dy(), a = B(() => e.sort((e, t) => new Date(t.createdAt).getTime() - new Date(e.createdAt).getTime()), [e]), o = B(() => a.reduce((e, t) => {
let n = Lr(new Date(t.createdAt), "dd MMM yyyy"), r = e.find((e) => e.date === n);
return r || (r = {
date: n,
items: []
}, e.push(r)), r.items.push(t), e;
}, []), [a]), s = R(() => {
t(), r(n.filter((e) => e.type !== "history"));
let e = n.find((e) => e.type !== "history");
e && i(e);
}, [
t,
r,
n,
i
]);
return /* @__PURE__ */ K("div", {
className: "grid size-full grid-rows-[auto_1fr] pb-0",
children: [/* @__PURE__ */ K("div", {
className: "flex h-12 items-center gap-2 border-b border-border p-3",
children: [/* @__PURE__ */ G("span", {
className: "text-base font-medium",
children: "History"
}), /* @__PURE__ */ G("div", {
className: "ml-auto flex items-center",
children: /* @__PURE__ */ K(zM, { children: [/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(BM, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "icon-sm",
className: "size-6 rounded-sm p-1! text-muted-foreground hover:text-destructive",
disabled: e.length === 0,
children: /* @__PURE__ */ G(Or, { className: "size-4" })
})
})
}), /* @__PURE__ */ G(Zj, { children: "Delete all" })] }), /* @__PURE__ */ K(UM, { children: [/* @__PURE__ */ K(WM, { children: [/* @__PURE__ */ G(KM, { children: "Are you sure you want to delete all history?" }), /* @__PURE__ */ G(qM, { children: "All history will be permanently deleted." })] }), /* @__PURE__ */ K(GM, { children: [/* @__PURE__ */ G(YM, { children: "Cancel" }), /* @__PURE__ */ G(JM, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "destructive",
onClick: (e) => {
e.stopPropagation(), s();
},
children: "Delete"
})
})] })] })] })
})]
}), /* @__PURE__ */ G("div", {
className: "size-full overflow-hidden",
children: /* @__PURE__ */ K(QN, {
className: "size-full",
children: [/* @__PURE__ */ G("div", {
className: "flex flex-col gap-1 p-3",
children: o.length > 0 ? o.map((e) => /* @__PURE__ */ G(tz, { group: e }, e.date)) : /* @__PURE__ */ G(fO, {
className: "w-full px-0!",
children: /* @__PURE__ */ K(pO, { children: [
/* @__PURE__ */ G(hO, {
variant: "icon",
children: /* @__PURE__ */ G(zn, { className: "size-6 text-muted-foreground" })
}),
/* @__PURE__ */ G(gO, {
className: "text-base",
children: "No history yet"
}),
/* @__PURE__ */ G(_O, {
className: "text-xs",
children: "You haven't run any operations yet. Get started by running your first operation."
})
] })
})
}), /* @__PURE__ */ G($N, {})]
})
})]
});
}, rz = (e) => `'${e.replaceAll("'", "'\\''")}'`, iz = (e, t) => {
if (!e) return {};
try {
return JSON.parse(cs(e, t)) ?? {};
} catch {
return {};
}
}, az = (e, t) => {
let n;
try {
n = De(e);
} catch {
return e;
}
let r = n.definitions.filter((e) => !(e.kind === "OperationDefinition" && t && e.name?.value !== t));
return O({
kind: y,
definitions: r
});
};
function oz(e) {
let t = {
...e.env,
plugins: e.pluginsState ?? {}
}, n = ss({
"content-type": "application/json",
...iz(e.headers, t)
}, e.preflightHeaders ?? {}), r = { query: az(e.query, e.operationName) };
e.operationName && (r.operationName = e.operationName);
let i = iz(e.variables, t);
Object.keys(i).length > 0 && (r.variables = i);
let a = iz(e.extensions, t);
Object.keys(a).length > 0 && (r.extensions = a);
let o = e.settings?.fetch?.useGETForQueries === !0, s = ["curl"], c = e.endpoint;
if (o) {
let t = new URLSearchParams({ query: r.query });
e.operationName && t.set("operationName", e.operationName), r.variables && t.set("variables", JSON.stringify(r.variables)), r.extensions && t.set("extensions", JSON.stringify(r.extensions)), c = `${e.endpoint}?${t.toString()}`, delete n["content-type"];
} else s.push("-X POST");
s.push(rz(c)), e.settings?.fetch?.credentials === "include" && s.push("--cookie-jar /dev/null");
for (let [e, t] of Object.entries(n)) s.push(`-H ${rz(`${e}: ${t}`)}`);
return o || s.push(`-d ${rz(JSON.stringify(r))}`), s.join(" \\\n ");
}
// src/lib/query-plan/schema.ts
var sz = W.union([
W.object({ Field: W.string() }),
W.object({ TypeCondition: W.array(W.string()) }),
W.literal("@")
]), cz = W.array(sz), lz = W.array(cz), uz = W.union([W.object({ Key: W.string() }), W.object({ TypenameEquals: W.array(W.string()) })]), dz = W.object({
path: W.array(uz),
setValueTo: W.string()
}), fz = W.object({
path: W.array(uz),
renameKeyTo: W.string()
}), pz = W.union([dz, fz]), mz = W.object({
kind: W.literal("Field"),
name: W.string()
}), hz = W.object({
kind: W.literal("InlineFragment"),
typeCondition: W.string().nullish(),
selections: W.array(mz).nullish()
}), gz = W.object({
kind: W.literal("FragmentSpread"),
name: W.string()
}), _z = W.union([
hz,
gz,
mz
]), vz = W.array(_z), yz = W.lazy(() => W.discriminatedUnion("kind", [
bz,
Cz,
wz,
Tz,
Ez,
Dz,
Oz,
Mz
])), bz = W.object({
kind: W.literal("Fetch"),
serviceName: W.string(),
operationKind: W.string().nullish(),
operationName: W.string().nullish(),
operation: W.string(),
variableUsages: W.array(W.string()).nullish(),
requires: vz.nullish(),
inputRewrites: W.array(pz).nullish(),
outputRewrites: W.array(pz).nullish()
}), xz = W.object({
alias: W.string(),
representationsVariableName: W.string(),
paths: lz,
requires: vz,
inputRewrites: W.array(pz).nullish(),
outputRewrites: W.array(pz).nullish()
}), Sz = W.object({ aliases: W.array(xz) }), Cz = W.object({
kind: W.literal("BatchFetch"),
serviceName: W.string(),
operationKind: W.string().nullish(),
operationName: W.string().nullish(),
operation: W.string(),
variableUsages: W.array(W.string()).nullish(),
entityBatch: Sz
}), wz = W.object({
kind: W.literal("Sequence"),
nodes: W.array(yz)
}), Tz = W.object({
kind: W.literal("Parallel"),
nodes: W.array(yz)
}), Ez = W.object({
kind: W.literal("Flatten"),
path: cz,
node: yz
}), Dz = W.object({
kind: W.literal("Condition"),
condition: W.string(),
ifClause: yz.nullish(),
elseClause: yz.nullish()
}), Oz = W.object({
kind: W.literal("Subscription"),
primary: yz
}), kz = W.object({
id: W.string(),
deferLabel: W.string().nullish()
}), Az = W.object({
subselection: W.string().nullish(),
node: yz.nullish()
}), jz = W.object({
depends: W.array(kz),
label: W.string().nullish(),
queryPath: W.array(W.string()),
subselection: W.string().nullish(),
node: yz.nullish()
}), Mz = W.object({
kind: W.literal("Defer"),
primary: Az,
deferred: W.array(jz)
}), Nz = W.object({
kind: W.literal("QueryPlan"),
node: yz.nullish()
});
// src/lib/query-plan/parse.ts
function Pz(e) {
if (!e) return null;
let t;
try {
t = JSON.parse(e)?.extensions?.queryPlan;
} catch {
return null;
}
if (!t) return null;
let n = Nz.safeParse(t);
return n.success ? n.data : null;
}
// ../../../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.mjs
function Fz(e) {
let t = I.useRef({
value: e,
previous: e
});
return I.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
}
// ../../../node_modules/.pnpm/@radix-ui+react-checkbox@1.3.3_@types+react-dom@18.3.5_@types+react@18.3.18__@types+rea_5507ae6713dbd813419a417a86abc2d1/node_modules/@radix-ui/react-checkbox/dist/index.mjs
var Iz = "Checkbox", [Lz, Rz] = my(Iz), [zz, Bz] = Lz(Iz);
function Vz(e) {
let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] = xy({
prop: n,
defaultProp: i ?? !1,
onChange: c,
caller: Iz
}), [m, h] = I.useState(null), [g, _] = I.useState(null), v = I.useRef(!1), y = !m || !!o || !!m.closest("form"), b = {
checked: f,
disabled: a,
setChecked: p,
control: m,
setControl: h,
name: s,
form: o,
value: u,
hasConsumerStoppedPropagationRef: v,
required: l,
defaultChecked: !Xz(i) && i,
isFormControl: y,
bubbleInput: g,
setBubbleInput: _
};
return /* @__PURE__ */ G(zz, {
scope: t,
...b,
children: Yz(d) ? d(b) : r
});
}
var Hz = "CheckboxTrigger", Uz = I.forwardRef(({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...r }, i) => {
let { control: a, value: o, disabled: s, checked: c, required: l, setControl: u, setChecked: d, hasConsumerStoppedPropagationRef: f, isFormControl: p, bubbleInput: m } = Bz(Hz, e), h = Zv(i, u), g = I.useRef(c);
return I.useEffect(() => {
let e = a?.form;
if (e) {
let t = () => d(g.current);
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
}
}, [a, d]), /* @__PURE__ */ G($.button, {
type: "button",
role: "checkbox",
"aria-checked": Xz(c) ? "mixed" : c,
"aria-required": l,
"data-state": Zz(c),
"data-disabled": s ? "" : void 0,
disabled: s,
value: o,
...r,
ref: h,
onKeyDown: Q(t, (e) => {
e.key === "Enter" && e.preventDefault();
}),
onClick: Q(n, (e) => {
d((e) => Xz(e) ? !0 : !e), m && p && (f.current = e.isPropagationStopped(), f.current || e.stopPropagation());
})
});
});
Uz.displayName = Hz;
var Wz = I.forwardRef((e, t) => {
let { __scopeCheckbox: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c, onCheckedChange: l, form: u, ...d } = e;
return /* @__PURE__ */ G(Vz, {
__scopeCheckbox: n,
checked: i,
defaultChecked: a,
disabled: s,
required: o,
onCheckedChange: l,
name: r,
form: u,
value: c,
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G(Uz, {
...d,
ref: t,
__scopeCheckbox: n
}), e && /* @__PURE__ */ G(Jz, { __scopeCheckbox: n })] })
});
});
Wz.displayName = Iz;
var Gz = "CheckboxIndicator", Kz = I.forwardRef((e, t) => {
let { __scopeCheckbox: n, forceMount: r, ...i } = e, a = Bz(Gz, n);
return /* @__PURE__ */ G(fb, {
present: r || Xz(a.checked) || a.checked === !0,
children: /* @__PURE__ */ G($.span, {
"data-state": Zz(a.checked),
"data-disabled": a.disabled ? "" : void 0,
...i,
ref: t,
style: {
pointerEvents: "none",
...e.style
}
})
});
});
Kz.displayName = Gz;
var qz = "CheckboxBubbleInput", Jz = I.forwardRef(({ __scopeCheckbox: e, ...t }, n) => {
let { control: r, hasConsumerStoppedPropagationRef: i, checked: a, defaultChecked: o, required: s, disabled: c, name: l, value: u, form: d, bubbleInput: f, setBubbleInput: p } = Bz(qz, e), m = Zv(n, p), h = Fz(a), g = Jw(r);
I.useEffect(() => {
let e = f;
if (!e) return;
let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set, r = !i.current;
if (h !== a && n) {
let t = new Event("click", { bubbles: r });
e.indeterminate = Xz(a), n.call(e, !Xz(a) && a), e.dispatchEvent(t);
}
}, [
f,
h,
a,
i
]);
let _ = I.useRef(!Xz(a) && a);
return /* @__PURE__ */ G($.input, {
type: "checkbox",
"aria-hidden": !0,
defaultChecked: o ?? _.current,
required: s,
disabled: c,
name: l,
value: u,
form: d,
...t,
tabIndex: -1,
ref: m,
style: {
...t.style,
...g,
position: "absolute",
pointerEvents: "none",
opacity: 0,
margin: 0,
transform: "translateX(-100%)"
}
});
});
Jz.displayName = qz;
function Yz(e) {
return typeof e == "function";
}
function Xz(e) {
return e === "indeterminate";
}
function Zz(e) {
return Xz(e) ? "indeterminate" : e ? "checked" : "unchecked";
}
// ../../../node_modules/.pnpm/@radix-ui+react-context-menu@2.2.16_@types+react-dom@18.3.5_@types+react@18.3.18__@type_70956bc92d7b9e0947b5cd03a2c3867c/node_modules/@radix-ui/react-context-menu/dist/index.mjs
var Qz = "ContextMenu", [$z, eB] = my(Qz, [YT]), tB = YT(), [nB, rB] = $z(Qz), iB = (e) => {
let { __scopeContextMenu: t, children: n, onOpenChange: r, dir: i, modal: a = !0 } = e, [o, s] = I.useState(!1), c = tB(t), l = My(r), u = I.useCallback((e) => {
s(e), l(e);
}, [l]);
return /* @__PURE__ */ G(nB, {
scope: t,
open: o,
onOpenChange: u,
modal: a,
children: /* @__PURE__ */ G(nD, {
...c,
dir: i,
open: o,
onOpenChange: u,
modal: a,
children: n
})
});
};
iB.displayName = Qz;
var aB = "ContextMenuTrigger", oB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, disabled: r = !1, ...i } = e, a = rB(aB, n), o = tB(n), s = I.useRef({
x: 0,
y: 0
}), c = I.useRef({ getBoundingClientRect: () => DOMRect.fromRect({
width: 0,
height: 0,
...s.current
}) }), l = I.useRef(0), u = I.useCallback(() => window.clearTimeout(l.current), []), d = (e) => {
s.current = {
x: e.clientX,
y: e.clientY
}, a.onOpenChange(!0);
};
return I.useEffect(() => u, [u]), I.useEffect(() => void (r && u()), [r, u]), /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G(rD, {
...o,
virtualRef: c
}), /* @__PURE__ */ G($.span, {
"data-state": a.open ? "open" : "closed",
"data-disabled": r ? "" : void 0,
...i,
ref: t,
style: {
WebkitTouchCallout: "none",
...e.style
},
onContextMenu: r ? e.onContextMenu : Q(e.onContextMenu, (e) => {
u(), d(e), e.preventDefault();
}),
onPointerDown: r ? e.onPointerDown : Q(e.onPointerDown, NB((e) => {
u(), l.current = window.setTimeout(() => d(e), 700);
})),
onPointerMove: r ? e.onPointerMove : Q(e.onPointerMove, NB(u)),
onPointerCancel: r ? e.onPointerCancel : Q(e.onPointerCancel, NB(u)),
onPointerUp: r ? e.onPointerUp : Q(e.onPointerUp, NB(u))
})] });
});
oB.displayName = aB;
var sB = "ContextMenuPortal", cB = (e) => {
let { __scopeContextMenu: t, ...n } = e, r = tB(t);
return /* @__PURE__ */ G(iD, {
...r,
...n
});
};
cB.displayName = sB;
var lB = "ContextMenuContent", uB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = rB(lB, n), a = tB(n), o = I.useRef(!1);
return /* @__PURE__ */ G(aD, {
...a,
...r,
ref: t,
side: "right",
sideOffset: 2,
align: "start",
onCloseAutoFocus: (t) => {
e.onCloseAutoFocus?.(t), !t.defaultPrevented && o.current && t.preventDefault(), o.current = !1;
},
onInteractOutside: (t) => {
e.onInteractOutside?.(t), !t.defaultPrevented && !i.modal && (o.current = !0);
},
style: {
...e.style,
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
}
});
});
uB.displayName = lB;
var dB = "ContextMenuGroup", fB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(oD, {
...i,
...r,
ref: t
});
});
fB.displayName = dB;
var pB = "ContextMenuLabel", mB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(sD, {
...i,
...r,
ref: t
});
});
mB.displayName = pB;
var hB = "ContextMenuItem", gB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(cD, {
...i,
...r,
ref: t
});
});
gB.displayName = hB;
var _B = "ContextMenuCheckboxItem", vB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(lD, {
...i,
...r,
ref: t
});
});
vB.displayName = _B;
var yB = "ContextMenuRadioGroup", bB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(uD, {
...i,
...r,
ref: t
});
});
bB.displayName = yB;
var xB = "ContextMenuRadioItem", SB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(dD, {
...i,
...r,
ref: t
});
});
SB.displayName = xB;
var CB = "ContextMenuItemIndicator", wB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(fD, {
...i,
...r,
ref: t
});
});
wB.displayName = CB;
var TB = "ContextMenuSeparator", EB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(pD, {
...i,
...r,
ref: t
});
});
EB.displayName = TB;
var DB = "ContextMenuArrow", OB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(mD, {
...i,
...r,
ref: t
});
});
OB.displayName = DB;
var kB = "ContextMenuSubTrigger", AB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(hD, {
...i,
...r,
ref: t
});
});
AB.displayName = kB;
var jB = "ContextMenuSubContent", MB = I.forwardRef((e, t) => {
let { __scopeContextMenu: n, ...r } = e, i = tB(n);
return /* @__PURE__ */ G(gD, {
...i,
...r,
ref: t,
style: {
...e.style,
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
}
});
});
MB.displayName = jB;
function NB(e) {
return (t) => t.pointerType === "mouse" ? void 0 : e(t);
}
var PB = iB, FB = oB, IB = cB, LB = uB, RB = gB, zB = [
" ",
"Enter",
"ArrowUp",
"ArrowDown"
], BB = [" ", "Enter"], VB = "Select", [HB, UB, WB] = jS(VB), [GB, KB] = my(VB, [WB, Zw]), qB = Zw(), [JB, YB] = GB(VB), [XB, ZB] = GB(VB), QB = (e) => {
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: p, form: m } = e, h = qB(t), [g, _] = I.useState(null), [v, y] = I.useState(null), [b, x] = I.useState(!1), S = NS(l), [C, w] = xy({
prop: r,
defaultProp: i ?? !1,
onChange: a,
caller: VB
}), [T, E] = xy({
prop: o,
defaultProp: s,
onChange: c,
caller: VB
}), D = I.useRef(null), O = !g || m || !!g.closest("form"), [k, A] = I.useState(/* @__PURE__ */ new Set()), ee = Array.from(k).map((e) => e.props.value).join(";");
return /* @__PURE__ */ G(pT, {
...h,
children: /* @__PURE__ */ K(JB, {
required: p,
scope: t,
trigger: g,
onTriggerChange: _,
valueNode: v,
onValueNodeChange: y,
valueNodeHasChildren: b,
onValueNodeHasChildrenChange: x,
contentId: yy(),
value: T,
onValueChange: E,
open: C,
onOpenChange: w,
dir: S,
triggerPointerDownPosRef: D,
disabled: f,
children: [/* @__PURE__ */ G(HB.Provider, {
scope: t,
children: /* @__PURE__ */ G(XB, {
scope: e.__scopeSelect,
onNativeOptionAdd: I.useCallback((e) => {
A((t) => new Set(t).add(e));
}, []),
onNativeOptionRemove: I.useCallback((e) => {
A((t) => {
let n = new Set(t);
return n.delete(e), n;
});
}, []),
children: n
})
}), O ? /* @__PURE__ */ K(qV, {
"aria-hidden": !0,
required: p,
tabIndex: -1,
name: u,
autoComplete: d,
value: T,
onChange: (e) => E(e.target.value),
disabled: f,
form: m,
children: [T === void 0 ? /* @__PURE__ */ G("option", { value: "" }) : null, Array.from(k)]
}, ee) : null]
})
});
};
QB.displayName = VB;
var $B = "SelectTrigger", eV = I.forwardRef((e, t) => {
let { __scopeSelect: n, disabled: r = !1, ...i } = e, a = qB(n), o = YB($B, n), s = o.disabled || r, c = Zv(t, o.onTriggerChange), l = UB(n), u = I.useRef("touch"), [d, f, p] = YV((e) => {
let t = l().filter((e) => !e.disabled), n = XV(t, e, t.find((e) => e.value === o.value));
n !== void 0 && o.onValueChange(n.value);
}), m = (e) => {
s || (o.onOpenChange(!0), p()), e && (o.triggerPointerDownPosRef.current = {
x: Math.round(e.pageX),
y: Math.round(e.pageY)
});
};
return /* @__PURE__ */ G(mT, {
asChild: !0,
...a,
children: /* @__PURE__ */ G($.button, {
type: "button",
role: "combobox",
"aria-controls": o.contentId,
"aria-expanded": o.open,
"aria-required": o.required,
"aria-autocomplete": "none",
dir: o.dir,
"data-state": o.open ? "open" : "closed",
disabled: s,
"data-disabled": s ? "" : void 0,
"data-placeholder": JV(o.value) ? "" : void 0,
...i,
ref: c,
onClick: Q(i.onClick, (e) => {
e.currentTarget.focus(), u.current !== "mouse" && m(e);
}),
onPointerDown: Q(i.onPointerDown, (e) => {
u.current = e.pointerType;
let t = e.target;
t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (m(e), e.preventDefault());
}),
onKeyDown: Q(i.onKeyDown, (e) => {
let t = d.current !== "";
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && f(e.key), t && e.key === " " || zB.includes(e.key) && (m(), e.preventDefault());
})
})
});
});
eV.displayName = $B;
var tV = "SelectValue", nV = I.forwardRef((e, t) => {
let { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = e, c = YB(tV, n), { onValueNodeHasChildrenChange: l } = c, u = a !== void 0, d = Zv(t, c.onValueNodeChange);
return gy(() => {
l(u);
}, [l, u]), /* @__PURE__ */ G($.span, {
...s,
ref: d,
style: { pointerEvents: "none" },
children: JV(c.value) ? /* @__PURE__ */ G(Br, { children: o }) : a
});
});
nV.displayName = tV;
var rV = "SelectIcon", iV = I.forwardRef((e, t) => {
let { __scopeSelect: n, children: r, ...i } = e;
return /* @__PURE__ */ G($.span, {
"aria-hidden": !0,
...i,
ref: t,
children: r || "▼"
});
});
iV.displayName = rV;
var aV = "SelectPortal", oV = (e) => /* @__PURE__ */ G(ub, {
asChild: !0,
...e
});
oV.displayName = aV;
var sV = "SelectContent", cV = I.forwardRef((e, t) => {
let n = YB(sV, e.__scopeSelect), [r, i] = I.useState();
if (gy(() => {
i(new DocumentFragment());
}, []), !n.open) {
let t = r;
return t ? Sn.createPortal(/* @__PURE__ */ G(uV, {
scope: e.__scopeSelect,
children: /* @__PURE__ */ G(HB.Slot, {
scope: e.__scopeSelect,
children: /* @__PURE__ */ G("div", { children: e.children })
})
}), t) : null;
}
return /* @__PURE__ */ G(mV, {
...e,
ref: t
});
});
cV.displayName = sV;
var lV = 10, [uV, dV] = GB(sV), fV = "SelectContentImpl", pV = /* @__PURE__ */ wy("SelectContent.RemoveScroll"), mV = I.forwardRef((e, t) => {
let { __scopeSelect: n, position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, side: s, sideOffset: c, align: l, alignOffset: u, arrowPadding: d, collisionBoundary: f, collisionPadding: p, sticky: m, hideWhenDetached: h, avoidCollisions: g, ..._ } = e, v = YB(sV, n), [y, b] = I.useState(null), [x, S] = I.useState(null), C = Zv(t, (e) => b(e)), [w, T] = I.useState(null), [E, D] = I.useState(null), O = UB(n), [k, A] = I.useState(!1), ee = I.useRef(!1);
I.useEffect(() => {
if (y) return Mx(y);
}, [y]), _b();
let j = I.useCallback((e) => {
let [t, ...n] = O().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && x && (x.scrollTop = 0), n === r && x && (x.scrollTop = x.scrollHeight), n?.focus(), document.activeElement !== i)) return;
}, [O, x]), te = I.useCallback(() => j([w, y]), [
j,
w,
y
]);
I.useEffect(() => {
k && te();
}, [k, te]);
let { onOpenChange: M, triggerPointerDownPosRef: ne } = v;
I.useEffect(() => {
if (y) {
let e = {
x: 0,
y: 0
}, t = (t) => {
e = {
x: Math.abs(Math.round(t.pageX) - (ne.current?.x ?? 0)),
y: Math.abs(Math.round(t.pageY) - (ne.current?.y ?? 0))
};
}, n = (n) => {
e.x <= 10 && e.y <= 10 ? n.preventDefault() : y.contains(n.target) || M(!1), document.removeEventListener("pointermove", t), ne.current = null;
};
return ne.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
capture: !0,
once: !0
})), () => {
document.removeEventListener("pointermove", t), document.removeEventListener("pointerup", n, { capture: !0 });
};
}
}, [
y,
M,
ne
]), I.useEffect(() => {
let e = () => M(!1);
return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
window.removeEventListener("blur", e), window.removeEventListener("resize", e);
};
}, [M]);
let [N, re] = YV((e) => {
let t = O().filter((e) => !e.disabled), n = XV(t, e, t.find((e) => e.ref.current === document.activeElement));
n && setTimeout(() => n.ref.current.focus());
}), ie = I.useCallback((e, t, n) => {
let r = !ee.current && !n;
(v.value !== void 0 && v.value === t || r) && (T(e), r && (ee.current = !0));
}, [v.value]), ae = I.useCallback(() => y?.focus(), [y]), oe = I.useCallback((e, t, n) => {
let r = !ee.current && !n;
(v.value !== void 0 && v.value === t || r) && D(e);
}, [v.value]), se = r === "popper" ? vV : gV, ce = se === vV ? {
side: s,
sideOffset: c,
align: l,
alignOffset: u,
arrowPadding: d,
collisionBoundary: f,
collisionPadding: p,
sticky: m,
hideWhenDetached: h,
avoidCollisions: g
} : {};
return /* @__PURE__ */ G(uV, {
scope: n,
content: y,
viewport: x,
onViewportChange: S,
itemRefCallback: ie,
selectedItem: w,
onItemLeave: ae,
itemTextRefCallback: oe,
focusSelectedItem: te,
selectedItemText: E,
position: r,
isPositioned: k,
searchRef: N,
children: /* @__PURE__ */ G(Cx, {
as: pV,
allowPinchZoom: !0,
children: /* @__PURE__ */ G(Zy, {
asChild: !0,
trapped: v.open,
onMountAutoFocus: (e) => {
e.preventDefault();
},
onUnmountAutoFocus: Q(i, (e) => {
v.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
}),
children: /* @__PURE__ */ G(By, {
asChild: !0,
disableOutsidePointerEvents: !0,
onEscapeKeyDown: a,
onPointerDownOutside: o,
onFocusOutside: (e) => e.preventDefault(),
onDismiss: () => v.onOpenChange(!1),
children: /* @__PURE__ */ G(se, {
role: "listbox",
id: v.contentId,
"data-state": v.open ? "open" : "closed",
dir: v.dir,
onContextMenu: (e) => e.preventDefault(),
..._,
...ce,
onPlaced: () => A(!0),
ref: C,
style: {
display: "flex",
flexDirection: "column",
outline: "none",
..._.style
},
onKeyDown: Q(_.onKeyDown, (e) => {
let t = e.ctrlKey || e.altKey || e.metaKey;
if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && re(e.key), [
"ArrowUp",
"ArrowDown",
"Home",
"End"
].includes(e.key)) {
let t = O().filter((e) => !e.disabled).map((e) => e.ref.current);
if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
let n = e.target, r = t.indexOf(n);
t = t.slice(r + 1);
}
setTimeout(() => j(t)), e.preventDefault();
}
})
})
})
})
})
});
});
mV.displayName = fV;
var hV = "SelectItemAlignedPosition", gV = I.forwardRef((e, t) => {
let { __scopeSelect: n, onPlaced: r, ...i } = e, a = YB(sV, n), o = dV(sV, n), [s, c] = I.useState(null), [l, u] = I.useState(null), d = Zv(t, (e) => u(e)), f = UB(n), p = I.useRef(!1), m = I.useRef(!0), { viewport: h, selectedItem: g, selectedItemText: _, focusSelectedItem: v } = o, y = I.useCallback(() => {
if (a.trigger && a.valueNode && s && l && h && g && _) {
let e = a.trigger.getBoundingClientRect(), t = l.getBoundingClientRect(), n = a.valueNode.getBoundingClientRect(), i = _.getBoundingClientRect();
if (a.dir !== "rtl") {
let r = i.left - t.left, a = n.left - r, o = e.left - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - lV, d = fN(a, [lV, Math.max(lV, u - l)]);
s.style.minWidth = c + "px", s.style.left = d + "px";
} else {
let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - lV, d = fN(a, [lV, Math.max(lV, u - l)]);
s.style.minWidth = c + "px", s.style.right = d + "px";
}
let o = f(), c = window.innerHeight - lV * 2, u = h.scrollHeight, d = window.getComputedStyle(l), m = parseInt(d.borderTopWidth, 10), v = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = m + v + u + b + y, S = Math.min(g.offsetHeight * 5, x), C = window.getComputedStyle(h), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - lV, D = c - E, O = g.offsetHeight / 2, k = g.offsetTop + O, A = m + v + k, ee = x - A;
if (A <= E) {
let e = o.length > 0 && g === o[o.length - 1].ref.current;
s.style.bottom = "0px";
let t = l.clientHeight - h.offsetTop - h.offsetHeight, n = A + Math.max(D, O + (e ? T : 0) + t + y);
s.style.height = n + "px";
} else {
let e = o.length > 0 && g === o[0].ref.current;
s.style.top = "0px";
let t = Math.max(E, m + h.offsetTop + (e ? w : 0) + O) + ee;
s.style.height = t + "px", h.scrollTop = A - E + h.offsetTop;
}
s.style.margin = `${lV}px 0`, s.style.minHeight = S + "px", s.style.maxHeight = c + "px", r?.(), requestAnimationFrame(() => p.current = !0);
}
}, [
f,
a.trigger,
a.valueNode,
s,
l,
h,
g,
_,
a.dir,
r
]);
gy(() => y(), [y]);
let [b, x] = I.useState();
gy(() => {
l && x(window.getComputedStyle(l).zIndex);
}, [l]);
let S = I.useCallback((e) => {
e && m.current === !0 && (y(), v?.(), m.current = !1);
}, [y, v]);
return /* @__PURE__ */ G(yV, {
scope: n,
contentWrapper: s,
shouldExpandOnScrollRef: p,
onScrollButtonChange: S,
children: /* @__PURE__ */ G("div", {
ref: c,
style: {
display: "flex",
flexDirection: "column",
position: "fixed",
zIndex: b
},
children: /* @__PURE__ */ G($.div, {
...i,
ref: d,
style: {
boxSizing: "border-box",
maxHeight: "100%",
...i.style
}
})
})
});
});
gV.displayName = hV;
var _V = "SelectPopperPosition", vV = I.forwardRef((e, t) => {
let { __scopeSelect: n, align: r = "start", collisionPadding: i = lV, ...a } = e, o = qB(n);
return /* @__PURE__ */ G(hT, {
...o,
...a,
ref: t,
align: r,
collisionPadding: i,
style: {
boxSizing: "border-box",
...a.style,
"--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
"--radix-select-content-available-width": "var(--radix-popper-available-width)",
"--radix-select-content-available-height": "var(--radix-popper-available-height)",
"--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
}
});
});
vV.displayName = _V;
var [yV, bV] = GB(sV, {}), xV = "SelectViewport", SV = I.forwardRef((e, t) => {
let { __scopeSelect: n, nonce: r, ...i } = e, a = dV(xV, n), o = bV(xV, n), s = Zv(t, a.onViewportChange), c = I.useRef(0);
return /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G("style", {
dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
nonce: r
}), /* @__PURE__ */ G(HB.Slot, {
scope: n,
children: /* @__PURE__ */ G($.div, {
"data-radix-select-viewport": "",
role: "presentation",
...i,
ref: s,
style: {
position: "relative",
flex: 1,
overflow: "hidden auto",
...i.style
},
onScroll: Q(i.onScroll, (e) => {
let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = o;
if (r?.current && n) {
let e = Math.abs(c.current - t.scrollTop);
if (e > 0) {
let r = window.innerHeight - lV * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
if (o < r) {
let i = o + e, a = Math.min(r, i), s = i - a;
n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
}
}
}
c.current = t.scrollTop;
})
})
})] });
});
SV.displayName = xV;
var CV = "SelectGroup", [wV, TV] = GB(CV), EV = I.forwardRef((e, t) => {
let { __scopeSelect: n, ...r } = e, i = yy();
return /* @__PURE__ */ G(wV, {
scope: n,
id: i,
children: /* @__PURE__ */ G($.div, {
role: "group",
"aria-labelledby": i,
...r,
ref: t
})
});
});
EV.displayName = CV;
var DV = "SelectLabel", OV = I.forwardRef((e, t) => {
let { __scopeSelect: n, ...r } = e, i = TV(DV, n);
return /* @__PURE__ */ G($.div, {
id: i.id,
...r,
ref: t
});
});
OV.displayName = DV;
var kV = "SelectItem", [AV, jV] = GB(kV), MV = I.forwardRef((e, t) => {
let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, s = YB(kV, n), c = dV(kV, n), l = s.value === r, [u, d] = I.useState(a ?? ""), [f, p] = I.useState(!1), m = Zv(t, (e) => c.itemRefCallback?.(e, r, i)), h = yy(), g = I.useRef("touch"), _ = () => {
i || (s.onValueChange(r), s.onOpenChange(!1));
};
if (r === "") throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
return /* @__PURE__ */ G(AV, {
scope: n,
value: r,
disabled: i,
textId: h,
isSelected: l,
onItemTextChange: I.useCallback((e) => {
d((t) => t || (e?.textContent ?? "").trim());
}, []),
children: /* @__PURE__ */ G(HB.ItemSlot, {
scope: n,
value: r,
disabled: i,
textValue: u,
children: /* @__PURE__ */ G($.div, {
role: "option",
"aria-labelledby": h,
"data-highlighted": f ? "" : void 0,
"aria-selected": l && f,
"data-state": l ? "checked" : "unchecked",
"aria-disabled": i || void 0,
"data-disabled": i ? "" : void 0,
tabIndex: i ? void 0 : -1,
...o,
ref: m,
onFocus: Q(o.onFocus, () => p(!0)),
onBlur: Q(o.onBlur, () => p(!1)),
onClick: Q(o.onClick, () => {
g.current !== "mouse" && _();
}),
onPointerUp: Q(o.onPointerUp, () => {
g.current === "mouse" && _();
}),
onPointerDown: Q(o.onPointerDown, (e) => {
g.current = e.pointerType;
}),
onPointerMove: Q(o.onPointerMove, (e) => {
g.current = e.pointerType, i ? c.onItemLeave?.() : g.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
}),
onPointerLeave: Q(o.onPointerLeave, (e) => {
e.currentTarget === document.activeElement && c.onItemLeave?.();
}),
onKeyDown: Q(o.onKeyDown, (e) => {
(c.searchRef?.current === "" || e.key !== " ") && (BB.includes(e.key) && _(), e.key === " " && e.preventDefault());
})
})
})
});
});
MV.displayName = kV;
var NV = "SelectItemText", PV = I.forwardRef((e, t) => {
let { __scopeSelect: n, className: r, style: i, ...a } = e, o = YB(NV, n), s = dV(NV, n), c = jV(NV, n), l = ZB(NV, n), [u, d] = I.useState(null), f = Zv(t, (e) => d(e), c.onItemTextChange, (e) => s.itemTextRefCallback?.(e, c.value, c.disabled)), p = u?.textContent, m = I.useMemo(() => /* @__PURE__ */ G("option", {
value: c.value,
disabled: c.disabled,
children: p
}, c.value), [
c.disabled,
c.value,
p
]), { onNativeOptionAdd: h, onNativeOptionRemove: g } = l;
return gy(() => (h(m), () => g(m)), [
h,
g,
m
]), /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G($.span, {
id: c.textId,
...a,
ref: f
}), c.isSelected && o.valueNode && !o.valueNodeHasChildren ? Sn.createPortal(a.children, o.valueNode) : null] });
});
PV.displayName = NV;
var FV = "SelectItemIndicator", IV = I.forwardRef((e, t) => {
let { __scopeSelect: n, ...r } = e;
return jV(FV, n).isSelected ? /* @__PURE__ */ G($.span, {
"aria-hidden": !0,
...r,
ref: t
}) : null;
});
IV.displayName = FV;
var LV = "SelectScrollUpButton", RV = I.forwardRef((e, t) => {
let n = dV(LV, e.__scopeSelect), r = bV(LV, e.__scopeSelect), [i, a] = I.useState(!1), o = Zv(t, r.onScrollButtonChange);
return gy(() => {
if (n.viewport && n.isPositioned) {
let e = function() {
let e = t.scrollTop > 0;
a(e);
}, t = n.viewport;
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
}
}, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ G(VV, {
...e,
ref: o,
onAutoScroll: () => {
let { viewport: e, selectedItem: t } = n;
e && t && (e.scrollTop -= t.offsetHeight);
}
}) : null;
});
RV.displayName = LV;
var zV = "SelectScrollDownButton", BV = I.forwardRef((e, t) => {
let n = dV(zV, e.__scopeSelect), r = bV(zV, e.__scopeSelect), [i, a] = I.useState(!1), o = Zv(t, r.onScrollButtonChange);
return gy(() => {
if (n.viewport && n.isPositioned) {
let e = function() {
let e = t.scrollHeight - t.clientHeight, n = Math.ceil(t.scrollTop) < e;
a(n);
}, t = n.viewport;
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
}
}, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ G(VV, {
...e,
ref: o,
onAutoScroll: () => {
let { viewport: e, selectedItem: t } = n;
e && t && (e.scrollTop += t.offsetHeight);
}
}) : null;
});
BV.displayName = zV;
var VV = I.forwardRef((e, t) => {
let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = dV("SelectScrollButton", n), o = I.useRef(null), s = UB(n), c = I.useCallback(() => {
o.current !== null && (window.clearInterval(o.current), o.current = null);
}, []);
return I.useEffect(() => () => c(), [c]), gy(() => {
s().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
}, [s]), /* @__PURE__ */ G($.div, {
"aria-hidden": !0,
...i,
ref: t,
style: {
flexShrink: 0,
...i.style
},
onPointerDown: Q(i.onPointerDown, () => {
o.current === null && (o.current = window.setInterval(r, 50));
}),
onPointerMove: Q(i.onPointerMove, () => {
a.onItemLeave?.(), o.current === null && (o.current = window.setInterval(r, 50));
}),
onPointerLeave: Q(i.onPointerLeave, () => {
c();
})
});
}), HV = "SelectSeparator", UV = I.forwardRef((e, t) => {
let { __scopeSelect: n, ...r } = e;
return /* @__PURE__ */ G($.div, {
"aria-hidden": !0,
...r,
ref: t
});
});
UV.displayName = HV;
var WV = "SelectArrow", GV = I.forwardRef((e, t) => {
let { __scopeSelect: n, ...r } = e, i = qB(n), a = YB(WV, n), o = dV(WV, n);
return a.open && o.position === "popper" ? /* @__PURE__ */ G(gT, {
...i,
...r,
ref: t
}) : null;
});
GV.displayName = WV;
var KV = "SelectBubbleInput", qV = I.forwardRef(({ __scopeSelect: e, value: t, ...n }, r) => {
let i = I.useRef(null), a = Zv(r, i), o = Fz(t);
return I.useEffect(() => {
let e = i.current;
if (!e) return;
let n = window.HTMLSelectElement.prototype, r = Object.getOwnPropertyDescriptor(n, "value").set;
if (o !== t && r) {
let n = new Event("change", { bubbles: !0 });
r.call(e, t), e.dispatchEvent(n);
}
}, [o, t]), /* @__PURE__ */ G($.select, {
...n,
style: {
...ij,
...n.style
},
ref: a,
defaultValue: t
});
});
qV.displayName = KV;
function JV(e) {
return e === "" || e === void 0;
}
function YV(e) {
let t = My(e), n = I.useRef(""), r = I.useRef(0), i = I.useCallback((e) => {
let i = n.current + e;
t(i), (function e(t) {
n.current = t, window.clearTimeout(r.current), t !== "" && (r.current = window.setTimeout(() => e(""), 1e3));
})(i);
}, [t]), a = I.useCallback(() => {
n.current = "", window.clearTimeout(r.current);
}, []);
return I.useEffect(() => () => window.clearTimeout(r.current), []), [
n,
i,
a
];
}
function XV(e, t, n) {
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = ZV(e, Math.max(i, 0));
r.length === 1 && (a = a.filter((e) => e !== n));
let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
return o === n ? void 0 : o;
}
function ZV(e, t) {
return e.map((n, r) => e[(t + r) % e.length]);
}
var QV = QB, $V = eV, eH = nV, tH = iV, nH = oV, rH = cV, iH = SV, aH = MV, oH = PV, sH = IV, cH = RV, lH = BV, uH = ["PageUp", "PageDown"], dH = [
"ArrowUp",
"ArrowDown",
"ArrowLeft",
"ArrowRight"
], fH = {
"from-left": [
"Home",
"PageDown",
"ArrowDown",
"ArrowLeft"
],
"from-right": [
"Home",
"PageDown",
"ArrowDown",
"ArrowRight"
],
"from-bottom": [
"Home",
"PageDown",
"ArrowDown",
"ArrowLeft"
],
"from-top": [
"Home",
"PageDown",
"ArrowUp",
"ArrowLeft"
]
}, pH = "Slider", [mH, hH, gH] = jS(pH), [_H, vH] = my(pH, [gH]), [yH, bH] = _H(pH), xH = I.forwardRef((e, t) => {
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = "horizontal", disabled: s = !1, minStepsBetweenThumbs: c = 0, defaultValue: l = [r], value: u, onValueChange: d = () => {}, onValueCommit: f = () => {}, inverted: p = !1, form: m, ...h } = e, g = I.useRef(/* @__PURE__ */ new Set()), _ = I.useRef(0), v = o === "horizontal" ? wH : TH, [y = [], b] = xy({
prop: u,
defaultProp: l,
onChange: (e) => {
[...g.current][_.current]?.focus(), d(e);
}
}), x = I.useRef(y);
function S(e) {
T(e, zH(y, e));
}
function C(e) {
T(e, _.current);
}
function w() {
let e = x.current[_.current];
y[_.current] !== e && f(y);
}
function T(e, t, { commit: n } = { commit: !1 }) {
let o = WH(a), s = fN(GH(Math.round((e - r) / a) * a + r, o), [r, i]);
b((e = []) => {
let r = IH(e, s, t);
if (HH(r, c * a)) {
_.current = r.indexOf(s);
let t = String(r) !== String(e);
return t && n && f(r), t ? r : e;
}
return e;
});
}
return /* @__PURE__ */ G(yH, {
scope: e.__scopeSlider,
name: n,
disabled: s,
min: r,
max: i,
valueIndexToChangeRef: _,
thumbs: g.current,
values: y,
orientation: o,
form: m,
children: /* @__PURE__ */ G(mH.Provider, {
scope: e.__scopeSlider,
children: /* @__PURE__ */ G(mH.Slot, {
scope: e.__scopeSlider,
children: /* @__PURE__ */ G(v, {
"aria-disabled": s,
"data-disabled": s ? "" : void 0,
...h,
ref: t,
onPointerDown: Q(h.onPointerDown, () => {
s || (x.current = y);
}),
min: r,
max: i,
inverted: p,
onSlideStart: s ? void 0 : S,
onSlideMove: s ? void 0 : C,
onSlideEnd: s ? void 0 : w,
onHomeKeyDown: () => !s && T(r, 0, { commit: !0 }),
onEndKeyDown: () => !s && T(i, y.length - 1, { commit: !0 }),
onStepKeyDown: ({ event: e, direction: t }) => {
if (!s) {
let n = uH.includes(e.key) || e.shiftKey && dH.includes(e.key) ? 10 : 1, r = _.current, i = y[r];
T(i + a * n * t, r, { commit: !0 });
}
}
})
})
})
});
});
xH.displayName = pH;
var [SH, CH] = _H(pH, {
startEdge: "left",
endEdge: "right",
size: "width",
direction: 1
}), wH = I.forwardRef((e, t) => {
let { min: n, max: r, dir: i, inverted: a, onSlideStart: o, onSlideMove: s, onSlideEnd: c, onStepKeyDown: l, ...u } = e, [d, f] = I.useState(null), p = Zv(t, (e) => f(e)), m = I.useRef(void 0), h = NS(i), g = h === "ltr", _ = g && !a || !g && a;
function v(e) {
let t = m.current || d.getBoundingClientRect(), i = UH([0, t.width], _ ? [n, r] : [r, n]);
return m.current = t, i(e - t.left);
}
return /* @__PURE__ */ G(SH, {
scope: e.__scopeSlider,
startEdge: _ ? "left" : "right",
endEdge: _ ? "right" : "left",
direction: _ ? 1 : -1,
size: "width",
children: /* @__PURE__ */ G(EH, {
dir: h,
"data-orientation": "horizontal",
...u,
ref: p,
style: {
...u.style,
"--radix-slider-thumb-transform": "translateX(-50%)"
},
onSlideStart: (e) => {
let t = v(e.clientX);
o?.(t);
},
onSlideMove: (e) => {
let t = v(e.clientX);
s?.(t);
},
onSlideEnd: () => {
m.current = void 0, c?.();
},
onStepKeyDown: (e) => {
let t = fH[_ ? "from-left" : "from-right"].includes(e.key);
l?.({
event: e,
direction: t ? -1 : 1
});
}
})
});
}), TH = I.forwardRef((e, t) => {
let { min: n, max: r, inverted: i, onSlideStart: a, onSlideMove: o, onSlideEnd: s, onStepKeyDown: c, ...l } = e, u = I.useRef(null), d = Zv(t, u), f = I.useRef(void 0), p = !i;
function m(e) {
let t = f.current || u.current.getBoundingClientRect(), i = UH([0, t.height], p ? [r, n] : [n, r]);
return f.current = t, i(e - t.top);
}
return /* @__PURE__ */ G(SH, {
scope: e.__scopeSlider,
startEdge: p ? "bottom" : "top",
endEdge: p ? "top" : "bottom",
size: "height",
direction: p ? 1 : -1,
children: /* @__PURE__ */ G(EH, {
"data-orientation": "vertical",
...l,
ref: d,
style: {
...l.style,
"--radix-slider-thumb-transform": "translateY(50%)"
},
onSlideStart: (e) => {
let t = m(e.clientY);
a?.(t);
},
onSlideMove: (e) => {
let t = m(e.clientY);
o?.(t);
},
onSlideEnd: () => {
f.current = void 0, s?.();
},
onStepKeyDown: (e) => {
let t = fH[p ? "from-bottom" : "from-top"].includes(e.key);
c?.({
event: e,
direction: t ? -1 : 1
});
}
})
});
}), EH = I.forwardRef((e, t) => {
let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: o, onEndKeyDown: s, onStepKeyDown: c, ...l } = e, u = bH(pH, n);
return /* @__PURE__ */ G($.span, {
...l,
ref: t,
onKeyDown: Q(e.onKeyDown, (e) => {
e.key === "Home" ? (o(e), e.preventDefault()) : e.key === "End" ? (s(e), e.preventDefault()) : uH.concat(dH).includes(e.key) && (c(e), e.preventDefault());
}),
onPointerDown: Q(e.onPointerDown, (e) => {
let t = e.target;
t.setPointerCapture(e.pointerId), e.preventDefault(), u.thumbs.has(t) ? t.focus() : r(e);
}),
onPointerMove: Q(e.onPointerMove, (e) => {
e.target.hasPointerCapture(e.pointerId) && i(e);
}),
onPointerUp: Q(e.onPointerUp, (e) => {
let t = e.target;
t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), a(e));
})
});
}), DH = "SliderTrack", OH = I.forwardRef((e, t) => {
let { __scopeSlider: n, ...r } = e, i = bH(DH, n);
return /* @__PURE__ */ G($.span, {
"data-disabled": i.disabled ? "" : void 0,
"data-orientation": i.orientation,
...r,
ref: t
});
});
OH.displayName = DH;
var kH = "SliderRange", AH = I.forwardRef((e, t) => {
let { __scopeSlider: n, ...r } = e, i = bH(kH, n), a = CH(kH, n), o = Zv(t, I.useRef(null)), s = i.values.length, c = i.values.map((e) => LH(e, i.min, i.max)), l = s > 1 ? Math.min(...c) : 0, u = 100 - Math.max(...c);
return /* @__PURE__ */ G($.span, {
"data-orientation": i.orientation,
"data-disabled": i.disabled ? "" : void 0,
...r,
ref: o,
style: {
...e.style,
[a.startEdge]: l + "%",
[a.endEdge]: u + "%"
}
});
});
AH.displayName = kH;
var jH = "SliderThumb", MH = I.forwardRef((e, t) => {
let n = hH(e.__scopeSlider), [r, i] = I.useState(null), a = Zv(t, (e) => i(e)), o = I.useMemo(() => r ? n().findIndex((e) => e.ref.current === r) : -1, [n, r]);
return /* @__PURE__ */ G(NH, {
...e,
ref: a,
index: o
});
}), NH = I.forwardRef((e, t) => {
let { __scopeSlider: n, index: r, name: i, ...a } = e, o = bH(jH, n), s = CH(jH, n), [c, l] = I.useState(null), u = Zv(t, (e) => l(e)), d = !c || o.form || !!c.closest("form"), f = Jw(c), p = o.values[r], m = p === void 0 ? 0 : LH(p, o.min, o.max), h = RH(r, o.values.length), g = f?.[s.size], _ = g ? BH(g, m, s.direction) : 0;
return I.useEffect(() => {
if (c) return o.thumbs.add(c), () => {
o.thumbs.delete(c);
};
}, [c, o.thumbs]), /* @__PURE__ */ K("span", {
style: {
transform: "var(--radix-slider-thumb-transform)",
position: "absolute",
[s.startEdge]: `calc(${m}% + ${_}px)`
},
children: [/* @__PURE__ */ G(mH.ItemSlot, {
scope: e.__scopeSlider,
children: /* @__PURE__ */ G($.span, {
role: "slider",
"aria-label": e["aria-label"] || h,
"aria-valuemin": o.min,
"aria-valuenow": p,
"aria-valuemax": o.max,
"aria-orientation": o.orientation,
"data-orientation": o.orientation,
"data-disabled": o.disabled ? "" : void 0,
tabIndex: o.disabled ? void 0 : 0,
...a,
ref: u,
style: p === void 0 ? { display: "none" } : e.style,
onFocus: Q(e.onFocus, () => {
o.valueIndexToChangeRef.current = r;
})
})
}), d && /* @__PURE__ */ G(FH, {
name: i ?? (o.name ? o.name + (o.values.length > 1 ? "[]" : "") : void 0),
form: o.form,
value: p
}, r)]
});
});
MH.displayName = jH;
var PH = "RadioBubbleInput", FH = I.forwardRef(({ __scopeSlider: e, value: t, ...n }, r) => {
let i = I.useRef(null), a = Zv(i, r), o = Fz(t);
return I.useEffect(() => {
let e = i.current;
if (!e) return;
let n = window.HTMLInputElement.prototype, r = Object.getOwnPropertyDescriptor(n, "value").set;
if (o !== t && r) {
let n = new Event("input", { bubbles: !0 });
r.call(e, t), e.dispatchEvent(n);
}
}, [o, t]), /* @__PURE__ */ G($.input, {
style: { display: "none" },
...n,
ref: a,
defaultValue: t
});
});
FH.displayName = PH;
function IH(e = [], t, n) {
let r = [...e];
return r[n] = t, r.sort((e, t) => e - t);
}
function LH(e, t, n) {
return fN(100 / (n - t) * (e - t), [0, 100]);
}
function RH(e, t) {
if (t > 2) return `Value ${e + 1} of ${t}`;
if (t === 2) return ["Minimum", "Maximum"][e];
}
function zH(e, t) {
if (e.length === 1) return 0;
let n = e.map((e) => Math.abs(e - t)), r = Math.min(...n);
return n.indexOf(r);
}
function BH(e, t, n) {
let r = e / 2;
return (r - UH([0, 50], [0, r])(t) * n) * n;
}
function VH(e) {
return e.slice(0, -1).map((t, n) => e[n + 1] - t);
}
function HH(e, t) {
if (t > 0) {
let n = VH(e);
return Math.min(...n) >= t;
}
return !0;
}
function UH(e, t) {
return (n) => {
if (e[0] === e[1] || t[0] === t[1]) return t[0];
let r = (t[1] - t[0]) / (e[1] - e[0]);
return t[0] + r * (n - e[0]);
};
}
function WH(e) {
return (String(e).split(".")[1] || "").length;
}
function GH(e, t) {
let n = 10 ** t;
return Math.round(e * n) / n;
}
var KH = xH, qH = OH, JH = AH, YH = MH, XH = "Switch", [ZH, QH] = my(XH), [$H, eU] = ZH(XH), tU = I.forwardRef((e, t) => {
let { __scopeSwitch: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c = "on", onCheckedChange: l, form: u, ...d } = e, [f, p] = I.useState(null), m = Zv(t, (e) => p(e)), h = I.useRef(!1), g = !f || u || !!f.closest("form"), [_, v] = xy({
prop: i,
defaultProp: a ?? !1,
onChange: l,
caller: XH
});
return /* @__PURE__ */ K($H, {
scope: n,
checked: _,
disabled: s,
children: [/* @__PURE__ */ G($.button, {
type: "button",
role: "switch",
"aria-checked": _,
"aria-required": o,
"data-state": oU(_),
"data-disabled": s ? "" : void 0,
disabled: s,
value: c,
...d,
ref: m,
onClick: Q(e.onClick, (e) => {
v((e) => !e), g && (h.current = e.isPropagationStopped(), h.current || e.stopPropagation());
})
}), g && /* @__PURE__ */ G(aU, {
control: f,
bubbles: !h.current,
name: r,
value: c,
checked: _,
required: o,
disabled: s,
form: u,
style: { transform: "translateX(-100%)" }
})]
});
});
tU.displayName = XH;
var nU = "SwitchThumb", rU = I.forwardRef((e, t) => {
let { __scopeSwitch: n, ...r } = e, i = eU(nU, n);
return /* @__PURE__ */ G($.span, {
"data-state": oU(i.checked),
"data-disabled": i.disabled ? "" : void 0,
...r,
ref: t
});
});
rU.displayName = nU;
var iU = "SwitchBubbleInput", aU = I.forwardRef(({ __scopeSwitch: e, control: t, checked: n, bubbles: r = !0, ...i }, a) => {
let o = I.useRef(null), s = Zv(o, a), c = Fz(n), l = Jw(t);
return I.useEffect(() => {
let e = o.current;
if (!e) return;
let t = window.HTMLInputElement.prototype, i = Object.getOwnPropertyDescriptor(t, "checked").set;
if (c !== n && i) {
let t = new Event("click", { bubbles: r });
i.call(e, n), e.dispatchEvent(t);
}
}, [
c,
n,
r
]), /* @__PURE__ */ G("input", {
type: "checkbox",
"aria-hidden": !0,
defaultChecked: n,
...i,
tabIndex: -1,
ref: s,
style: {
...i.style,
...l,
position: "absolute",
pointerEvents: "none",
opacity: 0,
margin: 0
}
});
});
aU.displayName = iU;
function oU(e) {
return e ? "checked" : "unchecked";
}
var sU = tU, cU = rU, lU = "Tabs", [uU, dU] = my(lU, [wT]), fU = wT(), [pU, mU] = uU(lU), hU = I.forwardRef((e, t) => {
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = "automatic", ...l } = e, u = NS(s), [d, f] = xy({
prop: r,
onChange: i,
defaultProp: a ?? "",
caller: lU
});
return /* @__PURE__ */ G(pU, {
scope: n,
baseId: yy(),
value: d,
onValueChange: f,
orientation: o,
dir: u,
activationMode: c,
children: /* @__PURE__ */ G($.div, {
dir: u,
"data-orientation": o,
...l,
ref: t
})
});
});
hU.displayName = lU;
var gU = "TabsList", _U = I.forwardRef((e, t) => {
let { __scopeTabs: n, loop: r = !0, ...i } = e, a = mU(gU, n), o = fU(n);
return /* @__PURE__ */ G(IT, {
asChild: !0,
...o,
orientation: a.orientation,
dir: a.dir,
loop: r,
children: /* @__PURE__ */ G($.div, {
role: "tablist",
"aria-orientation": a.orientation,
...i,
ref: t
})
});
});
_U.displayName = gU;
var vU = "TabsTrigger", yU = I.forwardRef((e, t) => {
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = mU(vU, n), s = fU(n), c = SU(o.baseId, r), l = CU(o.baseId, r), u = r === o.value;
return /* @__PURE__ */ G(LT, {
asChild: !0,
...s,
focusable: !i,
active: u,
children: /* @__PURE__ */ G($.button, {
type: "button",
role: "tab",
"aria-selected": u,
"aria-controls": l,
"data-state": u ? "active" : "inactive",
"data-disabled": i ? "" : void 0,
disabled: i,
id: c,
...a,
ref: t,
onMouseDown: Q(e.onMouseDown, (e) => {
!i && e.button === 0 && e.ctrlKey === !1 ? o.onValueChange(r) : e.preventDefault();
}),
onKeyDown: Q(e.onKeyDown, (e) => {
[" ", "Enter"].includes(e.key) && o.onValueChange(r);
}),
onFocus: Q(e.onFocus, () => {
let e = o.activationMode !== "manual";
!u && !i && e && o.onValueChange(r);
})
})
});
});
yU.displayName = vU;
var bU = "TabsContent", xU = I.forwardRef((e, t) => {
let { __scopeTabs: n, value: r, forceMount: i, children: a, ...o } = e, s = mU(bU, n), c = SU(s.baseId, r), l = CU(s.baseId, r), u = r === s.value, d = I.useRef(u);
return I.useEffect(() => {
let e = requestAnimationFrame(() => d.current = !1);
return () => cancelAnimationFrame(e);
}, []), /* @__PURE__ */ G(fb, {
present: i || u,
children: ({ present: n }) => /* @__PURE__ */ G($.div, {
"data-state": u ? "active" : "inactive",
"data-orientation": s.orientation,
role: "tabpanel",
"aria-labelledby": c,
hidden: !n,
id: l,
tabIndex: 0,
...o,
ref: t,
style: {
...e.style,
animationDuration: d.current ? "0s" : void 0
},
children: n && a
})
});
});
xU.displayName = bU;
function SU(e, t) {
return `${e}-trigger-${t}`;
}
function CU(e, t) {
return `${e}-content-${t}`;
}
var wU = hU, TU = _U, EU = yU, DU = xU, OU = "Toggle", kU = I.forwardRef((e, t) => {
let { pressed: n, defaultPressed: r, onPressedChange: i, ...a } = e, [o, s] = xy({
prop: n,
onChange: i,
defaultProp: r ?? !1,
caller: OU
});
return /* @__PURE__ */ G($.button, {
type: "button",
"aria-pressed": o,
"data-state": o ? "on" : "off",
"data-disabled": e.disabled ? "" : void 0,
...a,
ref: t,
onClick: Q(e.onClick, () => {
e.disabled || s(!o);
})
});
});
kU.displayName = OU;
var AU = kU, jU = "ToggleGroup", [MU, NU] = my(jU, [wT]), PU = wT(), FU = L.forwardRef((e, t) => {
let { type: n, ...r } = e;
if (n === "single") return /* @__PURE__ */ G(RU, {
...r,
ref: t
});
if (n === "multiple") return /* @__PURE__ */ G(zU, {
...r,
ref: t
});
throw Error(`Missing prop \`type\` expected on \`${jU}\``);
});
FU.displayName = jU;
var [IU, LU] = MU(jU), RU = L.forwardRef((e, t) => {
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [o, s] = xy({
prop: n,
defaultProp: r ?? "",
onChange: i,
caller: jU
});
return /* @__PURE__ */ G(IU, {
scope: e.__scopeToggleGroup,
type: "single",
value: L.useMemo(() => o ? [o] : [], [o]),
onItemActivate: s,
onItemDeactivate: L.useCallback(() => s(""), [s]),
children: /* @__PURE__ */ G(HU, {
...a,
ref: t
})
});
}), zU = L.forwardRef((e, t) => {
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [o, s] = xy({
prop: n,
defaultProp: r ?? [],
onChange: i,
caller: jU
}), c = L.useCallback((e) => s((t = []) => [...t, e]), [s]), l = L.useCallback((e) => s((t = []) => t.filter((t) => t !== e)), [s]);
return /* @__PURE__ */ G(IU, {
scope: e.__scopeToggleGroup,
type: "multiple",
value: o,
onItemActivate: c,
onItemDeactivate: l,
children: /* @__PURE__ */ G(HU, {
...a,
ref: t
})
});
});
FU.displayName = jU;
var [BU, VU] = MU(jU), HU = L.forwardRef((e, t) => {
let { __scopeToggleGroup: n, disabled: r = !1, rovingFocus: i = !0, orientation: a, dir: o, loop: s = !0, ...c } = e, l = PU(n), u = NS(o), d = {
role: "group",
dir: u,
...c
};
return /* @__PURE__ */ G(BU, {
scope: n,
rovingFocus: i,
disabled: r,
children: i ? /* @__PURE__ */ G(IT, {
asChild: !0,
...l,
orientation: a,
dir: u,
loop: s,
children: /* @__PURE__ */ G($.div, {
...d,
ref: t
})
}) : /* @__PURE__ */ G($.div, {
...d,
ref: t
})
});
}), UU = "ToggleGroupItem", WU = L.forwardRef((e, t) => {
let n = LU(UU, e.__scopeToggleGroup), r = VU(UU, e.__scopeToggleGroup), i = PU(e.__scopeToggleGroup), a = n.value.includes(e.value), o = r.disabled || e.disabled, s = {
...e,
pressed: a,
disabled: o
}, c = L.useRef(null);
return r.rovingFocus ? /* @__PURE__ */ G(LT, {
asChild: !0,
...i,
focusable: !o,
active: a,
ref: c,
children: /* @__PURE__ */ G(GU, {
...s,
ref: t
})
}) : /* @__PURE__ */ G(GU, {
...s,
ref: t
});
});
WU.displayName = UU;
var GU = L.forwardRef((e, t) => {
let { __scopeToggleGroup: n, value: r, ...i } = e, a = LU(UU, n), o = {
role: "radio",
"aria-checked": e.pressed,
"aria-pressed": void 0
}, s = a.type === "single" ? o : void 0;
return /* @__PURE__ */ G(kU, {
...s,
...i,
ref: t,
onPressedChange: (e) => {
e ? a.onItemActivate(r) : a.onItemDeactivate(r);
}
});
}), KU = FU, qU = WU;
// src/components/ui/slider.tsx
function JU({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, ...a }) {
let o = I.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [r, i], [
n,
t,
r,
i
]);
return /* @__PURE__ */ K(KH, {
"data-slot": "slider",
defaultValue: t,
value: n,
min: r,
max: i,
className: Y("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", e),
...a,
children: [/* @__PURE__ */ G(qH, {
"data-slot": "slider-track",
className: Y("relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
children: /* @__PURE__ */ G(JH, {
"data-slot": "slider-range",
className: Y("absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
})
}), Array.from({ length: o.length }, (e, t) => /* @__PURE__ */ G(YH, {
"data-slot": "slider-thumb",
className: "block size-4 shrink-0 rounded-full border border-primary bg-white shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
}, t))]
});
}
// ../../../node_modules/.pnpm/@dagrejs+dagre@2.0.4/node_modules/@dagrejs/dagre/dist/dagre.esm.js
var YU = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), XU = YU((e, t) => {
var n = Object.defineProperty, r = (e, t, r) => t in e ? n(e, t, {
enumerable: !0,
configurable: !0,
writable: !0,
value: r
}) : e[t] = r, i = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), a = (e, t, n) => r(e, typeof t == "symbol" ? t : t + "", n), o = i((e, t) => {
var n = class {
constructor(e) {
a(this, "_isDirected", !0), a(this, "_isMultigraph", !1), a(this, "_isCompound", !1), a(this, "_label"), a(this, "_defaultNodeLabelFn", () => {}), a(this, "_defaultEdgeLabelFn", () => {}), a(this, "_nodes", {}), a(this, "_in", {}), a(this, "_preds", {}), a(this, "_out", {}), a(this, "_sucs", {}), a(this, "_edgeObjs", {}), a(this, "_edgeLabels", {}), a(this, "_nodeCount", 0), a(this, "_edgeCount", 0), a(this, "_parent"), a(this, "_children"), e && (this._isDirected = !Object.hasOwn(e, "directed") || e.directed, this._isMultigraph = Object.hasOwn(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.hasOwn(e, "compound") ? e.compound : !1), this._isCompound && (this._parent = {}, this._children = {}, this._children["\0"] = {});
}
isDirected() {
return this._isDirected;
}
isMultigraph() {
return this._isMultigraph;
}
isCompound() {
return this._isCompound;
}
setGraph(e) {
return this._label = e, this;
}
graph() {
return this._label;
}
setDefaultNodeLabel(e) {
return this._defaultNodeLabelFn = e, typeof e != "function" && (this._defaultNodeLabelFn = () => e), this;
}
nodeCount() {
return this._nodeCount;
}
nodes() {
return Object.keys(this._nodes);
}
sources() {
var e = this;
return this.nodes().filter((t) => Object.keys(e._in[t]).length === 0);
}
sinks() {
var e = this;
return this.nodes().filter((t) => Object.keys(e._out[t]).length === 0);
}
setNodes(e, t) {
var n = arguments, r = this;
return e.forEach(function(e) {
n.length > 1 ? r.setNode(e, t) : r.setNode(e);
}), this;
}
setNode(e, t) {
return Object.hasOwn(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = t), this) : (this._nodes[e] = arguments.length > 1 ? t : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = "\0", this._children[e] = {}, this._children["\0"][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
}
node(e) {
return this._nodes[e];
}
hasNode(e) {
return Object.hasOwn(this._nodes, e);
}
removeNode(e) {
var t = this;
if (Object.hasOwn(this._nodes, e)) {
var n = (e) => t.removeEdge(t._edgeObjs[e]);
delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], this.children(e).forEach(function(e) {
t.setParent(e);
}), delete this._children[e]), Object.keys(this._in[e]).forEach(n), delete this._in[e], delete this._preds[e], Object.keys(this._out[e]).forEach(n), delete this._out[e], delete this._sucs[e], --this._nodeCount;
}
return this;
}
setParent(e, t) {
if (!this._isCompound) throw Error("Cannot set parent in a non-compound graph");
if (t === void 0) t = "\0";
else {
t += "";
for (var n = t; n !== void 0; n = this.parent(n)) if (n === e) throw Error("Setting " + t + " as parent of " + e + " would create a cycle");
this.setNode(t);
}
return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = t, this._children[t][e] = !0, this;
}
_removeFromParentsChildList(e) {
delete this._children[this._parent[e]][e];
}
parent(e) {
if (this._isCompound) {
var t = this._parent[e];
if (t !== "\0") return t;
}
}
children(e = "\0") {
if (this._isCompound) {
var t = this._children[e];
if (t) return Object.keys(t);
} else {
if (e === "\0") return this.nodes();
if (this.hasNode(e)) return [];
}
}
predecessors(e) {
var t = this._preds[e];
if (t) return Object.keys(t);
}
successors(e) {
var t = this._sucs[e];
if (t) return Object.keys(t);
}
neighbors(e) {
var t = this.predecessors(e);
if (t) {
let r = new Set(t);
for (var n of this.successors(e)) r.add(n);
return Array.from(r.values());
}
}
isLeaf(e) {
return (this.isDirected() ? this.successors(e) : this.neighbors(e)).length === 0;
}
filterNodes(e) {
var t = new this.constructor({
directed: this._isDirected,
multigraph: this._isMultigraph,
compound: this._isCompound
});
t.setGraph(this.graph());
var n = this;
Object.entries(this._nodes).forEach(function([n, r]) {
e(n) && t.setNode(n, r);
}), Object.values(this._edgeObjs).forEach(function(e) {
t.hasNode(e.v) && t.hasNode(e.w) && t.setEdge(e, n.edge(e));
});
var r = {};
function i(e) {
var a = n.parent(e);
return a === void 0 || t.hasNode(a) ? (r[e] = a, a) : a in r ? r[a] : i(a);
}
return this._isCompound && t.nodes().forEach((e) => t.setParent(e, i(e))), t;
}
setDefaultEdgeLabel(e) {
return this._defaultEdgeLabelFn = e, typeof e != "function" && (this._defaultEdgeLabelFn = () => e), this;
}
edgeCount() {
return this._edgeCount;
}
edges() {
return Object.values(this._edgeObjs);
}
setPath(e, t) {
var n = this, r = arguments;
return e.reduce(function(e, i) {
return r.length > 1 ? n.setEdge(e, i, t) : n.setEdge(e, i), i;
}), this;
}
setEdge() {
var e, t, n, i, a = !1, c = arguments[0];
typeof c == "object" && c && "v" in c ? (e = c.v, t = c.w, n = c.name, arguments.length === 2 && (i = arguments[1], a = !0)) : (e = c, t = arguments[1], n = arguments[3], arguments.length > 2 && (i = arguments[2], a = !0)), e = "" + e, t = "" + t, n !== void 0 && (n = "" + n);
var l = o(this._isDirected, e, t, n);
if (Object.hasOwn(this._edgeLabels, l)) return a && (this._edgeLabels[l] = i), this;
if (n !== void 0 && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
this.setNode(e), this.setNode(t), this._edgeLabels[l] = a ? i : this._defaultEdgeLabelFn(e, t, n);
var u = s(this._isDirected, e, t, n);
return e = u.v, t = u.w, Object.freeze(u), this._edgeObjs[l] = u, r(this._preds[t], e), r(this._sucs[e], t), this._in[t][l] = u, this._out[e][l] = u, this._edgeCount++, this;
}
edge(e, t, n) {
var r = arguments.length === 1 ? c(this._isDirected, arguments[0]) : o(this._isDirected, e, t, n);
return this._edgeLabels[r];
}
edgeAsObj() {
let e = this.edge(...arguments);
return typeof e == "object" ? e : { label: e };
}
hasEdge(e, t, n) {
var r = arguments.length === 1 ? c(this._isDirected, arguments[0]) : o(this._isDirected, e, t, n);
return Object.hasOwn(this._edgeLabels, r);
}
removeEdge(e, t, n) {
var r = arguments.length === 1 ? c(this._isDirected, arguments[0]) : o(this._isDirected, e, t, n), a = this._edgeObjs[r];
return a && (e = a.v, t = a.w, delete this._edgeLabels[r], delete this._edgeObjs[r], i(this._preds[t], e), i(this._sucs[e], t), delete this._in[t][r], delete this._out[e][r], this._edgeCount--), this;
}
inEdges(e, t) {
return this.isDirected() ? this.filterEdges(this._in[e], e, t) : this.nodeEdges(e, t);
}
outEdges(e, t) {
return this.isDirected() ? this.filterEdges(this._out[e], e, t) : this.nodeEdges(e, t);
}
nodeEdges(e, t) {
if (e in this._nodes) return this.filterEdges({
...this._in[e],
...this._out[e]
}, e, t);
}
filterEdges(e, t, n) {
if (e) {
var r = Object.values(e);
return n ? r.filter(function(e) {
return e.v === t && e.w === n || e.v === n && e.w === t;
}) : r;
}
}
};
function r(e, t) {
e[t] ? e[t]++ : e[t] = 1;
}
function i(e, t) {
--e[t] || delete e[t];
}
function o(e, t, n, r) {
var i = "" + t, a = "" + n;
if (!e && i > a) {
var o = i;
i = a, a = o;
}
return i + "" + a + "" + (r === void 0 ? "\0" : r);
}
function s(e, t, n, r) {
var i = "" + t, a = "" + n;
if (!e && i > a) {
var o = i;
i = a, a = o;
}
var s = {
v: i,
w: a
};
return r && (s.name = r), s;
}
function c(e, t) {
return o(e, t.v, t.w, t.name);
}
t.exports = n;
}), s = i((e, t) => {
t.exports = "3.0.2";
}), c = i((e, t) => {
t.exports = {
Graph: o(),
version: s()
};
}), l = i((e, t) => {
var n = o();
t.exports = {
write: r,
read: s
};
function r(e) {
var t = {
options: {
directed: e.isDirected(),
multigraph: e.isMultigraph(),
compound: e.isCompound()
},
nodes: i(e),
edges: a(e)
};
return e.graph() !== void 0 && (t.value = structuredClone(e.graph())), t;
}
function i(e) {
return e.nodes().map(function(t) {
var n = e.node(t), r = e.parent(t), i = { v: t };
return n !== void 0 && (i.value = n), r !== void 0 && (i.parent = r), i;
});
}
function a(e) {
return e.edges().map(function(t) {
var n = e.edge(t), r = {
v: t.v,
w: t.w
};
return t.name !== void 0 && (r.name = t.name), n !== void 0 && (r.value = n), r;
});
}
function s(e) {
var t = new n(e.options).setGraph(e.value);
return e.nodes.forEach(function(e) {
t.setNode(e.v, e.value), e.parent && t.setParent(e.v, e.parent);
}), e.edges.forEach(function(e) {
t.setEdge({
v: e.v,
w: e.w,
name: e.name
}, e.value);
}), t;
}
}), u = i((e, t) => {
t.exports = r;
var n = () => 1;
function r(e, t, r, a) {
return i(e, String(t), r || n, a || function(t) {
return e.outEdges(t);
});
}
function i(e, t, n, r) {
var i = {}, a = !0, o = 0, s = e.nodes(), c = function(e) {
var t = n(e);
i[e.v].distance + t < i[e.w].distance && (i[e.w] = {
distance: i[e.v].distance + t,
predecessor: e.v
}, a = !0);
}, l = function() {
s.forEach(function(e) {
r(e).forEach(function(t) {
var n = t.v === e ? t.v : t.w;
c({
v: n,
w: n === t.v ? t.w : t.v
});
});
});
};
s.forEach(function(e) {
i[e] = { distance: e === t ? 0 : Infinity };
});
for (var u = s.length, d = 1; d < u && (a = !1, o++, l(), a); d++);
if (o === u - 1 && (a = !1, l(), a)) throw Error("The graph contains a negative weight cycle");
return i;
}
}), d = i((e, t) => {
t.exports = n;
function n(e) {
var t = {}, n = [], r;
function i(n) {
Object.hasOwn(t, n) || (t[n] = !0, r.push(n), e.successors(n).forEach(i), e.predecessors(n).forEach(i));
}
return e.nodes().forEach(function(e) {
r = [], i(e), r.length && n.push(r);
}), n;
}
}), f = i((e, t) => {
t.exports = class {
constructor() {
a(this, "_arr", []), a(this, "_keyIndices", {});
}
size() {
return this._arr.length;
}
keys() {
return this._arr.map(function(e) {
return e.key;
});
}
has(e) {
return Object.hasOwn(this._keyIndices, e);
}
priority(e) {
var t = this._keyIndices[e];
if (t !== void 0) return this._arr[t].priority;
}
min() {
if (this.size() === 0) throw Error("Queue underflow");
return this._arr[0].key;
}
add(e, t) {
var n = this._keyIndices;
if (e = String(e), !Object.hasOwn(n, e)) {
var r = this._arr, i = r.length;
return n[e] = i, r.push({
key: e,
priority: t
}), this._decrease(i), !0;
}
return !1;
}
removeMin() {
this._swap(0, this._arr.length - 1);
var e = this._arr.pop();
return delete this._keyIndices[e.key], this._heapify(0), e.key;
}
decrease(e, t) {
var n = this._keyIndices[e];
if (t > this._arr[n].priority) throw Error("New priority is greater than current priority. Key: " + e + " Old: " + this._arr[n].priority + " New: " + t);
this._arr[n].priority = t, this._decrease(n);
}
_heapify(e) {
var t = this._arr, n = 2 * e, r = n + 1, i = e;
n < t.length && (i = t[n].priority < t[i].priority ? n : i, r < t.length && (i = t[r].priority < t[i].priority ? r : i), i !== e && (this._swap(e, i), this._heapify(i)));
}
_decrease(e) {
for (var t = this._arr, n = t[e].priority, r; e !== 0 && (r = e >> 1, !(t[r].priority < n));) this._swap(e, r), e = r;
}
_swap(e, t) {
var n = this._arr, r = this._keyIndices, i = n[e], a = n[t];
n[e] = a, n[t] = i, r[a.key] = e, r[i.key] = t;
}
};
}), p = i((e, t) => {
var n = f();
t.exports = i;
var r = () => 1;
function i(e, t, n, i) {
return a(e, String(t), n || r, i || function(t) {
return e.outEdges(t);
});
}
function a(e, t, r, i) {
var a = {}, o = new n(), s, c, l = function(e) {
var t = e.v === s ? e.w : e.v, n = a[t], i = r(e), l = c.distance + i;
if (i < 0) throw Error("dijkstra does not allow negative edge weights. Bad edge: " + e + " Weight: " + i);
l < n.distance && (n.distance = l, n.predecessor = s, o.decrease(t, l));
};
for (e.nodes().forEach(function(e) {
var n = e === t ? 0 : Infinity;
a[e] = { distance: n }, o.add(e, n);
}); o.size() > 0 && (s = o.removeMin(), c = a[s], c.distance !== Infinity);) i(s).forEach(l);
return a;
}
}), m = i((e, t) => {
var n = p();
t.exports = r;
function r(e, t, r) {
return e.nodes().reduce(function(i, a) {
return i[a] = n(e, a, t, r), i;
}, {});
}
}), h = i((e, t) => {
t.exports = n;
function n(e, t, n) {
if (e[t].predecessor !== void 0) throw Error("Invalid source vertex");
if (e[n].predecessor === void 0 && n !== t) throw Error("Invalid destination vertex");
return {
weight: e[n].distance,
path: r(e, t, n)
};
}
function r(e, t, n) {
for (var r = [], i = n; i !== t;) r.push(i), i = e[i].predecessor;
return r.push(t), r.reverse();
}
}), g = i((e, t) => {
t.exports = n;
function n(e) {
var t = 0, n = [], r = {}, i = [];
function a(o) {
var s = r[o] = {
onStack: !0,
lowlink: t,
index: t++
};
if (n.push(o), e.successors(o).forEach(function(e) {
Object.hasOwn(r, e) ? r[e].onStack && (s.lowlink = Math.min(s.lowlink, r[e].index)) : (a(e), s.lowlink = Math.min(s.lowlink, r[e].lowlink));
}), s.lowlink === s.index) {
var c = [], l;
do
l = n.pop(), r[l].onStack = !1, c.push(l);
while (o !== l);
i.push(c);
}
}
return e.nodes().forEach(function(e) {
Object.hasOwn(r, e) || a(e);
}), i;
}
}), _ = i((e, t) => {
var n = g();
t.exports = r;
function r(e) {
return n(e).filter(function(t) {
return t.length > 1 || t.length === 1 && e.hasEdge(t[0], t[0]);
});
}
}), v = i((e, t) => {
t.exports = r;
var n = () => 1;
function r(e, t, r) {
return i(e, t || n, r || function(t) {
return e.outEdges(t);
});
}
function i(e, t, n) {
var r = {}, i = e.nodes();
return i.forEach(function(e) {
r[e] = {}, r[e][e] = { distance: 0 }, i.forEach(function(t) {
e !== t && (r[e][t] = { distance: Infinity });
}), n(e).forEach(function(n) {
var i = n.v === e ? n.w : n.v, a = t(n);
r[e][i] = {
distance: a,
predecessor: e
};
});
}), i.forEach(function(e) {
var t = r[e];
i.forEach(function(n) {
var a = r[n];
i.forEach(function(n) {
var r = a[e], i = t[n], o = a[n], s = r.distance + i.distance;
s < o.distance && (o.distance = s, o.predecessor = i.predecessor);
});
});
}), r;
}
}), y = i((e, t) => {
function n(e) {
var t = {}, n = {}, i = [];
function a(o) {
if (Object.hasOwn(n, o)) throw new r();
Object.hasOwn(t, o) || (n[o] = !0, t[o] = !0, e.predecessors(o).forEach(a), delete n[o], i.push(o));
}
if (e.sinks().forEach(a), Object.keys(t).length !== e.nodeCount()) throw new r();
return i;
}
var r = class extends Error {
constructor() {
super(...arguments);
}
};
t.exports = n, n.CycleException = r;
}), b = i((e, t) => {
var n = y();
t.exports = r;
function r(e) {
try {
n(e);
} catch (e) {
if (e instanceof n.CycleException) return !1;
throw e;
}
return !0;
}
}), x = i((e, t) => {
t.exports = n;
function n(e, t, n, i, a) {
Array.isArray(t) || (t = [t]);
var o = (e.isDirected() ? e.successors : e.neighbors).bind(e), s = {};
return t.forEach(function(t) {
if (!e.hasNode(t)) throw Error("Graph does not have node: " + t);
a = r(e, t, n === "post", s, o, i, a);
}), a;
}
function r(e, t, n, i, a, o, s) {
return Object.hasOwn(i, t) || (i[t] = !0, n || (s = o(s, t)), a(t).forEach(function(t) {
s = r(e, t, n, i, a, o, s);
}), n && (s = o(s, t))), s;
}
}), S = i((e, t) => {
var n = x();
t.exports = r;
function r(e, t, r) {
return n(e, t, r, function(e, t) {
return e.push(t), e;
}, []);
}
}), C = i((e, t) => {
var n = S();
t.exports = r;
function r(e, t) {
return n(e, t, "post");
}
}), w = i((e, t) => {
var n = S();
t.exports = r;
function r(e, t) {
return n(e, t, "pre");
}
}), T = i((e, t) => {
var n = o(), r = f();
t.exports = i;
function i(e, t) {
var i = new n(), a = {}, o = new r(), s;
function c(e) {
var n = e.v === s ? e.w : e.v, r = o.priority(n);
if (r !== void 0) {
var i = t(e);
i < r && (a[n] = s, o.decrease(n, i));
}
}
if (e.nodeCount() === 0) return i;
e.nodes().forEach(function(e) {
o.add(e, Infinity), i.setNode(e);
}), o.decrease(e.nodes()[0], 0);
for (var l = !1; o.size() > 0;) {
if (s = o.removeMin(), Object.hasOwn(a, s)) i.setEdge(s, a[s]);
else {
if (l) throw Error("Input graph is not connected: " + e);
l = !0;
}
e.nodeEdges(s).forEach(c);
}
return i;
}
}), E = i((e, t) => {
var n = p(), r = u();
t.exports = i;
function i(e, t, n, r) {
return a(e, t, n, r || function(t) {
return e.outEdges(t);
});
}
function a(e, t, i, a) {
if (i === void 0) return n(e, t, i, a);
for (var o = !1, s = e.nodes(), c = 0; c < s.length; c++) {
for (var l = a(s[c]), u = 0; u < l.length; u++) {
var d = l[u], f = d.v === s[c] ? d.v : d.w;
i({
v: f,
w: f === d.v ? d.w : d.v
}) < 0 && (o = !0);
}
if (o) return r(e, t, i, a);
}
return n(e, t, i, a);
}
}), D = i((e, t) => {
t.exports = {
bellmanFord: u(),
components: d(),
dijkstra: p(),
dijkstraAll: m(),
extractPath: h(),
findCycles: _(),
floydWarshall: v(),
isAcyclic: b(),
postorder: C(),
preorder: w(),
prim: T(),
shortestPaths: E(),
reduce: x(),
tarjan: g(),
topsort: y()
};
}), O = c();
t.exports = {
Graph: O.Graph,
json: l(),
alg: D(),
version: O.version
};
}), ZU = YU((e, t) => {
var n = class {
constructor() {
let e = {};
e._next = e._prev = e, this._sentinel = e;
}
dequeue() {
let e = this._sentinel, t = e._prev;
if (t !== e) return r(t), t;
}
enqueue(e) {
let t = this._sentinel;
e._prev && e._next && r(e), e._next = t._next, t._next._prev = e, t._next = e, e._prev = t;
}
toString() {
let e = [], t = this._sentinel, n = t._prev;
for (; n !== t;) e.push(JSON.stringify(n, i)), n = n._prev;
return "[" + e.join(", ") + "]";
}
};
function r(e) {
e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
}
function i(e, t) {
if (e !== "_next" && e !== "_prev") return t;
}
t.exports = n;
}), QU = YU((e, t) => {
var n = XU().Graph, r = ZU();
t.exports = a;
var i = () => 1;
function a(e, t) {
if (e.nodeCount() <= 1) return [];
let n = c(e, t || i);
return o(n.graph, n.buckets, n.zeroIdx).flatMap((t) => e.outEdges(t.v, t.w));
}
function o(e, t, n) {
let r = [], i = t[t.length - 1], a = t[0], o;
for (; e.nodeCount();) {
for (; o = a.dequeue();) s(e, t, n, o);
for (; o = i.dequeue();) s(e, t, n, o);
if (e.nodeCount()) {
for (let i = t.length - 2; i > 0; --i) if (o = t[i].dequeue(), o) {
r = r.concat(s(e, t, n, o, !0));
break;
}
}
}
return r;
}
function s(e, t, n, r, i) {
let a = i ? [] : void 0;
return e.inEdges(r.v).forEach((r) => {
let o = e.edge(r), s = e.node(r.v);
i && a.push({
v: r.v,
w: r.w
}), s.out -= o, l(t, n, s);
}), e.outEdges(r.v).forEach((r) => {
let i = e.edge(r), a = r.w, o = e.node(a);
o.in -= i, l(t, n, o);
}), e.removeNode(r.v), a;
}
function c(e, t) {
let i = new n(), a = 0, o = 0;
e.nodes().forEach((e) => {
i.setNode(e, {
v: e,
in: 0,
out: 0
});
}), e.edges().forEach((e) => {
let n = i.edge(e.v, e.w) || 0, r = t(e), s = n + r;
i.setEdge(e.v, e.w, s), o = Math.max(o, i.node(e.v).out += r), a = Math.max(a, i.node(e.w).in += r);
});
let s = u(o + a + 3).map(() => new r()), c = a + 1;
return i.nodes().forEach((e) => {
l(s, c, i.node(e));
}), {
graph: i,
buckets: s,
zeroIdx: c
};
}
function l(e, t, n) {
n.out ? n.in ? e[n.out - n.in + t].enqueue(n) : e[e.length - 1].enqueue(n) : e[0].enqueue(n);
}
function u(e) {
let t = [];
for (let n = 0; n < e; n++) t.push(n);
return t;
}
}), $U = YU((e, t) => {
var n = XU().Graph;
t.exports = {
addBorderNode: f,
addDummyNode: r,
applyWithChunking: h,
asNonCompoundGraph: a,
buildLayerMatrix: l,
intersectRect: c,
mapValues: w,
maxRank: g,
normalizeRanks: u,
notime: y,
partition: _,
pick: C,
predecessorWeights: s,
range: S,
removeEmptyRanks: d,
simplify: i,
successorWeights: o,
time: v,
uniqueId: x,
zipObject: T
};
function r(e, t, n, r) {
for (var i = r; e.hasNode(i);) i = x(r);
return n.dummy = t, e.setNode(i, n), i;
}
function i(e) {
let t = new n().setGraph(e.graph());
return e.nodes().forEach((n) => t.setNode(n, e.node(n))), e.edges().forEach((n) => {
let r = t.edge(n.v, n.w) || {
weight: 0,
minlen: 1
}, i = e.edge(n);
t.setEdge(n.v, n.w, {
weight: r.weight + i.weight,
minlen: Math.max(r.minlen, i.minlen)
});
}), t;
}
function a(e) {
let t = new n({ multigraph: e.isMultigraph() }).setGraph(e.graph());
return e.nodes().forEach((n) => {
e.children(n).length || t.setNode(n, e.node(n));
}), e.edges().forEach((n) => {
t.setEdge(n, e.edge(n));
}), t;
}
function o(e) {
let t = e.nodes().map((t) => {
let n = {};
return e.outEdges(t).forEach((t) => {
n[t.w] = (n[t.w] || 0) + e.edge(t).weight;
}), n;
});
return T(e.nodes(), t);
}
function s(e) {
let t = e.nodes().map((t) => {
let n = {};
return e.inEdges(t).forEach((t) => {
n[t.v] = (n[t.v] || 0) + e.edge(t).weight;
}), n;
});
return T(e.nodes(), t);
}
function c(e, t) {
let n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2;
if (!i && !a) throw Error("Not possible to find intersection inside of the rectangle");
let c, l;
return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = o * a / i), {
x: n + c,
y: r + l
};
}
function l(e) {
let t = S(g(e) + 1).map(() => []);
return e.nodes().forEach((n) => {
let r = e.node(n), i = r.rank;
i !== void 0 && (t[i][r.order] = n);
}), t;
}
function u(e) {
let t = e.nodes().map((t) => {
let n = e.node(t).rank;
return n === void 0 ? Number.MAX_VALUE : n;
}), n = h(Math.min, t);
e.nodes().forEach((t) => {
let r = e.node(t);
Object.hasOwn(r, "rank") && (r.rank -= n);
});
}
function d(e) {
let t = e.nodes().map((t) => e.node(t).rank).filter((e) => e !== void 0), n = h(Math.min, t), r = [];
e.nodes().forEach((t) => {
let i = e.node(t).rank - n;
r[i] || (r[i] = []), r[i].push(t);
});
let i = 0, a = e.graph().nodeRankFactor;
Array.from(r).forEach((t, n) => {
t === void 0 && n % a !== 0 ? --i : t !== void 0 && i && t.forEach((t) => e.node(t).rank += i);
});
}
function f(e, t, n, i) {
let a = {
width: 0,
height: 0
};
return arguments.length >= 4 && (a.rank = n, a.order = i), r(e, "border", a, t);
}
function p(e, t = m) {
let n = [];
for (let r = 0; r < e.length; r += t) {
let i = e.slice(r, r + t);
n.push(i);
}
return n;
}
var m = 65535;
function h(e, t) {
if (t.length > m) {
let n = p(t);
return e.apply(null, n.map((t) => e.apply(null, t)));
}
return e.apply(null, t);
}
function g(e) {
let t = e.nodes().map((t) => {
let n = e.node(t).rank;
return n === void 0 ? Number.MIN_VALUE : n;
});
return h(Math.max, t);
}
function _(e, t) {
let n = {
lhs: [],
rhs: []
};
return e.forEach((e) => {
t(e) ? n.lhs.push(e) : n.rhs.push(e);
}), n;
}
function v(e, t) {
let n = Date.now();
try {
return t();
} finally {
console.log(e + " time: " + (Date.now() - n) + "ms");
}
}
function y(e, t) {
return t();
}
var b = 0;
function x(e) {
return e + ("" + ++b);
}
function S(e, t, n = 1) {
t ?? (t = e, e = 0);
let r = (e) => e < t;
n < 0 && (r = (e) => t < e);
let i = [];
for (let t = e; r(t); t += n) i.push(t);
return i;
}
function C(e, t) {
let n = {};
for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
return n;
}
function w(e, t) {
let n = t;
return typeof t == "string" && (n = (e) => e[t]), Object.entries(e).reduce((e, [t, r]) => (e[t] = n(r, t), e), {});
}
function T(e, t) {
return e.reduce((e, n, r) => (e[n] = t[r], e), {});
}
}), eW = YU((e, t) => {
var n = QU(), r = $U().uniqueId;
t.exports = {
run: i,
undo: o
};
function i(e) {
(e.graph().acyclicer === "greedy" ? n(e, t(e)) : a(e)).forEach((t) => {
let n = e.edge(t);
e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n, r("rev"));
});
function t(e) {
return (t) => e.edge(t).weight;
}
}
function a(e) {
let t = [], n = {}, r = {};
function i(a) {
Object.hasOwn(r, a) || (r[a] = !0, n[a] = !0, e.outEdges(a).forEach((e) => {
Object.hasOwn(n, e.w) ? t.push(e) : i(e.w);
}), delete n[a]);
}
return e.nodes().forEach(i), t;
}
function o(e) {
e.edges().forEach((t) => {
let n = e.edge(t);
if (n.reversed) {
e.removeEdge(t);
let r = n.forwardName;
delete n.reversed, delete n.forwardName, e.setEdge(t.w, t.v, n, r);
}
});
}
}), tW = YU((e, t) => {
var n = $U();
t.exports = {
run: r,
undo: a
};
function r(e) {
e.graph().dummyChains = [], e.edges().forEach((t) => i(e, t));
}
function i(e, t) {
let r = t.v, i = e.node(r).rank, a = t.w, o = e.node(a).rank, s = t.name, c = e.edge(t), l = c.labelRank;
if (o === i + 1) return;
e.removeEdge(t);
let u, d, f = 0;
for (++i; i < o; ++f, ++i) c.points = [], d = {
width: 0,
height: 0,
edgeLabel: c,
edgeObj: t,
rank: i
}, u = n.addDummyNode(e, "edge", d, "_d"), i === l && (d.width = c.width, d.height = c.height, d.dummy = "edge-label", d.labelpos = c.labelpos), e.setEdge(r, u, { weight: c.weight }, s), f === 0 && e.graph().dummyChains.push(u), r = u;
e.setEdge(r, a, { weight: c.weight }, s);
}
function a(e) {
e.graph().dummyChains.forEach((t) => {
let n = e.node(t), r = n.edgeLabel, i;
for (e.setEdge(n.edgeObj, r); n.dummy;) i = e.successors(t)[0], e.removeNode(t), r.points.push({
x: n.x,
y: n.y
}), n.dummy === "edge-label" && (r.x = n.x, r.y = n.y, r.width = n.width, r.height = n.height), t = i, n = e.node(t);
});
}
}), nW = YU((e, t) => {
var { applyWithChunking: n } = $U();
t.exports = {
longestPath: r,
slack: i
};
function r(e) {
var t = {};
function r(i) {
var a = e.node(i);
if (Object.hasOwn(t, i)) return a.rank;
t[i] = !0;
let o = e.outEdges(i).map((t) => t == null ? Infinity : r(t.w) - e.edge(t).minlen);
var s = n(Math.min, o);
return s === Infinity && (s = 0), a.rank = s;
}
e.sources().forEach(r);
}
function i(e, t) {
return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
}
}), rW = YU((e, t) => {
var n = XU().Graph, r = nW().slack;
t.exports = i;
function i(e) {
var t = new n({ directed: !1 }), i = e.nodes()[0], c = e.nodeCount();
t.setNode(i, {});
for (var l, u; a(t, e) < c;) l = o(t, e), u = t.hasNode(l.v) ? r(e, l) : -r(e, l), s(t, e, u);
return t;
}
function a(e, t) {
function n(i) {
t.nodeEdges(i).forEach((a) => {
var o = a.v, s = i === o ? a.w : o;
!e.hasNode(s) && !r(t, a) && (e.setNode(s, {}), e.setEdge(i, s, {}), n(s));
});
}
return e.nodes().forEach(n), e.nodeCount();
}
function o(e, t) {
return t.edges().reduce((n, i) => {
let a = Infinity;
return e.hasNode(i.v) !== e.hasNode(i.w) && (a = r(t, i)), a < n[0] ? [a, i] : n;
}, [Infinity, null])[1];
}
function s(e, t, n) {
e.nodes().forEach((e) => t.node(e).rank += n);
}
}), iW = YU((e, t) => {
var n = rW(), r = nW().slack, i = nW().longestPath, a = XU().alg.preorder, o = XU().alg.postorder, s = $U().simplify;
t.exports = c, c.initLowLimValues = f, c.initCutValues = l, c.calcCutValue = d, c.leaveEdge = m, c.enterEdge = h, c.exchangeEdges = g;
function c(e) {
e = s(e), i(e);
var t = n(e);
f(t), l(t, e);
for (var r, a; r = m(t);) a = h(t, e, r), g(t, e, r, a);
}
function l(e, t) {
var n = o(e, e.nodes());
n = n.slice(0, n.length - 1), n.forEach((n) => u(e, t, n));
}
function u(e, t, n) {
var r = e.node(n).parent;
e.edge(n, r).cutvalue = d(e, t, n);
}
function d(e, t, n) {
var r = e.node(n).parent, i = !0, a = t.edge(n, r), o = 0;
return a ||= (i = !1, t.edge(r, n)), o = a.weight, t.nodeEdges(n).forEach((a) => {
var s = a.v === n, c = s ? a.w : a.v;
if (c !== r) {
var l = s === i, u = t.edge(a).weight;
if (o += l ? u : -u, v(e, n, c)) {
var d = e.edge(n, c).cutvalue;
o += l ? -d : d;
}
}
}), o;
}
function f(e, t) {
arguments.length < 2 && (t = e.nodes()[0]), p(e, {}, 1, t);
}
function p(e, t, n, r, i) {
var a = n, o = e.node(r);
return t[r] = !0, e.neighbors(r).forEach((i) => {
Object.hasOwn(t, i) || (n = p(e, t, n, i, r));
}), o.low = a, o.lim = n++, i ? o.parent = i : delete o.parent, n;
}
function m(e) {
return e.edges().find((t) => e.edge(t).cutvalue < 0);
}
function h(e, t, n) {
var i = n.v, a = n.w;
t.hasEdge(i, a) || (i = n.w, a = n.v);
var o = e.node(i), s = e.node(a), c = o, l = !1;
return o.lim > s.lim && (c = s, l = !0), t.edges().filter((t) => l === y(e, e.node(t.v), c) && l !== y(e, e.node(t.w), c)).reduce((e, n) => r(t, n) < r(t, e) ? n : e);
}
function g(e, t, n, r) {
var i = n.v, a = n.w;
e.removeEdge(i, a), e.setEdge(r.v, r.w, {}), f(e), l(e, t), _(e, t);
}
function _(e, t) {
var n = a(e, e.nodes().find((e) => !t.node(e).parent));
n = n.slice(1), n.forEach((n) => {
var r = e.node(n).parent, i = t.edge(n, r), a = !1;
i || (i = t.edge(r, n), a = !0), t.node(n).rank = t.node(r).rank + (a ? i.minlen : -i.minlen);
});
}
function v(e, t, n) {
return e.hasEdge(t, n);
}
function y(e, t, n) {
return n.low <= t.lim && t.lim <= n.lim;
}
}), aW = YU((e, t) => {
var n = nW().longestPath, r = rW(), i = iW();
t.exports = a;
function a(e) {
var t = e.graph().ranker;
if (t instanceof Function) return t(e);
switch (e.graph().ranker) {
case "network-simplex":
c(e);
break;
case "tight-tree":
s(e);
break;
case "longest-path":
o(e);
break;
case "none": break;
default: c(e);
}
}
var o = n;
function s(e) {
n(e), r(e);
}
function c(e) {
i(e);
}
}), oW = YU((e, t) => {
t.exports = n;
function n(e) {
let t = i(e);
e.graph().dummyChains.forEach((n) => {
let i = e.node(n), a = i.edgeObj, o = r(e, t, a.v, a.w), s = o.path, c = o.lca, l = 0, u = s[l], d = !0;
for (; n !== a.w;) {
if (i = e.node(n), d) {
for (; (u = s[l]) !== c && e.node(u).maxRank < i.rank;) l++;
u === c && (d = !1);
}
if (!d) {
for (; l < s.length - 1 && e.node(u = s[l + 1]).minRank <= i.rank;) l++;
u = s[l];
}
e.setParent(n, u), n = e.successors(n)[0];
}
});
}
function r(e, t, n, r) {
let i = [], a = [], o = Math.min(t[n].low, t[r].low), s = Math.max(t[n].lim, t[r].lim), c, l;
c = n;
do
c = e.parent(c), i.push(c);
while (c && (t[c].low > o || s > t[c].lim));
for (l = c, c = r; (c = e.parent(c)) !== l;) a.push(c);
return {
path: i.concat(a.reverse()),
lca: l
};
}
function i(e) {
let t = {}, n = 0;
function r(i) {
let a = n;
e.children(i).forEach(r), t[i] = {
low: a,
lim: n++
};
}
return e.children().forEach(r), t;
}
}), sW = YU((e, t) => {
var n = $U();
t.exports = {
run: r,
cleanup: s
};
function r(e) {
let t = n.addDummyNode(e, "root", {}, "_root"), r = a(e), s = Object.values(r), c = n.applyWithChunking(Math.max, s) - 1, l = 2 * c + 1;
e.graph().nestingRoot = t, e.edges().forEach((t) => e.edge(t).minlen *= l);
let u = o(e) + 1;
e.children().forEach((n) => i(e, t, l, u, c, r, n)), e.graph().nodeRankFactor = l;
}
function i(e, t, r, a, o, s, c) {
let l = e.children(c);
if (!l.length) {
c !== t && e.setEdge(t, c, {
weight: 0,
minlen: r
});
return;
}
let u = n.addBorderNode(e, "_bt"), d = n.addBorderNode(e, "_bb"), f = e.node(c);
e.setParent(u, c), f.borderTop = u, e.setParent(d, c), f.borderBottom = d, l.forEach((n) => {
i(e, t, r, a, o, s, n);
let l = e.node(n), f = l.borderTop ? l.borderTop : n, p = l.borderBottom ? l.borderBottom : n, m = l.borderTop ? a : 2 * a, h = f === p ? o - s[c] + 1 : 1;
e.setEdge(u, f, {
weight: m,
minlen: h,
nestingEdge: !0
}), e.setEdge(p, d, {
weight: m,
minlen: h,
nestingEdge: !0
});
}), e.parent(c) || e.setEdge(t, u, {
weight: 0,
minlen: o + s[c]
});
}
function a(e) {
var t = {};
function n(r, i) {
var a = e.children(r);
a && a.length && a.forEach((e) => n(e, i + 1)), t[r] = i;
}
return e.children().forEach((e) => n(e, 1)), t;
}
function o(e) {
return e.edges().reduce((t, n) => t + e.edge(n).weight, 0);
}
function s(e) {
var t = e.graph();
e.removeNode(t.nestingRoot), delete t.nestingRoot, e.edges().forEach((t) => {
e.edge(t).nestingEdge && e.removeEdge(t);
});
}
}), cW = YU((e, t) => {
var n = $U();
t.exports = r;
function r(e) {
function t(n) {
let r = e.children(n), a = e.node(n);
if (r.length && r.forEach(t), Object.hasOwn(a, "minRank")) {
a.borderLeft = [], a.borderRight = [];
for (let t = a.minRank, r = a.maxRank + 1; t < r; ++t) i(e, "borderLeft", "_bl", n, a, t), i(e, "borderRight", "_br", n, a, t);
}
}
e.children().forEach(t);
}
function i(e, t, r, i, a, o) {
let s = {
width: 0,
height: 0,
rank: o,
borderType: t
}, c = a[t][o - 1], l = n.addDummyNode(e, "border", s, r);
a[t][o] = l, e.setParent(l, i), c && e.setEdge(c, l, { weight: 1 });
}
}), lW = YU((e, t) => {
t.exports = {
adjust: n,
undo: r
};
function n(e) {
let t = e.graph().rankdir.toLowerCase();
(t === "lr" || t === "rl") && i(e);
}
function r(e) {
let t = e.graph().rankdir.toLowerCase();
(t === "bt" || t === "rl") && o(e), (t === "lr" || t === "rl") && (c(e), i(e));
}
function i(e) {
e.nodes().forEach((t) => a(e.node(t))), e.edges().forEach((t) => a(e.edge(t)));
}
function a(e) {
let t = e.width;
e.width = e.height, e.height = t;
}
function o(e) {
e.nodes().forEach((t) => s(e.node(t))), e.edges().forEach((t) => {
let n = e.edge(t);
n.points.forEach(s), Object.hasOwn(n, "y") && s(n);
});
}
function s(e) {
e.y = -e.y;
}
function c(e) {
e.nodes().forEach((t) => l(e.node(t))), e.edges().forEach((t) => {
let n = e.edge(t);
n.points.forEach(l), Object.hasOwn(n, "x") && l(n);
});
}
function l(e) {
let t = e.x;
e.x = e.y, e.y = t;
}
}), uW = YU((e, t) => {
var n = $U();
t.exports = r;
function r(e) {
let t = {}, r = e.nodes().filter((t) => !e.children(t).length), i = r.map((t) => e.node(t).rank), a = n.applyWithChunking(Math.max, i), o = n.range(a + 1).map(() => []);
function s(n) {
if (t[n]) return;
t[n] = !0;
let r = e.node(n);
o[r.rank].push(n), e.successors(n).forEach(s);
}
return r.sort((t, n) => e.node(t).rank - e.node(n).rank).forEach(s), o;
}
}), dW = YU((e, t) => {
var n = $U().zipObject;
t.exports = r;
function r(e, t) {
let n = 0;
for (let r = 1; r < t.length; ++r) n += i(e, t[r - 1], t[r]);
return n;
}
function i(e, t, r) {
let i = n(r, r.map((e, t) => t)), a = t.flatMap((t) => e.outEdges(t).map((t) => ({
pos: i[t.w],
weight: e.edge(t).weight
})).sort((e, t) => e.pos - t.pos)), o = 1;
for (; o < r.length;) o <<= 1;
let s = 2 * o - 1;
--o;
let c = Array(s).fill(0), l = 0;
return a.forEach((e) => {
let t = e.pos + o;
c[t] += e.weight;
let n = 0;
for (; t > 0;) t % 2 && (n += c[t + 1]), t = t - 1 >> 1, c[t] += e.weight;
l += e.weight * n;
}), l;
}
}), fW = YU((e, t) => {
t.exports = n;
function n(e, t = []) {
return t.map((t) => {
let n = e.inEdges(t);
if (n.length) {
let r = n.reduce((t, n) => {
let r = e.edge(n), i = e.node(n.v);
return {
sum: t.sum + r.weight * i.order,
weight: t.weight + r.weight
};
}, {
sum: 0,
weight: 0
});
return {
v: t,
barycenter: r.sum / r.weight,
weight: r.weight
};
}
return { v: t };
});
}
}), pW = YU((e, t) => {
var n = $U();
t.exports = r;
function r(e, t) {
let n = {};
return e.forEach((e, t) => {
let r = n[e.v] = {
indegree: 0,
in: [],
out: [],
vs: [e.v],
i: t
};
e.barycenter !== void 0 && (r.barycenter = e.barycenter, r.weight = e.weight);
}), t.edges().forEach((e) => {
let t = n[e.v], r = n[e.w];
t !== void 0 && r !== void 0 && (r.indegree++, t.out.push(n[e.w]));
}), i(Object.values(n).filter((e) => !e.indegree));
}
function i(e) {
let t = [];
function r(e) {
return (t) => {
t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) && a(e, t);
};
}
function i(t) {
return (n) => {
n.in.push(t), --n.indegree === 0 && e.push(n);
};
}
for (; e.length;) {
let n = e.pop();
t.push(n), n.in.reverse().forEach(r(n)), n.out.forEach(i(n));
}
return t.filter((e) => !e.merged).map((e) => n.pick(e, [
"vs",
"i",
"barycenter",
"weight"
]));
}
function a(e, t) {
let n = 0, r = 0;
e.weight && (n += e.barycenter * e.weight, r += e.weight), t.weight && (n += t.barycenter * t.weight, r += t.weight), e.vs = t.vs.concat(e.vs), e.barycenter = n / r, e.weight = r, e.i = Math.min(t.i, e.i), t.merged = !0;
}
}), mW = YU((e, t) => {
var n = $U();
t.exports = r;
function r(e, t) {
let r = n.partition(e, (e) => Object.hasOwn(e, "barycenter")), o = r.lhs, s = r.rhs.sort((e, t) => t.i - e.i), c = [], l = 0, u = 0, d = 0;
o.sort(a(!!t)), d = i(c, s, d), o.forEach((e) => {
d += e.vs.length, c.push(e.vs), l += e.barycenter * e.weight, u += e.weight, d = i(c, s, d);
});
let f = { vs: c.flat(!0) };
return u && (f.barycenter = l / u, f.weight = u), f;
}
function i(e, t, n) {
let r;
for (; t.length && (r = t[t.length - 1]).i <= n;) t.pop(), e.push(r.vs), n++;
return n;
}
function a(e) {
return (t, n) => t.barycenter < n.barycenter ? -1 : t.barycenter > n.barycenter ? 1 : e ? n.i - t.i : t.i - n.i;
}
}), hW = YU((e, t) => {
var n = fW(), r = pW(), i = mW();
t.exports = a;
function a(e, t, c, l) {
let u = e.children(t), d = e.node(t), f = d ? d.borderLeft : void 0, p = d ? d.borderRight : void 0, m = {};
f && (u = u.filter((e) => e !== f && e !== p));
let h = n(e, u);
h.forEach((t) => {
if (e.children(t.v).length) {
let n = a(e, t.v, c, l);
m[t.v] = n, Object.hasOwn(n, "barycenter") && s(t, n);
}
});
let g = r(h, c);
o(g, m);
let _ = i(g, l);
if (f && (_.vs = [
f,
_.vs,
p
].flat(!0), e.predecessors(f).length)) {
let t = e.node(e.predecessors(f)[0]), n = e.node(e.predecessors(p)[0]);
Object.hasOwn(_, "barycenter") || (_.barycenter = 0, _.weight = 0), _.barycenter = (_.barycenter * _.weight + t.order + n.order) / (_.weight + 2), _.weight += 2;
}
return _;
}
function o(e, t) {
e.forEach((e) => {
e.vs = e.vs.flatMap((e) => t[e] ? t[e].vs : e);
});
}
function s(e, t) {
e.barycenter === void 0 ? (e.barycenter = t.barycenter, e.weight = t.weight) : (e.barycenter = (e.barycenter * e.weight + t.barycenter * t.weight) / (e.weight + t.weight), e.weight += t.weight);
}
}), gW = YU((e, t) => {
var n = XU().Graph, r = $U();
t.exports = i;
function i(e, t, r, i) {
i ||= e.nodes();
let o = a(e), s = new n({ compound: !0 }).setGraph({ root: o }).setDefaultNodeLabel((t) => e.node(t));
return i.forEach((n) => {
let i = e.node(n), a = e.parent(n);
(i.rank === t || i.minRank <= t && t <= i.maxRank) && (s.setNode(n), s.setParent(n, a || o), e[r](n).forEach((t) => {
let r = t.v === n ? t.w : t.v, i = s.edge(r, n), a = i === void 0 ? 0 : i.weight;
s.setEdge(r, n, { weight: e.edge(t).weight + a });
}), Object.hasOwn(i, "minRank") && s.setNode(n, {
borderLeft: i.borderLeft[t],
borderRight: i.borderRight[t]
}));
}), s;
}
function a(e) {
for (var t; e.hasNode(t = r.uniqueId("_root")););
return t;
}
}), _W = YU((e, t) => {
t.exports = n;
function n(e, t, n) {
let r = {}, i;
n.forEach((n) => {
let a = e.parent(n), o, s;
for (; a;) {
if (o = e.parent(a), o ? (s = r[o], r[o] = a) : (s = i, i = a), s && s !== a) {
t.setEdge(s, a);
return;
}
a = o;
}
});
}
}), vW = YU((e, t) => {
var n = uW(), r = dW(), i = hW(), a = gW(), o = _W(), s = XU().Graph, c = $U();
t.exports = l;
function l(e, t = {}) {
if (typeof t.customOrder == "function") {
t.customOrder(e, l);
return;
}
let i = c.maxRank(e), a = u(e, c.range(1, i + 1), "inEdges"), o = u(e, c.range(i - 1, -1, -1), "outEdges"), s = n(e);
if (f(e, s), t.disableOptimalOrderHeuristic) return;
let p = Infinity, m, h = t.constraints || [];
for (let t = 0, n = 0; n < 4; ++t, ++n) {
d(t % 2 ? a : o, t % 4 >= 2, h), s = c.buildLayerMatrix(e);
let i = r(e, s);
i < p ? (n = 0, m = Object.assign({}, s), p = i) : i === p && (m = structuredClone(s));
}
f(e, m);
}
function u(e, t, n) {
let r = /* @__PURE__ */ new Map(), i = (e, t) => {
r.has(e) || r.set(e, []), r.get(e).push(t);
};
for (let t of e.nodes()) {
let n = e.node(t);
if (typeof n.rank == "number" && i(n.rank, t), typeof n.minRank == "number" && typeof n.maxRank == "number") for (let e = n.minRank; e <= n.maxRank; e++) e !== n.rank && i(e, t);
}
return t.map(function(t) {
return a(e, t, n, r.get(t) || []);
});
}
function d(e, t, n) {
let r = new s();
e.forEach(function(e) {
n.forEach((e) => r.setEdge(e.left, e.right));
let a = e.graph().root, s = i(e, a, r, t);
s.vs.forEach((t, n) => e.node(t).order = n), o(e, r, s.vs);
});
}
function f(e, t) {
Object.values(t).forEach((t) => t.forEach((t, n) => e.node(t).order = n));
}
}), yW = YU((e, t) => {
var n = XU().Graph, r = $U();
t.exports = {
positionX: h,
findType1Conflicts: i,
findType2Conflicts: a,
addConflict: s,
hasConflict: c,
verticalAlignment: l,
horizontalCompaction: u,
alignCoordinates: p,
findSmallestWidthAlignment: f,
balance: m
};
function i(e, t) {
let n = {};
function r(t, r) {
let i = 0, a = 0, c = t.length, l = r[r.length - 1];
return r.forEach((t, u) => {
let d = o(e, t), f = d ? e.node(d).order : c;
(d || t === l) && (r.slice(a, u + 1).forEach((t) => {
e.predecessors(t).forEach((r) => {
let a = e.node(r), o = a.order;
(o < i || f < o) && !(a.dummy && e.node(t).dummy) && s(n, r, t);
});
}), a = u + 1, i = f);
}), r;
}
return t.length && t.reduce(r), n;
}
function a(e, t) {
let n = {};
function i(t, i, a, o, c) {
let l;
r.range(i, a).forEach((r) => {
l = t[r], e.node(l).dummy && e.predecessors(l).forEach((t) => {
let r = e.node(t);
r.dummy && (r.order < o || r.order > c) && s(n, t, l);
});
});
}
function a(t, n) {
let r = -1, a, o = 0;
return n.forEach((s, c) => {
if (e.node(s).dummy === "border") {
let t = e.predecessors(s);
t.length && (a = e.node(t[0]).order, i(n, o, c, r, a), o = c, r = a);
}
i(n, o, n.length, a, t.length);
}), n;
}
return t.length && t.reduce(a), n;
}
function o(e, t) {
if (e.node(t).dummy) return e.predecessors(t).find((t) => e.node(t).dummy);
}
function s(e, t, n) {
if (t > n) {
let e = t;
t = n, n = e;
}
let r = e[t];
r || (e[t] = r = {}), r[n] = !0;
}
function c(e, t, n) {
if (t > n) {
let e = t;
t = n, n = e;
}
return !!e[t] && Object.hasOwn(e[t], n);
}
function l(e, t, n, r) {
let i = {}, a = {}, o = {};
return t.forEach((e) => {
e.forEach((e, t) => {
i[e] = e, a[e] = e, o[e] = t;
});
}), t.forEach((e) => {
let t = -1;
e.forEach((e) => {
let s = r(e);
if (s.length) {
s = s.sort((e, t) => o[e] - o[t]);
let r = (s.length - 1) / 2;
for (let l = Math.floor(r), u = Math.ceil(r); l <= u; ++l) {
let r = s[l];
a[e] === e && t < o[r] && !c(n, e, r) && (a[r] = e, a[e] = i[e] = i[r], t = o[r]);
}
}
});
}), {
root: i,
align: a
};
}
function u(e, t, n, r, i) {
let a = {}, o = d(e, t, n, i), s = i ? "borderLeft" : "borderRight";
function c(e, t) {
let n = o.nodes().slice(), r = {}, i = n.pop();
for (; i;) {
if (r[i]) e(i);
else {
r[i] = !0, n.push(i);
for (let e of t(i)) n.push(e);
}
i = n.pop();
}
}
function l(e) {
a[e] = o.inEdges(e).reduce((e, t) => Math.max(e, a[t.v] + o.edge(t)), 0);
}
function u(t) {
let n = o.outEdges(t).reduce((e, t) => Math.min(e, a[t.w] - o.edge(t)), Infinity), r = e.node(t);
n !== Infinity && r.borderType !== s && (a[t] = Math.max(a[t], n));
}
return c(l, o.predecessors.bind(o)), c(u, o.successors.bind(o)), Object.keys(r).forEach((e) => a[e] = a[n[e]]), a;
}
function d(e, t, r, i) {
let a = new n(), o = e.graph(), s = g(o.nodesep, o.edgesep, i);
return t.forEach((t) => {
let n;
t.forEach((t) => {
let i = r[t];
if (a.setNode(i), n) {
var o = r[n], c = a.edge(o, i);
a.setEdge(o, i, Math.max(s(e, t, n), c || 0));
}
n = t;
});
}), a;
}
function f(e, t) {
return Object.values(t).reduce((t, n) => {
let r = -Infinity, i = Infinity;
Object.entries(n).forEach(([t, n]) => {
let a = _(e, t) / 2;
r = Math.max(n + a, r), i = Math.min(n - a, i);
});
let a = r - i;
return a < t[0] && (t = [a, n]), t;
}, [Infinity, null])[1];
}
function p(e, t) {
let n = Object.values(t), i = r.applyWithChunking(Math.min, n), a = r.applyWithChunking(Math.max, n);
["u", "d"].forEach((n) => {
["l", "r"].forEach((o) => {
let s = n + o, c = e[s];
if (c === t) return;
let l = Object.values(c), u = i - r.applyWithChunking(Math.min, l);
o !== "l" && (u = a - r.applyWithChunking(Math.max, l)), u && (e[s] = r.mapValues(c, (e) => e + u));
});
});
}
function m(e, t) {
return r.mapValues(e.ul, (n, r) => {
if (t) return e[t.toLowerCase()][r];
{
let t = Object.values(e).map((e) => e[r]).sort((e, t) => e - t);
return (t[1] + t[2]) / 2;
}
});
}
function h(e) {
let t = r.buildLayerMatrix(e), n = Object.assign(i(e, t), a(e, t)), o = {}, s;
return ["u", "d"].forEach((i) => {
s = i === "u" ? t : Object.values(t).reverse(), ["l", "r"].forEach((t) => {
t === "r" && (s = s.map((e) => Object.values(e).reverse()));
let a = (i === "u" ? e.predecessors : e.successors).bind(e), c = l(e, s, n, a), d = u(e, s, c.root, c.align, t === "r");
t === "r" && (d = r.mapValues(d, (e) => -e)), o[i + t] = d;
});
}), p(o, f(e, o)), m(o, e.graph().align);
}
function g(e, t, n) {
return (r, i, a) => {
let o = r.node(i), s = r.node(a), c = 0, l;
if (c += o.width / 2, Object.hasOwn(o, "labelpos")) switch (o.labelpos.toLowerCase()) {
case "l":
l = -o.width / 2;
break;
case "r": l = o.width / 2;
}
if (l && (c += n ? l : -l), l = 0, c += (o.dummy ? t : e) / 2, c += (s.dummy ? t : e) / 2, c += s.width / 2, Object.hasOwn(s, "labelpos")) switch (s.labelpos.toLowerCase()) {
case "l":
l = s.width / 2;
break;
case "r": l = -s.width / 2;
}
return l && (c += n ? l : -l), l = 0, c;
};
}
function _(e, t) {
return e.node(t).width;
}
}), bW = YU((e, t) => {
var n = $U(), r = yW().positionX;
t.exports = i;
function i(e) {
e = n.asNonCompoundGraph(e), a(e), Object.entries(r(e)).forEach(([t, n]) => e.node(t).x = n);
}
function a(e) {
let t = n.buildLayerMatrix(e), r = e.graph().ranksep, i = e.graph().rankalign, a = 0;
t.forEach((t) => {
let n = t.reduce((t, n) => {
let r = e.node(n).height;
return t > r ? t : r;
}, 0);
t.forEach((t) => {
let r = e.node(t);
r.y = i === "top" ? a + r.height / 2 : i === "bottom" ? a + n - r.height / 2 : a + n / 2;
}), a += n + r;
});
}
}), xW = YU((e, t) => {
var n = eW(), r = tW(), i = aW(), a = $U().normalizeRanks, o = oW(), s = $U().removeEmptyRanks, c = sW(), l = cW(), u = lW(), d = vW(), f = bW(), p = $U(), m = XU().Graph;
t.exports = h;
function h(e, t = {}) {
let n = t.debugTiming ? p.time : p.notime;
return n("layout", () => {
let r = n(" buildLayoutGraph", () => E(e));
return n(" runLayout", () => g(r, n, t)), n(" updateInputGraph", () => _(e, r)), r;
});
}
function g(e, t, m) {
t(" makeSpaceForEdgeLabels", () => D(e)), t(" removeSelfEdges", () => N(e)), t(" acyclic", () => n.run(e)), t(" nestingGraph.run", () => c.run(e)), t(" rank", () => i(p.asNonCompoundGraph(e))), t(" injectEdgeLabelProxies", () => O(e)), t(" removeEmptyRanks", () => s(e)), t(" nestingGraph.cleanup", () => c.cleanup(e)), t(" normalizeRanks", () => a(e)), t(" assignRankMinMax", () => k(e)), t(" removeEdgeLabelProxies", () => A(e)), t(" normalize.run", () => r.run(e)), t(" parentDummyChains", () => o(e)), t(" addBorderSegments", () => l(e)), t(" order", () => d(e, m)), t(" insertSelfEdges", () => re(e)), t(" adjustCoordinateSystem", () => u.adjust(e)), t(" position", () => f(e)), t(" positionSelfEdges", () => ie(e)), t(" removeBorderNodes", () => ne(e)), t(" normalize.undo", () => r.undo(e)), t(" fixupEdgeLabelCoords", () => te(e)), t(" undoCoordinateSystem", () => u.undo(e)), t(" translateGraph", () => ee(e)), t(" assignNodeIntersects", () => j(e)), t(" reversePoints", () => M(e)), t(" acyclic.undo", () => n.undo(e));
}
function _(e, t) {
e.nodes().forEach((n) => {
let r = e.node(n), i = t.node(n);
r && (r.x = i.x, r.y = i.y, r.order = i.order, r.rank = i.rank, t.children(n).length && (r.width = i.width, r.height = i.height));
}), e.edges().forEach((n) => {
let r = e.edge(n), i = t.edge(n);
r.points = i.points, Object.hasOwn(i, "x") && (r.x = i.x, r.y = i.y);
}), e.graph().width = t.graph().width, e.graph().height = t.graph().height;
}
var v = [
"nodesep",
"edgesep",
"ranksep",
"marginx",
"marginy"
], y = {
ranksep: 50,
edgesep: 20,
nodesep: 50,
rankdir: "tb",
rankalign: "center"
}, b = [
"acyclicer",
"ranker",
"rankdir",
"align",
"rankalign"
], x = [
"width",
"height",
"rank"
], S = {
width: 0,
height: 0
}, C = [
"minlen",
"weight",
"width",
"height",
"labeloffset"
], w = {
minlen: 1,
weight: 1,
width: 0,
height: 0,
labeloffset: 10,
labelpos: "r"
}, T = ["labelpos"];
function E(e) {
let t = new m({
multigraph: !0,
compound: !0
}), n = oe(e.graph());
return t.setGraph(Object.assign({}, y, ae(n, v), p.pick(n, b))), e.nodes().forEach((n) => {
let r = ae(oe(e.node(n)), x);
Object.keys(S).forEach((e) => {
r[e] === void 0 && (r[e] = S[e]);
}), t.setNode(n, r), t.setParent(n, e.parent(n));
}), e.edges().forEach((n) => {
let r = oe(e.edge(n));
t.setEdge(n, Object.assign({}, w, ae(r, C), p.pick(r, T)));
}), t;
}
function D(e) {
let t = e.graph();
t.ranksep /= 2, e.edges().forEach((n) => {
let r = e.edge(n);
r.minlen *= 2, r.labelpos.toLowerCase() !== "c" && (t.rankdir === "TB" || t.rankdir === "BT" ? r.width += r.labeloffset : r.height += r.labeloffset);
});
}
function O(e) {
e.edges().forEach((t) => {
let n = e.edge(t);
if (n.width && n.height) {
let n = e.node(t.v), r = {
rank: (e.node(t.w).rank - n.rank) / 2 + n.rank,
e: t
};
p.addDummyNode(e, "edge-proxy", r, "_ep");
}
});
}
function k(e) {
let t = 0;
e.nodes().forEach((n) => {
let r = e.node(n);
r.borderTop && (r.minRank = e.node(r.borderTop).rank, r.maxRank = e.node(r.borderBottom).rank, t = Math.max(t, r.maxRank));
}), e.graph().maxRank = t;
}
function A(e) {
e.nodes().forEach((t) => {
let n = e.node(t);
n.dummy === "edge-proxy" && (e.edge(n.e).labelRank = n.rank, e.removeNode(t));
});
}
function ee(e) {
let t = Infinity, n = 0, r = Infinity, i = 0, a = e.graph(), o = a.marginx || 0, s = a.marginy || 0;
function c(e) {
let a = e.x, o = e.y, s = e.width, c = e.height;
t = Math.min(t, a - s / 2), n = Math.max(n, a + s / 2), r = Math.min(r, o - c / 2), i = Math.max(i, o + c / 2);
}
e.nodes().forEach((t) => c(e.node(t))), e.edges().forEach((t) => {
let n = e.edge(t);
Object.hasOwn(n, "x") && c(n);
}), t -= o, r -= s, e.nodes().forEach((n) => {
let i = e.node(n);
i.x -= t, i.y -= r;
}), e.edges().forEach((n) => {
let i = e.edge(n);
i.points.forEach((e) => {
e.x -= t, e.y -= r;
}), Object.hasOwn(i, "x") && (i.x -= t), Object.hasOwn(i, "y") && (i.y -= r);
}), a.width = n - t + o, a.height = i - r + s;
}
function j(e) {
e.edges().forEach((t) => {
let n = e.edge(t), r = e.node(t.v), i = e.node(t.w), a, o;
n.points ? (a = n.points[0], o = n.points[n.points.length - 1]) : (n.points = [], a = i, o = r), n.points.unshift(p.intersectRect(r, a)), n.points.push(p.intersectRect(i, o));
});
}
function te(e) {
e.edges().forEach((t) => {
let n = e.edge(t);
if (Object.hasOwn(n, "x")) switch ((n.labelpos === "l" || n.labelpos === "r") && (n.width -= n.labeloffset), n.labelpos) {
case "l":
n.x -= n.width / 2 + n.labeloffset;
break;
case "r": n.x += n.width / 2 + n.labeloffset;
}
});
}
function M(e) {
e.edges().forEach((t) => {
let n = e.edge(t);
n.reversed && n.points.reverse();
});
}
function ne(e) {
e.nodes().forEach((t) => {
if (e.children(t).length) {
let n = e.node(t), r = e.node(n.borderTop), i = e.node(n.borderBottom), a = e.node(n.borderLeft[n.borderLeft.length - 1]), o = e.node(n.borderRight[n.borderRight.length - 1]);
n.width = Math.abs(o.x - a.x), n.height = Math.abs(i.y - r.y), n.x = a.x + n.width / 2, n.y = r.y + n.height / 2;
}
}), e.nodes().forEach((t) => {
e.node(t).dummy === "border" && e.removeNode(t);
});
}
function N(e) {
e.edges().forEach((t) => {
if (t.v === t.w) {
var n = e.node(t.v);
n.selfEdges ||= [], n.selfEdges.push({
e: t,
label: e.edge(t)
}), e.removeEdge(t);
}
});
}
function re(e) {
p.buildLayerMatrix(e).forEach((t) => {
var n = 0;
t.forEach((t, r) => {
var i = e.node(t);
i.order = r + n, (i.selfEdges || []).forEach((t) => {
p.addDummyNode(e, "selfedge", {
width: t.label.width,
height: t.label.height,
rank: i.rank,
order: r + ++n,
e: t.e,
label: t.label
}, "_se");
}), delete i.selfEdges;
});
});
}
function ie(e) {
e.nodes().forEach((t) => {
var n = e.node(t);
if (n.dummy === "selfedge") {
var r = e.node(n.e.v), i = r.x + r.width / 2, a = r.y, o = n.x - i, s = r.height / 2;
e.setEdge(n.e, n.label), e.removeNode(t), n.label.points = [
{
x: i + 2 * o / 3,
y: a - s
},
{
x: i + 5 * o / 6,
y: a - s
},
{
x: i + o,
y: a
},
{
x: i + 5 * o / 6,
y: a + s
},
{
x: i + 2 * o / 3,
y: a + s
}
], n.label.x = n.x, n.label.y = n.y;
}
});
}
function ae(e, t) {
return p.mapValues(p.pick(e, t), Number);
}
function oe(e) {
var t = {};
return e && Object.entries(e).forEach(([e, n]) => {
typeof e == "string" && (e = e.toLowerCase()), t[e] = n;
}), t;
}
}), SW = YU((e, t) => {
var n = $U(), r = XU().Graph;
t.exports = { debugOrdering: i };
function i(e) {
let t = n.buildLayerMatrix(e), i = new r({
compound: !0,
multigraph: !0
}).setGraph({});
return e.nodes().forEach((t) => {
i.setNode(t, { label: t }), i.setParent(t, "layer" + e.node(t).rank);
}), e.edges().forEach((e) => i.setEdge(e.v, e.w, {}, e.name)), t.forEach((e, t) => {
let n = "layer" + t;
i.setNode(n, { rank: "same" }), e.reduce((e, t) => (i.setEdge(e, t, { style: "invis" }), t));
}), i;
}
}), CW = YU((e, t) => {
t.exports = "2.0.4";
}), wW = YU((e, t) => {
t.exports = {
graphlib: XU(),
layout: xW(),
debug: SW(),
util: {
time: $U().time,
notime: $U().notime
},
version: CW()
};
})();
// src/components/flow.tsx
function TW(e, t, n = .5) {
let r = e.x + (t.x - e.x) * n;
return [
e,
{
x: r,
y: e.y
},
{
x: r,
y: t.y
},
t
];
}
function EW([e, t, n, r], i = 12) {
let a = Math.min(i, Math.abs(t.x - e.x), Math.abs(n.y - t.y)), o = Math.min(i, Math.abs(n.y - t.y), Math.abs(r.x - n.x)), s = {
x: t.x - Math.sign(t.x - e.x) * a,
y: t.y
}, c = {
x: t.x,
y: t.y + Math.sign(n.y - t.y) * a
}, l = {
x: n.x,
y: n.y - Math.sign(n.y - t.y) * o
}, u = {
x: n.x + Math.sign(r.x - n.x) * o,
y: n.y
};
return [
`M ${e.x} ${e.y}`,
`L ${s.x} ${s.y}`,
`Q ${t.x} ${t.y} ${c.x} ${c.y}`,
`L ${l.x} ${l.y}`,
`Q ${n.x} ${n.y} ${u.x} ${u.y}`,
`L ${r.x} ${r.y}`
].join(" ");
}
var DW = .2, OW = 3, kW = .02, AW = (e) => {
let [t, n] = H(!1), [r, i] = H(!1), a = V(null), o = V(null), [s, c] = H({
x: 0,
y: 0,
scale: 1
}), [l, u] = H({}), [d, f, p, m] = B(() => {
if (Object.keys(l).length === 0) return [
e.nodes.map((e) => ({
...e,
x: 0,
y: 0,
width: 0,
height: 0,
isCluster: !1
})),
[],
{
width: 0,
height: 0
},
null
];
let t = new wW.graphlib.Graph({ compound: !0 }).setGraph({
rankdir: "LR",
align: "UL",
ranksep: e.gapX ?? 48,
nodesep: e.gapY ?? 48,
marginx: e.margin ?? 32,
marginy: e.margin ?? 64,
graph: "tight-tree"
}).setDefaultEdgeLabel(() => ({}));
for (let n of e.nodes) t.setNode(n.id, {
width: l[n.id]?.width,
height: l[n.id]?.height
});
for (let n of e.nodes) if (n.next) for (let e of n.next) t.setEdge(n.id, e);
wW.layout(t);
let n = t.graph();
return [
e.nodes.map((e) => {
let n = t.node(e.id);
return {
...e,
x: n?.x ?? 0,
y: n?.y ?? 0,
width: n?.width ?? 0,
height: n?.height ?? 0
};
}),
t.edges().map((e) => ({
from: e.v,
to: e.w
})),
{
width: n.width,
height: n.height
},
t
];
}, [
l,
e.nodes,
e.margin,
e.gapX
]), h = V(e.onGraphLayout);
h.current = e.onGraphLayout, z(() => {
m && h.current?.(m);
}, [m]);
let g = R((t) => {
if (!e.disableGestures && (t.ctrlKey || t.metaKey)) {
let e = t.currentTarget.getBoundingClientRect(), n = t.clientX - e.left, r = t.clientY - e.top;
c((e) => {
let i = Math.exp(-t.deltaY * kW), a = Math.max(DW, Math.min(OW, e.scale * i)), o = a / e.scale;
return {
x: n - (n - e.x) * o,
y: r - (r - e.y) * o,
scale: a
};
});
}
}, [e.disableGestures]), _ = R(() => {
i(!1), o.current = null;
}, []), v = R((t) => {
if (!a.current || !t.nativeEvent.composedPath().includes(a.current) || e.disableGestures) return;
t.preventDefault(), i(!0), o.current = {
x: t.clientX,
y: t.clientY
};
function r() {
_(), n(!1);
}
return document.addEventListener("mouseup", r), () => {
document.removeEventListener("mouseup", r);
};
}, [e.disableGestures]), y = R((t) => {
if (e.disableGestures || !r || !o.current) return;
let n = t.clientX - o.current.x, i = t.clientY - o.current.y;
o.current = {
x: t.clientX,
y: t.clientY
}, c((e) => ({
...e,
x: e.x + n,
y: e.y + i
}));
}, [r, e.disableGestures]), b = R(() => {
let { width: e, height: t } = p, n = a.current;
if (!n) return;
let { width: r, height: i } = n.getBoundingClientRect();
console.log({
container: n,
containerWidth: r,
containerHeight: i,
width: e,
height: t
});
let o = Math.min(OW, Math.max(DW, Math.min(r / e, i / t)));
c((n) => ({
...n,
scale: o,
x: r / 2 - e * o / 2,
y: i / 2 - t * o / 2
}));
}, [p]);
return z(() => {
if (e.disableGestures || !a.current) return;
let t = a.current, n = (e) => {
e.preventDefault();
};
return t.addEventListener("gesturestart", n, { passive: !1 }), t.addEventListener("gesturechange", n, { passive: !1 }), t.addEventListener("gestureend", n, { passive: !1 }), t.addEventListener("wheel", n, { passive: !1 }), () => {
t.removeEventListener("gesturestart", n), t.removeEventListener("gesturechange", n), t.removeEventListener("gestureend", n), t.removeEventListener("wheel", n);
};
}, [e.disableGestures]), z(() => {
if (e.disableGestures) return;
let n = (e) => {
t && (e.metaKey || e.ctrlKey) && [
"+",
"-",
"=",
"0"
].includes(e.key) && e.preventDefault();
};
return window.addEventListener("keydown", n), () => {
window.removeEventListener("keydown", n);
};
}, [t, e.disableGestures]), /* @__PURE__ */ K("div", {
ref: a,
className: Y("relative h-full w-full touch-none bg-background", {
"cursor-grab": !e.disableGestures && !r,
"cursor-grabbing": !e.disableGestures && r
}, e.containerClassName),
onWheel: g,
onMouseDown: v,
onMouseMove: y,
onMouseLeave: () => {
_(), n(!1);
},
onMouseEnter: () => n(!0),
children: [
!e.disableBackground && /* @__PURE__ */ G("div", { className: "absolute inset-0 h-full w-full bg-[radial-gradient(hsl(var(--border))_1px,transparent_1px)] bg-size-[16px_16px] opacity-50" }),
/* @__PURE__ */ K("div", {
className: Y("relative", e.className),
style: {
width: p.width,
height: p.height,
transform: `translate(${s.x}px, ${s.y}px) scale(${s.scale})`,
transformOrigin: "0 0"
},
children: [d.map((e) => {
let t = !!e.next?.length, n = d.some((t) => t.next?.includes(e.id)), r = !!(e.content && e.content({ node: e })), i = !!e.children?.length;
return /* @__PURE__ */ K("div", {
ref: (t) => {
t && !l[e.id] && u((n) => ({
...n,
[e.id]: {
width: t.clientWidth,
height: t.clientHeight
}
}));
},
className: Y("transition-color absolute flex grid min-w-72 grid-cols-1 grid-rows-1 justify-start gap-2 rounded-lg border bg-card p-2 text-sm shadow-sm", {
"w-72": !i,
"grid-rows-[auto_1fr]": r || i,
"grid-rows-[auto_auto_1fr]": r && i,
"rounded-xl border-dashed bg-transparent shadow-none": i
}),
style: {
left: e.x - e.width / 2,
top: e.y - e.height / 2,
minWidth: Math.min(Math.max(e.width, 256), e.maxWidth ?? Infinity),
minHeight: e.height,
maxWidth: e.maxWidth
},
children: [
/* @__PURE__ */ K("div", {
className: "flex w-full items-center gap-2",
children: [
e.icon ? e.icon({ className: "size-4 text-secondary-foreground" }) : null,
/* @__PURE__ */ G("span", {
className: "font-medium",
children: e.title
}),
/* @__PURE__ */ G("div", {
className: "ml-auto",
children: e.headerSuffix ? e.headerSuffix({ node: e }) : null
})
]
}),
/* @__PURE__ */ G("div", {
className: "w-full rounded-sm bg-secondary p-2 empty:hidden",
children: e.content ? e.content({ node: e }) : null
}),
!!e.children?.length && /* @__PURE__ */ G("div", {
className: "size-full rounded-sm",
children: /* @__PURE__ */ G(AW, {
nodes: e.children,
margin: 0,
gapX: 24,
gapY: 16,
onGraphLayout: (t) => {
let { width: n, height: r } = t.graph(), i = {
width: n + 20,
height: e.height + r + 4
};
u((t) => {
let n = t[e.id];
return n?.width === i.width && n?.height === i.height ? t : {
...t,
[e.id]: i
};
});
},
disableBackground: !0,
disableGestures: !0,
className: "bg-transparent",
isChild: !0
})
}),
t && /* @__PURE__ */ G("div", { className: "absolute top-1/2 left-full size-2 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-border bg-background transition-all" }),
n && /* @__PURE__ */ G("div", { className: "absolute top-1/2 left-0 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-border bg-background transition-all" })
]
}, e.id);
}), /* @__PURE__ */ G("svg", {
className: "pointer-events-none absolute top-0 left-0 -z-10",
style: {
width: p.width,
height: p.height
},
children: f.filter(Boolean).map((e) => {
let t = d.find((t) => t.id === e.from), n = d.find((t) => t.id === e.to);
return !t || !n ? null : /* @__PURE__ */ G("path", {
className: "animate-dash transition-color animate-[dash_500ms_linear_infinite] fill-none stroke-border stroke-2 [stroke-dasharray:12_8]",
d: EW(TW({
x: t.x + t.width / 2,
y: t.y
}, {
x: n.x - n.width / 2,
y: n.y
}), 4)
}, e.from + e.to);
})
})]
}),
!e.isChild && /* @__PURE__ */ G("div", {
className: "absolute top-4 left-4 z-10 flex items-center gap-2",
children: /* @__PURE__ */ K("div", {
className: "grid w-96 grid-cols-[1fr_auto_auto] items-center gap-2 rounded-lg border bg-card p-2 shadow-sm",
children: [
/* @__PURE__ */ K("div", {
className: "flex flex-1 items-center gap-2",
children: [
/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "icon-sm",
onClick: () => c((e) => ({
...e,
scale: e.scale - kW
})),
children: /* @__PURE__ */ G(Nr, { className: "size-4" })
})
}), /* @__PURE__ */ G(Zj, { children: "Zoom out" })] }),
/* @__PURE__ */ G(JU, {
value: [s.scale],
onValueChange: (e) => c((t) => ({
...t,
scale: e[0]
})),
min: DW,
max: OW,
step: kW
}),
/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "icon-sm",
onClick: () => c((e) => ({
...e,
scale: e.scale + kW
})),
children: /* @__PURE__ */ G(Mr, { className: "size-4" })
})
}), /* @__PURE__ */ G(Zj, { children: "Zoom in" })] })
]
}),
/* @__PURE__ */ G(AO, {
orientation: "vertical",
className: "h-6!"
}),
/* @__PURE__ */ K(Z, {
variant: "ghost",
size: "sm",
onClick: b,
children: [/* @__PURE__ */ G(sr, { className: "size-4" }), "Fit in view"]
})
]
})
})
]
});
};
// src/lib/query-plan/utils.tsx
function jW(e) {
return " ".repeat(e);
}
function MW(e) {
return e ? Array.isArray(e) ? e : Array.from(e) : [];
}
function NW(e) {
return !!e && typeof e == "object" && !Array.isArray(e);
}
function PW(e) {
return e === "@" ? "@" : NW(e) && "Field" in e ? String(e.Field) : NW(e) && "TypeCondition" in e ? `|[${MW(e.TypeCondition).join("|")}]` : (0, co.isArray)(e) ? FW(e) : String(e);
}
function FW(e) {
let t = "";
for (let n = 0; n < e.length; n++) {
let r = e[n], i = e[n + 1];
t += PW(r), i !== void 0 && (NW(i) && "TypeCondition" in i || (t += "."));
}
return t;
}
function IW(e, t = 0) {
if (!e?.length) return "";
let n = [];
for (let r of e) if (r.kind === "InlineFragment") {
n.push(`${jW(t)}... on ${r.typeCondition} {`);
for (let e of r.selections ?? []) n.push(`${jW(t + 1)}${e.name}`);
n.push(`${jW(t)}}`);
}
return n.join("\n");
}
function LW(e) {
let t = [];
return t.push("QueryPlan {"), e.node ? t.push(RW(e.node, 1)) : t.push(`${jW(1)}None`), t.push("}"), t.join("\n");
}
function RW(e, t = 0) {
switch (e.kind) {
case "Fetch": return zW(e, t);
case "BatchFetch": return BW(e, t);
case "Flatten": return VW(e, t);
case "Sequence": return HW(e, t);
case "Parallel": return UW(e, t);
case "Condition": return WW(e, t);
case "Subscription": return GW(e, t);
case "Defer": return KW(e, t);
default: return `${jW(t)}<UnknownNode kind="${e.kind ?? "unknown"}">`;
}
}
function zW(e, t = 0) {
let n = [];
if (n.push(`${jW(t)}Fetch(service: "${e.serviceName}") {`), e.requires) {
n.push(`${jW(t + 1)}{`);
let r = IW(e.requires, t + 2);
r && n.push(r), n.push(`${jW(t + 1)}} =>`);
}
let r = e.operation.includes("_entities") ? 2 : 1;
try {
n.push(`${jW(t + 1)}{`, qW(O(De(e.operation)).split("\n").slice(r, r * -1).join("\n"), t + 2 - r), `${jW(t + 1)}}`);
} catch {
n.push(`${jW(t + 1)}${e.operation}`);
}
return n.push(`${jW(t)}}`), n.join("\n");
}
function BW(e, t = 0) {
let n = [];
n.push(`${jW(t)}BatchFetch(service: "${e.serviceName}") {`);
for (let r = 0; r < e.entityBatch.aliases.length; r++) {
let i = e.entityBatch.aliases[r];
n.push(`${jW(t + 1)}${i.alias} {`, `${jW(t + 2)}paths: [`, ...i.paths.map((e) => `${jW(t + 3)}"${FW(e)}"`), `${jW(t + 2)}]`);
let a = IW(i.requires, t + 3);
a && n.push(`${jW(t + 2)}{`, a, `${jW(t + 2)}}`), r < e.entityBatch.aliases.length - 1 && n.push(`${jW(t + 1)}}`);
}
try {
n.push(`${jW(t + 1)}}`, `${jW(t + 1)}{`, qW(O(De(e.operation)).split("\n").slice(1, -1).join("\n"), t + 1), `${jW(t + 1)}}`, `${jW(t)}}`);
} catch {
n.push(`${jW(t + 1)}${e.operation}`);
}
return n.join("\n");
}
function VW(e, t = 0) {
let n = [];
return n.push(`${jW(t)}Flatten(path: "${FW(e.path)}") {`, RW(e.node, t + 1), `${jW(t)}}`), n.join("\n");
}
function HW(e, t = 0) {
let n = [];
n.push(`${jW(t)}Sequence {`);
for (let r of e.nodes) n.push(RW(r, t + 1));
return n.push(`${jW(t)}}`), n.join("\n");
}
function UW(e, t = 0) {
let n = [];
n.push(`${jW(t)}Parallel {`);
for (let r of e.nodes) n.push(RW(r, t + 1));
return n.push(`${jW(t)}}`), n.join("\n");
}
function WW(e, t = 0) {
let n = [];
return e.ifClause && !e.elseClause ? (n.push(`${jW(t)}Include(if: $${e.condition}) {`, RW(e.ifClause, t + 1), `${jW(t)}}`), n.join("\n")) : !e.ifClause && e.elseClause ? (n.push(`${jW(t)}Skip(if: $${e.condition}) {`, RW(e.elseClause, t + 1), `${jW(t)}}`), n.join("\n")) : e.ifClause && e.elseClause ? (n.push(`${jW(t)}Condition(if: $${e.condition}) {`, `${jW(t + 1)}if {`, RW(e.ifClause, t + 2), `${jW(t + 1)}}`, `${jW(t + 1)}else {`, RW(e.elseClause, t + 2), `${jW(t + 1)}}`, `${jW(t)}}`), n.join("\n")) : `${jW(t)}Condition(if: $${e.condition}) {}`;
}
function GW(e, t = 0) {
let n = [];
return n.push(`${jW(t)}Subscription {`, `${jW(t + 1)}primary {`, RW(e.primary, t + 2), `${jW(t + 1)}}`, `${jW(t)}}`), n.join("\n");
}
function KW(e, t = 0) {
let n = [];
if (n.push(`${jW(t)}Defer {`, `${jW(t + 1)}primary {`), e.primary.subselection && n.push(`${jW(t + 2)}subselection: ${JSON.stringify(e.primary.subselection)}`), e.primary.node && n.push(RW(e.primary.node, t + 2)), n.push(`${jW(t + 1)}}`), e.deferred.length > 0) {
n.push(`${jW(t + 1)}deferred {`);
for (let r of e.deferred) n.push(`${jW(t + 2)}item {`), r.label && n.push(`${jW(t + 3)}label: ${JSON.stringify(r.label)}`), n.push(`${jW(t + 3)}queryPath: [${r.queryPath.join(", ")}]`), r.subselection && n.push(`${jW(t + 3)}subselection: ${JSON.stringify(r.subselection)}`), r.depends.length && n.push(`${jW(t + 3)}depends: [${r.depends.map((e) => e.deferLabel ? `${e.id}:${e.deferLabel}` : e.id).join(", ")}]`), r.node && n.push(RW(r.node, t + 3)), n.push(`${jW(t + 2)}}`);
n.push(`${jW(t + 1)}}`);
}
return n.push(`${jW(t)}}`), n.join("\n");
}
function qW(e, t = 0) {
return e.split("\n").map((e) => `${jW(t)}${e}`).join("\n");
}
function JW(e, t, n, r, i) {
let a = {
id: Xr(),
title: e.kind,
kind: e.kind
};
switch (e.kind) {
case "Fetch":
a.content = () => {
let t = e.requires?.[0]?.typeCondition;
return /* @__PURE__ */ K("div", {
className: "flex flex-col gap-2",
children: [
r,
/* @__PURE__ */ K("div", {
className: "grid grid-cols-[1fr_auto] items-center gap-8 overflow-hidden font-mono text-xs",
children: [/* @__PURE__ */ G("span", {
className: "font-medium",
children: "Service"
}), /* @__PURE__ */ G("span", {
className: "overflow-hidden text-ellipsis whitespace-nowrap text-secondary-foreground",
children: e.serviceName
})]
}),
t && /* @__PURE__ */ K("div", {
className: "grid grid-cols-[1fr_auto] items-center gap-8 overflow-hidden font-mono text-xs",
children: [/* @__PURE__ */ G("span", {
className: "font-medium",
children: "Entity"
}), /* @__PURE__ */ G("span", {
className: "overflow-hidden text-ellipsis whitespace-nowrap text-secondary-foreground",
children: t
})]
}),
/* @__PURE__ */ G("div", {
className: "border-t border-dashed",
children: /* @__PURE__ */ K(xS, { children: [/* @__PURE__ */ G(SS, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
size: "sm",
variant: "link",
className: "h-auto w-full pt-2 text-xs",
children: "Show details"
})
}), /* @__PURE__ */ K(ES, {
className: "h-full max-h-150 w-full max-w-2xl!",
children: [/* @__PURE__ */ G(DS, { children: /* @__PURE__ */ G(kS, { children: "Fetch" }) }), /* @__PURE__ */ G("div", {
className: "h-full overflow-hidden rounded-sm border",
children: /* @__PURE__ */ G(QR, {
value: i ?? zW(e),
language: "graphql"
})
})]
})] })
})
]
});
};
break;
case "BatchFetch":
a.headerSuffix = () => {
let t = e.entityBatch.aliases.reduce((e, t) => e + t.paths.length, 0);
return /* @__PURE__ */ K("div", {
className: "flex items-center gap-1 rounded-md bg-muted p-0.5 pl-1 font-mono text-xs leading-none",
children: ["Total paths:", /* @__PURE__ */ G("div", {
className: "rounded-sm border border-primary bg-primary/10 px-1 text-xs leading-none font-medium text-primary",
children: t
})]
});
}, a.content = () => /* @__PURE__ */ K("div", {
className: "flex flex-col gap-2 *:border-b *:border-dashed *:border-border *:pb-2 *:last:border-b-0 *:last:pb-0",
children: [
/* @__PURE__ */ K("div", {
className: "grid grid-cols-[1fr_auto] items-center gap-8 overflow-hidden font-mono text-xs",
children: [/* @__PURE__ */ G("span", {
className: "font-medium",
children: "Service"
}), /* @__PURE__ */ G("span", {
className: "overflow-hidden text-ellipsis whitespace-nowrap text-secondary-foreground",
children: e.serviceName
})]
}),
e.entityBatch.aliases.map((e) => /* @__PURE__ */ K("div", {
className: "grid gap-2",
children: [/* @__PURE__ */ K("div", {
className: "grid grid-cols-[1fr_auto] items-center gap-8 overflow-hidden font-mono text-xs",
children: [/* @__PURE__ */ G("span", {
className: "font-medium",
children: "Path"
}), e.paths.length > 1 ? /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G("span", {
className: "cursor-auto overflow-hidden text-ellipsis whitespace-nowrap text-secondary-foreground",
children: /* @__PURE__ */ G("div", {
className: "rounded-sm border bg-card px-1 text-xs font-medium",
children: e.paths.length
})
})
}), /* @__PURE__ */ G(Zj, {
className: "font-mono whitespace-pre-wrap",
children: e.paths.map((e) => FW(e)).join(",\n")
})] }) : /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G("span", {
className: "cursor-auto overflow-hidden text-ellipsis whitespace-nowrap text-secondary-foreground",
children: FW(e.paths[0])
})
}), /* @__PURE__ */ G(Zj, { children: FW(e.paths[0]) })] })]
}), /* @__PURE__ */ K("div", {
className: "grid grid-cols-[1fr_auto] items-center gap-8 overflow-hidden font-mono text-xs",
children: [/* @__PURE__ */ G("span", {
className: "font-medium",
children: "Enitity"
}), /* @__PURE__ */ G("span", {
className: "overflow-hidden text-ellipsis whitespace-nowrap text-secondary-foreground",
children: e.requires[0].typeCondition
})]
})]
}, e.alias)),
/* @__PURE__ */ G("div", {
className: "-mt-2",
children: /* @__PURE__ */ K(xS, { children: [/* @__PURE__ */ G(SS, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
size: "sm",
variant: "link",
className: "h-auto w-full pt-2 text-xs",
children: "Show details"
})
}), /* @__PURE__ */ K(ES, {
className: "h-full max-h-150 w-full max-w-2xl!",
onMouseDown: (e) => {
e.preventDefault(), e.stopPropagation();
},
children: [/* @__PURE__ */ G(DS, { children: /* @__PURE__ */ G(kS, { children: "BatchFetch" }) }), /* @__PURE__ */ G("div", {
className: "h-full overflow-hidden rounded-sm border",
children: /* @__PURE__ */ G(QR, {
value: BW(e),
language: "graphql"
})
})]
})] })
})
]
});
break;
case "Flatten":
a = JW(e.node, a, n, /* @__PURE__ */ K(Br, { children: [r, /* @__PURE__ */ K("div", {
className: "grid grid-cols-[1fr_auto] items-center gap-8 overflow-hidden font-mono text-xs",
children: [/* @__PURE__ */ G("span", {
className: "font-medium",
children: "Path"
}), /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G("span", {
className: "cursor-auto overflow-hidden text-ellipsis whitespace-nowrap text-secondary-foreground",
children: FW(e.path)
})
}), /* @__PURE__ */ G(Zj, { children: FW(e.path) })] })]
})] }), i ?? VW(e));
break;
case "Sequence": {
a = null;
let t = null;
for (let o = 0; o < e.nodes.length; o++) {
let s = e.nodes[o], c = JW(s, t, o === 0 ? [] : n, r, i);
o === 0 && (a = c), t && (t.next = [c.id]), t = c;
}
break;
}
case "Parallel":
a.children = [];
for (let t of e.nodes) JW(t, a, a.children, r, i);
break;
case "Condition":
e.ifClause ? a = JW(e.ifClause, a, n, /* @__PURE__ */ K("div", {
className: "grid grid-cols-[1fr_auto] items-center gap-8 overflow-hidden font-mono text-xs",
children: [/* @__PURE__ */ G("span", {
className: "font-medium",
children: "Include"
}), /* @__PURE__ */ K("span", {
className: "overflow-hidden text-ellipsis whitespace-nowrap text-secondary-foreground",
children: ["if: $", e.condition]
})]
}), WW(e)) : e.elseClause && (a = JW(e.elseClause, a, n, /* @__PURE__ */ K("div", {
className: "grid grid-cols-[1fr_auto] items-center gap-8 overflow-hidden font-mono text-xs",
children: [/* @__PURE__ */ G("span", {
className: "font-medium",
children: "Skip"
}), /* @__PURE__ */ K("span", {
className: "overflow-hidden text-ellipsis whitespace-nowrap text-secondary-foreground",
children: ["if: $", e.condition]
})]
}), WW(e)));
break;
case "Subscription":
JW(e.primary, a, n, r, i);
break;
case "Defer":
e.primary.node && JW(e.primary.node, a, n, r, i);
for (let t of e.deferred) t.node && JW(t.node, a, n, r, i);
}
return t && a && (t.next = [...t.next ?? [], a.id]), a && (a.icon = YW(a.kind), n.push(a)), a;
}
var YW = (e) => (t) => {
switch (e) {
case "Root": return /* @__PURE__ */ G(iM, {
...t,
className: Y(t.className, "size-6 min-w-6 text-pink-500")
});
case "Fetch": return /* @__PURE__ */ G(kn, { ...t });
case "BatchFetch": return /* @__PURE__ */ G(jn, { ...t });
case "Flatten": return /* @__PURE__ */ G(nr, { ...t });
case "Sequence": return /* @__PURE__ */ G(rr, { ...t });
case "Parallel": return /* @__PURE__ */ G(ur, { ...t });
case "Condition": return /* @__PURE__ */ G(Zn, {
...t,
className: Y("rotate-90", t.className)
});
case "Subscription": return /* @__PURE__ */ G(Ar, { ...t });
case "Defer": return /* @__PURE__ */ G(zn, { ...t });
}
};
function XW(e) {
let t = B(() => {
let t = [], n = {
id: Xr(),
title: "",
kind: "Root",
maxWidth: 42
};
return t.push(n), e.plan.node && JW(e.plan.node, n, t), t.map((e) => ({
...e,
icon: YW(e.kind)
}));
}, [e.plan]);
return /* @__PURE__ */ G(AW, { nodes: t });
}
// src/components/ui/select.tsx
function ZW({ ...e }) {
return /* @__PURE__ */ G(QV, {
"data-slot": "select",
...e
});
}
function QW({ ...e }) {
return /* @__PURE__ */ G(eH, {
"data-slot": "select-value",
...e
});
}
function $W({ className: e, size: t = "default", children: n, ...r }) {
return /* @__PURE__ */ K($V, {
"data-slot": "select-trigger",
"data-size": t,
className: Y("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-input/30 px-3 py-2 text-sm whitespace-nowrap shadow-sm transition-[color,box-shadow] outline-none hover:bg-input/50 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/40 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", e),
...r,
children: [n, /* @__PURE__ */ G(tH, {
asChild: !0,
children: /* @__PURE__ */ G(Nn, { className: "size-4 opacity-50" })
})]
});
}
function eG({ className: e, children: t, position: n = "popper", align: r = "center", ...i }) {
let { container: a } = dy();
return /* @__PURE__ */ G(nH, {
container: a,
children: /* @__PURE__ */ K(rH, {
"data-slot": "select-content",
className: Y("relative z-200 max-h-[var(--radix-select-content-available-height)] min-w-[8rem] origin-[var(--radix-select-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
position: n,
align: r,
...i,
children: [
/* @__PURE__ */ G(nG, {}),
/* @__PURE__ */ G(iH, {
className: Y("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
children: t
}),
/* @__PURE__ */ G(rG, {})
]
})
});
}
function tG({ className: e, children: t, ...n }) {
return /* @__PURE__ */ K(aH, {
"data-slot": "select-item",
className: Y("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
...n,
children: [/* @__PURE__ */ G("span", {
className: "absolute right-2 flex size-3.5 items-center justify-center",
children: /* @__PURE__ */ G(sH, { children: /* @__PURE__ */ G(Mn, { className: "size-4" }) })
}), /* @__PURE__ */ G(oH, { children: t })]
});
}
function nG({ className: e, ...t }) {
return /* @__PURE__ */ G(cH, {
"data-slot": "select-scroll-up-button",
className: Y("flex cursor-default items-center justify-center py-1", e),
...t,
children: /* @__PURE__ */ G(Fn, { className: "size-4" })
});
}
function rG({ className: e, ...t }) {
return /* @__PURE__ */ G(lH, {
"data-slot": "select-scroll-down-button",
className: Y("flex cursor-default items-center justify-center py-1", e),
...t,
children: /* @__PURE__ */ G(Nn, { className: "size-4" })
});
}
// src/components/ui/spinner.tsx
function iG({ className: e, ...t }) {
return /* @__PURE__ */ G(ar, {
role: "status",
"aria-label": "Loading",
className: Y("size-4 animate-spin", e),
...t
});
}
// src/components/ui/tabs.tsx
function aG({ className: e, ...t }) {
return /* @__PURE__ */ G(wU, {
"data-slot": "tabs",
className: Y("flex flex-col", e),
...t
});
}
function oG({ className: e, ...t }) {
return /* @__PURE__ */ G(TU, {
"data-slot": "tabs-list",
className: Y("inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-[3px] text-muted-foreground", e),
...t
});
}
function sG({ className: e, ...t }) {
return /* @__PURE__ */ G(EU, {
"data-slot": "tabs-trigger",
className: Y("inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-muted-foreground transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-input data-[state=active]:bg-input/30 data-[state=active]:text-foreground data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
...t
});
}
function cG({ className: e, ...t }) {
return /* @__PURE__ */ G(DU, {
"data-slot": "tabs-content",
className: Y("flex-1 outline-none", e),
...t
});
}
// src/components/ui/toggle.tsx
var lG = Jv("cursor-pointer inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
variants: {
variant: {
default: "bg-transparent",
outline: "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"
},
size: {
default: "h-9 px-2 min-w-9",
sm: "h-8 px-1.5 min-w-8",
lg: "h-10 px-2.5 min-w-10"
}
},
defaultVariants: {
variant: "default",
size: "default"
}
});
function uG({ className: e, variant: t, size: n, ...r }) {
return /* @__PURE__ */ G(AU, {
"data-slot": "toggle",
className: Y(lG({
variant: t,
size: n,
className: e
})),
...r
});
}
// src/components/ui/toggle-group.tsx
var dG = I.createContext({
size: "default",
variant: "default",
spacing: 0
});
function fG({ className: e, variant: t, size: n, spacing: r = 0, children: i, ...a }) {
return /* @__PURE__ */ G(KU, {
"data-slot": "toggle-group",
"data-variant": t,
"data-size": n,
"data-spacing": r,
style: { "--gap": r },
className: Y("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs", e),
...a,
children: /* @__PURE__ */ G(dG.Provider, {
value: {
variant: t,
size: n,
spacing: r
},
children: i
})
});
}
function pG({ className: e, children: t, variant: n, size: r, ...i }) {
let a = I.useContext(dG);
return /* @__PURE__ */ G(qU, {
"data-slot": "toggle-group-item",
"data-variant": a.variant || n,
"data-size": a.size || r,
"data-spacing": a.spacing,
className: Y(lG({
variant: a.variant || n,
size: a.size || r
}), "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10", "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l", e),
...i,
children: t
});
}
// src/components/ui/checkbox.tsx
function mG({ className: e, asSpan: t, ...n }) {
let r = /* @__PURE__ */ G(Kz, {
"data-slot": "checkbox-indicator",
className: "grid place-content-center text-current transition-none",
children: /* @__PURE__ */ G(Mn, { className: "size-3.5" })
});
return /* @__PURE__ */ G(Wz, {
"data-slot": "checkbox",
asChild: t,
className: Y("peer size-4 shrink-0 rounded-[4px] border border-input bg-input/30 shadow-sm transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/40 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", e),
...n,
children: t ? /* @__PURE__ */ G("span", { children: r }) : r
});
}
// src/components/ui/context-menu.tsx
function hG({ ...e }) {
return /* @__PURE__ */ G(PB, {
"data-slot": "context-menu",
...e
});
}
function gG({ ...e }) {
return /* @__PURE__ */ G(FB, {
"data-slot": "context-menu-trigger",
...e
});
}
function _G({ className: e, ...t }) {
let [n, r] = H(null);
return /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G(IB, {
container: n,
children: /* @__PURE__ */ G(LB, {
"data-slot": "context-menu-content",
className: Y("z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
...t
})
}), /* @__PURE__ */ G("div", {
ref: r,
style: { display: "contents" }
})] });
}
function vG({ className: e, inset: t, variant: n = "default", ...r }) {
return /* @__PURE__ */ G(RB, {
"data-slot": "context-menu-item",
"data-inset": t,
"data-variant": n,
className: Y("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!", e),
...r
});
}
// src/components/laboratory/builder.tsx
var yG = (e) => {
let { schema: t, enableDocs: n, openDocs: r } = dy(), i = B(() => ha(e.path, t ?? null), [e.path, t]);
return !n || !i ? /* @__PURE__ */ G(Br, { children: e.children }) : /* @__PURE__ */ K(hG, { children: [/* @__PURE__ */ G(gG, {
asChild: !0,
children: e.children
}), /* @__PURE__ */ G(_G, { children: /* @__PURE__ */ G(vG, {
onClick: () => r(i),
children: "Open in Docs"
}) })] });
}, bG = (e) => {
let { schema: t, activeOperation: n, addArgToActiveOperation: r, deleteArgFromActiveOperation: i, activeTab: a } = dy(), o = B(() => e.operation ?? n ?? null, [e.operation, n]), s = B(() => e.path.join("."), [e.path]), c = B(() => Qo(o?.query ?? "", s, e.field.name), [
o?.query,
s,
e.field.name
]);
return /* @__PURE__ */ K("div", {
className: Y(ly({
variant: "ghost",
size: "sm"
}), "w-full justify-start p-1! text-xs text-muted-foreground", { "text-foreground-primary": c }),
children: [
/* @__PURE__ */ G("div", { className: "size-4" }),
/* @__PURE__ */ G(mG, {
onClick: (e) => e.stopPropagation(),
checked: c,
disabled: a?.type !== "operation" || e.isReadOnly,
onCheckedChange: (n) => {
t && (n ? r(e.path.join("."), e.field.name, t, e.operationName) : i(e.path.join("."), e.field.name, e.operationName));
}
}),
/* @__PURE__ */ G(An, { className: "size-4 text-rose-400" }),
e.field.name,
": ",
/* @__PURE__ */ G(uF, { type: e.field.type })
]
}, e.field.name);
}, xG = (e) => {
let { schema: t, activeOperation: n, addPathToActiveOperation: r, deletePathFromActiveOperation: i, activeTab: a } = dy(), o = B(() => e.operation ?? n ?? null, [e.operation, n]), s = B(() => e.path.join("."), [e.path]), c = B(() => e.openPaths.includes(s) || !!e.forcedOpenPaths?.has(s), [
e.openPaths,
e.forcedOpenPaths,
s
]), l = R((t) => {
e.setOpenPaths(t ? [...e.openPaths, s] : e.openPaths.filter((e) => e !== s));
}, [s, e]), u = B(() => qo(o?.query ?? "", s, e.operationName), [
o?.query,
s,
e.operationName
]), d = B(() => e.field.args ?? [], [e.field]), f = B(() => d.some((t) => Qo(o?.query ?? "", s, t.name, e.operationName)), [
o?.query,
d,
s,
e.operationName
]), p = B(() => Bc(e.field.name).some((t) => e.searchValue?.toLowerCase().includes(t.toLowerCase())), [e.searchValue, e.field.name]);
return e.isSearchActive && e.visiblePaths && !e.visiblePaths.has(s) ? null : e.disableChildren ? /* @__PURE__ */ G(yG, {
path: e.path,
children: /* @__PURE__ */ K("div", {
className: Y(ly({
variant: "ghost",
size: "sm"
}), "group sticky top-0 z-10 w-full justify-start overflow-hidden bg-card p-1! text-xs text-muted-foreground", { "text-foreground-primary": u }),
style: { top: `${(e.path.length - 2) * 32}px` },
children: [
/* @__PURE__ */ G("div", { className: "absolute top-0 left-0 -z-20 size-full bg-card" }),
/* @__PURE__ */ G("div", { className: "absolute top-0 left-0 -z-10 size-full transition-colors group-hover:bg-accent/50" }),
/* @__PURE__ */ G(mG, {
onClick: (e) => e.stopPropagation(),
checked: u,
disabled: a?.type !== "operation" || e.isReadOnly,
onCheckedChange: (n) => {
n ? (l(!0), r(s, e.operationName, t ?? void 0)) : i(s, e.operationName);
}
}),
/* @__PURE__ */ G(An, { className: "size-4 text-rose-400" }),
e.label ?? /* @__PURE__ */ G("span", {
className: Y({ "-mx-0.5 rounded-sm bg-primary px-0.5 text-primary-foreground": p }),
children: e.field.name
}),
": ",
/* @__PURE__ */ G(uF, { type: e.field.type })
]
})
}) : d.length > 0 ? /* @__PURE__ */ K(lN, {
open: c,
onOpenChange: l,
children: [/* @__PURE__ */ G(yG, {
path: e.path,
children: /* @__PURE__ */ G(uN, {
asChild: !0,
children: /* @__PURE__ */ K(Z, {
variant: "ghost",
className: Y("group sticky top-0 z-10 w-full justify-start overflow-hidden bg-card p-1! text-xs text-muted-foreground", { "text-foreground-primary": u }),
style: { top: `${(e.path.length - 2) * 32}px` },
size: "sm",
children: [
/* @__PURE__ */ G("div", { className: "absolute top-0 left-0 -z-20 size-full bg-card" }),
/* @__PURE__ */ G("div", { className: "absolute top-0 left-0 -z-10 size-full transition-colors group-hover:bg-accent/50" }),
/* @__PURE__ */ G(Nn, { className: Y("size-4 text-muted-foreground transition-all", { "-rotate-90": !c }) }),
/* @__PURE__ */ G(mG, {
asSpan: !0,
onClick: (e) => e.stopPropagation(),
checked: u,
disabled: a?.type !== "operation" || e.isReadOnly,
onCheckedChange: (n) => {
n ? (l(!0), r(s, e.operationName, t ?? void 0)) : i(s, e.operationName);
}
}),
/* @__PURE__ */ G(An, { className: "size-4 text-rose-400" }),
e.label ?? /* @__PURE__ */ G("span", {
className: Y({ "-mx-0.5 rounded-sm bg-primary px-0.5 text-primary-foreground": p }),
children: e.field.name
}),
": ",
/* @__PURE__ */ G(uF, { type: e.field.type })
]
})
})
}), /* @__PURE__ */ G(dN, {
className: "relative z-0 ml-3 flex flex-col border-l border-border pl-2",
children: c && /* @__PURE__ */ G("div", { children: d.length > 0 && /* @__PURE__ */ K(lN, { children: [/* @__PURE__ */ G(uN, {
asChild: !0,
children: /* @__PURE__ */ K(Z, {
variant: "ghost",
className: Y("group sticky top-0 z-10 w-full justify-start overflow-hidden bg-card p-1! text-xs text-muted-foreground", { "text-foreground-primary": f }),
style: { top: `${(e.path.length - 1) * 32}px` },
size: "sm",
children: [
/* @__PURE__ */ G(Nn, { className: Y("size-4 text-muted-foreground transition-all", { "-rotate-90": !c }) }),
/* @__PURE__ */ G(mG, {
asSpan: !0,
onClick: (e) => e.stopPropagation(),
checked: f,
disabled: !0
}),
/* @__PURE__ */ G(Vn, { className: "size-4 text-rose-400" }),
"[arguments]"
]
})
}), /* @__PURE__ */ G(dN, {
className: "ml-3 flex flex-col border-l border-border pl-2",
children: d.map((t) => /* @__PURE__ */ G(bG, {
field: t,
path: [...e.path],
isReadOnly: e.isReadOnly,
operation: o
}, t.name))
})] }) })
})]
}, e.field.name) : /* @__PURE__ */ G(yG, {
path: e.path,
children: /* @__PURE__ */ K("div", {
className: Y(ly({
variant: "ghost",
size: "sm"
}), "w-full justify-start p-1! text-xs text-muted-foreground", { "text-foreground-primary": u }),
children: [
/* @__PURE__ */ G("div", { className: "size-4" }),
/* @__PURE__ */ G(mG, {
onClick: (e) => e.stopPropagation(),
checked: u,
disabled: a?.type !== "operation",
onCheckedChange: (n) => {
n ? r(e.path.join("."), e.operationName, t ?? void 0) : i(e.path.join("."), e.operationName);
}
}),
/* @__PURE__ */ G(An, { className: "size-4 text-rose-400" }),
e.label ?? /* @__PURE__ */ G("span", {
className: Y({ "-mx-0.5 rounded-sm bg-primary px-0.5 text-primary-foreground": p }),
children: e.field.name
}),
": ",
/* @__PURE__ */ G(uF, { type: e.field.type })
]
}, e.field.name)
});
}, SG = (e) => {
let { schema: t, activeOperation: n, addPathToActiveOperation: r, deletePathFromActiveOperation: i, activeTab: a } = dy(), o = B(() => e.operation ?? n ?? null, [e.operation, n]), s = B(() => e.path.join("."), [e.path]), c = B(() => e.openPaths.includes(s) || !!e.forcedOpenPaths?.has(s), [
e.openPaths,
e.forcedOpenPaths,
s
]), l = R((t) => {
e.setOpenPaths(t ? [...e.openPaths, s] : e.openPaths.filter((e) => e !== s));
}, [s, e]), u = B(() => Rt(e.field.type), [e.field.type]), d = B(() => A(u) || h(u) ? Object.values(u.getFields()) : [], [u]), f = B(() => _(u) ? u.getTypes() : h(u) ? t?.getPossibleTypes(u) ?? [] : [], [u, t]), p = B(() => e.field.args ?? [], [e.field]), m = B(() => p.some((t) => Qo(o?.query ?? "", e.path.join("."), t.name)), [
o?.query,
p,
e.path
]), g = B(() => qo(o?.query ?? "", s), [o?.query, s]), v = B(() => Bc(e.field.name).some((t) => e.searchValue?.toLowerCase().includes(t.toLowerCase())), [e.searchValue, e.field.name]);
return e.isSearchActive && e.visiblePaths && !e.visiblePaths.has(s) ? null : e.disableChildren ? /* @__PURE__ */ G(yG, {
path: e.path,
children: /* @__PURE__ */ K("div", {
className: Y(ly({
variant: "ghost",
size: "sm"
}), "group sticky top-0 z-10 w-full justify-start overflow-hidden bg-card p-1! text-xs text-muted-foreground", { "text-foreground-primary": g }),
style: { top: `${(e.path.length - 2) * 32}px` },
children: [
/* @__PURE__ */ G("div", { className: "absolute top-0 left-0 -z-20 size-full bg-card" }),
/* @__PURE__ */ G("div", { className: "absolute top-0 left-0 -z-10 size-full transition-colors group-hover:bg-accent/50" }),
/* @__PURE__ */ G(mG, {
onClick: (e) => e.stopPropagation(),
checked: g,
disabled: a?.type !== "operation" || e.isReadOnly,
onCheckedChange: (n) => {
n ? (l(!0), r(s, e.operationName, t ?? void 0)) : i(s, e.operationName);
}
}),
/* @__PURE__ */ G(An, { className: "size-4 text-rose-400" }),
e.label ?? /* @__PURE__ */ G("span", {
className: Y({ "-mx-0.5 rounded-sm bg-primary px-0.5 text-primary-foreground": v }),
children: e.field.name
}),
": ",
/* @__PURE__ */ G(uF, { type: e.field.type })
]
})
}) : /* @__PURE__ */ K(lN, {
open: c,
onOpenChange: l,
children: [/* @__PURE__ */ G(yG, {
path: e.path,
children: /* @__PURE__ */ G(uN, {
asChild: !0,
children: /* @__PURE__ */ K(Z, {
variant: "ghost",
className: Y("group sticky top-0 z-10 w-full justify-start overflow-hidden bg-card p-1! text-xs text-muted-foreground", { "text-foreground-primary": g }),
style: { top: `${(e.path.length - 2) * 32}px` },
size: "sm",
children: [
/* @__PURE__ */ G("div", { className: "absolute top-0 left-0 -z-20 size-full bg-card" }),
/* @__PURE__ */ G("div", { className: "absolute top-0 left-0 -z-10 size-full transition-colors group-hover:bg-accent/50" }),
/* @__PURE__ */ G(Nn, { className: Y("size-4 text-muted-foreground transition-all", { "-rotate-90": !c }) }),
/* @__PURE__ */ G(mG, {
asSpan: !0,
onClick: (e) => e.stopPropagation(),
checked: g,
disabled: a?.type !== "operation" || e.isReadOnly,
onCheckedChange: (n) => {
n ? (l(!0), r(s, e.operationName, t ?? void 0)) : i(s, e.operationName);
}
}),
/* @__PURE__ */ G(An, { className: "size-4 text-rose-400" }),
e.label ?? /* @__PURE__ */ G("span", {
className: Y({ "-mx-0.5 rounded-sm bg-primary px-0.5 text-primary-foreground": v }),
children: e.field.name
}),
": ",
/* @__PURE__ */ G(uF, { type: e.field.type })
]
})
})
}), /* @__PURE__ */ G(dN, {
className: "relative z-0 ml-4 flex flex-col border-l border-border pl-1",
children: c && /* @__PURE__ */ K("div", { children: [
p.length > 0 && /* @__PURE__ */ K(lN, { children: [/* @__PURE__ */ G(uN, {
asChild: !0,
children: /* @__PURE__ */ K(Z, {
variant: "ghost",
className: Y("group sticky top-0 z-10 w-full justify-start overflow-hidden bg-card p-1! text-xs text-muted-foreground", { "text-foreground-primary": m }),
style: { top: `${(e.path.length - 1) * 32}px` },
size: "sm",
children: [
/* @__PURE__ */ G(Nn, { className: Y("size-4 text-muted-foreground transition-all", { "-rotate-90": !c }) }),
/* @__PURE__ */ G(mG, {
asSpan: !0,
onClick: (e) => e.stopPropagation(),
checked: m,
disabled: !0
}),
/* @__PURE__ */ G(Vn, { className: "size-4 text-rose-400" }),
"[arguments]"
]
})
}), /* @__PURE__ */ G(dN, {
className: "ml-4 flex flex-col border-l border-border pl-1",
children: p.map((t) => /* @__PURE__ */ G(bG, {
field: t,
path: [...e.path],
operation: o
}, t.name))
})] }),
d?.map((t) => /* @__PURE__ */ G(wG, {
field: t,
path: [...e.path, t.name],
openPaths: e.openPaths,
setOpenPaths: e.setOpenPaths,
visiblePaths: e.visiblePaths,
forcedOpenPaths: e.forcedOpenPaths,
isSearchActive: e.isSearchActive,
isReadOnly: e.isReadOnly,
operation: o,
operationName: e.operationName,
searchValue: e.searchValue
}, t.name)),
f.map((t) => /* @__PURE__ */ G(CG, {
type: t,
parentType: u,
path: [...e.path, ca(t.name)],
openPaths: e.openPaths,
setOpenPaths: e.setOpenPaths,
visiblePaths: e.visiblePaths,
forcedOpenPaths: e.forcedOpenPaths,
isSearchActive: e.isSearchActive,
isReadOnly: e.isReadOnly,
operation: o,
operationName: e.operationName,
searchValue: e.searchValue
}, t.name))
] })
})]
}, e.field.name);
}, CG = (e) => {
let { activeOperation: t } = dy(), n = B(() => e.operation ?? t ?? null, [e.operation, t]), r = B(() => e.path.join("."), [e.path]), i = B(() => e.openPaths.includes(r) || !!e.forcedOpenPaths?.has(r), [
e.openPaths,
e.forcedOpenPaths,
r
]), a = R((t) => {
e.setOpenPaths(t ? [...e.openPaths, r] : e.openPaths.filter((e) => e !== r));
}, [r, e]), o = B(() => {
let t = Object.values(e.type.getFields());
if (!h(e.parentType)) return t;
let n = new Set(Object.keys(e.parentType.getFields()));
return t.filter((e) => !n.has(e.name));
}, [e.type, e.parentType]), s = B(() => qo(n?.query ?? "", r, e.operationName), [
n?.query,
r,
e.operationName
]);
return e.isSearchActive && e.visiblePaths && !e.visiblePaths.has(r) || o.length === 0 ? null : /* @__PURE__ */ K(lN, {
open: i,
onOpenChange: a,
children: [/* @__PURE__ */ G(yG, {
path: e.path,
children: /* @__PURE__ */ G(uN, {
asChild: !0,
children: /* @__PURE__ */ K(Z, {
variant: "ghost",
className: Y("group sticky top-0 z-10 w-full justify-start overflow-hidden bg-card p-1! text-xs text-muted-foreground", { "text-foreground-primary": s }),
style: { top: `${(e.path.length - 2) * 32}px` },
size: "sm",
children: [
/* @__PURE__ */ G("div", { className: "absolute top-0 left-0 -z-20 size-full bg-card" }),
/* @__PURE__ */ G("div", { className: "absolute top-0 left-0 -z-10 size-full transition-colors group-hover:bg-accent/50" }),
/* @__PURE__ */ G(Nn, { className: Y("size-4 text-muted-foreground transition-all", { "-rotate-90": !i }) }),
/* @__PURE__ */ G("div", { className: "size-4" }),
/* @__PURE__ */ G(Vn, { className: "size-4 text-amber-400" }),
"... on ",
/* @__PURE__ */ G(uF, { type: e.type })
]
})
})
}), /* @__PURE__ */ G(dN, {
className: "relative z-0 ml-4 flex flex-col border-l border-border pl-1",
children: i && /* @__PURE__ */ G("div", { children: o.map((t) => /* @__PURE__ */ G(wG, {
field: t,
path: [...e.path, t.name],
openPaths: e.openPaths,
setOpenPaths: e.setOpenPaths,
visiblePaths: e.visiblePaths,
forcedOpenPaths: e.forcedOpenPaths,
isSearchActive: e.isSearchActive,
isReadOnly: e.isReadOnly,
operation: n,
operationName: e.operationName,
searchValue: e.searchValue
}, t.name)) })
})]
});
}, wG = (e) => {
let t = Rt(e.field.type);
return !t || re(t) || l(t) ? /* @__PURE__ */ G(xG, {
field: e.field,
path: e.path,
openPaths: e.openPaths,
setOpenPaths: e.setOpenPaths,
visiblePaths: e.visiblePaths,
forcedOpenPaths: e.forcedOpenPaths,
isSearchActive: e.isSearchActive,
isReadOnly: e.isReadOnly,
operation: e.operation,
operationName: e.operationName,
searchValue: e.searchValue,
label: e.label,
disableChildren: e.disableChildren
}) : /* @__PURE__ */ G(SG, {
field: e.field,
path: e.path,
openPaths: e.openPaths,
setOpenPaths: e.setOpenPaths,
visiblePaths: e.visiblePaths,
forcedOpenPaths: e.forcedOpenPaths,
isSearchActive: e.isSearchActive,
isReadOnly: e.isReadOnly,
operation: e.operation,
operationName: e.operationName,
searchValue: e.searchValue,
label: e.label,
disableChildren: e.disableChildren
});
}, TG = (e) => {
let t = e.isSearchActive ? null : "Search fields to switch between tree and list";
return /* @__PURE__ */ K(fG, {
type: "single",
variant: "outline",
value: e.mode,
disabled: !e.isSearchActive,
onValueChange: (t) => {
t && e.onModeChange(t);
},
children: [/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G("span", {
className: "flex",
children: /* @__PURE__ */ G(pG, {
value: "tree",
"aria-label": "Tree",
className: "h-6 !rounded-l-sm !rounded-r-none border-r-0 p-2",
children: /* @__PURE__ */ G(ir, { className: "size-4" })
})
})
}), /* @__PURE__ */ G(Zj, { children: t ?? "Tree" })] }), /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G("span", {
className: "flex",
children: /* @__PURE__ */ G(pG, {
value: "list",
"aria-label": "List",
className: "h-6 !rounded-l-none !rounded-r-sm p-2",
children: /* @__PURE__ */ G(Er, { className: "size-4" })
})
})
}), /* @__PURE__ */ G(Zj, { children: t ?? "List" })] })]
});
}, EG = (e) => e.mode === "list" ? e.matchedPaths.map((t) => {
let n = ls(t, e.schema);
return n ? /* @__PURE__ */ G(wG, {
field: n,
path: [t],
openPaths: e.openPaths,
setOpenPaths: e.setOpenPaths,
visiblePaths: e.visiblePaths,
forcedOpenPaths: e.forcedOpenPaths,
isSearchActive: e.isSearchActive,
isReadOnly: e.isReadOnly,
operation: e.operation,
operationName: e.operationName,
searchValue: e.searchValue,
disableChildren: !0,
label: /* @__PURE__ */ G("span", { children: t.split(".").map((n, r) => {
let i = la(n);
return i === null ? Bc(n).some((t) => e.searchValue.toLowerCase().includes(t.toLowerCase())) ? /* @__PURE__ */ K(cn, { children: [/* @__PURE__ */ G("span", {
className: "-mx-0.5 rounded-sm bg-primary px-0.5 text-primary-foreground",
children: n
}), r < t.split(".").length - 1 && "."] }, r) : /* @__PURE__ */ K("span", { children: [n, r < t.split(".").length - 1 && "."] }, r) : /* @__PURE__ */ K(cn, { children: [/* @__PURE__ */ K("span", {
className: "text-amber-400",
children: ["on ", i]
}), r < t.split(".").length - 1 && "."] }, r);
}) })
}, t) : null;
}) : e.fields.filter((t) => e.visiblePaths?.has(`${e.tab}.${t.name}`)).map((t) => /* @__PURE__ */ G(wG, {
field: t,
path: [e.tab, t.name],
openPaths: e.openPaths,
setOpenPaths: e.setOpenPaths,
visiblePaths: e.visiblePaths,
forcedOpenPaths: e.forcedOpenPaths,
isSearchActive: e.isSearchActive,
isReadOnly: e.isReadOnly,
operation: e.operation,
operationName: e.operationName,
searchValue: e.searchValue
}, t.name)), DG = (e) => {
let { schema: t, activeOperation: n, endpoint: r, setEndpoint: i, reloadSchema: a, isFetchingSchema: o, tabs: s, addTab: c, setActiveTab: l, canIntrospect: u } = dy(), [d, f] = H(r ?? ""), [p, m] = H(""), h = hn(p[p.length - 1] === "." ? p.slice(0, -1) : p), [g, _] = H([]), [v, y] = H(Pt.QUERY), b = B(() => e.operation ?? n ?? null, [e.operation, n]), x = V([]), S = V(b?.id ?? null);
z(() => {
if (!t) return;
let e = ns(b?.query ?? "");
if (e.length === 0) return;
let n = S.current !== (b?.id ?? null), r = x.current;
S.current = b?.id ?? null, x.current = e, _((t) => n ? e : rs(t, r, e)), y(e[0]);
}, [
t,
b?.id,
b?.query
]);
let C = B(() => Object.values(t?.getQueryType()?.getFields?.() ?? {}), [t]), w = B(() => Object.values(t?.getMutationType()?.getFields?.() ?? {}), [t]), T = B(() => Object.values(t?.getSubscriptionType()?.getFields?.() ?? {}), [t]), E = h.trim().length > 0, D = B(() => !t || !E ? null : os(t, h, {
maxDepth: 8,
maxMatches: 100,
maxNodes: 1e4,
operationTypes: [v]
}), [
t,
h,
E,
v
]), O = E ? D?.visiblePaths ?? null : null, k = E && h.includes(".") ? D?.forcedOpenPaths ?? null : null, [A, ee] = H("tree"), j = B(() => (0, co.throttle)((e) => {
i(e);
}, 1e3), [i]);
return z(() => {
j(d);
}, [d, j]), /* @__PURE__ */ K("div", {
className: "flex size-full flex-col overflow-hidden bg-card",
children: [
/* @__PURE__ */ K("div", {
className: "flex items-center gap-3 px-3 pt-3",
children: [/* @__PURE__ */ G("span", {
className: "text-base font-medium",
children: "Builder"
}), /* @__PURE__ */ K("div", {
className: "ml-auto flex items-center gap-3",
children: [u && /* @__PURE__ */ K(Z, {
onClick: () => {
let e = s.find((e) => e.type === "settings") ?? c({
type: "settings",
data: {}
});
l(e);
},
variant: "ghost",
size: "sm",
className: "h-6 rounded-sm p-1! !px-1.5",
children: [/* @__PURE__ */ G(Sr, { className: "size-4" }), "Introspection settings"]
}), /* @__PURE__ */ G("div", {
className: "flex items-center",
children: /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
onClick: () => _([]),
variant: "ghost",
size: "icon-sm",
className: "size-6 rounded-sm p-1!",
disabled: g.length === 0,
children: /* @__PURE__ */ G(Bn, { className: "size-4 text-muted-foreground" })
})
}), /* @__PURE__ */ G(Zj, { children: "Collapse all" })] })
})]
})]
}),
/* @__PURE__ */ G("div", {
className: "px-3 pt-3",
children: /* @__PURE__ */ K(Qj, { children: [
/* @__PURE__ */ G(rM, {
placeholder: "Enter endpoint",
value: d,
onChange: (e) => f(e.currentTarget.value)
}),
/* @__PURE__ */ G(eM, { children: /* @__PURE__ */ G(iM, {}) }),
/* @__PURE__ */ G(eM, {
align: "inline-end",
children: /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G("span", {
className: "flex",
children: /* @__PURE__ */ G(nM, {
className: "rounded-full",
size: "icon-xs",
onClick: a,
disabled: o || !d,
"aria-label": "Reload schema",
children: /* @__PURE__ */ G(vr, { className: Y("size-4", o && "animate-spin") })
})
})
}), /* @__PURE__ */ G(Zj, { children: o ? "Introspecting…" : "Reload schema" })] })
})
] })
}),
/* @__PURE__ */ G("div", {
className: "flex-1 overflow-hidden",
children: t ? /* @__PURE__ */ K(aG, {
value: v,
onValueChange: (e) => y(e),
className: "flex size-full flex-col gap-0",
children: [
/* @__PURE__ */ G("div", {
className: "flex items-center border-b border-border p-3",
children: /* @__PURE__ */ K(oG, {
className: "w-full",
children: [
/* @__PURE__ */ G(sG, {
value: "query",
disabled: C.length === 0,
className: "text-xs",
children: "Query"
}),
/* @__PURE__ */ G(sG, {
value: "mutation",
disabled: w.length === 0,
className: "text-xs",
children: "Mutation"
}),
/* @__PURE__ */ G(sG, {
value: "subscription",
disabled: T.length === 0,
className: "text-xs",
children: "Subscription"
})
]
})
}),
t && /* @__PURE__ */ G("div", {
className: "sticky top-0 z-10 border-b border-border p-3",
children: /* @__PURE__ */ K(Qj, {
className: "pr-0",
children: [
/* @__PURE__ */ G(rM, {
placeholder: "Search fields",
value: p,
onChange: (e) => m(e.currentTarget.value)
}),
/* @__PURE__ */ G(eM, { children: /* @__PURE__ */ G(br, { className: "size-4 text-muted-foreground" }) }),
/* @__PURE__ */ G(eM, {
align: "inline-end",
className: "py-0 pr-1.5",
children: /* @__PURE__ */ G(TG, {
mode: A,
onModeChange: ee,
isSearchActive: E
})
})
]
})
}),
/* @__PURE__ */ G("div", {
className: "flex-1 overflow-hidden",
children: /* @__PURE__ */ K(QN, {
className: "h-full font-mono",
children: [
/* @__PURE__ */ K("div", {
className: "p-3",
children: [
/* @__PURE__ */ G(cG, {
value: "query",
children: E ? /* @__PURE__ */ G(EG, {
type: "query",
fields: C,
openPaths: g,
setOpenPaths: _,
visiblePaths: O,
matchedPaths: D?.matchedPaths ?? [],
forcedOpenPaths: D?.forcedOpenPaths ?? null,
isSearchActive: E,
mode: A,
isReadOnly: e.isReadOnly ?? !1,
operation: b,
searchValue: h,
schema: t,
tab: v
}) : C.map((t) => /* @__PURE__ */ G(wG, {
field: t,
path: ["query", t.name],
openPaths: g,
setOpenPaths: _,
visiblePaths: O,
forcedOpenPaths: k,
isSearchActive: E,
isReadOnly: e.isReadOnly,
operation: b,
operationName: e.operationName,
searchValue: h
}, t.name))
}),
/* @__PURE__ */ G(cG, {
value: "mutation",
children: E ? /* @__PURE__ */ G(EG, {
type: "mutation",
fields: w,
openPaths: g,
setOpenPaths: _,
visiblePaths: O,
matchedPaths: D?.matchedPaths ?? [],
forcedOpenPaths: D?.forcedOpenPaths ?? null,
isSearchActive: E,
mode: A,
isReadOnly: e.isReadOnly ?? !1,
operation: b,
searchValue: h,
schema: t,
tab: v
}) : w.map((t) => /* @__PURE__ */ G(wG, {
field: t,
path: ["mutation", t.name],
openPaths: g,
setOpenPaths: _,
visiblePaths: O,
forcedOpenPaths: k,
isSearchActive: E,
isReadOnly: e.isReadOnly,
operation: b,
operationName: e.operationName,
searchValue: h
}, t.name))
}),
/* @__PURE__ */ G(cG, {
value: "subscription",
children: E ? /* @__PURE__ */ G(EG, {
type: "subscription",
fields: T,
openPaths: g,
setOpenPaths: _,
visiblePaths: O,
matchedPaths: D?.matchedPaths ?? [],
forcedOpenPaths: D?.forcedOpenPaths ?? null,
isSearchActive: E,
mode: A,
isReadOnly: e.isReadOnly ?? !1,
operation: b,
searchValue: h,
schema: t,
tab: v
}) : T.map((t) => /* @__PURE__ */ G(wG, {
field: t,
path: ["subscription", t.name],
openPaths: g,
setOpenPaths: _,
visiblePaths: O,
forcedOpenPaths: k,
isSearchActive: E,
isReadOnly: e.isReadOnly,
operation: b,
operationName: e.operationName,
searchValue: h
}, t.name))
})
]
}),
/* @__PURE__ */ G($N, { className: "relative z-50" }),
/* @__PURE__ */ G($N, {
orientation: "horizontal",
className: "relative z-50"
})
]
})
})
]
}, b?.id) : /* @__PURE__ */ G(fO, {
className: "h-96 w-full px-0!",
children: /* @__PURE__ */ K(pO, { children: [
/* @__PURE__ */ G(hO, {
variant: "icon",
children: /* @__PURE__ */ G(qn, { className: "size-6 text-muted-foreground" })
}),
/* @__PURE__ */ G(gO, {
className: "text-base",
children: "No endpoint selected"
}),
/* @__PURE__ */ G(_O, {
className: "text-xs",
children: "You haven't selected any endpoint yet. Get started by selecting an endpoint."
})
] })
})
})
]
});
}, OG = Jt.file("variables.json"), kG = (e) => {
let { activeOperation: t, updateActiveOperation: n } = dy(), r = B(() => e.operation ?? t ?? null, [e.operation, t]);
return /* @__PURE__ */ G(QR, {
uri: OG,
value: r?.variables ?? "",
language: "json",
onChange: (e) => {
n({ variables: e ?? "" });
},
options: { readOnly: e.isReadOnly }
});
}, AG = (e) => {
let { activeOperation: t, updateActiveOperation: n } = dy(), r = B(() => e.operation ?? t ?? null, [e.operation, t]);
return /* @__PURE__ */ G(QR, {
uri: Jt.file("headers.json"),
value: r?.headers ?? "",
language: "json",
onChange: (e) => {
n({ headers: e ?? "" });
},
options: { readOnly: e.isReadOnly }
});
}, jG = (e) => {
let { activeOperation: t, updateActiveOperation: n } = dy(), r = B(() => e.operation ?? t ?? null, [e.operation, t]);
return /* @__PURE__ */ G(QR, {
uri: Jt.file("extensions.json"),
value: r?.extensions ?? "",
language: "json",
onChange: (e) => {
n({ extensions: e ?? "" });
},
options: { readOnly: e.isReadOnly }
});
}, MG = ({ historyItem: e }) => /* @__PURE__ */ G(QR, {
value: JSON.stringify(JSON.parse(e?.response ?? "{}"), null, 2),
defaultLanguage: "json",
theme: "hive-laboratory",
options: { readOnly: !0 }
}), NG = ({ historyItem: e }) => /* @__PURE__ */ G(QR, {
value: JSON.stringify(JSON.parse(e?.headers ?? "{}"), null, 2),
defaultLanguage: "json",
theme: "hive-laboratory"
}), PG = ({ historyItem: e }) => /* @__PURE__ */ K(QN, {
className: "h-full",
children: [/* @__PURE__ */ G("div", {
className: "flex flex-col gap-1.5 p-3 whitespace-pre-wrap",
children: e?.preflightLogs?.map((e, t) => /* @__PURE__ */ K("div", {
className: "gap-2 font-mono",
children: [
/* @__PURE__ */ G("span", {
className: "text-xs text-muted-foreground",
children: e.createdAt
}),
" ",
/* @__PURE__ */ G("span", {
className: Y("text-xs font-medium", {
"text-blue-400": e.level === "info",
"text-green-400": e.level === "log",
"text-yellow-400": e.level === "warn",
"text-red-400": e.level === "error",
"text-gray-400": e.level === "system"
}),
children: e.level.toUpperCase()
}),
" ",
/* @__PURE__ */ G("span", {
className: "text-xs",
children: e.message.join(" ")
})
]
}, t))
}), /* @__PURE__ */ G($N, {})]
}), FG = ({ historyItem: e }) => {
let [t, n] = H("text"), r = B(() => Pz(e?.response), [e]);
return r ? /* @__PURE__ */ K("div", {
className: "relative size-full",
children: [/* @__PURE__ */ K(fG, {
className: "absolute top-4 right-4 z-10 bg-card shadow-sm",
type: "single",
variant: "outline",
value: t,
onValueChange: (e) => n(e),
children: [/* @__PURE__ */ K(pG, {
value: "text",
children: [/* @__PURE__ */ G(En, { className: "size-4" }), "Text"]
}), /* @__PURE__ */ K(pG, {
value: "visual",
children: [/* @__PURE__ */ G(ur, { className: "size-4" }), "Visual"]
})]
}), t === "visual" ? /* @__PURE__ */ G(XW, { plan: r }, e?.id) : /* @__PURE__ */ G(QR, {
value: LW(r),
defaultLanguage: "graphql",
theme: "hive-laboratory",
options: { readOnly: !0 }
})]
}) : /* @__PURE__ */ G(fO, {
className: "size-full",
children: /* @__PURE__ */ K(pO, { children: [
/* @__PURE__ */ G(hO, {
variant: "icon",
children: /* @__PURE__ */ G(ur, { className: "size-6 text-muted-foreground" })
}),
/* @__PURE__ */ G(gO, { children: e ? "No query plan" : "No query plan yet" }),
/* @__PURE__ */ G(_O, { children: e ? "This response did not include one. Query plans show up here when your gateway returns extensions.queryPlan." : "Run this operation against a gateway that returns extensions.queryPlan to see how it resolves across subgraphs." })
] })
});
}, IG = ({ historyItem: e }) => {
let { isActiveOperationLoading: t } = dy();
return /* @__PURE__ */ K("div", {
className: "flex h-full flex-col",
children: [/* @__PURE__ */ K("div", {
className: "flex h-12 border-b border-border p-3 text-base font-medium",
children: ["Subscription", /* @__PURE__ */ G("div", {
className: "ml-auto flex items-center gap-2",
children: t ? /* @__PURE__ */ G(QI, {
variant: "default",
className: "bg-green-400/10 text-green-500",
children: "Listening"
}) : /* @__PURE__ */ G(QI, {
variant: "default",
className: "bg-red-400/10 text-red-500",
children: "Not listening"
})
})]
}), /* @__PURE__ */ G("div", {
className: "flex-1 overflow-hidden",
children: /* @__PURE__ */ K(QN, {
className: "h-full",
children: [/* @__PURE__ */ G("div", {
className: "flex flex-col overflow-hidden",
children: e?.responses.sort((e, t) => new Date(t.createdAt).getTime() - new Date(e.createdAt).getTime()).map((e, t) => {
let n = [
`// ${e.createdAt}`,
"",
JSON.stringify(JSON.parse(e.data), null, 2)
].join("\n"), r = 20.5 * n.split("\n").length;
return /* @__PURE__ */ G("div", {
className: "border-b border-border",
style: { height: `${r}px` },
children: /* @__PURE__ */ G(QR, {
value: n,
defaultLanguage: "json",
theme: "hive-laboratory",
options: {
readOnly: !0,
scrollBeyondLastLine: !1,
scrollbar: {
vertical: "hidden",
handleMouseWheel: !1,
alwaysConsumeMouseWheel: !1
}
}
}, e.createdAt)
}, t);
})
}), /* @__PURE__ */ G($N, {})]
})
})]
});
}, LG = ({ historyItem: e }) => {
let [t, n] = H(!1), r = B(() => e ? !e.status || e.status < 200 || e.status >= 300 || "response" in e && JSON.parse(e.response).errors : !1, [e]);
return /* @__PURE__ */ K(aG, {
defaultValue: "response",
className: Y("grid size-full grid-rows-[auto_1fr] bg-card", { "absolute inset-0 z-100 size-full": t }),
children: [
/* @__PURE__ */ K(oG, {
className: "h-[50px] w-full items-center justify-start rounded-none border-b bg-transparent p-3",
children: [
t ? /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "sm",
className: "mt-0.5 mr-2 h-6 w-6",
onClick: () => n(!1),
children: /* @__PURE__ */ G(pr, { className: "size-4" })
})
}), /* @__PURE__ */ G(Zj, {
side: "bottom",
children: "Minimize panel"
})] }) : /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "sm",
className: "mt-0.5 mr-2 h-6 w-6",
onClick: () => n(!0),
children: /* @__PURE__ */ G(fr, { className: "size-4" })
})
}), /* @__PURE__ */ G(Zj, {
side: "bottom",
children: "Maximize panel"
})] }),
/* @__PURE__ */ G(sG, {
value: "response",
className: "grow-0 rounded-sm",
children: "Response"
}),
/* @__PURE__ */ G(sG, {
value: "headers",
className: "grow-0 rounded-sm",
children: "Headers"
}),
e?.preflightLogs && e?.preflightLogs.length > 0 && /* @__PURE__ */ G(sG, {
value: "preflight",
className: "grow-0 rounded-sm",
children: "Preflight"
}),
/* @__PURE__ */ G(sG, {
value: "query-plan",
className: "grow-0 rounded-sm",
children: "Query Plan"
}),
e ? /* @__PURE__ */ K("div", {
className: "ml-auto flex items-center gap-2",
children: [
!!e?.status && /* @__PURE__ */ K(QI, {
className: Y("bg-green-400/10 text-green-500", { "bg-red-400/10 text-red-500": r }),
children: [G(r ? Rn : In, { className: "size-3" }), /* @__PURE__ */ G("span", { children: e.status })]
}),
e?.duration && /* @__PURE__ */ K(QI, {
variant: "outline",
className: "bg-card",
children: [/* @__PURE__ */ G(zn, { className: "size-3" }), /* @__PURE__ */ K("span", { children: [Math.round(e.duration), "ms"] })]
}),
e.size != null && /* @__PURE__ */ K(QI, {
variant: "outline",
className: "bg-card",
children: [/* @__PURE__ */ G(Wn, { className: "size-3" }), /* @__PURE__ */ G("span", { children: zc(e.size) })]
})
]
}) : null
]
}),
/* @__PURE__ */ G(cG, {
value: "response",
className: "overflow-hidden",
children: /* @__PURE__ */ G(MG, { historyItem: e })
}),
/* @__PURE__ */ G(cG, {
value: "query-plan",
className: "overflow-hidden",
children: /* @__PURE__ */ G(FG, { historyItem: e })
}),
/* @__PURE__ */ G(cG, {
value: "headers",
className: "overflow-hidden",
children: /* @__PURE__ */ G(NG, { historyItem: e })
}),
/* @__PURE__ */ G(cG, {
value: "preflight",
className: "overflow-hidden",
children: /* @__PURE__ */ G(PG, { historyItem: e })
})
]
});
}, RG = W.object({ collectionId: W.string().min(1, "Collection is required") }), zG = (e) => {
let { endpoint: t, runActiveOperation: n, activeOperation: r, isActiveOperationLoading: i, updateActiveOperation: a, collections: o, addOperationToCollection: s, addCollection: c, addHistory: l, stopActiveOperation: u, addResponseToHistory: d, isActiveOperationSubscription: f, runPreflight: p, addTab: m, setActiveTab: h, addOperation: g, checkPermissions: _, preflight: v, setPreflight: y, plugins: b, pluginsState: x, setPluginsState: S, env: C, settings: w } = dy(), [T, E] = H(null), D = B(() => e.operation ?? r ?? null, [e.operation, r]), O = R(async () => {
if (!D || !t) return;
let r = await p?.(b, x);
if (S(r?.pluginsState ?? {}), r?.status === "error") {
let t = l({
headers: "{}",
operation: D,
preflightLogs: r?.logs ?? [],
response: "{\n \"errors\": [\n {\n \"message\": \"Preflight failed check logs for more details\"\n }\n ]\n }",
createdAt: (/* @__PURE__ */ new Date()).toISOString()
});
e.onAfterOperationRun?.(t);
} else if (f) {
let i = l({
responses: [],
operation: D,
preflightLogs: r?.logs ?? [],
createdAt: (/* @__PURE__ */ new Date()).toISOString()
});
n(t, {
env: r?.env,
headers: r?.headers,
operationName: T ?? void 0,
onResponse: (e) => {
d(i.id, e);
}
}), e.onAfterOperationRun?.(i);
} else {
let i = performance.now(), a = await n(t, {
env: r?.env,
headers: r?.headers,
operationName: T ?? void 0
});
if (!a) return;
let o = a.extensions?.response ?? {
status: 0,
headers: {}
};
delete a.extensions?.request, delete a.extensions?.response, Object.keys(a.extensions ?? {}).length === 0 && delete a.extensions;
let s = o.status;
s === 0 && a.errors?.length && wo.error("Could not reach endpoint", { description: a.errors[0].message });
let c = performance.now() - i, u = JSON.stringify(a, null, 2), d = new TextEncoder().encode(u).length, f = l({
status: s,
duration: c,
size: d,
headers: JSON.stringify(o.headers, null, 2),
operation: D,
preflightLogs: r?.logs ?? [],
response: u,
createdAt: (/* @__PURE__ */ new Date()).toISOString()
});
e.onAfterOperationRun?.(f);
}
}, [
D,
T,
t,
f,
l,
n,
e,
d,
p,
x
]);
z(() => {
let e = (e) => {
e.key === "Enter" && (e.metaKey || e.ctrlKey) && (e.preventDefault(), e.stopPropagation(), O());
};
return document.addEventListener("keydown", e, { capture: !0 }), () => document.removeEventListener("keydown", e, { capture: !0 });
}, [O]);
let [k, A] = H(!1), ee = Fr({
defaultValues: { collectionId: "" },
validators: { onSubmit: RG },
onSubmit: ({ value: e }) => {
D && (o.find((t) => t.id === e.collectionId) ? s(e.collectionId, {
id: D.id ?? "",
name: D.name ?? "",
query: D.query ?? "",
variables: D.variables ?? "",
headers: D.headers ?? "",
extensions: D.extensions ?? "",
description: ""
}) : c({
name: e.collectionId,
operations: [{
id: D.id ?? "",
name: D.name ?? "",
query: D.query ?? "",
variables: D.variables ?? "",
headers: D.headers ?? "",
extensions: D.extensions ?? "",
description: ""
}]
}), A(!1));
}
}), j = R(() => {
ee.reset({ collectionId: o[0]?.id ?? "" }), A(!0);
}, [ee, o]), te = B(() => o.some((e) => e.operations.some((e) => e.id === D?.id)), [D?.id, o]), M = R((e) => {
let t = Rr(JSON.stringify({
n: D?.name,
q: D?.query,
v: e.variables ? D?.variables : void 0,
h: e.headers ? D?.headers : void 0,
e: e.extensions ? D?.extensions : void 0
}));
navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}?share=${t}`), wo.success("Operation copied to clipboard");
}, [D]), ne = R(() => {
D && t && (navigator.clipboard.writeText(oz({
endpoint: t,
query: D.query,
variables: D.variables,
headers: D.headers,
extensions: D.extensions,
operationName: T,
env: C?.variables,
pluginsState: x,
settings: w
})), wo.success("cURL command copied to clipboard"));
}, [
D,
t,
T,
C,
x,
w
]);
return /* @__PURE__ */ K("div", {
className: "grid size-full grid-rows-[auto_1fr] overflow-hidden pb-0",
children: [
/* @__PURE__ */ G(xS, {
open: k,
onOpenChange: A,
children: /* @__PURE__ */ K(ES, {
className: "sm:max-w-[425px]",
children: [
/* @__PURE__ */ K(DS, { children: [/* @__PURE__ */ G(kS, { children: "Save operation to collection" }), /* @__PURE__ */ G(AS, { children: "Save the current operation to a collection." })] }),
/* @__PURE__ */ G("div", {
className: "grid gap-4",
children: /* @__PURE__ */ G("form", {
id: "save-to-collection",
onSubmit: (e) => {
e.preventDefault(), ee.handleSubmit();
},
children: /* @__PURE__ */ G(jO, { children: o.length > 0 ? /* @__PURE__ */ G(ee.Field, {
name: "collectionId",
children: (e) => {
let t = e.state.meta.isTouched && !e.state.meta.isValid;
return /* @__PURE__ */ K(NO, {
"data-invalid": t,
children: [/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Collection"
}), /* @__PURE__ */ K(ZW, {
name: e.name,
value: e.state.value,
onValueChange: e.handleChange,
children: [/* @__PURE__ */ G($W, {
id: e.name,
"aria-invalid": t,
children: /* @__PURE__ */ G(QW, { placeholder: "Select collection" })
}), /* @__PURE__ */ G(eG, { children: o.map((e) => /* @__PURE__ */ G(tG, {
value: e.id,
children: e.name
}, e.id)) })]
})]
});
}
}) : /* @__PURE__ */ G(ee.Field, {
name: "collectionId",
children: (e) => {
let t = e.state.meta.isTouched && !e.state.meta.isValid;
return /* @__PURE__ */ K(NO, {
"data-invalid": t,
children: [
/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "New collection name"
}),
/* @__PURE__ */ G(LO, {
id: e.name,
name: e.name,
value: e.state.value,
onBlur: e.handleBlur,
onChange: (t) => e.handleChange(t.target.value),
"aria-invalid": t,
placeholder: "Enter name of the collection",
autoComplete: "off"
}),
t && /* @__PURE__ */ G(IO, { errors: e.state.meta.errors })
]
});
}
}) })
})
}),
/* @__PURE__ */ K(OS, { children: [/* @__PURE__ */ G(wS, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "outline",
children: "Cancel"
})
}), /* @__PURE__ */ G(Z, {
type: "submit",
form: "save-to-collection",
children: "Save to collection"
})] })
]
})
}),
/* @__PURE__ */ K("div", {
className: "flex w-full items-center gap-2 overflow-hidden border-b border-border p-3",
children: [
/* @__PURE__ */ G("span", {
className: "text-base font-medium",
children: "Operation"
}),
_?.("collectionsOperations:create") && /* @__PURE__ */ K(uG, {
"aria-label": "Save operation",
size: "sm",
variant: "default",
pressed: te,
disabled: te,
className: "h-6 data-[state=on]:bg-transparent data-[state=on]:*:[svg]:fill-yellow-500 data-[state=on]:*:[svg]:stroke-yellow-500",
onClick: j,
children: [/* @__PURE__ */ G(On, { className: "size-4" }), te ? "Saved" : "Save"]
}),
/* @__PURE__ */ K("div", {
className: "ml-auto flex items-center gap-2",
children: [
/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
onClick: ne,
variant: "ghost",
size: "icon-sm",
className: "size-6 rounded-sm p-1!",
"aria-label": "Copy as cURL",
children: /* @__PURE__ */ G(Tr, { className: "size-4 text-muted-foreground" })
})
}), /* @__PURE__ */ G(Zj, { children: "Copy as cURL" })] }),
/* @__PURE__ */ K(aO, { children: [/* @__PURE__ */ G(TD, {
asChild: !0,
children: /* @__PURE__ */ K(Z, {
variant: "outline",
size: "sm",
className: "h-6 rounded-sm",
children: ["Share", /* @__PURE__ */ G(lr, { className: "size-4" })]
})
}), /* @__PURE__ */ K(sO, {
align: "end",
children: [
/* @__PURE__ */ G(lO, {
onClick: () => M({ variables: !0 }),
children: "Share with variables"
}),
/* @__PURE__ */ G(lO, {
onClick: () => M({
variables: !0,
extensions: !0
}),
children: "Share with variables and extensions"
}),
/* @__PURE__ */ G(lO, {
onClick: () => M({
variables: !0,
headers: !0,
extensions: !0
}),
children: "Share with variables, extensions, headers"
})
]
})] }),
/* @__PURE__ */ K(uG, {
"aria-label": v?.enabled ? "Disable preflight" : "Enable preflight",
size: "sm",
variant: "default",
pressed: v?.enabled,
className: "h-6 rounded-sm border border-input bg-input/30 shadow-sm hover:bg-input/50 hover:text-accent-foreground data-[state=on]:bg-transparent",
onClick: () => {
y({
...v ?? {
script: "",
enabled: !0
},
enabled: !v?.enabled
});
},
children: [v?.enabled ? /* @__PURE__ */ G(U, { className: "size-4 text-green-500" }) : /* @__PURE__ */ G(gr, { className: "size-4 text-red-500" }), "Preflight"]
}),
e.isReadOnly ? /* @__PURE__ */ K(Z, {
variant: "default",
size: "sm",
className: "h-6 rounded-sm",
onClick: () => {
D && h(m({
type: "operation",
data: g(D)
}));
},
children: [/* @__PURE__ */ G(wr, { className: "size-4" }), "Edit"]
}) : /* @__PURE__ */ G(Z, {
variant: "default",
size: "sm",
className: "h-6 rounded-sm",
onClick: () => {
i ? u?.() : O();
},
disabled: !D || !t,
children: i ? /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G(iG, { className: "size-4" }), /* @__PURE__ */ G("span", { children: "Stop" })] }) : /* @__PURE__ */ K(Br, { children: [/* @__PURE__ */ G(hr, { className: "size-4" }), /* @__PURE__ */ G("span", { children: "Run" })] })
})
]
})
]
}),
/* @__PURE__ */ G(QR, {
uri: Jt.file(`operation_${t}.graphql`),
variablesUri: OG,
value: D?.query ?? "",
onChange: (e) => {
a({ query: e ?? "" });
},
onOperationNameChange: (t) => {
E(t), e.onOperationNameChange?.(t);
},
language: "graphql",
theme: "hive-laboratory",
options: { readOnly: e.isReadOnly }
})
]
});
}, BG = (e) => {
let { activeOperation: t, history: n } = dy(), [r, i] = H(null), a = B(() => e.operation ?? t ?? null, [e.operation, t]), o = B(() => e.historyItem ?? n.filter((e) => e.operation.id === a?.id).sort((e, t) => new Date(t.createdAt).getTime() - new Date(e.createdAt).getTime())[0] ?? null, [
n,
e.historyItem,
a?.id
]), s = B(() => !!e.historyItem, [e.historyItem]);
return /* @__PURE__ */ G("div", {
className: "relative size-full bg-card",
children: /* @__PURE__ */ K(ej, {
orientation: "horizontal",
className: "size-full",
children: [
/* @__PURE__ */ G(tj, {
defaultSize: "25%",
children: /* @__PURE__ */ G(DG, {
operation: a,
operationName: r,
isReadOnly: s
})
}),
/* @__PURE__ */ G(nj, {}),
/* @__PURE__ */ G(tj, {
minSize: "10%",
defaultSize: "40%",
children: /* @__PURE__ */ K(ej, {
orientation: "vertical",
children: [
/* @__PURE__ */ G(tj, {
defaultSize: "70%",
children: /* @__PURE__ */ G(zG, {
operation: a,
isReadOnly: s,
onOperationNameChange: i
})
}),
/* @__PURE__ */ G(nj, {}),
/* @__PURE__ */ G(tj, {
minSize: "10%",
defaultSize: "30%",
children: /* @__PURE__ */ K(aG, {
className: "grid size-full grid-rows-[auto_1fr]",
defaultValue: "variables",
children: [
/* @__PURE__ */ K(oG, {
className: "h-[49.5px] w-full justify-start rounded-none border-b bg-transparent p-3",
children: [
/* @__PURE__ */ G(sG, {
value: "variables",
className: "grow-0 rounded-sm",
children: "Variables"
}),
/* @__PURE__ */ G(sG, {
value: "headers",
className: "grow-0 rounded-sm",
children: "Headers"
}),
/* @__PURE__ */ G(sG, {
value: "extensions",
className: "grow-0 rounded-sm",
children: "Extensions"
})
]
}),
/* @__PURE__ */ G(cG, {
value: "variables",
className: "overflow-hidden",
children: /* @__PURE__ */ G(kG, {
operation: a,
isReadOnly: s
})
}),
/* @__PURE__ */ G(cG, {
value: "headers",
className: "overflow-hidden",
children: /* @__PURE__ */ G(AG, {
operation: a,
isReadOnly: s
})
}),
/* @__PURE__ */ G(cG, {
value: "extensions",
className: "overflow-hidden",
children: /* @__PURE__ */ G(jG, {
operation: a,
isReadOnly: s
})
})
]
})
})
]
})
}),
/* @__PURE__ */ G(nj, {}),
/* @__PURE__ */ G(tj, {
minSize: "10%",
defaultSize: "35%",
children: o ? /* @__PURE__ */ G(Br, { children: "responses" in o ? /* @__PURE__ */ G(IG, { historyItem: o }) : /* @__PURE__ */ G(LG, { historyItem: o }) }) : /* @__PURE__ */ G(fO, {
className: "size-full",
children: /* @__PURE__ */ K(pO, { children: [
/* @__PURE__ */ G(hO, {
variant: "icon",
children: /* @__PURE__ */ G(er, { className: "size-6 text-muted-foreground" })
}),
/* @__PURE__ */ G(gO, { children: "No history yet" }),
/* @__PURE__ */ G(_O, { children: "No response available yet. Run your operation to see the response here." })
] })
})
})
]
})
});
}, VG = () => {
let { activeTab: e, history: t } = dy(), n = B(() => e?.type === "history" ? t.find((t) => t.id === e.data.id) ?? null : null, [t, e]);
return n ? /* @__PURE__ */ G(BG, {
operation: n.operation,
historyItem: n
}) : null;
}, HG = () => {
let { preflight: e, preflightLogs: t, isPreflightRunning: n, testPreflight: r, abortPreflight: i, clearPreflightLogs: a, setLastTestResult: o, setPreflight: s, setEnv: c, checkPermissions: l, preflightNotice: u, plugins: d, pluginsState: f, setPluginsState: p } = dy(), m = R(async () => {
if (!e?.script) return;
let t = await r?.(d, f);
c(t?.env ?? { variables: {} }), p(t?.pluginsState ?? {}), o(t ?? null);
}, [
e?.script,
r,
d,
f,
c,
p
]), h = t ?? [];
return /* @__PURE__ */ K(ej, {
orientation: "horizontal",
className: "size-full",
children: [
/* @__PURE__ */ G(tj, {
defaultSize: "50%",
className: "bg-card",
children: /* @__PURE__ */ K("div", {
className: "grid size-full grid-rows-[auto_auto_1fr] pb-0",
children: [
/* @__PURE__ */ K("div", {
className: "flex w-full items-center gap-2 border-b border-border p-3",
children: [/* @__PURE__ */ G("span", {
className: "text-base font-medium",
children: "Preflight"
}), /* @__PURE__ */ G("div", {
className: "ml-auto flex items-center gap-2",
children: n ? /* @__PURE__ */ K(Z, {
variant: "destructive",
size: "sm",
className: "h-6 rounded-sm",
onClick: i,
children: [/* @__PURE__ */ G(Cr, { className: "size-4" }), /* @__PURE__ */ G("span", { children: "Stop" })]
}) : /* @__PURE__ */ K(Z, {
variant: "default",
size: "sm",
className: "h-6 rounded-sm",
onClick: m,
children: [/* @__PURE__ */ G(hr, { className: "size-4" }), /* @__PURE__ */ G("span", { children: "Test" })]
})
})]
}),
/* @__PURE__ */ K("div", {
className: "border-b border-border px-3 py-2 text-xs text-muted-foreground",
children: [
/* @__PURE__ */ G(kr, { className: "mr-1.5 inline size-3.5 align-[-2px]" }),
"Preflight scripts run in this browser as part of your requests. Prefer",
" ",
/* @__PURE__ */ G("code", {
className: "font-mono",
children: "lab.prompt()"
}),
" over writing secrets into the script.",
u ? /* @__PURE__ */ G("span", {
className: "ml-1",
children: u
}) : null
]
}),
/* @__PURE__ */ G("div", {
className: "size-full",
children: /* @__PURE__ */ G(QR, {
value: e?.script ?? "",
onChange: (t) => {
s({
...e ?? {
script: "",
enabled: !0
},
script: t ?? ""
});
},
language: "typescript",
extraLibs: [`
interface Lab {
environment: {
/** Stored as text. Anything else is dropped with a warning. */
set: (key: string, value: string | number | boolean | null) => void;
get: (key: string) => string;
delete: (key: string) => void;
};
request: {
/** Sent as-is and win over the operation's own headers. */
headers: Headers;
};
/**
* Asks the user for a value before the request runs. The title labels the
* input; placeholder and description are optional hints. Resolves null when
* the prompt is dismissed; an empty field cannot be submitted.
*/
prompt: (
title: string,
defaultValue?: string,
options?: { placeholder?: string; description?: string },
) => Promise<string | null>;
CryptoJS: typeof CryptoJS;
plugins: {
${d.filter((e) => e.preflight?.lab?.definition).map((e) => e.preflight?.lab?.definition).join("\n")}
}
}
declare namespace CryptoJS {
namespace lib {
interface WordArray {
words: number[];
sigBytes: number;
toString(encoder?: Encoder): string;
concat(wordArray: WordArray): WordArray;
clone(): WordArray;
}
interface CipherParams {
ciphertext: WordArray;
key: WordArray;
iv: WordArray;
salt: WordArray;
toString(formatter?: Format): string;
}
}
namespace enc {
interface Encoder {
stringify(wordArray: lib.WordArray): string;
parse(str: string): lib.WordArray;
}
const Hex: Encoder;
const Latin1: Encoder;
const Utf8: Encoder;
const Base64: Encoder;
}
namespace algo {
interface HasherStatic {
create(cfg?: object): Hasher;
}
interface Hasher {
update(messageUpdate: lib.WordArray | string): Hasher;
finalize(messageUpdate?: lib.WordArray | string): lib.WordArray;
}
const MD5: HasherStatic;
const SHA1: HasherStatic;
const SHA256: HasherStatic;
const SHA224: HasherStatic;
const SHA512: HasherStatic;
const SHA384: HasherStatic;
const SHA3: HasherStatic;
const RIPEMD160: HasherStatic;
interface CipherStatic {
createEncryptor(key: lib.WordArray, cfg?: CipherOption): Cipher;
createDecryptor(key: lib.WordArray, cfg?: CipherOption): Cipher;
}
interface Cipher {
process(dataUpdate: lib.WordArray | string): lib.WordArray;
finalize(dataUpdate?: lib.WordArray | string): lib.WordArray;
}
interface CipherHelper {
encrypt(message: lib.WordArray | string, key: lib.WordArray | string, cfg?: CipherOption): lib.CipherParams;
decrypt(ciphertext: lib.CipherParams | string, key: lib.WordArray | string, cfg?: CipherOption): lib.WordArray;
}
const AES: CipherStatic;
const DES: CipherStatic;
const TripleDES: CipherStatic;
const RC4: CipherStatic;
}
namespace mode {
interface BlockCipherMode {
createEncryptor(cipher: algo.Cipher, iv: number[]): Mode;
createDecryptor(cipher: algo.Cipher, iv: number[]): Mode;
}
const CBC: BlockCipherMode;
const CFB: BlockCipherMode;
const CTR: BlockCipherMode;
const OFB: BlockCipherMode;
const ECB: BlockCipherMode;
}
namespace pad {
interface Padding {
pad(data: lib.WordArray, blockSize: number): void;
unpad(data: lib.WordArray): void;
}
const Pkcs7: Padding;
const AnsiX923: Padding;
const Iso10126: Padding;
const Iso97971: Padding;
const ZeroPadding: Padding;
const NoPadding: Padding;
}
namespace format {
interface Format {
stringify(cipherParams: lib.CipherParams): string;
parse(str: string): lib.CipherParams;
}
const OpenSSL: Format;
const Hex: Format;
}
interface CipherOption {
iv?: lib.WordArray;
mode?: mode.BlockCipherMode;
padding?: pad.Padding;
format?: format.Format;
[key: string]: any;
}
interface Mode {
processBlock(words: number[], offset: number): void;
}
type HasherHelper = (message: lib.WordArray | string, cfg?: object) => lib.WordArray;
type HmacHasherHelper = (message: lib.WordArray | string, key: lib.WordArray | string) => lib.WordArray;
type CipherHelper = {
encrypt(message: lib.WordArray | string, key: lib.WordArray | string, cfg?: CipherOption): lib.CipherParams;
decrypt(ciphertext: lib.CipherParams | string, key: lib.WordArray | string, cfg?: CipherOption): lib.WordArray;
};
const MD5: HasherHelper;
const SHA1: HasherHelper;
const SHA256: HasherHelper;
const SHA224: HasherHelper;
const SHA512: HasherHelper;
const SHA384: HasherHelper;
const SHA3: HasherHelper;
const RIPEMD160: HasherHelper;
const HmacMD5: HmacHasherHelper;
const HmacSHA1: HmacHasherHelper;
const HmacSHA256: HmacHasherHelper;
const HmacSHA224: HmacHasherHelper;
const HmacSHA512: HmacHasherHelper;
const HmacSHA384: HmacHasherHelper;
const HmacSHA3: HmacHasherHelper;
const HmacRIPEMD160: HmacHasherHelper;
const AES: CipherHelper;
const DES: CipherHelper;
const TripleDES: CipherHelper;
const RC4: CipherHelper;
const RC4Drop: CipherHelper;
const Rabbit: CipherHelper;
const RabbitLegacy: CipherHelper;
function PBKDF2(password: lib.WordArray | string, salt: lib.WordArray | string, cfg?: { keySize?: number; hasher?: algo.HasherStatic; iterations?: number }): lib.WordArray;
function EvpKDF(password: lib.WordArray | string, salt: lib.WordArray | string, cfg?: { keySize: number; hasher?: algo.HasherStatic; iterations: number }): lib.WordArray;
}
declare var lab: Lab;
declare var CryptoJS: typeof CryptoJS;
`],
options: { readOnly: !l?.("preflight:update") }
})
})
]
})
}),
/* @__PURE__ */ G(nj, {}),
/* @__PURE__ */ G(tj, {
minSize: "10%",
defaultSize: "50%",
className: "bg-card",
children: h.length > 0 ? /* @__PURE__ */ K("div", {
className: "grid size-full grid-rows-[auto_1fr] pb-0",
children: [/* @__PURE__ */ K("div", {
className: "flex h-12 w-full items-center gap-2 border-b border-border p-3",
children: [/* @__PURE__ */ G("span", {
className: "text-base font-medium",
children: "Logs"
}), /* @__PURE__ */ G("div", {
className: "ml-auto flex items-center gap-2",
children: /* @__PURE__ */ K(Z, {
variant: "ghost",
size: "sm",
className: "h-6 rounded-sm",
onClick: a,
children: [/* @__PURE__ */ G(Dr, { className: "size-4" }), /* @__PURE__ */ G("span", { children: "Clear" })]
})
})]
}), /* @__PURE__ */ K(QN, {
className: "h-full",
children: [/* @__PURE__ */ G("div", {
role: "log",
"aria-label": "Preflight logs",
className: "flex flex-col gap-1.5 p-3 whitespace-pre-wrap",
children: h.map((e, t) => /* @__PURE__ */ K("div", {
className: "gap-2 font-mono",
"data-level": e.level,
children: [
/* @__PURE__ */ G("span", {
className: "text-xs text-muted-foreground",
children: e.createdAt
}),
" ",
/* @__PURE__ */ G("span", {
className: Y("text-xs font-medium", {
"text-blue-400": e.level === "info",
"text-green-400": e.level === "log",
"text-yellow-400": e.level === "warn",
"text-red-400": e.level === "error",
"text-gray-400": e.level === "system"
}),
children: e.level.toUpperCase()
}),
" ",
e.line ? /* @__PURE__ */ K("span", {
className: "text-xs text-muted-foreground",
children: [
"(",
e.line,
":",
e.column,
")",
" "
]
}) : null,
/* @__PURE__ */ G("span", {
className: "text-xs",
children: Gc(e.message.join(" ")).map((e, t) => e.type === "url" ? /* @__PURE__ */ G("a", {
href: e.value,
target: "_blank",
rel: "noopener noreferrer",
className: "break-all text-blue-400 underline underline-offset-2 hover:opacity-80",
children: e.value
}, t) : e.value)
})
]
}, t))
}), /* @__PURE__ */ G($N, {})]
})]
}) : /* @__PURE__ */ G(fO, {
className: "size-full",
children: /* @__PURE__ */ K(pO, { children: [
/* @__PURE__ */ G(hO, {
variant: "icon",
children: /* @__PURE__ */ G(er, { className: "size-6 text-muted-foreground" })
}),
/* @__PURE__ */ G(gO, { children: "No logs yet" }),
/* @__PURE__ */ G(_O, { children: "No logs available yet. Run your preflight to see the logs here." })
] })
})
})
]
});
}, UG = (e) => {
let t = V(!1), n = (n) => {
t.current || (t.current = !0, e.onSubmit?.(n));
};
z(() => {
e.open && (t.current = !1);
}, [e.open, e.onSubmit]);
let r = Fr({
defaultValues: { value: e.defaultValue || null },
validators: { onSubmit: Pr.object({ value: Pr.string().min(1, "Value is required").nullable() }) },
onSubmit: ({ value: t }) => {
n(t.value || null), e.onOpenChange(!1), r.reset();
}
});
return /* @__PURE__ */ G(xS, {
open: e.open,
onOpenChange: (t) => {
(r.state.isSubmitted ? Promise.resolve() : r.handleSubmit()).catch(() => {}).then(() => {
t || n(null);
}), e.onOpenChange(t);
},
children: /* @__PURE__ */ K(ES, { children: [
/* @__PURE__ */ G(DS, { children: /* @__PURE__ */ G(kS, { children: "Preflight script request" }) }),
/* @__PURE__ */ G(AS, { children: "Your preflight script is asking for a value before this request runs." }),
/* @__PURE__ */ G("form", {
id: "preflight-prompt-form",
onSubmit: (e) => {
e.preventDefault(), r.handleSubmit();
},
children: /* @__PURE__ */ G(jO, { children: /* @__PURE__ */ G(r.Field, {
name: "value",
children: (t) => {
let n = t.state.meta.isTouched && !t.state.meta.isValid;
return /* @__PURE__ */ K(NO, {
"data-invalid": n,
children: [
e.title && /* @__PURE__ */ G(PO, {
htmlFor: t.name,
children: e.title
}),
e.description && /* @__PURE__ */ G(FO, { children: e.description }),
/* @__PURE__ */ G(LO, {
id: t.name,
name: t.name,
value: t.state.value || "",
onBlur: t.handleBlur,
onChange: (e) => t.handleChange(e.target.value),
"aria-invalid": n,
placeholder: e.placeholder,
autoComplete: "off"
}),
n && /* @__PURE__ */ G(IO, { errors: t.state.meta.errors })
]
});
}
}) })
}),
/* @__PURE__ */ K(OS, { children: [/* @__PURE__ */ G(Z, {
type: "button",
variant: "outline",
onClick: () => {
n(null), e.onOpenChange(!1), r.reset();
},
children: "Cancel"
}), /* @__PURE__ */ G(Z, {
type: "submit",
form: "preflight-prompt-form",
onClick: () => {
r.handleSubmit();
},
children: "Submit"
})] })
] })
});
};
// src/components/ui/switch.tsx
function WG({ className: e, ...t }) {
return /* @__PURE__ */ G(sU, {
"data-slot": "switch",
className: Y("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-sm transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input/80", e),
...t,
children: /* @__PURE__ */ G(cU, {
"data-slot": "switch-thumb",
className: Y("pointer-events-none block size-4 rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=checked]:bg-primary-foreground data-[state=unchecked]:translate-x-0 data-[state=unchecked]:bg-foreground")
})
});
}
// src/components/ui/card.tsx
function GG({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "card",
className: Y("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm", e),
...t
});
}
function KG({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "card-header",
className: Y("grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-[>[data-slot=card-action]]:grid-cols-[1fr_auto] [.border-b]:pb-6", e),
...t
});
}
function qG({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "card-title",
className: Y("leading-none font-semibold", e),
...t
});
}
function JG({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "card-description",
className: Y("text-sm text-muted-foreground", e),
...t
});
}
function YG({ className: e, ...t }) {
return /* @__PURE__ */ G("div", {
"data-slot": "card-content",
className: Y("px-6", e),
...t
});
}
// src/components/laboratory/settings.tsx
var XG = W.object({
fetch: W.object({
credentials: W.enum([
"include",
"omit",
"same-origin"
]),
timeout: W.number().optional(),
useGETForQueries: W.boolean().optional()
}),
subscriptions: W.object({ protocol: W.enum([
"SSE",
"GRAPHQL_SSE",
"WS",
"LEGACY_WS"
]) }),
introspection: W.object({
method: W.enum(["GET", "POST"]).optional(),
headers: W.string().optional(),
includeActiveOperationHeaders: W.boolean().optional()
})
}), ZG = () => {
let { settings: e, setSettings: t } = dy(), n = Fr({
defaultValues: e,
validators: { onSubmit: XG }
});
return z(() => {
n.store.subscribe((e) => {
t(e.currentVal.values);
});
}, [t]), /* @__PURE__ */ G("div", {
className: "size-full overflow-y-auto bg-card p-3",
children: /* @__PURE__ */ K("form", {
id: "settings-form",
className: "mx-auto flex max-w-2xl flex-col gap-4",
children: [
/* @__PURE__ */ K(GG, { children: [/* @__PURE__ */ K(KG, { children: [/* @__PURE__ */ G(qG, { children: "Fetch" }), /* @__PURE__ */ G(JG, { children: "Configure the fetch options for the laboratory." })] }), /* @__PURE__ */ G(YG, { children: /* @__PURE__ */ K(jO, { children: [
/* @__PURE__ */ G(n.Field, {
name: "fetch.credentials",
children: (e) => {
let t = e.state.meta.isTouched && !e.state.meta.isValid;
return /* @__PURE__ */ K(NO, {
"data-invalid": t,
children: [/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Credentials"
}), /* @__PURE__ */ K(ZW, {
name: e.name,
value: e.state.value,
onValueChange: (t) => e.handleChange(t),
children: [/* @__PURE__ */ G($W, {
id: e.name,
"aria-invalid": t,
children: /* @__PURE__ */ G(QW, { placeholder: "Select credentials" })
}), /* @__PURE__ */ K(eG, { children: [
/* @__PURE__ */ G(tG, {
value: "include",
children: "Include"
}),
/* @__PURE__ */ G(tG, {
value: "omit",
children: "Omit"
}),
/* @__PURE__ */ G(tG, {
value: "same-origin",
children: "Same-origin"
})
] })]
})]
});
}
}),
/* @__PURE__ */ G(n.Field, {
name: "fetch.timeout",
children: (e) => /* @__PURE__ */ K(NO, { children: [/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Timeout"
}), /* @__PURE__ */ G(LO, {
type: "number",
name: e.name,
value: e.state.value ?? "",
onChange: (t) => e.handleChange(t.target.value === "" ? void 0 : Number(t.target.value))
})] })
}),
/* @__PURE__ */ G(n.Field, {
name: "fetch.useGETForQueries",
children: (e) => /* @__PURE__ */ K(NO, {
className: "flex-row items-center",
children: [/* @__PURE__ */ G(WG, {
className: "!w-8",
checked: e.state.value ?? !1,
onCheckedChange: e.handleChange
}), /* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Use GET for queries"
})]
})
})
] }) })] }),
/* @__PURE__ */ K(GG, { children: [/* @__PURE__ */ K(KG, { children: [/* @__PURE__ */ G(qG, { children: "Subscriptions" }), /* @__PURE__ */ G(JG, { children: "Configure the subscriptions options for the laboratory." })] }), /* @__PURE__ */ G(YG, { children: /* @__PURE__ */ G(jO, { children: /* @__PURE__ */ G(n.Field, {
name: "subscriptions.protocol",
children: (e) => {
let t = e.state.meta.isTouched && !e.state.meta.isValid;
return /* @__PURE__ */ K(NO, {
"data-invalid": t,
children: [/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Protocol"
}), /* @__PURE__ */ K(ZW, {
name: e.name,
value: e.state.value,
onValueChange: (t) => e.handleChange(t),
children: [/* @__PURE__ */ G($W, {
id: e.name,
"aria-invalid": t,
children: /* @__PURE__ */ G(QW, { placeholder: "Select protocol" })
}), /* @__PURE__ */ K(eG, { children: [
/* @__PURE__ */ G(tG, {
value: "SSE",
children: "SSE"
}),
/* @__PURE__ */ G(tG, {
value: "GRAPHQL_SSE",
children: "GRAPHQL_SSE"
}),
/* @__PURE__ */ G(tG, {
value: "WS",
children: "WS"
}),
/* @__PURE__ */ G(tG, {
value: "LEGACY_WS",
children: "LEGACY_WS"
})
] })]
})]
});
}
}) }) })] }),
/* @__PURE__ */ K(GG, { children: [/* @__PURE__ */ K(KG, { children: [/* @__PURE__ */ G(qG, { children: "Introspection" }), /* @__PURE__ */ G(JG, { children: "Configure the introspection options for the laboratory." })] }), /* @__PURE__ */ G(YG, { children: /* @__PURE__ */ K(jO, { children: [
/* @__PURE__ */ G(n.Field, {
name: "introspection.method",
children: (e) => {
let t = e.state.meta.isTouched && !e.state.meta.isValid;
return /* @__PURE__ */ K(NO, { children: [/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Method"
}), /* @__PURE__ */ K(ZW, {
name: e.name,
value: e.state.value,
onValueChange: (t) => e.handleChange(t),
children: [/* @__PURE__ */ G($W, {
id: e.name,
"aria-invalid": t,
children: /* @__PURE__ */ G(QW, { placeholder: "Select method" })
}), /* @__PURE__ */ K(eG, { children: [/* @__PURE__ */ G(tG, {
value: "GET",
children: "GET"
}), /* @__PURE__ */ G(tG, {
value: "POST",
children: "POST"
})] })]
})] });
}
}),
/* @__PURE__ */ G(n.Field, {
name: "introspection.headers",
children: (e) => /* @__PURE__ */ K(NO, { children: [/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Headers"
}), /* @__PURE__ */ G(QR, {
value: e.state.value ?? "{}",
onChange: e.handleChange,
defaultLanguage: "json",
theme: "hive-laboratory",
className: "h-64 rounded rounded-md border border-input bg-input/30 focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50"
})] })
}),
/* @__PURE__ */ G(n.Field, {
name: "introspection.pollSchema",
children: (e) => /* @__PURE__ */ K(NO, {
className: "flex-row items-start",
children: [/* @__PURE__ */ G(WG, {
className: "mt-0.5 !w-8",
checked: e.state.value ?? !0,
onCheckedChange: e.handleChange
}), /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Poll for schema changes"
}), /* @__PURE__ */ G(FO, { children: "Re-runs the introspection query every 5 seconds. Turn off to reload the schema only when you ask for it." })] })]
})
}),
/* @__PURE__ */ G(n.Field, {
name: "introspection.includeActiveOperationHeaders",
children: (e) => /* @__PURE__ */ K(NO, {
className: "flex-row items-start",
children: [/* @__PURE__ */ G(WG, {
className: "mt-0.5 !w-8",
checked: e.state.value ?? !1,
onCheckedChange: e.handleChange
}), /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Include active operation headers"
}), /* @__PURE__ */ G(FO, { children: "Active operation (tab) headers will be included in the introspection query" })] })]
})
})
] }) })] })
]
})
});
};
// ../../../node_modules/.pnpm/@dnd-kit+utilities@3.2.2_react@18.3.1/node_modules/@dnd-kit/utilities/dist/utilities.esm.js
function QG() {
var e = [...arguments];
return B(() => (t) => {
e.forEach((e) => e(t));
}, e);
}
var $G = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
function eK(e) {
let t = Object.prototype.toString.call(e);
return t === "[object Window]" || t === "[object global]";
}
function tK(e) {
return "nodeType" in e;
}
function nK(e) {
return e ? eK(e) ? e : tK(e) ? e.ownerDocument?.defaultView ?? window : window : window;
}
function rK(e) {
let { Document: t } = nK(e);
return e instanceof t;
}
function iK(e) {
return !eK(e) && e instanceof nK(e).HTMLElement;
}
function aK(e) {
return e instanceof nK(e).SVGElement;
}
function oK(e) {
return e ? eK(e) ? e.document : tK(e) ? rK(e) ? e : iK(e) || aK(e) ? e.ownerDocument : document : document : document;
}
var sK = $G ? yn : z;
function cK(e) {
let t = V(e);
return sK(() => {
t.current = e;
}), R(function() {
var e = [...arguments];
return t.current == null ? void 0 : t.current(...e);
}, []);
}
function lK() {
let e = V(null);
return [R((t, n) => {
e.current = setInterval(t, n);
}, []), R(() => {
e.current !== null && (clearInterval(e.current), e.current = null);
}, [])];
}
function uK(e, t) {
t === void 0 && (t = [e]);
let n = V(e);
return sK(() => {
n.current !== e && (n.current = e);
}, t), n;
}
function dK(e, t) {
let n = V();
return B(() => {
let t = e(n.current);
return n.current = t, t;
}, [...t]);
}
function fK(e) {
let t = cK(e), n = V(null);
return [n, R((e) => {
e !== n.current && t?.(e, n.current), n.current = e;
}, [])];
}
function pK(e) {
let t = V();
return z(() => {
t.current = e;
}, [e]), t.current;
}
var mK = {};
function hK(e, t) {
return B(() => {
if (t) return t;
let n = mK[e] == null ? 0 : mK[e] + 1;
return mK[e] = n, e + "-" + n;
}, [e, t]);
}
function gK(e) {
return function(t) {
return [...arguments].slice(1).reduce((t, n) => {
let r = Object.entries(n);
for (let [n, i] of r) {
let r = t[n];
r != null && (t[n] = r + e * i);
}
return t;
}, { ...t });
};
}
var _K = /*#__PURE__*/ gK(1), vK = /*#__PURE__*/ gK(-1);
function yK(e) {
return "clientX" in e && "clientY" in e;
}
function bK(e) {
if (!e) return !1;
let { KeyboardEvent: t } = nK(e.target);
return t && e instanceof t;
}
function xK(e) {
if (!e) return !1;
let { TouchEvent: t } = nK(e.target);
return t && e instanceof t;
}
function SK(e) {
if (xK(e)) {
if (e.touches && e.touches.length) {
let { clientX: t, clientY: n } = e.touches[0];
return {
x: t,
y: n
};
}
if (e.changedTouches && e.changedTouches.length) {
let { clientX: t, clientY: n } = e.changedTouches[0];
return {
x: t,
y: n
};
}
}
return yK(e) ? {
x: e.clientX,
y: e.clientY
} : null;
}
var CK = /*#__PURE__*/ Object.freeze({
Translate: { toString(e) {
if (!e) return;
let { x: t, y: n } = e;
return "translate3d(" + (t ? Math.round(t) : 0) + "px, " + (n ? Math.round(n) : 0) + "px, 0)";
} },
Scale: { toString(e) {
if (!e) return;
let { scaleX: t, scaleY: n } = e;
return "scaleX(" + t + ") scaleY(" + n + ")";
} },
Transform: { toString(e) {
if (e) return [CK.Translate.toString(e), CK.Scale.toString(e)].join(" ");
} },
Transition: { toString(e) {
let { property: t, duration: n, easing: r } = e;
return t + " " + n + "ms " + r;
} }
}), wK = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
function TK(e) {
return e.matches(wK) ? e : e.querySelector(wK);
}
// ../../../node_modules/.pnpm/@dnd-kit+accessibility@3.1.1_react@18.3.1/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js
var EK = { display: "none" };
function DK(e) {
let { id: t, value: n } = e;
return L.createElement("div", {
id: t,
style: EK
}, n);
}
function OK(e) {
let { id: t, announcement: n, ariaLiveType: r = "assertive" } = e;
return L.createElement("div", {
id: t,
style: {
position: "fixed",
top: 0,
left: 0,
width: 1,
height: 1,
margin: -1,
border: 0,
padding: 0,
overflow: "hidden",
clip: "rect(0 0 0 0)",
clipPath: "inset(100%)",
whiteSpace: "nowrap"
},
role: "status",
"aria-live": r,
"aria-atomic": !0
}, n);
}
function kK() {
let [e, t] = H("");
return {
announce: R((e) => {
e != null && t(e);
}, []),
announcement: e
};
}
// ../../../node_modules/.pnpm/@dnd-kit+core@6.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@dnd-kit/core/dist/core.esm.js
var AK = /*#__PURE__*/ un(null);
function jK(e) {
let t = mn(AK);
z(() => {
if (!t) throw Error("useDndMonitor must be used within a children of <DndContext>");
return t(e);
}, [e, t]);
}
function MK() {
let [e] = H(() => /* @__PURE__ */ new Set()), t = R((t) => (e.add(t), () => e.delete(t)), [e]);
return [R((t) => {
let { type: n, event: r } = t;
e.forEach((e) => e[n]?.call(e, r));
}, [e]), t];
}
var NK = { draggable: "\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n " }, PK = {
onDragStart(e) {
let { active: t } = e;
return "Picked up draggable item " + t.id + ".";
},
onDragOver(e) {
let { active: t, over: n } = e;
return n ? "Draggable item " + t.id + " was moved over droppable area " + n.id + "." : "Draggable item " + t.id + " is no longer over a droppable area.";
},
onDragEnd(e) {
let { active: t, over: n } = e;
return n ? "Draggable item " + t.id + " was dropped over droppable area " + n.id : "Draggable item " + t.id + " was dropped.";
},
onDragCancel(e) {
let { active: t } = e;
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
}
};
function FK(e) {
let { announcements: t = PK, container: n, hiddenTextDescribedById: r, screenReaderInstructions: i = NK } = e, { announce: a, announcement: o } = kK(), s = hK("DndLiveRegion"), [c, l] = H(!1);
if (z(() => {
l(!0);
}, []), jK(B(() => ({
onDragStart(e) {
let { active: n } = e;
a(t.onDragStart({ active: n }));
},
onDragMove(e) {
let { active: n, over: r } = e;
t.onDragMove && a(t.onDragMove({
active: n,
over: r
}));
},
onDragOver(e) {
let { active: n, over: r } = e;
a(t.onDragOver({
active: n,
over: r
}));
},
onDragEnd(e) {
let { active: n, over: r } = e;
a(t.onDragEnd({
active: n,
over: r
}));
},
onDragCancel(e) {
let { active: n, over: r } = e;
a(t.onDragCancel({
active: n,
over: r
}));
}
}), [a, t])), !c) return null;
let u = L.createElement(L.Fragment, null, L.createElement(DK, {
id: r,
value: i.draggable
}), L.createElement(OK, {
id: s,
announcement: o
}));
return n ? wn(u, n) : u;
}
var IK;
(function(e) {
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
})(IK ||= {});
function LK() {}
function RK(e, t) {
return B(() => ({
sensor: e,
options: t ?? {}
}), [e, t]);
}
function zK() {
var e = [...arguments];
return B(() => [...e].filter((e) => e != null), [...e]);
}
var BK = /*#__PURE__*/ Object.freeze({
x: 0,
y: 0
});
function VK(e, t) {
return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
}
function HK(e, t) {
let n = SK(e);
if (!n) return "0 0";
let r = {
x: (n.x - t.left) / t.width * 100,
y: (n.y - t.top) / t.height * 100
};
return r.x + "% " + r.y + "%";
}
function UK(e, t) {
let { data: { value: n } } = e, { data: { value: r } } = t;
return n - r;
}
function WK(e, t) {
let { data: { value: n } } = e, { data: { value: r } } = t;
return r - n;
}
function GK(e) {
let { left: t, top: n, height: r, width: i } = e;
return [
{
x: t,
y: n
},
{
x: t + i,
y: n
},
{
x: t,
y: n + r
},
{
x: t + i,
y: n + r
}
];
}
function KK(e, t) {
if (!e || e.length === 0) return null;
let [n] = e;
return t ? n[t] : n;
}
function qK(e, t, n) {
return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
x: t + e.width * .5,
y: n + e.height * .5
};
}
var JK = (e) => {
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = qK(t, t.left, t.top), a = [];
for (let e of r) {
let { id: t } = e, r = n.get(t);
if (r) {
let n = VK(qK(r), i);
a.push({
id: t,
data: {
droppableContainer: e,
value: n
}
});
}
}
return a.sort(UK);
}, YK = (e) => {
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = GK(t), a = [];
for (let e of r) {
let { id: t } = e, r = n.get(t);
if (r) {
let n = GK(r), o = i.reduce((e, t, r) => e + VK(n[r], t), 0), s = Number((o / 4).toFixed(4));
a.push({
id: t,
data: {
droppableContainer: e,
value: s
}
});
}
}
return a.sort(UK);
};
function XK(e, t) {
let n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), a = Math.min(t.top + t.height, e.top + e.height), o = i - r, s = a - n;
if (r < i && n < a) {
let n = t.width * t.height, r = e.width * e.height, i = o * s, a = i / (n + r - i);
return Number(a.toFixed(4));
}
return 0;
}
var ZK = (e) => {
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = [];
for (let e of r) {
let { id: r } = e, a = n.get(r);
if (a) {
let n = XK(a, t);
n > 0 && i.push({
id: r,
data: {
droppableContainer: e,
value: n
}
});
}
}
return i.sort(WK);
};
function QK(e, t, n) {
return {
...e,
scaleX: t && n ? t.width / n.width : 1,
scaleY: t && n ? t.height / n.height : 1
};
}
function $K(e, t) {
return e && t ? {
x: e.left - t.left,
y: e.top - t.top
} : BK;
}
function eq(e) {
return function(t) {
return [...arguments].slice(1).reduce((t, n) => ({
...t,
top: t.top + e * n.y,
bottom: t.bottom + e * n.y,
left: t.left + e * n.x,
right: t.right + e * n.x
}), { ...t });
};
}
var tq = /*#__PURE__*/ eq(1);
function nq(e) {
if (e.startsWith("matrix3d(")) {
let t = e.slice(9, -1).split(/, /);
return {
x: +t[12],
y: +t[13],
scaleX: +t[0],
scaleY: +t[5]
};
}
if (e.startsWith("matrix(")) {
let t = e.slice(7, -1).split(/, /);
return {
x: +t[4],
y: +t[5],
scaleX: +t[0],
scaleY: +t[3]
};
}
return null;
}
function rq(e, t, n) {
let r = nq(t);
if (!r) return e;
let { scaleX: i, scaleY: a, x: o, y: s } = r, c = e.left - o - (1 - i) * parseFloat(n), l = e.top - s - (1 - a) * parseFloat(n.slice(n.indexOf(" ") + 1)), u = i ? e.width / i : e.width, d = a ? e.height / a : e.height;
return {
width: u,
height: d,
top: l,
right: c + u,
bottom: l + d,
left: c
};
}
var iq = { ignoreTransform: !1 };
function aq(e, t) {
t === void 0 && (t = iq);
let n = e.getBoundingClientRect();
if (t.ignoreTransform) {
let { transform: t, transformOrigin: r } = nK(e).getComputedStyle(e);
t && (n = rq(n, t, r));
}
let { top: r, left: i, width: a, height: o, bottom: s, right: c } = n;
return {
top: r,
left: i,
width: a,
height: o,
bottom: s,
right: c
};
}
function oq(e) {
return aq(e, { ignoreTransform: !0 });
}
function sq(e) {
let t = e.innerWidth, n = e.innerHeight;
return {
top: 0,
left: 0,
right: t,
bottom: n,
width: t,
height: n
};
}
function cq(e, t) {
return t === void 0 && (t = nK(e).getComputedStyle(e)), t.position === "fixed";
}
function lq(e, t) {
t === void 0 && (t = nK(e).getComputedStyle(e));
let n = /(auto|scroll|overlay)/;
return [
"overflow",
"overflowX",
"overflowY"
].some((e) => {
let r = t[e];
return typeof r == "string" && n.test(r);
});
}
function uq(e, t) {
let n = [];
function r(i) {
if (t != null && n.length >= t || !i) return n;
if (rK(i) && i.scrollingElement != null && !n.includes(i.scrollingElement)) return n.push(i.scrollingElement), n;
if (!iK(i) || aK(i) || n.includes(i)) return n;
let a = nK(e).getComputedStyle(i);
return i !== e && lq(i, a) && n.push(i), cq(i, a) ? n : r(i.parentNode);
}
return e ? r(e) : n;
}
function dq(e) {
let [t] = uq(e, 1);
return t ?? null;
}
function fq(e) {
return !$G || !e ? null : eK(e) ? e : tK(e) ? rK(e) || e === oK(e).scrollingElement ? window : iK(e) ? e : null : null;
}
function pq(e) {
return eK(e) ? e.scrollX : e.scrollLeft;
}
function mq(e) {
return eK(e) ? e.scrollY : e.scrollTop;
}
function hq(e) {
return {
x: pq(e),
y: mq(e)
};
}
var gq;
(function(e) {
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
})(gq ||= {});
function _q(e) {
return !$G || !e ? !1 : e === document.scrollingElement;
}
function vq(e) {
let t = {
x: 0,
y: 0
}, n = _q(e) ? {
height: window.innerHeight,
width: window.innerWidth
} : {
height: e.clientHeight,
width: e.clientWidth
}, r = {
x: e.scrollWidth - n.width,
y: e.scrollHeight - n.height
};
return {
isTop: e.scrollTop <= t.y,
isLeft: e.scrollLeft <= t.x,
isBottom: e.scrollTop >= r.y,
isRight: e.scrollLeft >= r.x,
maxScroll: r,
minScroll: t
};
}
var yq = {
x: .2,
y: .2
};
function bq(e, t, n, r, i) {
let { top: a, left: o, right: s, bottom: c } = n;
r === void 0 && (r = 10), i === void 0 && (i = yq);
let { isTop: l, isBottom: u, isLeft: d, isRight: f } = vq(e), p = {
x: 0,
y: 0
}, m = {
x: 0,
y: 0
}, h = {
height: t.height * i.y,
width: t.width * i.x
};
return !l && a <= t.top + h.height ? (p.y = gq.Backward, m.y = r * Math.abs((t.top + h.height - a) / h.height)) : !u && c >= t.bottom - h.height && (p.y = gq.Forward, m.y = r * Math.abs((t.bottom - h.height - c) / h.height)), !f && s >= t.right - h.width ? (p.x = gq.Forward, m.x = r * Math.abs((t.right - h.width - s) / h.width)) : !d && o <= t.left + h.width && (p.x = gq.Backward, m.x = r * Math.abs((t.left + h.width - o) / h.width)), {
direction: p,
speed: m
};
}
function xq(e) {
if (e === document.scrollingElement) {
let { innerWidth: e, innerHeight: t } = window;
return {
top: 0,
left: 0,
right: e,
bottom: t,
width: e,
height: t
};
}
let { top: t, left: n, right: r, bottom: i } = e.getBoundingClientRect();
return {
top: t,
left: n,
right: r,
bottom: i,
width: e.clientWidth,
height: e.clientHeight
};
}
function Sq(e) {
return e.reduce((e, t) => _K(e, hq(t)), BK);
}
function Cq(e) {
return e.reduce((e, t) => e + pq(t), 0);
}
function wq(e) {
return e.reduce((e, t) => e + mq(t), 0);
}
function Tq(e, t) {
if (t === void 0 && (t = aq), !e) return;
let { top: n, left: r, bottom: i, right: a } = t(e);
dq(e) && (i <= 0 || a <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
block: "center",
inline: "center"
});
}
var Eq = [[
"x",
["left", "right"],
Cq
], [
"y",
["top", "bottom"],
wq
]], Dq = class {
constructor(e, t) {
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
let n = uq(t), r = Sq(n);
this.rect = { ...e }, this.width = e.width, this.height = e.height;
for (let [e, t, i] of Eq) for (let a of t) Object.defineProperty(this, a, {
get: () => {
let t = i(n), o = r[e] - t;
return this.rect[a] + o;
},
enumerable: !0
});
Object.defineProperty(this, "rect", { enumerable: !1 });
}
}, Oq = class {
constructor(e) {
this.target = void 0, this.listeners = [], this.removeAll = () => {
this.listeners.forEach((e) => this.target?.removeEventListener(...e));
}, this.target = e;
}
add(e, t, n) {
var r;
(r = this.target) == null || r.addEventListener(e, t, n), this.listeners.push([
e,
t,
n
]);
}
};
function kq(e) {
let { EventTarget: t } = nK(e);
return e instanceof t ? e : oK(e);
}
function Aq(e, t) {
let n = Math.abs(e.x), r = Math.abs(e.y);
return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t && r > t.y;
}
var jq;
(function(e) {
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
})(jq ||= {});
function Mq(e) {
e.preventDefault();
}
function Nq(e) {
e.stopPropagation();
}
var Pq;
(function(e) {
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
})(Pq ||= {});
var Fq = {
start: [Pq.Space, Pq.Enter],
cancel: [Pq.Esc],
end: [
Pq.Space,
Pq.Enter,
Pq.Tab
]
}, Iq = (e, t) => {
let { currentCoordinates: n } = t;
switch (e.code) {
case Pq.Right: return {
...n,
x: n.x + 25
};
case Pq.Left: return {
...n,
x: n.x - 25
};
case Pq.Down: return {
...n,
y: n.y + 25
};
case Pq.Up: return {
...n,
y: n.y - 25
};
}
}, Lq = class {
constructor(e) {
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = e;
let { event: { target: t } } = e;
this.props = e, this.listeners = new Oq(oK(t)), this.windowListeners = new Oq(nK(t)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
}
attach() {
this.handleStart(), this.windowListeners.add(jq.Resize, this.handleCancel), this.windowListeners.add(jq.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(jq.Keydown, this.handleKeyDown));
}
handleStart() {
let { activeNode: e, onStart: t } = this.props, n = e.node.current;
n && Tq(n), t(BK);
}
handleKeyDown(e) {
if (bK(e)) {
let { active: t, context: n, options: r } = this.props, { keyboardCodes: i = Fq, coordinateGetter: a = Iq, scrollBehavior: o = "smooth" } = r, { code: s } = e;
if (i.end.includes(s)) {
this.handleEnd(e);
return;
}
if (i.cancel.includes(s)) {
this.handleCancel(e);
return;
}
let { collisionRect: c } = n.current, l = c ? {
x: c.left,
y: c.top
} : BK;
this.referenceCoordinates ||= l;
let u = a(e, {
active: t,
context: n.current,
currentCoordinates: l
});
if (u) {
let t = vK(u, l), r = {
x: 0,
y: 0
}, { scrollableAncestors: i } = n.current;
for (let n of i) {
let i = e.code, { isTop: a, isRight: s, isLeft: c, isBottom: l, maxScroll: d, minScroll: f } = vq(n), p = xq(n), m = {
x: Math.min(i === Pq.Right ? p.right - p.width / 2 : p.right, Math.max(i === Pq.Right ? p.left : p.left + p.width / 2, u.x)),
y: Math.min(i === Pq.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(i === Pq.Down ? p.top : p.top + p.height / 2, u.y))
}, h = i === Pq.Right && !s || i === Pq.Left && !c, g = i === Pq.Down && !l || i === Pq.Up && !a;
if (h && m.x !== u.x) {
let e = n.scrollLeft + t.x, a = i === Pq.Right && e <= d.x || i === Pq.Left && e >= f.x;
if (a && !t.y) {
n.scrollTo({
left: e,
behavior: o
});
return;
}
r.x = a ? n.scrollLeft - e : i === Pq.Right ? n.scrollLeft - d.x : n.scrollLeft - f.x, r.x && n.scrollBy({
left: -r.x,
behavior: o
});
break;
}
if (g && m.y !== u.y) {
let e = n.scrollTop + t.y, a = i === Pq.Down && e <= d.y || i === Pq.Up && e >= f.y;
if (a && !t.x) {
n.scrollTo({
top: e,
behavior: o
});
return;
}
r.y = a ? n.scrollTop - e : i === Pq.Down ? n.scrollTop - d.y : n.scrollTop - f.y, r.y && n.scrollBy({
top: -r.y,
behavior: o
});
break;
}
}
this.handleMove(e, _K(vK(u, this.referenceCoordinates), r));
}
}
}
handleMove(e, t) {
let { onMove: n } = this.props;
e.preventDefault(), n(t);
}
handleEnd(e) {
let { onEnd: t } = this.props;
e.preventDefault(), this.detach(), t();
}
handleCancel(e) {
let { onCancel: t } = this.props;
e.preventDefault(), this.detach(), t();
}
detach() {
this.listeners.removeAll(), this.windowListeners.removeAll();
}
};
Lq.activators = [{
eventName: "onKeyDown",
handler: (e, t, n) => {
let { keyboardCodes: r = Fq, onActivation: i } = t, { active: a } = n, { code: o } = e.nativeEvent;
if (r.start.includes(o)) {
let t = a.activatorNode.current;
return t && e.target !== t ? !1 : (e.preventDefault(), i?.({ event: e.nativeEvent }), !0);
}
return !1;
}
}];
function Rq(e) {
return !!(e && "distance" in e);
}
function zq(e) {
return !!(e && "delay" in e);
}
var Bq = class {
constructor(e, t, n) {
n === void 0 && (n = kq(e.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = e, this.events = t;
let { event: r } = e, { target: i } = r;
this.props = e, this.events = t, this.document = oK(i), this.documentListeners = new Oq(this.document), this.listeners = new Oq(n), this.windowListeners = new Oq(nK(i)), this.initialCoordinates = SK(r) ?? BK, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
}
attach() {
let { events: e, props: { options: { activationConstraint: t, bypassActivationConstraint: n } } } = this;
if (this.listeners.add(e.move.name, this.handleMove, { passive: !1 }), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(jq.Resize, this.handleCancel), this.windowListeners.add(jq.DragStart, Mq), this.windowListeners.add(jq.VisibilityChange, this.handleCancel), this.windowListeners.add(jq.ContextMenu, Mq), this.documentListeners.add(jq.Keydown, this.handleKeydown), t) {
if (n != null && n({
event: this.props.event,
activeNode: this.props.activeNode,
options: this.props.options
})) return this.handleStart();
if (zq(t)) {
this.timeoutId = setTimeout(this.handleStart, t.delay), this.handlePending(t);
return;
}
if (Rq(t)) {
this.handlePending(t);
return;
}
}
this.handleStart();
}
detach() {
this.listeners.removeAll(), this.windowListeners.removeAll(), setTimeout(this.documentListeners.removeAll, 50), this.timeoutId !== null && (clearTimeout(this.timeoutId), this.timeoutId = null);
}
handlePending(e, t) {
let { active: n, onPending: r } = this.props;
r(n, e, this.initialCoordinates, t);
}
handleStart() {
let { initialCoordinates: e } = this, { onStart: t } = this.props;
e && (this.activated = !0, this.documentListeners.add(jq.Click, Nq, { capture: !0 }), this.removeTextSelection(), this.documentListeners.add(jq.SelectionChange, this.removeTextSelection), t(e));
}
handleMove(e) {
let { activated: t, initialCoordinates: n, props: r } = this, { onMove: i, options: { activationConstraint: a } } = r;
if (!n) return;
let o = SK(e) ?? BK, s = vK(n, o);
if (!t && a) {
if (Rq(a)) {
if (a.tolerance != null && Aq(s, a.tolerance)) return this.handleCancel();
if (Aq(s, a.distance)) return this.handleStart();
}
if (zq(a) && Aq(s, a.tolerance)) return this.handleCancel();
this.handlePending(a, s);
} else e.cancelable && e.preventDefault(), i(o);
}
handleEnd() {
let { onAbort: e, onEnd: t } = this.props;
this.detach(), this.activated || e(this.props.active), t();
}
handleCancel() {
let { onAbort: e, onCancel: t } = this.props;
this.detach(), this.activated || e(this.props.active), t();
}
handleKeydown(e) {
e.code === Pq.Esc && this.handleCancel();
}
removeTextSelection() {
var e;
(e = this.document.getSelection()) == null || e.removeAllRanges();
}
}, Vq = {
cancel: { name: "pointercancel" },
move: { name: "pointermove" },
end: { name: "pointerup" }
}, Hq = class extends Bq {
constructor(e) {
let { event: t } = e, n = oK(t.target);
super(e, Vq, n);
}
};
Hq.activators = [{
eventName: "onPointerDown",
handler: (e, t) => {
let { nativeEvent: n } = e, { onActivation: r } = t;
return !n.isPrimary || n.button !== 0 ? !1 : (r?.({ event: n }), !0);
}
}];
var Uq = {
move: { name: "mousemove" },
end: { name: "mouseup" }
}, Wq;
(function(e) {
e[e.RightClick = 2] = "RightClick";
})(Wq ||= {});
var Gq = class extends Bq {
constructor(e) {
super(e, Uq, oK(e.event.target));
}
};
Gq.activators = [{
eventName: "onMouseDown",
handler: (e, t) => {
let { nativeEvent: n } = e, { onActivation: r } = t;
return n.button !== Wq.RightClick && (r?.({ event: n }), !0);
}
}];
var Kq = {
cancel: { name: "touchcancel" },
move: { name: "touchmove" },
end: { name: "touchend" }
}, qq = class extends Bq {
constructor(e) {
super(e, Kq);
}
static setup() {
return window.addEventListener(Kq.move.name, e, {
capture: !1,
passive: !1
}), function() {
window.removeEventListener(Kq.move.name, e);
};
function e() {}
}
};
qq.activators = [{
eventName: "onTouchStart",
handler: (e, t) => {
let { nativeEvent: n } = e, { onActivation: r } = t, { touches: i } = n;
return i.length > 1 ? !1 : (r?.({ event: n }), !0);
}
}];
var Jq;
(function(e) {
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
})(Jq ||= {});
var Yq;
(function(e) {
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
})(Yq ||= {});
function Xq(e) {
let { acceleration: t, activator: n = Jq.Pointer, canScroll: r, draggingRect: i, enabled: a, interval: o = 5, order: s = Yq.TreeOrder, pointerCoordinates: c, scrollableAncestors: l, scrollableAncestorRects: u, delta: d, threshold: f } = e, p = Qq({
delta: d,
disabled: !a
}), [m, h] = lK(), g = V({
x: 0,
y: 0
}), _ = V({
x: 0,
y: 0
}), v = B(() => {
switch (n) {
case Jq.Pointer: return c ? {
top: c.y,
bottom: c.y,
left: c.x,
right: c.x
} : null;
case Jq.DraggableRect: return i;
}
}, [
n,
i,
c
]), y = V(null), b = R(() => {
let e = y.current;
if (!e) return;
let t = g.current.x * _.current.x, n = g.current.y * _.current.y;
e.scrollBy(t, n);
}, []), x = B(() => s === Yq.TreeOrder ? [...l].reverse() : l, [s, l]);
z(() => {
if (!a || !l.length || !v) h();
else {
for (let e of x) {
if (r?.(e) === !1) continue;
let n = l.indexOf(e), i = u[n];
if (!i) continue;
let { direction: a, speed: s } = bq(e, i, v, t, f);
for (let e of ["x", "y"]) p[e][a[e]] || (s[e] = 0, a[e] = 0);
if (s.x > 0 || s.y > 0) {
h(), y.current = e, m(b, o), g.current = s, _.current = a;
return;
}
}
g.current = {
x: 0,
y: 0
}, _.current = {
x: 0,
y: 0
}, h();
}
}, [
t,
b,
r,
h,
a,
o,
JSON.stringify(v),
JSON.stringify(p),
m,
l,
x,
u,
JSON.stringify(f)
]);
}
var Zq = {
x: {
[gq.Backward]: !1,
[gq.Forward]: !1
},
y: {
[gq.Backward]: !1,
[gq.Forward]: !1
}
};
function Qq(e) {
let { delta: t, disabled: n } = e, r = pK(t);
return dK((e) => {
if (n || !r || !e) return Zq;
let i = {
x: Math.sign(t.x - r.x),
y: Math.sign(t.y - r.y)
};
return {
x: {
[gq.Backward]: e.x[gq.Backward] || i.x === -1,
[gq.Forward]: e.x[gq.Forward] || i.x === 1
},
y: {
[gq.Backward]: e.y[gq.Backward] || i.y === -1,
[gq.Forward]: e.y[gq.Forward] || i.y === 1
}
};
}, [
n,
t,
r
]);
}
function $q(e, t) {
let n = t == null ? void 0 : e.get(t), r = n ? n.node.current : null;
return dK((e) => t == null ? null : r ?? e ?? null, [r, t]);
}
function eJ(e, t) {
return B(() => e.reduce((e, n) => {
let { sensor: r } = n, i = r.activators.map((e) => ({
eventName: e.eventName,
handler: t(e.handler, n)
}));
return [...e, ...i];
}, []), [e, t]);
}
var tJ;
(function(e) {
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
})(tJ ||= {});
var nJ;
(function(e) {
e.Optimized = "optimized";
})(nJ ||= {});
var rJ = /*#__PURE__*/ new Map();
function iJ(e, t) {
let { dragging: n, dependencies: r, config: i } = t, [a, o] = H(null), { frequency: s, measure: c, strategy: l } = i, u = V(e), d = g(), f = uK(d), p = R(function(e) {
e === void 0 && (e = []), f.current || o((t) => t === null ? e : t.concat(e.filter((e) => !t.includes(e))));
}, [f]), m = V(null), h = dK((t) => {
if (d && !n) return rJ;
if (!t || t === rJ || u.current !== e || a != null) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n) continue;
if (a && a.length > 0 && !a.includes(n.id) && n.rect.current) {
t.set(n.id, n.rect.current);
continue;
}
let e = n.node.current, r = e ? new Dq(c(e), e) : null;
n.rect.current = r, r && t.set(n.id, r);
}
return t;
}
return t;
}, [
e,
a,
n,
d,
c
]);
return z(() => {
u.current = e;
}, [e]), z(() => {
d || p();
}, [n, d]), z(() => {
a && a.length > 0 && o(null);
}, [JSON.stringify(a)]), z(() => {
d || typeof s != "number" || m.current !== null || (m.current = setTimeout(() => {
p(), m.current = null;
}, s));
}, [
s,
d,
p,
...r
]), {
droppableRects: h,
measureDroppableContainers: p,
measuringScheduled: a != null
};
function g() {
switch (l) {
case tJ.Always: return !1;
case tJ.BeforeDragging: return n;
default: return !n;
}
}
}
function aJ(e, t) {
return dK((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
}
function oJ(e, t) {
return aJ(e, t);
}
function sJ(e) {
let { callback: t, disabled: n } = e, r = cK(t), i = B(() => {
if (n || typeof window > "u" || window.MutationObserver === void 0) return;
let { MutationObserver: e } = window;
return new e(r);
}, [r, n]);
return z(() => () => i?.disconnect(), [i]), i;
}
function cJ(e) {
let { callback: t, disabled: n } = e, r = cK(t), i = B(() => {
if (n || typeof window > "u" || window.ResizeObserver === void 0) return;
let { ResizeObserver: e } = window;
return new e(r);
}, [n]);
return z(() => () => i?.disconnect(), [i]), i;
}
function lJ(e) {
return new Dq(aq(e), e);
}
function uJ(e, t, n) {
t === void 0 && (t = lJ);
let [r, i] = H(null);
function a() {
i((r) => {
if (!e) return null;
if (e.isConnected === !1) return r ?? n ?? null;
let i = t(e);
return JSON.stringify(r) === JSON.stringify(i) ? r : i;
});
}
let o = sJ({ callback(t) {
if (e) for (let n of t) {
let { type: t, target: r } = n;
if (t === "childList" && r instanceof HTMLElement && r.contains(e)) {
a();
break;
}
}
} }), s = cJ({ callback: a });
return sK(() => {
a(), e ? (s?.observe(e), o?.observe(document.body, {
childList: !0,
subtree: !0
})) : (s?.disconnect(), o?.disconnect());
}, [e]), r;
}
function dJ(e) {
return $K(e, aJ(e));
}
var fJ = [];
function pJ(e) {
let t = V(e), n = dK((n) => e ? n && n !== fJ && e && t.current && e.parentNode === t.current.parentNode ? n : uq(e) : fJ, [e]);
return z(() => {
t.current = e;
}, [e]), n;
}
function mJ(e) {
let [t, n] = H(null), r = V(e), i = R((e) => {
let t = fq(e.target);
t && n((e) => e ? (e.set(t, hq(t)), new Map(e)) : null);
}, []);
return z(() => {
let t = r.current;
if (e !== t) {
a(t);
let o = e.map((e) => {
let t = fq(e);
return t ? (t.addEventListener("scroll", i, { passive: !0 }), [t, hq(t)]) : null;
}).filter((e) => e != null);
n(o.length ? new Map(o) : null), r.current = e;
}
return () => {
a(e), a(t);
};
function a(e) {
e.forEach((e) => {
fq(e)?.removeEventListener("scroll", i);
});
}
}, [i, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((e, t) => _K(e, t), BK) : Sq(e) : BK, [e, t]);
}
function hJ(e, t) {
t === void 0 && (t = []);
let n = V(null);
return z(() => {
n.current = null;
}, t), z(() => {
let t = e !== BK;
t && !n.current && (n.current = e), !t && n.current && (n.current = null);
}, [e]), n.current ? vK(e, n.current) : BK;
}
function gJ(e) {
z(() => {
if (!$G) return;
let t = e.map((e) => {
let { sensor: t } = e;
return t.setup == null ? void 0 : t.setup();
});
return () => {
for (let e of t) e?.();
};
}, e.map((e) => {
let { sensor: t } = e;
return t;
}));
}
function _J(e, t) {
return B(() => e.reduce((e, n) => {
let { eventName: r, handler: i } = n;
return e[r] = (e) => {
i(e, t);
}, e;
}, {}), [e, t]);
}
function vJ(e) {
return B(() => e ? sq(e) : null, [e]);
}
var yJ = [];
function bJ(e, t) {
t === void 0 && (t = aq);
let [n] = e, r = vJ(n ? nK(n) : null), [i, a] = H(yJ);
function o() {
a(() => e.length ? e.map((e) => _q(e) ? r : new Dq(t(e), e)) : yJ);
}
let s = cJ({ callback: o });
return sK(() => {
s?.disconnect(), o(), e.forEach((e) => s?.observe(e));
}, [e]), i;
}
function xJ(e) {
if (!e) return null;
if (e.children.length > 1) return e;
let t = e.children[0];
return iK(t) ? t : e;
}
function SJ(e) {
let { measure: t } = e, [n, r] = H(null), i = cJ({ callback: R((e) => {
for (let { target: n } of e) if (iK(n)) {
r((e) => {
let r = t(n);
return e ? {
...e,
width: r.width,
height: r.height
} : r;
});
break;
}
}, [t]) }), [a, o] = fK(R((e) => {
let n = xJ(e);
i?.disconnect(), n && i?.observe(n), r(n ? t(n) : null);
}, [t, i]));
return B(() => ({
nodeRef: a,
rect: n,
setRef: o
}), [
n,
a,
o
]);
}
var CJ = [{
sensor: Hq,
options: {}
}, {
sensor: Lq,
options: {}
}], wJ = { current: {} }, TJ = {
draggable: { measure: oq },
droppable: {
measure: oq,
strategy: tJ.WhileDragging,
frequency: nJ.Optimized
},
dragOverlay: { measure: aq }
}, EJ = class extends Map {
get(e) {
return e == null ? void 0 : super.get(e) ?? void 0;
}
toArray() {
return Array.from(this.values());
}
getEnabled() {
return this.toArray().filter((e) => {
let { disabled: t } = e;
return !t;
});
}
getNodeFor(e) {
return this.get(e)?.node.current ?? void 0;
}
}, DJ = {
activatorEvent: null,
active: null,
activeNode: null,
activeNodeRect: null,
collisions: null,
containerNodeRect: null,
draggableNodes: /*#__PURE__*/ new Map(),
droppableRects: /*#__PURE__*/ new Map(),
droppableContainers: /*#__PURE__*/ new EJ(),
over: null,
dragOverlay: {
nodeRef: { current: null },
rect: null,
setRef: LK
},
scrollableAncestors: [],
scrollableAncestorRects: [],
measuringConfiguration: TJ,
measureDroppableContainers: LK,
windowRect: null,
measuringScheduled: !1
}, OJ = {
activatorEvent: null,
activators: [],
active: null,
activeNodeRect: null,
ariaDescribedById: { draggable: "" },
dispatch: LK,
draggableNodes: /*#__PURE__*/ new Map(),
over: null,
measureDroppableContainers: LK
}, kJ = /*#__PURE__*/ un(OJ), AJ = /*#__PURE__*/ un(DJ);
function jJ() {
return {
draggable: {
active: null,
initialCoordinates: {
x: 0,
y: 0
},
nodes: /* @__PURE__ */ new Map(),
translate: {
x: 0,
y: 0
}
},
droppable: { containers: new EJ() }
};
}
function MJ(e, t) {
switch (t.type) {
case IK.DragStart: return {
...e,
draggable: {
...e.draggable,
initialCoordinates: t.initialCoordinates,
active: t.active
}
};
case IK.DragMove: return e.draggable.active == null ? e : {
...e,
draggable: {
...e.draggable,
translate: {
x: t.coordinates.x - e.draggable.initialCoordinates.x,
y: t.coordinates.y - e.draggable.initialCoordinates.y
}
}
};
case IK.DragEnd:
case IK.DragCancel: return {
...e,
draggable: {
...e.draggable,
active: null,
initialCoordinates: {
x: 0,
y: 0
},
translate: {
x: 0,
y: 0
}
}
};
case IK.RegisterDroppable: {
let { element: n } = t, { id: r } = n, i = new EJ(e.droppable.containers);
return i.set(r, n), {
...e,
droppable: {
...e.droppable,
containers: i
}
};
}
case IK.SetDroppableDisabled: {
let { id: n, key: r, disabled: i } = t, a = e.droppable.containers.get(n);
if (!a || r !== a.key) return e;
let o = new EJ(e.droppable.containers);
return o.set(n, {
...a,
disabled: i
}), {
...e,
droppable: {
...e.droppable,
containers: o
}
};
}
case IK.UnregisterDroppable: {
let { id: n, key: r } = t, i = e.droppable.containers.get(n);
if (!i || r !== i.key) return e;
let a = new EJ(e.droppable.containers);
return a.delete(n), {
...e,
droppable: {
...e.droppable,
containers: a
}
};
}
default: return e;
}
}
function NJ(e) {
let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = mn(kJ), a = pK(r), o = pK(n?.id);
return z(() => {
if (!t && !r && a && o != null) {
if (!bK(a) || document.activeElement === a.target) return;
let e = i.get(o);
if (!e) return;
let { activatorNode: t, node: n } = e;
if (!t.current && !n.current) return;
requestAnimationFrame(() => {
for (let e of [t.current, n.current]) {
if (!e) continue;
let t = TK(e);
if (t) {
t.focus();
break;
}
}
});
}
}, [
r,
t,
i,
o,
a
]), null;
}
function PJ(e, t) {
let { transform: n, ...r } = t;
return e != null && e.length ? e.reduce((e, t) => t({
transform: e,
...r
}), n) : n;
}
function FJ(e) {
return B(() => ({
draggable: {
...TJ.draggable,
...e?.draggable
},
droppable: {
...TJ.droppable,
...e?.droppable
},
dragOverlay: {
...TJ.dragOverlay,
...e?.dragOverlay
}
}), [
e?.draggable,
e?.droppable,
e?.dragOverlay
]);
}
function IJ(e) {
let { activeNode: t, measure: n, initialRect: r, config: i = !0 } = e, a = V(!1), { x: o, y: s } = typeof i == "boolean" ? {
x: i,
y: i
} : i;
sK(() => {
if (!o && !s || !t) {
a.current = !1;
return;
}
if (a.current || !r) return;
let e = t?.node.current;
if (!e || e.isConnected === !1) return;
let i = $K(n(e), r);
if (o || (i.x = 0), s || (i.y = 0), a.current = !0, Math.abs(i.x) > 0 || Math.abs(i.y) > 0) {
let t = dq(e);
t && t.scrollBy({
top: i.y,
left: i.x
});
}
}, [
t,
o,
s,
r,
n
]);
}
var LJ = /*#__PURE__*/ un({
...BK,
scaleX: 1,
scaleY: 1
}), RJ;
(function(e) {
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
})(RJ ||= {});
var zJ = /*#__PURE__*/ pn(function(e) {
let { id: t, accessibility: n, autoScroll: r = !0, children: i, sensors: a = CJ, collisionDetection: o = ZK, measuring: s, modifiers: c, ...l } = e, [u, d] = bn(MJ, void 0, jJ), [f, p] = MK(), [m, h] = H(RJ.Uninitialized), g = m === RJ.Initialized, { draggable: { active: _, nodes: v, translate: y }, droppable: { containers: b } } = u, x = _ == null ? null : v.get(_), S = V({
initial: null,
translated: null
}), C = B(() => _ == null ? null : {
id: _,
data: x?.data ?? wJ,
rect: S
}, [_, x]), w = V(null), [T, E] = H(null), [D, O] = H(null), k = uK(l, Object.values(l)), A = hK("DndDescribedBy", t), ee = B(() => b.getEnabled(), [b]), j = FJ(s), { droppableRects: te, measureDroppableContainers: M, measuringScheduled: ne } = iJ(ee, {
dragging: g,
dependencies: [y.x, y.y],
config: j.droppable
}), N = $q(v, _), re = B(() => D ? SK(D) : null, [D]), ie = Pe(), ae = oJ(N, j.draggable.measure);
IJ({
activeNode: _ == null ? null : v.get(_),
config: ie.layoutShiftCompensation,
initialRect: ae,
measure: j.draggable.measure
});
let oe = uJ(N, j.draggable.measure, ae), se = uJ(N ? N.parentElement : null), ce = V({
activatorEvent: null,
active: null,
activeNode: N,
collisionRect: null,
collisions: null,
droppableRects: te,
draggableNodes: v,
draggingNode: null,
draggingNodeRect: null,
droppableContainers: b,
over: null,
scrollableAncestors: [],
scrollAdjustedTranslate: null
}), le = b.getNodeFor(ce.current.over?.id), ue = SJ({ measure: j.dragOverlay.measure }), P = ue.nodeRef.current ?? N, de = g ? ue.rect ?? oe : null, fe = !!(ue.nodeRef.current && ue.rect), pe = dJ(fe ? null : oe), me = vJ(P ? nK(P) : null), he = pJ(g ? le ?? N : null), ge = bJ(he), _e = PJ(c, {
transform: {
x: y.x - pe.x,
y: y.y - pe.y,
scaleX: 1,
scaleY: 1
},
activatorEvent: D,
active: C,
activeNodeRect: oe,
containerNodeRect: se,
draggingNodeRect: de,
over: ce.current.over,
overlayNodeRect: ue.rect,
scrollableAncestors: he,
scrollableAncestorRects: ge,
windowRect: me
}), ve = re ? _K(re, y) : null, ye = mJ(he), be = hJ(ye), xe = hJ(ye, [oe]), Se = _K(_e, be), Ce = de ? tq(de, _e) : null, we = C && Ce ? o({
active: C,
collisionRect: Ce,
droppableRects: te,
droppableContainers: ee,
pointerCoordinates: ve
}) : null, Te = KK(we, "id"), [Ee, De] = H(null), Oe = QK(fe ? _e : _K(_e, xe), Ee?.rect ?? null, oe), ke = V(null), Ae = R((e, t) => {
let { sensor: n, options: r } = t;
if (w.current == null) return;
let i = v.get(w.current);
if (!i) return;
let a = e.nativeEvent, o = new n({
active: w.current,
activeNode: i,
event: a,
options: r,
context: ce,
onAbort(e) {
if (!v.get(e)) return;
let { onDragAbort: t } = k.current, n = { id: e };
t?.(n), f({
type: "onDragAbort",
event: n
});
},
onPending(e, t, n, r) {
if (!v.get(e)) return;
let { onDragPending: i } = k.current, a = {
id: e,
constraint: t,
initialCoordinates: n,
offset: r
};
i?.(a), f({
type: "onDragPending",
event: a
});
},
onStart(e) {
let t = w.current;
if (t == null) return;
let n = v.get(t);
if (!n) return;
let { onDragStart: r } = k.current, i = {
activatorEvent: a,
active: {
id: t,
data: n.data,
rect: S
}
};
Tn(() => {
r?.(i), h(RJ.Initializing), d({
type: IK.DragStart,
initialCoordinates: e,
active: t
}), f({
type: "onDragStart",
event: i
}), E(ke.current), O(a);
});
},
onMove(e) {
d({
type: IK.DragMove,
coordinates: e
});
},
onEnd: s(IK.DragEnd),
onCancel: s(IK.DragCancel)
});
ke.current = o;
function s(e) {
return async function() {
let { active: t, collisions: n, over: r, scrollAdjustedTranslate: i } = ce.current, o = null;
if (t && i) {
let { cancelDrop: s } = k.current;
o = {
activatorEvent: a,
active: t,
collisions: n,
delta: i,
over: r
}, e === IK.DragEnd && typeof s == "function" && await Promise.resolve(s(o)) && (e = IK.DragCancel);
}
w.current = null, Tn(() => {
d({ type: e }), h(RJ.Uninitialized), De(null), E(null), O(null), ke.current = null;
let t = e === IK.DragEnd ? "onDragEnd" : "onDragCancel";
if (o) {
let e = k.current[t];
e?.(o), f({
type: t,
event: o
});
}
});
};
}
}, [v]), je = eJ(a, R((e, t) => (n, r) => {
let i = n.nativeEvent, a = v.get(r);
if (w.current !== null || !a || i.dndKit || i.defaultPrevented) return;
let o = { active: a };
e(n, t.options, o) === !0 && (i.dndKit = { capturedBy: t.sensor }, w.current = r, Ae(n, t));
}, [v, Ae]));
gJ(a), sK(() => {
oe && m === RJ.Initializing && h(RJ.Initialized);
}, [oe, m]), z(() => {
let { onDragMove: e } = k.current, { active: t, activatorEvent: n, collisions: r, over: i } = ce.current;
if (!t || !n) return;
let a = {
active: t,
activatorEvent: n,
collisions: r,
delta: {
x: Se.x,
y: Se.y
},
over: i
};
Tn(() => {
e?.(a), f({
type: "onDragMove",
event: a
});
});
}, [Se.x, Se.y]), z(() => {
let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } = ce.current;
if (!e || w.current == null || !t || !i) return;
let { onDragOver: a } = k.current, o = r.get(Te), s = o && o.rect.current ? {
id: o.id,
rect: o.rect.current,
data: o.data,
disabled: o.disabled
} : null, c = {
active: e,
activatorEvent: t,
collisions: n,
delta: {
x: i.x,
y: i.y
},
over: s
};
Tn(() => {
De(s), a?.(c), f({
type: "onDragOver",
event: c
});
});
}, [Te]), sK(() => {
ce.current = {
activatorEvent: D,
active: C,
activeNode: N,
collisionRect: Ce,
collisions: we,
droppableRects: te,
draggableNodes: v,
draggingNode: P,
draggingNodeRect: de,
droppableContainers: b,
over: Ee,
scrollableAncestors: he,
scrollAdjustedTranslate: Se
}, S.current = {
initial: de,
translated: Ce
};
}, [
C,
N,
we,
Ce,
v,
P,
de,
te,
b,
Ee,
he,
Se
]), Xq({
...ie,
delta: y,
draggingRect: Ce,
pointerCoordinates: ve,
scrollableAncestors: he,
scrollableAncestorRects: ge
});
let Me = B(() => ({
active: C,
activeNode: N,
activeNodeRect: oe,
activatorEvent: D,
collisions: we,
containerNodeRect: se,
dragOverlay: ue,
draggableNodes: v,
droppableContainers: b,
droppableRects: te,
over: Ee,
measureDroppableContainers: M,
scrollableAncestors: he,
scrollableAncestorRects: ge,
measuringConfiguration: j,
measuringScheduled: ne,
windowRect: me
}), [
C,
N,
oe,
D,
we,
se,
ue,
v,
b,
te,
Ee,
M,
he,
ge,
j,
ne,
me
]), Ne = B(() => ({
activatorEvent: D,
activators: je,
active: C,
activeNodeRect: oe,
ariaDescribedById: { draggable: A },
dispatch: d,
draggableNodes: v,
over: Ee,
measureDroppableContainers: M
}), [
D,
je,
C,
oe,
d,
A,
v,
Ee,
M
]);
return L.createElement(AK.Provider, { value: p }, L.createElement(kJ.Provider, { value: Ne }, L.createElement(AJ.Provider, { value: Me }, L.createElement(LJ.Provider, { value: Oe }, i)), L.createElement(NJ, { disabled: n?.restoreFocus === !1 })), L.createElement(FK, {
...n,
hiddenTextDescribedById: A
}));
function Pe() {
let e = T?.autoScrollEnabled === !1, t = typeof r == "object" ? r.enabled === !1 : r === !1, n = g && !e && !t;
return typeof r == "object" ? {
...r,
enabled: n
} : { enabled: n };
}
}), BJ = /*#__PURE__*/ un(null), VJ = "button", HJ = "Draggable";
function UJ(e) {
let { id: t, data: n, disabled: r = !1, attributes: i } = e, a = hK(HJ), { activators: o, activatorEvent: s, active: c, activeNodeRect: l, ariaDescribedById: u, draggableNodes: d, over: f } = mn(kJ), { role: p = VJ, roleDescription: m = "draggable", tabIndex: h = 0 } = i ?? {}, g = c?.id === t, _ = mn(g ? LJ : BJ), [v, y] = fK(), [b, x] = fK(), S = _J(o, t), C = uK(n);
return sK(() => (d.set(t, {
id: t,
key: a,
node: v,
activatorNode: b,
data: C
}), () => {
let e = d.get(t);
e && e.key === a && d.delete(t);
}), [d, t]), {
active: c,
activatorEvent: s,
activeNodeRect: l,
attributes: B(() => ({
role: p,
tabIndex: h,
"aria-disabled": r,
"aria-pressed": g && p === VJ ? !0 : void 0,
"aria-roledescription": m,
"aria-describedby": u.draggable
}), [
r,
p,
h,
g,
m,
u.draggable
]),
isDragging: g,
listeners: r ? void 0 : S,
node: v,
over: f,
setNodeRef: y,
setActivatorNodeRef: x,
transform: _
};
}
function WJ() {
return mn(AJ);
}
var GJ = "Droppable", KJ = { timeout: 25 };
function qJ(e) {
let { data: t, disabled: n = !1, id: r, resizeObserverConfig: i } = e, a = hK(GJ), { active: o, dispatch: s, over: c, measureDroppableContainers: l } = mn(kJ), u = V({ disabled: n }), d = V(!1), f = V(null), p = V(null), { disabled: m, updateMeasurementsFor: h, timeout: g } = {
...KJ,
...i
}, _ = uK(h ?? r), v = cJ({
callback: R(() => {
d.current ? (p.current != null && clearTimeout(p.current), p.current = setTimeout(() => {
l(Array.isArray(_.current) ? _.current : [_.current]), p.current = null;
}, g)) : d.current = !0;
}, [g]),
disabled: m || !o
}), [y, b] = fK(R((e, t) => {
v && (t && (v.unobserve(t), d.current = !1), e && v.observe(e));
}, [v])), x = uK(t);
return z(() => {
v && y.current && (v.disconnect(), d.current = !1, v.observe(y.current));
}, [y, v]), z(() => (s({
type: IK.RegisterDroppable,
element: {
id: r,
key: a,
disabled: n,
node: y,
rect: f,
data: x
}
}), () => s({
type: IK.UnregisterDroppable,
key: a,
id: r
})), [r]), z(() => {
n !== u.current.disabled && (s({
type: IK.SetDroppableDisabled,
id: r,
key: a,
disabled: n
}), u.current.disabled = n);
}, [
r,
a,
n,
s
]), {
active: o,
rect: f,
isOver: c?.id === r,
node: y,
over: c,
setNodeRef: b
};
}
function JJ(e) {
let { animation: t, children: n } = e, [r, i] = H(null), [a, o] = H(null), s = pK(n);
return !n && !r && s && i(s), sK(() => {
if (!a) return;
let e = r?.key, n = r?.props.id;
e == null || n == null ? i(null) : Promise.resolve(t(n, a)).then(() => {
i(null);
});
}, [
t,
r,
a
]), L.createElement(L.Fragment, null, n, r ? ln(r, { ref: o }) : null);
}
var YJ = {
x: 0,
y: 0,
scaleX: 1,
scaleY: 1
};
function XJ(e) {
let { children: t } = e;
return L.createElement(kJ.Provider, { value: OJ }, L.createElement(LJ.Provider, { value: YJ }, t));
}
var ZJ = {
position: "fixed",
touchAction: "none"
}, QJ = (e) => bK(e) ? "transform 250ms ease" : void 0, $J = /*#__PURE__*/ dn((e, t) => {
let { as: n, activatorEvent: r, adjustScale: i, children: a, className: o, rect: s, style: c, transform: l, transition: u = QJ } = e;
if (!s) return null;
let d = i ? l : {
...l,
scaleX: 1,
scaleY: 1
}, f = {
...ZJ,
width: s.width,
height: s.height,
top: s.top,
left: s.left,
transform: CK.Transform.toString(d),
transformOrigin: i && r ? HK(r, s) : void 0,
transition: typeof u == "function" ? u(r) : u,
...c
};
return L.createElement(n, {
className: o,
style: f,
ref: t
}, a);
}), eY = (e) => (t) => {
let { active: n, dragOverlay: r } = t, i = {}, { styles: a, className: o } = e;
if (a != null && a.active) for (let [e, t] of Object.entries(a.active)) t !== void 0 && (i[e] = n.node.style.getPropertyValue(e), n.node.style.setProperty(e, t));
if (a != null && a.dragOverlay) for (let [e, t] of Object.entries(a.dragOverlay)) t !== void 0 && r.node.style.setProperty(e, t);
return o != null && o.active && n.node.classList.add(o.active), o != null && o.dragOverlay && r.node.classList.add(o.dragOverlay), function() {
for (let [e, t] of Object.entries(i)) n.node.style.setProperty(e, t);
o != null && o.active && n.node.classList.remove(o.active);
};
}, tY = {
duration: 250,
easing: "ease",
keyframes: (e) => {
let { transform: { initial: t, final: n } } = e;
return [{ transform: CK.Transform.toString(t) }, { transform: CK.Transform.toString(n) }];
},
sideEffects: /*#__PURE__*/ eY({ styles: { active: { opacity: "0" } } })
};
function nY(e) {
let { config: t, draggableNodes: n, droppableContainers: r, measuringConfiguration: i } = e;
return cK((e, a) => {
if (t === null) return;
let o = n.get(e);
if (!o) return;
let s = o.node.current;
if (!s) return;
let c = xJ(a);
if (!c) return;
let { transform: l } = nK(a).getComputedStyle(a), u = nq(l);
if (!u) return;
let d = typeof t == "function" ? t : rY(t);
return Tq(s, i.draggable.measure), d({
active: {
id: e,
data: o.data,
node: s,
rect: i.draggable.measure(s)
},
draggableNodes: n,
dragOverlay: {
node: a,
rect: i.dragOverlay.measure(c)
},
droppableContainers: r,
measuringConfiguration: i,
transform: u
});
});
}
function rY(e) {
let { duration: t, easing: n, sideEffects: r, keyframes: i } = {
...tY,
...e
};
return (e) => {
let { active: a, dragOverlay: o, transform: s, ...c } = e;
if (!t) return;
let l = {
x: o.rect.left - a.rect.left,
y: o.rect.top - a.rect.top
}, u = {
scaleX: s.scaleX === 1 ? 1 : a.rect.width * s.scaleX / o.rect.width,
scaleY: s.scaleY === 1 ? 1 : a.rect.height * s.scaleY / o.rect.height
}, d = {
x: s.x - l.x,
y: s.y - l.y,
...u
}, f = i({
...c,
active: a,
dragOverlay: o,
transform: {
initial: s,
final: d
}
}), [p] = f, m = f[f.length - 1];
if (JSON.stringify(p) === JSON.stringify(m)) return;
let h = r?.({
active: a,
dragOverlay: o,
...c
}), g = o.node.animate(f, {
duration: t,
easing: n,
fill: "forwards"
});
return new Promise((e) => {
g.onfinish = () => {
h?.(), e();
};
});
};
}
var iY = 0;
function aY(e) {
return B(() => {
if (e != null) return iY++, iY;
}, [e]);
}
var oY = /*#__PURE__*/ L.memo((e) => {
let { adjustScale: t = !1, children: n, dropAnimation: r, style: i, transition: a, modifiers: o, wrapperElement: s = "div", className: c, zIndex: l = 999 } = e, { activatorEvent: u, active: d, activeNodeRect: f, containerNodeRect: p, draggableNodes: m, droppableContainers: h, dragOverlay: g, over: _, measuringConfiguration: v, scrollableAncestors: y, scrollableAncestorRects: b, windowRect: x } = WJ(), S = mn(LJ), C = aY(d?.id), w = PJ(o, {
activatorEvent: u,
active: d,
activeNodeRect: f,
containerNodeRect: p,
draggingNodeRect: g.rect,
over: _,
overlayNodeRect: g.rect,
scrollableAncestors: y,
scrollableAncestorRects: b,
transform: S,
windowRect: x
}), T = aJ(f), E = nY({
config: r,
draggableNodes: m,
droppableContainers: h,
measuringConfiguration: v
}), D = T ? g.setRef : void 0;
return L.createElement(XJ, null, L.createElement(JJ, { animation: E }, d && C ? L.createElement($J, {
key: C,
id: d.id,
ref: D,
as: s,
activatorEvent: u,
adjustScale: t,
className: c,
transition: a,
rect: T,
style: {
zIndex: l,
...i
},
transform: w
}, n) : null));
}), sY = (e) => {
let { transform: t } = e;
return {
...t,
y: 0
};
};
function cY(e, t, n) {
let r = { ...e };
return t.top + e.y <= n.top ? r.y = n.top - t.top : t.bottom + e.y >= n.top + n.height && (r.y = n.top + n.height - t.bottom), t.left + e.x <= n.left ? r.x = n.left - t.left : t.right + e.x >= n.left + n.width && (r.x = n.left + n.width - t.right), r;
}
var lY = (e) => {
let { containerNodeRect: t, draggingNodeRect: n, transform: r } = e;
return !n || !t ? r : cY(r, n, t);
}, uY = (e) => {
let { transform: t } = e;
return {
...t,
x: 0
};
};
// ../../../node_modules/.pnpm/@dnd-kit+sortable@10.0.0_@dnd-kit+core@6.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1__react@18.3.1/node_modules/@dnd-kit/sortable/dist/sortable.esm.js
function dY(e, t, n) {
let r = e.slice();
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
}
function fY(e, t) {
return e.reduce((e, n, r) => {
let i = t.get(n);
return i && (e[r] = i), e;
}, Array(e.length));
}
function pY(e) {
return e !== null && e >= 0;
}
function mY(e, t) {
if (e === t) return !0;
if (e.length !== t.length) return !1;
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
}
function hY(e) {
return typeof e == "boolean" ? {
draggable: e,
droppable: e
} : e;
}
var gY = {
scaleX: 1,
scaleY: 1
}, _Y = (e) => {
let { rects: t, activeNodeRect: n, activeIndex: r, overIndex: i, index: a } = e, o = t[r] ?? n;
if (!o) return null;
let s = vY(t, a, r);
if (a === r) {
let e = t[i];
return e ? {
x: r < i ? e.left + e.width - (o.left + o.width) : e.left - o.left,
y: 0,
...gY
} : null;
}
return a > r && a <= i ? {
x: -o.width - s,
y: 0,
...gY
} : a < r && a >= i ? {
x: o.width + s,
y: 0,
...gY
} : {
x: 0,
y: 0,
...gY
};
};
function vY(e, t, n) {
let r = e[t], i = e[t - 1], a = e[t + 1];
return !r || !i && !a ? 0 : n < t ? i ? r.left - (i.left + i.width) : a.left - (r.left + r.width) : a ? a.left - (r.left + r.width) : r.left - (i.left + i.width);
}
var yY = (e) => {
let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a = dY(t, r, n), o = t[i], s = a[i];
return !s || !o ? null : {
x: s.left - o.left,
y: s.top - o.top,
scaleX: s.width / o.width,
scaleY: s.height / o.height
};
}, bY = {
scaleX: 1,
scaleY: 1
}, xY = (e) => {
let { activeIndex: t, activeNodeRect: n, index: r, rects: i, overIndex: a } = e, o = i[t] ?? n;
if (!o) return null;
if (r === t) {
let e = i[a];
return e ? {
x: 0,
y: t < a ? e.top + e.height - (o.top + o.height) : e.top - o.top,
...bY
} : null;
}
let s = SY(i, r, t);
return r > t && r <= a ? {
x: 0,
y: -o.height - s,
...bY
} : r < t && r >= a ? {
x: 0,
y: o.height + s,
...bY
} : {
x: 0,
y: 0,
...bY
};
};
function SY(e, t, n) {
let r = e[t], i = e[t - 1], a = e[t + 1];
return r ? n < t ? i ? r.top - (i.top + i.height) : a ? a.top - (r.top + r.height) : 0 : a ? a.top - (r.top + r.height) : i ? r.top - (i.top + i.height) : 0 : 0;
}
var CY = "Sortable", wY = /*#__PURE__*/ L.createContext({
activeIndex: -1,
containerId: CY,
disableTransforms: !1,
items: [],
overIndex: -1,
useDragOverlay: !1,
sortedRects: [],
strategy: yY,
disabled: {
draggable: !1,
droppable: !1
}
});
function TY(e) {
let { children: t, id: n, items: r, strategy: i = yY, disabled: a = !1 } = e, { active: o, dragOverlay: s, droppableRects: c, over: l, measureDroppableContainers: u } = WJ(), d = hK(CY, n), f = s.rect !== null, p = B(() => r.map((e) => typeof e == "object" && "id" in e ? e.id : e), [r]), m = o != null, h = o ? p.indexOf(o.id) : -1, g = l ? p.indexOf(l.id) : -1, _ = V(p), v = !mY(p, _.current), y = g !== -1 && h === -1 || v, b = hY(a);
sK(() => {
v && m && u(p);
}, [
v,
p,
m,
u
]), z(() => {
_.current = p;
}, [p]);
let x = B(() => ({
activeIndex: h,
containerId: d,
disabled: b,
disableTransforms: y,
items: p,
overIndex: g,
useDragOverlay: f,
sortedRects: fY(p, c),
strategy: i
}), [
h,
d,
b.draggable,
b.droppable,
y,
p,
g,
c,
f,
i
]);
return L.createElement(wY.Provider, { value: x }, t);
}
var EY = (e) => {
let { id: t, items: n, activeIndex: r, overIndex: i } = e;
return dY(n, r, i).indexOf(t);
}, DY = (e) => {
let { containerId: t, isSorting: n, wasDragging: r, index: i, items: a, newIndex: o, previousItems: s, previousContainerId: c, transition: l } = e;
return !l || !r || s !== a && i === o ? !1 : n ? !0 : o !== i && t === c;
}, OY = {
duration: 200,
easing: "ease"
}, kY = "transform", AY = /*#__PURE__*/ CK.Transition.toString({
property: kY,
duration: 0,
easing: "linear"
}), jY = { roleDescription: "sortable" };
function MY(e) {
let { disabled: t, index: n, node: r, rect: i } = e, [a, o] = H(null), s = V(n);
return sK(() => {
if (!t && n !== s.current && r.current) {
let e = i.current;
if (e) {
let t = aq(r.current, { ignoreTransform: !0 }), n = {
x: e.left - t.left,
y: e.top - t.top,
scaleX: e.width / t.width,
scaleY: e.height / t.height
};
(n.x || n.y) && o(n);
}
}
n !== s.current && (s.current = n);
}, [
t,
n,
r,
i
]), z(() => {
a && o(null);
}, [a]), a;
}
function NY(e) {
let { animateLayoutChanges: t = DY, attributes: n, disabled: r, data: i, getNewIndex: a = EY, id: o, strategy: s, resizeObserverConfig: c, transition: l = OY } = e, { items: u, containerId: d, activeIndex: f, disabled: p, disableTransforms: m, sortedRects: h, overIndex: g, useDragOverlay: _, strategy: v } = mn(wY), y = PY(r, p), b = u.indexOf(o), x = B(() => ({
sortable: {
containerId: d,
index: b,
items: u
},
...i
}), [
d,
i,
b,
u
]), S = B(() => u.slice(u.indexOf(o)), [u, o]), { rect: C, node: w, isOver: T, setNodeRef: E } = qJ({
id: o,
data: x,
disabled: y.droppable,
resizeObserverConfig: {
updateMeasurementsFor: S,
...c
}
}), { active: D, activatorEvent: O, activeNodeRect: k, attributes: A, setNodeRef: ee, listeners: j, isDragging: te, over: M, setActivatorNodeRef: ne, transform: N } = UJ({
id: o,
data: x,
attributes: {
...jY,
...n
},
disabled: y.draggable
}), re = QG(E, ee), ie = !!D, ae = ie && !m && pY(f) && pY(g), oe = !_ && te, se = ae ? (oe && ae ? N : null) ?? (s ?? v)({
rects: h,
activeNodeRect: k,
activeIndex: f,
overIndex: g,
index: b
}) : null, ce = pY(f) && pY(g) ? a({
id: o,
items: u,
activeIndex: f,
overIndex: g
}) : b, le = D?.id, ue = V({
activeId: le,
items: u,
newIndex: ce,
containerId: d
}), P = u !== ue.current.items, de = t({
active: D,
containerId: d,
isDragging: te,
isSorting: ie,
id: o,
index: b,
items: u,
newIndex: ue.current.newIndex,
previousItems: ue.current.items,
previousContainerId: ue.current.containerId,
transition: l,
wasDragging: ue.current.activeId != null
}), fe = MY({
disabled: !de,
index: b,
node: w,
rect: C
});
return z(() => {
ie && ue.current.newIndex !== ce && (ue.current.newIndex = ce), d !== ue.current.containerId && (ue.current.containerId = d), u !== ue.current.items && (ue.current.items = u);
}, [
ie,
ce,
d,
u
]), z(() => {
if (le === ue.current.activeId) return;
if (le != null && ue.current.activeId == null) {
ue.current.activeId = le;
return;
}
let e = setTimeout(() => {
ue.current.activeId = le;
}, 50);
return () => clearTimeout(e);
}, [le]), {
active: D,
activeIndex: f,
attributes: A,
data: x,
rect: C,
index: b,
newIndex: ce,
items: u,
isOver: T,
isSorting: ie,
isDragging: te,
listeners: j,
node: w,
overIndex: g,
over: M,
setNodeRef: re,
setActivatorNodeRef: ne,
setDroppableNodeRef: E,
setDraggableNodeRef: ee,
transform: fe ?? se,
transition: pe()
};
function pe() {
if (fe || P && ue.current.newIndex === b) return AY;
if (!(oe && !bK(O) || !l) && (ie || de)) return CK.Transition.toString({
...l,
property: kY
});
}
}
function PY(e, t) {
return typeof e == "boolean" ? {
draggable: e,
droppable: !1
} : {
draggable: e?.draggable ?? t.draggable,
droppable: e?.droppable ?? t.droppable
};
}
function FY(e) {
if (!e) return !1;
let t = e.data.current;
return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
}
var IY = [
Pq.Down,
Pq.Right,
Pq.Up,
Pq.Left
], LY = (e, t) => {
let { context: { active: n, collisionRect: r, droppableRects: i, droppableContainers: a, over: o, scrollableAncestors: s } } = t;
if (IY.includes(e.code)) {
if (e.preventDefault(), !n || !r) return;
let t = [];
a.getEnabled().forEach((n) => {
if (!n || n != null && n.disabled) return;
let a = i.get(n.id);
if (a) switch (e.code) {
case Pq.Down:
r.top < a.top && t.push(n);
break;
case Pq.Up:
r.top > a.top && t.push(n);
break;
case Pq.Left:
r.left > a.left && t.push(n);
break;
case Pq.Right: r.left < a.left && t.push(n);
}
});
let c = YK({
active: n,
collisionRect: r,
droppableRects: i,
droppableContainers: t,
pointerCoordinates: null
}), l = KK(c, "id");
if (l === o?.id && c.length > 1 && (l = c[1].id), l != null) {
let e = a.get(n.id), t = a.get(l), o = t ? i.get(t.id) : null, c = t?.node.current;
if (c && o && e && t) {
let n = uq(c).some((e, t) => s[t] !== e), i = RY(e, t), a = zY(e, t), l = n || !i ? {
x: 0,
y: 0
} : {
x: a ? r.width - o.width : 0,
y: a ? r.height - o.height : 0
}, u = {
x: o.left,
y: o.top
};
return l.x && l.y ? u : vK(u, l);
}
}
}
};
function RY(e, t) {
return !FY(e) || !FY(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
}
function zY(e, t) {
return !FY(e) || !FY(t) || !RY(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
}
// src/lib/compose-refs.ts
function BY(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
function VY(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
let r = BY(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
typeof n == "function" ? n() : BY(e[t], null);
}
};
};
}
function HY(...e) {
return R(VY(...e), e);
}
// src/components/ui/sortable.tsx
var UY = {
vertical: {
modifiers: [uY, lY],
strategy: xY,
collisionDetection: JK
},
horizontal: {
modifiers: [sY, lY],
strategy: _Y,
collisionDetection: JK
},
mixed: {
modifiers: [lY],
strategy: void 0,
collisionDetection: YK
}
}, WY = "Sortable", GY = "SortableContent", KY = "SortableItem", qY = "SortableOverlay", JY = un(null);
function YY(e) {
let t = mn(JY);
if (!t) throw Error(`\`${e}\` must be used within \`${WY}\``);
return t;
}
function XY(e) {
let { value: t, onValueChange: n, collisionDetection: r, modifiers: i, strategy: a, onMove: o, orientation: s = "vertical", flatCursor: c = !1, getItemValue: l, accessibility: u, ...d } = e, f = gn(), [p, m] = H(null), h = zK(RK(Gq), RK(qq), RK(Lq, { coordinateGetter: LY })), g = B(() => UY[s], [s]), _ = R((e) => {
if (typeof e == "object" && !l) throw Error("getItemValue is required when using array of objects");
return l ? l(e) : e;
}, [l]), v = B(() => t.map((e) => _(e)), [t, _]), y = R((e) => {
d.onDragStart?.(e), e.activatorEvent.defaultPrevented || m(e.active.id);
}, [d.onDragStart]), b = R((e) => {
if (d.onDragEnd?.(e), e.activatorEvent.defaultPrevented) return;
let { active: r, over: i } = e;
if (i && r.id !== i?.id) {
let a = t.findIndex((e) => _(e) === r.id), s = t.findIndex((e) => _(e) === i.id);
o ? o({
...e,
activeIndex: a,
overIndex: s
}) : n?.(dY(t, a, s));
}
m(null);
}, [
t,
n,
o,
_,
d.onDragEnd
]), x = R((e) => {
d.onDragCancel?.(e), e.activatorEvent.defaultPrevented || m(null);
}, [d.onDragCancel]), S = B(() => ({
onDragStart({ active: e }) {
return `Grabbed sortable item "${e.id.toString()}". Current position is ${e.data.current?.sortable.index + 1} of ${t.length}. Use arrow keys to move, space to drop.`;
},
onDragOver({ active: e, over: n }) {
if (n) {
let r = n.data.current?.sortable.index ?? 0, i = r > (e.data.current?.sortable.index ?? 0) ? "down" : "up";
return `Sortable item "${e.id.toString()}" moved ${i} to position ${r + 1} of ${t.length}.`;
}
return "Sortable item is no longer over a droppable area. Press escape to cancel.";
},
onDragEnd({ active: e, over: n }) {
let r = e.id.toString();
return n ? `Sortable item "${r}" dropped at position ${(n.data.current?.sortable.index ?? 0) + 1} of ${t.length}.` : `Sortable item "${r}" dropped. No changes were made.`;
},
onDragCancel({ active: e }) {
let n = e.data.current?.sortable.index ?? 0;
return `Sorting cancelled. Sortable item "${e.id.toString()}" returned to position ${n + 1} of ${t.length}.`;
},
onDragMove({ active: e, over: n }) {
if (n) {
let r = n.data.current?.sortable.index ?? 0, i = r > (e.data.current?.sortable.index ?? 0) ? "down" : "up";
return `Sortable item "${e.id.toString()}" is moving ${i} to position ${r + 1} of ${t.length}.`;
}
return "Sortable item is no longer over a droppable area. Press escape to cancel.";
}
}), [t]), C = B(() => ({ draggable: `
To pick up a sortable item, press space or enter.
While dragging, use the ${s === "vertical" ? "up and down" : s === "horizontal" ? "left and right" : "arrow"} keys to move the item.
Press space or enter again to drop the item in its new position, or press escape to cancel.
` }), [s]), w = B(() => ({
id: f,
items: v,
modifiers: i ?? g.modifiers,
strategy: a ?? g.strategy,
activeId: p,
setActiveId: m,
getItemValue: _,
flatCursor: c
}), [
f,
v,
i,
a,
g.modifiers,
g.strategy,
p,
_,
c
]);
return /* @__PURE__ */ G(JY.Provider, {
value: w,
children: /* @__PURE__ */ G(zJ, {
collisionDetection: r ?? g.collisionDetection,
modifiers: i ?? g.modifiers,
sensors: h,
...d,
id: f,
onDragStart: y,
onDragEnd: b,
onDragCancel: x,
accessibility: {
announcements: S,
screenReaderInstructions: C,
...u
}
})
});
}
var ZY = un(!1);
function QY(e) {
let { strategy: t, asChild: n, withoutSlot: r, children: i, ref: a, ...o } = e, s = YY(GY), c = n ? ry : "div";
return /* @__PURE__ */ G(ZY.Provider, {
value: !0,
children: /* @__PURE__ */ G(TY, {
items: s.items,
strategy: t ?? s.strategy,
children: r ? i : /* @__PURE__ */ G(c, {
"data-slot": "sortable-content",
...o,
ref: a,
children: i
})
})
});
}
var $Y = un(null);
function eX(e) {
let { value: t, style: n, asHandle: r, asChild: i, disabled: a, className: o, ref: s, ...c } = e, l = mn(ZY), u = mn(tX);
if (!l && !u) throw Error(`\`${KY}\` must be used within \`${GY}\` or \`${qY}\``);
if (t === "") throw Error(`\`${KY}\` value cannot be an empty string`);
let d = YY(KY), f = gn(), { attributes: p, listeners: m, setNodeRef: h, setActivatorNodeRef: g, transform: _, transition: v, isDragging: y } = NY({
id: t,
disabled: a
}), b = HY(s, (e) => {
a || (h(e), r && g(e));
}), x = B(() => ({
transform: CK.Translate.toString(_),
transition: v,
...n
}), [
_,
v,
n
]), S = B(() => ({
id: f,
attributes: p,
listeners: m,
setActivatorNodeRef: g,
isDragging: y,
disabled: a
}), [
f,
p,
m,
g,
y,
a
]), C = i ? ry : "div";
return /* @__PURE__ */ G($Y.Provider, {
value: S,
children: /* @__PURE__ */ G(C, {
id: f,
"data-disabled": a,
"data-dragging": y ? "" : void 0,
"data-slot": "sortable-item",
...c,
...r && !a ? p : {},
...r && !a ? m : {},
ref: b,
style: x,
className: Y("focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-hidden", {
"touch-none select-none": r,
"cursor-default": d.flatCursor,
"data-dragging:cursor-grabbing": !d.flatCursor,
"cursor-grab": !y && r && !d.flatCursor,
"opacity-50": y,
"pointer-events-none opacity-50": a
}, o)
})
});
}
var tX = un(!1), nX = { sideEffects: eY({ styles: { active: { opacity: "0.4" } } }) };
function rX(e) {
let { container: t, children: n, ...r } = e, i = YY(qY), [a, o] = H(!1);
yn(() => o(!0), []);
let s = t ?? (a ? globalThis.document?.body : null);
return s ? Sn.createPortal(/* @__PURE__ */ G(oY, {
dropAnimation: nX,
modifiers: i.modifiers,
className: Y(!i.flatCursor && "cursor-grabbing"),
...r,
children: /* @__PURE__ */ G(tX.Provider, {
value: !0,
children: i.activeId ? typeof n == "function" ? n({ value: i.activeId }) : n : null
})
}), s) : null;
}
// src/components/laboratory/tabs.tsx
var iX = (e) => {
let { history: t, operations: n, tests: r, plugins: i } = dy(), a = dy(), o = V(!1), s = V(null);
z(() => {
function e() {
s.current &&= (clearTimeout(s.current), null), o.current = !1;
}
return document.addEventListener("mouseup", e), () => {
document.removeEventListener("mouseup", e);
};
}, []);
let c = B(() => e.activeTab?.id === e.item.id, [e.activeTab, e.item]), l = B(() => e.item.type === "history" ? t.find((t) => e.item.type === "history" && t.id === e.item.data.id) : null, [t, e.item]), u = B(() => e.item.type === "operation" ? n.find((t) => t.id === e.item.data.id) : null, [e.item, n]), d = B(() => e.item.type === "test" ? r.find((t) => t.id === e.item.data.id) : null, [e.item, r]), f = B(() => l ? "status" in l && l.status < 200 || "status" in l && l.status >= 300 || "response" in l && JSON.parse(l.response).errors : !1, [l]), p = R(() => {
e.handleDeleteTab(e.item.id);
}, [e]), m = R(() => {
e.handleDeleteAllTabs();
}, [e]), h = R(() => {
e.handleDeleteOtherTabs(e.item.id);
}, [e]), g = B(() => {
if (e.item.type === "operation") {
let e = u?.name || Xo(u?.query || "") || "Untitled";
return e === "Untitled" ? e + (0, co.capitalize)(Zo(u?.query || "") || "query") : e;
}
if (e.item.type === "history") {
let e = l?.operation.name || Xo(l?.operation.query || "") || "Untitled";
return e === "Untitled" ? e + (0, co.capitalize)(Zo(l?.operation.query || "") || "query") : e;
}
if (e.item.type === "preflight") return "Preflight";
if (e.item.type === "env") return "Environment Variables";
if (e.item.type === "settings") return "Settings";
if (e.item.type === "test") return d?.name || "Untitled";
let t = null;
for (let n of i) for (let r of n.tabs ?? []) if (r.type === e.item.type) {
t = r;
break;
}
return t ? typeof t.name == "function" ? t.name(a, {}) : t.name : "Untitled";
}, [
e.item,
l,
u,
d
]), _ = B(() => {
if (e.item.type === "operation") return /* @__PURE__ */ G(iM, { className: "size-4 text-pink-500" });
if (e.item.type === "preflight") return /* @__PURE__ */ G(yr, { className: "size-4 text-teal-400" });
if (e.item.type === "env") return /* @__PURE__ */ G(Qn, { className: "size-4 text-blue-400" });
if (e.item.type === "history") return /* @__PURE__ */ G(er, { className: Y("size-4 text-indigo-400", {
"text-green-500": !f,
"text-red-500": f
}) });
if (e.item.type === "settings") return /* @__PURE__ */ G(Sr, { className: "size-4 text-gray-400" });
if (e.item.type === "test") return /* @__PURE__ */ G(Gn, { className: "size-4 text-lime-400" });
let t = null;
for (let n of i) for (let r of n.tabs ?? []) if (r.type === e.item.type) {
t = r;
break;
}
return t ? typeof t.icon == "function" ? t.icon(a, {}) : t.icon : /* @__PURE__ */ G(Hn, { className: "size-4 text-muted-foreground" });
}, [e.item, f]);
return /* @__PURE__ */ K(hG, { children: [/* @__PURE__ */ G(gG, {
asChild: !0,
children: /* @__PURE__ */ K(eX, {
value: e.item.id,
asHandle: !0,
className: Y("flex h-12 w-max items-stretch data-dragging:opacity-0", e.isOverlay && "bg-background", e.isOverlay && !c && "h-12"),
children: [/* @__PURE__ */ G("div", {
onMouseDown: (e) => {
if (o.current) return;
e.preventDefault();
let t = { ...e };
s.current = setTimeout(() => {
o.current = !0, t.currentTarget.dispatchEvent(new MouseEvent("mousedown", { ...t }));
}, 200);
},
children: /* @__PURE__ */ K("div", {
className: Y("group relative flex h-full cursor-pointer items-center gap-2 border-t-2 border-transparent px-3 pb-1 text-sm text-muted-foreground transition-all hover:text-foreground", e.activeTab?.id === e.item.id && "border-primary bg-card text-foreground"),
"data-state": e.activeTab?.id === e.item.id ? "active" : "inactive",
onClick: () => {
e.setActiveTab(e.item);
},
onMouseUp: () => {
s.current &&= (clearTimeout(s.current), null), o.current = !1;
},
children: [
_,
g,
e.isOperationLoading(e.item.id) && /* @__PURE__ */ G(iG, { className: "size-3" }),
e.item.readOnly && /* @__PURE__ */ G(or, { className: "size-3 text-gray-400" }),
/* @__PURE__ */ G("button", {
type: "button",
"aria-label": "Close tab",
className: "flex",
onMouseDown: (e) => {
e.stopPropagation();
},
onClick: (t) => {
t.stopPropagation(), e.handleDeleteTab(e.item.id);
},
children: /* @__PURE__ */ G(jr, { className: "size-3 text-muted-foreground" })
})
]
})
}), /* @__PURE__ */ G("div", { className: "mb-px w-px bg-border" })]
})
}), /* @__PURE__ */ K(_G, { children: [
/* @__PURE__ */ G(vG, {
onClick: p,
children: "Close"
}),
/* @__PURE__ */ G(vG, {
onClick: h,
children: "Close other"
}),
/* @__PURE__ */ G(vG, {
onClick: m,
children: "Close all"
})
] })] });
}, aX = ({ className: e }) => {
let { tabs: t, setTabs: n, activeTab: r, addTab: i, deleteTab: a, operations: o, setActiveTab: s, addOperation: c, setOperations: l, deleteOperation: u, isOperationLoading: d, goToFullScreen: f, exitFullScreen: p, isFullScreen: m, enableFullScreen: h } = dy(), g = R(() => {
let e = c({
name: "",
query: "",
variables: "",
headers: "",
extensions: ""
}), t = i({
type: "operation",
data: e
});
s(t);
}, [
c,
i,
s
]), _ = R((e) => {
let n = t.findIndex((t) => t.id === e);
if (n === -1) return;
let r = t[n];
r.type === "operation" && u(r.data.id), a(r.id), s(n === 0 ? t[1] ?? null : n > 0 ? t[n - 1] ?? null : t[0] ?? null);
}, [
t,
a,
u,
s
]), v = R(() => {
l([]), n([]);
}, [l, n]), y = R((e) => {
let r = t.find((t) => t.id === e);
if (r) {
let i = t.filter((t) => t.id !== e).filter((e) => e.type === "operation").map((e) => e.data.id);
l(o.filter((e) => !i.includes(e.id))), n([r]), s(r);
}
}, [
t,
l,
o,
n,
s
]);
return /* @__PURE__ */ K("div", {
className: Y("relative z-10 grid size-full grid-cols-[1fr_auto] overflow-hidden", e),
children: [
/* @__PURE__ */ G("div", { className: "absolute bottom-0 left-0 -z-10 h-px w-full bg-border" }),
/* @__PURE__ */ G("div", {
className: "overflow-hidden",
children: /* @__PURE__ */ K(QN, {
className: "size-full whitespace-nowrap",
children: [/* @__PURE__ */ K("div", {
className: "flex items-stretch",
children: [/* @__PURE__ */ K(XY, {
value: t,
onValueChange: n,
getItemValue: (e) => e.id,
orientation: "horizontal",
children: [/* @__PURE__ */ G(QY, {
className: "flex w-max items-stretch",
children: t.map((e) => /* @__PURE__ */ G(iX, {
item: e,
activeTab: r,
setActiveTab: s,
isOperationLoading: d,
handleDeleteTab: _,
handleDeleteAllTabs: v,
handleDeleteOtherTabs: y
}, e.id))
}), /* @__PURE__ */ G(rX, { children: (e) => {
let n = t.find((t) => t.id === e.value);
return n ? /* @__PURE__ */ G(iX, {
item: n,
activeTab: r,
setActiveTab: s,
isOperationLoading: d,
handleDeleteTab: _,
isOverlay: !0,
handleDeleteAllTabs: v,
handleDeleteOtherTabs: y
}) : null;
} })]
}), /* @__PURE__ */ G("div", {
className: "group ml-2 flex h-12 items-center border-b-2 border-transparent",
children: /* @__PURE__ */ K(Z, {
variant: "ghost",
size: "sm",
className: "text-primary hover:text-primary",
onClick: g,
children: [/* @__PURE__ */ G(Ln, { className: "size-4" }), "Add operation"]
})
})]
}), /* @__PURE__ */ G($N, { orientation: "horizontal" })]
})
}),
/* @__PURE__ */ G(oX, {
enabled: h !== !1,
isFullScreen: m === !0,
onEnter: f,
onExit: p
})
]
});
}, oX = (e) => {
if (!e.enabled) return null;
let t = e.isFullScreen ? "Exit full screen" : "Go to full screen";
return /* @__PURE__ */ G("div", {
className: "group flex h-12 items-center border-l px-2",
children: /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "sm",
"aria-label": t,
onClick: e.isFullScreen ? e.onExit : e.onEnter,
children: e.isFullScreen ? /* @__PURE__ */ G(cr, { className: "size-4" }) : /* @__PURE__ */ G(sr, { className: "size-4" })
})
}), /* @__PURE__ */ G(Zj, {
side: "bottom",
children: t
})] })
});
}, sX = (e) => {
let t = V(null), [n, r] = H(null);
return yn(() => {
t.current && !n && r(Uv(t.current));
}, [n]), yn(() => {
if (n) return Tv(n);
}, [n]), yn(() => {
n && document.head.querySelectorAll("style").forEach((e) => {
e.textContent?.includes("[data-sonner-toaster]") && n.append(e.cloneNode(!0));
});
}, [n]), /* @__PURE__ */ G("div", {
ref: t,
className: "hive-laboratory-host size-full",
children: n ? wn(e.children, n) : null
});
}, cX = Pr.object({ name: Pr.string().min(1, "Name is required") }), lX = Pr.object({ endpoint: Pr.string().min(1, "Endpoint is required") }), uX = Pr.object({ name: Pr.string().min(1, "Name is required") }), dX = () => {
let { activeTab: e, addOperation: t, addTab: n, setActiveTab: r, preflight: i, tabs: a, env: o, plugins: s, pluginsState: c, setPluginsState: l, activePanel: u, setActivePanel: d, enableDocs: f, openDocs: p, schema: m } = dy(), h = dy(), [g, _] = H(!1), v = V(m);
v.current = m, z(() => {
if (f) return ro({
getSchema: () => v.current ?? null,
openDocs: p
});
}, [f, p]);
let y = B(() => {
switch (e?.type) {
case "operation": return /* @__PURE__ */ G(BG, {});
case "preflight": return /* @__PURE__ */ G(HG, {});
case "env": return /* @__PURE__ */ G($R, {});
case "history": return /* @__PURE__ */ G(VG, {});
case "settings": return /* @__PURE__ */ G(ZG, {});
default: {
let i = null, a = null;
for (let t of s) for (let n of t.tabs ?? []) if (n.type === e?.type) {
a = n, i = t.id;
break;
}
return a && i ? a.component(e, h, c[i] ?? {}, (e) => l({
...c,
[i]: e
})) : /* @__PURE__ */ K(fO, {
className: "w-full px-0!",
children: [/* @__PURE__ */ K(pO, { children: [
/* @__PURE__ */ G(hO, {
variant: "icon",
children: /* @__PURE__ */ G(Hn, { className: "size-6 text-muted-foreground" })
}),
/* @__PURE__ */ G(gO, { children: "No operation selected" }),
/* @__PURE__ */ G(_O, { children: "You haven't selected any operation yet. Get started by selecting an operation or add a new one." })
] }), /* @__PURE__ */ G(vO, { children: /* @__PURE__ */ G(Z, {
size: "sm",
onClick: () => {
let e = t({
name: "",
query: "",
variables: "",
headers: "",
extensions: ""
}), i = n({
type: "operation",
data: e
});
r(i);
},
children: "Add operation"
}) })]
});
}
}
}, [
e?.type,
t,
n,
r
]);
return /* @__PURE__ */ K("div", {
className: "flex size-full",
children: [
/* @__PURE__ */ G(sF, {
open: g,
onOpenChange: _
}),
/* @__PURE__ */ K("div", {
className: "flex h-full w-12 flex-col",
children: [
/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G("div", {
className: Y("relative z-10 flex aspect-square h-12 w-full items-center justify-center border-l-2 border-transparent", { "border-primary": u === "collections" }),
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "icon",
"aria-label": "Collections",
onClick: () => d(u === "collections" ? null : "collections"),
className: Y("text-muted-foreground hover:text-foreground", { "text-foreground": u === "collections" }),
children: /* @__PURE__ */ G(Xn, { className: "size-5" })
})
})
}), /* @__PURE__ */ G(Zj, {
side: "right",
children: "Collections"
})] }),
/* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G("div", {
className: Y("relative z-10 flex aspect-square h-12 w-full items-center justify-center border-l-2 border-transparent", { "border-primary": u === "history" }),
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "icon",
"aria-label": "History",
onClick: () => d(u === "history" ? null : "history"),
className: Y("text-muted-foreground hover:text-foreground", { "text-foreground": u === "history" }),
children: /* @__PURE__ */ G(er, { className: "size-5" })
})
})
}), /* @__PURE__ */ G(Zj, {
side: "right",
children: "History"
})] }),
f ? /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G("div", {
className: Y("relative z-10 flex aspect-square h-12 w-full items-center justify-center border-l-2 border-transparent", { "border-primary": u === "docs" }),
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "icon",
"aria-label": "Documentation",
onClick: () => d(u === "docs" ? null : "docs"),
className: Y("text-muted-foreground hover:text-foreground", { "text-foreground": u === "docs" }),
children: /* @__PURE__ */ G(Dn, { className: "size-5" })
})
})
}), /* @__PURE__ */ G(Zj, {
side: "right",
children: "Documentation"
})] }) : null,
/* @__PURE__ */ G("div", {
className: Y("relative z-100 mt-auto flex aspect-square h-12 w-full items-center justify-center border-l-2 border-transparent", { "border-primary": u === "settings" }),
children: /* @__PURE__ */ K(Yj, { children: [/* @__PURE__ */ K(aO, { children: [/* @__PURE__ */ G(oO, {
asChild: !0,
children: /* @__PURE__ */ G(Xj, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "ghost",
size: "icon",
"aria-label": "Settings",
className: Y("text-muted-foreground hover:text-foreground", { "text-foreground": u === "settings" }),
children: /* @__PURE__ */ G(Sr, { className: "size-5" })
})
})
}), /* @__PURE__ */ K(sO, {
className: "mb-2 w-56",
align: "start",
side: "right",
children: [
/* @__PURE__ */ G(cO, { children: /* @__PURE__ */ K(lO, {
onSelect: () => _(!0),
children: ["Command Palette...", /* @__PURE__ */ G(dO, { children: "⌘J" })]
}) }),
/* @__PURE__ */ G(uO, {}),
/* @__PURE__ */ G(lO, {
onSelect: () => {
let e = a.find((e) => e.type === "env") ?? n({
type: "env",
data: o ?? { variables: {} }
});
r(e);
},
children: "Environment Variables"
}),
/* @__PURE__ */ G(lO, {
onSelect: () => {
let e = a.find((e) => e.type === "preflight") ?? n({
type: "preflight",
data: i ?? { script: "" }
});
r(e);
},
children: "Preflight Script"
}),
/* @__PURE__ */ G(uO, {}),
/* @__PURE__ */ G(lO, {
onSelect: () => {
let e = a.find((e) => e.type === "settings") ?? n({
type: "settings",
data: {}
});
r(e);
},
children: "Settings"
})
]
})] }), /* @__PURE__ */ G(Zj, {
side: "right",
children: "Settings"
})] })
})
]
}),
/* @__PURE__ */ K(ej, {
orientation: "horizontal",
className: "h-full flex-1",
children: [
/* @__PURE__ */ K(tj, {
minSize: "10%",
defaultSize: "17%",
hidden: !u,
className: "border-l",
children: [
u === "collections" && /* @__PURE__ */ G(nP, {}),
u === "history" && /* @__PURE__ */ G(nz, {}),
u === "docs" && /* @__PURE__ */ G(cL, {})
]
}),
/* @__PURE__ */ G(nj, {}),
/* @__PURE__ */ K(tj, {
minSize: "10%",
defaultSize: "83%",
className: "flex flex-col",
children: [/* @__PURE__ */ G("div", {
className: "w-full",
children: /* @__PURE__ */ G(aX, {})
}), /* @__PURE__ */ G("div", {
className: "relative flex-1 overflow-hidden bg-card",
children: y
})]
})
]
})
]
});
}, fX = (e) => {
let t = R((t) => {
let [n, r] = t.split(":");
return e.permissions?.[n]?.[r] ?? !0;
}, [e.permissions]), { isPreflightPromptModalOpen: n, setIsPreflightPromptModalOpen: r, preflightPromptModalProps: i, openPreflightPromptModal: a, closePreflightPromptModal: o } = Lv(), s = Hv(e), c = Cv(e), l = Rv({
...e,
envApi: c,
openPreflightPromptModal: a,
closePreflightPromptModal: o
}), { abortPreflight: u } = l;
z(() => u, [u]);
let d = kv(e), f = Gv(e), p = Wv(e), m = V(null), h = $r({
...e,
tabsApi: p,
onOperationIdChange: (e, t) => {
m.current?.replaceOperationId(e, t), p.replaceOperationId(e, t);
}
}), g = ga({ defaultActivePanel: h.collections.length > 0 ? "collections" : null }), _ = Ov({
...e,
collectionsApi: h,
tabsApi: p,
envApi: c,
preflightApi: l,
settingsApi: s,
pluginsApi: d,
checkPermissions: t
});
m.current = _;
let v = Sv({
...e,
settingsApi: s,
operationsApi: _,
envApi: c,
pluginsApi: d,
preflightApi: l
}), y = wv(e), [b, x] = H(!1), [S, C] = H(!1), [w, T] = H(!1), E = R(() => {
x(!0);
}, []), D = R(() => {
C(!0);
}, []), O = R(() => {
T(!0);
}, []), k = Fr({
defaultValues: { name: "" },
validators: { onSubmit: cX },
onSubmit: ({ value: e }) => {
h.addCollection({ name: e.name }), x(!1);
}
}), A = Fr({
defaultValues: { endpoint: v.endpoint ?? "" },
validators: { onSubmit: lX },
onSubmit: ({ value: e }) => {
v.setEndpoint(e.endpoint), C(!1);
}
}), ee = Fr({
defaultValues: { name: "" },
validators: { onSubmit: uX },
onSubmit: ({ value: e }) => {
f.addTest({ name: e.name }), T(!1);
}
}), [j, te] = H(null), [M, ne] = H(!1), N = R(() => {
ne(!0);
}, []), re = R(() => {
ne(!1);
}, []);
return vn(() => {
so(Gr);
}, []), /* @__PURE__ */ K(sX, { children: [/* @__PURE__ */ G("style", { children: `${Wr}\n${Gr}` }), /* @__PURE__ */ K("div", {
className: Y("hive-laboratory size-full bg-background", e.theme, { "fixed inset-0 z-50": M }),
ref: te,
children: [/* @__PURE__ */ G(rj, {
richColors: !0,
closeButton: !0,
position: "top-right",
theme: e.theme
}), /* @__PURE__ */ K(fy, {
...e,
...f,
...s,
...d,
...c,
...l,
...p,
...v,
...h,
..._,
...y,
...g,
container: j,
openAddCollectionDialog: E,
openUpdateEndpointDialog: D,
openAddTestDialog: O,
openPreflightPromptModal: a,
goToFullScreen: N,
exitFullScreen: re,
isFullScreen: M,
enableFullScreen: e.enableFullScreen !== !1,
enableDocs: e.enableDocs === !0,
checkPermissions: t,
children: [
/* @__PURE__ */ G(xS, {
open: S,
onOpenChange: C,
children: /* @__PURE__ */ K(ES, {
className: "sm:max-w-[425px]",
children: [
/* @__PURE__ */ K(DS, { children: [/* @__PURE__ */ G(kS, { children: "Update endpoint" }), /* @__PURE__ */ G(AS, { children: "Update the endpoint of your laboratory." })] }),
/* @__PURE__ */ G("div", {
className: "grid gap-4",
children: /* @__PURE__ */ G("form", {
id: "update-endpoint-form",
onSubmit: (e) => {
e.preventDefault(), A.handleSubmit();
},
children: /* @__PURE__ */ G(jO, { children: /* @__PURE__ */ G(A.Field, {
name: "endpoint",
children: (e) => {
let t = e.state.meta.isTouched && !e.state.meta.isValid;
return /* @__PURE__ */ G(LO, {
id: e.name,
name: e.name,
value: e.state.value,
onBlur: e.handleBlur,
onChange: (t) => e.handleChange(t.target.value),
"aria-invalid": t,
placeholder: "Enter endpoint",
autoComplete: "off"
});
}
}) })
})
}),
/* @__PURE__ */ K(OS, { children: [/* @__PURE__ */ G(wS, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "outline",
children: "Cancel"
})
}), /* @__PURE__ */ G(Z, {
type: "submit",
form: "update-endpoint-form",
children: "Update endpoint"
})] })
]
})
}),
/* @__PURE__ */ G(UG, {
open: n,
onOpenChange: r,
...i
}),
/* @__PURE__ */ G(xS, {
open: b,
onOpenChange: x,
children: /* @__PURE__ */ K(ES, {
className: "sm:max-w-[425px]",
children: [
/* @__PURE__ */ K(DS, { children: [/* @__PURE__ */ G(kS, { children: "Add collection" }), /* @__PURE__ */ G(AS, { children: "Add a new collection of operations to your laboratory." })] }),
/* @__PURE__ */ G("div", {
className: "grid gap-4",
children: /* @__PURE__ */ G("form", {
id: "add-collection-form",
onSubmit: (e) => {
e.preventDefault(), k.handleSubmit();
},
children: /* @__PURE__ */ G(jO, { children: /* @__PURE__ */ G(k.Field, {
name: "name",
children: (e) => {
let t = e.state.meta.isTouched && !e.state.meta.isValid;
return /* @__PURE__ */ K(NO, {
"data-invalid": t,
children: [
/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Name"
}),
/* @__PURE__ */ G(LO, {
id: e.name,
name: e.name,
value: e.state.value,
onBlur: e.handleBlur,
onChange: (t) => e.handleChange(t.target.value),
"aria-invalid": t,
placeholder: "Enter name of the collection",
autoComplete: "off"
}),
t && /* @__PURE__ */ G(IO, { errors: e.state.meta.errors })
]
});
}
}) })
})
}),
/* @__PURE__ */ K(OS, { children: [/* @__PURE__ */ G(wS, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "outline",
children: "Cancel"
})
}), /* @__PURE__ */ G(Z, {
type: "submit",
form: "add-collection-form",
children: "Add collection"
})] })
]
})
}),
/* @__PURE__ */ G(xS, {
open: w,
onOpenChange: T,
children: /* @__PURE__ */ K(ES, {
className: "sm:max-w-[425px]",
children: [
/* @__PURE__ */ K(DS, { children: [/* @__PURE__ */ G(kS, { children: "Add test" }), /* @__PURE__ */ G(AS, { children: "Add a new test to your laboratory." })] }),
/* @__PURE__ */ G("div", {
className: "grid gap-4",
children: /* @__PURE__ */ G("form", {
id: "add-test-form",
onSubmit: (e) => {
e.preventDefault(), ee.handleSubmit();
},
children: /* @__PURE__ */ G(jO, { children: /* @__PURE__ */ G(ee.Field, {
name: "name",
children: (e) => {
let t = e.state.meta.isTouched && !e.state.meta.isValid;
return /* @__PURE__ */ K(NO, {
"data-invalid": t,
children: [
/* @__PURE__ */ G(PO, {
htmlFor: e.name,
children: "Name"
}),
/* @__PURE__ */ G(LO, {
id: e.name,
name: e.name,
value: e.state.value,
onBlur: e.handleBlur,
onChange: (t) => e.handleChange(t.target.value),
"aria-invalid": t,
placeholder: "Enter name of the test",
autoComplete: "off"
}),
t && /* @__PURE__ */ G(IO, { errors: e.state.meta.errors })
]
});
}
}) })
})
}),
/* @__PURE__ */ K(OS, { children: [/* @__PURE__ */ G(wS, {
asChild: !0,
children: /* @__PURE__ */ G(Z, {
variant: "outline",
children: "Cancel"
})
}), /* @__PURE__ */ G(Z, {
type: "submit",
form: "add-test-form",
children: "Add test"
})] })
]
})
}),
/* @__PURE__ */ G(dX, {})
]
})]
})] });
}, pX = (e, t) => {
let n = "hive-laboratory", r = (e) => {
let t = localStorage.getItem(`${n}:${e}`);
return t ? JSON.parse(t) : null;
}, i = (e, t) => {
localStorage.setItem(`${n}:${e}`, JSON.stringify(t));
};
if (!e) throw Error("Laboratory element not found");
return sn.createRoot(e).render(/* @__PURE__ */ G(fX, {
theme: "dark",
enableDocs: !0,
defaultEndpoint: r("endpoint") ?? window.location.origin + window.location.pathname,
onEndpointChange: (e) => {
i("endpoint", e ?? "");
},
defaultCollections: r("collections") ?? [],
onCollectionsChange: (e) => {
i("collections", e);
},
defaultTabs: r("tabs") ?? [],
onTabsChange: (e) => {
i("tabs", e);
},
defaultOperations: r("operations") ?? [],
onOperationsChange: (e) => {
i("operations", e);
},
defaultActiveTabId: r("activeTabId") ?? null,
onActiveTabIdChange: (e) => {
i("activeTabId", e ?? "");
},
defaultPreflight: r("preflight") ?? null,
onPreflightChange: (e) => {
i("preflight", e ?? "");
},
defaultEnv: r("env") ?? null,
onEnvChange: (e) => {
i("env", e ?? "");
},
defaultSettings: r("settings") ?? null,
onSettingsChange: (e) => {
i("settings", e ?? "");
},
defaultHistory: r("history") ?? [],
onHistoryChange: (e) => {
i("history", e);
},
...t
}));
};
export { xS as Dialog, wS as DialogClose, ES as DialogContent, AS as DialogDescription, OS as DialogFooter, DS as DialogHeader, TS as DialogOverlay, CS as DialogPortal, kS as DialogTitle, SS as DialogTrigger, xv as EXPECTED_ERROR_REASON, QR as Editor, fX as Laboratory, fy as LaboratoryProvider, Nv as PREFLIGHT_TIMEOUT, aG as Tabs, cG as TabsContent, oG as TabsList, sG as TabsTrigger, Iv as blockedGlobalNames, Bv as defaultLaboratorySettings, ha as docsTargetFromPath, Pv as isValidEnvValue, Vv as normalizeLaboratorySettings, Mv as readLineAndColumn, pX as renderLaboratory, zv as runIsolatedLabScript, Fv as toLogText, $r as useCollections, ga as useDocs, Sv as useEndpoint, Cv as useEnv, wv as useHistory, dy as useLaboratory, Ov as useOperations, kv as usePlugins, Rv as usePreflight, Lv as usePreflightPrompt, Hv as useSettings, Wv as useTabs, Gv as useTests };