Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

chore: make @screenpipe/dev open source here

Louis Beaumont42f0329615d0
diff --git a/screenpipe-js/bun.lockb b/screenpipe-js/bun.lockb
new file mode 100755
index 000000000..73a59294b
Binary files /dev/null and b/screenpipe-js/bun.lockb differ
diff --git a/screenpipe-js/dist/index.js b/screenpipe-js/dist/index.js
new file mode 100755
index 000000000..2b207d178
--- /dev/null
+++ b/screenpipe-js/dist/index.js
@@ -0,0 +1,49110 @@
+#!/usr/bin/env bun
+// @bun
+import { createRequire } from "node:module";
+var __create = Object.create;
+var __getProtoOf = Object.getPrototypeOf;
+var __defProp = Object.defineProperty;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __toESM = (mod, isNodeMode, target) => {
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
+ for (let key of __getOwnPropNames(mod))
+ if (!__hasOwnProp.call(to, key))
+ __defProp(to, key, {
+ get: () => mod[key],
+ enumerable: true
+ });
+ return to;
+};
+var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
+var __export = (target, all) => {
+ for (var name in all)
+ __defProp(target, name, {
+ get: all[name],
+ enumerable: true,
+ configurable: true,
+ set: (newValue) => all[name] = () => newValue
+ });
+};
+var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
+var __require = /* @__PURE__ */ createRequire(import.meta.url);
+
+// node_modules/@inquirer/core/dist/esm/lib/key.js
+var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p", isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n", isSpaceKey = (key) => key.name === "space", isBackspaceKey = (key) => key.name === "backspace", isNumberKey = (key) => "123456789".includes(key.name), isEnterKey = (key) => key.name === "enter" || key.name === "return";
+
+// node_modules/@inquirer/core/dist/esm/lib/errors.js
+var AbortPromptError, CancelPromptError, ExitPromptError, HookError, ValidationError;
+var init_errors = __esm(() => {
+ AbortPromptError = class AbortPromptError extends Error {
+ name = "AbortPromptError";
+ message = "Prompt was aborted";
+ constructor(options) {
+ super();
+ this.cause = options?.cause;
+ }
+ };
+ CancelPromptError = class CancelPromptError extends Error {
+ name = "CancelPromptError";
+ message = "Prompt was canceled";
+ };
+ ExitPromptError = class ExitPromptError extends Error {
+ name = "ExitPromptError";
+ };
+ HookError = class HookError extends Error {
+ name = "HookError";
+ };
+ ValidationError = class ValidationError extends Error {
+ name = "ValidationError";
+ };
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
+import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
+function createStore(rl) {
+ const store = {
+ rl,
+ hooks: [],
+ hooksCleanup: [],
+ hooksEffect: [],
+ index: 0,
+ handleChange() {
+ }
+ };
+ return store;
+}
+function withHooks(rl, cb) {
+ const store = createStore(rl);
+ return hookStorage.run(store, () => {
+ function cycle(render) {
+ store.handleChange = () => {
+ store.index = 0;
+ render();
+ };
+ store.handleChange();
+ }
+ return cb(cycle);
+ });
+}
+function getStore() {
+ const store = hookStorage.getStore();
+ if (!store) {
+ throw new HookError("[Inquirer] Hook functions can only be called from within a prompt");
+ }
+ return store;
+}
+function readline() {
+ return getStore().rl;
+}
+function withUpdates(fn) {
+ const wrapped = (...args) => {
+ const store = getStore();
+ let shouldUpdate = false;
+ const oldHandleChange = store.handleChange;
+ store.handleChange = () => {
+ shouldUpdate = true;
+ };
+ const returnValue = fn(...args);
+ if (shouldUpdate) {
+ oldHandleChange();
+ }
+ store.handleChange = oldHandleChange;
+ return returnValue;
+ };
+ return AsyncResource.bind(wrapped);
+}
+function withPointer(cb) {
+ const store = getStore();
+ const { index } = store;
+ const pointer = {
+ get() {
+ return store.hooks[index];
+ },
+ set(value) {
+ store.hooks[index] = value;
+ },
+ initialized: index in store.hooks
+ };
+ const returnValue = cb(pointer);
+ store.index++;
+ return returnValue;
+}
+function handleChange() {
+ getStore().handleChange();
+}
+var hookStorage, effectScheduler;
+var init_hook_engine = __esm(() => {
+ init_errors();
+ hookStorage = new AsyncLocalStorage;
+ effectScheduler = {
+ queue(cb) {
+ const store = getStore();
+ const { index } = store;
+ store.hooksEffect.push(() => {
+ store.hooksCleanup[index]?.();
+ const cleanFn = cb(readline());
+ if (cleanFn != null && typeof cleanFn !== "function") {
+ throw new ValidationError("useEffect return value must be a cleanup function or nothing.");
+ }
+ store.hooksCleanup[index] = cleanFn;
+ });
+ },
+ run() {
+ const store = getStore();
+ withUpdates(() => {
+ store.hooksEffect.forEach((effect) => {
+ effect();
+ });
+ store.hooksEffect.length = 0;
+ })();
+ },
+ clearAll() {
+ const store = getStore();
+ store.hooksCleanup.forEach((cleanFn) => {
+ cleanFn?.();
+ });
+ store.hooksEffect.length = 0;
+ store.hooksCleanup.length = 0;
+ }
+ };
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/use-state.js
+function useState(defaultValue) {
+ return withPointer((pointer) => {
+ const setFn = (newValue) => {
+ if (pointer.get() !== newValue) {
+ pointer.set(newValue);
+ handleChange();
+ }
+ };
+ if (pointer.initialized) {
+ return [pointer.get(), setFn];
+ }
+ const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;
+ pointer.set(value);
+ return [value, setFn];
+ });
+}
+var init_use_state = __esm(() => {
+ init_hook_engine();
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/use-effect.js
+function useEffect(cb, depArray) {
+ withPointer((pointer) => {
+ const oldDeps = pointer.get();
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));
+ if (hasChanged) {
+ effectScheduler.queue(cb);
+ }
+ pointer.set(depArray);
+ });
+}
+var init_use_effect = __esm(() => {
+ init_hook_engine();
+});
+
+// node_modules/yoctocolors-cjs/index.js
+var require_yoctocolors_cjs = __commonJS((exports, module) => {
+ var tty2 = __require("node:tty");
+ var hasColors = tty2?.WriteStream?.prototype?.hasColors?.() ?? false;
+ var format = (open, close) => {
+ if (!hasColors) {
+ return (input) => input;
+ }
+ const openCode = `\x1B[${open}m`;
+ const closeCode = `\x1B[${close}m`;
+ return (input) => {
+ const string2 = input + "";
+ let index = string2.indexOf(closeCode);
+ if (index === -1) {
+ return openCode + string2 + closeCode;
+ }
+ let result = openCode;
+ let lastIndex = 0;
+ while (index !== -1) {
+ result += string2.slice(lastIndex, index) + openCode;
+ lastIndex = index + closeCode.length;
+ index = string2.indexOf(closeCode, lastIndex);
+ }
+ result += string2.slice(lastIndex) + closeCode;
+ return result;
+ };
+ };
+ var colors2 = {};
+ colors2.reset = format(0, 0);
+ colors2.bold = format(1, 22);
+ colors2.dim = format(2, 22);
+ colors2.italic = format(3, 23);
+ colors2.underline = format(4, 24);
+ colors2.overline = format(53, 55);
+ colors2.inverse = format(7, 27);
+ colors2.hidden = format(8, 28);
+ colors2.strikethrough = format(9, 29);
+ colors2.black = format(30, 39);
+ colors2.red = format(31, 39);
+ colors2.green = format(32, 39);
+ colors2.yellow = format(33, 39);
+ colors2.blue = format(34, 39);
+ colors2.magenta = format(35, 39);
+ colors2.cyan = format(36, 39);
+ colors2.white = format(37, 39);
+ colors2.gray = format(90, 39);
+ colors2.bgBlack = format(40, 49);
+ colors2.bgRed = format(41, 49);
+ colors2.bgGreen = format(42, 49);
+ colors2.bgYellow = format(43, 49);
+ colors2.bgBlue = format(44, 49);
+ colors2.bgMagenta = format(45, 49);
+ colors2.bgCyan = format(46, 49);
+ colors2.bgWhite = format(47, 49);
+ colors2.bgGray = format(100, 49);
+ colors2.redBright = format(91, 39);
+ colors2.greenBright = format(92, 39);
+ colors2.yellowBright = format(93, 39);
+ colors2.blueBright = format(94, 39);
+ colors2.magentaBright = format(95, 39);
+ colors2.cyanBright = format(96, 39);
+ colors2.whiteBright = format(97, 39);
+ colors2.bgRedBright = format(101, 49);
+ colors2.bgGreenBright = format(102, 49);
+ colors2.bgYellowBright = format(103, 49);
+ colors2.bgBlueBright = format(104, 49);
+ colors2.bgMagentaBright = format(105, 49);
+ colors2.bgCyanBright = format(106, 49);
+ colors2.bgWhiteBright = format(107, 49);
+ module.exports = colors2;
+});
+
+// node_modules/@inquirer/figures/dist/esm/index.js
+import process3 from "node:process";
+function isUnicodeSupported() {
+ if (process3.platform !== "win32") {
+ return process3.env["TERM"] !== "linux";
+ }
+ return Boolean(process3.env["WT_SESSION"]) || Boolean(process3.env["TERMINUS_SUBLIME"]) || process3.env["ConEmuTask"] === "{cmd::Cmder}" || process3.env["TERM_PROGRAM"] === "Terminus-Sublime" || process3.env["TERM_PROGRAM"] === "vscode" || process3.env["TERM"] === "xterm-256color" || process3.env["TERM"] === "alacritty" || process3.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
+}
+var common, specialMainSymbols, specialFallbackSymbols, mainSymbols, fallbackSymbols, shouldUseMain, figures, esm_default, replacements;
+var init_esm = __esm(() => {
+ common = {
+ circleQuestionMark: "(?)",
+ questionMarkPrefix: "(?)",
+ square: "█",
+ squareDarkShade: "▓",
+ squareMediumShade: "▒",
+ squareLightShade: "░",
+ squareTop: "▀",
+ squareBottom: "▄",
+ squareLeft: "▌",
+ squareRight: "▐",
+ squareCenter: "■",
+ bullet: "●",
+ dot: "․",
+ ellipsis: "…",
+ pointerSmall: "›",
+ triangleUp: "▲",
+ triangleUpSmall: "▴",
+ triangleDown: "▼",
+ triangleDownSmall: "▾",
+ triangleLeftSmall: "◂",
+ triangleRightSmall: "▸",
+ home: "⌂",
+ heart: "♥",
+ musicNote: "♪",
+ musicNoteBeamed: "♫",
+ arrowUp: "↑",
+ arrowDown: "↓",
+ arrowLeft: "←",
+ arrowRight: "→",
+ arrowLeftRight: "↔",
+ arrowUpDown: "↕",
+ almostEqual: "≈",
+ notEqual: "≠",
+ lessOrEqual: "≤",
+ greaterOrEqual: "≥",
+ identical: "≡",
+ infinity: "∞",
+ subscriptZero: "₀",
+ subscriptOne: "₁",
+ subscriptTwo: "₂",
+ subscriptThree: "₃",
+ subscriptFour: "₄",
+ subscriptFive: "₅",
+ subscriptSix: "₆",
+ subscriptSeven: "₇",
+ subscriptEight: "₈",
+ subscriptNine: "₉",
+ oneHalf: "½",
+ oneThird: "⅓",
+ oneQuarter: "¼",
+ oneFifth: "⅕",
+ oneSixth: "⅙",
+ oneEighth: "⅛",
+ twoThirds: "⅔",
+ twoFifths: "⅖",
+ threeQuarters: "¾",
+ threeFifths: "⅗",
+ threeEighths: "⅜",
+ fourFifths: "⅘",
+ fiveSixths: "⅚",
+ fiveEighths: "⅝",
+ sevenEighths: "⅞",
+ line: "─",
+ lineBold: "━",
+ lineDouble: "═",
+ lineDashed0: "┄",
+ lineDashed1: "┅",
+ lineDashed2: "┈",
+ lineDashed3: "┉",
+ lineDashed4: "╌",
+ lineDashed5: "╍",
+ lineDashed6: "╴",
+ lineDashed7: "╶",
+ lineDashed8: "╸",
+ lineDashed9: "╺",
+ lineDashed10: "╼",
+ lineDashed11: "╾",
+ lineDashed12: "−",
+ lineDashed13: "–",
+ lineDashed14: "‐",
+ lineDashed15: "⁃",
+ lineVertical: "│",
+ lineVerticalBold: "┃",
+ lineVerticalDouble: "║",
+ lineVerticalDashed0: "┆",
+ lineVerticalDashed1: "┇",
+ lineVerticalDashed2: "┊",
+ lineVerticalDashed3: "┋",
+ lineVerticalDashed4: "╎",
+ lineVerticalDashed5: "╏",
+ lineVerticalDashed6: "╵",
+ lineVerticalDashed7: "╷",
+ lineVerticalDashed8: "╹",
+ lineVerticalDashed9: "╻",
+ lineVerticalDashed10: "╽",
+ lineVerticalDashed11: "╿",
+ lineDownLeft: "┐",
+ lineDownLeftArc: "╮",
+ lineDownBoldLeftBold: "┓",
+ lineDownBoldLeft: "┒",
+ lineDownLeftBold: "┑",
+ lineDownDoubleLeftDouble: "╗",
+ lineDownDoubleLeft: "╖",
+ lineDownLeftDouble: "╕",
+ lineDownRight: "┌",
+ lineDownRightArc: "╭",
+ lineDownBoldRightBold: "┏",
+ lineDownBoldRight: "┎",
+ lineDownRightBold: "┍",
+ lineDownDoubleRightDouble: "╔",
+ lineDownDoubleRight: "╓",
+ lineDownRightDouble: "╒",
+ lineUpLeft: "┘",
+ lineUpLeftArc: "╯",
+ lineUpBoldLeftBold: "┛",
+ lineUpBoldLeft: "┚",
+ lineUpLeftBold: "┙",
+ lineUpDoubleLeftDouble: "╝",
+ lineUpDoubleLeft: "╜",
+ lineUpLeftDouble: "╛",
+ lineUpRight: "└",
+ lineUpRightArc: "╰",
+ lineUpBoldRightBold: "┗",
+ lineUpBoldRight: "┖",
+ lineUpRightBold: "┕",
+ lineUpDoubleRightDouble: "╚",
+ lineUpDoubleRight: "╙",
+ lineUpRightDouble: "╘",
+ lineUpDownLeft: "┤",
+ lineUpBoldDownBoldLeftBold: "┫",
+ lineUpBoldDownBoldLeft: "┨",
+ lineUpDownLeftBold: "┥",
+ lineUpBoldDownLeftBold: "┩",
+ lineUpDownBoldLeftBold: "┪",
+ lineUpDownBoldLeft: "┧",
+ lineUpBoldDownLeft: "┦",
+ lineUpDoubleDownDoubleLeftDouble: "╣",
+ lineUpDoubleDownDoubleLeft: "╢",
+ lineUpDownLeftDouble: "╡",
+ lineUpDownRight: "├",
+ lineUpBoldDownBoldRightBold: "┣",
+ lineUpBoldDownBoldRight: "┠",
+ lineUpDownRightBold: "┝",
+ lineUpBoldDownRightBold: "┡",
+ lineUpDownBoldRightBold: "┢",
+ lineUpDownBoldRight: "┟",
+ lineUpBoldDownRight: "┞",
+ lineUpDoubleDownDoubleRightDouble: "╠",
+ lineUpDoubleDownDoubleRight: "╟",
+ lineUpDownRightDouble: "╞",
+ lineDownLeftRight: "┬",
+ lineDownBoldLeftBoldRightBold: "┳",
+ lineDownLeftBoldRightBold: "┯",
+ lineDownBoldLeftRight: "┰",
+ lineDownBoldLeftBoldRight: "┱",
+ lineDownBoldLeftRightBold: "┲",
+ lineDownLeftRightBold: "┮",
+ lineDownLeftBoldRight: "┭",
+ lineDownDoubleLeftDoubleRightDouble: "╦",
+ lineDownDoubleLeftRight: "╥",
+ lineDownLeftDoubleRightDouble: "╤",
+ lineUpLeftRight: "┴",
+ lineUpBoldLeftBoldRightBold: "┻",
+ lineUpLeftBoldRightBold: "┷",
+ lineUpBoldLeftRight: "┸",
+ lineUpBoldLeftBoldRight: "┹",
+ lineUpBoldLeftRightBold: "┺",
+ lineUpLeftRightBold: "┶",
+ lineUpLeftBoldRight: "┵",
+ lineUpDoubleLeftDoubleRightDouble: "╩",
+ lineUpDoubleLeftRight: "╨",
+ lineUpLeftDoubleRightDouble: "╧",
+ lineUpDownLeftRight: "┼",
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
+ lineUpDownBoldLeftBoldRightBold: "╈",
+ lineUpBoldDownLeftBoldRightBold: "╇",
+ lineUpBoldDownBoldLeftRightBold: "╊",
+ lineUpBoldDownBoldLeftBoldRight: "╉",
+ lineUpBoldDownLeftRight: "╀",
+ lineUpDownBoldLeftRight: "╁",
+ lineUpDownLeftBoldRight: "┽",
+ lineUpDownLeftRightBold: "┾",
+ lineUpBoldDownBoldLeftRight: "╂",
+ lineUpDownLeftBoldRightBold: "┿",
+ lineUpBoldDownLeftBoldRight: "╃",
+ lineUpBoldDownLeftRightBold: "╄",
+ lineUpDownBoldLeftBoldRight: "╅",
+ lineUpDownBoldLeftRightBold: "╆",
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
+ lineUpDoubleDownDoubleLeftRight: "╫",
+ lineUpDownLeftDoubleRightDouble: "╪",
+ lineCross: "╳",
+ lineBackslash: "╲",
+ lineSlash: "╱"
+ };
+ specialMainSymbols = {
+ tick: "✔",
+ info: "ℹ",
+ warning: "⚠",
+ cross: "✘",
+ squareSmall: "◻",
+ squareSmallFilled: "◼",
+ circle: "◯",
+ circleFilled: "◉",
+ circleDotted: "◌",
+ circleDouble: "◎",
+ circleCircle: "ⓞ",
+ circleCross: "ⓧ",
+ circlePipe: "Ⓘ",
+ radioOn: "◉",
+ radioOff: "◯",
+ checkboxOn: "☒",
+ checkboxOff: "☐",
+ checkboxCircleOn: "ⓧ",
+ checkboxCircleOff: "Ⓘ",
+ pointer: "❯",
+ triangleUpOutline: "△",
+ triangleLeft: "◀",
+ triangleRight: "▶",
+ lozenge: "◆",
+ lozengeOutline: "◇",
+ hamburger: "☰",
+ smiley: "㋡",
+ mustache: "෴",
+ star: "★",
+ play: "▶",
+ nodejs: "⬢",
+ oneSeventh: "⅐",
+ oneNinth: "⅑",
+ oneTenth: "⅒"
+ };
+ specialFallbackSymbols = {
+ tick: "√",
+ info: "i",
+ warning: "‼",
+ cross: "×",
+ squareSmall: "□",
+ squareSmallFilled: "■",
+ circle: "( )",
+ circleFilled: "(*)",
+ circleDotted: "( )",
+ circleDouble: "( )",
+ circleCircle: "(○)",
+ circleCross: "(×)",
+ circlePipe: "(│)",
+ radioOn: "(*)",
+ radioOff: "( )",
+ checkboxOn: "[×]",
+ checkboxOff: "[ ]",
+ checkboxCircleOn: "(×)",
+ checkboxCircleOff: "( )",
+ pointer: ">",
+ triangleUpOutline: "∆",
+ triangleLeft: "◄",
+ triangleRight: "►",
+ lozenge: "♦",
+ lozengeOutline: "◊",
+ hamburger: "≡",
+ smiley: "☺",
+ mustache: "┌─┐",
+ star: "✶",
+ play: "►",
+ nodejs: "♦",
+ oneSeventh: "1/7",
+ oneNinth: "1/9",
+ oneTenth: "1/10"
+ };
+ mainSymbols = { ...common, ...specialMainSymbols };
+ fallbackSymbols = {
+ ...common,
+ ...specialFallbackSymbols
+ };
+ shouldUseMain = isUnicodeSupported();
+ figures = shouldUseMain ? mainSymbols : fallbackSymbols;
+ esm_default = figures;
+ replacements = Object.entries(specialMainSymbols);
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/theme.js
+var import_yoctocolors_cjs, defaultTheme;
+var init_theme = __esm(() => {
+ import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
+ init_esm();
+ defaultTheme = {
+ prefix: {
+ idle: import_yoctocolors_cjs.default.blue("?"),
+ done: import_yoctocolors_cjs.default.green(esm_default.tick)
+ },
+ spinner: {
+ interval: 80,
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs.default.yellow(frame))
+ },
+ style: {
+ answer: import_yoctocolors_cjs.default.cyan,
+ message: import_yoctocolors_cjs.default.bold,
+ error: (text) => import_yoctocolors_cjs.default.red(`> ${text}`),
+ defaultAnswer: (text) => import_yoctocolors_cjs.default.dim(`(${text})`),
+ help: import_yoctocolors_cjs.default.dim,
+ highlight: import_yoctocolors_cjs.default.cyan,
+ key: (text) => import_yoctocolors_cjs.default.cyan(import_yoctocolors_cjs.default.bold(`<${text}>`))
+ }
+ };
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/make-theme.js
+function isPlainObject(value) {
+ if (typeof value !== "object" || value === null)
+ return false;
+ let proto2 = value;
+ while (Object.getPrototypeOf(proto2) !== null) {
+ proto2 = Object.getPrototypeOf(proto2);
+ }
+ return Object.getPrototypeOf(value) === proto2;
+}
+function deepMerge(...objects) {
+ const output = {};
+ for (const obj of objects) {
+ for (const [key, value] of Object.entries(obj)) {
+ const prevValue = output[key];
+ output[key] = isPlainObject(prevValue) && isPlainObject(value) ? deepMerge(prevValue, value) : value;
+ }
+ }
+ return output;
+}
+function makeTheme(...themes) {
+ const themesToMerge = [
+ defaultTheme,
+ ...themes.filter((theme) => theme != null)
+ ];
+ return deepMerge(...themesToMerge);
+}
+var init_make_theme = __esm(() => {
+ init_theme();
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
+import { AsyncResource as AsyncResource2 } from "node:async_hooks";
+function usePrefix({ status = "idle", theme }) {
+ const [showLoader, setShowLoader] = useState(false);
+ const [tick, setTick] = useState(0);
+ const { prefix, spinner } = makeTheme(theme);
+ useEffect(() => {
+ if (status === "loading") {
+ let tickInterval;
+ let inc = -1;
+ const delayTimeout = setTimeout(AsyncResource2.bind(() => {
+ setShowLoader(true);
+ tickInterval = setInterval(AsyncResource2.bind(() => {
+ inc = inc + 1;
+ setTick(inc % spinner.frames.length);
+ }), spinner.interval);
+ }), 300);
+ return () => {
+ clearTimeout(delayTimeout);
+ clearInterval(tickInterval);
+ };
+ } else {
+ setShowLoader(false);
+ }
+ }, [status]);
+ if (showLoader) {
+ return spinner.frames[tick];
+ }
+ const iconName = status === "loading" ? "idle" : status;
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
+}
+var init_use_prefix = __esm(() => {
+ init_use_state();
+ init_use_effect();
+ init_make_theme();
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/use-memo.js
+function useMemo(fn, dependencies) {
+ return withPointer((pointer) => {
+ const prev = pointer.get();
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
+ const value = fn();
+ pointer.set({ value, dependencies });
+ return value;
+ }
+ return prev.value;
+ });
+}
+var init_use_memo = __esm(() => {
+ init_hook_engine();
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/use-ref.js
+function useRef(val) {
+ return useState({ current: val })[0];
+}
+var init_use_ref = __esm(() => {
+ init_use_state();
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
+function useKeypress(userHandler) {
+ const signal = useRef(userHandler);
+ signal.current = userHandler;
+ useEffect((rl) => {
+ let ignore = false;
+ const handler = withUpdates((_input, event) => {
+ if (ignore)
+ return;
+ signal.current(event, rl);
+ });
+ rl.input.on("keypress", handler);
+ return () => {
+ ignore = true;
+ rl.input.removeListener("keypress", handler);
+ };
+ }, []);
+}
+var init_use_keypress = __esm(() => {
+ init_use_ref();
+ init_use_effect();
+ init_hook_engine();
+});
+
+// node_modules/cli-width/index.js
+var require_cli_width = __commonJS((exports, module) => {
+ module.exports = cliWidth;
+ function normalizeOpts(options) {
+ const defaultOpts = {
+ defaultWidth: 0,
+ output: process.stdout,
+ tty: __require("tty")
+ };
+ if (!options) {
+ return defaultOpts;
+ }
+ Object.keys(defaultOpts).forEach(function(key) {
+ if (!options[key]) {
+ options[key] = defaultOpts[key];
+ }
+ });
+ return options;
+ }
+ function cliWidth(options) {
+ const opts = normalizeOpts(options);
+ if (opts.output.getWindowSize) {
+ return opts.output.getWindowSize()[0] || opts.defaultWidth;
+ }
+ if (opts.tty.getWindowSize) {
+ return opts.tty.getWindowSize()[1] || opts.defaultWidth;
+ }
+ if (opts.output.columns) {
+ return opts.output.columns;
+ }
+ if (process.env.CLI_WIDTH) {
+ const width = parseInt(process.env.CLI_WIDTH, 10);
+ if (!isNaN(width) && width !== 0) {
+ return width;
+ }
+ }
+ return opts.defaultWidth;
+ }
+});
+
+// node_modules/ansi-regex/index.js
+var require_ansi_regex = __commonJS((exports, module) => {
+ module.exports = ({ onlyFirst = false } = {}) => {
+ const pattern = [
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
+ ].join("|");
+ return new RegExp(pattern, onlyFirst ? undefined : "g");
+ };
+});
+
+// node_modules/strip-ansi/index.js
+var require_strip_ansi = __commonJS((exports, module) => {
+ var ansiRegex = require_ansi_regex();
+ module.exports = (string2) => typeof string2 === "string" ? string2.replace(ansiRegex(), "") : string2;
+});
+
+// node_modules/is-fullwidth-code-point/index.js
+var require_is_fullwidth_code_point = __commonJS((exports, module) => {
+ var isFullwidthCodePoint = (codePoint) => {
+ if (Number.isNaN(codePoint)) {
+ return false;
+ }
+ if (codePoint >= 4352 && (codePoint <= 4447 || codePoint === 9001 || codePoint === 9002 || 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || 12880 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65131 || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 262141)) {
+ return true;
+ }
+ return false;
+ };
+ module.exports = isFullwidthCodePoint;
+ module.exports.default = isFullwidthCodePoint;
+});
+
+// node_modules/emoji-regex/index.js
+var require_emoji_regex = __commonJS((exports, module) => {
+ module.exports = function() {
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
+ };
+});
+
+// node_modules/string-width/index.js
+var require_string_width = __commonJS((exports, module) => {
+ var stripAnsi = require_strip_ansi();
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
+ var emojiRegex = require_emoji_regex();
+ var stringWidth = (string2) => {
+ if (typeof string2 !== "string" || string2.length === 0) {
+ return 0;
+ }
+ string2 = stripAnsi(string2);
+ if (string2.length === 0) {
+ return 0;
+ }
+ string2 = string2.replace(emojiRegex(), " ");
+ let width = 0;
+ for (let i = 0;i < string2.length; i++) {
+ const code = string2.codePointAt(i);
+ if (code <= 31 || code >= 127 && code <= 159) {
+ continue;
+ }
+ if (code >= 768 && code <= 879) {
+ continue;
+ }
+ if (code > 65535) {
+ i++;
+ }
+ width += isFullwidthCodePoint(code) ? 2 : 1;
+ }
+ return width;
+ };
+ module.exports = stringWidth;
+ module.exports.default = stringWidth;
+});
+
+// node_modules/color-name/index.js
+var require_color_name = __commonJS((exports, module) => {
+ module.exports = {
+ aliceblue: [240, 248, 255],
+ antiquewhite: [250, 235, 215],
+ aqua: [0, 255, 255],
+ aquamarine: [127, 255, 212],
+ azure: [240, 255, 255],
+ beige: [245, 245, 220],
+ bisque: [255, 228, 196],
+ black: [0, 0, 0],
+ blanchedalmond: [255, 235, 205],
+ blue: [0, 0, 255],
+ blueviolet: [138, 43, 226],
+ brown: [165, 42, 42],
+ burlywood: [222, 184, 135],
+ cadetblue: [95, 158, 160],
+ chartreuse: [127, 255, 0],
+ chocolate: [210, 105, 30],
+ coral: [255, 127, 80],
+ cornflowerblue: [100, 149, 237],
+ cornsilk: [255, 248, 220],
+ crimson: [220, 20, 60],
+ cyan: [0, 255, 255],
+ darkblue: [0, 0, 139],
+ darkcyan: [0, 139, 139],
+ darkgoldenrod: [184, 134, 11],
+ darkgray: [169, 169, 169],
+ darkgreen: [0, 100, 0],
+ darkgrey: [169, 169, 169],
+ darkkhaki: [189, 183, 107],
+ darkmagenta: [139, 0, 139],
+ darkolivegreen: [85, 107, 47],
+ darkorange: [255, 140, 0],
+ darkorchid: [153, 50, 204],
+ darkred: [139, 0, 0],
+ darksalmon: [233, 150, 122],
+ darkseagreen: [143, 188, 143],
+ darkslateblue: [72, 61, 139],
+ darkslategray: [47, 79, 79],
+ darkslategrey: [47, 79, 79],
+ darkturquoise: [0, 206, 209],
+ darkviolet: [148, 0, 211],
+ deeppink: [255, 20, 147],
+ deepskyblue: [0, 191, 255],
+ dimgray: [105, 105, 105],
+ dimgrey: [105, 105, 105],
+ dodgerblue: [30, 144, 255],
+ firebrick: [178, 34, 34],
+ floralwhite: [255, 250, 240],
+ forestgreen: [34, 139, 34],
+ fuchsia: [255, 0, 255],
+ gainsboro: [220, 220, 220],
+ ghostwhite: [248, 248, 255],
+ gold: [255, 215, 0],
+ goldenrod: [218, 165, 32],
+ gray: [128, 128, 128],
+ green: [0, 128, 0],
+ greenyellow: [173, 255, 47],
+ grey: [128, 128, 128],
+ honeydew: [240, 255, 240],
+ hotpink: [255, 105, 180],
+ indianred: [205, 92, 92],
+ indigo: [75, 0, 130],
+ ivory: [255, 255, 240],
+ khaki: [240, 230, 140],
+ lavender: [230, 230, 250],
+ lavenderblush: [255, 240, 245],
+ lawngreen: [124, 252, 0],
+ lemonchiffon: [255, 250, 205],
+ lightblue: [173, 216, 230],
+ lightcoral: [240, 128, 128],
+ lightcyan: [224, 255, 255],
+ lightgoldenrodyellow: [250, 250, 210],
+ lightgray: [211, 211, 211],
+ lightgreen: [144, 238, 144],
+ lightgrey: [211, 211, 211],
+ lightpink: [255, 182, 193],
+ lightsalmon: [255, 160, 122],
+ lightseagreen: [32, 178, 170],
+ lightskyblue: [135, 206, 250],
+ lightslategray: [119, 136, 153],
+ lightslategrey: [119, 136, 153],
+ lightsteelblue: [176, 196, 222],
+ lightyellow: [255, 255, 224],
+ lime: [0, 255, 0],
+ limegreen: [50, 205, 50],
+ linen: [250, 240, 230],
+ magenta: [255, 0, 255],
+ maroon: [128, 0, 0],
+ mediumaquamarine: [102, 205, 170],
+ mediumblue: [0, 0, 205],
+ mediumorchid: [186, 85, 211],
+ mediumpurple: [147, 112, 219],
+ mediumseagreen: [60, 179, 113],
+ mediumslateblue: [123, 104, 238],
+ mediumspringgreen: [0, 250, 154],
+ mediumturquoise: [72, 209, 204],
+ mediumvioletred: [199, 21, 133],
+ midnightblue: [25, 25, 112],
+ mintcream: [245, 255, 250],
+ mistyrose: [255, 228, 225],
+ moccasin: [255, 228, 181],
+ navajowhite: [255, 222, 173],
+ navy: [0, 0, 128],
+ oldlace: [253, 245, 230],
+ olive: [128, 128, 0],
+ olivedrab: [107, 142, 35],
+ orange: [255, 165, 0],
+ orangered: [255, 69, 0],
+ orchid: [218, 112, 214],
+ palegoldenrod: [238, 232, 170],
+ palegreen: [152, 251, 152],
+ paleturquoise: [175, 238, 238],
+ palevioletred: [219, 112, 147],
+ papayawhip: [255, 239, 213],
+ peachpuff: [255, 218, 185],
+ peru: [205, 133, 63],
+ pink: [255, 192, 203],
+ plum: [221, 160, 221],
+ powderblue: [176, 224, 230],
+ purple: [128, 0, 128],
+ rebeccapurple: [102, 51, 153],
+ red: [255, 0, 0],
+ rosybrown: [188, 143, 143],
+ royalblue: [65, 105, 225],
+ saddlebrown: [139, 69, 19],
+ salmon: [250, 128, 114],
+ sandybrown: [244, 164, 96],
+ seagreen: [46, 139, 87],
+ seashell: [255, 245, 238],
+ sienna: [160, 82, 45],
+ silver: [192, 192, 192],
+ skyblue: [135, 206, 235],
+ slateblue: [106, 90, 205],
+ slategray: [112, 128, 144],
+ slategrey: [112, 128, 144],
+ snow: [255, 250, 250],
+ springgreen: [0, 255, 127],
+ steelblue: [70, 130, 180],
+ tan: [210, 180, 140],
+ teal: [0, 128, 128],
+ thistle: [216, 191, 216],
+ tomato: [255, 99, 71],
+ turquoise: [64, 224, 208],
+ violet: [238, 130, 238],
+ wheat: [245, 222, 179],
+ white: [255, 255, 255],
+ whitesmoke: [245, 245, 245],
+ yellow: [255, 255, 0],
+ yellowgreen: [154, 205, 50]
+ };
+});
+
+// node_modules/color-convert/conversions.js
+var require_conversions = __commonJS((exports, module) => {
+ var cssKeywords = require_color_name();
+ var reverseKeywords = {};
+ for (const key of Object.keys(cssKeywords)) {
+ reverseKeywords[cssKeywords[key]] = key;
+ }
+ var convert = {
+ rgb: { channels: 3, labels: "rgb" },
+ hsl: { channels: 3, labels: "hsl" },
+ hsv: { channels: 3, labels: "hsv" },
+ hwb: { channels: 3, labels: "hwb" },
+ cmyk: { channels: 4, labels: "cmyk" },
+ xyz: { channels: 3, labels: "xyz" },
+ lab: { channels: 3, labels: "lab" },
+ lch: { channels: 3, labels: "lch" },
+ hex: { channels: 1, labels: ["hex"] },
+ keyword: { channels: 1, labels: ["keyword"] },
+ ansi16: { channels: 1, labels: ["ansi16"] },
+ ansi256: { channels: 1, labels: ["ansi256"] },
+ hcg: { channels: 3, labels: ["h", "c", "g"] },
+ apple: { channels: 3, labels: ["r16", "g16", "b16"] },
+ gray: { channels: 1, labels: ["gray"] }
+ };
+ module.exports = convert;
+ for (const model of Object.keys(convert)) {
+ if (!("channels" in convert[model])) {
+ throw new Error("missing channels property: " + model);
+ }
+ if (!("labels" in convert[model])) {
+ throw new Error("missing channel labels property: " + model);
+ }
+ if (convert[model].labels.length !== convert[model].channels) {
+ throw new Error("channel and label counts mismatch: " + model);
+ }
+ const { channels, labels } = convert[model];
+ delete convert[model].channels;
+ delete convert[model].labels;
+ Object.defineProperty(convert[model], "channels", { value: channels });
+ Object.defineProperty(convert[model], "labels", { value: labels });
+ }
+ convert.rgb.hsl = function(rgb) {
+ const r = rgb[0] / 255;
+ const g = rgb[1] / 255;
+ const b = rgb[2] / 255;
+ const min = Math.min(r, g, b);
+ const max = Math.max(r, g, b);
+ const delta = max - min;
+ let h;
+ let s;
+ if (max === min) {
+ h = 0;
+ } else if (r === max) {
+ h = (g - b) / delta;
+ } else if (g === max) {
+ h = 2 + (b - r) / delta;
+ } else if (b === max) {
+ h = 4 + (r - g) / delta;
+ }
+ h = Math.min(h * 60, 360);
+ if (h < 0) {
+ h += 360;
+ }
+ const l = (min + max) / 2;
+ if (max === min) {
+ s = 0;
+ } else if (l <= 0.5) {
+ s = delta / (max + min);
+ } else {
+ s = delta / (2 - max - min);
+ }
+ return [h, s * 100, l * 100];
+ };
+ convert.rgb.hsv = function(rgb) {
+ let rdif;
+ let gdif;
+ let bdif;
+ let h;
+ let s;
+ const r = rgb[0] / 255;
+ const g = rgb[1] / 255;
+ const b = rgb[2] / 255;
+ const v = Math.max(r, g, b);
+ const diff = v - Math.min(r, g, b);
+ const diffc = function(c) {
+ return (v - c) / 6 / diff + 1 / 2;
+ };
+ if (diff === 0) {
+ h = 0;
+ s = 0;
+ } else {
+ s = diff / v;
+ rdif = diffc(r);
+ gdif = diffc(g);
+ bdif = diffc(b);
+ if (r === v) {
+ h = bdif - gdif;
+ } else if (g === v) {
+ h = 1 / 3 + rdif - bdif;
+ } else if (b === v) {
+ h = 2 / 3 + gdif - rdif;
+ }
+ if (h < 0) {
+ h += 1;
+ } else if (h > 1) {
+ h -= 1;
+ }
+ }
+ return [
+ h * 360,
+ s * 100,
+ v * 100
+ ];
+ };
+ convert.rgb.hwb = function(rgb) {
+ const r = rgb[0];
+ const g = rgb[1];
+ let b = rgb[2];
+ const h = convert.rgb.hsl(rgb)[0];
+ const w = 1 / 255 * Math.min(r, Math.min(g, b));
+ b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
+ return [h, w * 100, b * 100];
+ };
+ convert.rgb.cmyk = function(rgb) {
+ const r = rgb[0] / 255;
+ const g = rgb[1] / 255;
+ const b = rgb[2] / 255;
+ const k = Math.min(1 - r, 1 - g, 1 - b);
+ const c = (1 - r - k) / (1 - k) || 0;
+ const m = (1 - g - k) / (1 - k) || 0;
+ const y = (1 - b - k) / (1 - k) || 0;
+ return [c * 100, m * 100, y * 100, k * 100];
+ };
+ function comparativeDistance(x, y) {
+ return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
+ }
+ convert.rgb.keyword = function(rgb) {
+ const reversed = reverseKeywords[rgb];
+ if (reversed) {
+ return reversed;
+ }
+ let currentClosestDistance = Infinity;
+ let currentClosestKeyword;
+ for (const keyword of Object.keys(cssKeywords)) {
+ const value = cssKeywords[keyword];
+ const distance = comparativeDistance(rgb, value);
+ if (distance < currentClosestDistance) {
+ currentClosestDistance = distance;
+ currentClosestKeyword = keyword;
+ }
+ }
+ return currentClosestKeyword;
+ };
+ convert.keyword.rgb = function(keyword) {
+ return cssKeywords[keyword];
+ };
+ convert.rgb.xyz = function(rgb) {
+ let r = rgb[0] / 255;
+ let g = rgb[1] / 255;
+ let b = rgb[2] / 255;
+ r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
+ g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
+ b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
+ const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
+ const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
+ const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
+ return [x * 100, y * 100, z * 100];
+ };
+ convert.rgb.lab = function(rgb) {
+ const xyz = convert.rgb.xyz(rgb);
+ let x = xyz[0];
+ let y = xyz[1];
+ let z = xyz[2];
+ x /= 95.047;
+ y /= 100;
+ z /= 108.883;
+ x = x > 0.008856 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
+ y = y > 0.008856 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
+ z = z > 0.008856 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
+ const l = 116 * y - 16;
+ const a = 500 * (x - y);
+ const b = 200 * (y - z);
+ return [l, a, b];
+ };
+ convert.hsl.rgb = function(hsl) {
+ const h = hsl[0] / 360;
+ const s = hsl[1] / 100;
+ const l = hsl[2] / 100;
+ let t2;
+ let t3;
+ let val;
+ if (s === 0) {
+ val = l * 255;
+ return [val, val, val];
+ }
+ if (l < 0.5) {
+ t2 = l * (1 + s);
+ } else {
+ t2 = l + s - l * s;
+ }
+ const t1 = 2 * l - t2;
+ const rgb = [0, 0, 0];
+ for (let i = 0;i < 3; i++) {
+ t3 = h + 1 / 3 * -(i - 1);
+ if (t3 < 0) {
+ t3++;
+ }
+ if (t3 > 1) {
+ t3--;
+ }
+ if (6 * t3 < 1) {
+ val = t1 + (t2 - t1) * 6 * t3;
+ } else if (2 * t3 < 1) {
+ val = t2;
+ } else if (3 * t3 < 2) {
+ val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
+ } else {
+ val = t1;
+ }
+ rgb[i] = val * 255;
+ }
+ return rgb;
+ };
+ convert.hsl.hsv = function(hsl) {
+ const h = hsl[0];
+ let s = hsl[1] / 100;
+ let l = hsl[2] / 100;
+ let smin = s;
+ const lmin = Math.max(l, 0.01);
+ l *= 2;
+ s *= l <= 1 ? l : 2 - l;
+ smin *= lmin <= 1 ? lmin : 2 - lmin;
+ const v = (l + s) / 2;
+ const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
+ return [h, sv * 100, v * 100];
+ };
+ convert.hsv.rgb = function(hsv) {
+ const h = hsv[0] / 60;
+ const s = hsv[1] / 100;
+ let v = hsv[2] / 100;
+ const hi = Math.floor(h) % 6;
+ const f = h - Math.floor(h);
+ const p = 255 * v * (1 - s);
+ const q = 255 * v * (1 - s * f);
+ const t = 255 * v * (1 - s * (1 - f));
+ v *= 255;
+ switch (hi) {
+ case 0:
+ return [v, t, p];
+ case 1:
+ return [q, v, p];
+ case 2:
+ return [p, v, t];
+ case 3:
+ return [p, q, v];
+ case 4:
+ return [t, p, v];
+ case 5:
+ return [v, p, q];
+ }
+ };
+ convert.hsv.hsl = function(hsv) {
+ const h = hsv[0];
+ const s = hsv[1] / 100;
+ const v = hsv[2] / 100;
+ const vmin = Math.max(v, 0.01);
+ let sl;
+ let l;
+ l = (2 - s) * v;
+ const lmin = (2 - s) * vmin;
+ sl = s * vmin;
+ sl /= lmin <= 1 ? lmin : 2 - lmin;
+ sl = sl || 0;
+ l /= 2;
+ return [h, sl * 100, l * 100];
+ };
+ convert.hwb.rgb = function(hwb) {
+ const h = hwb[0] / 360;
+ let wh = hwb[1] / 100;
+ let bl = hwb[2] / 100;
+ const ratio = wh + bl;
+ let f;
+ if (ratio > 1) {
+ wh /= ratio;
+ bl /= ratio;
+ }
+ const i = Math.floor(6 * h);
+ const v = 1 - bl;
+ f = 6 * h - i;
+ if ((i & 1) !== 0) {
+ f = 1 - f;
+ }
+ const n = wh + f * (v - wh);
+ let r;
+ let g;
+ let b;
+ switch (i) {
+ default:
+ case 6:
+ case 0:
+ r = v;
+ g = n;
+ b = wh;
+ break;
+ case 1:
+ r = n;
+ g = v;
+ b = wh;
+ break;
+ case 2:
+ r = wh;
+ g = v;
+ b = n;
+ break;
+ case 3:
+ r = wh;
+ g = n;
+ b = v;
+ break;
+ case 4:
+ r = n;
+ g = wh;
+ b = v;
+ break;
+ case 5:
+ r = v;
+ g = wh;
+ b = n;
+ break;
+ }
+ return [r * 255, g * 255, b * 255];
+ };
+ convert.cmyk.rgb = function(cmyk) {
+ const c = cmyk[0] / 100;
+ const m = cmyk[1] / 100;
+ const y = cmyk[2] / 100;
+ const k = cmyk[3] / 100;
+ const r = 1 - Math.min(1, c * (1 - k) + k);
+ const g = 1 - Math.min(1, m * (1 - k) + k);
+ const b = 1 - Math.min(1, y * (1 - k) + k);
+ return [r * 255, g * 255, b * 255];
+ };
+ convert.xyz.rgb = function(xyz) {
+ const x = xyz[0] / 100;
+ const y = xyz[1] / 100;
+ const z = xyz[2] / 100;
+ let r;
+ let g;
+ let b;
+ r = x * 3.2406 + y * -1.5372 + z * -0.4986;
+ g = x * -0.9689 + y * 1.8758 + z * 0.0415;
+ b = x * 0.0557 + y * -0.204 + z * 1.057;
+ r = r > 0.0031308 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
+ g = g > 0.0031308 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
+ b = b > 0.0031308 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
+ r = Math.min(Math.max(0, r), 1);
+ g = Math.min(Math.max(0, g), 1);
+ b = Math.min(Math.max(0, b), 1);
+ return [r * 255, g * 255, b * 255];
+ };
+ convert.xyz.lab = function(xyz) {
+ let x = xyz[0];
+ let y = xyz[1];
+ let z = xyz[2];
+ x /= 95.047;
+ y /= 100;
+ z /= 108.883;
+ x = x > 0.008856 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
+ y = y > 0.008856 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
+ z = z > 0.008856 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
+ const l = 116 * y - 16;
+ const a = 500 * (x - y);
+ const b = 200 * (y - z);
+ return [l, a, b];
+ };
+ convert.lab.xyz = function(lab) {
+ const l = lab[0];
+ const a = lab[1];
+ const b = lab[2];
+ let x;
+ let y;
+ let z;
+ y = (l + 16) / 116;
+ x = a / 500 + y;
+ z = y - b / 200;
+ const y2 = y ** 3;
+ const x2 = x ** 3;
+ const z2 = z ** 3;
+ y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
+ x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
+ z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
+ x *= 95.047;
+ y *= 100;
+ z *= 108.883;
+ return [x, y, z];
+ };
+ convert.lab.lch = function(lab) {
+ const l = lab[0];
+ const a = lab[1];
+ const b = lab[2];
+ let h;
+ const hr = Math.atan2(b, a);
+ h = hr * 360 / 2 / Math.PI;
+ if (h < 0) {
+ h += 360;
+ }
+ const c = Math.sqrt(a * a + b * b);
+ return [l, c, h];
+ };
+ convert.lch.lab = function(lch) {
+ const l = lch[0];
+ const c = lch[1];
+ const h = lch[2];
+ const hr = h / 360 * 2 * Math.PI;
+ const a = c * Math.cos(hr);
+ const b = c * Math.sin(hr);
+ return [l, a, b];
+ };
+ convert.rgb.ansi16 = function(args, saturation = null) {
+ const [r, g, b] = args;
+ let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
+ value = Math.round(value / 50);
+ if (value === 0) {
+ return 30;
+ }
+ let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
+ if (value === 2) {
+ ansi += 60;
+ }
+ return ansi;
+ };
+ convert.hsv.ansi16 = function(args) {
+ return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
+ };
+ convert.rgb.ansi256 = function(args) {
+ const r = args[0];
+ const g = args[1];
+ const b = args[2];
+ if (r === g && g === b) {
+ if (r < 8) {
+ return 16;
+ }
+ if (r > 248) {
+ return 231;
+ }
+ return Math.round((r - 8) / 247 * 24) + 232;
+ }
+ const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
+ return ansi;
+ };
+ convert.ansi16.rgb = function(args) {
+ let color = args % 10;
+ if (color === 0 || color === 7) {
+ if (args > 50) {
+ color += 3.5;
+ }
+ color = color / 10.5 * 255;
+ return [color, color, color];
+ }
+ const mult = (~~(args > 50) + 1) * 0.5;
+ const r = (color & 1) * mult * 255;
+ const g = (color >> 1 & 1) * mult * 255;
+ const b = (color >> 2 & 1) * mult * 255;
+ return [r, g, b];
+ };
+ convert.ansi256.rgb = function(args) {
+ if (args >= 232) {
+ const c = (args - 232) * 10 + 8;
+ return [c, c, c];
+ }
+ args -= 16;
+ let rem;
+ const r = Math.floor(args / 36) / 5 * 255;
+ const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
+ const b = rem % 6 / 5 * 255;
+ return [r, g, b];
+ };
+ convert.rgb.hex = function(args) {
+ const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
+ const string2 = integer.toString(16).toUpperCase();
+ return "000000".substring(string2.length) + string2;
+ };
+ convert.hex.rgb = function(args) {
+ const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
+ if (!match) {
+ return [0, 0, 0];
+ }
+ let colorString = match[0];
+ if (match[0].length === 3) {
+ colorString = colorString.split("").map((char) => {
+ return char + char;
+ }).join("");
+ }
+ const integer = parseInt(colorString, 16);
+ const r = integer >> 16 & 255;
+ const g = integer >> 8 & 255;
+ const b = integer & 255;
+ return [r, g, b];
+ };
+ convert.rgb.hcg = function(rgb) {
+ const r = rgb[0] / 255;
+ const g = rgb[1] / 255;
+ const b = rgb[2] / 255;
+ const max = Math.max(Math.max(r, g), b);
+ const min = Math.min(Math.min(r, g), b);
+ const chroma = max - min;
+ let grayscale;
+ let hue;
+ if (chroma < 1) {
+ grayscale = min / (1 - chroma);
+ } else {
+ grayscale = 0;
+ }
+ if (chroma <= 0) {
+ hue = 0;
+ } else if (max === r) {
+ hue = (g - b) / chroma % 6;
+ } else if (max === g) {
+ hue = 2 + (b - r) / chroma;
+ } else {
+ hue = 4 + (r - g) / chroma;
+ }
+ hue /= 6;
+ hue %= 1;
+ return [hue * 360, chroma * 100, grayscale * 100];
+ };
+ convert.hsl.hcg = function(hsl) {
+ const s = hsl[1] / 100;
+ const l = hsl[2] / 100;
+ const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
+ let f = 0;
+ if (c < 1) {
+ f = (l - 0.5 * c) / (1 - c);
+ }
+ return [hsl[0], c * 100, f * 100];
+ };
+ convert.hsv.hcg = function(hsv) {
+ const s = hsv[1] / 100;
+ const v = hsv[2] / 100;
+ const c = s * v;
+ let f = 0;
+ if (c < 1) {
+ f = (v - c) / (1 - c);
+ }
+ return [hsv[0], c * 100, f * 100];
+ };
+ convert.hcg.rgb = function(hcg) {
+ const h = hcg[0] / 360;
+ const c = hcg[1] / 100;
+ const g = hcg[2] / 100;
+ if (c === 0) {
+ return [g * 255, g * 255, g * 255];
+ }
+ const pure = [0, 0, 0];
+ const hi = h % 1 * 6;
+ const v = hi % 1;
+ const w = 1 - v;
+ let mg = 0;
+ switch (Math.floor(hi)) {
+ case 0:
+ pure[0] = 1;
+ pure[1] = v;
+ pure[2] = 0;
+ break;
+ case 1:
+ pure[0] = w;
+ pure[1] = 1;
+ pure[2] = 0;
+ break;
+ case 2:
+ pure[0] = 0;
+ pure[1] = 1;
+ pure[2] = v;
+ break;
+ case 3:
+ pure[0] = 0;
+ pure[1] = w;
+ pure[2] = 1;
+ break;
+ case 4:
+ pure[0] = v;
+ pure[1] = 0;
+ pure[2] = 1;
+ break;
+ default:
+ pure[0] = 1;
+ pure[1] = 0;
+ pure[2] = w;
+ }
+ mg = (1 - c) * g;
+ return [
+ (c * pure[0] + mg) * 255,
+ (c * pure[1] + mg) * 255,
+ (c * pure[2] + mg) * 255
+ ];
+ };
+ convert.hcg.hsv = function(hcg) {
+ const c = hcg[1] / 100;
+ const g = hcg[2] / 100;
+ const v = c + g * (1 - c);
+ let f = 0;
+ if (v > 0) {
+ f = c / v;
+ }
+ return [hcg[0], f * 100, v * 100];
+ };
+ convert.hcg.hsl = function(hcg) {
+ const c = hcg[1] / 100;
+ const g = hcg[2] / 100;
+ const l = g * (1 - c) + 0.5 * c;
+ let s = 0;
+ if (l > 0 && l < 0.5) {
+ s = c / (2 * l);
+ } else if (l >= 0.5 && l < 1) {
+ s = c / (2 * (1 - l));
+ }
+ return [hcg[0], s * 100, l * 100];
+ };
+ convert.hcg.hwb = function(hcg) {
+ const c = hcg[1] / 100;
+ const g = hcg[2] / 100;
+ const v = c + g * (1 - c);
+ return [hcg[0], (v - c) * 100, (1 - v) * 100];
+ };
+ convert.hwb.hcg = function(hwb) {
+ const w = hwb[1] / 100;
+ const b = hwb[2] / 100;
+ const v = 1 - b;
+ const c = v - w;
+ let g = 0;
+ if (c < 1) {
+ g = (v - c) / (1 - c);
+ }
+ return [hwb[0], c * 100, g * 100];
+ };
+ convert.apple.rgb = function(apple) {
+ return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
+ };
+ convert.rgb.apple = function(rgb) {
+ return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
+ };
+ convert.gray.rgb = function(args) {
+ return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
+ };
+ convert.gray.hsl = function(args) {
+ return [0, 0, args[0]];
+ };
+ convert.gray.hsv = convert.gray.hsl;
+ convert.gray.hwb = function(gray) {
+ return [0, 100, gray[0]];
+ };
+ convert.gray.cmyk = function(gray) {
+ return [0, 0, 0, gray[0]];
+ };
+ convert.gray.lab = function(gray) {
+ return [gray[0], 0, 0];
+ };
+ convert.gray.hex = function(gray) {
+ const val = Math.round(gray[0] / 100 * 255) & 255;
+ const integer = (val << 16) + (val << 8) + val;
+ const string2 = integer.toString(16).toUpperCase();
+ return "000000".substring(string2.length) + string2;
+ };
+ convert.rgb.gray = function(rgb) {
+ const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
+ return [val / 255 * 100];
+ };
+});
+
+// node_modules/color-convert/route.js
+var require_route = __commonJS((exports, module) => {
+ var conversions = require_conversions();
+ function buildGraph() {
+ const graph = {};
+ const models = Object.keys(conversions);
+ for (let len = models.length, i = 0;i < len; i++) {
+ graph[models[i]] = {
+ distance: -1,
+ parent: null
+ };
+ }
+ return graph;
+ }
+ function deriveBFS(fromModel) {
+ const graph = buildGraph();
+ const queue = [fromModel];
+ graph[fromModel].distance = 0;
+ while (queue.length) {
+ const current = queue.pop();
+ const adjacents = Object.keys(conversions[current]);
+ for (let len = adjacents.length, i = 0;i < len; i++) {
+ const adjacent = adjacents[i];
+ const node = graph[adjacent];
+ if (node.distance === -1) {
+ node.distance = graph[current].distance + 1;
+ node.parent = current;
+ queue.unshift(adjacent);
+ }
+ }
+ }
+ return graph;
+ }
+ function link(from, to) {
+ return function(args) {
+ return to(from(args));
+ };
+ }
+ function wrapConversion(toModel, graph) {
+ const path2 = [graph[toModel].parent, toModel];
+ let fn = conversions[graph[toModel].parent][toModel];
+ let cur = graph[toModel].parent;
+ while (graph[cur].parent) {
+ path2.unshift(graph[cur].parent);
+ fn = link(conversions[graph[cur].parent][cur], fn);
+ cur = graph[cur].parent;
+ }
+ fn.conversion = path2;
+ return fn;
+ }
+ module.exports = function(fromModel) {
+ const graph = deriveBFS(fromModel);
+ const conversion = {};
+ const models = Object.keys(graph);
+ for (let len = models.length, i = 0;i < len; i++) {
+ const toModel = models[i];
+ const node = graph[toModel];
+ if (node.parent === null) {
+ continue;
+ }
+ conversion[toModel] = wrapConversion(toModel, graph);
+ }
+ return conversion;
+ };
+});
+
+// node_modules/color-convert/index.js
+var require_color_convert = __commonJS((exports, module) => {
+ var conversions = require_conversions();
+ var route = require_route();
+ var convert = {};
+ var models = Object.keys(conversions);
+ function wrapRaw(fn) {
+ const wrappedFn = function(...args) {
+ const arg0 = args[0];
+ if (arg0 === undefined || arg0 === null) {
+ return arg0;
+ }
+ if (arg0.length > 1) {
+ args = arg0;
+ }
+ return fn(args);
+ };
+ if ("conversion" in fn) {
+ wrappedFn.conversion = fn.conversion;
+ }
+ return wrappedFn;
+ }
+ function wrapRounded(fn) {
+ const wrappedFn = function(...args) {
+ const arg0 = args[0];
+ if (arg0 === undefined || arg0 === null) {
+ return arg0;
+ }
+ if (arg0.length > 1) {
+ args = arg0;
+ }
+ const result = fn(args);
+ if (typeof result === "object") {
+ for (let len = result.length, i = 0;i < len; i++) {
+ result[i] = Math.round(result[i]);
+ }
+ }
+ return result;
+ };
+ if ("conversion" in fn) {
+ wrappedFn.conversion = fn.conversion;
+ }
+ return wrappedFn;
+ }
+ models.forEach((fromModel) => {
+ convert[fromModel] = {};
+ Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
+ Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
+ const routes = route(fromModel);
+ const routeModels = Object.keys(routes);
+ routeModels.forEach((toModel) => {
+ const fn = routes[toModel];
+ convert[fromModel][toModel] = wrapRounded(fn);
+ convert[fromModel][toModel].raw = wrapRaw(fn);
+ });
+ });
+ module.exports = convert;
+});
+
+// node_modules/ansi-styles/index.js
+var require_ansi_styles = __commonJS((exports, module) => {
+ var wrapAnsi162 = (fn, offset) => (...args) => {
+ const code = fn(...args);
+ return `\x1B[${code + offset}m`;
+ };
+ var wrapAnsi2562 = (fn, offset) => (...args) => {
+ const code = fn(...args);
+ return `\x1B[${38 + offset};5;${code}m`;
+ };
+ var wrapAnsi16m2 = (fn, offset) => (...args) => {
+ const rgb = fn(...args);
+ return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
+ };
+ var ansi2ansi = (n) => n;
+ var rgb2rgb = (r, g, b) => [r, g, b];
+ var setLazyProperty = (object, property, get) => {
+ Object.defineProperty(object, property, {
+ get: () => {
+ const value = get();
+ Object.defineProperty(object, property, {
+ value,
+ enumerable: true,
+ configurable: true
+ });
+ return value;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ };
+ var colorConvert;
+ var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
+ if (colorConvert === undefined) {
+ colorConvert = require_color_convert();
+ }
+ const offset = isBackground ? 10 : 0;
+ const styles3 = {};
+ for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
+ const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
+ if (sourceSpace === targetSpace) {
+ styles3[name] = wrap(identity, offset);
+ } else if (typeof suite === "object") {
+ styles3[name] = wrap(suite[targetSpace], offset);
+ }
+ }
+ return styles3;
+ };
+ function assembleStyles2() {
+ const codes = new Map;
+ const styles3 = {
+ modifier: {
+ reset: [0, 0],
+ bold: [1, 22],
+ dim: [2, 22],
+ italic: [3, 23],
+ underline: [4, 24],
+ inverse: [7, 27],
+ hidden: [8, 28],
+ strikethrough: [9, 29]
+ },
+ color: {
+ black: [30, 39],
+ red: [31, 39],
+ green: [32, 39],
+ yellow: [33, 39],
+ blue: [34, 39],
+ magenta: [35, 39],
+ cyan: [36, 39],
+ white: [37, 39],
+ blackBright: [90, 39],
+ redBright: [91, 39],
+ greenBright: [92, 39],
+ yellowBright: [93, 39],
+ blueBright: [94, 39],
+ magentaBright: [95, 39],
+ cyanBright: [96, 39],
+ whiteBright: [97, 39]
+ },
+ bgColor: {
+ bgBlack: [40, 49],
+ bgRed: [41, 49],
+ bgGreen: [42, 49],
+ bgYellow: [43, 49],
+ bgBlue: [44, 49],
+ bgMagenta: [45, 49],
+ bgCyan: [46, 49],
+ bgWhite: [47, 49],
+ bgBlackBright: [100, 49],
+ bgRedBright: [101, 49],
+ bgGreenBright: [102, 49],
+ bgYellowBright: [103, 49],
+ bgBlueBright: [104, 49],
+ bgMagentaBright: [105, 49],
+ bgCyanBright: [106, 49],
+ bgWhiteBright: [107, 49]
+ }
+ };
+ styles3.color.gray = styles3.color.blackBright;
+ styles3.bgColor.bgGray = styles3.bgColor.bgBlackBright;
+ styles3.color.grey = styles3.color.blackBright;
+ styles3.bgColor.bgGrey = styles3.bgColor.bgBlackBright;
+ for (const [groupName, group] of Object.entries(styles3)) {
+ for (const [styleName, style] of Object.entries(group)) {
+ styles3[styleName] = {
+ open: `\x1B[${style[0]}m`,
+ close: `\x1B[${style[1]}m`
+ };
+ group[styleName] = styles3[styleName];
+ codes.set(style[0], style[1]);
+ }
+ Object.defineProperty(styles3, groupName, {
+ value: group,
+ enumerable: false
+ });
+ }
+ Object.defineProperty(styles3, "codes", {
+ value: codes,
+ enumerable: false
+ });
+ styles3.color.close = "\x1B[39m";
+ styles3.bgColor.close = "\x1B[49m";
+ setLazyProperty(styles3.color, "ansi", () => makeDynamicStyles(wrapAnsi162, "ansi16", ansi2ansi, false));
+ setLazyProperty(styles3.color, "ansi256", () => makeDynamicStyles(wrapAnsi2562, "ansi256", ansi2ansi, false));
+ setLazyProperty(styles3.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m2, "rgb", rgb2rgb, false));
+ setLazyProperty(styles3.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi162, "ansi16", ansi2ansi, true));
+ setLazyProperty(styles3.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi2562, "ansi256", ansi2ansi, true));
+ setLazyProperty(styles3.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m2, "rgb", rgb2rgb, true));
+ return styles3;
+ }
+ Object.defineProperty(module, "exports", {
+ enumerable: true,
+ get: assembleStyles2
+ });
+});
+
+// node_modules/wrap-ansi/index.js
+var require_wrap_ansi = __commonJS((exports, module) => {
+ var stringWidth = require_string_width();
+ var stripAnsi = require_strip_ansi();
+ var ansiStyles2 = require_ansi_styles();
+ var ESCAPES = new Set([
+ "\x1B",
+ "›"
+ ]);
+ var END_CODE = 39;
+ var wrapAnsi = (code) => `${ESCAPES.values().next().value}[${code}m`;
+ var wordLengths = (string2) => string2.split(" ").map((character) => stringWidth(character));
+ var wrapWord = (rows, word, columns) => {
+ const characters = [...word];
+ let isInsideEscape = false;
+ let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
+ for (const [index, character] of characters.entries()) {
+ const characterLength = stringWidth(character);
+ if (visible + characterLength <= columns) {
+ rows[rows.length - 1] += character;
+ } else {
+ rows.push(character);
+ visible = 0;
+ }
+ if (ESCAPES.has(character)) {
+ isInsideEscape = true;
+ } else if (isInsideEscape && character === "m") {
+ isInsideEscape = false;
+ continue;
+ }
+ if (isInsideEscape) {
+ continue;
+ }
+ visible += characterLength;
+ if (visible === columns && index < characters.length - 1) {
+ rows.push("");
+ visible = 0;
+ }
+ }
+ if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
+ rows[rows.length - 2] += rows.pop();
+ }
+ };
+ var stringVisibleTrimSpacesRight = (str) => {
+ const words = str.split(" ");
+ let last = words.length;
+ while (last > 0) {
+ if (stringWidth(words[last - 1]) > 0) {
+ break;
+ }
+ last--;
+ }
+ if (last === words.length) {
+ return str;
+ }
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
+ };
+ var exec = (string2, columns, options = {}) => {
+ if (options.trim !== false && string2.trim() === "") {
+ return "";
+ }
+ let pre = "";
+ let ret = "";
+ let escapeCode;
+ const lengths = wordLengths(string2);
+ let rows = [""];
+ for (const [index, word] of string2.split(" ").entries()) {
+ if (options.trim !== false) {
+ rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
+ }
+ let rowLength = stringWidth(rows[rows.length - 1]);
+ if (index !== 0) {
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
+ rows.push("");
+ rowLength = 0;
+ }
+ if (rowLength > 0 || options.trim === false) {
+ rows[rows.length - 1] += " ";
+ rowLength++;
+ }
+ }
+ if (options.hard && lengths[index] > columns) {
+ const remainingColumns = columns - rowLength;
+ const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
+ const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
+ if (breaksStartingNextLine < breaksStartingThisLine) {
+ rows.push("");
+ }
+ wrapWord(rows, word, columns);
+ continue;
+ }
+ if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
+ if (options.wordWrap === false && rowLength < columns) {
+ wrapWord(rows, word, columns);
+ continue;
+ }
+ rows.push("");
+ }
+ if (rowLength + lengths[index] > columns && options.wordWrap === false) {
+ wrapWord(rows, word, columns);
+ continue;
+ }
+ rows[rows.length - 1] += word;
+ }
+ if (options.trim !== false) {
+ rows = rows.map(stringVisibleTrimSpacesRight);
+ }
+ pre = rows.join(`
+`);
+ for (const [index, character] of [...pre].entries()) {
+ ret += character;
+ if (ESCAPES.has(character)) {
+ const code2 = parseFloat(/\d[^m]*/.exec(pre.slice(index, index + 4)));
+ escapeCode = code2 === END_CODE ? null : code2;
+ }
+ const code = ansiStyles2.codes.get(Number(escapeCode));
+ if (escapeCode && code) {
+ if (pre[index + 1] === `
+`) {
+ ret += wrapAnsi(code);
+ } else if (character === `
+`) {
+ ret += wrapAnsi(escapeCode);
+ }
+ }
+ }
+ return ret;
+ };
+ module.exports = (string2, columns, options) => {
+ return String(string2).normalize().replace(/\r\n/g, `
+`).split(`
+`).map((line) => exec(line, columns, options)).join(`
+`);
+ };
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/utils.js
+function breakLines(content, width) {
+ return content.split(`
+`).flatMap((line) => import_wrap_ansi.default(line, width, { trim: false, hard: true }).split(`
+`).map((str) => str.trimEnd())).join(`
+`);
+}
+function readlineWidth() {
+ return import_cli_width.default({ defaultWidth: 80, output: readline().output });
+}
+var import_cli_width, import_wrap_ansi;
+var init_utils = __esm(() => {
+ import_cli_width = __toESM(require_cli_width(), 1);
+ import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
+ init_hook_engine();
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
+function split(content, width) {
+ return breakLines(content, width).split(`
+`);
+}
+function rotate(count, items) {
+ const max = items.length;
+ const offset = (count % max + max) % max;
+ return [...items.slice(offset), ...items.slice(0, offset)];
+}
+function lines({ items, width, renderItem, active, position: requested, pageSize }) {
+ const layouts = items.map((item, index) => ({
+ item,
+ index,
+ isActive: index === active
+ }));
+ const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
+ const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split(renderItem(layoutsInPage[index]), width);
+ const pageBuffer = Array.from({ length: pageSize });
+ const activeItem = renderItemAt(requested).slice(0, pageSize);
+ const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
+ pageBuffer.splice(position, activeItem.length, ...activeItem);
+ let bufferPointer = position + activeItem.length;
+ let layoutPointer = requested + 1;
+ while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
+ for (const line of renderItemAt(layoutPointer)) {
+ pageBuffer[bufferPointer++] = line;
+ if (bufferPointer >= pageSize)
+ break;
+ }
+ layoutPointer++;
+ }
+ bufferPointer = position - 1;
+ layoutPointer = requested - 1;
+ while (bufferPointer >= 0 && layoutPointer >= 0) {
+ for (const line of renderItemAt(layoutPointer).reverse()) {
+ pageBuffer[bufferPointer--] = line;
+ if (bufferPointer < 0)
+ break;
+ }
+ layoutPointer--;
+ }
+ return pageBuffer.filter((line) => typeof line === "string");
+}
+var init_lines = __esm(() => {
+ init_utils();
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
+function finite({ active, pageSize, total }) {
+ const middle = Math.floor(pageSize / 2);
+ if (total <= pageSize || active < middle)
+ return active;
+ if (active >= total - middle)
+ return active + pageSize - total;
+ return middle;
+}
+function infinite({ active, lastActive, total, pageSize, pointer }) {
+ if (total <= pageSize)
+ return active;
+ if (lastActive < active && active - lastActive < pageSize) {
+ return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
+ }
+ return pointer;
+}
+
+// node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
+function usePagination({ items, active, renderItem, pageSize, loop = true }) {
+ const state = useRef({ position: 0, lastActive: 0 });
+ const position = loop ? infinite({
+ active,
+ lastActive: state.current.lastActive,
+ total: items.length,
+ pageSize,
+ pointer: state.current.position
+ }) : finite({
+ active,
+ total: items.length,
+ pageSize
+ });
+ state.current.position = position;
+ state.current.lastActive = active;
+ return lines({
+ items,
+ width: readlineWidth(),
+ renderItem,
+ active,
+ position,
+ pageSize
+ }).join(`
+`);
+}
+var init_use_pagination = __esm(() => {
+ init_use_ref();
+ init_utils();
+ init_lines();
+});
+
+// node_modules/mute-stream/lib/index.js
+var require_lib = __commonJS((exports, module) => {
+ var Stream = __require("stream");
+
+ class MuteStream extends Stream {
+ #isTTY = null;
+ constructor(opts = {}) {
+ super(opts);
+ this.writable = this.readable = true;
+ this.muted = false;
+ this.on("pipe", this._onpipe);
+ this.replace = opts.replace;
+ this._prompt = opts.prompt || null;
+ this._hadControl = false;
+ }
+ #destSrc(key, def) {
+ if (this._dest) {
+ return this._dest[key];
+ }
+ if (this._src) {
+ return this._src[key];
+ }
+ return def;
+ }
+ #proxy(method, ...args) {
+ if (typeof this._dest?.[method] === "function") {
+ this._dest[method](...args);
+ }
+ if (typeof this._src?.[method] === "function") {
+ this._src[method](...args);
+ }
+ }
+ get isTTY() {
+ if (this.#isTTY !== null) {
+ return this.#isTTY;
+ }
+ return this.#destSrc("isTTY", false);
+ }
+ set isTTY(val) {
+ this.#isTTY = val;
+ }
+ get rows() {
+ return this.#destSrc("rows");
+ }
+ get columns() {
+ return this.#destSrc("columns");
+ }
+ mute() {
+ this.muted = true;
+ }
+ unmute() {
+ this.muted = false;
+ }
+ _onpipe(src) {
+ this._src = src;
+ }
+ pipe(dest, options) {
+ this._dest = dest;
+ return super.pipe(dest, options);
+ }
+ pause() {
+ if (this._src) {
+ return this._src.pause();
+ }
+ }
+ resume() {
+ if (this._src) {
+ return this._src.resume();
+ }
+ }
+ write(c) {
+ if (this.muted) {
+ if (!this.replace) {
+ return true;
+ }
+ if (c.match(/^\u001b/)) {
+ if (c.indexOf(this._prompt) === 0) {
+ c = c.slice(this._prompt.length);
+ c = c.replace(/./g, this.replace);
+ c = this._prompt + c;
+ }
+ this._hadControl = true;
+ return this.emit("data", c);
+ } else {
+ if (this._prompt && this._hadControl && c.indexOf(this._prompt) === 0) {
+ this._hadControl = false;
+ this.emit("data", this._prompt);
+ c = c.slice(this._prompt.length);
+ }
+ c = c.toString().replace(/./g, this.replace);
+ }
+ }
+ this.emit("data", c);
+ }
+ end(c) {
+ if (this.muted) {
+ if (c && this.replace) {
+ c = c.toString().replace(/./g, this.replace);
+ } else {
+ c = null;
+ }
+ }
+ if (c) {
+ this.emit("data", c);
+ }
+ this.emit("end");
+ }
+ destroy(...args) {
+ return this.#proxy("destroy", ...args);
+ }
+ destroySoon(...args) {
+ return this.#proxy("destroySoon", ...args);
+ }
+ close(...args) {
+ return this.#proxy("close", ...args);
+ }
+ }
+ module.exports = MuteStream;
+});
+
+// node_modules/signal-exit/dist/mjs/signals.js
+var signals;
+var init_signals = __esm(() => {
+ signals = [];
+ signals.push("SIGHUP", "SIGINT", "SIGTERM");
+ if (process.platform !== "win32") {
+ signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
+ }
+ if (process.platform === "linux") {
+ signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
+ }
+});
+
+// node_modules/signal-exit/dist/mjs/index.js
+class Emitter {
+ emitted = {
+ afterExit: false,
+ exit: false
+ };
+ listeners = {
+ afterExit: [],
+ exit: []
+ };
+ count = 0;
+ id = Math.random();
+ constructor() {
+ if (global2[kExitEmitter]) {
+ return global2[kExitEmitter];
+ }
+ ObjectDefineProperty(global2, kExitEmitter, {
+ value: this,
+ writable: false,
+ enumerable: false,
+ configurable: false
+ });
+ }
+ on(ev, fn) {
+ this.listeners[ev].push(fn);
+ }
+ removeListener(ev, fn) {
+ const list = this.listeners[ev];
+ const i = list.indexOf(fn);
+ if (i === -1) {
+ return;
+ }
+ if (i === 0 && list.length === 1) {
+ list.length = 0;
+ } else {
+ list.splice(i, 1);
+ }
+ }
+ emit(ev, code, signal) {
+ if (this.emitted[ev]) {
+ return false;
+ }
+ this.emitted[ev] = true;
+ let ret = false;
+ for (const fn of this.listeners[ev]) {
+ ret = fn(code, signal) === true || ret;
+ }
+ if (ev === "exit") {
+ ret = this.emit("afterExit", code, signal) || ret;
+ }
+ return ret;
+ }
+}
+
+class SignalExitBase {
+}
+var processOk = (process4) => !!process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function", kExitEmitter, global2, ObjectDefineProperty, signalExitWrap = (handler) => {
+ return {
+ onExit(cb, opts) {
+ return handler.onExit(cb, opts);
+ },
+ load() {
+ return handler.load();
+ },
+ unload() {
+ return handler.unload();
+ }
+ };
+}, SignalExitFallback, SignalExit, process4, onExit, load, unload;
+var init_mjs = __esm(() => {
+ init_signals();
+ kExitEmitter = Symbol.for("signal-exit emitter");
+ global2 = globalThis;
+ ObjectDefineProperty = Object.defineProperty.bind(Object);
+ SignalExitFallback = class SignalExitFallback extends SignalExitBase {
+ onExit() {
+ return () => {
+ };
+ }
+ load() {
+ }
+ unload() {
+ }
+ };
+ SignalExit = class SignalExit extends SignalExitBase {
+ #hupSig = process4.platform === "win32" ? "SIGINT" : "SIGHUP";
+ #emitter = new Emitter;
+ #process;
+ #originalProcessEmit;
+ #originalProcessReallyExit;
+ #sigListeners = {};
+ #loaded = false;
+ constructor(process4) {
+ super();
+ this.#process = process4;
+ this.#sigListeners = {};
+ for (const sig of signals) {
+ this.#sigListeners[sig] = () => {
+ const listeners = this.#process.listeners(sig);
+ let { count } = this.#emitter;
+ const p = process4;
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
+ count += p.__signal_exit_emitter__.count;
+ }
+ if (listeners.length === count) {
+ this.unload();
+ const ret = this.#emitter.emit("exit", null, sig);
+ const s = sig === "SIGHUP" ? this.#hupSig : sig;
+ if (!ret)
+ process4.kill(process4.pid, s);
+ }
+ };
+ }
+ this.#originalProcessReallyExit = process4.reallyExit;
+ this.#originalProcessEmit = process4.emit;
+ }
+ onExit(cb, opts) {
+ if (!processOk(this.#process)) {
+ return () => {
+ };
+ }
+ if (this.#loaded === false) {
+ this.load();
+ }
+ const ev = opts?.alwaysLast ? "afterExit" : "exit";
+ this.#emitter.on(ev, cb);
+ return () => {
+ this.#emitter.removeListener(ev, cb);
+ if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
+ this.unload();
+ }
+ };
+ }
+ load() {
+ if (this.#loaded) {
+ return;
+ }
+ this.#loaded = true;
+ this.#emitter.count += 1;
+ for (const sig of signals) {
+ try {
+ const fn = this.#sigListeners[sig];
+ if (fn)
+ this.#process.on(sig, fn);
+ } catch (_2) {
+ }
+ }
+ this.#process.emit = (ev, ...a) => {
+ return this.#processEmit(ev, ...a);
+ };
+ this.#process.reallyExit = (code) => {
+ return this.#processReallyExit(code);
+ };
+ }
+ unload() {
+ if (!this.#loaded) {
+ return;
+ }
+ this.#loaded = false;
+ signals.forEach((sig) => {
+ const listener = this.#sigListeners[sig];
+ if (!listener) {
+ throw new Error("Listener not defined for signal: " + sig);
+ }
+ try {
+ this.#process.removeListener(sig, listener);
+ } catch (_2) {
+ }
+ });
+ this.#process.emit = this.#originalProcessEmit;
+ this.#process.reallyExit = this.#originalProcessReallyExit;
+ this.#emitter.count -= 1;
+ }
+ #processReallyExit(code) {
+ if (!processOk(this.#process)) {
+ return 0;
+ }
+ this.#process.exitCode = code || 0;
+ this.#emitter.emit("exit", this.#process.exitCode, null);
+ return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
+ }
+ #processEmit(ev, ...args) {
+ const og = this.#originalProcessEmit;
+ if (ev === "exit" && processOk(this.#process)) {
+ if (typeof args[0] === "number") {
+ this.#process.exitCode = args[0];
+ }
+ const ret = og.call(this.#process, ev, ...args);
+ this.#emitter.emit("exit", this.#process.exitCode, null);
+ return ret;
+ } else {
+ return og.call(this.#process, ev, ...args);
+ }
+ }
+ };
+ process4 = globalThis.process;
+ ({
+ onExit,
+ load,
+ unload
+ } = signalExitWrap(processOk(process4) ? new SignalExit(process4) : new SignalExitFallback));
+});
+
+// node_modules/ansi-escapes/index.js
+var require_ansi_escapes = __commonJS((exports, module) => {
+ var ansiEscapes = exports;
+ exports.default = ansiEscapes;
+ var ESC = "\x1B[";
+ var OSC = "\x1B]";
+ var BEL = "\x07";
+ var SEP = ";";
+ var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
+ ansiEscapes.cursorTo = (x, y) => {
+ if (typeof x !== "number") {
+ throw new TypeError("The `x` argument is required");
+ }
+ if (typeof y !== "number") {
+ return ESC + (x + 1) + "G";
+ }
+ return ESC + (y + 1) + ";" + (x + 1) + "H";
+ };
+ ansiEscapes.cursorMove = (x, y) => {
+ if (typeof x !== "number") {
+ throw new TypeError("The `x` argument is required");
+ }
+ let ret = "";
+ if (x < 0) {
+ ret += ESC + -x + "D";
+ } else if (x > 0) {
+ ret += ESC + x + "C";
+ }
+ if (y < 0) {
+ ret += ESC + -y + "A";
+ } else if (y > 0) {
+ ret += ESC + y + "B";
+ }
+ return ret;
+ };
+ ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
+ ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
+ ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
+ ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
+ ansiEscapes.cursorLeft = ESC + "G";
+ ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
+ ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
+ ansiEscapes.cursorGetPosition = ESC + "6n";
+ ansiEscapes.cursorNextLine = ESC + "E";
+ ansiEscapes.cursorPrevLine = ESC + "F";
+ ansiEscapes.cursorHide = ESC + "?25l";
+ ansiEscapes.cursorShow = ESC + "?25h";
+ ansiEscapes.eraseLines = (count) => {
+ let clear = "";
+ for (let i = 0;i < count; i++) {
+ clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
+ }
+ if (count) {
+ clear += ansiEscapes.cursorLeft;
+ }
+ return clear;
+ };
+ ansiEscapes.eraseEndLine = ESC + "K";
+ ansiEscapes.eraseStartLine = ESC + "1K";
+ ansiEscapes.eraseLine = ESC + "2K";
+ ansiEscapes.eraseDown = ESC + "J";
+ ansiEscapes.eraseUp = ESC + "1J";
+ ansiEscapes.eraseScreen = ESC + "2J";
+ ansiEscapes.scrollUp = ESC + "S";
+ ansiEscapes.scrollDown = ESC + "T";
+ ansiEscapes.clearScreen = "\x1Bc";
+ ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
+ ansiEscapes.beep = BEL;
+ ansiEscapes.link = (text, url) => {
+ return [
+ OSC,
+ "8",
+ SEP,
+ SEP,
+ url,
+ BEL,
+ text,
+ OSC,
+ "8",
+ SEP,
+ SEP,
+ BEL
+ ].join("");
+ };
+ ansiEscapes.image = (buffer, options = {}) => {
+ let ret = `${OSC}1337;File=inline=1`;
+ if (options.width) {
+ ret += `;width=${options.width}`;
+ }
+ if (options.height) {
+ ret += `;height=${options.height}`;
+ }
+ if (options.preserveAspectRatio === false) {
+ ret += ";preserveAspectRatio=0";
+ }
+ return ret + ":" + buffer.toString("base64") + BEL;
+ };
+ ansiEscapes.iTerm = {
+ setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
+ annotation: (message, options = {}) => {
+ let ret = `${OSC}1337;`;
+ const hasX = typeof options.x !== "undefined";
+ const hasY = typeof options.y !== "undefined";
+ if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
+ throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
+ }
+ message = message.replace(/\|/g, "");
+ ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
+ if (options.length > 0) {
+ ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
+ } else {
+ ret += message;
+ }
+ return ret + BEL;
+ }
+ };
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
+function cursorDown(n) {
+ return n > 0 ? import_ansi_escapes.default.cursorDown(n) : "";
+}
+
+class ScreenManager {
+ rl;
+ height = 0;
+ extraLinesUnderPrompt = 0;
+ cursorPos;
+ constructor(rl) {
+ this.rl = rl;
+ this.rl = rl;
+ this.cursorPos = rl.getCursorPos();
+ }
+ write(content) {
+ this.rl.output.unmute();
+ this.rl.output.write(content);
+ this.rl.output.mute();
+ }
+ render(content, bottomContent = "") {
+ const promptLine = lastLine(content);
+ const rawPromptLine = import_strip_ansi.default(promptLine);
+ let prompt = rawPromptLine;
+ if (this.rl.line.length > 0) {
+ prompt = prompt.slice(0, -this.rl.line.length);
+ }
+ this.rl.setPrompt(prompt);
+ this.cursorPos = this.rl.getCursorPos();
+ const width = readlineWidth();
+ content = breakLines(content, width);
+ bottomContent = breakLines(bottomContent, width);
+ if (rawPromptLine.length % width === 0) {
+ content += `
+`;
+ }
+ let output = content + (bottomContent ? `
+` + bottomContent : "");
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
+ if (bottomContentHeight > 0)
+ output += import_ansi_escapes.default.cursorUp(bottomContentHeight);
+ output += import_ansi_escapes.default.cursorTo(this.cursorPos.cols);
+ this.write(cursorDown(this.extraLinesUnderPrompt) + import_ansi_escapes.default.eraseLines(this.height) + output);
+ this.extraLinesUnderPrompt = bottomContentHeight;
+ this.height = height(output);
+ }
+ checkCursorPos() {
+ const cursorPos = this.rl.getCursorPos();
+ if (cursorPos.cols !== this.cursorPos.cols) {
+ this.write(import_ansi_escapes.default.cursorTo(cursorPos.cols));
+ this.cursorPos = cursorPos;
+ }
+ }
+ done({ clearContent }) {
+ this.rl.setPrompt("");
+ let output = cursorDown(this.extraLinesUnderPrompt);
+ output += clearContent ? import_ansi_escapes.default.eraseLines(this.height) : `
+`;
+ output += import_ansi_escapes.default.cursorShow;
+ this.write(output);
+ this.rl.close();
+ }
+}
+var import_strip_ansi, import_ansi_escapes, height = (content) => content.split(`
+`).length, lastLine = (content) => content.split(`
+`).pop() ?? "";
+var init_screen_manager = __esm(() => {
+ import_strip_ansi = __toESM(require_strip_ansi(), 1);
+ import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
+ init_utils();
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
+var PromisePolyfill;
+var init_promise_polyfill = __esm(() => {
+ PromisePolyfill = class PromisePolyfill extends Promise {
+ static withResolver() {
+ let resolve;
+ let reject;
+ const promise = new Promise((res, rej) => {
+ resolve = res;
+ reject = rej;
+ });
+ return { promise, resolve, reject };
+ }
+ };
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
+import * as readline2 from "node:readline";
+import { AsyncResource as AsyncResource3 } from "node:async_hooks";
+function getCallSites() {
+ const _prepareStackTrace = Error.prepareStackTrace;
+ try {
+ let result = [];
+ Error.prepareStackTrace = (_2, callSites) => {
+ const callSitesWithoutCurrent = callSites.slice(1);
+ result = callSitesWithoutCurrent;
+ return callSitesWithoutCurrent;
+ };
+ new Error().stack;
+ return result;
+ } finally {
+ Error.prepareStackTrace = _prepareStackTrace;
+ }
+}
+function createPrompt(view) {
+ const callSites = getCallSites();
+ const callerFilename = callSites[1]?.getFileName?.();
+ const prompt = (config, context = {}) => {
+ const { input = process.stdin, signal } = context;
+ const cleanups = new Set;
+ const output = new import_mute_stream.default;
+ output.pipe(context.output ?? process.stdout);
+ const rl = readline2.createInterface({
+ terminal: true,
+ input,
+ output
+ });
+ const screen = new ScreenManager(rl);
+ const { promise, resolve, reject } = PromisePolyfill.withResolver();
+ const cancel = () => reject(new CancelPromptError);
+ if (signal) {
+ const abort = () => reject(new AbortPromptError({ cause: signal.reason }));
+ if (signal.aborted) {
+ abort();
+ return Object.assign(promise, { cancel });
+ }
+ signal.addEventListener("abort", abort);
+ cleanups.add(() => signal.removeEventListener("abort", abort));
+ }
+ cleanups.add(onExit((code, signal2) => {
+ reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal2}`));
+ }));
+ const checkCursorPos = () => screen.checkCursorPos();
+ rl.input.on("keypress", checkCursorPos);
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
+ return withHooks(rl, (cycle) => {
+ const hooksCleanup = AsyncResource3.bind(() => effectScheduler.clearAll());
+ rl.on("close", hooksCleanup);
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
+ cycle(() => {
+ try {
+ const nextView = view(config, (value) => {
+ setImmediate(() => resolve(value));
+ });
+ if (nextView === undefined) {
+ throw new Error(`Prompt functions must return a string.
+ at ${callerFilename}`);
+ }
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
+ screen.render(content, bottomContent);
+ effectScheduler.run();
+ } catch (error) {
+ reject(error);
+ }
+ });
+ return Object.assign(promise.then((answer) => {
+ effectScheduler.clearAll();
+ return answer;
+ }, (error) => {
+ effectScheduler.clearAll();
+ throw error;
+ }).finally(() => {
+ cleanups.forEach((cleanup) => cleanup());
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
+ output.end();
+ }).then(() => promise), { cancel });
+ });
+ };
+ return prompt;
+}
+var import_mute_stream;
+var init_create_prompt = __esm(() => {
+ import_mute_stream = __toESM(require_lib(), 1);
+ init_mjs();
+ init_screen_manager();
+ init_promise_polyfill();
+ init_hook_engine();
+ init_errors();
+});
+
+// node_modules/@inquirer/core/dist/esm/lib/Separator.js
+class Separator {
+ separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
+ type = "separator";
+ constructor(separator) {
+ if (separator) {
+ this.separator = separator;
+ }
+ }
+ static isSeparator(choice) {
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
+ }
+}
+var import_yoctocolors_cjs2;
+var init_Separator = __esm(() => {
+ import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
+ init_esm();
+});
+
+// node_modules/@inquirer/core/dist/esm/index.js
+var init_esm2 = __esm(() => {
+ init_errors();
+ init_use_prefix();
+ init_use_state();
+ init_use_effect();
+ init_use_memo();
+ init_use_ref();
+ init_use_keypress();
+ init_make_theme();
+ init_use_pagination();
+ init_create_prompt();
+ init_Separator();
+});
+
+// node_modules/@inquirer/checkbox/dist/esm/index.js
+function isSelectable(item) {
+ return !Separator.isSeparator(item) && !item.disabled;
+}
+function isChecked(item) {
+ return isSelectable(item) && Boolean(item.checked);
+}
+function toggle(item) {
+ return isSelectable(item) ? { ...item, checked: !item.checked } : item;
+}
+function check(checked) {
+ return function(item) {
+ return isSelectable(item) ? { ...item, checked } : item;
+ };
+}
+function normalizeChoices(choices) {
+ return choices.map((choice) => {
+ if (Separator.isSeparator(choice))
+ return choice;
+ if (typeof choice === "string") {
+ return {
+ value: choice,
+ name: choice,
+ short: choice,
+ disabled: false,
+ checked: false
+ };
+ }
+ const name = choice.name ?? String(choice.value);
+ return {
+ value: choice.value,
+ name,
+ short: choice.short ?? name,
+ description: choice.description,
+ disabled: choice.disabled ?? false,
+ checked: choice.checked ?? false
+ };
+ });
+}
+var import_yoctocolors_cjs3, import_ansi_escapes2, checkboxTheme, esm_default2;
+var init_esm3 = __esm(() => {
+ init_esm2();
+ import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
+ init_esm();
+ import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
+ init_esm2();
+ checkboxTheme = {
+ icon: {
+ checked: import_yoctocolors_cjs3.default.green(esm_default.circleFilled),
+ unchecked: esm_default.circle,
+ cursor: esm_default.pointer
+ },
+ style: {
+ disabledChoice: (text) => import_yoctocolors_cjs3.default.dim(`- ${text}`),
+ renderSelectedChoices: (selectedChoices) => selectedChoices.map((choice) => choice.short).join(", "),
+ description: (text) => import_yoctocolors_cjs3.default.cyan(text)
+ },
+ helpMode: "auto"
+ };
+ esm_default2 = createPrompt((config, done) => {
+ const { instructions, pageSize = 7, loop = true, required, validate = () => true } = config;
+ const theme = makeTheme(checkboxTheme, config.theme);
+ const firstRender = useRef(true);
+ const [status, setStatus] = useState("idle");
+ const prefix = usePrefix({ status, theme });
+ const [items, setItems] = useState(normalizeChoices(config.choices));
+ const bounds = useMemo(() => {
+ const first = items.findIndex(isSelectable);
+ const last = items.findLastIndex(isSelectable);
+ if (first === -1) {
+ throw new ValidationError("[checkbox prompt] No selectable choices. All choices are disabled.");
+ }
+ return { first, last };
+ }, [items]);
+ const [active, setActive] = useState(bounds.first);
+ const [showHelpTip, setShowHelpTip] = useState(true);
+ const [errorMsg, setError] = useState();
+ useKeypress(async (key2) => {
+ if (isEnterKey(key2)) {
+ const selection = items.filter(isChecked);
+ const isValid = await validate([...selection]);
+ if (required && !items.some(isChecked)) {
+ setError("At least one choice must be selected");
+ } else if (isValid === true) {
+ setStatus("done");
+ done(selection.map((choice) => choice.value));
+ } else {
+ setError(isValid || "You must select a valid value");
+ }
+ } else if (isUpKey(key2) || isDownKey(key2)) {
+ if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
+ const offset = isUpKey(key2) ? -1 : 1;
+ let next = active;
+ do {
+ next = (next + offset + items.length) % items.length;
+ } while (!isSelectable(items[next]));
+ setActive(next);
+ }
+ } else if (isSpaceKey(key2)) {
+ setError(undefined);
+ setShowHelpTip(false);
+ setItems(items.map((choice, i) => i === active ? toggle(choice) : choice));
+ } else if (key2.name === "a") {
+ const selectAll = items.some((choice) => isSelectable(choice) && !choice.checked);
+ setItems(items.map(check(selectAll)));
+ } else if (key2.name === "i") {
+ setItems(items.map(toggle));
+ } else if (isNumberKey(key2)) {
+ const position = Number(key2.name) - 1;
+ const item = items[position];
+ if (item != null && isSelectable(item)) {
+ setActive(position);
+ setItems(items.map((choice, i) => i === position ? toggle(choice) : choice));
+ }
+ }
+ });
+ const message = theme.style.message(config.message, status);
+ let description;
+ const page = usePagination({
+ items,
+ active,
+ renderItem({ item, isActive }) {
+ if (Separator.isSeparator(item)) {
+ return ` ${item.separator}`;
+ }
+ if (item.disabled) {
+ const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";
+ return theme.style.disabledChoice(`${item.name} ${disabledLabel}`);
+ }
+ if (isActive) {
+ description = item.description;
+ }
+ const checkbox = item.checked ? theme.icon.checked : theme.icon.unchecked;
+ const color = isActive ? theme.style.highlight : (x) => x;
+ const cursor = isActive ? theme.icon.cursor : " ";
+ return color(`${cursor}${checkbox} ${item.name}`);
+ },
+ pageSize,
+ loop
+ });
+ if (status === "done") {
+ const selection = items.filter(isChecked);
+ const answer = theme.style.answer(theme.style.renderSelectedChoices(selection, items));
+ return `${prefix} ${message} ${answer}`;
+ }
+ let helpTipTop = "";
+ let helpTipBottom = "";
+ if (theme.helpMode === "always" || theme.helpMode === "auto" && showHelpTip && (instructions === undefined || instructions)) {
+ if (typeof instructions === "string") {
+ helpTipTop = instructions;
+ } else {
+ const keys = [
+ `${theme.style.key("space")} to select`,
+ `${theme.style.key("a")} to toggle all`,
+ `${theme.style.key("i")} to invert selection`,
+ `and ${theme.style.key("enter")} to proceed`
+ ];
+ helpTipTop = ` (Press ${keys.join(", ")})`;
+ }
+ if (items.length > pageSize && (theme.helpMode === "always" || theme.helpMode === "auto" && firstRender.current)) {
+ helpTipBottom = `
+${theme.style.help("(Use arrow keys to reveal more choices)")}`;
+ firstRender.current = false;
+ }
+ }
+ const choiceDescription = description ? `
+${theme.style.description(description)}` : ``;
+ let error = "";
+ if (errorMsg) {
+ error = `
+${theme.style.error(errorMsg)}`;
+ }
+ return `${prefix} ${message}${helpTipTop}
+${page}${helpTipBottom}${choiceDescription}${error}${import_ansi_escapes2.default.cursorHide}`;
+ });
+});
+
+// node_modules/chardet/match.js
+var require_match = __commonJS((exports, module) => {
+ module.exports = function(det, rec, confidence, name, lang) {
+ this.confidence = confidence;
+ this.name = name || rec.name(det);
+ this.lang = lang;
+ };
+});
+
+// node_modules/chardet/encoding/utf8.js
+var require_utf8 = __commonJS((exports, module) => {
+ var Match = require_match();
+ module.exports = function() {
+ this.name = function() {
+ return "UTF-8";
+ };
+ this.match = function(det) {
+ var hasBOM = false, numValid = 0, numInvalid = 0, input = det.fRawInput, trailBytes = 0, confidence;
+ if (det.fRawLength >= 3 && (input[0] & 255) == 239 && (input[1] & 255) == 187 && (input[2] & 255) == 191) {
+ hasBOM = true;
+ }
+ for (var i = 0;i < det.fRawLength; i++) {
+ var b = input[i];
+ if ((b & 128) == 0)
+ continue;
+ if ((b & 224) == 192) {
+ trailBytes = 1;
+ } else if ((b & 240) == 224) {
+ trailBytes = 2;
+ } else if ((b & 248) == 240) {
+ trailBytes = 3;
+ } else {
+ numInvalid++;
+ if (numInvalid > 5)
+ break;
+ trailBytes = 0;
+ }
+ for (;; ) {
+ i++;
+ if (i >= det.fRawLength)
+ break;
+ if ((input[i] & 192) != 128) {
+ numInvalid++;
+ break;
+ }
+ if (--trailBytes == 0) {
+ numValid++;
+ break;
+ }
+ }
+ }
+ confidence = 0;
+ if (hasBOM && numInvalid == 0)
+ confidence = 100;
+ else if (hasBOM && numValid > numInvalid * 10)
+ confidence = 80;
+ else if (numValid > 3 && numInvalid == 0)
+ confidence = 100;
+ else if (numValid > 0 && numInvalid == 0)
+ confidence = 80;
+ else if (numValid == 0 && numInvalid == 0)
+ confidence = 10;
+ else if (numValid > numInvalid * 10)
+ confidence = 25;
+ else
+ return null;
+ return new Match(det, this, confidence);
+ };
+ };
+});
+
+// node_modules/chardet/encoding/unicode.js
+var require_unicode = __commonJS((exports, module) => {
+ var util = __require("util");
+ var Match = require_match();
+ exports.UTF_16BE = function() {
+ this.name = function() {
+ return "UTF-16BE";
+ };
+ this.match = function(det) {
+ var input = det.fRawInput;
+ if (input.length >= 2 && ((input[0] & 255) == 254 && (input[1] & 255) == 255)) {
+ return new Match(det, this, 100);
+ }
+ return null;
+ };
+ };
+ exports.UTF_16LE = function() {
+ this.name = function() {
+ return "UTF-16LE";
+ };
+ this.match = function(det) {
+ var input = det.fRawInput;
+ if (input.length >= 2 && ((input[0] & 255) == 255 && (input[1] & 255) == 254)) {
+ if (input.length >= 4 && input[2] == 0 && input[3] == 0) {
+ return null;
+ }
+ return new Match(det, this, 100);
+ }
+ return null;
+ };
+ };
+ function UTF_32() {
+ }
+ UTF_32.prototype.match = function(det) {
+ var input = det.fRawInput, limit = det.fRawLength / 4 * 4, numValid = 0, numInvalid = 0, hasBOM = false, confidence = 0;
+ if (limit == 0) {
+ return null;
+ }
+ if (this.getChar(input, 0) == 65279) {
+ hasBOM = true;
+ }
+ for (var i = 0;i < limit; i += 4) {
+ var ch = this.getChar(input, i);
+ if (ch < 0 || ch >= 1114111 || ch >= 55296 && ch <= 57343) {
+ numInvalid += 1;
+ } else {
+ numValid += 1;
+ }
+ }
+ if (hasBOM && numInvalid == 0) {
+ confidence = 100;
+ } else if (hasBOM && numValid > numInvalid * 10) {
+ confidence = 80;
+ } else if (numValid > 3 && numInvalid == 0) {
+ confidence = 100;
+ } else if (numValid > 0 && numInvalid == 0) {
+ confidence = 80;
+ } else if (numValid > numInvalid * 10) {
+ confidence = 25;
+ }
+ return confidence == 0 ? null : new Match(det, this, confidence);
+ };
+ exports.UTF_32BE = function() {
+ this.name = function() {
+ return "UTF-32BE";
+ };
+ this.getChar = function(input, index) {
+ return (input[index + 0] & 255) << 24 | (input[index + 1] & 255) << 16 | (input[index + 2] & 255) << 8 | input[index + 3] & 255;
+ };
+ };
+ util.inherits(exports.UTF_32BE, UTF_32);
+ exports.UTF_32LE = function() {
+ this.name = function() {
+ return "UTF-32LE";
+ };
+ this.getChar = function(input, index) {
+ return (input[index + 3] & 255) << 24 | (input[index + 2] & 255) << 16 | (input[index + 1] & 255) << 8 | input[index + 0] & 255;
+ };
+ };
+ util.inherits(exports.UTF_32LE, UTF_32);
+});
+
+// node_modules/chardet/encoding/mbcs.js
+var require_mbcs = __commonJS((exports, module) => {
+ var util = __require("util");
+ var Match = require_match();
+ function binarySearch(arr, searchValue) {
+ function find(arr2, searchValue2, left, right) {
+ if (right < left)
+ return -1;
+ var mid = Math.floor(left + right >>> 1);
+ if (searchValue2 > arr2[mid])
+ return find(arr2, searchValue2, mid + 1, right);
+ if (searchValue2 < arr2[mid])
+ return find(arr2, searchValue2, left, mid - 1);
+ return mid;
+ }
+ return find(arr, searchValue, 0, arr.length - 1);
+ }
+ function IteratedChar() {
+ this.charValue = 0;
+ this.index = 0;
+ this.nextIndex = 0;
+ this.error = false;
+ this.done = false;
+ this.reset = function() {
+ this.charValue = 0;
+ this.index = -1;
+ this.nextIndex = 0;
+ this.error = false;
+ this.done = false;
+ };
+ this.nextByte = function(det) {
+ if (this.nextIndex >= det.fRawLength) {
+ this.done = true;
+ return -1;
+ }
+ var byteValue = det.fRawInput[this.nextIndex++] & 255;
+ return byteValue;
+ };
+ }
+ function mbcs() {
+ }
+ mbcs.prototype.match = function(det) {
+ var singleByteCharCount = 0, doubleByteCharCount = 0, commonCharCount = 0, badCharCount = 0, totalCharCount = 0, confidence = 0;
+ var iter = new IteratedChar;
+ detectBlock: {
+ for (iter.reset();this.nextChar(iter, det); ) {
+ totalCharCount++;
+ if (iter.error) {
+ badCharCount++;
+ } else {
+ var cv = iter.charValue & 4294967295;
+ if (cv <= 255) {
+ singleByteCharCount++;
+ } else {
+ doubleByteCharCount++;
+ if (this.commonChars != null) {
+ if (binarySearch(this.commonChars, cv) >= 0) {
+ commonCharCount++;
+ }
+ }
+ }
+ }
+ if (badCharCount >= 2 && badCharCount * 5 >= doubleByteCharCount) {
+ break detectBlock;
+ }
+ }
+ if (doubleByteCharCount <= 10 && badCharCount == 0) {
+ if (doubleByteCharCount == 0 && totalCharCount < 10) {
+ confidence = 0;
+ } else {
+ confidence = 10;
+ }
+ break detectBlock;
+ }
+ if (doubleByteCharCount < 20 * badCharCount) {
+ confidence = 0;
+ break detectBlock;
+ }
+ if (this.commonChars == null) {
+ confidence = 30 + doubleByteCharCount - 20 * badCharCount;
+ if (confidence > 100) {
+ confidence = 100;
+ }
+ } else {
+ var maxVal = Math.log(parseFloat(doubleByteCharCount) / 4);
+ var scaleFactor = 90 / maxVal;
+ confidence = Math.floor(Math.log(commonCharCount + 1) * scaleFactor + 10);
+ confidence = Math.min(confidence, 100);
+ }
+ }
+ return confidence == 0 ? null : new Match(det, this, confidence);
+ };
+ mbcs.prototype.nextChar = function(iter, det) {
+ };
+ exports.sjis = function() {
+ this.name = function() {
+ return "Shift-JIS";
+ };
+ this.language = function() {
+ return "ja";
+ };
+ this.commonChars = [
+ 33088,
+ 33089,
+ 33090,
+ 33093,
+ 33115,
+ 33129,
+ 33130,
+ 33141,
+ 33142,
+ 33440,
+ 33442,
+ 33444,
+ 33449,
+ 33450,
+ 33451,
+ 33453,
+ 33455,
+ 33457,
+ 33459,
+ 33461,
+ 33463,
+ 33469,
+ 33470,
+ 33473,
+ 33476,
+ 33477,
+ 33478,
+ 33480,
+ 33481,
+ 33484,
+ 33485,
+ 33500,
+ 33504,
+ 33511,
+ 33512,
+ 33513,
+ 33514,
+ 33520,
+ 33521,
+ 33601,
+ 33603,
+ 33614,
+ 33615,
+ 33624,
+ 33630,
+ 33634,
+ 33639,
+ 33653,
+ 33654,
+ 33673,
+ 33674,
+ 33675,
+ 33677,
+ 33683,
+ 36502,
+ 37882,
+ 38314
+ ];
+ this.nextChar = function(iter, det) {
+ iter.index = iter.nextIndex;
+ iter.error = false;
+ var firstByte;
+ firstByte = iter.charValue = iter.nextByte(det);
+ if (firstByte < 0)
+ return false;
+ if (firstByte <= 127 || firstByte > 160 && firstByte <= 223)
+ return true;
+ var secondByte = iter.nextByte(det);
+ if (secondByte < 0)
+ return false;
+ iter.charValue = firstByte << 8 | secondByte;
+ if (!(secondByte >= 64 && secondByte <= 127 || secondByte >= 128 && secondByte <= 255)) {
+ iter.error = true;
+ }
+ return true;
+ };
+ };
+ util.inherits(exports.sjis, mbcs);
+ exports.big5 = function() {
+ this.name = function() {
+ return "Big5";
+ };
+ this.language = function() {
+ return "zh";
+ };
+ this.commonChars = [
+ 41280,
+ 41281,
+ 41282,
+ 41283,
+ 41287,
+ 41289,
+ 41333,
+ 41334,
+ 42048,
+ 42054,
+ 42055,
+ 42056,
+ 42065,
+ 42068,
+ 42071,
+ 42084,
+ 42090,
+ 42092,
+ 42103,
+ 42147,
+ 42148,
+ 42151,
+ 42177,
+ 42190,
+ 42193,
+ 42207,
+ 42216,
+ 42237,
+ 42304,
+ 42312,
+ 42328,
+ 42345,
+ 42445,
+ 42471,
+ 42583,
+ 42593,
+ 42594,
+ 42600,
+ 42608,
+ 42664,
+ 42675,
+ 42681,
+ 42707,
+ 42715,
+ 42726,
+ 42738,
+ 42816,
+ 42833,
+ 42841,
+ 42970,
+ 43171,
+ 43173,
+ 43181,
+ 43217,
+ 43219,
+ 43236,
+ 43260,
+ 43456,
+ 43474,
+ 43507,
+ 43627,
+ 43706,
+ 43710,
+ 43724,
+ 43772,
+ 44103,
+ 44111,
+ 44208,
+ 44242,
+ 44377,
+ 44745,
+ 45024,
+ 45290,
+ 45423,
+ 45747,
+ 45764,
+ 45935,
+ 46156,
+ 46158,
+ 46412,
+ 46501,
+ 46525,
+ 46544,
+ 46552,
+ 46705,
+ 47085,
+ 47207,
+ 47428,
+ 47832,
+ 47940,
+ 48033,
+ 48593,
+ 49860,
+ 50105,
+ 50240,
+ 50271
+ ];
+ this.nextChar = function(iter, det) {
+ iter.index = iter.nextIndex;
+ iter.error = false;
+ var firstByte = iter.charValue = iter.nextByte(det);
+ if (firstByte < 0)
+ return false;
+ if (firstByte <= 127 || firstByte == 255)
+ return true;
+ var secondByte = iter.nextByte(det);
+ if (secondByte < 0)
+ return false;
+ iter.charValue = iter.charValue << 8 | secondByte;
+ if (secondByte < 64 || secondByte == 127 || secondByte == 255)
+ iter.error = true;
+ return true;
+ };
+ };
+ util.inherits(exports.big5, mbcs);
+ function eucNextChar(iter, det) {
+ iter.index = iter.nextIndex;
+ iter.error = false;
+ var firstByte = 0;
+ var secondByte = 0;
+ var thirdByte = 0;
+ buildChar: {
+ firstByte = iter.charValue = iter.nextByte(det);
+ if (firstByte < 0) {
+ iter.done = true;
+ break buildChar;
+ }
+ if (firstByte <= 141) {
+ break buildChar;
+ }
+ secondByte = iter.nextByte(det);
+ iter.charValue = iter.charValue << 8 | secondByte;
+ if (firstByte >= 161 && firstByte <= 254) {
+ if (secondByte < 161) {
+ iter.error = true;
+ }
+ break buildChar;
+ }
+ if (firstByte == 142) {
+ if (secondByte < 161) {
+ iter.error = true;
+ }
+ break buildChar;
+ }
+ if (firstByte == 143) {
+ thirdByte = iter.nextByte(det);
+ iter.charValue = iter.charValue << 8 | thirdByte;
+ if (thirdByte < 161) {
+ iter.error = true;
+ }
+ }
+ }
+ return iter.done == false;
+ }
+ exports.euc_jp = function() {
+ this.name = function() {
+ return "EUC-JP";
+ };
+ this.language = function() {
+ return "ja";
+ };
+ this.commonChars = [
+ 41377,
+ 41378,
+ 41379,
+ 41382,
+ 41404,
+ 41418,
+ 41419,
+ 41430,
+ 41431,
+ 42146,
+ 42148,
+ 42150,
+ 42152,
+ 42154,
+ 42155,
+ 42156,
+ 42157,
+ 42159,
+ 42161,
+ 42163,
+ 42165,
+ 42167,
+ 42169,
+ 42171,
+ 42173,
+ 42175,
+ 42176,
+ 42177,
+ 42179,
+ 42180,
+ 42182,
+ 42183,
+ 42184,
+ 42185,
+ 42186,
+ 42187,
+ 42190,
+ 42191,
+ 42192,
+ 42206,
+ 42207,
+ 42209,
+ 42210,
+ 42212,
+ 42216,
+ 42217,
+ 42218,
+ 42219,
+ 42220,
+ 42223,
+ 42226,
+ 42227,
+ 42402,
+ 42403,
+ 42404,
+ 42406,
+ 42407,
+ 42410,
+ 42413,
+ 42415,
+ 42416,
+ 42419,
+ 42421,
+ 42423,
+ 42424,
+ 42425,
+ 42431,
+ 42435,
+ 42438,
+ 42439,
+ 42440,
+ 42441,
+ 42443,
+ 42448,
+ 42453,
+ 42454,
+ 42455,
+ 42462,
+ 42464,
+ 42465,
+ 42469,
+ 42473,
+ 42474,
+ 42475,
+ 42476,
+ 42477,
+ 42483,
+ 47273,
+ 47572,
+ 47854,
+ 48072,
+ 48880,
+ 49079,
+ 50410,
+ 50940,
+ 51133,
+ 51896,
+ 51955,
+ 52188,
+ 52689
+ ];
+ this.nextChar = eucNextChar;
+ };
+ util.inherits(exports.euc_jp, mbcs);
+ exports.euc_kr = function() {
+ this.name = function() {
+ return "EUC-KR";
+ };
+ this.language = function() {
+ return "ko";
+ };
+ this.commonChars = [
+ 45217,
+ 45235,
+ 45253,
+ 45261,
+ 45268,
+ 45286,
+ 45293,
+ 45304,
+ 45306,
+ 45308,
+ 45496,
+ 45497,
+ 45511,
+ 45527,
+ 45538,
+ 45994,
+ 46011,
+ 46274,
+ 46287,
+ 46297,
+ 46315,
+ 46501,
+ 46517,
+ 46527,
+ 46535,
+ 46569,
+ 46835,
+ 47023,
+ 47042,
+ 47054,
+ 47270,
+ 47278,
+ 47286,
+ 47288,
+ 47291,
+ 47337,
+ 47531,
+ 47534,
+ 47564,
+ 47566,
+ 47613,
+ 47800,
+ 47822,
+ 47824,
+ 47857,
+ 48103,
+ 48115,
+ 48125,
+ 48301,
+ 48314,
+ 48338,
+ 48374,
+ 48570,
+ 48576,
+ 48579,
+ 48581,
+ 48838,
+ 48840,
+ 48863,
+ 48878,
+ 48888,
+ 48890,
+ 49057,
+ 49065,
+ 49088,
+ 49124,
+ 49131,
+ 49132,
+ 49144,
+ 49319,
+ 49327,
+ 49336,
+ 49338,
+ 49339,
+ 49341,
+ 49351,
+ 49356,
+ 49358,
+ 49359,
+ 49366,
+ 49370,
+ 49381,
+ 49403,
+ 49404,
+ 49572,
+ 49574,
+ 49590,
+ 49622,
+ 49631,
+ 49654,
+ 49656,
+ 50337,
+ 50637,
+ 50862,
+ 51151,
+ 51153,
+ 51154,
+ 51160,
+ 51173,
+ 51373
+ ];
+ this.nextChar = eucNextChar;
+ };
+ util.inherits(exports.euc_kr, mbcs);
+ exports.gb_18030 = function() {
+ this.name = function() {
+ return "GB18030";
+ };
+ this.language = function() {
+ return "zh";
+ };
+ this.nextChar = function(iter, det) {
+ iter.index = iter.nextIndex;
+ iter.error = false;
+ var firstByte = 0;
+ var secondByte = 0;
+ var thirdByte = 0;
+ var fourthByte = 0;
+ buildChar: {
+ firstByte = iter.charValue = iter.nextByte(det);
+ if (firstByte < 0) {
+ iter.done = true;
+ break buildChar;
+ }
+ if (firstByte <= 128) {
+ break buildChar;
+ }
+ secondByte = iter.nextByte(det);
+ iter.charValue = iter.charValue << 8 | secondByte;
+ if (firstByte >= 129 && firstByte <= 254) {
+ if (secondByte >= 64 && secondByte <= 126 || secondByte >= 80 && secondByte <= 254) {
+ break buildChar;
+ }
+ if (secondByte >= 48 && secondByte <= 57) {
+ thirdByte = iter.nextByte(det);
+ if (thirdByte >= 129 && thirdByte <= 254) {
+ fourthByte = iter.nextByte(det);
+ if (fourthByte >= 48 && fourthByte <= 57) {
+ iter.charValue = iter.charValue << 16 | thirdByte << 8 | fourthByte;
+ break buildChar;
+ }
+ }
+ }
+ iter.error = true;
+ break buildChar;
+ }
+ }
+ return iter.done == false;
+ };
+ this.commonChars = [
+ 41377,
+ 41378,
+ 41379,
+ 41380,
+ 41392,
+ 41393,
+ 41457,
+ 41459,
+ 41889,
+ 41900,
+ 41914,
+ 45480,
+ 45496,
+ 45502,
+ 45755,
+ 46025,
+ 46070,
+ 46323,
+ 46525,
+ 46532,
+ 46563,
+ 46767,
+ 46804,
+ 46816,
+ 47010,
+ 47016,
+ 47037,
+ 47062,
+ 47069,
+ 47284,
+ 47327,
+ 47350,
+ 47531,
+ 47561,
+ 47576,
+ 47610,
+ 47613,
+ 47821,
+ 48039,
+ 48086,
+ 48097,
+ 48122,
+ 48316,
+ 48347,
+ 48382,
+ 48588,
+ 48845,
+ 48861,
+ 49076,
+ 49094,
+ 49097,
+ 49332,
+ 49389,
+ 49611,
+ 49883,
+ 50119,
+ 50396,
+ 50410,
+ 50636,
+ 50935,
+ 51192,
+ 51371,
+ 51403,
+ 51413,
+ 51431,
+ 51663,
+ 51706,
+ 51889,
+ 51893,
+ 51911,
+ 51920,
+ 51926,
+ 51957,
+ 51965,
+ 52460,
+ 52728,
+ 52906,
+ 52932,
+ 52946,
+ 52965,
+ 53173,
+ 53186,
+ 53206,
+ 53442,
+ 53445,
+ 53456,
+ 53460,
+ 53671,
+ 53930,
+ 53938,
+ 53941,
+ 53947,
+ 53972,
+ 54211,
+ 54224,
+ 54269,
+ 54466,
+ 54490,
+ 54754,
+ 54992
+ ];
+ };
+ util.inherits(exports.gb_18030, mbcs);
+});
+
+// node_modules/chardet/encoding/sbcs.js
+var require_sbcs = __commonJS((exports, module) => {
+ var util = __require("util");
+ var Match = require_match();
+ function NGramParser(theNgramList, theByteMap) {
+ var N_GRAM_MASK = 16777215;
+ this.byteIndex = 0;
+ this.ngram = 0;
+ this.ngramList = theNgramList;
+ this.byteMap = theByteMap;
+ this.ngramCount = 0;
+ this.hitCount = 0;
+ this.spaceChar;
+ this.search = function(table, value) {
+ var index = 0;
+ if (table[index + 32] <= value)
+ index += 32;
+ if (table[index + 16] <= value)
+ index += 16;
+ if (table[index + 8] <= value)
+ index += 8;
+ if (table[index + 4] <= value)
+ index += 4;
+ if (table[index + 2] <= value)
+ index += 2;
+ if (table[index + 1] <= value)
+ index += 1;
+ if (table[index] > value)
+ index -= 1;
+ if (index < 0 || table[index] != value)
+ return -1;
+ return index;
+ };
+ this.lookup = function(thisNgram) {
+ this.ngramCount += 1;
+ if (this.search(this.ngramList, thisNgram) >= 0) {
+ this.hitCount += 1;
+ }
+ };
+ this.addByte = function(b) {
+ this.ngram = (this.ngram << 8) + (b & 255) & N_GRAM_MASK;
+ this.lookup(this.ngram);
+ };
+ this.nextByte = function(det) {
+ if (this.byteIndex >= det.fInputLen)
+ return -1;
+ return det.fInputBytes[this.byteIndex++] & 255;
+ };
+ this.parse = function(det, spaceCh) {
+ var b, ignoreSpace = false;
+ this.spaceChar = spaceCh;
+ while ((b = this.nextByte(det)) >= 0) {
+ var mb = this.byteMap[b];
+ if (mb != 0) {
+ if (!(mb == this.spaceChar && ignoreSpace)) {
+ this.addByte(mb);
+ }
+ ignoreSpace = mb == this.spaceChar;
+ }
+ }
+ this.addByte(this.spaceChar);
+ var rawPercent = this.hitCount / this.ngramCount;
+ if (rawPercent > 0.33)
+ return 98;
+ return Math.floor(rawPercent * 300);
+ };
+ }
+ function NGramsPlusLang(la, ng) {
+ this.fLang = la;
+ this.fNGrams = ng;
+ }
+ function sbcs() {
+ }
+ sbcs.prototype.spaceChar = 32;
+ sbcs.prototype.ngrams = function() {
+ };
+ sbcs.prototype.byteMap = function() {
+ };
+ sbcs.prototype.match = function(det) {
+ var ngrams = this.ngrams();
+ var multiple = Array.isArray(ngrams) && ngrams[0] instanceof NGramsPlusLang;
+ if (!multiple) {
+ var parser = new NGramParser(ngrams, this.byteMap());
+ var confidence = parser.parse(det, this.spaceChar);
+ return confidence <= 0 ? null : new Match(det, this, confidence);
+ }
+ var bestConfidenceSoFar = -1;
+ var lang = null;
+ for (var i = ngrams.length - 1;i >= 0; i--) {
+ var ngl = ngrams[i];
+ var parser = new NGramParser(ngl.fNGrams, this.byteMap());
+ var confidence = parser.parse(det, this.spaceChar);
+ if (confidence > bestConfidenceSoFar) {
+ bestConfidenceSoFar = confidence;
+ lang = ngl.fLang;
+ }
+ }
+ var name = this.name(det);
+ return bestConfidenceSoFar <= 0 ? null : new Match(det, this, bestConfidenceSoFar, name, lang);
+ };
+ exports.ISO_8859_1 = function() {
+ this.byteMap = function() {
+ return [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 0,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 170,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 181,
+ 32,
+ 32,
+ 32,
+ 32,
+ 186,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 32,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 253,
+ 254,
+ 223,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 32,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 253,
+ 254,
+ 255
+ ];
+ };
+ this.ngrams = function() {
+ return [
+ new NGramsPlusLang("da", [
+ 2122086,
+ 2122100,
+ 2122853,
+ 2123118,
+ 2123122,
+ 2123375,
+ 2123873,
+ 2124064,
+ 2125157,
+ 2125671,
+ 2126053,
+ 2126697,
+ 2126708,
+ 2126953,
+ 2127465,
+ 6383136,
+ 6385184,
+ 6385252,
+ 6386208,
+ 6386720,
+ 6579488,
+ 6579566,
+ 6579570,
+ 6579572,
+ 6627443,
+ 6644768,
+ 6644837,
+ 6647328,
+ 6647396,
+ 6648352,
+ 6648421,
+ 6648608,
+ 6648864,
+ 6713202,
+ 6776096,
+ 6776174,
+ 6776178,
+ 6907749,
+ 6908960,
+ 6909543,
+ 7038240,
+ 7039845,
+ 7103858,
+ 7104871,
+ 7105637,
+ 7169380,
+ 7234661,
+ 7234848,
+ 7235360,
+ 7235429,
+ 7300896,
+ 7302432,
+ 7303712,
+ 7398688,
+ 7479396,
+ 7479397,
+ 7479411,
+ 7496992,
+ 7566437,
+ 7610483,
+ 7628064,
+ 7628146,
+ 7629164,
+ 7759218
+ ]),
+ new NGramsPlusLang("de", [
+ 2122094,
+ 2122101,
+ 2122341,
+ 2122849,
+ 2122853,
+ 2122857,
+ 2123113,
+ 2123621,
+ 2123873,
+ 2124142,
+ 2125161,
+ 2126691,
+ 2126693,
+ 2127214,
+ 2127461,
+ 2127471,
+ 2127717,
+ 2128501,
+ 6448498,
+ 6514720,
+ 6514789,
+ 6514804,
+ 6578547,
+ 6579566,
+ 6579570,
+ 6580581,
+ 6627428,
+ 6627443,
+ 6646126,
+ 6646132,
+ 6647328,
+ 6648352,
+ 6648608,
+ 6776174,
+ 6841710,
+ 6845472,
+ 6906728,
+ 6907168,
+ 6909472,
+ 6909541,
+ 6911008,
+ 7104867,
+ 7105637,
+ 7217249,
+ 7217252,
+ 7217267,
+ 7234592,
+ 7234661,
+ 7234848,
+ 7235360,
+ 7235429,
+ 7238757,
+ 7479396,
+ 7496805,
+ 7497065,
+ 7562088,
+ 7566437,
+ 7610468,
+ 7628064,
+ 7628142,
+ 7628146,
+ 7695972,
+ 7695975,
+ 7759218
+ ]),
+ new NGramsPlusLang("en", [
+ 2122016,
+ 2122094,
+ 2122341,
+ 2122607,
+ 2123375,
+ 2123873,
+ 2123877,
+ 2124142,
+ 2125153,
+ 2125670,
+ 2125938,
+ 2126437,
+ 2126689,
+ 2126708,
+ 2126952,
+ 2126959,
+ 2127720,
+ 6383972,
+ 6384672,
+ 6385184,
+ 6385252,
+ 6386464,
+ 6386720,
+ 6386789,
+ 6386793,
+ 6561889,
+ 6561908,
+ 6627425,
+ 6627443,
+ 6627444,
+ 6644768,
+ 6647412,
+ 6648352,
+ 6648608,
+ 6713202,
+ 6840692,
+ 6841632,
+ 6841714,
+ 6906912,
+ 6909472,
+ 6909543,
+ 6909806,
+ 6910752,
+ 7217249,
+ 7217268,
+ 7234592,
+ 7235360,
+ 7238688,
+ 7300640,
+ 7302688,
+ 7303712,
+ 7496992,
+ 7500576,
+ 7544929,
+ 7544948,
+ 7561577,
+ 7566368,
+ 7610484,
+ 7628146,
+ 7628897,
+ 7628901,
+ 7629167,
+ 7630624,
+ 7631648
+ ]),
+ new NGramsPlusLang("es", [
+ 2122016,
+ 2122593,
+ 2122607,
+ 2122853,
+ 2123116,
+ 2123118,
+ 2123123,
+ 2124142,
+ 2124897,
+ 2124911,
+ 2125921,
+ 2125935,
+ 2125938,
+ 2126197,
+ 2126437,
+ 2126693,
+ 2127214,
+ 2128160,
+ 6365283,
+ 6365284,
+ 6365285,
+ 6365292,
+ 6365296,
+ 6382441,
+ 6382703,
+ 6384672,
+ 6386208,
+ 6386464,
+ 6515187,
+ 6516590,
+ 6579488,
+ 6579564,
+ 6582048,
+ 6627428,
+ 6627429,
+ 6627436,
+ 6646816,
+ 6647328,
+ 6647412,
+ 6648608,
+ 6648692,
+ 6907246,
+ 6943598,
+ 7102752,
+ 7106419,
+ 7217253,
+ 7238757,
+ 7282788,
+ 7282789,
+ 7302688,
+ 7303712,
+ 7303968,
+ 7364978,
+ 7435621,
+ 7495968,
+ 7497075,
+ 7544932,
+ 7544933,
+ 7544944,
+ 7562528,
+ 7628064,
+ 7630624,
+ 7693600,
+ 15953440
+ ]),
+ new NGramsPlusLang("fr", [
+ 2122101,
+ 2122607,
+ 2122849,
+ 2122853,
+ 2122869,
+ 2123118,
+ 2123124,
+ 2124897,
+ 2124901,
+ 2125921,
+ 2125935,
+ 2125938,
+ 2126197,
+ 2126693,
+ 2126703,
+ 2127214,
+ 2154528,
+ 6385268,
+ 6386793,
+ 6513952,
+ 6516590,
+ 6579488,
+ 6579571,
+ 6583584,
+ 6627425,
+ 6627427,
+ 6627428,
+ 6627429,
+ 6627436,
+ 6627440,
+ 6627443,
+ 6647328,
+ 6647412,
+ 6648352,
+ 6648608,
+ 6648864,
+ 6649202,
+ 6909806,
+ 6910752,
+ 6911008,
+ 7102752,
+ 7103776,
+ 7103859,
+ 7169390,
+ 7217252,
+ 7234848,
+ 7238432,
+ 7238688,
+ 7302688,
+ 7302772,
+ 7304562,
+ 7435621,
+ 7479404,
+ 7496992,
+ 7544929,
+ 7544932,
+ 7544933,
+ 7544940,
+ 7544944,
+ 7610468,
+ 7628064,
+ 7629167,
+ 7693600,
+ 7696928
+ ]),
+ new NGramsPlusLang("it", [
+ 2122092,
+ 2122600,
+ 2122607,
+ 2122853,
+ 2122857,
+ 2123040,
+ 2124140,
+ 2124142,
+ 2124897,
+ 2125925,
+ 2125938,
+ 2127214,
+ 6365283,
+ 6365284,
+ 6365296,
+ 6365299,
+ 6386799,
+ 6514789,
+ 6516590,
+ 6579564,
+ 6580512,
+ 6627425,
+ 6627427,
+ 6627428,
+ 6627433,
+ 6627436,
+ 6627440,
+ 6627443,
+ 6646816,
+ 6646892,
+ 6647412,
+ 6648352,
+ 6841632,
+ 6889569,
+ 6889571,
+ 6889572,
+ 6889587,
+ 6906144,
+ 6908960,
+ 6909472,
+ 6909806,
+ 7102752,
+ 7103776,
+ 7104800,
+ 7105633,
+ 7234848,
+ 7235872,
+ 7237408,
+ 7238757,
+ 7282785,
+ 7282788,
+ 7282793,
+ 7282803,
+ 7302688,
+ 7302757,
+ 7366002,
+ 7495968,
+ 7496992,
+ 7563552,
+ 7627040,
+ 7628064,
+ 7629088,
+ 7630624,
+ 8022383
+ ]),
+ new NGramsPlusLang("nl", [
+ 2122092,
+ 2122341,
+ 2122849,
+ 2122853,
+ 2122857,
+ 2123109,
+ 2123118,
+ 2123621,
+ 2123877,
+ 2124142,
+ 2125153,
+ 2125157,
+ 2125680,
+ 2126949,
+ 2127457,
+ 2127461,
+ 2127471,
+ 2127717,
+ 2128489,
+ 6381934,
+ 6381938,
+ 6385184,
+ 6385252,
+ 6386208,
+ 6386720,
+ 6514804,
+ 6579488,
+ 6579566,
+ 6579570,
+ 6627426,
+ 6627446,
+ 6645102,
+ 6645106,
+ 6647328,
+ 6648352,
+ 6648435,
+ 6648864,
+ 6776174,
+ 6841716,
+ 6907168,
+ 6909472,
+ 6909543,
+ 6910752,
+ 7217250,
+ 7217252,
+ 7217253,
+ 7217256,
+ 7217263,
+ 7217270,
+ 7234661,
+ 7235360,
+ 7302756,
+ 7303026,
+ 7303200,
+ 7303712,
+ 7562088,
+ 7566437,
+ 7610468,
+ 7628064,
+ 7628142,
+ 7628146,
+ 7758190,
+ 7759218,
+ 7761775
+ ]),
+ new NGramsPlusLang("no", [
+ 2122100,
+ 2122102,
+ 2122853,
+ 2123118,
+ 2123122,
+ 2123375,
+ 2123873,
+ 2124064,
+ 2125157,
+ 2125671,
+ 2126053,
+ 2126693,
+ 2126699,
+ 2126703,
+ 2126708,
+ 2126953,
+ 2127465,
+ 2155808,
+ 6385252,
+ 6386208,
+ 6386720,
+ 6579488,
+ 6579566,
+ 6579572,
+ 6627443,
+ 6644768,
+ 6647328,
+ 6647397,
+ 6648352,
+ 6648421,
+ 6648864,
+ 6648948,
+ 6713202,
+ 6776174,
+ 6908779,
+ 6908960,
+ 6909543,
+ 7038240,
+ 7039845,
+ 7103776,
+ 7105637,
+ 7169380,
+ 7169390,
+ 7217267,
+ 7234848,
+ 7235360,
+ 7235429,
+ 7237221,
+ 7300896,
+ 7302432,
+ 7303712,
+ 7398688,
+ 7479411,
+ 7496992,
+ 7565165,
+ 7566437,
+ 7610483,
+ 7628064,
+ 7628142,
+ 7628146,
+ 7629164,
+ 7631904,
+ 7631973,
+ 7759218
+ ]),
+ new NGramsPlusLang("pt", [
+ 2122016,
+ 2122607,
+ 2122849,
+ 2122853,
+ 2122863,
+ 2123040,
+ 2123123,
+ 2125153,
+ 2125423,
+ 2125600,
+ 2125921,
+ 2125935,
+ 2125938,
+ 2126197,
+ 2126437,
+ 2126693,
+ 2127213,
+ 6365281,
+ 6365283,
+ 6365284,
+ 6365296,
+ 6382693,
+ 6382703,
+ 6384672,
+ 6386208,
+ 6386273,
+ 6386464,
+ 6516589,
+ 6516590,
+ 6578464,
+ 6579488,
+ 6582048,
+ 6582131,
+ 6627425,
+ 6627428,
+ 6647072,
+ 6647412,
+ 6648608,
+ 6648692,
+ 6906144,
+ 6906721,
+ 7169390,
+ 7238757,
+ 7238767,
+ 7282785,
+ 7282787,
+ 7282788,
+ 7282789,
+ 7282800,
+ 7303968,
+ 7364978,
+ 7435621,
+ 7495968,
+ 7497075,
+ 7544929,
+ 7544932,
+ 7544933,
+ 7544944,
+ 7566433,
+ 7628064,
+ 7630624,
+ 7693600,
+ 14905120,
+ 15197039
+ ]),
+ new NGramsPlusLang("sv", [
+ 2122100,
+ 2122102,
+ 2122853,
+ 2123118,
+ 2123510,
+ 2123873,
+ 2124064,
+ 2124142,
+ 2124655,
+ 2125157,
+ 2125667,
+ 2126053,
+ 2126699,
+ 2126703,
+ 2126708,
+ 2126953,
+ 2127457,
+ 2127465,
+ 2155634,
+ 6382693,
+ 6385184,
+ 6385252,
+ 6386208,
+ 6386804,
+ 6514720,
+ 6579488,
+ 6579566,
+ 6579570,
+ 6579572,
+ 6644768,
+ 6647328,
+ 6648352,
+ 6648864,
+ 6747762,
+ 6776174,
+ 6909036,
+ 6909543,
+ 7037216,
+ 7105568,
+ 7169380,
+ 7217267,
+ 7233824,
+ 7234661,
+ 7235360,
+ 7235429,
+ 7235950,
+ 7299944,
+ 7302432,
+ 7302688,
+ 7398688,
+ 7479393,
+ 7479411,
+ 7495968,
+ 7564129,
+ 7565165,
+ 7610483,
+ 7627040,
+ 7628064,
+ 7628146,
+ 7629164,
+ 7631904,
+ 7758194,
+ 14971424,
+ 16151072
+ ])
+ ];
+ };
+ this.name = function(det) {
+ return det && det.fC1Bytes ? "windows-1252" : "ISO-8859-1";
+ };
+ };
+ util.inherits(exports.ISO_8859_1, sbcs);
+ exports.ISO_8859_2 = function() {
+ this.byteMap = function() {
+ return [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 0,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 177,
+ 32,
+ 179,
+ 32,
+ 181,
+ 182,
+ 32,
+ 32,
+ 185,
+ 186,
+ 187,
+ 188,
+ 32,
+ 190,
+ 191,
+ 32,
+ 177,
+ 32,
+ 179,
+ 32,
+ 181,
+ 182,
+ 183,
+ 32,
+ 185,
+ 186,
+ 187,
+ 188,
+ 32,
+ 190,
+ 191,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 32,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 253,
+ 254,
+ 223,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 32,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 253,
+ 254,
+ 32
+ ];
+ };
+ this.ngrams = function() {
+ return [
+ new NGramsPlusLang("cs", [
+ 2122016,
+ 2122361,
+ 2122863,
+ 2124389,
+ 2125409,
+ 2125413,
+ 2125600,
+ 2125668,
+ 2125935,
+ 2125938,
+ 2126072,
+ 2126447,
+ 2126693,
+ 2126703,
+ 2126708,
+ 2126959,
+ 2127392,
+ 2127481,
+ 2128481,
+ 6365296,
+ 6513952,
+ 6514720,
+ 6627440,
+ 6627443,
+ 6627446,
+ 6647072,
+ 6647533,
+ 6844192,
+ 6844260,
+ 6910836,
+ 6972704,
+ 7042149,
+ 7103776,
+ 7104800,
+ 7233824,
+ 7268640,
+ 7269408,
+ 7269664,
+ 7282800,
+ 7300206,
+ 7301737,
+ 7304052,
+ 7304480,
+ 7304801,
+ 7368548,
+ 7368554,
+ 7369327,
+ 7403621,
+ 7562528,
+ 7565173,
+ 7566433,
+ 7566441,
+ 7566446,
+ 7628146,
+ 7630573,
+ 7630624,
+ 7676016,
+ 12477728,
+ 14773997,
+ 15296623,
+ 15540336,
+ 15540339,
+ 15559968,
+ 16278884
+ ]),
+ new NGramsPlusLang("hu", [
+ 2122016,
+ 2122106,
+ 2122341,
+ 2123111,
+ 2123116,
+ 2123365,
+ 2123873,
+ 2123887,
+ 2124147,
+ 2124645,
+ 2124649,
+ 2124790,
+ 2124901,
+ 2125153,
+ 2125157,
+ 2125161,
+ 2125413,
+ 2126714,
+ 2126949,
+ 2156915,
+ 6365281,
+ 6365291,
+ 6365293,
+ 6365299,
+ 6384416,
+ 6385184,
+ 6388256,
+ 6447470,
+ 6448494,
+ 6645625,
+ 6646560,
+ 6646816,
+ 6646885,
+ 6647072,
+ 6647328,
+ 6648421,
+ 6648864,
+ 6648933,
+ 6648948,
+ 6781216,
+ 6844263,
+ 6909556,
+ 6910752,
+ 7020641,
+ 7075450,
+ 7169383,
+ 7170414,
+ 7217249,
+ 7233899,
+ 7234923,
+ 7234925,
+ 7238688,
+ 7300985,
+ 7544929,
+ 7567973,
+ 7567988,
+ 7568097,
+ 7596391,
+ 7610465,
+ 7631904,
+ 7659891,
+ 8021362,
+ 14773792,
+ 15299360
+ ]),
+ new NGramsPlusLang("pl", [
+ 2122618,
+ 2122863,
+ 2124064,
+ 2124389,
+ 2124655,
+ 2125153,
+ 2125161,
+ 2125409,
+ 2125417,
+ 2125668,
+ 2125935,
+ 2125938,
+ 2126697,
+ 2127648,
+ 2127721,
+ 2127737,
+ 2128416,
+ 2128481,
+ 6365296,
+ 6365303,
+ 6385257,
+ 6514720,
+ 6519397,
+ 6519417,
+ 6582048,
+ 6584937,
+ 6627440,
+ 6627443,
+ 6627447,
+ 6627450,
+ 6645615,
+ 6646304,
+ 6647072,
+ 6647401,
+ 6778656,
+ 6906144,
+ 6907168,
+ 6907242,
+ 7037216,
+ 7039264,
+ 7039333,
+ 7170405,
+ 7233824,
+ 7235937,
+ 7235941,
+ 7282800,
+ 7305057,
+ 7305065,
+ 7368556,
+ 7369313,
+ 7369327,
+ 7369338,
+ 7502437,
+ 7502457,
+ 7563754,
+ 7564137,
+ 7566433,
+ 7825765,
+ 7955304,
+ 7957792,
+ 8021280,
+ 8022373,
+ 8026400,
+ 15955744
+ ]),
+ new NGramsPlusLang("ro", [
+ 2122016,
+ 2122083,
+ 2122593,
+ 2122597,
+ 2122607,
+ 2122613,
+ 2122853,
+ 2122857,
+ 2124897,
+ 2125153,
+ 2125925,
+ 2125938,
+ 2126693,
+ 2126819,
+ 2127214,
+ 2144873,
+ 2158190,
+ 6365283,
+ 6365284,
+ 6386277,
+ 6386720,
+ 6386789,
+ 6386976,
+ 6513010,
+ 6516590,
+ 6518048,
+ 6546208,
+ 6579488,
+ 6627425,
+ 6627427,
+ 6627428,
+ 6627440,
+ 6627443,
+ 6644000,
+ 6646048,
+ 6646885,
+ 6647412,
+ 6648692,
+ 6889569,
+ 6889571,
+ 6889572,
+ 6889584,
+ 6907168,
+ 6908192,
+ 6909472,
+ 7102752,
+ 7103776,
+ 7106418,
+ 7107945,
+ 7234848,
+ 7238770,
+ 7303712,
+ 7365998,
+ 7496992,
+ 7497057,
+ 7501088,
+ 7594784,
+ 7628064,
+ 7631477,
+ 7660320,
+ 7694624,
+ 7695392,
+ 12216608,
+ 15625760
+ ])
+ ];
+ };
+ this.name = function(det) {
+ return det && det.fC1Bytes ? "windows-1250" : "ISO-8859-2";
+ };
+ };
+ util.inherits(exports.ISO_8859_2, sbcs);
+ exports.ISO_8859_5 = function() {
+ this.byteMap = function() {
+ return [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 0,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 247,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 32,
+ 254,
+ 255,
+ 208,
+ 209,
+ 210,
+ 211,
+ 212,
+ 213,
+ 214,
+ 215,
+ 216,
+ 217,
+ 218,
+ 219,
+ 220,
+ 221,
+ 222,
+ 223,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 208,
+ 209,
+ 210,
+ 211,
+ 212,
+ 213,
+ 214,
+ 215,
+ 216,
+ 217,
+ 218,
+ 219,
+ 220,
+ 221,
+ 222,
+ 223,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 32,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 247,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 32,
+ 254,
+ 255
+ ];
+ };
+ this.ngrams = function() {
+ return [
+ 2150944,
+ 2151134,
+ 2151646,
+ 2152400,
+ 2152480,
+ 2153168,
+ 2153182,
+ 2153936,
+ 2153941,
+ 2154193,
+ 2154462,
+ 2154464,
+ 2154704,
+ 2154974,
+ 2154978,
+ 2155230,
+ 2156514,
+ 2158050,
+ 13688280,
+ 13689580,
+ 13884960,
+ 14015468,
+ 14015960,
+ 14016994,
+ 14017056,
+ 14164191,
+ 14210336,
+ 14211104,
+ 14216992,
+ 14407133,
+ 14407712,
+ 14413021,
+ 14536736,
+ 14538016,
+ 14538965,
+ 14538991,
+ 14540320,
+ 14540498,
+ 14557394,
+ 14557407,
+ 14557409,
+ 14602784,
+ 14602960,
+ 14603230,
+ 14604576,
+ 14605292,
+ 14605344,
+ 14606818,
+ 14671579,
+ 14672085,
+ 14672088,
+ 14672094,
+ 14733522,
+ 14734804,
+ 14803664,
+ 14803666,
+ 14803672,
+ 14806816,
+ 14865883,
+ 14868000,
+ 14868192,
+ 14871584,
+ 15196894,
+ 15459616
+ ];
+ };
+ this.name = function(det) {
+ return "ISO-8859-5";
+ };
+ this.language = function() {
+ return "ru";
+ };
+ };
+ util.inherits(exports.ISO_8859_5, sbcs);
+ exports.ISO_8859_6 = function() {
+ this.byteMap = function() {
+ return [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 0,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 193,
+ 194,
+ 195,
+ 196,
+ 197,
+ 198,
+ 199,
+ 200,
+ 201,
+ 202,
+ 203,
+ 204,
+ 205,
+ 206,
+ 207,
+ 208,
+ 209,
+ 210,
+ 211,
+ 212,
+ 213,
+ 214,
+ 215,
+ 216,
+ 217,
+ 218,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32
+ ];
+ };
+ this.ngrams = function() {
+ return [
+ 2148324,
+ 2148326,
+ 2148551,
+ 2152932,
+ 2154986,
+ 2155748,
+ 2156006,
+ 2156743,
+ 13050055,
+ 13091104,
+ 13093408,
+ 13095200,
+ 13100064,
+ 13100227,
+ 13100231,
+ 13100232,
+ 13100234,
+ 13100236,
+ 13100237,
+ 13100239,
+ 13100243,
+ 13100249,
+ 13100258,
+ 13100261,
+ 13100264,
+ 13100266,
+ 13100320,
+ 13100576,
+ 13100746,
+ 13115591,
+ 13181127,
+ 13181153,
+ 13181156,
+ 13181157,
+ 13181160,
+ 13246663,
+ 13574343,
+ 13617440,
+ 13705415,
+ 13748512,
+ 13836487,
+ 14229703,
+ 14279913,
+ 14805536,
+ 14950599,
+ 14993696,
+ 15001888,
+ 15002144,
+ 15016135,
+ 15058720,
+ 15059232,
+ 15066656,
+ 15081671,
+ 15147207,
+ 15189792,
+ 15255524,
+ 15263264,
+ 15278279,
+ 15343815,
+ 15343845,
+ 15343848,
+ 15386912,
+ 15388960,
+ 15394336
+ ];
+ };
+ this.name = function(det) {
+ return "ISO-8859-6";
+ };
+ this.language = function() {
+ return "ar";
+ };
+ };
+ util.inherits(exports.ISO_8859_6, sbcs);
+ exports.ISO_8859_7 = function() {
+ this.byteMap = function() {
+ return [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 0,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 161,
+ 162,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 220,
+ 32,
+ 221,
+ 222,
+ 223,
+ 32,
+ 252,
+ 32,
+ 253,
+ 254,
+ 192,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 32,
+ 243,
+ 244,
+ 245,
+ 246,
+ 247,
+ 248,
+ 249,
+ 250,
+ 251,
+ 220,
+ 221,
+ 222,
+ 223,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 247,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 253,
+ 254,
+ 32
+ ];
+ };
+ this.ngrams = function() {
+ return [
+ 2154989,
+ 2154992,
+ 2155497,
+ 2155753,
+ 2156016,
+ 2156320,
+ 2157281,
+ 2157797,
+ 2158049,
+ 2158368,
+ 2158817,
+ 2158831,
+ 2158833,
+ 2159604,
+ 2159605,
+ 2159847,
+ 2159855,
+ 14672160,
+ 14754017,
+ 14754036,
+ 14805280,
+ 14806304,
+ 14807292,
+ 14807584,
+ 14936545,
+ 15067424,
+ 15069728,
+ 15147252,
+ 15199520,
+ 15200800,
+ 15278324,
+ 15327520,
+ 15330014,
+ 15331872,
+ 15393257,
+ 15393268,
+ 15525152,
+ 15540449,
+ 15540453,
+ 15540464,
+ 15589664,
+ 15725088,
+ 15725856,
+ 15790069,
+ 15790575,
+ 15793184,
+ 15868129,
+ 15868133,
+ 15868138,
+ 15868144,
+ 15868148,
+ 15983904,
+ 15984416,
+ 15987951,
+ 16048416,
+ 16048617,
+ 16050157,
+ 16050162,
+ 16050666,
+ 16052000,
+ 16052213,
+ 16054765,
+ 16379168,
+ 16706848
+ ];
+ };
+ this.name = function(det) {
+ return det && det.fC1Bytes ? "windows-1253" : "ISO-8859-7";
+ };
+ this.language = function() {
+ return "el";
+ };
+ };
+ util.inherits(exports.ISO_8859_7, sbcs);
+ exports.ISO_8859_8 = function() {
+ this.byteMap = function() {
+ return [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 0,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 181,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 247,
+ 248,
+ 249,
+ 250,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32
+ ];
+ };
+ this.ngrams = function() {
+ return [
+ new NGramsPlusLang("he", [
+ 2154725,
+ 2154727,
+ 2154729,
+ 2154746,
+ 2154985,
+ 2154990,
+ 2155744,
+ 2155749,
+ 2155753,
+ 2155758,
+ 2155762,
+ 2155769,
+ 2155770,
+ 2157792,
+ 2157796,
+ 2158304,
+ 2159340,
+ 2161132,
+ 14744096,
+ 14950624,
+ 14950625,
+ 14950628,
+ 14950636,
+ 14950638,
+ 14950649,
+ 15001056,
+ 15065120,
+ 15068448,
+ 15068960,
+ 15071264,
+ 15071776,
+ 15278308,
+ 15328288,
+ 15328762,
+ 15329773,
+ 15330592,
+ 15331104,
+ 15333408,
+ 15333920,
+ 15474912,
+ 15474916,
+ 15523872,
+ 15524896,
+ 15540448,
+ 15540449,
+ 15540452,
+ 15540460,
+ 15540462,
+ 15540473,
+ 15655968,
+ 15671524,
+ 15787040,
+ 15788320,
+ 15788525,
+ 15920160,
+ 16261348,
+ 16312813,
+ 16378912,
+ 16392416,
+ 16392417,
+ 16392420,
+ 16392428,
+ 16392430,
+ 16392441
+ ]),
+ new NGramsPlusLang("he", [
+ 2154725,
+ 2154732,
+ 2155753,
+ 2155756,
+ 2155758,
+ 2155760,
+ 2157040,
+ 2157810,
+ 2157817,
+ 2158053,
+ 2158057,
+ 2158565,
+ 2158569,
+ 2160869,
+ 2160873,
+ 2161376,
+ 2161381,
+ 2161385,
+ 14688484,
+ 14688492,
+ 14688493,
+ 14688506,
+ 14738464,
+ 14738916,
+ 14740512,
+ 14741024,
+ 14754020,
+ 14754029,
+ 14754042,
+ 14950628,
+ 14950633,
+ 14950636,
+ 14950637,
+ 14950639,
+ 14950648,
+ 14950650,
+ 15002656,
+ 15065120,
+ 15066144,
+ 15196192,
+ 15327264,
+ 15327520,
+ 15328288,
+ 15474916,
+ 15474925,
+ 15474938,
+ 15528480,
+ 15530272,
+ 15591913,
+ 15591920,
+ 15591928,
+ 15605988,
+ 15605997,
+ 15606010,
+ 15655200,
+ 15655968,
+ 15918112,
+ 16326884,
+ 16326893,
+ 16326906,
+ 16376864,
+ 16441376,
+ 16442400,
+ 16442857
+ ])
+ ];
+ };
+ this.name = function(det) {
+ return det && det.fC1Bytes ? "windows-1255" : "ISO-8859-8";
+ };
+ this.language = function() {
+ return "he";
+ };
+ };
+ util.inherits(exports.ISO_8859_8, sbcs);
+ exports.ISO_8859_9 = function() {
+ this.byteMap = function() {
+ return [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 0,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 170,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 181,
+ 32,
+ 32,
+ 32,
+ 32,
+ 186,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 32,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 105,
+ 254,
+ 223,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 32,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 253,
+ 254,
+ 255
+ ];
+ };
+ this.ngrams = function() {
+ return [
+ 2122337,
+ 2122345,
+ 2122357,
+ 2122849,
+ 2122853,
+ 2123621,
+ 2123873,
+ 2124140,
+ 2124641,
+ 2124655,
+ 2125153,
+ 2125676,
+ 2126689,
+ 2126945,
+ 2127461,
+ 2128225,
+ 6365282,
+ 6384416,
+ 6384737,
+ 6384993,
+ 6385184,
+ 6385405,
+ 6386208,
+ 6386273,
+ 6386429,
+ 6386685,
+ 6388065,
+ 6449522,
+ 6578464,
+ 6579488,
+ 6580512,
+ 6627426,
+ 6627435,
+ 6644841,
+ 6647328,
+ 6648352,
+ 6648425,
+ 6648681,
+ 6909029,
+ 6909472,
+ 6909545,
+ 6910496,
+ 7102830,
+ 7102834,
+ 7103776,
+ 7103858,
+ 7217249,
+ 7217250,
+ 7217259,
+ 7234657,
+ 7234661,
+ 7234848,
+ 7235872,
+ 7235950,
+ 7273760,
+ 7498094,
+ 7535982,
+ 7759136,
+ 7954720,
+ 7958386,
+ 16608800,
+ 16608868,
+ 16609021,
+ 16642301
+ ];
+ };
+ this.name = function(det) {
+ return det && det.fC1Bytes ? "windows-1254" : "ISO-8859-9";
+ };
+ this.language = function() {
+ return "tr";
+ };
+ };
+ util.inherits(exports.ISO_8859_9, sbcs);
+ exports.windows_1251 = function() {
+ this.byteMap = function() {
+ return [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 0,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 144,
+ 131,
+ 32,
+ 131,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 154,
+ 32,
+ 156,
+ 157,
+ 158,
+ 159,
+ 144,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 154,
+ 32,
+ 156,
+ 157,
+ 158,
+ 159,
+ 32,
+ 162,
+ 162,
+ 188,
+ 32,
+ 180,
+ 32,
+ 32,
+ 184,
+ 32,
+ 186,
+ 32,
+ 32,
+ 32,
+ 32,
+ 191,
+ 32,
+ 32,
+ 179,
+ 179,
+ 180,
+ 181,
+ 32,
+ 32,
+ 184,
+ 32,
+ 186,
+ 32,
+ 188,
+ 190,
+ 190,
+ 191,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 247,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 253,
+ 254,
+ 255,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 247,
+ 248,
+ 249,
+ 250,
+ 251,
+ 252,
+ 253,
+ 254,
+ 255
+ ];
+ };
+ this.ngrams = function() {
+ return [
+ 2155040,
+ 2155246,
+ 2155758,
+ 2156512,
+ 2156576,
+ 2157280,
+ 2157294,
+ 2158048,
+ 2158053,
+ 2158305,
+ 2158574,
+ 2158576,
+ 2158816,
+ 2159086,
+ 2159090,
+ 2159342,
+ 2160626,
+ 2162162,
+ 14740968,
+ 14742268,
+ 14937632,
+ 15068156,
+ 15068648,
+ 15069682,
+ 15069728,
+ 15212783,
+ 15263008,
+ 15263776,
+ 15269664,
+ 15459821,
+ 15460384,
+ 15465709,
+ 15589408,
+ 15590688,
+ 15591653,
+ 15591679,
+ 15592992,
+ 15593186,
+ 15605986,
+ 15605999,
+ 15606001,
+ 15655456,
+ 15655648,
+ 15655918,
+ 15657248,
+ 15657980,
+ 15658016,
+ 15659506,
+ 15724267,
+ 15724773,
+ 15724776,
+ 15724782,
+ 15786210,
+ 15787492,
+ 15856352,
+ 15856354,
+ 15856360,
+ 15859488,
+ 15918571,
+ 15920672,
+ 15920880,
+ 15924256,
+ 16249582,
+ 16512288
+ ];
+ };
+ this.name = function(det) {
+ return "windows-1251";
+ };
+ this.language = function() {
+ return "ru";
+ };
+ };
+ util.inherits(exports.windows_1251, sbcs);
+ exports.windows_1256 = function() {
+ this.byteMap = function() {
+ return [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 0,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 129,
+ 32,
+ 131,
+ 32,
+ 32,
+ 32,
+ 32,
+ 136,
+ 32,
+ 138,
+ 32,
+ 156,
+ 141,
+ 142,
+ 143,
+ 144,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 152,
+ 32,
+ 154,
+ 32,
+ 156,
+ 32,
+ 32,
+ 159,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 170,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 181,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 192,
+ 193,
+ 194,
+ 195,
+ 196,
+ 197,
+ 198,
+ 199,
+ 200,
+ 201,
+ 202,
+ 203,
+ 204,
+ 205,
+ 206,
+ 207,
+ 208,
+ 209,
+ 210,
+ 211,
+ 212,
+ 213,
+ 214,
+ 32,
+ 216,
+ 217,
+ 218,
+ 219,
+ 220,
+ 221,
+ 222,
+ 223,
+ 224,
+ 225,
+ 226,
+ 227,
+ 228,
+ 229,
+ 230,
+ 231,
+ 232,
+ 233,
+ 234,
+ 235,
+ 236,
+ 237,
+ 238,
+ 239,
+ 32,
+ 32,
+ 32,
+ 32,
+ 244,
+ 32,
+ 32,
+ 32,
+ 32,
+ 249,
+ 32,
+ 251,
+ 252,
+ 32,
+ 32,
+ 255
+ ];
+ };
+ this.ngrams = function() {
+ return [
+ 2148321,
+ 2148324,
+ 2148551,
+ 2153185,
+ 2153965,
+ 2154977,
+ 2155492,
+ 2156231,
+ 13050055,
+ 13091104,
+ 13093408,
+ 13095200,
+ 13099296,
+ 13099459,
+ 13099463,
+ 13099464,
+ 13099466,
+ 13099468,
+ 13099469,
+ 13099471,
+ 13099475,
+ 13099482,
+ 13099486,
+ 13099491,
+ 13099494,
+ 13099501,
+ 13099808,
+ 13100064,
+ 13100234,
+ 13115591,
+ 13181127,
+ 13181149,
+ 13181153,
+ 13181155,
+ 13181158,
+ 13246663,
+ 13574343,
+ 13617440,
+ 13705415,
+ 13748512,
+ 13836487,
+ 14295239,
+ 14344684,
+ 14544160,
+ 14753991,
+ 14797088,
+ 14806048,
+ 14806304,
+ 14885063,
+ 14927648,
+ 14928160,
+ 14935072,
+ 14950599,
+ 15016135,
+ 15058720,
+ 15124449,
+ 15131680,
+ 15474887,
+ 15540423,
+ 15540451,
+ 15540454,
+ 15583520,
+ 15585568,
+ 15590432
+ ];
+ };
+ this.name = function(det) {
+ return "windows-1256";
+ };
+ this.language = function() {
+ return "ar";
+ };
+ };
+ util.inherits(exports.windows_1256, sbcs);
+ exports.KOI8_R = function() {
+ this.byteMap = function() {
+ return [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 0,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 97,
+ 98,
+ 99,
+ 100,
+ 101,
+ 102,
+ 103,
+ 104,
+ 105,
+ 106,
+ 107,
+ 108,
+ 109,
+ 110,
+ 111,
+ 112,
+ 113,
+ 114,
+ 115,
+ 116,
+ 117,
+ 118,
+ 119,
+ 120,
+ 121,
+ 122,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 163,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 163,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 192,
+ 193,
+ 194,
+ 195,
+ 196,
+ 197,
+ 198,
+ 199,
+ 200,
+ 201,
+ 202,
+ 203,
+ 204,
+ 205,
+ 206,
+ 207,
+ 208,
+ 209,
+ 210,
+ 211,
+ 212,
+ 213,
+ 214,
+ 215,
+ 216,
+ 217,
+ 218,
+ 219,
+ 220,
+ 221,
+ 222,
+ 223,
+ 192,
+ 193,
+ 194,
+ 195,
+ 196,
+ 197,
+ 198,
+ 199,
+ 200,
+ 201,
+ 202,
+ 203,
+ 204,
+ 205,
+ 206,
+ 207,
+ 208,
+ 209,
+ 210,
+ 211,
+ 212,
+ 213,
+ 214,
+ 215,
+ 216,
+ 217,
+ 218,
+ 219,
+ 220,
+ 221,
+ 222,
+ 223
+ ];
+ };
+ this.ngrams = function() {
+ return [
+ 2147535,
+ 2148640,
+ 2149313,
+ 2149327,
+ 2150081,
+ 2150085,
+ 2150338,
+ 2150607,
+ 2150610,
+ 2151105,
+ 2151375,
+ 2151380,
+ 2151631,
+ 2152224,
+ 2152399,
+ 2153153,
+ 2153684,
+ 2154196,
+ 12701385,
+ 12702936,
+ 12963032,
+ 12963529,
+ 12964820,
+ 12964896,
+ 13094688,
+ 13181136,
+ 13223200,
+ 13224224,
+ 13226272,
+ 13419982,
+ 13420832,
+ 13424846,
+ 13549856,
+ 13550880,
+ 13552069,
+ 13552081,
+ 13553440,
+ 13553623,
+ 13574352,
+ 13574355,
+ 13574359,
+ 13617103,
+ 13617696,
+ 13618392,
+ 13618464,
+ 13620180,
+ 13621024,
+ 13621185,
+ 13684684,
+ 13685445,
+ 13685449,
+ 13685455,
+ 13812183,
+ 13813188,
+ 13881632,
+ 13882561,
+ 13882569,
+ 13882583,
+ 13944268,
+ 13946656,
+ 13946834,
+ 13948960,
+ 14272544,
+ 14603471
+ ];
+ };
+ this.name = function(det) {
+ return "KOI8-R";
+ };
+ this.language = function() {
+ return "ru";
+ };
+ };
+ util.inherits(exports.KOI8_R, sbcs);
+});
+
+// node_modules/chardet/encoding/iso2022.js
+var require_iso2022 = __commonJS((exports, module) => {
+ var util = __require("util");
+ var Match = require_match();
+ function ISO_2022() {
+ }
+ ISO_2022.prototype.match = function(det) {
+ var i, j;
+ var escN;
+ var hits = 0;
+ var misses = 0;
+ var shifts = 0;
+ var quality;
+ var text = det.fInputBytes;
+ var textLen = det.fInputLen;
+ scanInput:
+ for (i = 0;i < textLen; i++) {
+ if (text[i] == 27) {
+ checkEscapes:
+ for (escN = 0;escN < this.escapeSequences.length; escN++) {
+ var seq = this.escapeSequences[escN];
+ if (textLen - i < seq.length)
+ continue checkEscapes;
+ for (j = 1;j < seq.length; j++)
+ if (seq[j] != text[i + j])
+ continue checkEscapes;
+ hits++;
+ i += seq.length - 1;
+ continue scanInput;
+ }
+ misses++;
+ }
+ if (text[i] == 14 || text[i] == 15)
+ shifts++;
+ }
+ if (hits == 0)
+ return null;
+ quality = (100 * hits - 100 * misses) / (hits + misses);
+ if (hits + shifts < 5)
+ quality -= (5 - (hits + shifts)) * 10;
+ return quality <= 0 ? null : new Match(det, this, quality);
+ };
+ exports.ISO_2022_JP = function() {
+ this.name = function() {
+ return "ISO-2022-JP";
+ };
+ this.escapeSequences = [
+ [27, 36, 40, 67],
+ [27, 36, 40, 68],
+ [27, 36, 64],
+ [27, 36, 65],
+ [27, 36, 66],
+ [27, 38, 64],
+ [27, 40, 66],
+ [27, 40, 72],
+ [27, 40, 73],
+ [27, 40, 74],
+ [27, 46, 65],
+ [27, 46, 70]
+ ];
+ };
+ util.inherits(exports.ISO_2022_JP, ISO_2022);
+ exports.ISO_2022_KR = function() {
+ this.name = function() {
+ return "ISO-2022-KR";
+ };
+ this.escapeSequences = [
+ [27, 36, 41, 67]
+ ];
+ };
+ util.inherits(exports.ISO_2022_KR, ISO_2022);
+ exports.ISO_2022_CN = function() {
+ this.name = function() {
+ return "ISO-2022-CN";
+ };
+ this.escapeSequences = [
+ [27, 36, 41, 65],
+ [27, 36, 41, 71],
+ [27, 36, 42, 72],
+ [27, 36, 41, 69],
+ [27, 36, 43, 73],
+ [27, 36, 43, 74],
+ [27, 36, 43, 75],
+ [27, 36, 43, 76],
+ [27, 36, 43, 77],
+ [27, 78],
+ [27, 79]
+ ];
+ };
+ util.inherits(exports.ISO_2022_CN, ISO_2022);
+});
+
+// node_modules/chardet/index.js
+var require_chardet = __commonJS((exports, module) => {
+ var fs2 = __require("fs");
+ var utf8 = require_utf8();
+ var unicode = require_unicode();
+ var mbcs = require_mbcs();
+ var sbcs = require_sbcs();
+ var iso2022 = require_iso2022();
+ var self2 = exports;
+ var recognisers = [
+ new utf8,
+ new unicode.UTF_16BE,
+ new unicode.UTF_16LE,
+ new unicode.UTF_32BE,
+ new unicode.UTF_32LE,
+ new mbcs.sjis,
+ new mbcs.big5,
+ new mbcs.euc_jp,
+ new mbcs.euc_kr,
+ new mbcs.gb_18030,
+ new iso2022.ISO_2022_JP,
+ new iso2022.ISO_2022_KR,
+ new iso2022.ISO_2022_CN,
+ new sbcs.ISO_8859_1,
+ new sbcs.ISO_8859_2,
+ new sbcs.ISO_8859_5,
+ new sbcs.ISO_8859_6,
+ new sbcs.ISO_8859_7,
+ new sbcs.ISO_8859_8,
+ new sbcs.ISO_8859_9,
+ new sbcs.windows_1251,
+ new sbcs.windows_1256,
+ new sbcs.KOI8_R
+ ];
+ module.exports.detect = function(buffer, opts) {
+ var fByteStats = [];
+ for (var i = 0;i < 256; i++)
+ fByteStats[i] = 0;
+ for (var i = buffer.length - 1;i >= 0; i--)
+ fByteStats[buffer[i] & 255]++;
+ var fC1Bytes = false;
+ for (var i = 128;i <= 159; i += 1) {
+ if (fByteStats[i] != 0) {
+ fC1Bytes = true;
+ break;
+ }
+ }
+ var context = {
+ fByteStats,
+ fC1Bytes,
+ fRawInput: buffer,
+ fRawLength: buffer.length,
+ fInputBytes: buffer,
+ fInputLen: buffer.length
+ };
+ var matches = recognisers.map(function(rec) {
+ return rec.match(context);
+ }).filter(function(match) {
+ return !!match;
+ }).sort(function(a, b) {
+ return b.confidence - a.confidence;
+ });
+ if (opts && opts.returnAllMatches === true) {
+ return matches;
+ } else {
+ return matches.length > 0 ? matches[0].name : null;
+ }
+ };
+ module.exports.detectFile = function(filepath, opts, cb) {
+ if (typeof opts === "function") {
+ cb = opts;
+ opts = undefined;
+ }
+ var fd;
+ var handler = function(err, buffer) {
+ if (fd) {
+ fs2.closeSync(fd);
+ }
+ if (err)
+ return cb(err, null);
+ cb(null, self2.detect(buffer, opts));
+ };
+ if (opts && opts.sampleSize) {
+ fd = fs2.openSync(filepath, "r"), sample = Buffer.allocUnsafe(opts.sampleSize);
+ fs2.read(fd, sample, 0, opts.sampleSize, null, function(err) {
+ handler(err, sample);
+ });
+ return;
+ }
+ fs2.readFile(filepath, handler);
+ };
+ module.exports.detectFileSync = function(filepath, opts) {
+ if (opts && opts.sampleSize) {
+ var fd = fs2.openSync(filepath, "r"), sample2 = Buffer.allocUnsafe(opts.sampleSize);
+ fs2.readSync(fd, sample2, 0, opts.sampleSize);
+ fs2.closeSync(fd);
+ return self2.detect(sample2, opts);
+ }
+ return self2.detect(fs2.readFileSync(filepath), opts);
+ };
+ module.exports.detectAll = function(buffer, opts) {
+ if (typeof opts !== "object") {
+ opts = {};
+ }
+ opts.returnAllMatches = true;
+ return self2.detect(buffer, opts);
+ };
+ module.exports.detectFileAll = function(filepath, opts, cb) {
+ if (typeof opts === "function") {
+ cb = opts;
+ opts = undefined;
+ }
+ if (typeof opts !== "object") {
+ opts = {};
+ }
+ opts.returnAllMatches = true;
+ self2.detectFile(filepath, opts, cb);
+ };
+ module.exports.detectFileAllSync = function(filepath, opts) {
+ if (typeof opts !== "object") {
+ opts = {};
+ }
+ opts.returnAllMatches = true;
+ return self2.detectFileSync(filepath, opts);
+ };
+});
+
+// node_modules/safer-buffer/safer.js
+var require_safer = __commonJS((exports, module) => {
+ var buffer = __require("buffer");
+ var Buffer2 = buffer.Buffer;
+ var safer = {};
+ var key2;
+ for (key2 in buffer) {
+ if (!buffer.hasOwnProperty(key2))
+ continue;
+ if (key2 === "SlowBuffer" || key2 === "Buffer")
+ continue;
+ safer[key2] = buffer[key2];
+ }
+ var Safer = safer.Buffer = {};
+ for (key2 in Buffer2) {
+ if (!Buffer2.hasOwnProperty(key2))
+ continue;
+ if (key2 === "allocUnsafe" || key2 === "allocUnsafeSlow")
+ continue;
+ Safer[key2] = Buffer2[key2];
+ }
+ safer.Buffer.prototype = Buffer2.prototype;
+ if (!Safer.from || Safer.from === Uint8Array.from) {
+ Safer.from = function(value, encodingOrOffset, length) {
+ if (typeof value === "number") {
+ throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value);
+ }
+ if (value && typeof value.length === "undefined") {
+ throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
+ }
+ return Buffer2(value, encodingOrOffset, length);
+ };
+ }
+ if (!Safer.alloc) {
+ Safer.alloc = function(size, fill, encoding) {
+ if (typeof size !== "number") {
+ throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size);
+ }
+ if (size < 0 || size >= 2 * (1 << 30)) {
+ throw new RangeError('The value "' + size + '" is invalid for option "size"');
+ }
+ var buf = Buffer2(size);
+ if (!fill || fill.length === 0) {
+ buf.fill(0);
+ } else if (typeof encoding === "string") {
+ buf.fill(fill, encoding);
+ } else {
+ buf.fill(fill);
+ }
+ return buf;
+ };
+ }
+ if (!safer.kStringMaxLength) {
+ try {
+ safer.kStringMaxLength = process.binding("buffer").kStringMaxLength;
+ } catch (e) {
+ }
+ }
+ if (!safer.constants) {
+ safer.constants = {
+ MAX_LENGTH: safer.kMaxLength
+ };
+ if (safer.kStringMaxLength) {
+ safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength;
+ }
+ }
+ module.exports = safer;
+});
+
+// node_modules/iconv-lite/lib/bom-handling.js
+var require_bom_handling = __commonJS((exports) => {
+ var BOMChar = "\uFEFF";
+ exports.PrependBOM = PrependBOMWrapper;
+ function PrependBOMWrapper(encoder, options) {
+ this.encoder = encoder;
+ this.addBOM = true;
+ }
+ PrependBOMWrapper.prototype.write = function(str) {
+ if (this.addBOM) {
+ str = BOMChar + str;
+ this.addBOM = false;
+ }
+ return this.encoder.write(str);
+ };
+ PrependBOMWrapper.prototype.end = function() {
+ return this.encoder.end();
+ };
+ exports.StripBOM = StripBOMWrapper;
+ function StripBOMWrapper(decoder, options) {
+ this.decoder = decoder;
+ this.pass = false;
+ this.options = options || {};
+ }
+ StripBOMWrapper.prototype.write = function(buf) {
+ var res = this.decoder.write(buf);
+ if (this.pass || !res)
+ return res;
+ if (res[0] === BOMChar) {
+ res = res.slice(1);
+ if (typeof this.options.stripBOM === "function")
+ this.options.stripBOM();
+ }
+ this.pass = true;
+ return res;
+ };
+ StripBOMWrapper.prototype.end = function() {
+ return this.decoder.end();
+ };
+});
+
+// node_modules/iconv-lite/encodings/internal.js
+var require_internal = __commonJS((exports, module) => {
+ var Buffer2 = require_safer().Buffer;
+ module.exports = {
+ utf8: { type: "_internal", bomAware: true },
+ cesu8: { type: "_internal", bomAware: true },
+ unicode11utf8: "utf8",
+ ucs2: { type: "_internal", bomAware: true },
+ utf16le: "ucs2",
+ binary: { type: "_internal" },
+ base64: { type: "_internal" },
+ hex: { type: "_internal" },
+ _internal: InternalCodec
+ };
+ function InternalCodec(codecOptions, iconv) {
+ this.enc = codecOptions.encodingName;
+ this.bomAware = codecOptions.bomAware;
+ if (this.enc === "base64")
+ this.encoder = InternalEncoderBase64;
+ else if (this.enc === "cesu8") {
+ this.enc = "utf8";
+ this.encoder = InternalEncoderCesu8;
+ if (Buffer2.from("eda0bdedb2a9", "hex").toString() !== "\uD83D\uDCA9") {
+ this.decoder = InternalDecoderCesu8;
+ this.defaultCharUnicode = iconv.defaultCharUnicode;
+ }
+ }
+ }
+ InternalCodec.prototype.encoder = InternalEncoder;
+ InternalCodec.prototype.decoder = InternalDecoder;
+ var StringDecoder = __require("string_decoder").StringDecoder;
+ if (!StringDecoder.prototype.end)
+ StringDecoder.prototype.end = function() {
+ };
+ function InternalDecoder(options, codec) {
+ StringDecoder.call(this, codec.enc);
+ }
+ InternalDecoder.prototype = StringDecoder.prototype;
+ function InternalEncoder(options, codec) {
+ this.enc = codec.enc;
+ }
+ InternalEncoder.prototype.write = function(str) {
+ return Buffer2.from(str, this.enc);
+ };
+ InternalEncoder.prototype.end = function() {
+ };
+ function InternalEncoderBase64(options, codec) {
+ this.prevStr = "";
+ }
+ InternalEncoderBase64.prototype.write = function(str) {
+ str = this.prevStr + str;
+ var completeQuads = str.length - str.length % 4;
+ this.prevStr = str.slice(completeQuads);
+ str = str.slice(0, completeQuads);
+ return Buffer2.from(str, "base64");
+ };
+ InternalEncoderBase64.prototype.end = function() {
+ return Buffer2.from(this.prevStr, "base64");
+ };
+ function InternalEncoderCesu8(options, codec) {
+ }
+ InternalEncoderCesu8.prototype.write = function(str) {
+ var buf = Buffer2.alloc(str.length * 3), bufIdx = 0;
+ for (var i = 0;i < str.length; i++) {
+ var charCode = str.charCodeAt(i);
+ if (charCode < 128)
+ buf[bufIdx++] = charCode;
+ else if (charCode < 2048) {
+ buf[bufIdx++] = 192 + (charCode >>> 6);
+ buf[bufIdx++] = 128 + (charCode & 63);
+ } else {
+ buf[bufIdx++] = 224 + (charCode >>> 12);
+ buf[bufIdx++] = 128 + (charCode >>> 6 & 63);
+ buf[bufIdx++] = 128 + (charCode & 63);
+ }
+ }
+ return buf.slice(0, bufIdx);
+ };
+ InternalEncoderCesu8.prototype.end = function() {
+ };
+ function InternalDecoderCesu8(options, codec) {
+ this.acc = 0;
+ this.contBytes = 0;
+ this.accBytes = 0;
+ this.defaultCharUnicode = codec.defaultCharUnicode;
+ }
+ InternalDecoderCesu8.prototype.write = function(buf) {
+ var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes, res = "";
+ for (var i = 0;i < buf.length; i++) {
+ var curByte = buf[i];
+ if ((curByte & 192) !== 128) {
+ if (contBytes > 0) {
+ res += this.defaultCharUnicode;
+ contBytes = 0;
+ }
+ if (curByte < 128) {
+ res += String.fromCharCode(curByte);
+ } else if (curByte < 224) {
+ acc = curByte & 31;
+ contBytes = 1;
+ accBytes = 1;
+ } else if (curByte < 240) {
+ acc = curByte & 15;
+ contBytes = 2;
+ accBytes = 1;
+ } else {
+ res += this.defaultCharUnicode;
+ }
+ } else {
+ if (contBytes > 0) {
+ acc = acc << 6 | curByte & 63;
+ contBytes--;
+ accBytes++;
+ if (contBytes === 0) {
+ if (accBytes === 2 && acc < 128 && acc > 0)
+ res += this.defaultCharUnicode;
+ else if (accBytes === 3 && acc < 2048)
+ res += this.defaultCharUnicode;
+ else
+ res += String.fromCharCode(acc);
+ }
+ } else {
+ res += this.defaultCharUnicode;
+ }
+ }
+ }
+ this.acc = acc;
+ this.contBytes = contBytes;
+ this.accBytes = accBytes;
+ return res;
+ };
+ InternalDecoderCesu8.prototype.end = function() {
+ var res = 0;
+ if (this.contBytes > 0)
+ res += this.defaultCharUnicode;
+ return res;
+ };
+});
+
+// node_modules/iconv-lite/encodings/utf16.js
+var require_utf16 = __commonJS((exports) => {
+ var Buffer2 = require_safer().Buffer;
+ exports.utf16be = Utf16BECodec;
+ function Utf16BECodec() {
+ }
+ Utf16BECodec.prototype.encoder = Utf16BEEncoder;
+ Utf16BECodec.prototype.decoder = Utf16BEDecoder;
+ Utf16BECodec.prototype.bomAware = true;
+ function Utf16BEEncoder() {
+ }
+ Utf16BEEncoder.prototype.write = function(str) {
+ var buf = Buffer2.from(str, "ucs2");
+ for (var i = 0;i < buf.length; i += 2) {
+ var tmp = buf[i];
+ buf[i] = buf[i + 1];
+ buf[i + 1] = tmp;
+ }
+ return buf;
+ };
+ Utf16BEEncoder.prototype.end = function() {
+ };
+ function Utf16BEDecoder() {
+ this.overflowByte = -1;
+ }
+ Utf16BEDecoder.prototype.write = function(buf) {
+ if (buf.length == 0)
+ return "";
+ var buf2 = Buffer2.alloc(buf.length + 1), i = 0, j = 0;
+ if (this.overflowByte !== -1) {
+ buf2[0] = buf[0];
+ buf2[1] = this.overflowByte;
+ i = 1;
+ j = 2;
+ }
+ for (;i < buf.length - 1; i += 2, j += 2) {
+ buf2[j] = buf[i + 1];
+ buf2[j + 1] = buf[i];
+ }
+ this.overflowByte = i == buf.length - 1 ? buf[buf.length - 1] : -1;
+ return buf2.slice(0, j).toString("ucs2");
+ };
+ Utf16BEDecoder.prototype.end = function() {
+ };
+ exports.utf16 = Utf16Codec;
+ function Utf16Codec(codecOptions, iconv) {
+ this.iconv = iconv;
+ }
+ Utf16Codec.prototype.encoder = Utf16Encoder;
+ Utf16Codec.prototype.decoder = Utf16Decoder;
+ function Utf16Encoder(options, codec) {
+ options = options || {};
+ if (options.addBOM === undefined)
+ options.addBOM = true;
+ this.encoder = codec.iconv.getEncoder("utf-16le", options);
+ }
+ Utf16Encoder.prototype.write = function(str) {
+ return this.encoder.write(str);
+ };
+ Utf16Encoder.prototype.end = function() {
+ return this.encoder.end();
+ };
+ function Utf16Decoder(options, codec) {
+ this.decoder = null;
+ this.initialBytes = [];
+ this.initialBytesLen = 0;
+ this.options = options || {};
+ this.iconv = codec.iconv;
+ }
+ Utf16Decoder.prototype.write = function(buf) {
+ if (!this.decoder) {
+ this.initialBytes.push(buf);
+ this.initialBytesLen += buf.length;
+ if (this.initialBytesLen < 16)
+ return "";
+ var buf = Buffer2.concat(this.initialBytes), encoding = detectEncoding(buf, this.options.defaultEncoding);
+ this.decoder = this.iconv.getDecoder(encoding, this.options);
+ this.initialBytes.length = this.initialBytesLen = 0;
+ }
+ return this.decoder.write(buf);
+ };
+ Utf16Decoder.prototype.end = function() {
+ if (!this.decoder) {
+ var buf = Buffer2.concat(this.initialBytes), encoding = detectEncoding(buf, this.options.defaultEncoding);
+ this.decoder = this.iconv.getDecoder(encoding, this.options);
+ var res = this.decoder.write(buf), trail = this.decoder.end();
+ return trail ? res + trail : res;
+ }
+ return this.decoder.end();
+ };
+ function detectEncoding(buf, defaultEncoding) {
+ var enc = defaultEncoding || "utf-16le";
+ if (buf.length >= 2) {
+ if (buf[0] == 254 && buf[1] == 255)
+ enc = "utf-16be";
+ else if (buf[0] == 255 && buf[1] == 254)
+ enc = "utf-16le";
+ else {
+ var asciiCharsLE = 0, asciiCharsBE = 0, _len = Math.min(buf.length - buf.length % 2, 64);
+ for (var i = 0;i < _len; i += 2) {
+ if (buf[i] === 0 && buf[i + 1] !== 0)
+ asciiCharsBE++;
+ if (buf[i] !== 0 && buf[i + 1] === 0)
+ asciiCharsLE++;
+ }
+ if (asciiCharsBE > asciiCharsLE)
+ enc = "utf-16be";
+ else if (asciiCharsBE < asciiCharsLE)
+ enc = "utf-16le";
+ }
+ }
+ return enc;
+ }
+});
+
+// node_modules/iconv-lite/encodings/utf7.js
+var require_utf7 = __commonJS((exports) => {
+ var Buffer2 = require_safer().Buffer;
+ exports.utf7 = Utf7Codec;
+ exports.unicode11utf7 = "utf7";
+ function Utf7Codec(codecOptions, iconv) {
+ this.iconv = iconv;
+ }
+ Utf7Codec.prototype.encoder = Utf7Encoder;
+ Utf7Codec.prototype.decoder = Utf7Decoder;
+ Utf7Codec.prototype.bomAware = true;
+ var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;
+ function Utf7Encoder(options, codec) {
+ this.iconv = codec.iconv;
+ }
+ Utf7Encoder.prototype.write = function(str) {
+ return Buffer2.from(str.replace(nonDirectChars, function(chunk) {
+ return "+" + (chunk === "+" ? "" : this.iconv.encode(chunk, "utf16-be").toString("base64").replace(/=+$/, "")) + "-";
+ }.bind(this)));
+ };
+ Utf7Encoder.prototype.end = function() {
+ };
+ function Utf7Decoder(options, codec) {
+ this.iconv = codec.iconv;
+ this.inBase64 = false;
+ this.base64Accum = "";
+ }
+ var base64Regex = /[A-Za-z0-9\/+]/;
+ var base64Chars = [];
+ for (i = 0;i < 256; i++)
+ base64Chars[i] = base64Regex.test(String.fromCharCode(i));
+ var i;
+ var plusChar = 43;
+ var minusChar = 45;
+ var andChar = 38;
+ Utf7Decoder.prototype.write = function(buf) {
+ var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum;
+ for (var i2 = 0;i2 < buf.length; i2++) {
+ if (!inBase64) {
+ if (buf[i2] == plusChar) {
+ res += this.iconv.decode(buf.slice(lastI, i2), "ascii");
+ lastI = i2 + 1;
+ inBase64 = true;
+ }
+ } else {
+ if (!base64Chars[buf[i2]]) {
+ if (i2 == lastI && buf[i2] == minusChar) {
+ res += "+";
+ } else {
+ var b64str = base64Accum + buf.slice(lastI, i2).toString();
+ res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
+ }
+ if (buf[i2] != minusChar)
+ i2--;
+ lastI = i2 + 1;
+ inBase64 = false;
+ base64Accum = "";
+ }
+ }
+ }
+ if (!inBase64) {
+ res += this.iconv.decode(buf.slice(lastI), "ascii");
+ } else {
+ var b64str = base64Accum + buf.slice(lastI).toString();
+ var canBeDecoded = b64str.length - b64str.length % 8;
+ base64Accum = b64str.slice(canBeDecoded);
+ b64str = b64str.slice(0, canBeDecoded);
+ res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
+ }
+ this.inBase64 = inBase64;
+ this.base64Accum = base64Accum;
+ return res;
+ };
+ Utf7Decoder.prototype.end = function() {
+ var res = "";
+ if (this.inBase64 && this.base64Accum.length > 0)
+ res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be");
+ this.inBase64 = false;
+ this.base64Accum = "";
+ return res;
+ };
+ exports.utf7imap = Utf7IMAPCodec;
+ function Utf7IMAPCodec(codecOptions, iconv) {
+ this.iconv = iconv;
+ }
+ Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder;
+ Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder;
+ Utf7IMAPCodec.prototype.bomAware = true;
+ function Utf7IMAPEncoder(options, codec) {
+ this.iconv = codec.iconv;
+ this.inBase64 = false;
+ this.base64Accum = Buffer2.alloc(6);
+ this.base64AccumIdx = 0;
+ }
+ Utf7IMAPEncoder.prototype.write = function(str) {
+ var inBase64 = this.inBase64, base64Accum = this.base64Accum, base64AccumIdx = this.base64AccumIdx, buf = Buffer2.alloc(str.length * 5 + 10), bufIdx = 0;
+ for (var i2 = 0;i2 < str.length; i2++) {
+ var uChar = str.charCodeAt(i2);
+ if (32 <= uChar && uChar <= 126) {
+ if (inBase64) {
+ if (base64AccumIdx > 0) {
+ bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
+ base64AccumIdx = 0;
+ }
+ buf[bufIdx++] = minusChar;
+ inBase64 = false;
+ }
+ if (!inBase64) {
+ buf[bufIdx++] = uChar;
+ if (uChar === andChar)
+ buf[bufIdx++] = minusChar;
+ }
+ } else {
+ if (!inBase64) {
+ buf[bufIdx++] = andChar;
+ inBase64 = true;
+ }
+ if (inBase64) {
+ base64Accum[base64AccumIdx++] = uChar >> 8;
+ base64Accum[base64AccumIdx++] = uChar & 255;
+ if (base64AccumIdx == base64Accum.length) {
+ bufIdx += buf.write(base64Accum.toString("base64").replace(/\//g, ","), bufIdx);
+ base64AccumIdx = 0;
+ }
+ }
+ }
+ }
+ this.inBase64 = inBase64;
+ this.base64AccumIdx = base64AccumIdx;
+ return buf.slice(0, bufIdx);
+ };
+ Utf7IMAPEncoder.prototype.end = function() {
+ var buf = Buffer2.alloc(10), bufIdx = 0;
+ if (this.inBase64) {
+ if (this.base64AccumIdx > 0) {
+ bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
+ this.base64AccumIdx = 0;
+ }
+ buf[bufIdx++] = minusChar;
+ this.inBase64 = false;
+ }
+ return buf.slice(0, bufIdx);
+ };
+ function Utf7IMAPDecoder(options, codec) {
+ this.iconv = codec.iconv;
+ this.inBase64 = false;
+ this.base64Accum = "";
+ }
+ var base64IMAPChars = base64Chars.slice();
+ base64IMAPChars[44] = true;
+ Utf7IMAPDecoder.prototype.write = function(buf) {
+ var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum;
+ for (var i2 = 0;i2 < buf.length; i2++) {
+ if (!inBase64) {
+ if (buf[i2] == andChar) {
+ res += this.iconv.decode(buf.slice(lastI, i2), "ascii");
+ lastI = i2 + 1;
+ inBase64 = true;
+ }
+ } else {
+ if (!base64IMAPChars[buf[i2]]) {
+ if (i2 == lastI && buf[i2] == minusChar) {
+ res += "&";
+ } else {
+ var b64str = base64Accum + buf.slice(lastI, i2).toString().replace(/,/g, "/");
+ res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
+ }
+ if (buf[i2] != minusChar)
+ i2--;
+ lastI = i2 + 1;
+ inBase64 = false;
+ base64Accum = "";
+ }
+ }
+ }
+ if (!inBase64) {
+ res += this.iconv.decode(buf.slice(lastI), "ascii");
+ } else {
+ var b64str = base64Accum + buf.slice(lastI).toString().replace(/,/g, "/");
+ var canBeDecoded = b64str.length - b64str.length % 8;
+ base64Accum = b64str.slice(canBeDecoded);
+ b64str = b64str.slice(0, canBeDecoded);
+ res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
+ }
+ this.inBase64 = inBase64;
+ this.base64Accum = base64Accum;
+ return res;
+ };
+ Utf7IMAPDecoder.prototype.end = function() {
+ var res = "";
+ if (this.inBase64 && this.base64Accum.length > 0)
+ res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be");
+ this.inBase64 = false;
+ this.base64Accum = "";
+ return res;
+ };
+});
+
+// node_modules/iconv-lite/encodings/sbcs-codec.js
+var require_sbcs_codec = __commonJS((exports) => {
+ var Buffer2 = require_safer().Buffer;
+ exports._sbcs = SBCSCodec;
+ function SBCSCodec(codecOptions, iconv) {
+ if (!codecOptions)
+ throw new Error("SBCS codec is called without the data.");
+ if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256)
+ throw new Error("Encoding '" + codecOptions.type + "' has incorrect 'chars' (must be of len 128 or 256)");
+ if (codecOptions.chars.length === 128) {
+ var asciiString = "";
+ for (var i = 0;i < 128; i++)
+ asciiString += String.fromCharCode(i);
+ codecOptions.chars = asciiString + codecOptions.chars;
+ }
+ this.decodeBuf = Buffer2.from(codecOptions.chars, "ucs2");
+ var encodeBuf = Buffer2.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));
+ for (var i = 0;i < codecOptions.chars.length; i++)
+ encodeBuf[codecOptions.chars.charCodeAt(i)] = i;
+ this.encodeBuf = encodeBuf;
+ }
+ SBCSCodec.prototype.encoder = SBCSEncoder;
+ SBCSCodec.prototype.decoder = SBCSDecoder;
+ function SBCSEncoder(options, codec) {
+ this.encodeBuf = codec.encodeBuf;
+ }
+ SBCSEncoder.prototype.write = function(str) {
+ var buf = Buffer2.alloc(str.length);
+ for (var i = 0;i < str.length; i++)
+ buf[i] = this.encodeBuf[str.charCodeAt(i)];
+ return buf;
+ };
+ SBCSEncoder.prototype.end = function() {
+ };
+ function SBCSDecoder(options, codec) {
+ this.decodeBuf = codec.decodeBuf;
+ }
+ SBCSDecoder.prototype.write = function(buf) {
+ var decodeBuf = this.decodeBuf;
+ var newBuf = Buffer2.alloc(buf.length * 2);
+ var idx1 = 0, idx2 = 0;
+ for (var i = 0;i < buf.length; i++) {
+ idx1 = buf[i] * 2;
+ idx2 = i * 2;
+ newBuf[idx2] = decodeBuf[idx1];
+ newBuf[idx2 + 1] = decodeBuf[idx1 + 1];
+ }
+ return newBuf.toString("ucs2");
+ };
+ SBCSDecoder.prototype.end = function() {
+ };
+});
+
+// node_modules/iconv-lite/encodings/sbcs-data.js
+var require_sbcs_data = __commonJS((exports, module) => {
+ module.exports = {
+ "10029": "maccenteuro",
+ maccenteuro: {
+ type: "_sbcs",
+ chars: "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"
+ },
+ "808": "cp808",
+ ibm808: "cp808",
+ cp808: {
+ type: "_sbcs",
+ chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "
+ },
+ mik: {
+ type: "_sbcs",
+ chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ ascii8bit: "ascii",
+ usascii: "ascii",
+ ansix34: "ascii",
+ ansix341968: "ascii",
+ ansix341986: "ascii",
+ csascii: "ascii",
+ cp367: "ascii",
+ ibm367: "ascii",
+ isoir6: "ascii",
+ iso646us: "ascii",
+ iso646irv: "ascii",
+ us: "ascii",
+ latin1: "iso88591",
+ latin2: "iso88592",
+ latin3: "iso88593",
+ latin4: "iso88594",
+ latin5: "iso88599",
+ latin6: "iso885910",
+ latin7: "iso885913",
+ latin8: "iso885914",
+ latin9: "iso885915",
+ latin10: "iso885916",
+ csisolatin1: "iso88591",
+ csisolatin2: "iso88592",
+ csisolatin3: "iso88593",
+ csisolatin4: "iso88594",
+ csisolatincyrillic: "iso88595",
+ csisolatinarabic: "iso88596",
+ csisolatingreek: "iso88597",
+ csisolatinhebrew: "iso88598",
+ csisolatin5: "iso88599",
+ csisolatin6: "iso885910",
+ l1: "iso88591",
+ l2: "iso88592",
+ l3: "iso88593",
+ l4: "iso88594",
+ l5: "iso88599",
+ l6: "iso885910",
+ l7: "iso885913",
+ l8: "iso885914",
+ l9: "iso885915",
+ l10: "iso885916",
+ isoir14: "iso646jp",
+ isoir57: "iso646cn",
+ isoir100: "iso88591",
+ isoir101: "iso88592",
+ isoir109: "iso88593",
+ isoir110: "iso88594",
+ isoir144: "iso88595",
+ isoir127: "iso88596",
+ isoir126: "iso88597",
+ isoir138: "iso88598",
+ isoir148: "iso88599",
+ isoir157: "iso885910",
+ isoir166: "tis620",
+ isoir179: "iso885913",
+ isoir199: "iso885914",
+ isoir203: "iso885915",
+ isoir226: "iso885916",
+ cp819: "iso88591",
+ ibm819: "iso88591",
+ cyrillic: "iso88595",
+ arabic: "iso88596",
+ arabic8: "iso88596",
+ ecma114: "iso88596",
+ asmo708: "iso88596",
+ greek: "iso88597",
+ greek8: "iso88597",
+ ecma118: "iso88597",
+ elot928: "iso88597",
+ hebrew: "iso88598",
+ hebrew8: "iso88598",
+ turkish: "iso88599",
+ turkish8: "iso88599",
+ thai: "iso885911",
+ thai8: "iso885911",
+ celtic: "iso885914",
+ celtic8: "iso885914",
+ isoceltic: "iso885914",
+ tis6200: "tis620",
+ tis62025291: "tis620",
+ tis62025330: "tis620",
+ "10000": "macroman",
+ "10006": "macgreek",
+ "10007": "maccyrillic",
+ "10079": "maciceland",
+ "10081": "macturkish",
+ cspc8codepage437: "cp437",
+ cspc775baltic: "cp775",
+ cspc850multilingual: "cp850",
+ cspcp852: "cp852",
+ cspc862latinhebrew: "cp862",
+ cpgr: "cp869",
+ msee: "cp1250",
+ mscyrl: "cp1251",
+ msansi: "cp1252",
+ msgreek: "cp1253",
+ msturk: "cp1254",
+ mshebr: "cp1255",
+ msarab: "cp1256",
+ winbaltrim: "cp1257",
+ cp20866: "koi8r",
+ "20866": "koi8r",
+ ibm878: "koi8r",
+ cskoi8r: "koi8r",
+ cp21866: "koi8u",
+ "21866": "koi8u",
+ ibm1168: "koi8u",
+ strk10482002: "rk1048",
+ tcvn5712: "tcvn",
+ tcvn57121: "tcvn",
+ gb198880: "iso646cn",
+ cn: "iso646cn",
+ csiso14jisc6220ro: "iso646jp",
+ jisc62201969ro: "iso646jp",
+ jp: "iso646jp",
+ cshproman8: "hproman8",
+ r8: "hproman8",
+ roman8: "hproman8",
+ xroman8: "hproman8",
+ ibm1051: "hproman8",
+ mac: "macintosh",
+ csmacintosh: "macintosh"
+ };
+});
+
+// node_modules/iconv-lite/encodings/sbcs-data-generated.js
+var require_sbcs_data_generated = __commonJS((exports, module) => {
+ module.exports = {
+ "437": "cp437",
+ "737": "cp737",
+ "775": "cp775",
+ "850": "cp850",
+ "852": "cp852",
+ "855": "cp855",
+ "856": "cp856",
+ "857": "cp857",
+ "858": "cp858",
+ "860": "cp860",
+ "861": "cp861",
+ "862": "cp862",
+ "863": "cp863",
+ "864": "cp864",
+ "865": "cp865",
+ "866": "cp866",
+ "869": "cp869",
+ "874": "windows874",
+ "922": "cp922",
+ "1046": "cp1046",
+ "1124": "cp1124",
+ "1125": "cp1125",
+ "1129": "cp1129",
+ "1133": "cp1133",
+ "1161": "cp1161",
+ "1162": "cp1162",
+ "1163": "cp1163",
+ "1250": "windows1250",
+ "1251": "windows1251",
+ "1252": "windows1252",
+ "1253": "windows1253",
+ "1254": "windows1254",
+ "1255": "windows1255",
+ "1256": "windows1256",
+ "1257": "windows1257",
+ "1258": "windows1258",
+ "28591": "iso88591",
+ "28592": "iso88592",
+ "28593": "iso88593",
+ "28594": "iso88594",
+ "28595": "iso88595",
+ "28596": "iso88596",
+ "28597": "iso88597",
+ "28598": "iso88598",
+ "28599": "iso88599",
+ "28600": "iso885910",
+ "28601": "iso885911",
+ "28603": "iso885913",
+ "28604": "iso885914",
+ "28605": "iso885915",
+ "28606": "iso885916",
+ windows874: {
+ type: "_sbcs",
+ chars: "€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
+ },
+ win874: "windows874",
+ cp874: "windows874",
+ windows1250: {
+ type: "_sbcs",
+ chars: "€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"
+ },
+ win1250: "windows1250",
+ cp1250: "windows1250",
+ windows1251: {
+ type: "_sbcs",
+ chars: "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
+ },
+ win1251: "windows1251",
+ cp1251: "windows1251",
+ windows1252: {
+ type: "_sbcs",
+ chars: "€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
+ },
+ win1252: "windows1252",
+ cp1252: "windows1252",
+ windows1253: {
+ type: "_sbcs",
+ chars: "€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"
+ },
+ win1253: "windows1253",
+ cp1253: "windows1253",
+ windows1254: {
+ type: "_sbcs",
+ chars: "€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"
+ },
+ win1254: "windows1254",
+ cp1254: "windows1254",
+ windows1255: {
+ type: "_sbcs",
+ chars: "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"
+ },
+ win1255: "windows1255",
+ cp1255: "windows1255",
+ windows1256: {
+ type: "_sbcs",
+ chars: "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے"
+ },
+ win1256: "windows1256",
+ cp1256: "windows1256",
+ windows1257: {
+ type: "_sbcs",
+ chars: "€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"
+ },
+ win1257: "windows1257",
+ cp1257: "windows1257",
+ windows1258: {
+ type: "_sbcs",
+ chars: "€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
+ },
+ win1258: "windows1258",
+ cp1258: "windows1258",
+ iso88591: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
+ },
+ cp28591: "iso88591",
+ iso88592: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"
+ },
+ cp28592: "iso88592",
+ iso88593: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"
+ },
+ cp28593: "iso88593",
+ iso88594: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"
+ },
+ cp28594: "iso88594",
+ iso88595: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"
+ },
+ cp28595: "iso88595",
+ iso88596: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"
+ },
+ cp28596: "iso88596",
+ iso88597: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"
+ },
+ cp28597: "iso88597",
+ iso88598: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"
+ },
+ cp28598: "iso88598",
+ iso88599: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"
+ },
+ cp28599: "iso88599",
+ iso885910: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"
+ },
+ cp28600: "iso885910",
+ iso885911: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
+ },
+ cp28601: "iso885911",
+ iso885913: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"
+ },
+ cp28603: "iso885913",
+ iso885914: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"
+ },
+ cp28604: "iso885914",
+ iso885915: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
+ },
+ cp28605: "iso885915",
+ iso885916: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"
+ },
+ cp28606: "iso885916",
+ cp437: {
+ type: "_sbcs",
+ chars: "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ ibm437: "cp437",
+ csibm437: "cp437",
+ cp737: {
+ type: "_sbcs",
+ chars: "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "
+ },
+ ibm737: "cp737",
+ csibm737: "cp737",
+ cp775: {
+ type: "_sbcs",
+ chars: "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ "
+ },
+ ibm775: "cp775",
+ csibm775: "cp775",
+ cp850: {
+ type: "_sbcs",
+ chars: "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "
+ },
+ ibm850: "cp850",
+ csibm850: "cp850",
+ cp852: {
+ type: "_sbcs",
+ chars: "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ "
+ },
+ ibm852: "cp852",
+ csibm852: "cp852",
+ cp855: {
+ type: "_sbcs",
+ chars: "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ "
+ },
+ ibm855: "cp855",
+ csibm855: "cp855",
+ cp856: {
+ type: "_sbcs",
+ chars: "אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ "
+ },
+ ibm856: "cp856",
+ csibm856: "cp856",
+ cp857: {
+ type: "_sbcs",
+ chars: "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ "
+ },
+ ibm857: "cp857",
+ csibm857: "cp857",
+ cp858: {
+ type: "_sbcs",
+ chars: "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "
+ },
+ ibm858: "cp858",
+ csibm858: "cp858",
+ cp860: {
+ type: "_sbcs",
+ chars: "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ ibm860: "cp860",
+ csibm860: "cp860",
+ cp861: {
+ type: "_sbcs",
+ chars: "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ ibm861: "cp861",
+ csibm861: "cp861",
+ cp862: {
+ type: "_sbcs",
+ chars: "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ ibm862: "cp862",
+ csibm862: "cp862",
+ cp863: {
+ type: "_sbcs",
+ chars: "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ ibm863: "cp863",
+ csibm863: "cp863",
+ cp864: {
+ type: "_sbcs",
+ chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b\t
+\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�`
+ },
+ ibm864: "cp864",
+ csibm864: "cp864",
+ cp865: {
+ type: "_sbcs",
+ chars: "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
+ },
+ ibm865: "cp865",
+ csibm865: "cp865",
+ cp866: {
+ type: "_sbcs",
+ chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "
+ },
+ ibm866: "cp866",
+ csibm866: "cp866",
+ cp869: {
+ type: "_sbcs",
+ chars: "������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "
+ },
+ ibm869: "cp869",
+ csibm869: "cp869",
+ cp922: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"
+ },
+ ibm922: "cp922",
+ csibm922: "cp922",
+ cp1046: {
+ type: "_sbcs",
+ chars: "ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"
+ },
+ ibm1046: "cp1046",
+ csibm1046: "cp1046",
+ cp1124: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"
+ },
+ ibm1124: "cp1124",
+ csibm1124: "cp1124",
+ cp1125: {
+ type: "_sbcs",
+ chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "
+ },
+ ibm1125: "cp1125",
+ csibm1125: "cp1125",
+ cp1129: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
+ },
+ ibm1129: "cp1129",
+ csibm1129: "cp1129",
+ cp1133: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"
+ },
+ ibm1133: "cp1133",
+ csibm1133: "cp1133",
+ cp1161: {
+ type: "_sbcs",
+ chars: "��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "
+ },
+ ibm1161: "cp1161",
+ csibm1161: "cp1161",
+ cp1162: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
+ },
+ ibm1162: "cp1162",
+ csibm1162: "cp1162",
+ cp1163: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
+ },
+ ibm1163: "cp1163",
+ csibm1163: "cp1163",
+ maccroatian: {
+ type: "_sbcs",
+ chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"
+ },
+ maccyrillic: {
+ type: "_sbcs",
+ chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"
+ },
+ macgreek: {
+ type: "_sbcs",
+ chars: "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"
+ },
+ maciceland: {
+ type: "_sbcs",
+ chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
+ },
+ macroman: {
+ type: "_sbcs",
+ chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
+ },
+ macromania: {
+ type: "_sbcs",
+ chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
+ },
+ macthai: {
+ type: "_sbcs",
+ chars: "«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\uFEFF​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"
+ },
+ macturkish: {
+ type: "_sbcs",
+ chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"
+ },
+ macukraine: {
+ type: "_sbcs",
+ chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"
+ },
+ koi8r: {
+ type: "_sbcs",
+ chars: "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
+ },
+ koi8u: {
+ type: "_sbcs",
+ chars: "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
+ },
+ koi8ru: {
+ type: "_sbcs",
+ chars: "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
+ },
+ koi8t: {
+ type: "_sbcs",
+ chars: "қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
+ },
+ armscii8: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"
+ },
+ rk1048: {
+ type: "_sbcs",
+ chars: "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
+ },
+ tcvn: {
+ type: "_sbcs",
+ chars: `\x00ÚỤ\x03ỪỬỮ\x07\b\t
+\v\f\r\x0E\x0F\x10ỨỰỲỶỸÝỴ\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ`
+ },
+ georgianacademy: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
+ },
+ georgianps: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
+ },
+ pt154: {
+ type: "_sbcs",
+ chars: "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
+ },
+ viscii: {
+ type: "_sbcs",
+ chars: `\x00\x01Ẳ\x03\x04ẴẪ\x07\b\t
+\v\f\r\x0E\x0F\x10\x11\x12\x13Ỷ\x15\x16\x17\x18Ỹ\x1A\x1B\x1C\x1DỴ\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ`
+ },
+ iso646cn: {
+ type: "_sbcs",
+ chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b\t
+\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`
+ },
+ iso646jp: {
+ type: "_sbcs",
+ chars: `\x00\x01\x02\x03\x04\x05\x06\x07\b\t
+\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`
+ },
+ hproman8: {
+ type: "_sbcs",
+ chars: "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"
+ },
+ macintosh: {
+ type: "_sbcs",
+ chars: "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
+ },
+ ascii: {
+ type: "_sbcs",
+ chars: "��������������������������������������������������������������������������������������������������������������������������������"
+ },
+ tis620: {
+ type: "_sbcs",
+ chars: "���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
+ }
+ };
+});
+
+// node_modules/iconv-lite/encodings/dbcs-codec.js
+var require_dbcs_codec = __commonJS((exports) => {
+ var Buffer2 = require_safer().Buffer;
+ exports._dbcs = DBCSCodec;
+ var UNASSIGNED = -1;
+ var GB18030_CODE = -2;
+ var SEQ_START = -10;
+ var NODE_START = -1000;
+ var UNASSIGNED_NODE = new Array(256);
+ var DEF_CHAR = -1;
+ for (i = 0;i < 256; i++)
+ UNASSIGNED_NODE[i] = UNASSIGNED;
+ var i;
+ function DBCSCodec(codecOptions, iconv) {
+ this.encodingName = codecOptions.encodingName;
+ if (!codecOptions)
+ throw new Error("DBCS codec is called without the data.");
+ if (!codecOptions.table)
+ throw new Error("Encoding '" + this.encodingName + "' has no data.");
+ var mappingTable = codecOptions.table();
+ this.decodeTables = [];
+ this.decodeTables[0] = UNASSIGNED_NODE.slice(0);
+ this.decodeTableSeq = [];
+ for (var i2 = 0;i2 < mappingTable.length; i2++)
+ this._addDecodeChunk(mappingTable[i2]);
+ this.defaultCharUnicode = iconv.defaultCharUnicode;
+ this.encodeTable = [];
+ this.encodeTableSeq = [];
+ var skipEncodeChars = {};
+ if (codecOptions.encodeSkipVals)
+ for (var i2 = 0;i2 < codecOptions.encodeSkipVals.length; i2++) {
+ var val = codecOptions.encodeSkipVals[i2];
+ if (typeof val === "number")
+ skipEncodeChars[val] = true;
+ else
+ for (var j = val.from;j <= val.to; j++)
+ skipEncodeChars[j] = true;
+ }
+ this._fillEncodeTable(0, 0, skipEncodeChars);
+ if (codecOptions.encodeAdd) {
+ for (var uChar in codecOptions.encodeAdd)
+ if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
+ this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
+ }
+ this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
+ if (this.defCharSB === UNASSIGNED)
+ this.defCharSB = this.encodeTable[0]["?"];
+ if (this.defCharSB === UNASSIGNED)
+ this.defCharSB = 63;
+ if (typeof codecOptions.gb18030 === "function") {
+ this.gb18030 = codecOptions.gb18030();
+ var thirdByteNodeIdx = this.decodeTables.length;
+ var thirdByteNode = this.decodeTables[thirdByteNodeIdx] = UNASSIGNED_NODE.slice(0);
+ var fourthByteNodeIdx = this.decodeTables.length;
+ var fourthByteNode = this.decodeTables[fourthByteNodeIdx] = UNASSIGNED_NODE.slice(0);
+ for (var i2 = 129;i2 <= 254; i2++) {
+ var secondByteNodeIdx = NODE_START - this.decodeTables[0][i2];
+ var secondByteNode = this.decodeTables[secondByteNodeIdx];
+ for (var j = 48;j <= 57; j++)
+ secondByteNode[j] = NODE_START - thirdByteNodeIdx;
+ }
+ for (var i2 = 129;i2 <= 254; i2++)
+ thirdByteNode[i2] = NODE_START - fourthByteNodeIdx;
+ for (var i2 = 48;i2 <= 57; i2++)
+ fourthByteNode[i2] = GB18030_CODE;
+ }
+ }
+ DBCSCodec.prototype.encoder = DBCSEncoder;
+ DBCSCodec.prototype.decoder = DBCSDecoder;
+ DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
+ var bytes = [];
+ for (;addr > 0; addr >>= 8)
+ bytes.push(addr & 255);
+ if (bytes.length == 0)
+ bytes.push(0);
+ var node = this.decodeTables[0];
+ for (var i2 = bytes.length - 1;i2 > 0; i2--) {
+ var val = node[bytes[i2]];
+ if (val == UNASSIGNED) {
+ node[bytes[i2]] = NODE_START - this.decodeTables.length;
+ this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
+ } else if (val <= NODE_START) {
+ node = this.decodeTables[NODE_START - val];
+ } else
+ throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
+ }
+ return node;
+ };
+ DBCSCodec.prototype._addDecodeChunk = function(chunk) {
+ var curAddr = parseInt(chunk[0], 16);
+ var writeTable = this._getDecodeTrieNode(curAddr);
+ curAddr = curAddr & 255;
+ for (var k = 1;k < chunk.length; k++) {
+ var part = chunk[k];
+ if (typeof part === "string") {
+ for (var l = 0;l < part.length; ) {
+ var code = part.charCodeAt(l++);
+ if (55296 <= code && code < 56320) {
+ var codeTrail = part.charCodeAt(l++);
+ if (56320 <= codeTrail && codeTrail < 57344)
+ writeTable[curAddr++] = 65536 + (code - 55296) * 1024 + (codeTrail - 56320);
+ else
+ throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
+ } else if (4080 < code && code <= 4095) {
+ var len = 4095 - code + 2;
+ var seq = [];
+ for (var m = 0;m < len; m++)
+ seq.push(part.charCodeAt(l++));
+ writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
+ this.decodeTableSeq.push(seq);
+ } else
+ writeTable[curAddr++] = code;
+ }
+ } else if (typeof part === "number") {
+ var charCode = writeTable[curAddr - 1] + 1;
+ for (var l = 0;l < part; l++)
+ writeTable[curAddr++] = charCode++;
+ } else
+ throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
+ }
+ if (curAddr > 255)
+ throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
+ };
+ DBCSCodec.prototype._getEncodeBucket = function(uCode) {
+ var high = uCode >> 8;
+ if (this.encodeTable[high] === undefined)
+ this.encodeTable[high] = UNASSIGNED_NODE.slice(0);
+ return this.encodeTable[high];
+ };
+ DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
+ var bucket = this._getEncodeBucket(uCode);
+ var low = uCode & 255;
+ if (bucket[low] <= SEQ_START)
+ this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode;
+ else if (bucket[low] == UNASSIGNED)
+ bucket[low] = dbcsCode;
+ };
+ DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
+ var uCode = seq[0];
+ var bucket = this._getEncodeBucket(uCode);
+ var low = uCode & 255;
+ var node;
+ if (bucket[low] <= SEQ_START) {
+ node = this.encodeTableSeq[SEQ_START - bucket[low]];
+ } else {
+ node = {};
+ if (bucket[low] !== UNASSIGNED)
+ node[DEF_CHAR] = bucket[low];
+ bucket[low] = SEQ_START - this.encodeTableSeq.length;
+ this.encodeTableSeq.push(node);
+ }
+ for (var j = 1;j < seq.length - 1; j++) {
+ var oldVal = node[uCode];
+ if (typeof oldVal === "object")
+ node = oldVal;
+ else {
+ node = node[uCode] = {};
+ if (oldVal !== undefined)
+ node[DEF_CHAR] = oldVal;
+ }
+ }
+ uCode = seq[seq.length - 1];
+ node[uCode] = dbcsCode;
+ };
+ DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) {
+ var node = this.decodeTables[nodeIdx];
+ for (var i2 = 0;i2 < 256; i2++) {
+ var uCode = node[i2];
+ var mbCode = prefix + i2;
+ if (skipEncodeChars[mbCode])
+ continue;
+ if (uCode >= 0)
+ this._setEncodeChar(uCode, mbCode);
+ else if (uCode <= NODE_START)
+ this._fillEncodeTable(NODE_START - uCode, mbCode << 8, skipEncodeChars);
+ else if (uCode <= SEQ_START)
+ this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
+ }
+ };
+ function DBCSEncoder(options, codec) {
+ this.leadSurrogate = -1;
+ this.seqObj = undefined;
+ this.encodeTable = codec.encodeTable;
+ this.encodeTableSeq = codec.encodeTableSeq;
+ this.defaultCharSingleByte = codec.defCharSB;
+ this.gb18030 = codec.gb18030;
+ }
+ DBCSEncoder.prototype.write = function(str) {
+ var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3)), leadSurrogate = this.leadSurrogate, seqObj = this.seqObj, nextChar = -1, i2 = 0, j = 0;
+ while (true) {
+ if (nextChar === -1) {
+ if (i2 == str.length)
+ break;
+ var uCode = str.charCodeAt(i2++);
+ } else {
+ var uCode = nextChar;
+ nextChar = -1;
+ }
+ if (55296 <= uCode && uCode < 57344) {
+ if (uCode < 56320) {
+ if (leadSurrogate === -1) {
+ leadSurrogate = uCode;
+ continue;
+ } else {
+ leadSurrogate = uCode;
+ uCode = UNASSIGNED;
+ }
+ } else {
+ if (leadSurrogate !== -1) {
+ uCode = 65536 + (leadSurrogate - 55296) * 1024 + (uCode - 56320);
+ leadSurrogate = -1;
+ } else {
+ uCode = UNASSIGNED;
+ }
+ }
+ } else if (leadSurrogate !== -1) {
+ nextChar = uCode;
+ uCode = UNASSIGNED;
+ leadSurrogate = -1;
+ }
+ var dbcsCode = UNASSIGNED;
+ if (seqObj !== undefined && uCode != UNASSIGNED) {
+ var resCode = seqObj[uCode];
+ if (typeof resCode === "object") {
+ seqObj = resCode;
+ continue;
+ } else if (typeof resCode == "number") {
+ dbcsCode = resCode;
+ } else if (resCode == undefined) {
+ resCode = seqObj[DEF_CHAR];
+ if (resCode !== undefined) {
+ dbcsCode = resCode;
+ nextChar = uCode;
+ } else {
+ }
+ }
+ seqObj = undefined;
+ } else if (uCode >= 0) {
+ var subtable = this.encodeTable[uCode >> 8];
+ if (subtable !== undefined)
+ dbcsCode = subtable[uCode & 255];
+ if (dbcsCode <= SEQ_START) {
+ seqObj = this.encodeTableSeq[SEQ_START - dbcsCode];
+ continue;
+ }
+ if (dbcsCode == UNASSIGNED && this.gb18030) {
+ var idx = findIdx(this.gb18030.uChars, uCode);
+ if (idx != -1) {
+ var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);
+ newBuf[j++] = 129 + Math.floor(dbcsCode / 12600);
+ dbcsCode = dbcsCode % 12600;
+ newBuf[j++] = 48 + Math.floor(dbcsCode / 1260);
+ dbcsCode = dbcsCode % 1260;
+ newBuf[j++] = 129 + Math.floor(dbcsCode / 10);
+ dbcsCode = dbcsCode % 10;
+ newBuf[j++] = 48 + dbcsCode;
+ continue;
+ }
+ }
+ }
+ if (dbcsCode === UNASSIGNED)
+ dbcsCode = this.defaultCharSingleByte;
+ if (dbcsCode < 256) {
+ newBuf[j++] = dbcsCode;
+ } else if (dbcsCode < 65536) {
+ newBuf[j++] = dbcsCode >> 8;
+ newBuf[j++] = dbcsCode & 255;
+ } else {
+ newBuf[j++] = dbcsCode >> 16;
+ newBuf[j++] = dbcsCode >> 8 & 255;
+ newBuf[j++] = dbcsCode & 255;
+ }
+ }
+ this.seqObj = seqObj;
+ this.leadSurrogate = leadSurrogate;
+ return newBuf.slice(0, j);
+ };
+ DBCSEncoder.prototype.end = function() {
+ if (this.leadSurrogate === -1 && this.seqObj === undefined)
+ return;
+ var newBuf = Buffer2.alloc(10), j = 0;
+ if (this.seqObj) {
+ var dbcsCode = this.seqObj[DEF_CHAR];
+ if (dbcsCode !== undefined) {
+ if (dbcsCode < 256) {
+ newBuf[j++] = dbcsCode;
+ } else {
+ newBuf[j++] = dbcsCode >> 8;
+ newBuf[j++] = dbcsCode & 255;
+ }
+ } else {
+ }
+ this.seqObj = undefined;
+ }
+ if (this.leadSurrogate !== -1) {
+ newBuf[j++] = this.defaultCharSingleByte;
+ this.leadSurrogate = -1;
+ }
+ return newBuf.slice(0, j);
+ };
+ DBCSEncoder.prototype.findIdx = findIdx;
+ function DBCSDecoder(options, codec) {
+ this.nodeIdx = 0;
+ this.prevBuf = Buffer2.alloc(0);
+ this.decodeTables = codec.decodeTables;
+ this.decodeTableSeq = codec.decodeTableSeq;
+ this.defaultCharUnicode = codec.defaultCharUnicode;
+ this.gb18030 = codec.gb18030;
+ }
+ DBCSDecoder.prototype.write = function(buf) {
+ var newBuf = Buffer2.alloc(buf.length * 2), nodeIdx = this.nodeIdx, prevBuf = this.prevBuf, prevBufOffset = this.prevBuf.length, seqStart = -this.prevBuf.length, uCode;
+ if (prevBufOffset > 0)
+ prevBuf = Buffer2.concat([prevBuf, buf.slice(0, 10)]);
+ for (var i2 = 0, j = 0;i2 < buf.length; i2++) {
+ var curByte = i2 >= 0 ? buf[i2] : prevBuf[i2 + prevBufOffset];
+ var uCode = this.decodeTables[nodeIdx][curByte];
+ if (uCode >= 0) {
+ } else if (uCode === UNASSIGNED) {
+ i2 = seqStart;
+ uCode = this.defaultCharUnicode.charCodeAt(0);
+ } else if (uCode === GB18030_CODE) {
+ var curSeq = seqStart >= 0 ? buf.slice(seqStart, i2 + 1) : prevBuf.slice(seqStart + prevBufOffset, i2 + 1 + prevBufOffset);
+ var ptr = (curSeq[0] - 129) * 12600 + (curSeq[1] - 48) * 1260 + (curSeq[2] - 129) * 10 + (curSeq[3] - 48);
+ var idx = findIdx(this.gb18030.gbChars, ptr);
+ uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];
+ } else if (uCode <= NODE_START) {
+ nodeIdx = NODE_START - uCode;
+ continue;
+ } else if (uCode <= SEQ_START) {
+ var seq = this.decodeTableSeq[SEQ_START - uCode];
+ for (var k = 0;k < seq.length - 1; k++) {
+ uCode = seq[k];
+ newBuf[j++] = uCode & 255;
+ newBuf[j++] = uCode >> 8;
+ }
+ uCode = seq[seq.length - 1];
+ } else
+ throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
+ if (uCode > 65535) {
+ uCode -= 65536;
+ var uCodeLead = 55296 + Math.floor(uCode / 1024);
+ newBuf[j++] = uCodeLead & 255;
+ newBuf[j++] = uCodeLead >> 8;
+ uCode = 56320 + uCode % 1024;
+ }
+ newBuf[j++] = uCode & 255;
+ newBuf[j++] = uCode >> 8;
+ nodeIdx = 0;
+ seqStart = i2 + 1;
+ }
+ this.nodeIdx = nodeIdx;
+ this.prevBuf = seqStart >= 0 ? buf.slice(seqStart) : prevBuf.slice(seqStart + prevBufOffset);
+ return newBuf.slice(0, j).toString("ucs2");
+ };
+ DBCSDecoder.prototype.end = function() {
+ var ret = "";
+ while (this.prevBuf.length > 0) {
+ ret += this.defaultCharUnicode;
+ var buf = this.prevBuf.slice(1);
+ this.prevBuf = Buffer2.alloc(0);
+ this.nodeIdx = 0;
+ if (buf.length > 0)
+ ret += this.write(buf);
+ }
+ this.nodeIdx = 0;
+ return ret;
+ };
+ function findIdx(table, val) {
+ if (table[0] > val)
+ return -1;
+ var l = 0, r = table.length;
+ while (l < r - 1) {
+ var mid = l + Math.floor((r - l + 1) / 2);
+ if (table[mid] <= val)
+ l = mid;
+ else
+ r = mid;
+ }
+ return l;
+ }
+});
+
+// node_modules/iconv-lite/encodings/tables/shiftjis.json
+var require_shiftjis = __commonJS((exports, module) => {
+ module.exports = [
+ ["0", "\x00", 128],
+ ["a1", "。", 62],
+ ["8140", " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈", 9, "+-±×"],
+ ["8180", "÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓"],
+ ["81b8", "∈∋⊆⊇⊂⊃∪∩"],
+ ["81c8", "∧∨¬⇒⇔∀∃"],
+ ["81da", "∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],
+ ["81f0", "ʼn♯♭♪†‡¶"],
+ ["81fc", "◯"],
+ ["824f", "0", 9],
+ ["8260", "A", 25],
+ ["8281", "a", 25],
+ ["829f", "ぁ", 82],
+ ["8340", "ァ", 62],
+ ["8380", "ム", 22],
+ ["839f", "Α", 16, "Σ", 6],
+ ["83bf", "α", 16, "σ", 6],
+ ["8440", "А", 5, "ЁЖ", 25],
+ ["8470", "а", 5, "ёж", 7],
+ ["8480", "о", 17],
+ ["849f", "─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],
+ ["8740", "①", 19, "Ⅰ", 9],
+ ["875f", "㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],
+ ["877e", "㍻"],
+ ["8780", "〝〟№㏍℡㊤", 4, "㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],
+ ["889f", "亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],
+ ["8940", "院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円"],
+ ["8980", "園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],
+ ["8a40", "魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫"],
+ ["8a80", "橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],
+ ["8b40", "機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救"],
+ ["8b80", "朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],
+ ["8c40", "掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨"],
+ ["8c80", "劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],
+ ["8d40", "后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降"],
+ ["8d80", "項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],
+ ["8e40", "察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止"],
+ ["8e80", "死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],
+ ["8f40", "宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳"],
+ ["8f80", "準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],
+ ["9040", "拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨"],
+ ["9080", "逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],
+ ["9140", "繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻"],
+ ["9180", "操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],
+ ["9240", "叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄"],
+ ["9280", "逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],
+ ["9340", "邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬"],
+ ["9380", "凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],
+ ["9440", "如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅"],
+ ["9480", "楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],
+ ["9540", "鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷"],
+ ["9580", "斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],
+ ["9640", "法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆"],
+ ["9680", "摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],
+ ["9740", "諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲"],
+ ["9780", "沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],
+ ["9840", "蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],
+ ["989f", "弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],
+ ["9940", "僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭"],
+ ["9980", "凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],
+ ["9a40", "咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸"],
+ ["9a80", "噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],
+ ["9b40", "奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀"],
+ ["9b80", "它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],
+ ["9c40", "廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠"],
+ ["9c80", "怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],
+ ["9d40", "戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫"],
+ ["9d80", "捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],
+ ["9e40", "曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎"],
+ ["9e80", "梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],
+ ["9f40", "檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯"],
+ ["9f80", "麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],
+ ["e040", "漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝"],
+ ["e080", "烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],
+ ["e140", "瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿"],
+ ["e180", "痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],
+ ["e240", "磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰"],
+ ["e280", "窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],
+ ["e340", "紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷"],
+ ["e380", "縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],
+ ["e440", "隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤"],
+ ["e480", "艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],
+ ["e540", "蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬"],
+ ["e580", "蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],
+ ["e640", "襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧"],
+ ["e680", "諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],
+ ["e740", "蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜"],
+ ["e780", "轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],
+ ["e840", "錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙"],
+ ["e880", "閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],
+ ["e940", "顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃"],
+ ["e980", "騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],
+ ["ea40", "鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯"],
+ ["ea80", "黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙"],
+ ["ed40", "纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏"],
+ ["ed80", "塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],
+ ["ee40", "犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙"],
+ ["ee80", "蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],
+ ["eeef", "ⅰ", 9, "¬¦'""],
+ ["f040", "", 62],
+ ["f080", "", 124],
+ ["f140", "", 62],
+ ["f180", "", 124],
+ ["f240", "", 62],
+ ["f280", "", 124],
+ ["f340", "", 62],
+ ["f380", "", 124],
+ ["f440", "", 62],
+ ["f480", "", 124],
+ ["f540", "", 62],
+ ["f580", "", 124],
+ ["f640", "", 62],
+ ["f680", "", 124],
+ ["f740", "", 62],
+ ["f780", "", 124],
+ ["f840", "", 62],
+ ["f880", "", 124],
+ ["f940", ""],
+ ["fa40", "ⅰ", 9, "Ⅰ", 9, "¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊"],
+ ["fa80", "兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯"],
+ ["fb40", "涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神"],
+ ["fb80", "祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙"],
+ ["fc40", "髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"]
+ ];
+});
+
+// node_modules/iconv-lite/encodings/tables/eucjp.json
+var require_eucjp = __commonJS((exports, module) => {
+ module.exports = [
+ ["0", "\x00", 127],
+ ["8ea1", "。", 62],
+ ["a1a1", " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈", 9, "+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇"],
+ ["a2a1", "◆□■△▲▽▼※〒→←↑↓〓"],
+ ["a2ba", "∈∋⊆⊇⊂⊃∪∩"],
+ ["a2ca", "∧∨¬⇒⇔∀∃"],
+ ["a2dc", "∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],
+ ["a2f2", "ʼn♯♭♪†‡¶"],
+ ["a2fe", "◯"],
+ ["a3b0", "0", 9],
+ ["a3c1", "A", 25],
+ ["a3e1", "a", 25],
+ ["a4a1", "ぁ", 82],
+ ["a5a1", "ァ", 85],
+ ["a6a1", "Α", 16, "Σ", 6],
+ ["a6c1", "α", 16, "σ", 6],
+ ["a7a1", "А", 5, "ЁЖ", 25],
+ ["a7d1", "а", 5, "ёж", 25],
+ ["a8a1", "─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],
+ ["ada1", "①", 19, "Ⅰ", 9],
+ ["adc0", "㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],
+ ["addf", "㍻〝〟№㏍℡㊤", 4, "㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],
+ ["b0a1", "亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],
+ ["b1a1", "院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応"],
+ ["b2a1", "押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],
+ ["b3a1", "魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱"],
+ ["b4a1", "粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],
+ ["b5a1", "機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京"],
+ ["b6a1", "供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],
+ ["b7a1", "掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲"],
+ ["b8a1", "検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],
+ ["b9a1", "后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込"],
+ ["baa1", "此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],
+ ["bba1", "察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時"],
+ ["bca1", "次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],
+ ["bda1", "宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償"],
+ ["bea1", "勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],
+ ["bfa1", "拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾"],
+ ["c0a1", "澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],
+ ["c1a1", "繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎"],
+ ["c2a1", "臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],
+ ["c3a1", "叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵"],
+ ["c4a1", "帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],
+ ["c5a1", "邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到"],
+ ["c6a1", "董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],
+ ["c7a1", "如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦"],
+ ["c8a1", "函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],
+ ["c9a1", "鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服"],
+ ["caa1", "福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],
+ ["cba1", "法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満"],
+ ["cca1", "漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],
+ ["cda1", "諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃"],
+ ["cea1", "痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],
+ ["cfa1", "蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],
+ ["d0a1", "弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],
+ ["d1a1", "僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨"],
+ ["d2a1", "辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],
+ ["d3a1", "咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉"],
+ ["d4a1", "圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],
+ ["d5a1", "奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓"],
+ ["d6a1", "屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],
+ ["d7a1", "廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚"],
+ ["d8a1", "悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],
+ ["d9a1", "戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼"],
+ ["daa1", "據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],
+ ["dba1", "曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍"],
+ ["dca1", "棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],
+ ["dda1", "檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾"],
+ ["dea1", "沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],
+ ["dfa1", "漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼"],
+ ["e0a1", "燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],
+ ["e1a1", "瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰"],
+ ["e2a1", "癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],
+ ["e3a1", "磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐"],
+ ["e4a1", "筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],
+ ["e5a1", "紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺"],
+ ["e6a1", "罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],
+ ["e7a1", "隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙"],
+ ["e8a1", "茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],
+ ["e9a1", "蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙"],
+ ["eaa1", "蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],
+ ["eba1", "襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫"],
+ ["eca1", "譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],
+ ["eda1", "蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸"],
+ ["eea1", "遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],
+ ["efa1", "錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞"],
+ ["f0a1", "陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],
+ ["f1a1", "顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷"],
+ ["f2a1", "髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],
+ ["f3a1", "鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠"],
+ ["f4a1", "堯槇遙瑤凜熙"],
+ ["f9a1", "纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德"],
+ ["faa1", "忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],
+ ["fba1", "犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚"],
+ ["fca1", "釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],
+ ["fcf1", "ⅰ", 9, "¬¦'""],
+ ["8fa2af", "˘ˇ¸˙˝¯˛˚~΄΅"],
+ ["8fa2c2", "¡¦¿"],
+ ["8fa2eb", "ºª©®™¤№"],
+ ["8fa6e1", "ΆΈΉΊΪ"],
+ ["8fa6e7", "Ό"],
+ ["8fa6e9", "ΎΫ"],
+ ["8fa6ec", "Ώ"],
+ ["8fa6f1", "άέήίϊΐόςύϋΰώ"],
+ ["8fa7c2", "Ђ", 10, "ЎЏ"],
+ ["8fa7f2", "ђ", 10, "ўџ"],
+ ["8fa9a1", "ÆĐ"],
+ ["8fa9a4", "Ħ"],
+ ["8fa9a6", "IJ"],
+ ["8fa9a8", "ŁĿ"],
+ ["8fa9ab", "ŊØŒ"],
+ ["8fa9af", "ŦÞ"],
+ ["8fa9c1", "æđðħıijĸłŀʼnŋøœßŧþ"],
+ ["8faaa1", "ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ"],
+ ["8faaba", "ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ"],
+ ["8faba1", "áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ"],
+ ["8fabbd", "ġĥíìïîǐ"],
+ ["8fabc5", "īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż"],
+ ["8fb0a1", "丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄"],
+ ["8fb1a1", "侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐"],
+ ["8fb2a1", "傒傓傔傖傛傜傞", 4, "傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂"],
+ ["8fb3a1", "凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋"],
+ ["8fb4a1", "匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿"],
+ ["8fb5a1", "咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒"],
+ ["8fb6a1", "嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍", 5, "嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤", 4, "囱囫园"],
+ ["8fb7a1", "囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭", 4, "坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡"],
+ ["8fb8a1", "堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭"],
+ ["8fb9a1", "奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿"],
+ ["8fbaa1", "嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖", 4, "寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩"],
+ ["8fbba1", "屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤"],
+ ["8fbca1", "巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪", 4, "幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧"],
+ ["8fbda1", "彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐", 4, "忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟怤怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷"],
+ ["8fbea1", "悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐", 4, "愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥"],
+ ["8fbfa1", "懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵"],
+ ["8fc0a1", "捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿"],
+ ["8fc1a1", "擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝"],
+ ["8fc2a1", "昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝"],
+ ["8fc3a1", "杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮", 4, "桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏"],
+ ["8fc4a1", "棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲"],
+ ["8fc5a1", "樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽"],
+ ["8fc6a1", "歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖"],
+ ["8fc7a1", "泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞"],
+ ["8fc8a1", "湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊"],
+ ["8fc9a1", "濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔", 4, "炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃", 4, "焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠"],
+ ["8fcaa1", "煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻"],
+ ["8fcba1", "狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽"],
+ ["8fcca1", "珿琀琁琄琇琊琑琚琛琤琦琨", 9, "琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆"],
+ ["8fcda1", "甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹", 5, "疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹"],
+ ["8fcea1", "瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢", 6, "皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢"],
+ ["8fcfa1", "睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳"],
+ ["8fd0a1", "碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞"],
+ ["8fd1a1", "秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰"],
+ ["8fd2a1", "笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙", 5],
+ ["8fd3a1", "籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝"],
+ ["8fd4a1", "綞綦綧綪綳綶綷綹緂", 4, "緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭"],
+ ["8fd5a1", "罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮"],
+ ["8fd6a1", "胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆"],
+ ["8fd7a1", "艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸"],
+ ["8fd8a1", "荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓"],
+ ["8fd9a1", "蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏", 4, "蕖蕙蕜", 6, "蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼"],
+ ["8fdaa1", "藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠", 4, "虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣"],
+ ["8fdba1", "蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃", 6, "螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵"],
+ ["8fdca1", "蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊", 4, "裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺"],
+ ["8fdda1", "襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔", 4, "觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳"],
+ ["8fdea1", "誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂", 4, "譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆"],
+ ["8fdfa1", "貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢"],
+ ["8fe0a1", "踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁"],
+ ["8fe1a1", "轃轇轏轑", 4, "轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃"],
+ ["8fe2a1", "郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿"],
+ ["8fe3a1", "釂釃釅釓釔釗釙釚釞釤釥釩釪釬", 5, "釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵", 4, "鉻鉼鉽鉿銈銉銊銍銎銒銗"],
+ ["8fe4a1", "銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿", 4, "鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶"],
+ ["8fe5a1", "鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉", 4, "鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹"],
+ ["8fe6a1", "镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂"],
+ ["8fe7a1", "霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦"],
+ ["8fe8a1", "頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱", 4, "餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵"],
+ ["8fe9a1", "馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿", 4],
+ ["8feaa1", "鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪", 4, "魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸"],
+ ["8feba1", "鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦", 4, "鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻"],
+ ["8feca1", "鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵"],
+ ["8feda1", "黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃", 4, "齓齕齖齗齘齚齝齞齨齩齭", 4, "齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥"]
+ ];
+});
+
+// node_modules/iconv-lite/encodings/tables/cp936.json
+var require_cp936 = __commonJS((exports, module) => {
+ module.exports = [
+ ["0", "\x00", 127, "€"],
+ ["8140", "丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪", 5, "乲乴", 9, "乿", 6, "亇亊"],
+ ["8180", "亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂", 6, "伋伌伒", 4, "伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾", 4, "佄佅佇", 5, "佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢"],
+ ["8240", "侤侫侭侰", 4, "侶", 8, "俀俁係俆俇俈俉俋俌俍俒", 4, "俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿", 11],
+ ["8280", "個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯", 10, "倻倽倿偀偁偂偄偅偆偉偊偋偍偐", 4, "偖偗偘偙偛偝", 7, "偦", 5, "偭", 8, "偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎", 20, "傤傦傪傫傭", 4, "傳", 6, "傼"],
+ ["8340", "傽", 17, "僐", 5, "僗僘僙僛", 10, "僨僩僪僫僯僰僱僲僴僶", 4, "僼", 9, "儈"],
+ ["8380", "儉儊儌", 5, "儓", 13, "儢", 28, "兂兇兊兌兎兏児兒兓兗兘兙兛兝", 4, "兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦", 4, "冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒", 5],
+ ["8440", "凘凙凚凜凞凟凢凣凥", 5, "凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄", 5, "剋剎剏剒剓剕剗剘"],
+ ["8480", "剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳", 9, "剾劀劃", 4, "劉", 6, "劑劒劔", 6, "劜劤劥劦劧劮劯劰労", 9, "勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務", 5, "勠勡勢勣勥", 10, "勱", 7, "勻勼勽匁匂匃匄匇匉匊匋匌匎"],
+ ["8540", "匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯", 9, "匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏"],
+ ["8580", "厐", 4, "厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯", 6, "厷厸厹厺厼厽厾叀參", 4, "収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝", 4, "呣呥呧呩", 7, "呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡"],
+ ["8640", "咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠", 4, "哫哬哯哰哱哴", 5, "哻哾唀唂唃唄唅唈唊", 4, "唒唓唕", 5, "唜唝唞唟唡唥唦"],
+ ["8680", "唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋", 4, "啑啒啓啔啗", 4, "啝啞啟啠啢啣啨啩啫啯", 5, "啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠", 6, "喨", 8, "喲喴営喸喺喼喿", 4, "嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗", 4, "嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸", 4, "嗿嘂嘃嘄嘅"],
+ ["8740", "嘆嘇嘊嘋嘍嘐", 7, "嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀", 11, "噏", 4, "噕噖噚噛噝", 4],
+ ["8780", "噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽", 7, "嚇", 6, "嚐嚑嚒嚔", 14, "嚤", 10, "嚰", 6, "嚸嚹嚺嚻嚽", 12, "囋", 8, "囕囖囘囙囜団囥", 5, "囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國", 6],
+ ["8840", "園", 9, "圝圞圠圡圢圤圥圦圧圫圱圲圴", 4, "圼圽圿坁坃坄坅坆坈坉坋坒", 4, "坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀"],
+ ["8880", "垁垇垈垉垊垍", 4, "垔", 6, "垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹", 8, "埄", 6, "埌埍埐埑埓埖埗埛埜埞埡埢埣埥", 7, "埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥", 4, "堫", 4, "報堲堳場堶", 7],
+ ["8940", "堾", 5, "塅", 6, "塎塏塐塒塓塕塖塗塙", 4, "塟", 5, "塦", 4, "塭", 16, "塿墂墄墆墇墈墊墋墌"],
+ ["8980", "墍", 4, "墔", 4, "墛墜墝墠", 7, "墪", 17, "墽墾墿壀壂壃壄壆", 10, "壒壓壔壖", 13, "壥", 5, "壭壯壱売壴壵壷壸壺", 7, "夃夅夆夈", 4, "夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻"],
+ ["8a40", "夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛", 4, "奡奣奤奦", 12, "奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦"],
+ ["8a80", "妧妬妭妰妱妳", 5, "妺妼妽妿", 6, "姇姈姉姌姍姎姏姕姖姙姛姞", 4, "姤姦姧姩姪姫姭", 11, "姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪", 6, "娳娵娷", 4, "娽娾娿婁", 4, "婇婈婋", 9, "婖婗婘婙婛", 5],
+ ["8b40", "婡婣婤婥婦婨婩婫", 8, "婸婹婻婼婽婾媀", 17, "媓", 6, "媜", 13, "媫媬"],
+ ["8b80", "媭", 4, "媴媶媷媹", 4, "媿嫀嫃", 5, "嫊嫋嫍", 4, "嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬", 4, "嫲", 22, "嬊", 11, "嬘", 25, "嬳嬵嬶嬸", 7, "孁", 6],
+ ["8c40", "孈", 7, "孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏"],
+ ["8c80", "寑寔", 8, "寠寢寣實寧審", 4, "寯寱", 6, "寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧", 6, "屰屲", 6, "屻屼屽屾岀岃", 4, "岉岊岋岎岏岒岓岕岝", 4, "岤", 4],
+ ["8d40", "岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅", 5, "峌", 5, "峓", 5, "峚", 6, "峢峣峧峩峫峬峮峯峱", 9, "峼", 4],
+ ["8d80", "崁崄崅崈", 5, "崏", 4, "崕崗崘崙崚崜崝崟", 4, "崥崨崪崫崬崯", 4, "崵", 7, "崿", 7, "嵈嵉嵍", 10, "嵙嵚嵜嵞", 10, "嵪嵭嵮嵰嵱嵲嵳嵵", 12, "嶃", 21, "嶚嶛嶜嶞嶟嶠"],
+ ["8e40", "嶡", 21, "嶸", 12, "巆", 6, "巎", 12, "巜巟巠巣巤巪巬巭"],
+ ["8e80", "巰巵巶巸", 4, "巿帀帄帇帉帊帋帍帎帒帓帗帞", 7, "帨", 4, "帯帰帲", 4, "帹帺帾帿幀幁幃幆", 5, "幍", 6, "幖", 4, "幜幝幟幠幣", 14, "幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨", 4, "庮", 4, "庴庺庻庼庽庿", 6],
+ ["8f40", "廆廇廈廋", 5, "廔廕廗廘廙廚廜", 11, "廩廫", 8, "廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤"],
+ ["8f80", "弨弫弬弮弰弲", 6, "弻弽弾弿彁", 14, "彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢", 5, "復徫徬徯", 5, "徶徸徹徺徻徾", 4, "忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇"],
+ ["9040", "怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰", 4, "怶", 4, "怽怾恀恄", 6, "恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀"],
+ ["9080", "悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽", 7, "惇惈惉惌", 4, "惒惓惔惖惗惙惛惞惡", 4, "惪惱惲惵惷惸惻", 4, "愂愃愄愅愇愊愋愌愐", 4, "愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬", 18, "慀", 6],
+ ["9140", "慇慉態慍慏慐慒慓慔慖", 6, "慞慟慠慡慣慤慥慦慩", 6, "慱慲慳慴慶慸", 18, "憌憍憏", 4, "憕"],
+ ["9180", "憖", 6, "憞", 8, "憪憫憭", 9, "憸", 5, "憿懀懁懃", 4, "應懌", 4, "懓懕", 16, "懧", 13, "懶", 8, "戀", 5, "戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸", 4, "扂扄扅扆扊"],
+ ["9240", "扏扐払扖扗扙扚扜", 6, "扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋", 5, "抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁"],
+ ["9280", "拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳", 5, "挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖", 7, "捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙", 6, "採掤掦掫掯掱掲掵掶掹掻掽掿揀"],
+ ["9340", "揁揂揃揅揇揈揊揋揌揑揓揔揕揗", 6, "揟揢揤", 4, "揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆", 4, "損搎搑搒搕", 5, "搝搟搢搣搤"],
+ ["9380", "搥搧搨搩搫搮", 5, "搵", 4, "搻搼搾摀摂摃摉摋", 6, "摓摕摖摗摙", 4, "摟", 7, "摨摪摫摬摮", 9, "摻", 6, "撃撆撈", 8, "撓撔撗撘撚撛撜撝撟", 4, "撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆", 6, "擏擑擓擔擕擖擙據"],
+ ["9440", "擛擜擝擟擠擡擣擥擧", 24, "攁", 7, "攊", 7, "攓", 4, "攙", 8],
+ ["9480", "攢攣攤攦", 4, "攬攭攰攱攲攳攷攺攼攽敀", 4, "敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數", 14, "斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱", 7, "斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘", 7, "旡旣旤旪旫"],
+ ["9540", "旲旳旴旵旸旹旻", 4, "昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷", 4, "昽昿晀時晄", 6, "晍晎晐晑晘"],
+ ["9580", "晙晛晜晝晞晠晢晣晥晧晩", 4, "晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘", 4, "暞", 8, "暩", 4, "暯", 4, "暵暶暷暸暺暻暼暽暿", 25, "曚曞", 7, "曧曨曪", 5, "曱曵曶書曺曻曽朁朂會"],
+ ["9640", "朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠", 5, "朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗", 4, "杝杢杣杤杦杧杫杬杮東杴杶"],
+ ["9680", "杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹", 7, "柂柅", 9, "柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵", 7, "柾栁栂栃栄栆栍栐栒栔栕栘", 4, "栞栟栠栢", 6, "栫", 6, "栴栵栶栺栻栿桇桋桍桏桒桖", 5],
+ ["9740", "桜桝桞桟桪桬", 7, "桵桸", 8, "梂梄梇", 7, "梐梑梒梔梕梖梘", 9, "梣梤梥梩梪梫梬梮梱梲梴梶梷梸"],
+ ["9780", "梹", 6, "棁棃", 5, "棊棌棎棏棐棑棓棔棖棗棙棛", 4, "棡棢棤", 9, "棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆", 4, "椌椏椑椓", 11, "椡椢椣椥", 7, "椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃", 16, "楕楖楘楙楛楜楟"],
+ ["9840", "楡楢楤楥楧楨楩楪楬業楯楰楲", 4, "楺楻楽楾楿榁榃榅榊榋榌榎", 5, "榖榗榙榚榝", 9, "榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽"],
+ ["9880", "榾榿槀槂", 7, "構槍槏槑槒槓槕", 5, "槜槝槞槡", 11, "槮槯槰槱槳", 9, "槾樀", 9, "樋", 11, "標", 5, "樠樢", 5, "権樫樬樭樮樰樲樳樴樶", 6, "樿", 4, "橅橆橈", 7, "橑", 6, "橚"],
+ ["9940", "橜", 4, "橢橣橤橦", 10, "橲", 6, "橺橻橽橾橿檁檂檃檅", 8, "檏檒", 4, "檘", 7, "檡", 5],
+ ["9980", "檧檨檪檭", 114, "欥欦欨", 6],
+ ["9a40", "欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍", 11, "歚", 7, "歨歩歫", 13, "歺歽歾歿殀殅殈"],
+ ["9a80", "殌殎殏殐殑殔殕殗殘殙殜", 4, "殢", 7, "殫", 7, "殶殸", 6, "毀毃毄毆", 4, "毌毎毐毑毘毚毜", 4, "毢", 7, "毬毭毮毰毱毲毴毶毷毸毺毻毼毾", 6, "氈", 4, "氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋", 4, "汑汒汓汖汘"],
+ ["9b40", "汙汚汢汣汥汦汧汫", 4, "汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘"],
+ ["9b80", "泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟", 5, "洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽", 4, "涃涄涆涇涊涋涍涏涐涒涖", 4, "涜涢涥涬涭涰涱涳涴涶涷涹", 5, "淁淂淃淈淉淊"],
+ ["9c40", "淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽", 7, "渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵"],
+ ["9c80", "渶渷渹渻", 7, "湅", 7, "湏湐湑湒湕湗湙湚湜湝湞湠", 10, "湬湭湯", 14, "満溁溂溄溇溈溊", 4, "溑", 6, "溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪", 5],
+ ["9d40", "滰滱滲滳滵滶滷滸滺", 7, "漃漄漅漇漈漊", 4, "漐漑漒漖", 9, "漡漢漣漥漦漧漨漬漮漰漲漴漵漷", 6, "漿潀潁潂"],
+ ["9d80", "潃潄潅潈潉潊潌潎", 9, "潙潚潛潝潟潠潡潣潤潥潧", 5, "潯潰潱潳潵潶潷潹潻潽", 6, "澅澆澇澊澋澏", 12, "澝澞澟澠澢", 4, "澨", 10, "澴澵澷澸澺", 5, "濁濃", 5, "濊", 6, "濓", 10, "濟濢濣濤濥"],
+ ["9e40", "濦", 7, "濰", 32, "瀒", 7, "瀜", 6, "瀤", 6],
+ ["9e80", "瀫", 9, "瀶瀷瀸瀺", 17, "灍灎灐", 13, "灟", 11, "灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞", 12, "炰炲炴炵炶為炾炿烄烅烆烇烉烋", 12, "烚"],
+ ["9f40", "烜烝烞烠烡烢烣烥烪烮烰", 6, "烸烺烻烼烾", 10, "焋", 4, "焑焒焔焗焛", 10, "焧", 7, "焲焳焴"],
+ ["9f80", "焵焷", 13, "煆煇煈煉煋煍煏", 12, "煝煟", 4, "煥煩", 4, "煯煰煱煴煵煶煷煹煻煼煾", 5, "熅", 4, "熋熌熍熎熐熑熒熓熕熖熗熚", 4, "熡", 6, "熩熪熫熭", 5, "熴熶熷熸熺", 8, "燄", 9, "燏", 4],
+ ["a040", "燖", 9, "燡燢燣燤燦燨", 5, "燯", 9, "燺", 11, "爇", 19],
+ ["a080", "爛爜爞", 9, "爩爫爭爮爯爲爳爴爺爼爾牀", 6, "牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅", 4, "犌犎犐犑犓", 11, "犠", 11, "犮犱犲犳犵犺", 6, "狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛"],
+ ["a1a1", " 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈", 7, "〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓"],
+ ["a2a1", "ⅰ", 9],
+ ["a2b1", "⒈", 19, "⑴", 19, "①", 9],
+ ["a2e5", "㈠", 9],
+ ["a2f1", "Ⅰ", 11],
+ ["a3a1", "!"#¥%", 88, " ̄"],
+ ["a4a1", "ぁ", 82],
+ ["a5a1", "ァ", 85],
+ ["a6a1", "Α", 16, "Σ", 6],
+ ["a6c1", "α", 16, "σ", 6],
+ ["a6e0", "︵︶︹︺︿﹀︽︾﹁﹂﹃﹄"],
+ ["a6ee", "︻︼︷︸︱"],
+ ["a6f4", "︳︴"],
+ ["a7a1", "А", 5, "ЁЖ", 25],
+ ["a7d1", "а", 5, "ёж", 25],
+ ["a840", "ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═", 35, "▁", 6],
+ ["a880", "█", 7, "▓▔▕▼▽◢◣◤◥☉⊕〒〝〞"],
+ ["a8a1", "āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ"],
+ ["a8bd", "ńň"],
+ ["a8c0", "ɡ"],
+ ["a8c5", "ㄅ", 36],
+ ["a940", "〡", 8, "㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦"],
+ ["a959", "℡㈱"],
+ ["a95c", "‐"],
+ ["a960", "ー゛゜ヽヾ〆ゝゞ﹉", 9, "﹔﹕﹖﹗﹙", 8],
+ ["a980", "﹢", 4, "﹨﹩﹪﹫"],
+ ["a996", "〇"],
+ ["a9a4", "─", 75],
+ ["aa40", "狜狝狟狢", 5, "狪狫狵狶狹狽狾狿猀猂猄", 5, "猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀", 8],
+ ["aa80", "獉獊獋獌獎獏獑獓獔獕獖獘", 7, "獡", 10, "獮獰獱"],
+ ["ab40", "獲", 11, "獿", 4, "玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣", 5, "玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃", 4],
+ ["ab80", "珋珌珎珒", 6, "珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳", 4],
+ ["ac40", "珸", 10, "琄琇琈琋琌琍琎琑", 8, "琜", 5, "琣琤琧琩琫琭琯琱琲琷", 4, "琽琾琿瑀瑂", 11],
+ ["ac80", "瑎", 6, "瑖瑘瑝瑠", 12, "瑮瑯瑱", 4, "瑸瑹瑺"],
+ ["ad40", "瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑", 10, "璝璟", 7, "璪", 15, "璻", 12],
+ ["ad80", "瓈", 9, "瓓", 8, "瓝瓟瓡瓥瓧", 6, "瓰瓱瓲"],
+ ["ae40", "瓳瓵瓸", 6, "甀甁甂甃甅", 7, "甎甐甒甔甕甖甗甛甝甞甠", 4, "甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘"],
+ ["ae80", "畝", 7, "畧畨畩畫", 6, "畳畵當畷畺", 4, "疀疁疂疄疅疇"],
+ ["af40", "疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦", 4, "疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇"],
+ ["af80", "瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄"],
+ ["b040", "癅", 6, "癎", 5, "癕癗", 4, "癝癟癠癡癢癤", 6, "癬癭癮癰", 7, "癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛"],
+ ["b080", "皜", 7, "皥", 8, "皯皰皳皵", 9, "盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥"],
+ ["b140", "盄盇盉盋盌盓盕盙盚盜盝盞盠", 4, "盦", 7, "盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎", 10, "眛眜眝眞眡眣眤眥眧眪眫"],
+ ["b180", "眬眮眰", 4, "眹眻眽眾眿睂睄睅睆睈", 7, "睒", 7, "睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳"],
+ ["b240", "睝睞睟睠睤睧睩睪睭", 11, "睺睻睼瞁瞂瞃瞆", 5, "瞏瞐瞓", 11, "瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶", 4],
+ ["b280", "瞼瞾矀", 12, "矎", 8, "矘矙矚矝", 4, "矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖"],
+ ["b340", "矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃", 5, "砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚"],
+ ["b380", "硛硜硞", 11, "硯", 7, "硸硹硺硻硽", 6, "场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚"],
+ ["b440", "碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨", 7, "碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚", 9],
+ ["b480", "磤磥磦磧磩磪磫磭", 4, "磳磵磶磸磹磻", 5, "礂礃礄礆", 6, "础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮"],
+ ["b540", "礍", 5, "礔", 9, "礟", 4, "礥", 14, "礵", 4, "礽礿祂祃祄祅祇祊", 8, "祔祕祘祙祡祣"],
+ ["b580", "祤祦祩祪祫祬祮祰", 6, "祹祻", 4, "禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠"],
+ ["b640", "禓", 6, "禛", 11, "禨", 10, "禴", 4, "禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙", 5, "秠秡秢秥秨秪"],
+ ["b680", "秬秮秱", 6, "秹秺秼秾秿稁稄稅稇稈稉稊稌稏", 4, "稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二"],
+ ["b740", "稝稟稡稢稤", 14, "稴稵稶稸稺稾穀", 5, "穇", 9, "穒", 4, "穘", 16],
+ ["b780", "穩", 6, "穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服"],
+ ["b840", "窣窤窧窩窪窫窮", 4, "窴", 10, "竀", 10, "竌", 9, "竗竘竚竛竜竝竡竢竤竧", 5, "竮竰竱竲竳"],
+ ["b880", "竴", 4, "竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹"],
+ ["b940", "笯笰笲笴笵笶笷笹笻笽笿", 5, "筆筈筊筍筎筓筕筗筙筜筞筟筡筣", 10, "筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆", 6, "箎箏"],
+ ["b980", "箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹", 7, "篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈"],
+ ["ba40", "篅篈築篊篋篍篎篏篐篒篔", 4, "篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲", 4, "篸篹篺篻篽篿", 7, "簈簉簊簍簎簐", 5, "簗簘簙"],
+ ["ba80", "簚", 4, "簠", 5, "簨簩簫", 12, "簹", 5, "籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖"],
+ ["bb40", "籃", 9, "籎", 36, "籵", 5, "籾", 9],
+ ["bb80", "粈粊", 6, "粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴", 4, "粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕"],
+ ["bc40", "粿糀糂糃糄糆糉糋糎", 6, "糘糚糛糝糞糡", 6, "糩", 5, "糰", 7, "糹糺糼", 13, "紋", 5],
+ ["bc80", "紑", 14, "紡紣紤紥紦紨紩紪紬紭紮細", 6, "肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件"],
+ ["bd40", "紷", 54, "絯", 7],
+ ["bd80", "絸", 32, "健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸"],
+ ["be40", "継", 12, "綧", 6, "綯", 42],
+ ["be80", "線", 32, "尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻"],
+ ["bf40", "緻", 62],
+ ["bf80", "縺縼", 4, "繂", 4, "繈", 21, "俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀"],
+ ["c040", "繞", 35, "纃", 23, "纜纝纞"],
+ ["c080", "纮纴纻纼绖绤绬绹缊缐缞缷缹缻", 6, "罃罆", 9, "罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐"],
+ ["c140", "罖罙罛罜罝罞罠罣", 4, "罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂", 7, "羋羍羏", 4, "羕", 4, "羛羜羠羢羣羥羦羨", 6, "羱"],
+ ["c180", "羳", 4, "羺羻羾翀翂翃翄翆翇翈翉翋翍翏", 4, "翖翗翙", 5, "翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿"],
+ ["c240", "翤翧翨翪翫翬翭翯翲翴", 6, "翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫", 5, "耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗"],
+ ["c280", "聙聛", 13, "聫", 5, "聲", 11, "隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫"],
+ ["c340", "聾肁肂肅肈肊肍", 5, "肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇", 4, "胏", 6, "胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋"],
+ ["c380", "脌脕脗脙脛脜脝脟", 12, "脭脮脰脳脴脵脷脹", 4, "脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸"],
+ ["c440", "腀", 5, "腇腉腍腎腏腒腖腗腘腛", 4, "腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃", 4, "膉膋膌膍膎膐膒", 5, "膙膚膞", 4, "膤膥"],
+ ["c480", "膧膩膫", 7, "膴", 5, "膼膽膾膿臄臅臇臈臉臋臍", 6, "摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁"],
+ ["c540", "臔", 14, "臤臥臦臨臩臫臮", 4, "臵", 5, "臽臿舃與", 4, "舎舏舑舓舕", 5, "舝舠舤舥舦舧舩舮舲舺舼舽舿"],
+ ["c580", "艀艁艂艃艅艆艈艊艌艍艎艐", 7, "艙艛艜艝艞艠", 7, "艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗"],
+ ["c640", "艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸"],
+ ["c680", "苺苼", 4, "茊茋茍茐茒茓茖茘茙茝", 9, "茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐"],
+ ["c740", "茾茿荁荂荄荅荈荊", 4, "荓荕", 4, "荝荢荰", 6, "荹荺荾", 6, "莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡", 6, "莬莭莮"],
+ ["c780", "莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠"],
+ ["c840", "菮華菳", 4, "菺菻菼菾菿萀萂萅萇萈萉萊萐萒", 5, "萙萚萛萞", 5, "萩", 7, "萲", 5, "萹萺萻萾", 7, "葇葈葉"],
+ ["c880", "葊", 6, "葒", 4, "葘葝葞葟葠葢葤", 4, "葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁"],
+ ["c940", "葽", 4, "蒃蒄蒅蒆蒊蒍蒏", 7, "蒘蒚蒛蒝蒞蒟蒠蒢", 12, "蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗"],
+ ["c980", "蓘", 4, "蓞蓡蓢蓤蓧", 4, "蓭蓮蓯蓱", 10, "蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳"],
+ ["ca40", "蔃", 8, "蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢", 8, "蔭", 9, "蔾", 4, "蕄蕅蕆蕇蕋", 10],
+ ["ca80", "蕗蕘蕚蕛蕜蕝蕟", 4, "蕥蕦蕧蕩", 8, "蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱"],
+ ["cb40", "薂薃薆薈", 6, "薐", 10, "薝", 6, "薥薦薧薩薫薬薭薱", 5, "薸薺", 6, "藂", 6, "藊", 4, "藑藒"],
+ ["cb80", "藔藖", 5, "藝", 6, "藥藦藧藨藪", 14, "恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔"],
+ ["cc40", "藹藺藼藽藾蘀", 4, "蘆", 10, "蘒蘓蘔蘕蘗", 15, "蘨蘪", 13, "蘹蘺蘻蘽蘾蘿虀"],
+ ["cc80", "虁", 11, "虒虓處", 4, "虛虜虝號虠虡虣", 7, "獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃"],
+ ["cd40", "虭虯虰虲", 6, "蚃", 6, "蚎", 4, "蚔蚖", 5, "蚞", 4, "蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻", 4, "蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜"],
+ ["cd80", "蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威"],
+ ["ce40", "蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀", 6, "蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚", 5, "蝡蝢蝦", 7, "蝯蝱蝲蝳蝵"],
+ ["ce80", "蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎", 4, "螔螕螖螘", 6, "螠", 4, "巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺"],
+ ["cf40", "螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁", 4, "蟇蟈蟉蟌", 4, "蟔", 6, "蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯", 9],
+ ["cf80", "蟺蟻蟼蟽蟿蠀蠁蠂蠄", 5, "蠋", 7, "蠔蠗蠘蠙蠚蠜", 4, "蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓"],
+ ["d040", "蠤", 13, "蠳", 5, "蠺蠻蠽蠾蠿衁衂衃衆", 5, "衎", 5, "衕衖衘衚", 6, "衦衧衪衭衯衱衳衴衵衶衸衹衺"],
+ ["d080", "衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗", 4, "袝", 4, "袣袥", 5, "小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄"],
+ ["d140", "袬袮袯袰袲", 4, "袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚", 4, "裠裡裦裧裩", 6, "裲裵裶裷裺裻製裿褀褁褃", 5],
+ ["d180", "褉褋", 4, "褑褔", 4, "褜", 4, "褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶"],
+ ["d240", "褸", 8, "襂襃襅", 24, "襠", 5, "襧", 19, "襼"],
+ ["d280", "襽襾覀覂覄覅覇", 26, "摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐"],
+ ["d340", "覢", 30, "觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴", 6],
+ ["d380", "觻", 4, "訁", 5, "計", 21, "印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉"],
+ ["d440", "訞", 31, "訿", 8, "詉", 21],
+ ["d480", "詟", 25, "詺", 6, "浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧"],
+ ["d540", "誁", 7, "誋", 7, "誔", 46],
+ ["d580", "諃", 32, "铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政"],
+ ["d640", "諤", 34, "謈", 27],
+ ["d680", "謤謥謧", 30, "帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑"],
+ ["d740", "譆", 31, "譧", 4, "譭", 25],
+ ["d780", "讇", 24, "讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座"],
+ ["d840", "谸", 8, "豂豃豄豅豈豊豋豍", 7, "豖豗豘豙豛", 5, "豣", 6, "豬", 6, "豴豵豶豷豻", 6, "貃貄貆貇"],
+ ["d880", "貈貋貍", 6, "貕貖貗貙", 20, "亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝"],
+ ["d940", "貮", 62],
+ ["d980", "賭", 32, "佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼"],
+ ["da40", "贎", 14, "贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸", 8, "趂趃趆趇趈趉趌", 4, "趒趓趕", 9, "趠趡"],
+ ["da80", "趢趤", 12, "趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺"],
+ ["db40", "跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾", 6, "踆踇踈踋踍踎踐踑踒踓踕", 7, "踠踡踤", 4, "踫踭踰踲踳踴踶踷踸踻踼踾"],
+ ["db80", "踿蹃蹅蹆蹌", 4, "蹓", 5, "蹚", 11, "蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝"],
+ ["dc40", "蹳蹵蹷", 4, "蹽蹾躀躂躃躄躆躈", 6, "躑躒躓躕", 6, "躝躟", 11, "躭躮躰躱躳", 6, "躻", 7],
+ ["dc80", "軃", 10, "軏", 21, "堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥"],
+ ["dd40", "軥", 62],
+ ["dd80", "輤", 32, "荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺"],
+ ["de40", "轅", 32, "轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆"],
+ ["de80", "迉", 4, "迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖"],
+ ["df40", "這逜連逤逥逧", 5, "逰", 4, "逷逹逺逽逿遀遃遅遆遈", 4, "過達違遖遙遚遜", 5, "遤遦遧適遪遫遬遯", 4, "遶", 6, "遾邁"],
+ ["df80", "還邅邆邇邉邊邌", 4, "邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼"],
+ ["e040", "郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅", 19, "鄚鄛鄜"],
+ ["e080", "鄝鄟鄠鄡鄤", 10, "鄰鄲", 6, "鄺", 8, "酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼"],
+ ["e140", "酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀", 4, "醆醈醊醎醏醓", 6, "醜", 5, "醤", 5, "醫醬醰醱醲醳醶醷醸醹醻"],
+ ["e180", "醼", 10, "釈釋釐釒", 9, "針", 8, "帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺"],
+ ["e240", "釦", 62],
+ ["e280", "鈥", 32, "狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧", 5, "饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂"],
+ ["e340", "鉆", 45, "鉵", 16],
+ ["e380", "銆", 7, "銏", 24, "恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾"],
+ ["e440", "銨", 5, "銯", 24, "鋉", 31],
+ ["e480", "鋩", 32, "洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑"],
+ ["e540", "錊", 51, "錿", 10],
+ ["e580", "鍊", 31, "鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣"],
+ ["e640", "鍬", 34, "鎐", 27],
+ ["e680", "鎬", 29, "鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩"],
+ ["e740", "鏎", 7, "鏗", 54],
+ ["e780", "鐎", 32, "纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡", 6, "缪缫缬缭缯", 4, "缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬"],
+ ["e840", "鐯", 14, "鐿", 43, "鑬鑭鑮鑯"],
+ ["e880", "鑰", 20, "钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹"],
+ ["e940", "锧锳锽镃镈镋镕镚镠镮镴镵長", 7, "門", 42],
+ ["e980", "閫", 32, "椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋"],
+ ["ea40", "闌", 27, "闬闿阇阓阘阛阞阠阣", 6, "阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗"],
+ ["ea80", "陘陙陚陜陝陞陠陣陥陦陫陭", 4, "陳陸", 12, "隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰"],
+ ["eb40", "隌階隑隒隓隕隖隚際隝", 9, "隨", 7, "隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖", 9, "雡", 6, "雫"],
+ ["eb80", "雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗", 4, "霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻"],
+ ["ec40", "霡", 8, "霫霬霮霯霱霳", 4, "霺霻霼霽霿", 18, "靔靕靗靘靚靜靝靟靣靤靦靧靨靪", 7],
+ ["ec80", "靲靵靷", 4, "靽", 7, "鞆", 4, "鞌鞎鞏鞐鞓鞕鞖鞗鞙", 4, "臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐"],
+ ["ed40", "鞞鞟鞡鞢鞤", 6, "鞬鞮鞰鞱鞳鞵", 46],
+ ["ed80", "韤韥韨韮", 4, "韴韷", 23, "怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨"],
+ ["ee40", "頏", 62],
+ ["ee80", "顎", 32, "睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶", 4, "钼钽钿铄铈", 6, "铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪"],
+ ["ef40", "顯", 5, "颋颎颒颕颙颣風", 37, "飏飐飔飖飗飛飜飝飠", 4],
+ ["ef80", "飥飦飩", 30, "铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒", 4, "锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤", 8, "镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔"],
+ ["f040", "餈", 4, "餎餏餑", 28, "餯", 26],
+ ["f080", "饊", 9, "饖", 12, "饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨", 4, "鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦", 6, "鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙"],
+ ["f140", "馌馎馚", 10, "馦馧馩", 47],
+ ["f180", "駙", 32, "瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃"],
+ ["f240", "駺", 62],
+ ["f280", "騹", 32, "颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒"],
+ ["f340", "驚", 17, "驲骃骉骍骎骔骕骙骦骩", 6, "骲骳骴骵骹骻骽骾骿髃髄髆", 4, "髍髎髏髐髒體髕髖髗髙髚髛髜"],
+ ["f380", "髝髞髠髢髣髤髥髧髨髩髪髬髮髰", 8, "髺髼", 6, "鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋"],
+ ["f440", "鬇鬉", 5, "鬐鬑鬒鬔", 10, "鬠鬡鬢鬤", 10, "鬰鬱鬳", 7, "鬽鬾鬿魀魆魊魋魌魎魐魒魓魕", 5],
+ ["f480", "魛", 32, "簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤"],
+ ["f540", "魼", 62],
+ ["f580", "鮻", 32, "酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜"],
+ ["f640", "鯜", 62],
+ ["f680", "鰛", 32, "觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅", 5, "龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞", 5, "鲥", 4, "鲫鲭鲮鲰", 7, "鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋"],
+ ["f740", "鰼", 62],
+ ["f780", "鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾", 4, "鳈鳉鳑鳒鳚鳛鳠鳡鳌", 4, "鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄"],
+ ["f840", "鳣", 62],
+ ["f880", "鴢", 32],
+ ["f940", "鵃", 62],
+ ["f980", "鶂", 32],
+ ["fa40", "鶣", 62],
+ ["fa80", "鷢", 32],
+ ["fb40", "鸃", 27, "鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴", 9, "麀"],
+ ["fb80", "麁麃麄麅麆麉麊麌", 5, "麔", 8, "麞麠", 5, "麧麨麩麪"],
+ ["fc40", "麫", 8, "麵麶麷麹麺麼麿", 4, "黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰", 8, "黺黽黿", 6],
+ ["fc80", "鼆", 4, "鼌鼏鼑鼒鼔鼕鼖鼘鼚", 5, "鼡鼣", 8, "鼭鼮鼰鼱"],
+ ["fd40", "鼲", 4, "鼸鼺鼼鼿", 4, "齅", 10, "齒", 38],
+ ["fd80", "齹", 5, "龁龂龍", 11, "龜龝龞龡", 4, "郎凉秊裏隣"],
+ ["fe40", "兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩"]
+ ];
+});
+
+// node_modules/iconv-lite/encodings/tables/gbk-added.json
+var require_gbk_added = __commonJS((exports, module) => {
+ module.exports = [
+ ["a140", "", 62],
+ ["a180", "", 32],
+ ["a240", "", 62],
+ ["a280", "", 32],
+ ["a2ab", "", 5],
+ ["a2e3", "€"],
+ ["a2ef", ""],
+ ["a2fd", ""],
+ ["a340", "", 62],
+ ["a380", "", 31, " "],
+ ["a440", "", 62],
+ ["a480", "", 32],
+ ["a4f4", "", 10],
+ ["a540", "", 62],
+ ["a580", "", 32],
+ ["a5f7", "", 7],
+ ["a640", "", 62],
+ ["a680", "", 32],
+ ["a6b9", "", 7],
+ ["a6d9", "", 6],
+ ["a6ec", ""],
+ ["a6f3", ""],
+ ["a6f6", "", 8],
+ ["a740", "", 62],
+ ["a780", "", 32],
+ ["a7c2", "", 14],
+ ["a7f2", "", 12],
+ ["a896", "", 10],
+ ["a8bc", ""],
+ ["a8bf", "ǹ"],
+ ["a8c1", ""],
+ ["a8ea", "", 20],
+ ["a958", ""],
+ ["a95b", ""],
+ ["a95d", ""],
+ ["a989", "〾⿰", 11],
+ ["a997", "", 12],
+ ["a9f0", "", 14],
+ ["aaa1", "", 93],
+ ["aba1", "", 93],
+ ["aca1", "", 93],
+ ["ada1", "", 93],
+ ["aea1", "", 93],
+ ["afa1", "", 93],
+ ["d7fa", "", 4],
+ ["f8a1", "", 93],
+ ["f9a1", "", 93],
+ ["faa1", "", 93],
+ ["fba1", "", 93],
+ ["fca1", "", 93],
+ ["fda1", "", 93],
+ ["fe50", "⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"],
+ ["fe80", "䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓", 6, "䶮", 93]
+ ];
+});
+
+// node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
+var require_gb18030_ranges = __commonJS((exports, module) => {
+ module.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189000] };
+});
+
+// node_modules/iconv-lite/encodings/tables/cp949.json
+var require_cp949 = __commonJS((exports, module) => {
+ module.exports = [
+ ["0", "\x00", 127],
+ ["8141", "갂갃갅갆갋", 4, "갘갞갟갡갢갣갥", 6, "갮갲갳갴"],
+ ["8161", "갵갶갷갺갻갽갾갿걁", 9, "걌걎", 5, "걕"],
+ ["8181", "걖걗걙걚걛걝", 18, "걲걳걵걶걹걻", 4, "겂겇겈겍겎겏겑겒겓겕", 6, "겞겢", 5, "겫겭겮겱", 6, "겺겾겿곀곂곃곅곆곇곉곊곋곍", 7, "곖곘", 7, "곢곣곥곦곩곫곭곮곲곴곷", 4, "곾곿괁괂괃괅괇", 4, "괎괐괒괓"],
+ ["8241", "괔괕괖괗괙괚괛괝괞괟괡", 7, "괪괫괮", 5],
+ ["8261", "괶괷괹괺괻괽", 6, "굆굈굊", 5, "굑굒굓굕굖굗"],
+ ["8281", "굙", 7, "굢굤", 7, "굮굯굱굲굷굸굹굺굾궀궃", 4, "궊궋궍궎궏궑", 10, "궞", 5, "궥", 17, "궸", 7, "귂귃귅귆귇귉", 6, "귒귔", 7, "귝귞귟귡귢귣귥", 18],
+ ["8341", "귺귻귽귾긂", 5, "긊긌긎", 5, "긕", 7],
+ ["8361", "긝", 18, "긲긳긵긶긹긻긼"],
+ ["8381", "긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗", 4, "깞깢깣깤깦깧깪깫깭깮깯깱", 6, "깺깾", 5, "꺆", 5, "꺍", 46, "꺿껁껂껃껅", 6, "껎껒", 5, "껚껛껝", 8],
+ ["8441", "껦껧껩껪껬껮", 5, "껵껶껷껹껺껻껽", 8],
+ ["8461", "꼆꼉꼊꼋꼌꼎꼏꼑", 18],
+ ["8481", "꼤", 7, "꼮꼯꼱꼳꼵", 6, "꼾꽀꽄꽅꽆꽇꽊", 5, "꽑", 10, "꽞", 5, "꽦", 18, "꽺", 5, "꾁꾂꾃꾅꾆꾇꾉", 6, "꾒꾓꾔꾖", 5, "꾝", 26, "꾺꾻꾽꾾"],
+ ["8541", "꾿꿁", 5, "꿊꿌꿏", 4, "꿕", 6, "꿝", 4],
+ ["8561", "꿢", 5, "꿪", 5, "꿲꿳꿵꿶꿷꿹", 6, "뀂뀃"],
+ ["8581", "뀅", 6, "뀍뀎뀏뀑뀒뀓뀕", 6, "뀞", 9, "뀩", 26, "끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞", 29, "끾끿낁낂낃낅", 6, "낎낐낒", 5, "낛낝낞낣낤"],
+ ["8641", "낥낦낧낪낰낲낶낷낹낺낻낽", 6, "냆냊", 5, "냒"],
+ ["8661", "냓냕냖냗냙", 6, "냡냢냣냤냦", 10],
+ ["8681", "냱", 22, "넊넍넎넏넑넔넕넖넗넚넞", 4, "넦넧넩넪넫넭", 6, "넶넺", 5, "녂녃녅녆녇녉", 6, "녒녓녖녗녙녚녛녝녞녟녡", 22, "녺녻녽녾녿놁놃", 4, "놊놌놎놏놐놑놕놖놗놙놚놛놝"],
+ ["8741", "놞", 9, "놩", 15],
+ ["8761", "놹", 18, "뇍뇎뇏뇑뇒뇓뇕"],
+ ["8781", "뇖", 5, "뇞뇠", 7, "뇪뇫뇭뇮뇯뇱", 7, "뇺뇼뇾", 5, "눆눇눉눊눍", 6, "눖눘눚", 5, "눡", 18, "눵", 6, "눽", 26, "뉙뉚뉛뉝뉞뉟뉡", 6, "뉪", 4],
+ ["8841", "뉯", 4, "뉶", 5, "뉽", 6, "늆늇늈늊", 4],
+ ["8861", "늏늒늓늕늖늗늛", 4, "늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷"],
+ ["8881", "늸", 15, "닊닋닍닎닏닑닓", 4, "닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉", 6, "댒댖", 5, "댝", 54, "덗덙덚덝덠덡덢덣"],
+ ["8941", "덦덨덪덬덭덯덲덳덵덶덷덹", 6, "뎂뎆", 5, "뎍"],
+ ["8961", "뎎뎏뎑뎒뎓뎕", 10, "뎢", 5, "뎩뎪뎫뎭"],
+ ["8981", "뎮", 21, "돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩", 18, "돽", 18, "됑", 6, "됙됚됛됝됞됟됡", 6, "됪됬", 7, "됵", 15],
+ ["8a41", "둅", 10, "둒둓둕둖둗둙", 6, "둢둤둦"],
+ ["8a61", "둧", 4, "둭", 18, "뒁뒂"],
+ ["8a81", "뒃", 4, "뒉", 19, "뒞", 5, "뒥뒦뒧뒩뒪뒫뒭", 7, "뒶뒸뒺", 5, "듁듂듃듅듆듇듉", 6, "듑듒듓듔듖", 5, "듞듟듡듢듥듧", 4, "듮듰듲", 5, "듹", 26, "딖딗딙딚딝"],
+ ["8b41", "딞", 5, "딦딫", 4, "딲딳딵딶딷딹", 6, "땂땆"],
+ ["8b61", "땇땈땉땊땎땏땑땒땓땕", 6, "땞땢", 8],
+ ["8b81", "땫", 52, "떢떣떥떦떧떩떬떭떮떯떲떶", 4, "떾떿뗁뗂뗃뗅", 6, "뗎뗒", 5, "뗙", 18, "뗭", 18],
+ ["8c41", "똀", 15, "똒똓똕똖똗똙", 4],
+ ["8c61", "똞", 6, "똦", 5, "똭", 6, "똵", 5],
+ ["8c81", "똻", 12, "뙉", 26, "뙥뙦뙧뙩", 50, "뚞뚟뚡뚢뚣뚥", 5, "뚭뚮뚯뚰뚲", 16],
+ ["8d41", "뛃", 16, "뛕", 8],
+ ["8d61", "뛞", 17, "뛱뛲뛳뛵뛶뛷뛹뛺"],
+ ["8d81", "뛻", 4, "뜂뜃뜄뜆", 33, "뜪뜫뜭뜮뜱", 6, "뜺뜼", 7, "띅띆띇띉띊띋띍", 6, "띖", 9, "띡띢띣띥띦띧띩", 6, "띲띴띶", 5, "띾띿랁랂랃랅", 6, "랎랓랔랕랚랛랝랞"],
+ ["8e41", "랟랡", 6, "랪랮", 5, "랶랷랹", 8],
+ ["8e61", "럂", 4, "럈럊", 19],
+ ["8e81", "럞", 13, "럮럯럱럲럳럵", 6, "럾렂", 4, "렊렋렍렎렏렑", 6, "렚렜렞", 5, "렦렧렩렪렫렭", 6, "렶렺", 5, "롁롂롃롅", 11, "롒롔", 7, "롞롟롡롢롣롥", 6, "롮롰롲", 5, "롹롺롻롽", 7],
+ ["8f41", "뢅", 7, "뢎", 17],
+ ["8f61", "뢠", 7, "뢩", 6, "뢱뢲뢳뢵뢶뢷뢹", 4],
+ ["8f81", "뢾뢿룂룄룆", 5, "룍룎룏룑룒룓룕", 7, "룞룠룢", 5, "룪룫룭룮룯룱", 6, "룺룼룾", 5, "뤅", 18, "뤙", 6, "뤡", 26, "뤾뤿륁륂륃륅", 6, "륍륎륐륒", 5],
+ ["9041", "륚륛륝륞륟륡", 6, "륪륬륮", 5, "륶륷륹륺륻륽"],
+ ["9061", "륾", 5, "릆릈릋릌릏", 15],
+ ["9081", "릟", 12, "릮릯릱릲릳릵", 6, "릾맀맂", 5, "맊맋맍맓", 4, "맚맜맟맠맢맦맧맩맪맫맭", 6, "맶맻", 4, "먂", 5, "먉", 11, "먖", 33, "먺먻먽먾먿멁멃멄멅멆"],
+ ["9141", "멇멊멌멏멐멑멒멖멗멙멚멛멝", 6, "멦멪", 5],
+ ["9161", "멲멳멵멶멷멹", 9, "몆몈몉몊몋몍", 5],
+ ["9181", "몓", 20, "몪몭몮몯몱몳", 4, "몺몼몾", 5, "뫅뫆뫇뫉", 14, "뫚", 33, "뫽뫾뫿묁묂묃묅", 7, "묎묐묒", 5, "묙묚묛묝묞묟묡", 6],
+ ["9241", "묨묪묬", 7, "묷묹묺묿", 4, "뭆뭈뭊뭋뭌뭎뭑뭒"],
+ ["9261", "뭓뭕뭖뭗뭙", 7, "뭢뭤", 7, "뭭", 4],
+ ["9281", "뭲", 21, "뮉뮊뮋뮍뮎뮏뮑", 18, "뮥뮦뮧뮩뮪뮫뮭", 6, "뮵뮶뮸", 7, "믁믂믃믅믆믇믉", 6, "믑믒믔", 35, "믺믻믽믾밁"],
+ ["9341", "밃", 4, "밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵"],
+ ["9361", "밶밷밹", 6, "뱂뱆뱇뱈뱊뱋뱎뱏뱑", 8],
+ ["9381", "뱚뱛뱜뱞", 37, "벆벇벉벊벍벏", 4, "벖벘벛", 4, "벢벣벥벦벩", 6, "벲벶", 5, "벾벿볁볂볃볅", 7, "볎볒볓볔볖볗볙볚볛볝", 22, "볷볹볺볻볽"],
+ ["9441", "볾", 5, "봆봈봊", 5, "봑봒봓봕", 8],
+ ["9461", "봞", 5, "봥", 6, "봭", 12],
+ ["9481", "봺", 5, "뵁", 6, "뵊뵋뵍뵎뵏뵑", 6, "뵚", 9, "뵥뵦뵧뵩", 22, "붂붃붅붆붋", 4, "붒붔붖붗붘붛붝", 6, "붥", 10, "붱", 6, "붹", 24],
+ ["9541", "뷒뷓뷖뷗뷙뷚뷛뷝", 11, "뷪", 5, "뷱"],
+ ["9561", "뷲뷳뷵뷶뷷뷹", 6, "븁븂븄븆", 5, "븎븏븑븒븓"],
+ ["9581", "븕", 6, "븞븠", 35, "빆빇빉빊빋빍빏", 4, "빖빘빜빝빞빟빢빣빥빦빧빩빫", 4, "빲빶", 4, "빾빿뺁뺂뺃뺅", 6, "뺎뺒", 5, "뺚", 13, "뺩", 14],
+ ["9641", "뺸", 23, "뻒뻓"],
+ ["9661", "뻕뻖뻙", 6, "뻡뻢뻦", 5, "뻭", 8],
+ ["9681", "뻶", 10, "뼂", 5, "뼊", 13, "뼚뼞", 33, "뽂뽃뽅뽆뽇뽉", 6, "뽒뽓뽔뽖", 44],
+ ["9741", "뾃", 16, "뾕", 8],
+ ["9761", "뾞", 17, "뾱", 7],
+ ["9781", "뾹", 11, "뿆", 5, "뿎뿏뿑뿒뿓뿕", 6, "뿝뿞뿠뿢", 89, "쀽쀾쀿"],
+ ["9841", "쁀", 16, "쁒", 5, "쁙쁚쁛"],
+ ["9861", "쁝쁞쁟쁡", 6, "쁪", 15],
+ ["9881", "쁺", 21, "삒삓삕삖삗삙", 6, "삢삤삦", 5, "삮삱삲삷", 4, "삾샂샃샄샆샇샊샋샍샎샏샑", 6, "샚샞", 5, "샦샧샩샪샫샭", 6, "샶샸샺", 5, "섁섂섃섅섆섇섉", 6, "섑섒섓섔섖", 5, "섡섢섥섨섩섪섫섮"],
+ ["9941", "섲섳섴섵섷섺섻섽섾섿셁", 6, "셊셎", 5, "셖셗"],
+ ["9961", "셙셚셛셝", 6, "셦셪", 5, "셱셲셳셵셶셷셹셺셻"],
+ ["9981", "셼", 8, "솆", 5, "솏솑솒솓솕솗", 4, "솞솠솢솣솤솦솧솪솫솭솮솯솱", 11, "솾", 5, "쇅쇆쇇쇉쇊쇋쇍", 6, "쇕쇖쇙", 6, "쇡쇢쇣쇥쇦쇧쇩", 6, "쇲쇴", 7, "쇾쇿숁숂숃숅", 6, "숎숐숒", 5, "숚숛숝숞숡숢숣"],
+ ["9a41", "숤숥숦숧숪숬숮숰숳숵", 16],
+ ["9a61", "쉆쉇쉉", 6, "쉒쉓쉕쉖쉗쉙", 6, "쉡쉢쉣쉤쉦"],
+ ["9a81", "쉧", 4, "쉮쉯쉱쉲쉳쉵", 6, "쉾슀슂", 5, "슊", 5, "슑", 6, "슙슚슜슞", 5, "슦슧슩슪슫슮", 5, "슶슸슺", 33, "싞싟싡싢싥", 5, "싮싰싲싳싴싵싷싺싽싾싿쌁", 6, "쌊쌋쌎쌏"],
+ ["9b41", "쌐쌑쌒쌖쌗쌙쌚쌛쌝", 6, "쌦쌧쌪", 8],
+ ["9b61", "쌳", 17, "썆", 7],
+ ["9b81", "썎", 25, "썪썫썭썮썯썱썳", 4, "썺썻썾", 5, "쎅쎆쎇쎉쎊쎋쎍", 50, "쏁", 22, "쏚"],
+ ["9c41", "쏛쏝쏞쏡쏣", 4, "쏪쏫쏬쏮", 5, "쏶쏷쏹", 5],
+ ["9c61", "쏿", 8, "쐉", 6, "쐑", 9],
+ ["9c81", "쐛", 8, "쐥", 6, "쐭쐮쐯쐱쐲쐳쐵", 6, "쐾", 9, "쑉", 26, "쑦쑧쑩쑪쑫쑭", 6, "쑶쑷쑸쑺", 5, "쒁", 18, "쒕", 6, "쒝", 12],
+ ["9d41", "쒪", 13, "쒹쒺쒻쒽", 8],
+ ["9d61", "쓆", 25],
+ ["9d81", "쓠", 8, "쓪", 5, "쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂", 9, "씍씎씏씑씒씓씕", 6, "씝", 10, "씪씫씭씮씯씱", 6, "씺씼씾", 5, "앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩", 6, "앲앶", 5, "앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔"],
+ ["9e41", "얖얙얚얛얝얞얟얡", 7, "얪", 9, "얶"],
+ ["9e61", "얷얺얿", 4, "엋엍엏엒엓엕엖엗엙", 6, "엢엤엦엧"],
+ ["9e81", "엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑", 6, "옚옝", 6, "옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉", 6, "왒왖", 5, "왞왟왡", 10, "왭왮왰왲", 5, "왺왻왽왾왿욁", 6, "욊욌욎", 5, "욖욗욙욚욛욝", 6, "욦"],
+ ["9f41", "욨욪", 5, "욲욳욵욶욷욻", 4, "웂웄웆", 5, "웎"],
+ ["9f61", "웏웑웒웓웕", 6, "웞웟웢", 5, "웪웫웭웮웯웱웲"],
+ ["9f81", "웳", 4, "웺웻웼웾", 5, "윆윇윉윊윋윍", 6, "윖윘윚", 5, "윢윣윥윦윧윩", 6, "윲윴윶윸윹윺윻윾윿읁읂읃읅", 4, "읋읎읐읙읚읛읝읞읟읡", 6, "읩읪읬", 7, "읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛", 4, "잢잧", 4, "잮잯잱잲잳잵잶잷"],
+ ["a041", "잸잹잺잻잾쟂", 5, "쟊쟋쟍쟏쟑", 6, "쟙쟚쟛쟜"],
+ ["a061", "쟞", 5, "쟥쟦쟧쟩쟪쟫쟭", 13],
+ ["a081", "쟻", 4, "젂젃젅젆젇젉젋", 4, "젒젔젗", 4, "젞젟젡젢젣젥", 6, "젮젰젲", 5, "젹젺젻젽젾젿졁", 6, "졊졋졎", 5, "졕", 26, "졲졳졵졶졷졹졻", 4, "좂좄좈좉좊좎", 5, "좕", 7, "좞좠좢좣좤"],
+ ["a141", "좥좦좧좩", 18, "좾좿죀죁"],
+ ["a161", "죂죃죅죆죇죉죊죋죍", 6, "죖죘죚", 5, "죢죣죥"],
+ ["a181", "죦", 14, "죶", 5, "죾죿줁줂줃줇", 4, "줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈", 9, "±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬"],
+ ["a241", "줐줒", 5, "줙", 18],
+ ["a261", "줭", 6, "줵", 18],
+ ["a281", "쥈", 7, "쥒쥓쥕쥖쥗쥙", 6, "쥢쥤", 7, "쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®"],
+ ["a341", "쥱쥲쥳쥵", 6, "쥽", 10, "즊즋즍즎즏"],
+ ["a361", "즑", 6, "즚즜즞", 16],
+ ["a381", "즯", 16, "짂짃짅짆짉짋", 4, "짒짔짗짘짛!", 58, "₩]", 32, " ̄"],
+ ["a441", "짞짟짡짣짥짦짨짩짪짫짮짲", 5, "짺짻짽짾짿쨁쨂쨃쨄"],
+ ["a461", "쨅쨆쨇쨊쨎", 5, "쨕쨖쨗쨙", 12],
+ ["a481", "쨦쨧쨨쨪", 28, "ㄱ", 93],
+ ["a541", "쩇", 4, "쩎쩏쩑쩒쩓쩕", 6, "쩞쩢", 5, "쩩쩪"],
+ ["a561", "쩫", 17, "쩾", 5, "쪅쪆"],
+ ["a581", "쪇", 16, "쪙", 14, "ⅰ", 9],
+ ["a5b0", "Ⅰ", 9],
+ ["a5c1", "Α", 16, "Σ", 6],
+ ["a5e1", "α", 16, "σ", 6],
+ ["a641", "쪨", 19, "쪾쪿쫁쫂쫃쫅"],
+ ["a661", "쫆", 5, "쫎쫐쫒쫔쫕쫖쫗쫚", 5, "쫡", 6],
+ ["a681", "쫨쫩쫪쫫쫭", 6, "쫵", 18, "쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃", 7],
+ ["a741", "쬋", 4, "쬑쬒쬓쬕쬖쬗쬙", 6, "쬢", 7],
+ ["a761", "쬪", 22, "쭂쭃쭄"],
+ ["a781", "쭅쭆쭇쭊쭋쭍쭎쭏쭑", 6, "쭚쭛쭜쭞", 5, "쭥", 7, "㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙", 9, "㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰", 9, "㎀", 4, "㎺", 5, "㎐", 4, "Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆"],
+ ["a841", "쭭", 10, "쭺", 14],
+ ["a861", "쮉", 18, "쮝", 6],
+ ["a881", "쮤", 19, "쮹", 11, "ÆÐªĦ"],
+ ["a8a6", "IJ"],
+ ["a8a8", "ĿŁØŒºÞŦŊ"],
+ ["a8b1", "㉠", 27, "ⓐ", 25, "①", 14, "½⅓⅔¼¾⅛⅜⅝⅞"],
+ ["a941", "쯅", 14, "쯕", 10],
+ ["a961", "쯠쯡쯢쯣쯥쯦쯨쯪", 18],
+ ["a981", "쯽", 14, "찎찏찑찒찓찕", 6, "찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀", 27, "⒜", 25, "⑴", 14, "¹²³⁴ⁿ₁₂₃₄"],
+ ["aa41", "찥찦찪찫찭찯찱", 6, "찺찿", 4, "챆챇챉챊챋챍챎"],
+ ["aa61", "챏", 4, "챖챚", 5, "챡챢챣챥챧챩", 6, "챱챲"],
+ ["aa81", "챳챴챶", 29, "ぁ", 82],
+ ["ab41", "첔첕첖첗첚첛첝첞첟첡", 6, "첪첮", 5, "첶첷첹"],
+ ["ab61", "첺첻첽", 6, "쳆쳈쳊", 5, "쳑쳒쳓쳕", 5],
+ ["ab81", "쳛", 8, "쳥", 6, "쳭쳮쳯쳱", 12, "ァ", 85],
+ ["ac41", "쳾쳿촀촂", 5, "촊촋촍촎촏촑", 6, "촚촜촞촟촠"],
+ ["ac61", "촡촢촣촥촦촧촩촪촫촭", 11, "촺", 4],
+ ["ac81", "촿", 28, "쵝쵞쵟А", 5, "ЁЖ", 25],
+ ["acd1", "а", 5, "ёж", 25],
+ ["ad41", "쵡쵢쵣쵥", 6, "쵮쵰쵲", 5, "쵹", 7],
+ ["ad61", "춁", 6, "춉", 10, "춖춗춙춚춛춝춞춟"],
+ ["ad81", "춠춡춢춣춦춨춪", 5, "춱", 18, "췅"],
+ ["ae41", "췆", 5, "췍췎췏췑", 16],
+ ["ae61", "췢", 5, "췩췪췫췭췮췯췱", 6, "췺췼췾", 4],
+ ["ae81", "츃츅츆츇츉츊츋츍", 6, "츕츖츗츘츚", 5, "츢츣츥츦츧츩츪츫"],
+ ["af41", "츬츭츮츯츲츴츶", 19],
+ ["af61", "칊", 13, "칚칛칝칞칢", 5, "칪칬"],
+ ["af81", "칮", 5, "칶칷칹칺칻칽", 6, "캆캈캊", 5, "캒캓캕캖캗캙"],
+ ["b041", "캚", 5, "캢캦", 5, "캮", 12],
+ ["b061", "캻", 5, "컂", 19],
+ ["b081", "컖", 13, "컦컧컩컪컭", 6, "컶컺", 5, "가각간갇갈갉갊감", 7, "같", 4, "갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆"],
+ ["b141", "켂켃켅켆켇켉", 6, "켒켔켖", 5, "켝켞켟켡켢켣"],
+ ["b161", "켥", 6, "켮켲", 5, "켹", 11],
+ ["b181", "콅", 14, "콖콗콙콚콛콝", 6, "콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸"],
+ ["b241", "콭콮콯콲콳콵콶콷콹", 6, "쾁쾂쾃쾄쾆", 5, "쾍"],
+ ["b261", "쾎", 18, "쾢", 5, "쾩"],
+ ["b281", "쾪", 5, "쾱", 18, "쿅", 6, "깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙"],
+ ["b341", "쿌", 19, "쿢쿣쿥쿦쿧쿩"],
+ ["b361", "쿪", 5, "쿲쿴쿶", 5, "쿽쿾쿿퀁퀂퀃퀅", 5],
+ ["b381", "퀋", 5, "퀒", 5, "퀙", 19, "끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫", 4, "낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝"],
+ ["b441", "퀮", 5, "퀶퀷퀹퀺퀻퀽", 6, "큆큈큊", 5],
+ ["b461", "큑큒큓큕큖큗큙", 6, "큡", 10, "큮큯"],
+ ["b481", "큱큲큳큵", 6, "큾큿킀킂", 18, "뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫", 4, "닳담답닷", 4, "닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥"],
+ ["b541", "킕", 14, "킦킧킩킪킫킭", 5],
+ ["b561", "킳킶킸킺", 5, "탂탃탅탆탇탊", 5, "탒탖", 4],
+ ["b581", "탛탞탟탡탢탣탥", 6, "탮탲", 5, "탹", 11, "덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸"],
+ ["b641", "턅", 7, "턎", 17],
+ ["b661", "턠", 15, "턲턳턵턶턷턹턻턼턽턾"],
+ ["b681", "턿텂텆", 5, "텎텏텑텒텓텕", 6, "텞텠텢", 5, "텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗"],
+ ["b741", "텮", 13, "텽", 6, "톅톆톇톉톊"],
+ ["b761", "톋", 20, "톢톣톥톦톧"],
+ ["b781", "톩", 6, "톲톴톶톷톸톹톻톽톾톿퇁", 14, "래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩"],
+ ["b841", "퇐", 7, "퇙", 17],
+ ["b861", "퇫", 8, "퇵퇶퇷퇹", 13],
+ ["b881", "툈툊", 5, "툑", 24, "륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많", 4, "맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼"],
+ ["b941", "툪툫툮툯툱툲툳툵", 6, "툾퉀퉂", 5, "퉉퉊퉋퉌"],
+ ["b961", "퉍", 14, "퉝", 6, "퉥퉦퉧퉨"],
+ ["b981", "퉩", 22, "튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바", 4, "받", 4, "밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗"],
+ ["ba41", "튍튎튏튒튓튔튖", 5, "튝튞튟튡튢튣튥", 6, "튭"],
+ ["ba61", "튮튯튰튲", 5, "튺튻튽튾틁틃", 4, "틊틌", 5],
+ ["ba81", "틒틓틕틖틗틙틚틛틝", 6, "틦", 9, "틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤"],
+ ["bb41", "틻", 4, "팂팄팆", 5, "팏팑팒팓팕팗", 4, "팞팢팣"],
+ ["bb61", "팤팦팧팪팫팭팮팯팱", 6, "팺팾", 5, "퍆퍇퍈퍉"],
+ ["bb81", "퍊", 31, "빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤"],
+ ["bc41", "퍪", 17, "퍾퍿펁펂펃펅펆펇"],
+ ["bc61", "펈펉펊펋펎펒", 5, "펚펛펝펞펟펡", 6, "펪펬펮"],
+ ["bc81", "펯", 4, "펵펶펷펹펺펻펽", 6, "폆폇폊", 5, "폑", 5, "샥샨샬샴샵샷샹섀섄섈섐섕서", 4, "섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭"],
+ ["bd41", "폗폙", 7, "폢폤", 7, "폮폯폱폲폳폵폶폷"],
+ ["bd61", "폸폹폺폻폾퐀퐂", 5, "퐉", 13],
+ ["bd81", "퐗", 5, "퐞", 25, "숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰"],
+ ["be41", "퐸", 7, "푁푂푃푅", 14],
+ ["be61", "푔", 7, "푝푞푟푡푢푣푥", 7, "푮푰푱푲"],
+ ["be81", "푳", 4, "푺푻푽푾풁풃", 4, "풊풌풎", 5, "풕", 8, "쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄", 6, "엌엎"],
+ ["bf41", "풞", 10, "풪", 14],
+ ["bf61", "풹", 18, "퓍퓎퓏퓑퓒퓓퓕"],
+ ["bf81", "퓖", 5, "퓝퓞퓠", 7, "퓩퓪퓫퓭퓮퓯퓱", 6, "퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염", 5, "옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨"],
+ ["c041", "퓾", 5, "픅픆픇픉픊픋픍", 6, "픖픘", 5],
+ ["c061", "픞", 25],
+ ["c081", "픸픹픺픻픾픿핁핂핃핅", 6, "핎핐핒", 5, "핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응", 7, "읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊"],
+ ["c141", "핤핦핧핪핬핮", 5, "핶핷핹핺핻핽", 6, "햆햊햋"],
+ ["c161", "햌햍햎햏햑", 19, "햦햧"],
+ ["c181", "햨", 31, "점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓"],
+ ["c241", "헊헋헍헎헏헑헓", 4, "헚헜헞", 5, "헦헧헩헪헫헭헮"],
+ ["c261", "헯", 4, "헶헸헺", 5, "혂혃혅혆혇혉", 6, "혒"],
+ ["c281", "혖", 5, "혝혞혟혡혢혣혥", 7, "혮", 9, "혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻"],
+ ["c341", "혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝", 4],
+ ["c361", "홢", 4, "홨홪", 5, "홲홳홵", 11],
+ ["c381", "횁횂횄횆", 5, "횎횏횑횒횓횕", 7, "횞횠횢", 5, "횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층"],
+ ["c441", "횫횭횮횯횱", 7, "횺횼", 7, "훆훇훉훊훋"],
+ ["c461", "훍훎훏훐훒훓훕훖훘훚", 5, "훡훢훣훥훦훧훩", 4],
+ ["c481", "훮훯훱훲훳훴훶", 5, "훾훿휁휂휃휅", 11, "휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼"],
+ ["c541", "휕휖휗휚휛휝휞휟휡", 6, "휪휬휮", 5, "휶휷휹"],
+ ["c561", "휺휻휽", 6, "흅흆흈흊", 5, "흒흓흕흚", 4],
+ ["c581", "흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵", 6, "흾흿힀힂", 5, "힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜"],
+ ["c641", "힍힎힏힑", 6, "힚힜힞", 5],
+ ["c6a1", "퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁"],
+ ["c7a1", "퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠"],
+ ["c8a1", "혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝"],
+ ["caa1", "伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕"],
+ ["cba1", "匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢"],
+ ["cca1", "瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械"],
+ ["cda1", "棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜"],
+ ["cea1", "科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾"],
+ ["cfa1", "區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴"],
+ ["d0a1", "鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣"],
+ ["d1a1", "朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩", 5, "那樂", 4, "諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉"],
+ ["d2a1", "納臘蠟衲囊娘廊", 4, "乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧", 5, "駑魯", 10, "濃籠聾膿農惱牢磊腦賂雷尿壘", 7, "嫩訥杻紐勒", 5, "能菱陵尼泥匿溺多茶"],
+ ["d3a1", "丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃"],
+ ["d4a1", "棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅"],
+ ["d5a1", "蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣"],
+ ["d6a1", "煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼"],
+ ["d7a1", "遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬"],
+ ["d8a1", "立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅"],
+ ["d9a1", "蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文"],
+ ["daa1", "汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑"],
+ ["dba1", "發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖"],
+ ["dca1", "碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦"],
+ ["dda1", "孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥"],
+ ["dea1", "脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索"],
+ ["dfa1", "傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署"],
+ ["e0a1", "胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬"],
+ ["e1a1", "聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁"],
+ ["e2a1", "戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧"],
+ ["e3a1", "嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁"],
+ ["e4a1", "沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額"],
+ ["e5a1", "櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬"],
+ ["e6a1", "旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒"],
+ ["e7a1", "簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳"],
+ ["e8a1", "烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療"],
+ ["e9a1", "窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓"],
+ ["eaa1", "運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜"],
+ ["eba1", "濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼"],
+ ["eca1", "議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄"],
+ ["eda1", "立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長"],
+ ["eea1", "障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱"],
+ ["efa1", "煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖"],
+ ["f0a1", "靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫"],
+ ["f1a1", "踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只"],
+ ["f2a1", "咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯"],
+ ["f3a1", "鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策"],
+ ["f4a1", "責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢"],
+ ["f5a1", "椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃"],
+ ["f6a1", "贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託"],
+ ["f7a1", "鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑"],
+ ["f8a1", "阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃"],
+ ["f9a1", "品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航"],
+ ["faa1", "行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型"],
+ ["fba1", "形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵"],
+ ["fca1", "禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆"],
+ ["fda1", "爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"]
+ ];
+});
+
+// node_modules/iconv-lite/encodings/tables/cp950.json
+var require_cp950 = __commonJS((exports, module) => {
+ module.exports = [
+ ["0", "\x00", 127],
+ ["a140", " ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"],
+ ["a1a1", "﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢", 4, "~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/"],
+ ["a240", "\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁", 7, "▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭"],
+ ["a2a1", "╮╰╯═╞╪╡◢◣◥◤╱╲╳0", 9, "Ⅰ", 9, "〡", 8, "十卄卅A", 25, "a", 21],
+ ["a340", "wxyzΑ", 16, "Σ", 6, "α", 16, "σ", 6, "ㄅ", 10],
+ ["a3a1", "ㄐ", 25, "˙ˉˊˇˋ"],
+ ["a3e1", "€"],
+ ["a440", "一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才"],
+ ["a4a1", "丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙"],
+ ["a540", "世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外"],
+ ["a5a1", "央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全"],
+ ["a640", "共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年"],
+ ["a6a1", "式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣"],
+ ["a740", "作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍"],
+ ["a7a1", "均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠"],
+ ["a840", "杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒"],
+ ["a8a1", "芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵"],
+ ["a940", "咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居"],
+ ["a9a1", "屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊"],
+ ["aa40", "昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠"],
+ ["aaa1", "炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附"],
+ ["ab40", "陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品"],
+ ["aba1", "哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷"],
+ ["ac40", "拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗"],
+ ["aca1", "活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄"],
+ ["ad40", "耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥"],
+ ["ada1", "迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪"],
+ ["ae40", "哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙"],
+ ["aea1", "恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓"],
+ ["af40", "浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷"],
+ ["afa1", "砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃"],
+ ["b040", "虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡"],
+ ["b0a1", "陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀"],
+ ["b140", "娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽"],
+ ["b1a1", "情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺"],
+ ["b240", "毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶"],
+ ["b2a1", "瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼"],
+ ["b340", "莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途"],
+ ["b3a1", "部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠"],
+ ["b440", "婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍"],
+ ["b4a1", "插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋"],
+ ["b540", "溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘"],
+ ["b5a1", "窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁"],
+ ["b640", "詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑"],
+ ["b6a1", "間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼"],
+ ["b740", "媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業"],
+ ["b7a1", "楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督"],
+ ["b840", "睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫"],
+ ["b8a1", "腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊"],
+ ["b940", "辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴"],
+ ["b9a1", "飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇"],
+ ["ba40", "愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢"],
+ ["baa1", "滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬"],
+ ["bb40", "罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤"],
+ ["bba1", "說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜"],
+ ["bc40", "劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂"],
+ ["bca1", "慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃"],
+ ["bd40", "瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯"],
+ ["bda1", "翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞"],
+ ["be40", "輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉"],
+ ["bea1", "鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡"],
+ ["bf40", "濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊"],
+ ["bfa1", "縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚"],
+ ["c040", "錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇"],
+ ["c0a1", "嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬"],
+ ["c140", "瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪"],
+ ["c1a1", "薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁"],
+ ["c240", "駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘"],
+ ["c2a1", "癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦"],
+ ["c340", "鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸"],
+ ["c3a1", "獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類"],
+ ["c440", "願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼"],
+ ["c4a1", "纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴"],
+ ["c540", "護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬"],
+ ["c5a1", "禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒"],
+ ["c640", "讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲"],
+ ["c940", "乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕"],
+ ["c9a1", "氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋"],
+ ["ca40", "汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘"],
+ ["caa1", "吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇"],
+ ["cb40", "杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓"],
+ ["cba1", "芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢"],
+ ["cc40", "坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋"],
+ ["cca1", "怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲"],
+ ["cd40", "泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺"],
+ ["cda1", "矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏"],
+ ["ce40", "哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛"],
+ ["cea1", "峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺"],
+ ["cf40", "柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂"],
+ ["cfa1", "洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀"],
+ ["d040", "穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪"],
+ ["d0a1", "苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱"],
+ ["d140", "唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧"],
+ ["d1a1", "恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤"],
+ ["d240", "毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸"],
+ ["d2a1", "牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐"],
+ ["d340", "笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢"],
+ ["d3a1", "荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐"],
+ ["d440", "酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅"],
+ ["d4a1", "唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏"],
+ ["d540", "崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟"],
+ ["d5a1", "捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉"],
+ ["d640", "淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏"],
+ ["d6a1", "痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟"],
+ ["d740", "耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷"],
+ ["d7a1", "蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪"],
+ ["d840", "釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷"],
+ ["d8a1", "堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔"],
+ ["d940", "惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒"],
+ ["d9a1", "晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞"],
+ ["da40", "湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖"],
+ ["daa1", "琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥"],
+ ["db40", "罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳"],
+ ["dba1", "菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺"],
+ ["dc40", "軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈"],
+ ["dca1", "隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆"],
+ ["dd40", "媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤"],
+ ["dda1", "搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼"],
+ ["de40", "毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓"],
+ ["dea1", "煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓"],
+ ["df40", "稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯"],
+ ["dfa1", "腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤"],
+ ["e040", "觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿"],
+ ["e0a1", "遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠"],
+ ["e140", "凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠"],
+ ["e1a1", "寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉"],
+ ["e240", "榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊"],
+ ["e2a1", "漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓"],
+ ["e340", "禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞"],
+ ["e3a1", "耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻"],
+ ["e440", "裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍"],
+ ["e4a1", "銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘"],
+ ["e540", "噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉"],
+ ["e5a1", "憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒"],
+ ["e640", "澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙"],
+ ["e6a1", "獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟"],
+ ["e740", "膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢"],
+ ["e7a1", "蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧"],
+ ["e840", "踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓"],
+ ["e8a1", "銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮"],
+ ["e940", "噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺"],
+ ["e9a1", "憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸"],
+ ["ea40", "澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙"],
+ ["eaa1", "瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘"],
+ ["eb40", "蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠"],
+ ["eba1", "諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌"],
+ ["ec40", "錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕"],
+ ["eca1", "魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎"],
+ ["ed40", "檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶"],
+ ["eda1", "瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞"],
+ ["ee40", "蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞"],
+ ["eea1", "謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜"],
+ ["ef40", "鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰"],
+ ["efa1", "鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶"],
+ ["f040", "璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒"],
+ ["f0a1", "臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧"],
+ ["f140", "蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪"],
+ ["f1a1", "鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰"],
+ ["f240", "徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛"],
+ ["f2a1", "礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕"],
+ ["f340", "譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦"],
+ ["f3a1", "鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲"],
+ ["f440", "嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩"],
+ ["f4a1", "禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿"],
+ ["f540", "鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛"],
+ ["f5a1", "鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥"],
+ ["f640", "蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺"],
+ ["f6a1", "騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚"],
+ ["f740", "糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊"],
+ ["f7a1", "驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾"],
+ ["f840", "讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏"],
+ ["f8a1", "齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚"],
+ ["f940", "纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊"],
+ ["f9a1", "龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"]
+ ];
+});
+
+// node_modules/iconv-lite/encodings/tables/big5-added.json
+var require_big5_added = __commonJS((exports, module) => {
+ module.exports = [
+ ["8740", "䏰䰲䘃䖦䕸\uD85C\uDE67䵷䖳\uD85F\uDCB1䳢\uD85F\uDCC5㮕䜶䝄䱇䱀\uD850\uDEBF\uD84D\uDE17\uD85C\uDF52\uD85B\uDE8B\uD85C\uDCD2䱗\uD868\uDF51䝏䗚䲅\uD85F\uDC6C䴇䪤䚡\uD85A\uDF23爥\uD856\uDE54\uD846\uDE63\uD84F\uDE06\uD84F\uDF61晍囻"],
+ ["8767", "綕夝\uD862\uDFB9㷴霴\uD85E\uDFEF寛\uD847\uDD5E媤㘥\uD867\uDEB0嫑宷峼杮薓\uD866\uDD45瑡璝㡵\uD847\uDD53\uD84D\uDE9E\uD858\uDC21㻬"],
+ ["87a1", "\uD856\uDCDE㫵竼龗\uD850\uDD61\uD862\uDD0D\uD84C\uDDEA\uD842\uDE8A\uD84C\uDE5E䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄\uD857\uDDB9瓆鿇垳䤯呌䄱\uD84D\uDE8E堘穲\uD85E\uDF65讏䚮\uD85B\uDE88䆁\uD857\uDD99箮\uD849\uDCBC鿈\uD849\uDCC1\uD849\uDCC9\uD849\uDCCC鿉蔄\uD84D\uDDBB䂴鿊䓡\uD86B\uDDFF拁灮鿋"],
+ ["8840", "㇀", 4, "\uD840\uDD0C㇅\uD840\uDCD1\uD840\uDCCD㇆㇇\uD840\uDCCB\uD847\uDFE8㇈\uD840\uDCCA㇉㇊㇋㇌\uD840\uDD0E㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒ࿿Ê̄Ế࿿Ê̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ"],
+ ["88a1", "ǜü࿿ê̄ế࿿ê̌ềêɡ⏚⏛"],
+ ["8940", "\uD868\uDFA9\uD844\uDD45"],
+ ["8943", "攊"],
+ ["8946", "丽滝鵎釟"],
+ ["894c", "\uD85D\uDF35撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"],
+ ["89a1", "琑糼緍楆竉刧"],
+ ["89ab", "醌碸酞肼"],
+ ["89b0", "贋胶\uD842\uDDE7"],
+ ["89b5", "肟黇䳍鷉鸌䰾\uD867\uDDF6\uD85C\uDC0E鸊\uD868\uDD33㗁"],
+ ["89c1", "溚舾甙"],
+ ["89c5", "䤑马骏龙禇\uD861\uDC6C\uD847\uDDCA\uD841\uDDD0\uD84A\uDEE6两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"],
+ ["8a40", "\uD85F\uDD84唥"],
+ ["8a43", "\uD843\uDC42\uD843\uDD15\uD854\uDD2B喐\uD84B\uDCC6㧬\uD840\uDF41蹆\uD853\uDDB8\uD865\uDCE5䁓\uD860\uDCBE睺\uD84B\uDC38㨴䟕\uD860\uDD5D\uD85A\uDDF2\uD853\uDDEA擝\uD843\uDD7C\uD843\uDFB4\uD843\uDCD5\uD844\uDCF4撍蹾\uD843\uDE96\uD843\uDC0B\uD843\uDF64\uD84B\uDCA9\uD860\uDE56\uD851\uDCD3"],
+ ["8a64", "\uD843\uDD46\uD866\uDE4D\uD860\uDCE9䟴\uD853\uDEA7\uD84B\uDCC2骲㩧\uD865\uDDF4㿭㔆\uD854\uDEC7\uD865\uDFD4\uD85E\uDCC8\uD84B\uDD44鵮頕"],
+ ["8a76", "䏙\uD858\uDCA5撴哣\uD84B\uDD4C\uD84A\uDFCA\uD844\uDC77㧻\uD844\uDC6F"],
+ ["8aa1", "\uD859\uDEDA\uD859\uDF16\uD85E\uDDA0擪\uD854\uDC52\uD843\uDC43蹨\uD848\uDDA1\uD862\uDF4C\uD841\uDF31"],
+ ["8aac", "䠋\uD840\uDDA9㿺塳\uD84B\uDD8D"],
+ ["8ab2", "\uD851\uDDC8\uD841\uDCFC\uD858\uDC97\uD843\uDF4C\uD843\uDD96啹䂻䎺"],
+ ["8abb", "䪴\uD84A\uDE66\uD844\uDC9D膪飵\uD843\uDD9C捹㧾\uD849\uDF75跀嚡摼㹃"],
+ ["8ac9", "\uD869\uDE01\uD843\uDE09\uD84A\uDECF\uD84B\uDCC9"],
+ ["8ace", "\uD844\uDCC8\uD84E\uDDC2㦒㨆\uD860\uDE9B㕸\uD857\uDE49\uD848\uDCC7噒\uD843\uDF31\uD84B\uDCB2\uD865\uDF20㒼氽\uD853\uDE3B"],
+ ["8adf", "\uD85D\uDD74\uD84B\uDE8B\uD848\uDE08\uD869\uDE5B\uD863\uDCCD\uD843\uDE7A\uD843\uDC34\uD85A\uDC1C羓\uD844\uDCCF\uD84A\uDC03\uD84A\uDD39㗻\uD854\uDDE3\uD843\uDE8C\uD843\uDF8D\uD843\uDEAA㾓\uD843\uDF30\uD843\uDD47\uD844\uDD4F\uD843\uDE4C"],
+ ["8af6", "\uD843\uDEAB\uD842\uDFA9\uD843\uDD48\uD844\uDCC0\uD844\uDD3D㿹\uD849\uDE96搲\uD843\uDFAD"],
+ ["8b40", "\uD84C\uDFF4\uD85D\uDE39\uD84A\uDFCE\uD843\uDD7E\uD843\uDD7F\uD84B\uDC51\uD84B\uDC55㨘\uD843\uDE98\uD844\uDCC7\uD843\uDF2E\uD869\uDE32\uD85A\uDF50\uD863\uDCD2\uD863\uDD99\uD863\uDCCA閪哌苄喹"],
+ ["8b55", "\uD867\uDEC3鰦骶\uD85D\uDF5E\uD84B\uDDEE煀腭胬尜\uD859\uDD72脴㞗卟\uD860\uDCBD醶\uD843\uDEFA\uD843\uDE0F\uD843\uDE77\uD843\uDEFB㗝\uD853\uDDEB㘉\uD843\uDCD6嚯\uD849\uDFB5\uD844\uDCC9\uD843\uDE10\uD843\uDE78\uD844\uDC78\uD844\uDD48\uD860\uDE07\uD845\uDC55\uD843\uDE79\uD853\uDE50\uD84B\uDDA4婔\uD844\uDC1D\uD844\uDC1E\uD844\uDCF5\uD844\uDCF6垜\uD843\uDE11"],
+ ["8ba1", "\uD85D\uDE94\uD860\uDECD\uD843\uDFB5\uD843\uDE7B\uD854\uDD7E㜃\uD843\uDFB6\uD844\uDD80\uD854\uDED8\uD868\uDEBD\uD852\uDDDA\uD846\uDC3A\uD850\uDD77\uD860\uDE7C墙剨㘚\uD855\uDF3D箲孨䠀䬬鼧䧧鰟鮍\uD856\uDF74\uD84C\uDD3D嗻㗲嚉丨夂\uD846\uDFC1\uD87E\uDC78靑\uD840\uDC86乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭\uD852\uDCE9罒礻糹罓\uD858\uDE6A㓁"],
+ ["8bde", "\uD858\uDF4B耂肀\uD859\uDE12\uD85A\uDD51卝衤见\uD85E\uDCB2讠贝钅镸长门\uD863\uDE0F韦页风飞饣\uD866\uDC10鱼鸟黄歯龜丷\uD840\uDC87阝户钢"],
+ ["8c40", "倻淾\uD867\uDC73龦㷉袏\uD850\uDD4E灷峵䬠\uD854\uDDCD㕙\uD857\uDD30愢\uD862\uDE32辧釶熑朙玺\uD84C\uDE81\uD868\uDD07㲋\uD846\uDD80䬐磤琂冮\uD861\uDF0F䀉橣\uD868\uDEBA䈣蘏\uD842\uDE6F稪\uD866\uDD47\uD862\uDEEA靕灍匤\uD848\uDC7E鏴盙\uD862\uDDE3龧矝亣俰傼丯众龨吴綋墒壐\uD847\uDDB6庒庙忂\uD849\uDF12斋"],
+ ["8ca1", "\uD84C\uDFF9椙橃\uD84F\uDC63泿"],
+ ["8ca7", "爀\uD851\uDD05玌㻛\uD852\uDE13嬕璹讃\uD857\uDCA4\uD855\uDE95窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬\uD863\uDDB9\uD845\uDC3F䁱䊢娚"],
+ ["8cc9", "顨杫䉶圽"],
+ ["8cce", "藖\uD852\uDD7B芿\uD85C\uDD0D䲁\uD85B\uDD74嵻\uD85A\uDF15\uD85B\uDFBE龭龮宖龯曧繛湗秊㶈䓃\uD84C\uDE56\uD849\uDF96䎚䔶"],
+ ["8ce6", "峕\uD84E\uDF1A諹屸㴒\uD84D\uDD51嵸龲煗䕘\uD850\uDCEC\uD847\uDE23䱷㥸㑊\uD840\uDDA4\uD85B\uDC41諌侴\uD840\uDE39妿腬顖\uD866\uDCFA弻"],
+ ["8d40", "\uD842\uDF9F"],
+ ["8d42", "\uD848\uDDC1\uD862\uDD6D䄂䚻\uD864\uDC79㼇龳\uD868\uDDB5䃸㟖䛷\uD85B\uDC46䅼\uD861\uDEB2\uD85C\uDFFF䕭㣔\uD855\uDC9A䕡䔛䶉䱻䵶䗪㿈\uD852\uDF0F㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"],
+ ["8da1", "㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆\uD862\uDDC0溻滢滚齿滨滩漤漴㵆\uD84F\uDF41澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉\uD840\uDF25䏁㗱\uD843\uDED8"],
+ ["8e40", "\uD84F\uDED7垾\uD85B\uDED3焾\uD855\uDFE0㙎榢\uD862\uDFE9孴穉\uD856\uDCE1\uD865\uDCD9穥穽\uD856\uDDAC窻窰竂竃燑\uD859\uDC8D䇊竚竝竪䇯咲\uD857\uDC01笋筕笩\uD854\uDF0E\uD857\uDCFE箢筯莜\uD856\uDFB4\uD85B\uDC7F篐萡箒箸\uD857\uDD20㶭\uD857\uDC65蒒篺簆簵\uD857\uDCC1籄粃\uD852\uDC82粦晽\uD851\uDD78糉糇糦籴糳糵糎"],
+ ["8ea1", "繧䔝\uD85B\uDE44絝\uD85B\uDED6璍綉綫焵綳緒\uD850\uDC57\uD858\uDC29緤㴓緵\uD845\uDFF9緥\uD860\uDF6D縝\uD858\uDD21\uD858\uDD5A繮纒䌫鑬縧罀罁罇礶\uD858\uDED0駡羗\uD858\uDF51羣\uD845\uDE61\uD840\uDC68䕜\uD84D\uDF66䔃\uD860\uDF3A翺\uD859\uDC89者耈耝耨耯\uD868\uDC87\uD85B\uDCC3耻耼聡\uD849\uDF14䦉\uD859\uDE26\uD84F\uDDE3\uD859\uDEE8朥肧\uD862\uDE48脇脚墰\uD849\uDEF6汿\uD859\uDC98\uD853\uDFB8擧\uD845\uDC8A舘\uD846\uDC5E橓\uD852\uDE65\uD852\uDE95䑺舩\uD842\uDF0D\uD85A\uDE52\uD84F\uDD7E俹\uD845\uDCFD蓢荢\uD85A\uDF0A\uD852\uDDA7\uD84D\uDD30\uD845\uDF73\uD84F\uDDF8芪椛\uD87E\uDD94䇛"],
+ ["8f40", "蕋苐茚\uD843\uDE16\uD845\uDFB4㛁\uD84C\uDD7D\uD84D\uDD5A艻苢茘\uD84F\uDE8B\uD85B\uDDA3\uD85A\uDF05\uD85A\uDF97\uD84D\uDDCE㶿茝嗬莅䔋\uD85B\uDDA5莬菁菓㑾\uD85B\uDED4橗蕚㒖\uD85B\uDE42\uD84B\uDEEF葘\uD856\uDFE4葱㷓䓤檧葊\uD84F\uDCB5祘蒨\uD85A\uDF96\uD85B\uDE77\uD85B\uDE43蓞萏莑䒠蒓蓤\uD857\uDC91䉀\uD857\uDCC0䕃蔴嫲\uD85B\uDE99䔧蕳䔖枿蘖"],
+ ["8fa1", "\uD861\uDE25\uD861\uDE3B藁\uD85C\uDC88蘂\uD845\uDD82\uD85C\uDCCD\uD87E\uDDB2䕪蘨㙈\uD846\uDCA2号\uD85C\uDF9A虾蝱\uD868\uDCF8蟮\uD84B\uDC27螱蟚蠏噡虬桖䘏衅衆\uD85D\uDDE0\uD84F\uDDB9\uD85D\uDDE4衞袜䙛袴袵揁装睷\uD85D\uDF0F覇覊覦覩覧覼\uD862\uDE25觧\uD85E\uDD24\uD85E\uDEBD誜瞓釾誐\uD85E\uDE59竩\uD85E\uDF3A\uD84F\uDF8F䜓\uD85E\uDF38煼謌謟\uD855\uDC30\uD855\uDD65謿譌譍誩\uD852\uDE7A讐讛誯\uD845\uDEDF䘕衏貛\uD85F\uDD54\uD85F\uDD8F\uD87E\uDDD4㜥\uD85F\uDD53賖\uD85F\uDD98\uD85F\uDDBD贒贃\uD846\uDD10賛灜贑\uD853\uDCC9㻐起"],
+ ["9040", "趩\uD860\uDC02\uD844\uDC14\uD852\uDD8A㭼\uD860\uDDBC\uD85C\uDD0C竧躭躶軃鋔輙輭\uD860\uDF65\uD861\uDC12辥錃\uD868\uDE9F\uD842\uDE50辳䤪\uD862\uDDDE\uD861\uDD3D\uD84F\uDDBB廸\uD84C\uDE62迹\uD868\uDC14\uD861\uDEBC\uD861\uDD01\uD848\uDF25㦀\uD85B\uDED7逷\uD861\uDD3C\uD85E\uDEBE遡\uD861\uDD6C\uD861\uDE0B邨\uD861\uDF13郄\uD861\uDEE6邮都酧㫰醩釄粬\uD862\uDD33\uD847\uDE89鈎沟鉁鉢\uD855\uDDB9銹\uD862\uDEC6\uD84F\uDC9B\uD862\uDF0C\uD855\uDDDB"],
+ ["90a1", "\uD843\uDD31錬鍫\uD862\uDEE1\uD862\uDFEB炏嫃\uD862\uDEE2\uD862\uDEE5䥥鉄\uD862\uDFEC\uD863\uDC39\uD862\uDFFF鍳鑛躼閅閦鐦閠濶䊹\uD849\uDE7A\uD861\uDED8\uD844\uDE7C\uD84F\uDE2E䧟氜陻隖䅬隣\uD85B\uDED5懚隶磵\uD862\uDEE0隽双䦡\uD85B\uDCB8\uD840\uDE74\uD859\uDC10\uD864\uDCAF\uD864\uDCE5\uD852\uDED1\uD846\uDD15\uD84C\uDF0A霱虂霶䨏䔽䖅\uD852\uDEE9灵孁霛靜\uD864\uDDD5靗孊\uD864\uDDEB靟鐥僐\uD84C\uDCB7\uD84C\uDCBC鞉鞟鞱鞾韀韒韠\uD855\uDC6C韮琜\uD865\uDC33響韵\uD865\uDC1D\uD85E\uDD7A䫑頴頳顋顦㬎\uD85C\uDD75㵑\uD841\uDE30\uD850\uDD5C"],
+ ["9140", "\uD855\uDF06飊颷飈飇䫿\uD85B\uDD27\uD845\uDED3喰飡飦飬鍸餹\uD852\uDE29䭲\uD866\uDC57\uD866\uDD05駵騌騻騐驘\uD855\uDF25㛄\uD864\uDCB1\uD866\uDFD5髠髢\uD866\uDF05髴䰎鬔鬭\uD861\uDE00倴鬴\uD85A\uDDA8㣃\uD84C\uDC7D魐魀\uD867\uDD3E婅\uD846\uDC63鮎\uD850\uDE4B鰂鯿鰌\uD867\uDE68鷔\uD867\uDFB7\uD868\uDD92\uD868\uDDAB\uD868\uDCE1\uD868\uDD23\uD868\uDDDF鵾鶃\uD868\uDD34鸎梈"],
+ ["91a1", "鷄\uD848\uDD5B\uD868\uDD93\uD868\uDE20\uD846\uDD3B\uD868\uDE33鴹\uD868\uDCB9\uD868\uDEB4麐麕麞麢䴴麪麯\uD850\uDF64黁㭠㧥㴝伲㞾\uD863\uDC2B鼂鼈䮖鐤\uD85B\uDDA2鼗鼖鼹嚟嚊齅馸\uD864\uDC8B韲葿齢齩竜龎爖䮾\uD852\uDD75\uD852\uDDBB煷\uD852\uDDF8\uD850\uDF48\uD852\uDE51玞\uD862\uDFDA\uD846\uDCFA禟\uD862\uDD7E\uD863\uDE36鍩鏳\uD862\uDE44鋬鎁鏋\uD862\uDD6C\uD851\uDCB9爗㻫睲穃烐\uD851\uDC73\uD850\uDFF8煾\uD845\uDFEF炣\uD846\uDCBE\uD84D\uDD99㻇\uD846\uDC85\uD855\uDC2F\uD845\uDFF8㜢\uD845\uDEFB\uD846\uDC39㛡\uD845\uDF74\uD846\uDCD1\uD857\uDF4B㜣\uD845\uDEC0坛\uD852\uDE25\uD844\uDFFE\uD844\uDEA8"],
+ ["9240", "\uD844\uDFC6\uD845\uDCB6蔃\uD84D\uDEA6蔃葕\uD852\uDD94\uD85C\uDD65\uD84F\uDE31\uD855\uDD5C\uD84F\uDEFB\uD85C\uDC52䓴\uD84D\uDEEE\uD866\uDD9D\uD85B\uDF26柹㜳㰕㷧塬\uD846\uDD22栐䁗\uD84D\uDF3F\uD850\uDCE1\uD850\uDC8B\uD850\uDD0F\uD85B\uDC21哋嚞\uD859\uDEB1嚒\uD843\uDFDF\uD842\uDFA8\uD843\uDE0D鏆\uD862\uDF13鎜仸儫㠙\uD851\uDC36亼\uD841\uDC65\uD840\uDF7F佋侊\uD855\uDE51婨\uD840\uDDAB\uD840\uDFCB㦙\uD840\uDF0A\uD841\uDC14㐵伩\uD840\uDEC0\uD863\uDEB3\uD840\uDE75諚\uD840\uDE0C亘"],
+ ["92a1", "働儍侢伃\uD852\uDE0E\uD84F\uDE8A佂倮偬傁俌俥偘僼兙兛兝兞湶\uD84D\uDD95\uD84F\uDE39\uD84F\uDEBF浲\uD846\uDC84\uD84F\uDE89冨凃\uD841\uDDE0䓝\uD841\uDCA3\uD841\uDC92\uD841\uDC91赺\uD862\uDE9C\uD841\uDF0E剙劤\uD842\uDC73勡鍮䙺熌\uD850\uDF8C\uD843\uDC20\uD852\uDDAC\uD844\uDCE4槑\uD843\uDE1D瑹㻞璙琔瑖玘䮎\uD852\uDEBC\uD850\uDC8D叐㖄爏\uD850\uDCC9喴\uD840\uDF45响\uD842\uDFC6圝鉝雴鍦埝垍坿㘾壋媙\uD862\uDE46\uD845\uDEFA\uD845\uDF6F\uD845\uDF10娬妸銏婾嫏娒\uD856\uDD46\uD846\uDDF3\uD846\uDC61\uD850\uDE95㛵洅瑃娡\uD857\uDE83"],
+ ["9340", "媁\uD862\uDFD7\uD841\uDC13鏠璌\uD844\uDF03焅䥲鐈\uD862\uDDFB鎽㞠尞岞幞幈\uD846\uDD96\uD846\uDD7C\uD84E\uDEEE廍孏\uD846\uDD03\uD846\uDD04㜁\uD846\uDCA0㛝\uD845\uDEFE㛓脪\uD862\uDE47\uD847\uDDBA\uD84D\uDC72\uD862\uDDA8弌弎\uD846\uDD27\uD845\uDFAB婫\uD845\uDF3B孄蘔\uD85D\uDDFD衠恾\uD84A\uDC60\uD849\uDE2B忛㺸\uD849\uDDAF\uD849\uDDBE\uD864\uDC88\uD85B\uDF73懀\uD840\uDC3E\uD840\uDC46\uD849\uDE1B憙憘恵\uD84B\uDC9B\uD84B\uDD07\uD851\uDED4\uD864\uDD4D"],
+ ["93a1", "摱\uD851\uDE65\uD84A\uDF6A㨩\uD84A\uDF22\uD84D\uDC50\uD866\uDCEA\uD84B\uDE78挷\uD869\uDC5B撶挱揑\uD852\uDDE3\uD84B\uDD67护\uD84B\uDCA1搻敫楲㯴\uD84C\uDC8E\uD84C\uDEAD\uD852\uDD89\uD84C\uDEAB唍\uD84C\uDEE0\uD846\uDCD9\uD865\uDC3F曎\uD84C\uDE89\uD84C\uDDB3㫠䆐\uD855\uDD84\uD862\uDF22\uD855\uDD8F\uD845\uDEFC\uD855\uDD5B\uD855\uDC25磮\uD84C\uDD03\uD846\uDC2A\uD84C\uDE34㑤\uD84C\uDE0F\uD84C\uDD82\uD850\uDEC9暎\uD85B\uDD24晫䮓昰\uD85E\uDC70\uD847\uDDEB晣\uD84C\uDED2\uD84C\uDEE1昞\uD856\uDC72㣑\uD84E\uDC3A\uD84D\uDFBC㮙\uD84D\uDFA2\uD84C\uDFFE瓐㮖枏\uD851\uDE2A梶栞㯄檾㡣\uD84D\uDFD5\uD851\uDC87樳橒櫉欅\uD846\uDD12攑梘橌㯗橺歗\uD84F\uDFC0\uD84F\uDC9A鎠鋲\uD862\uDFEA\uD862\uDECB"],
+ ["9440", "銉\uD860\uDC1E\uD862\uDDDC鑧涥漋\uD852\uDDEC浧\uD84F\uDF7F㶏渄\uD850\uDC3C娽渊塇洤硂焻\uD850\uDF1A\uD850\uDE76烱牐犇犔\uD851\uDF8F\uD851\uDF25兹\uD852\uDEA4\uD841\uDDEB瑺\uD84F\uDEF8\uD84D\uDE5F\uD852\uDE4A\uD852\uDD17\uD857\uDFE1㼆㺱\uD852\uDEDF\uD863\uDC23\uD84F\uDF35悧㻳瓌琼鎇琷䒟\uD85B\uDDEA䕑疃㽣\uD853\uDCD9\uD853\uDD06㽘畕癳\uD869\uDDC6㬙瑨\uD862\uDECC\uD852\uDDAB\uD852\uDD8E㫻"],
+ ["94a1", "㷍\uD852\uDE4E㻿\uD852\uDDC5\uD852\uDCF3釺圲鍂\uD862\uDEE3\uD846\uDC64僟\uD854\uDE21\uD854\uDDE7睸\uD84C\uDE32眎眏睻\uD851\uDE97\uD84D\uDF81㩞\uD852\uDCF0琸璛㺿\uD852\uDEBA\uD852\uDEC7䃈\uD852\uDE96\uD858\uDDAE錇\uD855\uDD81砞碍碈磒珐祙\uD85D\uDF41\uD855\uDEE3䄎禛蒖禥樭\uD84F\uDEFA稺秴䅮\uD845\uDEE6䄲鈵秱\uD843\uDD4C\uD852\uDD8C\uD840\uDE99\uD84F\uDDBA\uD845\uDF6E㖗啫㕰㚪\uD840\uDDD4\uD843\uDC0D竢婙\uD849\uDEF5\uD856\uDEAF\uD856\uDE9C娍\uD840\uDE5B磰娪\uD856\uDFC6竾䇹籝籭䈑\uD856\uDFB3\uD857\uDEBC\uD857\uDEA6糍\uD852\uDDF9\uD845\uDFB0粎籼粮檲緜縇緓罎\uD858\uDE61"],
+ ["9540", "\uD858\uDD5C\uD85E\uDF48綗\uD857\uDE82䉪\uD85A\uDF75\uD842\uDD16柖\uD840\uDC4E\uD84D\uDDCF埄\uD859\uDC12\uD858\uDFF8\uD852\uDD62翝笧\uD842\uDC2C\uD856\uDEE9\uD857\uDD43笌\uD857\uDE0E駦虅驣樜\uD84D\uDC3F㧢\uD852\uDDF7\uD859\uDDAD騟\uD859\uDDA0蒀\uD85C\uDD27\uD85B\uDCD1䓪脷䐂胆脉腂\uD859\uDFB4飃\uD85A\uDE42艢艥\uD85A\uDE51葓\uD85B\uDDA7蘐\uD85C\uDE1B媆䅿\uD846\uDC40嬫\uD846\uDCA1嫤\uD846\uDCD8蚠\uD87E\uDDBC\uD84F\uDD8F蠭\uD85D\uDC22娂"],
+ ["95a1", "衮佅袇袿裦襥襍\uD855\uDE83襔\uD85D\uDF85\uD85D\uDF84\uD862\uDFF5\uD862\uDFD9\uD862\uDF9C\uD862\uDDF9㺭蒣䛵䛏㟲訽訜\uD865\uDC48彍鈫\uD850\uDE84旔焩烄\uD846\uDC45鵭貟賩\uD85F\uDDDC妚矃姰䍮㛔踪躧\uD853\uDC09輰轊䋴汘澻\uD848\uDF21䢛潹溋\uD845\uDFDA鯩㚵\uD852\uDD2F邻邗啱䤆醻鐄\uD862\uDE4B䁢\uD862\uDEFC鐧\uD863\uDC1D\uD863\uDC3B蓥訫閙閧閗閖\uD863\uDD34瑅㻂\uD852\uDCFF\uD852\uDE42\uD850\uDFEA㻧\uD84C\uDE25随\uD863\uDEE7\uD863\uDE66\uD863\uDE65㻌\uD852\uDDED\uD852\uDE78\uD84F\uDFEE琒瑫㻼靁\uD864\uDCB0"],
+ ["9640", "桇䨝\uD864\uDC93\uD855\uDFDF靝鍨\uD862\uDD89\uD863\uDC26\uD862\uDF2F\uD858\uDFBE銺嬑譩䤼珹\uD850\uDE1B鞛靱餸\uD843\uDF26巁\uD862\uDFC5\uD852\uDEB2頟\uD865\uDCDA鋶\uD865\uDDD7釥䓀\uD862\uDF50\uD852\uDE67\uD862\uDF64飜\uD862\uDE45㼀鈪䤥萔餻饍\uD85E\uDF06㷽馛䭯馪驜\uD862\uDF65\uD856\uDCC8檏騡嫾騯\uD866\uDCF1䮐\uD866\uDD48馼䮽䮗鍽塲\uD844\uDF02堢\uD852\uDDB8"],
+ ["96a1", "\uD845\uDCE8硄\uD849\uDF1F\uD84F\uDDB8棅㵽鑘㤧慐\uD849\uDF81\uD84A\uDD6B愇鱏鱓鱻鰵鰐魿鯏\uD867\uDE2D鮟\uD868\uDDF5\uD868\uDCFE鴡䲮\uD850\uDD04鸘䲰鴌\uD868\uDDB4\uD868\uDCED\uD868\uDCF3\uD866\uDD2F鶥蒽\uD85B\uDE12\uD85B\uDFDF\uD85A\uDF82藼䔳\uD85B\uDDA4\uD85B\uDE84\uD85B\uDDF0萠藮\uD85B\uDE00\uD84D\uDFD7\uD858\uDC64秢\uD84D\uDD9C\uD84D\uDE40䤭\uD852\uDDDE㵢鏛銾鍈\uD840\uDEBF碹鉷鑍俤㑀遤\uD855\uDD5D砽硔碶硋\uD845\uDF57\uD84C\uDDC9\uD852\uDD41㚚佲濚濙瀞瀞吔\uD850\uDDB5垻壳垊鴖埗焴㒯\uD850\uDDAC燫\uD85B\uDC40\uD853\uDF97嬨\uD845\uDFB5\uD862\uDE49"],
+ ["9740", "愌嫎娋䊼\uD851\uDC88㜬䭻\uD862\uDDFC鎻鎸\uD846\uDCD6\uD843\uDF1D葲\uD85B\uDCC0\uD845\uDC13\uD850\uDEFA\uD84B\uDC26\uD850\uDFC1妔\uD84F\uDDB7\uD859\uDF41綨\uD858\uDD5B\uD858\uDCA4\uD852\uDDB9\uD852\uDD8B\uD862\uDDFA鋥珢㻩璴\uD862\uDF63\uD846\uDC9F㻡\uD852\uDEB3櫘珳珻㻖\uD852\uDE3E\uD852\uDE94\uD845\uDFD9\uD852\uDE66\uD840\uDFA7\uD845\uDC24\uD852\uDDE5瑈\uD852\uDD16炥\uD852\uDD76銄珦鍟\uD841\uDCFE錱\uD862\uDECE\uD862\uDE16鎆\uD862\uDFE7\uD855\uDDD5䤵\uD862\uDE82煫"],
+ ["97a1", "\uD852\uDD43\uD843\uDCFF嚤\uD841\uDE1A\uD842\uDFEB\uD843\uDCB8唂秄\uD845\uDFFA緾\uD845\uDEC2\uD852\uDE50\uD846\uDC52䔮鐁㜊\uD862\uDEC0\uD852\uDDAD妰\uD846\uDCBF\uD846\uDC83\uD85D\uDC84媡㛢\uD84F\uDD5B㚰鉟婹\uD862\uDE81\uD846\uDC62鍴㳍\uD842\uDEB4䪖㦊僴㵩㵌\uD844\uDF9C煵䋻\uD860\uDE18渏\uD864\uDCE4䓫浗\uD85F\uDE4F灧沯㳖\uD84F\uDFED\uD84F\uDE2D渂漌㵯\uD840\uDFF5畑㚼㓈䚀㻚䡱姄鉮䤾轁\uD863\uDC1C\uD85A\uDFC0堒埈㛖\uD845\uDC52烾\uD850\uDF62\uD852\uDE71\uD84B\uDFE3\uD844\uDEB0\uD848\uDFBD梹楧\uD844\uDF98\uD84D\uDCE5\uD85E\uDFF4\uD84D\uDEDF\uD862\uDE83\uD84D\uDFD6\uD84C\uDFFA\uD853\uDC9F樚\uD84D\uDEAD\uD85B\uDCB7萾䓟䓎"],
+ ["9840", "\uD85B\uDD26\uD85B\uDD51\uD85B\uDC82\uD85B\uDFDE漗\uD85C\uDD09茽\uD845\uDF3A菭\uD85B\uDC80\uD85C\uDC53\uD845\uDFDB妉媂\uD845\uDFB3婡婱\uD846\uDD05\uD850\uDDFC㜭姯\uD845\uDF3C㛇熎鎐暚\uD850\uDEA5婮娫\uD850\uDE93樫\uD84F\uDEF9\uD85D\uDF36\uD851\uDC5B\uD850\uDECA焝\uD850\uDE59\uD862\uDDE1侰\uD85B\uDD28峂\uD851\uDCCE\uD85F\uDE4D\uD850\uDFBD樌\uD850\uDE56\uD844\uDF04炦焳\uD850\uDFE9㶥泟\uD87E\uDC25\uD852\uDE4F繥姫崯㷳彜\uD852\uDE5D\uD845\uDFDF綤萦"],
+ ["98a1", "咅\uD84E\uDEFA\uD84C\uDF00\uD840\uDE14坾\uD842\uDCD5\uD841\uDE19㿥\uD847\uDF9E\uD868\uDEB6瀃\uD864\uDD5B嵰玏糓\uD862\uDE59\uD865\uDC20俈翧狍猐\uD85E\uDEF4猸猹\uD855\uDEF6獁獈㺩\uD85E\uDF18遬燵\uD852\uDCF2珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発\uD853\uDF5C熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈\uD855\uDD35礳栃礲䄃"],
+ ["9940", "䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀\uD843\uDCCF総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"],
+ ["99a1", "䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑\uD85E\uDD67訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"],
+ ["9a40", "鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯\uD846\uDFC2鵉鰺"],
+ ["9aa1", "黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄\uD840\uDC94\uD840\uDEB7\uD840\uDFA0椚铃妬\uD841\uDCD7塀铁㞹\uD841\uDDD5\uD841\uDE15\uD841\uDE76\uD845\uDEBA块煳\uD842\uDEC2\uD842\uDECD\uD842\uDFBF呪\uD87E\uDC3B\uD842\uDFCB咞\uD842\uDFFB\uD843\uDC3B\uD843\uDC53\uD843\uDC65\uD843\uDC7C惧\uD843\uDC8D噺\uD843\uDCB5\uD843\uDCDD\uD843\uDCED\uD843\uDD6F\uD843\uDDB2\uD843\uDDC8楕鰯螥\uD843\uDE04\uD843\uDE0E\uD843\uDED7\uD843\uDF90\uD843\uDF2D\uD843\uDE73尠\uD843\uDFBC帋\uD844\uDC5C\uD844\uDC4F\uD844\uDC76朞\uD844\uDC7B\uD844\uDC88\uD844\uDC96㙇\uD844\uDCBF\uD844\uDCD3\uD844\uDD2F\uD844\uDD3B卤蒭\uD844\uDEE3\uD844\uDF75\uD844\uDF36讁\uD845\uDD77\uD845\uDE19\uD845\uDFC3\uD845\uDFC7乸炻\uD846\uDC2D\uD846\uDD6A"],
+ ["9b40", "\uD846\uDE2D\uD846\uDE45\uD847\uDC2A\uD847\uDC70\uD847\uDCAC\uD847\uDEC8拃\uD847\uDED5\uD847\uDF15熘桕\uD848\uDC45槩㛈\uD848\uDE7C\uD848\uDFD7\uD848\uDFFA\uD849\uDF2A\uD84A\uDC71\uD84A\uDD4F苽\uD84A\uDD67\uD84A\uDD93\uD84A\uDED5覥\uD84A\uDEE8辠\uD84A\uDF0E鞸\uD84A\uDF3F顇骽\uD84B\uDC4C"],
+ ["9b62", "\uD84B\uDC88\uD84B\uDCB7\uD856\uDFE8\uD84B\uDD08\uD84B\uDD12\uD84B\uDDB7\uD84B\uDD95\uD84B\uDE42\uD84B\uDF74\uD84B\uDFCC\uD84C\uDC33\uD84C\uDC66\uD84C\uDF1F\uD84C\uDFDE徱晈暿\uD85E\uDE79\uD84D\uDD67\uD84D\uDDF3爁\uD852\uDDBA矗\uD84D\uDE1A\uD84D\uDF16纇\uD840\uDF46墵朎"],
+ ["9ba1", "椘\uD84E\uDEA7\uD85D\uDE57\uD857\uDFE2\uD84F\uDE11\uD84F\uDEB9\uD85D\uDDFE\uD848\uDC9A䣐䪸\uD850\uDD19\uD862\uDE9A\uD850\uDEEE\uD850\uDF0D\uD850\uDC3B\uD850\uDF34\uD850\uDF96\uD852\uDE45\uD841\uDDCA凒\uD841\uDE11妟\uD847\uDEA8㮾\uD84F\uDCFF\uD851\uDC04\uD851\uDCD6垈\uD851\uDE74㦛\uD851\uDF2F\uD861\uDDE8\uD866\uDDC9㝢\uD848\uDDC3譞\uD862\uDF4E駖\uD852\uDC12\uD852\uDCFB\uD852\uDE15爉\uD852\uDEC0\uD843\uDC78奥\uD853\uDEA5\uD853\uDF86\uD841\uDF79軚\uD854\uDC2C劏圿煱\uD854\uDE99\uD855\uDC19\uD84F\uDF4A\uD852\uDEA7喼\uD855\uDC46\uD855\uDC6E\uD85A\uDF52釔㑳\uD855\uDD3F\uD85D\uDE32\uD855\uDD5E䜘\uD855\uDD62\uD855\uDD66\uD855\uDFC7\uD852\uDD3F\uD856\uDC5D偦㓻\uD84C\uDFCC惞\uD856\uDD03䝼\uD862\uDD48\uD856\uDEAE\uD856\uDF89\uD857\uDC06\uD847\uDD90垡煑澶\uD858\uDD02\uD85F\uDC12遖\uD858\uDDB2\uD853\uDF9A譢\uD859\uDC02\uD859\uDC4A"],
+ ["9c40", "嵛\uD85A\uDFF7輶\uD859\uDC84\uD846\uDD1C諪\uD852\uDDF6\uD859\uDC88\uD84F\uDFEF\uD859\uDD12䯀\uD859\uDDBF\uD859\uDEB5\uD849\uDF1B鑥\uD855\uDFE1憕娧\uD87E\uDCCD侻嚹\uD851\uDD21\uD859\uDEFC乪\uD852\uDD34陖涏\uD85B\uDCBD㘘襷\uD859\uDF99\uD85A\uDC6E\uD859\uDC11\uD85A\uDC5E營\uD85A\uDCC7筂\uD864\uDCC0\uD842\uDE11\uD85A\uDD26鄄\uD85A\uDD39穅鷰\uD85A\uDDFA騦\uD85A\uDE2D㙟\uD859\uDC69\uD840\uDC21禃\uD85A\uDE34\uD85A\uDF5B崬\uD84D\uDD19菏\uD85A\uDF9D䛐\uD85B\uDCA4画补\uD85B\uDDAE墶"],
+ ["9ca1", "㜜\uD849\uDD8D\uD85C\uDC4B\uD85C\uDDCD㱔\uD85C\uDE80\uD85C\uDE85銁\uD848\uDD7A\uD85C\uDE8B錰\uD85C\uDEE6\uD852\uDDD0氹钟\uD85D\uDC50\uD843\uDEF8蠧裵\uD84A\uDD26\uD861\uDC73\uD845\uDFB1溸\uD852\uDE2A\uD846\uDC20㦤㚹尐秣䔿暶\uD867\uDCAD\uD866\uDCA4襃\uD85D\uDFCC\uD85E\uDC58囖䃟\uD845\uDE0A㦡\uD84D\uDF2F\uD860\uDCE8\uD844\uDFC5熭荦\uD85E\uDDDD\uD864\uDDA8婧䲷\uD85C\uDCAF\uD862\uDDAB\uD85E\uDDFD\uD85E\uDE0A\uD85E\uDF0B\uD85F\uDD66\uD850\uDD7A筃祾\uD860\uDC09澵\uD868\uDEDF樃\uD860\uDF18厢\uD85B\uDE07鎿栶靝\uD860\uDD6F\uD860\uDC23\uD85A\uDDB5\uD844\uDFED\uD84C\uDE2F\uD860\uDC48嶅\uD863\uDC30\uD860\uDC83圕頣\uD862\uDD49嶫\uD852\uDD88斾槕叒\uD852\uDEA5\uD84F\uDF81㰑朶\uD860\uDC90\uD860\uDCF4\uD860\uDD2E\uD847\uDFA1\uD860\uDD4F"],
+ ["9d40", "\uD860\uDD89\uD860\uDDAF\uD860\uDE1A\uD860\uDF06\uD860\uDF2F\uD860\uDF8A㗊\uD861\uDC68\uD861\uDEAA䣺揦\uD862\uDD56砈鉕\uD862\uDDB8䏲\uD862\uDDE7䏟\uD862\uDDE8\uD862\uDF46\uD862\uDFD4姸\uD863\uDC09輋\uD863\uDFC5\uD864\uDCEC筑\uD864\uDD10\uD864\uDD3C㷷\uD864\uDD5E\uD852\uDECA运犏嚋\uD865\uDCE7\uD865\uDDE9\uD865\uDDB0\uD865\uDDB8\uD865\uDF32\uD866\uDCD1\uD866\uDD49\uD866\uDD6A\uD866\uDDC3\uD866\uDE28\uD866\uDF0E\uD867\uDD5A\uD867\uDD9B纟\uD867\uDEF8\uD867\uDF23䲤镇\uD868\uDE93熢\uD868\uDEFF䶑递\uD869\uDDCB䶜\uD843\uDC9C达嗁"],
+ ["9da1", "辺\uD849\uDCB0边\uD852\uDE93䔉繿潖檱仪㓤\uD862\uDF2C\uD85E\uDC9D㜺躀\uD845\uDFF5\uD860\uDC24\uD862\uDF6C\uD862\uDF99\uD85E\uDE3E\uD859\uDEAF㷫\uD85D\uDE55\uD84F\uDCB7\uD855\uDE35\uD856\uDD56亚\uD857\uDE81\uD858\uDE58嚿\uD843\uDE6D踎孭\uD84F\uDE88\uD853\uDC9E揞拐\uD845\uDFF6\uD846\uDC7B攰嘭\uD857\uDC4A吚\uD854\uDF11㷆\uD867\uDD98䱽嘢嘞罉\uD857\uDED8奵\uD84F\uDD40蝰东\uD843\uDFEA\uD843\uDD49\uD84D\uDEBA脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖\uD843\uDE9D㗎嘅嗱曱\uD860\uDEE2㘭甴嗰喺咗啲\uD843\uDC41\uD843\uDC96廐\uD854\uDD48\uD843\uDE76\uD84B\uDC62"],
+ ["9e40", "\uD843\uDEA2麫絚嗞\uD844\uDC75抝靭咔賍燶酶揼掹揾啩\uD84A\uDF43鱲\uD84B\uDEB3冚㓟\uD843\uDDA7冧呍唞唓癦踭\uD85A\uDC8A疱肶蠄螆裇膶萜\uD844\uDCC1䓬猄\uD851\uDF06宐茋\uD85A\uDC93噻\uD849\uDEF4\uD85F\uDD2F\uD850\uDDA3\uD85F\uDD73\uD85B\uDED0\uD85C\uDEB6酰\uD844\uDDD9鈈\uD84F\uDCFC\uD869\uDEA9\uD843\uDEAC\uD843\uDEF9牦\uD847\uDCA2䝎\uD853\uDFC2\uD85F\uDFF9\uD843\uDFEB䃺"],
+ ["9ea1", "鱝攟\uD84B\uDDA0䣳\uD851\uDFE0\uD867\uDD7C\uD843\uDFEC\uD843\uDE0A恢\uD85D\uDDA3\uD843\uDFED"],
+ ["9ead", "\uD858\uDC48\uD844\uDD87熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥\uD851\uDE18墚\uD852\uDF6E舭呋垪\uD856\uDE95\uD842\uDD79"],
+ ["9ec5", "㩒\uD849\uDC65獴\uD867\uDEAC䴉鯭\uD84F\uDCFE\uD867\uDF30䱛\uD853\uDFA9\uD865\uDD9E\uD867\uDFDE葜\uD84F\uDDB6\uD85C\uDEB2\uD859\uDFB3\uD84D\uDF20挮紥\uD84F\uDEF7\uD84F\uDE2C㨪逈勌㹴㙺䗩\uD841\uDC8E癀嫰\uD843\uDEB6硺\uD85F\uDF2E墧䂿噼鮋嵴癔\uD869\uDC34麅䳡痹㟻愙\uD84C\uDCDA\uD850\uDFF2"],
+ ["9ef5", "噝\uD844\uDEA9垧\uD852\uDD63\uD867\uDE06刴\uD85C\uDCAE㖭汊鵼"],
+ ["9f40", "籖鬹埞\uD845\uDF6C屓擓\uD865\uDCD0\uD858\uDF35\uD85C\uDD64蚭\uD843\uDD28\uD85B\uDD22\uD852\uDEE2\uD843\uDD71"],
+ ["9f4f", "凾\uD847\uDF0F嶎霃\uD847\uDDD1麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛\uD852\uDD3E齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"],
+ ["9fa1", "椬叚鰊鴂䰻陁榀傦畆\uD845\uDF6D駚剳"],
+ ["9fae", "酙隁酜"],
+ ["9fb2", "酑\uD863\uDE97捿\uD85B\uDD23櫊嘑醎畺抅\uD840\uDFFC獏籰\uD857\uDC21\uD84F\uDCFD"],
+ ["9fc1", "\uD852\uDD19盖鮝个\uD843\uDCD4莾衂"],
+ ["9fc9", "届槀僭坺刟巵从氱\uD840\uDDF2伹咜哚劚趂㗾弌㗳"],
+ ["9fdb", "歒酼龥鮗頮颴骺麨麄煺笔"],
+ ["9fe7", "毺蠘罸"],
+ ["9feb", "嘠\uD869\uDE4A蹷齓"],
+ ["9ff0", "跔蹏鸜踁抂\uD860\uDF7D踨蹵竓\uD852\uDE77稾磘泪詧瘇"],
+ ["a040", "\uD862\uDE5A鼦泎蟖痃\uD868\uDEB2硓\uD87E\uDC40贌狢獱謭猂瓱賫\uD852\uDEBB蘯徺袠䒷"],
+ ["a055", "\uD846\uDC3B\uD85B\uDE05"],
+ ["a058", "詾\uD849\uDD1B"],
+ ["a05b", "惽癧髗鵄鍮鮏蟵"],
+ ["a063", "蠏賷猬霡鮰㗖犲䰇籑饊\uD858\uDD59慙䰄麖慽"],
+ ["a073", "坟慯抦戹拎㩜懢厪\uD84C\uDFF5捤栂㗒"],
+ ["a0a1", "嵗\uD862\uDFC2迚\uD863\uDE39"],
+ ["a0a6", "僙\uD847\uDD46礆匲阸\uD843\uDF3B䁥"],
+ ["a0ae", "矾"],
+ ["a0b0", "糂\uD857\uDF1A糚稭聦聣絍甅瓲覔舚朌聢\uD85D\uDC86聛瓰脃眤覉\uD859\uDFCC畓\uD85B\uDED1螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"],
+ ["a0d4", "覩瑨涹蟁\uD850\uDC11瓧㷛煶悤憜㳑煢恷"],
+ ["a0e2", "罱\uD862\uDF2D牐惩䭾删㰘\uD84F\uDCC7\uD857\uDED7\uD85D\uDE56\uD855\uDD31\uD846\uDD44\uD844\uDEFE\uD866\uDD03\uD85B\uDDDC\uD85C\uDCAD峁\uD858\uDDAD\uD862\uDE0F\uD84D\uDE77\uD840\uDCEE\uD85A\uDC46\uD853\uDF0E䕢嬟\uD858\uDF4C齐麦\uD858\uDE6B"],
+ ["a3c0", "␀", 31, "␡"],
+ ["c6a1", "①", 9, "⑴", 9, "ⅰ", 9, "丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ", 23],
+ ["c740", "す", 58, "ァアィイ"],
+ ["c7a1", "ゥ", 81, "А", 5, "ЁЖ", 4],
+ ["c840", "Л", 26, "ёж", 25, "⇧↸↹㇏\uD840\uDCCC乚\uD840\uDC8A刂䒑"],
+ ["c8a1", "龰冈龱\uD85D\uDE07"],
+ ["c8cd", "¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"],
+ ["c8f5", "ʃɐɛɔɵœøŋʊɪ"],
+ ["f9fe", "■"],
+ ["fa40", "\uD841\uDD47鋛\uD841\uDDDF\uD84F\uDFC5蕌䊵珯况㙉\uD852\uDD42\uD862\uDDE4鍄\uD846\uDDDB苮\uD84F\uDCC8砼杄拟\uD852\uDD33\uD862\uDDAA\uD840\uDEA0\uD85A\uDFB3\uD844\uDF05侫\uD849\uDCED倈\uD85B\uDD29\uD85E\uDE84\uD84D\uDE00\uD852\uDEB1\uD849\uDD13倩\uD840\uDF7E徤\uD840\uDF80\uD840\uDF47滛\uD841\uDC1F偽儁㑺儎顬㝃萖\uD852\uDDA4\uD841\uDC87兠\uD84C\uDFB4兪\uD842\uDFFF\uD848\uDCFC\uD840\uDEE5\uD849\uDD30\uD841\uDD8E\uD84C\uDE33\uD846\uDD83宂蝽\uD841\uDDB3\uD84F\uDC99冲冸"],
+ ["faa1", "鴴凉减凑㳜凓\uD852\uDEA6决凢卂凭菍椾\uD84D\uDF2D彻刋刦刼劵剗劔効勅簕蕂勠蘍\uD85A\uDF13包\uD862\uDEDE啉滙\uD84F\uDF80\uD842\uDD54\uD84F\uDFEC匳卄\uD842\uDFE2泋\uD845\uDF26栛珕恊㺪㣌\uD845\uDEE8燝䒢卭却\uD861\uDEAB卾卿\uD845\uDD96\uD845\uDE13矦厓\uD862\uDE9B厠厫厮玧\uD855\uDF72㽙玜叁叅汉义埾叙㪫\uD842\uDF8F叠\uD84F\uDFEB\uD84B\uDDA3叶\uD843\uDC77吓灹唫晗浛呭\uD85A\uDF53\uD843\uDD74啝咏咤䞦\uD845\uDF0D\uD843\uDEDD㶴\uD843\uDD4D"],
+ ["fb40", "\uD862\uDDBC\uD849\uDE98啇䳭启琗喆喩嘅\uD846\uDCD7\uD850\uDC3A䕒\uD851\uDC35暳\uD844\uDCB4嘷曍\uD84C\uDE8A暤暭噍噏磱囱鞇叾圀囯园\uD862\uDF66㘣\uD844\uDE4F坆\uD850\uDDA5汮炋坂㚱\uD85B\uDC7E埦\uD845\uDC16堃\uD845\uDC54\uD850\uDF63堦\uD852\uDFF5塜墪㕡壠壜\uD844\uDE3C壻寿坃\uD868\uDD50\uD850\uDE78鏓㖡够梦㛃湙"],
+ ["fba1", "\uD845\uDE3E娤啓\uD845\uDE92蔅姉\uD843\uDD4E\uD85B\uDC81\uD85B\uDD2A\uD845\uDFDC姙\uD845\uDFFB\uD845\uDFB2\uD85B\uDDA6浱\uD846\uDC28\uD845\uDED5姹\uD85B\uDE45媫婣㛦\uD852\uDDA9婷㜈媖瑥嫓\uD85B\uDFA1\uD849\uDD54㶅\uD846\uDD11㜲\uD845\uDEB8広勐孶斈孼\uD85E\uDE0E䀄䡝\uD840\uDE04寕慠\uD846\uDE34\uD856\uDDCC\uD841\uDDA5寳宝䴐尅\uD846\uDF44尓珎尔\uD847\uDCA5\uD85A\uDF28屉䣝岅峩峯嶋\uD847\uDDF9\uD847\uDE37崐崘嵆\uD847\uDEA4岺巗苼㠭\uD852\uDD01\uD848\uDC49\uD848\uDD73芇㠶㯂帮檊幵幺\uD851\uDCBC\uD843\uDCD3厦亷廐厨\uD845\uDF71帉廴\uD861\uDC82"],
+ ["fc40", "廹廻㢠廼栾鐛弍\uD840\uDDC1\uD87E\uDC94㫞䢮\uD844\uDF3A强\uD85A\uDC88\uD848\uDFD0彘\uD849\uDC71彣鞽\uD85B\uDE6E彲鍀\uD862\uDE36徧嶶㵟\uD854\uDE50\uD847\uDF6A\uD85C\uDCF8\uD849\uDE68釖\uD840\uDE9E\uD862\uDE29怱暅\uD846\uDC77㥣㷇㘹垐\uD849\uDFB4祱㹀悞悤悳\uD852\uDD82\uD852\uDD8F\uD85E\uDE53璤僡媠慤萤慂\uD87E\uDCA6\uD85B\uDED2憁凴\uD841\uDE56憇宪\uD84F\uDFB7"],
+ ["fca1", "\uD84A\uDC5F懓\uD862\uDF9D\uD866\uDD5D懐㤲\uD84A\uDD80\uD84A\uDCC1怣慜攞掋\uD840\uDD18担\uD845\uDF70拕\uD84B\uDE0D捬\uD852\uDDDF㨗搸揸\uD844\uDF8E\uD845\uDFFC撐澊\uD84B\uDE36頔\uD850\uDC8C\uD855\uDF1D擡擥鑻㩦携㩗敍漖\uD852\uDE28\uD852\uDE23斅敭敟\uD84C\uDC7E斵\uD852\uDD40䬷旑䃘\uD846\uDC29无旣忟\uD84D\uDC00昘\uD84C\uDDF7\uD84C\uDDF8晄\uD84C\uDDA4\uD84C\uDDA5晋\uD843\uDE75晧\uD854\uDDE6晳晴\uD847\uDE3D\uD84C\uDE31\uD861\uDDF4\uD84C\uDDC8\uD854\uDF13矅\uD84A\uDCF7馤朂\uD850\uDF9C\uD852\uDE21㬫槺\uD84D\uDFC2杞杧杢\uD850\uDDCD\uD864\uDCED柗䓩栢湐鈼栁\uD84C\uDFE6\uD85B\uDDA0桝"],
+ ["fd40", "\uD84D\uDC6F槡樋\uD862\uDEDF楳棃\uD84D\uDDCD椁椀㴲㨁\uD84D\uDE3C㮀枬楡\uD862\uDE4A䋼椶榘㮡\uD840\uDFC9荣傐槹\uD84D\uDE59\uD848\uDD2A橅\uD84D\uDF03檝㯳枱櫈\uD864\uDD9C㰍欝\uD842\uDD23惞欵歴\uD849\uDFCD溵\uD84E\uDEDB\uD840\uDFB5\uD846\uDD58㝀吡\uD84E\uDF5A毡\uD84F\uDEFC毜氷\uD849\uDC8B\uD852\uDCF1\uD85A\uDF51汚舦汹\uD84F\uDDBC䓅\uD84F\uDDBD\uD850\uDDA4\uD852\uDD0C\uD852\uDD00"],
+ ["fda1", "\uD84F\uDCC9㛥㳫\uD843\uDD32鮃\uD84C\uDDF9\uD849\uDC91羏样\uD85B\uDD25\uD85B\uDDA1\uD85B\uDDEB涖浜湼漄\uD852\uDD7F\uD850\uDC85\uD85B\uDE72蔳\uD85B\uDF74凇沜渝萮\uD862\uDF21港\uD84F\uDE2F瑓\uD84F\uDF82秌湏媑\uD84C\uDC4B濸㜍澝\uD84F\uDE30滺\uD845\uDC97\uD850\uDC3D䕕鏰潄潜㵎潴\uD864\uDD70㴻澟\uD850\uDD44濓\uD850\uDC91\uD850\uDD55\uD850\uDC39\uD84F\uDFF0\uD84F\uDFB4\uD850\uDD3F凟\uD850\uDD56\uD850\uDD57\uD850\uDD40\uD858\uDDDD灋灾炧炁烌烕烖烟䄄㷨熴熖\uD850\uDE77焫煅媈煊煮岜\uD850\uDF65煏鍢\uD850\uDEC1焬\uD851\uDC5A\uD852\uDE27\uD852\uDE22熺\uD862\uDFE8炽爎"],
+ ["fe40", "鑂爕夑鑃爤鍁\uD855\uDE05爮牀\uD852\uDD74梽牕牗㹕\uD84C\uDC44栍漽犂猪猫\uD852\uDC23\uD862\uDC2B䣭\uD862\uDC04猨献珏玪\uD843\uDC3A\uD85A\uDE2E珉瑉\uD850\uDDE2\uD845\uDEE7\uD852\uDE24昣㛅\uD852\uDDB7\uD852\uDD8D\uD852\uDDFB珷琕椃\uD852\uDE26琹\uD841\uDDC3㻗瑜\uD84A\uDCAD瑠\uD863\uDEB2瑇珤瑶莹瑬㜰瑴鏱樬璂䥓\uD852\uDE8C"],
+ ["fea1", "\uD850\uDD5F\uD852\uDE79\uD862\uDF8F孆\uD863\uDC03\uD846\uDC9E瓈\uD846\uDD88甎瓩甞\uD863\uDED9\uD846\uDE4B寗\uD863\uDEAC鎅畍畊畧畮\uD853\uDF82㼄\uD853\uDD13疎瑝疞疴瘂瘬癑癏癯癶\uD858\uDFF5皐臯㟸\uD85A\uDD11\uD85A\uDD0E皡皥皷盌\uD85B\uDF9F葢\uD854\uDC9D\uD854\uDD7D\uD847\uDE1C眞眦着撯\uD854\uDE20睘\uD84C\uDEAC瞯\uD862\uDD64\uD862\uDD68\uD845\uDEC1矴砉\uD844\uDF76\uD852\uDE12棊碯磇磓隥礮\uD855\uDDE0磗礴碱\uD85D\uDE0C辸袄\uD862\uDF2B\uD858\uDC83\uD849\uDE1C禆褀椂禀\uD856\uDC57禝\uD85E\uDF39礼禩渪\uD85C\uDD26㺨秆\uD864\uDD0D秔"]
+ ];
+});
+
+// node_modules/iconv-lite/encodings/dbcs-data.js
+var require_dbcs_data = __commonJS((exports, module) => {
+ module.exports = {
+ shiftjis: {
+ type: "_dbcs",
+ table: function() {
+ return require_shiftjis();
+ },
+ encodeAdd: { "¥": 92, "‾": 126 },
+ encodeSkipVals: [{ from: 60736, to: 63808 }]
+ },
+ csshiftjis: "shiftjis",
+ mskanji: "shiftjis",
+ sjis: "shiftjis",
+ windows31j: "shiftjis",
+ ms31j: "shiftjis",
+ xsjis: "shiftjis",
+ windows932: "shiftjis",
+ ms932: "shiftjis",
+ "932": "shiftjis",
+ cp932: "shiftjis",
+ eucjp: {
+ type: "_dbcs",
+ table: function() {
+ return require_eucjp();
+ },
+ encodeAdd: { "¥": 92, "‾": 126 }
+ },
+ gb2312: "cp936",
+ gb231280: "cp936",
+ gb23121980: "cp936",
+ csgb2312: "cp936",
+ csiso58gb231280: "cp936",
+ euccn: "cp936",
+ windows936: "cp936",
+ ms936: "cp936",
+ "936": "cp936",
+ cp936: {
+ type: "_dbcs",
+ table: function() {
+ return require_cp936();
+ }
+ },
+ gbk: {
+ type: "_dbcs",
+ table: function() {
+ return require_cp936().concat(require_gbk_added());
+ }
+ },
+ xgbk: "gbk",
+ isoir58: "gbk",
+ gb18030: {
+ type: "_dbcs",
+ table: function() {
+ return require_cp936().concat(require_gbk_added());
+ },
+ gb18030: function() {
+ return require_gb18030_ranges();
+ },
+ encodeSkipVals: [128],
+ encodeAdd: { "€": 41699 }
+ },
+ chinese: "gb18030",
+ windows949: "cp949",
+ ms949: "cp949",
+ "949": "cp949",
+ cp949: {
+ type: "_dbcs",
+ table: function() {
+ return require_cp949();
+ }
+ },
+ cseuckr: "cp949",
+ csksc56011987: "cp949",
+ euckr: "cp949",
+ isoir149: "cp949",
+ korean: "cp949",
+ ksc56011987: "cp949",
+ ksc56011989: "cp949",
+ ksc5601: "cp949",
+ windows950: "cp950",
+ ms950: "cp950",
+ "950": "cp950",
+ cp950: {
+ type: "_dbcs",
+ table: function() {
+ return require_cp950();
+ }
+ },
+ big5: "big5hkscs",
+ big5hkscs: {
+ type: "_dbcs",
+ table: function() {
+ return require_cp950().concat(require_big5_added());
+ },
+ encodeSkipVals: [41676]
+ },
+ cnbig5: "big5hkscs",
+ csbig5: "big5hkscs",
+ xxbig5: "big5hkscs"
+ };
+});
+
+// node_modules/iconv-lite/encodings/index.js
+var require_encodings = __commonJS((exports, module) => {
+ var modules = [
+ require_internal(),
+ require_utf16(),
+ require_utf7(),
+ require_sbcs_codec(),
+ require_sbcs_data(),
+ require_sbcs_data_generated(),
+ require_dbcs_codec(),
+ require_dbcs_data()
+ ];
+ for (i = 0;i < modules.length; i++) {
+ module = modules[i];
+ for (enc in module)
+ if (Object.prototype.hasOwnProperty.call(module, enc))
+ exports[enc] = module[enc];
+ }
+ var module;
+ var enc;
+ var i;
+});
+
+// node_modules/iconv-lite/lib/streams.js
+var require_streams = __commonJS((exports, module) => {
+ var Buffer2 = __require("buffer").Buffer;
+ var Transform = __require("stream").Transform;
+ module.exports = function(iconv) {
+ iconv.encodeStream = function encodeStream(encoding, options) {
+ return new IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options);
+ };
+ iconv.decodeStream = function decodeStream(encoding, options) {
+ return new IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options);
+ };
+ iconv.supportsStreams = true;
+ iconv.IconvLiteEncoderStream = IconvLiteEncoderStream;
+ iconv.IconvLiteDecoderStream = IconvLiteDecoderStream;
+ iconv._collect = IconvLiteDecoderStream.prototype.collect;
+ };
+ function IconvLiteEncoderStream(conv, options) {
+ this.conv = conv;
+ options = options || {};
+ options.decodeStrings = false;
+ Transform.call(this, options);
+ }
+ IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {
+ constructor: { value: IconvLiteEncoderStream }
+ });
+ IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
+ if (typeof chunk != "string")
+ return done(new Error("Iconv encoding stream needs strings as its input."));
+ try {
+ var res = this.conv.write(chunk);
+ if (res && res.length)
+ this.push(res);
+ done();
+ } catch (e) {
+ done(e);
+ }
+ };
+ IconvLiteEncoderStream.prototype._flush = function(done) {
+ try {
+ var res = this.conv.end();
+ if (res && res.length)
+ this.push(res);
+ done();
+ } catch (e) {
+ done(e);
+ }
+ };
+ IconvLiteEncoderStream.prototype.collect = function(cb) {
+ var chunks = [];
+ this.on("error", cb);
+ this.on("data", function(chunk) {
+ chunks.push(chunk);
+ });
+ this.on("end", function() {
+ cb(null, Buffer2.concat(chunks));
+ });
+ return this;
+ };
+ function IconvLiteDecoderStream(conv, options) {
+ this.conv = conv;
+ options = options || {};
+ options.encoding = this.encoding = "utf8";
+ Transform.call(this, options);
+ }
+ IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {
+ constructor: { value: IconvLiteDecoderStream }
+ });
+ IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
+ if (!Buffer2.isBuffer(chunk))
+ return done(new Error("Iconv decoding stream needs buffers as its input."));
+ try {
+ var res = this.conv.write(chunk);
+ if (res && res.length)
+ this.push(res, this.encoding);
+ done();
+ } catch (e) {
+ done(e);
+ }
+ };
+ IconvLiteDecoderStream.prototype._flush = function(done) {
+ try {
+ var res = this.conv.end();
+ if (res && res.length)
+ this.push(res, this.encoding);
+ done();
+ } catch (e) {
+ done(e);
+ }
+ };
+ IconvLiteDecoderStream.prototype.collect = function(cb) {
+ var res = "";
+ this.on("error", cb);
+ this.on("data", function(chunk) {
+ res += chunk;
+ });
+ this.on("end", function() {
+ cb(null, res);
+ });
+ return this;
+ };
+});
+
+// node_modules/iconv-lite/lib/extend-node.js
+var require_extend_node = __commonJS((exports, module) => {
+ var Buffer2 = __require("buffer").Buffer;
+ module.exports = function(iconv) {
+ var original = undefined;
+ iconv.supportsNodeEncodingsExtension = !(Buffer2.from || new Buffer2(0) instanceof Uint8Array);
+ iconv.extendNodeEncodings = function extendNodeEncodings() {
+ if (original)
+ return;
+ original = {};
+ if (!iconv.supportsNodeEncodingsExtension) {
+ console.error("ACTION NEEDED: require('iconv-lite').extendNodeEncodings() is not supported in your version of Node");
+ console.error("See more info at https://github.com/ashtuchkin/iconv-lite/wiki/Node-v4-compatibility");
+ return;
+ }
+ var nodeNativeEncodings = {
+ hex: true,
+ utf8: true,
+ "utf-8": true,
+ ascii: true,
+ binary: true,
+ base64: true,
+ ucs2: true,
+ "ucs-2": true,
+ utf16le: true,
+ "utf-16le": true
+ };
+ Buffer2.isNativeEncoding = function(enc) {
+ return enc && nodeNativeEncodings[enc.toLowerCase()];
+ };
+ var SlowBuffer = __require("buffer").SlowBuffer;
+ original.SlowBufferToString = SlowBuffer.prototype.toString;
+ SlowBuffer.prototype.toString = function(encoding, start, end) {
+ encoding = String(encoding || "utf8").toLowerCase();
+ if (Buffer2.isNativeEncoding(encoding))
+ return original.SlowBufferToString.call(this, encoding, start, end);
+ if (typeof start == "undefined")
+ start = 0;
+ if (typeof end == "undefined")
+ end = this.length;
+ return iconv.decode(this.slice(start, end), encoding);
+ };
+ original.SlowBufferWrite = SlowBuffer.prototype.write;
+ SlowBuffer.prototype.write = function(string2, offset, length, encoding) {
+ if (isFinite(offset)) {
+ if (!isFinite(length)) {
+ encoding = length;
+ length = undefined;
+ }
+ } else {
+ var swap = encoding;
+ encoding = offset;
+ offset = length;
+ length = swap;
+ }
+ offset = +offset || 0;
+ var remaining = this.length - offset;
+ if (!length) {
+ length = remaining;
+ } else {
+ length = +length;
+ if (length > remaining) {
+ length = remaining;
+ }
+ }
+ encoding = String(encoding || "utf8").toLowerCase();
+ if (Buffer2.isNativeEncoding(encoding))
+ return original.SlowBufferWrite.call(this, string2, offset, length, encoding);
+ if (string2.length > 0 && (length < 0 || offset < 0))
+ throw new RangeError("attempt to write beyond buffer bounds");
+ var buf = iconv.encode(string2, encoding);
+ if (buf.length < length)
+ length = buf.length;
+ buf.copy(this, offset, 0, length);
+ return length;
+ };
+ original.BufferIsEncoding = Buffer2.isEncoding;
+ Buffer2.isEncoding = function(encoding) {
+ return Buffer2.isNativeEncoding(encoding) || iconv.encodingExists(encoding);
+ };
+ original.BufferByteLength = Buffer2.byteLength;
+ Buffer2.byteLength = SlowBuffer.byteLength = function(str, encoding) {
+ encoding = String(encoding || "utf8").toLowerCase();
+ if (Buffer2.isNativeEncoding(encoding))
+ return original.BufferByteLength.call(this, str, encoding);
+ return iconv.encode(str, encoding).length;
+ };
+ original.BufferToString = Buffer2.prototype.toString;
+ Buffer2.prototype.toString = function(encoding, start, end) {
+ encoding = String(encoding || "utf8").toLowerCase();
+ if (Buffer2.isNativeEncoding(encoding))
+ return original.BufferToString.call(this, encoding, start, end);
+ if (typeof start == "undefined")
+ start = 0;
+ if (typeof end == "undefined")
+ end = this.length;
+ return iconv.decode(this.slice(start, end), encoding);
+ };
+ original.BufferWrite = Buffer2.prototype.write;
+ Buffer2.prototype.write = function(string2, offset, length, encoding) {
+ var _offset = offset, _length = length, _encoding = encoding;
+ if (isFinite(offset)) {
+ if (!isFinite(length)) {
+ encoding = length;
+ length = undefined;
+ }
+ } else {
+ var swap = encoding;
+ encoding = offset;
+ offset = length;
+ length = swap;
+ }
+ encoding = String(encoding || "utf8").toLowerCase();
+ if (Buffer2.isNativeEncoding(encoding))
+ return original.BufferWrite.call(this, string2, _offset, _length, _encoding);
+ offset = +offset || 0;
+ var remaining = this.length - offset;
+ if (!length) {
+ length = remaining;
+ } else {
+ length = +length;
+ if (length > remaining) {
+ length = remaining;
+ }
+ }
+ if (string2.length > 0 && (length < 0 || offset < 0))
+ throw new RangeError("attempt to write beyond buffer bounds");
+ var buf = iconv.encode(string2, encoding);
+ if (buf.length < length)
+ length = buf.length;
+ buf.copy(this, offset, 0, length);
+ return length;
+ };
+ if (iconv.supportsStreams) {
+ var Readable = __require("stream").Readable;
+ original.ReadableSetEncoding = Readable.prototype.setEncoding;
+ Readable.prototype.setEncoding = function setEncoding(enc, options) {
+ this._readableState.decoder = iconv.getDecoder(enc, options);
+ this._readableState.encoding = enc;
+ };
+ Readable.prototype.collect = iconv._collect;
+ }
+ };
+ iconv.undoExtendNodeEncodings = function undoExtendNodeEncodings() {
+ if (!iconv.supportsNodeEncodingsExtension)
+ return;
+ if (!original)
+ throw new Error("require('iconv-lite').undoExtendNodeEncodings(): Nothing to undo; extendNodeEncodings() is not called.");
+ delete Buffer2.isNativeEncoding;
+ var SlowBuffer = __require("buffer").SlowBuffer;
+ SlowBuffer.prototype.toString = original.SlowBufferToString;
+ SlowBuffer.prototype.write = original.SlowBufferWrite;
+ Buffer2.isEncoding = original.BufferIsEncoding;
+ Buffer2.byteLength = original.BufferByteLength;
+ Buffer2.prototype.toString = original.BufferToString;
+ Buffer2.prototype.write = original.BufferWrite;
+ if (iconv.supportsStreams) {
+ var Readable = __require("stream").Readable;
+ Readable.prototype.setEncoding = original.ReadableSetEncoding;
+ delete Readable.prototype.collect;
+ }
+ original = undefined;
+ };
+ };
+});
+
+// node_modules/iconv-lite/lib/index.js
+var require_lib2 = __commonJS((exports, module) => {
+ var Buffer2 = require_safer().Buffer;
+ var bomHandling = require_bom_handling();
+ var iconv = exports;
+ iconv.encodings = null;
+ iconv.defaultCharUnicode = "�";
+ iconv.defaultCharSingleByte = "?";
+ iconv.encode = function encode(str, encoding, options) {
+ str = "" + (str || "");
+ var encoder = iconv.getEncoder(encoding, options);
+ var res = encoder.write(str);
+ var trail = encoder.end();
+ return trail && trail.length > 0 ? Buffer2.concat([res, trail]) : res;
+ };
+ iconv.decode = function decode(buf, encoding, options) {
+ if (typeof buf === "string") {
+ if (!iconv.skipDecodeWarning) {
+ console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");
+ iconv.skipDecodeWarning = true;
+ }
+ buf = Buffer2.from("" + (buf || ""), "binary");
+ }
+ var decoder = iconv.getDecoder(encoding, options);
+ var res = decoder.write(buf);
+ var trail = decoder.end();
+ return trail ? res + trail : res;
+ };
+ iconv.encodingExists = function encodingExists(enc) {
+ try {
+ iconv.getCodec(enc);
+ return true;
+ } catch (e) {
+ return false;
+ }
+ };
+ iconv.toEncoding = iconv.encode;
+ iconv.fromEncoding = iconv.decode;
+ iconv._codecDataCache = {};
+ iconv.getCodec = function getCodec(encoding) {
+ if (!iconv.encodings)
+ iconv.encodings = require_encodings();
+ var enc = iconv._canonicalizeEncoding(encoding);
+ var codecOptions = {};
+ while (true) {
+ var codec = iconv._codecDataCache[enc];
+ if (codec)
+ return codec;
+ var codecDef = iconv.encodings[enc];
+ switch (typeof codecDef) {
+ case "string":
+ enc = codecDef;
+ break;
+ case "object":
+ for (var key2 in codecDef)
+ codecOptions[key2] = codecDef[key2];
+ if (!codecOptions.encodingName)
+ codecOptions.encodingName = enc;
+ enc = codecDef.type;
+ break;
+ case "function":
+ if (!codecOptions.encodingName)
+ codecOptions.encodingName = enc;
+ codec = new codecDef(codecOptions, iconv);
+ iconv._codecDataCache[codecOptions.encodingName] = codec;
+ return codec;
+ default:
+ throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '" + enc + "')");
+ }
+ }
+ };
+ iconv._canonicalizeEncoding = function(encoding) {
+ return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
+ };
+ iconv.getEncoder = function getEncoder(encoding, options) {
+ var codec = iconv.getCodec(encoding), encoder = new codec.encoder(options, codec);
+ if (codec.bomAware && options && options.addBOM)
+ encoder = new bomHandling.PrependBOM(encoder, options);
+ return encoder;
+ };
+ iconv.getDecoder = function getDecoder(encoding, options) {
+ var codec = iconv.getCodec(encoding), decoder = new codec.decoder(options, codec);
+ if (codec.bomAware && !(options && options.stripBOM === false))
+ decoder = new bomHandling.StripBOM(decoder, options);
+ return decoder;
+ };
+ var nodeVer = typeof process !== "undefined" && process.versions && process.versions.node;
+ if (nodeVer) {
+ nodeVerArr = nodeVer.split(".").map(Number);
+ if (nodeVerArr[0] > 0 || nodeVerArr[1] >= 10) {
+ require_streams()(iconv);
+ }
+ require_extend_node()(iconv);
+ }
+ var nodeVerArr;
+ if (false) {
+ }
+});
+
+// node_modules/os-tmpdir/index.js
+var require_os_tmpdir = __commonJS((exports, module) => {
+ var isWindows = process.platform === "win32";
+ var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/;
+ module.exports = function() {
+ var path2;
+ if (isWindows) {
+ path2 = process.env.TEMP || process.env.TMP || (process.env.SystemRoot || process.env.windir) + "\\temp";
+ } else {
+ path2 = process.env.TMPDIR || process.env.TMP || process.env.TEMP || "/tmp";
+ }
+ if (trailingSlashRe.test(path2)) {
+ path2 = path2.slice(0, -1);
+ }
+ return path2;
+ };
+});
+
+// node_modules/tmp/lib/tmp.js
+var require_tmp = __commonJS((exports, module) => {
+ /*!
+ * Tmp
+ *
+ * Copyright (c) 2011-2017 KARASZI Istvan <[email protected]>
+ *
+ * MIT Licensed
+ */
+ var fs2 = __require("fs");
+ var path2 = __require("path");
+ var crypto = __require("crypto");
+ var osTmpDir = require_os_tmpdir();
+ var _c = process.binding("constants");
+ var tmpDir = osTmpDir();
+ var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
+ var TEMPLATE_PATTERN = /XXXXXX/;
+ var DEFAULT_TRIES = 3;
+ var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
+ var EBADF = _c.EBADF || _c.os.errno.EBADF;
+ var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
+ var DIR_MODE = 448;
+ var FILE_MODE = 384;
+ var _removeObjects = [];
+ var _gracefulCleanup = false;
+ var _uncaughtException = false;
+ function _randomChars(howMany) {
+ var value = [], rnd = null;
+ try {
+ rnd = crypto.randomBytes(howMany);
+ } catch (e) {
+ rnd = crypto.pseudoRandomBytes(howMany);
+ }
+ for (var i = 0;i < howMany; i++) {
+ value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
+ }
+ return value.join("");
+ }
+ function _isUndefined(obj) {
+ return typeof obj === "undefined";
+ }
+ function _parseArguments(options, callback) {
+ if (typeof options == "function") {
+ return [callback || {}, options];
+ }
+ if (_isUndefined(options)) {
+ return [{}, callback];
+ }
+ return [options, callback];
+ }
+ function _generateTmpName(opts) {
+ if (opts.name) {
+ return path2.join(opts.dir || tmpDir, opts.name);
+ }
+ if (opts.template) {
+ return opts.template.replace(TEMPLATE_PATTERN, _randomChars(6));
+ }
+ const name = [
+ opts.prefix || "tmp-",
+ process.pid,
+ _randomChars(12),
+ opts.postfix || ""
+ ].join("");
+ return path2.join(opts.dir || tmpDir, name);
+ }
+ function tmpName(options, callback) {
+ var args = _parseArguments(options, callback), opts = args[0], cb = args[1], tries = opts.name ? 1 : opts.tries || DEFAULT_TRIES;
+ if (isNaN(tries) || tries < 0)
+ return cb(new Error("Invalid tries"));
+ if (opts.template && !opts.template.match(TEMPLATE_PATTERN))
+ return cb(new Error("Invalid template provided"));
+ (function _getUniqueName() {
+ const name = _generateTmpName(opts);
+ fs2.stat(name, function(err) {
+ if (!err) {
+ if (tries-- > 0)
+ return _getUniqueName();
+ return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
+ }
+ cb(null, name);
+ });
+ })();
+ }
+ function tmpNameSync(options) {
+ var args = _parseArguments(options), opts = args[0], tries = opts.name ? 1 : opts.tries || DEFAULT_TRIES;
+ if (isNaN(tries) || tries < 0)
+ throw new Error("Invalid tries");
+ if (opts.template && !opts.template.match(TEMPLATE_PATTERN))
+ throw new Error("Invalid template provided");
+ do {
+ const name = _generateTmpName(opts);
+ try {
+ fs2.statSync(name);
+ } catch (e) {
+ return name;
+ }
+ } while (tries-- > 0);
+ throw new Error("Could not get a unique tmp filename, max tries reached");
+ }
+ function file(options, callback) {
+ var args = _parseArguments(options, callback), opts = args[0], cb = args[1];
+ opts.postfix = _isUndefined(opts.postfix) ? ".tmp" : opts.postfix;
+ tmpName(opts, function _tmpNameCreated(err, name) {
+ if (err)
+ return cb(err);
+ fs2.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
+ if (err2)
+ return cb(err2);
+ if (opts.discardDescriptor) {
+ return fs2.close(fd, function _discardCallback(err3) {
+ if (err3) {
+ try {
+ fs2.unlinkSync(name);
+ } catch (e) {
+ if (!isENOENT(e)) {
+ err3 = e;
+ }
+ }
+ return cb(err3);
+ }
+ cb(null, name, undefined, _prepareTmpFileRemoveCallback(name, -1, opts));
+ });
+ }
+ if (opts.detachDescriptor) {
+ return cb(null, name, fd, _prepareTmpFileRemoveCallback(name, -1, opts));
+ }
+ cb(null, name, fd, _prepareTmpFileRemoveCallback(name, fd, opts));
+ });
+ });
+ }
+ function fileSync(options) {
+ var args = _parseArguments(options), opts = args[0];
+ opts.postfix = opts.postfix || ".tmp";
+ const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
+ const name = tmpNameSync(opts);
+ var fd = fs2.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
+ if (opts.discardDescriptor) {
+ fs2.closeSync(fd);
+ fd = undefined;
+ }
+ return {
+ name,
+ fd,
+ removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts)
+ };
+ }
+ function _rmdirRecursiveSync(root) {
+ const dirs = [root];
+ do {
+ var dir2 = dirs.pop(), deferred = false, files = fs2.readdirSync(dir2);
+ for (var i = 0, length = files.length;i < length; i++) {
+ var file2 = path2.join(dir2, files[i]), stat = fs2.lstatSync(file2);
+ if (stat.isDirectory()) {
+ if (!deferred) {
+ deferred = true;
+ dirs.push(dir2);
+ }
+ dirs.push(file2);
+ } else {
+ fs2.unlinkSync(file2);
+ }
+ }
+ if (!deferred) {
+ fs2.rmdirSync(dir2);
+ }
+ } while (dirs.length !== 0);
+ }
+ function dir(options, callback) {
+ var args = _parseArguments(options, callback), opts = args[0], cb = args[1];
+ tmpName(opts, function _tmpNameCreated(err, name) {
+ if (err)
+ return cb(err);
+ fs2.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
+ if (err2)
+ return cb(err2);
+ cb(null, name, _prepareTmpDirRemoveCallback(name, opts));
+ });
+ });
+ }
+ function dirSync(options) {
+ var args = _parseArguments(options), opts = args[0];
+ const name = tmpNameSync(opts);
+ fs2.mkdirSync(name, opts.mode || DIR_MODE);
+ return {
+ name,
+ removeCallback: _prepareTmpDirRemoveCallback(name, opts)
+ };
+ }
+ function _prepareTmpFileRemoveCallback(name, fd, opts) {
+ const removeCallback = _prepareRemoveCallback(function _removeCallback(fdPath) {
+ try {
+ if (0 <= fdPath[0]) {
+ fs2.closeSync(fdPath[0]);
+ }
+ } catch (e) {
+ if (!isEBADF(e) && !isENOENT(e)) {
+ throw e;
+ }
+ }
+ try {
+ fs2.unlinkSync(fdPath[1]);
+ } catch (e) {
+ if (!isENOENT(e)) {
+ throw e;
+ }
+ }
+ }, [fd, name]);
+ if (!opts.keep) {
+ _removeObjects.unshift(removeCallback);
+ }
+ return removeCallback;
+ }
+ function _prepareTmpDirRemoveCallback(name, opts) {
+ const removeFunction = opts.unsafeCleanup ? _rmdirRecursiveSync : fs2.rmdirSync.bind(fs2);
+ const removeCallback = _prepareRemoveCallback(removeFunction, name);
+ if (!opts.keep) {
+ _removeObjects.unshift(removeCallback);
+ }
+ return removeCallback;
+ }
+ function _prepareRemoveCallback(removeFunction, arg) {
+ var called = false;
+ return function _cleanupCallback(next) {
+ if (!called) {
+ const index = _removeObjects.indexOf(_cleanupCallback);
+ if (index >= 0) {
+ _removeObjects.splice(index, 1);
+ }
+ called = true;
+ removeFunction(arg);
+ }
+ if (next)
+ next(null);
+ };
+ }
+ function _garbageCollector() {
+ if (_uncaughtException && !_gracefulCleanup) {
+ return;
+ }
+ while (_removeObjects.length) {
+ try {
+ _removeObjects[0].call(null);
+ } catch (e) {
+ }
+ }
+ }
+ function isEBADF(error) {
+ return isExpectedError(error, -EBADF, "EBADF");
+ }
+ function isENOENT(error) {
+ return isExpectedError(error, -ENOENT, "ENOENT");
+ }
+ function isExpectedError(error, code, errno) {
+ return error.code == code || error.code == errno;
+ }
+ function setGracefulCleanup() {
+ _gracefulCleanup = true;
+ }
+ var version = process.versions.node.split(".").map(function(value) {
+ return parseInt(value, 10);
+ });
+ if (version[0] === 0 && (version[1] < 9 || version[1] === 9 && version[2] < 5)) {
+ process.addListener("uncaughtException", function _uncaughtExceptionThrown(err) {
+ _uncaughtException = true;
+ _garbageCollector();
+ throw err;
+ });
+ }
+ process.addListener("exit", function _exit(code) {
+ if (code)
+ _uncaughtException = true;
+ _garbageCollector();
+ });
+ exports.tmpdir = tmpDir;
+ exports.dir = dir;
+ exports.dirSync = dirSync;
+ exports.file = file;
+ exports.fileSync = fileSync;
+ exports.tmpName = tmpName;
+ exports.tmpNameSync = tmpNameSync;
+ exports.setGracefulCleanup = setGracefulCleanup;
+});
+
+// node_modules/external-editor/main/errors/CreateFileError.js
+var require_CreateFileError = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (b2.hasOwnProperty(p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var CreateFileError = function(_super) {
+ __extends(CreateFileError2, _super);
+ function CreateFileError2(originalError) {
+ var _newTarget = this.constructor;
+ var _this = _super.call(this, "Failed to create temporary file for editor") || this;
+ _this.originalError = originalError;
+ var proto2 = _newTarget.prototype;
+ if (Object.setPrototypeOf) {
+ Object.setPrototypeOf(_this, proto2);
+ } else {
+ _this.__proto__ = _newTarget.prototype;
+ }
+ return _this;
+ }
+ return CreateFileError2;
+ }(Error);
+ exports.CreateFileError = CreateFileError;
+});
+
+// node_modules/external-editor/main/errors/LaunchEditorError.js
+var require_LaunchEditorError = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (b2.hasOwnProperty(p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var LaunchEditorError = function(_super) {
+ __extends(LaunchEditorError2, _super);
+ function LaunchEditorError2(originalError) {
+ var _newTarget = this.constructor;
+ var _this = _super.call(this, "Failed launch editor") || this;
+ _this.originalError = originalError;
+ var proto2 = _newTarget.prototype;
+ if (Object.setPrototypeOf) {
+ Object.setPrototypeOf(_this, proto2);
+ } else {
+ _this.__proto__ = _newTarget.prototype;
+ }
+ return _this;
+ }
+ return LaunchEditorError2;
+ }(Error);
+ exports.LaunchEditorError = LaunchEditorError;
+});
+
+// node_modules/external-editor/main/errors/ReadFileError.js
+var require_ReadFileError = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (b2.hasOwnProperty(p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var ReadFileError = function(_super) {
+ __extends(ReadFileError2, _super);
+ function ReadFileError2(originalError) {
+ var _newTarget = this.constructor;
+ var _this = _super.call(this, "Failed to read temporary file") || this;
+ _this.originalError = originalError;
+ var proto2 = _newTarget.prototype;
+ if (Object.setPrototypeOf) {
+ Object.setPrototypeOf(_this, proto2);
+ } else {
+ _this.__proto__ = _newTarget.prototype;
+ }
+ return _this;
+ }
+ return ReadFileError2;
+ }(Error);
+ exports.ReadFileError = ReadFileError;
+});
+
+// node_modules/external-editor/main/errors/RemoveFileError.js
+var require_RemoveFileError = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (b2.hasOwnProperty(p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var RemoveFileError = function(_super) {
+ __extends(RemoveFileError2, _super);
+ function RemoveFileError2(originalError) {
+ var _newTarget = this.constructor;
+ var _this = _super.call(this, "Failed to cleanup temporary file") || this;
+ _this.originalError = originalError;
+ var proto2 = _newTarget.prototype;
+ if (Object.setPrototypeOf) {
+ Object.setPrototypeOf(_this, proto2);
+ } else {
+ _this.__proto__ = _newTarget.prototype;
+ }
+ return _this;
+ }
+ return RemoveFileError2;
+ }(Error);
+ exports.RemoveFileError = RemoveFileError;
+});
+
+// node_modules/external-editor/main/index.js
+var require_main = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var chardet_1 = require_chardet();
+ var child_process_1 = __require("child_process");
+ var fs_1 = __require("fs");
+ var iconv_lite_1 = require_lib2();
+ var tmp_1 = require_tmp();
+ var CreateFileError_1 = require_CreateFileError();
+ exports.CreateFileError = CreateFileError_1.CreateFileError;
+ var LaunchEditorError_1 = require_LaunchEditorError();
+ exports.LaunchEditorError = LaunchEditorError_1.LaunchEditorError;
+ var ReadFileError_1 = require_ReadFileError();
+ exports.ReadFileError = ReadFileError_1.ReadFileError;
+ var RemoveFileError_1 = require_RemoveFileError();
+ exports.RemoveFileError = RemoveFileError_1.RemoveFileError;
+ function edit(text, fileOptions) {
+ if (text === undefined) {
+ text = "";
+ }
+ var editor = new ExternalEditor(text, fileOptions);
+ editor.run();
+ editor.cleanup();
+ return editor.text;
+ }
+ exports.edit = edit;
+ function editAsync(text, callback, fileOptions) {
+ if (text === undefined) {
+ text = "";
+ }
+ var editor = new ExternalEditor(text, fileOptions);
+ editor.runAsync(function(err, result) {
+ if (err) {
+ setImmediate(callback, err, null);
+ } else {
+ try {
+ editor.cleanup();
+ setImmediate(callback, null, result);
+ } catch (cleanupError) {
+ setImmediate(callback, cleanupError, null);
+ }
+ }
+ });
+ }
+ exports.editAsync = editAsync;
+ var ExternalEditor = function() {
+ function ExternalEditor2(text, fileOptions) {
+ if (text === undefined) {
+ text = "";
+ }
+ this.text = "";
+ this.fileOptions = {};
+ this.text = text;
+ if (fileOptions) {
+ this.fileOptions = fileOptions;
+ }
+ this.determineEditor();
+ this.createTemporaryFile();
+ }
+ ExternalEditor2.splitStringBySpace = function(str) {
+ var pieces = [];
+ var currentString = "";
+ for (var strIndex = 0;strIndex < str.length; strIndex++) {
+ var currentLetter = str[strIndex];
+ if (strIndex > 0 && currentLetter === " " && str[strIndex - 1] !== "\\" && currentString.length > 0) {
+ pieces.push(currentString);
+ currentString = "";
+ } else {
+ currentString += currentLetter;
+ }
+ }
+ if (currentString.length > 0) {
+ pieces.push(currentString);
+ }
+ return pieces;
+ };
+ Object.defineProperty(ExternalEditor2.prototype, "temp_file", {
+ get: function() {
+ console.log("DEPRECATED: temp_file. Use tempFile moving forward.");
+ return this.tempFile;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(ExternalEditor2.prototype, "last_exit_status", {
+ get: function() {
+ console.log("DEPRECATED: last_exit_status. Use lastExitStatus moving forward.");
+ return this.lastExitStatus;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ ExternalEditor2.prototype.run = function() {
+ this.launchEditor();
+ this.readTemporaryFile();
+ return this.text;
+ };
+ ExternalEditor2.prototype.runAsync = function(callback) {
+ var _this = this;
+ try {
+ this.launchEditorAsync(function() {
+ try {
+ _this.readTemporaryFile();
+ setImmediate(callback, null, _this.text);
+ } catch (readError) {
+ setImmediate(callback, readError, null);
+ }
+ });
+ } catch (launchError) {
+ setImmediate(callback, launchError, null);
+ }
+ };
+ ExternalEditor2.prototype.cleanup = function() {
+ this.removeTemporaryFile();
+ };
+ ExternalEditor2.prototype.determineEditor = function() {
+ var editor = process.env.VISUAL ? process.env.VISUAL : process.env.EDITOR ? process.env.EDITOR : /^win/.test(process.platform) ? "notepad" : "vim";
+ var editorOpts = ExternalEditor2.splitStringBySpace(editor).map(function(piece) {
+ return piece.replace("\\ ", " ");
+ });
+ var bin = editorOpts.shift();
+ this.editor = { args: editorOpts, bin };
+ };
+ ExternalEditor2.prototype.createTemporaryFile = function() {
+ try {
+ this.tempFile = tmp_1.tmpNameSync(this.fileOptions);
+ var opt = { encoding: "utf8" };
+ if (this.fileOptions.hasOwnProperty("mode")) {
+ opt.mode = this.fileOptions.mode;
+ }
+ fs_1.writeFileSync(this.tempFile, this.text, opt);
+ } catch (createFileError) {
+ throw new CreateFileError_1.CreateFileError(createFileError);
+ }
+ };
+ ExternalEditor2.prototype.readTemporaryFile = function() {
+ try {
+ var tempFileBuffer = fs_1.readFileSync(this.tempFile);
+ if (tempFileBuffer.length === 0) {
+ this.text = "";
+ } else {
+ var encoding = chardet_1.detect(tempFileBuffer).toString();
+ if (!iconv_lite_1.encodingExists(encoding)) {
+ encoding = "utf8";
+ }
+ this.text = iconv_lite_1.decode(tempFileBuffer, encoding);
+ }
+ } catch (readFileError) {
+ throw new ReadFileError_1.ReadFileError(readFileError);
+ }
+ };
+ ExternalEditor2.prototype.removeTemporaryFile = function() {
+ try {
+ fs_1.unlinkSync(this.tempFile);
+ } catch (removeFileError) {
+ throw new RemoveFileError_1.RemoveFileError(removeFileError);
+ }
+ };
+ ExternalEditor2.prototype.launchEditor = function() {
+ try {
+ var editorProcess = child_process_1.spawnSync(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: "inherit" });
+ this.lastExitStatus = editorProcess.status;
+ } catch (launchError) {
+ throw new LaunchEditorError_1.LaunchEditorError(launchError);
+ }
+ };
+ ExternalEditor2.prototype.launchEditorAsync = function(callback) {
+ var _this = this;
+ try {
+ var editorProcess = child_process_1.spawn(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: "inherit" });
+ editorProcess.on("exit", function(code) {
+ _this.lastExitStatus = code;
+ setImmediate(callback);
+ });
+ } catch (launchError) {
+ throw new LaunchEditorError_1.LaunchEditorError(launchError);
+ }
+ };
+ return ExternalEditor2;
+ }();
+ exports.ExternalEditor = ExternalEditor;
+});
+
+// node_modules/@inquirer/editor/dist/esm/index.js
+import { AsyncResource as AsyncResource4 } from "node:async_hooks";
+var import_external_editor, editorTheme, esm_default3;
+var init_esm4 = __esm(() => {
+ import_external_editor = __toESM(require_main(), 1);
+ init_esm2();
+ editorTheme = {
+ validationFailureMode: "keep"
+ };
+ esm_default3 = createPrompt((config, done) => {
+ const { waitForUseInput = true, file: { postfix = config.postfix ?? ".txt", ...fileProps } = {}, validate = () => true } = config;
+ const theme = makeTheme(editorTheme, config.theme);
+ const [status, setStatus] = useState("idle");
+ const [value = "", setValue] = useState(config.default);
+ const [errorMsg, setError] = useState();
+ const prefix = usePrefix({ status, theme });
+ function startEditor(rl) {
+ rl.pause();
+ const editCallback = AsyncResource4.bind(async (error2, answer) => {
+ rl.resume();
+ if (error2) {
+ setError(error2.toString());
+ } else {
+ setStatus("loading");
+ const isValid = await validate(answer);
+ if (isValid === true) {
+ setError(undefined);
+ setStatus("done");
+ done(answer);
+ } else {
+ if (theme.validationFailureMode === "clear") {
+ setValue(config.default);
+ } else {
+ setValue(answer);
+ }
+ setError(isValid || "You must provide a valid value");
+ setStatus("idle");
+ }
+ }
+ });
+ import_external_editor.editAsync(value, (error2, answer) => void editCallback(error2, answer), {
+ postfix,
+ ...fileProps
+ });
+ }
+ useEffect((rl) => {
+ if (!waitForUseInput) {
+ startEditor(rl);
+ }
+ }, []);
+ useKeypress((key2, rl) => {
+ if (status !== "idle") {
+ return;
+ }
+ if (isEnterKey(key2)) {
+ startEditor(rl);
+ }
+ });
+ const message = theme.style.message(config.message, status);
+ let helpTip = "";
+ if (status === "loading") {
+ helpTip = theme.style.help("Received");
+ } else if (status === "idle") {
+ const enterKey = theme.style.key("enter");
+ helpTip = theme.style.help(`Press ${enterKey} to launch your preferred editor.`);
+ }
+ let error = "";
+ if (errorMsg) {
+ error = theme.style.error(errorMsg);
+ }
+ return [[prefix, message, helpTip].filter(Boolean).join(" "), error];
+ });
+});
+
+// node_modules/@inquirer/confirm/dist/esm/index.js
+function getBooleanValue(value, defaultValue) {
+ let answer = defaultValue !== false;
+ if (/^(y|yes)/i.test(value))
+ answer = true;
+ else if (/^(n|no)/i.test(value))
+ answer = false;
+ return answer;
+}
+function boolToString(value) {
+ return value ? "Yes" : "No";
+}
+var esm_default4;
+var init_esm5 = __esm(() => {
+ init_esm2();
+ esm_default4 = createPrompt((config, done) => {
+ const { transformer = boolToString } = config;
+ const [status, setStatus] = useState("idle");
+ const [value, setValue] = useState("");
+ const theme = makeTheme(config.theme);
+ const prefix = usePrefix({ status, theme });
+ useKeypress((key2, rl) => {
+ if (isEnterKey(key2)) {
+ const answer = getBooleanValue(value, config.default);
+ setValue(transformer(answer));
+ setStatus("done");
+ done(answer);
+ } else if (key2.name === "tab") {
+ const answer = boolToString(!getBooleanValue(value, config.default));
+ rl.clearLine(0);
+ rl.write(answer);
+ setValue(answer);
+ } else {
+ setValue(rl.line);
+ }
+ });
+ let formattedValue = value;
+ let defaultValue = "";
+ if (status === "done") {
+ formattedValue = theme.style.answer(value);
+ } else {
+ defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? "y/N" : "Y/n")}`;
+ }
+ const message = theme.style.message(config.message, status);
+ return `${prefix} ${message}${defaultValue} ${formattedValue}`;
+ });
+});
+
+// node_modules/@inquirer/input/dist/esm/index.js
+var inputTheme, esm_default5;
+var init_esm6 = __esm(() => {
+ init_esm2();
+ inputTheme = {
+ validationFailureMode: "keep"
+ };
+ esm_default5 = createPrompt((config, done) => {
+ const { required, validate = () => true } = config;
+ const theme = makeTheme(inputTheme, config.theme);
+ const [status, setStatus] = useState("idle");
+ const [defaultValue = "", setDefaultValue] = useState(config.default);
+ const [errorMsg, setError] = useState();
+ const [value, setValue] = useState("");
+ const prefix = usePrefix({ status, theme });
+ useKeypress(async (key2, rl) => {
+ if (status !== "idle") {
+ return;
+ }
+ if (isEnterKey(key2)) {
+ const answer = value || defaultValue;
+ setStatus("loading");
+ const isValid = required && !answer ? "You must provide a value" : await validate(answer);
+ if (isValid === true) {
+ setValue(answer);
+ setStatus("done");
+ done(answer);
+ } else {
+ if (theme.validationFailureMode === "clear") {
+ setValue("");
+ } else {
+ rl.write(value);
+ }
+ setError(isValid || "You must provide a valid value");
+ setStatus("idle");
+ }
+ } else if (isBackspaceKey(key2) && !value) {
+ setDefaultValue(undefined);
+ } else if (key2.name === "tab" && !value) {
+ setDefaultValue(undefined);
+ rl.clearLine(0);
+ rl.write(defaultValue);
+ setValue(defaultValue);
+ } else {
+ setValue(rl.line);
+ setError(undefined);
+ }
+ });
+ const message = theme.style.message(config.message, status);
+ let formattedValue = value;
+ if (typeof config.transformer === "function") {
+ formattedValue = config.transformer(value, { isFinal: status === "done" });
+ } else if (status === "done") {
+ formattedValue = theme.style.answer(value);
+ }
+ let defaultStr;
+ if (defaultValue && status !== "done" && !value) {
+ defaultStr = theme.style.defaultAnswer(defaultValue);
+ }
+ let error = "";
+ if (errorMsg) {
+ error = theme.style.error(errorMsg);
+ }
+ return [
+ [prefix, message, defaultStr, formattedValue].filter((v) => v !== undefined).join(" "),
+ error
+ ];
+ });
+});
+
+// node_modules/@inquirer/number/dist/esm/index.js
+function isStepOf(value, step, min) {
+ const valuePow = value * Math.pow(10, 6);
+ const stepPow = step * Math.pow(10, 6);
+ const minPow = min * Math.pow(10, 6);
+ return (valuePow - (Number.isFinite(min) ? minPow : 0)) % stepPow === 0;
+}
+function validateNumber(value, { min, max, step }) {
+ if (value == null || Number.isNaN(value)) {
+ return false;
+ } else if (value < min || value > max) {
+ return `Value must be between ${min} and ${max}`;
+ } else if (step !== "any" && !isStepOf(value, step, min)) {
+ return `Value must be a multiple of ${step}${Number.isFinite(min) ? ` starting from ${min}` : ""}`;
+ }
+ return true;
+}
+var esm_default6;
+var init_esm7 = __esm(() => {
+ init_esm2();
+ esm_default6 = createPrompt((config, done) => {
+ const { validate = () => true, min = -Infinity, max = Infinity, step = 1, required = false } = config;
+ const theme = makeTheme(config.theme);
+ const [status, setStatus] = useState("idle");
+ const [value, setValue] = useState("");
+ const validDefault = validateNumber(config.default, { min, max, step }) === true ? config.default?.toString() : undefined;
+ const [defaultValue = "", setDefaultValue] = useState(validDefault);
+ const [errorMsg, setError] = useState();
+ const prefix = usePrefix({ status, theme });
+ useKeypress(async (key2, rl) => {
+ if (status !== "idle") {
+ return;
+ }
+ if (isEnterKey(key2)) {
+ const input = value || defaultValue;
+ const answer = input === "" ? undefined : Number(input);
+ setStatus("loading");
+ let isValid = true;
+ if (required || answer != null) {
+ isValid = validateNumber(answer, { min, max, step });
+ }
+ if (isValid === true) {
+ isValid = await validate(answer);
+ }
+ if (isValid === true) {
+ setValue(String(answer ?? ""));
+ setStatus("done");
+ done(answer);
+ } else {
+ rl.write(value);
+ setError(isValid || "You must provide a valid numeric value");
+ setStatus("idle");
+ }
+ } else if (isBackspaceKey(key2) && !value) {
+ setDefaultValue(undefined);
+ } else if (key2.name === "tab" && !value) {
+ setDefaultValue(undefined);
+ rl.clearLine(0);
+ rl.write(defaultValue);
+ setValue(defaultValue);
+ } else {
+ setValue(rl.line);
+ setError(undefined);
+ }
+ });
+ const message = theme.style.message(config.message, status);
+ let formattedValue = value;
+ if (status === "done") {
+ formattedValue = theme.style.answer(value);
+ }
+ let defaultStr;
+ if (defaultValue && status !== "done" && !value) {
+ defaultStr = theme.style.defaultAnswer(defaultValue);
+ }
+ let error = "";
+ if (errorMsg) {
+ error = theme.style.error(errorMsg);
+ }
+ return [
+ [prefix, message, defaultStr, formattedValue].filter((v) => v !== undefined).join(" "),
+ error
+ ];
+ });
+});
+
+// node_modules/@inquirer/expand/dist/esm/index.js
+function normalizeChoices2(choices) {
+ return choices.map((choice) => {
+ if (Separator.isSeparator(choice)) {
+ return choice;
+ }
+ const name = "name" in choice ? choice.name : String(choice.value);
+ const value = "value" in choice ? choice.value : name;
+ return {
+ value,
+ name,
+ key: choice.key.toLowerCase()
+ };
+ });
+}
+var import_yoctocolors_cjs4, helpChoice, esm_default7;
+var init_esm8 = __esm(() => {
+ init_esm2();
+ import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
+ helpChoice = {
+ key: "h",
+ name: "Help, list all options",
+ value: undefined
+ };
+ esm_default7 = createPrompt((config, done) => {
+ const { default: defaultKey = "h" } = config;
+ const choices = useMemo(() => normalizeChoices2(config.choices), [config.choices]);
+ const [status, setStatus] = useState("idle");
+ const [value, setValue] = useState("");
+ const [expanded, setExpanded] = useState(config.expanded ?? false);
+ const [errorMsg, setError] = useState();
+ const theme = makeTheme(config.theme);
+ const prefix = usePrefix({ theme, status });
+ useKeypress((event, rl) => {
+ if (isEnterKey(event)) {
+ const answer = (value || defaultKey).toLowerCase();
+ if (answer === "h" && !expanded) {
+ setExpanded(true);
+ } else {
+ const selectedChoice = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === answer);
+ if (selectedChoice) {
+ setStatus("done");
+ setValue(answer);
+ done(selectedChoice.value);
+ } else if (value === "") {
+ setError("Please input a value");
+ } else {
+ setError(`"${import_yoctocolors_cjs4.default.red(value)}" isn't an available option`);
+ }
+ }
+ } else {
+ setValue(rl.line);
+ setError(undefined);
+ }
+ });
+ const message = theme.style.message(config.message, status);
+ if (status === "done") {
+ const selectedChoice = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === value.toLowerCase());
+ return `${prefix} ${message} ${theme.style.answer(selectedChoice.name)}`;
+ }
+ const allChoices = expanded ? choices : [...choices, helpChoice];
+ let longChoices = "";
+ let shortChoices = allChoices.map((choice) => {
+ if (Separator.isSeparator(choice))
+ return "";
+ if (choice.key === defaultKey) {
+ return choice.key.toUpperCase();
+ }
+ return choice.key;
+ }).join("");
+ shortChoices = ` ${theme.style.defaultAnswer(shortChoices)}`;
+ if (expanded) {
+ shortChoices = "";
+ longChoices = allChoices.map((choice) => {
+ if (Separator.isSeparator(choice)) {
+ return ` ${choice.separator}`;
+ }
+ const line = ` ${choice.key}) ${choice.name}`;
+ if (choice.key === value.toLowerCase()) {
+ return theme.style.highlight(line);
+ }
+ return line;
+ }).join(`
+`);
+ }
+ let helpTip = "";
+ const currentOption = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === value.toLowerCase());
+ if (currentOption) {
+ helpTip = `${import_yoctocolors_cjs4.default.cyan(">>")} ${currentOption.name}`;
+ }
+ let error = "";
+ if (errorMsg) {
+ error = theme.style.error(errorMsg);
+ }
+ return [
+ `${prefix} ${message}${shortChoices} ${value}`,
+ [longChoices, helpTip, error].filter(Boolean).join(`
+`)
+ ];
+ });
+});
+
+// node_modules/@inquirer/rawlist/dist/esm/index.js
+function isSelectableChoice(choice) {
+ return choice != null && !Separator.isSeparator(choice);
+}
+function normalizeChoices3(choices) {
+ let index = 0;
+ return choices.map((choice) => {
+ if (Separator.isSeparator(choice))
+ return choice;
+ index += 1;
+ if (typeof choice === "string") {
+ return {
+ value: choice,
+ name: choice,
+ short: choice,
+ key: String(index)
+ };
+ }
+ const name = choice.name ?? String(choice.value);
+ return {
+ value: choice.value,
+ name,
+ short: choice.short ?? name,
+ key: choice.key ?? String(index)
+ };
+ });
+}
+var import_yoctocolors_cjs5, numberRegex, esm_default8;
+var init_esm9 = __esm(() => {
+ init_esm2();
+ import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
+ numberRegex = /\d+/;
+ esm_default8 = createPrompt((config, done) => {
+ const choices = useMemo(() => normalizeChoices3(config.choices), [config.choices]);
+ const [status, setStatus] = useState("idle");
+ const [value, setValue] = useState("");
+ const [errorMsg, setError] = useState();
+ const theme = makeTheme(config.theme);
+ const prefix = usePrefix({ status, theme });
+ useKeypress((key2, rl) => {
+ if (isEnterKey(key2)) {
+ let selectedChoice;
+ if (numberRegex.test(value)) {
+ const answer = Number.parseInt(value, 10) - 1;
+ selectedChoice = choices.filter(isSelectableChoice)[answer];
+ } else {
+ selectedChoice = choices.find((choice) => isSelectableChoice(choice) && choice.key === value);
+ }
+ if (isSelectableChoice(selectedChoice)) {
+ setValue(selectedChoice.short);
+ setStatus("done");
+ done(selectedChoice.value);
+ } else if (value === "") {
+ setError("Please input a value");
+ } else {
+ setError(`"${import_yoctocolors_cjs5.default.red(value)}" isn't an available option`);
+ }
+ } else {
+ setValue(rl.line);
+ setError(undefined);
+ }
+ });
+ const message = theme.style.message(config.message, status);
+ if (status === "done") {
+ return `${prefix} ${message} ${theme.style.answer(value)}`;
+ }
+ const choicesStr = choices.map((choice) => {
+ if (Separator.isSeparator(choice)) {
+ return ` ${choice.separator}`;
+ }
+ const line = ` ${choice.key}) ${choice.name}`;
+ if (choice.key === value.toLowerCase()) {
+ return theme.style.highlight(line);
+ }
+ return line;
+ }).join(`
+`);
+ let error = "";
+ if (errorMsg) {
+ error = theme.style.error(errorMsg);
+ }
+ return [
+ `${prefix} ${message} ${value}`,
+ [choicesStr, error].filter(Boolean).join(`
+`)
+ ];
+ });
+});
+
+// node_modules/@inquirer/password/dist/esm/index.js
+var import_ansi_escapes3, esm_default9;
+var init_esm10 = __esm(() => {
+ init_esm2();
+ import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
+ esm_default9 = createPrompt((config, done) => {
+ const { validate = () => true } = config;
+ const theme = makeTheme(config.theme);
+ const [status, setStatus] = useState("idle");
+ const [errorMsg, setError] = useState();
+ const [value, setValue] = useState("");
+ const prefix = usePrefix({ status, theme });
+ useKeypress(async (key2, rl) => {
+ if (status !== "idle") {
+ return;
+ }
+ if (isEnterKey(key2)) {
+ const answer = value;
+ setStatus("loading");
+ const isValid = await validate(answer);
+ if (isValid === true) {
+ setValue(answer);
+ setStatus("done");
+ done(answer);
+ } else {
+ rl.write(value);
+ setError(isValid || "You must provide a valid value");
+ setStatus("idle");
+ }
+ } else {
+ setValue(rl.line);
+ setError(undefined);
+ }
+ });
+ const message = theme.style.message(config.message, status);
+ let formattedValue = "";
+ let helpTip;
+ if (config.mask) {
+ const maskChar = typeof config.mask === "string" ? config.mask : "*";
+ formattedValue = maskChar.repeat(value.length);
+ } else if (status !== "done") {
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
+ }
+ if (status === "done") {
+ formattedValue = theme.style.answer(formattedValue);
+ }
+ let error = "";
+ if (errorMsg) {
+ error = theme.style.error(errorMsg);
+ }
+ return [[prefix, message, config.mask ? formattedValue : helpTip].join(" "), error];
+ });
+});
+
+// node_modules/@inquirer/search/dist/esm/index.js
+function isSelectable2(item) {
+ return !Separator.isSeparator(item) && !item.disabled;
+}
+function normalizeChoices4(choices) {
+ return choices.map((choice) => {
+ if (Separator.isSeparator(choice))
+ return choice;
+ if (typeof choice === "string") {
+ return {
+ value: choice,
+ name: choice,
+ short: choice,
+ disabled: false
+ };
+ }
+ const name = choice.name ?? String(choice.value);
+ return {
+ value: choice.value,
+ name,
+ description: choice.description,
+ short: choice.short ?? name,
+ disabled: choice.disabled ?? false
+ };
+ });
+}
+var import_yoctocolors_cjs6, searchTheme, esm_default10;
+var init_esm11 = __esm(() => {
+ init_esm2();
+ import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
+ init_esm();
+ searchTheme = {
+ icon: { cursor: esm_default.pointer },
+ style: {
+ disabled: (text) => import_yoctocolors_cjs6.default.dim(`- ${text}`),
+ searchTerm: (text) => import_yoctocolors_cjs6.default.cyan(text),
+ description: (text) => import_yoctocolors_cjs6.default.cyan(text)
+ },
+ helpMode: "auto"
+ };
+ esm_default10 = createPrompt((config, done) => {
+ const { pageSize = 7, validate = () => true } = config;
+ const theme = makeTheme(searchTheme, config.theme);
+ const firstRender = useRef(true);
+ const [status, setStatus] = useState("loading");
+ const [searchTerm, setSearchTerm] = useState("");
+ const [searchResults, setSearchResults] = useState([]);
+ const [searchError, setSearchError] = useState();
+ const prefix = usePrefix({ status, theme });
+ const bounds = useMemo(() => {
+ const first = searchResults.findIndex(isSelectable2);
+ const last = searchResults.findLastIndex(isSelectable2);
+ return { first, last };
+ }, [searchResults]);
+ const [active = bounds.first, setActive] = useState();
+ useEffect(() => {
+ const controller = new AbortController;
+ setStatus("loading");
+ setSearchError(undefined);
+ const fetchResults = async () => {
+ try {
+ const results = await config.source(searchTerm || undefined, {
+ signal: controller.signal
+ });
+ if (!controller.signal.aborted) {
+ setActive(undefined);
+ setSearchError(undefined);
+ setSearchResults(normalizeChoices4(results));
+ setStatus("idle");
+ }
+ } catch (error2) {
+ if (!controller.signal.aborted && error2 instanceof Error) {
+ setSearchError(error2.message);
+ }
+ }
+ };
+ fetchResults();
+ return () => {
+ controller.abort();
+ };
+ }, [searchTerm]);
+ const selectedChoice = searchResults[active];
+ useKeypress(async (key2, rl) => {
+ if (isEnterKey(key2)) {
+ if (selectedChoice) {
+ setStatus("loading");
+ const isValid = await validate(selectedChoice.value);
+ setStatus("idle");
+ if (isValid === true) {
+ setStatus("done");
+ done(selectedChoice.value);
+ } else if (selectedChoice.name === searchTerm) {
+ setSearchError(isValid || "You must provide a valid value");
+ } else {
+ rl.write(selectedChoice.name);
+ setSearchTerm(selectedChoice.name);
+ }
+ } else {
+ rl.write(searchTerm);
+ }
+ } else if (key2.name === "tab" && selectedChoice) {
+ rl.clearLine(0);
+ rl.write(selectedChoice.name);
+ setSearchTerm(selectedChoice.name);
+ } else if (status !== "loading" && (key2.name === "up" || key2.name === "down")) {
+ rl.clearLine(0);
+ if (key2.name === "up" && active !== bounds.first || key2.name === "down" && active !== bounds.last) {
+ const offset = key2.name === "up" ? -1 : 1;
+ let next = active;
+ do {
+ next = (next + offset + searchResults.length) % searchResults.length;
+ } while (!isSelectable2(searchResults[next]));
+ setActive(next);
+ }
+ } else {
+ setSearchTerm(rl.line);
+ }
+ });
+ const message = theme.style.message(config.message, status);
+ if (active > 0) {
+ firstRender.current = false;
+ }
+ let helpTip = "";
+ if (searchResults.length > 1 && (theme.helpMode === "always" || theme.helpMode === "auto" && firstRender.current)) {
+ helpTip = searchResults.length > pageSize ? `
+${theme.style.help("(Use arrow keys to reveal more choices)")}` : `
+${theme.style.help("(Use arrow keys)")}`;
+ }
+ const page = usePagination({
+ items: searchResults,
+ active,
+ renderItem({ item, isActive }) {
+ if (Separator.isSeparator(item)) {
+ return ` ${item.separator}`;
+ }
+ if (item.disabled) {
+ const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";
+ return theme.style.disabled(`${item.name} ${disabledLabel}`);
+ }
+ const color = isActive ? theme.style.highlight : (x) => x;
+ const cursor = isActive ? theme.icon.cursor : ` `;
+ return color(`${cursor} ${item.name}`);
+ },
+ pageSize,
+ loop: false
+ });
+ let error;
+ if (searchError) {
+ error = theme.style.error(searchError);
+ } else if (searchResults.length === 0 && searchTerm !== "" && status === "idle") {
+ error = theme.style.error("No results found");
+ }
+ let searchStr;
+ if (status === "done" && selectedChoice) {
+ const answer = selectedChoice.short;
+ return `${prefix} ${message} ${theme.style.answer(answer)}`;
+ } else {
+ searchStr = theme.style.searchTerm(searchTerm);
+ }
+ const choiceDescription = selectedChoice?.description ? `
+${theme.style.description(selectedChoice.description)}` : ``;
+ return [
+ [prefix, message, searchStr].filter(Boolean).join(" "),
+ `${error ?? page}${helpTip}${choiceDescription}`
+ ];
+ });
+});
+
+// node_modules/@inquirer/select/dist/esm/index.js
+function isSelectable3(item) {
+ return !Separator.isSeparator(item) && !item.disabled;
+}
+function normalizeChoices5(choices) {
+ return choices.map((choice) => {
+ if (Separator.isSeparator(choice))
+ return choice;
+ if (typeof choice === "string") {
+ return {
+ value: choice,
+ name: choice,
+ short: choice,
+ disabled: false
+ };
+ }
+ const name = choice.name ?? String(choice.value);
+ return {
+ value: choice.value,
+ name,
+ description: choice.description,
+ short: choice.short ?? name,
+ disabled: choice.disabled ?? false
+ };
+ });
+}
+var import_yoctocolors_cjs7, import_ansi_escapes4, selectTheme, esm_default11;
+var init_esm12 = __esm(() => {
+ init_esm2();
+ import_yoctocolors_cjs7 = __toESM(require_yoctocolors_cjs(), 1);
+ init_esm();
+ import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
+ selectTheme = {
+ icon: { cursor: esm_default.pointer },
+ style: {
+ disabled: (text) => import_yoctocolors_cjs7.default.dim(`- ${text}`),
+ description: (text) => import_yoctocolors_cjs7.default.cyan(text)
+ },
+ helpMode: "auto"
+ };
+ esm_default11 = createPrompt((config, done) => {
+ const { loop = true, pageSize = 7 } = config;
+ const firstRender = useRef(true);
+ const theme = makeTheme(selectTheme, config.theme);
+ const [status, setStatus] = useState("idle");
+ const prefix = usePrefix({ status, theme });
+ const searchTimeoutRef = useRef();
+ const items = useMemo(() => normalizeChoices5(config.choices), [config.choices]);
+ const bounds = useMemo(() => {
+ const first = items.findIndex(isSelectable3);
+ const last = items.findLastIndex(isSelectable3);
+ if (first === -1) {
+ throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
+ }
+ return { first, last };
+ }, [items]);
+ const defaultItemIndex = useMemo(() => {
+ if (!("default" in config))
+ return -1;
+ return items.findIndex((item) => isSelectable3(item) && item.value === config.default);
+ }, [config.default, items]);
+ const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
+ const selectedChoice = items[active];
+ useKeypress((key2, rl) => {
+ clearTimeout(searchTimeoutRef.current);
+ if (isEnterKey(key2)) {
+ setStatus("done");
+ done(selectedChoice.value);
+ } else if (isUpKey(key2) || isDownKey(key2)) {
+ rl.clearLine(0);
+ if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
+ const offset = isUpKey(key2) ? -1 : 1;
+ let next = active;
+ do {
+ next = (next + offset + items.length) % items.length;
+ } while (!isSelectable3(items[next]));
+ setActive(next);
+ }
+ } else if (isNumberKey(key2)) {
+ rl.clearLine(0);
+ const position = Number(key2.name) - 1;
+ const item = items[position];
+ if (item != null && isSelectable3(item)) {
+ setActive(position);
+ }
+ } else if (isBackspaceKey(key2)) {
+ rl.clearLine(0);
+ } else {
+ const searchTerm = rl.line.toLowerCase();
+ const matchIndex = items.findIndex((item) => {
+ if (Separator.isSeparator(item) || !isSelectable3(item))
+ return false;
+ return item.name.toLowerCase().startsWith(searchTerm);
+ });
+ if (matchIndex !== -1) {
+ setActive(matchIndex);
+ }
+ searchTimeoutRef.current = setTimeout(() => {
+ rl.clearLine(0);
+ }, 700);
+ }
+ });
+ useEffect(() => () => {
+ clearTimeout(searchTimeoutRef.current);
+ }, []);
+ const message = theme.style.message(config.message, status);
+ let helpTipTop = "";
+ let helpTipBottom = "";
+ if (theme.helpMode === "always" || theme.helpMode === "auto" && firstRender.current) {
+ firstRender.current = false;
+ if (items.length > pageSize) {
+ helpTipBottom = `
+${theme.style.help("(Use arrow keys to reveal more choices)")}`;
+ } else {
+ helpTipTop = theme.style.help("(Use arrow keys)");
+ }
+ }
+ const page = usePagination({
+ items,
+ active,
+ renderItem({ item, isActive }) {
+ if (Separator.isSeparator(item)) {
+ return ` ${item.separator}`;
+ }
+ if (item.disabled) {
+ const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";
+ return theme.style.disabled(`${item.name} ${disabledLabel}`);
+ }
+ const color = isActive ? theme.style.highlight : (x) => x;
+ const cursor = isActive ? theme.icon.cursor : ` `;
+ return color(`${cursor} ${item.name}`);
+ },
+ pageSize,
+ loop
+ });
+ if (status === "done") {
+ return `${prefix} ${message} ${theme.style.answer(selectedChoice.short)}`;
+ }
+ const choiceDescription = selectedChoice.description ? `
+${theme.style.description(selectedChoice.description)}` : ``;
+ return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
+${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes4.default.cursorHide}`;
+ });
+});
+
+// node_modules/@inquirer/prompts/dist/esm/index.js
+var init_esm13 = __esm(() => {
+ init_esm3();
+ init_esm4();
+ init_esm5();
+ init_esm6();
+ init_esm7();
+ init_esm8();
+ init_esm9();
+ init_esm10();
+ init_esm11();
+ init_esm12();
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/isFunction.js
+var require_isFunction = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isFunction = undefined;
+ function isFunction(value) {
+ return typeof value === "function";
+ }
+ exports.isFunction = isFunction;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js
+var require_createErrorClass = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.createErrorClass = undefined;
+ function createErrorClass(createImpl) {
+ var _super = function(instance) {
+ Error.call(instance);
+ instance.stack = new Error().stack;
+ };
+ var ctorFunc = createImpl(_super);
+ ctorFunc.prototype = Object.create(Error.prototype);
+ ctorFunc.prototype.constructor = ctorFunc;
+ return ctorFunc;
+ }
+ exports.createErrorClass = createErrorClass;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js
+var require_UnsubscriptionError = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.UnsubscriptionError = undefined;
+ var createErrorClass_1 = require_createErrorClass();
+ exports.UnsubscriptionError = createErrorClass_1.createErrorClass(function(_super) {
+ return function UnsubscriptionErrorImpl(errors2) {
+ _super(this);
+ this.message = errors2 ? errors2.length + ` errors occurred during unsubscription:
+` + errors2.map(function(err, i) {
+ return i + 1 + ") " + err.toString();
+ }).join(`
+ `) : "";
+ this.name = "UnsubscriptionError";
+ this.errors = errors2;
+ };
+ });
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/arrRemove.js
+var require_arrRemove = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.arrRemove = undefined;
+ function arrRemove(arr, item) {
+ if (arr) {
+ var index = arr.indexOf(item);
+ 0 <= index && arr.splice(index, 1);
+ }
+ }
+ exports.arrRemove = arrRemove;
+});
+
+// node_modules/rxjs/dist/cjs/internal/Subscription.js
+var require_Subscription = __commonJS((exports) => {
+ var __values = exports && exports.__values || function(o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m)
+ return m.call(o);
+ if (o && typeof o.length === "number")
+ return {
+ next: function() {
+ if (o && i >= o.length)
+ o = undefined;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isSubscription = exports.EMPTY_SUBSCRIPTION = exports.Subscription = undefined;
+ var isFunction_1 = require_isFunction();
+ var UnsubscriptionError_1 = require_UnsubscriptionError();
+ var arrRemove_1 = require_arrRemove();
+ var Subscription = function() {
+ function Subscription2(initialTeardown) {
+ this.initialTeardown = initialTeardown;
+ this.closed = false;
+ this._parentage = null;
+ this._finalizers = null;
+ }
+ Subscription2.prototype.unsubscribe = function() {
+ var e_1, _a, e_2, _b;
+ var errors2;
+ if (!this.closed) {
+ this.closed = true;
+ var _parentage = this._parentage;
+ if (_parentage) {
+ this._parentage = null;
+ if (Array.isArray(_parentage)) {
+ try {
+ for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next();!_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
+ var parent_1 = _parentage_1_1.value;
+ parent_1.remove(this);
+ }
+ } catch (e_1_1) {
+ e_1 = { error: e_1_1 };
+ } finally {
+ try {
+ if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return))
+ _a.call(_parentage_1);
+ } finally {
+ if (e_1)
+ throw e_1.error;
+ }
+ }
+ } else {
+ _parentage.remove(this);
+ }
+ }
+ var initialFinalizer = this.initialTeardown;
+ if (isFunction_1.isFunction(initialFinalizer)) {
+ try {
+ initialFinalizer();
+ } catch (e) {
+ errors2 = e instanceof UnsubscriptionError_1.UnsubscriptionError ? e.errors : [e];
+ }
+ }
+ var _finalizers = this._finalizers;
+ if (_finalizers) {
+ this._finalizers = null;
+ try {
+ for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next();!_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
+ var finalizer = _finalizers_1_1.value;
+ try {
+ execFinalizer(finalizer);
+ } catch (err) {
+ errors2 = errors2 !== null && errors2 !== undefined ? errors2 : [];
+ if (err instanceof UnsubscriptionError_1.UnsubscriptionError) {
+ errors2 = __spreadArray(__spreadArray([], __read(errors2)), __read(err.errors));
+ } else {
+ errors2.push(err);
+ }
+ }
+ }
+ } catch (e_2_1) {
+ e_2 = { error: e_2_1 };
+ } finally {
+ try {
+ if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return))
+ _b.call(_finalizers_1);
+ } finally {
+ if (e_2)
+ throw e_2.error;
+ }
+ }
+ }
+ if (errors2) {
+ throw new UnsubscriptionError_1.UnsubscriptionError(errors2);
+ }
+ }
+ };
+ Subscription2.prototype.add = function(teardown) {
+ var _a;
+ if (teardown && teardown !== this) {
+ if (this.closed) {
+ execFinalizer(teardown);
+ } else {
+ if (teardown instanceof Subscription2) {
+ if (teardown.closed || teardown._hasParent(this)) {
+ return;
+ }
+ teardown._addParent(this);
+ }
+ (this._finalizers = (_a = this._finalizers) !== null && _a !== undefined ? _a : []).push(teardown);
+ }
+ }
+ };
+ Subscription2.prototype._hasParent = function(parent) {
+ var _parentage = this._parentage;
+ return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);
+ };
+ Subscription2.prototype._addParent = function(parent) {
+ var _parentage = this._parentage;
+ this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
+ };
+ Subscription2.prototype._removeParent = function(parent) {
+ var _parentage = this._parentage;
+ if (_parentage === parent) {
+ this._parentage = null;
+ } else if (Array.isArray(_parentage)) {
+ arrRemove_1.arrRemove(_parentage, parent);
+ }
+ };
+ Subscription2.prototype.remove = function(teardown) {
+ var _finalizers = this._finalizers;
+ _finalizers && arrRemove_1.arrRemove(_finalizers, teardown);
+ if (teardown instanceof Subscription2) {
+ teardown._removeParent(this);
+ }
+ };
+ Subscription2.EMPTY = function() {
+ var empty = new Subscription2;
+ empty.closed = true;
+ return empty;
+ }();
+ return Subscription2;
+ }();
+ exports.Subscription = Subscription;
+ exports.EMPTY_SUBSCRIPTION = Subscription.EMPTY;
+ function isSubscription(value) {
+ return value instanceof Subscription || value && "closed" in value && isFunction_1.isFunction(value.remove) && isFunction_1.isFunction(value.add) && isFunction_1.isFunction(value.unsubscribe);
+ }
+ exports.isSubscription = isSubscription;
+ function execFinalizer(finalizer) {
+ if (isFunction_1.isFunction(finalizer)) {
+ finalizer();
+ } else {
+ finalizer.unsubscribe();
+ }
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/config.js
+var require_config = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.config = undefined;
+ exports.config = {
+ onUnhandledError: null,
+ onStoppedNotification: null,
+ Promise: undefined,
+ useDeprecatedSynchronousErrorHandling: false,
+ useDeprecatedNextContext: false
+ };
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js
+var require_timeoutProvider = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.timeoutProvider = undefined;
+ exports.timeoutProvider = {
+ setTimeout: function(handler, timeout) {
+ var args = [];
+ for (var _i = 2;_i < arguments.length; _i++) {
+ args[_i - 2] = arguments[_i];
+ }
+ var delegate = exports.timeoutProvider.delegate;
+ if (delegate === null || delegate === undefined ? undefined : delegate.setTimeout) {
+ return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));
+ }
+ return setTimeout.apply(undefined, __spreadArray([handler, timeout], __read(args)));
+ },
+ clearTimeout: function(handle) {
+ var delegate = exports.timeoutProvider.delegate;
+ return ((delegate === null || delegate === undefined ? undefined : delegate.clearTimeout) || clearTimeout)(handle);
+ },
+ delegate: undefined
+ };
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js
+var require_reportUnhandledError = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.reportUnhandledError = undefined;
+ var config_1 = require_config();
+ var timeoutProvider_1 = require_timeoutProvider();
+ function reportUnhandledError(err) {
+ timeoutProvider_1.timeoutProvider.setTimeout(function() {
+ var onUnhandledError = config_1.config.onUnhandledError;
+ if (onUnhandledError) {
+ onUnhandledError(err);
+ } else {
+ throw err;
+ }
+ });
+ }
+ exports.reportUnhandledError = reportUnhandledError;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/noop.js
+var require_noop = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.noop = undefined;
+ function noop() {
+ }
+ exports.noop = noop;
+});
+
+// node_modules/rxjs/dist/cjs/internal/NotificationFactories.js
+var require_NotificationFactories = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.createNotification = exports.nextNotification = exports.errorNotification = exports.COMPLETE_NOTIFICATION = undefined;
+ exports.COMPLETE_NOTIFICATION = function() {
+ return createNotification("C", undefined, undefined);
+ }();
+ function errorNotification(error) {
+ return createNotification("E", undefined, error);
+ }
+ exports.errorNotification = errorNotification;
+ function nextNotification(value) {
+ return createNotification("N", value, undefined);
+ }
+ exports.nextNotification = nextNotification;
+ function createNotification(kind, value, error) {
+ return {
+ kind,
+ value,
+ error
+ };
+ }
+ exports.createNotification = createNotification;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/errorContext.js
+var require_errorContext = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.captureError = exports.errorContext = undefined;
+ var config_1 = require_config();
+ var context = null;
+ function errorContext(cb) {
+ if (config_1.config.useDeprecatedSynchronousErrorHandling) {
+ var isRoot = !context;
+ if (isRoot) {
+ context = { errorThrown: false, error: null };
+ }
+ cb();
+ if (isRoot) {
+ var _a = context, errorThrown = _a.errorThrown, error = _a.error;
+ context = null;
+ if (errorThrown) {
+ throw error;
+ }
+ }
+ } else {
+ cb();
+ }
+ }
+ exports.errorContext = errorContext;
+ function captureError(err) {
+ if (config_1.config.useDeprecatedSynchronousErrorHandling && context) {
+ context.errorThrown = true;
+ context.error = err;
+ }
+ }
+ exports.captureError = captureError;
+});
+
+// node_modules/rxjs/dist/cjs/internal/Subscriber.js
+var require_Subscriber = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.EMPTY_OBSERVER = exports.SafeSubscriber = exports.Subscriber = undefined;
+ var isFunction_1 = require_isFunction();
+ var Subscription_1 = require_Subscription();
+ var config_1 = require_config();
+ var reportUnhandledError_1 = require_reportUnhandledError();
+ var noop_1 = require_noop();
+ var NotificationFactories_1 = require_NotificationFactories();
+ var timeoutProvider_1 = require_timeoutProvider();
+ var errorContext_1 = require_errorContext();
+ var Subscriber = function(_super) {
+ __extends(Subscriber2, _super);
+ function Subscriber2(destination) {
+ var _this = _super.call(this) || this;
+ _this.isStopped = false;
+ if (destination) {
+ _this.destination = destination;
+ if (Subscription_1.isSubscription(destination)) {
+ destination.add(_this);
+ }
+ } else {
+ _this.destination = exports.EMPTY_OBSERVER;
+ }
+ return _this;
+ }
+ Subscriber2.create = function(next, error, complete) {
+ return new SafeSubscriber(next, error, complete);
+ };
+ Subscriber2.prototype.next = function(value) {
+ if (this.isStopped) {
+ handleStoppedNotification(NotificationFactories_1.nextNotification(value), this);
+ } else {
+ this._next(value);
+ }
+ };
+ Subscriber2.prototype.error = function(err) {
+ if (this.isStopped) {
+ handleStoppedNotification(NotificationFactories_1.errorNotification(err), this);
+ } else {
+ this.isStopped = true;
+ this._error(err);
+ }
+ };
+ Subscriber2.prototype.complete = function() {
+ if (this.isStopped) {
+ handleStoppedNotification(NotificationFactories_1.COMPLETE_NOTIFICATION, this);
+ } else {
+ this.isStopped = true;
+ this._complete();
+ }
+ };
+ Subscriber2.prototype.unsubscribe = function() {
+ if (!this.closed) {
+ this.isStopped = true;
+ _super.prototype.unsubscribe.call(this);
+ this.destination = null;
+ }
+ };
+ Subscriber2.prototype._next = function(value) {
+ this.destination.next(value);
+ };
+ Subscriber2.prototype._error = function(err) {
+ try {
+ this.destination.error(err);
+ } finally {
+ this.unsubscribe();
+ }
+ };
+ Subscriber2.prototype._complete = function() {
+ try {
+ this.destination.complete();
+ } finally {
+ this.unsubscribe();
+ }
+ };
+ return Subscriber2;
+ }(Subscription_1.Subscription);
+ exports.Subscriber = Subscriber;
+ var _bind = Function.prototype.bind;
+ function bind(fn, thisArg) {
+ return _bind.call(fn, thisArg);
+ }
+ var ConsumerObserver = function() {
+ function ConsumerObserver2(partialObserver) {
+ this.partialObserver = partialObserver;
+ }
+ ConsumerObserver2.prototype.next = function(value) {
+ var partialObserver = this.partialObserver;
+ if (partialObserver.next) {
+ try {
+ partialObserver.next(value);
+ } catch (error) {
+ handleUnhandledError(error);
+ }
+ }
+ };
+ ConsumerObserver2.prototype.error = function(err) {
+ var partialObserver = this.partialObserver;
+ if (partialObserver.error) {
+ try {
+ partialObserver.error(err);
+ } catch (error) {
+ handleUnhandledError(error);
+ }
+ } else {
+ handleUnhandledError(err);
+ }
+ };
+ ConsumerObserver2.prototype.complete = function() {
+ var partialObserver = this.partialObserver;
+ if (partialObserver.complete) {
+ try {
+ partialObserver.complete();
+ } catch (error) {
+ handleUnhandledError(error);
+ }
+ }
+ };
+ return ConsumerObserver2;
+ }();
+ var SafeSubscriber = function(_super) {
+ __extends(SafeSubscriber2, _super);
+ function SafeSubscriber2(observerOrNext, error, complete) {
+ var _this = _super.call(this) || this;
+ var partialObserver;
+ if (isFunction_1.isFunction(observerOrNext) || !observerOrNext) {
+ partialObserver = {
+ next: observerOrNext !== null && observerOrNext !== undefined ? observerOrNext : undefined,
+ error: error !== null && error !== undefined ? error : undefined,
+ complete: complete !== null && complete !== undefined ? complete : undefined
+ };
+ } else {
+ var context_1;
+ if (_this && config_1.config.useDeprecatedNextContext) {
+ context_1 = Object.create(observerOrNext);
+ context_1.unsubscribe = function() {
+ return _this.unsubscribe();
+ };
+ partialObserver = {
+ next: observerOrNext.next && bind(observerOrNext.next, context_1),
+ error: observerOrNext.error && bind(observerOrNext.error, context_1),
+ complete: observerOrNext.complete && bind(observerOrNext.complete, context_1)
+ };
+ } else {
+ partialObserver = observerOrNext;
+ }
+ }
+ _this.destination = new ConsumerObserver(partialObserver);
+ return _this;
+ }
+ return SafeSubscriber2;
+ }(Subscriber);
+ exports.SafeSubscriber = SafeSubscriber;
+ function handleUnhandledError(error) {
+ if (config_1.config.useDeprecatedSynchronousErrorHandling) {
+ errorContext_1.captureError(error);
+ } else {
+ reportUnhandledError_1.reportUnhandledError(error);
+ }
+ }
+ function defaultErrorHandler(err) {
+ throw err;
+ }
+ function handleStoppedNotification(notification, subscriber) {
+ var onStoppedNotification = config_1.config.onStoppedNotification;
+ onStoppedNotification && timeoutProvider_1.timeoutProvider.setTimeout(function() {
+ return onStoppedNotification(notification, subscriber);
+ });
+ }
+ exports.EMPTY_OBSERVER = {
+ closed: true,
+ next: noop_1.noop,
+ error: defaultErrorHandler,
+ complete: noop_1.noop
+ };
+});
+
+// node_modules/rxjs/dist/cjs/internal/symbol/observable.js
+var require_observable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.observable = undefined;
+ exports.observable = function() {
+ return typeof Symbol === "function" && Symbol.observable || "@@observable";
+ }();
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/identity.js
+var require_identity = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.identity = undefined;
+ function identity(x) {
+ return x;
+ }
+ exports.identity = identity;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/pipe.js
+var require_pipe = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.pipeFromArray = exports.pipe = undefined;
+ var identity_1 = require_identity();
+ function pipe() {
+ var fns = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ fns[_i] = arguments[_i];
+ }
+ return pipeFromArray(fns);
+ }
+ exports.pipe = pipe;
+ function pipeFromArray(fns) {
+ if (fns.length === 0) {
+ return identity_1.identity;
+ }
+ if (fns.length === 1) {
+ return fns[0];
+ }
+ return function piped(input) {
+ return fns.reduce(function(prev, fn) {
+ return fn(prev);
+ }, input);
+ };
+ }
+ exports.pipeFromArray = pipeFromArray;
+});
+
+// node_modules/rxjs/dist/cjs/internal/Observable.js
+var require_Observable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.Observable = undefined;
+ var Subscriber_1 = require_Subscriber();
+ var Subscription_1 = require_Subscription();
+ var observable_1 = require_observable();
+ var pipe_1 = require_pipe();
+ var config_1 = require_config();
+ var isFunction_1 = require_isFunction();
+ var errorContext_1 = require_errorContext();
+ var Observable = function() {
+ function Observable2(subscribe) {
+ if (subscribe) {
+ this._subscribe = subscribe;
+ }
+ }
+ Observable2.prototype.lift = function(operator) {
+ var observable = new Observable2;
+ observable.source = this;
+ observable.operator = operator;
+ return observable;
+ };
+ Observable2.prototype.subscribe = function(observerOrNext, error, complete) {
+ var _this = this;
+ var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new Subscriber_1.SafeSubscriber(observerOrNext, error, complete);
+ errorContext_1.errorContext(function() {
+ var _a = _this, operator = _a.operator, source = _a.source;
+ subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
+ });
+ return subscriber;
+ };
+ Observable2.prototype._trySubscribe = function(sink) {
+ try {
+ return this._subscribe(sink);
+ } catch (err) {
+ sink.error(err);
+ }
+ };
+ Observable2.prototype.forEach = function(next, promiseCtor) {
+ var _this = this;
+ promiseCtor = getPromiseCtor(promiseCtor);
+ return new promiseCtor(function(resolve, reject) {
+ var subscriber = new Subscriber_1.SafeSubscriber({
+ next: function(value) {
+ try {
+ next(value);
+ } catch (err) {
+ reject(err);
+ subscriber.unsubscribe();
+ }
+ },
+ error: reject,
+ complete: resolve
+ });
+ _this.subscribe(subscriber);
+ });
+ };
+ Observable2.prototype._subscribe = function(subscriber) {
+ var _a;
+ return (_a = this.source) === null || _a === undefined ? undefined : _a.subscribe(subscriber);
+ };
+ Observable2.prototype[observable_1.observable] = function() {
+ return this;
+ };
+ Observable2.prototype.pipe = function() {
+ var operations = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ operations[_i] = arguments[_i];
+ }
+ return pipe_1.pipeFromArray(operations)(this);
+ };
+ Observable2.prototype.toPromise = function(promiseCtor) {
+ var _this = this;
+ promiseCtor = getPromiseCtor(promiseCtor);
+ return new promiseCtor(function(resolve, reject) {
+ var value;
+ _this.subscribe(function(x) {
+ return value = x;
+ }, function(err) {
+ return reject(err);
+ }, function() {
+ return resolve(value);
+ });
+ });
+ };
+ Observable2.create = function(subscribe) {
+ return new Observable2(subscribe);
+ };
+ return Observable2;
+ }();
+ exports.Observable = Observable;
+ function getPromiseCtor(promiseCtor) {
+ var _a;
+ return (_a = promiseCtor !== null && promiseCtor !== undefined ? promiseCtor : config_1.config.Promise) !== null && _a !== undefined ? _a : Promise;
+ }
+ function isObserver(value) {
+ return value && isFunction_1.isFunction(value.next) && isFunction_1.isFunction(value.error) && isFunction_1.isFunction(value.complete);
+ }
+ function isSubscriber(value) {
+ return value && value instanceof Subscriber_1.Subscriber || isObserver(value) && Subscription_1.isSubscription(value);
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/lift.js
+var require_lift = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.operate = exports.hasLift = undefined;
+ var isFunction_1 = require_isFunction();
+ function hasLift(source) {
+ return isFunction_1.isFunction(source === null || source === undefined ? undefined : source.lift);
+ }
+ exports.hasLift = hasLift;
+ function operate(init) {
+ return function(source) {
+ if (hasLift(source)) {
+ return source.lift(function(liftedSource) {
+ try {
+ return init(liftedSource, this);
+ } catch (err) {
+ this.error(err);
+ }
+ });
+ }
+ throw new TypeError("Unable to lift unknown Observable type");
+ };
+ }
+ exports.operate = operate;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js
+var require_OperatorSubscriber = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.OperatorSubscriber = exports.createOperatorSubscriber = undefined;
+ var Subscriber_1 = require_Subscriber();
+ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
+ return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
+ }
+ exports.createOperatorSubscriber = createOperatorSubscriber;
+ var OperatorSubscriber = function(_super) {
+ __extends(OperatorSubscriber2, _super);
+ function OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
+ var _this = _super.call(this, destination) || this;
+ _this.onFinalize = onFinalize;
+ _this.shouldUnsubscribe = shouldUnsubscribe;
+ _this._next = onNext ? function(value) {
+ try {
+ onNext(value);
+ } catch (err) {
+ destination.error(err);
+ }
+ } : _super.prototype._next;
+ _this._error = onError ? function(err) {
+ try {
+ onError(err);
+ } catch (err2) {
+ destination.error(err2);
+ } finally {
+ this.unsubscribe();
+ }
+ } : _super.prototype._error;
+ _this._complete = onComplete ? function() {
+ try {
+ onComplete();
+ } catch (err) {
+ destination.error(err);
+ } finally {
+ this.unsubscribe();
+ }
+ } : _super.prototype._complete;
+ return _this;
+ }
+ OperatorSubscriber2.prototype.unsubscribe = function() {
+ var _a;
+ if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
+ var closed_1 = this.closed;
+ _super.prototype.unsubscribe.call(this);
+ !closed_1 && ((_a = this.onFinalize) === null || _a === undefined || _a.call(this));
+ }
+ };
+ return OperatorSubscriber2;
+ }(Subscriber_1.Subscriber);
+ exports.OperatorSubscriber = OperatorSubscriber;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/refCount.js
+var require_refCount = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.refCount = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function refCount() {
+ return lift_1.operate(function(source, subscriber) {
+ var connection = null;
+ source._refCount++;
+ var refCounter = OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, undefined, function() {
+ if (!source || source._refCount <= 0 || 0 < --source._refCount) {
+ connection = null;
+ return;
+ }
+ var sharedConnection = source._connection;
+ var conn = connection;
+ connection = null;
+ if (sharedConnection && (!conn || sharedConnection === conn)) {
+ sharedConnection.unsubscribe();
+ }
+ subscriber.unsubscribe();
+ });
+ source.subscribe(refCounter);
+ if (!refCounter.closed) {
+ connection = source.connect();
+ }
+ });
+ }
+ exports.refCount = refCount;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js
+var require_ConnectableObservable = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.ConnectableObservable = undefined;
+ var Observable_1 = require_Observable();
+ var Subscription_1 = require_Subscription();
+ var refCount_1 = require_refCount();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var lift_1 = require_lift();
+ var ConnectableObservable = function(_super) {
+ __extends(ConnectableObservable2, _super);
+ function ConnectableObservable2(source, subjectFactory) {
+ var _this = _super.call(this) || this;
+ _this.source = source;
+ _this.subjectFactory = subjectFactory;
+ _this._subject = null;
+ _this._refCount = 0;
+ _this._connection = null;
+ if (lift_1.hasLift(source)) {
+ _this.lift = source.lift;
+ }
+ return _this;
+ }
+ ConnectableObservable2.prototype._subscribe = function(subscriber) {
+ return this.getSubject().subscribe(subscriber);
+ };
+ ConnectableObservable2.prototype.getSubject = function() {
+ var subject = this._subject;
+ if (!subject || subject.isStopped) {
+ this._subject = this.subjectFactory();
+ }
+ return this._subject;
+ };
+ ConnectableObservable2.prototype._teardown = function() {
+ this._refCount = 0;
+ var _connection = this._connection;
+ this._subject = this._connection = null;
+ _connection === null || _connection === undefined || _connection.unsubscribe();
+ };
+ ConnectableObservable2.prototype.connect = function() {
+ var _this = this;
+ var connection = this._connection;
+ if (!connection) {
+ connection = this._connection = new Subscription_1.Subscription;
+ var subject_1 = this.getSubject();
+ connection.add(this.source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subject_1, undefined, function() {
+ _this._teardown();
+ subject_1.complete();
+ }, function(err) {
+ _this._teardown();
+ subject_1.error(err);
+ }, function() {
+ return _this._teardown();
+ })));
+ if (connection.closed) {
+ this._connection = null;
+ connection = Subscription_1.Subscription.EMPTY;
+ }
+ }
+ return connection;
+ };
+ ConnectableObservable2.prototype.refCount = function() {
+ return refCount_1.refCount()(this);
+ };
+ return ConnectableObservable2;
+ }(Observable_1.Observable);
+ exports.ConnectableObservable = ConnectableObservable;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js
+var require_performanceTimestampProvider = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.performanceTimestampProvider = undefined;
+ exports.performanceTimestampProvider = {
+ now: function() {
+ return (exports.performanceTimestampProvider.delegate || performance).now();
+ },
+ delegate: undefined
+ };
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js
+var require_animationFrameProvider = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.animationFrameProvider = undefined;
+ var Subscription_1 = require_Subscription();
+ exports.animationFrameProvider = {
+ schedule: function(callback) {
+ var request = requestAnimationFrame;
+ var cancel = cancelAnimationFrame;
+ var delegate = exports.animationFrameProvider.delegate;
+ if (delegate) {
+ request = delegate.requestAnimationFrame;
+ cancel = delegate.cancelAnimationFrame;
+ }
+ var handle = request(function(timestamp) {
+ cancel = undefined;
+ callback(timestamp);
+ });
+ return new Subscription_1.Subscription(function() {
+ return cancel === null || cancel === undefined ? undefined : cancel(handle);
+ });
+ },
+ requestAnimationFrame: function() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var delegate = exports.animationFrameProvider.delegate;
+ return ((delegate === null || delegate === undefined ? undefined : delegate.requestAnimationFrame) || requestAnimationFrame).apply(undefined, __spreadArray([], __read(args)));
+ },
+ cancelAnimationFrame: function() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var delegate = exports.animationFrameProvider.delegate;
+ return ((delegate === null || delegate === undefined ? undefined : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(undefined, __spreadArray([], __read(args)));
+ },
+ delegate: undefined
+ };
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js
+var require_animationFrames = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.animationFrames = undefined;
+ var Observable_1 = require_Observable();
+ var performanceTimestampProvider_1 = require_performanceTimestampProvider();
+ var animationFrameProvider_1 = require_animationFrameProvider();
+ function animationFrames(timestampProvider) {
+ return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES;
+ }
+ exports.animationFrames = animationFrames;
+ function animationFramesFactory(timestampProvider) {
+ return new Observable_1.Observable(function(subscriber) {
+ var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider;
+ var start = provider.now();
+ var id = 0;
+ var run2 = function() {
+ if (!subscriber.closed) {
+ id = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function(timestamp) {
+ id = 0;
+ var now = provider.now();
+ subscriber.next({
+ timestamp: timestampProvider ? now : timestamp,
+ elapsed: now - start
+ });
+ run2();
+ });
+ }
+ };
+ run2();
+ return function() {
+ if (id) {
+ animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
+ }
+ };
+ });
+ }
+ var DEFAULT_ANIMATION_FRAMES = animationFramesFactory();
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js
+var require_ObjectUnsubscribedError = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.ObjectUnsubscribedError = undefined;
+ var createErrorClass_1 = require_createErrorClass();
+ exports.ObjectUnsubscribedError = createErrorClass_1.createErrorClass(function(_super) {
+ return function ObjectUnsubscribedErrorImpl() {
+ _super(this);
+ this.name = "ObjectUnsubscribedError";
+ this.message = "object unsubscribed";
+ };
+ });
+});
+
+// node_modules/rxjs/dist/cjs/internal/Subject.js
+var require_Subject = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ var __values = exports && exports.__values || function(o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m)
+ return m.call(o);
+ if (o && typeof o.length === "number")
+ return {
+ next: function() {
+ if (o && i >= o.length)
+ o = undefined;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.AnonymousSubject = exports.Subject = undefined;
+ var Observable_1 = require_Observable();
+ var Subscription_1 = require_Subscription();
+ var ObjectUnsubscribedError_1 = require_ObjectUnsubscribedError();
+ var arrRemove_1 = require_arrRemove();
+ var errorContext_1 = require_errorContext();
+ var Subject = function(_super) {
+ __extends(Subject2, _super);
+ function Subject2() {
+ var _this = _super.call(this) || this;
+ _this.closed = false;
+ _this.currentObservers = null;
+ _this.observers = [];
+ _this.isStopped = false;
+ _this.hasError = false;
+ _this.thrownError = null;
+ return _this;
+ }
+ Subject2.prototype.lift = function(operator) {
+ var subject = new AnonymousSubject(this, this);
+ subject.operator = operator;
+ return subject;
+ };
+ Subject2.prototype._throwIfClosed = function() {
+ if (this.closed) {
+ throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError;
+ }
+ };
+ Subject2.prototype.next = function(value) {
+ var _this = this;
+ errorContext_1.errorContext(function() {
+ var e_1, _a;
+ _this._throwIfClosed();
+ if (!_this.isStopped) {
+ if (!_this.currentObservers) {
+ _this.currentObservers = Array.from(_this.observers);
+ }
+ try {
+ for (var _b = __values(_this.currentObservers), _c = _b.next();!_c.done; _c = _b.next()) {
+ var observer = _c.value;
+ observer.next(value);
+ }
+ } catch (e_1_1) {
+ e_1 = { error: e_1_1 };
+ } finally {
+ try {
+ if (_c && !_c.done && (_a = _b.return))
+ _a.call(_b);
+ } finally {
+ if (e_1)
+ throw e_1.error;
+ }
+ }
+ }
+ });
+ };
+ Subject2.prototype.error = function(err) {
+ var _this = this;
+ errorContext_1.errorContext(function() {
+ _this._throwIfClosed();
+ if (!_this.isStopped) {
+ _this.hasError = _this.isStopped = true;
+ _this.thrownError = err;
+ var observers = _this.observers;
+ while (observers.length) {
+ observers.shift().error(err);
+ }
+ }
+ });
+ };
+ Subject2.prototype.complete = function() {
+ var _this = this;
+ errorContext_1.errorContext(function() {
+ _this._throwIfClosed();
+ if (!_this.isStopped) {
+ _this.isStopped = true;
+ var observers = _this.observers;
+ while (observers.length) {
+ observers.shift().complete();
+ }
+ }
+ });
+ };
+ Subject2.prototype.unsubscribe = function() {
+ this.isStopped = this.closed = true;
+ this.observers = this.currentObservers = null;
+ };
+ Object.defineProperty(Subject2.prototype, "observed", {
+ get: function() {
+ var _a;
+ return ((_a = this.observers) === null || _a === undefined ? undefined : _a.length) > 0;
+ },
+ enumerable: false,
+ configurable: true
+ });
+ Subject2.prototype._trySubscribe = function(subscriber) {
+ this._throwIfClosed();
+ return _super.prototype._trySubscribe.call(this, subscriber);
+ };
+ Subject2.prototype._subscribe = function(subscriber) {
+ this._throwIfClosed();
+ this._checkFinalizedStatuses(subscriber);
+ return this._innerSubscribe(subscriber);
+ };
+ Subject2.prototype._innerSubscribe = function(subscriber) {
+ var _this = this;
+ var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
+ if (hasError || isStopped) {
+ return Subscription_1.EMPTY_SUBSCRIPTION;
+ }
+ this.currentObservers = null;
+ observers.push(subscriber);
+ return new Subscription_1.Subscription(function() {
+ _this.currentObservers = null;
+ arrRemove_1.arrRemove(observers, subscriber);
+ });
+ };
+ Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
+ var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
+ if (hasError) {
+ subscriber.error(thrownError);
+ } else if (isStopped) {
+ subscriber.complete();
+ }
+ };
+ Subject2.prototype.asObservable = function() {
+ var observable = new Observable_1.Observable;
+ observable.source = this;
+ return observable;
+ };
+ Subject2.create = function(destination, source) {
+ return new AnonymousSubject(destination, source);
+ };
+ return Subject2;
+ }(Observable_1.Observable);
+ exports.Subject = Subject;
+ var AnonymousSubject = function(_super) {
+ __extends(AnonymousSubject2, _super);
+ function AnonymousSubject2(destination, source) {
+ var _this = _super.call(this) || this;
+ _this.destination = destination;
+ _this.source = source;
+ return _this;
+ }
+ AnonymousSubject2.prototype.next = function(value) {
+ var _a, _b;
+ (_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.next) === null || _b === undefined || _b.call(_a, value);
+ };
+ AnonymousSubject2.prototype.error = function(err) {
+ var _a, _b;
+ (_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.error) === null || _b === undefined || _b.call(_a, err);
+ };
+ AnonymousSubject2.prototype.complete = function() {
+ var _a, _b;
+ (_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.complete) === null || _b === undefined || _b.call(_a);
+ };
+ AnonymousSubject2.prototype._subscribe = function(subscriber) {
+ var _a, _b;
+ return (_b = (_a = this.source) === null || _a === undefined ? undefined : _a.subscribe(subscriber)) !== null && _b !== undefined ? _b : Subscription_1.EMPTY_SUBSCRIPTION;
+ };
+ return AnonymousSubject2;
+ }(Subject);
+ exports.AnonymousSubject = AnonymousSubject;
+});
+
+// node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js
+var require_BehaviorSubject = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.BehaviorSubject = undefined;
+ var Subject_1 = require_Subject();
+ var BehaviorSubject = function(_super) {
+ __extends(BehaviorSubject2, _super);
+ function BehaviorSubject2(_value) {
+ var _this = _super.call(this) || this;
+ _this._value = _value;
+ return _this;
+ }
+ Object.defineProperty(BehaviorSubject2.prototype, "value", {
+ get: function() {
+ return this.getValue();
+ },
+ enumerable: false,
+ configurable: true
+ });
+ BehaviorSubject2.prototype._subscribe = function(subscriber) {
+ var subscription = _super.prototype._subscribe.call(this, subscriber);
+ !subscription.closed && subscriber.next(this._value);
+ return subscription;
+ };
+ BehaviorSubject2.prototype.getValue = function() {
+ var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value;
+ if (hasError) {
+ throw thrownError;
+ }
+ this._throwIfClosed();
+ return _value;
+ };
+ BehaviorSubject2.prototype.next = function(value) {
+ _super.prototype.next.call(this, this._value = value);
+ };
+ return BehaviorSubject2;
+ }(Subject_1.Subject);
+ exports.BehaviorSubject = BehaviorSubject;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js
+var require_dateTimestampProvider = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.dateTimestampProvider = undefined;
+ exports.dateTimestampProvider = {
+ now: function() {
+ return (exports.dateTimestampProvider.delegate || Date).now();
+ },
+ delegate: undefined
+ };
+});
+
+// node_modules/rxjs/dist/cjs/internal/ReplaySubject.js
+var require_ReplaySubject = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.ReplaySubject = undefined;
+ var Subject_1 = require_Subject();
+ var dateTimestampProvider_1 = require_dateTimestampProvider();
+ var ReplaySubject = function(_super) {
+ __extends(ReplaySubject2, _super);
+ function ReplaySubject2(_bufferSize, _windowTime, _timestampProvider) {
+ if (_bufferSize === undefined) {
+ _bufferSize = Infinity;
+ }
+ if (_windowTime === undefined) {
+ _windowTime = Infinity;
+ }
+ if (_timestampProvider === undefined) {
+ _timestampProvider = dateTimestampProvider_1.dateTimestampProvider;
+ }
+ var _this = _super.call(this) || this;
+ _this._bufferSize = _bufferSize;
+ _this._windowTime = _windowTime;
+ _this._timestampProvider = _timestampProvider;
+ _this._buffer = [];
+ _this._infiniteTimeWindow = true;
+ _this._infiniteTimeWindow = _windowTime === Infinity;
+ _this._bufferSize = Math.max(1, _bufferSize);
+ _this._windowTime = Math.max(1, _windowTime);
+ return _this;
+ }
+ ReplaySubject2.prototype.next = function(value) {
+ var _a = this, isStopped = _a.isStopped, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow, _timestampProvider = _a._timestampProvider, _windowTime = _a._windowTime;
+ if (!isStopped) {
+ _buffer.push(value);
+ !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
+ }
+ this._trimBuffer();
+ _super.prototype.next.call(this, value);
+ };
+ ReplaySubject2.prototype._subscribe = function(subscriber) {
+ this._throwIfClosed();
+ this._trimBuffer();
+ var subscription = this._innerSubscribe(subscriber);
+ var _a = this, _infiniteTimeWindow = _a._infiniteTimeWindow, _buffer = _a._buffer;
+ var copy = _buffer.slice();
+ for (var i = 0;i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {
+ subscriber.next(copy[i]);
+ }
+ this._checkFinalizedStatuses(subscriber);
+ return subscription;
+ };
+ ReplaySubject2.prototype._trimBuffer = function() {
+ var _a = this, _bufferSize = _a._bufferSize, _timestampProvider = _a._timestampProvider, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow;
+ var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
+ _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
+ if (!_infiniteTimeWindow) {
+ var now = _timestampProvider.now();
+ var last = 0;
+ for (var i = 1;i < _buffer.length && _buffer[i] <= now; i += 2) {
+ last = i;
+ }
+ last && _buffer.splice(0, last + 1);
+ }
+ };
+ return ReplaySubject2;
+ }(Subject_1.Subject);
+ exports.ReplaySubject = ReplaySubject;
+});
+
+// node_modules/rxjs/dist/cjs/internal/AsyncSubject.js
+var require_AsyncSubject = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.AsyncSubject = undefined;
+ var Subject_1 = require_Subject();
+ var AsyncSubject = function(_super) {
+ __extends(AsyncSubject2, _super);
+ function AsyncSubject2() {
+ var _this = _super !== null && _super.apply(this, arguments) || this;
+ _this._value = null;
+ _this._hasValue = false;
+ _this._isComplete = false;
+ return _this;
+ }
+ AsyncSubject2.prototype._checkFinalizedStatuses = function(subscriber) {
+ var _a = this, hasError = _a.hasError, _hasValue = _a._hasValue, _value = _a._value, thrownError = _a.thrownError, isStopped = _a.isStopped, _isComplete = _a._isComplete;
+ if (hasError) {
+ subscriber.error(thrownError);
+ } else if (isStopped || _isComplete) {
+ _hasValue && subscriber.next(_value);
+ subscriber.complete();
+ }
+ };
+ AsyncSubject2.prototype.next = function(value) {
+ if (!this.isStopped) {
+ this._value = value;
+ this._hasValue = true;
+ }
+ };
+ AsyncSubject2.prototype.complete = function() {
+ var _a = this, _hasValue = _a._hasValue, _value = _a._value, _isComplete = _a._isComplete;
+ if (!_isComplete) {
+ this._isComplete = true;
+ _hasValue && _super.prototype.next.call(this, _value);
+ _super.prototype.complete.call(this);
+ }
+ };
+ return AsyncSubject2;
+ }(Subject_1.Subject);
+ exports.AsyncSubject = AsyncSubject;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/Action.js
+var require_Action = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.Action = undefined;
+ var Subscription_1 = require_Subscription();
+ var Action = function(_super) {
+ __extends(Action2, _super);
+ function Action2(scheduler, work) {
+ return _super.call(this) || this;
+ }
+ Action2.prototype.schedule = function(state, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ return this;
+ };
+ return Action2;
+ }(Subscription_1.Subscription);
+ exports.Action = Action;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js
+var require_intervalProvider = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.intervalProvider = undefined;
+ exports.intervalProvider = {
+ setInterval: function(handler, timeout) {
+ var args = [];
+ for (var _i = 2;_i < arguments.length; _i++) {
+ args[_i - 2] = arguments[_i];
+ }
+ var delegate = exports.intervalProvider.delegate;
+ if (delegate === null || delegate === undefined ? undefined : delegate.setInterval) {
+ return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args)));
+ }
+ return setInterval.apply(undefined, __spreadArray([handler, timeout], __read(args)));
+ },
+ clearInterval: function(handle) {
+ var delegate = exports.intervalProvider.delegate;
+ return ((delegate === null || delegate === undefined ? undefined : delegate.clearInterval) || clearInterval)(handle);
+ },
+ delegate: undefined
+ };
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js
+var require_AsyncAction = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.AsyncAction = undefined;
+ var Action_1 = require_Action();
+ var intervalProvider_1 = require_intervalProvider();
+ var arrRemove_1 = require_arrRemove();
+ var AsyncAction = function(_super) {
+ __extends(AsyncAction2, _super);
+ function AsyncAction2(scheduler, work) {
+ var _this = _super.call(this, scheduler, work) || this;
+ _this.scheduler = scheduler;
+ _this.work = work;
+ _this.pending = false;
+ return _this;
+ }
+ AsyncAction2.prototype.schedule = function(state, delay) {
+ var _a;
+ if (delay === undefined) {
+ delay = 0;
+ }
+ if (this.closed) {
+ return this;
+ }
+ this.state = state;
+ var id = this.id;
+ var scheduler = this.scheduler;
+ if (id != null) {
+ this.id = this.recycleAsyncId(scheduler, id, delay);
+ }
+ this.pending = true;
+ this.delay = delay;
+ this.id = (_a = this.id) !== null && _a !== undefined ? _a : this.requestAsyncId(scheduler, this.id, delay);
+ return this;
+ };
+ AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
+ };
+ AsyncAction2.prototype.recycleAsyncId = function(_scheduler, id, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ if (delay != null && this.delay === delay && this.pending === false) {
+ return id;
+ }
+ if (id != null) {
+ intervalProvider_1.intervalProvider.clearInterval(id);
+ }
+ return;
+ };
+ AsyncAction2.prototype.execute = function(state, delay) {
+ if (this.closed) {
+ return new Error("executing a cancelled action");
+ }
+ this.pending = false;
+ var error = this._execute(state, delay);
+ if (error) {
+ return error;
+ } else if (this.pending === false && this.id != null) {
+ this.id = this.recycleAsyncId(this.scheduler, this.id, null);
+ }
+ };
+ AsyncAction2.prototype._execute = function(state, _delay) {
+ var errored = false;
+ var errorValue;
+ try {
+ this.work(state);
+ } catch (e) {
+ errored = true;
+ errorValue = e ? e : new Error("Scheduled action threw falsy error");
+ }
+ if (errored) {
+ this.unsubscribe();
+ return errorValue;
+ }
+ };
+ AsyncAction2.prototype.unsubscribe = function() {
+ if (!this.closed) {
+ var _a = this, id = _a.id, scheduler = _a.scheduler;
+ var actions = scheduler.actions;
+ this.work = this.state = this.scheduler = null;
+ this.pending = false;
+ arrRemove_1.arrRemove(actions, this);
+ if (id != null) {
+ this.id = this.recycleAsyncId(scheduler, id, null);
+ }
+ this.delay = null;
+ _super.prototype.unsubscribe.call(this);
+ }
+ };
+ return AsyncAction2;
+ }(Action_1.Action);
+ exports.AsyncAction = AsyncAction;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/Immediate.js
+var require_Immediate = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.TestTools = exports.Immediate = undefined;
+ var nextHandle = 1;
+ var resolved;
+ var activeHandles = {};
+ function findAndClearHandle(handle) {
+ if (handle in activeHandles) {
+ delete activeHandles[handle];
+ return true;
+ }
+ return false;
+ }
+ exports.Immediate = {
+ setImmediate: function(cb) {
+ var handle = nextHandle++;
+ activeHandles[handle] = true;
+ if (!resolved) {
+ resolved = Promise.resolve();
+ }
+ resolved.then(function() {
+ return findAndClearHandle(handle) && cb();
+ });
+ return handle;
+ },
+ clearImmediate: function(handle) {
+ findAndClearHandle(handle);
+ }
+ };
+ exports.TestTools = {
+ pending: function() {
+ return Object.keys(activeHandles).length;
+ }
+ };
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js
+var require_immediateProvider = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.immediateProvider = undefined;
+ var Immediate_1 = require_Immediate();
+ var setImmediate2 = Immediate_1.Immediate.setImmediate;
+ var clearImmediate = Immediate_1.Immediate.clearImmediate;
+ exports.immediateProvider = {
+ setImmediate: function() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var delegate = exports.immediateProvider.delegate;
+ return ((delegate === null || delegate === undefined ? undefined : delegate.setImmediate) || setImmediate2).apply(undefined, __spreadArray([], __read(args)));
+ },
+ clearImmediate: function(handle) {
+ var delegate = exports.immediateProvider.delegate;
+ return ((delegate === null || delegate === undefined ? undefined : delegate.clearImmediate) || clearImmediate)(handle);
+ },
+ delegate: undefined
+ };
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js
+var require_AsapAction = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.AsapAction = undefined;
+ var AsyncAction_1 = require_AsyncAction();
+ var immediateProvider_1 = require_immediateProvider();
+ var AsapAction = function(_super) {
+ __extends(AsapAction2, _super);
+ function AsapAction2(scheduler, work) {
+ var _this = _super.call(this, scheduler, work) || this;
+ _this.scheduler = scheduler;
+ _this.work = work;
+ return _this;
+ }
+ AsapAction2.prototype.requestAsyncId = function(scheduler, id, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ if (delay !== null && delay > 0) {
+ return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
+ }
+ scheduler.actions.push(this);
+ return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));
+ };
+ AsapAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
+ var _a;
+ if (delay === undefined) {
+ delay = 0;
+ }
+ if (delay != null ? delay > 0 : this.delay > 0) {
+ return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
+ }
+ var actions = scheduler.actions;
+ if (id != null && ((_a = actions[actions.length - 1]) === null || _a === undefined ? undefined : _a.id) !== id) {
+ immediateProvider_1.immediateProvider.clearImmediate(id);
+ if (scheduler._scheduled === id) {
+ scheduler._scheduled = undefined;
+ }
+ }
+ return;
+ };
+ return AsapAction2;
+ }(AsyncAction_1.AsyncAction);
+ exports.AsapAction = AsapAction;
+});
+
+// node_modules/rxjs/dist/cjs/internal/Scheduler.js
+var require_Scheduler = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.Scheduler = undefined;
+ var dateTimestampProvider_1 = require_dateTimestampProvider();
+ var Scheduler = function() {
+ function Scheduler2(schedulerActionCtor, now) {
+ if (now === undefined) {
+ now = Scheduler2.now;
+ }
+ this.schedulerActionCtor = schedulerActionCtor;
+ this.now = now;
+ }
+ Scheduler2.prototype.schedule = function(work, delay, state) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ return new this.schedulerActionCtor(this, work).schedule(state, delay);
+ };
+ Scheduler2.now = dateTimestampProvider_1.dateTimestampProvider.now;
+ return Scheduler2;
+ }();
+ exports.Scheduler = Scheduler;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js
+var require_AsyncScheduler = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.AsyncScheduler = undefined;
+ var Scheduler_1 = require_Scheduler();
+ var AsyncScheduler = function(_super) {
+ __extends(AsyncScheduler2, _super);
+ function AsyncScheduler2(SchedulerAction, now) {
+ if (now === undefined) {
+ now = Scheduler_1.Scheduler.now;
+ }
+ var _this = _super.call(this, SchedulerAction, now) || this;
+ _this.actions = [];
+ _this._active = false;
+ return _this;
+ }
+ AsyncScheduler2.prototype.flush = function(action) {
+ var actions = this.actions;
+ if (this._active) {
+ actions.push(action);
+ return;
+ }
+ var error;
+ this._active = true;
+ do {
+ if (error = action.execute(action.state, action.delay)) {
+ break;
+ }
+ } while (action = actions.shift());
+ this._active = false;
+ if (error) {
+ while (action = actions.shift()) {
+ action.unsubscribe();
+ }
+ throw error;
+ }
+ };
+ return AsyncScheduler2;
+ }(Scheduler_1.Scheduler);
+ exports.AsyncScheduler = AsyncScheduler;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js
+var require_AsapScheduler = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.AsapScheduler = undefined;
+ var AsyncScheduler_1 = require_AsyncScheduler();
+ var AsapScheduler = function(_super) {
+ __extends(AsapScheduler2, _super);
+ function AsapScheduler2() {
+ return _super !== null && _super.apply(this, arguments) || this;
+ }
+ AsapScheduler2.prototype.flush = function(action) {
+ this._active = true;
+ var flushId = this._scheduled;
+ this._scheduled = undefined;
+ var actions = this.actions;
+ var error;
+ action = action || actions.shift();
+ do {
+ if (error = action.execute(action.state, action.delay)) {
+ break;
+ }
+ } while ((action = actions[0]) && action.id === flushId && actions.shift());
+ this._active = false;
+ if (error) {
+ while ((action = actions[0]) && action.id === flushId && actions.shift()) {
+ action.unsubscribe();
+ }
+ throw error;
+ }
+ };
+ return AsapScheduler2;
+ }(AsyncScheduler_1.AsyncScheduler);
+ exports.AsapScheduler = AsapScheduler;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/asap.js
+var require_asap = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.asap = exports.asapScheduler = undefined;
+ var AsapAction_1 = require_AsapAction();
+ var AsapScheduler_1 = require_AsapScheduler();
+ exports.asapScheduler = new AsapScheduler_1.AsapScheduler(AsapAction_1.AsapAction);
+ exports.asap = exports.asapScheduler;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/async.js
+var require_async = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.async = exports.asyncScheduler = undefined;
+ var AsyncAction_1 = require_AsyncAction();
+ var AsyncScheduler_1 = require_AsyncScheduler();
+ exports.asyncScheduler = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction);
+ exports.async = exports.asyncScheduler;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js
+var require_QueueAction = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QueueAction = undefined;
+ var AsyncAction_1 = require_AsyncAction();
+ var QueueAction = function(_super) {
+ __extends(QueueAction2, _super);
+ function QueueAction2(scheduler, work) {
+ var _this = _super.call(this, scheduler, work) || this;
+ _this.scheduler = scheduler;
+ _this.work = work;
+ return _this;
+ }
+ QueueAction2.prototype.schedule = function(state, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ if (delay > 0) {
+ return _super.prototype.schedule.call(this, state, delay);
+ }
+ this.delay = delay;
+ this.state = state;
+ this.scheduler.flush(this);
+ return this;
+ };
+ QueueAction2.prototype.execute = function(state, delay) {
+ return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay);
+ };
+ QueueAction2.prototype.requestAsyncId = function(scheduler, id, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ if (delay != null && delay > 0 || delay == null && this.delay > 0) {
+ return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
+ }
+ scheduler.flush(this);
+ return 0;
+ };
+ return QueueAction2;
+ }(AsyncAction_1.AsyncAction);
+ exports.QueueAction = QueueAction;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js
+var require_QueueScheduler = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.QueueScheduler = undefined;
+ var AsyncScheduler_1 = require_AsyncScheduler();
+ var QueueScheduler = function(_super) {
+ __extends(QueueScheduler2, _super);
+ function QueueScheduler2() {
+ return _super !== null && _super.apply(this, arguments) || this;
+ }
+ return QueueScheduler2;
+ }(AsyncScheduler_1.AsyncScheduler);
+ exports.QueueScheduler = QueueScheduler;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/queue.js
+var require_queue = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.queue = exports.queueScheduler = undefined;
+ var QueueAction_1 = require_QueueAction();
+ var QueueScheduler_1 = require_QueueScheduler();
+ exports.queueScheduler = new QueueScheduler_1.QueueScheduler(QueueAction_1.QueueAction);
+ exports.queue = exports.queueScheduler;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js
+var require_AnimationFrameAction = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.AnimationFrameAction = undefined;
+ var AsyncAction_1 = require_AsyncAction();
+ var animationFrameProvider_1 = require_animationFrameProvider();
+ var AnimationFrameAction = function(_super) {
+ __extends(AnimationFrameAction2, _super);
+ function AnimationFrameAction2(scheduler, work) {
+ var _this = _super.call(this, scheduler, work) || this;
+ _this.scheduler = scheduler;
+ _this.work = work;
+ return _this;
+ }
+ AnimationFrameAction2.prototype.requestAsyncId = function(scheduler, id, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ if (delay !== null && delay > 0) {
+ return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
+ }
+ scheduler.actions.push(this);
+ return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function() {
+ return scheduler.flush(undefined);
+ }));
+ };
+ AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
+ var _a;
+ if (delay === undefined) {
+ delay = 0;
+ }
+ if (delay != null ? delay > 0 : this.delay > 0) {
+ return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
+ }
+ var actions = scheduler.actions;
+ if (id != null && ((_a = actions[actions.length - 1]) === null || _a === undefined ? undefined : _a.id) !== id) {
+ animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
+ scheduler._scheduled = undefined;
+ }
+ return;
+ };
+ return AnimationFrameAction2;
+ }(AsyncAction_1.AsyncAction);
+ exports.AnimationFrameAction = AnimationFrameAction;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js
+var require_AnimationFrameScheduler = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.AnimationFrameScheduler = undefined;
+ var AsyncScheduler_1 = require_AsyncScheduler();
+ var AnimationFrameScheduler = function(_super) {
+ __extends(AnimationFrameScheduler2, _super);
+ function AnimationFrameScheduler2() {
+ return _super !== null && _super.apply(this, arguments) || this;
+ }
+ AnimationFrameScheduler2.prototype.flush = function(action) {
+ this._active = true;
+ var flushId = this._scheduled;
+ this._scheduled = undefined;
+ var actions = this.actions;
+ var error;
+ action = action || actions.shift();
+ do {
+ if (error = action.execute(action.state, action.delay)) {
+ break;
+ }
+ } while ((action = actions[0]) && action.id === flushId && actions.shift());
+ this._active = false;
+ if (error) {
+ while ((action = actions[0]) && action.id === flushId && actions.shift()) {
+ action.unsubscribe();
+ }
+ throw error;
+ }
+ };
+ return AnimationFrameScheduler2;
+ }(AsyncScheduler_1.AsyncScheduler);
+ exports.AnimationFrameScheduler = AnimationFrameScheduler;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js
+var require_animationFrame = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.animationFrame = exports.animationFrameScheduler = undefined;
+ var AnimationFrameAction_1 = require_AnimationFrameAction();
+ var AnimationFrameScheduler_1 = require_AnimationFrameScheduler();
+ exports.animationFrameScheduler = new AnimationFrameScheduler_1.AnimationFrameScheduler(AnimationFrameAction_1.AnimationFrameAction);
+ exports.animationFrame = exports.animationFrameScheduler;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js
+var require_VirtualTimeScheduler = __commonJS((exports) => {
+ var __extends = exports && exports.__extends || function() {
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
+ d2.__proto__ = b2;
+ } || function(d2, b2) {
+ for (var p in b2)
+ if (Object.prototype.hasOwnProperty.call(b2, p))
+ d2[p] = b2[p];
+ };
+ return extendStatics(d, b);
+ };
+ return function(d, b) {
+ if (typeof b !== "function" && b !== null)
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
+ extendStatics(d, b);
+ function __() {
+ this.constructor = d;
+ }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
+ };
+ }();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.VirtualAction = exports.VirtualTimeScheduler = undefined;
+ var AsyncAction_1 = require_AsyncAction();
+ var Subscription_1 = require_Subscription();
+ var AsyncScheduler_1 = require_AsyncScheduler();
+ var VirtualTimeScheduler = function(_super) {
+ __extends(VirtualTimeScheduler2, _super);
+ function VirtualTimeScheduler2(schedulerActionCtor, maxFrames) {
+ if (schedulerActionCtor === undefined) {
+ schedulerActionCtor = VirtualAction;
+ }
+ if (maxFrames === undefined) {
+ maxFrames = Infinity;
+ }
+ var _this = _super.call(this, schedulerActionCtor, function() {
+ return _this.frame;
+ }) || this;
+ _this.maxFrames = maxFrames;
+ _this.frame = 0;
+ _this.index = -1;
+ return _this;
+ }
+ VirtualTimeScheduler2.prototype.flush = function() {
+ var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
+ var error;
+ var action;
+ while ((action = actions[0]) && action.delay <= maxFrames) {
+ actions.shift();
+ this.frame = action.delay;
+ if (error = action.execute(action.state, action.delay)) {
+ break;
+ }
+ }
+ if (error) {
+ while (action = actions.shift()) {
+ action.unsubscribe();
+ }
+ throw error;
+ }
+ };
+ VirtualTimeScheduler2.frameTimeFactor = 10;
+ return VirtualTimeScheduler2;
+ }(AsyncScheduler_1.AsyncScheduler);
+ exports.VirtualTimeScheduler = VirtualTimeScheduler;
+ var VirtualAction = function(_super) {
+ __extends(VirtualAction2, _super);
+ function VirtualAction2(scheduler, work, index) {
+ if (index === undefined) {
+ index = scheduler.index += 1;
+ }
+ var _this = _super.call(this, scheduler, work) || this;
+ _this.scheduler = scheduler;
+ _this.work = work;
+ _this.index = index;
+ _this.active = true;
+ _this.index = scheduler.index = index;
+ return _this;
+ }
+ VirtualAction2.prototype.schedule = function(state, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ if (Number.isFinite(delay)) {
+ if (!this.id) {
+ return _super.prototype.schedule.call(this, state, delay);
+ }
+ this.active = false;
+ var action = new VirtualAction2(this.scheduler, this.work);
+ this.add(action);
+ return action.schedule(state, delay);
+ } else {
+ return Subscription_1.Subscription.EMPTY;
+ }
+ };
+ VirtualAction2.prototype.requestAsyncId = function(scheduler, id, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ this.delay = scheduler.frame + delay;
+ var actions = scheduler.actions;
+ actions.push(this);
+ actions.sort(VirtualAction2.sortActions);
+ return 1;
+ };
+ VirtualAction2.prototype.recycleAsyncId = function(scheduler, id, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ return;
+ };
+ VirtualAction2.prototype._execute = function(state, delay) {
+ if (this.active === true) {
+ return _super.prototype._execute.call(this, state, delay);
+ }
+ };
+ VirtualAction2.sortActions = function(a, b) {
+ if (a.delay === b.delay) {
+ if (a.index === b.index) {
+ return 0;
+ } else if (a.index > b.index) {
+ return 1;
+ } else {
+ return -1;
+ }
+ } else if (a.delay > b.delay) {
+ return 1;
+ } else {
+ return -1;
+ }
+ };
+ return VirtualAction2;
+ }(AsyncAction_1.AsyncAction);
+ exports.VirtualAction = VirtualAction;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/empty.js
+var require_empty = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.empty = exports.EMPTY = undefined;
+ var Observable_1 = require_Observable();
+ exports.EMPTY = new Observable_1.Observable(function(subscriber) {
+ return subscriber.complete();
+ });
+ function empty(scheduler) {
+ return scheduler ? emptyScheduled(scheduler) : exports.EMPTY;
+ }
+ exports.empty = empty;
+ function emptyScheduled(scheduler) {
+ return new Observable_1.Observable(function(subscriber) {
+ return scheduler.schedule(function() {
+ return subscriber.complete();
+ });
+ });
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/isScheduler.js
+var require_isScheduler = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isScheduler = undefined;
+ var isFunction_1 = require_isFunction();
+ function isScheduler(value) {
+ return value && isFunction_1.isFunction(value.schedule);
+ }
+ exports.isScheduler = isScheduler;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/args.js
+var require_args = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.popNumber = exports.popScheduler = exports.popResultSelector = undefined;
+ var isFunction_1 = require_isFunction();
+ var isScheduler_1 = require_isScheduler();
+ function last(arr) {
+ return arr[arr.length - 1];
+ }
+ function popResultSelector(args) {
+ return isFunction_1.isFunction(last(args)) ? args.pop() : undefined;
+ }
+ exports.popResultSelector = popResultSelector;
+ function popScheduler(args) {
+ return isScheduler_1.isScheduler(last(args)) ? args.pop() : undefined;
+ }
+ exports.popScheduler = popScheduler;
+ function popNumber(args, defaultValue) {
+ return typeof last(args) === "number" ? args.pop() : defaultValue;
+ }
+ exports.popNumber = popNumber;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js
+var require_isArrayLike = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isArrayLike = undefined;
+ exports.isArrayLike = function(x) {
+ return x && typeof x.length === "number" && typeof x !== "function";
+ };
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/isPromise.js
+var require_isPromise = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isPromise = undefined;
+ var isFunction_1 = require_isFunction();
+ function isPromise(value) {
+ return isFunction_1.isFunction(value === null || value === undefined ? undefined : value.then);
+ }
+ exports.isPromise = isPromise;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js
+var require_isInteropObservable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isInteropObservable = undefined;
+ var observable_1 = require_observable();
+ var isFunction_1 = require_isFunction();
+ function isInteropObservable(input) {
+ return isFunction_1.isFunction(input[observable_1.observable]);
+ }
+ exports.isInteropObservable = isInteropObservable;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js
+var require_isAsyncIterable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isAsyncIterable = undefined;
+ var isFunction_1 = require_isFunction();
+ function isAsyncIterable(obj) {
+ return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === undefined ? undefined : obj[Symbol.asyncIterator]);
+ }
+ exports.isAsyncIterable = isAsyncIterable;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js
+var require_throwUnobservableError = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.createInvalidObservableTypeError = undefined;
+ function createInvalidObservableTypeError(input) {
+ return new TypeError("You provided " + (input !== null && typeof input === "object" ? "an invalid object" : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
+ }
+ exports.createInvalidObservableTypeError = createInvalidObservableTypeError;
+});
+
+// node_modules/rxjs/dist/cjs/internal/symbol/iterator.js
+var require_iterator = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.iterator = exports.getSymbolIterator = undefined;
+ function getSymbolIterator() {
+ if (typeof Symbol !== "function" || !Symbol.iterator) {
+ return "@@iterator";
+ }
+ return Symbol.iterator;
+ }
+ exports.getSymbolIterator = getSymbolIterator;
+ exports.iterator = getSymbolIterator();
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/isIterable.js
+var require_isIterable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isIterable = undefined;
+ var iterator_1 = require_iterator();
+ var isFunction_1 = require_isFunction();
+ function isIterable(input) {
+ return isFunction_1.isFunction(input === null || input === undefined ? undefined : input[iterator_1.iterator]);
+ }
+ exports.isIterable = isIterable;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js
+var require_isReadableStreamLike = __commonJS((exports) => {
+ var __generator = exports && exports.__generator || function(thisArg, body) {
+ var _2 = { label: 0, sent: function() {
+ if (t[0] & 1)
+ throw t[1];
+ return t[1];
+ }, trys: [], ops: [] }, f, y, t, g;
+ return g = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
+ return this;
+ }), g;
+ function verb(n) {
+ return function(v) {
+ return step([n, v]);
+ };
+ }
+ function step(op) {
+ if (f)
+ throw new TypeError("Generator is already executing.");
+ while (_2)
+ try {
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
+ return t;
+ if (y = 0, t)
+ op = [op[0] & 2, t.value];
+ switch (op[0]) {
+ case 0:
+ case 1:
+ t = op;
+ break;
+ case 4:
+ _2.label++;
+ return { value: op[1], done: false };
+ case 5:
+ _2.label++;
+ y = op[1];
+ op = [0];
+ continue;
+ case 7:
+ op = _2.ops.pop();
+ _2.trys.pop();
+ continue;
+ default:
+ if (!(t = _2.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
+ _2 = 0;
+ continue;
+ }
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
+ _2.label = op[1];
+ break;
+ }
+ if (op[0] === 6 && _2.label < t[1]) {
+ _2.label = t[1];
+ t = op;
+ break;
+ }
+ if (t && _2.label < t[2]) {
+ _2.label = t[2];
+ _2.ops.push(op);
+ break;
+ }
+ if (t[2])
+ _2.ops.pop();
+ _2.trys.pop();
+ continue;
+ }
+ op = body.call(thisArg, _2);
+ } catch (e) {
+ op = [6, e];
+ y = 0;
+ } finally {
+ f = t = 0;
+ }
+ if (op[0] & 5)
+ throw op[1];
+ return { value: op[0] ? op[1] : undefined, done: true };
+ }
+ };
+ var __await = exports && exports.__await || function(v) {
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
+ };
+ var __asyncGenerator = exports && exports.__asyncGenerator || function(thisArg, _arguments, generator) {
+ if (!Symbol.asyncIterator)
+ throw new TypeError("Symbol.asyncIterator is not defined.");
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
+ return this;
+ }, i;
+ function verb(n) {
+ if (g[n])
+ i[n] = function(v) {
+ return new Promise(function(a, b) {
+ q.push([n, v, a, b]) > 1 || resume(n, v);
+ });
+ };
+ }
+ function resume(n, v) {
+ try {
+ step(g[n](v));
+ } catch (e) {
+ settle(q[0][3], e);
+ }
+ }
+ function step(r) {
+ r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
+ }
+ function fulfill(value) {
+ resume("next", value);
+ }
+ function reject(value) {
+ resume("throw", value);
+ }
+ function settle(f, v) {
+ if (f(v), q.shift(), q.length)
+ resume(q[0][0], q[0][1]);
+ }
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isReadableStreamLike = exports.readableStreamLikeToAsyncGenerator = undefined;
+ var isFunction_1 = require_isFunction();
+ function readableStreamLikeToAsyncGenerator(readableStream) {
+ return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
+ var reader, _a, value, done;
+ return __generator(this, function(_b) {
+ switch (_b.label) {
+ case 0:
+ reader = readableStream.getReader();
+ _b.label = 1;
+ case 1:
+ _b.trys.push([1, , 9, 10]);
+ _b.label = 2;
+ case 2:
+ if (false)
+ ;
+ return [4, __await(reader.read())];
+ case 3:
+ _a = _b.sent(), value = _a.value, done = _a.done;
+ if (!done)
+ return [3, 5];
+ return [4, __await(undefined)];
+ case 4:
+ return [2, _b.sent()];
+ case 5:
+ return [4, __await(value)];
+ case 6:
+ return [4, _b.sent()];
+ case 7:
+ _b.sent();
+ return [3, 2];
+ case 8:
+ return [3, 10];
+ case 9:
+ reader.releaseLock();
+ return [7];
+ case 10:
+ return [2];
+ }
+ });
+ });
+ }
+ exports.readableStreamLikeToAsyncGenerator = readableStreamLikeToAsyncGenerator;
+ function isReadableStreamLike(obj) {
+ return isFunction_1.isFunction(obj === null || obj === undefined ? undefined : obj.getReader);
+ }
+ exports.isReadableStreamLike = isReadableStreamLike;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js
+var require_innerFrom = __commonJS((exports) => {
+ var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
+ function adopt(value) {
+ return value instanceof P ? value : new P(function(resolve) {
+ resolve(value);
+ });
+ }
+ return new (P || (P = Promise))(function(resolve, reject) {
+ function fulfilled(value) {
+ try {
+ step(generator.next(value));
+ } catch (e) {
+ reject(e);
+ }
+ }
+ function rejected(value) {
+ try {
+ step(generator["throw"](value));
+ } catch (e) {
+ reject(e);
+ }
+ }
+ function step(result) {
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
+ }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+ };
+ var __generator = exports && exports.__generator || function(thisArg, body) {
+ var _2 = { label: 0, sent: function() {
+ if (t[0] & 1)
+ throw t[1];
+ return t[1];
+ }, trys: [], ops: [] }, f, y, t, g;
+ return g = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
+ return this;
+ }), g;
+ function verb(n) {
+ return function(v) {
+ return step([n, v]);
+ };
+ }
+ function step(op) {
+ if (f)
+ throw new TypeError("Generator is already executing.");
+ while (_2)
+ try {
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
+ return t;
+ if (y = 0, t)
+ op = [op[0] & 2, t.value];
+ switch (op[0]) {
+ case 0:
+ case 1:
+ t = op;
+ break;
+ case 4:
+ _2.label++;
+ return { value: op[1], done: false };
+ case 5:
+ _2.label++;
+ y = op[1];
+ op = [0];
+ continue;
+ case 7:
+ op = _2.ops.pop();
+ _2.trys.pop();
+ continue;
+ default:
+ if (!(t = _2.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
+ _2 = 0;
+ continue;
+ }
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
+ _2.label = op[1];
+ break;
+ }
+ if (op[0] === 6 && _2.label < t[1]) {
+ _2.label = t[1];
+ t = op;
+ break;
+ }
+ if (t && _2.label < t[2]) {
+ _2.label = t[2];
+ _2.ops.push(op);
+ break;
+ }
+ if (t[2])
+ _2.ops.pop();
+ _2.trys.pop();
+ continue;
+ }
+ op = body.call(thisArg, _2);
+ } catch (e) {
+ op = [6, e];
+ y = 0;
+ } finally {
+ f = t = 0;
+ }
+ if (op[0] & 5)
+ throw op[1];
+ return { value: op[0] ? op[1] : undefined, done: true };
+ }
+ };
+ var __asyncValues = exports && exports.__asyncValues || function(o) {
+ if (!Symbol.asyncIterator)
+ throw new TypeError("Symbol.asyncIterator is not defined.");
+ var m = o[Symbol.asyncIterator], i;
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
+ return this;
+ }, i);
+ function verb(n) {
+ i[n] = o[n] && function(v) {
+ return new Promise(function(resolve, reject) {
+ v = o[n](v), settle(resolve, reject, v.done, v.value);
+ });
+ };
+ }
+ function settle(resolve, reject, d, v) {
+ Promise.resolve(v).then(function(v2) {
+ resolve({ value: v2, done: d });
+ }, reject);
+ }
+ };
+ var __values = exports && exports.__values || function(o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m)
+ return m.call(o);
+ if (o && typeof o.length === "number")
+ return {
+ next: function() {
+ if (o && i >= o.length)
+ o = undefined;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.fromReadableStreamLike = exports.fromAsyncIterable = exports.fromIterable = exports.fromPromise = exports.fromArrayLike = exports.fromInteropObservable = exports.innerFrom = undefined;
+ var isArrayLike_1 = require_isArrayLike();
+ var isPromise_1 = require_isPromise();
+ var Observable_1 = require_Observable();
+ var isInteropObservable_1 = require_isInteropObservable();
+ var isAsyncIterable_1 = require_isAsyncIterable();
+ var throwUnobservableError_1 = require_throwUnobservableError();
+ var isIterable_1 = require_isIterable();
+ var isReadableStreamLike_1 = require_isReadableStreamLike();
+ var isFunction_1 = require_isFunction();
+ var reportUnhandledError_1 = require_reportUnhandledError();
+ var observable_1 = require_observable();
+ function innerFrom(input) {
+ if (input instanceof Observable_1.Observable) {
+ return input;
+ }
+ if (input != null) {
+ if (isInteropObservable_1.isInteropObservable(input)) {
+ return fromInteropObservable(input);
+ }
+ if (isArrayLike_1.isArrayLike(input)) {
+ return fromArrayLike(input);
+ }
+ if (isPromise_1.isPromise(input)) {
+ return fromPromise(input);
+ }
+ if (isAsyncIterable_1.isAsyncIterable(input)) {
+ return fromAsyncIterable(input);
+ }
+ if (isIterable_1.isIterable(input)) {
+ return fromIterable(input);
+ }
+ if (isReadableStreamLike_1.isReadableStreamLike(input)) {
+ return fromReadableStreamLike(input);
+ }
+ }
+ throw throwUnobservableError_1.createInvalidObservableTypeError(input);
+ }
+ exports.innerFrom = innerFrom;
+ function fromInteropObservable(obj) {
+ return new Observable_1.Observable(function(subscriber) {
+ var obs = obj[observable_1.observable]();
+ if (isFunction_1.isFunction(obs.subscribe)) {
+ return obs.subscribe(subscriber);
+ }
+ throw new TypeError("Provided object does not correctly implement Symbol.observable");
+ });
+ }
+ exports.fromInteropObservable = fromInteropObservable;
+ function fromArrayLike(array) {
+ return new Observable_1.Observable(function(subscriber) {
+ for (var i = 0;i < array.length && !subscriber.closed; i++) {
+ subscriber.next(array[i]);
+ }
+ subscriber.complete();
+ });
+ }
+ exports.fromArrayLike = fromArrayLike;
+ function fromPromise(promise) {
+ return new Observable_1.Observable(function(subscriber) {
+ promise.then(function(value) {
+ if (!subscriber.closed) {
+ subscriber.next(value);
+ subscriber.complete();
+ }
+ }, function(err) {
+ return subscriber.error(err);
+ }).then(null, reportUnhandledError_1.reportUnhandledError);
+ });
+ }
+ exports.fromPromise = fromPromise;
+ function fromIterable(iterable) {
+ return new Observable_1.Observable(function(subscriber) {
+ var e_1, _a;
+ try {
+ for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next();!iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
+ var value = iterable_1_1.value;
+ subscriber.next(value);
+ if (subscriber.closed) {
+ return;
+ }
+ }
+ } catch (e_1_1) {
+ e_1 = { error: e_1_1 };
+ } finally {
+ try {
+ if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return))
+ _a.call(iterable_1);
+ } finally {
+ if (e_1)
+ throw e_1.error;
+ }
+ }
+ subscriber.complete();
+ });
+ }
+ exports.fromIterable = fromIterable;
+ function fromAsyncIterable(asyncIterable) {
+ return new Observable_1.Observable(function(subscriber) {
+ process5(asyncIterable, subscriber).catch(function(err) {
+ return subscriber.error(err);
+ });
+ });
+ }
+ exports.fromAsyncIterable = fromAsyncIterable;
+ function fromReadableStreamLike(readableStream) {
+ return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
+ }
+ exports.fromReadableStreamLike = fromReadableStreamLike;
+ function process5(asyncIterable, subscriber) {
+ var asyncIterable_1, asyncIterable_1_1;
+ var e_2, _a;
+ return __awaiter(this, undefined, undefined, function() {
+ var value, e_2_1;
+ return __generator(this, function(_b) {
+ switch (_b.label) {
+ case 0:
+ _b.trys.push([0, 5, 6, 11]);
+ asyncIterable_1 = __asyncValues(asyncIterable);
+ _b.label = 1;
+ case 1:
+ return [4, asyncIterable_1.next()];
+ case 2:
+ if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done))
+ return [3, 4];
+ value = asyncIterable_1_1.value;
+ subscriber.next(value);
+ if (subscriber.closed) {
+ return [2];
+ }
+ _b.label = 3;
+ case 3:
+ return [3, 1];
+ case 4:
+ return [3, 11];
+ case 5:
+ e_2_1 = _b.sent();
+ e_2 = { error: e_2_1 };
+ return [3, 11];
+ case 6:
+ _b.trys.push([6, , 9, 10]);
+ if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)))
+ return [3, 8];
+ return [4, _a.call(asyncIterable_1)];
+ case 7:
+ _b.sent();
+ _b.label = 8;
+ case 8:
+ return [3, 10];
+ case 9:
+ if (e_2)
+ throw e_2.error;
+ return [7];
+ case 10:
+ return [7];
+ case 11:
+ subscriber.complete();
+ return [2];
+ }
+ });
+ });
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js
+var require_executeSchedule = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.executeSchedule = undefined;
+ function executeSchedule(parentSubscription, scheduler, work, delay, repeat) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ if (repeat === undefined) {
+ repeat = false;
+ }
+ var scheduleSubscription = scheduler.schedule(function() {
+ work();
+ if (repeat) {
+ parentSubscription.add(this.schedule(null, delay));
+ } else {
+ this.unsubscribe();
+ }
+ }, delay);
+ parentSubscription.add(scheduleSubscription);
+ if (!repeat) {
+ return scheduleSubscription;
+ }
+ }
+ exports.executeSchedule = executeSchedule;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/observeOn.js
+var require_observeOn = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.observeOn = undefined;
+ var executeSchedule_1 = require_executeSchedule();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function observeOn(scheduler, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ return lift_1.operate(function(source, subscriber) {
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ return executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
+ return subscriber.next(value);
+ }, delay);
+ }, function() {
+ return executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
+ return subscriber.complete();
+ }, delay);
+ }, function(err) {
+ return executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
+ return subscriber.error(err);
+ }, delay);
+ }));
+ });
+ }
+ exports.observeOn = observeOn;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js
+var require_subscribeOn = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.subscribeOn = undefined;
+ var lift_1 = require_lift();
+ function subscribeOn(scheduler, delay) {
+ if (delay === undefined) {
+ delay = 0;
+ }
+ return lift_1.operate(function(source, subscriber) {
+ subscriber.add(scheduler.schedule(function() {
+ return source.subscribe(subscriber);
+ }, delay));
+ });
+ }
+ exports.subscribeOn = subscribeOn;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js
+var require_scheduleObservable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.scheduleObservable = undefined;
+ var innerFrom_1 = require_innerFrom();
+ var observeOn_1 = require_observeOn();
+ var subscribeOn_1 = require_subscribeOn();
+ function scheduleObservable(input, scheduler) {
+ return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler));
+ }
+ exports.scheduleObservable = scheduleObservable;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js
+var require_schedulePromise = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.schedulePromise = undefined;
+ var innerFrom_1 = require_innerFrom();
+ var observeOn_1 = require_observeOn();
+ var subscribeOn_1 = require_subscribeOn();
+ function schedulePromise(input, scheduler) {
+ return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler));
+ }
+ exports.schedulePromise = schedulePromise;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js
+var require_scheduleArray = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.scheduleArray = undefined;
+ var Observable_1 = require_Observable();
+ function scheduleArray(input, scheduler) {
+ return new Observable_1.Observable(function(subscriber) {
+ var i = 0;
+ return scheduler.schedule(function() {
+ if (i === input.length) {
+ subscriber.complete();
+ } else {
+ subscriber.next(input[i++]);
+ if (!subscriber.closed) {
+ this.schedule();
+ }
+ }
+ });
+ });
+ }
+ exports.scheduleArray = scheduleArray;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js
+var require_scheduleIterable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.scheduleIterable = undefined;
+ var Observable_1 = require_Observable();
+ var iterator_1 = require_iterator();
+ var isFunction_1 = require_isFunction();
+ var executeSchedule_1 = require_executeSchedule();
+ function scheduleIterable(input, scheduler) {
+ return new Observable_1.Observable(function(subscriber) {
+ var iterator;
+ executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
+ iterator = input[iterator_1.iterator]();
+ executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
+ var _a;
+ var value;
+ var done;
+ try {
+ _a = iterator.next(), value = _a.value, done = _a.done;
+ } catch (err) {
+ subscriber.error(err);
+ return;
+ }
+ if (done) {
+ subscriber.complete();
+ } else {
+ subscriber.next(value);
+ }
+ }, 0, true);
+ });
+ return function() {
+ return isFunction_1.isFunction(iterator === null || iterator === undefined ? undefined : iterator.return) && iterator.return();
+ };
+ });
+ }
+ exports.scheduleIterable = scheduleIterable;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js
+var require_scheduleAsyncIterable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.scheduleAsyncIterable = undefined;
+ var Observable_1 = require_Observable();
+ var executeSchedule_1 = require_executeSchedule();
+ function scheduleAsyncIterable(input, scheduler) {
+ if (!input) {
+ throw new Error("Iterable cannot be null");
+ }
+ return new Observable_1.Observable(function(subscriber) {
+ executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
+ var iterator = input[Symbol.asyncIterator]();
+ executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
+ iterator.next().then(function(result) {
+ if (result.done) {
+ subscriber.complete();
+ } else {
+ subscriber.next(result.value);
+ }
+ });
+ }, 0, true);
+ });
+ });
+ }
+ exports.scheduleAsyncIterable = scheduleAsyncIterable;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js
+var require_scheduleReadableStreamLike = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.scheduleReadableStreamLike = undefined;
+ var scheduleAsyncIterable_1 = require_scheduleAsyncIterable();
+ var isReadableStreamLike_1 = require_isReadableStreamLike();
+ function scheduleReadableStreamLike(input, scheduler) {
+ return scheduleAsyncIterable_1.scheduleAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(input), scheduler);
+ }
+ exports.scheduleReadableStreamLike = scheduleReadableStreamLike;
+});
+
+// node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js
+var require_scheduled = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.scheduled = undefined;
+ var scheduleObservable_1 = require_scheduleObservable();
+ var schedulePromise_1 = require_schedulePromise();
+ var scheduleArray_1 = require_scheduleArray();
+ var scheduleIterable_1 = require_scheduleIterable();
+ var scheduleAsyncIterable_1 = require_scheduleAsyncIterable();
+ var isInteropObservable_1 = require_isInteropObservable();
+ var isPromise_1 = require_isPromise();
+ var isArrayLike_1 = require_isArrayLike();
+ var isIterable_1 = require_isIterable();
+ var isAsyncIterable_1 = require_isAsyncIterable();
+ var throwUnobservableError_1 = require_throwUnobservableError();
+ var isReadableStreamLike_1 = require_isReadableStreamLike();
+ var scheduleReadableStreamLike_1 = require_scheduleReadableStreamLike();
+ function scheduled(input, scheduler) {
+ if (input != null) {
+ if (isInteropObservable_1.isInteropObservable(input)) {
+ return scheduleObservable_1.scheduleObservable(input, scheduler);
+ }
+ if (isArrayLike_1.isArrayLike(input)) {
+ return scheduleArray_1.scheduleArray(input, scheduler);
+ }
+ if (isPromise_1.isPromise(input)) {
+ return schedulePromise_1.schedulePromise(input, scheduler);
+ }
+ if (isAsyncIterable_1.isAsyncIterable(input)) {
+ return scheduleAsyncIterable_1.scheduleAsyncIterable(input, scheduler);
+ }
+ if (isIterable_1.isIterable(input)) {
+ return scheduleIterable_1.scheduleIterable(input, scheduler);
+ }
+ if (isReadableStreamLike_1.isReadableStreamLike(input)) {
+ return scheduleReadableStreamLike_1.scheduleReadableStreamLike(input, scheduler);
+ }
+ }
+ throw throwUnobservableError_1.createInvalidObservableTypeError(input);
+ }
+ exports.scheduled = scheduled;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/from.js
+var require_from = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.from = undefined;
+ var scheduled_1 = require_scheduled();
+ var innerFrom_1 = require_innerFrom();
+ function from(input, scheduler) {
+ return scheduler ? scheduled_1.scheduled(input, scheduler) : innerFrom_1.innerFrom(input);
+ }
+ exports.from = from;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/of.js
+var require_of = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.of = undefined;
+ var args_1 = require_args();
+ var from_1 = require_from();
+ function of() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var scheduler = args_1.popScheduler(args);
+ return from_1.from(args, scheduler);
+ }
+ exports.of = of;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/throwError.js
+var require_throwError = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.throwError = undefined;
+ var Observable_1 = require_Observable();
+ var isFunction_1 = require_isFunction();
+ function throwError(errorOrErrorFactory, scheduler) {
+ var errorFactory = isFunction_1.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function() {
+ return errorOrErrorFactory;
+ };
+ var init = function(subscriber) {
+ return subscriber.error(errorFactory());
+ };
+ return new Observable_1.Observable(scheduler ? function(subscriber) {
+ return scheduler.schedule(init, 0, subscriber);
+ } : init);
+ }
+ exports.throwError = throwError;
+});
+
+// node_modules/rxjs/dist/cjs/internal/Notification.js
+var require_Notification = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.observeNotification = exports.Notification = exports.NotificationKind = undefined;
+ var empty_1 = require_empty();
+ var of_1 = require_of();
+ var throwError_1 = require_throwError();
+ var isFunction_1 = require_isFunction();
+ var NotificationKind;
+ (function(NotificationKind2) {
+ NotificationKind2["NEXT"] = "N";
+ NotificationKind2["ERROR"] = "E";
+ NotificationKind2["COMPLETE"] = "C";
+ })(NotificationKind = exports.NotificationKind || (exports.NotificationKind = {}));
+ var Notification = function() {
+ function Notification2(kind, value, error) {
+ this.kind = kind;
+ this.value = value;
+ this.error = error;
+ this.hasValue = kind === "N";
+ }
+ Notification2.prototype.observe = function(observer) {
+ return observeNotification(this, observer);
+ };
+ Notification2.prototype.do = function(nextHandler, errorHandler, completeHandler) {
+ var _a = this, kind = _a.kind, value = _a.value, error = _a.error;
+ return kind === "N" ? nextHandler === null || nextHandler === undefined ? undefined : nextHandler(value) : kind === "E" ? errorHandler === null || errorHandler === undefined ? undefined : errorHandler(error) : completeHandler === null || completeHandler === undefined ? undefined : completeHandler();
+ };
+ Notification2.prototype.accept = function(nextOrObserver, error, complete) {
+ var _a;
+ return isFunction_1.isFunction((_a = nextOrObserver) === null || _a === undefined ? undefined : _a.next) ? this.observe(nextOrObserver) : this.do(nextOrObserver, error, complete);
+ };
+ Notification2.prototype.toObservable = function() {
+ var _a = this, kind = _a.kind, value = _a.value, error = _a.error;
+ var result = kind === "N" ? of_1.of(value) : kind === "E" ? throwError_1.throwError(function() {
+ return error;
+ }) : kind === "C" ? empty_1.EMPTY : 0;
+ if (!result) {
+ throw new TypeError("Unexpected notification kind " + kind);
+ }
+ return result;
+ };
+ Notification2.createNext = function(value) {
+ return new Notification2("N", value);
+ };
+ Notification2.createError = function(err) {
+ return new Notification2("E", undefined, err);
+ };
+ Notification2.createComplete = function() {
+ return Notification2.completeNotification;
+ };
+ Notification2.completeNotification = new Notification2("C");
+ return Notification2;
+ }();
+ exports.Notification = Notification;
+ function observeNotification(notification, observer) {
+ var _a, _b, _c;
+ var _d = notification, kind = _d.kind, value = _d.value, error = _d.error;
+ if (typeof kind !== "string") {
+ throw new TypeError('Invalid notification, missing "kind"');
+ }
+ kind === "N" ? (_a = observer.next) === null || _a === undefined || _a.call(observer, value) : kind === "E" ? (_b = observer.error) === null || _b === undefined || _b.call(observer, error) : (_c = observer.complete) === null || _c === undefined || _c.call(observer);
+ }
+ exports.observeNotification = observeNotification;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/isObservable.js
+var require_isObservable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isObservable = undefined;
+ var Observable_1 = require_Observable();
+ var isFunction_1 = require_isFunction();
+ function isObservable(obj) {
+ return !!obj && (obj instanceof Observable_1.Observable || isFunction_1.isFunction(obj.lift) && isFunction_1.isFunction(obj.subscribe));
+ }
+ exports.isObservable = isObservable;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/EmptyError.js
+var require_EmptyError = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.EmptyError = undefined;
+ var createErrorClass_1 = require_createErrorClass();
+ exports.EmptyError = createErrorClass_1.createErrorClass(function(_super) {
+ return function EmptyErrorImpl() {
+ _super(this);
+ this.name = "EmptyError";
+ this.message = "no elements in sequence";
+ };
+ });
+});
+
+// node_modules/rxjs/dist/cjs/internal/lastValueFrom.js
+var require_lastValueFrom = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.lastValueFrom = undefined;
+ var EmptyError_1 = require_EmptyError();
+ function lastValueFrom(source, config) {
+ var hasConfig = typeof config === "object";
+ return new Promise(function(resolve, reject) {
+ var _hasValue = false;
+ var _value;
+ source.subscribe({
+ next: function(value) {
+ _value = value;
+ _hasValue = true;
+ },
+ error: reject,
+ complete: function() {
+ if (_hasValue) {
+ resolve(_value);
+ } else if (hasConfig) {
+ resolve(config.defaultValue);
+ } else {
+ reject(new EmptyError_1.EmptyError);
+ }
+ }
+ });
+ });
+ }
+ exports.lastValueFrom = lastValueFrom;
+});
+
+// node_modules/rxjs/dist/cjs/internal/firstValueFrom.js
+var require_firstValueFrom = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.firstValueFrom = undefined;
+ var EmptyError_1 = require_EmptyError();
+ var Subscriber_1 = require_Subscriber();
+ function firstValueFrom(source, config) {
+ var hasConfig = typeof config === "object";
+ return new Promise(function(resolve, reject) {
+ var subscriber = new Subscriber_1.SafeSubscriber({
+ next: function(value) {
+ resolve(value);
+ subscriber.unsubscribe();
+ },
+ error: reject,
+ complete: function() {
+ if (hasConfig) {
+ resolve(config.defaultValue);
+ } else {
+ reject(new EmptyError_1.EmptyError);
+ }
+ }
+ });
+ source.subscribe(subscriber);
+ });
+ }
+ exports.firstValueFrom = firstValueFrom;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js
+var require_ArgumentOutOfRangeError = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.ArgumentOutOfRangeError = undefined;
+ var createErrorClass_1 = require_createErrorClass();
+ exports.ArgumentOutOfRangeError = createErrorClass_1.createErrorClass(function(_super) {
+ return function ArgumentOutOfRangeErrorImpl() {
+ _super(this);
+ this.name = "ArgumentOutOfRangeError";
+ this.message = "argument out of range";
+ };
+ });
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js
+var require_NotFoundError = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.NotFoundError = undefined;
+ var createErrorClass_1 = require_createErrorClass();
+ exports.NotFoundError = createErrorClass_1.createErrorClass(function(_super) {
+ return function NotFoundErrorImpl(message) {
+ _super(this);
+ this.name = "NotFoundError";
+ this.message = message;
+ };
+ });
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/SequenceError.js
+var require_SequenceError = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.SequenceError = undefined;
+ var createErrorClass_1 = require_createErrorClass();
+ exports.SequenceError = createErrorClass_1.createErrorClass(function(_super) {
+ return function SequenceErrorImpl(message) {
+ _super(this);
+ this.name = "SequenceError";
+ this.message = message;
+ };
+ });
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/isDate.js
+var require_isDate = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isValidDate = undefined;
+ function isValidDate(value) {
+ return value instanceof Date && !isNaN(value);
+ }
+ exports.isValidDate = isValidDate;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/timeout.js
+var require_timeout = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.timeout = exports.TimeoutError = undefined;
+ var async_1 = require_async();
+ var isDate_1 = require_isDate();
+ var lift_1 = require_lift();
+ var innerFrom_1 = require_innerFrom();
+ var createErrorClass_1 = require_createErrorClass();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var executeSchedule_1 = require_executeSchedule();
+ exports.TimeoutError = createErrorClass_1.createErrorClass(function(_super) {
+ return function TimeoutErrorImpl(info) {
+ if (info === undefined) {
+ info = null;
+ }
+ _super(this);
+ this.message = "Timeout has occurred";
+ this.name = "TimeoutError";
+ this.info = info;
+ };
+ });
+ function timeout(config, schedulerArg) {
+ var _a = isDate_1.isValidDate(config) ? { first: config } : typeof config === "number" ? { each: config } : config, first = _a.first, each = _a.each, _b = _a.with, _with = _b === undefined ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === undefined ? schedulerArg !== null && schedulerArg !== undefined ? schedulerArg : async_1.asyncScheduler : _c, _d = _a.meta, meta = _d === undefined ? null : _d;
+ if (first == null && each == null) {
+ throw new TypeError("No timeout provided.");
+ }
+ return lift_1.operate(function(source, subscriber) {
+ var originalSourceSubscription;
+ var timerSubscription;
+ var lastValue = null;
+ var seen = 0;
+ var startTimer = function(delay) {
+ timerSubscription = executeSchedule_1.executeSchedule(subscriber, scheduler, function() {
+ try {
+ originalSourceSubscription.unsubscribe();
+ innerFrom_1.innerFrom(_with({
+ meta,
+ lastValue,
+ seen
+ })).subscribe(subscriber);
+ } catch (err) {
+ subscriber.error(err);
+ }
+ }, delay);
+ };
+ originalSourceSubscription = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ timerSubscription === null || timerSubscription === undefined || timerSubscription.unsubscribe();
+ seen++;
+ subscriber.next(lastValue = value);
+ each > 0 && startTimer(each);
+ }, undefined, undefined, function() {
+ if (!(timerSubscription === null || timerSubscription === undefined ? undefined : timerSubscription.closed)) {
+ timerSubscription === null || timerSubscription === undefined || timerSubscription.unsubscribe();
+ }
+ lastValue = null;
+ }));
+ !seen && startTimer(first != null ? typeof first === "number" ? first : +first - scheduler.now() : each);
+ });
+ }
+ exports.timeout = timeout;
+ function timeoutErrorFactory(info) {
+ throw new exports.TimeoutError(info);
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/map.js
+var require_map = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.map = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function map(project, thisArg) {
+ return lift_1.operate(function(source, subscriber) {
+ var index = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ subscriber.next(project.call(thisArg, value, index++));
+ }));
+ });
+ }
+ exports.map = map;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js
+var require_mapOneOrManyArgs = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.mapOneOrManyArgs = undefined;
+ var map_1 = require_map();
+ var isArray = Array.isArray;
+ function callOrApply(fn, args) {
+ return isArray(args) ? fn.apply(undefined, __spreadArray([], __read(args))) : fn(args);
+ }
+ function mapOneOrManyArgs(fn) {
+ return map_1.map(function(args) {
+ return callOrApply(fn, args);
+ });
+ }
+ exports.mapOneOrManyArgs = mapOneOrManyArgs;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js
+var require_bindCallbackInternals = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.bindCallbackInternals = undefined;
+ var isScheduler_1 = require_isScheduler();
+ var Observable_1 = require_Observable();
+ var subscribeOn_1 = require_subscribeOn();
+ var mapOneOrManyArgs_1 = require_mapOneOrManyArgs();
+ var observeOn_1 = require_observeOn();
+ var AsyncSubject_1 = require_AsyncSubject();
+ function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) {
+ if (resultSelector) {
+ if (isScheduler_1.isScheduler(resultSelector)) {
+ scheduler = resultSelector;
+ } else {
+ return function() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler).apply(this, args).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector));
+ };
+ }
+ }
+ if (scheduler) {
+ return function() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ return bindCallbackInternals(isNodeStyle, callbackFunc).apply(this, args).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler));
+ };
+ }
+ return function() {
+ var _this = this;
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var subject = new AsyncSubject_1.AsyncSubject;
+ var uninitialized = true;
+ return new Observable_1.Observable(function(subscriber) {
+ var subs = subject.subscribe(subscriber);
+ if (uninitialized) {
+ uninitialized = false;
+ var isAsync_1 = false;
+ var isComplete_1 = false;
+ callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [
+ function() {
+ var results = [];
+ for (var _i2 = 0;_i2 < arguments.length; _i2++) {
+ results[_i2] = arguments[_i2];
+ }
+ if (isNodeStyle) {
+ var err = results.shift();
+ if (err != null) {
+ subject.error(err);
+ return;
+ }
+ }
+ subject.next(1 < results.length ? results : results[0]);
+ isComplete_1 = true;
+ if (isAsync_1) {
+ subject.complete();
+ }
+ }
+ ]));
+ if (isComplete_1) {
+ subject.complete();
+ }
+ isAsync_1 = true;
+ }
+ return subs;
+ });
+ };
+ }
+ exports.bindCallbackInternals = bindCallbackInternals;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js
+var require_bindCallback = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.bindCallback = undefined;
+ var bindCallbackInternals_1 = require_bindCallbackInternals();
+ function bindCallback(callbackFunc, resultSelector, scheduler) {
+ return bindCallbackInternals_1.bindCallbackInternals(false, callbackFunc, resultSelector, scheduler);
+ }
+ exports.bindCallback = bindCallback;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js
+var require_bindNodeCallback = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.bindNodeCallback = undefined;
+ var bindCallbackInternals_1 = require_bindCallbackInternals();
+ function bindNodeCallback(callbackFunc, resultSelector, scheduler) {
+ return bindCallbackInternals_1.bindCallbackInternals(true, callbackFunc, resultSelector, scheduler);
+ }
+ exports.bindNodeCallback = bindNodeCallback;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js
+var require_argsArgArrayOrObject = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.argsArgArrayOrObject = undefined;
+ var isArray = Array.isArray;
+ var getPrototypeOf = Object.getPrototypeOf;
+ var objectProto = Object.prototype;
+ var getKeys = Object.keys;
+ function argsArgArrayOrObject(args) {
+ if (args.length === 1) {
+ var first_1 = args[0];
+ if (isArray(first_1)) {
+ return { args: first_1, keys: null };
+ }
+ if (isPOJO(first_1)) {
+ var keys = getKeys(first_1);
+ return {
+ args: keys.map(function(key2) {
+ return first_1[key2];
+ }),
+ keys
+ };
+ }
+ }
+ return { args, keys: null };
+ }
+ exports.argsArgArrayOrObject = argsArgArrayOrObject;
+ function isPOJO(obj) {
+ return obj && typeof obj === "object" && getPrototypeOf(obj) === objectProto;
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/createObject.js
+var require_createObject = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.createObject = undefined;
+ function createObject(keys, values) {
+ return keys.reduce(function(result, key2, i) {
+ return result[key2] = values[i], result;
+ }, {});
+ }
+ exports.createObject = createObject;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js
+var require_combineLatest = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.combineLatestInit = exports.combineLatest = undefined;
+ var Observable_1 = require_Observable();
+ var argsArgArrayOrObject_1 = require_argsArgArrayOrObject();
+ var from_1 = require_from();
+ var identity_1 = require_identity();
+ var mapOneOrManyArgs_1 = require_mapOneOrManyArgs();
+ var args_1 = require_args();
+ var createObject_1 = require_createObject();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var executeSchedule_1 = require_executeSchedule();
+ function combineLatest() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var scheduler = args_1.popScheduler(args);
+ var resultSelector = args_1.popResultSelector(args);
+ var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), observables = _a.args, keys = _a.keys;
+ if (observables.length === 0) {
+ return from_1.from([], scheduler);
+ }
+ var result = new Observable_1.Observable(combineLatestInit(observables, scheduler, keys ? function(values) {
+ return createObject_1.createObject(keys, values);
+ } : identity_1.identity));
+ return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result;
+ }
+ exports.combineLatest = combineLatest;
+ function combineLatestInit(observables, scheduler, valueTransform) {
+ if (valueTransform === undefined) {
+ valueTransform = identity_1.identity;
+ }
+ return function(subscriber) {
+ maybeSchedule(scheduler, function() {
+ var length = observables.length;
+ var values = new Array(length);
+ var active = length;
+ var remainingFirstValues = length;
+ var _loop_1 = function(i2) {
+ maybeSchedule(scheduler, function() {
+ var source = from_1.from(observables[i2], scheduler);
+ var hasFirstValue = false;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ values[i2] = value;
+ if (!hasFirstValue) {
+ hasFirstValue = true;
+ remainingFirstValues--;
+ }
+ if (!remainingFirstValues) {
+ subscriber.next(valueTransform(values.slice()));
+ }
+ }, function() {
+ if (!--active) {
+ subscriber.complete();
+ }
+ }));
+ }, subscriber);
+ };
+ for (var i = 0;i < length; i++) {
+ _loop_1(i);
+ }
+ }, subscriber);
+ };
+ }
+ exports.combineLatestInit = combineLatestInit;
+ function maybeSchedule(scheduler, execute, subscription) {
+ if (scheduler) {
+ executeSchedule_1.executeSchedule(subscription, scheduler, execute);
+ } else {
+ execute();
+ }
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js
+var require_mergeInternals = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.mergeInternals = undefined;
+ var innerFrom_1 = require_innerFrom();
+ var executeSchedule_1 = require_executeSchedule();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
+ var buffer = [];
+ var active = 0;
+ var index = 0;
+ var isComplete = false;
+ var checkComplete = function() {
+ if (isComplete && !buffer.length && !active) {
+ subscriber.complete();
+ }
+ };
+ var outerNext = function(value) {
+ return active < concurrent ? doInnerSub(value) : buffer.push(value);
+ };
+ var doInnerSub = function(value) {
+ expand && subscriber.next(value);
+ active++;
+ var innerComplete = false;
+ innerFrom_1.innerFrom(project(value, index++)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(innerValue) {
+ onBeforeNext === null || onBeforeNext === undefined || onBeforeNext(innerValue);
+ if (expand) {
+ outerNext(innerValue);
+ } else {
+ subscriber.next(innerValue);
+ }
+ }, function() {
+ innerComplete = true;
+ }, undefined, function() {
+ if (innerComplete) {
+ try {
+ active--;
+ var _loop_1 = function() {
+ var bufferedValue = buffer.shift();
+ if (innerSubScheduler) {
+ executeSchedule_1.executeSchedule(subscriber, innerSubScheduler, function() {
+ return doInnerSub(bufferedValue);
+ });
+ } else {
+ doInnerSub(bufferedValue);
+ }
+ };
+ while (buffer.length && active < concurrent) {
+ _loop_1();
+ }
+ checkComplete();
+ } catch (err) {
+ subscriber.error(err);
+ }
+ }
+ }));
+ };
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, outerNext, function() {
+ isComplete = true;
+ checkComplete();
+ }));
+ return function() {
+ additionalFinalizer === null || additionalFinalizer === undefined || additionalFinalizer();
+ };
+ }
+ exports.mergeInternals = mergeInternals;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js
+var require_mergeMap = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.mergeMap = undefined;
+ var map_1 = require_map();
+ var innerFrom_1 = require_innerFrom();
+ var lift_1 = require_lift();
+ var mergeInternals_1 = require_mergeInternals();
+ var isFunction_1 = require_isFunction();
+ function mergeMap(project, resultSelector, concurrent) {
+ if (concurrent === undefined) {
+ concurrent = Infinity;
+ }
+ if (isFunction_1.isFunction(resultSelector)) {
+ return mergeMap(function(a, i) {
+ return map_1.map(function(b, ii) {
+ return resultSelector(a, b, i, ii);
+ })(innerFrom_1.innerFrom(project(a, i)));
+ }, concurrent);
+ } else if (typeof resultSelector === "number") {
+ concurrent = resultSelector;
+ }
+ return lift_1.operate(function(source, subscriber) {
+ return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent);
+ });
+ }
+ exports.mergeMap = mergeMap;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js
+var require_mergeAll = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.mergeAll = undefined;
+ var mergeMap_1 = require_mergeMap();
+ var identity_1 = require_identity();
+ function mergeAll(concurrent) {
+ if (concurrent === undefined) {
+ concurrent = Infinity;
+ }
+ return mergeMap_1.mergeMap(identity_1.identity, concurrent);
+ }
+ exports.mergeAll = mergeAll;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/concatAll.js
+var require_concatAll = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.concatAll = undefined;
+ var mergeAll_1 = require_mergeAll();
+ function concatAll() {
+ return mergeAll_1.mergeAll(1);
+ }
+ exports.concatAll = concatAll;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/concat.js
+var require_concat = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.concat = undefined;
+ var concatAll_1 = require_concatAll();
+ var args_1 = require_args();
+ var from_1 = require_from();
+ function concat() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ return concatAll_1.concatAll()(from_1.from(args, args_1.popScheduler(args)));
+ }
+ exports.concat = concat;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/defer.js
+var require_defer = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.defer = undefined;
+ var Observable_1 = require_Observable();
+ var innerFrom_1 = require_innerFrom();
+ function defer(observableFactory) {
+ return new Observable_1.Observable(function(subscriber) {
+ innerFrom_1.innerFrom(observableFactory()).subscribe(subscriber);
+ });
+ }
+ exports.defer = defer;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/connectable.js
+var require_connectable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.connectable = undefined;
+ var Subject_1 = require_Subject();
+ var Observable_1 = require_Observable();
+ var defer_1 = require_defer();
+ var DEFAULT_CONFIG = {
+ connector: function() {
+ return new Subject_1.Subject;
+ },
+ resetOnDisconnect: true
+ };
+ function connectable(source, config) {
+ if (config === undefined) {
+ config = DEFAULT_CONFIG;
+ }
+ var connection = null;
+ var { connector, resetOnDisconnect: _a } = config, resetOnDisconnect = _a === undefined ? true : _a;
+ var subject = connector();
+ var result = new Observable_1.Observable(function(subscriber) {
+ return subject.subscribe(subscriber);
+ });
+ result.connect = function() {
+ if (!connection || connection.closed) {
+ connection = defer_1.defer(function() {
+ return source;
+ }).subscribe(subject);
+ if (resetOnDisconnect) {
+ connection.add(function() {
+ return subject = connector();
+ });
+ }
+ }
+ return connection;
+ };
+ return result;
+ }
+ exports.connectable = connectable;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js
+var require_forkJoin = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.forkJoin = undefined;
+ var Observable_1 = require_Observable();
+ var argsArgArrayOrObject_1 = require_argsArgArrayOrObject();
+ var innerFrom_1 = require_innerFrom();
+ var args_1 = require_args();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var mapOneOrManyArgs_1 = require_mapOneOrManyArgs();
+ var createObject_1 = require_createObject();
+ function forkJoin() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var resultSelector = args_1.popResultSelector(args);
+ var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), sources = _a.args, keys = _a.keys;
+ var result = new Observable_1.Observable(function(subscriber) {
+ var length = sources.length;
+ if (!length) {
+ subscriber.complete();
+ return;
+ }
+ var values = new Array(length);
+ var remainingCompletions = length;
+ var remainingEmissions = length;
+ var _loop_1 = function(sourceIndex2) {
+ var hasValue = false;
+ innerFrom_1.innerFrom(sources[sourceIndex2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ if (!hasValue) {
+ hasValue = true;
+ remainingEmissions--;
+ }
+ values[sourceIndex2] = value;
+ }, function() {
+ return remainingCompletions--;
+ }, undefined, function() {
+ if (!remainingCompletions || !hasValue) {
+ if (!remainingEmissions) {
+ subscriber.next(keys ? createObject_1.createObject(keys, values) : values);
+ }
+ subscriber.complete();
+ }
+ }));
+ };
+ for (var sourceIndex = 0;sourceIndex < length; sourceIndex++) {
+ _loop_1(sourceIndex);
+ }
+ });
+ return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result;
+ }
+ exports.forkJoin = forkJoin;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js
+var require_fromEvent = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.fromEvent = undefined;
+ var innerFrom_1 = require_innerFrom();
+ var Observable_1 = require_Observable();
+ var mergeMap_1 = require_mergeMap();
+ var isArrayLike_1 = require_isArrayLike();
+ var isFunction_1 = require_isFunction();
+ var mapOneOrManyArgs_1 = require_mapOneOrManyArgs();
+ var nodeEventEmitterMethods = ["addListener", "removeListener"];
+ var eventTargetMethods = ["addEventListener", "removeEventListener"];
+ var jqueryMethods = ["on", "off"];
+ function fromEvent(target, eventName, options, resultSelector) {
+ if (isFunction_1.isFunction(options)) {
+ resultSelector = options;
+ options = undefined;
+ }
+ if (resultSelector) {
+ return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector));
+ }
+ var _a = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) {
+ return function(handler) {
+ return target[methodName](eventName, handler, options);
+ };
+ }) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add = _a[0], remove = _a[1];
+ if (!add) {
+ if (isArrayLike_1.isArrayLike(target)) {
+ return mergeMap_1.mergeMap(function(subTarget) {
+ return fromEvent(subTarget, eventName, options);
+ })(innerFrom_1.innerFrom(target));
+ }
+ }
+ if (!add) {
+ throw new TypeError("Invalid event target");
+ }
+ return new Observable_1.Observable(function(subscriber) {
+ var handler = function() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ return subscriber.next(1 < args.length ? args : args[0]);
+ };
+ add(handler);
+ return function() {
+ return remove(handler);
+ };
+ });
+ }
+ exports.fromEvent = fromEvent;
+ function toCommonHandlerRegistry(target, eventName) {
+ return function(methodName) {
+ return function(handler) {
+ return target[methodName](eventName, handler);
+ };
+ };
+ }
+ function isNodeStyleEventEmitter(target) {
+ return isFunction_1.isFunction(target.addListener) && isFunction_1.isFunction(target.removeListener);
+ }
+ function isJQueryStyleEventEmitter(target) {
+ return isFunction_1.isFunction(target.on) && isFunction_1.isFunction(target.off);
+ }
+ function isEventTarget(target) {
+ return isFunction_1.isFunction(target.addEventListener) && isFunction_1.isFunction(target.removeEventListener);
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js
+var require_fromEventPattern = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.fromEventPattern = undefined;
+ var Observable_1 = require_Observable();
+ var isFunction_1 = require_isFunction();
+ var mapOneOrManyArgs_1 = require_mapOneOrManyArgs();
+ function fromEventPattern(addHandler, removeHandler, resultSelector) {
+ if (resultSelector) {
+ return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector));
+ }
+ return new Observable_1.Observable(function(subscriber) {
+ var handler = function() {
+ var e = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ e[_i] = arguments[_i];
+ }
+ return subscriber.next(e.length === 1 ? e[0] : e);
+ };
+ var retValue = addHandler(handler);
+ return isFunction_1.isFunction(removeHandler) ? function() {
+ return removeHandler(handler, retValue);
+ } : undefined;
+ });
+ }
+ exports.fromEventPattern = fromEventPattern;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/generate.js
+var require_generate = __commonJS((exports) => {
+ var __generator = exports && exports.__generator || function(thisArg, body) {
+ var _2 = { label: 0, sent: function() {
+ if (t[0] & 1)
+ throw t[1];
+ return t[1];
+ }, trys: [], ops: [] }, f, y, t, g;
+ return g = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
+ return this;
+ }), g;
+ function verb(n) {
+ return function(v) {
+ return step([n, v]);
+ };
+ }
+ function step(op) {
+ if (f)
+ throw new TypeError("Generator is already executing.");
+ while (_2)
+ try {
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
+ return t;
+ if (y = 0, t)
+ op = [op[0] & 2, t.value];
+ switch (op[0]) {
+ case 0:
+ case 1:
+ t = op;
+ break;
+ case 4:
+ _2.label++;
+ return { value: op[1], done: false };
+ case 5:
+ _2.label++;
+ y = op[1];
+ op = [0];
+ continue;
+ case 7:
+ op = _2.ops.pop();
+ _2.trys.pop();
+ continue;
+ default:
+ if (!(t = _2.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
+ _2 = 0;
+ continue;
+ }
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
+ _2.label = op[1];
+ break;
+ }
+ if (op[0] === 6 && _2.label < t[1]) {
+ _2.label = t[1];
+ t = op;
+ break;
+ }
+ if (t && _2.label < t[2]) {
+ _2.label = t[2];
+ _2.ops.push(op);
+ break;
+ }
+ if (t[2])
+ _2.ops.pop();
+ _2.trys.pop();
+ continue;
+ }
+ op = body.call(thisArg, _2);
+ } catch (e) {
+ op = [6, e];
+ y = 0;
+ } finally {
+ f = t = 0;
+ }
+ if (op[0] & 5)
+ throw op[1];
+ return { value: op[0] ? op[1] : undefined, done: true };
+ }
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.generate = undefined;
+ var identity_1 = require_identity();
+ var isScheduler_1 = require_isScheduler();
+ var defer_1 = require_defer();
+ var scheduleIterable_1 = require_scheduleIterable();
+ function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) {
+ var _a, _b;
+ var resultSelector;
+ var initialState;
+ if (arguments.length === 1) {
+ _a = initialStateOrOptions, initialState = _a.initialState, condition = _a.condition, iterate = _a.iterate, _b = _a.resultSelector, resultSelector = _b === undefined ? identity_1.identity : _b, scheduler = _a.scheduler;
+ } else {
+ initialState = initialStateOrOptions;
+ if (!resultSelectorOrScheduler || isScheduler_1.isScheduler(resultSelectorOrScheduler)) {
+ resultSelector = identity_1.identity;
+ scheduler = resultSelectorOrScheduler;
+ } else {
+ resultSelector = resultSelectorOrScheduler;
+ }
+ }
+ function gen() {
+ var state;
+ return __generator(this, function(_a2) {
+ switch (_a2.label) {
+ case 0:
+ state = initialState;
+ _a2.label = 1;
+ case 1:
+ if (!(!condition || condition(state)))
+ return [3, 4];
+ return [4, resultSelector(state)];
+ case 2:
+ _a2.sent();
+ _a2.label = 3;
+ case 3:
+ state = iterate(state);
+ return [3, 1];
+ case 4:
+ return [2];
+ }
+ });
+ }
+ return defer_1.defer(scheduler ? function() {
+ return scheduleIterable_1.scheduleIterable(gen(), scheduler);
+ } : gen);
+ }
+ exports.generate = generate;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/iif.js
+var require_iif = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.iif = undefined;
+ var defer_1 = require_defer();
+ function iif(condition, trueResult, falseResult) {
+ return defer_1.defer(function() {
+ return condition() ? trueResult : falseResult;
+ });
+ }
+ exports.iif = iif;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/timer.js
+var require_timer = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.timer = undefined;
+ var Observable_1 = require_Observable();
+ var async_1 = require_async();
+ var isScheduler_1 = require_isScheduler();
+ var isDate_1 = require_isDate();
+ function timer(dueTime, intervalOrScheduler, scheduler) {
+ if (dueTime === undefined) {
+ dueTime = 0;
+ }
+ if (scheduler === undefined) {
+ scheduler = async_1.async;
+ }
+ var intervalDuration = -1;
+ if (intervalOrScheduler != null) {
+ if (isScheduler_1.isScheduler(intervalOrScheduler)) {
+ scheduler = intervalOrScheduler;
+ } else {
+ intervalDuration = intervalOrScheduler;
+ }
+ }
+ return new Observable_1.Observable(function(subscriber) {
+ var due = isDate_1.isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;
+ if (due < 0) {
+ due = 0;
+ }
+ var n = 0;
+ return scheduler.schedule(function() {
+ if (!subscriber.closed) {
+ subscriber.next(n++);
+ if (0 <= intervalDuration) {
+ this.schedule(undefined, intervalDuration);
+ } else {
+ subscriber.complete();
+ }
+ }
+ }, due);
+ });
+ }
+ exports.timer = timer;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/interval.js
+var require_interval = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.interval = undefined;
+ var async_1 = require_async();
+ var timer_1 = require_timer();
+ function interval(period, scheduler) {
+ if (period === undefined) {
+ period = 0;
+ }
+ if (scheduler === undefined) {
+ scheduler = async_1.asyncScheduler;
+ }
+ if (period < 0) {
+ period = 0;
+ }
+ return timer_1.timer(period, period, scheduler);
+ }
+ exports.interval = interval;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/merge.js
+var require_merge = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.merge = undefined;
+ var mergeAll_1 = require_mergeAll();
+ var innerFrom_1 = require_innerFrom();
+ var empty_1 = require_empty();
+ var args_1 = require_args();
+ var from_1 = require_from();
+ function merge() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var scheduler = args_1.popScheduler(args);
+ var concurrent = args_1.popNumber(args, Infinity);
+ var sources = args;
+ return !sources.length ? empty_1.EMPTY : sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : mergeAll_1.mergeAll(concurrent)(from_1.from(sources, scheduler));
+ }
+ exports.merge = merge;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/never.js
+var require_never = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.never = exports.NEVER = undefined;
+ var Observable_1 = require_Observable();
+ var noop_1 = require_noop();
+ exports.NEVER = new Observable_1.Observable(noop_1.noop);
+ function never() {
+ return exports.NEVER;
+ }
+ exports.never = never;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js
+var require_argsOrArgArray = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.argsOrArgArray = undefined;
+ var isArray = Array.isArray;
+ function argsOrArgArray(args) {
+ return args.length === 1 && isArray(args[0]) ? args[0] : args;
+ }
+ exports.argsOrArgArray = argsOrArgArray;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js
+var require_onErrorResumeNext = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.onErrorResumeNext = undefined;
+ var Observable_1 = require_Observable();
+ var argsOrArgArray_1 = require_argsOrArgArray();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var noop_1 = require_noop();
+ var innerFrom_1 = require_innerFrom();
+ function onErrorResumeNext() {
+ var sources = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ sources[_i] = arguments[_i];
+ }
+ var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
+ return new Observable_1.Observable(function(subscriber) {
+ var sourceIndex = 0;
+ var subscribeNext = function() {
+ if (sourceIndex < nextSources.length) {
+ var nextSource = undefined;
+ try {
+ nextSource = innerFrom_1.innerFrom(nextSources[sourceIndex++]);
+ } catch (err) {
+ subscribeNext();
+ return;
+ }
+ var innerSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, undefined, noop_1.noop, noop_1.noop);
+ nextSource.subscribe(innerSubscriber);
+ innerSubscriber.add(subscribeNext);
+ } else {
+ subscriber.complete();
+ }
+ };
+ subscribeNext();
+ });
+ }
+ exports.onErrorResumeNext = onErrorResumeNext;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/pairs.js
+var require_pairs = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.pairs = undefined;
+ var from_1 = require_from();
+ function pairs(obj, scheduler) {
+ return from_1.from(Object.entries(obj), scheduler);
+ }
+ exports.pairs = pairs;
+});
+
+// node_modules/rxjs/dist/cjs/internal/util/not.js
+var require_not = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.not = undefined;
+ function not(pred, thisArg) {
+ return function(value, index) {
+ return !pred.call(thisArg, value, index);
+ };
+ }
+ exports.not = not;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/filter.js
+var require_filter = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.filter = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function filter(predicate, thisArg) {
+ return lift_1.operate(function(source, subscriber) {
+ var index = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ return predicate.call(thisArg, value, index++) && subscriber.next(value);
+ }));
+ });
+ }
+ exports.filter = filter;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/partition.js
+var require_partition = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.partition = undefined;
+ var not_1 = require_not();
+ var filter_1 = require_filter();
+ var innerFrom_1 = require_innerFrom();
+ function partition(source, predicate, thisArg) {
+ return [filter_1.filter(predicate, thisArg)(innerFrom_1.innerFrom(source)), filter_1.filter(not_1.not(predicate, thisArg))(innerFrom_1.innerFrom(source))];
+ }
+ exports.partition = partition;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/race.js
+var require_race = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.raceInit = exports.race = undefined;
+ var Observable_1 = require_Observable();
+ var innerFrom_1 = require_innerFrom();
+ var argsOrArgArray_1 = require_argsOrArgArray();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function race() {
+ var sources = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ sources[_i] = arguments[_i];
+ }
+ sources = argsOrArgArray_1.argsOrArgArray(sources);
+ return sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : new Observable_1.Observable(raceInit(sources));
+ }
+ exports.race = race;
+ function raceInit(sources) {
+ return function(subscriber) {
+ var subscriptions = [];
+ var _loop_1 = function(i2) {
+ subscriptions.push(innerFrom_1.innerFrom(sources[i2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ if (subscriptions) {
+ for (var s = 0;s < subscriptions.length; s++) {
+ s !== i2 && subscriptions[s].unsubscribe();
+ }
+ subscriptions = null;
+ }
+ subscriber.next(value);
+ })));
+ };
+ for (var i = 0;subscriptions && !subscriber.closed && i < sources.length; i++) {
+ _loop_1(i);
+ }
+ };
+ }
+ exports.raceInit = raceInit;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/range.js
+var require_range = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.range = undefined;
+ var Observable_1 = require_Observable();
+ var empty_1 = require_empty();
+ function range(start, count, scheduler) {
+ if (count == null) {
+ count = start;
+ start = 0;
+ }
+ if (count <= 0) {
+ return empty_1.EMPTY;
+ }
+ var end = count + start;
+ return new Observable_1.Observable(scheduler ? function(subscriber) {
+ var n = start;
+ return scheduler.schedule(function() {
+ if (n < end) {
+ subscriber.next(n++);
+ this.schedule();
+ } else {
+ subscriber.complete();
+ }
+ });
+ } : function(subscriber) {
+ var n = start;
+ while (n < end && !subscriber.closed) {
+ subscriber.next(n++);
+ }
+ subscriber.complete();
+ });
+ }
+ exports.range = range;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/using.js
+var require_using = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.using = undefined;
+ var Observable_1 = require_Observable();
+ var innerFrom_1 = require_innerFrom();
+ var empty_1 = require_empty();
+ function using(resourceFactory, observableFactory) {
+ return new Observable_1.Observable(function(subscriber) {
+ var resource = resourceFactory();
+ var result = observableFactory(resource);
+ var source = result ? innerFrom_1.innerFrom(result) : empty_1.EMPTY;
+ source.subscribe(subscriber);
+ return function() {
+ if (resource) {
+ resource.unsubscribe();
+ }
+ };
+ });
+ }
+ exports.using = using;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/zip.js
+var require_zip = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.zip = undefined;
+ var Observable_1 = require_Observable();
+ var innerFrom_1 = require_innerFrom();
+ var argsOrArgArray_1 = require_argsOrArgArray();
+ var empty_1 = require_empty();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var args_1 = require_args();
+ function zip() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var resultSelector = args_1.popResultSelector(args);
+ var sources = argsOrArgArray_1.argsOrArgArray(args);
+ return sources.length ? new Observable_1.Observable(function(subscriber) {
+ var buffers = sources.map(function() {
+ return [];
+ });
+ var completed = sources.map(function() {
+ return false;
+ });
+ subscriber.add(function() {
+ buffers = completed = null;
+ });
+ var _loop_1 = function(sourceIndex2) {
+ innerFrom_1.innerFrom(sources[sourceIndex2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ buffers[sourceIndex2].push(value);
+ if (buffers.every(function(buffer) {
+ return buffer.length;
+ })) {
+ var result = buffers.map(function(buffer) {
+ return buffer.shift();
+ });
+ subscriber.next(resultSelector ? resultSelector.apply(undefined, __spreadArray([], __read(result))) : result);
+ if (buffers.some(function(buffer, i) {
+ return !buffer.length && completed[i];
+ })) {
+ subscriber.complete();
+ }
+ }
+ }, function() {
+ completed[sourceIndex2] = true;
+ !buffers[sourceIndex2].length && subscriber.complete();
+ }));
+ };
+ for (var sourceIndex = 0;!subscriber.closed && sourceIndex < sources.length; sourceIndex++) {
+ _loop_1(sourceIndex);
+ }
+ return function() {
+ buffers = completed = null;
+ };
+ }) : empty_1.EMPTY;
+ }
+ exports.zip = zip;
+});
+
+// node_modules/rxjs/dist/cjs/internal/types.js
+var require_types = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/audit.js
+var require_audit = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.audit = undefined;
+ var lift_1 = require_lift();
+ var innerFrom_1 = require_innerFrom();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function audit(durationSelector) {
+ return lift_1.operate(function(source, subscriber) {
+ var hasValue = false;
+ var lastValue = null;
+ var durationSubscriber = null;
+ var isComplete = false;
+ var endDuration = function() {
+ durationSubscriber === null || durationSubscriber === undefined || durationSubscriber.unsubscribe();
+ durationSubscriber = null;
+ if (hasValue) {
+ hasValue = false;
+ var value = lastValue;
+ lastValue = null;
+ subscriber.next(value);
+ }
+ isComplete && subscriber.complete();
+ };
+ var cleanupDuration = function() {
+ durationSubscriber = null;
+ isComplete && subscriber.complete();
+ };
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ hasValue = true;
+ lastValue = value;
+ if (!durationSubscriber) {
+ innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, endDuration, cleanupDuration));
+ }
+ }, function() {
+ isComplete = true;
+ (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();
+ }));
+ });
+ }
+ exports.audit = audit;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/auditTime.js
+var require_auditTime = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.auditTime = undefined;
+ var async_1 = require_async();
+ var audit_1 = require_audit();
+ var timer_1 = require_timer();
+ function auditTime(duration, scheduler) {
+ if (scheduler === undefined) {
+ scheduler = async_1.asyncScheduler;
+ }
+ return audit_1.audit(function() {
+ return timer_1.timer(duration, scheduler);
+ });
+ }
+ exports.auditTime = auditTime;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/buffer.js
+var require_buffer = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.buffer = undefined;
+ var lift_1 = require_lift();
+ var noop_1 = require_noop();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var innerFrom_1 = require_innerFrom();
+ function buffer(closingNotifier) {
+ return lift_1.operate(function(source, subscriber) {
+ var currentBuffer = [];
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ return currentBuffer.push(value);
+ }, function() {
+ subscriber.next(currentBuffer);
+ subscriber.complete();
+ }));
+ innerFrom_1.innerFrom(closingNotifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ var b = currentBuffer;
+ currentBuffer = [];
+ subscriber.next(b);
+ }, noop_1.noop));
+ return function() {
+ currentBuffer = null;
+ };
+ });
+ }
+ exports.buffer = buffer;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js
+var require_bufferCount = __commonJS((exports) => {
+ var __values = exports && exports.__values || function(o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m)
+ return m.call(o);
+ if (o && typeof o.length === "number")
+ return {
+ next: function() {
+ if (o && i >= o.length)
+ o = undefined;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.bufferCount = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var arrRemove_1 = require_arrRemove();
+ function bufferCount(bufferSize, startBufferEvery) {
+ if (startBufferEvery === undefined) {
+ startBufferEvery = null;
+ }
+ startBufferEvery = startBufferEvery !== null && startBufferEvery !== undefined ? startBufferEvery : bufferSize;
+ return lift_1.operate(function(source, subscriber) {
+ var buffers = [];
+ var count = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var e_1, _a, e_2, _b;
+ var toEmit = null;
+ if (count++ % startBufferEvery === 0) {
+ buffers.push([]);
+ }
+ try {
+ for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next();!buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
+ var buffer = buffers_1_1.value;
+ buffer.push(value);
+ if (bufferSize <= buffer.length) {
+ toEmit = toEmit !== null && toEmit !== undefined ? toEmit : [];
+ toEmit.push(buffer);
+ }
+ }
+ } catch (e_1_1) {
+ e_1 = { error: e_1_1 };
+ } finally {
+ try {
+ if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return))
+ _a.call(buffers_1);
+ } finally {
+ if (e_1)
+ throw e_1.error;
+ }
+ }
+ if (toEmit) {
+ try {
+ for (var toEmit_1 = __values(toEmit), toEmit_1_1 = toEmit_1.next();!toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) {
+ var buffer = toEmit_1_1.value;
+ arrRemove_1.arrRemove(buffers, buffer);
+ subscriber.next(buffer);
+ }
+ } catch (e_2_1) {
+ e_2 = { error: e_2_1 };
+ } finally {
+ try {
+ if (toEmit_1_1 && !toEmit_1_1.done && (_b = toEmit_1.return))
+ _b.call(toEmit_1);
+ } finally {
+ if (e_2)
+ throw e_2.error;
+ }
+ }
+ }
+ }, function() {
+ var e_3, _a;
+ try {
+ for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next();!buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
+ var buffer = buffers_2_1.value;
+ subscriber.next(buffer);
+ }
+ } catch (e_3_1) {
+ e_3 = { error: e_3_1 };
+ } finally {
+ try {
+ if (buffers_2_1 && !buffers_2_1.done && (_a = buffers_2.return))
+ _a.call(buffers_2);
+ } finally {
+ if (e_3)
+ throw e_3.error;
+ }
+ }
+ subscriber.complete();
+ }, undefined, function() {
+ buffers = null;
+ }));
+ });
+ }
+ exports.bufferCount = bufferCount;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js
+var require_bufferTime = __commonJS((exports) => {
+ var __values = exports && exports.__values || function(o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m)
+ return m.call(o);
+ if (o && typeof o.length === "number")
+ return {
+ next: function() {
+ if (o && i >= o.length)
+ o = undefined;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.bufferTime = undefined;
+ var Subscription_1 = require_Subscription();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var arrRemove_1 = require_arrRemove();
+ var async_1 = require_async();
+ var args_1 = require_args();
+ var executeSchedule_1 = require_executeSchedule();
+ function bufferTime(bufferTimeSpan) {
+ var _a, _b;
+ var otherArgs = [];
+ for (var _i = 1;_i < arguments.length; _i++) {
+ otherArgs[_i - 1] = arguments[_i];
+ }
+ var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== undefined ? _a : async_1.asyncScheduler;
+ var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== undefined ? _b : null;
+ var maxBufferSize = otherArgs[1] || Infinity;
+ return lift_1.operate(function(source, subscriber) {
+ var bufferRecords = [];
+ var restartOnEmit = false;
+ var emit = function(record) {
+ var { buffer, subs } = record;
+ subs.unsubscribe();
+ arrRemove_1.arrRemove(bufferRecords, record);
+ subscriber.next(buffer);
+ restartOnEmit && startBuffer();
+ };
+ var startBuffer = function() {
+ if (bufferRecords) {
+ var subs = new Subscription_1.Subscription;
+ subscriber.add(subs);
+ var buffer = [];
+ var record_1 = {
+ buffer,
+ subs
+ };
+ bufferRecords.push(record_1);
+ executeSchedule_1.executeSchedule(subs, scheduler, function() {
+ return emit(record_1);
+ }, bufferTimeSpan);
+ }
+ };
+ if (bufferCreationInterval !== null && bufferCreationInterval >= 0) {
+ executeSchedule_1.executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true);
+ } else {
+ restartOnEmit = true;
+ }
+ startBuffer();
+ var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var e_1, _a2;
+ var recordsCopy = bufferRecords.slice();
+ try {
+ for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next();!recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
+ var record = recordsCopy_1_1.value;
+ var buffer = record.buffer;
+ buffer.push(value);
+ maxBufferSize <= buffer.length && emit(record);
+ }
+ } catch (e_1_1) {
+ e_1 = { error: e_1_1 };
+ } finally {
+ try {
+ if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a2 = recordsCopy_1.return))
+ _a2.call(recordsCopy_1);
+ } finally {
+ if (e_1)
+ throw e_1.error;
+ }
+ }
+ }, function() {
+ while (bufferRecords === null || bufferRecords === undefined ? undefined : bufferRecords.length) {
+ subscriber.next(bufferRecords.shift().buffer);
+ }
+ bufferTimeSubscriber === null || bufferTimeSubscriber === undefined || bufferTimeSubscriber.unsubscribe();
+ subscriber.complete();
+ subscriber.unsubscribe();
+ }, undefined, function() {
+ return bufferRecords = null;
+ });
+ source.subscribe(bufferTimeSubscriber);
+ });
+ }
+ exports.bufferTime = bufferTime;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js
+var require_bufferToggle = __commonJS((exports) => {
+ var __values = exports && exports.__values || function(o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m)
+ return m.call(o);
+ if (o && typeof o.length === "number")
+ return {
+ next: function() {
+ if (o && i >= o.length)
+ o = undefined;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.bufferToggle = undefined;
+ var Subscription_1 = require_Subscription();
+ var lift_1 = require_lift();
+ var innerFrom_1 = require_innerFrom();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var noop_1 = require_noop();
+ var arrRemove_1 = require_arrRemove();
+ function bufferToggle(openings, closingSelector) {
+ return lift_1.operate(function(source, subscriber) {
+ var buffers = [];
+ innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(openValue) {
+ var buffer = [];
+ buffers.push(buffer);
+ var closingSubscription = new Subscription_1.Subscription;
+ var emitBuffer = function() {
+ arrRemove_1.arrRemove(buffers, buffer);
+ subscriber.next(buffer);
+ closingSubscription.unsubscribe();
+ };
+ closingSubscription.add(innerFrom_1.innerFrom(closingSelector(openValue)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, emitBuffer, noop_1.noop)));
+ }, noop_1.noop));
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var e_1, _a;
+ try {
+ for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next();!buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
+ var buffer = buffers_1_1.value;
+ buffer.push(value);
+ }
+ } catch (e_1_1) {
+ e_1 = { error: e_1_1 };
+ } finally {
+ try {
+ if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return))
+ _a.call(buffers_1);
+ } finally {
+ if (e_1)
+ throw e_1.error;
+ }
+ }
+ }, function() {
+ while (buffers.length > 0) {
+ subscriber.next(buffers.shift());
+ }
+ subscriber.complete();
+ }));
+ });
+ }
+ exports.bufferToggle = bufferToggle;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js
+var require_bufferWhen = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.bufferWhen = undefined;
+ var lift_1 = require_lift();
+ var noop_1 = require_noop();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var innerFrom_1 = require_innerFrom();
+ function bufferWhen(closingSelector) {
+ return lift_1.operate(function(source, subscriber) {
+ var buffer = null;
+ var closingSubscriber = null;
+ var openBuffer = function() {
+ closingSubscriber === null || closingSubscriber === undefined || closingSubscriber.unsubscribe();
+ var b = buffer;
+ buffer = [];
+ b && subscriber.next(b);
+ innerFrom_1.innerFrom(closingSelector()).subscribe(closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openBuffer, noop_1.noop));
+ };
+ openBuffer();
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ return buffer === null || buffer === undefined ? undefined : buffer.push(value);
+ }, function() {
+ buffer && subscriber.next(buffer);
+ subscriber.complete();
+ }, undefined, function() {
+ return buffer = closingSubscriber = null;
+ }));
+ });
+ }
+ exports.bufferWhen = bufferWhen;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/catchError.js
+var require_catchError = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.catchError = undefined;
+ var innerFrom_1 = require_innerFrom();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var lift_1 = require_lift();
+ function catchError(selector) {
+ return lift_1.operate(function(source, subscriber) {
+ var innerSub = null;
+ var syncUnsub = false;
+ var handledResult;
+ innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, function(err) {
+ handledResult = innerFrom_1.innerFrom(selector(err, catchError(selector)(source)));
+ if (innerSub) {
+ innerSub.unsubscribe();
+ innerSub = null;
+ handledResult.subscribe(subscriber);
+ } else {
+ syncUnsub = true;
+ }
+ }));
+ if (syncUnsub) {
+ innerSub.unsubscribe();
+ innerSub = null;
+ handledResult.subscribe(subscriber);
+ }
+ });
+ }
+ exports.catchError = catchError;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js
+var require_scanInternals = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.scanInternals = undefined;
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
+ return function(source, subscriber) {
+ var hasState = hasSeed;
+ var state = seed;
+ var index = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var i = index++;
+ state = hasState ? accumulator(state, value, i) : (hasState = true, value);
+ emitOnNext && subscriber.next(state);
+ }, emitBeforeComplete && function() {
+ hasState && subscriber.next(state);
+ subscriber.complete();
+ }));
+ };
+ }
+ exports.scanInternals = scanInternals;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/reduce.js
+var require_reduce = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.reduce = undefined;
+ var scanInternals_1 = require_scanInternals();
+ var lift_1 = require_lift();
+ function reduce(accumulator, seed) {
+ return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, false, true));
+ }
+ exports.reduce = reduce;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/toArray.js
+var require_toArray = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.toArray = undefined;
+ var reduce_1 = require_reduce();
+ var lift_1 = require_lift();
+ var arrReducer = function(arr, value) {
+ return arr.push(value), arr;
+ };
+ function toArray() {
+ return lift_1.operate(function(source, subscriber) {
+ reduce_1.reduce(arrReducer, [])(source).subscribe(subscriber);
+ });
+ }
+ exports.toArray = toArray;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js
+var require_joinAllInternals = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.joinAllInternals = undefined;
+ var identity_1 = require_identity();
+ var mapOneOrManyArgs_1 = require_mapOneOrManyArgs();
+ var pipe_1 = require_pipe();
+ var mergeMap_1 = require_mergeMap();
+ var toArray_1 = require_toArray();
+ function joinAllInternals(joinFn, project) {
+ return pipe_1.pipe(toArray_1.toArray(), mergeMap_1.mergeMap(function(sources) {
+ return joinFn(sources);
+ }), project ? mapOneOrManyArgs_1.mapOneOrManyArgs(project) : identity_1.identity);
+ }
+ exports.joinAllInternals = joinAllInternals;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js
+var require_combineLatestAll = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.combineLatestAll = undefined;
+ var combineLatest_1 = require_combineLatest();
+ var joinAllInternals_1 = require_joinAllInternals();
+ function combineLatestAll(project) {
+ return joinAllInternals_1.joinAllInternals(combineLatest_1.combineLatest, project);
+ }
+ exports.combineLatestAll = combineLatestAll;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/combineAll.js
+var require_combineAll = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.combineAll = undefined;
+ var combineLatestAll_1 = require_combineLatestAll();
+ exports.combineAll = combineLatestAll_1.combineLatestAll;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js
+var require_combineLatest2 = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.combineLatest = undefined;
+ var combineLatest_1 = require_combineLatest();
+ var lift_1 = require_lift();
+ var argsOrArgArray_1 = require_argsOrArgArray();
+ var mapOneOrManyArgs_1 = require_mapOneOrManyArgs();
+ var pipe_1 = require_pipe();
+ var args_1 = require_args();
+ function combineLatest() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var resultSelector = args_1.popResultSelector(args);
+ return resultSelector ? pipe_1.pipe(combineLatest.apply(undefined, __spreadArray([], __read(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : lift_1.operate(function(source, subscriber) {
+ combineLatest_1.combineLatestInit(__spreadArray([source], __read(argsOrArgArray_1.argsOrArgArray(args))))(subscriber);
+ });
+ }
+ exports.combineLatest = combineLatest;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js
+var require_combineLatestWith = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.combineLatestWith = undefined;
+ var combineLatest_1 = require_combineLatest2();
+ function combineLatestWith() {
+ var otherSources = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ otherSources[_i] = arguments[_i];
+ }
+ return combineLatest_1.combineLatest.apply(undefined, __spreadArray([], __read(otherSources)));
+ }
+ exports.combineLatestWith = combineLatestWith;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/concatMap.js
+var require_concatMap = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.concatMap = undefined;
+ var mergeMap_1 = require_mergeMap();
+ var isFunction_1 = require_isFunction();
+ function concatMap(project, resultSelector) {
+ return isFunction_1.isFunction(resultSelector) ? mergeMap_1.mergeMap(project, resultSelector, 1) : mergeMap_1.mergeMap(project, 1);
+ }
+ exports.concatMap = concatMap;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js
+var require_concatMapTo = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.concatMapTo = undefined;
+ var concatMap_1 = require_concatMap();
+ var isFunction_1 = require_isFunction();
+ function concatMapTo(innerObservable, resultSelector) {
+ return isFunction_1.isFunction(resultSelector) ? concatMap_1.concatMap(function() {
+ return innerObservable;
+ }, resultSelector) : concatMap_1.concatMap(function() {
+ return innerObservable;
+ });
+ }
+ exports.concatMapTo = concatMapTo;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/concat.js
+var require_concat2 = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.concat = undefined;
+ var lift_1 = require_lift();
+ var concatAll_1 = require_concatAll();
+ var args_1 = require_args();
+ var from_1 = require_from();
+ function concat() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var scheduler = args_1.popScheduler(args);
+ return lift_1.operate(function(source, subscriber) {
+ concatAll_1.concatAll()(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
+ });
+ }
+ exports.concat = concat;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/concatWith.js
+var require_concatWith = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.concatWith = undefined;
+ var concat_1 = require_concat2();
+ function concatWith() {
+ var otherSources = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ otherSources[_i] = arguments[_i];
+ }
+ return concat_1.concat.apply(undefined, __spreadArray([], __read(otherSources)));
+ }
+ exports.concatWith = concatWith;
+});
+
+// node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js
+var require_fromSubscribable = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.fromSubscribable = undefined;
+ var Observable_1 = require_Observable();
+ function fromSubscribable(subscribable) {
+ return new Observable_1.Observable(function(subscriber) {
+ return subscribable.subscribe(subscriber);
+ });
+ }
+ exports.fromSubscribable = fromSubscribable;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/connect.js
+var require_connect = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.connect = undefined;
+ var Subject_1 = require_Subject();
+ var innerFrom_1 = require_innerFrom();
+ var lift_1 = require_lift();
+ var fromSubscribable_1 = require_fromSubscribable();
+ var DEFAULT_CONFIG = {
+ connector: function() {
+ return new Subject_1.Subject;
+ }
+ };
+ function connect(selector, config) {
+ if (config === undefined) {
+ config = DEFAULT_CONFIG;
+ }
+ var connector = config.connector;
+ return lift_1.operate(function(source, subscriber) {
+ var subject = connector();
+ innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject))).subscribe(subscriber);
+ subscriber.add(source.subscribe(subject));
+ });
+ }
+ exports.connect = connect;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/count.js
+var require_count = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.count = undefined;
+ var reduce_1 = require_reduce();
+ function count(predicate) {
+ return reduce_1.reduce(function(total, value, i) {
+ return !predicate || predicate(value, i) ? total + 1 : total;
+ }, 0);
+ }
+ exports.count = count;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/debounce.js
+var require_debounce = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.debounce = undefined;
+ var lift_1 = require_lift();
+ var noop_1 = require_noop();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var innerFrom_1 = require_innerFrom();
+ function debounce(durationSelector) {
+ return lift_1.operate(function(source, subscriber) {
+ var hasValue = false;
+ var lastValue = null;
+ var durationSubscriber = null;
+ var emit = function() {
+ durationSubscriber === null || durationSubscriber === undefined || durationSubscriber.unsubscribe();
+ durationSubscriber = null;
+ if (hasValue) {
+ hasValue = false;
+ var value = lastValue;
+ lastValue = null;
+ subscriber.next(value);
+ }
+ };
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ durationSubscriber === null || durationSubscriber === undefined || durationSubscriber.unsubscribe();
+ hasValue = true;
+ lastValue = value;
+ durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, emit, noop_1.noop);
+ innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber);
+ }, function() {
+ emit();
+ subscriber.complete();
+ }, undefined, function() {
+ lastValue = durationSubscriber = null;
+ }));
+ });
+ }
+ exports.debounce = debounce;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js
+var require_debounceTime = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.debounceTime = undefined;
+ var async_1 = require_async();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function debounceTime(dueTime, scheduler) {
+ if (scheduler === undefined) {
+ scheduler = async_1.asyncScheduler;
+ }
+ return lift_1.operate(function(source, subscriber) {
+ var activeTask = null;
+ var lastValue = null;
+ var lastTime = null;
+ var emit = function() {
+ if (activeTask) {
+ activeTask.unsubscribe();
+ activeTask = null;
+ var value = lastValue;
+ lastValue = null;
+ subscriber.next(value);
+ }
+ };
+ function emitWhenIdle() {
+ var targetTime = lastTime + dueTime;
+ var now = scheduler.now();
+ if (now < targetTime) {
+ activeTask = this.schedule(undefined, targetTime - now);
+ subscriber.add(activeTask);
+ return;
+ }
+ emit();
+ }
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ lastValue = value;
+ lastTime = scheduler.now();
+ if (!activeTask) {
+ activeTask = scheduler.schedule(emitWhenIdle, dueTime);
+ subscriber.add(activeTask);
+ }
+ }, function() {
+ emit();
+ subscriber.complete();
+ }, undefined, function() {
+ lastValue = activeTask = null;
+ }));
+ });
+ }
+ exports.debounceTime = debounceTime;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js
+var require_defaultIfEmpty = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.defaultIfEmpty = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function defaultIfEmpty(defaultValue) {
+ return lift_1.operate(function(source, subscriber) {
+ var hasValue = false;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ hasValue = true;
+ subscriber.next(value);
+ }, function() {
+ if (!hasValue) {
+ subscriber.next(defaultValue);
+ }
+ subscriber.complete();
+ }));
+ });
+ }
+ exports.defaultIfEmpty = defaultIfEmpty;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/take.js
+var require_take = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.take = undefined;
+ var empty_1 = require_empty();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function take(count) {
+ return count <= 0 ? function() {
+ return empty_1.EMPTY;
+ } : lift_1.operate(function(source, subscriber) {
+ var seen = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ if (++seen <= count) {
+ subscriber.next(value);
+ if (count <= seen) {
+ subscriber.complete();
+ }
+ }
+ }));
+ });
+ }
+ exports.take = take;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js
+var require_ignoreElements = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.ignoreElements = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var noop_1 = require_noop();
+ function ignoreElements() {
+ return lift_1.operate(function(source, subscriber) {
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, noop_1.noop));
+ });
+ }
+ exports.ignoreElements = ignoreElements;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/mapTo.js
+var require_mapTo = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.mapTo = undefined;
+ var map_1 = require_map();
+ function mapTo(value) {
+ return map_1.map(function() {
+ return value;
+ });
+ }
+ exports.mapTo = mapTo;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js
+var require_delayWhen = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.delayWhen = undefined;
+ var concat_1 = require_concat();
+ var take_1 = require_take();
+ var ignoreElements_1 = require_ignoreElements();
+ var mapTo_1 = require_mapTo();
+ var mergeMap_1 = require_mergeMap();
+ var innerFrom_1 = require_innerFrom();
+ function delayWhen(delayDurationSelector, subscriptionDelay) {
+ if (subscriptionDelay) {
+ return function(source) {
+ return concat_1.concat(subscriptionDelay.pipe(take_1.take(1), ignoreElements_1.ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
+ };
+ }
+ return mergeMap_1.mergeMap(function(value, index) {
+ return innerFrom_1.innerFrom(delayDurationSelector(value, index)).pipe(take_1.take(1), mapTo_1.mapTo(value));
+ });
+ }
+ exports.delayWhen = delayWhen;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/delay.js
+var require_delay = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.delay = undefined;
+ var async_1 = require_async();
+ var delayWhen_1 = require_delayWhen();
+ var timer_1 = require_timer();
+ function delay(due, scheduler) {
+ if (scheduler === undefined) {
+ scheduler = async_1.asyncScheduler;
+ }
+ var duration = timer_1.timer(due, scheduler);
+ return delayWhen_1.delayWhen(function() {
+ return duration;
+ });
+ }
+ exports.delay = delay;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js
+var require_dematerialize = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.dematerialize = undefined;
+ var Notification_1 = require_Notification();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function dematerialize() {
+ return lift_1.operate(function(source, subscriber) {
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(notification) {
+ return Notification_1.observeNotification(notification, subscriber);
+ }));
+ });
+ }
+ exports.dematerialize = dematerialize;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/distinct.js
+var require_distinct = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.distinct = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var noop_1 = require_noop();
+ var innerFrom_1 = require_innerFrom();
+ function distinct(keySelector, flushes) {
+ return lift_1.operate(function(source, subscriber) {
+ var distinctKeys = new Set;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var key2 = keySelector ? keySelector(value) : value;
+ if (!distinctKeys.has(key2)) {
+ distinctKeys.add(key2);
+ subscriber.next(value);
+ }
+ }));
+ flushes && innerFrom_1.innerFrom(flushes).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ return distinctKeys.clear();
+ }, noop_1.noop));
+ });
+ }
+ exports.distinct = distinct;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js
+var require_distinctUntilChanged = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.distinctUntilChanged = undefined;
+ var identity_1 = require_identity();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function distinctUntilChanged(comparator, keySelector) {
+ if (keySelector === undefined) {
+ keySelector = identity_1.identity;
+ }
+ comparator = comparator !== null && comparator !== undefined ? comparator : defaultCompare;
+ return lift_1.operate(function(source, subscriber) {
+ var previousKey;
+ var first = true;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var currentKey = keySelector(value);
+ if (first || !comparator(previousKey, currentKey)) {
+ first = false;
+ previousKey = currentKey;
+ subscriber.next(value);
+ }
+ }));
+ });
+ }
+ exports.distinctUntilChanged = distinctUntilChanged;
+ function defaultCompare(a, b) {
+ return a === b;
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js
+var require_distinctUntilKeyChanged = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.distinctUntilKeyChanged = undefined;
+ var distinctUntilChanged_1 = require_distinctUntilChanged();
+ function distinctUntilKeyChanged(key2, compare) {
+ return distinctUntilChanged_1.distinctUntilChanged(function(x, y) {
+ return compare ? compare(x[key2], y[key2]) : x[key2] === y[key2];
+ });
+ }
+ exports.distinctUntilKeyChanged = distinctUntilKeyChanged;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js
+var require_throwIfEmpty = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.throwIfEmpty = undefined;
+ var EmptyError_1 = require_EmptyError();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function throwIfEmpty(errorFactory) {
+ if (errorFactory === undefined) {
+ errorFactory = defaultErrorFactory;
+ }
+ return lift_1.operate(function(source, subscriber) {
+ var hasValue = false;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ hasValue = true;
+ subscriber.next(value);
+ }, function() {
+ return hasValue ? subscriber.complete() : subscriber.error(errorFactory());
+ }));
+ });
+ }
+ exports.throwIfEmpty = throwIfEmpty;
+ function defaultErrorFactory() {
+ return new EmptyError_1.EmptyError;
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/elementAt.js
+var require_elementAt = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.elementAt = undefined;
+ var ArgumentOutOfRangeError_1 = require_ArgumentOutOfRangeError();
+ var filter_1 = require_filter();
+ var throwIfEmpty_1 = require_throwIfEmpty();
+ var defaultIfEmpty_1 = require_defaultIfEmpty();
+ var take_1 = require_take();
+ function elementAt(index, defaultValue) {
+ if (index < 0) {
+ throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;
+ }
+ var hasDefaultValue = arguments.length >= 2;
+ return function(source) {
+ return source.pipe(filter_1.filter(function(v, i) {
+ return i === index;
+ }), take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() {
+ return new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;
+ }));
+ };
+ }
+ exports.elementAt = elementAt;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/endWith.js
+var require_endWith = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.endWith = undefined;
+ var concat_1 = require_concat();
+ var of_1 = require_of();
+ function endWith() {
+ var values = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ values[_i] = arguments[_i];
+ }
+ return function(source) {
+ return concat_1.concat(source, of_1.of.apply(undefined, __spreadArray([], __read(values))));
+ };
+ }
+ exports.endWith = endWith;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/every.js
+var require_every = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.every = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function every(predicate, thisArg) {
+ return lift_1.operate(function(source, subscriber) {
+ var index = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ if (!predicate.call(thisArg, value, index++, source)) {
+ subscriber.next(false);
+ subscriber.complete();
+ }
+ }, function() {
+ subscriber.next(true);
+ subscriber.complete();
+ }));
+ });
+ }
+ exports.every = every;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js
+var require_exhaustMap = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.exhaustMap = undefined;
+ var map_1 = require_map();
+ var innerFrom_1 = require_innerFrom();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function exhaustMap(project, resultSelector) {
+ if (resultSelector) {
+ return function(source) {
+ return source.pipe(exhaustMap(function(a, i) {
+ return innerFrom_1.innerFrom(project(a, i)).pipe(map_1.map(function(b, ii) {
+ return resultSelector(a, b, i, ii);
+ }));
+ }));
+ };
+ }
+ return lift_1.operate(function(source, subscriber) {
+ var index = 0;
+ var innerSub = null;
+ var isComplete = false;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(outerValue) {
+ if (!innerSub) {
+ innerSub = OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function() {
+ innerSub = null;
+ isComplete && subscriber.complete();
+ });
+ innerFrom_1.innerFrom(project(outerValue, index++)).subscribe(innerSub);
+ }
+ }, function() {
+ isComplete = true;
+ !innerSub && subscriber.complete();
+ }));
+ });
+ }
+ exports.exhaustMap = exhaustMap;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js
+var require_exhaustAll = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.exhaustAll = undefined;
+ var exhaustMap_1 = require_exhaustMap();
+ var identity_1 = require_identity();
+ function exhaustAll() {
+ return exhaustMap_1.exhaustMap(identity_1.identity);
+ }
+ exports.exhaustAll = exhaustAll;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/exhaust.js
+var require_exhaust = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.exhaust = undefined;
+ var exhaustAll_1 = require_exhaustAll();
+ exports.exhaust = exhaustAll_1.exhaustAll;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/expand.js
+var require_expand = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.expand = undefined;
+ var lift_1 = require_lift();
+ var mergeInternals_1 = require_mergeInternals();
+ function expand(project, concurrent, scheduler) {
+ if (concurrent === undefined) {
+ concurrent = Infinity;
+ }
+ concurrent = (concurrent || 0) < 1 ? Infinity : concurrent;
+ return lift_1.operate(function(source, subscriber) {
+ return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent, undefined, true, scheduler);
+ });
+ }
+ exports.expand = expand;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/finalize.js
+var require_finalize = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.finalize = undefined;
+ var lift_1 = require_lift();
+ function finalize(callback) {
+ return lift_1.operate(function(source, subscriber) {
+ try {
+ source.subscribe(subscriber);
+ } finally {
+ subscriber.add(callback);
+ }
+ });
+ }
+ exports.finalize = finalize;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/find.js
+var require_find = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.createFind = exports.find = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function find(predicate, thisArg) {
+ return lift_1.operate(createFind(predicate, thisArg, "value"));
+ }
+ exports.find = find;
+ function createFind(predicate, thisArg, emit) {
+ var findIndex = emit === "index";
+ return function(source, subscriber) {
+ var index = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var i = index++;
+ if (predicate.call(thisArg, value, i, source)) {
+ subscriber.next(findIndex ? i : value);
+ subscriber.complete();
+ }
+ }, function() {
+ subscriber.next(findIndex ? -1 : undefined);
+ subscriber.complete();
+ }));
+ };
+ }
+ exports.createFind = createFind;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/findIndex.js
+var require_findIndex = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.findIndex = undefined;
+ var lift_1 = require_lift();
+ var find_1 = require_find();
+ function findIndex(predicate, thisArg) {
+ return lift_1.operate(find_1.createFind(predicate, thisArg, "index"));
+ }
+ exports.findIndex = findIndex;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/first.js
+var require_first = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.first = undefined;
+ var EmptyError_1 = require_EmptyError();
+ var filter_1 = require_filter();
+ var take_1 = require_take();
+ var defaultIfEmpty_1 = require_defaultIfEmpty();
+ var throwIfEmpty_1 = require_throwIfEmpty();
+ var identity_1 = require_identity();
+ function first(predicate, defaultValue) {
+ var hasDefaultValue = arguments.length >= 2;
+ return function(source) {
+ return source.pipe(predicate ? filter_1.filter(function(v, i) {
+ return predicate(v, i, source);
+ }) : identity_1.identity, take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() {
+ return new EmptyError_1.EmptyError;
+ }));
+ };
+ }
+ exports.first = first;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/groupBy.js
+var require_groupBy = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.groupBy = undefined;
+ var Observable_1 = require_Observable();
+ var innerFrom_1 = require_innerFrom();
+ var Subject_1 = require_Subject();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function groupBy(keySelector, elementOrOptions, duration, connector) {
+ return lift_1.operate(function(source, subscriber) {
+ var element;
+ if (!elementOrOptions || typeof elementOrOptions === "function") {
+ element = elementOrOptions;
+ } else {
+ duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector;
+ }
+ var groups = new Map;
+ var notify = function(cb) {
+ groups.forEach(cb);
+ cb(subscriber);
+ };
+ var handleError = function(err) {
+ return notify(function(consumer) {
+ return consumer.error(err);
+ });
+ };
+ var activeGroups = 0;
+ var teardownAttempted = false;
+ var groupBySourceSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, function(value) {
+ try {
+ var key_1 = keySelector(value);
+ var group_1 = groups.get(key_1);
+ if (!group_1) {
+ groups.set(key_1, group_1 = connector ? connector() : new Subject_1.Subject);
+ var grouped = createGroupedObservable(key_1, group_1);
+ subscriber.next(grouped);
+ if (duration) {
+ var durationSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(group_1, function() {
+ group_1.complete();
+ durationSubscriber_1 === null || durationSubscriber_1 === undefined || durationSubscriber_1.unsubscribe();
+ }, undefined, undefined, function() {
+ return groups.delete(key_1);
+ });
+ groupBySourceSubscriber.add(innerFrom_1.innerFrom(duration(grouped)).subscribe(durationSubscriber_1));
+ }
+ }
+ group_1.next(element ? element(value) : value);
+ } catch (err) {
+ handleError(err);
+ }
+ }, function() {
+ return notify(function(consumer) {
+ return consumer.complete();
+ });
+ }, handleError, function() {
+ return groups.clear();
+ }, function() {
+ teardownAttempted = true;
+ return activeGroups === 0;
+ });
+ source.subscribe(groupBySourceSubscriber);
+ function createGroupedObservable(key2, groupSubject) {
+ var result = new Observable_1.Observable(function(groupSubscriber) {
+ activeGroups++;
+ var innerSub = groupSubject.subscribe(groupSubscriber);
+ return function() {
+ innerSub.unsubscribe();
+ --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe();
+ };
+ });
+ result.key = key2;
+ return result;
+ }
+ });
+ }
+ exports.groupBy = groupBy;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js
+var require_isEmpty = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.isEmpty = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function isEmpty() {
+ return lift_1.operate(function(source, subscriber) {
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ subscriber.next(false);
+ subscriber.complete();
+ }, function() {
+ subscriber.next(true);
+ subscriber.complete();
+ }));
+ });
+ }
+ exports.isEmpty = isEmpty;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/takeLast.js
+var require_takeLast = __commonJS((exports) => {
+ var __values = exports && exports.__values || function(o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m)
+ return m.call(o);
+ if (o && typeof o.length === "number")
+ return {
+ next: function() {
+ if (o && i >= o.length)
+ o = undefined;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.takeLast = undefined;
+ var empty_1 = require_empty();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function takeLast(count) {
+ return count <= 0 ? function() {
+ return empty_1.EMPTY;
+ } : lift_1.operate(function(source, subscriber) {
+ var buffer = [];
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ buffer.push(value);
+ count < buffer.length && buffer.shift();
+ }, function() {
+ var e_1, _a;
+ try {
+ for (var buffer_1 = __values(buffer), buffer_1_1 = buffer_1.next();!buffer_1_1.done; buffer_1_1 = buffer_1.next()) {
+ var value = buffer_1_1.value;
+ subscriber.next(value);
+ }
+ } catch (e_1_1) {
+ e_1 = { error: e_1_1 };
+ } finally {
+ try {
+ if (buffer_1_1 && !buffer_1_1.done && (_a = buffer_1.return))
+ _a.call(buffer_1);
+ } finally {
+ if (e_1)
+ throw e_1.error;
+ }
+ }
+ subscriber.complete();
+ }, undefined, function() {
+ buffer = null;
+ }));
+ });
+ }
+ exports.takeLast = takeLast;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/last.js
+var require_last = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.last = undefined;
+ var EmptyError_1 = require_EmptyError();
+ var filter_1 = require_filter();
+ var takeLast_1 = require_takeLast();
+ var throwIfEmpty_1 = require_throwIfEmpty();
+ var defaultIfEmpty_1 = require_defaultIfEmpty();
+ var identity_1 = require_identity();
+ function last(predicate, defaultValue) {
+ var hasDefaultValue = arguments.length >= 2;
+ return function(source) {
+ return source.pipe(predicate ? filter_1.filter(function(v, i) {
+ return predicate(v, i, source);
+ }) : identity_1.identity, takeLast_1.takeLast(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function() {
+ return new EmptyError_1.EmptyError;
+ }));
+ };
+ }
+ exports.last = last;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/materialize.js
+var require_materialize = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.materialize = undefined;
+ var Notification_1 = require_Notification();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function materialize() {
+ return lift_1.operate(function(source, subscriber) {
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ subscriber.next(Notification_1.Notification.createNext(value));
+ }, function() {
+ subscriber.next(Notification_1.Notification.createComplete());
+ subscriber.complete();
+ }, function(err) {
+ subscriber.next(Notification_1.Notification.createError(err));
+ subscriber.complete();
+ }));
+ });
+ }
+ exports.materialize = materialize;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/max.js
+var require_max = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.max = undefined;
+ var reduce_1 = require_reduce();
+ var isFunction_1 = require_isFunction();
+ function max(comparer) {
+ return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function(x, y) {
+ return comparer(x, y) > 0 ? x : y;
+ } : function(x, y) {
+ return x > y ? x : y;
+ });
+ }
+ exports.max = max;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/flatMap.js
+var require_flatMap = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.flatMap = undefined;
+ var mergeMap_1 = require_mergeMap();
+ exports.flatMap = mergeMap_1.mergeMap;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js
+var require_mergeMapTo = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.mergeMapTo = undefined;
+ var mergeMap_1 = require_mergeMap();
+ var isFunction_1 = require_isFunction();
+ function mergeMapTo(innerObservable, resultSelector, concurrent) {
+ if (concurrent === undefined) {
+ concurrent = Infinity;
+ }
+ if (isFunction_1.isFunction(resultSelector)) {
+ return mergeMap_1.mergeMap(function() {
+ return innerObservable;
+ }, resultSelector, concurrent);
+ }
+ if (typeof resultSelector === "number") {
+ concurrent = resultSelector;
+ }
+ return mergeMap_1.mergeMap(function() {
+ return innerObservable;
+ }, concurrent);
+ }
+ exports.mergeMapTo = mergeMapTo;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js
+var require_mergeScan = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.mergeScan = undefined;
+ var lift_1 = require_lift();
+ var mergeInternals_1 = require_mergeInternals();
+ function mergeScan(accumulator, seed, concurrent) {
+ if (concurrent === undefined) {
+ concurrent = Infinity;
+ }
+ return lift_1.operate(function(source, subscriber) {
+ var state = seed;
+ return mergeInternals_1.mergeInternals(source, subscriber, function(value, index) {
+ return accumulator(state, value, index);
+ }, concurrent, function(value) {
+ state = value;
+ }, false, undefined, function() {
+ return state = null;
+ });
+ });
+ }
+ exports.mergeScan = mergeScan;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/merge.js
+var require_merge2 = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.merge = undefined;
+ var lift_1 = require_lift();
+ var argsOrArgArray_1 = require_argsOrArgArray();
+ var mergeAll_1 = require_mergeAll();
+ var args_1 = require_args();
+ var from_1 = require_from();
+ function merge() {
+ var args = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ var scheduler = args_1.popScheduler(args);
+ var concurrent = args_1.popNumber(args, Infinity);
+ args = argsOrArgArray_1.argsOrArgArray(args);
+ return lift_1.operate(function(source, subscriber) {
+ mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
+ });
+ }
+ exports.merge = merge;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js
+var require_mergeWith = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.mergeWith = undefined;
+ var merge_1 = require_merge2();
+ function mergeWith() {
+ var otherSources = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ otherSources[_i] = arguments[_i];
+ }
+ return merge_1.merge.apply(undefined, __spreadArray([], __read(otherSources)));
+ }
+ exports.mergeWith = mergeWith;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/min.js
+var require_min = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.min = undefined;
+ var reduce_1 = require_reduce();
+ var isFunction_1 = require_isFunction();
+ function min(comparer) {
+ return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function(x, y) {
+ return comparer(x, y) < 0 ? x : y;
+ } : function(x, y) {
+ return x < y ? x : y;
+ });
+ }
+ exports.min = min;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/multicast.js
+var require_multicast = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.multicast = undefined;
+ var ConnectableObservable_1 = require_ConnectableObservable();
+ var isFunction_1 = require_isFunction();
+ var connect_1 = require_connect();
+ function multicast(subjectOrSubjectFactory, selector) {
+ var subjectFactory = isFunction_1.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function() {
+ return subjectOrSubjectFactory;
+ };
+ if (isFunction_1.isFunction(selector)) {
+ return connect_1.connect(selector, {
+ connector: subjectFactory
+ });
+ }
+ return function(source) {
+ return new ConnectableObservable_1.ConnectableObservable(source, subjectFactory);
+ };
+ }
+ exports.multicast = multicast;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js
+var require_onErrorResumeNextWith = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.onErrorResumeNext = exports.onErrorResumeNextWith = undefined;
+ var argsOrArgArray_1 = require_argsOrArgArray();
+ var onErrorResumeNext_1 = require_onErrorResumeNext();
+ function onErrorResumeNextWith() {
+ var sources = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ sources[_i] = arguments[_i];
+ }
+ var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
+ return function(source) {
+ return onErrorResumeNext_1.onErrorResumeNext.apply(undefined, __spreadArray([source], __read(nextSources)));
+ };
+ }
+ exports.onErrorResumeNextWith = onErrorResumeNextWith;
+ exports.onErrorResumeNext = onErrorResumeNextWith;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/pairwise.js
+var require_pairwise = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.pairwise = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function pairwise() {
+ return lift_1.operate(function(source, subscriber) {
+ var prev;
+ var hasPrev = false;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var p = prev;
+ prev = value;
+ hasPrev && subscriber.next([p, value]);
+ hasPrev = true;
+ }));
+ });
+ }
+ exports.pairwise = pairwise;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/pluck.js
+var require_pluck = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.pluck = undefined;
+ var map_1 = require_map();
+ function pluck() {
+ var properties = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ properties[_i] = arguments[_i];
+ }
+ var length = properties.length;
+ if (length === 0) {
+ throw new Error("list of properties cannot be empty.");
+ }
+ return map_1.map(function(x) {
+ var currentProp = x;
+ for (var i = 0;i < length; i++) {
+ var p = currentProp === null || currentProp === undefined ? undefined : currentProp[properties[i]];
+ if (typeof p !== "undefined") {
+ currentProp = p;
+ } else {
+ return;
+ }
+ }
+ return currentProp;
+ });
+ }
+ exports.pluck = pluck;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/publish.js
+var require_publish = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.publish = undefined;
+ var Subject_1 = require_Subject();
+ var multicast_1 = require_multicast();
+ var connect_1 = require_connect();
+ function publish(selector) {
+ return selector ? function(source) {
+ return connect_1.connect(selector)(source);
+ } : function(source) {
+ return multicast_1.multicast(new Subject_1.Subject)(source);
+ };
+ }
+ exports.publish = publish;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js
+var require_publishBehavior = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.publishBehavior = undefined;
+ var BehaviorSubject_1 = require_BehaviorSubject();
+ var ConnectableObservable_1 = require_ConnectableObservable();
+ function publishBehavior(initialValue) {
+ return function(source) {
+ var subject = new BehaviorSubject_1.BehaviorSubject(initialValue);
+ return new ConnectableObservable_1.ConnectableObservable(source, function() {
+ return subject;
+ });
+ };
+ }
+ exports.publishBehavior = publishBehavior;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/publishLast.js
+var require_publishLast = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.publishLast = undefined;
+ var AsyncSubject_1 = require_AsyncSubject();
+ var ConnectableObservable_1 = require_ConnectableObservable();
+ function publishLast() {
+ return function(source) {
+ var subject = new AsyncSubject_1.AsyncSubject;
+ return new ConnectableObservable_1.ConnectableObservable(source, function() {
+ return subject;
+ });
+ };
+ }
+ exports.publishLast = publishLast;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js
+var require_publishReplay = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.publishReplay = undefined;
+ var ReplaySubject_1 = require_ReplaySubject();
+ var multicast_1 = require_multicast();
+ var isFunction_1 = require_isFunction();
+ function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {
+ if (selectorOrScheduler && !isFunction_1.isFunction(selectorOrScheduler)) {
+ timestampProvider = selectorOrScheduler;
+ }
+ var selector = isFunction_1.isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined;
+ return function(source) {
+ return multicast_1.multicast(new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source);
+ };
+ }
+ exports.publishReplay = publishReplay;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/raceWith.js
+var require_raceWith = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.raceWith = undefined;
+ var race_1 = require_race();
+ var lift_1 = require_lift();
+ var identity_1 = require_identity();
+ function raceWith() {
+ var otherSources = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ otherSources[_i] = arguments[_i];
+ }
+ return !otherSources.length ? identity_1.identity : lift_1.operate(function(source, subscriber) {
+ race_1.raceInit(__spreadArray([source], __read(otherSources)))(subscriber);
+ });
+ }
+ exports.raceWith = raceWith;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/repeat.js
+var require_repeat = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.repeat = undefined;
+ var empty_1 = require_empty();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var innerFrom_1 = require_innerFrom();
+ var timer_1 = require_timer();
+ function repeat(countOrConfig) {
+ var _a;
+ var count = Infinity;
+ var delay;
+ if (countOrConfig != null) {
+ if (typeof countOrConfig === "object") {
+ _a = countOrConfig.count, count = _a === undefined ? Infinity : _a, delay = countOrConfig.delay;
+ } else {
+ count = countOrConfig;
+ }
+ }
+ return count <= 0 ? function() {
+ return empty_1.EMPTY;
+ } : lift_1.operate(function(source, subscriber) {
+ var soFar = 0;
+ var sourceSub;
+ var resubscribe = function() {
+ sourceSub === null || sourceSub === undefined || sourceSub.unsubscribe();
+ sourceSub = null;
+ if (delay != null) {
+ var notifier = typeof delay === "number" ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(soFar));
+ var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ notifierSubscriber_1.unsubscribe();
+ subscribeToSource();
+ });
+ notifier.subscribe(notifierSubscriber_1);
+ } else {
+ subscribeToSource();
+ }
+ };
+ var subscribeToSource = function() {
+ var syncUnsub = false;
+ sourceSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function() {
+ if (++soFar < count) {
+ if (sourceSub) {
+ resubscribe();
+ } else {
+ syncUnsub = true;
+ }
+ } else {
+ subscriber.complete();
+ }
+ }));
+ if (syncUnsub) {
+ resubscribe();
+ }
+ };
+ subscribeToSource();
+ });
+ }
+ exports.repeat = repeat;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js
+var require_repeatWhen = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.repeatWhen = undefined;
+ var innerFrom_1 = require_innerFrom();
+ var Subject_1 = require_Subject();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function repeatWhen(notifier) {
+ return lift_1.operate(function(source, subscriber) {
+ var innerSub;
+ var syncResub = false;
+ var completions$;
+ var isNotifierComplete = false;
+ var isMainComplete = false;
+ var checkComplete = function() {
+ return isMainComplete && isNotifierComplete && (subscriber.complete(), true);
+ };
+ var getCompletionSubject = function() {
+ if (!completions$) {
+ completions$ = new Subject_1.Subject;
+ innerFrom_1.innerFrom(notifier(completions$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ if (innerSub) {
+ subscribeForRepeatWhen();
+ } else {
+ syncResub = true;
+ }
+ }, function() {
+ isNotifierComplete = true;
+ checkComplete();
+ }));
+ }
+ return completions$;
+ };
+ var subscribeForRepeatWhen = function() {
+ isMainComplete = false;
+ innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function() {
+ isMainComplete = true;
+ !checkComplete() && getCompletionSubject().next();
+ }));
+ if (syncResub) {
+ innerSub.unsubscribe();
+ innerSub = null;
+ syncResub = false;
+ subscribeForRepeatWhen();
+ }
+ };
+ subscribeForRepeatWhen();
+ });
+ }
+ exports.repeatWhen = repeatWhen;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/retry.js
+var require_retry = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.retry = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var identity_1 = require_identity();
+ var timer_1 = require_timer();
+ var innerFrom_1 = require_innerFrom();
+ function retry(configOrCount) {
+ if (configOrCount === undefined) {
+ configOrCount = Infinity;
+ }
+ var config;
+ if (configOrCount && typeof configOrCount === "object") {
+ config = configOrCount;
+ } else {
+ config = {
+ count: configOrCount
+ };
+ }
+ var _a = config.count, count = _a === undefined ? Infinity : _a, delay = config.delay, _b = config.resetOnSuccess, resetOnSuccess = _b === undefined ? false : _b;
+ return count <= 0 ? identity_1.identity : lift_1.operate(function(source, subscriber) {
+ var soFar = 0;
+ var innerSub;
+ var subscribeForRetry = function() {
+ var syncUnsub = false;
+ innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ if (resetOnSuccess) {
+ soFar = 0;
+ }
+ subscriber.next(value);
+ }, undefined, function(err) {
+ if (soFar++ < count) {
+ var resub_1 = function() {
+ if (innerSub) {
+ innerSub.unsubscribe();
+ innerSub = null;
+ subscribeForRetry();
+ } else {
+ syncUnsub = true;
+ }
+ };
+ if (delay != null) {
+ var notifier = typeof delay === "number" ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(err, soFar));
+ var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ notifierSubscriber_1.unsubscribe();
+ resub_1();
+ }, function() {
+ subscriber.complete();
+ });
+ notifier.subscribe(notifierSubscriber_1);
+ } else {
+ resub_1();
+ }
+ } else {
+ subscriber.error(err);
+ }
+ }));
+ if (syncUnsub) {
+ innerSub.unsubscribe();
+ innerSub = null;
+ subscribeForRetry();
+ }
+ };
+ subscribeForRetry();
+ });
+ }
+ exports.retry = retry;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js
+var require_retryWhen = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.retryWhen = undefined;
+ var innerFrom_1 = require_innerFrom();
+ var Subject_1 = require_Subject();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function retryWhen(notifier) {
+ return lift_1.operate(function(source, subscriber) {
+ var innerSub;
+ var syncResub = false;
+ var errors$;
+ var subscribeForRetryWhen = function() {
+ innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, function(err) {
+ if (!errors$) {
+ errors$ = new Subject_1.Subject;
+ innerFrom_1.innerFrom(notifier(errors$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ return innerSub ? subscribeForRetryWhen() : syncResub = true;
+ }));
+ }
+ if (errors$) {
+ errors$.next(err);
+ }
+ }));
+ if (syncResub) {
+ innerSub.unsubscribe();
+ innerSub = null;
+ syncResub = false;
+ subscribeForRetryWhen();
+ }
+ };
+ subscribeForRetryWhen();
+ });
+ }
+ exports.retryWhen = retryWhen;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/sample.js
+var require_sample = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.sample = undefined;
+ var innerFrom_1 = require_innerFrom();
+ var lift_1 = require_lift();
+ var noop_1 = require_noop();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function sample2(notifier) {
+ return lift_1.operate(function(source, subscriber) {
+ var hasValue = false;
+ var lastValue = null;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ hasValue = true;
+ lastValue = value;
+ }));
+ innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ if (hasValue) {
+ hasValue = false;
+ var value = lastValue;
+ lastValue = null;
+ subscriber.next(value);
+ }
+ }, noop_1.noop));
+ });
+ }
+ exports.sample = sample2;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js
+var require_sampleTime = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.sampleTime = undefined;
+ var async_1 = require_async();
+ var sample_1 = require_sample();
+ var interval_1 = require_interval();
+ function sampleTime(period, scheduler) {
+ if (scheduler === undefined) {
+ scheduler = async_1.asyncScheduler;
+ }
+ return sample_1.sample(interval_1.interval(period, scheduler));
+ }
+ exports.sampleTime = sampleTime;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/scan.js
+var require_scan = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.scan = undefined;
+ var lift_1 = require_lift();
+ var scanInternals_1 = require_scanInternals();
+ function scan(accumulator, seed) {
+ return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, true));
+ }
+ exports.scan = scan;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js
+var require_sequenceEqual = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.sequenceEqual = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var innerFrom_1 = require_innerFrom();
+ function sequenceEqual(compareTo, comparator) {
+ if (comparator === undefined) {
+ comparator = function(a, b) {
+ return a === b;
+ };
+ }
+ return lift_1.operate(function(source, subscriber) {
+ var aState = createState();
+ var bState = createState();
+ var emit = function(isEqual) {
+ subscriber.next(isEqual);
+ subscriber.complete();
+ };
+ var createSubscriber = function(selfState, otherState) {
+ var sequenceEqualSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(a) {
+ var { buffer, complete } = otherState;
+ if (buffer.length === 0) {
+ complete ? emit(false) : selfState.buffer.push(a);
+ } else {
+ !comparator(a, buffer.shift()) && emit(false);
+ }
+ }, function() {
+ selfState.complete = true;
+ var { complete, buffer } = otherState;
+ complete && emit(buffer.length === 0);
+ sequenceEqualSubscriber === null || sequenceEqualSubscriber === undefined || sequenceEqualSubscriber.unsubscribe();
+ });
+ return sequenceEqualSubscriber;
+ };
+ source.subscribe(createSubscriber(aState, bState));
+ innerFrom_1.innerFrom(compareTo).subscribe(createSubscriber(bState, aState));
+ });
+ }
+ exports.sequenceEqual = sequenceEqual;
+ function createState() {
+ return {
+ buffer: [],
+ complete: false
+ };
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/share.js
+var require_share = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.share = undefined;
+ var innerFrom_1 = require_innerFrom();
+ var Subject_1 = require_Subject();
+ var Subscriber_1 = require_Subscriber();
+ var lift_1 = require_lift();
+ function share(options) {
+ if (options === undefined) {
+ options = {};
+ }
+ var _a = options.connector, connector = _a === undefined ? function() {
+ return new Subject_1.Subject;
+ } : _a, _b = options.resetOnError, resetOnError = _b === undefined ? true : _b, _c = options.resetOnComplete, resetOnComplete = _c === undefined ? true : _c, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === undefined ? true : _d;
+ return function(wrapperSource) {
+ var connection;
+ var resetConnection;
+ var subject;
+ var refCount = 0;
+ var hasCompleted = false;
+ var hasErrored = false;
+ var cancelReset = function() {
+ resetConnection === null || resetConnection === undefined || resetConnection.unsubscribe();
+ resetConnection = undefined;
+ };
+ var reset = function() {
+ cancelReset();
+ connection = subject = undefined;
+ hasCompleted = hasErrored = false;
+ };
+ var resetAndUnsubscribe = function() {
+ var conn = connection;
+ reset();
+ conn === null || conn === undefined || conn.unsubscribe();
+ };
+ return lift_1.operate(function(source, subscriber) {
+ refCount++;
+ if (!hasErrored && !hasCompleted) {
+ cancelReset();
+ }
+ var dest = subject = subject !== null && subject !== undefined ? subject : connector();
+ subscriber.add(function() {
+ refCount--;
+ if (refCount === 0 && !hasErrored && !hasCompleted) {
+ resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);
+ }
+ });
+ dest.subscribe(subscriber);
+ if (!connection && refCount > 0) {
+ connection = new Subscriber_1.SafeSubscriber({
+ next: function(value) {
+ return dest.next(value);
+ },
+ error: function(err) {
+ hasErrored = true;
+ cancelReset();
+ resetConnection = handleReset(reset, resetOnError, err);
+ dest.error(err);
+ },
+ complete: function() {
+ hasCompleted = true;
+ cancelReset();
+ resetConnection = handleReset(reset, resetOnComplete);
+ dest.complete();
+ }
+ });
+ innerFrom_1.innerFrom(source).subscribe(connection);
+ }
+ })(wrapperSource);
+ };
+ }
+ exports.share = share;
+ function handleReset(reset, on) {
+ var args = [];
+ for (var _i = 2;_i < arguments.length; _i++) {
+ args[_i - 2] = arguments[_i];
+ }
+ if (on === true) {
+ reset();
+ return;
+ }
+ if (on === false) {
+ return;
+ }
+ var onSubscriber = new Subscriber_1.SafeSubscriber({
+ next: function() {
+ onSubscriber.unsubscribe();
+ reset();
+ }
+ });
+ return innerFrom_1.innerFrom(on.apply(undefined, __spreadArray([], __read(args)))).subscribe(onSubscriber);
+ }
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js
+var require_shareReplay = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.shareReplay = undefined;
+ var ReplaySubject_1 = require_ReplaySubject();
+ var share_1 = require_share();
+ function shareReplay(configOrBufferSize, windowTime, scheduler) {
+ var _a, _b, _c;
+ var bufferSize;
+ var refCount = false;
+ if (configOrBufferSize && typeof configOrBufferSize === "object") {
+ _a = configOrBufferSize.bufferSize, bufferSize = _a === undefined ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === undefined ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === undefined ? false : _c, scheduler = configOrBufferSize.scheduler;
+ } else {
+ bufferSize = configOrBufferSize !== null && configOrBufferSize !== undefined ? configOrBufferSize : Infinity;
+ }
+ return share_1.share({
+ connector: function() {
+ return new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler);
+ },
+ resetOnError: true,
+ resetOnComplete: false,
+ resetOnRefCountZero: refCount
+ });
+ }
+ exports.shareReplay = shareReplay;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/single.js
+var require_single = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.single = undefined;
+ var EmptyError_1 = require_EmptyError();
+ var SequenceError_1 = require_SequenceError();
+ var NotFoundError_1 = require_NotFoundError();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function single(predicate) {
+ return lift_1.operate(function(source, subscriber) {
+ var hasValue = false;
+ var singleValue;
+ var seenValue = false;
+ var index = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ seenValue = true;
+ if (!predicate || predicate(value, index++, source)) {
+ hasValue && subscriber.error(new SequenceError_1.SequenceError("Too many matching values"));
+ hasValue = true;
+ singleValue = value;
+ }
+ }, function() {
+ if (hasValue) {
+ subscriber.next(singleValue);
+ subscriber.complete();
+ } else {
+ subscriber.error(seenValue ? new NotFoundError_1.NotFoundError("No matching values") : new EmptyError_1.EmptyError);
+ }
+ }));
+ });
+ }
+ exports.single = single;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/skip.js
+var require_skip = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.skip = undefined;
+ var filter_1 = require_filter();
+ function skip(count) {
+ return filter_1.filter(function(_2, index) {
+ return count <= index;
+ });
+ }
+ exports.skip = skip;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/skipLast.js
+var require_skipLast = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.skipLast = undefined;
+ var identity_1 = require_identity();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function skipLast(skipCount) {
+ return skipCount <= 0 ? identity_1.identity : lift_1.operate(function(source, subscriber) {
+ var ring = new Array(skipCount);
+ var seen = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var valueIndex = seen++;
+ if (valueIndex < skipCount) {
+ ring[valueIndex] = value;
+ } else {
+ var index = valueIndex % skipCount;
+ var oldValue = ring[index];
+ ring[index] = value;
+ subscriber.next(oldValue);
+ }
+ }));
+ return function() {
+ ring = null;
+ };
+ });
+ }
+ exports.skipLast = skipLast;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js
+var require_skipUntil = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.skipUntil = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var innerFrom_1 = require_innerFrom();
+ var noop_1 = require_noop();
+ function skipUntil(notifier) {
+ return lift_1.operate(function(source, subscriber) {
+ var taking = false;
+ var skipSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ skipSubscriber === null || skipSubscriber === undefined || skipSubscriber.unsubscribe();
+ taking = true;
+ }, noop_1.noop);
+ innerFrom_1.innerFrom(notifier).subscribe(skipSubscriber);
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ return taking && subscriber.next(value);
+ }));
+ });
+ }
+ exports.skipUntil = skipUntil;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js
+var require_skipWhile = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.skipWhile = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function skipWhile(predicate) {
+ return lift_1.operate(function(source, subscriber) {
+ var taking = false;
+ var index = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ return (taking || (taking = !predicate(value, index++))) && subscriber.next(value);
+ }));
+ });
+ }
+ exports.skipWhile = skipWhile;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/startWith.js
+var require_startWith = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.startWith = undefined;
+ var concat_1 = require_concat();
+ var args_1 = require_args();
+ var lift_1 = require_lift();
+ function startWith() {
+ var values = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ values[_i] = arguments[_i];
+ }
+ var scheduler = args_1.popScheduler(values);
+ return lift_1.operate(function(source, subscriber) {
+ (scheduler ? concat_1.concat(values, source, scheduler) : concat_1.concat(values, source)).subscribe(subscriber);
+ });
+ }
+ exports.startWith = startWith;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/switchMap.js
+var require_switchMap = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.switchMap = undefined;
+ var innerFrom_1 = require_innerFrom();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function switchMap(project, resultSelector) {
+ return lift_1.operate(function(source, subscriber) {
+ var innerSubscriber = null;
+ var index = 0;
+ var isComplete = false;
+ var checkComplete = function() {
+ return isComplete && !innerSubscriber && subscriber.complete();
+ };
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ innerSubscriber === null || innerSubscriber === undefined || innerSubscriber.unsubscribe();
+ var innerIndex = 0;
+ var outerIndex = index++;
+ innerFrom_1.innerFrom(project(value, outerIndex)).subscribe(innerSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(innerValue) {
+ return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue);
+ }, function() {
+ innerSubscriber = null;
+ checkComplete();
+ }));
+ }, function() {
+ isComplete = true;
+ checkComplete();
+ }));
+ });
+ }
+ exports.switchMap = switchMap;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/switchAll.js
+var require_switchAll = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.switchAll = undefined;
+ var switchMap_1 = require_switchMap();
+ var identity_1 = require_identity();
+ function switchAll() {
+ return switchMap_1.switchMap(identity_1.identity);
+ }
+ exports.switchAll = switchAll;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js
+var require_switchMapTo = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.switchMapTo = undefined;
+ var switchMap_1 = require_switchMap();
+ var isFunction_1 = require_isFunction();
+ function switchMapTo(innerObservable, resultSelector) {
+ return isFunction_1.isFunction(resultSelector) ? switchMap_1.switchMap(function() {
+ return innerObservable;
+ }, resultSelector) : switchMap_1.switchMap(function() {
+ return innerObservable;
+ });
+ }
+ exports.switchMapTo = switchMapTo;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/switchScan.js
+var require_switchScan = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.switchScan = undefined;
+ var switchMap_1 = require_switchMap();
+ var lift_1 = require_lift();
+ function switchScan(accumulator, seed) {
+ return lift_1.operate(function(source, subscriber) {
+ var state = seed;
+ switchMap_1.switchMap(function(value, index) {
+ return accumulator(state, value, index);
+ }, function(_2, innerValue) {
+ return state = innerValue, innerValue;
+ })(source).subscribe(subscriber);
+ return function() {
+ state = null;
+ };
+ });
+ }
+ exports.switchScan = switchScan;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js
+var require_takeUntil = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.takeUntil = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var innerFrom_1 = require_innerFrom();
+ var noop_1 = require_noop();
+ function takeUntil(notifier) {
+ return lift_1.operate(function(source, subscriber) {
+ innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ return subscriber.complete();
+ }, noop_1.noop));
+ !subscriber.closed && source.subscribe(subscriber);
+ });
+ }
+ exports.takeUntil = takeUntil;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js
+var require_takeWhile = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.takeWhile = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function takeWhile(predicate, inclusive) {
+ if (inclusive === undefined) {
+ inclusive = false;
+ }
+ return lift_1.operate(function(source, subscriber) {
+ var index = 0;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var result = predicate(value, index++);
+ (result || inclusive) && subscriber.next(value);
+ !result && subscriber.complete();
+ }));
+ });
+ }
+ exports.takeWhile = takeWhile;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/tap.js
+var require_tap = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.tap = undefined;
+ var isFunction_1 = require_isFunction();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var identity_1 = require_identity();
+ function tap(observerOrNext, error, complete) {
+ var tapObserver = isFunction_1.isFunction(observerOrNext) || error || complete ? { next: observerOrNext, error, complete } : observerOrNext;
+ return tapObserver ? lift_1.operate(function(source, subscriber) {
+ var _a;
+ (_a = tapObserver.subscribe) === null || _a === undefined || _a.call(tapObserver);
+ var isUnsub = true;
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var _a2;
+ (_a2 = tapObserver.next) === null || _a2 === undefined || _a2.call(tapObserver, value);
+ subscriber.next(value);
+ }, function() {
+ var _a2;
+ isUnsub = false;
+ (_a2 = tapObserver.complete) === null || _a2 === undefined || _a2.call(tapObserver);
+ subscriber.complete();
+ }, function(err) {
+ var _a2;
+ isUnsub = false;
+ (_a2 = tapObserver.error) === null || _a2 === undefined || _a2.call(tapObserver, err);
+ subscriber.error(err);
+ }, function() {
+ var _a2, _b;
+ if (isUnsub) {
+ (_a2 = tapObserver.unsubscribe) === null || _a2 === undefined || _a2.call(tapObserver);
+ }
+ (_b = tapObserver.finalize) === null || _b === undefined || _b.call(tapObserver);
+ }));
+ }) : identity_1.identity;
+ }
+ exports.tap = tap;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/throttle.js
+var require_throttle = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.throttle = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var innerFrom_1 = require_innerFrom();
+ function throttle(durationSelector, config) {
+ return lift_1.operate(function(source, subscriber) {
+ var _a = config !== null && config !== undefined ? config : {}, _b = _a.leading, leading = _b === undefined ? true : _b, _c = _a.trailing, trailing = _c === undefined ? false : _c;
+ var hasValue = false;
+ var sendValue = null;
+ var throttled = null;
+ var isComplete = false;
+ var endThrottling = function() {
+ throttled === null || throttled === undefined || throttled.unsubscribe();
+ throttled = null;
+ if (trailing) {
+ send();
+ isComplete && subscriber.complete();
+ }
+ };
+ var cleanupThrottling = function() {
+ throttled = null;
+ isComplete && subscriber.complete();
+ };
+ var startThrottle = function(value) {
+ return throttled = innerFrom_1.innerFrom(durationSelector(value)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling));
+ };
+ var send = function() {
+ if (hasValue) {
+ hasValue = false;
+ var value = sendValue;
+ sendValue = null;
+ subscriber.next(value);
+ !isComplete && startThrottle(value);
+ }
+ };
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ hasValue = true;
+ sendValue = value;
+ !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));
+ }, function() {
+ isComplete = true;
+ !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();
+ }));
+ });
+ }
+ exports.throttle = throttle;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js
+var require_throttleTime = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.throttleTime = undefined;
+ var async_1 = require_async();
+ var throttle_1 = require_throttle();
+ var timer_1 = require_timer();
+ function throttleTime(duration, scheduler, config) {
+ if (scheduler === undefined) {
+ scheduler = async_1.asyncScheduler;
+ }
+ var duration$ = timer_1.timer(duration, scheduler);
+ return throttle_1.throttle(function() {
+ return duration$;
+ }, config);
+ }
+ exports.throttleTime = throttleTime;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js
+var require_timeInterval = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.TimeInterval = exports.timeInterval = undefined;
+ var async_1 = require_async();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function timeInterval(scheduler) {
+ if (scheduler === undefined) {
+ scheduler = async_1.asyncScheduler;
+ }
+ return lift_1.operate(function(source, subscriber) {
+ var last = scheduler.now();
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var now = scheduler.now();
+ var interval = now - last;
+ last = now;
+ subscriber.next(new TimeInterval(value, interval));
+ }));
+ });
+ }
+ exports.timeInterval = timeInterval;
+ var TimeInterval = function() {
+ function TimeInterval2(value, interval) {
+ this.value = value;
+ this.interval = interval;
+ }
+ return TimeInterval2;
+ }();
+ exports.TimeInterval = TimeInterval;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js
+var require_timeoutWith = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.timeoutWith = undefined;
+ var async_1 = require_async();
+ var isDate_1 = require_isDate();
+ var timeout_1 = require_timeout();
+ function timeoutWith(due, withObservable, scheduler) {
+ var first;
+ var each;
+ var _with;
+ scheduler = scheduler !== null && scheduler !== undefined ? scheduler : async_1.async;
+ if (isDate_1.isValidDate(due)) {
+ first = due;
+ } else if (typeof due === "number") {
+ each = due;
+ }
+ if (withObservable) {
+ _with = function() {
+ return withObservable;
+ };
+ } else {
+ throw new TypeError("No observable provided to switch to");
+ }
+ if (first == null && each == null) {
+ throw new TypeError("No timeout provided.");
+ }
+ return timeout_1.timeout({
+ first,
+ each,
+ scheduler,
+ with: _with
+ });
+ }
+ exports.timeoutWith = timeoutWith;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/timestamp.js
+var require_timestamp = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.timestamp = undefined;
+ var dateTimestampProvider_1 = require_dateTimestampProvider();
+ var map_1 = require_map();
+ function timestamp(timestampProvider) {
+ if (timestampProvider === undefined) {
+ timestampProvider = dateTimestampProvider_1.dateTimestampProvider;
+ }
+ return map_1.map(function(value) {
+ return { value, timestamp: timestampProvider.now() };
+ });
+ }
+ exports.timestamp = timestamp;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/window.js
+var require_window = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.window = undefined;
+ var Subject_1 = require_Subject();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var noop_1 = require_noop();
+ var innerFrom_1 = require_innerFrom();
+ function window2(windowBoundaries) {
+ return lift_1.operate(function(source, subscriber) {
+ var windowSubject = new Subject_1.Subject;
+ subscriber.next(windowSubject.asObservable());
+ var errorHandler = function(err) {
+ windowSubject.error(err);
+ subscriber.error(err);
+ };
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ return windowSubject === null || windowSubject === undefined ? undefined : windowSubject.next(value);
+ }, function() {
+ windowSubject.complete();
+ subscriber.complete();
+ }, errorHandler));
+ innerFrom_1.innerFrom(windowBoundaries).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function() {
+ windowSubject.complete();
+ subscriber.next(windowSubject = new Subject_1.Subject);
+ }, noop_1.noop, errorHandler));
+ return function() {
+ windowSubject === null || windowSubject === undefined || windowSubject.unsubscribe();
+ windowSubject = null;
+ };
+ });
+ }
+ exports.window = window2;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/windowCount.js
+var require_windowCount = __commonJS((exports) => {
+ var __values = exports && exports.__values || function(o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m)
+ return m.call(o);
+ if (o && typeof o.length === "number")
+ return {
+ next: function() {
+ if (o && i >= o.length)
+ o = undefined;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.windowCount = undefined;
+ var Subject_1 = require_Subject();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ function windowCount(windowSize, startWindowEvery) {
+ if (startWindowEvery === undefined) {
+ startWindowEvery = 0;
+ }
+ var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize;
+ return lift_1.operate(function(source, subscriber) {
+ var windows = [new Subject_1.Subject];
+ var starts = [];
+ var count = 0;
+ subscriber.next(windows[0].asObservable());
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var e_1, _a;
+ try {
+ for (var windows_1 = __values(windows), windows_1_1 = windows_1.next();!windows_1_1.done; windows_1_1 = windows_1.next()) {
+ var window_1 = windows_1_1.value;
+ window_1.next(value);
+ }
+ } catch (e_1_1) {
+ e_1 = { error: e_1_1 };
+ } finally {
+ try {
+ if (windows_1_1 && !windows_1_1.done && (_a = windows_1.return))
+ _a.call(windows_1);
+ } finally {
+ if (e_1)
+ throw e_1.error;
+ }
+ }
+ var c = count - windowSize + 1;
+ if (c >= 0 && c % startEvery === 0) {
+ windows.shift().complete();
+ }
+ if (++count % startEvery === 0) {
+ var window_2 = new Subject_1.Subject;
+ windows.push(window_2);
+ subscriber.next(window_2.asObservable());
+ }
+ }, function() {
+ while (windows.length > 0) {
+ windows.shift().complete();
+ }
+ subscriber.complete();
+ }, function(err) {
+ while (windows.length > 0) {
+ windows.shift().error(err);
+ }
+ subscriber.error(err);
+ }, function() {
+ starts = null;
+ windows = null;
+ }));
+ });
+ }
+ exports.windowCount = windowCount;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/windowTime.js
+var require_windowTime = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.windowTime = undefined;
+ var Subject_1 = require_Subject();
+ var async_1 = require_async();
+ var Subscription_1 = require_Subscription();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var arrRemove_1 = require_arrRemove();
+ var args_1 = require_args();
+ var executeSchedule_1 = require_executeSchedule();
+ function windowTime(windowTimeSpan) {
+ var _a, _b;
+ var otherArgs = [];
+ for (var _i = 1;_i < arguments.length; _i++) {
+ otherArgs[_i - 1] = arguments[_i];
+ }
+ var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== undefined ? _a : async_1.asyncScheduler;
+ var windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== undefined ? _b : null;
+ var maxWindowSize = otherArgs[1] || Infinity;
+ return lift_1.operate(function(source, subscriber) {
+ var windowRecords = [];
+ var restartOnClose = false;
+ var closeWindow = function(record) {
+ var { window: window2, subs } = record;
+ window2.complete();
+ subs.unsubscribe();
+ arrRemove_1.arrRemove(windowRecords, record);
+ restartOnClose && startWindow();
+ };
+ var startWindow = function() {
+ if (windowRecords) {
+ var subs = new Subscription_1.Subscription;
+ subscriber.add(subs);
+ var window_1 = new Subject_1.Subject;
+ var record_1 = {
+ window: window_1,
+ subs,
+ seen: 0
+ };
+ windowRecords.push(record_1);
+ subscriber.next(window_1.asObservable());
+ executeSchedule_1.executeSchedule(subs, scheduler, function() {
+ return closeWindow(record_1);
+ }, windowTimeSpan);
+ }
+ };
+ if (windowCreationInterval !== null && windowCreationInterval >= 0) {
+ executeSchedule_1.executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true);
+ } else {
+ restartOnClose = true;
+ }
+ startWindow();
+ var loop = function(cb) {
+ return windowRecords.slice().forEach(cb);
+ };
+ var terminate = function(cb) {
+ loop(function(_a2) {
+ var window2 = _a2.window;
+ return cb(window2);
+ });
+ cb(subscriber);
+ subscriber.unsubscribe();
+ };
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ loop(function(record) {
+ record.window.next(value);
+ maxWindowSize <= ++record.seen && closeWindow(record);
+ });
+ }, function() {
+ return terminate(function(consumer) {
+ return consumer.complete();
+ });
+ }, function(err) {
+ return terminate(function(consumer) {
+ return consumer.error(err);
+ });
+ }));
+ return function() {
+ windowRecords = null;
+ };
+ });
+ }
+ exports.windowTime = windowTime;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js
+var require_windowToggle = __commonJS((exports) => {
+ var __values = exports && exports.__values || function(o) {
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
+ if (m)
+ return m.call(o);
+ if (o && typeof o.length === "number")
+ return {
+ next: function() {
+ if (o && i >= o.length)
+ o = undefined;
+ return { value: o && o[i++], done: !o };
+ }
+ };
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.windowToggle = undefined;
+ var Subject_1 = require_Subject();
+ var Subscription_1 = require_Subscription();
+ var lift_1 = require_lift();
+ var innerFrom_1 = require_innerFrom();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var noop_1 = require_noop();
+ var arrRemove_1 = require_arrRemove();
+ function windowToggle(openings, closingSelector) {
+ return lift_1.operate(function(source, subscriber) {
+ var windows = [];
+ var handleError = function(err) {
+ while (0 < windows.length) {
+ windows.shift().error(err);
+ }
+ subscriber.error(err);
+ };
+ innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(openValue) {
+ var window2 = new Subject_1.Subject;
+ windows.push(window2);
+ var closingSubscription = new Subscription_1.Subscription;
+ var closeWindow = function() {
+ arrRemove_1.arrRemove(windows, window2);
+ window2.complete();
+ closingSubscription.unsubscribe();
+ };
+ var closingNotifier;
+ try {
+ closingNotifier = innerFrom_1.innerFrom(closingSelector(openValue));
+ } catch (err) {
+ handleError(err);
+ return;
+ }
+ subscriber.next(window2.asObservable());
+ closingSubscription.add(closingNotifier.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, closeWindow, noop_1.noop, handleError)));
+ }, noop_1.noop));
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ var e_1, _a;
+ var windowsCopy = windows.slice();
+ try {
+ for (var windowsCopy_1 = __values(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next();!windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) {
+ var window_1 = windowsCopy_1_1.value;
+ window_1.next(value);
+ }
+ } catch (e_1_1) {
+ e_1 = { error: e_1_1 };
+ } finally {
+ try {
+ if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a = windowsCopy_1.return))
+ _a.call(windowsCopy_1);
+ } finally {
+ if (e_1)
+ throw e_1.error;
+ }
+ }
+ }, function() {
+ while (0 < windows.length) {
+ windows.shift().complete();
+ }
+ subscriber.complete();
+ }, handleError, function() {
+ while (0 < windows.length) {
+ windows.shift().unsubscribe();
+ }
+ }));
+ });
+ }
+ exports.windowToggle = windowToggle;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js
+var require_windowWhen = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.windowWhen = undefined;
+ var Subject_1 = require_Subject();
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var innerFrom_1 = require_innerFrom();
+ function windowWhen(closingSelector) {
+ return lift_1.operate(function(source, subscriber) {
+ var window2;
+ var closingSubscriber;
+ var handleError = function(err) {
+ window2.error(err);
+ subscriber.error(err);
+ };
+ var openWindow = function() {
+ closingSubscriber === null || closingSubscriber === undefined || closingSubscriber.unsubscribe();
+ window2 === null || window2 === undefined || window2.complete();
+ window2 = new Subject_1.Subject;
+ subscriber.next(window2.asObservable());
+ var closingNotifier;
+ try {
+ closingNotifier = innerFrom_1.innerFrom(closingSelector());
+ } catch (err) {
+ handleError(err);
+ return;
+ }
+ closingNotifier.subscribe(closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openWindow, openWindow, handleError));
+ };
+ openWindow();
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ return window2.next(value);
+ }, function() {
+ window2.complete();
+ subscriber.complete();
+ }, handleError, function() {
+ closingSubscriber === null || closingSubscriber === undefined || closingSubscriber.unsubscribe();
+ window2 = null;
+ }));
+ });
+ }
+ exports.windowWhen = windowWhen;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js
+var require_withLatestFrom = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.withLatestFrom = undefined;
+ var lift_1 = require_lift();
+ var OperatorSubscriber_1 = require_OperatorSubscriber();
+ var innerFrom_1 = require_innerFrom();
+ var identity_1 = require_identity();
+ var noop_1 = require_noop();
+ var args_1 = require_args();
+ function withLatestFrom() {
+ var inputs = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ inputs[_i] = arguments[_i];
+ }
+ var project = args_1.popResultSelector(inputs);
+ return lift_1.operate(function(source, subscriber) {
+ var len = inputs.length;
+ var otherValues = new Array(len);
+ var hasValue = inputs.map(function() {
+ return false;
+ });
+ var ready = false;
+ var _loop_1 = function(i2) {
+ innerFrom_1.innerFrom(inputs[i2]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ otherValues[i2] = value;
+ if (!ready && !hasValue[i2]) {
+ hasValue[i2] = true;
+ (ready = hasValue.every(identity_1.identity)) && (hasValue = null);
+ }
+ }, noop_1.noop));
+ };
+ for (var i = 0;i < len; i++) {
+ _loop_1(i);
+ }
+ source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
+ if (ready) {
+ var values = __spreadArray([value], __read(otherValues));
+ subscriber.next(project ? project.apply(undefined, __spreadArray([], __read(values))) : values);
+ }
+ }));
+ });
+ }
+ exports.withLatestFrom = withLatestFrom;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/zipAll.js
+var require_zipAll = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.zipAll = undefined;
+ var zip_1 = require_zip();
+ var joinAllInternals_1 = require_joinAllInternals();
+ function zipAll(project) {
+ return joinAllInternals_1.joinAllInternals(zip_1.zip, project);
+ }
+ exports.zipAll = zipAll;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/zip.js
+var require_zip2 = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.zip = undefined;
+ var zip_1 = require_zip();
+ var lift_1 = require_lift();
+ function zip() {
+ var sources = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ sources[_i] = arguments[_i];
+ }
+ return lift_1.operate(function(source, subscriber) {
+ zip_1.zip.apply(undefined, __spreadArray([source], __read(sources))).subscribe(subscriber);
+ });
+ }
+ exports.zip = zip;
+});
+
+// node_modules/rxjs/dist/cjs/internal/operators/zipWith.js
+var require_zipWith = __commonJS((exports) => {
+ var __read = exports && exports.__read || function(o, n) {
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
+ if (!m)
+ return o;
+ var i = m.call(o), r, ar = [], e;
+ try {
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
+ ar.push(r.value);
+ } catch (error) {
+ e = { error };
+ } finally {
+ try {
+ if (r && !r.done && (m = i["return"]))
+ m.call(i);
+ } finally {
+ if (e)
+ throw e.error;
+ }
+ }
+ return ar;
+ };
+ var __spreadArray = exports && exports.__spreadArray || function(to, from) {
+ for (var i = 0, il = from.length, j = to.length;i < il; i++, j++)
+ to[j] = from[i];
+ return to;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.zipWith = undefined;
+ var zip_1 = require_zip2();
+ function zipWith() {
+ var otherInputs = [];
+ for (var _i = 0;_i < arguments.length; _i++) {
+ otherInputs[_i] = arguments[_i];
+ }
+ return zip_1.zip.apply(undefined, __spreadArray([], __read(otherInputs)));
+ }
+ exports.zipWith = zipWith;
+});
+
+// node_modules/rxjs/dist/cjs/index.js
+var require_cjs = __commonJS((exports) => {
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
+ if (k2 === undefined)
+ k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() {
+ return m[k];
+ } });
+ } : function(o, m, k, k2) {
+ if (k2 === undefined)
+ k2 = k;
+ o[k2] = m[k];
+ });
+ var __exportStar = exports && exports.__exportStar || function(m, exports2) {
+ for (var p in m)
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
+ __createBinding(exports2, m, p);
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.interval = exports.iif = exports.generate = exports.fromEventPattern = exports.fromEvent = exports.from = exports.forkJoin = exports.empty = exports.defer = exports.connectable = exports.concat = exports.combineLatest = exports.bindNodeCallback = exports.bindCallback = exports.UnsubscriptionError = exports.TimeoutError = exports.SequenceError = exports.ObjectUnsubscribedError = exports.NotFoundError = exports.EmptyError = exports.ArgumentOutOfRangeError = exports.firstValueFrom = exports.lastValueFrom = exports.isObservable = exports.identity = exports.noop = exports.pipe = exports.NotificationKind = exports.Notification = exports.Subscriber = exports.Subscription = exports.Scheduler = exports.VirtualAction = exports.VirtualTimeScheduler = exports.animationFrameScheduler = exports.animationFrame = exports.queueScheduler = exports.queue = exports.asyncScheduler = exports.async = exports.asapScheduler = exports.asap = exports.AsyncSubject = exports.ReplaySubject = exports.BehaviorSubject = exports.Subject = exports.animationFrames = exports.observable = exports.ConnectableObservable = exports.Observable = undefined;
+ exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.combineLatestWith = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = exports.config = exports.NEVER = exports.EMPTY = exports.scheduled = exports.zip = exports.using = exports.timer = exports.throwError = exports.range = exports.race = exports.partition = exports.pairs = exports.onErrorResumeNext = exports.of = exports.never = exports.merge = undefined;
+ exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.pairwise = exports.onErrorResumeNextWith = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = exports.mergeAll = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = undefined;
+ exports.zipWith = exports.zipAll = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = undefined;
+ var Observable_1 = require_Observable();
+ Object.defineProperty(exports, "Observable", { enumerable: true, get: function() {
+ return Observable_1.Observable;
+ } });
+ var ConnectableObservable_1 = require_ConnectableObservable();
+ Object.defineProperty(exports, "ConnectableObservable", { enumerable: true, get: function() {
+ return ConnectableObservable_1.ConnectableObservable;
+ } });
+ var observable_1 = require_observable();
+ Object.defineProperty(exports, "observable", { enumerable: true, get: function() {
+ return observable_1.observable;
+ } });
+ var animationFrames_1 = require_animationFrames();
+ Object.defineProperty(exports, "animationFrames", { enumerable: true, get: function() {
+ return animationFrames_1.animationFrames;
+ } });
+ var Subject_1 = require_Subject();
+ Object.defineProperty(exports, "Subject", { enumerable: true, get: function() {
+ return Subject_1.Subject;
+ } });
+ var BehaviorSubject_1 = require_BehaviorSubject();
+ Object.defineProperty(exports, "BehaviorSubject", { enumerable: true, get: function() {
+ return BehaviorSubject_1.BehaviorSubject;
+ } });
+ var ReplaySubject_1 = require_ReplaySubject();
+ Object.defineProperty(exports, "ReplaySubject", { enumerable: true, get: function() {
+ return ReplaySubject_1.ReplaySubject;
+ } });
+ var AsyncSubject_1 = require_AsyncSubject();
+ Object.defineProperty(exports, "AsyncSubject", { enumerable: true, get: function() {
+ return AsyncSubject_1.AsyncSubject;
+ } });
+ var asap_1 = require_asap();
+ Object.defineProperty(exports, "asap", { enumerable: true, get: function() {
+ return asap_1.asap;
+ } });
+ Object.defineProperty(exports, "asapScheduler", { enumerable: true, get: function() {
+ return asap_1.asapScheduler;
+ } });
+ var async_1 = require_async();
+ Object.defineProperty(exports, "async", { enumerable: true, get: function() {
+ return async_1.async;
+ } });
+ Object.defineProperty(exports, "asyncScheduler", { enumerable: true, get: function() {
+ return async_1.asyncScheduler;
+ } });
+ var queue_1 = require_queue();
+ Object.defineProperty(exports, "queue", { enumerable: true, get: function() {
+ return queue_1.queue;
+ } });
+ Object.defineProperty(exports, "queueScheduler", { enumerable: true, get: function() {
+ return queue_1.queueScheduler;
+ } });
+ var animationFrame_1 = require_animationFrame();
+ Object.defineProperty(exports, "animationFrame", { enumerable: true, get: function() {
+ return animationFrame_1.animationFrame;
+ } });
+ Object.defineProperty(exports, "animationFrameScheduler", { enumerable: true, get: function() {
+ return animationFrame_1.animationFrameScheduler;
+ } });
+ var VirtualTimeScheduler_1 = require_VirtualTimeScheduler();
+ Object.defineProperty(exports, "VirtualTimeScheduler", { enumerable: true, get: function() {
+ return VirtualTimeScheduler_1.VirtualTimeScheduler;
+ } });
+ Object.defineProperty(exports, "VirtualAction", { enumerable: true, get: function() {
+ return VirtualTimeScheduler_1.VirtualAction;
+ } });
+ var Scheduler_1 = require_Scheduler();
+ Object.defineProperty(exports, "Scheduler", { enumerable: true, get: function() {
+ return Scheduler_1.Scheduler;
+ } });
+ var Subscription_1 = require_Subscription();
+ Object.defineProperty(exports, "Subscription", { enumerable: true, get: function() {
+ return Subscription_1.Subscription;
+ } });
+ var Subscriber_1 = require_Subscriber();
+ Object.defineProperty(exports, "Subscriber", { enumerable: true, get: function() {
+ return Subscriber_1.Subscriber;
+ } });
+ var Notification_1 = require_Notification();
+ Object.defineProperty(exports, "Notification", { enumerable: true, get: function() {
+ return Notification_1.Notification;
+ } });
+ Object.defineProperty(exports, "NotificationKind", { enumerable: true, get: function() {
+ return Notification_1.NotificationKind;
+ } });
+ var pipe_1 = require_pipe();
+ Object.defineProperty(exports, "pipe", { enumerable: true, get: function() {
+ return pipe_1.pipe;
+ } });
+ var noop_1 = require_noop();
+ Object.defineProperty(exports, "noop", { enumerable: true, get: function() {
+ return noop_1.noop;
+ } });
+ var identity_1 = require_identity();
+ Object.defineProperty(exports, "identity", { enumerable: true, get: function() {
+ return identity_1.identity;
+ } });
+ var isObservable_1 = require_isObservable();
+ Object.defineProperty(exports, "isObservable", { enumerable: true, get: function() {
+ return isObservable_1.isObservable;
+ } });
+ var lastValueFrom_1 = require_lastValueFrom();
+ Object.defineProperty(exports, "lastValueFrom", { enumerable: true, get: function() {
+ return lastValueFrom_1.lastValueFrom;
+ } });
+ var firstValueFrom_1 = require_firstValueFrom();
+ Object.defineProperty(exports, "firstValueFrom", { enumerable: true, get: function() {
+ return firstValueFrom_1.firstValueFrom;
+ } });
+ var ArgumentOutOfRangeError_1 = require_ArgumentOutOfRangeError();
+ Object.defineProperty(exports, "ArgumentOutOfRangeError", { enumerable: true, get: function() {
+ return ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;
+ } });
+ var EmptyError_1 = require_EmptyError();
+ Object.defineProperty(exports, "EmptyError", { enumerable: true, get: function() {
+ return EmptyError_1.EmptyError;
+ } });
+ var NotFoundError_1 = require_NotFoundError();
+ Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function() {
+ return NotFoundError_1.NotFoundError;
+ } });
+ var ObjectUnsubscribedError_1 = require_ObjectUnsubscribedError();
+ Object.defineProperty(exports, "ObjectUnsubscribedError", { enumerable: true, get: function() {
+ return ObjectUnsubscribedError_1.ObjectUnsubscribedError;
+ } });
+ var SequenceError_1 = require_SequenceError();
+ Object.defineProperty(exports, "SequenceError", { enumerable: true, get: function() {
+ return SequenceError_1.SequenceError;
+ } });
+ var timeout_1 = require_timeout();
+ Object.defineProperty(exports, "TimeoutError", { enumerable: true, get: function() {
+ return timeout_1.TimeoutError;
+ } });
+ var UnsubscriptionError_1 = require_UnsubscriptionError();
+ Object.defineProperty(exports, "UnsubscriptionError", { enumerable: true, get: function() {
+ return UnsubscriptionError_1.UnsubscriptionError;
+ } });
+ var bindCallback_1 = require_bindCallback();
+ Object.defineProperty(exports, "bindCallback", { enumerable: true, get: function() {
+ return bindCallback_1.bindCallback;
+ } });
+ var bindNodeCallback_1 = require_bindNodeCallback();
+ Object.defineProperty(exports, "bindNodeCallback", { enumerable: true, get: function() {
+ return bindNodeCallback_1.bindNodeCallback;
+ } });
+ var combineLatest_1 = require_combineLatest();
+ Object.defineProperty(exports, "combineLatest", { enumerable: true, get: function() {
+ return combineLatest_1.combineLatest;
+ } });
+ var concat_1 = require_concat();
+ Object.defineProperty(exports, "concat", { enumerable: true, get: function() {
+ return concat_1.concat;
+ } });
+ var connectable_1 = require_connectable();
+ Object.defineProperty(exports, "connectable", { enumerable: true, get: function() {
+ return connectable_1.connectable;
+ } });
+ var defer_1 = require_defer();
+ Object.defineProperty(exports, "defer", { enumerable: true, get: function() {
+ return defer_1.defer;
+ } });
+ var empty_1 = require_empty();
+ Object.defineProperty(exports, "empty", { enumerable: true, get: function() {
+ return empty_1.empty;
+ } });
+ var forkJoin_1 = require_forkJoin();
+ Object.defineProperty(exports, "forkJoin", { enumerable: true, get: function() {
+ return forkJoin_1.forkJoin;
+ } });
+ var from_1 = require_from();
+ Object.defineProperty(exports, "from", { enumerable: true, get: function() {
+ return from_1.from;
+ } });
+ var fromEvent_1 = require_fromEvent();
+ Object.defineProperty(exports, "fromEvent", { enumerable: true, get: function() {
+ return fromEvent_1.fromEvent;
+ } });
+ var fromEventPattern_1 = require_fromEventPattern();
+ Object.defineProperty(exports, "fromEventPattern", { enumerable: true, get: function() {
+ return fromEventPattern_1.fromEventPattern;
+ } });
+ var generate_1 = require_generate();
+ Object.defineProperty(exports, "generate", { enumerable: true, get: function() {
+ return generate_1.generate;
+ } });
+ var iif_1 = require_iif();
+ Object.defineProperty(exports, "iif", { enumerable: true, get: function() {
+ return iif_1.iif;
+ } });
+ var interval_1 = require_interval();
+ Object.defineProperty(exports, "interval", { enumerable: true, get: function() {
+ return interval_1.interval;
+ } });
+ var merge_1 = require_merge();
+ Object.defineProperty(exports, "merge", { enumerable: true, get: function() {
+ return merge_1.merge;
+ } });
+ var never_1 = require_never();
+ Object.defineProperty(exports, "never", { enumerable: true, get: function() {
+ return never_1.never;
+ } });
+ var of_1 = require_of();
+ Object.defineProperty(exports, "of", { enumerable: true, get: function() {
+ return of_1.of;
+ } });
+ var onErrorResumeNext_1 = require_onErrorResumeNext();
+ Object.defineProperty(exports, "onErrorResumeNext", { enumerable: true, get: function() {
+ return onErrorResumeNext_1.onErrorResumeNext;
+ } });
+ var pairs_1 = require_pairs();
+ Object.defineProperty(exports, "pairs", { enumerable: true, get: function() {
+ return pairs_1.pairs;
+ } });
+ var partition_1 = require_partition();
+ Object.defineProperty(exports, "partition", { enumerable: true, get: function() {
+ return partition_1.partition;
+ } });
+ var race_1 = require_race();
+ Object.defineProperty(exports, "race", { enumerable: true, get: function() {
+ return race_1.race;
+ } });
+ var range_1 = require_range();
+ Object.defineProperty(exports, "range", { enumerable: true, get: function() {
+ return range_1.range;
+ } });
+ var throwError_1 = require_throwError();
+ Object.defineProperty(exports, "throwError", { enumerable: true, get: function() {
+ return throwError_1.throwError;
+ } });
+ var timer_1 = require_timer();
+ Object.defineProperty(exports, "timer", { enumerable: true, get: function() {
+ return timer_1.timer;
+ } });
+ var using_1 = require_using();
+ Object.defineProperty(exports, "using", { enumerable: true, get: function() {
+ return using_1.using;
+ } });
+ var zip_1 = require_zip();
+ Object.defineProperty(exports, "zip", { enumerable: true, get: function() {
+ return zip_1.zip;
+ } });
+ var scheduled_1 = require_scheduled();
+ Object.defineProperty(exports, "scheduled", { enumerable: true, get: function() {
+ return scheduled_1.scheduled;
+ } });
+ var empty_2 = require_empty();
+ Object.defineProperty(exports, "EMPTY", { enumerable: true, get: function() {
+ return empty_2.EMPTY;
+ } });
+ var never_2 = require_never();
+ Object.defineProperty(exports, "NEVER", { enumerable: true, get: function() {
+ return never_2.NEVER;
+ } });
+ __exportStar(require_types(), exports);
+ var config_1 = require_config();
+ Object.defineProperty(exports, "config", { enumerable: true, get: function() {
+ return config_1.config;
+ } });
+ var audit_1 = require_audit();
+ Object.defineProperty(exports, "audit", { enumerable: true, get: function() {
+ return audit_1.audit;
+ } });
+ var auditTime_1 = require_auditTime();
+ Object.defineProperty(exports, "auditTime", { enumerable: true, get: function() {
+ return auditTime_1.auditTime;
+ } });
+ var buffer_1 = require_buffer();
+ Object.defineProperty(exports, "buffer", { enumerable: true, get: function() {
+ return buffer_1.buffer;
+ } });
+ var bufferCount_1 = require_bufferCount();
+ Object.defineProperty(exports, "bufferCount", { enumerable: true, get: function() {
+ return bufferCount_1.bufferCount;
+ } });
+ var bufferTime_1 = require_bufferTime();
+ Object.defineProperty(exports, "bufferTime", { enumerable: true, get: function() {
+ return bufferTime_1.bufferTime;
+ } });
+ var bufferToggle_1 = require_bufferToggle();
+ Object.defineProperty(exports, "bufferToggle", { enumerable: true, get: function() {
+ return bufferToggle_1.bufferToggle;
+ } });
+ var bufferWhen_1 = require_bufferWhen();
+ Object.defineProperty(exports, "bufferWhen", { enumerable: true, get: function() {
+ return bufferWhen_1.bufferWhen;
+ } });
+ var catchError_1 = require_catchError();
+ Object.defineProperty(exports, "catchError", { enumerable: true, get: function() {
+ return catchError_1.catchError;
+ } });
+ var combineAll_1 = require_combineAll();
+ Object.defineProperty(exports, "combineAll", { enumerable: true, get: function() {
+ return combineAll_1.combineAll;
+ } });
+ var combineLatestAll_1 = require_combineLatestAll();
+ Object.defineProperty(exports, "combineLatestAll", { enumerable: true, get: function() {
+ return combineLatestAll_1.combineLatestAll;
+ } });
+ var combineLatestWith_1 = require_combineLatestWith();
+ Object.defineProperty(exports, "combineLatestWith", { enumerable: true, get: function() {
+ return combineLatestWith_1.combineLatestWith;
+ } });
+ var concatAll_1 = require_concatAll();
+ Object.defineProperty(exports, "concatAll", { enumerable: true, get: function() {
+ return concatAll_1.concatAll;
+ } });
+ var concatMap_1 = require_concatMap();
+ Object.defineProperty(exports, "concatMap", { enumerable: true, get: function() {
+ return concatMap_1.concatMap;
+ } });
+ var concatMapTo_1 = require_concatMapTo();
+ Object.defineProperty(exports, "concatMapTo", { enumerable: true, get: function() {
+ return concatMapTo_1.concatMapTo;
+ } });
+ var concatWith_1 = require_concatWith();
+ Object.defineProperty(exports, "concatWith", { enumerable: true, get: function() {
+ return concatWith_1.concatWith;
+ } });
+ var connect_1 = require_connect();
+ Object.defineProperty(exports, "connect", { enumerable: true, get: function() {
+ return connect_1.connect;
+ } });
+ var count_1 = require_count();
+ Object.defineProperty(exports, "count", { enumerable: true, get: function() {
+ return count_1.count;
+ } });
+ var debounce_1 = require_debounce();
+ Object.defineProperty(exports, "debounce", { enumerable: true, get: function() {
+ return debounce_1.debounce;
+ } });
+ var debounceTime_1 = require_debounceTime();
+ Object.defineProperty(exports, "debounceTime", { enumerable: true, get: function() {
+ return debounceTime_1.debounceTime;
+ } });
+ var defaultIfEmpty_1 = require_defaultIfEmpty();
+ Object.defineProperty(exports, "defaultIfEmpty", { enumerable: true, get: function() {
+ return defaultIfEmpty_1.defaultIfEmpty;
+ } });
+ var delay_1 = require_delay();
+ Object.defineProperty(exports, "delay", { enumerable: true, get: function() {
+ return delay_1.delay;
+ } });
+ var delayWhen_1 = require_delayWhen();
+ Object.defineProperty(exports, "delayWhen", { enumerable: true, get: function() {
+ return delayWhen_1.delayWhen;
+ } });
+ var dematerialize_1 = require_dematerialize();
+ Object.defineProperty(exports, "dematerialize", { enumerable: true, get: function() {
+ return dematerialize_1.dematerialize;
+ } });
+ var distinct_1 = require_distinct();
+ Object.defineProperty(exports, "distinct", { enumerable: true, get: function() {
+ return distinct_1.distinct;
+ } });
+ var distinctUntilChanged_1 = require_distinctUntilChanged();
+ Object.defineProperty(exports, "distinctUntilChanged", { enumerable: true, get: function() {
+ return distinctUntilChanged_1.distinctUntilChanged;
+ } });
+ var distinctUntilKeyChanged_1 = require_distinctUntilKeyChanged();
+ Object.defineProperty(exports, "distinctUntilKeyChanged", { enumerable: true, get: function() {
+ return distinctUntilKeyChanged_1.distinctUntilKeyChanged;
+ } });
+ var elementAt_1 = require_elementAt();
+ Object.defineProperty(exports, "elementAt", { enumerable: true, get: function() {
+ return elementAt_1.elementAt;
+ } });
+ var endWith_1 = require_endWith();
+ Object.defineProperty(exports, "endWith", { enumerable: true, get: function() {
+ return endWith_1.endWith;
+ } });
+ var every_1 = require_every();
+ Object.defineProperty(exports, "every", { enumerable: true, get: function() {
+ return every_1.every;
+ } });
+ var exhaust_1 = require_exhaust();
+ Object.defineProperty(exports, "exhaust", { enumerable: true, get: function() {
+ return exhaust_1.exhaust;
+ } });
+ var exhaustAll_1 = require_exhaustAll();
+ Object.defineProperty(exports, "exhaustAll", { enumerable: true, get: function() {
+ return exhaustAll_1.exhaustAll;
+ } });
+ var exhaustMap_1 = require_exhaustMap();
+ Object.defineProperty(exports, "exhaustMap", { enumerable: true, get: function() {
+ return exhaustMap_1.exhaustMap;
+ } });
+ var expand_1 = require_expand();
+ Object.defineProperty(exports, "expand", { enumerable: true, get: function() {
+ return expand_1.expand;
+ } });
+ var filter_1 = require_filter();
+ Object.defineProperty(exports, "filter", { enumerable: true, get: function() {
+ return filter_1.filter;
+ } });
+ var finalize_1 = require_finalize();
+ Object.defineProperty(exports, "finalize", { enumerable: true, get: function() {
+ return finalize_1.finalize;
+ } });
+ var find_1 = require_find();
+ Object.defineProperty(exports, "find", { enumerable: true, get: function() {
+ return find_1.find;
+ } });
+ var findIndex_1 = require_findIndex();
+ Object.defineProperty(exports, "findIndex", { enumerable: true, get: function() {
+ return findIndex_1.findIndex;
+ } });
+ var first_1 = require_first();
+ Object.defineProperty(exports, "first", { enumerable: true, get: function() {
+ return first_1.first;
+ } });
+ var groupBy_1 = require_groupBy();
+ Object.defineProperty(exports, "groupBy", { enumerable: true, get: function() {
+ return groupBy_1.groupBy;
+ } });
+ var ignoreElements_1 = require_ignoreElements();
+ Object.defineProperty(exports, "ignoreElements", { enumerable: true, get: function() {
+ return ignoreElements_1.ignoreElements;
+ } });
+ var isEmpty_1 = require_isEmpty();
+ Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function() {
+ return isEmpty_1.isEmpty;
+ } });
+ var last_1 = require_last();
+ Object.defineProperty(exports, "last", { enumerable: true, get: function() {
+ return last_1.last;
+ } });
+ var map_1 = require_map();
+ Object.defineProperty(exports, "map", { enumerable: true, get: function() {
+ return map_1.map;
+ } });
+ var mapTo_1 = require_mapTo();
+ Object.defineProperty(exports, "mapTo", { enumerable: true, get: function() {
+ return mapTo_1.mapTo;
+ } });
+ var materialize_1 = require_materialize();
+ Object.defineProperty(exports, "materialize", { enumerable: true, get: function() {
+ return materialize_1.materialize;
+ } });
+ var max_1 = require_max();
+ Object.defineProperty(exports, "max", { enumerable: true, get: function() {
+ return max_1.max;
+ } });
+ var mergeAll_1 = require_mergeAll();
+ Object.defineProperty(exports, "mergeAll", { enumerable: true, get: function() {
+ return mergeAll_1.mergeAll;
+ } });
+ var flatMap_1 = require_flatMap();
+ Object.defineProperty(exports, "flatMap", { enumerable: true, get: function() {
+ return flatMap_1.flatMap;
+ } });
+ var mergeMap_1 = require_mergeMap();
+ Object.defineProperty(exports, "mergeMap", { enumerable: true, get: function() {
+ return mergeMap_1.mergeMap;
+ } });
+ var mergeMapTo_1 = require_mergeMapTo();
+ Object.defineProperty(exports, "mergeMapTo", { enumerable: true, get: function() {
+ return mergeMapTo_1.mergeMapTo;
+ } });
+ var mergeScan_1 = require_mergeScan();
+ Object.defineProperty(exports, "mergeScan", { enumerable: true, get: function() {
+ return mergeScan_1.mergeScan;
+ } });
+ var mergeWith_1 = require_mergeWith();
+ Object.defineProperty(exports, "mergeWith", { enumerable: true, get: function() {
+ return mergeWith_1.mergeWith;
+ } });
+ var min_1 = require_min();
+ Object.defineProperty(exports, "min", { enumerable: true, get: function() {
+ return min_1.min;
+ } });
+ var multicast_1 = require_multicast();
+ Object.defineProperty(exports, "multicast", { enumerable: true, get: function() {
+ return multicast_1.multicast;
+ } });
+ var observeOn_1 = require_observeOn();
+ Object.defineProperty(exports, "observeOn", { enumerable: true, get: function() {
+ return observeOn_1.observeOn;
+ } });
+ var onErrorResumeNextWith_1 = require_onErrorResumeNextWith();
+ Object.defineProperty(exports, "onErrorResumeNextWith", { enumerable: true, get: function() {
+ return onErrorResumeNextWith_1.onErrorResumeNextWith;
+ } });
+ var pairwise_1 = require_pairwise();
+ Object.defineProperty(exports, "pairwise", { enumerable: true, get: function() {
+ return pairwise_1.pairwise;
+ } });
+ var pluck_1 = require_pluck();
+ Object.defineProperty(exports, "pluck", { enumerable: true, get: function() {
+ return pluck_1.pluck;
+ } });
+ var publish_1 = require_publish();
+ Object.defineProperty(exports, "publish", { enumerable: true, get: function() {
+ return publish_1.publish;
+ } });
+ var publishBehavior_1 = require_publishBehavior();
+ Object.defineProperty(exports, "publishBehavior", { enumerable: true, get: function() {
+ return publishBehavior_1.publishBehavior;
+ } });
+ var publishLast_1 = require_publishLast();
+ Object.defineProperty(exports, "publishLast", { enumerable: true, get: function() {
+ return publishLast_1.publishLast;
+ } });
+ var publishReplay_1 = require_publishReplay();
+ Object.defineProperty(exports, "publishReplay", { enumerable: true, get: function() {
+ return publishReplay_1.publishReplay;
+ } });
+ var raceWith_1 = require_raceWith();
+ Object.defineProperty(exports, "raceWith", { enumerable: true, get: function() {
+ return raceWith_1.raceWith;
+ } });
+ var reduce_1 = require_reduce();
+ Object.defineProperty(exports, "reduce", { enumerable: true, get: function() {
+ return reduce_1.reduce;
+ } });
+ var repeat_1 = require_repeat();
+ Object.defineProperty(exports, "repeat", { enumerable: true, get: function() {
+ return repeat_1.repeat;
+ } });
+ var repeatWhen_1 = require_repeatWhen();
+ Object.defineProperty(exports, "repeatWhen", { enumerable: true, get: function() {
+ return repeatWhen_1.repeatWhen;
+ } });
+ var retry_1 = require_retry();
+ Object.defineProperty(exports, "retry", { enumerable: true, get: function() {
+ return retry_1.retry;
+ } });
+ var retryWhen_1 = require_retryWhen();
+ Object.defineProperty(exports, "retryWhen", { enumerable: true, get: function() {
+ return retryWhen_1.retryWhen;
+ } });
+ var refCount_1 = require_refCount();
+ Object.defineProperty(exports, "refCount", { enumerable: true, get: function() {
+ return refCount_1.refCount;
+ } });
+ var sample_1 = require_sample();
+ Object.defineProperty(exports, "sample", { enumerable: true, get: function() {
+ return sample_1.sample;
+ } });
+ var sampleTime_1 = require_sampleTime();
+ Object.defineProperty(exports, "sampleTime", { enumerable: true, get: function() {
+ return sampleTime_1.sampleTime;
+ } });
+ var scan_1 = require_scan();
+ Object.defineProperty(exports, "scan", { enumerable: true, get: function() {
+ return scan_1.scan;
+ } });
+ var sequenceEqual_1 = require_sequenceEqual();
+ Object.defineProperty(exports, "sequenceEqual", { enumerable: true, get: function() {
+ return sequenceEqual_1.sequenceEqual;
+ } });
+ var share_1 = require_share();
+ Object.defineProperty(exports, "share", { enumerable: true, get: function() {
+ return share_1.share;
+ } });
+ var shareReplay_1 = require_shareReplay();
+ Object.defineProperty(exports, "shareReplay", { enumerable: true, get: function() {
+ return shareReplay_1.shareReplay;
+ } });
+ var single_1 = require_single();
+ Object.defineProperty(exports, "single", { enumerable: true, get: function() {
+ return single_1.single;
+ } });
+ var skip_1 = require_skip();
+ Object.defineProperty(exports, "skip", { enumerable: true, get: function() {
+ return skip_1.skip;
+ } });
+ var skipLast_1 = require_skipLast();
+ Object.defineProperty(exports, "skipLast", { enumerable: true, get: function() {
+ return skipLast_1.skipLast;
+ } });
+ var skipUntil_1 = require_skipUntil();
+ Object.defineProperty(exports, "skipUntil", { enumerable: true, get: function() {
+ return skipUntil_1.skipUntil;
+ } });
+ var skipWhile_1 = require_skipWhile();
+ Object.defineProperty(exports, "skipWhile", { enumerable: true, get: function() {
+ return skipWhile_1.skipWhile;
+ } });
+ var startWith_1 = require_startWith();
+ Object.defineProperty(exports, "startWith", { enumerable: true, get: function() {
+ return startWith_1.startWith;
+ } });
+ var subscribeOn_1 = require_subscribeOn();
+ Object.defineProperty(exports, "subscribeOn", { enumerable: true, get: function() {
+ return subscribeOn_1.subscribeOn;
+ } });
+ var switchAll_1 = require_switchAll();
+ Object.defineProperty(exports, "switchAll", { enumerable: true, get: function() {
+ return switchAll_1.switchAll;
+ } });
+ var switchMap_1 = require_switchMap();
+ Object.defineProperty(exports, "switchMap", { enumerable: true, get: function() {
+ return switchMap_1.switchMap;
+ } });
+ var switchMapTo_1 = require_switchMapTo();
+ Object.defineProperty(exports, "switchMapTo", { enumerable: true, get: function() {
+ return switchMapTo_1.switchMapTo;
+ } });
+ var switchScan_1 = require_switchScan();
+ Object.defineProperty(exports, "switchScan", { enumerable: true, get: function() {
+ return switchScan_1.switchScan;
+ } });
+ var take_1 = require_take();
+ Object.defineProperty(exports, "take", { enumerable: true, get: function() {
+ return take_1.take;
+ } });
+ var takeLast_1 = require_takeLast();
+ Object.defineProperty(exports, "takeLast", { enumerable: true, get: function() {
+ return takeLast_1.takeLast;
+ } });
+ var takeUntil_1 = require_takeUntil();
+ Object.defineProperty(exports, "takeUntil", { enumerable: true, get: function() {
+ return takeUntil_1.takeUntil;
+ } });
+ var takeWhile_1 = require_takeWhile();
+ Object.defineProperty(exports, "takeWhile", { enumerable: true, get: function() {
+ return takeWhile_1.takeWhile;
+ } });
+ var tap_1 = require_tap();
+ Object.defineProperty(exports, "tap", { enumerable: true, get: function() {
+ return tap_1.tap;
+ } });
+ var throttle_1 = require_throttle();
+ Object.defineProperty(exports, "throttle", { enumerable: true, get: function() {
+ return throttle_1.throttle;
+ } });
+ var throttleTime_1 = require_throttleTime();
+ Object.defineProperty(exports, "throttleTime", { enumerable: true, get: function() {
+ return throttleTime_1.throttleTime;
+ } });
+ var throwIfEmpty_1 = require_throwIfEmpty();
+ Object.defineProperty(exports, "throwIfEmpty", { enumerable: true, get: function() {
+ return throwIfEmpty_1.throwIfEmpty;
+ } });
+ var timeInterval_1 = require_timeInterval();
+ Object.defineProperty(exports, "timeInterval", { enumerable: true, get: function() {
+ return timeInterval_1.timeInterval;
+ } });
+ var timeout_2 = require_timeout();
+ Object.defineProperty(exports, "timeout", { enumerable: true, get: function() {
+ return timeout_2.timeout;
+ } });
+ var timeoutWith_1 = require_timeoutWith();
+ Object.defineProperty(exports, "timeoutWith", { enumerable: true, get: function() {
+ return timeoutWith_1.timeoutWith;
+ } });
+ var timestamp_1 = require_timestamp();
+ Object.defineProperty(exports, "timestamp", { enumerable: true, get: function() {
+ return timestamp_1.timestamp;
+ } });
+ var toArray_1 = require_toArray();
+ Object.defineProperty(exports, "toArray", { enumerable: true, get: function() {
+ return toArray_1.toArray;
+ } });
+ var window_1 = require_window();
+ Object.defineProperty(exports, "window", { enumerable: true, get: function() {
+ return window_1.window;
+ } });
+ var windowCount_1 = require_windowCount();
+ Object.defineProperty(exports, "windowCount", { enumerable: true, get: function() {
+ return windowCount_1.windowCount;
+ } });
+ var windowTime_1 = require_windowTime();
+ Object.defineProperty(exports, "windowTime", { enumerable: true, get: function() {
+ return windowTime_1.windowTime;
+ } });
+ var windowToggle_1 = require_windowToggle();
+ Object.defineProperty(exports, "windowToggle", { enumerable: true, get: function() {
+ return windowToggle_1.windowToggle;
+ } });
+ var windowWhen_1 = require_windowWhen();
+ Object.defineProperty(exports, "windowWhen", { enumerable: true, get: function() {
+ return windowWhen_1.windowWhen;
+ } });
+ var withLatestFrom_1 = require_withLatestFrom();
+ Object.defineProperty(exports, "withLatestFrom", { enumerable: true, get: function() {
+ return withLatestFrom_1.withLatestFrom;
+ } });
+ var zipAll_1 = require_zipAll();
+ Object.defineProperty(exports, "zipAll", { enumerable: true, get: function() {
+ return zipAll_1.zipAll;
+ } });
+ var zipWith_1 = require_zipWith();
+ Object.defineProperty(exports, "zipWith", { enumerable: true, get: function() {
+ return zipWith_1.zipWith;
+ } });
+});
+
+// node_modules/run-async/index.js
+var require_run_async = __commonJS((exports, module) => {
+ function isPromise(obj) {
+ return !!obj && (typeof obj === "object" || typeof obj === "function") && typeof obj.then === "function";
+ }
+ var runAsync = module.exports = function(func, cb, proxyProperty = "async") {
+ if (typeof cb === "string") {
+ proxyProperty = cb;
+ cb = undefined;
+ }
+ cb = cb || function() {
+ };
+ return function() {
+ var args = arguments;
+ var originalThis = this;
+ var promise = new Promise(function(resolve, reject) {
+ var resolved = false;
+ const wrappedResolve = function(value) {
+ if (resolved) {
+ console.warn("Run-async promise already resolved.");
+ }
+ resolved = true;
+ resolve(value);
+ };
+ var rejected = false;
+ const wrappedReject = function(value) {
+ if (rejected) {
+ console.warn("Run-async promise already rejected.");
+ }
+ rejected = true;
+ reject(value);
+ };
+ var usingCallback = false;
+ var callbackConflict = false;
+ var contextEnded = false;
+ var doneFactory = function() {
+ if (contextEnded) {
+ console.warn("Run-async async() called outside a valid run-async context, callback will be ignored.");
+ return function() {
+ };
+ }
+ if (callbackConflict) {
+ console.warn(`Run-async wrapped function (async) returned a promise.
+Calls to async() callback can have unexpected results.`);
+ }
+ usingCallback = true;
+ return function(err, value) {
+ if (err) {
+ wrappedReject(err);
+ } else {
+ wrappedResolve(value);
+ }
+ };
+ };
+ var _this;
+ if (originalThis && proxyProperty && Proxy) {
+ _this = new Proxy(originalThis, {
+ get(_target, prop) {
+ if (prop === proxyProperty) {
+ if (prop in _target) {
+ console.warn(`${proxyProperty} property is been shadowed by run-sync`);
+ }
+ return doneFactory;
+ }
+ return Reflect.get(...arguments);
+ }
+ });
+ } else {
+ _this = { [proxyProperty]: doneFactory };
+ }
+ var answer = func.apply(_this, Array.prototype.slice.call(args));
+ if (usingCallback) {
+ if (isPromise(answer)) {
+ console.warn("Run-async wrapped function (sync) returned a promise but async() callback must be executed to resolve.");
+ }
+ } else {
+ if (isPromise(answer)) {
+ callbackConflict = true;
+ answer.then(wrappedResolve, wrappedReject);
+ } else {
+ wrappedResolve(answer);
+ }
+ }
+ contextEnded = true;
+ });
+ promise.then(cb.bind(null, null), cb);
+ return promise;
+ };
+ };
+ runAsync.cb = function(func, cb) {
+ return runAsync(function() {
+ var args = Array.prototype.slice.call(arguments);
+ if (args.length === func.length - 1) {
+ args.push(this.async());
+ }
+ return func.apply(this, args);
+ }, cb);
+ };
+});
+
+// node_modules/inquirer/dist/esm/ui/prompt.js
+import readline3 from "node:readline";
+async function fetchAsyncQuestionProperty(question, prop, answers) {
+ const propGetter = question[prop];
+ if (typeof propGetter === "function") {
+ return import_run_async.default(propGetter)(answers);
+ }
+ return propGetter;
+}
+function setupReadlineOptions(opt) {
+ opt.skipTTYChecks = opt.skipTTYChecks === undefined ? true : opt.skipTTYChecks;
+ const input = opt.input || process.stdin;
+ if (!opt.skipTTYChecks && !input.isTTY) {
+ throw new TTYError("Prompts can not be meaningfully rendered in non-TTY environments");
+ }
+ const ms = new import_mute_stream2.default;
+ ms.pipe(opt.output || process.stdout);
+ const output = ms;
+ return {
+ terminal: true,
+ ...opt,
+ input,
+ output
+ };
+}
+function isQuestionArray(questions) {
+ return Array.isArray(questions);
+}
+function isQuestionMap(questions) {
+ return Object.values(questions).every((maybeQuestion) => typeof maybeQuestion === "object" && !Array.isArray(maybeQuestion) && maybeQuestion != null);
+}
+function isPromptConstructor(prompt) {
+ return Boolean(prompt.prototype && "run" in prompt.prototype && typeof prompt.prototype.run === "function");
+}
+
+class PromptsRunner {
+ prompts;
+ answers = {};
+ process = import_rxjs.EMPTY;
+ abortController = new AbortController;
+ opt;
+ constructor(prompts, opt = {}) {
+ this.opt = opt;
+ this.prompts = prompts;
+ }
+ async run(questions, answers) {
+ this.abortController = new AbortController;
+ this.answers = typeof answers === "object" ? { ...answers } : {};
+ let obs;
+ if (isQuestionArray(questions)) {
+ obs = import_rxjs.from(questions);
+ } else if (import_rxjs.isObservable(questions)) {
+ obs = questions;
+ } else if (isQuestionMap(questions)) {
+ obs = import_rxjs.from(Object.entries(questions).map(([name, question]) => {
+ return Object.assign({}, question, { name });
+ }));
+ } else {
+ obs = import_rxjs.from([questions]);
+ }
+ this.process = obs.pipe(import_rxjs.concatMap((question) => import_rxjs.of(question).pipe(import_rxjs.concatMap((question2) => import_rxjs.from(this.shouldRun(question2).then((shouldRun) => {
+ if (shouldRun) {
+ return question2;
+ }
+ return;
+ })).pipe(import_rxjs.filter((val) => val != null))), import_rxjs.concatMap((question2) => import_rxjs.defer(() => import_rxjs.from(this.fetchAnswer(question2)))))));
+ return import_rxjs.lastValueFrom(this.process.pipe(import_rxjs.reduce((answersObj, answer) => {
+ _2.set(answersObj, answer.name, answer.answer);
+ return answersObj;
+ }, this.answers))).then(() => this.answers).finally(() => this.close());
+ }
+ prepareQuestion = async (question) => {
+ const [message, defaultValue, resolvedChoices] = await Promise.all([
+ fetchAsyncQuestionProperty(question, "message", this.answers),
+ fetchAsyncQuestionProperty(question, "default", this.answers),
+ fetchAsyncQuestionProperty(question, "choices", this.answers)
+ ]);
+ let choices;
+ if (Array.isArray(resolvedChoices)) {
+ choices = resolvedChoices.map((choice) => {
+ const choiceObj = typeof choice !== "object" || choice == null ? { name: choice, value: choice } : {
+ ...choice,
+ value: "value" in choice ? choice.value : ("name" in choice) ? choice.name : undefined
+ };
+ if ("value" in choiceObj && Array.isArray(defaultValue)) {
+ return {
+ checked: defaultValue.includes(choiceObj.value),
+ ...choiceObj
+ };
+ }
+ return choiceObj;
+ });
+ }
+ return Object.assign({}, question, {
+ message,
+ default: defaultValue,
+ choices,
+ type: question.type in this.prompts ? question.type : "input"
+ });
+ };
+ fetchAnswer = async (rawQuestion) => {
+ const question = await this.prepareQuestion(rawQuestion);
+ const prompt = this.prompts[question.type];
+ if (prompt == null) {
+ throw new Error(`Prompt for type ${question.type} not found`);
+ }
+ let cleanupSignal;
+ const promptFn = isPromptConstructor(prompt) ? (q, opt) => new Promise((resolve, reject) => {
+ const { signal: signal2 } = opt;
+ if (signal2.aborted) {
+ reject(new AbortPromptError({ cause: signal2.reason }));
+ return;
+ }
+ const rl = readline3.createInterface(setupReadlineOptions(opt));
+ const onForceClose = () => {
+ this.close();
+ process.kill(process.pid, "SIGINT");
+ console.log("");
+ };
+ const onClose = () => {
+ process.removeListener("exit", onForceClose);
+ rl.removeListener("SIGINT", onForceClose);
+ rl.setPrompt("");
+ rl.output.unmute();
+ rl.output.write(import_ansi_escapes5.default.cursorShow);
+ rl.output.end();
+ rl.close();
+ };
+ process.on("exit", onForceClose);
+ rl.on("SIGINT", onForceClose);
+ const activePrompt = new prompt(q, rl, this.answers);
+ const cleanup = () => {
+ onClose();
+ cleanupSignal?.();
+ };
+ const abort = () => {
+ reject(new AbortPromptError({ cause: signal2.reason }));
+ cleanup();
+ };
+ signal2.addEventListener("abort", abort);
+ cleanupSignal = () => {
+ signal2.removeEventListener("abort", abort);
+ cleanupSignal = undefined;
+ };
+ activePrompt.run().then(resolve, reject).finally(cleanup);
+ }) : prompt;
+ let cleanupModuleSignal;
+ const { signal: moduleSignal } = this.opt;
+ if (moduleSignal?.aborted) {
+ this.abortController.abort(moduleSignal.reason);
+ } else if (moduleSignal) {
+ const abort = () => this.abortController.abort(moduleSignal.reason);
+ moduleSignal.addEventListener("abort", abort);
+ cleanupModuleSignal = () => {
+ moduleSignal.removeEventListener("abort", abort);
+ };
+ }
+ const { filter: filter2 = (value) => value } = question;
+ const { signal } = this.abortController;
+ return promptFn(question, { ...this.opt, signal }).then((answer) => ({
+ name: question.name,
+ answer: filter2(answer, this.answers)
+ })).finally(() => {
+ cleanupSignal?.();
+ cleanupModuleSignal?.();
+ });
+ };
+ close = () => {
+ this.abortController.abort();
+ };
+ shouldRun = async (question) => {
+ if (question.askAnswered !== true && _2.get(this.answers, question.name) !== undefined) {
+ return false;
+ }
+ const { when } = question;
+ if (typeof when === "function") {
+ const shouldRun = await import_run_async.default(when)(this.answers);
+ return Boolean(shouldRun);
+ }
+ return when !== false;
+ };
+}
+var import_rxjs, import_run_async, import_mute_stream2, import_ansi_escapes5, _2, TTYError;
+var init_prompt = __esm(() => {
+ import_rxjs = __toESM(require_cjs(), 1);
+ import_run_async = __toESM(require_run_async(), 1);
+ import_mute_stream2 = __toESM(require_lib(), 1);
+ init_esm2();
+ import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
+ _2 = {
+ set: (obj, path2 = "", value) => {
+ let pointer = obj;
+ path2.split(".").forEach((key2, index, arr) => {
+ if (key2 === "__proto__" || key2 === "constructor")
+ return;
+ if (index === arr.length - 1) {
+ pointer[key2] = value;
+ } else if (!(key2 in pointer) || typeof pointer[key2] !== "object") {
+ pointer[key2] = {};
+ }
+ pointer = pointer[key2];
+ });
+ },
+ get: (obj, path2 = "", defaultValue) => {
+ const travel = (regexp) => String.prototype.split.call(path2, regexp).filter(Boolean).reduce((res, key2) => res == null ? res : res[key2], obj);
+ const result = travel(/[,[\]]+?/) || travel(/[,.[\]]+?/);
+ return result === undefined || result === obj ? defaultValue : result;
+ }
+ };
+ TTYError = class TTYError extends Error {
+ name = "TTYError";
+ isTtyError = true;
+ };
+});
+
+// node_modules/inquirer/dist/esm/index.js
+var exports_esm = {};
+__export(exports_esm, {
+ default: () => esm_default12,
+ createPromptModule: () => createPromptModule
+});
+function createPromptModule(opt) {
+ function promptModule(questions, answers) {
+ const runner = new PromptsRunner(promptModule.prompts, opt);
+ const promptPromise = runner.run(questions, answers);
+ return Object.assign(promptPromise, { ui: runner });
+ }
+ promptModule.prompts = { ...builtInPrompts };
+ promptModule.registerPrompt = function(name, prompt) {
+ promptModule.prompts[name] = prompt;
+ return this;
+ };
+ promptModule.restoreDefaultPrompts = function() {
+ promptModule.prompts = { ...builtInPrompts };
+ };
+ return promptModule;
+}
+function registerPrompt(name, newPrompt) {
+ prompt.registerPrompt(name, newPrompt);
+}
+function restoreDefaultPrompts() {
+ prompt.restoreDefaultPrompts();
+}
+var builtInPrompts, prompt, inquirer, esm_default12;
+var init_esm14 = __esm(() => {
+ init_esm13();
+ init_prompt();
+ builtInPrompts = {
+ input: esm_default5,
+ select: esm_default11,
+ list: esm_default11,
+ number: esm_default6,
+ confirm: esm_default4,
+ rawlist: esm_default8,
+ expand: esm_default7,
+ checkbox: esm_default2,
+ password: esm_default9,
+ editor: esm_default3,
+ search: esm_default10
+ };
+ prompt = createPromptModule();
+ inquirer = {
+ prompt,
+ ui: {
+ Prompt: PromptsRunner
+ },
+ createPromptModule,
+ registerPrompt,
+ restoreDefaultPrompts,
+ Separator
+ };
+ esm_default12 = inquirer;
+});
+
+// node_modules/minimatch/lib/path.js
+var require_path = __commonJS((exports, module) => {
+ var isWindows = typeof process === "object" && process && process.platform === "win32";
+ module.exports = isWindows ? { sep: "\\" } : { sep: "/" };
+});
+
+// node_modules/balanced-match/index.js
+var require_balanced_match = __commonJS((exports, module) => {
+ module.exports = balanced;
+ function balanced(a, b, str) {
+ if (a instanceof RegExp)
+ a = maybeMatch(a, str);
+ if (b instanceof RegExp)
+ b = maybeMatch(b, str);
+ var r = range(a, b, str);
+ return r && {
+ start: r[0],
+ end: r[1],
+ pre: str.slice(0, r[0]),
+ body: str.slice(r[0] + a.length, r[1]),
+ post: str.slice(r[1] + b.length)
+ };
+ }
+ function maybeMatch(reg, str) {
+ var m = str.match(reg);
+ return m ? m[0] : null;
+ }
+ balanced.range = range;
+ function range(a, b, str) {
+ var begs, beg, left, right, result;
+ var ai = str.indexOf(a);
+ var bi = str.indexOf(b, ai + 1);
+ var i = ai;
+ if (ai >= 0 && bi > 0) {
+ if (a === b) {
+ return [ai, bi];
+ }
+ begs = [];
+ left = str.length;
+ while (i >= 0 && !result) {
+ if (i == ai) {
+ begs.push(i);
+ ai = str.indexOf(a, i + 1);
+ } else if (begs.length == 1) {
+ result = [begs.pop(), bi];
+ } else {
+ beg = begs.pop();
+ if (beg < left) {
+ left = beg;
+ right = bi;
+ }
+ bi = str.indexOf(b, i + 1);
+ }
+ i = ai < bi && ai >= 0 ? ai : bi;
+ }
+ if (begs.length) {
+ result = [left, right];
+ }
+ }
+ return result;
+ }
+});
+
+// node_modules/brace-expansion/index.js
+var require_brace_expansion = __commonJS((exports, module) => {
+ var balanced = require_balanced_match();
+ module.exports = expandTop;
+ var escSlash = "\x00SLASH" + Math.random() + "\x00";
+ var escOpen = "\x00OPEN" + Math.random() + "\x00";
+ var escClose = "\x00CLOSE" + Math.random() + "\x00";
+ var escComma = "\x00COMMA" + Math.random() + "\x00";
+ var escPeriod = "\x00PERIOD" + Math.random() + "\x00";
+ function numeric(str) {
+ return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
+ }
+ function escapeBraces(str) {
+ return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
+ }
+ function unescapeBraces(str) {
+ return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
+ }
+ function parseCommaParts(str) {
+ if (!str)
+ return [""];
+ var parts = [];
+ var m = balanced("{", "}", str);
+ if (!m)
+ return str.split(",");
+ var pre = m.pre;
+ var body = m.body;
+ var post = m.post;
+ var p = pre.split(",");
+ p[p.length - 1] += "{" + body + "}";
+ var postParts = parseCommaParts(post);
+ if (post.length) {
+ p[p.length - 1] += postParts.shift();
+ p.push.apply(p, postParts);
+ }
+ parts.push.apply(parts, p);
+ return parts;
+ }
+ function expandTop(str) {
+ if (!str)
+ return [];
+ if (str.substr(0, 2) === "{}") {
+ str = "\\{\\}" + str.substr(2);
+ }
+ return expand(escapeBraces(str), true).map(unescapeBraces);
+ }
+ function embrace(str) {
+ return "{" + str + "}";
+ }
+ function isPadded(el) {
+ return /^-?0\d/.test(el);
+ }
+ function lte(i, y) {
+ return i <= y;
+ }
+ function gte(i, y) {
+ return i >= y;
+ }
+ function expand(str, isTop) {
+ var expansions = [];
+ var m = balanced("{", "}", str);
+ if (!m)
+ return [str];
+ var pre = m.pre;
+ var post = m.post.length ? expand(m.post, false) : [""];
+ if (/\$$/.test(m.pre)) {
+ for (var k = 0;k < post.length; k++) {
+ var expansion = pre + "{" + m.body + "}" + post[k];
+ expansions.push(expansion);
+ }
+ } else {
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
+ var isSequence = isNumericSequence || isAlphaSequence;
+ var isOptions = m.body.indexOf(",") >= 0;
+ if (!isSequence && !isOptions) {
+ if (m.post.match(/,.*\}/)) {
+ str = m.pre + "{" + m.body + escClose + m.post;
+ return expand(str);
+ }
+ return [str];
+ }
+ var n;
+ if (isSequence) {
+ n = m.body.split(/\.\./);
+ } else {
+ n = parseCommaParts(m.body);
+ if (n.length === 1) {
+ n = expand(n[0], false).map(embrace);
+ if (n.length === 1) {
+ return post.map(function(p) {
+ return m.pre + n[0] + p;
+ });
+ }
+ }
+ }
+ var N;
+ if (isSequence) {
+ var x = numeric(n[0]);
+ var y = numeric(n[1]);
+ var width = Math.max(n[0].length, n[1].length);
+ var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
+ var test = lte;
+ var reverse = y < x;
+ if (reverse) {
+ incr *= -1;
+ test = gte;
+ }
+ var pad = n.some(isPadded);
+ N = [];
+ for (var i = x;test(i, y); i += incr) {
+ var c;
+ if (isAlphaSequence) {
+ c = String.fromCharCode(i);
+ if (c === "\\")
+ c = "";
+ } else {
+ c = String(i);
+ if (pad) {
+ var need = width - c.length;
+ if (need > 0) {
+ var z = new Array(need + 1).join("0");
+ if (i < 0)
+ c = "-" + z + c.slice(1);
+ else
+ c = z + c;
+ }
+ }
+ }
+ N.push(c);
+ }
+ } else {
+ N = [];
+ for (var j = 0;j < n.length; j++) {
+ N.push.apply(N, expand(n[j], false));
+ }
+ }
+ for (var j = 0;j < N.length; j++) {
+ for (var k = 0;k < post.length; k++) {
+ var expansion = pre + N[j] + post[k];
+ if (!isTop || isSequence || expansion)
+ expansions.push(expansion);
+ }
+ }
+ }
+ return expansions;
+ }
+});
+
+// node_modules/minimatch/minimatch.js
+var require_minimatch = __commonJS((exports, module) => {
+ var minimatch = module.exports = (p, pattern, options = {}) => {
+ assertValidPattern(pattern);
+ if (!options.nocomment && pattern.charAt(0) === "#") {
+ return false;
+ }
+ return new Minimatch(pattern, options).match(p);
+ };
+ module.exports = minimatch;
+ var path2 = require_path();
+ minimatch.sep = path2.sep;
+ var GLOBSTAR = Symbol("globstar **");
+ minimatch.GLOBSTAR = GLOBSTAR;
+ var expand = require_brace_expansion();
+ var plTypes = {
+ "!": { open: "(?:(?!(?:", close: "))[^/]*?)" },
+ "?": { open: "(?:", close: ")?" },
+ "+": { open: "(?:", close: ")+" },
+ "*": { open: "(?:", close: ")*" },
+ "@": { open: "(?:", close: ")" }
+ };
+ var qmark = "[^/]";
+ var star = qmark + "*?";
+ var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
+ var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
+ var charSet = (s) => s.split("").reduce((set, c) => {
+ set[c] = true;
+ return set;
+ }, {});
+ var reSpecials = charSet("().*{}+?[]^$\\!");
+ var addPatternStartSet = charSet("[.(");
+ var slashSplit = /\/+/;
+ minimatch.filter = (pattern, options = {}) => (p, i, list) => minimatch(p, pattern, options);
+ var ext = (a, b = {}) => {
+ const t = {};
+ Object.keys(a).forEach((k) => t[k] = a[k]);
+ Object.keys(b).forEach((k) => t[k] = b[k]);
+ return t;
+ };
+ minimatch.defaults = (def) => {
+ if (!def || typeof def !== "object" || !Object.keys(def).length) {
+ return minimatch;
+ }
+ const orig = minimatch;
+ const m = (p, pattern, options) => orig(p, pattern, ext(def, options));
+ m.Minimatch = class Minimatch2 extends orig.Minimatch {
+ constructor(pattern, options) {
+ super(pattern, ext(def, options));
+ }
+ };
+ m.Minimatch.defaults = (options) => orig.defaults(ext(def, options)).Minimatch;
+ m.filter = (pattern, options) => orig.filter(pattern, ext(def, options));
+ m.defaults = (options) => orig.defaults(ext(def, options));
+ m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options));
+ m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options));
+ m.match = (list, pattern, options) => orig.match(list, pattern, ext(def, options));
+ return m;
+ };
+ minimatch.braceExpand = (pattern, options) => braceExpand(pattern, options);
+ var braceExpand = (pattern, options = {}) => {
+ assertValidPattern(pattern);
+ if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
+ return [pattern];
+ }
+ return expand(pattern);
+ };
+ var MAX_PATTERN_LENGTH = 1024 * 64;
+ var assertValidPattern = (pattern) => {
+ if (typeof pattern !== "string") {
+ throw new TypeError("invalid pattern");
+ }
+ if (pattern.length > MAX_PATTERN_LENGTH) {
+ throw new TypeError("pattern is too long");
+ }
+ };
+ var SUBPARSE = Symbol("subparse");
+ minimatch.makeRe = (pattern, options) => new Minimatch(pattern, options || {}).makeRe();
+ minimatch.match = (list, pattern, options = {}) => {
+ const mm = new Minimatch(pattern, options);
+ list = list.filter((f) => mm.match(f));
+ if (mm.options.nonull && !list.length) {
+ list.push(pattern);
+ }
+ return list;
+ };
+ var globUnescape = (s) => s.replace(/\\(.)/g, "$1");
+ var charUnescape = (s) => s.replace(/\\([^-\]])/g, "$1");
+ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
+ var braExpEscape = (s) => s.replace(/[[\]\\]/g, "\\$&");
+
+ class Minimatch {
+ constructor(pattern, options) {
+ assertValidPattern(pattern);
+ if (!options)
+ options = {};
+ this.options = options;
+ this.set = [];
+ this.pattern = pattern;
+ this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
+ if (this.windowsPathsNoEscape) {
+ this.pattern = this.pattern.replace(/\\/g, "/");
+ }
+ this.regexp = null;
+ this.negate = false;
+ this.comment = false;
+ this.empty = false;
+ this.partial = !!options.partial;
+ this.make();
+ }
+ debug() {
+ }
+ make() {
+ const pattern = this.pattern;
+ const options = this.options;
+ if (!options.nocomment && pattern.charAt(0) === "#") {
+ this.comment = true;
+ return;
+ }
+ if (!pattern) {
+ this.empty = true;
+ return;
+ }
+ this.parseNegate();
+ let set = this.globSet = this.braceExpand();
+ if (options.debug)
+ this.debug = (...args) => console.error(...args);
+ this.debug(this.pattern, set);
+ set = this.globParts = set.map((s) => s.split(slashSplit));
+ this.debug(this.pattern, set);
+ set = set.map((s, si, set2) => s.map(this.parse, this));
+ this.debug(this.pattern, set);
+ set = set.filter((s) => s.indexOf(false) === -1);
+ this.debug(this.pattern, set);
+ this.set = set;
+ }
+ parseNegate() {
+ if (this.options.nonegate)
+ return;
+ const pattern = this.pattern;
+ let negate = false;
+ let negateOffset = 0;
+ for (let i = 0;i < pattern.length && pattern.charAt(i) === "!"; i++) {
+ negate = !negate;
+ negateOffset++;
+ }
+ if (negateOffset)
+ this.pattern = pattern.slice(negateOffset);
+ this.negate = negate;
+ }
+ matchOne(file, pattern, partial) {
+ var options = this.options;
+ this.debug("matchOne", { this: this, file, pattern });
+ this.debug("matchOne", file.length, pattern.length);
+ for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length;fi < fl && pi < pl; fi++, pi++) {
+ this.debug("matchOne loop");
+ var p = pattern[pi];
+ var f = file[fi];
+ this.debug(pattern, p, f);
+ if (p === false)
+ return false;
+ if (p === GLOBSTAR) {
+ this.debug("GLOBSTAR", [pattern, p, f]);
+ var fr = fi;
+ var pr = pi + 1;
+ if (pr === pl) {
+ this.debug("** at the end");
+ for (;fi < fl; fi++) {
+ if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
+ return false;
+ }
+ return true;
+ }
+ while (fr < fl) {
+ var swallowee = file[fr];
+ this.debug(`
+globstar while`, file, fr, pattern, pr, swallowee);
+ if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
+ this.debug("globstar found match!", fr, fl, swallowee);
+ return true;
+ } else {
+ if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
+ this.debug("dot detected!", file, fr, pattern, pr);
+ break;
+ }
+ this.debug("globstar swallow a segment, and continue");
+ fr++;
+ }
+ }
+ if (partial) {
+ this.debug(`
+>>> no match, partial?`, file, fr, pattern, pr);
+ if (fr === fl)
+ return true;
+ }
+ return false;
+ }
+ var hit;
+ if (typeof p === "string") {
+ hit = f === p;
+ this.debug("string match", p, f, hit);
+ } else {
+ hit = f.match(p);
+ this.debug("pattern match", p, f, hit);
+ }
+ if (!hit)
+ return false;
+ }
+ if (fi === fl && pi === pl) {
+ return true;
+ } else if (fi === fl) {
+ return partial;
+ } else if (pi === pl) {
+ return fi === fl - 1 && file[fi] === "";
+ }
+ throw new Error("wtf?");
+ }
+ braceExpand() {
+ return braceExpand(this.pattern, this.options);
+ }
+ parse(pattern, isSub) {
+ assertValidPattern(pattern);
+ const options = this.options;
+ if (pattern === "**") {
+ if (!options.noglobstar)
+ return GLOBSTAR;
+ else
+ pattern = "*";
+ }
+ if (pattern === "")
+ return "";
+ let re = "";
+ let hasMagic = false;
+ let escaping = false;
+ const patternListStack = [];
+ const negativeLists = [];
+ let stateChar;
+ let inClass = false;
+ let reClassStart = -1;
+ let classStart = -1;
+ let cs;
+ let pl;
+ let sp;
+ let dotTravAllowed = pattern.charAt(0) === ".";
+ let dotFileAllowed = options.dot || dotTravAllowed;
+ const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
+ const subPatternStart = (p) => p.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
+ const clearStateChar = () => {
+ if (stateChar) {
+ switch (stateChar) {
+ case "*":
+ re += star;
+ hasMagic = true;
+ break;
+ case "?":
+ re += qmark;
+ hasMagic = true;
+ break;
+ default:
+ re += "\\" + stateChar;
+ break;
+ }
+ this.debug("clearStateChar %j %j", stateChar, re);
+ stateChar = false;
+ }
+ };
+ for (let i = 0, c;i < pattern.length && (c = pattern.charAt(i)); i++) {
+ this.debug("%s\t%s %s %j", pattern, i, re, c);
+ if (escaping) {
+ if (c === "/") {
+ return false;
+ }
+ if (reSpecials[c]) {
+ re += "\\";
+ }
+ re += c;
+ escaping = false;
+ continue;
+ }
+ switch (c) {
+ case "/": {
+ return false;
+ }
+ case "\\":
+ if (inClass && pattern.charAt(i + 1) === "-") {
+ re += c;
+ continue;
+ }
+ clearStateChar();
+ escaping = true;
+ continue;
+ case "?":
+ case "*":
+ case "+":
+ case "@":
+ case "!":
+ this.debug("%s\t%s %s %j <-- stateChar", pattern, i, re, c);
+ if (inClass) {
+ this.debug(" in class");
+ if (c === "!" && i === classStart + 1)
+ c = "^";
+ re += c;
+ continue;
+ }
+ this.debug("call clearStateChar %j", stateChar);
+ clearStateChar();
+ stateChar = c;
+ if (options.noext)
+ clearStateChar();
+ continue;
+ case "(": {
+ if (inClass) {
+ re += "(";
+ continue;
+ }
+ if (!stateChar) {
+ re += "\\(";
+ continue;
+ }
+ const plEntry = {
+ type: stateChar,
+ start: i - 1,
+ reStart: re.length,
+ open: plTypes[stateChar].open,
+ close: plTypes[stateChar].close
+ };
+ this.debug(this.pattern, "\t", plEntry);
+ patternListStack.push(plEntry);
+ re += plEntry.open;
+ if (plEntry.start === 0 && plEntry.type !== "!") {
+ dotTravAllowed = true;
+ re += subPatternStart(pattern.slice(i + 1));
+ }
+ this.debug("plType %j %j", stateChar, re);
+ stateChar = false;
+ continue;
+ }
+ case ")": {
+ const plEntry = patternListStack[patternListStack.length - 1];
+ if (inClass || !plEntry) {
+ re += "\\)";
+ continue;
+ }
+ patternListStack.pop();
+ clearStateChar();
+ hasMagic = true;
+ pl = plEntry;
+ re += pl.close;
+ if (pl.type === "!") {
+ negativeLists.push(Object.assign(pl, { reEnd: re.length }));
+ }
+ continue;
+ }
+ case "|": {
+ const plEntry = patternListStack[patternListStack.length - 1];
+ if (inClass || !plEntry) {
+ re += "\\|";
+ continue;
+ }
+ clearStateChar();
+ re += "|";
+ if (plEntry.start === 0 && plEntry.type !== "!") {
+ dotTravAllowed = true;
+ re += subPatternStart(pattern.slice(i + 1));
+ }
+ continue;
+ }
+ case "[":
+ clearStateChar();
+ if (inClass) {
+ re += "\\" + c;
+ continue;
+ }
+ inClass = true;
+ classStart = i;
+ reClassStart = re.length;
+ re += c;
+ continue;
+ case "]":
+ if (i === classStart + 1 || !inClass) {
+ re += "\\" + c;
+ continue;
+ }
+ cs = pattern.substring(classStart + 1, i);
+ try {
+ RegExp("[" + braExpEscape(charUnescape(cs)) + "]");
+ re += c;
+ } catch (er) {
+ re = re.substring(0, reClassStart) + "(?:$.)";
+ }
+ hasMagic = true;
+ inClass = false;
+ continue;
+ default:
+ clearStateChar();
+ if (reSpecials[c] && !(c === "^" && inClass)) {
+ re += "\\";
+ }
+ re += c;
+ break;
+ }
+ }
+ if (inClass) {
+ cs = pattern.slice(classStart + 1);
+ sp = this.parse(cs, SUBPARSE);
+ re = re.substring(0, reClassStart) + "\\[" + sp[0];
+ hasMagic = hasMagic || sp[1];
+ }
+ for (pl = patternListStack.pop();pl; pl = patternListStack.pop()) {
+ let tail;
+ tail = re.slice(pl.reStart + pl.open.length);
+ this.debug("setting tail", re, pl);
+ tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, (_3, $1, $2) => {
+ if (!$2) {
+ $2 = "\\";
+ }
+ return $1 + $1 + $2 + "|";
+ });
+ this.debug(`tail=%j
+ %s`, tail, tail, pl, re);
+ const t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type;
+ hasMagic = true;
+ re = re.slice(0, pl.reStart) + t + "\\(" + tail;
+ }
+ clearStateChar();
+ if (escaping) {
+ re += "\\\\";
+ }
+ const addPatternStart = addPatternStartSet[re.charAt(0)];
+ for (let n = negativeLists.length - 1;n > -1; n--) {
+ const nl = negativeLists[n];
+ const nlBefore = re.slice(0, nl.reStart);
+ const nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
+ let nlAfter = re.slice(nl.reEnd);
+ const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter;
+ const closeParensBefore = nlBefore.split(")").length;
+ const openParensBefore = nlBefore.split("(").length - closeParensBefore;
+ let cleanAfter = nlAfter;
+ for (let i = 0;i < openParensBefore; i++) {
+ cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
+ }
+ nlAfter = cleanAfter;
+ const dollar = nlAfter === "" && isSub !== SUBPARSE ? "(?:$|\\/)" : "";
+ re = nlBefore + nlFirst + nlAfter + dollar + nlLast;
+ }
+ if (re !== "" && hasMagic) {
+ re = "(?=.)" + re;
+ }
+ if (addPatternStart) {
+ re = patternStart() + re;
+ }
+ if (isSub === SUBPARSE) {
+ return [re, hasMagic];
+ }
+ if (options.nocase && !hasMagic) {
+ hasMagic = pattern.toUpperCase() !== pattern.toLowerCase();
+ }
+ if (!hasMagic) {
+ return globUnescape(pattern);
+ }
+ const flags = options.nocase ? "i" : "";
+ try {
+ return Object.assign(new RegExp("^" + re + "$", flags), {
+ _glob: pattern,
+ _src: re
+ });
+ } catch (er) {
+ return new RegExp("$.");
+ }
+ }
+ makeRe() {
+ if (this.regexp || this.regexp === false)
+ return this.regexp;
+ const set = this.set;
+ if (!set.length) {
+ this.regexp = false;
+ return this.regexp;
+ }
+ const options = this.options;
+ const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
+ const flags = options.nocase ? "i" : "";
+ let re = set.map((pattern) => {
+ pattern = pattern.map((p) => typeof p === "string" ? regExpEscape(p) : p === GLOBSTAR ? GLOBSTAR : p._src).reduce((set2, p) => {
+ if (!(set2[set2.length - 1] === GLOBSTAR && p === GLOBSTAR)) {
+ set2.push(p);
+ }
+ return set2;
+ }, []);
+ pattern.forEach((p, i) => {
+ if (p !== GLOBSTAR || pattern[i - 1] === GLOBSTAR) {
+ return;
+ }
+ if (i === 0) {
+ if (pattern.length > 1) {
+ pattern[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + pattern[i + 1];
+ } else {
+ pattern[i] = twoStar;
+ }
+ } else if (i === pattern.length - 1) {
+ pattern[i - 1] += "(?:\\/|" + twoStar + ")?";
+ } else {
+ pattern[i - 1] += "(?:\\/|\\/" + twoStar + "\\/)" + pattern[i + 1];
+ pattern[i + 1] = GLOBSTAR;
+ }
+ });
+ return pattern.filter((p) => p !== GLOBSTAR).join("/");
+ }).join("|");
+ re = "^(?:" + re + ")$";
+ if (this.negate)
+ re = "^(?!" + re + ").*$";
+ try {
+ this.regexp = new RegExp(re, flags);
+ } catch (ex) {
+ this.regexp = false;
+ }
+ return this.regexp;
+ }
+ match(f, partial = this.partial) {
+ this.debug("match", f, this.pattern);
+ if (this.comment)
+ return false;
+ if (this.empty)
+ return f === "";
+ if (f === "/" && partial)
+ return true;
+ const options = this.options;
+ if (path2.sep !== "/") {
+ f = f.split(path2.sep).join("/");
+ }
+ f = f.split(slashSplit);
+ this.debug(this.pattern, "split", f);
+ const set = this.set;
+ this.debug(this.pattern, "set", set);
+ let filename;
+ for (let i = f.length - 1;i >= 0; i--) {
+ filename = f[i];
+ if (filename)
+ break;
+ }
+ for (let i = 0;i < set.length; i++) {
+ const pattern = set[i];
+ let file = f;
+ if (options.matchBase && pattern.length === 1) {
+ file = [filename];
+ }
+ const hit = this.matchOne(file, pattern, partial);
+ if (hit) {
+ if (options.flipNegate)
+ return true;
+ return !this.negate;
+ }
+ }
+ if (options.flipNegate)
+ return false;
+ return this.negate;
+ }
+ static defaults(def) {
+ return minimatch.defaults(def).Minimatch;
+ }
+ }
+ minimatch.Minimatch = Minimatch;
+});
+
+// node_modules/readdir-glob/index.js
+var require_readdir_glob = __commonJS((exports, module) => {
+ module.exports = readdirGlob;
+ var fs2 = __require("fs");
+ var { EventEmitter } = __require("events");
+ var { Minimatch } = require_minimatch();
+ var { resolve } = __require("path");
+ function readdir(dir, strict) {
+ return new Promise((resolve2, reject) => {
+ fs2.readdir(dir, { withFileTypes: true }, (err, files) => {
+ if (err) {
+ switch (err.code) {
+ case "ENOTDIR":
+ if (strict) {
+ reject(err);
+ } else {
+ resolve2([]);
+ }
+ break;
+ case "ENOTSUP":
+ case "ENOENT":
+ case "ENAMETOOLONG":
+ case "UNKNOWN":
+ resolve2([]);
+ break;
+ case "ELOOP":
+ default:
+ reject(err);
+ break;
+ }
+ } else {
+ resolve2(files);
+ }
+ });
+ });
+ }
+ function stat(file, followSymlinks) {
+ return new Promise((resolve2, reject) => {
+ const statFunc = followSymlinks ? fs2.stat : fs2.lstat;
+ statFunc(file, (err, stats) => {
+ if (err) {
+ switch (err.code) {
+ case "ENOENT":
+ if (followSymlinks) {
+ resolve2(stat(file, false));
+ } else {
+ resolve2(null);
+ }
+ break;
+ default:
+ resolve2(null);
+ break;
+ }
+ } else {
+ resolve2(stats);
+ }
+ });
+ });
+ }
+ async function* exploreWalkAsync(dir, path2, followSymlinks, useStat, shouldSkip, strict) {
+ let files = await readdir(path2 + dir, strict);
+ for (const file of files) {
+ let name = file.name;
+ if (name === undefined) {
+ name = file;
+ useStat = true;
+ }
+ const filename = dir + "/" + name;
+ const relative = filename.slice(1);
+ const absolute = path2 + "/" + relative;
+ let stats = null;
+ if (useStat || followSymlinks) {
+ stats = await stat(absolute, followSymlinks);
+ }
+ if (!stats && file.name !== undefined) {
+ stats = file;
+ }
+ if (stats === null) {
+ stats = { isDirectory: () => false };
+ }
+ if (stats.isDirectory()) {
+ if (!shouldSkip(relative)) {
+ yield { relative, absolute, stats };
+ yield* exploreWalkAsync(filename, path2, followSymlinks, useStat, shouldSkip, false);
+ }
+ } else {
+ yield { relative, absolute, stats };
+ }
+ }
+ }
+ async function* explore(path2, followSymlinks, useStat, shouldSkip) {
+ yield* exploreWalkAsync("", path2, followSymlinks, useStat, shouldSkip, true);
+ }
+ function readOptions(options) {
+ return {
+ pattern: options.pattern,
+ dot: !!options.dot,
+ noglobstar: !!options.noglobstar,
+ matchBase: !!options.matchBase,
+ nocase: !!options.nocase,
+ ignore: options.ignore,
+ skip: options.skip,
+ follow: !!options.follow,
+ stat: !!options.stat,
+ nodir: !!options.nodir,
+ mark: !!options.mark,
+ silent: !!options.silent,
+ absolute: !!options.absolute
+ };
+ }
+
+ class ReaddirGlob extends EventEmitter {
+ constructor(cwd, options, cb) {
+ super();
+ if (typeof options === "function") {
+ cb = options;
+ options = null;
+ }
+ this.options = readOptions(options || {});
+ this.matchers = [];
+ if (this.options.pattern) {
+ const matchers = Array.isArray(this.options.pattern) ? this.options.pattern : [this.options.pattern];
+ this.matchers = matchers.map((m) => new Minimatch(m, {
+ dot: this.options.dot,
+ noglobstar: this.options.noglobstar,
+ matchBase: this.options.matchBase,
+ nocase: this.options.nocase
+ }));
+ }
+ this.ignoreMatchers = [];
+ if (this.options.ignore) {
+ const ignorePatterns = Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore];
+ this.ignoreMatchers = ignorePatterns.map((ignore) => new Minimatch(ignore, { dot: true }));
+ }
+ this.skipMatchers = [];
+ if (this.options.skip) {
+ const skipPatterns = Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip];
+ this.skipMatchers = skipPatterns.map((skip) => new Minimatch(skip, { dot: true }));
+ }
+ this.iterator = explore(resolve(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
+ this.paused = false;
+ this.inactive = false;
+ this.aborted = false;
+ if (cb) {
+ this._matches = [];
+ this.on("match", (match) => this._matches.push(this.options.absolute ? match.absolute : match.relative));
+ this.on("error", (err) => cb(err));
+ this.on("end", () => cb(null, this._matches));
+ }
+ setTimeout(() => this._next(), 0);
+ }
+ _shouldSkipDirectory(relative) {
+ return this.skipMatchers.some((m) => m.match(relative));
+ }
+ _fileMatches(relative, isDirectory) {
+ const file = relative + (isDirectory ? "/" : "");
+ return (this.matchers.length === 0 || this.matchers.some((m) => m.match(file))) && !this.ignoreMatchers.some((m) => m.match(file)) && (!this.options.nodir || !isDirectory);
+ }
+ _next() {
+ if (!this.paused && !this.aborted) {
+ this.iterator.next().then((obj) => {
+ if (!obj.done) {
+ const isDirectory = obj.value.stats.isDirectory();
+ if (this._fileMatches(obj.value.relative, isDirectory)) {
+ let relative = obj.value.relative;
+ let absolute = obj.value.absolute;
+ if (this.options.mark && isDirectory) {
+ relative += "/";
+ absolute += "/";
+ }
+ if (this.options.stat) {
+ this.emit("match", { relative, absolute, stat: obj.value.stats });
+ } else {
+ this.emit("match", { relative, absolute });
+ }
+ }
+ this._next(this.iterator);
+ } else {
+ this.emit("end");
+ }
+ }).catch((err) => {
+ this.abort();
+ this.emit("error", err);
+ if (!err.code && !this.options.silent) {
+ console.error(err);
+ }
+ });
+ } else {
+ this.inactive = true;
+ }
+ }
+ abort() {
+ this.aborted = true;
+ }
+ pause() {
+ this.paused = true;
+ }
+ resume() {
+ this.paused = false;
+ if (this.inactive) {
+ this.inactive = false;
+ this._next();
+ }
+ }
+ }
+ function readdirGlob(pattern, options, cb) {
+ return new ReaddirGlob(pattern, options, cb);
+ }
+ readdirGlob.ReaddirGlob = ReaddirGlob;
+});
+
+// node_modules/async/dist/async.js
+var require_async2 = __commonJS((exports, module) => {
+ (function(global3, factory) {
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global3 = typeof globalThis !== "undefined" ? globalThis : global3 || self, factory(global3.async = {}));
+ })(exports, function(exports2) {
+ function apply(fn, ...args) {
+ return (...callArgs) => fn(...args, ...callArgs);
+ }
+ function initialParams(fn) {
+ return function(...args) {
+ var callback = args.pop();
+ return fn.call(this, args, callback);
+ };
+ }
+ var hasQueueMicrotask = typeof queueMicrotask === "function" && queueMicrotask;
+ var hasSetImmediate = typeof setImmediate === "function" && setImmediate;
+ var hasNextTick = typeof process === "object" && typeof process.nextTick === "function";
+ function fallback(fn) {
+ setTimeout(fn, 0);
+ }
+ function wrap(defer2) {
+ return (fn, ...args) => defer2(() => fn(...args));
+ }
+ var _defer$1;
+ if (hasQueueMicrotask) {
+ _defer$1 = queueMicrotask;
+ } else if (hasSetImmediate) {
+ _defer$1 = setImmediate;
+ } else if (hasNextTick) {
+ _defer$1 = process.nextTick;
+ } else {
+ _defer$1 = fallback;
+ }
+ var setImmediate$1 = wrap(_defer$1);
+ function asyncify(func) {
+ if (isAsync(func)) {
+ return function(...args) {
+ const callback = args.pop();
+ const promise = func.apply(this, args);
+ return handlePromise(promise, callback);
+ };
+ }
+ return initialParams(function(args, callback) {
+ var result;
+ try {
+ result = func.apply(this, args);
+ } catch (e) {
+ return callback(e);
+ }
+ if (result && typeof result.then === "function") {
+ return handlePromise(result, callback);
+ } else {
+ callback(null, result);
+ }
+ });
+ }
+ function handlePromise(promise, callback) {
+ return promise.then((value) => {
+ invokeCallback(callback, null, value);
+ }, (err) => {
+ invokeCallback(callback, err && (err instanceof Error || err.message) ? err : new Error(err));
+ });
+ }
+ function invokeCallback(callback, error, value) {
+ try {
+ callback(error, value);
+ } catch (err) {
+ setImmediate$1((e) => {
+ throw e;
+ }, err);
+ }
+ }
+ function isAsync(fn) {
+ return fn[Symbol.toStringTag] === "AsyncFunction";
+ }
+ function isAsyncGenerator(fn) {
+ return fn[Symbol.toStringTag] === "AsyncGenerator";
+ }
+ function isAsyncIterable(obj) {
+ return typeof obj[Symbol.asyncIterator] === "function";
+ }
+ function wrapAsync(asyncFn) {
+ if (typeof asyncFn !== "function")
+ throw new Error("expected a function");
+ return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn;
+ }
+ function awaitify(asyncFn, arity) {
+ if (!arity)
+ arity = asyncFn.length;
+ if (!arity)
+ throw new Error("arity is undefined");
+ function awaitable(...args) {
+ if (typeof args[arity - 1] === "function") {
+ return asyncFn.apply(this, args);
+ }
+ return new Promise((resolve, reject2) => {
+ args[arity - 1] = (err, ...cbArgs) => {
+ if (err)
+ return reject2(err);
+ resolve(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
+ };
+ asyncFn.apply(this, args);
+ });
+ }
+ return awaitable;
+ }
+ function applyEach$1(eachfn) {
+ return function applyEach(fns, ...callArgs) {
+ const go = awaitify(function(callback) {
+ var that = this;
+ return eachfn(fns, (fn, cb) => {
+ wrapAsync(fn).apply(that, callArgs.concat(cb));
+ }, callback);
+ });
+ return go;
+ };
+ }
+ function _asyncMap(eachfn, arr, iteratee, callback) {
+ arr = arr || [];
+ var results = [];
+ var counter = 0;
+ var _iteratee = wrapAsync(iteratee);
+ return eachfn(arr, (value, _3, iterCb) => {
+ var index2 = counter++;
+ _iteratee(value, (err, v) => {
+ results[index2] = v;
+ iterCb(err);
+ });
+ }, (err) => {
+ callback(err, results);
+ });
+ }
+ function isArrayLike(value) {
+ return value && typeof value.length === "number" && value.length >= 0 && value.length % 1 === 0;
+ }
+ const breakLoop = {};
+ function once(fn) {
+ function wrapper(...args) {
+ if (fn === null)
+ return;
+ var callFn = fn;
+ fn = null;
+ callFn.apply(this, args);
+ }
+ Object.assign(wrapper, fn);
+ return wrapper;
+ }
+ function getIterator(coll) {
+ return coll[Symbol.iterator] && coll[Symbol.iterator]();
+ }
+ function createArrayIterator(coll) {
+ var i = -1;
+ var len = coll.length;
+ return function next() {
+ return ++i < len ? { value: coll[i], key: i } : null;
+ };
+ }
+ function createES2015Iterator(iterator) {
+ var i = -1;
+ return function next() {
+ var item = iterator.next();
+ if (item.done)
+ return null;
+ i++;
+ return { value: item.value, key: i };
+ };
+ }
+ function createObjectIterator(obj) {
+ var okeys = obj ? Object.keys(obj) : [];
+ var i = -1;
+ var len = okeys.length;
+ return function next() {
+ var key2 = okeys[++i];
+ if (key2 === "__proto__") {
+ return next();
+ }
+ return i < len ? { value: obj[key2], key: key2 } : null;
+ };
+ }
+ function createIterator(coll) {
+ if (isArrayLike(coll)) {
+ return createArrayIterator(coll);
+ }
+ var iterator = getIterator(coll);
+ return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);
+ }
+ function onlyOnce(fn) {
+ return function(...args) {
+ if (fn === null)
+ throw new Error("Callback was already called.");
+ var callFn = fn;
+ fn = null;
+ callFn.apply(this, args);
+ };
+ }
+ function asyncEachOfLimit(generator, limit, iteratee, callback) {
+ let done = false;
+ let canceled = false;
+ let awaiting = false;
+ let running = 0;
+ let idx = 0;
+ function replenish() {
+ if (running >= limit || awaiting || done)
+ return;
+ awaiting = true;
+ generator.next().then(({ value, done: iterDone }) => {
+ if (canceled || done)
+ return;
+ awaiting = false;
+ if (iterDone) {
+ done = true;
+ if (running <= 0) {
+ callback(null);
+ }
+ return;
+ }
+ running++;
+ iteratee(value, idx, iterateeCallback);
+ idx++;
+ replenish();
+ }).catch(handleError);
+ }
+ function iterateeCallback(err, result) {
+ running -= 1;
+ if (canceled)
+ return;
+ if (err)
+ return handleError(err);
+ if (err === false) {
+ done = true;
+ canceled = true;
+ return;
+ }
+ if (result === breakLoop || done && running <= 0) {
+ done = true;
+ return callback(null);
+ }
+ replenish();
+ }
+ function handleError(err) {
+ if (canceled)
+ return;
+ awaiting = false;
+ done = true;
+ callback(err);
+ }
+ replenish();
+ }
+ var eachOfLimit$2 = (limit) => {
+ return (obj, iteratee, callback) => {
+ callback = once(callback);
+ if (limit <= 0) {
+ throw new RangeError("concurrency limit cannot be less than 1");
+ }
+ if (!obj) {
+ return callback(null);
+ }
+ if (isAsyncGenerator(obj)) {
+ return asyncEachOfLimit(obj, limit, iteratee, callback);
+ }
+ if (isAsyncIterable(obj)) {
+ return asyncEachOfLimit(obj[Symbol.asyncIterator](), limit, iteratee, callback);
+ }
+ var nextElem = createIterator(obj);
+ var done = false;
+ var canceled = false;
+ var running = 0;
+ var looping = false;
+ function iterateeCallback(err, value) {
+ if (canceled)
+ return;
+ running -= 1;
+ if (err) {
+ done = true;
+ callback(err);
+ } else if (err === false) {
+ done = true;
+ canceled = true;
+ } else if (value === breakLoop || done && running <= 0) {
+ done = true;
+ return callback(null);
+ } else if (!looping) {
+ replenish();
+ }
+ }
+ function replenish() {
+ looping = true;
+ while (running < limit && !done) {
+ var elem = nextElem();
+ if (elem === null) {
+ done = true;
+ if (running <= 0) {
+ callback(null);
+ }
+ return;
+ }
+ running += 1;
+ iteratee(elem.value, elem.key, onlyOnce(iterateeCallback));
+ }
+ looping = false;
+ }
+ replenish();
+ };
+ };
+ function eachOfLimit(coll, limit, iteratee, callback) {
+ return eachOfLimit$2(limit)(coll, wrapAsync(iteratee), callback);
+ }
+ var eachOfLimit$1 = awaitify(eachOfLimit, 4);
+ function eachOfArrayLike(coll, iteratee, callback) {
+ callback = once(callback);
+ var index2 = 0, completed = 0, { length } = coll, canceled = false;
+ if (length === 0) {
+ callback(null);
+ }
+ function iteratorCallback(err, value) {
+ if (err === false) {
+ canceled = true;
+ }
+ if (canceled === true)
+ return;
+ if (err) {
+ callback(err);
+ } else if (++completed === length || value === breakLoop) {
+ callback(null);
+ }
+ }
+ for (;index2 < length; index2++) {
+ iteratee(coll[index2], index2, onlyOnce(iteratorCallback));
+ }
+ }
+ function eachOfGeneric(coll, iteratee, callback) {
+ return eachOfLimit$1(coll, Infinity, iteratee, callback);
+ }
+ function eachOf(coll, iteratee, callback) {
+ var eachOfImplementation = isArrayLike(coll) ? eachOfArrayLike : eachOfGeneric;
+ return eachOfImplementation(coll, wrapAsync(iteratee), callback);
+ }
+ var eachOf$1 = awaitify(eachOf, 3);
+ function map(coll, iteratee, callback) {
+ return _asyncMap(eachOf$1, coll, iteratee, callback);
+ }
+ var map$1 = awaitify(map, 3);
+ var applyEach = applyEach$1(map$1);
+ function eachOfSeries(coll, iteratee, callback) {
+ return eachOfLimit$1(coll, 1, iteratee, callback);
+ }
+ var eachOfSeries$1 = awaitify(eachOfSeries, 3);
+ function mapSeries(coll, iteratee, callback) {
+ return _asyncMap(eachOfSeries$1, coll, iteratee, callback);
+ }
+ var mapSeries$1 = awaitify(mapSeries, 3);
+ var applyEachSeries = applyEach$1(mapSeries$1);
+ const PROMISE_SYMBOL = Symbol("promiseCallback");
+ function promiseCallback() {
+ let resolve, reject2;
+ function callback(err, ...args) {
+ if (err)
+ return reject2(err);
+ resolve(args.length > 1 ? args : args[0]);
+ }
+ callback[PROMISE_SYMBOL] = new Promise((res, rej) => {
+ resolve = res, reject2 = rej;
+ });
+ return callback;
+ }
+ function auto(tasks, concurrency, callback) {
+ if (typeof concurrency !== "number") {
+ callback = concurrency;
+ concurrency = null;
+ }
+ callback = once(callback || promiseCallback());
+ var numTasks = Object.keys(tasks).length;
+ if (!numTasks) {
+ return callback(null);
+ }
+ if (!concurrency) {
+ concurrency = numTasks;
+ }
+ var results = {};
+ var runningTasks = 0;
+ var canceled = false;
+ var hasError = false;
+ var listeners = Object.create(null);
+ var readyTasks = [];
+ var readyToCheck = [];
+ var uncheckedDependencies = {};
+ Object.keys(tasks).forEach((key2) => {
+ var task = tasks[key2];
+ if (!Array.isArray(task)) {
+ enqueueTask(key2, [task]);
+ readyToCheck.push(key2);
+ return;
+ }
+ var dependencies = task.slice(0, task.length - 1);
+ var remainingDependencies = dependencies.length;
+ if (remainingDependencies === 0) {
+ enqueueTask(key2, task);
+ readyToCheck.push(key2);
+ return;
+ }
+ uncheckedDependencies[key2] = remainingDependencies;
+ dependencies.forEach((dependencyName) => {
+ if (!tasks[dependencyName]) {
+ throw new Error("async.auto task `" + key2 + "` has a non-existent dependency `" + dependencyName + "` in " + dependencies.join(", "));
+ }
+ addListener(dependencyName, () => {
+ remainingDependencies--;
+ if (remainingDependencies === 0) {
+ enqueueTask(key2, task);
+ }
+ });
+ });
+ });
+ checkForDeadlocks();
+ processQueue();
+ function enqueueTask(key2, task) {
+ readyTasks.push(() => runTask(key2, task));
+ }
+ function processQueue() {
+ if (canceled)
+ return;
+ if (readyTasks.length === 0 && runningTasks === 0) {
+ return callback(null, results);
+ }
+ while (readyTasks.length && runningTasks < concurrency) {
+ var run2 = readyTasks.shift();
+ run2();
+ }
+ }
+ function addListener(taskName, fn) {
+ var taskListeners = listeners[taskName];
+ if (!taskListeners) {
+ taskListeners = listeners[taskName] = [];
+ }
+ taskListeners.push(fn);
+ }
+ function taskComplete(taskName) {
+ var taskListeners = listeners[taskName] || [];
+ taskListeners.forEach((fn) => fn());
+ processQueue();
+ }
+ function runTask(key2, task) {
+ if (hasError)
+ return;
+ var taskCallback = onlyOnce((err, ...result) => {
+ runningTasks--;
+ if (err === false) {
+ canceled = true;
+ return;
+ }
+ if (result.length < 2) {
+ [result] = result;
+ }
+ if (err) {
+ var safeResults = {};
+ Object.keys(results).forEach((rkey) => {
+ safeResults[rkey] = results[rkey];
+ });
+ safeResults[key2] = result;
+ hasError = true;
+ listeners = Object.create(null);
+ if (canceled)
+ return;
+ callback(err, safeResults);
+ } else {
+ results[key2] = result;
+ taskComplete(key2);
+ }
+ });
+ runningTasks++;
+ var taskFn = wrapAsync(task[task.length - 1]);
+ if (task.length > 1) {
+ taskFn(results, taskCallback);
+ } else {
+ taskFn(taskCallback);
+ }
+ }
+ function checkForDeadlocks() {
+ var currentTask;
+ var counter = 0;
+ while (readyToCheck.length) {
+ currentTask = readyToCheck.pop();
+ counter++;
+ getDependents(currentTask).forEach((dependent) => {
+ if (--uncheckedDependencies[dependent] === 0) {
+ readyToCheck.push(dependent);
+ }
+ });
+ }
+ if (counter !== numTasks) {
+ throw new Error("async.auto cannot execute tasks due to a recursive dependency");
+ }
+ }
+ function getDependents(taskName) {
+ var result = [];
+ Object.keys(tasks).forEach((key2) => {
+ const task = tasks[key2];
+ if (Array.isArray(task) && task.indexOf(taskName) >= 0) {
+ result.push(key2);
+ }
+ });
+ return result;
+ }
+ return callback[PROMISE_SYMBOL];
+ }
+ var FN_ARGS = /^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/;
+ var ARROW_FN_ARGS = /^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/;
+ var FN_ARG_SPLIT = /,/;
+ var FN_ARG = /(=.+)?(\s*)$/;
+ function stripComments(string2) {
+ let stripped = "";
+ let index2 = 0;
+ let endBlockComment = string2.indexOf("*/");
+ while (index2 < string2.length) {
+ if (string2[index2] === "/" && string2[index2 + 1] === "/") {
+ let endIndex = string2.indexOf(`
+`, index2);
+ index2 = endIndex === -1 ? string2.length : endIndex;
+ } else if (endBlockComment !== -1 && string2[index2] === "/" && string2[index2 + 1] === "*") {
+ let endIndex = string2.indexOf("*/", index2);
+ if (endIndex !== -1) {
+ index2 = endIndex + 2;
+ endBlockComment = string2.indexOf("*/", index2);
+ } else {
+ stripped += string2[index2];
+ index2++;
+ }
+ } else {
+ stripped += string2[index2];
+ index2++;
+ }
+ }
+ return stripped;
+ }
+ function parseParams(func) {
+ const src = stripComments(func.toString());
+ let match = src.match(FN_ARGS);
+ if (!match) {
+ match = src.match(ARROW_FN_ARGS);
+ }
+ if (!match)
+ throw new Error(`could not parse args in autoInject
+Source:
+` + src);
+ let [, args] = match;
+ return args.replace(/\s/g, "").split(FN_ARG_SPLIT).map((arg) => arg.replace(FN_ARG, "").trim());
+ }
+ function autoInject(tasks, callback) {
+ var newTasks = {};
+ Object.keys(tasks).forEach((key2) => {
+ var taskFn = tasks[key2];
+ var params;
+ var fnIsAsync = isAsync(taskFn);
+ var hasNoDeps = !fnIsAsync && taskFn.length === 1 || fnIsAsync && taskFn.length === 0;
+ if (Array.isArray(taskFn)) {
+ params = [...taskFn];
+ taskFn = params.pop();
+ newTasks[key2] = params.concat(params.length > 0 ? newTask : taskFn);
+ } else if (hasNoDeps) {
+ newTasks[key2] = taskFn;
+ } else {
+ params = parseParams(taskFn);
+ if (taskFn.length === 0 && !fnIsAsync && params.length === 0) {
+ throw new Error("autoInject task functions require explicit parameters.");
+ }
+ if (!fnIsAsync)
+ params.pop();
+ newTasks[key2] = params.concat(newTask);
+ }
+ function newTask(results, taskCb) {
+ var newArgs = params.map((name) => results[name]);
+ newArgs.push(taskCb);
+ wrapAsync(taskFn)(...newArgs);
+ }
+ });
+ return auto(newTasks, callback);
+ }
+
+ class DLL {
+ constructor() {
+ this.head = this.tail = null;
+ this.length = 0;
+ }
+ removeLink(node) {
+ if (node.prev)
+ node.prev.next = node.next;
+ else
+ this.head = node.next;
+ if (node.next)
+ node.next.prev = node.prev;
+ else
+ this.tail = node.prev;
+ node.prev = node.next = null;
+ this.length -= 1;
+ return node;
+ }
+ empty() {
+ while (this.head)
+ this.shift();
+ return this;
+ }
+ insertAfter(node, newNode) {
+ newNode.prev = node;
+ newNode.next = node.next;
+ if (node.next)
+ node.next.prev = newNode;
+ else
+ this.tail = newNode;
+ node.next = newNode;
+ this.length += 1;
+ }
+ insertBefore(node, newNode) {
+ newNode.prev = node.prev;
+ newNode.next = node;
+ if (node.prev)
+ node.prev.next = newNode;
+ else
+ this.head = newNode;
+ node.prev = newNode;
+ this.length += 1;
+ }
+ unshift(node) {
+ if (this.head)
+ this.insertBefore(this.head, node);
+ else
+ setInitial(this, node);
+ }
+ push(node) {
+ if (this.tail)
+ this.insertAfter(this.tail, node);
+ else
+ setInitial(this, node);
+ }
+ shift() {
+ return this.head && this.removeLink(this.head);
+ }
+ pop() {
+ return this.tail && this.removeLink(this.tail);
+ }
+ toArray() {
+ return [...this];
+ }
+ *[Symbol.iterator]() {
+ var cur = this.head;
+ while (cur) {
+ yield cur.data;
+ cur = cur.next;
+ }
+ }
+ remove(testFn) {
+ var curr = this.head;
+ while (curr) {
+ var { next } = curr;
+ if (testFn(curr)) {
+ this.removeLink(curr);
+ }
+ curr = next;
+ }
+ return this;
+ }
+ }
+ function setInitial(dll, node) {
+ dll.length = 1;
+ dll.head = dll.tail = node;
+ }
+ function queue$1(worker, concurrency, payload) {
+ if (concurrency == null) {
+ concurrency = 1;
+ } else if (concurrency === 0) {
+ throw new RangeError("Concurrency must not be zero");
+ }
+ var _worker = wrapAsync(worker);
+ var numRunning = 0;
+ var workersList = [];
+ const events = {
+ error: [],
+ drain: [],
+ saturated: [],
+ unsaturated: [],
+ empty: []
+ };
+ function on(event, handler) {
+ events[event].push(handler);
+ }
+ function once2(event, handler) {
+ const handleAndRemove = (...args) => {
+ off(event, handleAndRemove);
+ handler(...args);
+ };
+ events[event].push(handleAndRemove);
+ }
+ function off(event, handler) {
+ if (!event)
+ return Object.keys(events).forEach((ev) => events[ev] = []);
+ if (!handler)
+ return events[event] = [];
+ events[event] = events[event].filter((ev) => ev !== handler);
+ }
+ function trigger(event, ...args) {
+ events[event].forEach((handler) => handler(...args));
+ }
+ var processingScheduled = false;
+ function _insert(data, insertAtFront, rejectOnError, callback) {
+ if (callback != null && typeof callback !== "function") {
+ throw new Error("task callback must be a function");
+ }
+ q.started = true;
+ var res, rej;
+ function promiseCallback2(err, ...args) {
+ if (err)
+ return rejectOnError ? rej(err) : res();
+ if (args.length <= 1)
+ return res(args[0]);
+ res(args);
+ }
+ var item = q._createTaskItem(data, rejectOnError ? promiseCallback2 : callback || promiseCallback2);
+ if (insertAtFront) {
+ q._tasks.unshift(item);
+ } else {
+ q._tasks.push(item);
+ }
+ if (!processingScheduled) {
+ processingScheduled = true;
+ setImmediate$1(() => {
+ processingScheduled = false;
+ q.process();
+ });
+ }
+ if (rejectOnError || !callback) {
+ return new Promise((resolve, reject2) => {
+ res = resolve;
+ rej = reject2;
+ });
+ }
+ }
+ function _createCB(tasks) {
+ return function(err, ...args) {
+ numRunning -= 1;
+ for (var i = 0, l = tasks.length;i < l; i++) {
+ var task = tasks[i];
+ var index2 = workersList.indexOf(task);
+ if (index2 === 0) {
+ workersList.shift();
+ } else if (index2 > 0) {
+ workersList.splice(index2, 1);
+ }
+ task.callback(err, ...args);
+ if (err != null) {
+ trigger("error", err, task.data);
+ }
+ }
+ if (numRunning <= q.concurrency - q.buffer) {
+ trigger("unsaturated");
+ }
+ if (q.idle()) {
+ trigger("drain");
+ }
+ q.process();
+ };
+ }
+ function _maybeDrain(data) {
+ if (data.length === 0 && q.idle()) {
+ setImmediate$1(() => trigger("drain"));
+ return true;
+ }
+ return false;
+ }
+ const eventMethod = (name) => (handler) => {
+ if (!handler) {
+ return new Promise((resolve, reject2) => {
+ once2(name, (err, data) => {
+ if (err)
+ return reject2(err);
+ resolve(data);
+ });
+ });
+ }
+ off(name);
+ on(name, handler);
+ };
+ var isProcessing = false;
+ var q = {
+ _tasks: new DLL,
+ _createTaskItem(data, callback) {
+ return {
+ data,
+ callback
+ };
+ },
+ *[Symbol.iterator]() {
+ yield* q._tasks[Symbol.iterator]();
+ },
+ concurrency,
+ payload,
+ buffer: concurrency / 4,
+ started: false,
+ paused: false,
+ push(data, callback) {
+ if (Array.isArray(data)) {
+ if (_maybeDrain(data))
+ return;
+ return data.map((datum) => _insert(datum, false, false, callback));
+ }
+ return _insert(data, false, false, callback);
+ },
+ pushAsync(data, callback) {
+ if (Array.isArray(data)) {
+ if (_maybeDrain(data))
+ return;
+ return data.map((datum) => _insert(datum, false, true, callback));
+ }
+ return _insert(data, false, true, callback);
+ },
+ kill() {
+ off();
+ q._tasks.empty();
+ },
+ unshift(data, callback) {
+ if (Array.isArray(data)) {
+ if (_maybeDrain(data))
+ return;
+ return data.map((datum) => _insert(datum, true, false, callback));
+ }
+ return _insert(data, true, false, callback);
+ },
+ unshiftAsync(data, callback) {
+ if (Array.isArray(data)) {
+ if (_maybeDrain(data))
+ return;
+ return data.map((datum) => _insert(datum, true, true, callback));
+ }
+ return _insert(data, true, true, callback);
+ },
+ remove(testFn) {
+ q._tasks.remove(testFn);
+ },
+ process() {
+ if (isProcessing) {
+ return;
+ }
+ isProcessing = true;
+ while (!q.paused && numRunning < q.concurrency && q._tasks.length) {
+ var tasks = [], data = [];
+ var l = q._tasks.length;
+ if (q.payload)
+ l = Math.min(l, q.payload);
+ for (var i = 0;i < l; i++) {
+ var node = q._tasks.shift();
+ tasks.push(node);
+ workersList.push(node);
+ data.push(node.data);
+ }
+ numRunning += 1;
+ if (q._tasks.length === 0) {
+ trigger("empty");
+ }
+ if (numRunning === q.concurrency) {
+ trigger("saturated");
+ }
+ var cb = onlyOnce(_createCB(tasks));
+ _worker(data, cb);
+ }
+ isProcessing = false;
+ },
+ length() {
+ return q._tasks.length;
+ },
+ running() {
+ return numRunning;
+ },
+ workersList() {
+ return workersList;
+ },
+ idle() {
+ return q._tasks.length + numRunning === 0;
+ },
+ pause() {
+ q.paused = true;
+ },
+ resume() {
+ if (q.paused === false) {
+ return;
+ }
+ q.paused = false;
+ setImmediate$1(q.process);
+ }
+ };
+ Object.defineProperties(q, {
+ saturated: {
+ writable: false,
+ value: eventMethod("saturated")
+ },
+ unsaturated: {
+ writable: false,
+ value: eventMethod("unsaturated")
+ },
+ empty: {
+ writable: false,
+ value: eventMethod("empty")
+ },
+ drain: {
+ writable: false,
+ value: eventMethod("drain")
+ },
+ error: {
+ writable: false,
+ value: eventMethod("error")
+ }
+ });
+ return q;
+ }
+ function cargo$1(worker, payload) {
+ return queue$1(worker, 1, payload);
+ }
+ function cargo(worker, concurrency, payload) {
+ return queue$1(worker, concurrency, payload);
+ }
+ function reduce2(coll, memo, iteratee, callback) {
+ callback = once(callback);
+ var _iteratee = wrapAsync(iteratee);
+ return eachOfSeries$1(coll, (x, i, iterCb) => {
+ _iteratee(memo, x, (err, v) => {
+ memo = v;
+ iterCb(err);
+ });
+ }, (err) => callback(err, memo));
+ }
+ var reduce$1 = awaitify(reduce2, 4);
+ function seq(...functions) {
+ var _functions = functions.map(wrapAsync);
+ return function(...args) {
+ var that = this;
+ var cb = args[args.length - 1];
+ if (typeof cb == "function") {
+ args.pop();
+ } else {
+ cb = promiseCallback();
+ }
+ reduce$1(_functions, args, (newargs, fn, iterCb) => {
+ fn.apply(that, newargs.concat((err, ...nextargs) => {
+ iterCb(err, nextargs);
+ }));
+ }, (err, results) => cb(err, ...results));
+ return cb[PROMISE_SYMBOL];
+ };
+ }
+ function compose(...args) {
+ return seq(...args.reverse());
+ }
+ function mapLimit(coll, limit, iteratee, callback) {
+ return _asyncMap(eachOfLimit$2(limit), coll, iteratee, callback);
+ }
+ var mapLimit$1 = awaitify(mapLimit, 4);
+ function concatLimit(coll, limit, iteratee, callback) {
+ var _iteratee = wrapAsync(iteratee);
+ return mapLimit$1(coll, limit, (val, iterCb) => {
+ _iteratee(val, (err, ...args) => {
+ if (err)
+ return iterCb(err);
+ return iterCb(err, args);
+ });
+ }, (err, mapResults) => {
+ var result = [];
+ for (var i = 0;i < mapResults.length; i++) {
+ if (mapResults[i]) {
+ result = result.concat(...mapResults[i]);
+ }
+ }
+ return callback(err, result);
+ });
+ }
+ var concatLimit$1 = awaitify(concatLimit, 4);
+ function concat(coll, iteratee, callback) {
+ return concatLimit$1(coll, Infinity, iteratee, callback);
+ }
+ var concat$1 = awaitify(concat, 3);
+ function concatSeries(coll, iteratee, callback) {
+ return concatLimit$1(coll, 1, iteratee, callback);
+ }
+ var concatSeries$1 = awaitify(concatSeries, 3);
+ function constant$1(...args) {
+ return function(...ignoredArgs) {
+ var callback = ignoredArgs.pop();
+ return callback(null, ...args);
+ };
+ }
+ function _createTester(check2, getResult) {
+ return (eachfn, arr, _iteratee, cb) => {
+ var testPassed = false;
+ var testResult;
+ const iteratee = wrapAsync(_iteratee);
+ eachfn(arr, (value, _3, callback) => {
+ iteratee(value, (err, result) => {
+ if (err || err === false)
+ return callback(err);
+ if (check2(result) && !testResult) {
+ testPassed = true;
+ testResult = getResult(true, value);
+ return callback(null, breakLoop);
+ }
+ callback();
+ });
+ }, (err) => {
+ if (err)
+ return cb(err);
+ cb(null, testPassed ? testResult : getResult(false));
+ });
+ };
+ }
+ function detect(coll, iteratee, callback) {
+ return _createTester((bool) => bool, (res, item) => item)(eachOf$1, coll, iteratee, callback);
+ }
+ var detect$1 = awaitify(detect, 3);
+ function detectLimit(coll, limit, iteratee, callback) {
+ return _createTester((bool) => bool, (res, item) => item)(eachOfLimit$2(limit), coll, iteratee, callback);
+ }
+ var detectLimit$1 = awaitify(detectLimit, 4);
+ function detectSeries(coll, iteratee, callback) {
+ return _createTester((bool) => bool, (res, item) => item)(eachOfLimit$2(1), coll, iteratee, callback);
+ }
+ var detectSeries$1 = awaitify(detectSeries, 3);
+ function consoleFunc(name) {
+ return (fn, ...args) => wrapAsync(fn)(...args, (err, ...resultArgs) => {
+ if (typeof console === "object") {
+ if (err) {
+ if (console.error) {
+ console.error(err);
+ }
+ } else if (console[name]) {
+ resultArgs.forEach((x) => console[name](x));
+ }
+ }
+ });
+ }
+ var dir = consoleFunc("dir");
+ function doWhilst(iteratee, test, callback) {
+ callback = onlyOnce(callback);
+ var _fn = wrapAsync(iteratee);
+ var _test = wrapAsync(test);
+ var results;
+ function next(err, ...args) {
+ if (err)
+ return callback(err);
+ if (err === false)
+ return;
+ results = args;
+ _test(...args, check2);
+ }
+ function check2(err, truth) {
+ if (err)
+ return callback(err);
+ if (err === false)
+ return;
+ if (!truth)
+ return callback(null, ...results);
+ _fn(next);
+ }
+ return check2(null, true);
+ }
+ var doWhilst$1 = awaitify(doWhilst, 3);
+ function doUntil(iteratee, test, callback) {
+ const _test = wrapAsync(test);
+ return doWhilst$1(iteratee, (...args) => {
+ const cb = args.pop();
+ _test(...args, (err, truth) => cb(err, !truth));
+ }, callback);
+ }
+ function _withoutIndex(iteratee) {
+ return (value, index2, callback) => iteratee(value, callback);
+ }
+ function eachLimit$2(coll, iteratee, callback) {
+ return eachOf$1(coll, _withoutIndex(wrapAsync(iteratee)), callback);
+ }
+ var each = awaitify(eachLimit$2, 3);
+ function eachLimit(coll, limit, iteratee, callback) {
+ return eachOfLimit$2(limit)(coll, _withoutIndex(wrapAsync(iteratee)), callback);
+ }
+ var eachLimit$1 = awaitify(eachLimit, 4);
+ function eachSeries(coll, iteratee, callback) {
+ return eachLimit$1(coll, 1, iteratee, callback);
+ }
+ var eachSeries$1 = awaitify(eachSeries, 3);
+ function ensureAsync(fn) {
+ if (isAsync(fn))
+ return fn;
+ return function(...args) {
+ var callback = args.pop();
+ var sync = true;
+ args.push((...innerArgs) => {
+ if (sync) {
+ setImmediate$1(() => callback(...innerArgs));
+ } else {
+ callback(...innerArgs);
+ }
+ });
+ fn.apply(this, args);
+ sync = false;
+ };
+ }
+ function every(coll, iteratee, callback) {
+ return _createTester((bool) => !bool, (res) => !res)(eachOf$1, coll, iteratee, callback);
+ }
+ var every$1 = awaitify(every, 3);
+ function everyLimit(coll, limit, iteratee, callback) {
+ return _createTester((bool) => !bool, (res) => !res)(eachOfLimit$2(limit), coll, iteratee, callback);
+ }
+ var everyLimit$1 = awaitify(everyLimit, 4);
+ function everySeries(coll, iteratee, callback) {
+ return _createTester((bool) => !bool, (res) => !res)(eachOfSeries$1, coll, iteratee, callback);
+ }
+ var everySeries$1 = awaitify(everySeries, 3);
+ function filterArray(eachfn, arr, iteratee, callback) {
+ var truthValues = new Array(arr.length);
+ eachfn(arr, (x, index2, iterCb) => {
+ iteratee(x, (err, v) => {
+ truthValues[index2] = !!v;
+ iterCb(err);
+ });
+ }, (err) => {
+ if (err)
+ return callback(err);
+ var results = [];
+ for (var i = 0;i < arr.length; i++) {
+ if (truthValues[i])
+ results.push(arr[i]);
+ }
+ callback(null, results);
+ });
+ }
+ function filterGeneric(eachfn, coll, iteratee, callback) {
+ var results = [];
+ eachfn(coll, (x, index2, iterCb) => {
+ iteratee(x, (err, v) => {
+ if (err)
+ return iterCb(err);
+ if (v) {
+ results.push({ index: index2, value: x });
+ }
+ iterCb(err);
+ });
+ }, (err) => {
+ if (err)
+ return callback(err);
+ callback(null, results.sort((a, b) => a.index - b.index).map((v) => v.value));
+ });
+ }
+ function _filter(eachfn, coll, iteratee, callback) {
+ var filter3 = isArrayLike(coll) ? filterArray : filterGeneric;
+ return filter3(eachfn, coll, wrapAsync(iteratee), callback);
+ }
+ function filter2(coll, iteratee, callback) {
+ return _filter(eachOf$1, coll, iteratee, callback);
+ }
+ var filter$1 = awaitify(filter2, 3);
+ function filterLimit(coll, limit, iteratee, callback) {
+ return _filter(eachOfLimit$2(limit), coll, iteratee, callback);
+ }
+ var filterLimit$1 = awaitify(filterLimit, 4);
+ function filterSeries(coll, iteratee, callback) {
+ return _filter(eachOfSeries$1, coll, iteratee, callback);
+ }
+ var filterSeries$1 = awaitify(filterSeries, 3);
+ function forever(fn, errback) {
+ var done = onlyOnce(errback);
+ var task = wrapAsync(ensureAsync(fn));
+ function next(err) {
+ if (err)
+ return done(err);
+ if (err === false)
+ return;
+ task(next);
+ }
+ return next();
+ }
+ var forever$1 = awaitify(forever, 2);
+ function groupByLimit(coll, limit, iteratee, callback) {
+ var _iteratee = wrapAsync(iteratee);
+ return mapLimit$1(coll, limit, (val, iterCb) => {
+ _iteratee(val, (err, key2) => {
+ if (err)
+ return iterCb(err);
+ return iterCb(err, { key: key2, val });
+ });
+ }, (err, mapResults) => {
+ var result = {};
+ var { hasOwnProperty } = Object.prototype;
+ for (var i = 0;i < mapResults.length; i++) {
+ if (mapResults[i]) {
+ var { key: key2 } = mapResults[i];
+ var { val } = mapResults[i];
+ if (hasOwnProperty.call(result, key2)) {
+ result[key2].push(val);
+ } else {
+ result[key2] = [val];
+ }
+ }
+ }
+ return callback(err, result);
+ });
+ }
+ var groupByLimit$1 = awaitify(groupByLimit, 4);
+ function groupBy(coll, iteratee, callback) {
+ return groupByLimit$1(coll, Infinity, iteratee, callback);
+ }
+ function groupBySeries(coll, iteratee, callback) {
+ return groupByLimit$1(coll, 1, iteratee, callback);
+ }
+ var log = consoleFunc("log");
+ function mapValuesLimit(obj, limit, iteratee, callback) {
+ callback = once(callback);
+ var newObj = {};
+ var _iteratee = wrapAsync(iteratee);
+ return eachOfLimit$2(limit)(obj, (val, key2, next) => {
+ _iteratee(val, key2, (err, result) => {
+ if (err)
+ return next(err);
+ newObj[key2] = result;
+ next(err);
+ });
+ }, (err) => callback(err, newObj));
+ }
+ var mapValuesLimit$1 = awaitify(mapValuesLimit, 4);
+ function mapValues(obj, iteratee, callback) {
+ return mapValuesLimit$1(obj, Infinity, iteratee, callback);
+ }
+ function mapValuesSeries(obj, iteratee, callback) {
+ return mapValuesLimit$1(obj, 1, iteratee, callback);
+ }
+ function memoize(fn, hasher = (v) => v) {
+ var memo = Object.create(null);
+ var queues = Object.create(null);
+ var _fn = wrapAsync(fn);
+ var memoized = initialParams((args, callback) => {
+ var key2 = hasher(...args);
+ if (key2 in memo) {
+ setImmediate$1(() => callback(null, ...memo[key2]));
+ } else if (key2 in queues) {
+ queues[key2].push(callback);
+ } else {
+ queues[key2] = [callback];
+ _fn(...args, (err, ...resultArgs) => {
+ if (!err) {
+ memo[key2] = resultArgs;
+ }
+ var q = queues[key2];
+ delete queues[key2];
+ for (var i = 0, l = q.length;i < l; i++) {
+ q[i](err, ...resultArgs);
+ }
+ });
+ }
+ });
+ memoized.memo = memo;
+ memoized.unmemoized = fn;
+ return memoized;
+ }
+ var _defer;
+ if (hasNextTick) {
+ _defer = process.nextTick;
+ } else if (hasSetImmediate) {
+ _defer = setImmediate;
+ } else {
+ _defer = fallback;
+ }
+ var nextTick = wrap(_defer);
+ var _parallel = awaitify((eachfn, tasks, callback) => {
+ var results = isArrayLike(tasks) ? [] : {};
+ eachfn(tasks, (task, key2, taskCb) => {
+ wrapAsync(task)((err, ...result) => {
+ if (result.length < 2) {
+ [result] = result;
+ }
+ results[key2] = result;
+ taskCb(err);
+ });
+ }, (err) => callback(err, results));
+ }, 3);
+ function parallel(tasks, callback) {
+ return _parallel(eachOf$1, tasks, callback);
+ }
+ function parallelLimit(tasks, limit, callback) {
+ return _parallel(eachOfLimit$2(limit), tasks, callback);
+ }
+ function queue(worker, concurrency) {
+ var _worker = wrapAsync(worker);
+ return queue$1((items, cb) => {
+ _worker(items[0], cb);
+ }, concurrency, 1);
+ }
+
+ class Heap {
+ constructor() {
+ this.heap = [];
+ this.pushCount = Number.MIN_SAFE_INTEGER;
+ }
+ get length() {
+ return this.heap.length;
+ }
+ empty() {
+ this.heap = [];
+ return this;
+ }
+ percUp(index2) {
+ let p;
+ while (index2 > 0 && smaller(this.heap[index2], this.heap[p = parent(index2)])) {
+ let t = this.heap[index2];
+ this.heap[index2] = this.heap[p];
+ this.heap[p] = t;
+ index2 = p;
+ }
+ }
+ percDown(index2) {
+ let l;
+ while ((l = leftChi(index2)) < this.heap.length) {
+ if (l + 1 < this.heap.length && smaller(this.heap[l + 1], this.heap[l])) {
+ l = l + 1;
+ }
+ if (smaller(this.heap[index2], this.heap[l])) {
+ break;
+ }
+ let t = this.heap[index2];
+ this.heap[index2] = this.heap[l];
+ this.heap[l] = t;
+ index2 = l;
+ }
+ }
+ push(node) {
+ node.pushCount = ++this.pushCount;
+ this.heap.push(node);
+ this.percUp(this.heap.length - 1);
+ }
+ unshift(node) {
+ return this.heap.push(node);
+ }
+ shift() {
+ let [top] = this.heap;
+ this.heap[0] = this.heap[this.heap.length - 1];
+ this.heap.pop();
+ this.percDown(0);
+ return top;
+ }
+ toArray() {
+ return [...this];
+ }
+ *[Symbol.iterator]() {
+ for (let i = 0;i < this.heap.length; i++) {
+ yield this.heap[i].data;
+ }
+ }
+ remove(testFn) {
+ let j = 0;
+ for (let i = 0;i < this.heap.length; i++) {
+ if (!testFn(this.heap[i])) {
+ this.heap[j] = this.heap[i];
+ j++;
+ }
+ }
+ this.heap.splice(j);
+ for (let i = parent(this.heap.length - 1);i >= 0; i--) {
+ this.percDown(i);
+ }
+ return this;
+ }
+ }
+ function leftChi(i) {
+ return (i << 1) + 1;
+ }
+ function parent(i) {
+ return (i + 1 >> 1) - 1;
+ }
+ function smaller(x, y) {
+ if (x.priority !== y.priority) {
+ return x.priority < y.priority;
+ } else {
+ return x.pushCount < y.pushCount;
+ }
+ }
+ function priorityQueue(worker, concurrency) {
+ var q = queue(worker, concurrency);
+ var {
+ push,
+ pushAsync
+ } = q;
+ q._tasks = new Heap;
+ q._createTaskItem = ({ data, priority }, callback) => {
+ return {
+ data,
+ priority,
+ callback
+ };
+ };
+ function createDataItems(tasks, priority) {
+ if (!Array.isArray(tasks)) {
+ return { data: tasks, priority };
+ }
+ return tasks.map((data) => {
+ return { data, priority };
+ });
+ }
+ q.push = function(data, priority = 0, callback) {
+ return push(createDataItems(data, priority), callback);
+ };
+ q.pushAsync = function(data, priority = 0, callback) {
+ return pushAsync(createDataItems(data, priority), callback);
+ };
+ delete q.unshift;
+ delete q.unshiftAsync;
+ return q;
+ }
+ function race(tasks, callback) {
+ callback = once(callback);
+ if (!Array.isArray(tasks))
+ return callback(new TypeError("First argument to race must be an array of functions"));
+ if (!tasks.length)
+ return callback();
+ for (var i = 0, l = tasks.length;i < l; i++) {
+ wrapAsync(tasks[i])(callback);
+ }
+ }
+ var race$1 = awaitify(race, 2);
+ function reduceRight(array, memo, iteratee, callback) {
+ var reversed = [...array].reverse();
+ return reduce$1(reversed, memo, iteratee, callback);
+ }
+ function reflect(fn) {
+ var _fn = wrapAsync(fn);
+ return initialParams(function reflectOn(args, reflectCallback) {
+ args.push((error, ...cbArgs) => {
+ let retVal = {};
+ if (error) {
+ retVal.error = error;
+ }
+ if (cbArgs.length > 0) {
+ var value = cbArgs;
+ if (cbArgs.length <= 1) {
+ [value] = cbArgs;
+ }
+ retVal.value = value;
+ }
+ reflectCallback(null, retVal);
+ });
+ return _fn.apply(this, args);
+ });
+ }
+ function reflectAll(tasks) {
+ var results;
+ if (Array.isArray(tasks)) {
+ results = tasks.map(reflect);
+ } else {
+ results = {};
+ Object.keys(tasks).forEach((key2) => {
+ results[key2] = reflect.call(this, tasks[key2]);
+ });
+ }
+ return results;
+ }
+ function reject$2(eachfn, arr, _iteratee, callback) {
+ const iteratee = wrapAsync(_iteratee);
+ return _filter(eachfn, arr, (value, cb) => {
+ iteratee(value, (err, v) => {
+ cb(err, !v);
+ });
+ }, callback);
+ }
+ function reject(coll, iteratee, callback) {
+ return reject$2(eachOf$1, coll, iteratee, callback);
+ }
+ var reject$1 = awaitify(reject, 3);
+ function rejectLimit(coll, limit, iteratee, callback) {
+ return reject$2(eachOfLimit$2(limit), coll, iteratee, callback);
+ }
+ var rejectLimit$1 = awaitify(rejectLimit, 4);
+ function rejectSeries(coll, iteratee, callback) {
+ return reject$2(eachOfSeries$1, coll, iteratee, callback);
+ }
+ var rejectSeries$1 = awaitify(rejectSeries, 3);
+ function constant(value) {
+ return function() {
+ return value;
+ };
+ }
+ const DEFAULT_TIMES = 5;
+ const DEFAULT_INTERVAL = 0;
+ function retry(opts, task, callback) {
+ var options = {
+ times: DEFAULT_TIMES,
+ intervalFunc: constant(DEFAULT_INTERVAL)
+ };
+ if (arguments.length < 3 && typeof opts === "function") {
+ callback = task || promiseCallback();
+ task = opts;
+ } else {
+ parseTimes(options, opts);
+ callback = callback || promiseCallback();
+ }
+ if (typeof task !== "function") {
+ throw new Error("Invalid arguments for async.retry");
+ }
+ var _task = wrapAsync(task);
+ var attempt = 1;
+ function retryAttempt() {
+ _task((err, ...args) => {
+ if (err === false)
+ return;
+ if (err && attempt++ < options.times && (typeof options.errorFilter != "function" || options.errorFilter(err))) {
+ setTimeout(retryAttempt, options.intervalFunc(attempt - 1));
+ } else {
+ callback(err, ...args);
+ }
+ });
+ }
+ retryAttempt();
+ return callback[PROMISE_SYMBOL];
+ }
+ function parseTimes(acc, t) {
+ if (typeof t === "object") {
+ acc.times = +t.times || DEFAULT_TIMES;
+ acc.intervalFunc = typeof t.interval === "function" ? t.interval : constant(+t.interval || DEFAULT_INTERVAL);
+ acc.errorFilter = t.errorFilter;
+ } else if (typeof t === "number" || typeof t === "string") {
+ acc.times = +t || DEFAULT_TIMES;
+ } else {
+ throw new Error("Invalid arguments for async.retry");
+ }
+ }
+ function retryable(opts, task) {
+ if (!task) {
+ task = opts;
+ opts = null;
+ }
+ let arity = opts && opts.arity || task.length;
+ if (isAsync(task)) {
+ arity += 1;
+ }
+ var _task = wrapAsync(task);
+ return initialParams((args, callback) => {
+ if (args.length < arity - 1 || callback == null) {
+ args.push(callback);
+ callback = promiseCallback();
+ }
+ function taskFn(cb) {
+ _task(...args, cb);
+ }
+ if (opts)
+ retry(opts, taskFn, callback);
+ else
+ retry(taskFn, callback);
+ return callback[PROMISE_SYMBOL];
+ });
+ }
+ function series(tasks, callback) {
+ return _parallel(eachOfSeries$1, tasks, callback);
+ }
+ function some(coll, iteratee, callback) {
+ return _createTester(Boolean, (res) => res)(eachOf$1, coll, iteratee, callback);
+ }
+ var some$1 = awaitify(some, 3);
+ function someLimit(coll, limit, iteratee, callback) {
+ return _createTester(Boolean, (res) => res)(eachOfLimit$2(limit), coll, iteratee, callback);
+ }
+ var someLimit$1 = awaitify(someLimit, 4);
+ function someSeries(coll, iteratee, callback) {
+ return _createTester(Boolean, (res) => res)(eachOfSeries$1, coll, iteratee, callback);
+ }
+ var someSeries$1 = awaitify(someSeries, 3);
+ function sortBy(coll, iteratee, callback) {
+ var _iteratee = wrapAsync(iteratee);
+ return map$1(coll, (x, iterCb) => {
+ _iteratee(x, (err, criteria) => {
+ if (err)
+ return iterCb(err);
+ iterCb(err, { value: x, criteria });
+ });
+ }, (err, results) => {
+ if (err)
+ return callback(err);
+ callback(null, results.sort(comparator).map((v) => v.value));
+ });
+ function comparator(left, right) {
+ var a = left.criteria, b = right.criteria;
+ return a < b ? -1 : a > b ? 1 : 0;
+ }
+ }
+ var sortBy$1 = awaitify(sortBy, 3);
+ function timeout(asyncFn, milliseconds, info) {
+ var fn = wrapAsync(asyncFn);
+ return initialParams((args, callback) => {
+ var timedOut = false;
+ var timer;
+ function timeoutCallback() {
+ var name = asyncFn.name || "anonymous";
+ var error = new Error('Callback function "' + name + '" timed out.');
+ error.code = "ETIMEDOUT";
+ if (info) {
+ error.info = info;
+ }
+ timedOut = true;
+ callback(error);
+ }
+ args.push((...cbArgs) => {
+ if (!timedOut) {
+ callback(...cbArgs);
+ clearTimeout(timer);
+ }
+ });
+ timer = setTimeout(timeoutCallback, milliseconds);
+ fn(...args);
+ });
+ }
+ function range(size) {
+ var result = Array(size);
+ while (size--) {
+ result[size] = size;
+ }
+ return result;
+ }
+ function timesLimit(count, limit, iteratee, callback) {
+ var _iteratee = wrapAsync(iteratee);
+ return mapLimit$1(range(count), limit, _iteratee, callback);
+ }
+ function times(n, iteratee, callback) {
+ return timesLimit(n, Infinity, iteratee, callback);
+ }
+ function timesSeries(n, iteratee, callback) {
+ return timesLimit(n, 1, iteratee, callback);
+ }
+ function transform(coll, accumulator, iteratee, callback) {
+ if (arguments.length <= 3 && typeof accumulator === "function") {
+ callback = iteratee;
+ iteratee = accumulator;
+ accumulator = Array.isArray(coll) ? [] : {};
+ }
+ callback = once(callback || promiseCallback());
+ var _iteratee = wrapAsync(iteratee);
+ eachOf$1(coll, (v, k, cb) => {
+ _iteratee(accumulator, v, k, cb);
+ }, (err) => callback(err, accumulator));
+ return callback[PROMISE_SYMBOL];
+ }
+ function tryEach(tasks, callback) {
+ var error = null;
+ var result;
+ return eachSeries$1(tasks, (task, taskCb) => {
+ wrapAsync(task)((err, ...args) => {
+ if (err === false)
+ return taskCb(err);
+ if (args.length < 2) {
+ [result] = args;
+ } else {
+ result = args;
+ }
+ error = err;
+ taskCb(err ? null : {});
+ });
+ }, () => callback(error, result));
+ }
+ var tryEach$1 = awaitify(tryEach);
+ function unmemoize(fn) {
+ return (...args) => {
+ return (fn.unmemoized || fn)(...args);
+ };
+ }
+ function whilst(test, iteratee, callback) {
+ callback = onlyOnce(callback);
+ var _fn = wrapAsync(iteratee);
+ var _test = wrapAsync(test);
+ var results = [];
+ function next(err, ...rest) {
+ if (err)
+ return callback(err);
+ results = rest;
+ if (err === false)
+ return;
+ _test(check2);
+ }
+ function check2(err, truth) {
+ if (err)
+ return callback(err);
+ if (err === false)
+ return;
+ if (!truth)
+ return callback(null, ...results);
+ _fn(next);
+ }
+ return _test(check2);
+ }
+ var whilst$1 = awaitify(whilst, 3);
+ function until(test, iteratee, callback) {
+ const _test = wrapAsync(test);
+ return whilst$1((cb) => _test((err, truth) => cb(err, !truth)), iteratee, callback);
+ }
+ function waterfall(tasks, callback) {
+ callback = once(callback);
+ if (!Array.isArray(tasks))
+ return callback(new Error("First argument to waterfall must be an array of functions"));
+ if (!tasks.length)
+ return callback();
+ var taskIndex = 0;
+ function nextTask(args) {
+ var task = wrapAsync(tasks[taskIndex++]);
+ task(...args, onlyOnce(next));
+ }
+ function next(err, ...args) {
+ if (err === false)
+ return;
+ if (err || taskIndex === tasks.length) {
+ return callback(err, ...args);
+ }
+ nextTask(args);
+ }
+ nextTask([]);
+ }
+ var waterfall$1 = awaitify(waterfall);
+ var index = {
+ apply,
+ applyEach,
+ applyEachSeries,
+ asyncify,
+ auto,
+ autoInject,
+ cargo: cargo$1,
+ cargoQueue: cargo,
+ compose,
+ concat: concat$1,
+ concatLimit: concatLimit$1,
+ concatSeries: concatSeries$1,
+ constant: constant$1,
+ detect: detect$1,
+ detectLimit: detectLimit$1,
+ detectSeries: detectSeries$1,
+ dir,
+ doUntil,
+ doWhilst: doWhilst$1,
+ each,
+ eachLimit: eachLimit$1,
+ eachOf: eachOf$1,
+ eachOfLimit: eachOfLimit$1,
+ eachOfSeries: eachOfSeries$1,
+ eachSeries: eachSeries$1,
+ ensureAsync,
+ every: every$1,
+ everyLimit: everyLimit$1,
+ everySeries: everySeries$1,
+ filter: filter$1,
+ filterLimit: filterLimit$1,
+ filterSeries: filterSeries$1,
+ forever: forever$1,
+ groupBy,
+ groupByLimit: groupByLimit$1,
+ groupBySeries,
+ log,
+ map: map$1,
+ mapLimit: mapLimit$1,
+ mapSeries: mapSeries$1,
+ mapValues,
+ mapValuesLimit: mapValuesLimit$1,
+ mapValuesSeries,
+ memoize,
+ nextTick,
+ parallel,
+ parallelLimit,
+ priorityQueue,
+ queue,
+ race: race$1,
+ reduce: reduce$1,
+ reduceRight,
+ reflect,
+ reflectAll,
+ reject: reject$1,
+ rejectLimit: rejectLimit$1,
+ rejectSeries: rejectSeries$1,
+ retry,
+ retryable,
+ seq,
+ series,
+ setImmediate: setImmediate$1,
+ some: some$1,
+ someLimit: someLimit$1,
+ someSeries: someSeries$1,
+ sortBy: sortBy$1,
+ timeout,
+ times,
+ timesLimit,
+ timesSeries,
+ transform,
+ tryEach: tryEach$1,
+ unmemoize,
+ until,
+ waterfall: waterfall$1,
+ whilst: whilst$1,
+ all: every$1,
+ allLimit: everyLimit$1,
+ allSeries: everySeries$1,
+ any: some$1,
+ anyLimit: someLimit$1,
+ anySeries: someSeries$1,
+ find: detect$1,
+ findLimit: detectLimit$1,
+ findSeries: detectSeries$1,
+ flatMap: concat$1,
+ flatMapLimit: concatLimit$1,
+ flatMapSeries: concatSeries$1,
+ forEach: each,
+ forEachSeries: eachSeries$1,
+ forEachLimit: eachLimit$1,
+ forEachOf: eachOf$1,
+ forEachOfSeries: eachOfSeries$1,
+ forEachOfLimit: eachOfLimit$1,
+ inject: reduce$1,
+ foldl: reduce$1,
+ foldr: reduceRight,
+ select: filter$1,
+ selectLimit: filterLimit$1,
+ selectSeries: filterSeries$1,
+ wrapSync: asyncify,
+ during: whilst$1,
+ doDuring: doWhilst$1
+ };
+ exports2.all = every$1;
+ exports2.allLimit = everyLimit$1;
+ exports2.allSeries = everySeries$1;
+ exports2.any = some$1;
+ exports2.anyLimit = someLimit$1;
+ exports2.anySeries = someSeries$1;
+ exports2.apply = apply;
+ exports2.applyEach = applyEach;
+ exports2.applyEachSeries = applyEachSeries;
+ exports2.asyncify = asyncify;
+ exports2.auto = auto;
+ exports2.autoInject = autoInject;
+ exports2.cargo = cargo$1;
+ exports2.cargoQueue = cargo;
+ exports2.compose = compose;
+ exports2.concat = concat$1;
+ exports2.concatLimit = concatLimit$1;
+ exports2.concatSeries = concatSeries$1;
+ exports2.constant = constant$1;
+ exports2.default = index;
+ exports2.detect = detect$1;
+ exports2.detectLimit = detectLimit$1;
+ exports2.detectSeries = detectSeries$1;
+ exports2.dir = dir;
+ exports2.doDuring = doWhilst$1;
+ exports2.doUntil = doUntil;
+ exports2.doWhilst = doWhilst$1;
+ exports2.during = whilst$1;
+ exports2.each = each;
+ exports2.eachLimit = eachLimit$1;
+ exports2.eachOf = eachOf$1;
+ exports2.eachOfLimit = eachOfLimit$1;
+ exports2.eachOfSeries = eachOfSeries$1;
+ exports2.eachSeries = eachSeries$1;
+ exports2.ensureAsync = ensureAsync;
+ exports2.every = every$1;
+ exports2.everyLimit = everyLimit$1;
+ exports2.everySeries = everySeries$1;
+ exports2.filter = filter$1;
+ exports2.filterLimit = filterLimit$1;
+ exports2.filterSeries = filterSeries$1;
+ exports2.find = detect$1;
+ exports2.findLimit = detectLimit$1;
+ exports2.findSeries = detectSeries$1;
+ exports2.flatMap = concat$1;
+ exports2.flatMapLimit = concatLimit$1;
+ exports2.flatMapSeries = concatSeries$1;
+ exports2.foldl = reduce$1;
+ exports2.foldr = reduceRight;
+ exports2.forEach = each;
+ exports2.forEachLimit = eachLimit$1;
+ exports2.forEachOf = eachOf$1;
+ exports2.forEachOfLimit = eachOfLimit$1;
+ exports2.forEachOfSeries = eachOfSeries$1;
+ exports2.forEachSeries = eachSeries$1;
+ exports2.forever = forever$1;
+ exports2.groupBy = groupBy;
+ exports2.groupByLimit = groupByLimit$1;
+ exports2.groupBySeries = groupBySeries;
+ exports2.inject = reduce$1;
+ exports2.log = log;
+ exports2.map = map$1;
+ exports2.mapLimit = mapLimit$1;
+ exports2.mapSeries = mapSeries$1;
+ exports2.mapValues = mapValues;
+ exports2.mapValuesLimit = mapValuesLimit$1;
+ exports2.mapValuesSeries = mapValuesSeries;
+ exports2.memoize = memoize;
+ exports2.nextTick = nextTick;
+ exports2.parallel = parallel;
+ exports2.parallelLimit = parallelLimit;
+ exports2.priorityQueue = priorityQueue;
+ exports2.queue = queue;
+ exports2.race = race$1;
+ exports2.reduce = reduce$1;
+ exports2.reduceRight = reduceRight;
+ exports2.reflect = reflect;
+ exports2.reflectAll = reflectAll;
+ exports2.reject = reject$1;
+ exports2.rejectLimit = rejectLimit$1;
+ exports2.rejectSeries = rejectSeries$1;
+ exports2.retry = retry;
+ exports2.retryable = retryable;
+ exports2.select = filter$1;
+ exports2.selectLimit = filterLimit$1;
+ exports2.selectSeries = filterSeries$1;
+ exports2.seq = seq;
+ exports2.series = series;
+ exports2.setImmediate = setImmediate$1;
+ exports2.some = some$1;
+ exports2.someLimit = someLimit$1;
+ exports2.someSeries = someSeries$1;
+ exports2.sortBy = sortBy$1;
+ exports2.timeout = timeout;
+ exports2.times = times;
+ exports2.timesLimit = timesLimit;
+ exports2.timesSeries = timesSeries;
+ exports2.transform = transform;
+ exports2.tryEach = tryEach$1;
+ exports2.unmemoize = unmemoize;
+ exports2.until = until;
+ exports2.waterfall = waterfall$1;
+ exports2.whilst = whilst$1;
+ exports2.wrapSync = asyncify;
+ Object.defineProperty(exports2, "__esModule", { value: true });
+ });
+});
+
+// node_modules/graceful-fs/polyfills.js
+var require_polyfills = __commonJS((exports, module) => {
+ var constants = __require("constants");
+ var origCwd = process.cwd;
+ var cwd = null;
+ var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
+ process.cwd = function() {
+ if (!cwd)
+ cwd = origCwd.call(process);
+ return cwd;
+ };
+ try {
+ process.cwd();
+ } catch (er) {
+ }
+ if (typeof process.chdir === "function") {
+ chdir = process.chdir;
+ process.chdir = function(d) {
+ cwd = null;
+ chdir.call(process, d);
+ };
+ if (Object.setPrototypeOf)
+ Object.setPrototypeOf(process.chdir, chdir);
+ }
+ var chdir;
+ module.exports = patch;
+ function patch(fs2) {
+ if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
+ patchLchmod(fs2);
+ }
+ if (!fs2.lutimes) {
+ patchLutimes(fs2);
+ }
+ fs2.chown = chownFix(fs2.chown);
+ fs2.fchown = chownFix(fs2.fchown);
+ fs2.lchown = chownFix(fs2.lchown);
+ fs2.chmod = chmodFix(fs2.chmod);
+ fs2.fchmod = chmodFix(fs2.fchmod);
+ fs2.lchmod = chmodFix(fs2.lchmod);
+ fs2.chownSync = chownFixSync(fs2.chownSync);
+ fs2.fchownSync = chownFixSync(fs2.fchownSync);
+ fs2.lchownSync = chownFixSync(fs2.lchownSync);
+ fs2.chmodSync = chmodFixSync(fs2.chmodSync);
+ fs2.fchmodSync = chmodFixSync(fs2.fchmodSync);
+ fs2.lchmodSync = chmodFixSync(fs2.lchmodSync);
+ fs2.stat = statFix(fs2.stat);
+ fs2.fstat = statFix(fs2.fstat);
+ fs2.lstat = statFix(fs2.lstat);
+ fs2.statSync = statFixSync(fs2.statSync);
+ fs2.fstatSync = statFixSync(fs2.fstatSync);
+ fs2.lstatSync = statFixSync(fs2.lstatSync);
+ if (fs2.chmod && !fs2.lchmod) {
+ fs2.lchmod = function(path2, mode, cb) {
+ if (cb)
+ process.nextTick(cb);
+ };
+ fs2.lchmodSync = function() {
+ };
+ }
+ if (fs2.chown && !fs2.lchown) {
+ fs2.lchown = function(path2, uid, gid, cb) {
+ if (cb)
+ process.nextTick(cb);
+ };
+ fs2.lchownSync = function() {
+ };
+ }
+ if (platform === "win32") {
+ fs2.rename = typeof fs2.rename !== "function" ? fs2.rename : function(fs$rename) {
+ function rename(from2, to, cb) {
+ var start = Date.now();
+ var backoff = 0;
+ fs$rename(from2, to, function CB(er) {
+ if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 60000) {
+ setTimeout(function() {
+ fs2.stat(to, function(stater, st) {
+ if (stater && stater.code === "ENOENT")
+ fs$rename(from2, to, CB);
+ else
+ cb(er);
+ });
+ }, backoff);
+ if (backoff < 100)
+ backoff += 10;
+ return;
+ }
+ if (cb)
+ cb(er);
+ });
+ }
+ if (Object.setPrototypeOf)
+ Object.setPrototypeOf(rename, fs$rename);
+ return rename;
+ }(fs2.rename);
+ }
+ fs2.read = typeof fs2.read !== "function" ? fs2.read : function(fs$read) {
+ function read(fd, buffer, offset, length, position, callback_) {
+ var callback;
+ if (callback_ && typeof callback_ === "function") {
+ var eagCounter = 0;
+ callback = function(er, _3, __) {
+ if (er && er.code === "EAGAIN" && eagCounter < 10) {
+ eagCounter++;
+ return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
+ }
+ callback_.apply(this, arguments);
+ };
+ }
+ return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
+ }
+ if (Object.setPrototypeOf)
+ Object.setPrototypeOf(read, fs$read);
+ return read;
+ }(fs2.read);
+ fs2.readSync = typeof fs2.readSync !== "function" ? fs2.readSync : function(fs$readSync) {
+ return function(fd, buffer, offset, length, position) {
+ var eagCounter = 0;
+ while (true) {
+ try {
+ return fs$readSync.call(fs2, fd, buffer, offset, length, position);
+ } catch (er) {
+ if (er.code === "EAGAIN" && eagCounter < 10) {
+ eagCounter++;
+ continue;
+ }
+ throw er;
+ }
+ }
+ };
+ }(fs2.readSync);
+ function patchLchmod(fs3) {
+ fs3.lchmod = function(path2, mode, callback) {
+ fs3.open(path2, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
+ if (err) {
+ if (callback)
+ callback(err);
+ return;
+ }
+ fs3.fchmod(fd, mode, function(err2) {
+ fs3.close(fd, function(err22) {
+ if (callback)
+ callback(err2 || err22);
+ });
+ });
+ });
+ };
+ fs3.lchmodSync = function(path2, mode) {
+ var fd = fs3.openSync(path2, constants.O_WRONLY | constants.O_SYMLINK, mode);
+ var threw = true;
+ var ret;
+ try {
+ ret = fs3.fchmodSync(fd, mode);
+ threw = false;
+ } finally {
+ if (threw) {
+ try {
+ fs3.closeSync(fd);
+ } catch (er) {
+ }
+ } else {
+ fs3.closeSync(fd);
+ }
+ }
+ return ret;
+ };
+ }
+ function patchLutimes(fs3) {
+ if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
+ fs3.lutimes = function(path2, at, mt, cb) {
+ fs3.open(path2, constants.O_SYMLINK, function(er, fd) {
+ if (er) {
+ if (cb)
+ cb(er);
+ return;
+ }
+ fs3.futimes(fd, at, mt, function(er2) {
+ fs3.close(fd, function(er22) {
+ if (cb)
+ cb(er2 || er22);
+ });
+ });
+ });
+ };
+ fs3.lutimesSync = function(path2, at, mt) {
+ var fd = fs3.openSync(path2, constants.O_SYMLINK);
+ var ret;
+ var threw = true;
+ try {
+ ret = fs3.futimesSync(fd, at, mt);
+ threw = false;
+ } finally {
+ if (threw) {
+ try {
+ fs3.closeSync(fd);
+ } catch (er) {
+ }
+ } else {
+ fs3.closeSync(fd);
+ }
+ }
+ return ret;
+ };
+ } else if (fs3.futimes) {
+ fs3.lutimes = function(_a, _b, _c, cb) {
+ if (cb)
+ process.nextTick(cb);
+ };
+ fs3.lutimesSync = function() {
+ };
+ }
+ }
+ function chmodFix(orig) {
+ if (!orig)
+ return orig;
+ return function(target, mode, cb) {
+ return orig.call(fs2, target, mode, function(er) {
+ if (chownErOk(er))
+ er = null;
+ if (cb)
+ cb.apply(this, arguments);
+ });
+ };
+ }
+ function chmodFixSync(orig) {
+ if (!orig)
+ return orig;
+ return function(target, mode) {
+ try {
+ return orig.call(fs2, target, mode);
+ } catch (er) {
+ if (!chownErOk(er))
+ throw er;
+ }
+ };
+ }
+ function chownFix(orig) {
+ if (!orig)
+ return orig;
+ return function(target, uid, gid, cb) {
+ return orig.call(fs2, target, uid, gid, function(er) {
+ if (chownErOk(er))
+ er = null;
+ if (cb)
+ cb.apply(this, arguments);
+ });
+ };
+ }
+ function chownFixSync(orig) {
+ if (!orig)
+ return orig;
+ return function(target, uid, gid) {
+ try {
+ return orig.call(fs2, target, uid, gid);
+ } catch (er) {
+ if (!chownErOk(er))
+ throw er;
+ }
+ };
+ }
+ function statFix(orig) {
+ if (!orig)
+ return orig;
+ return function(target, options, cb) {
+ if (typeof options === "function") {
+ cb = options;
+ options = null;
+ }
+ function callback(er, stats) {
+ if (stats) {
+ if (stats.uid < 0)
+ stats.uid += 4294967296;
+ if (stats.gid < 0)
+ stats.gid += 4294967296;
+ }
+ if (cb)
+ cb.apply(this, arguments);
+ }
+ return options ? orig.call(fs2, target, options, callback) : orig.call(fs2, target, callback);
+ };
+ }
+ function statFixSync(orig) {
+ if (!orig)
+ return orig;
+ return function(target, options) {
+ var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target);
+ if (stats) {
+ if (stats.uid < 0)
+ stats.uid += 4294967296;
+ if (stats.gid < 0)
+ stats.gid += 4294967296;
+ }
+ return stats;
+ };
+ }
+ function chownErOk(er) {
+ if (!er)
+ return true;
+ if (er.code === "ENOSYS")
+ return true;
+ var nonroot = !process.getuid || process.getuid() !== 0;
+ if (nonroot) {
+ if (er.code === "EINVAL" || er.code === "EPERM")
+ return true;
+ }
+ return false;
+ }
+ }
+});
+
+// node_modules/graceful-fs/legacy-streams.js
+var require_legacy_streams = __commonJS((exports, module) => {
+ var Stream = __require("stream").Stream;
+ module.exports = legacy;
+ function legacy(fs2) {
+ return {
+ ReadStream,
+ WriteStream
+ };
+ function ReadStream(path2, options) {
+ if (!(this instanceof ReadStream))
+ return new ReadStream(path2, options);
+ Stream.call(this);
+ var self2 = this;
+ this.path = path2;
+ this.fd = null;
+ this.readable = true;
+ this.paused = false;
+ this.flags = "r";
+ this.mode = 438;
+ this.bufferSize = 64 * 1024;
+ options = options || {};
+ var keys = Object.keys(options);
+ for (var index = 0, length = keys.length;index < length; index++) {
+ var key2 = keys[index];
+ this[key2] = options[key2];
+ }
+ if (this.encoding)
+ this.setEncoding(this.encoding);
+ if (this.start !== undefined) {
+ if (typeof this.start !== "number") {
+ throw TypeError("start must be a Number");
+ }
+ if (this.end === undefined) {
+ this.end = Infinity;
+ } else if (typeof this.end !== "number") {
+ throw TypeError("end must be a Number");
+ }
+ if (this.start > this.end) {
+ throw new Error("start must be <= end");
+ }
+ this.pos = this.start;
+ }
+ if (this.fd !== null) {
+ process.nextTick(function() {
+ self2._read();
+ });
+ return;
+ }
+ fs2.open(this.path, this.flags, this.mode, function(err, fd) {
+ if (err) {
+ self2.emit("error", err);
+ self2.readable = false;
+ return;
+ }
+ self2.fd = fd;
+ self2.emit("open", fd);
+ self2._read();
+ });
+ }
+ function WriteStream(path2, options) {
+ if (!(this instanceof WriteStream))
+ return new WriteStream(path2, options);
+ Stream.call(this);
+ this.path = path2;
+ this.fd = null;
+ this.writable = true;
+ this.flags = "w";
+ this.encoding = "binary";
+ this.mode = 438;
+ this.bytesWritten = 0;
+ options = options || {};
+ var keys = Object.keys(options);
+ for (var index = 0, length = keys.length;index < length; index++) {
+ var key2 = keys[index];
+ this[key2] = options[key2];
+ }
+ if (this.start !== undefined) {
+ if (typeof this.start !== "number") {
+ throw TypeError("start must be a Number");
+ }
+ if (this.start < 0) {
+ throw new Error("start must be >= zero");
+ }
+ this.pos = this.start;
+ }
+ this.busy = false;
+ this._queue = [];
+ if (this.fd === null) {
+ this._open = fs2.open;
+ this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
+ this.flush();
+ }
+ }
+ }
+});
+
+// node_modules/graceful-fs/clone.js
+var require_clone2 = __commonJS((exports, module) => {
+ module.exports = clone;
+ var getPrototypeOf = Object.getPrototypeOf || function(obj) {
+ return obj.__proto__;
+ };
+ function clone(obj) {
+ if (obj === null || typeof obj !== "object")
+ return obj;
+ if (obj instanceof Object)
+ var copy = { __proto__: getPrototypeOf(obj) };
+ else
+ var copy = Object.create(null);
+ Object.getOwnPropertyNames(obj).forEach(function(key2) {
+ Object.defineProperty(copy, key2, Object.getOwnPropertyDescriptor(obj, key2));
+ });
+ return copy;
+ }
+});
+
+// node_modules/graceful-fs/graceful-fs.js
+var require_graceful_fs = __commonJS((exports, module) => {
+ var fs2 = __require("fs");
+ var polyfills = require_polyfills();
+ var legacy = require_legacy_streams();
+ var clone = require_clone2();
+ var util = __require("util");
+ var gracefulQueue;
+ var previousSymbol;
+ if (typeof Symbol === "function" && typeof Symbol.for === "function") {
+ gracefulQueue = Symbol.for("graceful-fs.queue");
+ previousSymbol = Symbol.for("graceful-fs.previous");
+ } else {
+ gracefulQueue = "___graceful-fs.queue";
+ previousSymbol = "___graceful-fs.previous";
+ }
+ function noop() {
+ }
+ function publishQueue(context, queue2) {
+ Object.defineProperty(context, gracefulQueue, {
+ get: function() {
+ return queue2;
+ }
+ });
+ }
+ var debug = noop;
+ if (util.debuglog)
+ debug = util.debuglog("gfs4");
+ else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
+ debug = function() {
+ var m = util.format.apply(util, arguments);
+ m = "GFS4: " + m.split(/\n/).join(`
+GFS4: `);
+ console.error(m);
+ };
+ if (!fs2[gracefulQueue]) {
+ queue = global[gracefulQueue] || [];
+ publishQueue(fs2, queue);
+ fs2.close = function(fs$close) {
+ function close(fd, cb) {
+ return fs$close.call(fs2, fd, function(err) {
+ if (!err) {
+ resetQueue();
+ }
+ if (typeof cb === "function")
+ cb.apply(this, arguments);
+ });
+ }
+ Object.defineProperty(close, previousSymbol, {
+ value: fs$close
+ });
+ return close;
+ }(fs2.close);
+ fs2.closeSync = function(fs$closeSync) {
+ function closeSync(fd) {
+ fs$closeSync.apply(fs2, arguments);
+ resetQueue();
+ }
+ Object.defineProperty(closeSync, previousSymbol, {
+ value: fs$closeSync
+ });
+ return closeSync;
+ }(fs2.closeSync);
+ if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
+ process.on("exit", function() {
+ debug(fs2[gracefulQueue]);
+ __require("assert").equal(fs2[gracefulQueue].length, 0);
+ });
+ }
+ }
+ var queue;
+ if (!global[gracefulQueue]) {
+ publishQueue(global, fs2[gracefulQueue]);
+ }
+ module.exports = patch(clone(fs2));
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs2.__patched) {
+ module.exports = patch(fs2);
+ fs2.__patched = true;
+ }
+ function patch(fs3) {
+ polyfills(fs3);
+ fs3.gracefulify = patch;
+ fs3.createReadStream = createReadStream;
+ fs3.createWriteStream = createWriteStream;
+ var fs$readFile = fs3.readFile;
+ fs3.readFile = readFile;
+ function readFile(path2, options, cb) {
+ if (typeof options === "function")
+ cb = options, options = null;
+ return go$readFile(path2, options, cb);
+ function go$readFile(path3, options2, cb2, startTime) {
+ return fs$readFile(path3, options2, function(err) {
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
+ enqueue([go$readFile, [path3, options2, cb2], err, startTime || Date.now(), Date.now()]);
+ else {
+ if (typeof cb2 === "function")
+ cb2.apply(this, arguments);
+ }
+ });
+ }
+ }
+ var fs$writeFile = fs3.writeFile;
+ fs3.writeFile = writeFile;
+ function writeFile(path2, data, options, cb) {
+ if (typeof options === "function")
+ cb = options, options = null;
+ return go$writeFile(path2, data, options, cb);
+ function go$writeFile(path3, data2, options2, cb2, startTime) {
+ return fs$writeFile(path3, data2, options2, function(err) {
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
+ enqueue([go$writeFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
+ else {
+ if (typeof cb2 === "function")
+ cb2.apply(this, arguments);
+ }
+ });
+ }
+ }
+ var fs$appendFile = fs3.appendFile;
+ if (fs$appendFile)
+ fs3.appendFile = appendFile;
+ function appendFile(path2, data, options, cb) {
+ if (typeof options === "function")
+ cb = options, options = null;
+ return go$appendFile(path2, data, options, cb);
+ function go$appendFile(path3, data2, options2, cb2, startTime) {
+ return fs$appendFile(path3, data2, options2, function(err) {
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
+ enqueue([go$appendFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
+ else {
+ if (typeof cb2 === "function")
+ cb2.apply(this, arguments);
+ }
+ });
+ }
+ }
+ var fs$copyFile = fs3.copyFile;
+ if (fs$copyFile)
+ fs3.copyFile = copyFile;
+ function copyFile(src, dest, flags, cb) {
+ if (typeof flags === "function") {
+ cb = flags;
+ flags = 0;
+ }
+ return go$copyFile(src, dest, flags, cb);
+ function go$copyFile(src2, dest2, flags2, cb2, startTime) {
+ return fs$copyFile(src2, dest2, flags2, function(err) {
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
+ enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
+ else {
+ if (typeof cb2 === "function")
+ cb2.apply(this, arguments);
+ }
+ });
+ }
+ }
+ var fs$readdir = fs3.readdir;
+ fs3.readdir = readdir;
+ var noReaddirOptionVersions = /^v[0-5]\./;
+ function readdir(path2, options, cb) {
+ if (typeof options === "function")
+ cb = options, options = null;
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir(path3, options2, cb2, startTime) {
+ return fs$readdir(path3, fs$readdirCallback(path3, options2, cb2, startTime));
+ } : function go$readdir(path3, options2, cb2, startTime) {
+ return fs$readdir(path3, options2, fs$readdirCallback(path3, options2, cb2, startTime));
+ };
+ return go$readdir(path2, options, cb);
+ function fs$readdirCallback(path3, options2, cb2, startTime) {
+ return function(err, files) {
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
+ enqueue([
+ go$readdir,
+ [path3, options2, cb2],
+ err,
+ startTime || Date.now(),
+ Date.now()
+ ]);
+ else {
+ if (files && files.sort)
+ files.sort();
+ if (typeof cb2 === "function")
+ cb2.call(this, err, files);
+ }
+ };
+ }
+ }
+ if (process.version.substr(0, 4) === "v0.8") {
+ var legStreams = legacy(fs3);
+ ReadStream = legStreams.ReadStream;
+ WriteStream = legStreams.WriteStream;
+ }
+ var fs$ReadStream = fs3.ReadStream;
+ if (fs$ReadStream) {
+ ReadStream.prototype = Object.create(fs$ReadStream.prototype);
+ ReadStream.prototype.open = ReadStream$open;
+ }
+ var fs$WriteStream = fs3.WriteStream;
+ if (fs$WriteStream) {
+ WriteStream.prototype = Object.create(fs$WriteStream.prototype);
+ WriteStream.prototype.open = WriteStream$open;
+ }
+ Object.defineProperty(fs3, "ReadStream", {
+ get: function() {
+ return ReadStream;
+ },
+ set: function(val) {
+ ReadStream = val;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ Object.defineProperty(fs3, "WriteStream", {
+ get: function() {
+ return WriteStream;
+ },
+ set: function(val) {
+ WriteStream = val;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ var FileReadStream = ReadStream;
+ Object.defineProperty(fs3, "FileReadStream", {
+ get: function() {
+ return FileReadStream;
+ },
+ set: function(val) {
+ FileReadStream = val;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ var FileWriteStream = WriteStream;
+ Object.defineProperty(fs3, "FileWriteStream", {
+ get: function() {
+ return FileWriteStream;
+ },
+ set: function(val) {
+ FileWriteStream = val;
+ },
+ enumerable: true,
+ configurable: true
+ });
+ function ReadStream(path2, options) {
+ if (this instanceof ReadStream)
+ return fs$ReadStream.apply(this, arguments), this;
+ else
+ return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
+ }
+ function ReadStream$open() {
+ var that = this;
+ open(that.path, that.flags, that.mode, function(err, fd) {
+ if (err) {
+ if (that.autoClose)
+ that.destroy();
+ that.emit("error", err);
+ } else {
+ that.fd = fd;
+ that.emit("open", fd);
+ that.read();
+ }
+ });
+ }
+ function WriteStream(path2, options) {
+ if (this instanceof WriteStream)
+ return fs$WriteStream.apply(this, arguments), this;
+ else
+ return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
+ }
+ function WriteStream$open() {
+ var that = this;
+ open(that.path, that.flags, that.mode, function(err, fd) {
+ if (err) {
+ that.destroy();
+ that.emit("error", err);
+ } else {
+ that.fd = fd;
+ that.emit("open", fd);
+ }
+ });
+ }
+ function createReadStream(path2, options) {
+ return new fs3.ReadStream(path2, options);
+ }
+ function createWriteStream(path2, options) {
+ return new fs3.WriteStream(path2, options);
+ }
+ var fs$open = fs3.open;
+ fs3.open = open;
+ function open(path2, flags, mode, cb) {
+ if (typeof mode === "function")
+ cb = mode, mode = null;
+ return go$open(path2, flags, mode, cb);
+ function go$open(path3, flags2, mode2, cb2, startTime) {
+ return fs$open(path3, flags2, mode2, function(err, fd) {
+ if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
+ enqueue([go$open, [path3, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
+ else {
+ if (typeof cb2 === "function")
+ cb2.apply(this, arguments);
+ }
+ });
+ }
+ }
+ return fs3;
+ }
+ function enqueue(elem) {
+ debug("ENQUEUE", elem[0].name, elem[1]);
+ fs2[gracefulQueue].push(elem);
+ retry();
+ }
+ var retryTimer;
+ function resetQueue() {
+ var now = Date.now();
+ for (var i = 0;i < fs2[gracefulQueue].length; ++i) {
+ if (fs2[gracefulQueue][i].length > 2) {
+ fs2[gracefulQueue][i][3] = now;
+ fs2[gracefulQueue][i][4] = now;
+ }
+ }
+ retry();
+ }
+ function retry() {
+ clearTimeout(retryTimer);
+ retryTimer = undefined;
+ if (fs2[gracefulQueue].length === 0)
+ return;
+ var elem = fs2[gracefulQueue].shift();
+ var fn = elem[0];
+ var args = elem[1];
+ var err = elem[2];
+ var startTime = elem[3];
+ var lastTime = elem[4];
+ if (startTime === undefined) {
+ debug("RETRY", fn.name, args);
+ fn.apply(null, args);
+ } else if (Date.now() - startTime >= 60000) {
+ debug("TIMEOUT", fn.name, args);
+ var cb = args.pop();
+ if (typeof cb === "function")
+ cb.call(null, err);
+ } else {
+ var sinceAttempt = Date.now() - lastTime;
+ var sinceStart = Math.max(lastTime - startTime, 1);
+ var desiredDelay = Math.min(sinceStart * 1.2, 100);
+ if (sinceAttempt >= desiredDelay) {
+ debug("RETRY", fn.name, args);
+ fn.apply(null, args.concat([startTime]));
+ } else {
+ fs2[gracefulQueue].push(elem);
+ }
+ }
+ if (retryTimer === undefined) {
+ retryTimer = setTimeout(retry, 0);
+ }
+ }
+});
+
+// node_modules/is-stream/index.js
+var require_is_stream = __commonJS((exports, module) => {
+ var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
+ isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
+ isStream.readable = (stream) => isStream(stream) && stream.readable !== false && typeof stream._read === "function" && typeof stream._readableState === "object";
+ isStream.duplex = (stream) => isStream.writable(stream) && isStream.readable(stream);
+ isStream.transform = (stream) => isStream.duplex(stream) && typeof stream._transform === "function";
+ module.exports = isStream;
+});
+
+// node_modules/process-nextick-args/index.js
+var require_process_nextick_args = __commonJS((exports, module) => {
+ if (typeof process === "undefined" || !process.version || process.version.indexOf("v0.") === 0 || process.version.indexOf("v1.") === 0 && process.version.indexOf("v1.8.") !== 0) {
+ module.exports = { nextTick };
+ } else {
+ module.exports = process;
+ }
+ function nextTick(fn, arg1, arg2, arg3) {
+ if (typeof fn !== "function") {
+ throw new TypeError('"callback" argument must be a function');
+ }
+ var len = arguments.length;
+ var args, i;
+ switch (len) {
+ case 0:
+ case 1:
+ return process.nextTick(fn);
+ case 2:
+ return process.nextTick(function afterTickOne() {
+ fn.call(null, arg1);
+ });
+ case 3:
+ return process.nextTick(function afterTickTwo() {
+ fn.call(null, arg1, arg2);
+ });
+ case 4:
+ return process.nextTick(function afterTickThree() {
+ fn.call(null, arg1, arg2, arg3);
+ });
+ default:
+ args = new Array(len - 1);
+ i = 0;
+ while (i < args.length) {
+ args[i++] = arguments[i];
+ }
+ return process.nextTick(function afterTick() {
+ fn.apply(null, args);
+ });
+ }
+ }
+});
+
+// node_modules/isarray/index.js
+var require_isarray = __commonJS((exports, module) => {
+ var toString = {}.toString;
+ module.exports = Array.isArray || function(arr) {
+ return toString.call(arr) == "[object Array]";
+ };
+});
+
+// node_modules/lazystream/node_modules/readable-stream/node_modules/safe-buffer/index.js
+var require_safe_buffer = __commonJS((exports, module) => {
+ var buffer = __require("buffer");
+ var Buffer2 = buffer.Buffer;
+ function copyProps(src, dst) {
+ for (var key2 in src) {
+ dst[key2] = src[key2];
+ }
+ }
+ if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) {
+ module.exports = buffer;
+ } else {
+ copyProps(buffer, exports);
+ exports.Buffer = SafeBuffer;
+ }
+ function SafeBuffer(arg, encodingOrOffset, length) {
+ return Buffer2(arg, encodingOrOffset, length);
+ }
+ copyProps(Buffer2, SafeBuffer);
+ SafeBuffer.from = function(arg, encodingOrOffset, length) {
+ if (typeof arg === "number") {
+ throw new TypeError("Argument must not be a number");
+ }
+ return Buffer2(arg, encodingOrOffset, length);
+ };
+ SafeBuffer.alloc = function(size, fill, encoding) {
+ if (typeof size !== "number") {
+ throw new TypeError("Argument must be a number");
+ }
+ var buf = Buffer2(size);
+ if (fill !== undefined) {
+ if (typeof encoding === "string") {
+ buf.fill(fill, encoding);
+ } else {
+ buf.fill(fill);
+ }
+ } else {
+ buf.fill(0);
+ }
+ return buf;
+ };
+ SafeBuffer.allocUnsafe = function(size) {
+ if (typeof size !== "number") {
+ throw new TypeError("Argument must be a number");
+ }
+ return Buffer2(size);
+ };
+ SafeBuffer.allocUnsafeSlow = function(size) {
+ if (typeof size !== "number") {
+ throw new TypeError("Argument must be a number");
+ }
+ return buffer.SlowBuffer(size);
+ };
+});
+
+// node_modules/core-util-is/lib/util.js
+var require_util = __commonJS((exports) => {
+ function isArray(arg) {
+ if (Array.isArray) {
+ return Array.isArray(arg);
+ }
+ return objectToString(arg) === "[object Array]";
+ }
+ exports.isArray = isArray;
+ function isBoolean(arg) {
+ return typeof arg === "boolean";
+ }
+ exports.isBoolean = isBoolean;
+ function isNull(arg) {
+ return arg === null;
+ }
+ exports.isNull = isNull;
+ function isNullOrUndefined(arg) {
+ return arg == null;
+ }
+ exports.isNullOrUndefined = isNullOrUndefined;
+ function isNumber(arg) {
+ return typeof arg === "number";
+ }
+ exports.isNumber = isNumber;
+ function isString(arg) {
+ return typeof arg === "string";
+ }
+ exports.isString = isString;
+ function isSymbol(arg) {
+ return typeof arg === "symbol";
+ }
+ exports.isSymbol = isSymbol;
+ function isUndefined(arg) {
+ return arg === undefined;
+ }
+ exports.isUndefined = isUndefined;
+ function isRegExp(re) {
+ return objectToString(re) === "[object RegExp]";
+ }
+ exports.isRegExp = isRegExp;
+ function isObject(arg) {
+ return typeof arg === "object" && arg !== null;
+ }
+ exports.isObject = isObject;
+ function isDate(d) {
+ return objectToString(d) === "[object Date]";
+ }
+ exports.isDate = isDate;
+ function isError(e) {
+ return objectToString(e) === "[object Error]" || e instanceof Error;
+ }
+ exports.isError = isError;
+ function isFunction(arg) {
+ return typeof arg === "function";
+ }
+ exports.isFunction = isFunction;
+ function isPrimitive(arg) {
+ return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || typeof arg === "undefined";
+ }
+ exports.isPrimitive = isPrimitive;
+ exports.isBuffer = __require("buffer").Buffer.isBuffer;
+ function objectToString(o) {
+ return Object.prototype.toString.call(o);
+ }
+});
+
+// node_modules/inherits/inherits_browser.js
+var require_inherits_browser = __commonJS((exports, module) => {
+ if (typeof Object.create === "function") {
+ module.exports = function inherits(ctor, superCtor) {
+ if (superCtor) {
+ ctor.super_ = superCtor;
+ ctor.prototype = Object.create(superCtor.prototype, {
+ constructor: {
+ value: ctor,
+ enumerable: false,
+ writable: true,
+ configurable: true
+ }
+ });
+ }
+ };
+ } else {
+ module.exports = function inherits(ctor, superCtor) {
+ if (superCtor) {
+ ctor.super_ = superCtor;
+ var TempCtor = function() {
+ };
+ TempCtor.prototype = superCtor.prototype;
+ ctor.prototype = new TempCtor;
+ ctor.prototype.constructor = ctor;
+ }
+ };
+ }
+});
+
+// node_modules/inherits/inherits.js
+var require_inherits = __commonJS((exports, module) => {
+ try {
+ util = __require("util");
+ if (typeof util.inherits !== "function")
+ throw "";
+ module.exports = util.inherits;
+ } catch (e) {
+ module.exports = require_inherits_browser();
+ }
+ var util;
+});
+
+// node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js
+var require_BufferList = __commonJS((exports, module) => {
+ function _classCallCheck(instance, Constructor) {
+ if (!(instance instanceof Constructor)) {
+ throw new TypeError("Cannot call a class as a function");
+ }
+ }
+ var Buffer2 = require_safe_buffer().Buffer;
+ var util = __require("util");
+ function copyBuffer(src, target, offset) {
+ src.copy(target, offset);
+ }
+ module.exports = function() {
+ function BufferList() {
+ _classCallCheck(this, BufferList);
+ this.head = null;
+ this.tail = null;
+ this.length = 0;
+ }
+ BufferList.prototype.push = function push(v) {
+ var entry = { data: v, next: null };
+ if (this.length > 0)
+ this.tail.next = entry;
+ else
+ this.head = entry;
+ this.tail = entry;
+ ++this.length;
+ };
+ BufferList.prototype.unshift = function unshift(v) {
+ var entry = { data: v, next: this.head };
+ if (this.length === 0)
+ this.tail = entry;
+ this.head = entry;
+ ++this.length;
+ };
+ BufferList.prototype.shift = function shift() {
+ if (this.length === 0)
+ return;
+ var ret = this.head.data;
+ if (this.length === 1)
+ this.head = this.tail = null;
+ else
+ this.head = this.head.next;
+ --this.length;
+ return ret;
+ };
+ BufferList.prototype.clear = function clear() {
+ this.head = this.tail = null;
+ this.length = 0;
+ };
+ BufferList.prototype.join = function join(s) {
+ if (this.length === 0)
+ return "";
+ var p = this.head;
+ var ret = "" + p.data;
+ while (p = p.next) {
+ ret += s + p.data;
+ }
+ return ret;
+ };
+ BufferList.prototype.concat = function concat(n) {
+ if (this.length === 0)
+ return Buffer2.alloc(0);
+ var ret = Buffer2.allocUnsafe(n >>> 0);
+ var p = this.head;
+ var i = 0;
+ while (p) {
+ copyBuffer(p.data, ret, i);
+ i += p.data.length;
+ p = p.next;
+ }
+ return ret;
+ };
+ return BufferList;
+ }();
+ if (util && util.inspect && util.inspect.custom) {
+ module.exports.prototype[util.inspect.custom] = function() {
+ var obj = util.inspect({ length: this.length });
+ return this.constructor.name + " " + obj;
+ };
+ }
+});
+
+// node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js
+var require_destroy = __commonJS((exports, module) => {
+ var pna = require_process_nextick_args();
+ function destroy(err, cb) {
+ var _this = this;
+ var readableDestroyed = this._readableState && this._readableState.destroyed;
+ var writableDestroyed = this._writableState && this._writableState.destroyed;
+ if (readableDestroyed || writableDestroyed) {
+ if (cb) {
+ cb(err);
+ } else if (err) {
+ if (!this._writableState) {
+ pna.nextTick(emitErrorNT, this, err);
+ } else if (!this._writableState.errorEmitted) {
+ this._writableState.errorEmitted = true;
+ pna.nextTick(emitErrorNT, this, err);
+ }
+ }
+ return this;
+ }
+ if (this._readableState) {
+ this._readableState.destroyed = true;
+ }
+ if (this._writableState) {
+ this._writableState.destroyed = true;
+ }
+ this._destroy(err || null, function(err2) {
+ if (!cb && err2) {
+ if (!_this._writableState) {
+ pna.nextTick(emitErrorNT, _this, err2);
+ } else if (!_this._writableState.errorEmitted) {
+ _this._writableState.errorEmitted = true;
+ pna.nextTick(emitErrorNT, _this, err2);
+ }
+ } else if (cb) {
+ cb(err2);
+ }
+ });
+ return this;
+ }
+ function undestroy() {
+ if (this._readableState) {
+ this._readableState.destroyed = false;
+ this._readableState.reading = false;
+ this._readableState.ended = false;
+ this._readableState.endEmitted = false;
+ }
+ if (this._writableState) {
+ this._writableState.destroyed = false;
+ this._writableState.ended = false;
+ this._writableState.ending = false;
+ this._writableState.finalCalled = false;
+ this._writableState.prefinished = false;
+ this._writableState.finished = false;
+ this._writableState.errorEmitted = false;
+ }
+ }
+ function emitErrorNT(self2, err) {
+ self2.emit("error", err);
+ }
+ module.exports = {
+ destroy,
+ undestroy
+ };
+});
+
+// node_modules/util-deprecate/node.js
+var require_node = __commonJS((exports, module) => {
+ module.exports = __require("util").deprecate;
+});
+
+// node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js
+var require__stream_writable = __commonJS((exports, module) => {
+ var pna = require_process_nextick_args();
+ module.exports = Writable;
+ function CorkedRequest(state) {
+ var _this = this;
+ this.next = null;
+ this.entry = null;
+ this.finish = function() {
+ onCorkedFinish(_this, state);
+ };
+ }
+ var asyncWrite = ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;
+ var Duplex;
+ Writable.WritableState = WritableState;
+ var util = Object.create(require_util());
+ util.inherits = require_inherits();
+ var internalUtil = {
+ deprecate: require_node()
+ };
+ var Stream = __require("stream");
+ var Buffer2 = require_safe_buffer().Buffer;
+ var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
+ };
+ function _uint8ArrayToBuffer(chunk) {
+ return Buffer2.from(chunk);
+ }
+ function _isUint8Array(obj) {
+ return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
+ }
+ var destroyImpl = require_destroy();
+ util.inherits(Writable, Stream);
+ function nop() {
+ }
+ function WritableState(options, stream) {
+ Duplex = Duplex || require__stream_duplex();
+ options = options || {};
+ var isDuplex = stream instanceof Duplex;
+ this.objectMode = !!options.objectMode;
+ if (isDuplex)
+ this.objectMode = this.objectMode || !!options.writableObjectMode;
+ var hwm = options.highWaterMark;
+ var writableHwm = options.writableHighWaterMark;
+ var defaultHwm = this.objectMode ? 16 : 16 * 1024;
+ if (hwm || hwm === 0)
+ this.highWaterMark = hwm;
+ else if (isDuplex && (writableHwm || writableHwm === 0))
+ this.highWaterMark = writableHwm;
+ else
+ this.highWaterMark = defaultHwm;
+ this.highWaterMark = Math.floor(this.highWaterMark);
+ this.finalCalled = false;
+ this.needDrain = false;
+ this.ending = false;
+ this.ended = false;
+ this.finished = false;
+ this.destroyed = false;
+ var noDecode = options.decodeStrings === false;
+ this.decodeStrings = !noDecode;
+ this.defaultEncoding = options.defaultEncoding || "utf8";
+ this.length = 0;
+ this.writing = false;
+ this.corked = 0;
+ this.sync = true;
+ this.bufferProcessing = false;
+ this.onwrite = function(er) {
+ onwrite(stream, er);
+ };
+ this.writecb = null;
+ this.writelen = 0;
+ this.bufferedRequest = null;
+ this.lastBufferedRequest = null;
+ this.pendingcb = 0;
+ this.prefinished = false;
+ this.errorEmitted = false;
+ this.bufferedRequestCount = 0;
+ this.corkedRequestsFree = new CorkedRequest(this);
+ }
+ WritableState.prototype.getBuffer = function getBuffer() {
+ var current = this.bufferedRequest;
+ var out = [];
+ while (current) {
+ out.push(current);
+ current = current.next;
+ }
+ return out;
+ };
+ (function() {
+ try {
+ Object.defineProperty(WritableState.prototype, "buffer", {
+ get: internalUtil.deprecate(function() {
+ return this.getBuffer();
+ }, "_writableState.buffer is deprecated. Use _writableState.getBuffer " + "instead.", "DEP0003")
+ });
+ } catch (_3) {
+ }
+ })();
+ var realHasInstance;
+ if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") {
+ realHasInstance = Function.prototype[Symbol.hasInstance];
+ Object.defineProperty(Writable, Symbol.hasInstance, {
+ value: function(object) {
+ if (realHasInstance.call(this, object))
+ return true;
+ if (this !== Writable)
+ return false;
+ return object && object._writableState instanceof WritableState;
+ }
+ });
+ } else {
+ realHasInstance = function(object) {
+ return object instanceof this;
+ };
+ }
+ function Writable(options) {
+ Duplex = Duplex || require__stream_duplex();
+ if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {
+ return new Writable(options);
+ }
+ this._writableState = new WritableState(options, this);
+ this.writable = true;
+ if (options) {
+ if (typeof options.write === "function")
+ this._write = options.write;
+ if (typeof options.writev === "function")
+ this._writev = options.writev;
+ if (typeof options.destroy === "function")
+ this._destroy = options.destroy;
+ if (typeof options.final === "function")
+ this._final = options.final;
+ }
+ Stream.call(this);
+ }
+ Writable.prototype.pipe = function() {
+ this.emit("error", new Error("Cannot pipe, not readable"));
+ };
+ function writeAfterEnd(stream, cb) {
+ var er = new Error("write after end");
+ stream.emit("error", er);
+ pna.nextTick(cb, er);
+ }
+ function validChunk(stream, state, chunk, cb) {
+ var valid = true;
+ var er = false;
+ if (chunk === null) {
+ er = new TypeError("May not write null values to stream");
+ } else if (typeof chunk !== "string" && chunk !== undefined && !state.objectMode) {
+ er = new TypeError("Invalid non-string/buffer chunk");
+ }
+ if (er) {
+ stream.emit("error", er);
+ pna.nextTick(cb, er);
+ valid = false;
+ }
+ return valid;
+ }
+ Writable.prototype.write = function(chunk, encoding, cb) {
+ var state = this._writableState;
+ var ret = false;
+ var isBuf = !state.objectMode && _isUint8Array(chunk);
+ if (isBuf && !Buffer2.isBuffer(chunk)) {
+ chunk = _uint8ArrayToBuffer(chunk);
+ }
+ if (typeof encoding === "function") {
+ cb = encoding;
+ encoding = null;
+ }
+ if (isBuf)
+ encoding = "buffer";
+ else if (!encoding)
+ encoding = state.defaultEncoding;
+ if (typeof cb !== "function")
+ cb = nop;
+ if (state.ended)
+ writeAfterEnd(this, cb);
+ else if (isBuf || validChunk(this, state, chunk, cb)) {
+ state.pendingcb++;
+ ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);
+ }
+ return ret;
+ };
+ Writable.prototype.cork = function() {
+ var state = this._writableState;
+ state.corked++;
+ };
+ Writable.prototype.uncork = function() {
+ var state = this._writableState;
+ if (state.corked) {
+ state.corked--;
+ if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest)
+ clearBuffer(this, state);
+ }
+ };
+ Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
+ if (typeof encoding === "string")
+ encoding = encoding.toLowerCase();
+ if (!(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((encoding + "").toLowerCase()) > -1))
+ throw new TypeError("Unknown encoding: " + encoding);
+ this._writableState.defaultEncoding = encoding;
+ return this;
+ };
+ function decodeChunk(state, chunk, encoding) {
+ if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") {
+ chunk = Buffer2.from(chunk, encoding);
+ }
+ return chunk;
+ }
+ Object.defineProperty(Writable.prototype, "writableHighWaterMark", {
+ enumerable: false,
+ get: function() {
+ return this._writableState.highWaterMark;
+ }
+ });
+ function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
+ if (!isBuf) {
+ var newChunk = decodeChunk(state, chunk, encoding);
+ if (chunk !== newChunk) {
+ isBuf = true;
+ encoding = "buffer";
+ chunk = newChunk;
+ }
+ }
+ var len = state.objectMode ? 1 : chunk.length;
+ state.length += len;
+ var ret = state.length < state.highWaterMark;
+ if (!ret)
+ state.needDrain = true;
+ if (state.writing || state.corked) {
+ var last = state.lastBufferedRequest;
+ state.lastBufferedRequest = {
+ chunk,
+ encoding,
+ isBuf,
+ callback: cb,
+ next: null
+ };
+ if (last) {
+ last.next = state.lastBufferedRequest;
+ } else {
+ state.bufferedRequest = state.lastBufferedRequest;
+ }
+ state.bufferedRequestCount += 1;
+ } else {
+ doWrite(stream, state, false, len, chunk, encoding, cb);
+ }
+ return ret;
+ }
+ function doWrite(stream, state, writev, len, chunk, encoding, cb) {
+ state.writelen = len;
+ state.writecb = cb;
+ state.writing = true;
+ state.sync = true;
+ if (writev)
+ stream._writev(chunk, state.onwrite);
+ else
+ stream._write(chunk, encoding, state.onwrite);
+ state.sync = false;
+ }
+ function onwriteError(stream, state, sync, er, cb) {
+ --state.pendingcb;
+ if (sync) {
+ pna.nextTick(cb, er);
+ pna.nextTick(finishMaybe, stream, state);
+ stream._writableState.errorEmitted = true;
+ stream.emit("error", er);
+ } else {
+ cb(er);
+ stream._writableState.errorEmitted = true;
+ stream.emit("error", er);
+ finishMaybe(stream, state);
+ }
+ }
+ function onwriteStateUpdate(state) {
+ state.writing = false;
+ state.writecb = null;
+ state.length -= state.writelen;
+ state.writelen = 0;
+ }
+ function onwrite(stream, er) {
+ var state = stream._writableState;
+ var sync = state.sync;
+ var cb = state.writecb;
+ onwriteStateUpdate(state);
+ if (er)
+ onwriteError(stream, state, sync, er, cb);
+ else {
+ var finished = needFinish(state);
+ if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {
+ clearBuffer(stream, state);
+ }
+ if (sync) {
+ asyncWrite(afterWrite, stream, state, finished, cb);
+ } else {
+ afterWrite(stream, state, finished, cb);
+ }
+ }
+ }
+ function afterWrite(stream, state, finished, cb) {
+ if (!finished)
+ onwriteDrain(stream, state);
+ state.pendingcb--;
+ cb();
+ finishMaybe(stream, state);
+ }
+ function onwriteDrain(stream, state) {
+ if (state.length === 0 && state.needDrain) {
+ state.needDrain = false;
+ stream.emit("drain");
+ }
+ }
+ function clearBuffer(stream, state) {
+ state.bufferProcessing = true;
+ var entry = state.bufferedRequest;
+ if (stream._writev && entry && entry.next) {
+ var l = state.bufferedRequestCount;
+ var buffer = new Array(l);
+ var holder = state.corkedRequestsFree;
+ holder.entry = entry;
+ var count = 0;
+ var allBuffers = true;
+ while (entry) {
+ buffer[count] = entry;
+ if (!entry.isBuf)
+ allBuffers = false;
+ entry = entry.next;
+ count += 1;
+ }
+ buffer.allBuffers = allBuffers;
+ doWrite(stream, state, true, state.length, buffer, "", holder.finish);
+ state.pendingcb++;
+ state.lastBufferedRequest = null;
+ if (holder.next) {
+ state.corkedRequestsFree = holder.next;
+ holder.next = null;
+ } else {
+ state.corkedRequestsFree = new CorkedRequest(state);
+ }
+ state.bufferedRequestCount = 0;
+ } else {
+ while (entry) {
+ var chunk = entry.chunk;
+ var encoding = entry.encoding;
+ var cb = entry.callback;
+ var len = state.objectMode ? 1 : chunk.length;
+ doWrite(stream, state, false, len, chunk, encoding, cb);
+ entry = entry.next;
+ state.bufferedRequestCount--;
+ if (state.writing) {
+ break;
+ }
+ }
+ if (entry === null)
+ state.lastBufferedRequest = null;
+ }
+ state.bufferedRequest = entry;
+ state.bufferProcessing = false;
+ }
+ Writable.prototype._write = function(chunk, encoding, cb) {
+ cb(new Error("_write() is not implemented"));
+ };
+ Writable.prototype._writev = null;
+ Writable.prototype.end = function(chunk, encoding, cb) {
+ var state = this._writableState;
+ if (typeof chunk === "function") {
+ cb = chunk;
+ chunk = null;
+ encoding = null;
+ } else if (typeof encoding === "function") {
+ cb = encoding;
+ encoding = null;
+ }
+ if (chunk !== null && chunk !== undefined)
+ this.write(chunk, encoding);
+ if (state.corked) {
+ state.corked = 1;
+ this.uncork();
+ }
+ if (!state.ending)
+ endWritable(this, state, cb);
+ };
+ function needFinish(state) {
+ return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
+ }
+ function callFinal(stream, state) {
+ stream._final(function(err) {
+ state.pendingcb--;
+ if (err) {
+ stream.emit("error", err);
+ }
+ state.prefinished = true;
+ stream.emit("prefinish");
+ finishMaybe(stream, state);
+ });
+ }
+ function prefinish(stream, state) {
+ if (!state.prefinished && !state.finalCalled) {
+ if (typeof stream._final === "function") {
+ state.pendingcb++;
+ state.finalCalled = true;
+ pna.nextTick(callFinal, stream, state);
+ } else {
+ state.prefinished = true;
+ stream.emit("prefinish");
+ }
+ }
+ }
+ function finishMaybe(stream, state) {
+ var need = needFinish(state);
+ if (need) {
+ prefinish(stream, state);
+ if (state.pendingcb === 0) {
+ state.finished = true;
+ stream.emit("finish");
+ }
+ }
+ return need;
+ }
+ function endWritable(stream, state, cb) {
+ state.ending = true;
+ finishMaybe(stream, state);
+ if (cb) {
+ if (state.finished)
+ pna.nextTick(cb);
+ else
+ stream.once("finish", cb);
+ }
+ state.ended = true;
+ stream.writable = false;
+ }
+ function onCorkedFinish(corkReq, state, err) {
+ var entry = corkReq.entry;
+ corkReq.entry = null;
+ while (entry) {
+ var cb = entry.callback;
+ state.pendingcb--;
+ cb(err);
+ entry = entry.next;
+ }
+ state.corkedRequestsFree.next = corkReq;
+ }
+ Object.defineProperty(Writable.prototype, "destroyed", {
+ get: function() {
+ if (this._writableState === undefined) {
+ return false;
+ }
+ return this._writableState.destroyed;
+ },
+ set: function(value) {
+ if (!this._writableState) {
+ return;
+ }
+ this._writableState.destroyed = value;
+ }
+ });
+ Writable.prototype.destroy = destroyImpl.destroy;
+ Writable.prototype._undestroy = destroyImpl.undestroy;
+ Writable.prototype._destroy = function(err, cb) {
+ this.end();
+ cb(err);
+ };
+});
+
+// node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js
+var require__stream_duplex = __commonJS((exports, module) => {
+ var pna = require_process_nextick_args();
+ var objectKeys = Object.keys || function(obj) {
+ var keys2 = [];
+ for (var key2 in obj) {
+ keys2.push(key2);
+ }
+ return keys2;
+ };
+ module.exports = Duplex;
+ var util = Object.create(require_util());
+ util.inherits = require_inherits();
+ var Readable = require__stream_readable();
+ var Writable = require__stream_writable();
+ util.inherits(Duplex, Readable);
+ {
+ keys = objectKeys(Writable.prototype);
+ for (v = 0;v < keys.length; v++) {
+ method = keys[v];
+ if (!Duplex.prototype[method])
+ Duplex.prototype[method] = Writable.prototype[method];
+ }
+ }
+ var keys;
+ var method;
+ var v;
+ function Duplex(options) {
+ if (!(this instanceof Duplex))
+ return new Duplex(options);
+ Readable.call(this, options);
+ Writable.call(this, options);
+ if (options && options.readable === false)
+ this.readable = false;
+ if (options && options.writable === false)
+ this.writable = false;
+ this.allowHalfOpen = true;
+ if (options && options.allowHalfOpen === false)
+ this.allowHalfOpen = false;
+ this.once("end", onend);
+ }
+ Object.defineProperty(Duplex.prototype, "writableHighWaterMark", {
+ enumerable: false,
+ get: function() {
+ return this._writableState.highWaterMark;
+ }
+ });
+ function onend() {
+ if (this.allowHalfOpen || this._writableState.ended)
+ return;
+ pna.nextTick(onEndNT, this);
+ }
+ function onEndNT(self2) {
+ self2.end();
+ }
+ Object.defineProperty(Duplex.prototype, "destroyed", {
+ get: function() {
+ if (this._readableState === undefined || this._writableState === undefined) {
+ return false;
+ }
+ return this._readableState.destroyed && this._writableState.destroyed;
+ },
+ set: function(value) {
+ if (this._readableState === undefined || this._writableState === undefined) {
+ return;
+ }
+ this._readableState.destroyed = value;
+ this._writableState.destroyed = value;
+ }
+ });
+ Duplex.prototype._destroy = function(err, cb) {
+ this.push(null);
+ this.end();
+ pna.nextTick(cb, err);
+ };
+});
+
+// node_modules/lazystream/node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js
+var require_string_decoder = __commonJS((exports) => {
+ var Buffer2 = require_safe_buffer().Buffer;
+ var isEncoding = Buffer2.isEncoding || function(encoding) {
+ encoding = "" + encoding;
+ switch (encoding && encoding.toLowerCase()) {
+ case "hex":
+ case "utf8":
+ case "utf-8":
+ case "ascii":
+ case "binary":
+ case "base64":
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ case "raw":
+ return true;
+ default:
+ return false;
+ }
+ };
+ function _normalizeEncoding(enc) {
+ if (!enc)
+ return "utf8";
+ var retried;
+ while (true) {
+ switch (enc) {
+ case "utf8":
+ case "utf-8":
+ return "utf8";
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return "utf16le";
+ case "latin1":
+ case "binary":
+ return "latin1";
+ case "base64":
+ case "ascii":
+ case "hex":
+ return enc;
+ default:
+ if (retried)
+ return;
+ enc = ("" + enc).toLowerCase();
+ retried = true;
+ }
+ }
+ }
+ function normalizeEncoding(enc) {
+ var nenc = _normalizeEncoding(enc);
+ if (typeof nenc !== "string" && (Buffer2.isEncoding === isEncoding || !isEncoding(enc)))
+ throw new Error("Unknown encoding: " + enc);
+ return nenc || enc;
+ }
+ exports.StringDecoder = StringDecoder;
+ function StringDecoder(encoding) {
+ this.encoding = normalizeEncoding(encoding);
+ var nb;
+ switch (this.encoding) {
+ case "utf16le":
+ this.text = utf16Text;
+ this.end = utf16End;
+ nb = 4;
+ break;
+ case "utf8":
+ this.fillLast = utf8FillLast;
+ nb = 4;
+ break;
+ case "base64":
+ this.text = base64Text;
+ this.end = base64End;
+ nb = 3;
+ break;
+ default:
+ this.write = simpleWrite;
+ this.end = simpleEnd;
+ return;
+ }
+ this.lastNeed = 0;
+ this.lastTotal = 0;
+ this.lastChar = Buffer2.allocUnsafe(nb);
+ }
+ StringDecoder.prototype.write = function(buf) {
+ if (buf.length === 0)
+ return "";
+ var r;
+ var i;
+ if (this.lastNeed) {
+ r = this.fillLast(buf);
+ if (r === undefined)
+ return "";
+ i = this.lastNeed;
+ this.lastNeed = 0;
+ } else {
+ i = 0;
+ }
+ if (i < buf.length)
+ return r ? r + this.text(buf, i) : this.text(buf, i);
+ return r || "";
+ };
+ StringDecoder.prototype.end = utf8End;
+ StringDecoder.prototype.text = utf8Text;
+ StringDecoder.prototype.fillLast = function(buf) {
+ if (this.lastNeed <= buf.length) {
+ buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
+ return this.lastChar.toString(this.encoding, 0, this.lastTotal);
+ }
+ buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
+ this.lastNeed -= buf.length;
+ };
+ function utf8CheckByte(byte) {
+ if (byte <= 127)
+ return 0;
+ else if (byte >> 5 === 6)
+ return 2;
+ else if (byte >> 4 === 14)
+ return 3;
+ else if (byte >> 3 === 30)
+ return 4;
+ return byte >> 6 === 2 ? -1 : -2;
+ }
+ function utf8CheckIncomplete(self2, buf, i) {
+ var j = buf.length - 1;
+ if (j < i)
+ return 0;
+ var nb = utf8CheckByte(buf[j]);
+ if (nb >= 0) {
+ if (nb > 0)
+ self2.lastNeed = nb - 1;
+ return nb;
+ }
+ if (--j < i || nb === -2)
+ return 0;
+ nb = utf8CheckByte(buf[j]);
+ if (nb >= 0) {
+ if (nb > 0)
+ self2.lastNeed = nb - 2;
+ return nb;
+ }
+ if (--j < i || nb === -2)
+ return 0;
+ nb = utf8CheckByte(buf[j]);
+ if (nb >= 0) {
+ if (nb > 0) {
+ if (nb === 2)
+ nb = 0;
+ else
+ self2.lastNeed = nb - 3;
+ }
+ return nb;
+ }
+ return 0;
+ }
+ function utf8CheckExtraBytes(self2, buf, p) {
+ if ((buf[0] & 192) !== 128) {
+ self2.lastNeed = 0;
+ return "�";
+ }
+ if (self2.lastNeed > 1 && buf.length > 1) {
+ if ((buf[1] & 192) !== 128) {
+ self2.lastNeed = 1;
+ return "�";
+ }
+ if (self2.lastNeed > 2 && buf.length > 2) {
+ if ((buf[2] & 192) !== 128) {
+ self2.lastNeed = 2;
+ return "�";
+ }
+ }
+ }
+ }
+ function utf8FillLast(buf) {
+ var p = this.lastTotal - this.lastNeed;
+ var r = utf8CheckExtraBytes(this, buf, p);
+ if (r !== undefined)
+ return r;
+ if (this.lastNeed <= buf.length) {
+ buf.copy(this.lastChar, p, 0, this.lastNeed);
+ return this.lastChar.toString(this.encoding, 0, this.lastTotal);
+ }
+ buf.copy(this.lastChar, p, 0, buf.length);
+ this.lastNeed -= buf.length;
+ }
+ function utf8Text(buf, i) {
+ var total = utf8CheckIncomplete(this, buf, i);
+ if (!this.lastNeed)
+ return buf.toString("utf8", i);
+ this.lastTotal = total;
+ var end = buf.length - (total - this.lastNeed);
+ buf.copy(this.lastChar, 0, end);
+ return buf.toString("utf8", i, end);
+ }
+ function utf8End(buf) {
+ var r = buf && buf.length ? this.write(buf) : "";
+ if (this.lastNeed)
+ return r + "�";
+ return r;
+ }
+ function utf16Text(buf, i) {
+ if ((buf.length - i) % 2 === 0) {
+ var r = buf.toString("utf16le", i);
+ if (r) {
+ var c = r.charCodeAt(r.length - 1);
+ if (c >= 55296 && c <= 56319) {
+ this.lastNeed = 2;
+ this.lastTotal = 4;
+ this.lastChar[0] = buf[buf.length - 2];
+ this.lastChar[1] = buf[buf.length - 1];
+ return r.slice(0, -1);
+ }
+ }
+ return r;
+ }
+ this.lastNeed = 1;
+ this.lastTotal = 2;
+ this.lastChar[0] = buf[buf.length - 1];
+ return buf.toString("utf16le", i, buf.length - 1);
+ }
+ function utf16End(buf) {
+ var r = buf && buf.length ? this.write(buf) : "";
+ if (this.lastNeed) {
+ var end = this.lastTotal - this.lastNeed;
+ return r + this.lastChar.toString("utf16le", 0, end);
+ }
+ return r;
+ }
+ function base64Text(buf, i) {
+ var n = (buf.length - i) % 3;
+ if (n === 0)
+ return buf.toString("base64", i);
+ this.lastNeed = 3 - n;
+ this.lastTotal = 3;
+ if (n === 1) {
+ this.lastChar[0] = buf[buf.length - 1];
+ } else {
+ this.lastChar[0] = buf[buf.length - 2];
+ this.lastChar[1] = buf[buf.length - 1];
+ }
+ return buf.toString("base64", i, buf.length - n);
+ }
+ function base64End(buf) {
+ var r = buf && buf.length ? this.write(buf) : "";
+ if (this.lastNeed)
+ return r + this.lastChar.toString("base64", 0, 3 - this.lastNeed);
+ return r;
+ }
+ function simpleWrite(buf) {
+ return buf.toString(this.encoding);
+ }
+ function simpleEnd(buf) {
+ return buf && buf.length ? this.write(buf) : "";
+ }
+});
+
+// node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js
+var require__stream_readable = __commonJS((exports, module) => {
+ var pna = require_process_nextick_args();
+ module.exports = Readable;
+ var isArray = require_isarray();
+ var Duplex;
+ Readable.ReadableState = ReadableState;
+ var EE = __require("events").EventEmitter;
+ var EElistenerCount = function(emitter, type) {
+ return emitter.listeners(type).length;
+ };
+ var Stream = __require("stream");
+ var Buffer2 = require_safe_buffer().Buffer;
+ var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
+ };
+ function _uint8ArrayToBuffer(chunk) {
+ return Buffer2.from(chunk);
+ }
+ function _isUint8Array(obj) {
+ return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
+ }
+ var util = Object.create(require_util());
+ util.inherits = require_inherits();
+ var debugUtil = __require("util");
+ var debug = undefined;
+ if (debugUtil && debugUtil.debuglog) {
+ debug = debugUtil.debuglog("stream");
+ } else {
+ debug = function() {
+ };
+ }
+ var BufferList = require_BufferList();
+ var destroyImpl = require_destroy();
+ var StringDecoder;
+ util.inherits(Readable, Stream);
+ var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
+ function prependListener(emitter, event, fn) {
+ if (typeof emitter.prependListener === "function")
+ return emitter.prependListener(event, fn);
+ if (!emitter._events || !emitter._events[event])
+ emitter.on(event, fn);
+ else if (isArray(emitter._events[event]))
+ emitter._events[event].unshift(fn);
+ else
+ emitter._events[event] = [fn, emitter._events[event]];
+ }
+ function ReadableState(options, stream) {
+ Duplex = Duplex || require__stream_duplex();
+ options = options || {};
+ var isDuplex = stream instanceof Duplex;
+ this.objectMode = !!options.objectMode;
+ if (isDuplex)
+ this.objectMode = this.objectMode || !!options.readableObjectMode;
+ var hwm = options.highWaterMark;
+ var readableHwm = options.readableHighWaterMark;
+ var defaultHwm = this.objectMode ? 16 : 16 * 1024;
+ if (hwm || hwm === 0)
+ this.highWaterMark = hwm;
+ else if (isDuplex && (readableHwm || readableHwm === 0))
+ this.highWaterMark = readableHwm;
+ else
+ this.highWaterMark = defaultHwm;
+ this.highWaterMark = Math.floor(this.highWaterMark);
+ this.buffer = new BufferList;
+ this.length = 0;
+ this.pipes = null;
+ this.pipesCount = 0;
+ this.flowing = null;
+ this.ended = false;
+ this.endEmitted = false;
+ this.reading = false;
+ this.sync = true;
+ this.needReadable = false;
+ this.emittedReadable = false;
+ this.readableListening = false;
+ this.resumeScheduled = false;
+ this.destroyed = false;
+ this.defaultEncoding = options.defaultEncoding || "utf8";
+ this.awaitDrain = 0;
+ this.readingMore = false;
+ this.decoder = null;
+ this.encoding = null;
+ if (options.encoding) {
+ if (!StringDecoder)
+ StringDecoder = require_string_decoder().StringDecoder;
+ this.decoder = new StringDecoder(options.encoding);
+ this.encoding = options.encoding;
+ }
+ }
+ function Readable(options) {
+ Duplex = Duplex || require__stream_duplex();
+ if (!(this instanceof Readable))
+ return new Readable(options);
+ this._readableState = new ReadableState(options, this);
+ this.readable = true;
+ if (options) {
+ if (typeof options.read === "function")
+ this._read = options.read;
+ if (typeof options.destroy === "function")
+ this._destroy = options.destroy;
+ }
+ Stream.call(this);
+ }
+ Object.defineProperty(Readable.prototype, "destroyed", {
+ get: function() {
+ if (this._readableState === undefined) {
+ return false;
+ }
+ return this._readableState.destroyed;
+ },
+ set: function(value) {
+ if (!this._readableState) {
+ return;
+ }
+ this._readableState.destroyed = value;
+ }
+ });
+ Readable.prototype.destroy = destroyImpl.destroy;
+ Readable.prototype._undestroy = destroyImpl.undestroy;
+ Readable.prototype._destroy = function(err, cb) {
+ this.push(null);
+ cb(err);
+ };
+ Readable.prototype.push = function(chunk, encoding) {
+ var state = this._readableState;
+ var skipChunkCheck;
+ if (!state.objectMode) {
+ if (typeof chunk === "string") {
+ encoding = encoding || state.defaultEncoding;
+ if (encoding !== state.encoding) {
+ chunk = Buffer2.from(chunk, encoding);
+ encoding = "";
+ }
+ skipChunkCheck = true;
+ }
+ } else {
+ skipChunkCheck = true;
+ }
+ return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
+ };
+ Readable.prototype.unshift = function(chunk) {
+ return readableAddChunk(this, chunk, null, true, false);
+ };
+ function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
+ var state = stream._readableState;
+ if (chunk === null) {
+ state.reading = false;
+ onEofChunk(stream, state);
+ } else {
+ var er;
+ if (!skipChunkCheck)
+ er = chunkInvalid(state, chunk);
+ if (er) {
+ stream.emit("error", er);
+ } else if (state.objectMode || chunk && chunk.length > 0) {
+ if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer2.prototype) {
+ chunk = _uint8ArrayToBuffer(chunk);
+ }
+ if (addToFront) {
+ if (state.endEmitted)
+ stream.emit("error", new Error("stream.unshift() after end event"));
+ else
+ addChunk(stream, state, chunk, true);
+ } else if (state.ended) {
+ stream.emit("error", new Error("stream.push() after EOF"));
+ } else {
+ state.reading = false;
+ if (state.decoder && !encoding) {
+ chunk = state.decoder.write(chunk);
+ if (state.objectMode || chunk.length !== 0)
+ addChunk(stream, state, chunk, false);
+ else
+ maybeReadMore(stream, state);
+ } else {
+ addChunk(stream, state, chunk, false);
+ }
+ }
+ } else if (!addToFront) {
+ state.reading = false;
+ }
+ }
+ return needMoreData(state);
+ }
+ function addChunk(stream, state, chunk, addToFront) {
+ if (state.flowing && state.length === 0 && !state.sync) {
+ stream.emit("data", chunk);
+ stream.read(0);
+ } else {
+ state.length += state.objectMode ? 1 : chunk.length;
+ if (addToFront)
+ state.buffer.unshift(chunk);
+ else
+ state.buffer.push(chunk);
+ if (state.needReadable)
+ emitReadable(stream);
+ }
+ maybeReadMore(stream, state);
+ }
+ function chunkInvalid(state, chunk) {
+ var er;
+ if (!_isUint8Array(chunk) && typeof chunk !== "string" && chunk !== undefined && !state.objectMode) {
+ er = new TypeError("Invalid non-string/buffer chunk");
+ }
+ return er;
+ }
+ function needMoreData(state) {
+ return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);
+ }
+ Readable.prototype.isPaused = function() {
+ return this._readableState.flowing === false;
+ };
+ Readable.prototype.setEncoding = function(enc) {
+ if (!StringDecoder)
+ StringDecoder = require_string_decoder().StringDecoder;
+ this._readableState.decoder = new StringDecoder(enc);
+ this._readableState.encoding = enc;
+ return this;
+ };
+ var MAX_HWM = 8388608;
+ function computeNewHighWaterMark(n) {
+ if (n >= MAX_HWM) {
+ n = MAX_HWM;
+ } else {
+ n--;
+ n |= n >>> 1;
+ n |= n >>> 2;
+ n |= n >>> 4;
+ n |= n >>> 8;
+ n |= n >>> 16;
+ n++;
+ }
+ return n;
+ }
+ function howMuchToRead(n, state) {
+ if (n <= 0 || state.length === 0 && state.ended)
+ return 0;
+ if (state.objectMode)
+ return 1;
+ if (n !== n) {
+ if (state.flowing && state.length)
+ return state.buffer.head.data.length;
+ else
+ return state.length;
+ }
+ if (n > state.highWaterMark)
+ state.highWaterMark = computeNewHighWaterMark(n);
+ if (n <= state.length)
+ return n;
+ if (!state.ended) {
+ state.needReadable = true;
+ return 0;
+ }
+ return state.length;
+ }
+ Readable.prototype.read = function(n) {
+ debug("read", n);
+ n = parseInt(n, 10);
+ var state = this._readableState;
+ var nOrig = n;
+ if (n !== 0)
+ state.emittedReadable = false;
+ if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {
+ debug("read: emitReadable", state.length, state.ended);
+ if (state.length === 0 && state.ended)
+ endReadable(this);
+ else
+ emitReadable(this);
+ return null;
+ }
+ n = howMuchToRead(n, state);
+ if (n === 0 && state.ended) {
+ if (state.length === 0)
+ endReadable(this);
+ return null;
+ }
+ var doRead = state.needReadable;
+ debug("need readable", doRead);
+ if (state.length === 0 || state.length - n < state.highWaterMark) {
+ doRead = true;
+ debug("length less than watermark", doRead);
+ }
+ if (state.ended || state.reading) {
+ doRead = false;
+ debug("reading or ended", doRead);
+ } else if (doRead) {
+ debug("do read");
+ state.reading = true;
+ state.sync = true;
+ if (state.length === 0)
+ state.needReadable = true;
+ this._read(state.highWaterMark);
+ state.sync = false;
+ if (!state.reading)
+ n = howMuchToRead(nOrig, state);
+ }
+ var ret;
+ if (n > 0)
+ ret = fromList(n, state);
+ else
+ ret = null;
+ if (ret === null) {
+ state.needReadable = true;
+ n = 0;
+ } else {
+ state.length -= n;
+ }
+ if (state.length === 0) {
+ if (!state.ended)
+ state.needReadable = true;
+ if (nOrig !== n && state.ended)
+ endReadable(this);
+ }
+ if (ret !== null)
+ this.emit("data", ret);
+ return ret;
+ };
+ function onEofChunk(stream, state) {
+ if (state.ended)
+ return;
+ if (state.decoder) {
+ var chunk = state.decoder.end();
+ if (chunk && chunk.length) {
+ state.buffer.push(chunk);
+ state.length += state.objectMode ? 1 : chunk.length;
+ }
+ }
+ state.ended = true;
+ emitReadable(stream);
+ }
+ function emitReadable(stream) {
+ var state = stream._readableState;
+ state.needReadable = false;
+ if (!state.emittedReadable) {
+ debug("emitReadable", state.flowing);
+ state.emittedReadable = true;
+ if (state.sync)
+ pna.nextTick(emitReadable_, stream);
+ else
+ emitReadable_(stream);
+ }
+ }
+ function emitReadable_(stream) {
+ debug("emit readable");
+ stream.emit("readable");
+ flow(stream);
+ }
+ function maybeReadMore(stream, state) {
+ if (!state.readingMore) {
+ state.readingMore = true;
+ pna.nextTick(maybeReadMore_, stream, state);
+ }
+ }
+ function maybeReadMore_(stream, state) {
+ var len = state.length;
+ while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {
+ debug("maybeReadMore read 0");
+ stream.read(0);
+ if (len === state.length)
+ break;
+ else
+ len = state.length;
+ }
+ state.readingMore = false;
+ }
+ Readable.prototype._read = function(n) {
+ this.emit("error", new Error("_read() is not implemented"));
+ };
+ Readable.prototype.pipe = function(dest, pipeOpts) {
+ var src = this;
+ var state = this._readableState;
+ switch (state.pipesCount) {
+ case 0:
+ state.pipes = dest;
+ break;
+ case 1:
+ state.pipes = [state.pipes, dest];
+ break;
+ default:
+ state.pipes.push(dest);
+ break;
+ }
+ state.pipesCount += 1;
+ debug("pipe count=%d opts=%j", state.pipesCount, pipeOpts);
+ var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
+ var endFn = doEnd ? onend : unpipe;
+ if (state.endEmitted)
+ pna.nextTick(endFn);
+ else
+ src.once("end", endFn);
+ dest.on("unpipe", onunpipe);
+ function onunpipe(readable, unpipeInfo) {
+ debug("onunpipe");
+ if (readable === src) {
+ if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
+ unpipeInfo.hasUnpiped = true;
+ cleanup();
+ }
+ }
+ }
+ function onend() {
+ debug("onend");
+ dest.end();
+ }
+ var ondrain = pipeOnDrain(src);
+ dest.on("drain", ondrain);
+ var cleanedUp = false;
+ function cleanup() {
+ debug("cleanup");
+ dest.removeListener("close", onclose);
+ dest.removeListener("finish", onfinish);
+ dest.removeListener("drain", ondrain);
+ dest.removeListener("error", onerror);
+ dest.removeListener("unpipe", onunpipe);
+ src.removeListener("end", onend);
+ src.removeListener("end", unpipe);
+ src.removeListener("data", ondata);
+ cleanedUp = true;
+ if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain))
+ ondrain();
+ }
+ var increasedAwaitDrain = false;
+ src.on("data", ondata);
+ function ondata(chunk) {
+ debug("ondata");
+ increasedAwaitDrain = false;
+ var ret = dest.write(chunk);
+ if (ret === false && !increasedAwaitDrain) {
+ if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
+ debug("false write response, pause", state.awaitDrain);
+ state.awaitDrain++;
+ increasedAwaitDrain = true;
+ }
+ src.pause();
+ }
+ }
+ function onerror(er) {
+ debug("onerror", er);
+ unpipe();
+ dest.removeListener("error", onerror);
+ if (EElistenerCount(dest, "error") === 0)
+ dest.emit("error", er);
+ }
+ prependListener(dest, "error", onerror);
+ function onclose() {
+ dest.removeListener("finish", onfinish);
+ unpipe();
+ }
+ dest.once("close", onclose);
+ function onfinish() {
+ debug("onfinish");
+ dest.removeListener("close", onclose);
+ unpipe();
+ }
+ dest.once("finish", onfinish);
+ function unpipe() {
+ debug("unpipe");
+ src.unpipe(dest);
+ }
+ dest.emit("pipe", src);
+ if (!state.flowing) {
+ debug("pipe resume");
+ src.resume();
+ }
+ return dest;
+ };
+ function pipeOnDrain(src) {
+ return function() {
+ var state = src._readableState;
+ debug("pipeOnDrain", state.awaitDrain);
+ if (state.awaitDrain)
+ state.awaitDrain--;
+ if (state.awaitDrain === 0 && EElistenerCount(src, "data")) {
+ state.flowing = true;
+ flow(src);
+ }
+ };
+ }
+ Readable.prototype.unpipe = function(dest) {
+ var state = this._readableState;
+ var unpipeInfo = { hasUnpiped: false };
+ if (state.pipesCount === 0)
+ return this;
+ if (state.pipesCount === 1) {
+ if (dest && dest !== state.pipes)
+ return this;
+ if (!dest)
+ dest = state.pipes;
+ state.pipes = null;
+ state.pipesCount = 0;
+ state.flowing = false;
+ if (dest)
+ dest.emit("unpipe", this, unpipeInfo);
+ return this;
+ }
+ if (!dest) {
+ var dests = state.pipes;
+ var len = state.pipesCount;
+ state.pipes = null;
+ state.pipesCount = 0;
+ state.flowing = false;
+ for (var i = 0;i < len; i++) {
+ dests[i].emit("unpipe", this, { hasUnpiped: false });
+ }
+ return this;
+ }
+ var index = indexOf(state.pipes, dest);
+ if (index === -1)
+ return this;
+ state.pipes.splice(index, 1);
+ state.pipesCount -= 1;
+ if (state.pipesCount === 1)
+ state.pipes = state.pipes[0];
+ dest.emit("unpipe", this, unpipeInfo);
+ return this;
+ };
+ Readable.prototype.on = function(ev, fn) {
+ var res = Stream.prototype.on.call(this, ev, fn);
+ if (ev === "data") {
+ if (this._readableState.flowing !== false)
+ this.resume();
+ } else if (ev === "readable") {
+ var state = this._readableState;
+ if (!state.endEmitted && !state.readableListening) {
+ state.readableListening = state.needReadable = true;
+ state.emittedReadable = false;
+ if (!state.reading) {
+ pna.nextTick(nReadingNextTick, this);
+ } else if (state.length) {
+ emitReadable(this);
+ }
+ }
+ }
+ return res;
+ };
+ Readable.prototype.addListener = Readable.prototype.on;
+ function nReadingNextTick(self2) {
+ debug("readable nexttick read 0");
+ self2.read(0);
+ }
+ Readable.prototype.resume = function() {
+ var state = this._readableState;
+ if (!state.flowing) {
+ debug("resume");
+ state.flowing = true;
+ resume(this, state);
+ }
+ return this;
+ };
+ function resume(stream, state) {
+ if (!state.resumeScheduled) {
+ state.resumeScheduled = true;
+ pna.nextTick(resume_, stream, state);
+ }
+ }
+ function resume_(stream, state) {
+ if (!state.reading) {
+ debug("resume read 0");
+ stream.read(0);
+ }
+ state.resumeScheduled = false;
+ state.awaitDrain = 0;
+ stream.emit("resume");
+ flow(stream);
+ if (state.flowing && !state.reading)
+ stream.read(0);
+ }
+ Readable.prototype.pause = function() {
+ debug("call pause flowing=%j", this._readableState.flowing);
+ if (this._readableState.flowing !== false) {
+ debug("pause");
+ this._readableState.flowing = false;
+ this.emit("pause");
+ }
+ return this;
+ };
+ function flow(stream) {
+ var state = stream._readableState;
+ debug("flow", state.flowing);
+ while (state.flowing && stream.read() !== null) {
+ }
+ }
+ Readable.prototype.wrap = function(stream) {
+ var _this = this;
+ var state = this._readableState;
+ var paused = false;
+ stream.on("end", function() {
+ debug("wrapped end");
+ if (state.decoder && !state.ended) {
+ var chunk = state.decoder.end();
+ if (chunk && chunk.length)
+ _this.push(chunk);
+ }
+ _this.push(null);
+ });
+ stream.on("data", function(chunk) {
+ debug("wrapped data");
+ if (state.decoder)
+ chunk = state.decoder.write(chunk);
+ if (state.objectMode && (chunk === null || chunk === undefined))
+ return;
+ else if (!state.objectMode && (!chunk || !chunk.length))
+ return;
+ var ret = _this.push(chunk);
+ if (!ret) {
+ paused = true;
+ stream.pause();
+ }
+ });
+ for (var i in stream) {
+ if (this[i] === undefined && typeof stream[i] === "function") {
+ this[i] = function(method) {
+ return function() {
+ return stream[method].apply(stream, arguments);
+ };
+ }(i);
+ }
+ }
+ for (var n = 0;n < kProxyEvents.length; n++) {
+ stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
+ }
+ this._read = function(n2) {
+ debug("wrapped _read", n2);
+ if (paused) {
+ paused = false;
+ stream.resume();
+ }
+ };
+ return this;
+ };
+ Object.defineProperty(Readable.prototype, "readableHighWaterMark", {
+ enumerable: false,
+ get: function() {
+ return this._readableState.highWaterMark;
+ }
+ });
+ Readable._fromList = fromList;
+ function fromList(n, state) {
+ if (state.length === 0)
+ return null;
+ var ret;
+ if (state.objectMode)
+ ret = state.buffer.shift();
+ else if (!n || n >= state.length) {
+ if (state.decoder)
+ ret = state.buffer.join("");
+ else if (state.buffer.length === 1)
+ ret = state.buffer.head.data;
+ else
+ ret = state.buffer.concat(state.length);
+ state.buffer.clear();
+ } else {
+ ret = fromListPartial(n, state.buffer, state.decoder);
+ }
+ return ret;
+ }
+ function fromListPartial(n, list, hasStrings) {
+ var ret;
+ if (n < list.head.data.length) {
+ ret = list.head.data.slice(0, n);
+ list.head.data = list.head.data.slice(n);
+ } else if (n === list.head.data.length) {
+ ret = list.shift();
+ } else {
+ ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);
+ }
+ return ret;
+ }
+ function copyFromBufferString(n, list) {
+ var p = list.head;
+ var c = 1;
+ var ret = p.data;
+ n -= ret.length;
+ while (p = p.next) {
+ var str = p.data;
+ var nb = n > str.length ? str.length : n;
+ if (nb === str.length)
+ ret += str;
+ else
+ ret += str.slice(0, n);
+ n -= nb;
+ if (n === 0) {
+ if (nb === str.length) {
+ ++c;
+ if (p.next)
+ list.head = p.next;
+ else
+ list.head = list.tail = null;
+ } else {
+ list.head = p;
+ p.data = str.slice(nb);
+ }
+ break;
+ }
+ ++c;
+ }
+ list.length -= c;
+ return ret;
+ }
+ function copyFromBuffer(n, list) {
+ var ret = Buffer2.allocUnsafe(n);
+ var p = list.head;
+ var c = 1;
+ p.data.copy(ret);
+ n -= p.data.length;
+ while (p = p.next) {
+ var buf = p.data;
+ var nb = n > buf.length ? buf.length : n;
+ buf.copy(ret, ret.length - n, 0, nb);
+ n -= nb;
+ if (n === 0) {
+ if (nb === buf.length) {
+ ++c;
+ if (p.next)
+ list.head = p.next;
+ else
+ list.head = list.tail = null;
+ } else {
+ list.head = p;
+ p.data = buf.slice(nb);
+ }
+ break;
+ }
+ ++c;
+ }
+ list.length -= c;
+ return ret;
+ }
+ function endReadable(stream) {
+ var state = stream._readableState;
+ if (state.length > 0)
+ throw new Error('"endReadable()" called on non-empty stream');
+ if (!state.endEmitted) {
+ state.ended = true;
+ pna.nextTick(endReadableNT, state, stream);
+ }
+ }
+ function endReadableNT(state, stream) {
+ if (!state.endEmitted && state.length === 0) {
+ state.endEmitted = true;
+ stream.readable = false;
+ stream.emit("end");
+ }
+ }
+ function indexOf(xs, x) {
+ for (var i = 0, l = xs.length;i < l; i++) {
+ if (xs[i] === x)
+ return i;
+ }
+ return -1;
+ }
+});
+
+// node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js
+var require__stream_transform = __commonJS((exports, module) => {
+ module.exports = Transform;
+ var Duplex = require__stream_duplex();
+ var util = Object.create(require_util());
+ util.inherits = require_inherits();
+ util.inherits(Transform, Duplex);
+ function afterTransform(er, data) {
+ var ts = this._transformState;
+ ts.transforming = false;
+ var cb = ts.writecb;
+ if (!cb) {
+ return this.emit("error", new Error("write callback called multiple times"));
+ }
+ ts.writechunk = null;
+ ts.writecb = null;
+ if (data != null)
+ this.push(data);
+ cb(er);
+ var rs = this._readableState;
+ rs.reading = false;
+ if (rs.needReadable || rs.length < rs.highWaterMark) {
+ this._read(rs.highWaterMark);
+ }
+ }
+ function Transform(options) {
+ if (!(this instanceof Transform))
+ return new Transform(options);
+ Duplex.call(this, options);
+ this._transformState = {
+ afterTransform: afterTransform.bind(this),
+ needTransform: false,
+ transforming: false,
+ writecb: null,
+ writechunk: null,
+ writeencoding: null
+ };
+ this._readableState.needReadable = true;
+ this._readableState.sync = false;
+ if (options) {
+ if (typeof options.transform === "function")
+ this._transform = options.transform;
+ if (typeof options.flush === "function")
+ this._flush = options.flush;
+ }
+ this.on("prefinish", prefinish);
+ }
+ function prefinish() {
+ var _this = this;
+ if (typeof this._flush === "function") {
+ this._flush(function(er, data) {
+ done(_this, er, data);
+ });
+ } else {
+ done(this, null, null);
+ }
+ }
+ Transform.prototype.push = function(chunk, encoding) {
+ this._transformState.needTransform = false;
+ return Duplex.prototype.push.call(this, chunk, encoding);
+ };
+ Transform.prototype._transform = function(chunk, encoding, cb) {
+ throw new Error("_transform() is not implemented");
+ };
+ Transform.prototype._write = function(chunk, encoding, cb) {
+ var ts = this._transformState;
+ ts.writecb = cb;
+ ts.writechunk = chunk;
+ ts.writeencoding = encoding;
+ if (!ts.transforming) {
+ var rs = this._readableState;
+ if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark)
+ this._read(rs.highWaterMark);
+ }
+ };
+ Transform.prototype._read = function(n) {
+ var ts = this._transformState;
+ if (ts.writechunk !== null && ts.writecb && !ts.transforming) {
+ ts.transforming = true;
+ this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
+ } else {
+ ts.needTransform = true;
+ }
+ };
+ Transform.prototype._destroy = function(err, cb) {
+ var _this2 = this;
+ Duplex.prototype._destroy.call(this, err, function(err2) {
+ cb(err2);
+ _this2.emit("close");
+ });
+ };
+ function done(stream, er, data) {
+ if (er)
+ return stream.emit("error", er);
+ if (data != null)
+ stream.push(data);
+ if (stream._writableState.length)
+ throw new Error("Calling transform done when ws.length != 0");
+ if (stream._transformState.transforming)
+ throw new Error("Calling transform done when still transforming");
+ return stream.push(null);
+ }
+});
+
+// node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js
+var require__stream_passthrough = __commonJS((exports, module) => {
+ module.exports = PassThrough;
+ var Transform = require__stream_transform();
+ var util = Object.create(require_util());
+ util.inherits = require_inherits();
+ util.inherits(PassThrough, Transform);
+ function PassThrough(options) {
+ if (!(this instanceof PassThrough))
+ return new PassThrough(options);
+ Transform.call(this, options);
+ }
+ PassThrough.prototype._transform = function(chunk, encoding, cb) {
+ cb(null, chunk);
+ };
+});
+
+// node_modules/lazystream/node_modules/readable-stream/readable.js
+var require_readable = __commonJS((exports, module) => {
+ var Stream = __require("stream");
+ if (process.env.READABLE_STREAM === "disable" && Stream) {
+ module.exports = Stream;
+ exports = module.exports = Stream.Readable;
+ exports.Readable = Stream.Readable;
+ exports.Writable = Stream.Writable;
+ exports.Duplex = Stream.Duplex;
+ exports.Transform = Stream.Transform;
+ exports.PassThrough = Stream.PassThrough;
+ exports.Stream = Stream;
+ } else {
+ exports = module.exports = require__stream_readable();
+ exports.Stream = Stream || exports;
+ exports.Readable = exports;
+ exports.Writable = require__stream_writable();
+ exports.Duplex = require__stream_duplex();
+ exports.Transform = require__stream_transform();
+ exports.PassThrough = require__stream_passthrough();
+ }
+});
+
+// node_modules/lazystream/node_modules/readable-stream/passthrough.js
+var require_passthrough = __commonJS((exports, module) => {
+ module.exports = require_readable().PassThrough;
+});
+
+// node_modules/lazystream/lib/lazystream.js
+var require_lazystream = __commonJS((exports, module) => {
+ var util = __require("util");
+ var PassThrough = require_passthrough();
+ module.exports = {
+ Readable,
+ Writable
+ };
+ util.inherits(Readable, PassThrough);
+ util.inherits(Writable, PassThrough);
+ function beforeFirstCall(instance, method, callback) {
+ instance[method] = function() {
+ delete instance[method];
+ callback.apply(this, arguments);
+ return this[method].apply(this, arguments);
+ };
+ }
+ function Readable(fn, options) {
+ if (!(this instanceof Readable))
+ return new Readable(fn, options);
+ PassThrough.call(this, options);
+ beforeFirstCall(this, "_read", function() {
+ var source = fn.call(this, options);
+ var emit = this.emit.bind(this, "error");
+ source.on("error", emit);
+ source.pipe(this);
+ });
+ this.emit("readable");
+ }
+ function Writable(fn, options) {
+ if (!(this instanceof Writable))
+ return new Writable(fn, options);
+ PassThrough.call(this, options);
+ beforeFirstCall(this, "_write", function() {
+ var destination = fn.call(this, options);
+ var emit = this.emit.bind(this, "error");
+ destination.on("error", emit);
+ this.pipe(destination);
+ });
+ this.emit("writable");
+ }
+});
+
+// node_modules/normalize-path/index.js
+var require_normalize_path = __commonJS((exports, module) => {
+ /*!
+ * normalize-path <https://github.com/jonschlinkert/normalize-path>
+ *
+ * Copyright (c) 2014-2018, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+ module.exports = function(path2, stripTrailing) {
+ if (typeof path2 !== "string") {
+ throw new TypeError("expected path to be a string");
+ }
+ if (path2 === "\\" || path2 === "/")
+ return "/";
+ var len = path2.length;
+ if (len <= 1)
+ return path2;
+ var prefix = "";
+ if (len > 4 && path2[3] === "\\") {
+ var ch = path2[2];
+ if ((ch === "?" || ch === ".") && path2.slice(0, 2) === "\\\\") {
+ path2 = path2.slice(2);
+ prefix = "//";
+ }
+ }
+ var segs = path2.split(/[/\\]+/);
+ if (stripTrailing !== false && segs[segs.length - 1] === "") {
+ segs.pop();
+ }
+ return prefix + segs.join("/");
+ };
+});
+
+// node_modules/lodash/identity.js
+var require_identity2 = __commonJS((exports, module) => {
+ function identity(value) {
+ return value;
+ }
+ module.exports = identity;
+});
+
+// node_modules/lodash/_apply.js
+var require__apply = __commonJS((exports, module) => {
+ function apply(func, thisArg, args) {
+ switch (args.length) {
+ case 0:
+ return func.call(thisArg);
+ case 1:
+ return func.call(thisArg, args[0]);
+ case 2:
+ return func.call(thisArg, args[0], args[1]);
+ case 3:
+ return func.call(thisArg, args[0], args[1], args[2]);
+ }
+ return func.apply(thisArg, args);
+ }
+ module.exports = apply;
+});
+
+// node_modules/lodash/_overRest.js
+var require__overRest = __commonJS((exports, module) => {
+ var apply = require__apply();
+ var nativeMax = Math.max;
+ function overRest(func, start, transform) {
+ start = nativeMax(start === undefined ? func.length - 1 : start, 0);
+ return function() {
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
+ while (++index < length) {
+ array[index] = args[start + index];
+ }
+ index = -1;
+ var otherArgs = Array(start + 1);
+ while (++index < start) {
+ otherArgs[index] = args[index];
+ }
+ otherArgs[start] = transform(array);
+ return apply(func, this, otherArgs);
+ };
+ }
+ module.exports = overRest;
+});
+
+// node_modules/lodash/constant.js
+var require_constant = __commonJS((exports, module) => {
+ function constant(value) {
+ return function() {
+ return value;
+ };
+ }
+ module.exports = constant;
+});
+
+// node_modules/lodash/_freeGlobal.js
+var require__freeGlobal = __commonJS((exports, module) => {
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
+ module.exports = freeGlobal;
+});
+
+// node_modules/lodash/_root.js
+var require__root = __commonJS((exports, module) => {
+ var freeGlobal = require__freeGlobal();
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
+ var root = freeGlobal || freeSelf || Function("return this")();
+ module.exports = root;
+});
+
+// node_modules/lodash/_Symbol.js
+var require__Symbol = __commonJS((exports, module) => {
+ var root = require__root();
+ var Symbol2 = root.Symbol;
+ module.exports = Symbol2;
+});
+
+// node_modules/lodash/_getRawTag.js
+var require__getRawTag = __commonJS((exports, module) => {
+ var Symbol2 = require__Symbol();
+ var objectProto = Object.prototype;
+ var hasOwnProperty = objectProto.hasOwnProperty;
+ var nativeObjectToString = objectProto.toString;
+ var symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined;
+ function getRawTag(value) {
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
+ try {
+ value[symToStringTag] = undefined;
+ var unmasked = true;
+ } catch (e) {
+ }
+ var result = nativeObjectToString.call(value);
+ if (unmasked) {
+ if (isOwn) {
+ value[symToStringTag] = tag;
+ } else {
+ delete value[symToStringTag];
+ }
+ }
+ return result;
+ }
+ module.exports = getRawTag;
+});
+
+// node_modules/lodash/_objectToString.js
+var require__objectToString = __commonJS((exports, module) => {
+ var objectProto = Object.prototype;
+ var nativeObjectToString = objectProto.toString;
+ function objectToString(value) {
+ return nativeObjectToString.call(value);
+ }
+ module.exports = objectToString;
+});
+
+// node_modules/lodash/_baseGetTag.js
+var require__baseGetTag = __commonJS((exports, module) => {
+ var Symbol2 = require__Symbol();
+ var getRawTag = require__getRawTag();
+ var objectToString = require__objectToString();
+ var nullTag = "[object Null]";
+ var undefinedTag = "[object Undefined]";
+ var symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined;
+ function baseGetTag(value) {
+ if (value == null) {
+ return value === undefined ? undefinedTag : nullTag;
+ }
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
+ }
+ module.exports = baseGetTag;
+});
+
+// node_modules/lodash/isObject.js
+var require_isObject = __commonJS((exports, module) => {
+ function isObject(value) {
+ var type = typeof value;
+ return value != null && (type == "object" || type == "function");
+ }
+ module.exports = isObject;
+});
+
+// node_modules/lodash/isFunction.js
+var require_isFunction2 = __commonJS((exports, module) => {
+ var baseGetTag = require__baseGetTag();
+ var isObject = require_isObject();
+ var asyncTag = "[object AsyncFunction]";
+ var funcTag = "[object Function]";
+ var genTag = "[object GeneratorFunction]";
+ var proxyTag = "[object Proxy]";
+ function isFunction(value) {
+ if (!isObject(value)) {
+ return false;
+ }
+ var tag = baseGetTag(value);
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
+ }
+ module.exports = isFunction;
+});
+
+// node_modules/lodash/_coreJsData.js
+var require__coreJsData = __commonJS((exports, module) => {
+ var root = require__root();
+ var coreJsData = root["__core-js_shared__"];
+ module.exports = coreJsData;
+});
+
+// node_modules/lodash/_isMasked.js
+var require__isMasked = __commonJS((exports, module) => {
+ var coreJsData = require__coreJsData();
+ var maskSrcKey = function() {
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
+ return uid ? "Symbol(src)_1." + uid : "";
+ }();
+ function isMasked(func) {
+ return !!maskSrcKey && maskSrcKey in func;
+ }
+ module.exports = isMasked;
+});
+
+// node_modules/lodash/_toSource.js
+var require__toSource = __commonJS((exports, module) => {
+ var funcProto = Function.prototype;
+ var funcToString = funcProto.toString;
+ function toSource(func) {
+ if (func != null) {
+ try {
+ return funcToString.call(func);
+ } catch (e) {
+ }
+ try {
+ return func + "";
+ } catch (e) {
+ }
+ }
+ return "";
+ }
+ module.exports = toSource;
+});
+
+// node_modules/lodash/_baseIsNative.js
+var require__baseIsNative = __commonJS((exports, module) => {
+ var isFunction = require_isFunction2();
+ var isMasked = require__isMasked();
+ var isObject = require_isObject();
+ var toSource = require__toSource();
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
+ var funcProto = Function.prototype;
+ var objectProto = Object.prototype;
+ var funcToString = funcProto.toString;
+ var hasOwnProperty = objectProto.hasOwnProperty;
+ var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
+ function baseIsNative(value) {
+ if (!isObject(value) || isMasked(value)) {
+ return false;
+ }
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
+ return pattern.test(toSource(value));
+ }
+ module.exports = baseIsNative;
+});
+
+// node_modules/lodash/_getValue.js
+var require__getValue = __commonJS((exports, module) => {
+ function getValue(object, key2) {
+ return object == null ? undefined : object[key2];
+ }
+ module.exports = getValue;
+});
+
+// node_modules/lodash/_getNative.js
+var require__getNative = __commonJS((exports, module) => {
+ var baseIsNative = require__baseIsNative();
+ var getValue = require__getValue();
+ function getNative(object, key2) {
+ var value = getValue(object, key2);
+ return baseIsNative(value) ? value : undefined;
+ }
+ module.exports = getNative;
+});
+
+// node_modules/lodash/_defineProperty.js
+var require__defineProperty = __commonJS((exports, module) => {
+ var getNative = require__getNative();
+ var defineProperty = function() {
+ try {
+ var func = getNative(Object, "defineProperty");
+ func({}, "", {});
+ return func;
+ } catch (e) {
+ }
+ }();
+ module.exports = defineProperty;
+});
+
+// node_modules/lodash/_baseSetToString.js
+var require__baseSetToString = __commonJS((exports, module) => {
+ var constant = require_constant();
+ var defineProperty = require__defineProperty();
+ var identity = require_identity2();
+ var baseSetToString = !defineProperty ? identity : function(func, string2) {
+ return defineProperty(func, "toString", {
+ configurable: true,
+ enumerable: false,
+ value: constant(string2),
+ writable: true
+ });
+ };
+ module.exports = baseSetToString;
+});
+
+// node_modules/lodash/_shortOut.js
+var require__shortOut = __commonJS((exports, module) => {
+ var HOT_COUNT = 800;
+ var HOT_SPAN = 16;
+ var nativeNow = Date.now;
+ function shortOut(func) {
+ var count = 0, lastCalled = 0;
+ return function() {
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
+ lastCalled = stamp;
+ if (remaining > 0) {
+ if (++count >= HOT_COUNT) {
+ return arguments[0];
+ }
+ } else {
+ count = 0;
+ }
+ return func.apply(undefined, arguments);
+ };
+ }
+ module.exports = shortOut;
+});
+
+// node_modules/lodash/_setToString.js
+var require__setToString = __commonJS((exports, module) => {
+ var baseSetToString = require__baseSetToString();
+ var shortOut = require__shortOut();
+ var setToString = shortOut(baseSetToString);
+ module.exports = setToString;
+});
+
+// node_modules/lodash/_baseRest.js
+var require__baseRest = __commonJS((exports, module) => {
+ var identity = require_identity2();
+ var overRest = require__overRest();
+ var setToString = require__setToString();
+ function baseRest(func, start) {
+ return setToString(overRest(func, start, identity), func + "");
+ }
+ module.exports = baseRest;
+});
+
+// node_modules/lodash/eq.js
+var require_eq = __commonJS((exports, module) => {
+ function eq(value, other) {
+ return value === other || value !== value && other !== other;
+ }
+ module.exports = eq;
+});
+
+// node_modules/lodash/isLength.js
+var require_isLength = __commonJS((exports, module) => {
+ var MAX_SAFE_INTEGER = 9007199254740991;
+ function isLength(value) {
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+ }
+ module.exports = isLength;
+});
+
+// node_modules/lodash/isArrayLike.js
+var require_isArrayLike2 = __commonJS((exports, module) => {
+ var isFunction = require_isFunction2();
+ var isLength = require_isLength();
+ function isArrayLike(value) {
+ return value != null && isLength(value.length) && !isFunction(value);
+ }
+ module.exports = isArrayLike;
+});
+
+// node_modules/lodash/_isIndex.js
+var require__isIndex = __commonJS((exports, module) => {
+ var MAX_SAFE_INTEGER = 9007199254740991;
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
+ function isIndex(value, length) {
+ var type = typeof value;
+ length = length == null ? MAX_SAFE_INTEGER : length;
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
+ }
+ module.exports = isIndex;
+});
+
+// node_modules/lodash/_isIterateeCall.js
+var require__isIterateeCall = __commonJS((exports, module) => {
+ var eq = require_eq();
+ var isArrayLike = require_isArrayLike2();
+ var isIndex = require__isIndex();
+ var isObject = require_isObject();
+ function isIterateeCall(value, index, object) {
+ if (!isObject(object)) {
+ return false;
+ }
+ var type = typeof index;
+ if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && (index in object)) {
+ return eq(object[index], value);
+ }
+ return false;
+ }
+ module.exports = isIterateeCall;
+});
+
+// node_modules/lodash/_baseTimes.js
+var require__baseTimes = __commonJS((exports, module) => {
+ function baseTimes(n, iteratee) {
+ var index = -1, result = Array(n);
+ while (++index < n) {
+ result[index] = iteratee(index);
+ }
+ return result;
+ }
+ module.exports = baseTimes;
+});
+
+// node_modules/lodash/isObjectLike.js
+var require_isObjectLike = __commonJS((exports, module) => {
+ function isObjectLike(value) {
+ return value != null && typeof value == "object";
+ }
+ module.exports = isObjectLike;
+});
+
+// node_modules/lodash/_baseIsArguments.js
+var require__baseIsArguments = __commonJS((exports, module) => {
+ var baseGetTag = require__baseGetTag();
+ var isObjectLike = require_isObjectLike();
+ var argsTag = "[object Arguments]";
+ function baseIsArguments(value) {
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
+ }
+ module.exports = baseIsArguments;
+});
+
+// node_modules/lodash/isArguments.js
+var require_isArguments = __commonJS((exports, module) => {
+ var baseIsArguments = require__baseIsArguments();
+ var isObjectLike = require_isObjectLike();
+ var objectProto = Object.prototype;
+ var hasOwnProperty = objectProto.hasOwnProperty;
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
+ var isArguments = baseIsArguments(function() {
+ return arguments;
+ }()) ? baseIsArguments : function(value) {
+ return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
+ };
+ module.exports = isArguments;
+});
+
+// node_modules/lodash/isArray.js
+var require_isArray = __commonJS((exports, module) => {
+ var isArray = Array.isArray;
+ module.exports = isArray;
+});
+
+// node_modules/lodash/stubFalse.js
+var require_stubFalse = __commonJS((exports, module) => {
+ function stubFalse() {
+ return false;
+ }
+ module.exports = stubFalse;
+});
+
+// node_modules/lodash/isBuffer.js
+var require_isBuffer = __commonJS((exports, module) => {
+ var root = require__root();
+ var stubFalse = require_stubFalse();
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
+ var moduleExports = freeModule && freeModule.exports === freeExports;
+ var Buffer2 = moduleExports ? root.Buffer : undefined;
+ var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined;
+ var isBuffer = nativeIsBuffer || stubFalse;
+ module.exports = isBuffer;
+});
+
+// node_modules/lodash/_baseIsTypedArray.js
+var require__baseIsTypedArray = __commonJS((exports, module) => {
+ var baseGetTag = require__baseGetTag();
+ var isLength = require_isLength();
+ var isObjectLike = require_isObjectLike();
+ var argsTag = "[object Arguments]";
+ var arrayTag = "[object Array]";
+ var boolTag = "[object Boolean]";
+ var dateTag = "[object Date]";
+ var errorTag = "[object Error]";
+ var funcTag = "[object Function]";
+ var mapTag = "[object Map]";
+ var numberTag = "[object Number]";
+ var objectTag = "[object Object]";
+ var regexpTag = "[object RegExp]";
+ var setTag = "[object Set]";
+ var stringTag = "[object String]";
+ var weakMapTag = "[object WeakMap]";
+ var arrayBufferTag = "[object ArrayBuffer]";
+ var dataViewTag = "[object DataView]";
+ var float32Tag = "[object Float32Array]";
+ var float64Tag = "[object Float64Array]";
+ var int8Tag = "[object Int8Array]";
+ var int16Tag = "[object Int16Array]";
+ var int32Tag = "[object Int32Array]";
+ var uint8Tag = "[object Uint8Array]";
+ var uint8ClampedTag = "[object Uint8ClampedArray]";
+ var uint16Tag = "[object Uint16Array]";
+ var uint32Tag = "[object Uint32Array]";
+ var typedArrayTags = {};
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
+ function baseIsTypedArray(value) {
+ return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
+ }
+ module.exports = baseIsTypedArray;
+});
+
+// node_modules/lodash/_baseUnary.js
+var require__baseUnary = __commonJS((exports, module) => {
+ function baseUnary(func) {
+ return function(value) {
+ return func(value);
+ };
+ }
+ module.exports = baseUnary;
+});
+
+// node_modules/lodash/_nodeUtil.js
+var require__nodeUtil = __commonJS((exports, module) => {
+ var freeGlobal = require__freeGlobal();
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
+ var moduleExports = freeModule && freeModule.exports === freeExports;
+ var freeProcess = moduleExports && freeGlobal.process;
+ var nodeUtil = function() {
+ try {
+ var types = freeModule && freeModule.require && freeModule.require("util").types;
+ if (types) {
+ return types;
+ }
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
+ } catch (e) {
+ }
+ }();
+ module.exports = nodeUtil;
+});
+
+// node_modules/lodash/isTypedArray.js
+var require_isTypedArray = __commonJS((exports, module) => {
+ var baseIsTypedArray = require__baseIsTypedArray();
+ var baseUnary = require__baseUnary();
+ var nodeUtil = require__nodeUtil();
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
+ module.exports = isTypedArray;
+});
+
+// node_modules/lodash/_arrayLikeKeys.js
+var require__arrayLikeKeys = __commonJS((exports, module) => {
+ var baseTimes = require__baseTimes();
+ var isArguments = require_isArguments();
+ var isArray = require_isArray();
+ var isBuffer = require_isBuffer();
+ var isIndex = require__isIndex();
+ var isTypedArray = require_isTypedArray();
+ var objectProto = Object.prototype;
+ var hasOwnProperty = objectProto.hasOwnProperty;
+ function arrayLikeKeys(value, inherited) {
+ var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
+ for (var key2 in value) {
+ if ((inherited || hasOwnProperty.call(value, key2)) && !(skipIndexes && (key2 == "length" || isBuff && (key2 == "offset" || key2 == "parent") || isType && (key2 == "buffer" || key2 == "byteLength" || key2 == "byteOffset") || isIndex(key2, length)))) {
+ result.push(key2);
+ }
+ }
+ return result;
+ }
+ module.exports = arrayLikeKeys;
+});
+
+// node_modules/lodash/_isPrototype.js
+var require__isPrototype = __commonJS((exports, module) => {
+ var objectProto = Object.prototype;
+ function isPrototype(value) {
+ var Ctor = value && value.constructor, proto2 = typeof Ctor == "function" && Ctor.prototype || objectProto;
+ return value === proto2;
+ }
+ module.exports = isPrototype;
+});
+
+// node_modules/lodash/_nativeKeysIn.js
+var require__nativeKeysIn = __commonJS((exports, module) => {
+ function nativeKeysIn(object) {
+ var result = [];
+ if (object != null) {
+ for (var key2 in Object(object)) {
+ result.push(key2);
+ }
+ }
+ return result;
+ }
+ module.exports = nativeKeysIn;
+});
+
+// node_modules/lodash/_baseKeysIn.js
+var require__baseKeysIn = __commonJS((exports, module) => {
+ var isObject = require_isObject();
+ var isPrototype = require__isPrototype();
+ var nativeKeysIn = require__nativeKeysIn();
+ var objectProto = Object.prototype;
+ var hasOwnProperty = objectProto.hasOwnProperty;
+ function baseKeysIn(object) {
+ if (!isObject(object)) {
+ return nativeKeysIn(object);
+ }
+ var isProto = isPrototype(object), result = [];
+ for (var key2 in object) {
+ if (!(key2 == "constructor" && (isProto || !hasOwnProperty.call(object, key2)))) {
+ result.push(key2);
+ }
+ }
+ return result;
+ }
+ module.exports = baseKeysIn;
+});
+
+// node_modules/lodash/keysIn.js
+var require_keysIn = __commonJS((exports, module) => {
+ var arrayLikeKeys = require__arrayLikeKeys();
+ var baseKeysIn = require__baseKeysIn();
+ var isArrayLike = require_isArrayLike2();
+ function keysIn(object) {
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
+ }
+ module.exports = keysIn;
+});
+
+// node_modules/lodash/defaults.js
+var require_defaults = __commonJS((exports, module) => {
+ var baseRest = require__baseRest();
+ var eq = require_eq();
+ var isIterateeCall = require__isIterateeCall();
+ var keysIn = require_keysIn();
+ var objectProto = Object.prototype;
+ var hasOwnProperty = objectProto.hasOwnProperty;
+ var defaults = baseRest(function(object, sources) {
+ object = Object(object);
+ var index = -1;
+ var length = sources.length;
+ var guard = length > 2 ? sources[2] : undefined;
+ if (guard && isIterateeCall(sources[0], sources[1], guard)) {
+ length = 1;
+ }
+ while (++index < length) {
+ var source = sources[index];
+ var props = keysIn(source);
+ var propsIndex = -1;
+ var propsLength = props.length;
+ while (++propsIndex < propsLength) {
+ var key2 = props[propsIndex];
+ var value = object[key2];
+ if (value === undefined || eq(value, objectProto[key2]) && !hasOwnProperty.call(object, key2)) {
+ object[key2] = source[key2];
+ }
+ }
+ }
+ return object;
+ });
+ module.exports = defaults;
+});
+
+// node_modules/readable-stream/lib/ours/primordials.js
+var require_primordials = __commonJS((exports, module) => {
+ class AggregateError extends Error {
+ constructor(errors2) {
+ if (!Array.isArray(errors2)) {
+ throw new TypeError(`Expected input to be an Array, got ${typeof errors2}`);
+ }
+ let message = "";
+ for (let i = 0;i < errors2.length; i++) {
+ message += ` ${errors2[i].stack}
+`;
+ }
+ super(message);
+ this.name = "AggregateError";
+ this.errors = errors2;
+ }
+ }
+ module.exports = {
+ AggregateError,
+ ArrayIsArray(self2) {
+ return Array.isArray(self2);
+ },
+ ArrayPrototypeIncludes(self2, el) {
+ return self2.includes(el);
+ },
+ ArrayPrototypeIndexOf(self2, el) {
+ return self2.indexOf(el);
+ },
+ ArrayPrototypeJoin(self2, sep) {
+ return self2.join(sep);
+ },
+ ArrayPrototypeMap(self2, fn) {
+ return self2.map(fn);
+ },
+ ArrayPrototypePop(self2, el) {
+ return self2.pop(el);
+ },
+ ArrayPrototypePush(self2, el) {
+ return self2.push(el);
+ },
+ ArrayPrototypeSlice(self2, start, end) {
+ return self2.slice(start, end);
+ },
+ Error,
+ FunctionPrototypeCall(fn, thisArgs, ...args) {
+ return fn.call(thisArgs, ...args);
+ },
+ FunctionPrototypeSymbolHasInstance(self2, instance) {
+ return Function.prototype[Symbol.hasInstance].call(self2, instance);
+ },
+ MathFloor: Math.floor,
+ Number,
+ NumberIsInteger: Number.isInteger,
+ NumberIsNaN: Number.isNaN,
+ NumberMAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER,
+ NumberMIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER,
+ NumberParseInt: Number.parseInt,
+ ObjectDefineProperties(self2, props) {
+ return Object.defineProperties(self2, props);
+ },
+ ObjectDefineProperty(self2, name, prop) {
+ return Object.defineProperty(self2, name, prop);
+ },
+ ObjectGetOwnPropertyDescriptor(self2, name) {
+ return Object.getOwnPropertyDescriptor(self2, name);
+ },
+ ObjectKeys(obj) {
+ return Object.keys(obj);
+ },
+ ObjectSetPrototypeOf(target, proto2) {
+ return Object.setPrototypeOf(target, proto2);
+ },
+ Promise,
+ PromisePrototypeCatch(self2, fn) {
+ return self2.catch(fn);
+ },
+ PromisePrototypeThen(self2, thenFn, catchFn) {
+ return self2.then(thenFn, catchFn);
+ },
+ PromiseReject(err) {
+ return Promise.reject(err);
+ },
+ PromiseResolve(val) {
+ return Promise.resolve(val);
+ },
+ ReflectApply: Reflect.apply,
+ RegExpPrototypeTest(self2, value) {
+ return self2.test(value);
+ },
+ SafeSet: Set,
+ String,
+ StringPrototypeSlice(self2, start, end) {
+ return self2.slice(start, end);
+ },
+ StringPrototypeToLowerCase(self2) {
+ return self2.toLowerCase();
+ },
+ StringPrototypeToUpperCase(self2) {
+ return self2.toUpperCase();
+ },
+ StringPrototypeTrim(self2) {
+ return self2.trim();
+ },
+ Symbol,
+ SymbolFor: Symbol.for,
+ SymbolAsyncIterator: Symbol.asyncIterator,
+ SymbolHasInstance: Symbol.hasInstance,
+ SymbolIterator: Symbol.iterator,
+ SymbolDispose: Symbol.dispose || Symbol("Symbol.dispose"),
+ SymbolAsyncDispose: Symbol.asyncDispose || Symbol("Symbol.asyncDispose"),
+ TypedArrayPrototypeSet(self2, buf, len) {
+ return self2.set(buf, len);
+ },
+ Boolean,
+ Uint8Array
+ };
+});
+
+// node_modules/readable-stream/lib/ours/util/inspect.js
+var require_inspect = __commonJS((exports, module) => {
+ module.exports = {
+ format(format, ...args) {
+ return format.replace(/%([sdifj])/g, function(...[_unused, type]) {
+ const replacement = args.shift();
+ if (type === "f") {
+ return replacement.toFixed(6);
+ } else if (type === "j") {
+ return JSON.stringify(replacement);
+ } else if (type === "s" && typeof replacement === "object") {
+ const ctor = replacement.constructor !== Object ? replacement.constructor.name : "";
+ return `${ctor} {}`.trim();
+ } else {
+ return replacement.toString();
+ }
+ });
+ },
+ inspect(value) {
+ switch (typeof value) {
+ case "string":
+ if (value.includes("'")) {
+ if (!value.includes('"')) {
+ return `"${value}"`;
+ } else if (!value.includes("`") && !value.includes("${")) {
+ return `\`${value}\``;
+ }
+ }
+ return `'${value}'`;
+ case "number":
+ if (isNaN(value)) {
+ return "NaN";
+ } else if (Object.is(value, -0)) {
+ return String(value);
+ }
+ return value;
+ case "bigint":
+ return `${String(value)}n`;
+ case "boolean":
+ case "undefined":
+ return String(value);
+ case "object":
+ return "{}";
+ }
+ }
+ };
+});
+
+// node_modules/readable-stream/lib/ours/errors.js
+var require_errors = __commonJS((exports, module) => {
+ var { format, inspect } = require_inspect();
+ var { AggregateError: CustomAggregateError } = require_primordials();
+ var AggregateError = globalThis.AggregateError || CustomAggregateError;
+ var kIsNodeError = Symbol("kIsNodeError");
+ var kTypes = [
+ "string",
+ "function",
+ "number",
+ "object",
+ "Function",
+ "Object",
+ "boolean",
+ "bigint",
+ "symbol"
+ ];
+ var classRegExp = /^([A-Z][a-z0-9]*)+$/;
+ var nodeInternalPrefix = "__node_internal_";
+ var codes = {};
+ function assert(value, message) {
+ if (!value) {
+ throw new codes.ERR_INTERNAL_ASSERTION(message);
+ }
+ }
+ function addNumericalSeparator(val) {
+ let res = "";
+ let i = val.length;
+ const start = val[0] === "-" ? 1 : 0;
+ for (;i >= start + 4; i -= 3) {
+ res = `_${val.slice(i - 3, i)}${res}`;
+ }
+ return `${val.slice(0, i)}${res}`;
+ }
+ function getMessage(key2, msg, args) {
+ if (typeof msg === "function") {
+ assert(msg.length <= args.length, `Code: ${key2}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).`);
+ return msg(...args);
+ }
+ const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length;
+ assert(expectedLength === args.length, `Code: ${key2}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`);
+ if (args.length === 0) {
+ return msg;
+ }
+ return format(msg, ...args);
+ }
+ function E(code, message, Base) {
+ if (!Base) {
+ Base = Error;
+ }
+
+ class NodeError extends Base {
+ constructor(...args) {
+ super(getMessage(code, message, args));
+ }
+ toString() {
+ return `${this.name} [${code}]: ${this.message}`;
+ }
+ }
+ Object.defineProperties(NodeError.prototype, {
+ name: {
+ value: Base.name,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ },
+ toString: {
+ value() {
+ return `${this.name} [${code}]: ${this.message}`;
+ },
+ writable: true,
+ enumerable: false,
+ configurable: true
+ }
+ });
+ NodeError.prototype.code = code;
+ NodeError.prototype[kIsNodeError] = true;
+ codes[code] = NodeError;
+ }
+ function hideStackFrames(fn) {
+ const hidden = nodeInternalPrefix + fn.name;
+ Object.defineProperty(fn, "name", {
+ value: hidden
+ });
+ return fn;
+ }
+ function aggregateTwoErrors(innerError, outerError) {
+ if (innerError && outerError && innerError !== outerError) {
+ if (Array.isArray(outerError.errors)) {
+ outerError.errors.push(innerError);
+ return outerError;
+ }
+ const err = new AggregateError([outerError, innerError], outerError.message);
+ err.code = outerError.code;
+ return err;
+ }
+ return innerError || outerError;
+ }
+
+ class AbortError extends Error {
+ constructor(message = "The operation was aborted", options = undefined) {
+ if (options !== undefined && typeof options !== "object") {
+ throw new codes.ERR_INVALID_ARG_TYPE("options", "Object", options);
+ }
+ super(message, options);
+ this.code = "ABORT_ERR";
+ this.name = "AbortError";
+ }
+ }
+ E("ERR_ASSERTION", "%s", Error);
+ E("ERR_INVALID_ARG_TYPE", (name, expected, actual) => {
+ assert(typeof name === "string", "'name' must be a string");
+ if (!Array.isArray(expected)) {
+ expected = [expected];
+ }
+ let msg = "The ";
+ if (name.endsWith(" argument")) {
+ msg += `${name} `;
+ } else {
+ msg += `"${name}" ${name.includes(".") ? "property" : "argument"} `;
+ }
+ msg += "must be ";
+ const types = [];
+ const instances = [];
+ const other = [];
+ for (const value of expected) {
+ assert(typeof value === "string", "All expected entries have to be of type string");
+ if (kTypes.includes(value)) {
+ types.push(value.toLowerCase());
+ } else if (classRegExp.test(value)) {
+ instances.push(value);
+ } else {
+ assert(value !== "object", 'The value "object" should be written as "Object"');
+ other.push(value);
+ }
+ }
+ if (instances.length > 0) {
+ const pos = types.indexOf("object");
+ if (pos !== -1) {
+ types.splice(types, pos, 1);
+ instances.push("Object");
+ }
+ }
+ if (types.length > 0) {
+ switch (types.length) {
+ case 1:
+ msg += `of type ${types[0]}`;
+ break;
+ case 2:
+ msg += `one of type ${types[0]} or ${types[1]}`;
+ break;
+ default: {
+ const last = types.pop();
+ msg += `one of type ${types.join(", ")}, or ${last}`;
+ }
+ }
+ if (instances.length > 0 || other.length > 0) {
+ msg += " or ";
+ }
+ }
+ if (instances.length > 0) {
+ switch (instances.length) {
+ case 1:
+ msg += `an instance of ${instances[0]}`;
+ break;
+ case 2:
+ msg += `an instance of ${instances[0]} or ${instances[1]}`;
+ break;
+ default: {
+ const last = instances.pop();
+ msg += `an instance of ${instances.join(", ")}, or ${last}`;
+ }
+ }
+ if (other.length > 0) {
+ msg += " or ";
+ }
+ }
+ switch (other.length) {
+ case 0:
+ break;
+ case 1:
+ if (other[0].toLowerCase() !== other[0]) {
+ msg += "an ";
+ }
+ msg += `${other[0]}`;
+ break;
+ case 2:
+ msg += `one of ${other[0]} or ${other[1]}`;
+ break;
+ default: {
+ const last = other.pop();
+ msg += `one of ${other.join(", ")}, or ${last}`;
+ }
+ }
+ if (actual == null) {
+ msg += `. Received ${actual}`;
+ } else if (typeof actual === "function" && actual.name) {
+ msg += `. Received function ${actual.name}`;
+ } else if (typeof actual === "object") {
+ var _actual$constructor;
+ if ((_actual$constructor = actual.constructor) !== null && _actual$constructor !== undefined && _actual$constructor.name) {
+ msg += `. Received an instance of ${actual.constructor.name}`;
+ } else {
+ const inspected = inspect(actual, {
+ depth: -1
+ });
+ msg += `. Received ${inspected}`;
+ }
+ } else {
+ let inspected = inspect(actual, {
+ colors: false
+ });
+ if (inspected.length > 25) {
+ inspected = `${inspected.slice(0, 25)}...`;
+ }
+ msg += `. Received type ${typeof actual} (${inspected})`;
+ }
+ return msg;
+ }, TypeError);
+ E("ERR_INVALID_ARG_VALUE", (name, value, reason = "is invalid") => {
+ let inspected = inspect(value);
+ if (inspected.length > 128) {
+ inspected = inspected.slice(0, 128) + "...";
+ }
+ const type = name.includes(".") ? "property" : "argument";
+ return `The ${type} '${name}' ${reason}. Received ${inspected}`;
+ }, TypeError);
+ E("ERR_INVALID_RETURN_VALUE", (input, name, value) => {
+ var _value$constructor;
+ const type = value !== null && value !== undefined && (_value$constructor = value.constructor) !== null && _value$constructor !== undefined && _value$constructor.name ? `instance of ${value.constructor.name}` : `type ${typeof value}`;
+ return `Expected ${input} to be returned from the "${name}"` + ` function but got ${type}.`;
+ }, TypeError);
+ E("ERR_MISSING_ARGS", (...args) => {
+ assert(args.length > 0, "At least one arg needs to be specified");
+ let msg;
+ const len = args.length;
+ args = (Array.isArray(args) ? args : [args]).map((a) => `"${a}"`).join(" or ");
+ switch (len) {
+ case 1:
+ msg += `The ${args[0]} argument`;
+ break;
+ case 2:
+ msg += `The ${args[0]} and ${args[1]} arguments`;
+ break;
+ default:
+ {
+ const last = args.pop();
+ msg += `The ${args.join(", ")}, and ${last} arguments`;
+ }
+ break;
+ }
+ return `${msg} must be specified`;
+ }, TypeError);
+ E("ERR_OUT_OF_RANGE", (str, range, input) => {
+ assert(range, 'Missing "range" argument');
+ let received;
+ if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
+ received = addNumericalSeparator(String(input));
+ } else if (typeof input === "bigint") {
+ received = String(input);
+ const limit = BigInt(2) ** BigInt(32);
+ if (input > limit || input < -limit) {
+ received = addNumericalSeparator(received);
+ }
+ received += "n";
+ } else {
+ received = inspect(input);
+ }
+ return `The value of "${str}" is out of range. It must be ${range}. Received ${received}`;
+ }, RangeError);
+ E("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error);
+ E("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error);
+ E("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error);
+ E("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error);
+ E("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error);
+ E("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
+ E("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error);
+ E("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error);
+ E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error);
+ E("ERR_STREAM_WRITE_AFTER_END", "write after end", Error);
+ E("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError);
+ module.exports = {
+ AbortError,
+ aggregateTwoErrors: hideStackFrames(aggregateTwoErrors),
+ hideStackFrames,
+ codes
+ };
+});
+
+// node_modules/event-target-shim/dist/event-target-shim.js
+var require_event_target_shim = __commonJS((exports, module) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var privateData = new WeakMap;
+ var wrappers = new WeakMap;
+ function pd(event) {
+ const retv = privateData.get(event);
+ console.assert(retv != null, "'this' is expected an Event object, but got", event);
+ return retv;
+ }
+ function setCancelFlag(data) {
+ if (data.passiveListener != null) {
+ if (typeof console !== "undefined" && typeof console.error === "function") {
+ console.error("Unable to preventDefault inside passive event listener invocation.", data.passiveListener);
+ }
+ return;
+ }
+ if (!data.event.cancelable) {
+ return;
+ }
+ data.canceled = true;
+ if (typeof data.event.preventDefault === "function") {
+ data.event.preventDefault();
+ }
+ }
+ function Event(eventTarget, event) {
+ privateData.set(this, {
+ eventTarget,
+ event,
+ eventPhase: 2,
+ currentTarget: eventTarget,
+ canceled: false,
+ stopped: false,
+ immediateStopped: false,
+ passiveListener: null,
+ timeStamp: event.timeStamp || Date.now()
+ });
+ Object.defineProperty(this, "isTrusted", { value: false, enumerable: true });
+ const keys = Object.keys(event);
+ for (let i = 0;i < keys.length; ++i) {
+ const key2 = keys[i];
+ if (!(key2 in this)) {
+ Object.defineProperty(this, key2, defineRedirectDescriptor(key2));
+ }
+ }
+ }
+ Event.prototype = {
+ get type() {
+ return pd(this).event.type;
+ },
+ get target() {
+ return pd(this).eventTarget;
+ },
+ get currentTarget() {
+ return pd(this).currentTarget;
+ },
+ composedPath() {
+ const currentTarget = pd(this).currentTarget;
+ if (currentTarget == null) {
+ return [];
+ }
+ return [currentTarget];
+ },
+ get NONE() {
+ return 0;
+ },
+ get CAPTURING_PHASE() {
+ return 1;
+ },
+ get AT_TARGET() {
+ return 2;
+ },
+ get BUBBLING_PHASE() {
+ return 3;
+ },
+ get eventPhase() {
+ return pd(this).eventPhase;
+ },
+ stopPropagation() {
+ const data = pd(this);
+ data.stopped = true;
+ if (typeof data.event.stopPropagation === "function") {
+ data.event.stopPropagation();
+ }
+ },
+ stopImmediatePropagation() {
+ const data = pd(this);
+ data.stopped = true;
+ data.immediateStopped = true;
+ if (typeof data.event.stopImmediatePropagation === "function") {
+ data.event.stopImmediatePropagation();
+ }
+ },
+ get bubbles() {
+ return Boolean(pd(this).event.bubbles);
+ },
+ get cancelable() {
+ return Boolean(pd(this).event.cancelable);
+ },
+ preventDefault() {
+ setCancelFlag(pd(this));
+ },
+ get defaultPrevented() {
+ return pd(this).canceled;
+ },
+ get composed() {
+ return Boolean(pd(this).event.composed);
+ },
+ get timeStamp() {
+ return pd(this).timeStamp;
+ },
+ get srcElement() {
+ return pd(this).eventTarget;
+ },
+ get cancelBubble() {
+ return pd(this).stopped;
+ },
+ set cancelBubble(value) {
+ if (!value) {
+ return;
+ }
+ const data = pd(this);
+ data.stopped = true;
+ if (typeof data.event.cancelBubble === "boolean") {
+ data.event.cancelBubble = true;
+ }
+ },
+ get returnValue() {
+ return !pd(this).canceled;
+ },
+ set returnValue(value) {
+ if (!value) {
+ setCancelFlag(pd(this));
+ }
+ },
+ initEvent() {
+ }
+ };
+ Object.defineProperty(Event.prototype, "constructor", {
+ value: Event,
+ configurable: true,
+ writable: true
+ });
+ if (typeof window !== "undefined" && typeof window.Event !== "undefined") {
+ Object.setPrototypeOf(Event.prototype, window.Event.prototype);
+ wrappers.set(window.Event.prototype, Event);
+ }
+ function defineRedirectDescriptor(key2) {
+ return {
+ get() {
+ return pd(this).event[key2];
+ },
+ set(value) {
+ pd(this).event[key2] = value;
+ },
+ configurable: true,
+ enumerable: true
+ };
+ }
+ function defineCallDescriptor(key2) {
+ return {
+ value() {
+ const event = pd(this).event;
+ return event[key2].apply(event, arguments);
+ },
+ configurable: true,
+ enumerable: true
+ };
+ }
+ function defineWrapper(BaseEvent, proto2) {
+ const keys = Object.keys(proto2);
+ if (keys.length === 0) {
+ return BaseEvent;
+ }
+ function CustomEvent(eventTarget, event) {
+ BaseEvent.call(this, eventTarget, event);
+ }
+ CustomEvent.prototype = Object.create(BaseEvent.prototype, {
+ constructor: { value: CustomEvent, configurable: true, writable: true }
+ });
+ for (let i = 0;i < keys.length; ++i) {
+ const key2 = keys[i];
+ if (!(key2 in BaseEvent.prototype)) {
+ const descriptor = Object.getOwnPropertyDescriptor(proto2, key2);
+ const isFunc = typeof descriptor.value === "function";
+ Object.defineProperty(CustomEvent.prototype, key2, isFunc ? defineCallDescriptor(key2) : defineRedirectDescriptor(key2));
+ }
+ }
+ return CustomEvent;
+ }
+ function getWrapper(proto2) {
+ if (proto2 == null || proto2 === Object.prototype) {
+ return Event;
+ }
+ let wrapper = wrappers.get(proto2);
+ if (wrapper == null) {
+ wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto2)), proto2);
+ wrappers.set(proto2, wrapper);
+ }
+ return wrapper;
+ }
+ function wrapEvent(eventTarget, event) {
+ const Wrapper = getWrapper(Object.getPrototypeOf(event));
+ return new Wrapper(eventTarget, event);
+ }
+ function isStopped(event) {
+ return pd(event).immediateStopped;
+ }
+ function setEventPhase(event, eventPhase) {
+ pd(event).eventPhase = eventPhase;
+ }
+ function setCurrentTarget(event, currentTarget) {
+ pd(event).currentTarget = currentTarget;
+ }
+ function setPassiveListener(event, passiveListener) {
+ pd(event).passiveListener = passiveListener;
+ }
+ var listenersMap = new WeakMap;
+ var CAPTURE = 1;
+ var BUBBLE = 2;
+ var ATTRIBUTE = 3;
+ function isObject(x) {
+ return x !== null && typeof x === "object";
+ }
+ function getListeners(eventTarget) {
+ const listeners = listenersMap.get(eventTarget);
+ if (listeners == null) {
+ throw new TypeError("'this' is expected an EventTarget object, but got another value.");
+ }
+ return listeners;
+ }
+ function defineEventAttributeDescriptor(eventName) {
+ return {
+ get() {
+ const listeners = getListeners(this);
+ let node = listeners.get(eventName);
+ while (node != null) {
+ if (node.listenerType === ATTRIBUTE) {
+ return node.listener;
+ }
+ node = node.next;
+ }
+ return null;
+ },
+ set(listener) {
+ if (typeof listener !== "function" && !isObject(listener)) {
+ listener = null;
+ }
+ const listeners = getListeners(this);
+ let prev = null;
+ let node = listeners.get(eventName);
+ while (node != null) {
+ if (node.listenerType === ATTRIBUTE) {
+ if (prev !== null) {
+ prev.next = node.next;
+ } else if (node.next !== null) {
+ listeners.set(eventName, node.next);
+ } else {
+ listeners.delete(eventName);
+ }
+ } else {
+ prev = node;
+ }
+ node = node.next;
+ }
+ if (listener !== null) {
+ const newNode = {
+ listener,
+ listenerType: ATTRIBUTE,
+ passive: false,
+ once: false,
+ next: null
+ };
+ if (prev === null) {
+ listeners.set(eventName, newNode);
+ } else {
+ prev.next = newNode;
+ }
+ }
+ },
+ configurable: true,
+ enumerable: true
+ };
+ }
+ function defineEventAttribute(eventTargetPrototype, eventName) {
+ Object.defineProperty(eventTargetPrototype, `on${eventName}`, defineEventAttributeDescriptor(eventName));
+ }
+ function defineCustomEventTarget(eventNames) {
+ function CustomEventTarget() {
+ EventTarget.call(this);
+ }
+ CustomEventTarget.prototype = Object.create(EventTarget.prototype, {
+ constructor: {
+ value: CustomEventTarget,
+ configurable: true,
+ writable: true
+ }
+ });
+ for (let i = 0;i < eventNames.length; ++i) {
+ defineEventAttribute(CustomEventTarget.prototype, eventNames[i]);
+ }
+ return CustomEventTarget;
+ }
+ function EventTarget() {
+ if (this instanceof EventTarget) {
+ listenersMap.set(this, new Map);
+ return;
+ }
+ if (arguments.length === 1 && Array.isArray(arguments[0])) {
+ return defineCustomEventTarget(arguments[0]);
+ }
+ if (arguments.length > 0) {
+ const types = new Array(arguments.length);
+ for (let i = 0;i < arguments.length; ++i) {
+ types[i] = arguments[i];
+ }
+ return defineCustomEventTarget(types);
+ }
+ throw new TypeError("Cannot call a class as a function");
+ }
+ EventTarget.prototype = {
+ addEventListener(eventName, listener, options) {
+ if (listener == null) {
+ return;
+ }
+ if (typeof listener !== "function" && !isObject(listener)) {
+ throw new TypeError("'listener' should be a function or an object.");
+ }
+ const listeners = getListeners(this);
+ const optionsIsObj = isObject(options);
+ const capture = optionsIsObj ? Boolean(options.capture) : Boolean(options);
+ const listenerType = capture ? CAPTURE : BUBBLE;
+ const newNode = {
+ listener,
+ listenerType,
+ passive: optionsIsObj && Boolean(options.passive),
+ once: optionsIsObj && Boolean(options.once),
+ next: null
+ };
+ let node = listeners.get(eventName);
+ if (node === undefined) {
+ listeners.set(eventName, newNode);
+ return;
+ }
+ let prev = null;
+ while (node != null) {
+ if (node.listener === listener && node.listenerType === listenerType) {
+ return;
+ }
+ prev = node;
+ node = node.next;
+ }
+ prev.next = newNode;
+ },
+ removeEventListener(eventName, listener, options) {
+ if (listener == null) {
+ return;
+ }
+ const listeners = getListeners(this);
+ const capture = isObject(options) ? Boolean(options.capture) : Boolean(options);
+ const listenerType = capture ? CAPTURE : BUBBLE;
+ let prev = null;
+ let node = listeners.get(eventName);
+ while (node != null) {
+ if (node.listener === listener && node.listenerType === listenerType) {
+ if (prev !== null) {
+ prev.next = node.next;
+ } else if (node.next !== null) {
+ listeners.set(eventName, node.next);
+ } else {
+ listeners.delete(eventName);
+ }
+ return;
+ }
+ prev = node;
+ node = node.next;
+ }
+ },
+ dispatchEvent(event) {
+ if (event == null || typeof event.type !== "string") {
+ throw new TypeError('"event.type" should be a string.');
+ }
+ const listeners = getListeners(this);
+ const eventName = event.type;
+ let node = listeners.get(eventName);
+ if (node == null) {
+ return true;
+ }
+ const wrappedEvent = wrapEvent(this, event);
+ let prev = null;
+ while (node != null) {
+ if (node.once) {
+ if (prev !== null) {
+ prev.next = node.next;
+ } else if (node.next !== null) {
+ listeners.set(eventName, node.next);
+ } else {
+ listeners.delete(eventName);
+ }
+ } else {
+ prev = node;
+ }
+ setPassiveListener(wrappedEvent, node.passive ? node.listener : null);
+ if (typeof node.listener === "function") {
+ try {
+ node.listener.call(this, wrappedEvent);
+ } catch (err) {
+ if (typeof console !== "undefined" && typeof console.error === "function") {
+ console.error(err);
+ }
+ }
+ } else if (node.listenerType !== ATTRIBUTE && typeof node.listener.handleEvent === "function") {
+ node.listener.handleEvent(wrappedEvent);
+ }
+ if (isStopped(wrappedEvent)) {
+ break;
+ }
+ node = node.next;
+ }
+ setPassiveListener(wrappedEvent, null);
+ setEventPhase(wrappedEvent, 0);
+ setCurrentTarget(wrappedEvent, null);
+ return !wrappedEvent.defaultPrevented;
+ }
+ };
+ Object.defineProperty(EventTarget.prototype, "constructor", {
+ value: EventTarget,
+ configurable: true,
+ writable: true
+ });
+ if (typeof window !== "undefined" && typeof window.EventTarget !== "undefined") {
+ Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype);
+ }
+ exports.defineEventAttribute = defineEventAttribute;
+ exports.EventTarget = EventTarget;
+ exports.default = EventTarget;
+ module.exports = EventTarget;
+ module.exports.EventTarget = module.exports["default"] = EventTarget;
+ module.exports.defineEventAttribute = defineEventAttribute;
+});
+
+// node_modules/abort-controller/dist/abort-controller.js
+var require_abort_controller = __commonJS((exports, module) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var eventTargetShim = require_event_target_shim();
+
+ class AbortSignal extends eventTargetShim.EventTarget {
+ constructor() {
+ super();
+ throw new TypeError("AbortSignal cannot be constructed directly");
+ }
+ get aborted() {
+ const aborted = abortedFlags.get(this);
+ if (typeof aborted !== "boolean") {
+ throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
+ }
+ return aborted;
+ }
+ }
+ eventTargetShim.defineEventAttribute(AbortSignal.prototype, "abort");
+ function createAbortSignal() {
+ const signal = Object.create(AbortSignal.prototype);
+ eventTargetShim.EventTarget.call(signal);
+ abortedFlags.set(signal, false);
+ return signal;
+ }
+ function abortSignal(signal) {
+ if (abortedFlags.get(signal) !== false) {
+ return;
+ }
+ abortedFlags.set(signal, true);
+ signal.dispatchEvent({ type: "abort" });
+ }
+ var abortedFlags = new WeakMap;
+ Object.defineProperties(AbortSignal.prototype, {
+ aborted: { enumerable: true }
+ });
+ if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
+ Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {
+ configurable: true,
+ value: "AbortSignal"
+ });
+ }
+
+ class AbortController2 {
+ constructor() {
+ signals2.set(this, createAbortSignal());
+ }
+ get signal() {
+ return getSignal(this);
+ }
+ abort() {
+ abortSignal(getSignal(this));
+ }
+ }
+ var signals2 = new WeakMap;
+ function getSignal(controller) {
+ const signal = signals2.get(controller);
+ if (signal == null) {
+ throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`);
+ }
+ return signal;
+ }
+ Object.defineProperties(AbortController2.prototype, {
+ signal: { enumerable: true },
+ abort: { enumerable: true }
+ });
+ if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") {
+ Object.defineProperty(AbortController2.prototype, Symbol.toStringTag, {
+ configurable: true,
+ value: "AbortController"
+ });
+ }
+ exports.AbortController = AbortController2;
+ exports.AbortSignal = AbortSignal;
+ exports.default = AbortController2;
+ module.exports = AbortController2;
+ module.exports.AbortController = module.exports["default"] = AbortController2;
+ module.exports.AbortSignal = AbortSignal;
+});
+
+// node_modules/readable-stream/lib/ours/util.js
+var require_util2 = __commonJS((exports, module) => {
+ var bufferModule = __require("buffer");
+ var { format, inspect } = require_inspect();
+ var {
+ codes: { ERR_INVALID_ARG_TYPE }
+ } = require_errors();
+ var { kResistStopPropagation, AggregateError, SymbolDispose } = require_primordials();
+ var AbortSignal = globalThis.AbortSignal || require_abort_controller().AbortSignal;
+ var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
+ var AsyncFunction = Object.getPrototypeOf(async function() {
+ }).constructor;
+ var Blob = globalThis.Blob || bufferModule.Blob;
+ var isBlob = typeof Blob !== "undefined" ? function isBlob(b) {
+ return b instanceof Blob;
+ } : function isBlob(b) {
+ return false;
+ };
+ var validateAbortSignal = (signal, name) => {
+ if (signal !== undefined && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
+ throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
+ }
+ };
+ var validateFunction = (value, name) => {
+ if (typeof value !== "function") {
+ throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
+ }
+ };
+ module.exports = {
+ AggregateError,
+ kEmptyObject: Object.freeze({}),
+ once(callback) {
+ let called = false;
+ return function(...args) {
+ if (called) {
+ return;
+ }
+ called = true;
+ callback.apply(this, args);
+ };
+ },
+ createDeferredPromise: function() {
+ let resolve;
+ let reject;
+ const promise = new Promise((res, rej) => {
+ resolve = res;
+ reject = rej;
+ });
+ return {
+ promise,
+ resolve,
+ reject
+ };
+ },
+ promisify(fn) {
+ return new Promise((resolve, reject) => {
+ fn((err, ...args) => {
+ if (err) {
+ return reject(err);
+ }
+ return resolve(...args);
+ });
+ });
+ },
+ debuglog() {
+ return function() {
+ };
+ },
+ format,
+ inspect,
+ types: {
+ isAsyncFunction(fn) {
+ return fn instanceof AsyncFunction;
+ },
+ isArrayBufferView(arr) {
+ return ArrayBuffer.isView(arr);
+ }
+ },
+ isBlob,
+ deprecate(fn, message) {
+ return fn;
+ },
+ addAbortListener: __require("events").addAbortListener || function addAbortListener(signal, listener) {
+ if (signal === undefined) {
+ throw new ERR_INVALID_ARG_TYPE("signal", "AbortSignal", signal);
+ }
+ validateAbortSignal(signal, "signal");
+ validateFunction(listener, "listener");
+ let removeEventListener;
+ if (signal.aborted) {
+ queueMicrotask(() => listener());
+ } else {
+ signal.addEventListener("abort", listener, {
+ __proto__: null,
+ once: true,
+ [kResistStopPropagation]: true
+ });
+ removeEventListener = () => {
+ signal.removeEventListener("abort", listener);
+ };
+ }
+ return {
+ __proto__: null,
+ [SymbolDispose]() {
+ var _removeEventListener;
+ (_removeEventListener = removeEventListener) === null || _removeEventListener === undefined || _removeEventListener();
+ }
+ };
+ },
+ AbortSignalAny: AbortSignal.any || function AbortSignalAny(signals2) {
+ if (signals2.length === 1) {
+ return signals2[0];
+ }
+ const ac = new AbortController2;
+ const abort = () => ac.abort();
+ signals2.forEach((signal) => {
+ validateAbortSignal(signal, "signals");
+ signal.addEventListener("abort", abort, {
+ once: true
+ });
+ });
+ ac.signal.addEventListener("abort", () => {
+ signals2.forEach((signal) => signal.removeEventListener("abort", abort));
+ }, {
+ once: true
+ });
+ return ac.signal;
+ }
+ };
+ module.exports.promisify.custom = Symbol.for("nodejs.util.promisify.custom");
+});
+
+// node_modules/readable-stream/lib/internal/validators.js
+var require_validators = __commonJS((exports, module) => {
+ var {
+ ArrayIsArray,
+ ArrayPrototypeIncludes,
+ ArrayPrototypeJoin,
+ ArrayPrototypeMap,
+ NumberIsInteger,
+ NumberIsNaN,
+ NumberMAX_SAFE_INTEGER,
+ NumberMIN_SAFE_INTEGER,
+ NumberParseInt,
+ ObjectPrototypeHasOwnProperty,
+ RegExpPrototypeExec,
+ String: String2,
+ StringPrototypeToUpperCase,
+ StringPrototypeTrim
+ } = require_primordials();
+ var {
+ hideStackFrames,
+ codes: { ERR_SOCKET_BAD_PORT, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL }
+ } = require_errors();
+ var { normalizeEncoding } = require_util2();
+ var { isAsyncFunction, isArrayBufferView } = require_util2().types;
+ var signals2 = {};
+ function isInt32(value) {
+ return value === (value | 0);
+ }
+ function isUint32(value) {
+ return value === value >>> 0;
+ }
+ var octalReg = /^[0-7]+$/;
+ var modeDesc = "must be a 32-bit unsigned integer or an octal string";
+ function parseFileMode(value, name, def) {
+ if (typeof value === "undefined") {
+ value = def;
+ }
+ if (typeof value === "string") {
+ if (RegExpPrototypeExec(octalReg, value) === null) {
+ throw new ERR_INVALID_ARG_VALUE(name, value, modeDesc);
+ }
+ value = NumberParseInt(value, 8);
+ }
+ validateUint32(value, name);
+ return value;
+ }
+ var validateInteger = hideStackFrames((value, name, min = NumberMIN_SAFE_INTEGER, max = NumberMAX_SAFE_INTEGER) => {
+ if (typeof value !== "number")
+ throw new ERR_INVALID_ARG_TYPE(name, "number", value);
+ if (!NumberIsInteger(value))
+ throw new ERR_OUT_OF_RANGE(name, "an integer", value);
+ if (value < min || value > max)
+ throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
+ });
+ var validateInt32 = hideStackFrames((value, name, min = -2147483648, max = 2147483647) => {
+ if (typeof value !== "number") {
+ throw new ERR_INVALID_ARG_TYPE(name, "number", value);
+ }
+ if (!NumberIsInteger(value)) {
+ throw new ERR_OUT_OF_RANGE(name, "an integer", value);
+ }
+ if (value < min || value > max) {
+ throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
+ }
+ });
+ var validateUint32 = hideStackFrames((value, name, positive = false) => {
+ if (typeof value !== "number") {
+ throw new ERR_INVALID_ARG_TYPE(name, "number", value);
+ }
+ if (!NumberIsInteger(value)) {
+ throw new ERR_OUT_OF_RANGE(name, "an integer", value);
+ }
+ const min = positive ? 1 : 0;
+ const max = 4294967295;
+ if (value < min || value > max) {
+ throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value);
+ }
+ });
+ function validateString(value, name) {
+ if (typeof value !== "string")
+ throw new ERR_INVALID_ARG_TYPE(name, "string", value);
+ }
+ function validateNumber2(value, name, min = undefined, max) {
+ if (typeof value !== "number")
+ throw new ERR_INVALID_ARG_TYPE(name, "number", value);
+ if (min != null && value < min || max != null && value > max || (min != null || max != null) && NumberIsNaN(value)) {
+ throw new ERR_OUT_OF_RANGE(name, `${min != null ? `>= ${min}` : ""}${min != null && max != null ? " && " : ""}${max != null ? `<= ${max}` : ""}`, value);
+ }
+ }
+ var validateOneOf = hideStackFrames((value, name, oneOf) => {
+ if (!ArrayPrototypeIncludes(oneOf, value)) {
+ const allowed = ArrayPrototypeJoin(ArrayPrototypeMap(oneOf, (v) => typeof v === "string" ? `'${v}'` : String2(v)), ", ");
+ const reason = "must be one of: " + allowed;
+ throw new ERR_INVALID_ARG_VALUE(name, value, reason);
+ }
+ });
+ function validateBoolean(value, name) {
+ if (typeof value !== "boolean")
+ throw new ERR_INVALID_ARG_TYPE(name, "boolean", value);
+ }
+ function getOwnPropertyValueOrDefault(options, key2, defaultValue) {
+ return options == null || !ObjectPrototypeHasOwnProperty(options, key2) ? defaultValue : options[key2];
+ }
+ var validateObject = hideStackFrames((value, name, options = null) => {
+ const allowArray = getOwnPropertyValueOrDefault(options, "allowArray", false);
+ const allowFunction = getOwnPropertyValueOrDefault(options, "allowFunction", false);
+ const nullable = getOwnPropertyValueOrDefault(options, "nullable", false);
+ if (!nullable && value === null || !allowArray && ArrayIsArray(value) || typeof value !== "object" && (!allowFunction || typeof value !== "function")) {
+ throw new ERR_INVALID_ARG_TYPE(name, "Object", value);
+ }
+ });
+ var validateDictionary = hideStackFrames((value, name) => {
+ if (value != null && typeof value !== "object" && typeof value !== "function") {
+ throw new ERR_INVALID_ARG_TYPE(name, "a dictionary", value);
+ }
+ });
+ var validateArray = hideStackFrames((value, name, minLength = 0) => {
+ if (!ArrayIsArray(value)) {
+ throw new ERR_INVALID_ARG_TYPE(name, "Array", value);
+ }
+ if (value.length < minLength) {
+ const reason = `must be longer than ${minLength}`;
+ throw new ERR_INVALID_ARG_VALUE(name, value, reason);
+ }
+ });
+ function validateStringArray(value, name) {
+ validateArray(value, name);
+ for (let i = 0;i < value.length; i++) {
+ validateString(value[i], `${name}[${i}]`);
+ }
+ }
+ function validateBooleanArray(value, name) {
+ validateArray(value, name);
+ for (let i = 0;i < value.length; i++) {
+ validateBoolean(value[i], `${name}[${i}]`);
+ }
+ }
+ function validateAbortSignalArray(value, name) {
+ validateArray(value, name);
+ for (let i = 0;i < value.length; i++) {
+ const signal = value[i];
+ const indexedName = `${name}[${i}]`;
+ if (signal == null) {
+ throw new ERR_INVALID_ARG_TYPE(indexedName, "AbortSignal", signal);
+ }
+ validateAbortSignal(signal, indexedName);
+ }
+ }
+ function validateSignalName(signal, name = "signal") {
+ validateString(signal, name);
+ if (signals2[signal] === undefined) {
+ if (signals2[StringPrototypeToUpperCase(signal)] !== undefined) {
+ throw new ERR_UNKNOWN_SIGNAL(signal + " (signals must use all capital letters)");
+ }
+ throw new ERR_UNKNOWN_SIGNAL(signal);
+ }
+ }
+ var validateBuffer = hideStackFrames((buffer, name = "buffer") => {
+ if (!isArrayBufferView(buffer)) {
+ throw new ERR_INVALID_ARG_TYPE(name, ["Buffer", "TypedArray", "DataView"], buffer);
+ }
+ });
+ function validateEncoding(data, encoding) {
+ const normalizedEncoding = normalizeEncoding(encoding);
+ const length = data.length;
+ if (normalizedEncoding === "hex" && length % 2 !== 0) {
+ throw new ERR_INVALID_ARG_VALUE("encoding", encoding, `is invalid for data of length ${length}`);
+ }
+ }
+ function validatePort(port, name = "Port", allowZero = true) {
+ if (typeof port !== "number" && typeof port !== "string" || typeof port === "string" && StringPrototypeTrim(port).length === 0 || +port !== +port >>> 0 || port > 65535 || port === 0 && !allowZero) {
+ throw new ERR_SOCKET_BAD_PORT(name, port, allowZero);
+ }
+ return port | 0;
+ }
+ var validateAbortSignal = hideStackFrames((signal, name) => {
+ if (signal !== undefined && (signal === null || typeof signal !== "object" || !("aborted" in signal))) {
+ throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
+ }
+ });
+ var validateFunction = hideStackFrames((value, name) => {
+ if (typeof value !== "function")
+ throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
+ });
+ var validatePlainFunction = hideStackFrames((value, name) => {
+ if (typeof value !== "function" || isAsyncFunction(value))
+ throw new ERR_INVALID_ARG_TYPE(name, "Function", value);
+ });
+ var validateUndefined = hideStackFrames((value, name) => {
+ if (value !== undefined)
+ throw new ERR_INVALID_ARG_TYPE(name, "undefined", value);
+ });
+ function validateUnion(value, name, union) {
+ if (!ArrayPrototypeIncludes(union, value)) {
+ throw new ERR_INVALID_ARG_TYPE(name, `('${ArrayPrototypeJoin(union, "|")}')`, value);
+ }
+ }
+ var linkValueRegExp = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;
+ function validateLinkHeaderFormat(value, name) {
+ if (typeof value === "undefined" || !RegExpPrototypeExec(linkValueRegExp, value)) {
+ throw new ERR_INVALID_ARG_VALUE(name, value, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
+ }
+ }
+ function validateLinkHeaderValue(hints) {
+ if (typeof hints === "string") {
+ validateLinkHeaderFormat(hints, "hints");
+ return hints;
+ } else if (ArrayIsArray(hints)) {
+ const hintsLength = hints.length;
+ let result = "";
+ if (hintsLength === 0) {
+ return result;
+ }
+ for (let i = 0;i < hintsLength; i++) {
+ const link = hints[i];
+ validateLinkHeaderFormat(link, "hints");
+ result += link;
+ if (i !== hintsLength - 1) {
+ result += ", ";
+ }
+ }
+ return result;
+ }
+ throw new ERR_INVALID_ARG_VALUE("hints", hints, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
+ }
+ module.exports = {
+ isInt32,
+ isUint32,
+ parseFileMode,
+ validateArray,
+ validateStringArray,
+ validateBooleanArray,
+ validateAbortSignalArray,
+ validateBoolean,
+ validateBuffer,
+ validateDictionary,
+ validateEncoding,
+ validateFunction,
+ validateInt32,
+ validateInteger,
+ validateNumber: validateNumber2,
+ validateObject,
+ validateOneOf,
+ validatePlainFunction,
+ validatePort,
+ validateSignalName,
+ validateString,
+ validateUint32,
+ validateUndefined,
+ validateUnion,
+ validateAbortSignal,
+ validateLinkHeaderValue
+ };
+});
+
+// node_modules/process/index.js
+var require_process = __commonJS((exports, module) => {
+ module.exports = global.process;
+});
+
+// node_modules/readable-stream/lib/internal/streams/utils.js
+var require_utils = __commonJS((exports, module) => {
+ var { SymbolAsyncIterator, SymbolIterator, SymbolFor } = require_primordials();
+ var kIsDestroyed = SymbolFor("nodejs.stream.destroyed");
+ var kIsErrored = SymbolFor("nodejs.stream.errored");
+ var kIsReadable = SymbolFor("nodejs.stream.readable");
+ var kIsWritable = SymbolFor("nodejs.stream.writable");
+ var kIsDisturbed = SymbolFor("nodejs.stream.disturbed");
+ var kIsClosedPromise = SymbolFor("nodejs.webstream.isClosedPromise");
+ var kControllerErrorFunction = SymbolFor("nodejs.webstream.controllerErrorFunction");
+ function isReadableNodeStream(obj, strict = false) {
+ var _obj$_readableState;
+ return !!(obj && typeof obj.pipe === "function" && typeof obj.on === "function" && (!strict || typeof obj.pause === "function" && typeof obj.resume === "function") && (!obj._writableState || ((_obj$_readableState = obj._readableState) === null || _obj$_readableState === undefined ? undefined : _obj$_readableState.readable) !== false) && (!obj._writableState || obj._readableState));
+ }
+ function isWritableNodeStream(obj) {
+ var _obj$_writableState;
+ return !!(obj && typeof obj.write === "function" && typeof obj.on === "function" && (!obj._readableState || ((_obj$_writableState = obj._writableState) === null || _obj$_writableState === undefined ? undefined : _obj$_writableState.writable) !== false));
+ }
+ function isDuplexNodeStream(obj) {
+ return !!(obj && typeof obj.pipe === "function" && obj._readableState && typeof obj.on === "function" && typeof obj.write === "function");
+ }
+ function isNodeStream(obj) {
+ return obj && (obj._readableState || obj._writableState || typeof obj.write === "function" && typeof obj.on === "function" || typeof obj.pipe === "function" && typeof obj.on === "function");
+ }
+ function isReadableStream(obj) {
+ return !!(obj && !isNodeStream(obj) && typeof obj.pipeThrough === "function" && typeof obj.getReader === "function" && typeof obj.cancel === "function");
+ }
+ function isWritableStream(obj) {
+ return !!(obj && !isNodeStream(obj) && typeof obj.getWriter === "function" && typeof obj.abort === "function");
+ }
+ function isTransformStream(obj) {
+ return !!(obj && !isNodeStream(obj) && typeof obj.readable === "object" && typeof obj.writable === "object");
+ }
+ function isWebStream(obj) {
+ return isReadableStream(obj) || isWritableStream(obj) || isTransformStream(obj);
+ }
+ function isIterable(obj, isAsync) {
+ if (obj == null)
+ return false;
+ if (isAsync === true)
+ return typeof obj[SymbolAsyncIterator] === "function";
+ if (isAsync === false)
+ return typeof obj[SymbolIterator] === "function";
+ return typeof obj[SymbolAsyncIterator] === "function" || typeof obj[SymbolIterator] === "function";
+ }
+ function isDestroyed(stream) {
+ if (!isNodeStream(stream))
+ return null;
+ const wState = stream._writableState;
+ const rState = stream._readableState;
+ const state = wState || rState;
+ return !!(stream.destroyed || stream[kIsDestroyed] || state !== null && state !== undefined && state.destroyed);
+ }
+ function isWritableEnded(stream) {
+ if (!isWritableNodeStream(stream))
+ return null;
+ if (stream.writableEnded === true)
+ return true;
+ const wState = stream._writableState;
+ if (wState !== null && wState !== undefined && wState.errored)
+ return false;
+ if (typeof (wState === null || wState === undefined ? undefined : wState.ended) !== "boolean")
+ return null;
+ return wState.ended;
+ }
+ function isWritableFinished(stream, strict) {
+ if (!isWritableNodeStream(stream))
+ return null;
+ if (stream.writableFinished === true)
+ return true;
+ const wState = stream._writableState;
+ if (wState !== null && wState !== undefined && wState.errored)
+ return false;
+ if (typeof (wState === null || wState === undefined ? undefined : wState.finished) !== "boolean")
+ return null;
+ return !!(wState.finished || strict === false && wState.ended === true && wState.length === 0);
+ }
+ function isReadableEnded(stream) {
+ if (!isReadableNodeStream(stream))
+ return null;
+ if (stream.readableEnded === true)
+ return true;
+ const rState = stream._readableState;
+ if (!rState || rState.errored)
+ return false;
+ if (typeof (rState === null || rState === undefined ? undefined : rState.ended) !== "boolean")
+ return null;
+ return rState.ended;
+ }
+ function isReadableFinished(stream, strict) {
+ if (!isReadableNodeStream(stream))
+ return null;
+ const rState = stream._readableState;
+ if (rState !== null && rState !== undefined && rState.errored)
+ return false;
+ if (typeof (rState === null || rState === undefined ? undefined : rState.endEmitted) !== "boolean")
+ return null;
+ return !!(rState.endEmitted || strict === false && rState.ended === true && rState.length === 0);
+ }
+ function isReadable(stream) {
+ if (stream && stream[kIsReadable] != null)
+ return stream[kIsReadable];
+ if (typeof (stream === null || stream === undefined ? undefined : stream.readable) !== "boolean")
+ return null;
+ if (isDestroyed(stream))
+ return false;
+ return isReadableNodeStream(stream) && stream.readable && !isReadableFinished(stream);
+ }
+ function isWritable(stream) {
+ if (stream && stream[kIsWritable] != null)
+ return stream[kIsWritable];
+ if (typeof (stream === null || stream === undefined ? undefined : stream.writable) !== "boolean")
+ return null;
+ if (isDestroyed(stream))
+ return false;
+ return isWritableNodeStream(stream) && stream.writable && !isWritableEnded(stream);
+ }
+ function isFinished(stream, opts) {
+ if (!isNodeStream(stream)) {
+ return null;
+ }
+ if (isDestroyed(stream)) {
+ return true;
+ }
+ if ((opts === null || opts === undefined ? undefined : opts.readable) !== false && isReadable(stream)) {
+ return false;
+ }
+ if ((opts === null || opts === undefined ? undefined : opts.writable) !== false && isWritable(stream)) {
+ return false;
+ }
+ return true;
+ }
+ function isWritableErrored(stream) {
+ var _stream$_writableStat, _stream$_writableStat2;
+ if (!isNodeStream(stream)) {
+ return null;
+ }
+ if (stream.writableErrored) {
+ return stream.writableErrored;
+ }
+ return (_stream$_writableStat = (_stream$_writableStat2 = stream._writableState) === null || _stream$_writableStat2 === undefined ? undefined : _stream$_writableStat2.errored) !== null && _stream$_writableStat !== undefined ? _stream$_writableStat : null;
+ }
+ function isReadableErrored(stream) {
+ var _stream$_readableStat, _stream$_readableStat2;
+ if (!isNodeStream(stream)) {
+ return null;
+ }
+ if (stream.readableErrored) {
+ return stream.readableErrored;
+ }
+ return (_stream$_readableStat = (_stream$_readableStat2 = stream._readableState) === null || _stream$_readableStat2 === undefined ? undefined : _stream$_readableStat2.errored) !== null && _stream$_readableStat !== undefined ? _stream$_readableStat : null;
+ }
+ function isClosed(stream) {
+ if (!isNodeStream(stream)) {
+ return null;
+ }
+ if (typeof stream.closed === "boolean") {
+ return stream.closed;
+ }
+ const wState = stream._writableState;
+ const rState = stream._readableState;
+ if (typeof (wState === null || wState === undefined ? undefined : wState.closed) === "boolean" || typeof (rState === null || rState === undefined ? undefined : rState.closed) === "boolean") {
+ return (wState === null || wState === undefined ? undefined : wState.closed) || (rState === null || rState === undefined ? undefined : rState.closed);
+ }
+ if (typeof stream._closed === "boolean" && isOutgoingMessage(stream)) {
+ return stream._closed;
+ }
+ return null;
+ }
+ function isOutgoingMessage(stream) {
+ return typeof stream._closed === "boolean" && typeof stream._defaultKeepAlive === "boolean" && typeof stream._removedConnection === "boolean" && typeof stream._removedContLen === "boolean";
+ }
+ function isServerResponse(stream) {
+ return typeof stream._sent100 === "boolean" && isOutgoingMessage(stream);
+ }
+ function isServerRequest(stream) {
+ var _stream$req;
+ return typeof stream._consuming === "boolean" && typeof stream._dumped === "boolean" && ((_stream$req = stream.req) === null || _stream$req === undefined ? undefined : _stream$req.upgradeOrConnect) === undefined;
+ }
+ function willEmitClose(stream) {
+ if (!isNodeStream(stream))
+ return null;
+ const wState = stream._writableState;
+ const rState = stream._readableState;
+ const state = wState || rState;
+ return !state && isServerResponse(stream) || !!(state && state.autoDestroy && state.emitClose && state.closed === false);
+ }
+ function isDisturbed(stream) {
+ var _stream$kIsDisturbed;
+ return !!(stream && ((_stream$kIsDisturbed = stream[kIsDisturbed]) !== null && _stream$kIsDisturbed !== undefined ? _stream$kIsDisturbed : stream.readableDidRead || stream.readableAborted));
+ }
+ function isErrored(stream) {
+ var _ref, _ref2, _ref3, _ref4, _ref5, _stream$kIsErrored, _stream$_readableStat3, _stream$_writableStat3, _stream$_readableStat4, _stream$_writableStat4;
+ return !!(stream && ((_ref = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_stream$kIsErrored = stream[kIsErrored]) !== null && _stream$kIsErrored !== undefined ? _stream$kIsErrored : stream.readableErrored) !== null && _ref5 !== undefined ? _ref5 : stream.writableErrored) !== null && _ref4 !== undefined ? _ref4 : (_stream$_readableStat3 = stream._readableState) === null || _stream$_readableStat3 === undefined ? undefined : _stream$_readableStat3.errorEmitted) !== null && _ref3 !== undefined ? _ref3 : (_stream$_writableStat3 = stream._writableState) === null || _stream$_writableStat3 === undefined ? undefined : _stream$_writableStat3.errorEmitted) !== null && _ref2 !== undefined ? _ref2 : (_stream$_readableStat4 = stream._readableState) === null || _stream$_readableStat4 === undefined ? undefined : _stream$_readableStat4.errored) !== null && _ref !== undefined ? _ref : (_stream$_writableStat4 = stream._writableState) === null || _stream$_writableStat4 === undefined ? undefined : _stream$_writableStat4.errored));
+ }
+ module.exports = {
+ isDestroyed,
+ kIsDestroyed,
+ isDisturbed,
+ kIsDisturbed,
+ isErrored,
+ kIsErrored,
+ isReadable,
+ kIsReadable,
+ kIsClosedPromise,
+ kControllerErrorFunction,
+ kIsWritable,
+ isClosed,
+ isDuplexNodeStream,
+ isFinished,
+ isIterable,
+ isReadableNodeStream,
+ isReadableStream,
+ isReadableEnded,
+ isReadableFinished,
+ isReadableErrored,
+ isNodeStream,
+ isWebStream,
+ isWritable,
+ isWritableNodeStream,
+ isWritableStream,
+ isWritableEnded,
+ isWritableFinished,
+ isWritableErrored,
+ isServerRequest,
+ isServerResponse,
+ willEmitClose,
+ isTransformStream
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/end-of-stream.js
+var require_end_of_stream = __commonJS((exports, module) => {
+ var process5 = require_process();
+ var { AbortError, codes } = require_errors();
+ var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes;
+ var { kEmptyObject, once } = require_util2();
+ var { validateAbortSignal, validateFunction, validateObject, validateBoolean } = require_validators();
+ var { Promise: Promise2, PromisePrototypeThen, SymbolDispose } = require_primordials();
+ var {
+ isClosed,
+ isReadable,
+ isReadableNodeStream,
+ isReadableStream,
+ isReadableFinished,
+ isReadableErrored,
+ isWritable,
+ isWritableNodeStream,
+ isWritableStream,
+ isWritableFinished,
+ isWritableErrored,
+ isNodeStream,
+ willEmitClose: _willEmitClose,
+ kIsClosedPromise
+ } = require_utils();
+ var addAbortListener;
+ function isRequest(stream) {
+ return stream.setHeader && typeof stream.abort === "function";
+ }
+ var nop = () => {
+ };
+ function eos(stream, options, callback) {
+ var _options$readable, _options$writable;
+ if (arguments.length === 2) {
+ callback = options;
+ options = kEmptyObject;
+ } else if (options == null) {
+ options = kEmptyObject;
+ } else {
+ validateObject(options, "options");
+ }
+ validateFunction(callback, "callback");
+ validateAbortSignal(options.signal, "options.signal");
+ callback = once(callback);
+ if (isReadableStream(stream) || isWritableStream(stream)) {
+ return eosWeb(stream, options, callback);
+ }
+ if (!isNodeStream(stream)) {
+ throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream);
+ }
+ const readable = (_options$readable = options.readable) !== null && _options$readable !== undefined ? _options$readable : isReadableNodeStream(stream);
+ const writable = (_options$writable = options.writable) !== null && _options$writable !== undefined ? _options$writable : isWritableNodeStream(stream);
+ const wState = stream._writableState;
+ const rState = stream._readableState;
+ const onlegacyfinish = () => {
+ if (!stream.writable) {
+ onfinish();
+ }
+ };
+ let willEmitClose = _willEmitClose(stream) && isReadableNodeStream(stream) === readable && isWritableNodeStream(stream) === writable;
+ let writableFinished = isWritableFinished(stream, false);
+ const onfinish = () => {
+ writableFinished = true;
+ if (stream.destroyed) {
+ willEmitClose = false;
+ }
+ if (willEmitClose && (!stream.readable || readable)) {
+ return;
+ }
+ if (!readable || readableFinished) {
+ callback.call(stream);
+ }
+ };
+ let readableFinished = isReadableFinished(stream, false);
+ const onend = () => {
+ readableFinished = true;
+ if (stream.destroyed) {
+ willEmitClose = false;
+ }
+ if (willEmitClose && (!stream.writable || writable)) {
+ return;
+ }
+ if (!writable || writableFinished) {
+ callback.call(stream);
+ }
+ };
+ const onerror = (err) => {
+ callback.call(stream, err);
+ };
+ let closed = isClosed(stream);
+ const onclose = () => {
+ closed = true;
+ const errored = isWritableErrored(stream) || isReadableErrored(stream);
+ if (errored && typeof errored !== "boolean") {
+ return callback.call(stream, errored);
+ }
+ if (readable && !readableFinished && isReadableNodeStream(stream, true)) {
+ if (!isReadableFinished(stream, false))
+ return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE);
+ }
+ if (writable && !writableFinished) {
+ if (!isWritableFinished(stream, false))
+ return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE);
+ }
+ callback.call(stream);
+ };
+ const onclosed = () => {
+ closed = true;
+ const errored = isWritableErrored(stream) || isReadableErrored(stream);
+ if (errored && typeof errored !== "boolean") {
+ return callback.call(stream, errored);
+ }
+ callback.call(stream);
+ };
+ const onrequest = () => {
+ stream.req.on("finish", onfinish);
+ };
+ if (isRequest(stream)) {
+ stream.on("complete", onfinish);
+ if (!willEmitClose) {
+ stream.on("abort", onclose);
+ }
+ if (stream.req) {
+ onrequest();
+ } else {
+ stream.on("request", onrequest);
+ }
+ } else if (writable && !wState) {
+ stream.on("end", onlegacyfinish);
+ stream.on("close", onlegacyfinish);
+ }
+ if (!willEmitClose && typeof stream.aborted === "boolean") {
+ stream.on("aborted", onclose);
+ }
+ stream.on("end", onend);
+ stream.on("finish", onfinish);
+ if (options.error !== false) {
+ stream.on("error", onerror);
+ }
+ stream.on("close", onclose);
+ if (closed) {
+ process5.nextTick(onclose);
+ } else if (wState !== null && wState !== undefined && wState.errorEmitted || rState !== null && rState !== undefined && rState.errorEmitted) {
+ if (!willEmitClose) {
+ process5.nextTick(onclosed);
+ }
+ } else if (!readable && (!willEmitClose || isReadable(stream)) && (writableFinished || isWritable(stream) === false)) {
+ process5.nextTick(onclosed);
+ } else if (!writable && (!willEmitClose || isWritable(stream)) && (readableFinished || isReadable(stream) === false)) {
+ process5.nextTick(onclosed);
+ } else if (rState && stream.req && stream.aborted) {
+ process5.nextTick(onclosed);
+ }
+ const cleanup = () => {
+ callback = nop;
+ stream.removeListener("aborted", onclose);
+ stream.removeListener("complete", onfinish);
+ stream.removeListener("abort", onclose);
+ stream.removeListener("request", onrequest);
+ if (stream.req)
+ stream.req.removeListener("finish", onfinish);
+ stream.removeListener("end", onlegacyfinish);
+ stream.removeListener("close", onlegacyfinish);
+ stream.removeListener("finish", onfinish);
+ stream.removeListener("end", onend);
+ stream.removeListener("error", onerror);
+ stream.removeListener("close", onclose);
+ };
+ if (options.signal && !closed) {
+ const abort = () => {
+ const endCallback = callback;
+ cleanup();
+ endCallback.call(stream, new AbortError(undefined, {
+ cause: options.signal.reason
+ }));
+ };
+ if (options.signal.aborted) {
+ process5.nextTick(abort);
+ } else {
+ addAbortListener = addAbortListener || require_util2().addAbortListener;
+ const disposable = addAbortListener(options.signal, abort);
+ const originalCallback = callback;
+ callback = once((...args) => {
+ disposable[SymbolDispose]();
+ originalCallback.apply(stream, args);
+ });
+ }
+ }
+ return cleanup;
+ }
+ function eosWeb(stream, options, callback) {
+ let isAborted = false;
+ let abort = nop;
+ if (options.signal) {
+ abort = () => {
+ isAborted = true;
+ callback.call(stream, new AbortError(undefined, {
+ cause: options.signal.reason
+ }));
+ };
+ if (options.signal.aborted) {
+ process5.nextTick(abort);
+ } else {
+ addAbortListener = addAbortListener || require_util2().addAbortListener;
+ const disposable = addAbortListener(options.signal, abort);
+ const originalCallback = callback;
+ callback = once((...args) => {
+ disposable[SymbolDispose]();
+ originalCallback.apply(stream, args);
+ });
+ }
+ }
+ const resolverFn = (...args) => {
+ if (!isAborted) {
+ process5.nextTick(() => callback.apply(stream, args));
+ }
+ };
+ PromisePrototypeThen(stream[kIsClosedPromise].promise, resolverFn, resolverFn);
+ return nop;
+ }
+ function finished(stream, opts) {
+ var _opts;
+ let autoCleanup = false;
+ if (opts === null) {
+ opts = kEmptyObject;
+ }
+ if ((_opts = opts) !== null && _opts !== undefined && _opts.cleanup) {
+ validateBoolean(opts.cleanup, "cleanup");
+ autoCleanup = opts.cleanup;
+ }
+ return new Promise2((resolve, reject) => {
+ const cleanup = eos(stream, opts, (err) => {
+ if (autoCleanup) {
+ cleanup();
+ }
+ if (err) {
+ reject(err);
+ } else {
+ resolve();
+ }
+ });
+ });
+ }
+ module.exports = eos;
+ module.exports.finished = finished;
+});
+
+// node_modules/readable-stream/lib/internal/streams/destroy.js
+var require_destroy2 = __commonJS((exports, module) => {
+ var process5 = require_process();
+ var {
+ aggregateTwoErrors,
+ codes: { ERR_MULTIPLE_CALLBACK },
+ AbortError
+ } = require_errors();
+ var { Symbol: Symbol2 } = require_primordials();
+ var { kIsDestroyed, isDestroyed, isFinished, isServerRequest } = require_utils();
+ var kDestroy = Symbol2("kDestroy");
+ var kConstruct = Symbol2("kConstruct");
+ function checkError(err, w, r) {
+ if (err) {
+ err.stack;
+ if (w && !w.errored) {
+ w.errored = err;
+ }
+ if (r && !r.errored) {
+ r.errored = err;
+ }
+ }
+ }
+ function destroy(err, cb) {
+ const r = this._readableState;
+ const w = this._writableState;
+ const s = w || r;
+ if (w !== null && w !== undefined && w.destroyed || r !== null && r !== undefined && r.destroyed) {
+ if (typeof cb === "function") {
+ cb();
+ }
+ return this;
+ }
+ checkError(err, w, r);
+ if (w) {
+ w.destroyed = true;
+ }
+ if (r) {
+ r.destroyed = true;
+ }
+ if (!s.constructed) {
+ this.once(kDestroy, function(er) {
+ _destroy(this, aggregateTwoErrors(er, err), cb);
+ });
+ } else {
+ _destroy(this, err, cb);
+ }
+ return this;
+ }
+ function _destroy(self2, err, cb) {
+ let called = false;
+ function onDestroy(err2) {
+ if (called) {
+ return;
+ }
+ called = true;
+ const r = self2._readableState;
+ const w = self2._writableState;
+ checkError(err2, w, r);
+ if (w) {
+ w.closed = true;
+ }
+ if (r) {
+ r.closed = true;
+ }
+ if (typeof cb === "function") {
+ cb(err2);
+ }
+ if (err2) {
+ process5.nextTick(emitErrorCloseNT, self2, err2);
+ } else {
+ process5.nextTick(emitCloseNT, self2);
+ }
+ }
+ try {
+ self2._destroy(err || null, onDestroy);
+ } catch (err2) {
+ onDestroy(err2);
+ }
+ }
+ function emitErrorCloseNT(self2, err) {
+ emitErrorNT(self2, err);
+ emitCloseNT(self2);
+ }
+ function emitCloseNT(self2) {
+ const r = self2._readableState;
+ const w = self2._writableState;
+ if (w) {
+ w.closeEmitted = true;
+ }
+ if (r) {
+ r.closeEmitted = true;
+ }
+ if (w !== null && w !== undefined && w.emitClose || r !== null && r !== undefined && r.emitClose) {
+ self2.emit("close");
+ }
+ }
+ function emitErrorNT(self2, err) {
+ const r = self2._readableState;
+ const w = self2._writableState;
+ if (w !== null && w !== undefined && w.errorEmitted || r !== null && r !== undefined && r.errorEmitted) {
+ return;
+ }
+ if (w) {
+ w.errorEmitted = true;
+ }
+ if (r) {
+ r.errorEmitted = true;
+ }
+ self2.emit("error", err);
+ }
+ function undestroy() {
+ const r = this._readableState;
+ const w = this._writableState;
+ if (r) {
+ r.constructed = true;
+ r.closed = false;
+ r.closeEmitted = false;
+ r.destroyed = false;
+ r.errored = null;
+ r.errorEmitted = false;
+ r.reading = false;
+ r.ended = r.readable === false;
+ r.endEmitted = r.readable === false;
+ }
+ if (w) {
+ w.constructed = true;
+ w.destroyed = false;
+ w.closed = false;
+ w.closeEmitted = false;
+ w.errored = null;
+ w.errorEmitted = false;
+ w.finalCalled = false;
+ w.prefinished = false;
+ w.ended = w.writable === false;
+ w.ending = w.writable === false;
+ w.finished = w.writable === false;
+ }
+ }
+ function errorOrDestroy(stream, err, sync) {
+ const r = stream._readableState;
+ const w = stream._writableState;
+ if (w !== null && w !== undefined && w.destroyed || r !== null && r !== undefined && r.destroyed) {
+ return this;
+ }
+ if (r !== null && r !== undefined && r.autoDestroy || w !== null && w !== undefined && w.autoDestroy)
+ stream.destroy(err);
+ else if (err) {
+ err.stack;
+ if (w && !w.errored) {
+ w.errored = err;
+ }
+ if (r && !r.errored) {
+ r.errored = err;
+ }
+ if (sync) {
+ process5.nextTick(emitErrorNT, stream, err);
+ } else {
+ emitErrorNT(stream, err);
+ }
+ }
+ }
+ function construct(stream, cb) {
+ if (typeof stream._construct !== "function") {
+ return;
+ }
+ const r = stream._readableState;
+ const w = stream._writableState;
+ if (r) {
+ r.constructed = false;
+ }
+ if (w) {
+ w.constructed = false;
+ }
+ stream.once(kConstruct, cb);
+ if (stream.listenerCount(kConstruct) > 1) {
+ return;
+ }
+ process5.nextTick(constructNT, stream);
+ }
+ function constructNT(stream) {
+ let called = false;
+ function onConstruct(err) {
+ if (called) {
+ errorOrDestroy(stream, err !== null && err !== undefined ? err : new ERR_MULTIPLE_CALLBACK);
+ return;
+ }
+ called = true;
+ const r = stream._readableState;
+ const w = stream._writableState;
+ const s = w || r;
+ if (r) {
+ r.constructed = true;
+ }
+ if (w) {
+ w.constructed = true;
+ }
+ if (s.destroyed) {
+ stream.emit(kDestroy, err);
+ } else if (err) {
+ errorOrDestroy(stream, err, true);
+ } else {
+ process5.nextTick(emitConstructNT, stream);
+ }
+ }
+ try {
+ stream._construct((err) => {
+ process5.nextTick(onConstruct, err);
+ });
+ } catch (err) {
+ process5.nextTick(onConstruct, err);
+ }
+ }
+ function emitConstructNT(stream) {
+ stream.emit(kConstruct);
+ }
+ function isRequest(stream) {
+ return (stream === null || stream === undefined ? undefined : stream.setHeader) && typeof stream.abort === "function";
+ }
+ function emitCloseLegacy(stream) {
+ stream.emit("close");
+ }
+ function emitErrorCloseLegacy(stream, err) {
+ stream.emit("error", err);
+ process5.nextTick(emitCloseLegacy, stream);
+ }
+ function destroyer(stream, err) {
+ if (!stream || isDestroyed(stream)) {
+ return;
+ }
+ if (!err && !isFinished(stream)) {
+ err = new AbortError;
+ }
+ if (isServerRequest(stream)) {
+ stream.socket = null;
+ stream.destroy(err);
+ } else if (isRequest(stream)) {
+ stream.abort();
+ } else if (isRequest(stream.req)) {
+ stream.req.abort();
+ } else if (typeof stream.destroy === "function") {
+ stream.destroy(err);
+ } else if (typeof stream.close === "function") {
+ stream.close();
+ } else if (err) {
+ process5.nextTick(emitErrorCloseLegacy, stream, err);
+ } else {
+ process5.nextTick(emitCloseLegacy, stream);
+ }
+ if (!stream.destroyed) {
+ stream[kIsDestroyed] = true;
+ }
+ }
+ module.exports = {
+ construct,
+ destroyer,
+ destroy,
+ undestroy,
+ errorOrDestroy
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/legacy.js
+var require_legacy = __commonJS((exports, module) => {
+ var { ArrayIsArray, ObjectSetPrototypeOf } = require_primordials();
+ var { EventEmitter: EE } = __require("events");
+ function Stream(opts) {
+ EE.call(this, opts);
+ }
+ ObjectSetPrototypeOf(Stream.prototype, EE.prototype);
+ ObjectSetPrototypeOf(Stream, EE);
+ Stream.prototype.pipe = function(dest, options) {
+ const source = this;
+ function ondata(chunk) {
+ if (dest.writable && dest.write(chunk) === false && source.pause) {
+ source.pause();
+ }
+ }
+ source.on("data", ondata);
+ function ondrain() {
+ if (source.readable && source.resume) {
+ source.resume();
+ }
+ }
+ dest.on("drain", ondrain);
+ if (!dest._isStdio && (!options || options.end !== false)) {
+ source.on("end", onend);
+ source.on("close", onclose);
+ }
+ let didOnEnd = false;
+ function onend() {
+ if (didOnEnd)
+ return;
+ didOnEnd = true;
+ dest.end();
+ }
+ function onclose() {
+ if (didOnEnd)
+ return;
+ didOnEnd = true;
+ if (typeof dest.destroy === "function")
+ dest.destroy();
+ }
+ function onerror(er) {
+ cleanup();
+ if (EE.listenerCount(this, "error") === 0) {
+ this.emit("error", er);
+ }
+ }
+ prependListener(source, "error", onerror);
+ prependListener(dest, "error", onerror);
+ function cleanup() {
+ source.removeListener("data", ondata);
+ dest.removeListener("drain", ondrain);
+ source.removeListener("end", onend);
+ source.removeListener("close", onclose);
+ source.removeListener("error", onerror);
+ dest.removeListener("error", onerror);
+ source.removeListener("end", cleanup);
+ source.removeListener("close", cleanup);
+ dest.removeListener("close", cleanup);
+ }
+ source.on("end", cleanup);
+ source.on("close", cleanup);
+ dest.on("close", cleanup);
+ dest.emit("pipe", source);
+ return dest;
+ };
+ function prependListener(emitter, event, fn) {
+ if (typeof emitter.prependListener === "function")
+ return emitter.prependListener(event, fn);
+ if (!emitter._events || !emitter._events[event])
+ emitter.on(event, fn);
+ else if (ArrayIsArray(emitter._events[event]))
+ emitter._events[event].unshift(fn);
+ else
+ emitter._events[event] = [fn, emitter._events[event]];
+ }
+ module.exports = {
+ Stream,
+ prependListener
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/add-abort-signal.js
+var require_add_abort_signal = __commonJS((exports, module) => {
+ var { SymbolDispose } = require_primordials();
+ var { AbortError, codes } = require_errors();
+ var { isNodeStream, isWebStream, kControllerErrorFunction } = require_utils();
+ var eos = require_end_of_stream();
+ var { ERR_INVALID_ARG_TYPE } = codes;
+ var addAbortListener;
+ var validateAbortSignal = (signal, name) => {
+ if (typeof signal !== "object" || !("aborted" in signal)) {
+ throw new ERR_INVALID_ARG_TYPE(name, "AbortSignal", signal);
+ }
+ };
+ exports.addAbortSignal = function addAbortSignal(signal, stream) {
+ validateAbortSignal(signal, "signal");
+ if (!isNodeStream(stream) && !isWebStream(stream)) {
+ throw new ERR_INVALID_ARG_TYPE("stream", ["ReadableStream", "WritableStream", "Stream"], stream);
+ }
+ return exports.addAbortSignalNoValidate(signal, stream);
+ };
+ exports.addAbortSignalNoValidate = function(signal, stream) {
+ if (typeof signal !== "object" || !("aborted" in signal)) {
+ return stream;
+ }
+ const onAbort = isNodeStream(stream) ? () => {
+ stream.destroy(new AbortError(undefined, {
+ cause: signal.reason
+ }));
+ } : () => {
+ stream[kControllerErrorFunction](new AbortError(undefined, {
+ cause: signal.reason
+ }));
+ };
+ if (signal.aborted) {
+ onAbort();
+ } else {
+ addAbortListener = addAbortListener || require_util2().addAbortListener;
+ const disposable = addAbortListener(signal, onAbort);
+ eos(stream, disposable[SymbolDispose]);
+ }
+ return stream;
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/buffer_list.js
+var require_buffer_list = __commonJS((exports, module) => {
+ var { StringPrototypeSlice, SymbolIterator, TypedArrayPrototypeSet, Uint8Array: Uint8Array2 } = require_primordials();
+ var { Buffer: Buffer2 } = __require("buffer");
+ var { inspect } = require_util2();
+ module.exports = class BufferList {
+ constructor() {
+ this.head = null;
+ this.tail = null;
+ this.length = 0;
+ }
+ push(v) {
+ const entry = {
+ data: v,
+ next: null
+ };
+ if (this.length > 0)
+ this.tail.next = entry;
+ else
+ this.head = entry;
+ this.tail = entry;
+ ++this.length;
+ }
+ unshift(v) {
+ const entry = {
+ data: v,
+ next: this.head
+ };
+ if (this.length === 0)
+ this.tail = entry;
+ this.head = entry;
+ ++this.length;
+ }
+ shift() {
+ if (this.length === 0)
+ return;
+ const ret = this.head.data;
+ if (this.length === 1)
+ this.head = this.tail = null;
+ else
+ this.head = this.head.next;
+ --this.length;
+ return ret;
+ }
+ clear() {
+ this.head = this.tail = null;
+ this.length = 0;
+ }
+ join(s) {
+ if (this.length === 0)
+ return "";
+ let p = this.head;
+ let ret = "" + p.data;
+ while ((p = p.next) !== null)
+ ret += s + p.data;
+ return ret;
+ }
+ concat(n) {
+ if (this.length === 0)
+ return Buffer2.alloc(0);
+ const ret = Buffer2.allocUnsafe(n >>> 0);
+ let p = this.head;
+ let i = 0;
+ while (p) {
+ TypedArrayPrototypeSet(ret, p.data, i);
+ i += p.data.length;
+ p = p.next;
+ }
+ return ret;
+ }
+ consume(n, hasStrings) {
+ const data = this.head.data;
+ if (n < data.length) {
+ const slice = data.slice(0, n);
+ this.head.data = data.slice(n);
+ return slice;
+ }
+ if (n === data.length) {
+ return this.shift();
+ }
+ return hasStrings ? this._getString(n) : this._getBuffer(n);
+ }
+ first() {
+ return this.head.data;
+ }
+ *[SymbolIterator]() {
+ for (let p = this.head;p; p = p.next) {
+ yield p.data;
+ }
+ }
+ _getString(n) {
+ let ret = "";
+ let p = this.head;
+ let c = 0;
+ do {
+ const str = p.data;
+ if (n > str.length) {
+ ret += str;
+ n -= str.length;
+ } else {
+ if (n === str.length) {
+ ret += str;
+ ++c;
+ if (p.next)
+ this.head = p.next;
+ else
+ this.head = this.tail = null;
+ } else {
+ ret += StringPrototypeSlice(str, 0, n);
+ this.head = p;
+ p.data = StringPrototypeSlice(str, n);
+ }
+ break;
+ }
+ ++c;
+ } while ((p = p.next) !== null);
+ this.length -= c;
+ return ret;
+ }
+ _getBuffer(n) {
+ const ret = Buffer2.allocUnsafe(n);
+ const retLen = n;
+ let p = this.head;
+ let c = 0;
+ do {
+ const buf = p.data;
+ if (n > buf.length) {
+ TypedArrayPrototypeSet(ret, buf, retLen - n);
+ n -= buf.length;
+ } else {
+ if (n === buf.length) {
+ TypedArrayPrototypeSet(ret, buf, retLen - n);
+ ++c;
+ if (p.next)
+ this.head = p.next;
+ else
+ this.head = this.tail = null;
+ } else {
+ TypedArrayPrototypeSet(ret, new Uint8Array2(buf.buffer, buf.byteOffset, n), retLen - n);
+ this.head = p;
+ p.data = buf.slice(n);
+ }
+ break;
+ }
+ ++c;
+ } while ((p = p.next) !== null);
+ this.length -= c;
+ return ret;
+ }
+ [Symbol.for("nodejs.util.inspect.custom")](_3, options) {
+ return inspect(this, {
+ ...options,
+ depth: 0,
+ customInspect: false
+ });
+ }
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/state.js
+var require_state = __commonJS((exports, module) => {
+ var { MathFloor, NumberIsInteger } = require_primordials();
+ var { validateInteger } = require_validators();
+ var { ERR_INVALID_ARG_VALUE } = require_errors().codes;
+ var defaultHighWaterMarkBytes = 16 * 1024;
+ var defaultHighWaterMarkObjectMode = 16;
+ function highWaterMarkFrom(options, isDuplex, duplexKey) {
+ return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
+ }
+ function getDefaultHighWaterMark(objectMode) {
+ return objectMode ? defaultHighWaterMarkObjectMode : defaultHighWaterMarkBytes;
+ }
+ function setDefaultHighWaterMark(objectMode, value) {
+ validateInteger(value, "value", 0);
+ if (objectMode) {
+ defaultHighWaterMarkObjectMode = value;
+ } else {
+ defaultHighWaterMarkBytes = value;
+ }
+ }
+ function getHighWaterMark(state, options, duplexKey, isDuplex) {
+ const hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
+ if (hwm != null) {
+ if (!NumberIsInteger(hwm) || hwm < 0) {
+ const name = isDuplex ? `options.${duplexKey}` : "options.highWaterMark";
+ throw new ERR_INVALID_ARG_VALUE(name, hwm);
+ }
+ return MathFloor(hwm);
+ }
+ return getDefaultHighWaterMark(state.objectMode);
+ }
+ module.exports = {
+ getHighWaterMark,
+ getDefaultHighWaterMark,
+ setDefaultHighWaterMark
+ };
+});
+
+// node_modules/safe-buffer/index.js
+var require_safe_buffer2 = __commonJS((exports, module) => {
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
+ var buffer = __require("buffer");
+ var Buffer2 = buffer.Buffer;
+ function copyProps(src, dst) {
+ for (var key2 in src) {
+ dst[key2] = src[key2];
+ }
+ }
+ if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) {
+ module.exports = buffer;
+ } else {
+ copyProps(buffer, exports);
+ exports.Buffer = SafeBuffer;
+ }
+ function SafeBuffer(arg, encodingOrOffset, length) {
+ return Buffer2(arg, encodingOrOffset, length);
+ }
+ SafeBuffer.prototype = Object.create(Buffer2.prototype);
+ copyProps(Buffer2, SafeBuffer);
+ SafeBuffer.from = function(arg, encodingOrOffset, length) {
+ if (typeof arg === "number") {
+ throw new TypeError("Argument must not be a number");
+ }
+ return Buffer2(arg, encodingOrOffset, length);
+ };
+ SafeBuffer.alloc = function(size, fill, encoding) {
+ if (typeof size !== "number") {
+ throw new TypeError("Argument must be a number");
+ }
+ var buf = Buffer2(size);
+ if (fill !== undefined) {
+ if (typeof encoding === "string") {
+ buf.fill(fill, encoding);
+ } else {
+ buf.fill(fill);
+ }
+ } else {
+ buf.fill(0);
+ }
+ return buf;
+ };
+ SafeBuffer.allocUnsafe = function(size) {
+ if (typeof size !== "number") {
+ throw new TypeError("Argument must be a number");
+ }
+ return Buffer2(size);
+ };
+ SafeBuffer.allocUnsafeSlow = function(size) {
+ if (typeof size !== "number") {
+ throw new TypeError("Argument must be a number");
+ }
+ return buffer.SlowBuffer(size);
+ };
+});
+
+// node_modules/string_decoder/lib/string_decoder.js
+var require_string_decoder2 = __commonJS((exports) => {
+ var Buffer2 = require_safe_buffer2().Buffer;
+ var isEncoding = Buffer2.isEncoding || function(encoding) {
+ encoding = "" + encoding;
+ switch (encoding && encoding.toLowerCase()) {
+ case "hex":
+ case "utf8":
+ case "utf-8":
+ case "ascii":
+ case "binary":
+ case "base64":
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ case "raw":
+ return true;
+ default:
+ return false;
+ }
+ };
+ function _normalizeEncoding(enc) {
+ if (!enc)
+ return "utf8";
+ var retried;
+ while (true) {
+ switch (enc) {
+ case "utf8":
+ case "utf-8":
+ return "utf8";
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return "utf16le";
+ case "latin1":
+ case "binary":
+ return "latin1";
+ case "base64":
+ case "ascii":
+ case "hex":
+ return enc;
+ default:
+ if (retried)
+ return;
+ enc = ("" + enc).toLowerCase();
+ retried = true;
+ }
+ }
+ }
+ function normalizeEncoding(enc) {
+ var nenc = _normalizeEncoding(enc);
+ if (typeof nenc !== "string" && (Buffer2.isEncoding === isEncoding || !isEncoding(enc)))
+ throw new Error("Unknown encoding: " + enc);
+ return nenc || enc;
+ }
+ exports.StringDecoder = StringDecoder;
+ function StringDecoder(encoding) {
+ this.encoding = normalizeEncoding(encoding);
+ var nb;
+ switch (this.encoding) {
+ case "utf16le":
+ this.text = utf16Text;
+ this.end = utf16End;
+ nb = 4;
+ break;
+ case "utf8":
+ this.fillLast = utf8FillLast;
+ nb = 4;
+ break;
+ case "base64":
+ this.text = base64Text;
+ this.end = base64End;
+ nb = 3;
+ break;
+ default:
+ this.write = simpleWrite;
+ this.end = simpleEnd;
+ return;
+ }
+ this.lastNeed = 0;
+ this.lastTotal = 0;
+ this.lastChar = Buffer2.allocUnsafe(nb);
+ }
+ StringDecoder.prototype.write = function(buf) {
+ if (buf.length === 0)
+ return "";
+ var r;
+ var i;
+ if (this.lastNeed) {
+ r = this.fillLast(buf);
+ if (r === undefined)
+ return "";
+ i = this.lastNeed;
+ this.lastNeed = 0;
+ } else {
+ i = 0;
+ }
+ if (i < buf.length)
+ return r ? r + this.text(buf, i) : this.text(buf, i);
+ return r || "";
+ };
+ StringDecoder.prototype.end = utf8End;
+ StringDecoder.prototype.text = utf8Text;
+ StringDecoder.prototype.fillLast = function(buf) {
+ if (this.lastNeed <= buf.length) {
+ buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
+ return this.lastChar.toString(this.encoding, 0, this.lastTotal);
+ }
+ buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
+ this.lastNeed -= buf.length;
+ };
+ function utf8CheckByte(byte) {
+ if (byte <= 127)
+ return 0;
+ else if (byte >> 5 === 6)
+ return 2;
+ else if (byte >> 4 === 14)
+ return 3;
+ else if (byte >> 3 === 30)
+ return 4;
+ return byte >> 6 === 2 ? -1 : -2;
+ }
+ function utf8CheckIncomplete(self2, buf, i) {
+ var j = buf.length - 1;
+ if (j < i)
+ return 0;
+ var nb = utf8CheckByte(buf[j]);
+ if (nb >= 0) {
+ if (nb > 0)
+ self2.lastNeed = nb - 1;
+ return nb;
+ }
+ if (--j < i || nb === -2)
+ return 0;
+ nb = utf8CheckByte(buf[j]);
+ if (nb >= 0) {
+ if (nb > 0)
+ self2.lastNeed = nb - 2;
+ return nb;
+ }
+ if (--j < i || nb === -2)
+ return 0;
+ nb = utf8CheckByte(buf[j]);
+ if (nb >= 0) {
+ if (nb > 0) {
+ if (nb === 2)
+ nb = 0;
+ else
+ self2.lastNeed = nb - 3;
+ }
+ return nb;
+ }
+ return 0;
+ }
+ function utf8CheckExtraBytes(self2, buf, p) {
+ if ((buf[0] & 192) !== 128) {
+ self2.lastNeed = 0;
+ return "�";
+ }
+ if (self2.lastNeed > 1 && buf.length > 1) {
+ if ((buf[1] & 192) !== 128) {
+ self2.lastNeed = 1;
+ return "�";
+ }
+ if (self2.lastNeed > 2 && buf.length > 2) {
+ if ((buf[2] & 192) !== 128) {
+ self2.lastNeed = 2;
+ return "�";
+ }
+ }
+ }
+ }
+ function utf8FillLast(buf) {
+ var p = this.lastTotal - this.lastNeed;
+ var r = utf8CheckExtraBytes(this, buf, p);
+ if (r !== undefined)
+ return r;
+ if (this.lastNeed <= buf.length) {
+ buf.copy(this.lastChar, p, 0, this.lastNeed);
+ return this.lastChar.toString(this.encoding, 0, this.lastTotal);
+ }
+ buf.copy(this.lastChar, p, 0, buf.length);
+ this.lastNeed -= buf.length;
+ }
+ function utf8Text(buf, i) {
+ var total = utf8CheckIncomplete(this, buf, i);
+ if (!this.lastNeed)
+ return buf.toString("utf8", i);
+ this.lastTotal = total;
+ var end = buf.length - (total - this.lastNeed);
+ buf.copy(this.lastChar, 0, end);
+ return buf.toString("utf8", i, end);
+ }
+ function utf8End(buf) {
+ var r = buf && buf.length ? this.write(buf) : "";
+ if (this.lastNeed)
+ return r + "�";
+ return r;
+ }
+ function utf16Text(buf, i) {
+ if ((buf.length - i) % 2 === 0) {
+ var r = buf.toString("utf16le", i);
+ if (r) {
+ var c = r.charCodeAt(r.length - 1);
+ if (c >= 55296 && c <= 56319) {
+ this.lastNeed = 2;
+ this.lastTotal = 4;
+ this.lastChar[0] = buf[buf.length - 2];
+ this.lastChar[1] = buf[buf.length - 1];
+ return r.slice(0, -1);
+ }
+ }
+ return r;
+ }
+ this.lastNeed = 1;
+ this.lastTotal = 2;
+ this.lastChar[0] = buf[buf.length - 1];
+ return buf.toString("utf16le", i, buf.length - 1);
+ }
+ function utf16End(buf) {
+ var r = buf && buf.length ? this.write(buf) : "";
+ if (this.lastNeed) {
+ var end = this.lastTotal - this.lastNeed;
+ return r + this.lastChar.toString("utf16le", 0, end);
+ }
+ return r;
+ }
+ function base64Text(buf, i) {
+ var n = (buf.length - i) % 3;
+ if (n === 0)
+ return buf.toString("base64", i);
+ this.lastNeed = 3 - n;
+ this.lastTotal = 3;
+ if (n === 1) {
+ this.lastChar[0] = buf[buf.length - 1];
+ } else {
+ this.lastChar[0] = buf[buf.length - 2];
+ this.lastChar[1] = buf[buf.length - 1];
+ }
+ return buf.toString("base64", i, buf.length - n);
+ }
+ function base64End(buf) {
+ var r = buf && buf.length ? this.write(buf) : "";
+ if (this.lastNeed)
+ return r + this.lastChar.toString("base64", 0, 3 - this.lastNeed);
+ return r;
+ }
+ function simpleWrite(buf) {
+ return buf.toString(this.encoding);
+ }
+ function simpleEnd(buf) {
+ return buf && buf.length ? this.write(buf) : "";
+ }
+});
+
+// node_modules/readable-stream/lib/internal/streams/from.js
+var require_from2 = __commonJS((exports, module) => {
+ var process5 = require_process();
+ var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials();
+ var { Buffer: Buffer2 } = __require("buffer");
+ var { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors().codes;
+ function from2(Readable, iterable, opts) {
+ let iterator;
+ if (typeof iterable === "string" || iterable instanceof Buffer2) {
+ return new Readable({
+ objectMode: true,
+ ...opts,
+ read() {
+ this.push(iterable);
+ this.push(null);
+ }
+ });
+ }
+ let isAsync;
+ if (iterable && iterable[SymbolAsyncIterator]) {
+ isAsync = true;
+ iterator = iterable[SymbolAsyncIterator]();
+ } else if (iterable && iterable[SymbolIterator]) {
+ isAsync = false;
+ iterator = iterable[SymbolIterator]();
+ } else {
+ throw new ERR_INVALID_ARG_TYPE("iterable", ["Iterable"], iterable);
+ }
+ const readable = new Readable({
+ objectMode: true,
+ highWaterMark: 1,
+ ...opts
+ });
+ let reading = false;
+ readable._read = function() {
+ if (!reading) {
+ reading = true;
+ next();
+ }
+ };
+ readable._destroy = function(error, cb) {
+ PromisePrototypeThen(close(error), () => process5.nextTick(cb, error), (e) => process5.nextTick(cb, e || error));
+ };
+ async function close(error) {
+ const hadError = error !== undefined && error !== null;
+ const hasThrow = typeof iterator.throw === "function";
+ if (hadError && hasThrow) {
+ const { value, done } = await iterator.throw(error);
+ await value;
+ if (done) {
+ return;
+ }
+ }
+ if (typeof iterator.return === "function") {
+ const { value } = await iterator.return();
+ await value;
+ }
+ }
+ async function next() {
+ for (;; ) {
+ try {
+ const { value, done } = isAsync ? await iterator.next() : iterator.next();
+ if (done) {
+ readable.push(null);
+ } else {
+ const res = value && typeof value.then === "function" ? await value : value;
+ if (res === null) {
+ reading = false;
+ throw new ERR_STREAM_NULL_VALUES;
+ } else if (readable.push(res)) {
+ continue;
+ } else {
+ reading = false;
+ }
+ }
+ } catch (err) {
+ readable.destroy(err);
+ }
+ break;
+ }
+ }
+ return readable;
+ }
+ module.exports = from2;
+});
+
+// node_modules/readable-stream/lib/internal/streams/readable.js
+var require_readable2 = __commonJS((exports, module) => {
+ var process5 = require_process();
+ var {
+ ArrayPrototypeIndexOf,
+ NumberIsInteger,
+ NumberIsNaN,
+ NumberParseInt,
+ ObjectDefineProperties,
+ ObjectKeys,
+ ObjectSetPrototypeOf,
+ Promise: Promise2,
+ SafeSet,
+ SymbolAsyncDispose,
+ SymbolAsyncIterator,
+ Symbol: Symbol2
+ } = require_primordials();
+ module.exports = Readable;
+ Readable.ReadableState = ReadableState;
+ var { EventEmitter: EE } = __require("events");
+ var { Stream, prependListener } = require_legacy();
+ var { Buffer: Buffer2 } = __require("buffer");
+ var { addAbortSignal } = require_add_abort_signal();
+ var eos = require_end_of_stream();
+ var debug = require_util2().debuglog("stream", (fn) => {
+ debug = fn;
+ });
+ var BufferList = require_buffer_list();
+ var destroyImpl = require_destroy2();
+ var { getHighWaterMark, getDefaultHighWaterMark } = require_state();
+ var {
+ aggregateTwoErrors,
+ codes: {
+ ERR_INVALID_ARG_TYPE,
+ ERR_METHOD_NOT_IMPLEMENTED,
+ ERR_OUT_OF_RANGE,
+ ERR_STREAM_PUSH_AFTER_EOF,
+ ERR_STREAM_UNSHIFT_AFTER_END_EVENT
+ },
+ AbortError
+ } = require_errors();
+ var { validateObject } = require_validators();
+ var kPaused = Symbol2("kPaused");
+ var { StringDecoder } = require_string_decoder2();
+ var from2 = require_from2();
+ ObjectSetPrototypeOf(Readable.prototype, Stream.prototype);
+ ObjectSetPrototypeOf(Readable, Stream);
+ var nop = () => {
+ };
+ var { errorOrDestroy } = destroyImpl;
+ var kObjectMode = 1 << 0;
+ var kEnded = 1 << 1;
+ var kEndEmitted = 1 << 2;
+ var kReading = 1 << 3;
+ var kConstructed = 1 << 4;
+ var kSync = 1 << 5;
+ var kNeedReadable = 1 << 6;
+ var kEmittedReadable = 1 << 7;
+ var kReadableListening = 1 << 8;
+ var kResumeScheduled = 1 << 9;
+ var kErrorEmitted = 1 << 10;
+ var kEmitClose = 1 << 11;
+ var kAutoDestroy = 1 << 12;
+ var kDestroyed = 1 << 13;
+ var kClosed = 1 << 14;
+ var kCloseEmitted = 1 << 15;
+ var kMultiAwaitDrain = 1 << 16;
+ var kReadingMore = 1 << 17;
+ var kDataEmitted = 1 << 18;
+ function makeBitMapDescriptor(bit) {
+ return {
+ enumerable: false,
+ get() {
+ return (this.state & bit) !== 0;
+ },
+ set(value) {
+ if (value)
+ this.state |= bit;
+ else
+ this.state &= ~bit;
+ }
+ };
+ }
+ ObjectDefineProperties(ReadableState.prototype, {
+ objectMode: makeBitMapDescriptor(kObjectMode),
+ ended: makeBitMapDescriptor(kEnded),
+ endEmitted: makeBitMapDescriptor(kEndEmitted),
+ reading: makeBitMapDescriptor(kReading),
+ constructed: makeBitMapDescriptor(kConstructed),
+ sync: makeBitMapDescriptor(kSync),
+ needReadable: makeBitMapDescriptor(kNeedReadable),
+ emittedReadable: makeBitMapDescriptor(kEmittedReadable),
+ readableListening: makeBitMapDescriptor(kReadableListening),
+ resumeScheduled: makeBitMapDescriptor(kResumeScheduled),
+ errorEmitted: makeBitMapDescriptor(kErrorEmitted),
+ emitClose: makeBitMapDescriptor(kEmitClose),
+ autoDestroy: makeBitMapDescriptor(kAutoDestroy),
+ destroyed: makeBitMapDescriptor(kDestroyed),
+ closed: makeBitMapDescriptor(kClosed),
+ closeEmitted: makeBitMapDescriptor(kCloseEmitted),
+ multiAwaitDrain: makeBitMapDescriptor(kMultiAwaitDrain),
+ readingMore: makeBitMapDescriptor(kReadingMore),
+ dataEmitted: makeBitMapDescriptor(kDataEmitted)
+ });
+ function ReadableState(options, stream, isDuplex) {
+ if (typeof isDuplex !== "boolean")
+ isDuplex = stream instanceof require_duplex();
+ this.state = kEmitClose | kAutoDestroy | kConstructed | kSync;
+ if (options && options.objectMode)
+ this.state |= kObjectMode;
+ if (isDuplex && options && options.readableObjectMode)
+ this.state |= kObjectMode;
+ this.highWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
+ this.buffer = new BufferList;
+ this.length = 0;
+ this.pipes = [];
+ this.flowing = null;
+ this[kPaused] = null;
+ if (options && options.emitClose === false)
+ this.state &= ~kEmitClose;
+ if (options && options.autoDestroy === false)
+ this.state &= ~kAutoDestroy;
+ this.errored = null;
+ this.defaultEncoding = options && options.defaultEncoding || "utf8";
+ this.awaitDrainWriters = null;
+ this.decoder = null;
+ this.encoding = null;
+ if (options && options.encoding) {
+ this.decoder = new StringDecoder(options.encoding);
+ this.encoding = options.encoding;
+ }
+ }
+ function Readable(options) {
+ if (!(this instanceof Readable))
+ return new Readable(options);
+ const isDuplex = this instanceof require_duplex();
+ this._readableState = new ReadableState(options, this, isDuplex);
+ if (options) {
+ if (typeof options.read === "function")
+ this._read = options.read;
+ if (typeof options.destroy === "function")
+ this._destroy = options.destroy;
+ if (typeof options.construct === "function")
+ this._construct = options.construct;
+ if (options.signal && !isDuplex)
+ addAbortSignal(options.signal, this);
+ }
+ Stream.call(this, options);
+ destroyImpl.construct(this, () => {
+ if (this._readableState.needReadable) {
+ maybeReadMore(this, this._readableState);
+ }
+ });
+ }
+ Readable.prototype.destroy = destroyImpl.destroy;
+ Readable.prototype._undestroy = destroyImpl.undestroy;
+ Readable.prototype._destroy = function(err, cb) {
+ cb(err);
+ };
+ Readable.prototype[EE.captureRejectionSymbol] = function(err) {
+ this.destroy(err);
+ };
+ Readable.prototype[SymbolAsyncDispose] = function() {
+ let error;
+ if (!this.destroyed) {
+ error = this.readableEnded ? null : new AbortError;
+ this.destroy(error);
+ }
+ return new Promise2((resolve, reject) => eos(this, (err) => err && err !== error ? reject(err) : resolve(null)));
+ };
+ Readable.prototype.push = function(chunk, encoding) {
+ return readableAddChunk(this, chunk, encoding, false);
+ };
+ Readable.prototype.unshift = function(chunk, encoding) {
+ return readableAddChunk(this, chunk, encoding, true);
+ };
+ function readableAddChunk(stream, chunk, encoding, addToFront) {
+ debug("readableAddChunk", chunk);
+ const state = stream._readableState;
+ let err;
+ if ((state.state & kObjectMode) === 0) {
+ if (typeof chunk === "string") {
+ encoding = encoding || state.defaultEncoding;
+ if (state.encoding !== encoding) {
+ if (addToFront && state.encoding) {
+ chunk = Buffer2.from(chunk, encoding).toString(state.encoding);
+ } else {
+ chunk = Buffer2.from(chunk, encoding);
+ encoding = "";
+ }
+ }
+ } else if (chunk instanceof Buffer2) {
+ encoding = "";
+ } else if (Stream._isUint8Array(chunk)) {
+ chunk = Stream._uint8ArrayToBuffer(chunk);
+ encoding = "";
+ } else if (chunk != null) {
+ err = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
+ }
+ }
+ if (err) {
+ errorOrDestroy(stream, err);
+ } else if (chunk === null) {
+ state.state &= ~kReading;
+ onEofChunk(stream, state);
+ } else if ((state.state & kObjectMode) !== 0 || chunk && chunk.length > 0) {
+ if (addToFront) {
+ if ((state.state & kEndEmitted) !== 0)
+ errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT);
+ else if (state.destroyed || state.errored)
+ return false;
+ else
+ addChunk(stream, state, chunk, true);
+ } else if (state.ended) {
+ errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF);
+ } else if (state.destroyed || state.errored) {
+ return false;
+ } else {
+ state.state &= ~kReading;
+ if (state.decoder && !encoding) {
+ chunk = state.decoder.write(chunk);
+ if (state.objectMode || chunk.length !== 0)
+ addChunk(stream, state, chunk, false);
+ else
+ maybeReadMore(stream, state);
+ } else {
+ addChunk(stream, state, chunk, false);
+ }
+ }
+ } else if (!addToFront) {
+ state.state &= ~kReading;
+ maybeReadMore(stream, state);
+ }
+ return !state.ended && (state.length < state.highWaterMark || state.length === 0);
+ }
+ function addChunk(stream, state, chunk, addToFront) {
+ if (state.flowing && state.length === 0 && !state.sync && stream.listenerCount("data") > 0) {
+ if ((state.state & kMultiAwaitDrain) !== 0) {
+ state.awaitDrainWriters.clear();
+ } else {
+ state.awaitDrainWriters = null;
+ }
+ state.dataEmitted = true;
+ stream.emit("data", chunk);
+ } else {
+ state.length += state.objectMode ? 1 : chunk.length;
+ if (addToFront)
+ state.buffer.unshift(chunk);
+ else
+ state.buffer.push(chunk);
+ if ((state.state & kNeedReadable) !== 0)
+ emitReadable(stream);
+ }
+ maybeReadMore(stream, state);
+ }
+ Readable.prototype.isPaused = function() {
+ const state = this._readableState;
+ return state[kPaused] === true || state.flowing === false;
+ };
+ Readable.prototype.setEncoding = function(enc) {
+ const decoder = new StringDecoder(enc);
+ this._readableState.decoder = decoder;
+ this._readableState.encoding = this._readableState.decoder.encoding;
+ const buffer = this._readableState.buffer;
+ let content = "";
+ for (const data of buffer) {
+ content += decoder.write(data);
+ }
+ buffer.clear();
+ if (content !== "")
+ buffer.push(content);
+ this._readableState.length = content.length;
+ return this;
+ };
+ var MAX_HWM = 1073741824;
+ function computeNewHighWaterMark(n) {
+ if (n > MAX_HWM) {
+ throw new ERR_OUT_OF_RANGE("size", "<= 1GiB", n);
+ } else {
+ n--;
+ n |= n >>> 1;
+ n |= n >>> 2;
+ n |= n >>> 4;
+ n |= n >>> 8;
+ n |= n >>> 16;
+ n++;
+ }
+ return n;
+ }
+ function howMuchToRead(n, state) {
+ if (n <= 0 || state.length === 0 && state.ended)
+ return 0;
+ if ((state.state & kObjectMode) !== 0)
+ return 1;
+ if (NumberIsNaN(n)) {
+ if (state.flowing && state.length)
+ return state.buffer.first().length;
+ return state.length;
+ }
+ if (n <= state.length)
+ return n;
+ return state.ended ? state.length : 0;
+ }
+ Readable.prototype.read = function(n) {
+ debug("read", n);
+ if (n === undefined) {
+ n = NaN;
+ } else if (!NumberIsInteger(n)) {
+ n = NumberParseInt(n, 10);
+ }
+ const state = this._readableState;
+ const nOrig = n;
+ if (n > state.highWaterMark)
+ state.highWaterMark = computeNewHighWaterMark(n);
+ if (n !== 0)
+ state.state &= ~kEmittedReadable;
+ if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {
+ debug("read: emitReadable", state.length, state.ended);
+ if (state.length === 0 && state.ended)
+ endReadable(this);
+ else
+ emitReadable(this);
+ return null;
+ }
+ n = howMuchToRead(n, state);
+ if (n === 0 && state.ended) {
+ if (state.length === 0)
+ endReadable(this);
+ return null;
+ }
+ let doRead = (state.state & kNeedReadable) !== 0;
+ debug("need readable", doRead);
+ if (state.length === 0 || state.length - n < state.highWaterMark) {
+ doRead = true;
+ debug("length less than watermark", doRead);
+ }
+ if (state.ended || state.reading || state.destroyed || state.errored || !state.constructed) {
+ doRead = false;
+ debug("reading, ended or constructing", doRead);
+ } else if (doRead) {
+ debug("do read");
+ state.state |= kReading | kSync;
+ if (state.length === 0)
+ state.state |= kNeedReadable;
+ try {
+ this._read(state.highWaterMark);
+ } catch (err) {
+ errorOrDestroy(this, err);
+ }
+ state.state &= ~kSync;
+ if (!state.reading)
+ n = howMuchToRead(nOrig, state);
+ }
+ let ret;
+ if (n > 0)
+ ret = fromList(n, state);
+ else
+ ret = null;
+ if (ret === null) {
+ state.needReadable = state.length <= state.highWaterMark;
+ n = 0;
+ } else {
+ state.length -= n;
+ if (state.multiAwaitDrain) {
+ state.awaitDrainWriters.clear();
+ } else {
+ state.awaitDrainWriters = null;
+ }
+ }
+ if (state.length === 0) {
+ if (!state.ended)
+ state.needReadable = true;
+ if (nOrig !== n && state.ended)
+ endReadable(this);
+ }
+ if (ret !== null && !state.errorEmitted && !state.closeEmitted) {
+ state.dataEmitted = true;
+ this.emit("data", ret);
+ }
+ return ret;
+ };
+ function onEofChunk(stream, state) {
+ debug("onEofChunk");
+ if (state.ended)
+ return;
+ if (state.decoder) {
+ const chunk = state.decoder.end();
+ if (chunk && chunk.length) {
+ state.buffer.push(chunk);
+ state.length += state.objectMode ? 1 : chunk.length;
+ }
+ }
+ state.ended = true;
+ if (state.sync) {
+ emitReadable(stream);
+ } else {
+ state.needReadable = false;
+ state.emittedReadable = true;
+ emitReadable_(stream);
+ }
+ }
+ function emitReadable(stream) {
+ const state = stream._readableState;
+ debug("emitReadable", state.needReadable, state.emittedReadable);
+ state.needReadable = false;
+ if (!state.emittedReadable) {
+ debug("emitReadable", state.flowing);
+ state.emittedReadable = true;
+ process5.nextTick(emitReadable_, stream);
+ }
+ }
+ function emitReadable_(stream) {
+ const state = stream._readableState;
+ debug("emitReadable_", state.destroyed, state.length, state.ended);
+ if (!state.destroyed && !state.errored && (state.length || state.ended)) {
+ stream.emit("readable");
+ state.emittedReadable = false;
+ }
+ state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;
+ flow(stream);
+ }
+ function maybeReadMore(stream, state) {
+ if (!state.readingMore && state.constructed) {
+ state.readingMore = true;
+ process5.nextTick(maybeReadMore_, stream, state);
+ }
+ }
+ function maybeReadMore_(stream, state) {
+ while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {
+ const len = state.length;
+ debug("maybeReadMore read 0");
+ stream.read(0);
+ if (len === state.length)
+ break;
+ }
+ state.readingMore = false;
+ }
+ Readable.prototype._read = function(n) {
+ throw new ERR_METHOD_NOT_IMPLEMENTED("_read()");
+ };
+ Readable.prototype.pipe = function(dest, pipeOpts) {
+ const src = this;
+ const state = this._readableState;
+ if (state.pipes.length === 1) {
+ if (!state.multiAwaitDrain) {
+ state.multiAwaitDrain = true;
+ state.awaitDrainWriters = new SafeSet(state.awaitDrainWriters ? [state.awaitDrainWriters] : []);
+ }
+ }
+ state.pipes.push(dest);
+ debug("pipe count=%d opts=%j", state.pipes.length, pipeOpts);
+ const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process5.stdout && dest !== process5.stderr;
+ const endFn = doEnd ? onend : unpipe;
+ if (state.endEmitted)
+ process5.nextTick(endFn);
+ else
+ src.once("end", endFn);
+ dest.on("unpipe", onunpipe);
+ function onunpipe(readable, unpipeInfo) {
+ debug("onunpipe");
+ if (readable === src) {
+ if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
+ unpipeInfo.hasUnpiped = true;
+ cleanup();
+ }
+ }
+ }
+ function onend() {
+ debug("onend");
+ dest.end();
+ }
+ let ondrain;
+ let cleanedUp = false;
+ function cleanup() {
+ debug("cleanup");
+ dest.removeListener("close", onclose);
+ dest.removeListener("finish", onfinish);
+ if (ondrain) {
+ dest.removeListener("drain", ondrain);
+ }
+ dest.removeListener("error", onerror);
+ dest.removeListener("unpipe", onunpipe);
+ src.removeListener("end", onend);
+ src.removeListener("end", unpipe);
+ src.removeListener("data", ondata);
+ cleanedUp = true;
+ if (ondrain && state.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain))
+ ondrain();
+ }
+ function pause() {
+ if (!cleanedUp) {
+ if (state.pipes.length === 1 && state.pipes[0] === dest) {
+ debug("false write response, pause", 0);
+ state.awaitDrainWriters = dest;
+ state.multiAwaitDrain = false;
+ } else if (state.pipes.length > 1 && state.pipes.includes(dest)) {
+ debug("false write response, pause", state.awaitDrainWriters.size);
+ state.awaitDrainWriters.add(dest);
+ }
+ src.pause();
+ }
+ if (!ondrain) {
+ ondrain = pipeOnDrain(src, dest);
+ dest.on("drain", ondrain);
+ }
+ }
+ src.on("data", ondata);
+ function ondata(chunk) {
+ debug("ondata");
+ const ret = dest.write(chunk);
+ debug("dest.write", ret);
+ if (ret === false) {
+ pause();
+ }
+ }
+ function onerror(er) {
+ debug("onerror", er);
+ unpipe();
+ dest.removeListener("error", onerror);
+ if (dest.listenerCount("error") === 0) {
+ const s = dest._writableState || dest._readableState;
+ if (s && !s.errorEmitted) {
+ errorOrDestroy(dest, er);
+ } else {
+ dest.emit("error", er);
+ }
+ }
+ }
+ prependListener(dest, "error", onerror);
+ function onclose() {
+ dest.removeListener("finish", onfinish);
+ unpipe();
+ }
+ dest.once("close", onclose);
+ function onfinish() {
+ debug("onfinish");
+ dest.removeListener("close", onclose);
+ unpipe();
+ }
+ dest.once("finish", onfinish);
+ function unpipe() {
+ debug("unpipe");
+ src.unpipe(dest);
+ }
+ dest.emit("pipe", src);
+ if (dest.writableNeedDrain === true) {
+ pause();
+ } else if (!state.flowing) {
+ debug("pipe resume");
+ src.resume();
+ }
+ return dest;
+ };
+ function pipeOnDrain(src, dest) {
+ return function pipeOnDrainFunctionResult() {
+ const state = src._readableState;
+ if (state.awaitDrainWriters === dest) {
+ debug("pipeOnDrain", 1);
+ state.awaitDrainWriters = null;
+ } else if (state.multiAwaitDrain) {
+ debug("pipeOnDrain", state.awaitDrainWriters.size);
+ state.awaitDrainWriters.delete(dest);
+ }
+ if ((!state.awaitDrainWriters || state.awaitDrainWriters.size === 0) && src.listenerCount("data")) {
+ src.resume();
+ }
+ };
+ }
+ Readable.prototype.unpipe = function(dest) {
+ const state = this._readableState;
+ const unpipeInfo = {
+ hasUnpiped: false
+ };
+ if (state.pipes.length === 0)
+ return this;
+ if (!dest) {
+ const dests = state.pipes;
+ state.pipes = [];
+ this.pause();
+ for (let i = 0;i < dests.length; i++)
+ dests[i].emit("unpipe", this, {
+ hasUnpiped: false
+ });
+ return this;
+ }
+ const index = ArrayPrototypeIndexOf(state.pipes, dest);
+ if (index === -1)
+ return this;
+ state.pipes.splice(index, 1);
+ if (state.pipes.length === 0)
+ this.pause();
+ dest.emit("unpipe", this, unpipeInfo);
+ return this;
+ };
+ Readable.prototype.on = function(ev, fn) {
+ const res = Stream.prototype.on.call(this, ev, fn);
+ const state = this._readableState;
+ if (ev === "data") {
+ state.readableListening = this.listenerCount("readable") > 0;
+ if (state.flowing !== false)
+ this.resume();
+ } else if (ev === "readable") {
+ if (!state.endEmitted && !state.readableListening) {
+ state.readableListening = state.needReadable = true;
+ state.flowing = false;
+ state.emittedReadable = false;
+ debug("on readable", state.length, state.reading);
+ if (state.length) {
+ emitReadable(this);
+ } else if (!state.reading) {
+ process5.nextTick(nReadingNextTick, this);
+ }
+ }
+ }
+ return res;
+ };
+ Readable.prototype.addListener = Readable.prototype.on;
+ Readable.prototype.removeListener = function(ev, fn) {
+ const res = Stream.prototype.removeListener.call(this, ev, fn);
+ if (ev === "readable") {
+ process5.nextTick(updateReadableListening, this);
+ }
+ return res;
+ };
+ Readable.prototype.off = Readable.prototype.removeListener;
+ Readable.prototype.removeAllListeners = function(ev) {
+ const res = Stream.prototype.removeAllListeners.apply(this, arguments);
+ if (ev === "readable" || ev === undefined) {
+ process5.nextTick(updateReadableListening, this);
+ }
+ return res;
+ };
+ function updateReadableListening(self2) {
+ const state = self2._readableState;
+ state.readableListening = self2.listenerCount("readable") > 0;
+ if (state.resumeScheduled && state[kPaused] === false) {
+ state.flowing = true;
+ } else if (self2.listenerCount("data") > 0) {
+ self2.resume();
+ } else if (!state.readableListening) {
+ state.flowing = null;
+ }
+ }
+ function nReadingNextTick(self2) {
+ debug("readable nexttick read 0");
+ self2.read(0);
+ }
+ Readable.prototype.resume = function() {
+ const state = this._readableState;
+ if (!state.flowing) {
+ debug("resume");
+ state.flowing = !state.readableListening;
+ resume(this, state);
+ }
+ state[kPaused] = false;
+ return this;
+ };
+ function resume(stream, state) {
+ if (!state.resumeScheduled) {
+ state.resumeScheduled = true;
+ process5.nextTick(resume_, stream, state);
+ }
+ }
+ function resume_(stream, state) {
+ debug("resume", state.reading);
+ if (!state.reading) {
+ stream.read(0);
+ }
+ state.resumeScheduled = false;
+ stream.emit("resume");
+ flow(stream);
+ if (state.flowing && !state.reading)
+ stream.read(0);
+ }
+ Readable.prototype.pause = function() {
+ debug("call pause flowing=%j", this._readableState.flowing);
+ if (this._readableState.flowing !== false) {
+ debug("pause");
+ this._readableState.flowing = false;
+ this.emit("pause");
+ }
+ this._readableState[kPaused] = true;
+ return this;
+ };
+ function flow(stream) {
+ const state = stream._readableState;
+ debug("flow", state.flowing);
+ while (state.flowing && stream.read() !== null)
+ ;
+ }
+ Readable.prototype.wrap = function(stream) {
+ let paused = false;
+ stream.on("data", (chunk) => {
+ if (!this.push(chunk) && stream.pause) {
+ paused = true;
+ stream.pause();
+ }
+ });
+ stream.on("end", () => {
+ this.push(null);
+ });
+ stream.on("error", (err) => {
+ errorOrDestroy(this, err);
+ });
+ stream.on("close", () => {
+ this.destroy();
+ });
+ stream.on("destroy", () => {
+ this.destroy();
+ });
+ this._read = () => {
+ if (paused && stream.resume) {
+ paused = false;
+ stream.resume();
+ }
+ };
+ const streamKeys = ObjectKeys(stream);
+ for (let j = 1;j < streamKeys.length; j++) {
+ const i = streamKeys[j];
+ if (this[i] === undefined && typeof stream[i] === "function") {
+ this[i] = stream[i].bind(stream);
+ }
+ }
+ return this;
+ };
+ Readable.prototype[SymbolAsyncIterator] = function() {
+ return streamToAsyncIterator(this);
+ };
+ Readable.prototype.iterator = function(options) {
+ if (options !== undefined) {
+ validateObject(options, "options");
+ }
+ return streamToAsyncIterator(this, options);
+ };
+ function streamToAsyncIterator(stream, options) {
+ if (typeof stream.read !== "function") {
+ stream = Readable.wrap(stream, {
+ objectMode: true
+ });
+ }
+ const iter = createAsyncIterator(stream, options);
+ iter.stream = stream;
+ return iter;
+ }
+ async function* createAsyncIterator(stream, options) {
+ let callback = nop;
+ function next(resolve) {
+ if (this === stream) {
+ callback();
+ callback = nop;
+ } else {
+ callback = resolve;
+ }
+ }
+ stream.on("readable", next);
+ let error;
+ const cleanup = eos(stream, {
+ writable: false
+ }, (err) => {
+ error = err ? aggregateTwoErrors(error, err) : null;
+ callback();
+ callback = nop;
+ });
+ try {
+ while (true) {
+ const chunk = stream.destroyed ? null : stream.read();
+ if (chunk !== null) {
+ yield chunk;
+ } else if (error) {
+ throw error;
+ } else if (error === null) {
+ return;
+ } else {
+ await new Promise2(next);
+ }
+ }
+ } catch (err) {
+ error = aggregateTwoErrors(error, err);
+ throw error;
+ } finally {
+ if ((error || (options === null || options === undefined ? undefined : options.destroyOnReturn) !== false) && (error === undefined || stream._readableState.autoDestroy)) {
+ destroyImpl.destroyer(stream, null);
+ } else {
+ stream.off("readable", next);
+ cleanup();
+ }
+ }
+ }
+ ObjectDefineProperties(Readable.prototype, {
+ readable: {
+ __proto__: null,
+ get() {
+ const r = this._readableState;
+ return !!r && r.readable !== false && !r.destroyed && !r.errorEmitted && !r.endEmitted;
+ },
+ set(val) {
+ if (this._readableState) {
+ this._readableState.readable = !!val;
+ }
+ }
+ },
+ readableDidRead: {
+ __proto__: null,
+ enumerable: false,
+ get: function() {
+ return this._readableState.dataEmitted;
+ }
+ },
+ readableAborted: {
+ __proto__: null,
+ enumerable: false,
+ get: function() {
+ return !!(this._readableState.readable !== false && (this._readableState.destroyed || this._readableState.errored) && !this._readableState.endEmitted);
+ }
+ },
+ readableHighWaterMark: {
+ __proto__: null,
+ enumerable: false,
+ get: function() {
+ return this._readableState.highWaterMark;
+ }
+ },
+ readableBuffer: {
+ __proto__: null,
+ enumerable: false,
+ get: function() {
+ return this._readableState && this._readableState.buffer;
+ }
+ },
+ readableFlowing: {
+ __proto__: null,
+ enumerable: false,
+ get: function() {
+ return this._readableState.flowing;
+ },
+ set: function(state) {
+ if (this._readableState) {
+ this._readableState.flowing = state;
+ }
+ }
+ },
+ readableLength: {
+ __proto__: null,
+ enumerable: false,
+ get() {
+ return this._readableState.length;
+ }
+ },
+ readableObjectMode: {
+ __proto__: null,
+ enumerable: false,
+ get() {
+ return this._readableState ? this._readableState.objectMode : false;
+ }
+ },
+ readableEncoding: {
+ __proto__: null,
+ enumerable: false,
+ get() {
+ return this._readableState ? this._readableState.encoding : null;
+ }
+ },
+ errored: {
+ __proto__: null,
+ enumerable: false,
+ get() {
+ return this._readableState ? this._readableState.errored : null;
+ }
+ },
+ closed: {
+ __proto__: null,
+ get() {
+ return this._readableState ? this._readableState.closed : false;
+ }
+ },
+ destroyed: {
+ __proto__: null,
+ enumerable: false,
+ get() {
+ return this._readableState ? this._readableState.destroyed : false;
+ },
+ set(value) {
+ if (!this._readableState) {
+ return;
+ }
+ this._readableState.destroyed = value;
+ }
+ },
+ readableEnded: {
+ __proto__: null,
+ enumerable: false,
+ get() {
+ return this._readableState ? this._readableState.endEmitted : false;
+ }
+ }
+ });
+ ObjectDefineProperties(ReadableState.prototype, {
+ pipesCount: {
+ __proto__: null,
+ get() {
+ return this.pipes.length;
+ }
+ },
+ paused: {
+ __proto__: null,
+ get() {
+ return this[kPaused] !== false;
+ },
+ set(value) {
+ this[kPaused] = !!value;
+ }
+ }
+ });
+ Readable._fromList = fromList;
+ function fromList(n, state) {
+ if (state.length === 0)
+ return null;
+ let ret;
+ if (state.objectMode)
+ ret = state.buffer.shift();
+ else if (!n || n >= state.length) {
+ if (state.decoder)
+ ret = state.buffer.join("");
+ else if (state.buffer.length === 1)
+ ret = state.buffer.first();
+ else
+ ret = state.buffer.concat(state.length);
+ state.buffer.clear();
+ } else {
+ ret = state.buffer.consume(n, state.decoder);
+ }
+ return ret;
+ }
+ function endReadable(stream) {
+ const state = stream._readableState;
+ debug("endReadable", state.endEmitted);
+ if (!state.endEmitted) {
+ state.ended = true;
+ process5.nextTick(endReadableNT, state, stream);
+ }
+ }
+ function endReadableNT(state, stream) {
+ debug("endReadableNT", state.endEmitted, state.length);
+ if (!state.errored && !state.closeEmitted && !state.endEmitted && state.length === 0) {
+ state.endEmitted = true;
+ stream.emit("end");
+ if (stream.writable && stream.allowHalfOpen === false) {
+ process5.nextTick(endWritableNT, stream);
+ } else if (state.autoDestroy) {
+ const wState = stream._writableState;
+ const autoDestroy = !wState || wState.autoDestroy && (wState.finished || wState.writable === false);
+ if (autoDestroy) {
+ stream.destroy();
+ }
+ }
+ }
+ }
+ function endWritableNT(stream) {
+ const writable = stream.writable && !stream.writableEnded && !stream.destroyed;
+ if (writable) {
+ stream.end();
+ }
+ }
+ Readable.from = function(iterable, opts) {
+ return from2(Readable, iterable, opts);
+ };
+ var webStreamsAdapters;
+ function lazyWebStreams() {
+ if (webStreamsAdapters === undefined)
+ webStreamsAdapters = {};
+ return webStreamsAdapters;
+ }
+ Readable.fromWeb = function(readableStream, options) {
+ return lazyWebStreams().newStreamReadableFromReadableStream(readableStream, options);
+ };
+ Readable.toWeb = function(streamReadable, options) {
+ return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable, options);
+ };
+ Readable.wrap = function(src, options) {
+ var _ref, _src$readableObjectMo;
+ return new Readable({
+ objectMode: (_ref = (_src$readableObjectMo = src.readableObjectMode) !== null && _src$readableObjectMo !== undefined ? _src$readableObjectMo : src.objectMode) !== null && _ref !== undefined ? _ref : true,
+ ...options,
+ destroy(err, callback) {
+ destroyImpl.destroyer(src, err);
+ callback(err);
+ }
+ }).wrap(src);
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/writable.js
+var require_writable = __commonJS((exports, module) => {
+ var process5 = require_process();
+ var {
+ ArrayPrototypeSlice,
+ Error: Error2,
+ FunctionPrototypeSymbolHasInstance,
+ ObjectDefineProperty: ObjectDefineProperty2,
+ ObjectDefineProperties,
+ ObjectSetPrototypeOf,
+ StringPrototypeToLowerCase,
+ Symbol: Symbol2,
+ SymbolHasInstance
+ } = require_primordials();
+ module.exports = Writable;
+ Writable.WritableState = WritableState;
+ var { EventEmitter: EE } = __require("events");
+ var Stream = require_legacy().Stream;
+ var { Buffer: Buffer2 } = __require("buffer");
+ var destroyImpl = require_destroy2();
+ var { addAbortSignal } = require_add_abort_signal();
+ var { getHighWaterMark, getDefaultHighWaterMark } = require_state();
+ var {
+ ERR_INVALID_ARG_TYPE,
+ ERR_METHOD_NOT_IMPLEMENTED,
+ ERR_MULTIPLE_CALLBACK,
+ ERR_STREAM_CANNOT_PIPE,
+ ERR_STREAM_DESTROYED,
+ ERR_STREAM_ALREADY_FINISHED,
+ ERR_STREAM_NULL_VALUES,
+ ERR_STREAM_WRITE_AFTER_END,
+ ERR_UNKNOWN_ENCODING
+ } = require_errors().codes;
+ var { errorOrDestroy } = destroyImpl;
+ ObjectSetPrototypeOf(Writable.prototype, Stream.prototype);
+ ObjectSetPrototypeOf(Writable, Stream);
+ function nop() {
+ }
+ var kOnFinished = Symbol2("kOnFinished");
+ function WritableState(options, stream, isDuplex) {
+ if (typeof isDuplex !== "boolean")
+ isDuplex = stream instanceof require_duplex();
+ this.objectMode = !!(options && options.objectMode);
+ if (isDuplex)
+ this.objectMode = this.objectMode || !!(options && options.writableObjectMode);
+ this.highWaterMark = options ? getHighWaterMark(this, options, "writableHighWaterMark", isDuplex) : getDefaultHighWaterMark(false);
+ this.finalCalled = false;
+ this.needDrain = false;
+ this.ending = false;
+ this.ended = false;
+ this.finished = false;
+ this.destroyed = false;
+ const noDecode = !!(options && options.decodeStrings === false);
+ this.decodeStrings = !noDecode;
+ this.defaultEncoding = options && options.defaultEncoding || "utf8";
+ this.length = 0;
+ this.writing = false;
+ this.corked = 0;
+ this.sync = true;
+ this.bufferProcessing = false;
+ this.onwrite = onwrite.bind(undefined, stream);
+ this.writecb = null;
+ this.writelen = 0;
+ this.afterWriteTickInfo = null;
+ resetBuffer(this);
+ this.pendingcb = 0;
+ this.constructed = true;
+ this.prefinished = false;
+ this.errorEmitted = false;
+ this.emitClose = !options || options.emitClose !== false;
+ this.autoDestroy = !options || options.autoDestroy !== false;
+ this.errored = null;
+ this.closed = false;
+ this.closeEmitted = false;
+ this[kOnFinished] = [];
+ }
+ function resetBuffer(state) {
+ state.buffered = [];
+ state.bufferedIndex = 0;
+ state.allBuffers = true;
+ state.allNoop = true;
+ }
+ WritableState.prototype.getBuffer = function getBuffer() {
+ return ArrayPrototypeSlice(this.buffered, this.bufferedIndex);
+ };
+ ObjectDefineProperty2(WritableState.prototype, "bufferedRequestCount", {
+ __proto__: null,
+ get() {
+ return this.buffered.length - this.bufferedIndex;
+ }
+ });
+ function Writable(options) {
+ const isDuplex = this instanceof require_duplex();
+ if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable, this))
+ return new Writable(options);
+ this._writableState = new WritableState(options, this, isDuplex);
+ if (options) {
+ if (typeof options.write === "function")
+ this._write = options.write;
+ if (typeof options.writev === "function")
+ this._writev = options.writev;
+ if (typeof options.destroy === "function")
+ this._destroy = options.destroy;
+ if (typeof options.final === "function")
+ this._final = options.final;
+ if (typeof options.construct === "function")
+ this._construct = options.construct;
+ if (options.signal)
+ addAbortSignal(options.signal, this);
+ }
+ Stream.call(this, options);
+ destroyImpl.construct(this, () => {
+ const state = this._writableState;
+ if (!state.writing) {
+ clearBuffer(this, state);
+ }
+ finishMaybe(this, state);
+ });
+ }
+ ObjectDefineProperty2(Writable, SymbolHasInstance, {
+ __proto__: null,
+ value: function(object) {
+ if (FunctionPrototypeSymbolHasInstance(this, object))
+ return true;
+ if (this !== Writable)
+ return false;
+ return object && object._writableState instanceof WritableState;
+ }
+ });
+ Writable.prototype.pipe = function() {
+ errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE);
+ };
+ function _write(stream, chunk, encoding, cb) {
+ const state = stream._writableState;
+ if (typeof encoding === "function") {
+ cb = encoding;
+ encoding = state.defaultEncoding;
+ } else {
+ if (!encoding)
+ encoding = state.defaultEncoding;
+ else if (encoding !== "buffer" && !Buffer2.isEncoding(encoding))
+ throw new ERR_UNKNOWN_ENCODING(encoding);
+ if (typeof cb !== "function")
+ cb = nop;
+ }
+ if (chunk === null) {
+ throw new ERR_STREAM_NULL_VALUES;
+ } else if (!state.objectMode) {
+ if (typeof chunk === "string") {
+ if (state.decodeStrings !== false) {
+ chunk = Buffer2.from(chunk, encoding);
+ encoding = "buffer";
+ }
+ } else if (chunk instanceof Buffer2) {
+ encoding = "buffer";
+ } else if (Stream._isUint8Array(chunk)) {
+ chunk = Stream._uint8ArrayToBuffer(chunk);
+ encoding = "buffer";
+ } else {
+ throw new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk);
+ }
+ }
+ let err;
+ if (state.ending) {
+ err = new ERR_STREAM_WRITE_AFTER_END;
+ } else if (state.destroyed) {
+ err = new ERR_STREAM_DESTROYED("write");
+ }
+ if (err) {
+ process5.nextTick(cb, err);
+ errorOrDestroy(stream, err, true);
+ return err;
+ }
+ state.pendingcb++;
+ return writeOrBuffer(stream, state, chunk, encoding, cb);
+ }
+ Writable.prototype.write = function(chunk, encoding, cb) {
+ return _write(this, chunk, encoding, cb) === true;
+ };
+ Writable.prototype.cork = function() {
+ this._writableState.corked++;
+ };
+ Writable.prototype.uncork = function() {
+ const state = this._writableState;
+ if (state.corked) {
+ state.corked--;
+ if (!state.writing)
+ clearBuffer(this, state);
+ }
+ };
+ Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
+ if (typeof encoding === "string")
+ encoding = StringPrototypeToLowerCase(encoding);
+ if (!Buffer2.isEncoding(encoding))
+ throw new ERR_UNKNOWN_ENCODING(encoding);
+ this._writableState.defaultEncoding = encoding;
+ return this;
+ };
+ function writeOrBuffer(stream, state, chunk, encoding, callback) {
+ const len = state.objectMode ? 1 : chunk.length;
+ state.length += len;
+ const ret = state.length < state.highWaterMark;
+ if (!ret)
+ state.needDrain = true;
+ if (state.writing || state.corked || state.errored || !state.constructed) {
+ state.buffered.push({
+ chunk,
+ encoding,
+ callback
+ });
+ if (state.allBuffers && encoding !== "buffer") {
+ state.allBuffers = false;
+ }
+ if (state.allNoop && callback !== nop) {
+ state.allNoop = false;
+ }
+ } else {
+ state.writelen = len;
+ state.writecb = callback;
+ state.writing = true;
+ state.sync = true;
+ stream._write(chunk, encoding, state.onwrite);
+ state.sync = false;
+ }
+ return ret && !state.errored && !state.destroyed;
+ }
+ function doWrite(stream, state, writev, len, chunk, encoding, cb) {
+ state.writelen = len;
+ state.writecb = cb;
+ state.writing = true;
+ state.sync = true;
+ if (state.destroyed)
+ state.onwrite(new ERR_STREAM_DESTROYED("write"));
+ else if (writev)
+ stream._writev(chunk, state.onwrite);
+ else
+ stream._write(chunk, encoding, state.onwrite);
+ state.sync = false;
+ }
+ function onwriteError(stream, state, er, cb) {
+ --state.pendingcb;
+ cb(er);
+ errorBuffer(state);
+ errorOrDestroy(stream, er);
+ }
+ function onwrite(stream, er) {
+ const state = stream._writableState;
+ const sync = state.sync;
+ const cb = state.writecb;
+ if (typeof cb !== "function") {
+ errorOrDestroy(stream, new ERR_MULTIPLE_CALLBACK);
+ return;
+ }
+ state.writing = false;
+ state.writecb = null;
+ state.length -= state.writelen;
+ state.writelen = 0;
+ if (er) {
+ er.stack;
+ if (!state.errored) {
+ state.errored = er;
+ }
+ if (stream._readableState && !stream._readableState.errored) {
+ stream._readableState.errored = er;
+ }
+ if (sync) {
+ process5.nextTick(onwriteError, stream, state, er, cb);
+ } else {
+ onwriteError(stream, state, er, cb);
+ }
+ } else {
+ if (state.buffered.length > state.bufferedIndex) {
+ clearBuffer(stream, state);
+ }
+ if (sync) {
+ if (state.afterWriteTickInfo !== null && state.afterWriteTickInfo.cb === cb) {
+ state.afterWriteTickInfo.count++;
+ } else {
+ state.afterWriteTickInfo = {
+ count: 1,
+ cb,
+ stream,
+ state
+ };
+ process5.nextTick(afterWriteTick, state.afterWriteTickInfo);
+ }
+ } else {
+ afterWrite(stream, state, 1, cb);
+ }
+ }
+ }
+ function afterWriteTick({ stream, state, count, cb }) {
+ state.afterWriteTickInfo = null;
+ return afterWrite(stream, state, count, cb);
+ }
+ function afterWrite(stream, state, count, cb) {
+ const needDrain = !state.ending && !stream.destroyed && state.length === 0 && state.needDrain;
+ if (needDrain) {
+ state.needDrain = false;
+ stream.emit("drain");
+ }
+ while (count-- > 0) {
+ state.pendingcb--;
+ cb();
+ }
+ if (state.destroyed) {
+ errorBuffer(state);
+ }
+ finishMaybe(stream, state);
+ }
+ function errorBuffer(state) {
+ if (state.writing) {
+ return;
+ }
+ for (let n = state.bufferedIndex;n < state.buffered.length; ++n) {
+ var _state$errored;
+ const { chunk, callback } = state.buffered[n];
+ const len = state.objectMode ? 1 : chunk.length;
+ state.length -= len;
+ callback((_state$errored = state.errored) !== null && _state$errored !== undefined ? _state$errored : new ERR_STREAM_DESTROYED("write"));
+ }
+ const onfinishCallbacks = state[kOnFinished].splice(0);
+ for (let i = 0;i < onfinishCallbacks.length; i++) {
+ var _state$errored2;
+ onfinishCallbacks[i]((_state$errored2 = state.errored) !== null && _state$errored2 !== undefined ? _state$errored2 : new ERR_STREAM_DESTROYED("end"));
+ }
+ resetBuffer(state);
+ }
+ function clearBuffer(stream, state) {
+ if (state.corked || state.bufferProcessing || state.destroyed || !state.constructed) {
+ return;
+ }
+ const { buffered, bufferedIndex, objectMode } = state;
+ const bufferedLength = buffered.length - bufferedIndex;
+ if (!bufferedLength) {
+ return;
+ }
+ let i = bufferedIndex;
+ state.bufferProcessing = true;
+ if (bufferedLength > 1 && stream._writev) {
+ state.pendingcb -= bufferedLength - 1;
+ const callback = state.allNoop ? nop : (err) => {
+ for (let n = i;n < buffered.length; ++n) {
+ buffered[n].callback(err);
+ }
+ };
+ const chunks = state.allNoop && i === 0 ? buffered : ArrayPrototypeSlice(buffered, i);
+ chunks.allBuffers = state.allBuffers;
+ doWrite(stream, state, true, state.length, chunks, "", callback);
+ resetBuffer(state);
+ } else {
+ do {
+ const { chunk, encoding, callback } = buffered[i];
+ buffered[i++] = null;
+ const len = objectMode ? 1 : chunk.length;
+ doWrite(stream, state, false, len, chunk, encoding, callback);
+ } while (i < buffered.length && !state.writing);
+ if (i === buffered.length) {
+ resetBuffer(state);
+ } else if (i > 256) {
+ buffered.splice(0, i);
+ state.bufferedIndex = 0;
+ } else {
+ state.bufferedIndex = i;
+ }
+ }
+ state.bufferProcessing = false;
+ }
+ Writable.prototype._write = function(chunk, encoding, cb) {
+ if (this._writev) {
+ this._writev([
+ {
+ chunk,
+ encoding
+ }
+ ], cb);
+ } else {
+ throw new ERR_METHOD_NOT_IMPLEMENTED("_write()");
+ }
+ };
+ Writable.prototype._writev = null;
+ Writable.prototype.end = function(chunk, encoding, cb) {
+ const state = this._writableState;
+ if (typeof chunk === "function") {
+ cb = chunk;
+ chunk = null;
+ encoding = null;
+ } else if (typeof encoding === "function") {
+ cb = encoding;
+ encoding = null;
+ }
+ let err;
+ if (chunk !== null && chunk !== undefined) {
+ const ret = _write(this, chunk, encoding);
+ if (ret instanceof Error2) {
+ err = ret;
+ }
+ }
+ if (state.corked) {
+ state.corked = 1;
+ this.uncork();
+ }
+ if (err) {
+ } else if (!state.errored && !state.ending) {
+ state.ending = true;
+ finishMaybe(this, state, true);
+ state.ended = true;
+ } else if (state.finished) {
+ err = new ERR_STREAM_ALREADY_FINISHED("end");
+ } else if (state.destroyed) {
+ err = new ERR_STREAM_DESTROYED("end");
+ }
+ if (typeof cb === "function") {
+ if (err || state.finished) {
+ process5.nextTick(cb, err);
+ } else {
+ state[kOnFinished].push(cb);
+ }
+ }
+ return this;
+ };
+ function needFinish(state) {
+ return state.ending && !state.destroyed && state.constructed && state.length === 0 && !state.errored && state.buffered.length === 0 && !state.finished && !state.writing && !state.errorEmitted && !state.closeEmitted;
+ }
+ function callFinal(stream, state) {
+ let called = false;
+ function onFinish(err) {
+ if (called) {
+ errorOrDestroy(stream, err !== null && err !== undefined ? err : ERR_MULTIPLE_CALLBACK());
+ return;
+ }
+ called = true;
+ state.pendingcb--;
+ if (err) {
+ const onfinishCallbacks = state[kOnFinished].splice(0);
+ for (let i = 0;i < onfinishCallbacks.length; i++) {
+ onfinishCallbacks[i](err);
+ }
+ errorOrDestroy(stream, err, state.sync);
+ } else if (needFinish(state)) {
+ state.prefinished = true;
+ stream.emit("prefinish");
+ state.pendingcb++;
+ process5.nextTick(finish, stream, state);
+ }
+ }
+ state.sync = true;
+ state.pendingcb++;
+ try {
+ stream._final(onFinish);
+ } catch (err) {
+ onFinish(err);
+ }
+ state.sync = false;
+ }
+ function prefinish(stream, state) {
+ if (!state.prefinished && !state.finalCalled) {
+ if (typeof stream._final === "function" && !state.destroyed) {
+ state.finalCalled = true;
+ callFinal(stream, state);
+ } else {
+ state.prefinished = true;
+ stream.emit("prefinish");
+ }
+ }
+ }
+ function finishMaybe(stream, state, sync) {
+ if (needFinish(state)) {
+ prefinish(stream, state);
+ if (state.pendingcb === 0) {
+ if (sync) {
+ state.pendingcb++;
+ process5.nextTick((stream2, state2) => {
+ if (needFinish(state2)) {
+ finish(stream2, state2);
+ } else {
+ state2.pendingcb--;
+ }
+ }, stream, state);
+ } else if (needFinish(state)) {
+ state.pendingcb++;
+ finish(stream, state);
+ }
+ }
+ }
+ }
+ function finish(stream, state) {
+ state.pendingcb--;
+ state.finished = true;
+ const onfinishCallbacks = state[kOnFinished].splice(0);
+ for (let i = 0;i < onfinishCallbacks.length; i++) {
+ onfinishCallbacks[i]();
+ }
+ stream.emit("finish");
+ if (state.autoDestroy) {
+ const rState = stream._readableState;
+ const autoDestroy = !rState || rState.autoDestroy && (rState.endEmitted || rState.readable === false);
+ if (autoDestroy) {
+ stream.destroy();
+ }
+ }
+ }
+ ObjectDefineProperties(Writable.prototype, {
+ closed: {
+ __proto__: null,
+ get() {
+ return this._writableState ? this._writableState.closed : false;
+ }
+ },
+ destroyed: {
+ __proto__: null,
+ get() {
+ return this._writableState ? this._writableState.destroyed : false;
+ },
+ set(value) {
+ if (this._writableState) {
+ this._writableState.destroyed = value;
+ }
+ }
+ },
+ writable: {
+ __proto__: null,
+ get() {
+ const w = this._writableState;
+ return !!w && w.writable !== false && !w.destroyed && !w.errored && !w.ending && !w.ended;
+ },
+ set(val) {
+ if (this._writableState) {
+ this._writableState.writable = !!val;
+ }
+ }
+ },
+ writableFinished: {
+ __proto__: null,
+ get() {
+ return this._writableState ? this._writableState.finished : false;
+ }
+ },
+ writableObjectMode: {
+ __proto__: null,
+ get() {
+ return this._writableState ? this._writableState.objectMode : false;
+ }
+ },
+ writableBuffer: {
+ __proto__: null,
+ get() {
+ return this._writableState && this._writableState.getBuffer();
+ }
+ },
+ writableEnded: {
+ __proto__: null,
+ get() {
+ return this._writableState ? this._writableState.ending : false;
+ }
+ },
+ writableNeedDrain: {
+ __proto__: null,
+ get() {
+ const wState = this._writableState;
+ if (!wState)
+ return false;
+ return !wState.destroyed && !wState.ending && wState.needDrain;
+ }
+ },
+ writableHighWaterMark: {
+ __proto__: null,
+ get() {
+ return this._writableState && this._writableState.highWaterMark;
+ }
+ },
+ writableCorked: {
+ __proto__: null,
+ get() {
+ return this._writableState ? this._writableState.corked : 0;
+ }
+ },
+ writableLength: {
+ __proto__: null,
+ get() {
+ return this._writableState && this._writableState.length;
+ }
+ },
+ errored: {
+ __proto__: null,
+ enumerable: false,
+ get() {
+ return this._writableState ? this._writableState.errored : null;
+ }
+ },
+ writableAborted: {
+ __proto__: null,
+ enumerable: false,
+ get: function() {
+ return !!(this._writableState.writable !== false && (this._writableState.destroyed || this._writableState.errored) && !this._writableState.finished);
+ }
+ }
+ });
+ var destroy = destroyImpl.destroy;
+ Writable.prototype.destroy = function(err, cb) {
+ const state = this._writableState;
+ if (!state.destroyed && (state.bufferedIndex < state.buffered.length || state[kOnFinished].length)) {
+ process5.nextTick(errorBuffer, state);
+ }
+ destroy.call(this, err, cb);
+ return this;
+ };
+ Writable.prototype._undestroy = destroyImpl.undestroy;
+ Writable.prototype._destroy = function(err, cb) {
+ cb(err);
+ };
+ Writable.prototype[EE.captureRejectionSymbol] = function(err) {
+ this.destroy(err);
+ };
+ var webStreamsAdapters;
+ function lazyWebStreams() {
+ if (webStreamsAdapters === undefined)
+ webStreamsAdapters = {};
+ return webStreamsAdapters;
+ }
+ Writable.fromWeb = function(writableStream, options) {
+ return lazyWebStreams().newStreamWritableFromWritableStream(writableStream, options);
+ };
+ Writable.toWeb = function(streamWritable) {
+ return lazyWebStreams().newWritableStreamFromStreamWritable(streamWritable);
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/duplexify.js
+var require_duplexify = __commonJS((exports, module) => {
+ var process5 = require_process();
+ var bufferModule = __require("buffer");
+ var {
+ isReadable,
+ isWritable,
+ isIterable,
+ isNodeStream,
+ isReadableNodeStream,
+ isWritableNodeStream,
+ isDuplexNodeStream,
+ isReadableStream,
+ isWritableStream
+ } = require_utils();
+ var eos = require_end_of_stream();
+ var {
+ AbortError,
+ codes: { ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE }
+ } = require_errors();
+ var { destroyer } = require_destroy2();
+ var Duplex = require_duplex();
+ var Readable = require_readable2();
+ var Writable = require_writable();
+ var { createDeferredPromise } = require_util2();
+ var from2 = require_from2();
+ var Blob = globalThis.Blob || bufferModule.Blob;
+ var isBlob = typeof Blob !== "undefined" ? function isBlob(b) {
+ return b instanceof Blob;
+ } : function isBlob(b) {
+ return false;
+ };
+ var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
+ var { FunctionPrototypeCall } = require_primordials();
+
+ class Duplexify extends Duplex {
+ constructor(options) {
+ super(options);
+ if ((options === null || options === undefined ? undefined : options.readable) === false) {
+ this._readableState.readable = false;
+ this._readableState.ended = true;
+ this._readableState.endEmitted = true;
+ }
+ if ((options === null || options === undefined ? undefined : options.writable) === false) {
+ this._writableState.writable = false;
+ this._writableState.ending = true;
+ this._writableState.ended = true;
+ this._writableState.finished = true;
+ }
+ }
+ }
+ module.exports = function duplexify(body, name) {
+ if (isDuplexNodeStream(body)) {
+ return body;
+ }
+ if (isReadableNodeStream(body)) {
+ return _duplexify({
+ readable: body
+ });
+ }
+ if (isWritableNodeStream(body)) {
+ return _duplexify({
+ writable: body
+ });
+ }
+ if (isNodeStream(body)) {
+ return _duplexify({
+ writable: false,
+ readable: false
+ });
+ }
+ if (isReadableStream(body)) {
+ return _duplexify({
+ readable: Readable.fromWeb(body)
+ });
+ }
+ if (isWritableStream(body)) {
+ return _duplexify({
+ writable: Writable.fromWeb(body)
+ });
+ }
+ if (typeof body === "function") {
+ const { value, write, final, destroy } = fromAsyncGen(body);
+ if (isIterable(value)) {
+ return from2(Duplexify, value, {
+ objectMode: true,
+ write,
+ final,
+ destroy
+ });
+ }
+ const then2 = value === null || value === undefined ? undefined : value.then;
+ if (typeof then2 === "function") {
+ let d;
+ const promise = FunctionPrototypeCall(then2, value, (val) => {
+ if (val != null) {
+ throw new ERR_INVALID_RETURN_VALUE("nully", "body", val);
+ }
+ }, (err) => {
+ destroyer(d, err);
+ });
+ return d = new Duplexify({
+ objectMode: true,
+ readable: false,
+ write,
+ final(cb) {
+ final(async () => {
+ try {
+ await promise;
+ process5.nextTick(cb, null);
+ } catch (err) {
+ process5.nextTick(cb, err);
+ }
+ });
+ },
+ destroy
+ });
+ }
+ throw new ERR_INVALID_RETURN_VALUE("Iterable, AsyncIterable or AsyncFunction", name, value);
+ }
+ if (isBlob(body)) {
+ return duplexify(body.arrayBuffer());
+ }
+ if (isIterable(body)) {
+ return from2(Duplexify, body, {
+ objectMode: true,
+ writable: false
+ });
+ }
+ if (isReadableStream(body === null || body === undefined ? undefined : body.readable) && isWritableStream(body === null || body === undefined ? undefined : body.writable)) {
+ return Duplexify.fromWeb(body);
+ }
+ if (typeof (body === null || body === undefined ? undefined : body.writable) === "object" || typeof (body === null || body === undefined ? undefined : body.readable) === "object") {
+ const readable = body !== null && body !== undefined && body.readable ? isReadableNodeStream(body === null || body === undefined ? undefined : body.readable) ? body === null || body === undefined ? undefined : body.readable : duplexify(body.readable) : undefined;
+ const writable = body !== null && body !== undefined && body.writable ? isWritableNodeStream(body === null || body === undefined ? undefined : body.writable) ? body === null || body === undefined ? undefined : body.writable : duplexify(body.writable) : undefined;
+ return _duplexify({
+ readable,
+ writable
+ });
+ }
+ const then = body === null || body === undefined ? undefined : body.then;
+ if (typeof then === "function") {
+ let d;
+ FunctionPrototypeCall(then, body, (val) => {
+ if (val != null) {
+ d.push(val);
+ }
+ d.push(null);
+ }, (err) => {
+ destroyer(d, err);
+ });
+ return d = new Duplexify({
+ objectMode: true,
+ writable: false,
+ read() {
+ }
+ });
+ }
+ throw new ERR_INVALID_ARG_TYPE(name, [
+ "Blob",
+ "ReadableStream",
+ "WritableStream",
+ "Stream",
+ "Iterable",
+ "AsyncIterable",
+ "Function",
+ "{ readable, writable } pair",
+ "Promise"
+ ], body);
+ };
+ function fromAsyncGen(fn) {
+ let { promise, resolve } = createDeferredPromise();
+ const ac = new AbortController2;
+ const signal = ac.signal;
+ const value = fn(async function* () {
+ while (true) {
+ const _promise = promise;
+ promise = null;
+ const { chunk, done, cb } = await _promise;
+ process5.nextTick(cb);
+ if (done)
+ return;
+ if (signal.aborted)
+ throw new AbortError(undefined, {
+ cause: signal.reason
+ });
+ ({ promise, resolve } = createDeferredPromise());
+ yield chunk;
+ }
+ }(), {
+ signal
+ });
+ return {
+ value,
+ write(chunk, encoding, cb) {
+ const _resolve = resolve;
+ resolve = null;
+ _resolve({
+ chunk,
+ done: false,
+ cb
+ });
+ },
+ final(cb) {
+ const _resolve = resolve;
+ resolve = null;
+ _resolve({
+ done: true,
+ cb
+ });
+ },
+ destroy(err, cb) {
+ ac.abort();
+ cb(err);
+ }
+ };
+ }
+ function _duplexify(pair) {
+ const r = pair.readable && typeof pair.readable.read !== "function" ? Readable.wrap(pair.readable) : pair.readable;
+ const w = pair.writable;
+ let readable = !!isReadable(r);
+ let writable = !!isWritable(w);
+ let ondrain;
+ let onfinish;
+ let onreadable;
+ let onclose;
+ let d;
+ function onfinished(err) {
+ const cb = onclose;
+ onclose = null;
+ if (cb) {
+ cb(err);
+ } else if (err) {
+ d.destroy(err);
+ }
+ }
+ d = new Duplexify({
+ readableObjectMode: !!(r !== null && r !== undefined && r.readableObjectMode),
+ writableObjectMode: !!(w !== null && w !== undefined && w.writableObjectMode),
+ readable,
+ writable
+ });
+ if (writable) {
+ eos(w, (err) => {
+ writable = false;
+ if (err) {
+ destroyer(r, err);
+ }
+ onfinished(err);
+ });
+ d._write = function(chunk, encoding, callback) {
+ if (w.write(chunk, encoding)) {
+ callback();
+ } else {
+ ondrain = callback;
+ }
+ };
+ d._final = function(callback) {
+ w.end();
+ onfinish = callback;
+ };
+ w.on("drain", function() {
+ if (ondrain) {
+ const cb = ondrain;
+ ondrain = null;
+ cb();
+ }
+ });
+ w.on("finish", function() {
+ if (onfinish) {
+ const cb = onfinish;
+ onfinish = null;
+ cb();
+ }
+ });
+ }
+ if (readable) {
+ eos(r, (err) => {
+ readable = false;
+ if (err) {
+ destroyer(r, err);
+ }
+ onfinished(err);
+ });
+ r.on("readable", function() {
+ if (onreadable) {
+ const cb = onreadable;
+ onreadable = null;
+ cb();
+ }
+ });
+ r.on("end", function() {
+ d.push(null);
+ });
+ d._read = function() {
+ while (true) {
+ const buf = r.read();
+ if (buf === null) {
+ onreadable = d._read;
+ return;
+ }
+ if (!d.push(buf)) {
+ return;
+ }
+ }
+ };
+ }
+ d._destroy = function(err, callback) {
+ if (!err && onclose !== null) {
+ err = new AbortError;
+ }
+ onreadable = null;
+ ondrain = null;
+ onfinish = null;
+ if (onclose === null) {
+ callback(err);
+ } else {
+ onclose = callback;
+ destroyer(w, err);
+ destroyer(r, err);
+ }
+ };
+ return d;
+ }
+});
+
+// node_modules/readable-stream/lib/internal/streams/duplex.js
+var require_duplex = __commonJS((exports, module) => {
+ var {
+ ObjectDefineProperties,
+ ObjectGetOwnPropertyDescriptor,
+ ObjectKeys,
+ ObjectSetPrototypeOf
+ } = require_primordials();
+ module.exports = Duplex;
+ var Readable = require_readable2();
+ var Writable = require_writable();
+ ObjectSetPrototypeOf(Duplex.prototype, Readable.prototype);
+ ObjectSetPrototypeOf(Duplex, Readable);
+ {
+ const keys = ObjectKeys(Writable.prototype);
+ for (let i = 0;i < keys.length; i++) {
+ const method = keys[i];
+ if (!Duplex.prototype[method])
+ Duplex.prototype[method] = Writable.prototype[method];
+ }
+ }
+ function Duplex(options) {
+ if (!(this instanceof Duplex))
+ return new Duplex(options);
+ Readable.call(this, options);
+ Writable.call(this, options);
+ if (options) {
+ this.allowHalfOpen = options.allowHalfOpen !== false;
+ if (options.readable === false) {
+ this._readableState.readable = false;
+ this._readableState.ended = true;
+ this._readableState.endEmitted = true;
+ }
+ if (options.writable === false) {
+ this._writableState.writable = false;
+ this._writableState.ending = true;
+ this._writableState.ended = true;
+ this._writableState.finished = true;
+ }
+ } else {
+ this.allowHalfOpen = true;
+ }
+ }
+ ObjectDefineProperties(Duplex.prototype, {
+ writable: {
+ __proto__: null,
+ ...ObjectGetOwnPropertyDescriptor(Writable.prototype, "writable")
+ },
+ writableHighWaterMark: {
+ __proto__: null,
+ ...ObjectGetOwnPropertyDescriptor(Writable.prototype, "writableHighWaterMark")
+ },
+ writableObjectMode: {
+ __proto__: null,
+ ...ObjectGetOwnPropertyDescriptor(Writable.prototype, "writableObjectMode")
+ },
+ writableBuffer: {
+ __proto__: null,
+ ...ObjectGetOwnPropertyDescriptor(Writable.prototype, "writableBuffer")
+ },
+ writableLength: {
+ __proto__: null,
+ ...ObjectGetOwnPropertyDescriptor(Writable.prototype, "writableLength")
+ },
+ writableFinished: {
+ __proto__: null,
+ ...ObjectGetOwnPropertyDescriptor(Writable.prototype, "writableFinished")
+ },
+ writableCorked: {
+ __proto__: null,
+ ...ObjectGetOwnPropertyDescriptor(Writable.prototype, "writableCorked")
+ },
+ writableEnded: {
+ __proto__: null,
+ ...ObjectGetOwnPropertyDescriptor(Writable.prototype, "writableEnded")
+ },
+ writableNeedDrain: {
+ __proto__: null,
+ ...ObjectGetOwnPropertyDescriptor(Writable.prototype, "writableNeedDrain")
+ },
+ destroyed: {
+ __proto__: null,
+ get() {
+ if (this._readableState === undefined || this._writableState === undefined) {
+ return false;
+ }
+ return this._readableState.destroyed && this._writableState.destroyed;
+ },
+ set(value) {
+ if (this._readableState && this._writableState) {
+ this._readableState.destroyed = value;
+ this._writableState.destroyed = value;
+ }
+ }
+ }
+ });
+ var webStreamsAdapters;
+ function lazyWebStreams() {
+ if (webStreamsAdapters === undefined)
+ webStreamsAdapters = {};
+ return webStreamsAdapters;
+ }
+ Duplex.fromWeb = function(pair, options) {
+ return lazyWebStreams().newStreamDuplexFromReadableWritablePair(pair, options);
+ };
+ Duplex.toWeb = function(duplex) {
+ return lazyWebStreams().newReadableWritablePairFromDuplex(duplex);
+ };
+ var duplexify;
+ Duplex.from = function(body) {
+ if (!duplexify) {
+ duplexify = require_duplexify();
+ }
+ return duplexify(body, "body");
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/transform.js
+var require_transform = __commonJS((exports, module) => {
+ var { ObjectSetPrototypeOf, Symbol: Symbol2 } = require_primordials();
+ module.exports = Transform;
+ var { ERR_METHOD_NOT_IMPLEMENTED } = require_errors().codes;
+ var Duplex = require_duplex();
+ var { getHighWaterMark } = require_state();
+ ObjectSetPrototypeOf(Transform.prototype, Duplex.prototype);
+ ObjectSetPrototypeOf(Transform, Duplex);
+ var kCallback = Symbol2("kCallback");
+ function Transform(options) {
+ if (!(this instanceof Transform))
+ return new Transform(options);
+ const readableHighWaterMark = options ? getHighWaterMark(this, options, "readableHighWaterMark", true) : null;
+ if (readableHighWaterMark === 0) {
+ options = {
+ ...options,
+ highWaterMark: null,
+ readableHighWaterMark,
+ writableHighWaterMark: options.writableHighWaterMark || 0
+ };
+ }
+ Duplex.call(this, options);
+ this._readableState.sync = false;
+ this[kCallback] = null;
+ if (options) {
+ if (typeof options.transform === "function")
+ this._transform = options.transform;
+ if (typeof options.flush === "function")
+ this._flush = options.flush;
+ }
+ this.on("prefinish", prefinish);
+ }
+ function final(cb) {
+ if (typeof this._flush === "function" && !this.destroyed) {
+ this._flush((er, data) => {
+ if (er) {
+ if (cb) {
+ cb(er);
+ } else {
+ this.destroy(er);
+ }
+ return;
+ }
+ if (data != null) {
+ this.push(data);
+ }
+ this.push(null);
+ if (cb) {
+ cb();
+ }
+ });
+ } else {
+ this.push(null);
+ if (cb) {
+ cb();
+ }
+ }
+ }
+ function prefinish() {
+ if (this._final !== final) {
+ final.call(this);
+ }
+ }
+ Transform.prototype._final = final;
+ Transform.prototype._transform = function(chunk, encoding, callback) {
+ throw new ERR_METHOD_NOT_IMPLEMENTED("_transform()");
+ };
+ Transform.prototype._write = function(chunk, encoding, callback) {
+ const rState = this._readableState;
+ const wState = this._writableState;
+ const length = rState.length;
+ this._transform(chunk, encoding, (err, val) => {
+ if (err) {
+ callback(err);
+ return;
+ }
+ if (val != null) {
+ this.push(val);
+ }
+ if (wState.ended || length === rState.length || rState.length < rState.highWaterMark) {
+ callback();
+ } else {
+ this[kCallback] = callback;
+ }
+ });
+ };
+ Transform.prototype._read = function() {
+ if (this[kCallback]) {
+ const callback = this[kCallback];
+ this[kCallback] = null;
+ callback();
+ }
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/passthrough.js
+var require_passthrough2 = __commonJS((exports, module) => {
+ var { ObjectSetPrototypeOf } = require_primordials();
+ module.exports = PassThrough;
+ var Transform = require_transform();
+ ObjectSetPrototypeOf(PassThrough.prototype, Transform.prototype);
+ ObjectSetPrototypeOf(PassThrough, Transform);
+ function PassThrough(options) {
+ if (!(this instanceof PassThrough))
+ return new PassThrough(options);
+ Transform.call(this, options);
+ }
+ PassThrough.prototype._transform = function(chunk, encoding, cb) {
+ cb(null, chunk);
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/pipeline.js
+var require_pipeline = __commonJS((exports, module) => {
+ var process5 = require_process();
+ var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator, SymbolDispose } = require_primordials();
+ var eos = require_end_of_stream();
+ var { once } = require_util2();
+ var destroyImpl = require_destroy2();
+ var Duplex = require_duplex();
+ var {
+ aggregateTwoErrors,
+ codes: {
+ ERR_INVALID_ARG_TYPE,
+ ERR_INVALID_RETURN_VALUE,
+ ERR_MISSING_ARGS,
+ ERR_STREAM_DESTROYED,
+ ERR_STREAM_PREMATURE_CLOSE
+ },
+ AbortError
+ } = require_errors();
+ var { validateFunction, validateAbortSignal } = require_validators();
+ var {
+ isIterable,
+ isReadable,
+ isReadableNodeStream,
+ isNodeStream,
+ isTransformStream,
+ isWebStream,
+ isReadableStream,
+ isReadableFinished
+ } = require_utils();
+ var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
+ var PassThrough;
+ var Readable;
+ var addAbortListener;
+ function destroyer(stream, reading, writing) {
+ let finished = false;
+ stream.on("close", () => {
+ finished = true;
+ });
+ const cleanup = eos(stream, {
+ readable: reading,
+ writable: writing
+ }, (err) => {
+ finished = !err;
+ });
+ return {
+ destroy: (err) => {
+ if (finished)
+ return;
+ finished = true;
+ destroyImpl.destroyer(stream, err || new ERR_STREAM_DESTROYED("pipe"));
+ },
+ cleanup
+ };
+ }
+ function popCallback(streams) {
+ validateFunction(streams[streams.length - 1], "streams[stream.length - 1]");
+ return streams.pop();
+ }
+ function makeAsyncIterable(val) {
+ if (isIterable(val)) {
+ return val;
+ } else if (isReadableNodeStream(val)) {
+ return fromReadable(val);
+ }
+ throw new ERR_INVALID_ARG_TYPE("val", ["Readable", "Iterable", "AsyncIterable"], val);
+ }
+ async function* fromReadable(val) {
+ if (!Readable) {
+ Readable = require_readable2();
+ }
+ yield* Readable.prototype[SymbolAsyncIterator].call(val);
+ }
+ async function pumpToNode(iterable, writable, finish, { end }) {
+ let error;
+ let onresolve = null;
+ const resume = (err) => {
+ if (err) {
+ error = err;
+ }
+ if (onresolve) {
+ const callback = onresolve;
+ onresolve = null;
+ callback();
+ }
+ };
+ const wait = () => new Promise2((resolve, reject) => {
+ if (error) {
+ reject(error);
+ } else {
+ onresolve = () => {
+ if (error) {
+ reject(error);
+ } else {
+ resolve();
+ }
+ };
+ }
+ });
+ writable.on("drain", resume);
+ const cleanup = eos(writable, {
+ readable: false
+ }, resume);
+ try {
+ if (writable.writableNeedDrain) {
+ await wait();
+ }
+ for await (const chunk of iterable) {
+ if (!writable.write(chunk)) {
+ await wait();
+ }
+ }
+ if (end) {
+ writable.end();
+ await wait();
+ }
+ finish();
+ } catch (err) {
+ finish(error !== err ? aggregateTwoErrors(error, err) : err);
+ } finally {
+ cleanup();
+ writable.off("drain", resume);
+ }
+ }
+ async function pumpToWeb(readable, writable, finish, { end }) {
+ if (isTransformStream(writable)) {
+ writable = writable.writable;
+ }
+ const writer = writable.getWriter();
+ try {
+ for await (const chunk of readable) {
+ await writer.ready;
+ writer.write(chunk).catch(() => {
+ });
+ }
+ await writer.ready;
+ if (end) {
+ await writer.close();
+ }
+ finish();
+ } catch (err) {
+ try {
+ await writer.abort(err);
+ finish(err);
+ } catch (err2) {
+ finish(err2);
+ }
+ }
+ }
+ function pipeline(...streams) {
+ return pipelineImpl(streams, once(popCallback(streams)));
+ }
+ function pipelineImpl(streams, callback, opts) {
+ if (streams.length === 1 && ArrayIsArray(streams[0])) {
+ streams = streams[0];
+ }
+ if (streams.length < 2) {
+ throw new ERR_MISSING_ARGS("streams");
+ }
+ const ac = new AbortController2;
+ const signal = ac.signal;
+ const outerSignal = opts === null || opts === undefined ? undefined : opts.signal;
+ const lastStreamCleanup = [];
+ validateAbortSignal(outerSignal, "options.signal");
+ function abort() {
+ finishImpl(new AbortError);
+ }
+ addAbortListener = addAbortListener || require_util2().addAbortListener;
+ let disposable;
+ if (outerSignal) {
+ disposable = addAbortListener(outerSignal, abort);
+ }
+ let error;
+ let value;
+ const destroys = [];
+ let finishCount = 0;
+ function finish(err) {
+ finishImpl(err, --finishCount === 0);
+ }
+ function finishImpl(err, final) {
+ var _disposable;
+ if (err && (!error || error.code === "ERR_STREAM_PREMATURE_CLOSE")) {
+ error = err;
+ }
+ if (!error && !final) {
+ return;
+ }
+ while (destroys.length) {
+ destroys.shift()(error);
+ }
+ (_disposable = disposable) === null || _disposable === undefined || _disposable[SymbolDispose]();
+ ac.abort();
+ if (final) {
+ if (!error) {
+ lastStreamCleanup.forEach((fn) => fn());
+ }
+ process5.nextTick(callback, error, value);
+ }
+ }
+ let ret;
+ for (let i = 0;i < streams.length; i++) {
+ const stream = streams[i];
+ const reading = i < streams.length - 1;
+ const writing = i > 0;
+ const end = reading || (opts === null || opts === undefined ? undefined : opts.end) !== false;
+ const isLastStream = i === streams.length - 1;
+ if (isNodeStream(stream)) {
+ let onError2 = function(err) {
+ if (err && err.name !== "AbortError" && err.code !== "ERR_STREAM_PREMATURE_CLOSE") {
+ finish(err);
+ }
+ };
+ var onError = onError2;
+ if (end) {
+ const { destroy, cleanup } = destroyer(stream, reading, writing);
+ destroys.push(destroy);
+ if (isReadable(stream) && isLastStream) {
+ lastStreamCleanup.push(cleanup);
+ }
+ }
+ stream.on("error", onError2);
+ if (isReadable(stream) && isLastStream) {
+ lastStreamCleanup.push(() => {
+ stream.removeListener("error", onError2);
+ });
+ }
+ }
+ if (i === 0) {
+ if (typeof stream === "function") {
+ ret = stream({
+ signal
+ });
+ if (!isIterable(ret)) {
+ throw new ERR_INVALID_RETURN_VALUE("Iterable, AsyncIterable or Stream", "source", ret);
+ }
+ } else if (isIterable(stream) || isReadableNodeStream(stream) || isTransformStream(stream)) {
+ ret = stream;
+ } else {
+ ret = Duplex.from(stream);
+ }
+ } else if (typeof stream === "function") {
+ if (isTransformStream(ret)) {
+ var _ret;
+ ret = makeAsyncIterable((_ret = ret) === null || _ret === undefined ? undefined : _ret.readable);
+ } else {
+ ret = makeAsyncIterable(ret);
+ }
+ ret = stream(ret, {
+ signal
+ });
+ if (reading) {
+ if (!isIterable(ret, true)) {
+ throw new ERR_INVALID_RETURN_VALUE("AsyncIterable", `transform[${i - 1}]`, ret);
+ }
+ } else {
+ var _ret2;
+ if (!PassThrough) {
+ PassThrough = require_passthrough2();
+ }
+ const pt = new PassThrough({
+ objectMode: true
+ });
+ const then = (_ret2 = ret) === null || _ret2 === undefined ? undefined : _ret2.then;
+ if (typeof then === "function") {
+ finishCount++;
+ then.call(ret, (val) => {
+ value = val;
+ if (val != null) {
+ pt.write(val);
+ }
+ if (end) {
+ pt.end();
+ }
+ process5.nextTick(finish);
+ }, (err) => {
+ pt.destroy(err);
+ process5.nextTick(finish, err);
+ });
+ } else if (isIterable(ret, true)) {
+ finishCount++;
+ pumpToNode(ret, pt, finish, {
+ end
+ });
+ } else if (isReadableStream(ret) || isTransformStream(ret)) {
+ const toRead = ret.readable || ret;
+ finishCount++;
+ pumpToNode(toRead, pt, finish, {
+ end
+ });
+ } else {
+ throw new ERR_INVALID_RETURN_VALUE("AsyncIterable or Promise", "destination", ret);
+ }
+ ret = pt;
+ const { destroy, cleanup } = destroyer(ret, false, true);
+ destroys.push(destroy);
+ if (isLastStream) {
+ lastStreamCleanup.push(cleanup);
+ }
+ }
+ } else if (isNodeStream(stream)) {
+ if (isReadableNodeStream(ret)) {
+ finishCount += 2;
+ const cleanup = pipe(ret, stream, finish, {
+ end
+ });
+ if (isReadable(stream) && isLastStream) {
+ lastStreamCleanup.push(cleanup);
+ }
+ } else if (isTransformStream(ret) || isReadableStream(ret)) {
+ const toRead = ret.readable || ret;
+ finishCount++;
+ pumpToNode(toRead, stream, finish, {
+ end
+ });
+ } else if (isIterable(ret)) {
+ finishCount++;
+ pumpToNode(ret, stream, finish, {
+ end
+ });
+ } else {
+ throw new ERR_INVALID_ARG_TYPE("val", ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"], ret);
+ }
+ ret = stream;
+ } else if (isWebStream(stream)) {
+ if (isReadableNodeStream(ret)) {
+ finishCount++;
+ pumpToWeb(makeAsyncIterable(ret), stream, finish, {
+ end
+ });
+ } else if (isReadableStream(ret) || isIterable(ret)) {
+ finishCount++;
+ pumpToWeb(ret, stream, finish, {
+ end
+ });
+ } else if (isTransformStream(ret)) {
+ finishCount++;
+ pumpToWeb(ret.readable, stream, finish, {
+ end
+ });
+ } else {
+ throw new ERR_INVALID_ARG_TYPE("val", ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"], ret);
+ }
+ ret = stream;
+ } else {
+ ret = Duplex.from(stream);
+ }
+ }
+ if (signal !== null && signal !== undefined && signal.aborted || outerSignal !== null && outerSignal !== undefined && outerSignal.aborted) {
+ process5.nextTick(abort);
+ }
+ return ret;
+ }
+ function pipe(src, dst, finish, { end }) {
+ let ended = false;
+ dst.on("close", () => {
+ if (!ended) {
+ finish(new ERR_STREAM_PREMATURE_CLOSE);
+ }
+ });
+ src.pipe(dst, {
+ end: false
+ });
+ if (end) {
+ let endFn2 = function() {
+ ended = true;
+ dst.end();
+ };
+ var endFn = endFn2;
+ if (isReadableFinished(src)) {
+ process5.nextTick(endFn2);
+ } else {
+ src.once("end", endFn2);
+ }
+ } else {
+ finish();
+ }
+ eos(src, {
+ readable: true,
+ writable: false
+ }, (err) => {
+ const rState = src._readableState;
+ if (err && err.code === "ERR_STREAM_PREMATURE_CLOSE" && rState && rState.ended && !rState.errored && !rState.errorEmitted) {
+ src.once("end", finish).once("error", finish);
+ } else {
+ finish(err);
+ }
+ });
+ return eos(dst, {
+ readable: false,
+ writable: true
+ }, finish);
+ }
+ module.exports = {
+ pipelineImpl,
+ pipeline
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/compose.js
+var require_compose = __commonJS((exports, module) => {
+ var { pipeline } = require_pipeline();
+ var Duplex = require_duplex();
+ var { destroyer } = require_destroy2();
+ var {
+ isNodeStream,
+ isReadable,
+ isWritable,
+ isWebStream,
+ isTransformStream,
+ isWritableStream,
+ isReadableStream
+ } = require_utils();
+ var {
+ AbortError,
+ codes: { ERR_INVALID_ARG_VALUE, ERR_MISSING_ARGS }
+ } = require_errors();
+ var eos = require_end_of_stream();
+ module.exports = function compose(...streams) {
+ if (streams.length === 0) {
+ throw new ERR_MISSING_ARGS("streams");
+ }
+ if (streams.length === 1) {
+ return Duplex.from(streams[0]);
+ }
+ const orgStreams = [...streams];
+ if (typeof streams[0] === "function") {
+ streams[0] = Duplex.from(streams[0]);
+ }
+ if (typeof streams[streams.length - 1] === "function") {
+ const idx = streams.length - 1;
+ streams[idx] = Duplex.from(streams[idx]);
+ }
+ for (let n = 0;n < streams.length; ++n) {
+ if (!isNodeStream(streams[n]) && !isWebStream(streams[n])) {
+ continue;
+ }
+ if (n < streams.length - 1 && !(isReadable(streams[n]) || isReadableStream(streams[n]) || isTransformStream(streams[n]))) {
+ throw new ERR_INVALID_ARG_VALUE(`streams[${n}]`, orgStreams[n], "must be readable");
+ }
+ if (n > 0 && !(isWritable(streams[n]) || isWritableStream(streams[n]) || isTransformStream(streams[n]))) {
+ throw new ERR_INVALID_ARG_VALUE(`streams[${n}]`, orgStreams[n], "must be writable");
+ }
+ }
+ let ondrain;
+ let onfinish;
+ let onreadable;
+ let onclose;
+ let d;
+ function onfinished(err) {
+ const cb = onclose;
+ onclose = null;
+ if (cb) {
+ cb(err);
+ } else if (err) {
+ d.destroy(err);
+ } else if (!readable && !writable) {
+ d.destroy();
+ }
+ }
+ const head = streams[0];
+ const tail = pipeline(streams, onfinished);
+ const writable = !!(isWritable(head) || isWritableStream(head) || isTransformStream(head));
+ const readable = !!(isReadable(tail) || isReadableStream(tail) || isTransformStream(tail));
+ d = new Duplex({
+ writableObjectMode: !!(head !== null && head !== undefined && head.writableObjectMode),
+ readableObjectMode: !!(tail !== null && tail !== undefined && tail.readableObjectMode),
+ writable,
+ readable
+ });
+ if (writable) {
+ if (isNodeStream(head)) {
+ d._write = function(chunk, encoding, callback) {
+ if (head.write(chunk, encoding)) {
+ callback();
+ } else {
+ ondrain = callback;
+ }
+ };
+ d._final = function(callback) {
+ head.end();
+ onfinish = callback;
+ };
+ head.on("drain", function() {
+ if (ondrain) {
+ const cb = ondrain;
+ ondrain = null;
+ cb();
+ }
+ });
+ } else if (isWebStream(head)) {
+ const writable2 = isTransformStream(head) ? head.writable : head;
+ const writer = writable2.getWriter();
+ d._write = async function(chunk, encoding, callback) {
+ try {
+ await writer.ready;
+ writer.write(chunk).catch(() => {
+ });
+ callback();
+ } catch (err) {
+ callback(err);
+ }
+ };
+ d._final = async function(callback) {
+ try {
+ await writer.ready;
+ writer.close().catch(() => {
+ });
+ onfinish = callback;
+ } catch (err) {
+ callback(err);
+ }
+ };
+ }
+ const toRead = isTransformStream(tail) ? tail.readable : tail;
+ eos(toRead, () => {
+ if (onfinish) {
+ const cb = onfinish;
+ onfinish = null;
+ cb();
+ }
+ });
+ }
+ if (readable) {
+ if (isNodeStream(tail)) {
+ tail.on("readable", function() {
+ if (onreadable) {
+ const cb = onreadable;
+ onreadable = null;
+ cb();
+ }
+ });
+ tail.on("end", function() {
+ d.push(null);
+ });
+ d._read = function() {
+ while (true) {
+ const buf = tail.read();
+ if (buf === null) {
+ onreadable = d._read;
+ return;
+ }
+ if (!d.push(buf)) {
+ return;
+ }
+ }
+ };
+ } else if (isWebStream(tail)) {
+ const readable2 = isTransformStream(tail) ? tail.readable : tail;
+ const reader = readable2.getReader();
+ d._read = async function() {
+ while (true) {
+ try {
+ const { value, done } = await reader.read();
+ if (!d.push(value)) {
+ return;
+ }
+ if (done) {
+ d.push(null);
+ return;
+ }
+ } catch {
+ return;
+ }
+ }
+ };
+ }
+ }
+ d._destroy = function(err, callback) {
+ if (!err && onclose !== null) {
+ err = new AbortError;
+ }
+ onreadable = null;
+ ondrain = null;
+ onfinish = null;
+ if (onclose === null) {
+ callback(err);
+ } else {
+ onclose = callback;
+ if (isNodeStream(tail)) {
+ destroyer(tail, err);
+ }
+ }
+ };
+ return d;
+ };
+});
+
+// node_modules/readable-stream/lib/internal/streams/operators.js
+var require_operators = __commonJS((exports, module) => {
+ var AbortController2 = globalThis.AbortController || require_abort_controller().AbortController;
+ var {
+ codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE },
+ AbortError
+ } = require_errors();
+ var { validateAbortSignal, validateInteger, validateObject } = require_validators();
+ var kWeakHandler = require_primordials().Symbol("kWeak");
+ var kResistStopPropagation = require_primordials().Symbol("kResistStopPropagation");
+ var { finished } = require_end_of_stream();
+ var staticCompose = require_compose();
+ var { addAbortSignalNoValidate } = require_add_abort_signal();
+ var { isWritable, isNodeStream } = require_utils();
+ var { deprecate } = require_util2();
+ var {
+ ArrayPrototypePush,
+ Boolean: Boolean2,
+ MathFloor,
+ Number: Number2,
+ NumberIsNaN,
+ Promise: Promise2,
+ PromiseReject,
+ PromiseResolve,
+ PromisePrototypeThen,
+ Symbol: Symbol2
+ } = require_primordials();
+ var kEmpty = Symbol2("kEmpty");
+ var kEof = Symbol2("kEof");
+ function compose(stream, options) {
+ if (options != null) {
+ validateObject(options, "options");
+ }
+ if ((options === null || options === undefined ? undefined : options.signal) != null) {
+ validateAbortSignal(options.signal, "options.signal");
+ }
+ if (isNodeStream(stream) && !isWritable(stream)) {
+ throw new ERR_INVALID_ARG_VALUE("stream", stream, "must be writable");
+ }
+ const composedStream = staticCompose(this, stream);
+ if (options !== null && options !== undefined && options.signal) {
+ addAbortSignalNoValidate(options.signal, composedStream);
+ }
+ return composedStream;
+ }
+ function map(fn, options) {
+ if (typeof fn !== "function") {
+ throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
+ }
+ if (options != null) {
+ validateObject(options, "options");
+ }
+ if ((options === null || options === undefined ? undefined : options.signal) != null) {
+ validateAbortSignal(options.signal, "options.signal");
+ }
+ let concurrency = 1;
+ if ((options === null || options === undefined ? undefined : options.concurrency) != null) {
+ concurrency = MathFloor(options.concurrency);
+ }
+ let highWaterMark = concurrency - 1;
+ if ((options === null || options === undefined ? undefined : options.highWaterMark) != null) {
+ highWaterMark = MathFloor(options.highWaterMark);
+ }
+ validateInteger(concurrency, "options.concurrency", 1);
+ validateInteger(highWaterMark, "options.highWaterMark", 0);
+ highWaterMark += concurrency;
+ return async function* map() {
+ const signal = require_util2().AbortSignalAny([options === null || options === undefined ? undefined : options.signal].filter(Boolean2));
+ const stream = this;
+ const queue = [];
+ const signalOpt = {
+ signal
+ };
+ let next;
+ let resume;
+ let done = false;
+ let cnt = 0;
+ function onCatch() {
+ done = true;
+ afterItemProcessed();
+ }
+ function afterItemProcessed() {
+ cnt -= 1;
+ maybeResume();
+ }
+ function maybeResume() {
+ if (resume && !done && cnt < concurrency && queue.length < highWaterMark) {
+ resume();
+ resume = null;
+ }
+ }
+ async function pump() {
+ try {
+ for await (let val of stream) {
+ if (done) {
+ return;
+ }
+ if (signal.aborted) {
+ throw new AbortError;
+ }
+ try {
+ val = fn(val, signalOpt);
+ if (val === kEmpty) {
+ continue;
+ }
+ val = PromiseResolve(val);
+ } catch (err) {
+ val = PromiseReject(err);
+ }
+ cnt += 1;
+ PromisePrototypeThen(val, afterItemProcessed, onCatch);
+ queue.push(val);
+ if (next) {
+ next();
+ next = null;
+ }
+ if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
+ await new Promise2((resolve) => {
+ resume = resolve;
+ });
+ }
+ }
+ queue.push(kEof);
+ } catch (err) {
+ const val = PromiseReject(err);
+ PromisePrototypeThen(val, afterItemProcessed, onCatch);
+ queue.push(val);
+ } finally {
+ done = true;
+ if (next) {
+ next();
+ next = null;
+ }
+ }
+ }
+ pump();
+ try {
+ while (true) {
+ while (queue.length > 0) {
+ const val = await queue[0];
+ if (val === kEof) {
+ return;
+ }
+ if (signal.aborted) {
+ throw new AbortError;
+ }
+ if (val !== kEmpty) {
+ yield val;
+ }
+ queue.shift();
+ maybeResume();
+ }
+ await new Promise2((resolve) => {
+ next = resolve;
+ });
+ }
+ } finally {
+ done = true;
+ if (resume) {
+ resume();
+ resume = null;
+ }
+ }
+ }.call(this);
+ }
+ function asIndexedPairs(options = undefined) {
+ if (options != null) {
+ validateObject(options, "options");
+ }
+ if ((options === null || options === undefined ? undefined : options.signal) != null) {
+ validateAbortSignal(options.signal, "options.signal");
+ }
+ return async function* asIndexedPairs() {
+ let index = 0;
+ for await (const val of this) {
+ var _options$signal;
+ if (options !== null && options !== undefined && (_options$signal = options.signal) !== null && _options$signal !== undefined && _options$signal.aborted) {
+ throw new AbortError({
+ cause: options.signal.reason
+ });
+ }
+ yield [index++, val];
+ }
+ }.call(this);
+ }
+ async function some(fn, options = undefined) {
+ for await (const unused of filter2.call(this, fn, options)) {
+ return true;
+ }
+ return false;
+ }
+ async function every(fn, options = undefined) {
+ if (typeof fn !== "function") {
+ throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
+ }
+ return !await some.call(this, async (...args) => {
+ return !await fn(...args);
+ }, options);
+ }
+ async function find(fn, options) {
+ for await (const result of filter2.call(this, fn, options)) {
+ return result;
+ }
+ return;
+ }
+ async function forEach(fn, options) {
+ if (typeof fn !== "function") {
+ throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
+ }
+ async function forEachFn(value, options2) {
+ await fn(value, options2);
+ return kEmpty;
+ }
+ for await (const unused of map.call(this, forEachFn, options))
+ ;
+ }
+ function filter2(fn, options) {
+ if (typeof fn !== "function") {
+ throw new ERR_INVALID_ARG_TYPE("fn", ["Function", "AsyncFunction"], fn);
+ }
+ async function filterFn(value, options2) {
+ if (await fn(value, options2)) {
+ return value;
+ }
+ return kEmpty;
+ }
+ return map.call(this, filterFn, options);
+ }
+
+ class ReduceAwareErrMissingArgs extends ERR_MISSING_ARGS {
+ constructor() {
+ super("reduce");
+ this.message = "Reduce of an empty stream requires an initial value";
+ }
+ }
+ async function reduce2(reducer, initialValue, options) {
+ var _options$signal2;
+ if (typeof reducer !== "function") {
+ throw new ERR_INVALID_ARG_TYPE("reducer", ["Function", "AsyncFunction"], reducer);
+ }
+ if (options != null) {
+ validateObject(options, "options");
+ }
+ if ((options === null || options === undefined ? undefined : options.signal) != null) {
+ validateAbortSignal(options.signal, "options.signal");
+ }
+ let hasInitialValue = arguments.length > 1;
+ if (options !== null && options !== undefined && (_options$signal2 = options.signal) !== null && _options$signal2 !== undefined && _options$signal2.aborted) {
+ const err = new AbortError(undefined, {
+ cause: options.signal.reason
+ });
+ this.once("error", () => {
+ });
+ await finished(this.destroy(err));
+ throw err;
+ }
+ const ac = new AbortController2;
+ const signal = ac.signal;
+ if (options !== null && options !== undefined && options.signal) {
+ const opts = {
+ once: true,
+ [kWeakHandler]: this,
+ [kResistStopPropagation]: true
+ };
+ options.signal.addEventListener("abort", () => ac.abort(), opts);
+ }
+ let gotAnyItemFromStream = false;
+ try {
+ for await (const value of this) {
+ var _options$signal3;
+ gotAnyItemFromStream = true;
+ if (options !== null && options !== undefined && (_options$signal3 = options.signal) !== null && _options$signal3 !== undefined && _options$signal3.aborted) {
+ throw new AbortError;
+ }
+ if (!hasInitialValue) {
+ initialValue = value;
+ hasInitialValue = true;
+ } else {
+ initialValue = await reducer(initialValue, value, {
+ signal
+ });
+ }
+ }
+ if (!gotAnyItemFromStream && !hasInitialValue) {
+ throw new ReduceAwareErrMissingArgs;
+ }
+ } finally {
+ ac.abort();
+ }
+ return initialValue;
+ }
+ async function toArray(options) {
+ if (options != null) {
+ validateObject(options, "options");
+ }
+ if ((options === null || options === undefined ? undefined : options.signal) != null) {
+ validateAbortSignal(options.signal, "options.signal");
+ }
+ const result = [];
+ for await (const val of this) {
+ var _options$signal4;
+ if (options !== null && options !== undefined && (_options$signal4 = options.signal) !== null && _options$signal4 !== undefined && _options$signal4.aborted) {
+ throw new AbortError(undefined, {
+ cause: options.signal.reason
+ });
+ }
+ ArrayPrototypePush(result, val);
+ }
+ return result;
+ }
+ function flatMap(fn, options) {
+ const values = map.call(this, fn, options);
+ return async function* flatMap() {
+ for await (const val of values) {
+ yield* val;
+ }
+ }.call(this);
+ }
+ function toIntegerOrInfinity(number2) {
+ number2 = Number2(number2);
+ if (NumberIsNaN(number2)) {
+ return 0;
+ }
+ if (number2 < 0) {
+ throw new ERR_OUT_OF_RANGE("number", ">= 0", number2);
+ }
+ return number2;
+ }
+ function drop(number2, options = undefined) {
+ if (options != null) {
+ validateObject(options, "options");
+ }
+ if ((options === null || options === undefined ? undefined : options.signal) != null) {
+ validateAbortSignal(options.signal, "options.signal");
+ }
+ number2 = toIntegerOrInfinity(number2);
+ return async function* drop() {
+ var _options$signal5;
+ if (options !== null && options !== undefined && (_options$signal5 = options.signal) !== null && _options$signal5 !== undefined && _options$signal5.aborted) {
+ throw new AbortError;
+ }
+ for await (const val of this) {
+ var _options$signal6;
+ if (options !== null && options !== undefined && (_options$signal6 = options.signal) !== null && _options$signal6 !== undefined && _options$signal6.aborted) {
+ throw new AbortError;
+ }
+ if (number2-- <= 0) {
+ yield val;
+ }
+ }
+ }.call(this);
+ }
+ function take(number2, options = undefined) {
+ if (options != null) {
+ validateObject(options, "options");
+ }
+ if ((options === null || options === undefined ? undefined : options.signal) != null) {
+ validateAbortSignal(options.signal, "options.signal");
+ }
+ number2 = toIntegerOrInfinity(number2);
+ return async function* take() {
+ var _options$signal7;
+ if (options !== null && options !== undefined && (_options$signal7 = options.signal) !== null && _options$signal7 !== undefined && _options$signal7.aborted) {
+ throw new AbortError;
+ }
+ for await (const val of this) {
+ var _options$signal8;
+ if (options !== null && options !== undefined && (_options$signal8 = options.signal) !== null && _options$signal8 !== undefined && _options$signal8.aborted) {
+ throw new AbortError;
+ }
+ if (number2-- > 0) {
+ yield val;
+ }
+ if (number2 <= 0) {
+ return;
+ }
+ }
+ }.call(this);
+ }
+ exports.streamReturningOperators = {
+ asIndexedPairs: deprecate(asIndexedPairs, "readable.asIndexedPairs will be removed in a future version."),
+ drop,
+ filter: filter2,
+ flatMap,
+ map,
+ take,
+ compose
+ };
+ exports.promiseReturningOperators = {
+ every,
+ forEach,
+ reduce: reduce2,
+ toArray,
+ some,
+ find
+ };
+});
+
+// node_modules/readable-stream/lib/stream/promises.js
+var require_promises = __commonJS((exports, module) => {
+ var { ArrayPrototypePop, Promise: Promise2 } = require_primordials();
+ var { isIterable, isNodeStream, isWebStream } = require_utils();
+ var { pipelineImpl: pl } = require_pipeline();
+ var { finished } = require_end_of_stream();
+ require_stream();
+ function pipeline(...streams) {
+ return new Promise2((resolve, reject) => {
+ let signal;
+ let end;
+ const lastArg = streams[streams.length - 1];
+ if (lastArg && typeof lastArg === "object" && !isNodeStream(lastArg) && !isIterable(lastArg) && !isWebStream(lastArg)) {
+ const options = ArrayPrototypePop(streams);
+ signal = options.signal;
+ end = options.end;
+ }
+ pl(streams, (err, value) => {
+ if (err) {
+ reject(err);
+ } else {
+ resolve(value);
+ }
+ }, {
+ signal,
+ end
+ });
+ });
+ }
+ module.exports = {
+ finished,
+ pipeline
+ };
+});
+
+// node_modules/readable-stream/lib/stream.js
+var require_stream = __commonJS((exports, module) => {
+ var { Buffer: Buffer2 } = __require("buffer");
+ var { ObjectDefineProperty: ObjectDefineProperty2, ObjectKeys, ReflectApply } = require_primordials();
+ var {
+ promisify: { custom: customPromisify }
+ } = require_util2();
+ var { streamReturningOperators, promiseReturningOperators } = require_operators();
+ var {
+ codes: { ERR_ILLEGAL_CONSTRUCTOR }
+ } = require_errors();
+ var compose = require_compose();
+ var { setDefaultHighWaterMark, getDefaultHighWaterMark } = require_state();
+ var { pipeline } = require_pipeline();
+ var { destroyer } = require_destroy2();
+ var eos = require_end_of_stream();
+ var promises = require_promises();
+ var utils = require_utils();
+ var Stream = module.exports = require_legacy().Stream;
+ Stream.isDestroyed = utils.isDestroyed;
+ Stream.isDisturbed = utils.isDisturbed;
+ Stream.isErrored = utils.isErrored;
+ Stream.isReadable = utils.isReadable;
+ Stream.isWritable = utils.isWritable;
+ Stream.Readable = require_readable2();
+ for (const key2 of ObjectKeys(streamReturningOperators)) {
+ let fn = function(...args) {
+ if (new.target) {
+ throw ERR_ILLEGAL_CONSTRUCTOR();
+ }
+ return Stream.Readable.from(ReflectApply(op, this, args));
+ };
+ const op = streamReturningOperators[key2];
+ ObjectDefineProperty2(fn, "name", {
+ __proto__: null,
+ value: op.name
+ });
+ ObjectDefineProperty2(fn, "length", {
+ __proto__: null,
+ value: op.length
+ });
+ ObjectDefineProperty2(Stream.Readable.prototype, key2, {
+ __proto__: null,
+ value: fn,
+ enumerable: false,
+ configurable: true,
+ writable: true
+ });
+ }
+ for (const key2 of ObjectKeys(promiseReturningOperators)) {
+ let fn = function(...args) {
+ if (new.target) {
+ throw ERR_ILLEGAL_CONSTRUCTOR();
+ }
+ return ReflectApply(op, this, args);
+ };
+ const op = promiseReturningOperators[key2];
+ ObjectDefineProperty2(fn, "name", {
+ __proto__: null,
+ value: op.name
+ });
+ ObjectDefineProperty2(fn, "length", {
+ __proto__: null,
+ value: op.length
+ });
+ ObjectDefineProperty2(Stream.Readable.prototype, key2, {
+ __proto__: null,
+ value: fn,
+ enumerable: false,
+ configurable: true,
+ writable: true
+ });
+ }
+ Stream.Writable = require_writable();
+ Stream.Duplex = require_duplex();
+ Stream.Transform = require_transform();
+ Stream.PassThrough = require_passthrough2();
+ Stream.pipeline = pipeline;
+ var { addAbortSignal } = require_add_abort_signal();
+ Stream.addAbortSignal = addAbortSignal;
+ Stream.finished = eos;
+ Stream.destroy = destroyer;
+ Stream.compose = compose;
+ Stream.setDefaultHighWaterMark = setDefaultHighWaterMark;
+ Stream.getDefaultHighWaterMark = getDefaultHighWaterMark;
+ ObjectDefineProperty2(Stream, "promises", {
+ __proto__: null,
+ configurable: true,
+ enumerable: true,
+ get() {
+ return promises;
+ }
+ });
+ ObjectDefineProperty2(pipeline, customPromisify, {
+ __proto__: null,
+ enumerable: true,
+ get() {
+ return promises.pipeline;
+ }
+ });
+ ObjectDefineProperty2(eos, customPromisify, {
+ __proto__: null,
+ enumerable: true,
+ get() {
+ return promises.finished;
+ }
+ });
+ Stream.Stream = Stream;
+ Stream._isUint8Array = function isUint8Array(value) {
+ return value instanceof Uint8Array;
+ };
+ Stream._uint8ArrayToBuffer = function _uint8ArrayToBuffer(chunk) {
+ return Buffer2.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
+ };
+});
+
+// node_modules/readable-stream/lib/ours/index.js
+var require_ours = __commonJS((exports, module) => {
+ var Stream = __require("stream");
+ if (Stream && process.env.READABLE_STREAM === "disable") {
+ const promises = Stream.promises;
+ module.exports._uint8ArrayToBuffer = Stream._uint8ArrayToBuffer;
+ module.exports._isUint8Array = Stream._isUint8Array;
+ module.exports.isDisturbed = Stream.isDisturbed;
+ module.exports.isErrored = Stream.isErrored;
+ module.exports.isReadable = Stream.isReadable;
+ module.exports.Readable = Stream.Readable;
+ module.exports.Writable = Stream.Writable;
+ module.exports.Duplex = Stream.Duplex;
+ module.exports.Transform = Stream.Transform;
+ module.exports.PassThrough = Stream.PassThrough;
+ module.exports.addAbortSignal = Stream.addAbortSignal;
+ module.exports.finished = Stream.finished;
+ module.exports.destroy = Stream.destroy;
+ module.exports.pipeline = Stream.pipeline;
+ module.exports.compose = Stream.compose;
+ Object.defineProperty(Stream, "promises", {
+ configurable: true,
+ enumerable: true,
+ get() {
+ return promises;
+ }
+ });
+ module.exports.Stream = Stream.Stream;
+ } else {
+ const CustomStream = require_stream();
+ const promises = require_promises();
+ const originalDestroy = CustomStream.Readable.destroy;
+ module.exports = CustomStream.Readable;
+ module.exports._uint8ArrayToBuffer = CustomStream._uint8ArrayToBuffer;
+ module.exports._isUint8Array = CustomStream._isUint8Array;
+ module.exports.isDisturbed = CustomStream.isDisturbed;
+ module.exports.isErrored = CustomStream.isErrored;
+ module.exports.isReadable = CustomStream.isReadable;
+ module.exports.Readable = CustomStream.Readable;
+ module.exports.Writable = CustomStream.Writable;
+ module.exports.Duplex = CustomStream.Duplex;
+ module.exports.Transform = CustomStream.Transform;
+ module.exports.PassThrough = CustomStream.PassThrough;
+ module.exports.addAbortSignal = CustomStream.addAbortSignal;
+ module.exports.finished = CustomStream.finished;
+ module.exports.destroy = CustomStream.destroy;
+ module.exports.destroy = originalDestroy;
+ module.exports.pipeline = CustomStream.pipeline;
+ module.exports.compose = CustomStream.compose;
+ Object.defineProperty(CustomStream, "promises", {
+ configurable: true,
+ enumerable: true,
+ get() {
+ return promises;
+ }
+ });
+ module.exports.Stream = CustomStream.Stream;
+ }
+ module.exports.default = module.exports;
+});
+
+// node_modules/lodash/_arrayPush.js
+var require__arrayPush = __commonJS((exports, module) => {
+ function arrayPush(array, values) {
+ var index = -1, length = values.length, offset = array.length;
+ while (++index < length) {
+ array[offset + index] = values[index];
+ }
+ return array;
+ }
+ module.exports = arrayPush;
+});
+
+// node_modules/lodash/_isFlattenable.js
+var require__isFlattenable = __commonJS((exports, module) => {
+ var Symbol2 = require__Symbol();
+ var isArguments = require_isArguments();
+ var isArray = require_isArray();
+ var spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined;
+ function isFlattenable(value) {
+ return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
+ }
+ module.exports = isFlattenable;
+});
+
+// node_modules/lodash/_baseFlatten.js
+var require__baseFlatten = __commonJS((exports, module) => {
+ var arrayPush = require__arrayPush();
+ var isFlattenable = require__isFlattenable();
+ function baseFlatten(array, depth, predicate, isStrict, result) {
+ var index = -1, length = array.length;
+ predicate || (predicate = isFlattenable);
+ result || (result = []);
+ while (++index < length) {
+ var value = array[index];
+ if (depth > 0 && predicate(value)) {
+ if (depth > 1) {
+ baseFlatten(value, depth - 1, predicate, isStrict, result);
+ } else {
+ arrayPush(result, value);
+ }
+ } else if (!isStrict) {
+ result[result.length] = value;
+ }
+ }
+ return result;
+ }
+ module.exports = baseFlatten;
+});
+
+// node_modules/lodash/flatten.js
+var require_flatten = __commonJS((exports, module) => {
+ var baseFlatten = require__baseFlatten();
+ function flatten(array) {
+ var length = array == null ? 0 : array.length;
+ return length ? baseFlatten(array, 1) : [];
+ }
+ module.exports = flatten;
+});
+
+// node_modules/lodash/_nativeCreate.js
+var require__nativeCreate = __commonJS((exports, module) => {
+ var getNative = require__getNative();
+ var nativeCreate = getNative(Object, "create");
+ module.exports = nativeCreate;
+});
+
+// node_modules/lodash/_hashClear.js
+var require__hashClear = __commonJS((exports, module) => {
+ var nativeCreate = require__nativeCreate();
+ function hashClear() {
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
+ this.size = 0;
+ }
+ module.exports = hashClear;
+});
+
+// node_modules/lodash/_hashDelete.js
+var require__hashDelete = __commonJS((exports, module) => {
+ function hashDelete(key2) {
+ var result = this.has(key2) && delete this.__data__[key2];
+ this.size -= result ? 1 : 0;
+ return result;
+ }
+ module.exports = hashDelete;
+});
+
+// node_modules/lodash/_hashGet.js
+var require__hashGet = __commonJS((exports, module) => {
+ var nativeCreate = require__nativeCreate();
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
+ var objectProto = Object.prototype;
+ var hasOwnProperty = objectProto.hasOwnProperty;
+ function hashGet(key2) {
+ var data = this.__data__;
+ if (nativeCreate) {
+ var result = data[key2];
+ return result === HASH_UNDEFINED ? undefined : result;
+ }
+ return hasOwnProperty.call(data, key2) ? data[key2] : undefined;
+ }
+ module.exports = hashGet;
+});
+
+// node_modules/lodash/_hashHas.js
+var require__hashHas = __commonJS((exports, module) => {
+ var nativeCreate = require__nativeCreate();
+ var objectProto = Object.prototype;
+ var hasOwnProperty = objectProto.hasOwnProperty;
+ function hashHas(key2) {
+ var data = this.__data__;
+ return nativeCreate ? data[key2] !== undefined : hasOwnProperty.call(data, key2);
+ }
+ module.exports = hashHas;
+});
+
+// node_modules/lodash/_hashSet.js
+var require__hashSet = __commonJS((exports, module) => {
+ var nativeCreate = require__nativeCreate();
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
+ function hashSet(key2, value) {
+ var data = this.__data__;
+ this.size += this.has(key2) ? 0 : 1;
+ data[key2] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;
+ return this;
+ }
+ module.exports = hashSet;
+});
+
+// node_modules/lodash/_Hash.js
+var require__Hash = __commonJS((exports, module) => {
+ var hashClear = require__hashClear();
+ var hashDelete = require__hashDelete();
+ var hashGet = require__hashGet();
+ var hashHas = require__hashHas();
+ var hashSet = require__hashSet();
+ function Hash(entries) {
+ var index = -1, length = entries == null ? 0 : entries.length;
+ this.clear();
+ while (++index < length) {
+ var entry = entries[index];
+ this.set(entry[0], entry[1]);
+ }
+ }
+ Hash.prototype.clear = hashClear;
+ Hash.prototype["delete"] = hashDelete;
+ Hash.prototype.get = hashGet;
+ Hash.prototype.has = hashHas;
+ Hash.prototype.set = hashSet;
+ module.exports = Hash;
+});
+
+// node_modules/lodash/_listCacheClear.js
+var require__listCacheClear = __commonJS((exports, module) => {
+ function listCacheClear() {
+ this.__data__ = [];
+ this.size = 0;
+ }
+ module.exports = listCacheClear;
+});
+
+// node_modules/lodash/_assocIndexOf.js
+var require__assocIndexOf = __commonJS((exports, module) => {
+ var eq = require_eq();
+ function assocIndexOf(array, key2) {
+ var length = array.length;
+ while (length--) {
+ if (eq(array[length][0], key2)) {
+ return length;
+ }
+ }
+ return -1;
+ }
+ module.exports = assocIndexOf;
+});
+
+// node_modules/lodash/_listCacheDelete.js
+var require__listCacheDelete = __commonJS((exports, module) => {
+ var assocIndexOf = require__assocIndexOf();
+ var arrayProto = Array.prototype;
+ var splice = arrayProto.splice;
+ function listCacheDelete(key2) {
+ var data = this.__data__, index = assocIndexOf(data, key2);
+ if (index < 0) {
+ return false;
+ }
+ var lastIndex = data.length - 1;
+ if (index == lastIndex) {
+ data.pop();
+ } else {
+ splice.call(data, index, 1);
+ }
+ --this.size;
+ return true;
+ }
+ module.exports = listCacheDelete;
+});
+
+// node_modules/lodash/_listCacheGet.js
+var require__listCacheGet = __commonJS((exports, module) => {
+ var assocIndexOf = require__assocIndexOf();
+ function listCacheGet(key2) {
+ var data = this.__data__, index = assocIndexOf(data, key2);
+ return index < 0 ? undefined : data[index][1];
+ }
+ module.exports = listCacheGet;
+});
+
+// node_modules/lodash/_listCacheHas.js
+var require__listCacheHas = __commonJS((exports, module) => {
+ var assocIndexOf = require__assocIndexOf();
+ function listCacheHas(key2) {
+ return assocIndexOf(this.__data__, key2) > -1;
+ }
+ module.exports = listCacheHas;
+});
+
+// node_modules/lodash/_listCacheSet.js
+var require__listCacheSet = __commonJS((exports, module) => {
+ var assocIndexOf = require__assocIndexOf();
+ function listCacheSet(key2, value) {
+ var data = this.__data__, index = assocIndexOf(data, key2);
+ if (index < 0) {
+ ++this.size;
+ data.push([key2, value]);
+ } else {
+ data[index][1] = value;
+ }
+ return this;
+ }
+ module.exports = listCacheSet;
+});
+
+// node_modules/lodash/_ListCache.js
+var require__ListCache = __commonJS((exports, module) => {
+ var listCacheClear = require__listCacheClear();
+ var listCacheDelete = require__listCacheDelete();
+ var listCacheGet = require__listCacheGet();
+ var listCacheHas = require__listCacheHas();
+ var listCacheSet = require__listCacheSet();
+ function ListCache(entries) {
+ var index = -1, length = entries == null ? 0 : entries.length;
+ this.clear();
+ while (++index < length) {
+ var entry = entries[index];
+ this.set(entry[0], entry[1]);
+ }
+ }
+ ListCache.prototype.clear = listCacheClear;
+ ListCache.prototype["delete"] = listCacheDelete;
+ ListCache.prototype.get = listCacheGet;
+ ListCache.prototype.has = listCacheHas;
+ ListCache.prototype.set = listCacheSet;
+ module.exports = ListCache;
+});
+
+// node_modules/lodash/_Map.js
+var require__Map = __commonJS((exports, module) => {
+ var getNative = require__getNative();
+ var root = require__root();
+ var Map2 = getNative(root, "Map");
+ module.exports = Map2;
+});
+
+// node_modules/lodash/_mapCacheClear.js
+var require__mapCacheClear = __commonJS((exports, module) => {
+ var Hash = require__Hash();
+ var ListCache = require__ListCache();
+ var Map2 = require__Map();
+ function mapCacheClear() {
+ this.size = 0;
+ this.__data__ = {
+ hash: new Hash,
+ map: new (Map2 || ListCache),
+ string: new Hash
+ };
+ }
+ module.exports = mapCacheClear;
+});
+
+// node_modules/lodash/_isKeyable.js
+var require__isKeyable = __commonJS((exports, module) => {
+ function isKeyable(value) {
+ var type = typeof value;
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
+ }
+ module.exports = isKeyable;
+});
+
+// node_modules/lodash/_getMapData.js
+var require__getMapData = __commonJS((exports, module) => {
+ var isKeyable = require__isKeyable();
+ function getMapData(map, key2) {
+ var data = map.__data__;
+ return isKeyable(key2) ? data[typeof key2 == "string" ? "string" : "hash"] : data.map;
+ }
+ module.exports = getMapData;
+});
+
+// node_modules/lodash/_mapCacheDelete.js
+var require__mapCacheDelete = __commonJS((exports, module) => {
+ var getMapData = require__getMapData();
+ function mapCacheDelete(key2) {
+ var result = getMapData(this, key2)["delete"](key2);
+ this.size -= result ? 1 : 0;
+ return result;
+ }
+ module.exports = mapCacheDelete;
+});
+
+// node_modules/lodash/_mapCacheGet.js
+var require__mapCacheGet = __commonJS((exports, module) => {
+ var getMapData = require__getMapData();
+ function mapCacheGet(key2) {
+ return getMapData(this, key2).get(key2);
+ }
+ module.exports = mapCacheGet;
+});
+
+// node_modules/lodash/_mapCacheHas.js
+var require__mapCacheHas = __commonJS((exports, module) => {
+ var getMapData = require__getMapData();
+ function mapCacheHas(key2) {
+ return getMapData(this, key2).has(key2);
+ }
+ module.exports = mapCacheHas;
+});
+
+// node_modules/lodash/_mapCacheSet.js
+var require__mapCacheSet = __commonJS((exports, module) => {
+ var getMapData = require__getMapData();
+ function mapCacheSet(key2, value) {
+ var data = getMapData(this, key2), size = data.size;
+ data.set(key2, value);
+ this.size += data.size == size ? 0 : 1;
+ return this;
+ }
+ module.exports = mapCacheSet;
+});
+
+// node_modules/lodash/_MapCache.js
+var require__MapCache = __commonJS((exports, module) => {
+ var mapCacheClear = require__mapCacheClear();
+ var mapCacheDelete = require__mapCacheDelete();
+ var mapCacheGet = require__mapCacheGet();
+ var mapCacheHas = require__mapCacheHas();
+ var mapCacheSet = require__mapCacheSet();
+ function MapCache(entries) {
+ var index = -1, length = entries == null ? 0 : entries.length;
+ this.clear();
+ while (++index < length) {
+ var entry = entries[index];
+ this.set(entry[0], entry[1]);
+ }
+ }
+ MapCache.prototype.clear = mapCacheClear;
+ MapCache.prototype["delete"] = mapCacheDelete;
+ MapCache.prototype.get = mapCacheGet;
+ MapCache.prototype.has = mapCacheHas;
+ MapCache.prototype.set = mapCacheSet;
+ module.exports = MapCache;
+});
+
+// node_modules/lodash/_setCacheAdd.js
+var require__setCacheAdd = __commonJS((exports, module) => {
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
+ function setCacheAdd(value) {
+ this.__data__.set(value, HASH_UNDEFINED);
+ return this;
+ }
+ module.exports = setCacheAdd;
+});
+
+// node_modules/lodash/_setCacheHas.js
+var require__setCacheHas = __commonJS((exports, module) => {
+ function setCacheHas(value) {
+ return this.__data__.has(value);
+ }
+ module.exports = setCacheHas;
+});
+
+// node_modules/lodash/_SetCache.js
+var require__SetCache = __commonJS((exports, module) => {
+ var MapCache = require__MapCache();
+ var setCacheAdd = require__setCacheAdd();
+ var setCacheHas = require__setCacheHas();
+ function SetCache(values) {
+ var index = -1, length = values == null ? 0 : values.length;
+ this.__data__ = new MapCache;
+ while (++index < length) {
+ this.add(values[index]);
+ }
+ }
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
+ SetCache.prototype.has = setCacheHas;
+ module.exports = SetCache;
+});
+
+// node_modules/lodash/_baseFindIndex.js
+var require__baseFindIndex = __commonJS((exports, module) => {
+ function baseFindIndex(array, predicate, fromIndex, fromRight) {
+ var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
+ while (fromRight ? index-- : ++index < length) {
+ if (predicate(array[index], index, array)) {
+ return index;
+ }
+ }
+ return -1;
+ }
+ module.exports = baseFindIndex;
+});
+
+// node_modules/lodash/_baseIsNaN.js
+var require__baseIsNaN = __commonJS((exports, module) => {
+ function baseIsNaN(value) {
+ return value !== value;
+ }
+ module.exports = baseIsNaN;
+});
+
+// node_modules/lodash/_strictIndexOf.js
+var require__strictIndexOf = __commonJS((exports, module) => {
+ function strictIndexOf(array, value, fromIndex) {
+ var index = fromIndex - 1, length = array.length;
+ while (++index < length) {
+ if (array[index] === value) {
+ return index;
+ }
+ }
+ return -1;
+ }
+ module.exports = strictIndexOf;
+});
+
+// node_modules/lodash/_baseIndexOf.js
+var require__baseIndexOf = __commonJS((exports, module) => {
+ var baseFindIndex = require__baseFindIndex();
+ var baseIsNaN = require__baseIsNaN();
+ var strictIndexOf = require__strictIndexOf();
+ function baseIndexOf(array, value, fromIndex) {
+ return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
+ }
+ module.exports = baseIndexOf;
+});
+
+// node_modules/lodash/_arrayIncludes.js
+var require__arrayIncludes = __commonJS((exports, module) => {
+ var baseIndexOf = require__baseIndexOf();
+ function arrayIncludes(array, value) {
+ var length = array == null ? 0 : array.length;
+ return !!length && baseIndexOf(array, value, 0) > -1;
+ }
+ module.exports = arrayIncludes;
+});
+
+// node_modules/lodash/_arrayIncludesWith.js
+var require__arrayIncludesWith = __commonJS((exports, module) => {
+ function arrayIncludesWith(array, value, comparator) {
+ var index = -1, length = array == null ? 0 : array.length;
+ while (++index < length) {
+ if (comparator(value, array[index])) {
+ return true;
+ }
+ }
+ return false;
+ }
+ module.exports = arrayIncludesWith;
+});
+
+// node_modules/lodash/_arrayMap.js
+var require__arrayMap = __commonJS((exports, module) => {
+ function arrayMap(array, iteratee) {
+ var index = -1, length = array == null ? 0 : array.length, result = Array(length);
+ while (++index < length) {
+ result[index] = iteratee(array[index], index, array);
+ }
+ return result;
+ }
+ module.exports = arrayMap;
+});
+
+// node_modules/lodash/_cacheHas.js
+var require__cacheHas = __commonJS((exports, module) => {
+ function cacheHas(cache, key2) {
+ return cache.has(key2);
+ }
+ module.exports = cacheHas;
+});
+
+// node_modules/lodash/_baseDifference.js
+var require__baseDifference = __commonJS((exports, module) => {
+ var SetCache = require__SetCache();
+ var arrayIncludes = require__arrayIncludes();
+ var arrayIncludesWith = require__arrayIncludesWith();
+ var arrayMap = require__arrayMap();
+ var baseUnary = require__baseUnary();
+ var cacheHas = require__cacheHas();
+ var LARGE_ARRAY_SIZE = 200;
+ function baseDifference(array, values, iteratee, comparator) {
+ var index = -1, includes = arrayIncludes, isCommon = true, length = array.length, result = [], valuesLength = values.length;
+ if (!length) {
+ return result;
+ }
+ if (iteratee) {
+ values = arrayMap(values, baseUnary(iteratee));
+ }
+ if (comparator) {
+ includes = arrayIncludesWith;
+ isCommon = false;
+ } else if (values.length >= LARGE_ARRAY_SIZE) {
+ includes = cacheHas;
+ isCommon = false;
+ values = new SetCache(values);
+ }
+ outer:
+ while (++index < length) {
+ var value = array[index], computed = iteratee == null ? value : iteratee(value);
+ value = comparator || value !== 0 ? value : 0;
+ if (isCommon && computed === computed) {
+ var valuesIndex = valuesLength;
+ while (valuesIndex--) {
+ if (values[valuesIndex] === computed) {
+ continue outer;
+ }
+ }
+ result.push(value);
+ } else if (!includes(values, computed, comparator)) {
+ result.push(value);
+ }
+ }
+ return result;
+ }
+ module.exports = baseDifference;
+});
+
+// node_modules/lodash/isArrayLikeObject.js
+var require_isArrayLikeObject = __commonJS((exports, module) => {
+ var isArrayLike = require_isArrayLike2();
+ var isObjectLike = require_isObjectLike();
+ function isArrayLikeObject(value) {
+ return isObjectLike(value) && isArrayLike(value);
+ }
+ module.exports = isArrayLikeObject;
+});
+
+// node_modules/lodash/difference.js
+var require_difference = __commonJS((exports, module) => {
+ var baseDifference = require__baseDifference();
+ var baseFlatten = require__baseFlatten();
+ var baseRest = require__baseRest();
+ var isArrayLikeObject = require_isArrayLikeObject();
+ var difference = baseRest(function(array, values) {
+ return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : [];
+ });
+ module.exports = difference;
+});
+
+// node_modules/lodash/_Set.js
+var require__Set = __commonJS((exports, module) => {
+ var getNative = require__getNative();
+ var root = require__root();
+ var Set2 = getNative(root, "Set");
+ module.exports = Set2;
+});
+
+// node_modules/lodash/noop.js
+var require_noop2 = __commonJS((exports, module) => {
+ function noop() {
+ }
+ module.exports = noop;
+});
+
+// node_modules/lodash/_setToArray.js
+var require__setToArray = __commonJS((exports, module) => {
+ function setToArray(set) {
+ var index = -1, result = Array(set.size);
+ set.forEach(function(value) {
+ result[++index] = value;
+ });
+ return result;
+ }
+ module.exports = setToArray;
+});
+
+// node_modules/lodash/_createSet.js
+var require__createSet = __commonJS((exports, module) => {
+ var Set2 = require__Set();
+ var noop = require_noop2();
+ var setToArray = require__setToArray();
+ var INFINITY = 1 / 0;
+ var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values) {
+ return new Set2(values);
+ };
+ module.exports = createSet;
+});
+
+// node_modules/lodash/_baseUniq.js
+var require__baseUniq = __commonJS((exports, module) => {
+ var SetCache = require__SetCache();
+ var arrayIncludes = require__arrayIncludes();
+ var arrayIncludesWith = require__arrayIncludesWith();
+ var cacheHas = require__cacheHas();
+ var createSet = require__createSet();
+ var setToArray = require__setToArray();
+ var LARGE_ARRAY_SIZE = 200;
+ function baseUniq(array, iteratee, comparator) {
+ var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
+ if (comparator) {
+ isCommon = false;
+ includes = arrayIncludesWith;
+ } else if (length >= LARGE_ARRAY_SIZE) {
+ var set = iteratee ? null : createSet(array);
+ if (set) {
+ return setToArray(set);
+ }
+ isCommon = false;
+ includes = cacheHas;
+ seen = new SetCache;
+ } else {
+ seen = iteratee ? [] : result;
+ }
+ outer:
+ while (++index < length) {
+ var value = array[index], computed = iteratee ? iteratee(value) : value;
+ value = comparator || value !== 0 ? value : 0;
+ if (isCommon && computed === computed) {
+ var seenIndex = seen.length;
+ while (seenIndex--) {
+ if (seen[seenIndex] === computed) {
+ continue outer;
+ }
+ }
+ if (iteratee) {
+ seen.push(computed);
+ }
+ result.push(value);
+ } else if (!includes(seen, computed, comparator)) {
+ if (seen !== result) {
+ seen.push(computed);
+ }
+ result.push(value);
+ }
+ }
+ return result;
+ }
+ module.exports = baseUniq;
+});
+
+// node_modules/lodash/union.js
+var require_union = __commonJS((exports, module) => {
+ var baseFlatten = require__baseFlatten();
+ var baseRest = require__baseRest();
+ var baseUniq = require__baseUniq();
+ var isArrayLikeObject = require_isArrayLikeObject();
+ var union = baseRest(function(arrays) {
+ return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
+ });
+ module.exports = union;
+});
+
+// node_modules/lodash/_overArg.js
+var require__overArg = __commonJS((exports, module) => {
+ function overArg(func, transform) {
+ return function(arg) {
+ return func(transform(arg));
+ };
+ }
+ module.exports = overArg;
+});
+
+// node_modules/lodash/_getPrototype.js
+var require__getPrototype = __commonJS((exports, module) => {
+ var overArg = require__overArg();
+ var getPrototype = overArg(Object.getPrototypeOf, Object);
+ module.exports = getPrototype;
+});
+
+// node_modules/lodash/isPlainObject.js
+var require_isPlainObject = __commonJS((exports, module) => {
+ var baseGetTag = require__baseGetTag();
+ var getPrototype = require__getPrototype();
+ var isObjectLike = require_isObjectLike();
+ var objectTag = "[object Object]";
+ var funcProto = Function.prototype;
+ var objectProto = Object.prototype;
+ var funcToString = funcProto.toString;
+ var hasOwnProperty = objectProto.hasOwnProperty;
+ var objectCtorString = funcToString.call(Object);
+ function isPlainObject2(value) {
+ if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
+ return false;
+ }
+ var proto2 = getPrototype(value);
+ if (proto2 === null) {
+ return true;
+ }
+ var Ctor = hasOwnProperty.call(proto2, "constructor") && proto2.constructor;
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
+ }
+ module.exports = isPlainObject2;
+});
+
+// node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
+var require_assert_valid_pattern = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.assertValidPattern = undefined;
+ var MAX_PATTERN_LENGTH = 1024 * 64;
+ var assertValidPattern = (pattern) => {
+ if (typeof pattern !== "string") {
+ throw new TypeError("invalid pattern");
+ }
+ if (pattern.length > MAX_PATTERN_LENGTH) {
+ throw new TypeError("pattern is too long");
+ }
+ };
+ exports.assertValidPattern = assertValidPattern;
+});
+
+// node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.js
+var require_brace_expressions = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.parseClass = undefined;
+ var posixClasses = {
+ "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
+ "[:alpha:]": ["\\p{L}\\p{Nl}", true],
+ "[:ascii:]": ["\\x" + "00-\\x" + "7f", false],
+ "[:blank:]": ["\\p{Zs}\\t", true],
+ "[:cntrl:]": ["\\p{Cc}", true],
+ "[:digit:]": ["\\p{Nd}", true],
+ "[:graph:]": ["\\p{Z}\\p{C}", true, true],
+ "[:lower:]": ["\\p{Ll}", true],
+ "[:print:]": ["\\p{C}", true],
+ "[:punct:]": ["\\p{P}", true],
+ "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
+ "[:upper:]": ["\\p{Lu}", true],
+ "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
+ "[:xdigit:]": ["A-Fa-f0-9", false]
+ };
+ var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
+ var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
+ var rangesToString = (ranges) => ranges.join("");
+ var parseClass = (glob, position) => {
+ const pos = position;
+ if (glob.charAt(pos) !== "[") {
+ throw new Error("not in a brace expression");
+ }
+ const ranges = [];
+ const negs = [];
+ let i = pos + 1;
+ let sawStart = false;
+ let uflag = false;
+ let escaping = false;
+ let negate = false;
+ let endPos = pos;
+ let rangeStart = "";
+ WHILE:
+ while (i < glob.length) {
+ const c = glob.charAt(i);
+ if ((c === "!" || c === "^") && i === pos + 1) {
+ negate = true;
+ i++;
+ continue;
+ }
+ if (c === "]" && sawStart && !escaping) {
+ endPos = i + 1;
+ break;
+ }
+ sawStart = true;
+ if (c === "\\") {
+ if (!escaping) {
+ escaping = true;
+ i++;
+ continue;
+ }
+ }
+ if (c === "[" && !escaping) {
+ for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
+ if (glob.startsWith(cls, i)) {
+ if (rangeStart) {
+ return ["$.", false, glob.length - pos, true];
+ }
+ i += cls.length;
+ if (neg)
+ negs.push(unip);
+ else
+ ranges.push(unip);
+ uflag = uflag || u;
+ continue WHILE;
+ }
+ }
+ }
+ escaping = false;
+ if (rangeStart) {
+ if (c > rangeStart) {
+ ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
+ } else if (c === rangeStart) {
+ ranges.push(braceEscape(c));
+ }
+ rangeStart = "";
+ i++;
+ continue;
+ }
+ if (glob.startsWith("-]", i + 1)) {
+ ranges.push(braceEscape(c + "-"));
+ i += 2;
+ continue;
+ }
+ if (glob.startsWith("-", i + 1)) {
+ rangeStart = c;
+ i += 2;
+ continue;
+ }
+ ranges.push(braceEscape(c));
+ i++;
+ }
+ if (endPos < i) {
+ return ["", false, 0, false];
+ }
+ if (!ranges.length && !negs.length) {
+ return ["$.", false, glob.length - pos, true];
+ }
+ if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
+ const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
+ return [regexpEscape(r), false, endPos - pos, false];
+ }
+ const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
+ const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
+ const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
+ return [comb, uflag, endPos - pos, true];
+ };
+ exports.parseClass = parseClass;
+});
+
+// node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.js
+var require_unescape = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.unescape = undefined;
+ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
+ };
+ exports.unescape = unescape;
+});
+
+// node_modules/glob/node_modules/minimatch/dist/commonjs/ast.js
+var require_ast = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.AST = undefined;
+ var brace_expressions_js_1 = require_brace_expressions();
+ var unescape_js_1 = require_unescape();
+ var types = new Set(["!", "?", "+", "*", "@"]);
+ var isExtglobType = (c) => types.has(c);
+ var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
+ var startNoDot = "(?!\\.)";
+ var addPatternStart = new Set(["[", "."]);
+ var justDots = new Set(["..", "."]);
+ var reSpecials = new Set("().*{}+?[]^$\\!");
+ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
+ var qmark = "[^/]";
+ var star = qmark + "*?";
+ var starNoEmpty = qmark + "+?";
+
+ class AST {
+ type;
+ #root;
+ #hasMagic;
+ #uflag = false;
+ #parts = [];
+ #parent;
+ #parentIndex;
+ #negs;
+ #filledNegs = false;
+ #options;
+ #toString;
+ #emptyExt = false;
+ constructor(type, parent, options = {}) {
+ this.type = type;
+ if (type)
+ this.#hasMagic = true;
+ this.#parent = parent;
+ this.#root = this.#parent ? this.#parent.#root : this;
+ this.#options = this.#root === this ? options : this.#root.#options;
+ this.#negs = this.#root === this ? [] : this.#root.#negs;
+ if (type === "!" && !this.#root.#filledNegs)
+ this.#negs.push(this);
+ this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
+ }
+ get hasMagic() {
+ if (this.#hasMagic !== undefined)
+ return this.#hasMagic;
+ for (const p of this.#parts) {
+ if (typeof p === "string")
+ continue;
+ if (p.type || p.hasMagic)
+ return this.#hasMagic = true;
+ }
+ return this.#hasMagic;
+ }
+ toString() {
+ if (this.#toString !== undefined)
+ return this.#toString;
+ if (!this.type) {
+ return this.#toString = this.#parts.map((p) => String(p)).join("");
+ } else {
+ return this.#toString = this.type + "(" + this.#parts.map((p) => String(p)).join("|") + ")";
+ }
+ }
+ #fillNegs() {
+ if (this !== this.#root)
+ throw new Error("should only call on root");
+ if (this.#filledNegs)
+ return this;
+ this.toString();
+ this.#filledNegs = true;
+ let n;
+ while (n = this.#negs.pop()) {
+ if (n.type !== "!")
+ continue;
+ let p = n;
+ let pp = p.#parent;
+ while (pp) {
+ for (let i = p.#parentIndex + 1;!pp.type && i < pp.#parts.length; i++) {
+ for (const part of n.#parts) {
+ if (typeof part === "string") {
+ throw new Error("string part in extglob AST??");
+ }
+ part.copyIn(pp.#parts[i]);
+ }
+ }
+ p = pp;
+ pp = p.#parent;
+ }
+ }
+ return this;
+ }
+ push(...parts) {
+ for (const p of parts) {
+ if (p === "")
+ continue;
+ if (typeof p !== "string" && !(p instanceof AST && p.#parent === this)) {
+ throw new Error("invalid part: " + p);
+ }
+ this.#parts.push(p);
+ }
+ }
+ toJSON() {
+ const ret = this.type === null ? this.#parts.slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...this.#parts.map((p) => p.toJSON())];
+ if (this.isStart() && !this.type)
+ ret.unshift([]);
+ if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!")) {
+ ret.push({});
+ }
+ return ret;
+ }
+ isStart() {
+ if (this.#root === this)
+ return true;
+ if (!this.#parent?.isStart())
+ return false;
+ if (this.#parentIndex === 0)
+ return true;
+ const p = this.#parent;
+ for (let i = 0;i < this.#parentIndex; i++) {
+ const pp = p.#parts[i];
+ if (!(pp instanceof AST && pp.type === "!")) {
+ return false;
+ }
+ }
+ return true;
+ }
+ isEnd() {
+ if (this.#root === this)
+ return true;
+ if (this.#parent?.type === "!")
+ return true;
+ if (!this.#parent?.isEnd())
+ return false;
+ if (!this.type)
+ return this.#parent?.isEnd();
+ const pl = this.#parent ? this.#parent.#parts.length : 0;
+ return this.#parentIndex === pl - 1;
+ }
+ copyIn(part) {
+ if (typeof part === "string")
+ this.push(part);
+ else
+ this.push(part.clone(this));
+ }
+ clone(parent) {
+ const c = new AST(this.type, parent);
+ for (const p of this.#parts) {
+ c.copyIn(p);
+ }
+ return c;
+ }
+ static #parseAST(str, ast, pos, opt) {
+ let escaping = false;
+ let inBrace = false;
+ let braceStart = -1;
+ let braceNeg = false;
+ if (ast.type === null) {
+ let i2 = pos;
+ let acc2 = "";
+ while (i2 < str.length) {
+ const c = str.charAt(i2++);
+ if (escaping || c === "\\") {
+ escaping = !escaping;
+ acc2 += c;
+ continue;
+ }
+ if (inBrace) {
+ if (i2 === braceStart + 1) {
+ if (c === "^" || c === "!") {
+ braceNeg = true;
+ }
+ } else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
+ inBrace = false;
+ }
+ acc2 += c;
+ continue;
+ } else if (c === "[") {
+ inBrace = true;
+ braceStart = i2;
+ braceNeg = false;
+ acc2 += c;
+ continue;
+ }
+ if (!opt.noext && isExtglobType(c) && str.charAt(i2) === "(") {
+ ast.push(acc2);
+ acc2 = "";
+ const ext = new AST(c, ast);
+ i2 = AST.#parseAST(str, ext, i2, opt);
+ ast.push(ext);
+ continue;
+ }
+ acc2 += c;
+ }
+ ast.push(acc2);
+ return i2;
+ }
+ let i = pos + 1;
+ let part = new AST(null, ast);
+ const parts = [];
+ let acc = "";
+ while (i < str.length) {
+ const c = str.charAt(i++);
+ if (escaping || c === "\\") {
+ escaping = !escaping;
+ acc += c;
+ continue;
+ }
+ if (inBrace) {
+ if (i === braceStart + 1) {
+ if (c === "^" || c === "!") {
+ braceNeg = true;
+ }
+ } else if (c === "]" && !(i === braceStart + 2 && braceNeg)) {
+ inBrace = false;
+ }
+ acc += c;
+ continue;
+ } else if (c === "[") {
+ inBrace = true;
+ braceStart = i;
+ braceNeg = false;
+ acc += c;
+ continue;
+ }
+ if (isExtglobType(c) && str.charAt(i) === "(") {
+ part.push(acc);
+ acc = "";
+ const ext = new AST(c, part);
+ part.push(ext);
+ i = AST.#parseAST(str, ext, i, opt);
+ continue;
+ }
+ if (c === "|") {
+ part.push(acc);
+ acc = "";
+ parts.push(part);
+ part = new AST(null, ast);
+ continue;
+ }
+ if (c === ")") {
+ if (acc === "" && ast.#parts.length === 0) {
+ ast.#emptyExt = true;
+ }
+ part.push(acc);
+ acc = "";
+ ast.push(...parts, part);
+ return i;
+ }
+ acc += c;
+ }
+ ast.type = null;
+ ast.#hasMagic = undefined;
+ ast.#parts = [str.substring(pos - 1)];
+ return i;
+ }
+ static fromGlob(pattern, options = {}) {
+ const ast = new AST(null, undefined, options);
+ AST.#parseAST(pattern, ast, 0, options);
+ return ast;
+ }
+ toMMPattern() {
+ if (this !== this.#root)
+ return this.#root.toMMPattern();
+ const glob = this.toString();
+ const [re, body, hasMagic, uflag] = this.toRegExpSource();
+ const anyMagic = hasMagic || this.#hasMagic || this.#options.nocase && !this.#options.nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
+ if (!anyMagic) {
+ return body;
+ }
+ const flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : "");
+ return Object.assign(new RegExp(`^${re}$`, flags), {
+ _src: re,
+ _glob: glob
+ });
+ }
+ get options() {
+ return this.#options;
+ }
+ toRegExpSource(allowDot) {
+ const dot = allowDot ?? !!this.#options.dot;
+ if (this.#root === this)
+ this.#fillNegs();
+ if (!this.type) {
+ const noEmpty = this.isStart() && this.isEnd();
+ const src = this.#parts.map((p) => {
+ const [re, _3, hasMagic, uflag] = typeof p === "string" ? AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
+ this.#hasMagic = this.#hasMagic || hasMagic;
+ this.#uflag = this.#uflag || uflag;
+ return re;
+ }).join("");
+ let start2 = "";
+ if (this.isStart()) {
+ if (typeof this.#parts[0] === "string") {
+ const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
+ if (!dotTravAllowed) {
+ const aps = addPatternStart;
+ const needNoTrav = dot && aps.has(src.charAt(0)) || src.startsWith("\\.") && aps.has(src.charAt(2)) || src.startsWith("\\.\\.") && aps.has(src.charAt(4));
+ const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
+ start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
+ }
+ }
+ }
+ let end = "";
+ if (this.isEnd() && this.#root.#filledNegs && this.#parent?.type === "!") {
+ end = "(?:$|\\/)";
+ }
+ const final2 = start2 + src + end;
+ return [
+ final2,
+ (0, unescape_js_1.unescape)(src),
+ this.#hasMagic = !!this.#hasMagic,
+ this.#uflag
+ ];
+ }
+ const repeated = this.type === "*" || this.type === "+";
+ const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
+ let body = this.#partsToRegExp(dot);
+ if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
+ const s = this.toString();
+ this.#parts = [s];
+ this.type = null;
+ this.#hasMagic = undefined;
+ return [s, (0, unescape_js_1.unescape)(this.toString()), false, false];
+ }
+ let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(true);
+ if (bodyDotAllowed === body) {
+ bodyDotAllowed = "";
+ }
+ if (bodyDotAllowed) {
+ body = `(?:${body})(?:${bodyDotAllowed})*?`;
+ }
+ let final = "";
+ if (this.type === "!" && this.#emptyExt) {
+ final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
+ } else {
+ const close = this.type === "!" ? "))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
+ final = start + body + close;
+ }
+ return [
+ final,
+ (0, unescape_js_1.unescape)(body),
+ this.#hasMagic = !!this.#hasMagic,
+ this.#uflag
+ ];
+ }
+ #partsToRegExp(dot) {
+ return this.#parts.map((p) => {
+ if (typeof p === "string") {
+ throw new Error("string type in extglob ast??");
+ }
+ const [re, _3, _hasMagic, uflag] = p.toRegExpSource(dot);
+ this.#uflag = this.#uflag || uflag;
+ return re;
+ }).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
+ }
+ static #parseGlob(glob, hasMagic, noEmpty = false) {
+ let escaping = false;
+ let re = "";
+ let uflag = false;
+ for (let i = 0;i < glob.length; i++) {
+ const c = glob.charAt(i);
+ if (escaping) {
+ escaping = false;
+ re += (reSpecials.has(c) ? "\\" : "") + c;
+ continue;
+ }
+ if (c === "\\") {
+ if (i === glob.length - 1) {
+ re += "\\\\";
+ } else {
+ escaping = true;
+ }
+ continue;
+ }
+ if (c === "[") {
+ const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
+ if (consumed) {
+ re += src;
+ uflag = uflag || needUflag;
+ i += consumed - 1;
+ hasMagic = hasMagic || magic;
+ continue;
+ }
+ }
+ if (c === "*") {
+ if (noEmpty && glob === "*")
+ re += starNoEmpty;
+ else
+ re += star;
+ hasMagic = true;
+ continue;
+ }
+ if (c === "?") {
+ re += qmark;
+ hasMagic = true;
+ continue;
+ }
+ re += regExpEscape(c);
+ }
+ return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
+ }
+ }
+ exports.AST = AST;
+});
+
+// node_modules/glob/node_modules/minimatch/dist/commonjs/escape.js
+var require_escape = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.escape = undefined;
+ var escape = (s, { windowsPathsNoEscape = false } = {}) => {
+ return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
+ };
+ exports.escape = escape;
+});
+
+// node_modules/glob/node_modules/minimatch/dist/commonjs/index.js
+var require_commonjs = __commonJS((exports) => {
+ var __importDefault = exports && exports.__importDefault || function(mod) {
+ return mod && mod.__esModule ? mod : { default: mod };
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = undefined;
+ var brace_expansion_1 = __importDefault(require_brace_expansion());
+ var assert_valid_pattern_js_1 = require_assert_valid_pattern();
+ var ast_js_1 = require_ast();
+ var escape_js_1 = require_escape();
+ var unescape_js_1 = require_unescape();
+ var minimatch = (p, pattern, options = {}) => {
+ (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
+ if (!options.nocomment && pattern.charAt(0) === "#") {
+ return false;
+ }
+ return new Minimatch(pattern, options).match(p);
+ };
+ exports.minimatch = minimatch;
+ var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
+ var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
+ var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
+ var starDotExtTestNocase = (ext2) => {
+ ext2 = ext2.toLowerCase();
+ return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
+ };
+ var starDotExtTestNocaseDot = (ext2) => {
+ ext2 = ext2.toLowerCase();
+ return (f) => f.toLowerCase().endsWith(ext2);
+ };
+ var starDotStarRE = /^\*+\.\*+$/;
+ var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
+ var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
+ var dotStarRE = /^\.\*+$/;
+ var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
+ var starRE = /^\*+$/;
+ var starTest = (f) => f.length !== 0 && !f.startsWith(".");
+ var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
+ var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
+ var qmarksTestNocase = ([$0, ext2 = ""]) => {
+ const noext = qmarksTestNoExt([$0]);
+ if (!ext2)
+ return noext;
+ ext2 = ext2.toLowerCase();
+ return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
+ };
+ var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
+ const noext = qmarksTestNoExtDot([$0]);
+ if (!ext2)
+ return noext;
+ ext2 = ext2.toLowerCase();
+ return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
+ };
+ var qmarksTestDot = ([$0, ext2 = ""]) => {
+ const noext = qmarksTestNoExtDot([$0]);
+ return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
+ };
+ var qmarksTest = ([$0, ext2 = ""]) => {
+ const noext = qmarksTestNoExt([$0]);
+ return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
+ };
+ var qmarksTestNoExt = ([$0]) => {
+ const len = $0.length;
+ return (f) => f.length === len && !f.startsWith(".");
+ };
+ var qmarksTestNoExtDot = ([$0]) => {
+ const len = $0.length;
+ return (f) => f.length === len && f !== "." && f !== "..";
+ };
+ var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
+ var path2 = {
+ win32: { sep: "\\" },
+ posix: { sep: "/" }
+ };
+ exports.sep = defaultPlatform === "win32" ? path2.win32.sep : path2.posix.sep;
+ exports.minimatch.sep = exports.sep;
+ exports.GLOBSTAR = Symbol("globstar **");
+ exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
+ var qmark = "[^/]";
+ var star = qmark + "*?";
+ var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
+ var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
+ var filter2 = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options);
+ exports.filter = filter2;
+ exports.minimatch.filter = exports.filter;
+ var ext = (a, b = {}) => Object.assign({}, a, b);
+ var defaults = (def) => {
+ if (!def || typeof def !== "object" || !Object.keys(def).length) {
+ return exports.minimatch;
+ }
+ const orig = exports.minimatch;
+ const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
+ return Object.assign(m, {
+ Minimatch: class Minimatch2 extends orig.Minimatch {
+ constructor(pattern, options = {}) {
+ super(pattern, ext(def, options));
+ }
+ static defaults(options) {
+ return orig.defaults(ext(def, options)).Minimatch;
+ }
+ },
+ AST: class AST extends orig.AST {
+ constructor(type, parent, options = {}) {
+ super(type, parent, ext(def, options));
+ }
+ static fromGlob(pattern, options = {}) {
+ return orig.AST.fromGlob(pattern, ext(def, options));
+ }
+ },
+ unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
+ escape: (s, options = {}) => orig.escape(s, ext(def, options)),
+ filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
+ defaults: (options) => orig.defaults(ext(def, options)),
+ makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
+ braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
+ match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
+ sep: orig.sep,
+ GLOBSTAR: exports.GLOBSTAR
+ });
+ };
+ exports.defaults = defaults;
+ exports.minimatch.defaults = exports.defaults;
+ var braceExpand = (pattern, options = {}) => {
+ (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
+ if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
+ return [pattern];
+ }
+ return (0, brace_expansion_1.default)(pattern);
+ };
+ exports.braceExpand = braceExpand;
+ exports.minimatch.braceExpand = exports.braceExpand;
+ var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
+ exports.makeRe = makeRe;
+ exports.minimatch.makeRe = exports.makeRe;
+ var match = (list, pattern, options = {}) => {
+ const mm = new Minimatch(pattern, options);
+ list = list.filter((f) => mm.match(f));
+ if (mm.options.nonull && !list.length) {
+ list.push(pattern);
+ }
+ return list;
+ };
+ exports.match = match;
+ exports.minimatch.match = exports.match;
+ var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
+ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
+
+ class Minimatch {
+ options;
+ set;
+ pattern;
+ windowsPathsNoEscape;
+ nonegate;
+ negate;
+ comment;
+ empty;
+ preserveMultipleSlashes;
+ partial;
+ globSet;
+ globParts;
+ nocase;
+ isWindows;
+ platform;
+ windowsNoMagicRoot;
+ regexp;
+ constructor(pattern, options = {}) {
+ (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
+ options = options || {};
+ this.options = options;
+ this.pattern = pattern;
+ this.platform = options.platform || defaultPlatform;
+ this.isWindows = this.platform === "win32";
+ this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
+ if (this.windowsPathsNoEscape) {
+ this.pattern = this.pattern.replace(/\\/g, "/");
+ }
+ this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
+ this.regexp = null;
+ this.negate = false;
+ this.nonegate = !!options.nonegate;
+ this.comment = false;
+ this.empty = false;
+ this.partial = !!options.partial;
+ this.nocase = !!this.options.nocase;
+ this.windowsNoMagicRoot = options.windowsNoMagicRoot !== undefined ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
+ this.globSet = [];
+ this.globParts = [];
+ this.set = [];
+ this.make();
+ }
+ hasMagic() {
+ if (this.options.magicalBraces && this.set.length > 1) {
+ return true;
+ }
+ for (const pattern of this.set) {
+ for (const part of pattern) {
+ if (typeof part !== "string")
+ return true;
+ }
+ }
+ return false;
+ }
+ debug(..._3) {
+ }
+ make() {
+ const pattern = this.pattern;
+ const options = this.options;
+ if (!options.nocomment && pattern.charAt(0) === "#") {
+ this.comment = true;
+ return;
+ }
+ if (!pattern) {
+ this.empty = true;
+ return;
+ }
+ this.parseNegate();
+ this.globSet = [...new Set(this.braceExpand())];
+ if (options.debug) {
+ this.debug = (...args) => console.error(...args);
+ }
+ this.debug(this.pattern, this.globSet);
+ const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
+ this.globParts = this.preprocess(rawGlobParts);
+ this.debug(this.pattern, this.globParts);
+ let set = this.globParts.map((s, _3, __) => {
+ if (this.isWindows && this.windowsNoMagicRoot) {
+ const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
+ const isDrive = /^[a-z]:/i.test(s[0]);
+ if (isUNC) {
+ return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
+ } else if (isDrive) {
+ return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
+ }
+ }
+ return s.map((ss) => this.parse(ss));
+ });
+ this.debug(this.pattern, set);
+ this.set = set.filter((s) => s.indexOf(false) === -1);
+ if (this.isWindows) {
+ for (let i = 0;i < this.set.length; i++) {
+ const p = this.set[i];
+ if (p[0] === "" && p[1] === "" && this.globParts[i][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
+ p[2] = "?";
+ }
+ }
+ }
+ this.debug(this.pattern, this.set);
+ }
+ preprocess(globParts) {
+ if (this.options.noglobstar) {
+ for (let i = 0;i < globParts.length; i++) {
+ for (let j = 0;j < globParts[i].length; j++) {
+ if (globParts[i][j] === "**") {
+ globParts[i][j] = "*";
+ }
+ }
+ }
+ }
+ const { optimizationLevel = 1 } = this.options;
+ if (optimizationLevel >= 2) {
+ globParts = this.firstPhasePreProcess(globParts);
+ globParts = this.secondPhasePreProcess(globParts);
+ } else if (optimizationLevel >= 1) {
+ globParts = this.levelOneOptimize(globParts);
+ } else {
+ globParts = this.adjascentGlobstarOptimize(globParts);
+ }
+ return globParts;
+ }
+ adjascentGlobstarOptimize(globParts) {
+ return globParts.map((parts) => {
+ let gs = -1;
+ while ((gs = parts.indexOf("**", gs + 1)) !== -1) {
+ let i = gs;
+ while (parts[i + 1] === "**") {
+ i++;
+ }
+ if (i !== gs) {
+ parts.splice(gs, i - gs);
+ }
+ }
+ return parts;
+ });
+ }
+ levelOneOptimize(globParts) {
+ return globParts.map((parts) => {
+ parts = parts.reduce((set, part) => {
+ const prev = set[set.length - 1];
+ if (part === "**" && prev === "**") {
+ return set;
+ }
+ if (part === "..") {
+ if (prev && prev !== ".." && prev !== "." && prev !== "**") {
+ set.pop();
+ return set;
+ }
+ }
+ set.push(part);
+ return set;
+ }, []);
+ return parts.length === 0 ? [""] : parts;
+ });
+ }
+ levelTwoFileOptimize(parts) {
+ if (!Array.isArray(parts)) {
+ parts = this.slashSplit(parts);
+ }
+ let didSomething = false;
+ do {
+ didSomething = false;
+ if (!this.preserveMultipleSlashes) {
+ for (let i = 1;i < parts.length - 1; i++) {
+ const p = parts[i];
+ if (i === 1 && p === "" && parts[0] === "")
+ continue;
+ if (p === "." || p === "") {
+ didSomething = true;
+ parts.splice(i, 1);
+ i--;
+ }
+ }
+ if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
+ didSomething = true;
+ parts.pop();
+ }
+ }
+ let dd = 0;
+ while ((dd = parts.indexOf("..", dd + 1)) !== -1) {
+ const p = parts[dd - 1];
+ if (p && p !== "." && p !== ".." && p !== "**") {
+ didSomething = true;
+ parts.splice(dd - 1, 2);
+ dd -= 2;
+ }
+ }
+ } while (didSomething);
+ return parts.length === 0 ? [""] : parts;
+ }
+ firstPhasePreProcess(globParts) {
+ let didSomething = false;
+ do {
+ didSomething = false;
+ for (let parts of globParts) {
+ let gs = -1;
+ while ((gs = parts.indexOf("**", gs + 1)) !== -1) {
+ let gss = gs;
+ while (parts[gss + 1] === "**") {
+ gss++;
+ }
+ if (gss > gs) {
+ parts.splice(gs + 1, gss - gs);
+ }
+ let next = parts[gs + 1];
+ const p = parts[gs + 2];
+ const p2 = parts[gs + 3];
+ if (next !== "..")
+ continue;
+ if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
+ continue;
+ }
+ didSomething = true;
+ parts.splice(gs, 1);
+ const other = parts.slice(0);
+ other[gs] = "**";
+ globParts.push(other);
+ gs--;
+ }
+ if (!this.preserveMultipleSlashes) {
+ for (let i = 1;i < parts.length - 1; i++) {
+ const p = parts[i];
+ if (i === 1 && p === "" && parts[0] === "")
+ continue;
+ if (p === "." || p === "") {
+ didSomething = true;
+ parts.splice(i, 1);
+ i--;
+ }
+ }
+ if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
+ didSomething = true;
+ parts.pop();
+ }
+ }
+ let dd = 0;
+ while ((dd = parts.indexOf("..", dd + 1)) !== -1) {
+ const p = parts[dd - 1];
+ if (p && p !== "." && p !== ".." && p !== "**") {
+ didSomething = true;
+ const needDot = dd === 1 && parts[dd + 1] === "**";
+ const splin = needDot ? ["."] : [];
+ parts.splice(dd - 1, 2, ...splin);
+ if (parts.length === 0)
+ parts.push("");
+ dd -= 2;
+ }
+ }
+ }
+ } while (didSomething);
+ return globParts;
+ }
+ secondPhasePreProcess(globParts) {
+ for (let i = 0;i < globParts.length - 1; i++) {
+ for (let j = i + 1;j < globParts.length; j++) {
+ const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
+ if (matched) {
+ globParts[i] = [];
+ globParts[j] = matched;
+ break;
+ }
+ }
+ }
+ return globParts.filter((gs) => gs.length);
+ }
+ partsMatch(a, b, emptyGSMatch = false) {
+ let ai = 0;
+ let bi = 0;
+ let result = [];
+ let which = "";
+ while (ai < a.length && bi < b.length) {
+ if (a[ai] === b[bi]) {
+ result.push(which === "b" ? b[bi] : a[ai]);
+ ai++;
+ bi++;
+ } else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
+ result.push(a[ai]);
+ ai++;
+ } else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
+ result.push(b[bi]);
+ bi++;
+ } else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
+ if (which === "b")
+ return false;
+ which = "a";
+ result.push(a[ai]);
+ ai++;
+ bi++;
+ } else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
+ if (which === "a")
+ return false;
+ which = "b";
+ result.push(b[bi]);
+ ai++;
+ bi++;
+ } else {
+ return false;
+ }
+ }
+ return a.length === b.length && result;
+ }
+ parseNegate() {
+ if (this.nonegate)
+ return;
+ const pattern = this.pattern;
+ let negate = false;
+ let negateOffset = 0;
+ for (let i = 0;i < pattern.length && pattern.charAt(i) === "!"; i++) {
+ negate = !negate;
+ negateOffset++;
+ }
+ if (negateOffset)
+ this.pattern = pattern.slice(negateOffset);
+ this.negate = negate;
+ }
+ matchOne(file, pattern, partial = false) {
+ const options = this.options;
+ if (this.isWindows) {
+ const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
+ const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
+ const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
+ const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
+ const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
+ const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
+ if (typeof fdi === "number" && typeof pdi === "number") {
+ const [fd, pd] = [file[fdi], pattern[pdi]];
+ if (fd.toLowerCase() === pd.toLowerCase()) {
+ pattern[pdi] = fd;
+ if (pdi > fdi) {
+ pattern = pattern.slice(pdi);
+ } else if (fdi > pdi) {
+ file = file.slice(fdi);
+ }
+ }
+ }
+ }
+ const { optimizationLevel = 1 } = this.options;
+ if (optimizationLevel >= 2) {
+ file = this.levelTwoFileOptimize(file);
+ }
+ this.debug("matchOne", this, { file, pattern });
+ this.debug("matchOne", file.length, pattern.length);
+ for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length;fi < fl && pi < pl; fi++, pi++) {
+ this.debug("matchOne loop");
+ var p = pattern[pi];
+ var f = file[fi];
+ this.debug(pattern, p, f);
+ if (p === false) {
+ return false;
+ }
+ if (p === exports.GLOBSTAR) {
+ this.debug("GLOBSTAR", [pattern, p, f]);
+ var fr = fi;
+ var pr = pi + 1;
+ if (pr === pl) {
+ this.debug("** at the end");
+ for (;fi < fl; fi++) {
+ if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
+ return false;
+ }
+ return true;
+ }
+ while (fr < fl) {
+ var swallowee = file[fr];
+ this.debug(`
+globstar while`, file, fr, pattern, pr, swallowee);
+ if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
+ this.debug("globstar found match!", fr, fl, swallowee);
+ return true;
+ } else {
+ if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
+ this.debug("dot detected!", file, fr, pattern, pr);
+ break;
+ }
+ this.debug("globstar swallow a segment, and continue");
+ fr++;
+ }
+ }
+ if (partial) {
+ this.debug(`
+>>> no match, partial?`, file, fr, pattern, pr);
+ if (fr === fl) {
+ return true;
+ }
+ }
+ return false;
+ }
+ let hit;
+ if (typeof p === "string") {
+ hit = f === p;
+ this.debug("string match", p, f, hit);
+ } else {
+ hit = p.test(f);
+ this.debug("pattern match", p, f, hit);
+ }
+ if (!hit)
+ return false;
+ }
+ if (fi === fl && pi === pl) {
+ return true;
+ } else if (fi === fl) {
+ return partial;
+ } else if (pi === pl) {
+ return fi === fl - 1 && file[fi] === "";
+ } else {
+ throw new Error("wtf?");
+ }
+ }
+ braceExpand() {
+ return (0, exports.braceExpand)(this.pattern, this.options);
+ }
+ parse(pattern) {
+ (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
+ const options = this.options;
+ if (pattern === "**")
+ return exports.GLOBSTAR;
+ if (pattern === "")
+ return "";
+ let m;
+ let fastTest = null;
+ if (m = pattern.match(starRE)) {
+ fastTest = options.dot ? starTestDot : starTest;
+ } else if (m = pattern.match(starDotExtRE)) {
+ fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
+ } else if (m = pattern.match(qmarksRE)) {
+ fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
+ } else if (m = pattern.match(starDotStarRE)) {
+ fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
+ } else if (m = pattern.match(dotStarRE)) {
+ fastTest = dotStarTest;
+ }
+ const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
+ if (fastTest && typeof re === "object") {
+ Reflect.defineProperty(re, "test", { value: fastTest });
+ }
+ return re;
+ }
+ makeRe() {
+ if (this.regexp || this.regexp === false)
+ return this.regexp;
+ const set = this.set;
+ if (!set.length) {
+ this.regexp = false;
+ return this.regexp;
+ }
+ const options = this.options;
+ const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
+ const flags = new Set(options.nocase ? ["i"] : []);
+ let re = set.map((pattern) => {
+ const pp = pattern.map((p) => {
+ if (p instanceof RegExp) {
+ for (const f of p.flags.split(""))
+ flags.add(f);
+ }
+ return typeof p === "string" ? regExpEscape(p) : p === exports.GLOBSTAR ? exports.GLOBSTAR : p._src;
+ });
+ pp.forEach((p, i) => {
+ const next = pp[i + 1];
+ const prev = pp[i - 1];
+ if (p !== exports.GLOBSTAR || prev === exports.GLOBSTAR) {
+ return;
+ }
+ if (prev === undefined) {
+ if (next !== undefined && next !== exports.GLOBSTAR) {
+ pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
+ } else {
+ pp[i] = twoStar;
+ }
+ } else if (next === undefined) {
+ pp[i - 1] = prev + "(?:\\/|" + twoStar + ")?";
+ } else if (next !== exports.GLOBSTAR) {
+ pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
+ pp[i + 1] = exports.GLOBSTAR;
+ }
+ });
+ return pp.filter((p) => p !== exports.GLOBSTAR).join("/");
+ }).join("|");
+ const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
+ re = "^" + open + re + close + "$";
+ if (this.negate)
+ re = "^(?!" + re + ").+$";
+ try {
+ this.regexp = new RegExp(re, [...flags].join(""));
+ } catch (ex) {
+ this.regexp = false;
+ }
+ return this.regexp;
+ }
+ slashSplit(p) {
+ if (this.preserveMultipleSlashes) {
+ return p.split("/");
+ } else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
+ return ["", ...p.split(/\/+/)];
+ } else {
+ return p.split(/\/+/);
+ }
+ }
+ match(f, partial = this.partial) {
+ this.debug("match", f, this.pattern);
+ if (this.comment) {
+ return false;
+ }
+ if (this.empty) {
+ return f === "";
+ }
+ if (f === "/" && partial) {
+ return true;
+ }
+ const options = this.options;
+ if (this.isWindows) {
+ f = f.split("\\").join("/");
+ }
+ const ff = this.slashSplit(f);
+ this.debug(this.pattern, "split", ff);
+ const set = this.set;
+ this.debug(this.pattern, "set", set);
+ let filename = ff[ff.length - 1];
+ if (!filename) {
+ for (let i = ff.length - 2;!filename && i >= 0; i--) {
+ filename = ff[i];
+ }
+ }
+ for (let i = 0;i < set.length; i++) {
+ const pattern = set[i];
+ let file = ff;
+ if (options.matchBase && pattern.length === 1) {
+ file = [filename];
+ }
+ const hit = this.matchOne(file, pattern, partial);
+ if (hit) {
+ if (options.flipNegate) {
+ return true;
+ }
+ return !this.negate;
+ }
+ }
+ if (options.flipNegate) {
+ return false;
+ }
+ return this.negate;
+ }
+ static defaults(def) {
+ return exports.minimatch.defaults(def).Minimatch;
+ }
+ }
+ exports.Minimatch = Minimatch;
+ var ast_js_2 = require_ast();
+ Object.defineProperty(exports, "AST", { enumerable: true, get: function() {
+ return ast_js_2.AST;
+ } });
+ var escape_js_2 = require_escape();
+ Object.defineProperty(exports, "escape", { enumerable: true, get: function() {
+ return escape_js_2.escape;
+ } });
+ var unescape_js_2 = require_unescape();
+ Object.defineProperty(exports, "unescape", { enumerable: true, get: function() {
+ return unescape_js_2.unescape;
+ } });
+ exports.minimatch.AST = ast_js_1.AST;
+ exports.minimatch.Minimatch = Minimatch;
+ exports.minimatch.escape = escape_js_1.escape;
+ exports.minimatch.unescape = unescape_js_1.unescape;
+});
+
+// node_modules/lru-cache/dist/commonjs/index.js
+var require_commonjs2 = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.LRUCache = undefined;
+ var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
+ var warned = new Set;
+ var PROCESS = typeof process === "object" && !!process ? process : {};
+ var emitWarning = (msg, type, code, fn) => {
+ typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
+ };
+ var AC = globalThis.AbortController;
+ var AS = globalThis.AbortSignal;
+ if (typeof AC === "undefined") {
+ AS = class AbortSignal {
+ onabort;
+ _onabort = [];
+ reason;
+ aborted = false;
+ addEventListener(_3, fn) {
+ this._onabort.push(fn);
+ }
+ };
+ AC = class AbortController2 {
+ constructor() {
+ warnACPolyfill();
+ }
+ signal = new AS;
+ abort(reason) {
+ if (this.signal.aborted)
+ return;
+ this.signal.reason = reason;
+ this.signal.aborted = true;
+ for (const fn of this.signal._onabort) {
+ fn(reason);
+ }
+ this.signal.onabort?.(reason);
+ }
+ };
+ let printACPolyfillWarning = PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1";
+ const warnACPolyfill = () => {
+ if (!printACPolyfillWarning)
+ return;
+ printACPolyfillWarning = false;
+ emitWarning("AbortController is not defined. If using lru-cache in " + "node 14, load an AbortController polyfill from the " + "`node-abort-controller` package. A minimal polyfill is " + "provided for use by LRUCache.fetch(), but it should not be " + "relied upon in other contexts (eg, passing it to other APIs that " + "use AbortController/AbortSignal might have undesirable effects). " + "You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", warnACPolyfill);
+ };
+ }
+ var shouldWarn = (code) => !warned.has(code);
+ var TYPE = Symbol("type");
+ var isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
+ var getUintArray = (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
+
+ class ZeroArray extends Array {
+ constructor(size) {
+ super(size);
+ this.fill(0);
+ }
+ }
+
+ class Stack {
+ heap;
+ length;
+ static #constructing = false;
+ static create(max) {
+ const HeapCls = getUintArray(max);
+ if (!HeapCls)
+ return [];
+ Stack.#constructing = true;
+ const s = new Stack(max, HeapCls);
+ Stack.#constructing = false;
+ return s;
+ }
+ constructor(max, HeapCls) {
+ if (!Stack.#constructing) {
+ throw new TypeError("instantiate Stack using Stack.create(n)");
+ }
+ this.heap = new HeapCls(max);
+ this.length = 0;
+ }
+ push(n) {
+ this.heap[this.length++] = n;
+ }
+ pop() {
+ return this.heap[--this.length];
+ }
+ }
+
+ class LRUCache {
+ #max;
+ #maxSize;
+ #dispose;
+ #disposeAfter;
+ #fetchMethod;
+ #memoMethod;
+ ttl;
+ ttlResolution;
+ ttlAutopurge;
+ updateAgeOnGet;
+ updateAgeOnHas;
+ allowStale;
+ noDisposeOnSet;
+ noUpdateTTL;
+ maxEntrySize;
+ sizeCalculation;
+ noDeleteOnFetchRejection;
+ noDeleteOnStaleGet;
+ allowStaleOnFetchAbort;
+ allowStaleOnFetchRejection;
+ ignoreFetchAbort;
+ #size;
+ #calculatedSize;
+ #keyMap;
+ #keyList;
+ #valList;
+ #next;
+ #prev;
+ #head;
+ #tail;
+ #free;
+ #disposed;
+ #sizes;
+ #starts;
+ #ttls;
+ #hasDispose;
+ #hasFetchMethod;
+ #hasDisposeAfter;
+ static unsafeExposeInternals(c) {
+ return {
+ starts: c.#starts,
+ ttls: c.#ttls,
+ sizes: c.#sizes,
+ keyMap: c.#keyMap,
+ keyList: c.#keyList,
+ valList: c.#valList,
+ next: c.#next,
+ prev: c.#prev,
+ get head() {
+ return c.#head;
+ },
+ get tail() {
+ return c.#tail;
+ },
+ free: c.#free,
+ isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
+ backgroundFetch: (k, index, options, context) => c.#backgroundFetch(k, index, options, context),
+ moveToTail: (index) => c.#moveToTail(index),
+ indexes: (options) => c.#indexes(options),
+ rindexes: (options) => c.#rindexes(options),
+ isStale: (index) => c.#isStale(index)
+ };
+ }
+ get max() {
+ return this.#max;
+ }
+ get maxSize() {
+ return this.#maxSize;
+ }
+ get calculatedSize() {
+ return this.#calculatedSize;
+ }
+ get size() {
+ return this.#size;
+ }
+ get fetchMethod() {
+ return this.#fetchMethod;
+ }
+ get memoMethod() {
+ return this.#memoMethod;
+ }
+ get dispose() {
+ return this.#dispose;
+ }
+ get disposeAfter() {
+ return this.#disposeAfter;
+ }
+ constructor(options) {
+ const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
+ if (max !== 0 && !isPosInt(max)) {
+ throw new TypeError("max option must be a nonnegative integer");
+ }
+ const UintArray = max ? getUintArray(max) : Array;
+ if (!UintArray) {
+ throw new Error("invalid max value: " + max);
+ }
+ this.#max = max;
+ this.#maxSize = maxSize;
+ this.maxEntrySize = maxEntrySize || this.#maxSize;
+ this.sizeCalculation = sizeCalculation;
+ if (this.sizeCalculation) {
+ if (!this.#maxSize && !this.maxEntrySize) {
+ throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
+ }
+ if (typeof this.sizeCalculation !== "function") {
+ throw new TypeError("sizeCalculation set to non-function");
+ }
+ }
+ if (memoMethod !== undefined && typeof memoMethod !== "function") {
+ throw new TypeError("memoMethod must be a function if defined");
+ }
+ this.#memoMethod = memoMethod;
+ if (fetchMethod !== undefined && typeof fetchMethod !== "function") {
+ throw new TypeError("fetchMethod must be a function if specified");
+ }
+ this.#fetchMethod = fetchMethod;
+ this.#hasFetchMethod = !!fetchMethod;
+ this.#keyMap = new Map;
+ this.#keyList = new Array(max).fill(undefined);
+ this.#valList = new Array(max).fill(undefined);
+ this.#next = new UintArray(max);
+ this.#prev = new UintArray(max);
+ this.#head = 0;
+ this.#tail = 0;
+ this.#free = Stack.create(max);
+ this.#size = 0;
+ this.#calculatedSize = 0;
+ if (typeof dispose === "function") {
+ this.#dispose = dispose;
+ }
+ if (typeof disposeAfter === "function") {
+ this.#disposeAfter = disposeAfter;
+ this.#disposed = [];
+ } else {
+ this.#disposeAfter = undefined;
+ this.#disposed = undefined;
+ }
+ this.#hasDispose = !!this.#dispose;
+ this.#hasDisposeAfter = !!this.#disposeAfter;
+ this.noDisposeOnSet = !!noDisposeOnSet;
+ this.noUpdateTTL = !!noUpdateTTL;
+ this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;
+ this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;
+ this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;
+ this.ignoreFetchAbort = !!ignoreFetchAbort;
+ if (this.maxEntrySize !== 0) {
+ if (this.#maxSize !== 0) {
+ if (!isPosInt(this.#maxSize)) {
+ throw new TypeError("maxSize must be a positive integer if specified");
+ }
+ }
+ if (!isPosInt(this.maxEntrySize)) {
+ throw new TypeError("maxEntrySize must be a positive integer if specified");
+ }
+ this.#initializeSizeTracking();
+ }
+ this.allowStale = !!allowStale;
+ this.noDeleteOnStaleGet = !!noDeleteOnStaleGet;
+ this.updateAgeOnGet = !!updateAgeOnGet;
+ this.updateAgeOnHas = !!updateAgeOnHas;
+ this.ttlResolution = isPosInt(ttlResolution) || ttlResolution === 0 ? ttlResolution : 1;
+ this.ttlAutopurge = !!ttlAutopurge;
+ this.ttl = ttl || 0;
+ if (this.ttl) {
+ if (!isPosInt(this.ttl)) {
+ throw new TypeError("ttl must be a positive integer if specified");
+ }
+ this.#initializeTTLTracking();
+ }
+ if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) {
+ throw new TypeError("At least one of max, maxSize, or ttl is required");
+ }
+ if (!this.ttlAutopurge && !this.#max && !this.#maxSize) {
+ const code = "LRU_CACHE_UNBOUNDED";
+ if (shouldWarn(code)) {
+ warned.add(code);
+ const msg = "TTL caching without ttlAutopurge, max, or maxSize can " + "result in unbounded memory consumption.";
+ emitWarning(msg, "UnboundedCacheWarning", code, LRUCache);
+ }
+ }
+ }
+ getRemainingTTL(key2) {
+ return this.#keyMap.has(key2) ? Infinity : 0;
+ }
+ #initializeTTLTracking() {
+ const ttls = new ZeroArray(this.#max);
+ const starts = new ZeroArray(this.#max);
+ this.#ttls = ttls;
+ this.#starts = starts;
+ this.#setItemTTL = (index, ttl, start = perf.now()) => {
+ starts[index] = ttl !== 0 ? start : 0;
+ ttls[index] = ttl;
+ if (ttl !== 0 && this.ttlAutopurge) {
+ const t = setTimeout(() => {
+ if (this.#isStale(index)) {
+ this.#delete(this.#keyList[index], "expire");
+ }
+ }, ttl + 1);
+ if (t.unref) {
+ t.unref();
+ }
+ }
+ };
+ this.#updateItemAge = (index) => {
+ starts[index] = ttls[index] !== 0 ? perf.now() : 0;
+ };
+ this.#statusTTL = (status, index) => {
+ if (ttls[index]) {
+ const ttl = ttls[index];
+ const start = starts[index];
+ if (!ttl || !start)
+ return;
+ status.ttl = ttl;
+ status.start = start;
+ status.now = cachedNow || getNow();
+ const age = status.now - start;
+ status.remainingTTL = ttl - age;
+ }
+ };
+ let cachedNow = 0;
+ const getNow = () => {
+ const n = perf.now();
+ if (this.ttlResolution > 0) {
+ cachedNow = n;
+ const t = setTimeout(() => cachedNow = 0, this.ttlResolution);
+ if (t.unref) {
+ t.unref();
+ }
+ }
+ return n;
+ };
+ this.getRemainingTTL = (key2) => {
+ const index = this.#keyMap.get(key2);
+ if (index === undefined) {
+ return 0;
+ }
+ const ttl = ttls[index];
+ const start = starts[index];
+ if (!ttl || !start) {
+ return Infinity;
+ }
+ const age = (cachedNow || getNow()) - start;
+ return ttl - age;
+ };
+ this.#isStale = (index) => {
+ const s = starts[index];
+ const t = ttls[index];
+ return !!t && !!s && (cachedNow || getNow()) - s > t;
+ };
+ }
+ #updateItemAge = () => {
+ };
+ #statusTTL = () => {
+ };
+ #setItemTTL = () => {
+ };
+ #isStale = () => false;
+ #initializeSizeTracking() {
+ const sizes = new ZeroArray(this.#max);
+ this.#calculatedSize = 0;
+ this.#sizes = sizes;
+ this.#removeItemSize = (index) => {
+ this.#calculatedSize -= sizes[index];
+ sizes[index] = 0;
+ };
+ this.#requireSize = (k, v, size, sizeCalculation) => {
+ if (this.#isBackgroundFetch(v)) {
+ return 0;
+ }
+ if (!isPosInt(size)) {
+ if (sizeCalculation) {
+ if (typeof sizeCalculation !== "function") {
+ throw new TypeError("sizeCalculation must be a function");
+ }
+ size = sizeCalculation(v, k);
+ if (!isPosInt(size)) {
+ throw new TypeError("sizeCalculation return invalid (expect positive integer)");
+ }
+ } else {
+ throw new TypeError("invalid size value (must be positive integer). " + "When maxSize or maxEntrySize is used, sizeCalculation " + "or size must be set.");
+ }
+ }
+ return size;
+ };
+ this.#addItemSize = (index, size, status) => {
+ sizes[index] = size;
+ if (this.#maxSize) {
+ const maxSize = this.#maxSize - sizes[index];
+ while (this.#calculatedSize > maxSize) {
+ this.#evict(true);
+ }
+ }
+ this.#calculatedSize += sizes[index];
+ if (status) {
+ status.entrySize = size;
+ status.totalCalculatedSize = this.#calculatedSize;
+ }
+ };
+ }
+ #removeItemSize = (_i) => {
+ };
+ #addItemSize = (_i, _s, _st) => {
+ };
+ #requireSize = (_k, _v, size, sizeCalculation) => {
+ if (size || sizeCalculation) {
+ throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
+ }
+ return 0;
+ };
+ *#indexes({ allowStale = this.allowStale } = {}) {
+ if (this.#size) {
+ for (let i = this.#tail;; ) {
+ if (!this.#isValidIndex(i)) {
+ break;
+ }
+ if (allowStale || !this.#isStale(i)) {
+ yield i;
+ }
+ if (i === this.#head) {
+ break;
+ } else {
+ i = this.#prev[i];
+ }
+ }
+ }
+ }
+ *#rindexes({ allowStale = this.allowStale } = {}) {
+ if (this.#size) {
+ for (let i = this.#head;; ) {
+ if (!this.#isValidIndex(i)) {
+ break;
+ }
+ if (allowStale || !this.#isStale(i)) {
+ yield i;
+ }
+ if (i === this.#tail) {
+ break;
+ } else {
+ i = this.#next[i];
+ }
+ }
+ }
+ }
+ #isValidIndex(index) {
+ return index !== undefined && this.#keyMap.get(this.#keyList[index]) === index;
+ }
+ *entries() {
+ for (const i of this.#indexes()) {
+ if (this.#valList[i] !== undefined && this.#keyList[i] !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
+ yield [this.#keyList[i], this.#valList[i]];
+ }
+ }
+ }
+ *rentries() {
+ for (const i of this.#rindexes()) {
+ if (this.#valList[i] !== undefined && this.#keyList[i] !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
+ yield [this.#keyList[i], this.#valList[i]];
+ }
+ }
+ }
+ *keys() {
+ for (const i of this.#indexes()) {
+ const k = this.#keyList[i];
+ if (k !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
+ yield k;
+ }
+ }
+ }
+ *rkeys() {
+ for (const i of this.#rindexes()) {
+ const k = this.#keyList[i];
+ if (k !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
+ yield k;
+ }
+ }
+ }
+ *values() {
+ for (const i of this.#indexes()) {
+ const v = this.#valList[i];
+ if (v !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
+ yield this.#valList[i];
+ }
+ }
+ }
+ *rvalues() {
+ for (const i of this.#rindexes()) {
+ const v = this.#valList[i];
+ if (v !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
+ yield this.#valList[i];
+ }
+ }
+ }
+ [Symbol.iterator]() {
+ return this.entries();
+ }
+ [Symbol.toStringTag] = "LRUCache";
+ find(fn, getOptions = {}) {
+ for (const i of this.#indexes()) {
+ const v = this.#valList[i];
+ const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
+ if (value === undefined)
+ continue;
+ if (fn(value, this.#keyList[i], this)) {
+ return this.get(this.#keyList[i], getOptions);
+ }
+ }
+ }
+ forEach(fn, thisp = this) {
+ for (const i of this.#indexes()) {
+ const v = this.#valList[i];
+ const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
+ if (value === undefined)
+ continue;
+ fn.call(thisp, value, this.#keyList[i], this);
+ }
+ }
+ rforEach(fn, thisp = this) {
+ for (const i of this.#rindexes()) {
+ const v = this.#valList[i];
+ const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
+ if (value === undefined)
+ continue;
+ fn.call(thisp, value, this.#keyList[i], this);
+ }
+ }
+ purgeStale() {
+ let deleted = false;
+ for (const i of this.#rindexes({ allowStale: true })) {
+ if (this.#isStale(i)) {
+ this.#delete(this.#keyList[i], "expire");
+ deleted = true;
+ }
+ }
+ return deleted;
+ }
+ info(key2) {
+ const i = this.#keyMap.get(key2);
+ if (i === undefined)
+ return;
+ const v = this.#valList[i];
+ const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
+ if (value === undefined)
+ return;
+ const entry = { value };
+ if (this.#ttls && this.#starts) {
+ const ttl = this.#ttls[i];
+ const start = this.#starts[i];
+ if (ttl && start) {
+ const remain = ttl - (perf.now() - start);
+ entry.ttl = remain;
+ entry.start = Date.now();
+ }
+ }
+ if (this.#sizes) {
+ entry.size = this.#sizes[i];
+ }
+ return entry;
+ }
+ dump() {
+ const arr = [];
+ for (const i of this.#indexes({ allowStale: true })) {
+ const key2 = this.#keyList[i];
+ const v = this.#valList[i];
+ const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
+ if (value === undefined || key2 === undefined)
+ continue;
+ const entry = { value };
+ if (this.#ttls && this.#starts) {
+ entry.ttl = this.#ttls[i];
+ const age = perf.now() - this.#starts[i];
+ entry.start = Math.floor(Date.now() - age);
+ }
+ if (this.#sizes) {
+ entry.size = this.#sizes[i];
+ }
+ arr.unshift([key2, entry]);
+ }
+ return arr;
+ }
+ load(arr) {
+ this.clear();
+ for (const [key2, entry] of arr) {
+ if (entry.start) {
+ const age = Date.now() - entry.start;
+ entry.start = perf.now() - age;
+ }
+ this.set(key2, entry.value, entry);
+ }
+ }
+ set(k, v, setOptions = {}) {
+ if (v === undefined) {
+ this.delete(k);
+ return this;
+ }
+ const { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status } = setOptions;
+ let { noUpdateTTL = this.noUpdateTTL } = setOptions;
+ const size = this.#requireSize(k, v, setOptions.size || 0, sizeCalculation);
+ if (this.maxEntrySize && size > this.maxEntrySize) {
+ if (status) {
+ status.set = "miss";
+ status.maxEntrySizeExceeded = true;
+ }
+ this.#delete(k, "set");
+ return this;
+ }
+ let index = this.#size === 0 ? undefined : this.#keyMap.get(k);
+ if (index === undefined) {
+ index = this.#size === 0 ? this.#tail : this.#free.length !== 0 ? this.#free.pop() : this.#size === this.#max ? this.#evict(false) : this.#size;
+ this.#keyList[index] = k;
+ this.#valList[index] = v;
+ this.#keyMap.set(k, index);
+ this.#next[this.#tail] = index;
+ this.#prev[index] = this.#tail;
+ this.#tail = index;
+ this.#size++;
+ this.#addItemSize(index, size, status);
+ if (status)
+ status.set = "add";
+ noUpdateTTL = false;
+ } else {
+ this.#moveToTail(index);
+ const oldVal = this.#valList[index];
+ if (v !== oldVal) {
+ if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {
+ oldVal.__abortController.abort(new Error("replaced"));
+ const { __staleWhileFetching: s } = oldVal;
+ if (s !== undefined && !noDisposeOnSet) {
+ if (this.#hasDispose) {
+ this.#dispose?.(s, k, "set");
+ }
+ if (this.#hasDisposeAfter) {
+ this.#disposed?.push([s, k, "set"]);
+ }
+ }
+ } else if (!noDisposeOnSet) {
+ if (this.#hasDispose) {
+ this.#dispose?.(oldVal, k, "set");
+ }
+ if (this.#hasDisposeAfter) {
+ this.#disposed?.push([oldVal, k, "set"]);
+ }
+ }
+ this.#removeItemSize(index);
+ this.#addItemSize(index, size, status);
+ this.#valList[index] = v;
+ if (status) {
+ status.set = "replace";
+ const oldValue = oldVal && this.#isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
+ if (oldValue !== undefined)
+ status.oldValue = oldValue;
+ }
+ } else if (status) {
+ status.set = "update";
+ }
+ }
+ if (ttl !== 0 && !this.#ttls) {
+ this.#initializeTTLTracking();
+ }
+ if (this.#ttls) {
+ if (!noUpdateTTL) {
+ this.#setItemTTL(index, ttl, start);
+ }
+ if (status)
+ this.#statusTTL(status, index);
+ }
+ if (!noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {
+ const dt = this.#disposed;
+ let task;
+ while (task = dt?.shift()) {
+ this.#disposeAfter?.(...task);
+ }
+ }
+ return this;
+ }
+ pop() {
+ try {
+ while (this.#size) {
+ const val = this.#valList[this.#head];
+ this.#evict(true);
+ if (this.#isBackgroundFetch(val)) {
+ if (val.__staleWhileFetching) {
+ return val.__staleWhileFetching;
+ }
+ } else if (val !== undefined) {
+ return val;
+ }
+ }
+ } finally {
+ if (this.#hasDisposeAfter && this.#disposed) {
+ const dt = this.#disposed;
+ let task;
+ while (task = dt?.shift()) {
+ this.#disposeAfter?.(...task);
+ }
+ }
+ }
+ }
+ #evict(free) {
+ const head = this.#head;
+ const k = this.#keyList[head];
+ const v = this.#valList[head];
+ if (this.#hasFetchMethod && this.#isBackgroundFetch(v)) {
+ v.__abortController.abort(new Error("evicted"));
+ } else if (this.#hasDispose || this.#hasDisposeAfter) {
+ if (this.#hasDispose) {
+ this.#dispose?.(v, k, "evict");
+ }
+ if (this.#hasDisposeAfter) {
+ this.#disposed?.push([v, k, "evict"]);
+ }
+ }
+ this.#removeItemSize(head);
+ if (free) {
+ this.#keyList[head] = undefined;
+ this.#valList[head] = undefined;
+ this.#free.push(head);
+ }
+ if (this.#size === 1) {
+ this.#head = this.#tail = 0;
+ this.#free.length = 0;
+ } else {
+ this.#head = this.#next[head];
+ }
+ this.#keyMap.delete(k);
+ this.#size--;
+ return head;
+ }
+ has(k, hasOptions = {}) {
+ const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions;
+ const index = this.#keyMap.get(k);
+ if (index !== undefined) {
+ const v = this.#valList[index];
+ if (this.#isBackgroundFetch(v) && v.__staleWhileFetching === undefined) {
+ return false;
+ }
+ if (!this.#isStale(index)) {
+ if (updateAgeOnHas) {
+ this.#updateItemAge(index);
+ }
+ if (status) {
+ status.has = "hit";
+ this.#statusTTL(status, index);
+ }
+ return true;
+ } else if (status) {
+ status.has = "stale";
+ this.#statusTTL(status, index);
+ }
+ } else if (status) {
+ status.has = "miss";
+ }
+ return false;
+ }
+ peek(k, peekOptions = {}) {
+ const { allowStale = this.allowStale } = peekOptions;
+ const index = this.#keyMap.get(k);
+ if (index === undefined || !allowStale && this.#isStale(index)) {
+ return;
+ }
+ const v = this.#valList[index];
+ return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
+ }
+ #backgroundFetch(k, index, options, context) {
+ const v = index === undefined ? undefined : this.#valList[index];
+ if (this.#isBackgroundFetch(v)) {
+ return v;
+ }
+ const ac = new AC;
+ const { signal } = options;
+ signal?.addEventListener("abort", () => ac.abort(signal.reason), {
+ signal: ac.signal
+ });
+ const fetchOpts = {
+ signal: ac.signal,
+ options,
+ context
+ };
+ const cb = (v2, updateCache = false) => {
+ const { aborted } = ac.signal;
+ const ignoreAbort = options.ignoreFetchAbort && v2 !== undefined;
+ if (options.status) {
+ if (aborted && !updateCache) {
+ options.status.fetchAborted = true;
+ options.status.fetchError = ac.signal.reason;
+ if (ignoreAbort)
+ options.status.fetchAbortIgnored = true;
+ } else {
+ options.status.fetchResolved = true;
+ }
+ }
+ if (aborted && !ignoreAbort && !updateCache) {
+ return fetchFail(ac.signal.reason);
+ }
+ const bf2 = p;
+ if (this.#valList[index] === p) {
+ if (v2 === undefined) {
+ if (bf2.__staleWhileFetching) {
+ this.#valList[index] = bf2.__staleWhileFetching;
+ } else {
+ this.#delete(k, "fetch");
+ }
+ } else {
+ if (options.status)
+ options.status.fetchUpdated = true;
+ this.set(k, v2, fetchOpts.options);
+ }
+ }
+ return v2;
+ };
+ const eb = (er) => {
+ if (options.status) {
+ options.status.fetchRejected = true;
+ options.status.fetchError = er;
+ }
+ return fetchFail(er);
+ };
+ const fetchFail = (er) => {
+ const { aborted } = ac.signal;
+ const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
+ const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
+ const noDelete = allowStale || options.noDeleteOnFetchRejection;
+ const bf2 = p;
+ if (this.#valList[index] === p) {
+ const del = !noDelete || bf2.__staleWhileFetching === undefined;
+ if (del) {
+ this.#delete(k, "fetch");
+ } else if (!allowStaleAborted) {
+ this.#valList[index] = bf2.__staleWhileFetching;
+ }
+ }
+ if (allowStale) {
+ if (options.status && bf2.__staleWhileFetching !== undefined) {
+ options.status.returnedStale = true;
+ }
+ return bf2.__staleWhileFetching;
+ } else if (bf2.__returned === bf2) {
+ throw er;
+ }
+ };
+ const pcall = (res, rej) => {
+ const fmp = this.#fetchMethod?.(k, v, fetchOpts);
+ if (fmp && fmp instanceof Promise) {
+ fmp.then((v2) => res(v2 === undefined ? undefined : v2), rej);
+ }
+ ac.signal.addEventListener("abort", () => {
+ if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {
+ res(undefined);
+ if (options.allowStaleOnFetchAbort) {
+ res = (v2) => cb(v2, true);
+ }
+ }
+ });
+ };
+ if (options.status)
+ options.status.fetchDispatched = true;
+ const p = new Promise(pcall).then(cb, eb);
+ const bf = Object.assign(p, {
+ __abortController: ac,
+ __staleWhileFetching: v,
+ __returned: undefined
+ });
+ if (index === undefined) {
+ this.set(k, bf, { ...fetchOpts.options, status: undefined });
+ index = this.#keyMap.get(k);
+ } else {
+ this.#valList[index] = bf;
+ }
+ return bf;
+ }
+ #isBackgroundFetch(p) {
+ if (!this.#hasFetchMethod)
+ return false;
+ const b = p;
+ return !!b && b instanceof Promise && b.hasOwnProperty("__staleWhileFetching") && b.__abortController instanceof AC;
+ }
+ async fetch(k, fetchOptions = {}) {
+ const {
+ allowStale = this.allowStale,
+ updateAgeOnGet = this.updateAgeOnGet,
+ noDeleteOnStaleGet = this.noDeleteOnStaleGet,
+ ttl = this.ttl,
+ noDisposeOnSet = this.noDisposeOnSet,
+ size = 0,
+ sizeCalculation = this.sizeCalculation,
+ noUpdateTTL = this.noUpdateTTL,
+ noDeleteOnFetchRejection = this.noDeleteOnFetchRejection,
+ allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
+ ignoreFetchAbort = this.ignoreFetchAbort,
+ allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
+ context,
+ forceRefresh = false,
+ status,
+ signal
+ } = fetchOptions;
+ if (!this.#hasFetchMethod) {
+ if (status)
+ status.fetch = "get";
+ return this.get(k, {
+ allowStale,
+ updateAgeOnGet,
+ noDeleteOnStaleGet,
+ status
+ });
+ }
+ const options = {
+ allowStale,
+ updateAgeOnGet,
+ noDeleteOnStaleGet,
+ ttl,
+ noDisposeOnSet,
+ size,
+ sizeCalculation,
+ noUpdateTTL,
+ noDeleteOnFetchRejection,
+ allowStaleOnFetchRejection,
+ allowStaleOnFetchAbort,
+ ignoreFetchAbort,
+ status,
+ signal
+ };
+ let index = this.#keyMap.get(k);
+ if (index === undefined) {
+ if (status)
+ status.fetch = "miss";
+ const p = this.#backgroundFetch(k, index, options, context);
+ return p.__returned = p;
+ } else {
+ const v = this.#valList[index];
+ if (this.#isBackgroundFetch(v)) {
+ const stale = allowStale && v.__staleWhileFetching !== undefined;
+ if (status) {
+ status.fetch = "inflight";
+ if (stale)
+ status.returnedStale = true;
+ }
+ return stale ? v.__staleWhileFetching : v.__returned = v;
+ }
+ const isStale = this.#isStale(index);
+ if (!forceRefresh && !isStale) {
+ if (status)
+ status.fetch = "hit";
+ this.#moveToTail(index);
+ if (updateAgeOnGet) {
+ this.#updateItemAge(index);
+ }
+ if (status)
+ this.#statusTTL(status, index);
+ return v;
+ }
+ const p = this.#backgroundFetch(k, index, options, context);
+ const hasStale = p.__staleWhileFetching !== undefined;
+ const staleVal = hasStale && allowStale;
+ if (status) {
+ status.fetch = isStale ? "stale" : "refresh";
+ if (staleVal && isStale)
+ status.returnedStale = true;
+ }
+ return staleVal ? p.__staleWhileFetching : p.__returned = p;
+ }
+ }
+ async forceFetch(k, fetchOptions = {}) {
+ const v = await this.fetch(k, fetchOptions);
+ if (v === undefined)
+ throw new Error("fetch() returned undefined");
+ return v;
+ }
+ memo(k, memoOptions = {}) {
+ const memoMethod = this.#memoMethod;
+ if (!memoMethod) {
+ throw new Error("no memoMethod provided to constructor");
+ }
+ const { context, forceRefresh, ...options } = memoOptions;
+ const v = this.get(k, options);
+ if (!forceRefresh && v !== undefined)
+ return v;
+ const vv = memoMethod(k, v, {
+ options,
+ context
+ });
+ this.set(k, vv, options);
+ return vv;
+ }
+ get(k, getOptions = {}) {
+ const { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, status } = getOptions;
+ const index = this.#keyMap.get(k);
+ if (index !== undefined) {
+ const value = this.#valList[index];
+ const fetching = this.#isBackgroundFetch(value);
+ if (status)
+ this.#statusTTL(status, index);
+ if (this.#isStale(index)) {
+ if (status)
+ status.get = "stale";
+ if (!fetching) {
+ if (!noDeleteOnStaleGet) {
+ this.#delete(k, "expire");
+ }
+ if (status && allowStale)
+ status.returnedStale = true;
+ return allowStale ? value : undefined;
+ } else {
+ if (status && allowStale && value.__staleWhileFetching !== undefined) {
+ status.returnedStale = true;
+ }
+ return allowStale ? value.__staleWhileFetching : undefined;
+ }
+ } else {
+ if (status)
+ status.get = "hit";
+ if (fetching) {
+ return value.__staleWhileFetching;
+ }
+ this.#moveToTail(index);
+ if (updateAgeOnGet) {
+ this.#updateItemAge(index);
+ }
+ return value;
+ }
+ } else if (status) {
+ status.get = "miss";
+ }
+ }
+ #connect(p, n) {
+ this.#prev[n] = p;
+ this.#next[p] = n;
+ }
+ #moveToTail(index) {
+ if (index !== this.#tail) {
+ if (index === this.#head) {
+ this.#head = this.#next[index];
+ } else {
+ this.#connect(this.#prev[index], this.#next[index]);
+ }
+ this.#connect(this.#tail, index);
+ this.#tail = index;
+ }
+ }
+ delete(k) {
+ return this.#delete(k, "delete");
+ }
+ #delete(k, reason) {
+ let deleted = false;
+ if (this.#size !== 0) {
+ const index = this.#keyMap.get(k);
+ if (index !== undefined) {
+ deleted = true;
+ if (this.#size === 1) {
+ this.#clear(reason);
+ } else {
+ this.#removeItemSize(index);
+ const v = this.#valList[index];
+ if (this.#isBackgroundFetch(v)) {
+ v.__abortController.abort(new Error("deleted"));
+ } else if (this.#hasDispose || this.#hasDisposeAfter) {
+ if (this.#hasDispose) {
+ this.#dispose?.(v, k, reason);
+ }
+ if (this.#hasDisposeAfter) {
+ this.#disposed?.push([v, k, reason]);
+ }
+ }
+ this.#keyMap.delete(k);
+ this.#keyList[index] = undefined;
+ this.#valList[index] = undefined;
+ if (index === this.#tail) {
+ this.#tail = this.#prev[index];
+ } else if (index === this.#head) {
+ this.#head = this.#next[index];
+ } else {
+ const pi = this.#prev[index];
+ this.#next[pi] = this.#next[index];
+ const ni = this.#next[index];
+ this.#prev[ni] = this.#prev[index];
+ }
+ this.#size--;
+ this.#free.push(index);
+ }
+ }
+ }
+ if (this.#hasDisposeAfter && this.#disposed?.length) {
+ const dt = this.#disposed;
+ let task;
+ while (task = dt?.shift()) {
+ this.#disposeAfter?.(...task);
+ }
+ }
+ return deleted;
+ }
+ clear() {
+ return this.#clear("delete");
+ }
+ #clear(reason) {
+ for (const index of this.#rindexes({ allowStale: true })) {
+ const v = this.#valList[index];
+ if (this.#isBackgroundFetch(v)) {
+ v.__abortController.abort(new Error("deleted"));
+ } else {
+ const k = this.#keyList[index];
+ if (this.#hasDispose) {
+ this.#dispose?.(v, k, reason);
+ }
+ if (this.#hasDisposeAfter) {
+ this.#disposed?.push([v, k, reason]);
+ }
+ }
+ }
+ this.#keyMap.clear();
+ this.#valList.fill(undefined);
+ this.#keyList.fill(undefined);
+ if (this.#ttls && this.#starts) {
+ this.#ttls.fill(0);
+ this.#starts.fill(0);
+ }
+ if (this.#sizes) {
+ this.#sizes.fill(0);
+ }
+ this.#head = 0;
+ this.#tail = 0;
+ this.#free.length = 0;
+ this.#calculatedSize = 0;
+ this.#size = 0;
+ if (this.#hasDisposeAfter && this.#disposed) {
+ const dt = this.#disposed;
+ let task;
+ while (task = dt?.shift()) {
+ this.#disposeAfter?.(...task);
+ }
+ }
+ }
+ }
+ exports.LRUCache = LRUCache;
+});
+
+// node_modules/minipass/dist/commonjs/index.js
+var require_commonjs3 = __commonJS((exports) => {
+ var __importDefault = exports && exports.__importDefault || function(mod) {
+ return mod && mod.__esModule ? mod : { default: mod };
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.Minipass = exports.isWritable = exports.isReadable = exports.isStream = undefined;
+ var proc = typeof process === "object" && process ? process : {
+ stdout: null,
+ stderr: null
+ };
+ var node_events_1 = __require("node:events");
+ var node_stream_1 = __importDefault(__require("node:stream"));
+ var node_string_decoder_1 = __require("node:string_decoder");
+ var isStream = (s) => !!s && typeof s === "object" && (s instanceof Minipass || s instanceof node_stream_1.default || (0, exports.isReadable)(s) || (0, exports.isWritable)(s));
+ exports.isStream = isStream;
+ var isReadable = (s) => !!s && typeof s === "object" && s instanceof node_events_1.EventEmitter && typeof s.pipe === "function" && s.pipe !== node_stream_1.default.Writable.prototype.pipe;
+ exports.isReadable = isReadable;
+ var isWritable = (s) => !!s && typeof s === "object" && s instanceof node_events_1.EventEmitter && typeof s.write === "function" && typeof s.end === "function";
+ exports.isWritable = isWritable;
+ var EOF = Symbol("EOF");
+ var MAYBE_EMIT_END = Symbol("maybeEmitEnd");
+ var EMITTED_END = Symbol("emittedEnd");
+ var EMITTING_END = Symbol("emittingEnd");
+ var EMITTED_ERROR = Symbol("emittedError");
+ var CLOSED = Symbol("closed");
+ var READ = Symbol("read");
+ var FLUSH = Symbol("flush");
+ var FLUSHCHUNK = Symbol("flushChunk");
+ var ENCODING = Symbol("encoding");
+ var DECODER = Symbol("decoder");
+ var FLOWING = Symbol("flowing");
+ var PAUSED = Symbol("paused");
+ var RESUME = Symbol("resume");
+ var BUFFER = Symbol("buffer");
+ var PIPES = Symbol("pipes");
+ var BUFFERLENGTH = Symbol("bufferLength");
+ var BUFFERPUSH = Symbol("bufferPush");
+ var BUFFERSHIFT = Symbol("bufferShift");
+ var OBJECTMODE = Symbol("objectMode");
+ var DESTROYED = Symbol("destroyed");
+ var ERROR = Symbol("error");
+ var EMITDATA = Symbol("emitData");
+ var EMITEND = Symbol("emitEnd");
+ var EMITEND2 = Symbol("emitEnd2");
+ var ASYNC = Symbol("async");
+ var ABORT = Symbol("abort");
+ var ABORTED = Symbol("aborted");
+ var SIGNAL = Symbol("signal");
+ var DATALISTENERS = Symbol("dataListeners");
+ var DISCARDED = Symbol("discarded");
+ var defer2 = (fn) => Promise.resolve().then(fn);
+ var nodefer = (fn) => fn();
+ var isEndish = (ev) => ev === "end" || ev === "finish" || ev === "prefinish";
+ var isArrayBufferLike = (b) => b instanceof ArrayBuffer || !!b && typeof b === "object" && b.constructor && b.constructor.name === "ArrayBuffer" && b.byteLength >= 0;
+ var isArrayBufferView = (b) => !Buffer.isBuffer(b) && ArrayBuffer.isView(b);
+
+ class Pipe {
+ src;
+ dest;
+ opts;
+ ondrain;
+ constructor(src, dest, opts) {
+ this.src = src;
+ this.dest = dest;
+ this.opts = opts;
+ this.ondrain = () => src[RESUME]();
+ this.dest.on("drain", this.ondrain);
+ }
+ unpipe() {
+ this.dest.removeListener("drain", this.ondrain);
+ }
+ proxyErrors(_er) {
+ }
+ end() {
+ this.unpipe();
+ if (this.opts.end)
+ this.dest.end();
+ }
+ }
+
+ class PipeProxyErrors extends Pipe {
+ unpipe() {
+ this.src.removeListener("error", this.proxyErrors);
+ super.unpipe();
+ }
+ constructor(src, dest, opts) {
+ super(src, dest, opts);
+ this.proxyErrors = (er) => dest.emit("error", er);
+ src.on("error", this.proxyErrors);
+ }
+ }
+ var isObjectModeOptions = (o) => !!o.objectMode;
+ var isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer";
+
+ class Minipass extends node_events_1.EventEmitter {
+ [FLOWING] = false;
+ [PAUSED] = false;
+ [PIPES] = [];
+ [BUFFER] = [];
+ [OBJECTMODE];
+ [ENCODING];
+ [ASYNC];
+ [DECODER];
+ [EOF] = false;
+ [EMITTED_END] = false;
+ [EMITTING_END] = false;
+ [CLOSED] = false;
+ [EMITTED_ERROR] = null;
+ [BUFFERLENGTH] = 0;
+ [DESTROYED] = false;
+ [SIGNAL];
+ [ABORTED] = false;
+ [DATALISTENERS] = 0;
+ [DISCARDED] = false;
+ writable = true;
+ readable = true;
+ constructor(...args) {
+ const options = args[0] || {};
+ super();
+ if (options.objectMode && typeof options.encoding === "string") {
+ throw new TypeError("Encoding and objectMode may not be used together");
+ }
+ if (isObjectModeOptions(options)) {
+ this[OBJECTMODE] = true;
+ this[ENCODING] = null;
+ } else if (isEncodingOptions(options)) {
+ this[ENCODING] = options.encoding;
+ this[OBJECTMODE] = false;
+ } else {
+ this[OBJECTMODE] = false;
+ this[ENCODING] = null;
+ }
+ this[ASYNC] = !!options.async;
+ this[DECODER] = this[ENCODING] ? new node_string_decoder_1.StringDecoder(this[ENCODING]) : null;
+ if (options && options.debugExposeBuffer === true) {
+ Object.defineProperty(this, "buffer", { get: () => this[BUFFER] });
+ }
+ if (options && options.debugExposePipes === true) {
+ Object.defineProperty(this, "pipes", { get: () => this[PIPES] });
+ }
+ const { signal } = options;
+ if (signal) {
+ this[SIGNAL] = signal;
+ if (signal.aborted) {
+ this[ABORT]();
+ } else {
+ signal.addEventListener("abort", () => this[ABORT]());
+ }
+ }
+ }
+ get bufferLength() {
+ return this[BUFFERLENGTH];
+ }
+ get encoding() {
+ return this[ENCODING];
+ }
+ set encoding(_enc) {
+ throw new Error("Encoding must be set at instantiation time");
+ }
+ setEncoding(_enc) {
+ throw new Error("Encoding must be set at instantiation time");
+ }
+ get objectMode() {
+ return this[OBJECTMODE];
+ }
+ set objectMode(_om) {
+ throw new Error("objectMode must be set at instantiation time");
+ }
+ get ["async"]() {
+ return this[ASYNC];
+ }
+ set ["async"](a) {
+ this[ASYNC] = this[ASYNC] || !!a;
+ }
+ [ABORT]() {
+ this[ABORTED] = true;
+ this.emit("abort", this[SIGNAL]?.reason);
+ this.destroy(this[SIGNAL]?.reason);
+ }
+ get aborted() {
+ return this[ABORTED];
+ }
+ set aborted(_3) {
+ }
+ write(chunk, encoding, cb) {
+ if (this[ABORTED])
+ return false;
+ if (this[EOF])
+ throw new Error("write after end");
+ if (this[DESTROYED]) {
+ this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" }));
+ return true;
+ }
+ if (typeof encoding === "function") {
+ cb = encoding;
+ encoding = "utf8";
+ }
+ if (!encoding)
+ encoding = "utf8";
+ const fn = this[ASYNC] ? defer2 : nodefer;
+ if (!this[OBJECTMODE] && !Buffer.isBuffer(chunk)) {
+ if (isArrayBufferView(chunk)) {
+ chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
+ } else if (isArrayBufferLike(chunk)) {
+ chunk = Buffer.from(chunk);
+ } else if (typeof chunk !== "string") {
+ throw new Error("Non-contiguous data written to non-objectMode stream");
+ }
+ }
+ if (this[OBJECTMODE]) {
+ if (this[FLOWING] && this[BUFFERLENGTH] !== 0)
+ this[FLUSH](true);
+ if (this[FLOWING])
+ this.emit("data", chunk);
+ else
+ this[BUFFERPUSH](chunk);
+ if (this[BUFFERLENGTH] !== 0)
+ this.emit("readable");
+ if (cb)
+ fn(cb);
+ return this[FLOWING];
+ }
+ if (!chunk.length) {
+ if (this[BUFFERLENGTH] !== 0)
+ this.emit("readable");
+ if (cb)
+ fn(cb);
+ return this[FLOWING];
+ }
+ if (typeof chunk === "string" && !(encoding === this[ENCODING] && !this[DECODER]?.lastNeed)) {
+ chunk = Buffer.from(chunk, encoding);
+ }
+ if (Buffer.isBuffer(chunk) && this[ENCODING]) {
+ chunk = this[DECODER].write(chunk);
+ }
+ if (this[FLOWING] && this[BUFFERLENGTH] !== 0)
+ this[FLUSH](true);
+ if (this[FLOWING])
+ this.emit("data", chunk);
+ else
+ this[BUFFERPUSH](chunk);
+ if (this[BUFFERLENGTH] !== 0)
+ this.emit("readable");
+ if (cb)
+ fn(cb);
+ return this[FLOWING];
+ }
+ read(n) {
+ if (this[DESTROYED])
+ return null;
+ this[DISCARDED] = false;
+ if (this[BUFFERLENGTH] === 0 || n === 0 || n && n > this[BUFFERLENGTH]) {
+ this[MAYBE_EMIT_END]();
+ return null;
+ }
+ if (this[OBJECTMODE])
+ n = null;
+ if (this[BUFFER].length > 1 && !this[OBJECTMODE]) {
+ this[BUFFER] = [
+ this[ENCODING] ? this[BUFFER].join("") : Buffer.concat(this[BUFFER], this[BUFFERLENGTH])
+ ];
+ }
+ const ret = this[READ](n || null, this[BUFFER][0]);
+ this[MAYBE_EMIT_END]();
+ return ret;
+ }
+ [READ](n, chunk) {
+ if (this[OBJECTMODE])
+ this[BUFFERSHIFT]();
+ else {
+ const c = chunk;
+ if (n === c.length || n === null)
+ this[BUFFERSHIFT]();
+ else if (typeof c === "string") {
+ this[BUFFER][0] = c.slice(n);
+ chunk = c.slice(0, n);
+ this[BUFFERLENGTH] -= n;
+ } else {
+ this[BUFFER][0] = c.subarray(n);
+ chunk = c.subarray(0, n);
+ this[BUFFERLENGTH] -= n;
+ }
+ }
+ this.emit("data", chunk);
+ if (!this[BUFFER].length && !this[EOF])
+ this.emit("drain");
+ return chunk;
+ }
+ end(chunk, encoding, cb) {
+ if (typeof chunk === "function") {
+ cb = chunk;
+ chunk = undefined;
+ }
+ if (typeof encoding === "function") {
+ cb = encoding;
+ encoding = "utf8";
+ }
+ if (chunk !== undefined)
+ this.write(chunk, encoding);
+ if (cb)
+ this.once("end", cb);
+ this[EOF] = true;
+ this.writable = false;
+ if (this[FLOWING] || !this[PAUSED])
+ this[MAYBE_EMIT_END]();
+ return this;
+ }
+ [RESUME]() {
+ if (this[DESTROYED])
+ return;
+ if (!this[DATALISTENERS] && !this[PIPES].length) {
+ this[DISCARDED] = true;
+ }
+ this[PAUSED] = false;
+ this[FLOWING] = true;
+ this.emit("resume");
+ if (this[BUFFER].length)
+ this[FLUSH]();
+ else if (this[EOF])
+ this[MAYBE_EMIT_END]();
+ else
+ this.emit("drain");
+ }
+ resume() {
+ return this[RESUME]();
+ }
+ pause() {
+ this[FLOWING] = false;
+ this[PAUSED] = true;
+ this[DISCARDED] = false;
+ }
+ get destroyed() {
+ return this[DESTROYED];
+ }
+ get flowing() {
+ return this[FLOWING];
+ }
+ get paused() {
+ return this[PAUSED];
+ }
+ [BUFFERPUSH](chunk) {
+ if (this[OBJECTMODE])
+ this[BUFFERLENGTH] += 1;
+ else
+ this[BUFFERLENGTH] += chunk.length;
+ this[BUFFER].push(chunk);
+ }
+ [BUFFERSHIFT]() {
+ if (this[OBJECTMODE])
+ this[BUFFERLENGTH] -= 1;
+ else
+ this[BUFFERLENGTH] -= this[BUFFER][0].length;
+ return this[BUFFER].shift();
+ }
+ [FLUSH](noDrain = false) {
+ do {
+ } while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
+ if (!noDrain && !this[BUFFER].length && !this[EOF])
+ this.emit("drain");
+ }
+ [FLUSHCHUNK](chunk) {
+ this.emit("data", chunk);
+ return this[FLOWING];
+ }
+ pipe(dest, opts) {
+ if (this[DESTROYED])
+ return dest;
+ this[DISCARDED] = false;
+ const ended = this[EMITTED_END];
+ opts = opts || {};
+ if (dest === proc.stdout || dest === proc.stderr)
+ opts.end = false;
+ else
+ opts.end = opts.end !== false;
+ opts.proxyErrors = !!opts.proxyErrors;
+ if (ended) {
+ if (opts.end)
+ dest.end();
+ } else {
+ this[PIPES].push(!opts.proxyErrors ? new Pipe(this, dest, opts) : new PipeProxyErrors(this, dest, opts));
+ if (this[ASYNC])
+ defer2(() => this[RESUME]());
+ else
+ this[RESUME]();
+ }
+ return dest;
+ }
+ unpipe(dest) {
+ const p = this[PIPES].find((p2) => p2.dest === dest);
+ if (p) {
+ if (this[PIPES].length === 1) {
+ if (this[FLOWING] && this[DATALISTENERS] === 0) {
+ this[FLOWING] = false;
+ }
+ this[PIPES] = [];
+ } else
+ this[PIPES].splice(this[PIPES].indexOf(p), 1);
+ p.unpipe();
+ }
+ }
+ addListener(ev, handler) {
+ return this.on(ev, handler);
+ }
+ on(ev, handler) {
+ const ret = super.on(ev, handler);
+ if (ev === "data") {
+ this[DISCARDED] = false;
+ this[DATALISTENERS]++;
+ if (!this[PIPES].length && !this[FLOWING]) {
+ this[RESUME]();
+ }
+ } else if (ev === "readable" && this[BUFFERLENGTH] !== 0) {
+ super.emit("readable");
+ } else if (isEndish(ev) && this[EMITTED_END]) {
+ super.emit(ev);
+ this.removeAllListeners(ev);
+ } else if (ev === "error" && this[EMITTED_ERROR]) {
+ const h = handler;
+ if (this[ASYNC])
+ defer2(() => h.call(this, this[EMITTED_ERROR]));
+ else
+ h.call(this, this[EMITTED_ERROR]);
+ }
+ return ret;
+ }
+ removeListener(ev, handler) {
+ return this.off(ev, handler);
+ }
+ off(ev, handler) {
+ const ret = super.off(ev, handler);
+ if (ev === "data") {
+ this[DATALISTENERS] = this.listeners("data").length;
+ if (this[DATALISTENERS] === 0 && !this[DISCARDED] && !this[PIPES].length) {
+ this[FLOWING] = false;
+ }
+ }
+ return ret;
+ }
+ removeAllListeners(ev) {
+ const ret = super.removeAllListeners(ev);
+ if (ev === "data" || ev === undefined) {
+ this[DATALISTENERS] = 0;
+ if (!this[DISCARDED] && !this[PIPES].length) {
+ this[FLOWING] = false;
+ }
+ }
+ return ret;
+ }
+ get emittedEnd() {
+ return this[EMITTED_END];
+ }
+ [MAYBE_EMIT_END]() {
+ if (!this[EMITTING_END] && !this[EMITTED_END] && !this[DESTROYED] && this[BUFFER].length === 0 && this[EOF]) {
+ this[EMITTING_END] = true;
+ this.emit("end");
+ this.emit("prefinish");
+ this.emit("finish");
+ if (this[CLOSED])
+ this.emit("close");
+ this[EMITTING_END] = false;
+ }
+ }
+ emit(ev, ...args) {
+ const data = args[0];
+ if (ev !== "error" && ev !== "close" && ev !== DESTROYED && this[DESTROYED]) {
+ return false;
+ } else if (ev === "data") {
+ return !this[OBJECTMODE] && !data ? false : this[ASYNC] ? (defer2(() => this[EMITDATA](data)), true) : this[EMITDATA](data);
+ } else if (ev === "end") {
+ return this[EMITEND]();
+ } else if (ev === "close") {
+ this[CLOSED] = true;
+ if (!this[EMITTED_END] && !this[DESTROYED])
+ return false;
+ const ret2 = super.emit("close");
+ this.removeAllListeners("close");
+ return ret2;
+ } else if (ev === "error") {
+ this[EMITTED_ERROR] = data;
+ super.emit(ERROR, data);
+ const ret2 = !this[SIGNAL] || this.listeners("error").length ? super.emit("error", data) : false;
+ this[MAYBE_EMIT_END]();
+ return ret2;
+ } else if (ev === "resume") {
+ const ret2 = super.emit("resume");
+ this[MAYBE_EMIT_END]();
+ return ret2;
+ } else if (ev === "finish" || ev === "prefinish") {
+ const ret2 = super.emit(ev);
+ this.removeAllListeners(ev);
+ return ret2;
+ }
+ const ret = super.emit(ev, ...args);
+ this[MAYBE_EMIT_END]();
+ return ret;
+ }
+ [EMITDATA](data) {
+ for (const p of this[PIPES]) {
+ if (p.dest.write(data) === false)
+ this.pause();
+ }
+ const ret = this[DISCARDED] ? false : super.emit("data", data);
+ this[MAYBE_EMIT_END]();
+ return ret;
+ }
+ [EMITEND]() {
+ if (this[EMITTED_END])
+ return false;
+ this[EMITTED_END] = true;
+ this.readable = false;
+ return this[ASYNC] ? (defer2(() => this[EMITEND2]()), true) : this[EMITEND2]();
+ }
+ [EMITEND2]() {
+ if (this[DECODER]) {
+ const data = this[DECODER].end();
+ if (data) {
+ for (const p of this[PIPES]) {
+ p.dest.write(data);
+ }
+ if (!this[DISCARDED])
+ super.emit("data", data);
+ }
+ }
+ for (const p of this[PIPES]) {
+ p.end();
+ }
+ const ret = super.emit("end");
+ this.removeAllListeners("end");
+ return ret;
+ }
+ async collect() {
+ const buf = Object.assign([], {
+ dataLength: 0
+ });
+ if (!this[OBJECTMODE])
+ buf.dataLength = 0;
+ const p = this.promise();
+ this.on("data", (c) => {
+ buf.push(c);
+ if (!this[OBJECTMODE])
+ buf.dataLength += c.length;
+ });
+ await p;
+ return buf;
+ }
+ async concat() {
+ if (this[OBJECTMODE]) {
+ throw new Error("cannot concat in objectMode");
+ }
+ const buf = await this.collect();
+ return this[ENCODING] ? buf.join("") : Buffer.concat(buf, buf.dataLength);
+ }
+ async promise() {
+ return new Promise((resolve, reject) => {
+ this.on(DESTROYED, () => reject(new Error("stream destroyed")));
+ this.on("error", (er) => reject(er));
+ this.on("end", () => resolve());
+ });
+ }
+ [Symbol.asyncIterator]() {
+ this[DISCARDED] = false;
+ let stopped = false;
+ const stop = async () => {
+ this.pause();
+ stopped = true;
+ return { value: undefined, done: true };
+ };
+ const next = () => {
+ if (stopped)
+ return stop();
+ const res = this.read();
+ if (res !== null)
+ return Promise.resolve({ done: false, value: res });
+ if (this[EOF])
+ return stop();
+ let resolve;
+ let reject;
+ const onerr = (er) => {
+ this.off("data", ondata);
+ this.off("end", onend);
+ this.off(DESTROYED, ondestroy);
+ stop();
+ reject(er);
+ };
+ const ondata = (value) => {
+ this.off("error", onerr);
+ this.off("end", onend);
+ this.off(DESTROYED, ondestroy);
+ this.pause();
+ resolve({ value, done: !!this[EOF] });
+ };
+ const onend = () => {
+ this.off("error", onerr);
+ this.off("data", ondata);
+ this.off(DESTROYED, ondestroy);
+ stop();
+ resolve({ done: true, value: undefined });
+ };
+ const ondestroy = () => onerr(new Error("stream destroyed"));
+ return new Promise((res2, rej) => {
+ reject = rej;
+ resolve = res2;
+ this.once(DESTROYED, ondestroy);
+ this.once("error", onerr);
+ this.once("end", onend);
+ this.once("data", ondata);
+ });
+ };
+ return {
+ next,
+ throw: stop,
+ return: stop,
+ [Symbol.asyncIterator]() {
+ return this;
+ }
+ };
+ }
+ [Symbol.iterator]() {
+ this[DISCARDED] = false;
+ let stopped = false;
+ const stop = () => {
+ this.pause();
+ this.off(ERROR, stop);
+ this.off(DESTROYED, stop);
+ this.off("end", stop);
+ stopped = true;
+ return { done: true, value: undefined };
+ };
+ const next = () => {
+ if (stopped)
+ return stop();
+ const value = this.read();
+ return value === null ? stop() : { done: false, value };
+ };
+ this.once("end", stop);
+ this.once(ERROR, stop);
+ this.once(DESTROYED, stop);
+ return {
+ next,
+ throw: stop,
+ return: stop,
+ [Symbol.iterator]() {
+ return this;
+ }
+ };
+ }
+ destroy(er) {
+ if (this[DESTROYED]) {
+ if (er)
+ this.emit("error", er);
+ else
+ this.emit(DESTROYED);
+ return this;
+ }
+ this[DESTROYED] = true;
+ this[DISCARDED] = true;
+ this[BUFFER].length = 0;
+ this[BUFFERLENGTH] = 0;
+ const wc = this;
+ if (typeof wc.close === "function" && !this[CLOSED])
+ wc.close();
+ if (er)
+ this.emit("error", er);
+ else
+ this.emit(DESTROYED);
+ return this;
+ }
+ static get isStream() {
+ return exports.isStream;
+ }
+ }
+ exports.Minipass = Minipass;
+});
+
+// node_modules/path-scurry/dist/commonjs/index.js
+var require_commonjs4 = __commonJS((exports) => {
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
+ if (k2 === undefined)
+ k2 = k;
+ var desc = Object.getOwnPropertyDescriptor(m, k);
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
+ desc = { enumerable: true, get: function() {
+ return m[k];
+ } };
+ }
+ Object.defineProperty(o, k2, desc);
+ } : function(o, m, k, k2) {
+ if (k2 === undefined)
+ k2 = k;
+ o[k2] = m[k];
+ });
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+ } : function(o, v) {
+ o["default"] = v;
+ });
+ var __importStar = exports && exports.__importStar || function(mod) {
+ if (mod && mod.__esModule)
+ return mod;
+ var result = {};
+ if (mod != null) {
+ for (var k in mod)
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
+ __createBinding(result, mod, k);
+ }
+ __setModuleDefault(result, mod);
+ return result;
+ };
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.PathScurry = exports.Path = exports.PathScurryDarwin = exports.PathScurryPosix = exports.PathScurryWin32 = exports.PathScurryBase = exports.PathPosix = exports.PathWin32 = exports.PathBase = exports.ChildrenCache = exports.ResolveCache = undefined;
+ var lru_cache_1 = require_commonjs2();
+ var node_path_1 = __require("node:path");
+ var node_url_1 = __require("node:url");
+ var fs_1 = __require("fs");
+ var actualFS = __importStar(__require("node:fs"));
+ var realpathSync = fs_1.realpathSync.native;
+ var promises_1 = __require("node:fs/promises");
+ var minipass_1 = require_commonjs3();
+ var defaultFS = {
+ lstatSync: fs_1.lstatSync,
+ readdir: fs_1.readdir,
+ readdirSync: fs_1.readdirSync,
+ readlinkSync: fs_1.readlinkSync,
+ realpathSync,
+ promises: {
+ lstat: promises_1.lstat,
+ readdir: promises_1.readdir,
+ readlink: promises_1.readlink,
+ realpath: promises_1.realpath
+ }
+ };
+ var fsFromOption = (fsOption) => !fsOption || fsOption === defaultFS || fsOption === actualFS ? defaultFS : {
+ ...defaultFS,
+ ...fsOption,
+ promises: {
+ ...defaultFS.promises,
+ ...fsOption.promises || {}
+ }
+ };
+ var uncDriveRegexp = /^\\\\\?\\([a-z]:)\\?$/i;
+ var uncToDrive = (rootPath) => rootPath.replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\");
+ var eitherSep = /[\\\/]/;
+ var UNKNOWN = 0;
+ var IFIFO = 1;
+ var IFCHR = 2;
+ var IFDIR = 4;
+ var IFBLK = 6;
+ var IFREG = 8;
+ var IFLNK = 10;
+ var IFSOCK = 12;
+ var IFMT = 15;
+ var IFMT_UNKNOWN = ~IFMT;
+ var READDIR_CALLED = 16;
+ var LSTAT_CALLED = 32;
+ var ENOTDIR = 64;
+ var ENOENT = 128;
+ var ENOREADLINK = 256;
+ var ENOREALPATH = 512;
+ var ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH;
+ var TYPEMASK = 1023;
+ var entToType = (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN;
+ var normalizeCache = new Map;
+ var normalize = (s) => {
+ const c = normalizeCache.get(s);
+ if (c)
+ return c;
+ const n = s.normalize("NFKD");
+ normalizeCache.set(s, n);
+ return n;
+ };
+ var normalizeNocaseCache = new Map;
+ var normalizeNocase = (s) => {
+ const c = normalizeNocaseCache.get(s);
+ if (c)
+ return c;
+ const n = normalize(s.toLowerCase());
+ normalizeNocaseCache.set(s, n);
+ return n;
+ };
+
+ class ResolveCache extends lru_cache_1.LRUCache {
+ constructor() {
+ super({ max: 256 });
+ }
+ }
+ exports.ResolveCache = ResolveCache;
+
+ class ChildrenCache extends lru_cache_1.LRUCache {
+ constructor(maxSize = 16 * 1024) {
+ super({
+ maxSize,
+ sizeCalculation: (a) => a.length + 1
+ });
+ }
+ }
+ exports.ChildrenCache = ChildrenCache;
+ var setAsCwd = Symbol("PathScurry setAsCwd");
+
+ class PathBase {
+ name;
+ root;
+ roots;
+ parent;
+ nocase;
+ isCWD = false;
+ #fs;
+ #dev;
+ get dev() {
+ return this.#dev;
+ }
+ #mode;
+ get mode() {
+ return this.#mode;
+ }
+ #nlink;
+ get nlink() {
+ return this.#nlink;
+ }
+ #uid;
+ get uid() {
+ return this.#uid;
+ }
+ #gid;
+ get gid() {
+ return this.#gid;
+ }
+ #rdev;
+ get rdev() {
+ return this.#rdev;
+ }
+ #blksize;
+ get blksize() {
+ return this.#blksize;
+ }
+ #ino;
+ get ino() {
+ return this.#ino;
+ }
+ #size;
+ get size() {
+ return this.#size;
+ }
+ #blocks;
+ get blocks() {
+ return this.#blocks;
+ }
+ #atimeMs;
+ get atimeMs() {
+ return this.#atimeMs;
+ }
+ #mtimeMs;
+ get mtimeMs() {
+ return this.#mtimeMs;
+ }
+ #ctimeMs;
+ get ctimeMs() {
+ return this.#ctimeMs;
+ }
+ #birthtimeMs;
+ get birthtimeMs() {
+ return this.#birthtimeMs;
+ }
+ #atime;
+ get atime() {
+ return this.#atime;
+ }
+ #mtime;
+ get mtime() {
+ return this.#mtime;
+ }
+ #ctime;
+ get ctime() {
+ return this.#ctime;
+ }
+ #birthtime;
+ get birthtime() {
+ return this.#birthtime;
+ }
+ #matchName;
+ #depth;
+ #fullpath;
+ #fullpathPosix;
+ #relative;
+ #relativePosix;
+ #type;
+ #children;
+ #linkTarget;
+ #realpath;
+ get parentPath() {
+ return (this.parent || this).fullpath();
+ }
+ get path() {
+ return this.parentPath;
+ }
+ constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
+ this.name = name;
+ this.#matchName = nocase ? normalizeNocase(name) : normalize(name);
+ this.#type = type & TYPEMASK;
+ this.nocase = nocase;
+ this.roots = roots;
+ this.root = root || this;
+ this.#children = children;
+ this.#fullpath = opts.fullpath;
+ this.#relative = opts.relative;
+ this.#relativePosix = opts.relativePosix;
+ this.parent = opts.parent;
+ if (this.parent) {
+ this.#fs = this.parent.#fs;
+ } else {
+ this.#fs = fsFromOption(opts.fs);
+ }
+ }
+ depth() {
+ if (this.#depth !== undefined)
+ return this.#depth;
+ if (!this.parent)
+ return this.#depth = 0;
+ return this.#depth = this.parent.depth() + 1;
+ }
+ childrenCache() {
+ return this.#children;
+ }
+ resolve(path2) {
+ if (!path2) {
+ return this;
+ }
+ const rootPath = this.getRootString(path2);
+ const dir = path2.substring(rootPath.length);
+ const dirParts = dir.split(this.splitSep);
+ const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
+ return result;
+ }
+ #resolveParts(dirParts) {
+ let p = this;
+ for (const part of dirParts) {
+ p = p.child(part);
+ }
+ return p;
+ }
+ children() {
+ const cached = this.#children.get(this);
+ if (cached) {
+ return cached;
+ }
+ const children = Object.assign([], { provisional: 0 });
+ this.#children.set(this, children);
+ this.#type &= ~READDIR_CALLED;
+ return children;
+ }
+ child(pathPart, opts) {
+ if (pathPart === "" || pathPart === ".") {
+ return this;
+ }
+ if (pathPart === "..") {
+ return this.parent || this;
+ }
+ const children = this.children();
+ const name = this.nocase ? normalizeNocase(pathPart) : normalize(pathPart);
+ for (const p of children) {
+ if (p.#matchName === name) {
+ return p;
+ }
+ }
+ const s = this.parent ? this.sep : "";
+ const fullpath = this.#fullpath ? this.#fullpath + s + pathPart : undefined;
+ const pchild = this.newChild(pathPart, UNKNOWN, {
+ ...opts,
+ parent: this,
+ fullpath
+ });
+ if (!this.canReaddir()) {
+ pchild.#type |= ENOENT;
+ }
+ children.push(pchild);
+ return pchild;
+ }
+ relative() {
+ if (this.isCWD)
+ return "";
+ if (this.#relative !== undefined) {
+ return this.#relative;
+ }
+ const name = this.name;
+ const p = this.parent;
+ if (!p) {
+ return this.#relative = this.name;
+ }
+ const pv = p.relative();
+ return pv + (!pv || !p.parent ? "" : this.sep) + name;
+ }
+ relativePosix() {
+ if (this.sep === "/")
+ return this.relative();
+ if (this.isCWD)
+ return "";
+ if (this.#relativePosix !== undefined)
+ return this.#relativePosix;
+ const name = this.name;
+ const p = this.parent;
+ if (!p) {
+ return this.#relativePosix = this.fullpathPosix();
+ }
+ const pv = p.relativePosix();
+ return pv + (!pv || !p.parent ? "" : "/") + name;
+ }
+ fullpath() {
+ if (this.#fullpath !== undefined) {
+ return this.#fullpath;
+ }
+ const name = this.name;
+ const p = this.parent;
+ if (!p) {
+ return this.#fullpath = this.name;
+ }
+ const pv = p.fullpath();
+ const fp = pv + (!p.parent ? "" : this.sep) + name;
+ return this.#fullpath = fp;
+ }
+ fullpathPosix() {
+ if (this.#fullpathPosix !== undefined)
+ return this.#fullpathPosix;
+ if (this.sep === "/")
+ return this.#fullpathPosix = this.fullpath();
+ if (!this.parent) {
+ const p2 = this.fullpath().replace(/\\/g, "/");
+ if (/^[a-z]:\//i.test(p2)) {
+ return this.#fullpathPosix = `//?/${p2}`;
+ } else {
+ return this.#fullpathPosix = p2;
+ }
+ }
+ const p = this.parent;
+ const pfpp = p.fullpathPosix();
+ const fpp = pfpp + (!pfpp || !p.parent ? "" : "/") + this.name;
+ return this.#fullpathPosix = fpp;
+ }
+ isUnknown() {
+ return (this.#type & IFMT) === UNKNOWN;
+ }
+ isType(type) {
+ return this[`is${type}`]();
+ }
+ getType() {
+ return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
+ }
+ isFile() {
+ return (this.#type & IFMT) === IFREG;
+ }
+ isDirectory() {
+ return (this.#type & IFMT) === IFDIR;
+ }
+ isCharacterDevice() {
+ return (this.#type & IFMT) === IFCHR;
+ }
+ isBlockDevice() {
+ return (this.#type & IFMT) === IFBLK;
+ }
+ isFIFO() {
+ return (this.#type & IFMT) === IFIFO;
+ }
+ isSocket() {
+ return (this.#type & IFMT) === IFSOCK;
+ }
+ isSymbolicLink() {
+ return (this.#type & IFLNK) === IFLNK;
+ }
+ lstatCached() {
+ return this.#type & LSTAT_CALLED ? this : undefined;
+ }
+ readlinkCached() {
+ return this.#linkTarget;
+ }
+ realpathCached() {
+ return this.#realpath;
+ }
+ readdirCached() {
+ const children = this.children();
+ return children.slice(0, children.provisional);
+ }
+ canReadlink() {
+ if (this.#linkTarget)
+ return true;
+ if (!this.parent)
+ return false;
+ const ifmt = this.#type & IFMT;
+ return !(ifmt !== UNKNOWN && ifmt !== IFLNK || this.#type & ENOREADLINK || this.#type & ENOENT);
+ }
+ calledReaddir() {
+ return !!(this.#type & READDIR_CALLED);
+ }
+ isENOENT() {
+ return !!(this.#type & ENOENT);
+ }
+ isNamed(n) {
+ return !this.nocase ? this.#matchName === normalize(n) : this.#matchName === normalizeNocase(n);
+ }
+ async readlink() {
+ const target = this.#linkTarget;
+ if (target) {
+ return target;
+ }
+ if (!this.canReadlink()) {
+ return;
+ }
+ if (!this.parent) {
+ return;
+ }
+ try {
+ const read = await this.#fs.promises.readlink(this.fullpath());
+ const linkTarget = (await this.parent.realpath())?.resolve(read);
+ if (linkTarget) {
+ return this.#linkTarget = linkTarget;
+ }
+ } catch (er) {
+ this.#readlinkFail(er.code);
+ return;
+ }
+ }
+ readlinkSync() {
+ const target = this.#linkTarget;
+ if (target) {
+ return target;
+ }
+ if (!this.canReadlink()) {
+ return;
+ }
+ if (!this.parent) {
+ return;
+ }
+ try {
+ const read = this.#fs.readlinkSync(this.fullpath());
+ const linkTarget = this.parent.realpathSync()?.resolve(read);
+ if (linkTarget) {
+ return this.#linkTarget = linkTarget;
+ }
+ } catch (er) {
+ this.#readlinkFail(er.code);
+ return;
+ }
+ }
+ #readdirSuccess(children) {
+ this.#type |= READDIR_CALLED;
+ for (let p = children.provisional;p < children.length; p++) {
+ const c = children[p];
+ if (c)
+ c.#markENOENT();
+ }
+ }
+ #markENOENT() {
+ if (this.#type & ENOENT)
+ return;
+ this.#type = (this.#type | ENOENT) & IFMT_UNKNOWN;
+ this.#markChildrenENOENT();
+ }
+ #markChildrenENOENT() {
+ const children = this.children();
+ children.provisional = 0;
+ for (const p of children) {
+ p.#markENOENT();
+ }
+ }
+ #markENOREALPATH() {
+ this.#type |= ENOREALPATH;
+ this.#markENOTDIR();
+ }
+ #markENOTDIR() {
+ if (this.#type & ENOTDIR)
+ return;
+ let t = this.#type;
+ if ((t & IFMT) === IFDIR)
+ t &= IFMT_UNKNOWN;
+ this.#type = t | ENOTDIR;
+ this.#markChildrenENOENT();
+ }
+ #readdirFail(code = "") {
+ if (code === "ENOTDIR" || code === "EPERM") {
+ this.#markENOTDIR();
+ } else if (code === "ENOENT") {
+ this.#markENOENT();
+ } else {
+ this.children().provisional = 0;
+ }
+ }
+ #lstatFail(code = "") {
+ if (code === "ENOTDIR") {
+ const p = this.parent;
+ p.#markENOTDIR();
+ } else if (code === "ENOENT") {
+ this.#markENOENT();
+ }
+ }
+ #readlinkFail(code = "") {
+ let ter = this.#type;
+ ter |= ENOREADLINK;
+ if (code === "ENOENT")
+ ter |= ENOENT;
+ if (code === "EINVAL" || code === "UNKNOWN") {
+ ter &= IFMT_UNKNOWN;
+ }
+ this.#type = ter;
+ if (code === "ENOTDIR" && this.parent) {
+ this.parent.#markENOTDIR();
+ }
+ }
+ #readdirAddChild(e, c) {
+ return this.#readdirMaybePromoteChild(e, c) || this.#readdirAddNewChild(e, c);
+ }
+ #readdirAddNewChild(e, c) {
+ const type = entToType(e);
+ const child = this.newChild(e.name, type, { parent: this });
+ const ifmt = child.#type & IFMT;
+ if (ifmt !== IFDIR && ifmt !== IFLNK && ifmt !== UNKNOWN) {
+ child.#type |= ENOTDIR;
+ }
+ c.unshift(child);
+ c.provisional++;
+ return child;
+ }
+ #readdirMaybePromoteChild(e, c) {
+ for (let p = c.provisional;p < c.length; p++) {
+ const pchild = c[p];
+ const name = this.nocase ? normalizeNocase(e.name) : normalize(e.name);
+ if (name !== pchild.#matchName) {
+ continue;
+ }
+ return this.#readdirPromoteChild(e, pchild, p, c);
+ }
+ }
+ #readdirPromoteChild(e, p, index, c) {
+ const v = p.name;
+ p.#type = p.#type & IFMT_UNKNOWN | entToType(e);
+ if (v !== e.name)
+ p.name = e.name;
+ if (index !== c.provisional) {
+ if (index === c.length - 1)
+ c.pop();
+ else
+ c.splice(index, 1);
+ c.unshift(p);
+ }
+ c.provisional++;
+ return p;
+ }
+ async lstat() {
+ if ((this.#type & ENOENT) === 0) {
+ try {
+ this.#applyStat(await this.#fs.promises.lstat(this.fullpath()));
+ return this;
+ } catch (er) {
+ this.#lstatFail(er.code);
+ }
+ }
+ }
+ lstatSync() {
+ if ((this.#type & ENOENT) === 0) {
+ try {
+ this.#applyStat(this.#fs.lstatSync(this.fullpath()));
+ return this;
+ } catch (er) {
+ this.#lstatFail(er.code);
+ }
+ }
+ }
+ #applyStat(st) {
+ const { atime, atimeMs, birthtime, birthtimeMs, blksize, blocks, ctime, ctimeMs, dev, gid, ino, mode, mtime, mtimeMs, nlink, rdev, size, uid } = st;
+ this.#atime = atime;
+ this.#atimeMs = atimeMs;
+ this.#birthtime = birthtime;
+ this.#birthtimeMs = birthtimeMs;
+ this.#blksize = blksize;
+ this.#blocks = blocks;
+ this.#ctime = ctime;
+ this.#ctimeMs = ctimeMs;
+ this.#dev = dev;
+ this.#gid = gid;
+ this.#ino = ino;
+ this.#mode = mode;
+ this.#mtime = mtime;
+ this.#mtimeMs = mtimeMs;
+ this.#nlink = nlink;
+ this.#rdev = rdev;
+ this.#size = size;
+ this.#uid = uid;
+ const ifmt = entToType(st);
+ this.#type = this.#type & IFMT_UNKNOWN | ifmt | LSTAT_CALLED;
+ if (ifmt !== UNKNOWN && ifmt !== IFDIR && ifmt !== IFLNK) {
+ this.#type |= ENOTDIR;
+ }
+ }
+ #onReaddirCB = [];
+ #readdirCBInFlight = false;
+ #callOnReaddirCB(children) {
+ this.#readdirCBInFlight = false;
+ const cbs = this.#onReaddirCB.slice();
+ this.#onReaddirCB.length = 0;
+ cbs.forEach((cb) => cb(null, children));
+ }
+ readdirCB(cb, allowZalgo = false) {
+ if (!this.canReaddir()) {
+ if (allowZalgo)
+ cb(null, []);
+ else
+ queueMicrotask(() => cb(null, []));
+ return;
+ }
+ const children = this.children();
+ if (this.calledReaddir()) {
+ const c = children.slice(0, children.provisional);
+ if (allowZalgo)
+ cb(null, c);
+ else
+ queueMicrotask(() => cb(null, c));
+ return;
+ }
+ this.#onReaddirCB.push(cb);
+ if (this.#readdirCBInFlight) {
+ return;
+ }
+ this.#readdirCBInFlight = true;
+ const fullpath = this.fullpath();
+ this.#fs.readdir(fullpath, { withFileTypes: true }, (er, entries) => {
+ if (er) {
+ this.#readdirFail(er.code);
+ children.provisional = 0;
+ } else {
+ for (const e of entries) {
+ this.#readdirAddChild(e, children);
+ }
+ this.#readdirSuccess(children);
+ }
+ this.#callOnReaddirCB(children.slice(0, children.provisional));
+ return;
+ });
+ }
+ #asyncReaddirInFlight;
+ async readdir() {
+ if (!this.canReaddir()) {
+ return [];
+ }
+ const children = this.children();
+ if (this.calledReaddir()) {
+ return children.slice(0, children.provisional);
+ }
+ const fullpath = this.fullpath();
+ if (this.#asyncReaddirInFlight) {
+ await this.#asyncReaddirInFlight;
+ } else {
+ let resolve = () => {
+ };
+ this.#asyncReaddirInFlight = new Promise((res) => resolve = res);
+ try {
+ for (const e of await this.#fs.promises.readdir(fullpath, {
+ withFileTypes: true
+ })) {
+ this.#readdirAddChild(e, children);
+ }
+ this.#readdirSuccess(children);
+ } catch (er) {
+ this.#readdirFail(er.code);
+ children.provisional = 0;
+ }
+ this.#asyncReaddirInFlight = undefined;
+ resolve();
+ }
+ return children.slice(0, children.provisional);
+ }
+ readdirSync() {
+ if (!this.canReaddir()) {
+ return [];
+ }
+ const children = this.children();
+ if (this.calledReaddir()) {
+ return children.slice(0, children.provisional);
+ }
+ const fullpath = this.fullpath();
+ try {
+ for (const e of this.#fs.readdirSync(fullpath, {
+ withFileTypes: true
+ })) {
+ this.#readdirAddChild(e, children);
+ }
+ this.#readdirSuccess(children);
+ } catch (er) {
+ this.#readdirFail(er.code);
+ children.provisional = 0;
+ }
+ return children.slice(0, children.provisional);
+ }
+ canReaddir() {
+ if (this.#type & ENOCHILD)
+ return false;
+ const ifmt = IFMT & this.#type;
+ if (!(ifmt === UNKNOWN || ifmt === IFDIR || ifmt === IFLNK)) {
+ return false;
+ }
+ return true;
+ }
+ shouldWalk(dirs, walkFilter) {
+ return (this.#type & IFDIR) === IFDIR && !(this.#type & ENOCHILD) && !dirs.has(this) && (!walkFilter || walkFilter(this));
+ }
+ async realpath() {
+ if (this.#realpath)
+ return this.#realpath;
+ if ((ENOREALPATH | ENOREADLINK | ENOENT) & this.#type)
+ return;
+ try {
+ const rp = await this.#fs.promises.realpath(this.fullpath());
+ return this.#realpath = this.resolve(rp);
+ } catch (_3) {
+ this.#markENOREALPATH();
+ }
+ }
+ realpathSync() {
+ if (this.#realpath)
+ return this.#realpath;
+ if ((ENOREALPATH | ENOREADLINK | ENOENT) & this.#type)
+ return;
+ try {
+ const rp = this.#fs.realpathSync(this.fullpath());
+ return this.#realpath = this.resolve(rp);
+ } catch (_3) {
+ this.#markENOREALPATH();
+ }
+ }
+ [setAsCwd](oldCwd) {
+ if (oldCwd === this)
+ return;
+ oldCwd.isCWD = false;
+ this.isCWD = true;
+ const changed = new Set([]);
+ let rp = [];
+ let p = this;
+ while (p && p.parent) {
+ changed.add(p);
+ p.#relative = rp.join(this.sep);
+ p.#relativePosix = rp.join("/");
+ p = p.parent;
+ rp.push("..");
+ }
+ p = oldCwd;
+ while (p && p.parent && !changed.has(p)) {
+ p.#relative = undefined;
+ p.#relativePosix = undefined;
+ p = p.parent;
+ }
+ }
+ }
+ exports.PathBase = PathBase;
+
+ class PathWin32 extends PathBase {
+ sep = "\\";
+ splitSep = eitherSep;
+ constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
+ super(name, type, root, roots, nocase, children, opts);
+ }
+ newChild(name, type = UNKNOWN, opts = {}) {
+ return new PathWin32(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
+ }
+ getRootString(path2) {
+ return node_path_1.win32.parse(path2).root;
+ }
+ getRoot(rootPath) {
+ rootPath = uncToDrive(rootPath.toUpperCase());
+ if (rootPath === this.root.name) {
+ return this.root;
+ }
+ for (const [compare, root] of Object.entries(this.roots)) {
+ if (this.sameRoot(rootPath, compare)) {
+ return this.roots[rootPath] = root;
+ }
+ }
+ return this.roots[rootPath] = new PathScurryWin32(rootPath, this).root;
+ }
+ sameRoot(rootPath, compare = this.root.name) {
+ rootPath = rootPath.toUpperCase().replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\");
+ return rootPath === compare;
+ }
+ }
+ exports.PathWin32 = PathWin32;
+
+ class PathPosix extends PathBase {
+ splitSep = "/";
+ sep = "/";
+ constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
+ super(name, type, root, roots, nocase, children, opts);
+ }
+ getRootString(path2) {
+ return path2.startsWith("/") ? "/" : "";
+ }
+ getRoot(_rootPath) {
+ return this.root;
+ }
+ newChild(name, type = UNKNOWN, opts = {}) {
+ return new PathPosix(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
+ }
+ }
+ exports.PathPosix = PathPosix;
+
+ class PathScurryBase {
+ root;
+ rootPath;
+ roots;
+ cwd;
+ #resolveCache;
+ #resolvePosixCache;
+ #children;
+ nocase;
+ #fs;
+ constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs: fs2 = defaultFS } = {}) {
+ this.#fs = fsFromOption(fs2);
+ if (cwd instanceof URL || cwd.startsWith("file://")) {
+ cwd = (0, node_url_1.fileURLToPath)(cwd);
+ }
+ const cwdPath = pathImpl.resolve(cwd);
+ this.roots = Object.create(null);
+ this.rootPath = this.parseRootPath(cwdPath);
+ this.#resolveCache = new ResolveCache;
+ this.#resolvePosixCache = new ResolveCache;
+ this.#children = new ChildrenCache(childrenCacheSize);
+ const split2 = cwdPath.substring(this.rootPath.length).split(sep);
+ if (split2.length === 1 && !split2[0]) {
+ split2.pop();
+ }
+ if (nocase === undefined) {
+ throw new TypeError("must provide nocase setting to PathScurryBase ctor");
+ }
+ this.nocase = nocase;
+ this.root = this.newRoot(this.#fs);
+ this.roots[this.rootPath] = this.root;
+ let prev = this.root;
+ let len = split2.length - 1;
+ const joinSep = pathImpl.sep;
+ let abs = this.rootPath;
+ let sawFirst = false;
+ for (const part of split2) {
+ const l = len--;
+ prev = prev.child(part, {
+ relative: new Array(l).fill("..").join(joinSep),
+ relativePosix: new Array(l).fill("..").join("/"),
+ fullpath: abs += (sawFirst ? "" : joinSep) + part
+ });
+ sawFirst = true;
+ }
+ this.cwd = prev;
+ }
+ depth(path2 = this.cwd) {
+ if (typeof path2 === "string") {
+ path2 = this.cwd.resolve(path2);
+ }
+ return path2.depth();
+ }
+ childrenCache() {
+ return this.#children;
+ }
+ resolve(...paths) {
+ let r = "";
+ for (let i = paths.length - 1;i >= 0; i--) {
+ const p = paths[i];
+ if (!p || p === ".")
+ continue;
+ r = r ? `${p}/${r}` : p;
+ if (this.isAbsolute(p)) {
+ break;
+ }
+ }
+ const cached = this.#resolveCache.get(r);
+ if (cached !== undefined) {
+ return cached;
+ }
+ const result = this.cwd.resolve(r).fullpath();
+ this.#resolveCache.set(r, result);
+ return result;
+ }
+ resolvePosix(...paths) {
+ let r = "";
+ for (let i = paths.length - 1;i >= 0; i--) {
+ const p = paths[i];
+ if (!p || p === ".")
+ continue;
+ r = r ? `${p}/${r}` : p;
+ if (this.isAbsolute(p)) {
+ break;
+ }
+ }
+ const cached = this.#resolvePosixCache.get(r);
+ if (cached !== undefined) {
+ return cached;
+ }
+ const result = this.cwd.resolve(r).fullpathPosix();
+ this.#resolvePosixCache.set(r, result);
+ return result;
+ }
+ relative(entry = this.cwd) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ }
+ return entry.relative();
+ }
+ relativePosix(entry = this.cwd) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ }
+ return entry.relativePosix();
+ }
+ basename(entry = this.cwd) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ }
+ return entry.name;
+ }
+ dirname(entry = this.cwd) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ }
+ return (entry.parent || entry).fullpath();
+ }
+ async readdir(entry = this.cwd, opts = {
+ withFileTypes: true
+ }) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ opts = entry;
+ entry = this.cwd;
+ }
+ const { withFileTypes } = opts;
+ if (!entry.canReaddir()) {
+ return [];
+ } else {
+ const p = await entry.readdir();
+ return withFileTypes ? p : p.map((e) => e.name);
+ }
+ }
+ readdirSync(entry = this.cwd, opts = {
+ withFileTypes: true
+ }) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ opts = entry;
+ entry = this.cwd;
+ }
+ const { withFileTypes = true } = opts;
+ if (!entry.canReaddir()) {
+ return [];
+ } else if (withFileTypes) {
+ return entry.readdirSync();
+ } else {
+ return entry.readdirSync().map((e) => e.name);
+ }
+ }
+ async lstat(entry = this.cwd) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ }
+ return entry.lstat();
+ }
+ lstatSync(entry = this.cwd) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ }
+ return entry.lstatSync();
+ }
+ async readlink(entry = this.cwd, { withFileTypes } = {
+ withFileTypes: false
+ }) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ withFileTypes = entry.withFileTypes;
+ entry = this.cwd;
+ }
+ const e = await entry.readlink();
+ return withFileTypes ? e : e?.fullpath();
+ }
+ readlinkSync(entry = this.cwd, { withFileTypes } = {
+ withFileTypes: false
+ }) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ withFileTypes = entry.withFileTypes;
+ entry = this.cwd;
+ }
+ const e = entry.readlinkSync();
+ return withFileTypes ? e : e?.fullpath();
+ }
+ async realpath(entry = this.cwd, { withFileTypes } = {
+ withFileTypes: false
+ }) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ withFileTypes = entry.withFileTypes;
+ entry = this.cwd;
+ }
+ const e = await entry.realpath();
+ return withFileTypes ? e : e?.fullpath();
+ }
+ realpathSync(entry = this.cwd, { withFileTypes } = {
+ withFileTypes: false
+ }) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ withFileTypes = entry.withFileTypes;
+ entry = this.cwd;
+ }
+ const e = entry.realpathSync();
+ return withFileTypes ? e : e?.fullpath();
+ }
+ async walk(entry = this.cwd, opts = {}) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ opts = entry;
+ entry = this.cwd;
+ }
+ const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts;
+ const results = [];
+ if (!filter2 || filter2(entry)) {
+ results.push(withFileTypes ? entry : entry.fullpath());
+ }
+ const dirs = new Set;
+ const walk = (dir, cb) => {
+ dirs.add(dir);
+ dir.readdirCB((er, entries) => {
+ if (er) {
+ return cb(er);
+ }
+ let len = entries.length;
+ if (!len)
+ return cb();
+ const next = () => {
+ if (--len === 0) {
+ cb();
+ }
+ };
+ for (const e of entries) {
+ if (!filter2 || filter2(e)) {
+ results.push(withFileTypes ? e : e.fullpath());
+ }
+ if (follow && e.isSymbolicLink()) {
+ e.realpath().then((r) => r?.isUnknown() ? r.lstat() : r).then((r) => r?.shouldWalk(dirs, walkFilter) ? walk(r, next) : next());
+ } else {
+ if (e.shouldWalk(dirs, walkFilter)) {
+ walk(e, next);
+ } else {
+ next();
+ }
+ }
+ }
+ }, true);
+ };
+ const start = entry;
+ return new Promise((res, rej) => {
+ walk(start, (er) => {
+ if (er)
+ return rej(er);
+ res(results);
+ });
+ });
+ }
+ walkSync(entry = this.cwd, opts = {}) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ opts = entry;
+ entry = this.cwd;
+ }
+ const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts;
+ const results = [];
+ if (!filter2 || filter2(entry)) {
+ results.push(withFileTypes ? entry : entry.fullpath());
+ }
+ const dirs = new Set([entry]);
+ for (const dir of dirs) {
+ const entries = dir.readdirSync();
+ for (const e of entries) {
+ if (!filter2 || filter2(e)) {
+ results.push(withFileTypes ? e : e.fullpath());
+ }
+ let r = e;
+ if (e.isSymbolicLink()) {
+ if (!(follow && (r = e.realpathSync())))
+ continue;
+ if (r.isUnknown())
+ r.lstatSync();
+ }
+ if (r.shouldWalk(dirs, walkFilter)) {
+ dirs.add(r);
+ }
+ }
+ }
+ return results;
+ }
+ [Symbol.asyncIterator]() {
+ return this.iterate();
+ }
+ iterate(entry = this.cwd, options = {}) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ options = entry;
+ entry = this.cwd;
+ }
+ return this.stream(entry, options)[Symbol.asyncIterator]();
+ }
+ [Symbol.iterator]() {
+ return this.iterateSync();
+ }
+ *iterateSync(entry = this.cwd, opts = {}) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ opts = entry;
+ entry = this.cwd;
+ }
+ const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts;
+ if (!filter2 || filter2(entry)) {
+ yield withFileTypes ? entry : entry.fullpath();
+ }
+ const dirs = new Set([entry]);
+ for (const dir of dirs) {
+ const entries = dir.readdirSync();
+ for (const e of entries) {
+ if (!filter2 || filter2(e)) {
+ yield withFileTypes ? e : e.fullpath();
+ }
+ let r = e;
+ if (e.isSymbolicLink()) {
+ if (!(follow && (r = e.realpathSync())))
+ continue;
+ if (r.isUnknown())
+ r.lstatSync();
+ }
+ if (r.shouldWalk(dirs, walkFilter)) {
+ dirs.add(r);
+ }
+ }
+ }
+ }
+ stream(entry = this.cwd, opts = {}) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ opts = entry;
+ entry = this.cwd;
+ }
+ const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts;
+ const results = new minipass_1.Minipass({ objectMode: true });
+ if (!filter2 || filter2(entry)) {
+ results.write(withFileTypes ? entry : entry.fullpath());
+ }
+ const dirs = new Set;
+ const queue = [entry];
+ let processing = 0;
+ const process5 = () => {
+ let paused = false;
+ while (!paused) {
+ const dir = queue.shift();
+ if (!dir) {
+ if (processing === 0)
+ results.end();
+ return;
+ }
+ processing++;
+ dirs.add(dir);
+ const onReaddir = (er, entries, didRealpaths = false) => {
+ if (er)
+ return results.emit("error", er);
+ if (follow && !didRealpaths) {
+ const promises = [];
+ for (const e of entries) {
+ if (e.isSymbolicLink()) {
+ promises.push(e.realpath().then((r) => r?.isUnknown() ? r.lstat() : r));
+ }
+ }
+ if (promises.length) {
+ Promise.all(promises).then(() => onReaddir(null, entries, true));
+ return;
+ }
+ }
+ for (const e of entries) {
+ if (e && (!filter2 || filter2(e))) {
+ if (!results.write(withFileTypes ? e : e.fullpath())) {
+ paused = true;
+ }
+ }
+ }
+ processing--;
+ for (const e of entries) {
+ const r = e.realpathCached() || e;
+ if (r.shouldWalk(dirs, walkFilter)) {
+ queue.push(r);
+ }
+ }
+ if (paused && !results.flowing) {
+ results.once("drain", process5);
+ } else if (!sync) {
+ process5();
+ }
+ };
+ let sync = true;
+ dir.readdirCB(onReaddir, true);
+ sync = false;
+ }
+ };
+ process5();
+ return results;
+ }
+ streamSync(entry = this.cwd, opts = {}) {
+ if (typeof entry === "string") {
+ entry = this.cwd.resolve(entry);
+ } else if (!(entry instanceof PathBase)) {
+ opts = entry;
+ entry = this.cwd;
+ }
+ const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts;
+ const results = new minipass_1.Minipass({ objectMode: true });
+ const dirs = new Set;
+ if (!filter2 || filter2(entry)) {
+ results.write(withFileTypes ? entry : entry.fullpath());
+ }
+ const queue = [entry];
+ let processing = 0;
+ const process5 = () => {
+ let paused = false;
+ while (!paused) {
+ const dir = queue.shift();
+ if (!dir) {
+ if (processing === 0)
+ results.end();
+ return;
+ }
+ processing++;
+ dirs.add(dir);
+ const entries = dir.readdirSync();
+ for (const e of entries) {
+ if (!filter2 || filter2(e)) {
+ if (!results.write(withFileTypes ? e : e.fullpath())) {
+ paused = true;
+ }
+ }
+ }
+ processing--;
+ for (const e of entries) {
+ let r = e;
+ if (e.isSymbolicLink()) {
+ if (!(follow && (r = e.realpathSync())))
+ continue;
+ if (r.isUnknown())
+ r.lstatSync();
+ }
+ if (r.shouldWalk(dirs, walkFilter)) {
+ queue.push(r);
+ }
+ }
+ }
+ if (paused && !results.flowing)
+ results.once("drain", process5);
+ };
+ process5();
+ return results;
+ }
+ chdir(path2 = this.cwd) {
+ const oldCwd = this.cwd;
+ this.cwd = typeof path2 === "string" ? this.cwd.resolve(path2) : path2;
+ this.cwd[setAsCwd](oldCwd);
+ }
+ }
+ exports.PathScurryBase = PathScurryBase;
+
+ class PathScurryWin32 extends PathScurryBase {
+ sep = "\\";
+ constructor(cwd = process.cwd(), opts = {}) {
+ const { nocase = true } = opts;
+ super(cwd, node_path_1.win32, "\\", { ...opts, nocase });
+ this.nocase = nocase;
+ for (let p = this.cwd;p; p = p.parent) {
+ p.nocase = this.nocase;
+ }
+ }
+ parseRootPath(dir) {
+ return node_path_1.win32.parse(dir).root.toUpperCase();
+ }
+ newRoot(fs2) {
+ return new PathWin32(this.rootPath, IFDIR, undefined, this.roots, this.nocase, this.childrenCache(), { fs: fs2 });
+ }
+ isAbsolute(p) {
+ return p.startsWith("/") || p.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(p);
+ }
+ }
+ exports.PathScurryWin32 = PathScurryWin32;
+
+ class PathScurryPosix extends PathScurryBase {
+ sep = "/";
+ constructor(cwd = process.cwd(), opts = {}) {
+ const { nocase = false } = opts;
+ super(cwd, node_path_1.posix, "/", { ...opts, nocase });
+ this.nocase = nocase;
+ }
+ parseRootPath(_dir) {
+ return "/";
+ }
+ newRoot(fs2) {
+ return new PathPosix(this.rootPath, IFDIR, undefined, this.roots, this.nocase, this.childrenCache(), { fs: fs2 });
+ }
+ isAbsolute(p) {
+ return p.startsWith("/");
+ }
+ }
+ exports.PathScurryPosix = PathScurryPosix;
+
+ class PathScurryDarwin extends PathScurryPosix {
+ constructor(cwd = process.cwd(), opts = {}) {
+ const { nocase = true } = opts;
+ super(cwd, { ...opts, nocase });
+ }
+ }
+ exports.PathScurryDarwin = PathScurryDarwin;
+ exports.Path = process.platform === "win32" ? PathWin32 : PathPosix;
+ exports.PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
+});
+
+// node_modules/glob/dist/commonjs/pattern.js
+var require_pattern = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.Pattern = undefined;
+ var minimatch_1 = require_commonjs();
+ var isPatternList = (pl) => pl.length >= 1;
+ var isGlobList = (gl) => gl.length >= 1;
+
+ class Pattern {
+ #patternList;
+ #globList;
+ #index;
+ length;
+ #platform;
+ #rest;
+ #globString;
+ #isDrive;
+ #isUNC;
+ #isAbsolute;
+ #followGlobstar = true;
+ constructor(patternList, globList, index, platform) {
+ if (!isPatternList(patternList)) {
+ throw new TypeError("empty pattern list");
+ }
+ if (!isGlobList(globList)) {
+ throw new TypeError("empty glob list");
+ }
+ if (globList.length !== patternList.length) {
+ throw new TypeError("mismatched pattern list and glob list lengths");
+ }
+ this.length = patternList.length;
+ if (index < 0 || index >= this.length) {
+ throw new TypeError("index out of range");
+ }
+ this.#patternList = patternList;
+ this.#globList = globList;
+ this.#index = index;
+ this.#platform = platform;
+ if (this.#index === 0) {
+ if (this.isUNC()) {
+ const [p0, p1, p2, p3, ...prest] = this.#patternList;
+ const [g0, g1, g2, g3, ...grest] = this.#globList;
+ if (prest[0] === "") {
+ prest.shift();
+ grest.shift();
+ }
+ const p = [p0, p1, p2, p3, ""].join("/");
+ const g = [g0, g1, g2, g3, ""].join("/");
+ this.#patternList = [p, ...prest];
+ this.#globList = [g, ...grest];
+ this.length = this.#patternList.length;
+ } else if (this.isDrive() || this.isAbsolute()) {
+ const [p1, ...prest] = this.#patternList;
+ const [g1, ...grest] = this.#globList;
+ if (prest[0] === "") {
+ prest.shift();
+ grest.shift();
+ }
+ const p = p1 + "/";
+ const g = g1 + "/";
+ this.#patternList = [p, ...prest];
+ this.#globList = [g, ...grest];
+ this.length = this.#patternList.length;
+ }
+ }
+ }
+ pattern() {
+ return this.#patternList[this.#index];
+ }
+ isString() {
+ return typeof this.#patternList[this.#index] === "string";
+ }
+ isGlobstar() {
+ return this.#patternList[this.#index] === minimatch_1.GLOBSTAR;
+ }
+ isRegExp() {
+ return this.#patternList[this.#index] instanceof RegExp;
+ }
+ globString() {
+ return this.#globString = this.#globString || (this.#index === 0 ? this.isAbsolute() ? this.#globList[0] + this.#globList.slice(1).join("/") : this.#globList.join("/") : this.#globList.slice(this.#index).join("/"));
+ }
+ hasMore() {
+ return this.length > this.#index + 1;
+ }
+ rest() {
+ if (this.#rest !== undefined)
+ return this.#rest;
+ if (!this.hasMore())
+ return this.#rest = null;
+ this.#rest = new Pattern(this.#patternList, this.#globList, this.#index + 1, this.#platform);
+ this.#rest.#isAbsolute = this.#isAbsolute;
+ this.#rest.#isUNC = this.#isUNC;
+ this.#rest.#isDrive = this.#isDrive;
+ return this.#rest;
+ }
+ isUNC() {
+ const pl = this.#patternList;
+ return this.#isUNC !== undefined ? this.#isUNC : this.#isUNC = this.#platform === "win32" && this.#index === 0 && pl[0] === "" && pl[1] === "" && typeof pl[2] === "string" && !!pl[2] && typeof pl[3] === "string" && !!pl[3];
+ }
+ isDrive() {
+ const pl = this.#patternList;
+ return this.#isDrive !== undefined ? this.#isDrive : this.#isDrive = this.#platform === "win32" && this.#index === 0 && this.length > 1 && typeof pl[0] === "string" && /^[a-z]:$/i.test(pl[0]);
+ }
+ isAbsolute() {
+ const pl = this.#patternList;
+ return this.#isAbsolute !== undefined ? this.#isAbsolute : this.#isAbsolute = pl[0] === "" && pl.length > 1 || this.isDrive() || this.isUNC();
+ }
+ root() {
+ const p = this.#patternList[0];
+ return typeof p === "string" && this.isAbsolute() && this.#index === 0 ? p : "";
+ }
+ checkFollowGlobstar() {
+ return !(this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar);
+ }
+ markFollowGlobstar() {
+ if (this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar)
+ return false;
+ this.#followGlobstar = false;
+ return true;
+ }
+ }
+ exports.Pattern = Pattern;
+});
+
+// node_modules/glob/dist/commonjs/ignore.js
+var require_ignore = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.Ignore = undefined;
+ var minimatch_1 = require_commonjs();
+ var pattern_js_1 = require_pattern();
+ var defaultPlatform = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
+
+ class Ignore {
+ relative;
+ relativeChildren;
+ absolute;
+ absoluteChildren;
+ platform;
+ mmopts;
+ constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform }) {
+ this.relative = [];
+ this.absolute = [];
+ this.relativeChildren = [];
+ this.absoluteChildren = [];
+ this.platform = platform;
+ this.mmopts = {
+ dot: true,
+ nobrace,
+ nocase,
+ noext,
+ noglobstar,
+ optimizationLevel: 2,
+ platform,
+ nocomment: true,
+ nonegate: true
+ };
+ for (const ign of ignored)
+ this.add(ign);
+ }
+ add(ign) {
+ const mm = new minimatch_1.Minimatch(ign, this.mmopts);
+ for (let i = 0;i < mm.set.length; i++) {
+ const parsed = mm.set[i];
+ const globParts = mm.globParts[i];
+ if (!parsed || !globParts) {
+ throw new Error("invalid pattern object");
+ }
+ while (parsed[0] === "." && globParts[0] === ".") {
+ parsed.shift();
+ globParts.shift();
+ }
+ const p = new pattern_js_1.Pattern(parsed, globParts, 0, this.platform);
+ const m = new minimatch_1.Minimatch(p.globString(), this.mmopts);
+ const children = globParts[globParts.length - 1] === "**";
+ const absolute = p.isAbsolute();
+ if (absolute)
+ this.absolute.push(m);
+ else
+ this.relative.push(m);
+ if (children) {
+ if (absolute)
+ this.absoluteChildren.push(m);
+ else
+ this.relativeChildren.push(m);
+ }
+ }
+ }
+ ignored(p) {
+ const fullpath = p.fullpath();
+ const fullpaths = `${fullpath}/`;
+ const relative = p.relative() || ".";
+ const relatives = `${relative}/`;
+ for (const m of this.relative) {
+ if (m.match(relative) || m.match(relatives))
+ return true;
+ }
+ for (const m of this.absolute) {
+ if (m.match(fullpath) || m.match(fullpaths))
+ return true;
+ }
+ return false;
+ }
+ childrenIgnored(p) {
+ const fullpath = p.fullpath() + "/";
+ const relative = (p.relative() || ".") + "/";
+ for (const m of this.relativeChildren) {
+ if (m.match(relative))
+ return true;
+ }
+ for (const m of this.absoluteChildren) {
+ if (m.match(fullpath))
+ return true;
+ }
+ return false;
+ }
+ }
+ exports.Ignore = Ignore;
+});
+
+// node_modules/glob/dist/commonjs/processor.js
+var require_processor = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.Processor = exports.SubWalks = exports.MatchRecord = exports.HasWalkedCache = undefined;
+ var minimatch_1 = require_commonjs();
+
+ class HasWalkedCache {
+ store;
+ constructor(store = new Map) {
+ this.store = store;
+ }
+ copy() {
+ return new HasWalkedCache(new Map(this.store));
+ }
+ hasWalked(target, pattern) {
+ return this.store.get(target.fullpath())?.has(pattern.globString());
+ }
+ storeWalked(target, pattern) {
+ const fullpath = target.fullpath();
+ const cached = this.store.get(fullpath);
+ if (cached)
+ cached.add(pattern.globString());
+ else
+ this.store.set(fullpath, new Set([pattern.globString()]));
+ }
+ }
+ exports.HasWalkedCache = HasWalkedCache;
+
+ class MatchRecord {
+ store = new Map;
+ add(target, absolute, ifDir) {
+ const n = (absolute ? 2 : 0) | (ifDir ? 1 : 0);
+ const current = this.store.get(target);
+ this.store.set(target, current === undefined ? n : n & current);
+ }
+ entries() {
+ return [...this.store.entries()].map(([path2, n]) => [
+ path2,
+ !!(n & 2),
+ !!(n & 1)
+ ]);
+ }
+ }
+ exports.MatchRecord = MatchRecord;
+
+ class SubWalks {
+ store = new Map;
+ add(target, pattern) {
+ if (!target.canReaddir()) {
+ return;
+ }
+ const subs = this.store.get(target);
+ if (subs) {
+ if (!subs.find((p) => p.globString() === pattern.globString())) {
+ subs.push(pattern);
+ }
+ } else
+ this.store.set(target, [pattern]);
+ }
+ get(target) {
+ const subs = this.store.get(target);
+ if (!subs) {
+ throw new Error("attempting to walk unknown path");
+ }
+ return subs;
+ }
+ entries() {
+ return this.keys().map((k) => [k, this.store.get(k)]);
+ }
+ keys() {
+ return [...this.store.keys()].filter((t) => t.canReaddir());
+ }
+ }
+ exports.SubWalks = SubWalks;
+
+ class Processor {
+ hasWalkedCache;
+ matches = new MatchRecord;
+ subwalks = new SubWalks;
+ patterns;
+ follow;
+ dot;
+ opts;
+ constructor(opts, hasWalkedCache) {
+ this.opts = opts;
+ this.follow = !!opts.follow;
+ this.dot = !!opts.dot;
+ this.hasWalkedCache = hasWalkedCache ? hasWalkedCache.copy() : new HasWalkedCache;
+ }
+ processPatterns(target, patterns) {
+ this.patterns = patterns;
+ const processingSet = patterns.map((p) => [target, p]);
+ for (let [t, pattern] of processingSet) {
+ this.hasWalkedCache.storeWalked(t, pattern);
+ const root = pattern.root();
+ const absolute = pattern.isAbsolute() && this.opts.absolute !== false;
+ if (root) {
+ t = t.resolve(root === "/" && this.opts.root !== undefined ? this.opts.root : root);
+ const rest2 = pattern.rest();
+ if (!rest2) {
+ this.matches.add(t, true, false);
+ continue;
+ } else {
+ pattern = rest2;
+ }
+ }
+ if (t.isENOENT())
+ continue;
+ let p;
+ let rest;
+ let changed = false;
+ while (typeof (p = pattern.pattern()) === "string" && (rest = pattern.rest())) {
+ const c = t.resolve(p);
+ t = c;
+ pattern = rest;
+ changed = true;
+ }
+ p = pattern.pattern();
+ rest = pattern.rest();
+ if (changed) {
+ if (this.hasWalkedCache.hasWalked(t, pattern))
+ continue;
+ this.hasWalkedCache.storeWalked(t, pattern);
+ }
+ if (typeof p === "string") {
+ const ifDir = p === ".." || p === "" || p === ".";
+ this.matches.add(t.resolve(p), absolute, ifDir);
+ continue;
+ } else if (p === minimatch_1.GLOBSTAR) {
+ if (!t.isSymbolicLink() || this.follow || pattern.checkFollowGlobstar()) {
+ this.subwalks.add(t, pattern);
+ }
+ const rp = rest?.pattern();
+ const rrest = rest?.rest();
+ if (!rest || (rp === "" || rp === ".") && !rrest) {
+ this.matches.add(t, absolute, rp === "" || rp === ".");
+ } else {
+ if (rp === "..") {
+ const tp = t.parent || t;
+ if (!rrest)
+ this.matches.add(tp, absolute, true);
+ else if (!this.hasWalkedCache.hasWalked(tp, rrest)) {
+ this.subwalks.add(tp, rrest);
+ }
+ }
+ }
+ } else if (p instanceof RegExp) {
+ this.subwalks.add(t, pattern);
+ }
+ }
+ return this;
+ }
+ subwalkTargets() {
+ return this.subwalks.keys();
+ }
+ child() {
+ return new Processor(this.opts, this.hasWalkedCache);
+ }
+ filterEntries(parent, entries) {
+ const patterns = this.subwalks.get(parent);
+ const results = this.child();
+ for (const e of entries) {
+ for (const pattern of patterns) {
+ const absolute = pattern.isAbsolute();
+ const p = pattern.pattern();
+ const rest = pattern.rest();
+ if (p === minimatch_1.GLOBSTAR) {
+ results.testGlobstar(e, pattern, rest, absolute);
+ } else if (p instanceof RegExp) {
+ results.testRegExp(e, p, rest, absolute);
+ } else {
+ results.testString(e, p, rest, absolute);
+ }
+ }
+ }
+ return results;
+ }
+ testGlobstar(e, pattern, rest, absolute) {
+ if (this.dot || !e.name.startsWith(".")) {
+ if (!pattern.hasMore()) {
+ this.matches.add(e, absolute, false);
+ }
+ if (e.canReaddir()) {
+ if (this.follow || !e.isSymbolicLink()) {
+ this.subwalks.add(e, pattern);
+ } else if (e.isSymbolicLink()) {
+ if (rest && pattern.checkFollowGlobstar()) {
+ this.subwalks.add(e, rest);
+ } else if (pattern.markFollowGlobstar()) {
+ this.subwalks.add(e, pattern);
+ }
+ }
+ }
+ }
+ if (rest) {
+ const rp = rest.pattern();
+ if (typeof rp === "string" && rp !== ".." && rp !== "" && rp !== ".") {
+ this.testString(e, rp, rest.rest(), absolute);
+ } else if (rp === "..") {
+ const ep = e.parent || e;
+ this.subwalks.add(ep, rest);
+ } else if (rp instanceof RegExp) {
+ this.testRegExp(e, rp, rest.rest(), absolute);
+ }
+ }
+ }
+ testRegExp(e, p, rest, absolute) {
+ if (!p.test(e.name))
+ return;
+ if (!rest) {
+ this.matches.add(e, absolute, false);
+ } else {
+ this.subwalks.add(e, rest);
+ }
+ }
+ testString(e, p, rest, absolute) {
+ if (!e.isNamed(p))
+ return;
+ if (!rest) {
+ this.matches.add(e, absolute, false);
+ } else {
+ this.subwalks.add(e, rest);
+ }
+ }
+ }
+ exports.Processor = Processor;
+});
+
+// node_modules/glob/dist/commonjs/walker.js
+var require_walker = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.GlobStream = exports.GlobWalker = exports.GlobUtil = undefined;
+ var minipass_1 = require_commonjs3();
+ var ignore_js_1 = require_ignore();
+ var processor_js_1 = require_processor();
+ var makeIgnore = (ignore, opts) => typeof ignore === "string" ? new ignore_js_1.Ignore([ignore], opts) : Array.isArray(ignore) ? new ignore_js_1.Ignore(ignore, opts) : ignore;
+
+ class GlobUtil {
+ path;
+ patterns;
+ opts;
+ seen = new Set;
+ paused = false;
+ aborted = false;
+ #onResume = [];
+ #ignore;
+ #sep;
+ signal;
+ maxDepth;
+ includeChildMatches;
+ constructor(patterns, path2, opts) {
+ this.patterns = patterns;
+ this.path = path2;
+ this.opts = opts;
+ this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
+ this.includeChildMatches = opts.includeChildMatches !== false;
+ if (opts.ignore || !this.includeChildMatches) {
+ this.#ignore = makeIgnore(opts.ignore ?? [], opts);
+ if (!this.includeChildMatches && typeof this.#ignore.add !== "function") {
+ const m = "cannot ignore child matches, ignore lacks add() method.";
+ throw new Error(m);
+ }
+ }
+ this.maxDepth = opts.maxDepth || Infinity;
+ if (opts.signal) {
+ this.signal = opts.signal;
+ this.signal.addEventListener("abort", () => {
+ this.#onResume.length = 0;
+ });
+ }
+ }
+ #ignored(path2) {
+ return this.seen.has(path2) || !!this.#ignore?.ignored?.(path2);
+ }
+ #childrenIgnored(path2) {
+ return !!this.#ignore?.childrenIgnored?.(path2);
+ }
+ pause() {
+ this.paused = true;
+ }
+ resume() {
+ if (this.signal?.aborted)
+ return;
+ this.paused = false;
+ let fn = undefined;
+ while (!this.paused && (fn = this.#onResume.shift())) {
+ fn();
+ }
+ }
+ onResume(fn) {
+ if (this.signal?.aborted)
+ return;
+ if (!this.paused) {
+ fn();
+ } else {
+ this.#onResume.push(fn);
+ }
+ }
+ async matchCheck(e, ifDir) {
+ if (ifDir && this.opts.nodir)
+ return;
+ let rpc;
+ if (this.opts.realpath) {
+ rpc = e.realpathCached() || await e.realpath();
+ if (!rpc)
+ return;
+ e = rpc;
+ }
+ const needStat = e.isUnknown() || this.opts.stat;
+ const s = needStat ? await e.lstat() : e;
+ if (this.opts.follow && this.opts.nodir && s?.isSymbolicLink()) {
+ const target = await s.realpath();
+ if (target && (target.isUnknown() || this.opts.stat)) {
+ await target.lstat();
+ }
+ }
+ return this.matchCheckTest(s, ifDir);
+ }
+ matchCheckTest(e, ifDir) {
+ return e && (this.maxDepth === Infinity || e.depth() <= this.maxDepth) && (!ifDir || e.canReaddir()) && (!this.opts.nodir || !e.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !e.isSymbolicLink() || !e.realpathCached()?.isDirectory()) && !this.#ignored(e) ? e : undefined;
+ }
+ matchCheckSync(e, ifDir) {
+ if (ifDir && this.opts.nodir)
+ return;
+ let rpc;
+ if (this.opts.realpath) {
+ rpc = e.realpathCached() || e.realpathSync();
+ if (!rpc)
+ return;
+ e = rpc;
+ }
+ const needStat = e.isUnknown() || this.opts.stat;
+ const s = needStat ? e.lstatSync() : e;
+ if (this.opts.follow && this.opts.nodir && s?.isSymbolicLink()) {
+ const target = s.realpathSync();
+ if (target && (target?.isUnknown() || this.opts.stat)) {
+ target.lstatSync();
+ }
+ }
+ return this.matchCheckTest(s, ifDir);
+ }
+ matchFinish(e, absolute) {
+ if (this.#ignored(e))
+ return;
+ if (!this.includeChildMatches && this.#ignore?.add) {
+ const ign = `${e.relativePosix()}/**`;
+ this.#ignore.add(ign);
+ }
+ const abs = this.opts.absolute === undefined ? absolute : this.opts.absolute;
+ this.seen.add(e);
+ const mark = this.opts.mark && e.isDirectory() ? this.#sep : "";
+ if (this.opts.withFileTypes) {
+ this.matchEmit(e);
+ } else if (abs) {
+ const abs2 = this.opts.posix ? e.fullpathPosix() : e.fullpath();
+ this.matchEmit(abs2 + mark);
+ } else {
+ const rel = this.opts.posix ? e.relativePosix() : e.relative();
+ const pre = this.opts.dotRelative && !rel.startsWith(".." + this.#sep) ? "." + this.#sep : "";
+ this.matchEmit(!rel ? "." + mark : pre + rel + mark);
+ }
+ }
+ async match(e, absolute, ifDir) {
+ const p = await this.matchCheck(e, ifDir);
+ if (p)
+ this.matchFinish(p, absolute);
+ }
+ matchSync(e, absolute, ifDir) {
+ const p = this.matchCheckSync(e, ifDir);
+ if (p)
+ this.matchFinish(p, absolute);
+ }
+ walkCB(target, patterns, cb) {
+ if (this.signal?.aborted)
+ cb();
+ this.walkCB2(target, patterns, new processor_js_1.Processor(this.opts), cb);
+ }
+ walkCB2(target, patterns, processor, cb) {
+ if (this.#childrenIgnored(target))
+ return cb();
+ if (this.signal?.aborted)
+ cb();
+ if (this.paused) {
+ this.onResume(() => this.walkCB2(target, patterns, processor, cb));
+ return;
+ }
+ processor.processPatterns(target, patterns);
+ let tasks = 1;
+ const next = () => {
+ if (--tasks === 0)
+ cb();
+ };
+ for (const [m, absolute, ifDir] of processor.matches.entries()) {
+ if (this.#ignored(m))
+ continue;
+ tasks++;
+ this.match(m, absolute, ifDir).then(() => next());
+ }
+ for (const t of processor.subwalkTargets()) {
+ if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {
+ continue;
+ }
+ tasks++;
+ const childrenCached = t.readdirCached();
+ if (t.calledReaddir())
+ this.walkCB3(t, childrenCached, processor, next);
+ else {
+ t.readdirCB((_3, entries) => this.walkCB3(t, entries, processor, next), true);
+ }
+ }
+ next();
+ }
+ walkCB3(target, entries, processor, cb) {
+ processor = processor.filterEntries(target, entries);
+ let tasks = 1;
+ const next = () => {
+ if (--tasks === 0)
+ cb();
+ };
+ for (const [m, absolute, ifDir] of processor.matches.entries()) {
+ if (this.#ignored(m))
+ continue;
+ tasks++;
+ this.match(m, absolute, ifDir).then(() => next());
+ }
+ for (const [target2, patterns] of processor.subwalks.entries()) {
+ tasks++;
+ this.walkCB2(target2, patterns, processor.child(), next);
+ }
+ next();
+ }
+ walkCBSync(target, patterns, cb) {
+ if (this.signal?.aborted)
+ cb();
+ this.walkCB2Sync(target, patterns, new processor_js_1.Processor(this.opts), cb);
+ }
+ walkCB2Sync(target, patterns, processor, cb) {
+ if (this.#childrenIgnored(target))
+ return cb();
+ if (this.signal?.aborted)
+ cb();
+ if (this.paused) {
+ this.onResume(() => this.walkCB2Sync(target, patterns, processor, cb));
+ return;
+ }
+ processor.processPatterns(target, patterns);
+ let tasks = 1;
+ const next = () => {
+ if (--tasks === 0)
+ cb();
+ };
+ for (const [m, absolute, ifDir] of processor.matches.entries()) {
+ if (this.#ignored(m))
+ continue;
+ this.matchSync(m, absolute, ifDir);
+ }
+ for (const t of processor.subwalkTargets()) {
+ if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {
+ continue;
+ }
+ tasks++;
+ const children = t.readdirSync();
+ this.walkCB3Sync(t, children, processor, next);
+ }
+ next();
+ }
+ walkCB3Sync(target, entries, processor, cb) {
+ processor = processor.filterEntries(target, entries);
+ let tasks = 1;
+ const next = () => {
+ if (--tasks === 0)
+ cb();
+ };
+ for (const [m, absolute, ifDir] of processor.matches.entries()) {
+ if (this.#ignored(m))
+ continue;
+ this.matchSync(m, absolute, ifDir);
+ }
+ for (const [target2, patterns] of processor.subwalks.entries()) {
+ tasks++;
+ this.walkCB2Sync(target2, patterns, processor.child(), next);
+ }
+ next();
+ }
+ }
+ exports.GlobUtil = GlobUtil;
+
+ class GlobWalker extends GlobUtil {
+ matches = new Set;
+ constructor(patterns, path2, opts) {
+ super(patterns, path2, opts);
+ }
+ matchEmit(e) {
+ this.matches.add(e);
+ }
+ async walk() {
+ if (this.signal?.aborted)
+ throw this.signal.reason;
+ if (this.path.isUnknown()) {
+ await this.path.lstat();
+ }
+ await new Promise((res, rej) => {
+ this.walkCB(this.path, this.patterns, () => {
+ if (this.signal?.aborted) {
+ rej(this.signal.reason);
+ } else {
+ res(this.matches);
+ }
+ });
+ });
+ return this.matches;
+ }
+ walkSync() {
+ if (this.signal?.aborted)
+ throw this.signal.reason;
+ if (this.path.isUnknown()) {
+ this.path.lstatSync();
+ }
+ this.walkCBSync(this.path, this.patterns, () => {
+ if (this.signal?.aborted)
+ throw this.signal.reason;
+ });
+ return this.matches;
+ }
+ }
+ exports.GlobWalker = GlobWalker;
+
+ class GlobStream extends GlobUtil {
+ results;
+ constructor(patterns, path2, opts) {
+ super(patterns, path2, opts);
+ this.results = new minipass_1.Minipass({
+ signal: this.signal,
+ objectMode: true
+ });
+ this.results.on("drain", () => this.resume());
+ this.results.on("resume", () => this.resume());
+ }
+ matchEmit(e) {
+ this.results.write(e);
+ if (!this.results.flowing)
+ this.pause();
+ }
+ stream() {
+ const target = this.path;
+ if (target.isUnknown()) {
+ target.lstat().then(() => {
+ this.walkCB(target, this.patterns, () => this.results.end());
+ });
+ } else {
+ this.walkCB(target, this.patterns, () => this.results.end());
+ }
+ return this.results;
+ }
+ streamSync() {
+ if (this.path.isUnknown()) {
+ this.path.lstatSync();
+ }
+ this.walkCBSync(this.path, this.patterns, () => this.results.end());
+ return this.results;
+ }
+ }
+ exports.GlobStream = GlobStream;
+});
+
+// node_modules/glob/dist/commonjs/glob.js
+var require_glob = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.Glob = undefined;
+ var minimatch_1 = require_commonjs();
+ var node_url_1 = __require("node:url");
+ var path_scurry_1 = require_commonjs4();
+ var pattern_js_1 = require_pattern();
+ var walker_js_1 = require_walker();
+ var defaultPlatform = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
+
+ class Glob {
+ absolute;
+ cwd;
+ root;
+ dot;
+ dotRelative;
+ follow;
+ ignore;
+ magicalBraces;
+ mark;
+ matchBase;
+ maxDepth;
+ nobrace;
+ nocase;
+ nodir;
+ noext;
+ noglobstar;
+ pattern;
+ platform;
+ realpath;
+ scurry;
+ stat;
+ signal;
+ windowsPathsNoEscape;
+ withFileTypes;
+ includeChildMatches;
+ opts;
+ patterns;
+ constructor(pattern, opts) {
+ if (!opts)
+ throw new TypeError("glob options required");
+ this.withFileTypes = !!opts.withFileTypes;
+ this.signal = opts.signal;
+ this.follow = !!opts.follow;
+ this.dot = !!opts.dot;
+ this.dotRelative = !!opts.dotRelative;
+ this.nodir = !!opts.nodir;
+ this.mark = !!opts.mark;
+ if (!opts.cwd) {
+ this.cwd = "";
+ } else if (opts.cwd instanceof URL || opts.cwd.startsWith("file://")) {
+ opts.cwd = (0, node_url_1.fileURLToPath)(opts.cwd);
+ }
+ this.cwd = opts.cwd || "";
+ this.root = opts.root;
+ this.magicalBraces = !!opts.magicalBraces;
+ this.nobrace = !!opts.nobrace;
+ this.noext = !!opts.noext;
+ this.realpath = !!opts.realpath;
+ this.absolute = opts.absolute;
+ this.includeChildMatches = opts.includeChildMatches !== false;
+ this.noglobstar = !!opts.noglobstar;
+ this.matchBase = !!opts.matchBase;
+ this.maxDepth = typeof opts.maxDepth === "number" ? opts.maxDepth : Infinity;
+ this.stat = !!opts.stat;
+ this.ignore = opts.ignore;
+ if (this.withFileTypes && this.absolute !== undefined) {
+ throw new Error("cannot set absolute and withFileTypes:true");
+ }
+ if (typeof pattern === "string") {
+ pattern = [pattern];
+ }
+ this.windowsPathsNoEscape = !!opts.windowsPathsNoEscape || opts.allowWindowsEscape === false;
+ if (this.windowsPathsNoEscape) {
+ pattern = pattern.map((p) => p.replace(/\\/g, "/"));
+ }
+ if (this.matchBase) {
+ if (opts.noglobstar) {
+ throw new TypeError("base matching requires globstar");
+ }
+ pattern = pattern.map((p) => p.includes("/") ? p : `./**/${p}`);
+ }
+ this.pattern = pattern;
+ this.platform = opts.platform || defaultPlatform;
+ this.opts = { ...opts, platform: this.platform };
+ if (opts.scurry) {
+ this.scurry = opts.scurry;
+ if (opts.nocase !== undefined && opts.nocase !== opts.scurry.nocase) {
+ throw new Error("nocase option contradicts provided scurry option");
+ }
+ } else {
+ const Scurry = opts.platform === "win32" ? path_scurry_1.PathScurryWin32 : opts.platform === "darwin" ? path_scurry_1.PathScurryDarwin : opts.platform ? path_scurry_1.PathScurryPosix : path_scurry_1.PathScurry;
+ this.scurry = new Scurry(this.cwd, {
+ nocase: opts.nocase,
+ fs: opts.fs
+ });
+ }
+ this.nocase = this.scurry.nocase;
+ const nocaseMagicOnly = this.platform === "darwin" || this.platform === "win32";
+ const mmo = {
+ ...opts,
+ dot: this.dot,
+ matchBase: this.matchBase,
+ nobrace: this.nobrace,
+ nocase: this.nocase,
+ nocaseMagicOnly,
+ nocomment: true,
+ noext: this.noext,
+ nonegate: true,
+ optimizationLevel: 2,
+ platform: this.platform,
+ windowsPathsNoEscape: this.windowsPathsNoEscape,
+ debug: !!this.opts.debug
+ };
+ const mms = this.pattern.map((p) => new minimatch_1.Minimatch(p, mmo));
+ const [matchSet, globParts] = mms.reduce((set, m) => {
+ set[0].push(...m.set);
+ set[1].push(...m.globParts);
+ return set;
+ }, [[], []]);
+ this.patterns = matchSet.map((set, i) => {
+ const g = globParts[i];
+ if (!g)
+ throw new Error("invalid pattern object");
+ return new pattern_js_1.Pattern(set, g, 0, this.platform);
+ });
+ }
+ async walk() {
+ return [
+ ...await new walker_js_1.GlobWalker(this.patterns, this.scurry.cwd, {
+ ...this.opts,
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
+ platform: this.platform,
+ nocase: this.nocase,
+ includeChildMatches: this.includeChildMatches
+ }).walk()
+ ];
+ }
+ walkSync() {
+ return [
+ ...new walker_js_1.GlobWalker(this.patterns, this.scurry.cwd, {
+ ...this.opts,
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
+ platform: this.platform,
+ nocase: this.nocase,
+ includeChildMatches: this.includeChildMatches
+ }).walkSync()
+ ];
+ }
+ stream() {
+ return new walker_js_1.GlobStream(this.patterns, this.scurry.cwd, {
+ ...this.opts,
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
+ platform: this.platform,
+ nocase: this.nocase,
+ includeChildMatches: this.includeChildMatches
+ }).stream();
+ }
+ streamSync() {
+ return new walker_js_1.GlobStream(this.patterns, this.scurry.cwd, {
+ ...this.opts,
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
+ platform: this.platform,
+ nocase: this.nocase,
+ includeChildMatches: this.includeChildMatches
+ }).streamSync();
+ }
+ iterateSync() {
+ return this.streamSync()[Symbol.iterator]();
+ }
+ [Symbol.iterator]() {
+ return this.iterateSync();
+ }
+ iterate() {
+ return this.stream()[Symbol.asyncIterator]();
+ }
+ [Symbol.asyncIterator]() {
+ return this.iterate();
+ }
+ }
+ exports.Glob = Glob;
+});
+
+// node_modules/glob/dist/commonjs/has-magic.js
+var require_has_magic = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.hasMagic = undefined;
+ var minimatch_1 = require_commonjs();
+ var hasMagic = (pattern, options = {}) => {
+ if (!Array.isArray(pattern)) {
+ pattern = [pattern];
+ }
+ for (const p of pattern) {
+ if (new minimatch_1.Minimatch(p, options).hasMagic())
+ return true;
+ }
+ return false;
+ };
+ exports.hasMagic = hasMagic;
+});
+
+// node_modules/glob/dist/commonjs/index.js
+var require_commonjs5 = __commonJS((exports) => {
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.glob = exports.sync = exports.iterate = exports.iterateSync = exports.stream = exports.streamSync = exports.Ignore = exports.hasMagic = exports.Glob = exports.unescape = exports.escape = undefined;
+ exports.globStreamSync = globStreamSync;
+ exports.globStream = globStream;
+ exports.globSync = globSync;
+ exports.globIterateSync = globIterateSync;
+ exports.globIterate = globIterate;
+ var minimatch_1 = require_commonjs();
+ var glob_js_1 = require_glob();
+ var has_magic_js_1 = require_has_magic();
+ var minimatch_2 = require_commonjs();
+ Object.defineProperty(exports, "escape", { enumerable: true, get: function() {
+ return minimatch_2.escape;
+ } });
+ Object.defineProperty(exports, "unescape", { enumerable: true, get: function() {
+ return minimatch_2.unescape;
+ } });
+ var glob_js_2 = require_glob();
+ Object.defineProperty(exports, "Glob", { enumerable: true, get: function() {
+ return glob_js_2.Glob;
+ } });
+ var has_magic_js_2 = require_has_magic();
+ Object.defineProperty(exports, "hasMagic", { enumerable: true, get: function() {
+ return has_magic_js_2.hasMagic;
+ } });
+ var ignore_js_1 = require_ignore();
+ Object.defineProperty(exports, "Ignore", { enumerable: true, get: function() {
+ return ignore_js_1.Ignore;
+ } });
+ function globStreamSync(pattern, options = {}) {
+ return new glob_js_1.Glob(pattern, options).streamSync();
+ }
+ function globStream(pattern, options = {}) {
+ return new glob_js_1.Glob(pattern, options).stream();
+ }
+ function globSync(pattern, options = {}) {
+ return new glob_js_1.Glob(pattern, options).walkSync();
+ }
+ async function glob_(pattern, options = {}) {
+ return new glob_js_1.Glob(pattern, options).walk();
+ }
+ function globIterateSync(pattern, options = {}) {
+ return new glob_js_1.Glob(pattern, options).iterateSync();
+ }
+ function globIterate(pattern, options = {}) {
+ return new glob_js_1.Glob(pattern, options).iterate();
+ }
+ exports.streamSync = globStreamSync;
+ exports.stream = Object.assign(globStream, { sync: globStreamSync });
+ exports.iterateSync = globIterateSync;
+ exports.iterate = Object.assign(globIterate, {
+ sync: globIterateSync
+ });
+ exports.sync = Object.assign(globSync, {
+ stream: globStreamSync,
+ iterate: globIterateSync
+ });
+ exports.glob = Object.assign(glob_, {
+ glob: glob_,
+ globSync,
+ sync: exports.sync,
+ globStream,
+ stream: exports.stream,
+ globStreamSync,
+ streamSync: exports.streamSync,
+ globIterate,
+ iterate: exports.iterate,
+ globIterateSync,
+ iterateSync: exports.iterateSync,
+ Glob: glob_js_1.Glob,
+ hasMagic: has_magic_js_1.hasMagic,
+ escape: minimatch_1.escape,
+ unescape: minimatch_1.unescape
+ });
+ exports.glob.glob = exports.glob;
+});
+
+// node_modules/archiver-utils/file.js
+var require_file = __commonJS((exports, module) => {
+ var fs2 = require_graceful_fs();
+ var path2 = __require("path");
+ var flatten = require_flatten();
+ var difference = require_difference();
+ var union = require_union();
+ var isPlainObject2 = require_isPlainObject();
+ var glob = require_commonjs5();
+ var file = module.exports = {};
+ var pathSeparatorRe = /[\/\\]/g;
+ var processPatterns = function(patterns, fn) {
+ var result = [];
+ flatten(patterns).forEach(function(pattern) {
+ var exclusion = pattern.indexOf("!") === 0;
+ if (exclusion) {
+ pattern = pattern.slice(1);
+ }
+ var matches = fn(pattern);
+ if (exclusion) {
+ result = difference(result, matches);
+ } else {
+ result = union(result, matches);
+ }
+ });
+ return result;
+ };
+ file.exists = function() {
+ var filepath = path2.join.apply(path2, arguments);
+ return fs2.existsSync(filepath);
+ };
+ file.expand = function(...args) {
+ var options = isPlainObject2(args[0]) ? args.shift() : {};
+ var patterns = Array.isArray(args[0]) ? args[0] : args;
+ if (patterns.length === 0) {
+ return [];
+ }
+ var matches = processPatterns(patterns, function(pattern) {
+ return glob.sync(pattern, options);
+ });
+ if (options.filter) {
+ matches = matches.filter(function(filepath) {
+ filepath = path2.join(options.cwd || "", filepath);
+ try {
+ if (typeof options.filter === "function") {
+ return options.filter(filepath);
+ } else {
+ return fs2.statSync(filepath)[options.filter]();
+ }
+ } catch (e) {
+ return false;
+ }
+ });
+ }
+ return matches;
+ };
+ file.expandMapping = function(patterns, destBase, options) {
+ options = Object.assign({
+ rename: function(destBase2, destPath) {
+ return path2.join(destBase2 || "", destPath);
+ }
+ }, options);
+ var files = [];
+ var fileByDest = {};
+ file.expand(options, patterns).forEach(function(src) {
+ var destPath = src;
+ if (options.flatten) {
+ destPath = path2.basename(destPath);
+ }
+ if (options.ext) {
+ destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
+ }
+ var dest = options.rename(destBase, destPath, options);
+ if (options.cwd) {
+ src = path2.join(options.cwd, src);
+ }
+ dest = dest.replace(pathSeparatorRe, "/");
+ src = src.replace(pathSeparatorRe, "/");
+ if (fileByDest[dest]) {
+ fileByDest[dest].src.push(src);
+ } else {
+ files.push({
+ src: [src],
+ dest
+ });
+ fileByDest[dest] = files[files.length - 1];
+ }
+ });
+ return files;
+ };
+ file.normalizeFilesArray = function(data) {
+ var files = [];
+ data.forEach(function(obj) {
+ var prop;
+ if ("src" in obj || "dest" in obj) {
+ files.push(obj);
+ }
+ });
+ if (files.length === 0) {
+ return [];
+ }
+ files = _(files).chain().forEach(function(obj) {
+ if (!("src" in obj) || !obj.src) {
+ return;
+ }
+ if (Array.isArray(obj.src)) {
+ obj.src = flatten(obj.src);
+ } else {
+ obj.src = [obj.src];
+ }
+ }).map(function(obj) {
+ var expandOptions = Object.assign({}, obj);
+ delete expandOptions.src;
+ delete expandOptions.dest;
+ if (obj.expand) {
+ return file.expandMapping(obj.src, obj.dest, expandOptions).map(function(mapObj) {
+ var result2 = Object.assign({}, obj);
+ result2.orig = Object.assign({}, obj);
+ result2.src = mapObj.src;
+ result2.dest = mapObj.dest;
+ ["expand", "cwd", "flatten", "rename", "ext"].forEach(function(prop) {
+ delete result2[prop];
+ });
+ return result2;
+ });
+ }
+ var result = Object.assign({}, obj);
+ result.orig = Object.assign({}, obj);
+ if ("src" in result) {
+ Object.defineProperty(result, "src", {
+ enumerable: true,
+ get: function fn() {
+ var src;
+ if (!("result" in fn)) {
+ src = obj.src;
+ src = Array.isArray(src) ? flatten(src) : [src];
+ fn.result = file.expand(expandOptions, src);
+ }
+ return fn.result;
+ }
+ });
+ }
+ if ("dest" in result) {
+ result.dest = obj.dest;
+ }
+ return result;
+ }).flatten().value();
+ return files;
+ };
+});
+
+// node_modules/archiver-utils/index.js
+var require_archiver_utils = __commonJS((exports, module) => {
+ var fs2 = require_graceful_fs();
+ var path2 = __require("path");
+ var isStream = require_is_stream();
+ var lazystream = require_lazystream();
+ var normalizePath = require_normalize_path();
+ var defaults = require_defaults();
+ var Stream = __require("stream").Stream;
+ var PassThrough = require_ours().PassThrough;
+ var utils = module.exports = {};
+ utils.file = require_file();
+ utils.collectStream = function(source, callback) {
+ var collection = [];
+ var size = 0;
+ source.on("error", callback);
+ source.on("data", function(chunk) {
+ collection.push(chunk);
+ size += chunk.length;
+ });
+ source.on("end", function() {
+ var buf = Buffer.alloc(size);
+ var offset = 0;
+ collection.forEach(function(data) {
+ data.copy(buf, offset);
+ offset += data.length;
+ });
+ callback(null, buf);
+ });
+ };
+ utils.dateify = function(dateish) {
+ dateish = dateish || new Date;
+ if (dateish instanceof Date) {
+ dateish = dateish;
+ } else if (typeof dateish === "string") {
+ dateish = new Date(dateish);
+ } else {
+ dateish = new Date;
+ }
+ return dateish;
+ };
+ utils.defaults = function(object, source, guard) {
+ var args = arguments;
+ args[0] = args[0] || {};
+ return defaults(...args);
+ };
+ utils.isStream = function(source) {
+ return isStream(source);
+ };
+ utils.lazyReadStream = function(filepath) {
+ return new lazystream.Readable(function() {
+ return fs2.createReadStream(filepath);
+ });
+ };
+ utils.normalizeInputSource = function(source) {
+ if (source === null) {
+ return Buffer.alloc(0);
+ } else if (typeof source === "string") {
+ return Buffer.from(source);
+ } else if (utils.isStream(source)) {
+ return source.pipe(new PassThrough);
+ }
+ return source;
+ };
+ utils.sanitizePath = function(filepath) {
+ return normalizePath(filepath, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
+ };
+ utils.trailingSlashIt = function(str) {
+ return str.slice(-1) !== "/" ? str + "/" : str;
+ };
+ utils.unixifyPath = function(filepath) {
+ return normalizePath(filepath, false).replace(/^\w+:/, "");
+ };
+ utils.walkdir = function(dirpath, base, callback) {
+ var results = [];
+ if (typeof base === "function") {
+ callback = base;
+ base = dirpath;
+ }
+ fs2.readdir(dirpath, function(err, list) {
+ var i = 0;
+ var file;
+ var filepath;
+ if (err) {
+ return callback(err);
+ }
+ (function next() {
+ file = list[i++];
+ if (!file) {
+ return callback(null, results);
+ }
+ filepath = path2.join(dirpath, file);
+ fs2.stat(filepath, function(err2, stats) {
+ results.push({
+ path: filepath,
+ relative: path2.relative(base, filepath).replace(/\\/g, "/"),
+ stats
+ });
+ if (stats && stats.isDirectory()) {
+ utils.walkdir(filepath, base, function(err3, res) {
+ if (err3) {
+ return callback(err3);
+ }
+ res.forEach(function(dirEntry) {
+ results.push(dirEntry);
+ });
+ next();
+ });
+ } else {
+ next();
+ }
+ });
+ })();
+ });
+ };
+});
+
+// node_modules/archiver/lib/error.js
+var require_error = __commonJS((exports, module) => {
+ var util = __require("util");
+ var ERROR_CODES = {
+ ABORTED: "archive was aborted",
+ DIRECTORYDIRPATHREQUIRED: "diretory dirpath argument must be a non-empty string value",
+ DIRECTORYFUNCTIONINVALIDDATA: "invalid data returned by directory custom data function",
+ ENTRYNAMEREQUIRED: "entry name must be a non-empty string value",
+ FILEFILEPATHREQUIRED: "file filepath argument must be a non-empty string value",
+ FINALIZING: "archive already finalizing",
+ QUEUECLOSED: "queue closed",
+ NOENDMETHOD: "no suitable finalize/end method defined by module",
+ DIRECTORYNOTSUPPORTED: "support for directory entries not defined by module",
+ FORMATSET: "archive format already set",
+ INPUTSTEAMBUFFERREQUIRED: "input source must be valid Stream or Buffer instance",
+ MODULESET: "module already set",
+ SYMLINKNOTSUPPORTED: "support for symlink entries not defined by module",
+ SYMLINKFILEPATHREQUIRED: "symlink filepath argument must be a non-empty string value",
+ SYMLINKTARGETREQUIRED: "symlink target argument must be a non-empty string value",
+ ENTRYNOTSUPPORTED: "entry not supported"
+ };
+ function ArchiverError(code, data) {
+ Error.captureStackTrace(this, this.constructor);
+ this.message = ERROR_CODES[code] || code;
+ this.code = code;
+ this.data = data;
+ }
+ util.inherits(ArchiverError, Error);
+ exports = module.exports = ArchiverError;
+});
+
+// node_modules/archiver/lib/core.js
+var require_core = __commonJS((exports, module) => {
+ var fs2 = __require("fs");
+ var glob = require_readdir_glob();
+ var async = require_async2();
+ var path2 = __require("path");
+ var util = require_archiver_utils();
+ var inherits = __require("util").inherits;
+ var ArchiverError = require_error();
+ var Transform = require_ours().Transform;
+ var win32 = process.platform === "win32";
+ var Archiver = function(format, options) {
+ if (!(this instanceof Archiver)) {
+ return new Archiver(format, options);
+ }
+ if (typeof format !== "string") {
+ options = format;
+ format = "zip";
+ }
+ options = this.options = util.defaults(options, {
+ highWaterMark: 1024 * 1024,
+ statConcurrency: 4
+ });
+ Transform.call(this, options);
+ this._format = false;
+ this._module = false;
+ this._pending = 0;
+ this._pointer = 0;
+ this._entriesCount = 0;
+ this._entriesProcessedCount = 0;
+ this._fsEntriesTotalBytes = 0;
+ this._fsEntriesProcessedBytes = 0;
+ this._queue = async.queue(this._onQueueTask.bind(this), 1);
+ this._queue.drain(this._onQueueDrain.bind(this));
+ this._statQueue = async.queue(this._onStatQueueTask.bind(this), options.statConcurrency);
+ this._statQueue.drain(this._onQueueDrain.bind(this));
+ this._state = {
+ aborted: false,
+ finalize: false,
+ finalizing: false,
+ finalized: false,
+ modulePiped: false
+ };
+ this._streams = [];
+ };
+ inherits(Archiver, Transform);
+ Archiver.prototype._abort = function() {
+ this._state.aborted = true;
+ this._queue.kill();
+ this._statQueue.kill();
+ if (this._queue.idle()) {
+ this._shutdown();
+ }
+ };
+ Archiver.prototype._append = function(filepath, data) {
+ data = data || {};
+ var task = {
+ source: null,
+ filepath
+ };
+ if (!data.name) {
+ data.name = filepath;
+ }
+ data.sourcePath = filepath;
+ task.data = data;
+ this._entriesCount++;
+ if (data.stats && data.stats instanceof fs2.Stats) {
+ task = this._updateQueueTaskWithStats(task, data.stats);
+ if (task) {
+ if (data.stats.size) {
+ this._fsEntriesTotalBytes += data.stats.size;
+ }
+ this._queue.push(task);
+ }
+ } else {
+ this._statQueue.push(task);
+ }
+ };
+ Archiver.prototype._finalize = function() {
+ if (this._state.finalizing || this._state.finalized || this._state.aborted) {
+ return;
+ }
+ this._state.finalizing = true;
+ this._moduleFinalize();
+ this._state.finalizing = false;
+ this._state.finalized = true;
+ };
+ Archiver.prototype._maybeFinalize = function() {
+ if (this._state.finalizing || this._state.finalized || this._state.aborted) {
+ return false;
+ }
+ if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {
+ this._finalize();
+ return true;
+ }
+ return false;
+ };
+ Archiver.prototype._moduleAppend = function(source, data, callback) {
+ if (this._state.aborted) {
+ callback();
+ return;
+ }
+ this._module.append(source, data, function(err) {
+ this._task = null;
+ if (this._state.aborted) {
+ this._shutdown();
+ return;
+ }
+ if (err) {
+ this.emit("error", err);
+ setImmediate(callback);
+ return;
+ }
+ this.emit("entry", data);
+ this._entriesProcessedCount++;
+ if (data.stats && data.stats.size) {
+ this._fsEntriesProcessedBytes += data.stats.size;
+ }
+ this.emit("progress", {
+ entries: {
+ total: this._entriesCount,
+ processed: this._entriesProcessedCount
+ },
+ fs: {
+ totalBytes: this._fsEntriesTotalBytes,
+ processedBytes: this._fsEntriesProcessedBytes
+ }
+ });
+ setImmediate(callback);
+ }.bind(this));
+ };
+ Archiver.prototype._moduleFinalize = function() {
+ if (typeof this._module.finalize === "function") {
+ this._module.finalize();
+ } else if (typeof this._module.end === "function") {
+ this._module.end();
+ } else {
+ this.emit("error", new ArchiverError("NOENDMETHOD"));
+ }
+ };
+ Archiver.prototype._modulePipe = function() {
+ this._module.on("error", this._onModuleError.bind(this));
+ this._module.pipe(this);
+ this._state.modulePiped = true;
+ };
+ Archiver.prototype._moduleSupports = function(key2) {
+ if (!this._module.supports || !this._module.supports[key2]) {
+ return false;
+ }
+ return this._module.supports[key2];
+ };
+ Archiver.prototype._moduleUnpipe = function() {
+ this._module.unpipe(this);
+ this._state.modulePiped = false;
+ };
+ Archiver.prototype._normalizeEntryData = function(data, stats) {
+ data = util.defaults(data, {
+ type: "file",
+ name: null,
+ date: null,
+ mode: null,
+ prefix: null,
+ sourcePath: null,
+ stats: false
+ });
+ if (stats && data.stats === false) {
+ data.stats = stats;
+ }
+ var isDir = data.type === "directory";
+ if (data.name) {
+ if (typeof data.prefix === "string" && data.prefix !== "") {
+ data.name = data.prefix + "/" + data.name;
+ data.prefix = null;
+ }
+ data.name = util.sanitizePath(data.name);
+ if (data.type !== "symlink" && data.name.slice(-1) === "/") {
+ isDir = true;
+ data.type = "directory";
+ } else if (isDir) {
+ data.name += "/";
+ }
+ }
+ if (typeof data.mode === "number") {
+ if (win32) {
+ data.mode &= 511;
+ } else {
+ data.mode &= 4095;
+ }
+ } else if (data.stats && data.mode === null) {
+ if (win32) {
+ data.mode = data.stats.mode & 511;
+ } else {
+ data.mode = data.stats.mode & 4095;
+ }
+ if (win32 && isDir) {
+ data.mode = 493;
+ }
+ } else if (data.mode === null) {
+ data.mode = isDir ? 493 : 420;
+ }
+ if (data.stats && data.date === null) {
+ data.date = data.stats.mtime;
+ } else {
+ data.date = util.dateify(data.date);
+ }
+ return data;
+ };
+ Archiver.prototype._onModuleError = function(err) {
+ this.emit("error", err);
+ };
+ Archiver.prototype._onQueueDrain = function() {
+ if (this._state.finalizing || this._state.finalized || this._state.aborted) {
+ return;
+ }
+ if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {
+ this._finalize();
+ }
+ };
+ Archiver.prototype._onQueueTask = function(task, callback) {
+ var fullCallback = () => {
+ if (task.data.callback) {
+ task.data.callback();
+ }
+ callback();
+ };
+ if (this._state.finalizing || this._state.finalized || this._state.aborted) {
+ fullCallback();
+ return;
+ }
+ this._task = task;
+ this._moduleAppend(task.source, task.data, fullCallback);
+ };
+ Archiver.prototype._onStatQueueTask = function(task, callback) {
+ if (this._state.finalizing || this._state.finalized || this._state.aborted) {
+ callback();
+ return;
+ }
+ fs2.lstat(task.filepath, function(err, stats) {
+ if (this._state.aborted) {
+ setImmediate(callback);
+ return;
+ }
+ if (err) {
+ this._entriesCount--;
+ this.emit("warning", err);
+ setImmediate(callback);
+ return;
+ }
+ task = this._updateQueueTaskWithStats(task, stats);
+ if (task) {
+ if (stats.size) {
+ this._fsEntriesTotalBytes += stats.size;
+ }
+ this._queue.push(task);
+ }
+ setImmediate(callback);
+ }.bind(this));
+ };
+ Archiver.prototype._shutdown = function() {
+ this._moduleUnpipe();
+ this.end();
+ };
+ Archiver.prototype._transform = function(chunk, encoding, callback) {
+ if (chunk) {
+ this._pointer += chunk.length;
+ }
+ callback(null, chunk);
+ };
+ Archiver.prototype._updateQueueTaskWithStats = function(task, stats) {
+ if (stats.isFile()) {
+ task.data.type = "file";
+ task.data.sourceType = "stream";
+ task.source = util.lazyReadStream(task.filepath);
+ } else if (stats.isDirectory() && this._moduleSupports("directory")) {
+ task.data.name = util.trailingSlashIt(task.data.name);
+ task.data.type = "directory";
+ task.data.sourcePath = util.trailingSlashIt(task.filepath);
+ task.data.sourceType = "buffer";
+ task.source = Buffer.concat([]);
+ } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
+ var linkPath = fs2.readlinkSync(task.filepath);
+ var dirName = path2.dirname(task.filepath);
+ task.data.type = "symlink";
+ task.data.linkname = path2.relative(dirName, path2.resolve(dirName, linkPath));
+ task.data.sourceType = "buffer";
+ task.source = Buffer.concat([]);
+ } else {
+ if (stats.isDirectory()) {
+ this.emit("warning", new ArchiverError("DIRECTORYNOTSUPPORTED", task.data));
+ } else if (stats.isSymbolicLink()) {
+ this.emit("warning", new ArchiverError("SYMLINKNOTSUPPORTED", task.data));
+ } else {
+ this.emit("warning", new ArchiverError("ENTRYNOTSUPPORTED", task.data));
+ }
+ return null;
+ }
+ task.data = this._normalizeEntryData(task.data, stats);
+ return task;
+ };
+ Archiver.prototype.abort = function() {
+ if (this._state.aborted || this._state.finalized) {
+ return this;
+ }
+ this._abort();
+ return this;
+ };
+ Archiver.prototype.append = function(source, data) {
+ if (this._state.finalize || this._state.aborted) {
+ this.emit("error", new ArchiverError("QUEUECLOSED"));
+ return this;
+ }
+ data = this._normalizeEntryData(data);
+ if (typeof data.name !== "string" || data.name.length === 0) {
+ this.emit("error", new ArchiverError("ENTRYNAMEREQUIRED"));
+ return this;
+ }
+ if (data.type === "directory" && !this._moduleSupports("directory")) {
+ this.emit("error", new ArchiverError("DIRECTORYNOTSUPPORTED", { name: data.name }));
+ return this;
+ }
+ source = util.normalizeInputSource(source);
+ if (Buffer.isBuffer(source)) {
+ data.sourceType = "buffer";
+ } else if (util.isStream(source)) {
+ data.sourceType = "stream";
+ } else {
+ this.emit("error", new ArchiverError("INPUTSTEAMBUFFERREQUIRED", { name: data.name }));
+ return this;
+ }
+ this._entriesCount++;
+ this._queue.push({
+ data,
+ source
+ });
+ return this;
+ };
+ Archiver.prototype.directory = function(dirpath, destpath, data) {
+ if (this._state.finalize || this._state.aborted) {
+ this.emit("error", new ArchiverError("QUEUECLOSED"));
+ return this;
+ }
+ if (typeof dirpath !== "string" || dirpath.length === 0) {
+ this.emit("error", new ArchiverError("DIRECTORYDIRPATHREQUIRED"));
+ return this;
+ }
+ this._pending++;
+ if (destpath === false) {
+ destpath = "";
+ } else if (typeof destpath !== "string") {
+ destpath = dirpath;
+ }
+ var dataFunction = false;
+ if (typeof data === "function") {
+ dataFunction = data;
+ data = {};
+ } else if (typeof data !== "object") {
+ data = {};
+ }
+ var globOptions = {
+ stat: true,
+ dot: true
+ };
+ function onGlobEnd() {
+ this._pending--;
+ this._maybeFinalize();
+ }
+ function onGlobError(err) {
+ this.emit("error", err);
+ }
+ function onGlobMatch(match) {
+ globber.pause();
+ var ignoreMatch = false;
+ var entryData = Object.assign({}, data);
+ entryData.name = match.relative;
+ entryData.prefix = destpath;
+ entryData.stats = match.stat;
+ entryData.callback = globber.resume.bind(globber);
+ try {
+ if (dataFunction) {
+ entryData = dataFunction(entryData);
+ if (entryData === false) {
+ ignoreMatch = true;
+ } else if (typeof entryData !== "object") {
+ throw new ArchiverError("DIRECTORYFUNCTIONINVALIDDATA", { dirpath });
+ }
+ }
+ } catch (e) {
+ this.emit("error", e);
+ return;
+ }
+ if (ignoreMatch) {
+ globber.resume();
+ return;
+ }
+ this._append(match.absolute, entryData);
+ }
+ var globber = glob(dirpath, globOptions);
+ globber.on("error", onGlobError.bind(this));
+ globber.on("match", onGlobMatch.bind(this));
+ globber.on("end", onGlobEnd.bind(this));
+ return this;
+ };
+ Archiver.prototype.file = function(filepath, data) {
+ if (this._state.finalize || this._state.aborted) {
+ this.emit("error", new ArchiverError("QUEUECLOSED"));
+ return this;
+ }
+ if (typeof filepath !== "string" || filepath.length === 0) {
+ this.emit("error", new ArchiverError("FILEFILEPATHREQUIRED"));
+ return this;
+ }
+ this._append(filepath, data);
+ return this;
+ };
+ Archiver.prototype.glob = function(pattern, options, data) {
+ this._pending++;
+ options = util.defaults(options, {
+ stat: true,
+ pattern
+ });
+ function onGlobEnd() {
+ this._pending--;
+ this._maybeFinalize();
+ }
+ function onGlobError(err) {
+ this.emit("error", err);
+ }
+ function onGlobMatch(match) {
+ globber.pause();
+ var entryData = Object.assign({}, data);
+ entryData.callback = globber.resume.bind(globber);
+ entryData.stats = match.stat;
+ entryData.name = match.relative;
+ this._append(match.absolute, entryData);
+ }
+ var globber = glob(options.cwd || ".", options);
+ globber.on("error", onGlobError.bind(this));
+ globber.on("match", onGlobMatch.bind(this));
+ globber.on("end", onGlobEnd.bind(this));
+ return this;
+ };
+ Archiver.prototype.finalize = function() {
+ if (this._state.aborted) {
+ var abortedError = new ArchiverError("ABORTED");
+ this.emit("error", abortedError);
+ return Promise.reject(abortedError);
+ }
+ if (this._state.finalize) {
+ var finalizingError = new ArchiverError("FINALIZING");
+ this.emit("error", finalizingError);
+ return Promise.reject(finalizingError);
+ }
+ this._state.finalize = true;
+ if (this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {
+ this._finalize();
+ }
+ var self2 = this;
+ return new Promise(function(resolve, reject) {
+ var errored;
+ self2._module.on("end", function() {
+ if (!errored) {
+ resolve();
+ }
+ });
+ self2._module.on("error", function(err) {
+ errored = true;
+ reject(err);
+ });
+ });
+ };
+ Archiver.prototype.setFormat = function(format) {
+ if (this._format) {
+ this.emit("error", new ArchiverError("FORMATSET"));
+ return this;
+ }
+ this._format = format;
+ return this;
+ };
+ Archiver.prototype.setModule = function(module2) {
+ if (this._state.aborted) {
+ this.emit("error", new ArchiverError("ABORTED"));
+ return this;
+ }
+ if (this._state.module) {
+ this.emit("error", new ArchiverError("MODULESET"));
+ return this;
+ }
+ this._module = module2;
+ this._modulePipe();
+ return this;
+ };
+ Archiver.prototype.symlink = function(filepath, target, mode) {
+ if (this._state.finalize || this._state.aborted) {
+ this.emit("error", new ArchiverError("QUEUECLOSED"));
+ return this;
+ }
+ if (typeof filepath !== "string" || filepath.length === 0) {
+ this.emit("error", new ArchiverError("SYMLINKFILEPATHREQUIRED"));
+ return this;
+ }
+ if (typeof target !== "string" || target.length === 0) {
+ this.emit("error", new ArchiverError("SYMLINKTARGETREQUIRED", { filepath }));
+ return this;
+ }
+ if (!this._moduleSupports("symlink")) {
+ this.emit("error", new ArchiverError("SYMLINKNOTSUPPORTED", { filepath }));
+ return this;
+ }
+ var data = {};
+ data.type = "symlink";
+ data.name = filepath.replace(/\\/g, "/");
+ data.linkname = target.replace(/\\/g, "/");
+ data.sourceType = "buffer";
+ if (typeof mode === "number") {
+ data.mode = mode;
+ }
+ this._entriesCount++;
+ this._queue.push({
+ data,
+ source: Buffer.concat([])
+ });
+ return this;
+ };
+ Archiver.prototype.pointer = function() {
+ return this._pointer;
+ };
+ Archiver.prototype.use = function(plugin) {
+ this._streams.push(plugin);
+ return this;
+ };
+ module.exports = Archiver;
+});
+
+// node_modules/compress-commons/lib/archivers/archive-entry.js
+var require_archive_entry = __commonJS((exports, module) => {
+ var ArchiveEntry = module.exports = function() {
+ };
+ ArchiveEntry.prototype.getName = function() {
+ };
+ ArchiveEntry.prototype.getSize = function() {
+ };
+ ArchiveEntry.prototype.getLastModifiedDate = function() {
+ };
+ ArchiveEntry.prototype.isDirectory = function() {
+ };
+});
+
+// node_modules/compress-commons/lib/archivers/zip/util.js
+var require_util3 = __commonJS((exports, module) => {
+ var util = module.exports = {};
+ util.dateToDos = function(d, forceLocalTime) {
+ forceLocalTime = forceLocalTime || false;
+ var year = forceLocalTime ? d.getFullYear() : d.getUTCFullYear();
+ if (year < 1980) {
+ return 2162688;
+ } else if (year >= 2044) {
+ return 2141175677;
+ }
+ var val = {
+ year,
+ month: forceLocalTime ? d.getMonth() : d.getUTCMonth(),
+ date: forceLocalTime ? d.getDate() : d.getUTCDate(),
+ hours: forceLocalTime ? d.getHours() : d.getUTCHours(),
+ minutes: forceLocalTime ? d.getMinutes() : d.getUTCMinutes(),
+ seconds: forceLocalTime ? d.getSeconds() : d.getUTCSeconds()
+ };
+ return val.year - 1980 << 25 | val.month + 1 << 21 | val.date << 16 | val.hours << 11 | val.minutes << 5 | val.seconds / 2;
+ };
+ util.dosToDate = function(dos) {
+ return new Date((dos >> 25 & 127) + 1980, (dos >> 21 & 15) - 1, dos >> 16 & 31, dos >> 11 & 31, dos >> 5 & 63, (dos & 31) << 1);
+ };
+ util.fromDosTime = function(buf) {
+ return util.dosToDate(buf.readUInt32LE(0));
+ };
+ util.getEightBytes = function(v) {
+ var buf = Buffer.alloc(8);
+ buf.writeUInt32LE(v % 4294967296, 0);
+ buf.writeUInt32LE(v / 4294967296 | 0, 4);
+ return buf;
+ };
+ util.getShortBytes = function(v) {
+ var buf = Buffer.alloc(2);
+ buf.writeUInt16LE((v & 65535) >>> 0, 0);
+ return buf;
+ };
+ util.getShortBytesValue = function(buf, offset) {
+ return buf.readUInt16LE(offset);
+ };
+ util.getLongBytes = function(v) {
+ var buf = Buffer.alloc(4);
+ buf.writeUInt32LE((v & 4294967295) >>> 0, 0);
+ return buf;
+ };
+ util.getLongBytesValue = function(buf, offset) {
+ return buf.readUInt32LE(offset);
+ };
+ util.toDosTime = function(d) {
+ return util.getLongBytes(util.dateToDos(d));
+ };
+});
+
+// node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js
+var require_general_purpose_bit = __commonJS((exports, module) => {
+ var zipUtil = require_util3();
+ var DATA_DESCRIPTOR_FLAG = 1 << 3;
+ var ENCRYPTION_FLAG = 1 << 0;
+ var NUMBER_OF_SHANNON_FANO_TREES_FLAG = 1 << 2;
+ var SLIDING_DICTIONARY_SIZE_FLAG = 1 << 1;
+ var STRONG_ENCRYPTION_FLAG = 1 << 6;
+ var UFT8_NAMES_FLAG = 1 << 11;
+ var GeneralPurposeBit = module.exports = function() {
+ if (!(this instanceof GeneralPurposeBit)) {
+ return new GeneralPurposeBit;
+ }
+ this.descriptor = false;
+ this.encryption = false;
+ this.utf8 = false;
+ this.numberOfShannonFanoTrees = 0;
+ this.strongEncryption = false;
+ this.slidingDictionarySize = 0;
+ return this;
+ };
+ GeneralPurposeBit.prototype.encode = function() {
+ return zipUtil.getShortBytes((this.descriptor ? DATA_DESCRIPTOR_FLAG : 0) | (this.utf8 ? UFT8_NAMES_FLAG : 0) | (this.encryption ? ENCRYPTION_FLAG : 0) | (this.strongEncryption ? STRONG_ENCRYPTION_FLAG : 0));
+ };
+ GeneralPurposeBit.prototype.parse = function(buf, offset) {
+ var flag = zipUtil.getShortBytesValue(buf, offset);
+ var gbp = new GeneralPurposeBit;
+ gbp.useDataDescriptor((flag & DATA_DESCRIPTOR_FLAG) !== 0);
+ gbp.useUTF8ForNames((flag & UFT8_NAMES_FLAG) !== 0);
+ gbp.useStrongEncryption((flag & STRONG_ENCRYPTION_FLAG) !== 0);
+ gbp.useEncryption((flag & ENCRYPTION_FLAG) !== 0);
+ gbp.setSlidingDictionarySize((flag & SLIDING_DICTIONARY_SIZE_FLAG) !== 0 ? 8192 : 4096);
+ gbp.setNumberOfShannonFanoTrees((flag & NUMBER_OF_SHANNON_FANO_TREES_FLAG) !== 0 ? 3 : 2);
+ return gbp;
+ };
+ GeneralPurposeBit.prototype.setNumberOfShannonFanoTrees = function(n) {
+ this.numberOfShannonFanoTrees = n;
+ };
+ GeneralPurposeBit.prototype.getNumberOfShannonFanoTrees = function() {
+ return this.numberOfShannonFanoTrees;
+ };
+ GeneralPurposeBit.prototype.setSlidingDictionarySize = function(n) {
+ this.slidingDictionarySize = n;
+ };
+ GeneralPurposeBit.prototype.getSlidingDictionarySize = function() {
+ return this.slidingDictionarySize;
+ };
+ GeneralPurposeBit.prototype.useDataDescriptor = function(b) {
+ this.descriptor = b;
+ };
+ GeneralPurposeBit.prototype.usesDataDescriptor = function() {
+ return this.descriptor;
+ };
+ GeneralPurposeBit.prototype.useEncryption = function(b) {
+ this.encryption = b;
+ };
+ GeneralPurposeBit.prototype.usesEncryption = function() {
+ return this.encryption;
+ };
+ GeneralPurposeBit.prototype.useStrongEncryption = function(b) {
+ this.strongEncryption = b;
+ };
+ GeneralPurposeBit.prototype.usesStrongEncryption = function() {
+ return this.strongEncryption;
+ };
+ GeneralPurposeBit.prototype.useUTF8ForNames = function(b) {
+ this.utf8 = b;
+ };
+ GeneralPurposeBit.prototype.usesUTF8ForNames = function() {
+ return this.utf8;
+ };
+});
+
+// node_modules/compress-commons/lib/archivers/zip/unix-stat.js
+var require_unix_stat = __commonJS((exports, module) => {
+ module.exports = {
+ PERM_MASK: 4095,
+ FILE_TYPE_FLAG: 61440,
+ LINK_FLAG: 40960,
+ FILE_FLAG: 32768,
+ DIR_FLAG: 16384,
+ DEFAULT_LINK_PERM: 511,
+ DEFAULT_DIR_PERM: 493,
+ DEFAULT_FILE_PERM: 420
+ };
+});
+
+// node_modules/compress-commons/lib/archivers/zip/constants.js
+var require_constants = __commonJS((exports, module) => {
+ module.exports = {
+ WORD: 4,
+ DWORD: 8,
+ EMPTY: Buffer.alloc(0),
+ SHORT: 2,
+ SHORT_MASK: 65535,
+ SHORT_SHIFT: 16,
+ SHORT_ZERO: Buffer.from(Array(2)),
+ LONG: 4,
+ LONG_ZERO: Buffer.from(Array(4)),
+ MIN_VERSION_INITIAL: 10,
+ MIN_VERSION_DATA_DESCRIPTOR: 20,
+ MIN_VERSION_ZIP64: 45,
+ VERSION_MADEBY: 45,
+ METHOD_STORED: 0,
+ METHOD_DEFLATED: 8,
+ PLATFORM_UNIX: 3,
+ PLATFORM_FAT: 0,
+ SIG_LFH: 67324752,
+ SIG_DD: 134695760,
+ SIG_CFH: 33639248,
+ SIG_EOCD: 101010256,
+ SIG_ZIP64_EOCD: 101075792,
+ SIG_ZIP64_EOCD_LOC: 117853008,
+ ZIP64_MAGIC_SHORT: 65535,
+ ZIP64_MAGIC: 4294967295,
+ ZIP64_EXTRA_ID: 1,
+ ZLIB_NO_COMPRESSION: 0,
+ ZLIB_BEST_SPEED: 1,
+ ZLIB_BEST_COMPRESSION: 9,
+ ZLIB_DEFAULT_COMPRESSION: -1,
+ MODE_MASK: 4095,
+ DEFAULT_FILE_MODE: 33188,
+ DEFAULT_DIR_MODE: 16877,
+ EXT_FILE_ATTR_DIR: 1106051088,
+ EXT_FILE_ATTR_FILE: 2175008800,
+ S_IFMT: 61440,
+ S_IFIFO: 4096,
+ S_IFCHR: 8192,
+ S_IFDIR: 16384,
+ S_IFBLK: 24576,
+ S_IFREG: 32768,
+ S_IFLNK: 40960,
+ S_IFSOCK: 49152,
+ S_DOS_A: 32,
+ S_DOS_D: 16,
+ S_DOS_V: 8,
+ S_DOS_S: 4,
+ S_DOS_H: 2,
+ S_DOS_R: 1
+ };
+});
+
+// node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js
+var require_zip_archive_entry = __commonJS((exports, module) => {
+ var inherits = __require("util").inherits;
+ var normalizePath = require_normalize_path();
+ var ArchiveEntry = require_archive_entry();
+ var GeneralPurposeBit = require_general_purpose_bit();
+ var UnixStat = require_unix_stat();
+ var constants = require_constants();
+ var zipUtil = require_util3();
+ var ZipArchiveEntry = module.exports = function(name) {
+ if (!(this instanceof ZipArchiveEntry)) {
+ return new ZipArchiveEntry(name);
+ }
+ ArchiveEntry.call(this);
+ this.platform = constants.PLATFORM_FAT;
+ this.method = -1;
+ this.name = null;
+ this.size = 0;
+ this.csize = 0;
+ this.gpb = new GeneralPurposeBit;
+ this.crc = 0;
+ this.time = -1;
+ this.minver = constants.MIN_VERSION_INITIAL;
+ this.mode = -1;
+ this.extra = null;
+ this.exattr = 0;
+ this.inattr = 0;
+ this.comment = null;
+ if (name) {
+ this.setName(name);
+ }
+ };
+ inherits(ZipArchiveEntry, ArchiveEntry);
+ ZipArchiveEntry.prototype.getCentralDirectoryExtra = function() {
+ return this.getExtra();
+ };
+ ZipArchiveEntry.prototype.getComment = function() {
+ return this.comment !== null ? this.comment : "";
+ };
+ ZipArchiveEntry.prototype.getCompressedSize = function() {
+ return this.csize;
+ };
+ ZipArchiveEntry.prototype.getCrc = function() {
+ return this.crc;
+ };
+ ZipArchiveEntry.prototype.getExternalAttributes = function() {
+ return this.exattr;
+ };
+ ZipArchiveEntry.prototype.getExtra = function() {
+ return this.extra !== null ? this.extra : constants.EMPTY;
+ };
+ ZipArchiveEntry.prototype.getGeneralPurposeBit = function() {
+ return this.gpb;
+ };
+ ZipArchiveEntry.prototype.getInternalAttributes = function() {
+ return this.inattr;
+ };
+ ZipArchiveEntry.prototype.getLastModifiedDate = function() {
+ return this.getTime();
+ };
+ ZipArchiveEntry.prototype.getLocalFileDataExtra = function() {
+ return this.getExtra();
+ };
+ ZipArchiveEntry.prototype.getMethod = function() {
+ return this.method;
+ };
+ ZipArchiveEntry.prototype.getName = function() {
+ return this.name;
+ };
+ ZipArchiveEntry.prototype.getPlatform = function() {
+ return this.platform;
+ };
+ ZipArchiveEntry.prototype.getSize = function() {
+ return this.size;
+ };
+ ZipArchiveEntry.prototype.getTime = function() {
+ return this.time !== -1 ? zipUtil.dosToDate(this.time) : -1;
+ };
+ ZipArchiveEntry.prototype.getTimeDos = function() {
+ return this.time !== -1 ? this.time : 0;
+ };
+ ZipArchiveEntry.prototype.getUnixMode = function() {
+ return this.platform !== constants.PLATFORM_UNIX ? 0 : this.getExternalAttributes() >> constants.SHORT_SHIFT & constants.SHORT_MASK;
+ };
+ ZipArchiveEntry.prototype.getVersionNeededToExtract = function() {
+ return this.minver;
+ };
+ ZipArchiveEntry.prototype.setComment = function(comment) {
+ if (Buffer.byteLength(comment) !== comment.length) {
+ this.getGeneralPurposeBit().useUTF8ForNames(true);
+ }
+ this.comment = comment;
+ };
+ ZipArchiveEntry.prototype.setCompressedSize = function(size) {
+ if (size < 0) {
+ throw new Error("invalid entry compressed size");
+ }
+ this.csize = size;
+ };
+ ZipArchiveEntry.prototype.setCrc = function(crc) {
+ if (crc < 0) {
+ throw new Error("invalid entry crc32");
+ }
+ this.crc = crc;
+ };
+ ZipArchiveEntry.prototype.setExternalAttributes = function(attr) {
+ this.exattr = attr >>> 0;
+ };
+ ZipArchiveEntry.prototype.setExtra = function(extra) {
+ this.extra = extra;
+ };
+ ZipArchiveEntry.prototype.setGeneralPurposeBit = function(gpb) {
+ if (!(gpb instanceof GeneralPurposeBit)) {
+ throw new Error("invalid entry GeneralPurposeBit");
+ }
+ this.gpb = gpb;
+ };
+ ZipArchiveEntry.prototype.setInternalAttributes = function(attr) {
+ this.inattr = attr;
+ };
+ ZipArchiveEntry.prototype.setMethod = function(method) {
+ if (method < 0) {
+ throw new Error("invalid entry compression method");
+ }
+ this.method = method;
+ };
+ ZipArchiveEntry.prototype.setName = function(name, prependSlash = false) {
+ name = normalizePath(name, false).replace(/^\w+:/, "").replace(/^(\.\.\/|\/)+/, "");
+ if (prependSlash) {
+ name = `/${name}`;
+ }
+ if (Buffer.byteLength(name) !== name.length) {
+ this.getGeneralPurposeBit().useUTF8ForNames(true);
+ }
+ this.name = name;
+ };
+ ZipArchiveEntry.prototype.setPlatform = function(platform) {
+ this.platform = platform;
+ };
+ ZipArchiveEntry.prototype.setSize = function(size) {
+ if (size < 0) {
+ throw new Error("invalid entry size");
+ }
+ this.size = size;
+ };
+ ZipArchiveEntry.prototype.setTime = function(time, forceLocalTime) {
+ if (!(time instanceof Date)) {
+ throw new Error("invalid entry time");
+ }
+ this.time = zipUtil.dateToDos(time, forceLocalTime);
+ };
+ ZipArchiveEntry.prototype.setUnixMode = function(mode) {
+ mode |= this.isDirectory() ? constants.S_IFDIR : constants.S_IFREG;
+ var extattr = 0;
+ extattr |= mode << constants.SHORT_SHIFT | (this.isDirectory() ? constants.S_DOS_D : constants.S_DOS_A);
+ this.setExternalAttributes(extattr);
+ this.mode = mode & constants.MODE_MASK;
+ this.platform = constants.PLATFORM_UNIX;
+ };
+ ZipArchiveEntry.prototype.setVersionNeededToExtract = function(minver) {
+ this.minver = minver;
+ };
+ ZipArchiveEntry.prototype.isDirectory = function() {
+ return this.getName().slice(-1) === "/";
+ };
+ ZipArchiveEntry.prototype.isUnixSymlink = function() {
+ return (this.getUnixMode() & UnixStat.FILE_TYPE_FLAG) === UnixStat.LINK_FLAG;
+ };
+ ZipArchiveEntry.prototype.isZip64 = function() {
+ return this.csize > constants.ZIP64_MAGIC || this.size > constants.ZIP64_MAGIC;
+ };
+});
+
+// node_modules/compress-commons/lib/util/index.js
+var require_util4 = __commonJS((exports, module) => {
+ var Stream = __require("stream").Stream;
+ var PassThrough = require_ours().PassThrough;
+ var isStream = require_is_stream();
+ var util = module.exports = {};
+ util.normalizeInputSource = function(source) {
+ if (source === null) {
+ return Buffer.alloc(0);
+ } else if (typeof source === "string") {
+ return Buffer.from(source);
+ } else if (isStream(source) && !source._readableState) {
+ var normalized = new PassThrough;
+ source.pipe(normalized);
+ return normalized;
+ }
+ return source;
+ };
+});
+
+// node_modules/compress-commons/lib/archivers/archive-output-stream.js
+var require_archive_output_stream = __commonJS((exports, module) => {
+ var inherits = __require("util").inherits;
+ var isStream = require_is_stream();
+ var Transform = require_ours().Transform;
+ var ArchiveEntry = require_archive_entry();
+ var util = require_util4();
+ var ArchiveOutputStream = module.exports = function(options) {
+ if (!(this instanceof ArchiveOutputStream)) {
+ return new ArchiveOutputStream(options);
+ }
+ Transform.call(this, options);
+ this.offset = 0;
+ this._archive = {
+ finish: false,
+ finished: false,
+ processing: false
+ };
+ };
+ inherits(ArchiveOutputStream, Transform);
+ ArchiveOutputStream.prototype._appendBuffer = function(zae, source, callback) {
+ };
+ ArchiveOutputStream.prototype._appendStream = function(zae, source, callback) {
+ };
+ ArchiveOutputStream.prototype._emitErrorCallback = function(err) {
+ if (err) {
+ this.emit("error", err);
+ }
+ };
+ ArchiveOutputStream.prototype._finish = function(ae) {
+ };
+ ArchiveOutputStream.prototype._normalizeEntry = function(ae) {
+ };
+ ArchiveOutputStream.prototype._transform = function(chunk, encoding, callback) {
+ callback(null, chunk);
+ };
+ ArchiveOutputStream.prototype.entry = function(ae, source, callback) {
+ source = source || null;
+ if (typeof callback !== "function") {
+ callback = this._emitErrorCallback.bind(this);
+ }
+ if (!(ae instanceof ArchiveEntry)) {
+ callback(new Error("not a valid instance of ArchiveEntry"));
+ return;
+ }
+ if (this._archive.finish || this._archive.finished) {
+ callback(new Error("unacceptable entry after finish"));
+ return;
+ }
+ if (this._archive.processing) {
+ callback(new Error("already processing an entry"));
+ return;
+ }
+ this._archive.processing = true;
+ this._normalizeEntry(ae);
+ this._entry = ae;
+ source = util.normalizeInputSource(source);
+ if (Buffer.isBuffer(source)) {
+ this._appendBuffer(ae, source, callback);
+ } else if (isStream(source)) {
+ this._appendStream(ae, source, callback);
+ } else {
+ this._archive.processing = false;
+ callback(new Error("input source must be valid Stream or Buffer instance"));
+ return;
+ }
+ return this;
+ };
+ ArchiveOutputStream.prototype.finish = function() {
+ if (this._archive.processing) {
+ this._archive.finish = true;
+ return;
+ }
+ this._finish();
+ };
+ ArchiveOutputStream.prototype.getBytesWritten = function() {
+ return this.offset;
+ };
+ ArchiveOutputStream.prototype.write = function(chunk, cb) {
+ if (chunk) {
+ this.offset += chunk.length;
+ }
+ return Transform.prototype.write.call(this, chunk, cb);
+ };
+});
+
+// node_modules/crc-32/crc32.js
+var require_crc32 = __commonJS((exports) => {
+ /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
+ var CRC32;
+ (function(factory) {
+ if (typeof DO_NOT_EXPORT_CRC === "undefined") {
+ if (typeof exports === "object") {
+ factory(exports);
+ } else if (typeof define === "function" && define.amd) {
+ define(function() {
+ var module2 = {};
+ factory(module2);
+ return module2;
+ });
+ } else {
+ factory(CRC32 = {});
+ }
+ } else {
+ factory(CRC32 = {});
+ }
+ })(function(CRC322) {
+ CRC322.version = "1.2.2";
+ function signed_crc_table() {
+ var c = 0, table = new Array(256);
+ for (var n = 0;n != 256; ++n) {
+ c = n;
+ c = c & 1 ? -306674912 ^ c >>> 1 : c >>> 1;
+ c = c & 1 ? -306674912 ^ c >>> 1 : c >>> 1;
+ c = c & 1 ? -306674912 ^ c >>> 1 : c >>> 1;
+ c = c & 1 ? -306674912 ^ c >>> 1 : c >>> 1;
+ c = c & 1 ? -306674912 ^ c >>> 1 : c >>> 1;
+ c = c & 1 ? -306674912 ^ c >>> 1 : c >>> 1;
+ c = c & 1 ? -306674912 ^ c >>> 1 : c >>> 1;
+ c = c & 1 ? -306674912 ^ c >>> 1 : c >>> 1;
+ table[n] = c;
+ }
+ return typeof Int32Array !== "undefined" ? new Int32Array(table) : table;
+ }
+ var T0 = signed_crc_table();
+ function slice_by_16_tables(T) {
+ var c = 0, v = 0, n = 0, table = typeof Int32Array !== "undefined" ? new Int32Array(4096) : new Array(4096);
+ for (n = 0;n != 256; ++n)
+ table[n] = T[n];
+ for (n = 0;n != 256; ++n) {
+ v = T[n];
+ for (c = 256 + n;c < 4096; c += 256)
+ v = table[c] = v >>> 8 ^ T[v & 255];
+ }
+ var out = [];
+ for (n = 1;n != 16; ++n)
+ out[n - 1] = typeof Int32Array !== "undefined" ? table.subarray(n * 256, n * 256 + 256) : table.slice(n * 256, n * 256 + 256);
+ return out;
+ }
+ var TT = slice_by_16_tables(T0);
+ var T1 = TT[0], T2 = TT[1], T3 = TT[2], T4 = TT[3], T5 = TT[4];
+ var T6 = TT[5], T7 = TT[6], T8 = TT[7], T9 = TT[8], Ta = TT[9];
+ var Tb = TT[10], Tc = TT[11], Td = TT[12], Te = TT[13], Tf = TT[14];
+ function crc32_bstr(bstr, seed) {
+ var C = seed ^ -1;
+ for (var i = 0, L = bstr.length;i < L; )
+ C = C >>> 8 ^ T0[(C ^ bstr.charCodeAt(i++)) & 255];
+ return ~C;
+ }
+ function crc32_buf(B, seed) {
+ var C = seed ^ -1, L = B.length - 15, i = 0;
+ for (;i < L; )
+ C = Tf[B[i++] ^ C & 255] ^ Te[B[i++] ^ C >> 8 & 255] ^ Td[B[i++] ^ C >> 16 & 255] ^ Tc[B[i++] ^ C >>> 24] ^ Tb[B[i++]] ^ Ta[B[i++]] ^ T9[B[i++]] ^ T8[B[i++]] ^ T7[B[i++]] ^ T6[B[i++]] ^ T5[B[i++]] ^ T4[B[i++]] ^ T3[B[i++]] ^ T2[B[i++]] ^ T1[B[i++]] ^ T0[B[i++]];
+ L += 15;
+ while (i < L)
+ C = C >>> 8 ^ T0[(C ^ B[i++]) & 255];
+ return ~C;
+ }
+ function crc32_str(str, seed) {
+ var C = seed ^ -1;
+ for (var i = 0, L = str.length, c = 0, d = 0;i < L; ) {
+ c = str.charCodeAt(i++);
+ if (c < 128) {
+ C = C >>> 8 ^ T0[(C ^ c) & 255];
+ } else if (c < 2048) {
+ C = C >>> 8 ^ T0[(C ^ (192 | c >> 6 & 31)) & 255];
+ C = C >>> 8 ^ T0[(C ^ (128 | c & 63)) & 255];
+ } else if (c >= 55296 && c < 57344) {
+ c = (c & 1023) + 64;
+ d = str.charCodeAt(i++) & 1023;
+ C = C >>> 8 ^ T0[(C ^ (240 | c >> 8 & 7)) & 255];
+ C = C >>> 8 ^ T0[(C ^ (128 | c >> 2 & 63)) & 255];
+ C = C >>> 8 ^ T0[(C ^ (128 | d >> 6 & 15 | (c & 3) << 4)) & 255];
+ C = C >>> 8 ^ T0[(C ^ (128 | d & 63)) & 255];
+ } else {
+ C = C >>> 8 ^ T0[(C ^ (224 | c >> 12 & 15)) & 255];
+ C = C >>> 8 ^ T0[(C ^ (128 | c >> 6 & 63)) & 255];
+ C = C >>> 8 ^ T0[(C ^ (128 | c & 63)) & 255];
+ }
+ }
+ return ~C;
+ }
+ CRC322.table = T0;
+ CRC322.bstr = crc32_bstr;
+ CRC322.buf = crc32_buf;
+ CRC322.str = crc32_str;
+ });
+});
+
+// node_modules/crc32-stream/lib/crc32-stream.js
+var require_crc32_stream = __commonJS((exports, module) => {
+ var { Transform } = require_ours();
+ var crc32 = require_crc32();
+
+ class CRC32Stream extends Transform {
+ constructor(options) {
+ super(options);
+ this.checksum = Buffer.allocUnsafe(4);
+ this.checksum.writeInt32BE(0, 0);
+ this.rawSize = 0;
+ }
+ _transform(chunk, encoding, callback) {
+ if (chunk) {
+ this.checksum = crc32.buf(chunk, this.checksum) >>> 0;
+ this.rawSize += chunk.length;
+ }
+ callback(null, chunk);
+ }
+ digest(encoding) {
+ const checksum = Buffer.allocUnsafe(4);
+ checksum.writeUInt32BE(this.checksum >>> 0, 0);
+ return encoding ? checksum.toString(encoding) : checksum;
+ }
+ hex() {
+ return this.digest("hex").toUpperCase();
+ }
+ size() {
+ return this.rawSize;
+ }
+ }
+ module.exports = CRC32Stream;
+});
+
+// node_modules/crc32-stream/lib/deflate-crc32-stream.js
+var require_deflate_crc32_stream = __commonJS((exports, module) => {
+ var { DeflateRaw } = __require("zlib");
+ var crc32 = require_crc32();
+
+ class DeflateCRC32Stream extends DeflateRaw {
+ constructor(options) {
+ super(options);
+ this.checksum = Buffer.allocUnsafe(4);
+ this.checksum.writeInt32BE(0, 0);
+ this.rawSize = 0;
+ this.compressedSize = 0;
+ }
+ push(chunk, encoding) {
+ if (chunk) {
+ this.compressedSize += chunk.length;
+ }
+ return super.push(chunk, encoding);
+ }
+ _transform(chunk, encoding, callback) {
+ if (chunk) {
+ this.checksum = crc32.buf(chunk, this.checksum) >>> 0;
+ this.rawSize += chunk.length;
+ }
+ super._transform(chunk, encoding, callback);
+ }
+ digest(encoding) {
+ const checksum = Buffer.allocUnsafe(4);
+ checksum.writeUInt32BE(this.checksum >>> 0, 0);
+ return encoding ? checksum.toString(encoding) : checksum;
+ }
+ hex() {
+ return this.digest("hex").toUpperCase();
+ }
+ size(compressed = false) {
+ if (compressed) {
+ return this.compressedSize;
+ } else {
+ return this.rawSize;
+ }
+ }
+ }
+ module.exports = DeflateCRC32Stream;
+});
+
+// node_modules/crc32-stream/lib/index.js
+var require_lib3 = __commonJS((exports, module) => {
+ module.exports = {
+ CRC32Stream: require_crc32_stream(),
+ DeflateCRC32Stream: require_deflate_crc32_stream()
+ };
+});
+
+// node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js
+var require_zip_archive_output_stream = __commonJS((exports, module) => {
+ var inherits = __require("util").inherits;
+ var crc32 = require_crc32();
+ var { CRC32Stream } = require_lib3();
+ var { DeflateCRC32Stream } = require_lib3();
+ var ArchiveOutputStream = require_archive_output_stream();
+ var ZipArchiveEntry = require_zip_archive_entry();
+ var GeneralPurposeBit = require_general_purpose_bit();
+ var constants = require_constants();
+ var util = require_util4();
+ var zipUtil = require_util3();
+ var ZipArchiveOutputStream = module.exports = function(options) {
+ if (!(this instanceof ZipArchiveOutputStream)) {
+ return new ZipArchiveOutputStream(options);
+ }
+ options = this.options = this._defaults(options);
+ ArchiveOutputStream.call(this, options);
+ this._entry = null;
+ this._entries = [];
+ this._archive = {
+ centralLength: 0,
+ centralOffset: 0,
+ comment: "",
+ finish: false,
+ finished: false,
+ processing: false,
+ forceZip64: options.forceZip64,
+ forceLocalTime: options.forceLocalTime
+ };
+ };
+ inherits(ZipArchiveOutputStream, ArchiveOutputStream);
+ ZipArchiveOutputStream.prototype._afterAppend = function(ae) {
+ this._entries.push(ae);
+ if (ae.getGeneralPurposeBit().usesDataDescriptor()) {
+ this._writeDataDescriptor(ae);
+ }
+ this._archive.processing = false;
+ this._entry = null;
+ if (this._archive.finish && !this._archive.finished) {
+ this._finish();
+ }
+ };
+ ZipArchiveOutputStream.prototype._appendBuffer = function(ae, source, callback) {
+ if (source.length === 0) {
+ ae.setMethod(constants.METHOD_STORED);
+ }
+ var method = ae.getMethod();
+ if (method === constants.METHOD_STORED) {
+ ae.setSize(source.length);
+ ae.setCompressedSize(source.length);
+ ae.setCrc(crc32.buf(source) >>> 0);
+ }
+ this._writeLocalFileHeader(ae);
+ if (method === constants.METHOD_STORED) {
+ this.write(source);
+ this._afterAppend(ae);
+ callback(null, ae);
+ return;
+ } else if (method === constants.METHOD_DEFLATED) {
+ this._smartStream(ae, callback).end(source);
+ return;
+ } else {
+ callback(new Error("compression method " + method + " not implemented"));
+ return;
+ }
+ };
+ ZipArchiveOutputStream.prototype._appendStream = function(ae, source, callback) {
+ ae.getGeneralPurposeBit().useDataDescriptor(true);
+ ae.setVersionNeededToExtract(constants.MIN_VERSION_DATA_DESCRIPTOR);
+ this._writeLocalFileHeader(ae);
+ var smart = this._smartStream(ae, callback);
+ source.once("error", function(err) {
+ smart.emit("error", err);
+ smart.end();
+ });
+ source.pipe(smart);
+ };
+ ZipArchiveOutputStream.prototype._defaults = function(o) {
+ if (typeof o !== "object") {
+ o = {};
+ }
+ if (typeof o.zlib !== "object") {
+ o.zlib = {};
+ }
+ if (typeof o.zlib.level !== "number") {
+ o.zlib.level = constants.ZLIB_BEST_SPEED;
+ }
+ o.forceZip64 = !!o.forceZip64;
+ o.forceLocalTime = !!o.forceLocalTime;
+ return o;
+ };
+ ZipArchiveOutputStream.prototype._finish = function() {
+ this._archive.centralOffset = this.offset;
+ this._entries.forEach(function(ae) {
+ this._writeCentralFileHeader(ae);
+ }.bind(this));
+ this._archive.centralLength = this.offset - this._archive.centralOffset;
+ if (this.isZip64()) {
+ this._writeCentralDirectoryZip64();
+ }
+ this._writeCentralDirectoryEnd();
+ this._archive.processing = false;
+ this._archive.finish = true;
+ this._archive.finished = true;
+ this.end();
+ };
+ ZipArchiveOutputStream.prototype._normalizeEntry = function(ae) {
+ if (ae.getMethod() === -1) {
+ ae.setMethod(constants.METHOD_DEFLATED);
+ }
+ if (ae.getMethod() === constants.METHOD_DEFLATED) {
+ ae.getGeneralPurposeBit().useDataDescriptor(true);
+ ae.setVersionNeededToExtract(constants.MIN_VERSION_DATA_DESCRIPTOR);
+ }
+ if (ae.getTime() === -1) {
+ ae.setTime(new Date, this._archive.forceLocalTime);
+ }
+ ae._offsets = {
+ file: 0,
+ data: 0,
+ contents: 0
+ };
+ };
+ ZipArchiveOutputStream.prototype._smartStream = function(ae, callback) {
+ var deflate = ae.getMethod() === constants.METHOD_DEFLATED;
+ var process5 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream;
+ var error = null;
+ function handleStuff() {
+ var digest = process5.digest().readUInt32BE(0);
+ ae.setCrc(digest);
+ ae.setSize(process5.size());
+ ae.setCompressedSize(process5.size(true));
+ this._afterAppend(ae);
+ callback(error, ae);
+ }
+ process5.once("end", handleStuff.bind(this));
+ process5.once("error", function(err) {
+ error = err;
+ });
+ process5.pipe(this, { end: false });
+ return process5;
+ };
+ ZipArchiveOutputStream.prototype._writeCentralDirectoryEnd = function() {
+ var records = this._entries.length;
+ var size = this._archive.centralLength;
+ var offset = this._archive.centralOffset;
+ if (this.isZip64()) {
+ records = constants.ZIP64_MAGIC_SHORT;
+ size = constants.ZIP64_MAGIC;
+ offset = constants.ZIP64_MAGIC;
+ }
+ this.write(zipUtil.getLongBytes(constants.SIG_EOCD));
+ this.write(constants.SHORT_ZERO);
+ this.write(constants.SHORT_ZERO);
+ this.write(zipUtil.getShortBytes(records));
+ this.write(zipUtil.getShortBytes(records));
+ this.write(zipUtil.getLongBytes(size));
+ this.write(zipUtil.getLongBytes(offset));
+ var comment = this.getComment();
+ var commentLength = Buffer.byteLength(comment);
+ this.write(zipUtil.getShortBytes(commentLength));
+ this.write(comment);
+ };
+ ZipArchiveOutputStream.prototype._writeCentralDirectoryZip64 = function() {
+ this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD));
+ this.write(zipUtil.getEightBytes(44));
+ this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64));
+ this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64));
+ this.write(constants.LONG_ZERO);
+ this.write(constants.LONG_ZERO);
+ this.write(zipUtil.getEightBytes(this._entries.length));
+ this.write(zipUtil.getEightBytes(this._entries.length));
+ this.write(zipUtil.getEightBytes(this._archive.centralLength));
+ this.write(zipUtil.getEightBytes(this._archive.centralOffset));
+ this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD_LOC));
+ this.write(constants.LONG_ZERO);
+ this.write(zipUtil.getEightBytes(this._archive.centralOffset + this._archive.centralLength));
+ this.write(zipUtil.getLongBytes(1));
+ };
+ ZipArchiveOutputStream.prototype._writeCentralFileHeader = function(ae) {
+ var gpb = ae.getGeneralPurposeBit();
+ var method = ae.getMethod();
+ var fileOffset = ae._offsets.file;
+ var size = ae.getSize();
+ var compressedSize = ae.getCompressedSize();
+ if (ae.isZip64() || fileOffset > constants.ZIP64_MAGIC) {
+ size = constants.ZIP64_MAGIC;
+ compressedSize = constants.ZIP64_MAGIC;
+ fileOffset = constants.ZIP64_MAGIC;
+ ae.setVersionNeededToExtract(constants.MIN_VERSION_ZIP64);
+ var extraBuf = Buffer.concat([
+ zipUtil.getShortBytes(constants.ZIP64_EXTRA_ID),
+ zipUtil.getShortBytes(24),
+ zipUtil.getEightBytes(ae.getSize()),
+ zipUtil.getEightBytes(ae.getCompressedSize()),
+ zipUtil.getEightBytes(ae._offsets.file)
+ ], 28);
+ ae.setExtra(extraBuf);
+ }
+ this.write(zipUtil.getLongBytes(constants.SIG_CFH));
+ this.write(zipUtil.getShortBytes(ae.getPlatform() << 8 | constants.VERSION_MADEBY));
+ this.write(zipUtil.getShortBytes(ae.getVersionNeededToExtract()));
+ this.write(gpb.encode());
+ this.write(zipUtil.getShortBytes(method));
+ this.write(zipUtil.getLongBytes(ae.getTimeDos()));
+ this.write(zipUtil.getLongBytes(ae.getCrc()));
+ this.write(zipUtil.getLongBytes(compressedSize));
+ this.write(zipUtil.getLongBytes(size));
+ var name = ae.getName();
+ var comment = ae.getComment();
+ var extra = ae.getCentralDirectoryExtra();
+ if (gpb.usesUTF8ForNames()) {
+ name = Buffer.from(name);
+ comment = Buffer.from(comment);
+ }
+ this.write(zipUtil.getShortBytes(name.length));
+ this.write(zipUtil.getShortBytes(extra.length));
+ this.write(zipUtil.getShortBytes(comment.length));
+ this.write(constants.SHORT_ZERO);
+ this.write(zipUtil.getShortBytes(ae.getInternalAttributes()));
+ this.write(zipUtil.getLongBytes(ae.getExternalAttributes()));
+ this.write(zipUtil.getLongBytes(fileOffset));
+ this.write(name);
+ this.write(extra);
+ this.write(comment);
+ };
+ ZipArchiveOutputStream.prototype._writeDataDescriptor = function(ae) {
+ this.write(zipUtil.getLongBytes(constants.SIG_DD));
+ this.write(zipUtil.getLongBytes(ae.getCrc()));
+ if (ae.isZip64()) {
+ this.write(zipUtil.getEightBytes(ae.getCompressedSize()));
+ this.write(zipUtil.getEightBytes(ae.getSize()));
+ } else {
+ this.write(zipUtil.getLongBytes(ae.getCompressedSize()));
+ this.write(zipUtil.getLongBytes(ae.getSize()));
+ }
+ };
+ ZipArchiveOutputStream.prototype._writeLocalFileHeader = function(ae) {
+ var gpb = ae.getGeneralPurposeBit();
+ var method = ae.getMethod();
+ var name = ae.getName();
+ var extra = ae.getLocalFileDataExtra();
+ if (ae.isZip64()) {
+ gpb.useDataDescriptor(true);
+ ae.setVersionNeededToExtract(constants.MIN_VERSION_ZIP64);
+ }
+ if (gpb.usesUTF8ForNames()) {
+ name = Buffer.from(name);
+ }
+ ae._offsets.file = this.offset;
+ this.write(zipUtil.getLongBytes(constants.SIG_LFH));
+ this.write(zipUtil.getShortBytes(ae.getVersionNeededToExtract()));
+ this.write(gpb.encode());
+ this.write(zipUtil.getShortBytes(method));
+ this.write(zipUtil.getLongBytes(ae.getTimeDos()));
+ ae._offsets.data = this.offset;
+ if (gpb.usesDataDescriptor()) {
+ this.write(constants.LONG_ZERO);
+ this.write(constants.LONG_ZERO);
+ this.write(constants.LONG_ZERO);
+ } else {
+ this.write(zipUtil.getLongBytes(ae.getCrc()));
+ this.write(zipUtil.getLongBytes(ae.getCompressedSize()));
+ this.write(zipUtil.getLongBytes(ae.getSize()));
+ }
+ this.write(zipUtil.getShortBytes(name.length));
+ this.write(zipUtil.getShortBytes(extra.length));
+ this.write(name);
+ this.write(extra);
+ ae._offsets.contents = this.offset;
+ };
+ ZipArchiveOutputStream.prototype.getComment = function(comment) {
+ return this._archive.comment !== null ? this._archive.comment : "";
+ };
+ ZipArchiveOutputStream.prototype.isZip64 = function() {
+ return this._archive.forceZip64 || this._entries.length > constants.ZIP64_MAGIC_SHORT || this._archive.centralLength > constants.ZIP64_MAGIC || this._archive.centralOffset > constants.ZIP64_MAGIC;
+ };
+ ZipArchiveOutputStream.prototype.setComment = function(comment) {
+ this._archive.comment = comment;
+ };
+});
+
+// node_modules/compress-commons/lib/compress-commons.js
+var require_compress_commons = __commonJS((exports, module) => {
+ module.exports = {
+ ArchiveEntry: require_archive_entry(),
+ ZipArchiveEntry: require_zip_archive_entry(),
+ ArchiveOutputStream: require_archive_output_stream(),
+ ZipArchiveOutputStream: require_zip_archive_output_stream()
+ };
+});
+
+// node_modules/zip-stream/index.js
+var require_zip_stream = __commonJS((exports, module) => {
+ var inherits = __require("util").inherits;
+ var ZipArchiveOutputStream = require_compress_commons().ZipArchiveOutputStream;
+ var ZipArchiveEntry = require_compress_commons().ZipArchiveEntry;
+ var util = require_archiver_utils();
+ var ZipStream = module.exports = function(options) {
+ if (!(this instanceof ZipStream)) {
+ return new ZipStream(options);
+ }
+ options = this.options = options || {};
+ options.zlib = options.zlib || {};
+ ZipArchiveOutputStream.call(this, options);
+ if (typeof options.level === "number" && options.level >= 0) {
+ options.zlib.level = options.level;
+ delete options.level;
+ }
+ if (!options.forceZip64 && typeof options.zlib.level === "number" && options.zlib.level === 0) {
+ options.store = true;
+ }
+ options.namePrependSlash = options.namePrependSlash || false;
+ if (options.comment && options.comment.length > 0) {
+ this.setComment(options.comment);
+ }
+ };
+ inherits(ZipStream, ZipArchiveOutputStream);
+ ZipStream.prototype._normalizeFileData = function(data) {
+ data = util.defaults(data, {
+ type: "file",
+ name: null,
+ namePrependSlash: this.options.namePrependSlash,
+ linkname: null,
+ date: null,
+ mode: null,
+ store: this.options.store,
+ comment: ""
+ });
+ var isDir = data.type === "directory";
+ var isSymlink = data.type === "symlink";
+ if (data.name) {
+ data.name = util.sanitizePath(data.name);
+ if (!isSymlink && data.name.slice(-1) === "/") {
+ isDir = true;
+ data.type = "directory";
+ } else if (isDir) {
+ data.name += "/";
+ }
+ }
+ if (isDir || isSymlink) {
+ data.store = true;
+ }
+ data.date = util.dateify(data.date);
+ return data;
+ };
+ ZipStream.prototype.entry = function(source, data, callback) {
+ if (typeof callback !== "function") {
+ callback = this._emitErrorCallback.bind(this);
+ }
+ data = this._normalizeFileData(data);
+ if (data.type !== "file" && data.type !== "directory" && data.type !== "symlink") {
+ callback(new Error(data.type + " entries not currently supported"));
+ return;
+ }
+ if (typeof data.name !== "string" || data.name.length === 0) {
+ callback(new Error("entry name must be a non-empty string value"));
+ return;
+ }
+ if (data.type === "symlink" && typeof data.linkname !== "string") {
+ callback(new Error("entry linkname must be a non-empty string value when type equals symlink"));
+ return;
+ }
+ var entry = new ZipArchiveEntry(data.name);
+ entry.setTime(data.date, this.options.forceLocalTime);
+ if (data.namePrependSlash) {
+ entry.setName(data.name, true);
+ }
+ if (data.store) {
+ entry.setMethod(0);
+ }
+ if (data.comment.length > 0) {
+ entry.setComment(data.comment);
+ }
+ if (data.type === "symlink" && typeof data.mode !== "number") {
+ data.mode = 40960;
+ }
+ if (typeof data.mode === "number") {
+ if (data.type === "symlink") {
+ data.mode |= 40960;
+ }
+ entry.setUnixMode(data.mode);
+ }
+ if (data.type === "symlink" && typeof data.linkname === "string") {
+ source = Buffer.from(data.linkname);
+ }
+ return ZipArchiveOutputStream.prototype.entry.call(this, entry, source, callback);
+ };
+ ZipStream.prototype.finalize = function() {
+ this.finish();
+ };
+});
+
+// node_modules/archiver/lib/plugins/zip.js
+var require_zip3 = __commonJS((exports, module) => {
+ var engine = require_zip_stream();
+ var util = require_archiver_utils();
+ var Zip = function(options) {
+ if (!(this instanceof Zip)) {
+ return new Zip(options);
+ }
+ options = this.options = util.defaults(options, {
+ comment: "",
+ forceUTC: false,
+ namePrependSlash: false,
+ store: false
+ });
+ this.supports = {
+ directory: true,
+ symlink: true
+ };
+ this.engine = new engine(options);
+ };
+ Zip.prototype.append = function(source, data, callback) {
+ this.engine.entry(source, data, callback);
+ };
+ Zip.prototype.finalize = function() {
+ this.engine.finalize();
+ };
+ Zip.prototype.on = function() {
+ return this.engine.on.apply(this.engine, arguments);
+ };
+ Zip.prototype.pipe = function() {
+ return this.engine.pipe.apply(this.engine, arguments);
+ };
+ Zip.prototype.unpipe = function() {
+ return this.engine.unpipe.apply(this.engine, arguments);
+ };
+ module.exports = Zip;
+});
+
+// node_modules/queue-tick/queue-microtask.js
+var require_queue_microtask = __commonJS((exports, module) => {
+ module.exports = typeof queueMicrotask === "function" ? queueMicrotask : (fn) => Promise.resolve().then(fn);
+});
+
+// node_modules/queue-tick/process-next-tick.js
+var require_process_next_tick = __commonJS((exports, module) => {
+ module.exports = typeof process !== "undefined" && typeof process.nextTick === "function" ? process.nextTick.bind(process) : require_queue_microtask();
+});
+
+// node_modules/fast-fifo/fixed-size.js
+var require_fixed_size = __commonJS((exports, module) => {
+ module.exports = class FixedFIFO {
+ constructor(hwm) {
+ if (!(hwm > 0) || (hwm - 1 & hwm) !== 0)
+ throw new Error("Max size for a FixedFIFO should be a power of two");
+ this.buffer = new Array(hwm);
+ this.mask = hwm - 1;
+ this.top = 0;
+ this.btm = 0;
+ this.next = null;
+ }
+ clear() {
+ this.top = this.btm = 0;
+ this.next = null;
+ this.buffer.fill(undefined);
+ }
+ push(data) {
+ if (this.buffer[this.top] !== undefined)
+ return false;
+ this.buffer[this.top] = data;
+ this.top = this.top + 1 & this.mask;
+ return true;
+ }
+ shift() {
+ const last = this.buffer[this.btm];
+ if (last === undefined)
+ return;
+ this.buffer[this.btm] = undefined;
+ this.btm = this.btm + 1 & this.mask;
+ return last;
+ }
+ peek() {
+ return this.buffer[this.btm];
+ }
+ isEmpty() {
+ return this.buffer[this.btm] === undefined;
+ }
+ };
+});
+
+// node_modules/fast-fifo/index.js
+var require_fast_fifo = __commonJS((exports, module) => {
+ var FixedFIFO = require_fixed_size();
+ module.exports = class FastFIFO {
+ constructor(hwm) {
+ this.hwm = hwm || 16;
+ this.head = new FixedFIFO(this.hwm);
+ this.tail = this.head;
+ this.length = 0;
+ }
+ clear() {
+ this.head = this.tail;
+ this.head.clear();
+ this.length = 0;
+ }
+ push(val) {
+ this.length++;
+ if (!this.head.push(val)) {
+ const prev = this.head;
+ this.head = prev.next = new FixedFIFO(2 * this.head.buffer.length);
+ this.head.push(val);
+ }
+ }
+ shift() {
+ if (this.length !== 0)
+ this.length--;
+ const val = this.tail.shift();
+ if (val === undefined && this.tail.next) {
+ const next = this.tail.next;
+ this.tail.next = null;
+ this.tail = next;
+ return this.tail.shift();
+ }
+ return val;
+ }
+ peek() {
+ const val = this.tail.peek();
+ if (val === undefined && this.tail.next)
+ return this.tail.next.peek();
+ return val;
+ }
+ isEmpty() {
+ return this.length === 0;
+ }
+ };
+});
+
+// node_modules/b4a/index.js
+var require_b4a = __commonJS((exports, module) => {
+ function isBuffer(value) {
+ return Buffer.isBuffer(value) || value instanceof Uint8Array;
+ }
+ function isEncoding(encoding) {
+ return Buffer.isEncoding(encoding);
+ }
+ function alloc(size, fill2, encoding) {
+ return Buffer.alloc(size, fill2, encoding);
+ }
+ function allocUnsafe(size) {
+ return Buffer.allocUnsafe(size);
+ }
+ function allocUnsafeSlow(size) {
+ return Buffer.allocUnsafeSlow(size);
+ }
+ function byteLength(string2, encoding) {
+ return Buffer.byteLength(string2, encoding);
+ }
+ function compare(a, b) {
+ return Buffer.compare(a, b);
+ }
+ function concat(buffers, totalLength) {
+ return Buffer.concat(buffers, totalLength);
+ }
+ function copy(source, target, targetStart, start, end) {
+ return toBuffer(source).copy(target, targetStart, start, end);
+ }
+ function equals(a, b) {
+ return toBuffer(a).equals(b);
+ }
+ function fill(buffer, value, offset, end, encoding) {
+ return toBuffer(buffer).fill(value, offset, end, encoding);
+ }
+ function from2(value, encodingOrOffset, length) {
+ return Buffer.from(value, encodingOrOffset, length);
+ }
+ function includes(buffer, value, byteOffset, encoding) {
+ return toBuffer(buffer).includes(value, byteOffset, encoding);
+ }
+ function indexOf(buffer, value, byfeOffset, encoding) {
+ return toBuffer(buffer).indexOf(value, byfeOffset, encoding);
+ }
+ function lastIndexOf(buffer, value, byteOffset, encoding) {
+ return toBuffer(buffer).lastIndexOf(value, byteOffset, encoding);
+ }
+ function swap16(buffer) {
+ return toBuffer(buffer).swap16();
+ }
+ function swap32(buffer) {
+ return toBuffer(buffer).swap32();
+ }
+ function swap64(buffer) {
+ return toBuffer(buffer).swap64();
+ }
+ function toBuffer(buffer) {
+ if (Buffer.isBuffer(buffer))
+ return buffer;
+ return Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
+ }
+ function toString(buffer, encoding, start, end) {
+ return toBuffer(buffer).toString(encoding, start, end);
+ }
+ function write(buffer, string2, offset, length, encoding) {
+ return toBuffer(buffer).write(string2, offset, length, encoding);
+ }
+ function writeDoubleLE(buffer, value, offset) {
+ return toBuffer(buffer).writeDoubleLE(value, offset);
+ }
+ function writeFloatLE(buffer, value, offset) {
+ return toBuffer(buffer).writeFloatLE(value, offset);
+ }
+ function writeUInt32LE(buffer, value, offset) {
+ return toBuffer(buffer).writeUInt32LE(value, offset);
+ }
+ function writeInt32LE(buffer, value, offset) {
+ return toBuffer(buffer).writeInt32LE(value, offset);
+ }
+ function readDoubleLE(buffer, offset) {
+ return toBuffer(buffer).readDoubleLE(offset);
+ }
+ function readFloatLE(buffer, offset) {
+ return toBuffer(buffer).readFloatLE(offset);
+ }
+ function readUInt32LE(buffer, offset) {
+ return toBuffer(buffer).readUInt32LE(offset);
+ }
+ function readInt32LE(buffer, offset) {
+ return toBuffer(buffer).readInt32LE(offset);
+ }
+ function writeDoubleBE(buffer, value, offset) {
+ return toBuffer(buffer).writeDoubleBE(value, offset);
+ }
+ function writeFloatBE(buffer, value, offset) {
+ return toBuffer(buffer).writeFloatBE(value, offset);
+ }
+ function writeUInt32BE(buffer, value, offset) {
+ return toBuffer(buffer).writeUInt32BE(value, offset);
+ }
+ function writeInt32BE(buffer, value, offset) {
+ return toBuffer(buffer).writeInt32BE(value, offset);
+ }
+ function readDoubleBE(buffer, offset) {
+ return toBuffer(buffer).readDoubleBE(offset);
+ }
+ function readFloatBE(buffer, offset) {
+ return toBuffer(buffer).readFloatBE(offset);
+ }
+ function readUInt32BE(buffer, offset) {
+ return toBuffer(buffer).readUInt32BE(offset);
+ }
+ function readInt32BE(buffer, offset) {
+ return toBuffer(buffer).readInt32BE(offset);
+ }
+ module.exports = {
+ isBuffer,
+ isEncoding,
+ alloc,
+ allocUnsafe,
+ allocUnsafeSlow,
+ byteLength,
+ compare,
+ concat,
+ copy,
+ equals,
+ fill,
+ from: from2,
+ includes,
+ indexOf,
+ lastIndexOf,
+ swap16,
+ swap32,
+ swap64,
+ toBuffer,
+ toString,
+ write,
+ writeDoubleLE,
+ writeFloatLE,
+ writeUInt32LE,
+ writeInt32LE,
+ readDoubleLE,
+ readFloatLE,
+ readUInt32LE,
+ readInt32LE,
+ writeDoubleBE,
+ writeFloatBE,
+ writeUInt32BE,
+ writeInt32BE,
+ readDoubleBE,
+ readFloatBE,
+ readUInt32BE,
+ readInt32BE
+ };
+});
+
+// node_modules/text-decoder/lib/pass-through-decoder.js
+var require_pass_through_decoder = __commonJS((exports, module) => {
+ var b4a = require_b4a();
+ module.exports = class PassThroughDecoder {
+ constructor(encoding) {
+ this.encoding = encoding;
+ }
+ get remaining() {
+ return 0;
+ }
+ decode(tail) {
+ return b4a.toString(tail, this.encoding);
+ }
+ flush() {
+ return "";
+ }
+ };
+});
+
+// node_modules/text-decoder/lib/utf8-decoder.js
+var require_utf8_decoder = __commonJS((exports, module) => {
+ var b4a = require_b4a();
+ module.exports = class UTF8Decoder {
+ constructor() {
+ this.codePoint = 0;
+ this.bytesSeen = 0;
+ this.bytesNeeded = 0;
+ this.lowerBoundary = 128;
+ this.upperBoundary = 191;
+ }
+ get remaining() {
+ return this.bytesSeen;
+ }
+ decode(data) {
+ if (this.bytesNeeded === 0) {
+ let isBoundary = true;
+ for (let i = Math.max(0, data.byteLength - 4), n = data.byteLength;i < n && isBoundary; i++) {
+ isBoundary = data[i] <= 127;
+ }
+ if (isBoundary)
+ return b4a.toString(data, "utf8");
+ }
+ let result = "";
+ for (let i = 0, n = data.byteLength;i < n; i++) {
+ const byte = data[i];
+ if (this.bytesNeeded === 0) {
+ if (byte <= 127) {
+ result += String.fromCharCode(byte);
+ } else {
+ this.bytesSeen = 1;
+ if (byte >= 194 && byte <= 223) {
+ this.bytesNeeded = 2;
+ this.codePoint = byte & 31;
+ } else if (byte >= 224 && byte <= 239) {
+ if (byte === 224)
+ this.lowerBoundary = 160;
+ else if (byte === 237)
+ this.upperBoundary = 159;
+ this.bytesNeeded = 3;
+ this.codePoint = byte & 15;
+ } else if (byte >= 240 && byte <= 244) {
+ if (byte === 240)
+ this.lowerBoundary = 144;
+ if (byte === 244)
+ this.upperBoundary = 143;
+ this.bytesNeeded = 4;
+ this.codePoint = byte & 7;
+ } else {
+ result += "�";
+ }
+ }
+ continue;
+ }
+ if (byte < this.lowerBoundary || byte > this.upperBoundary) {
+ this.codePoint = 0;
+ this.bytesNeeded = 0;
+ this.bytesSeen = 0;
+ this.lowerBoundary = 128;
+ this.upperBoundary = 191;
+ result += "�";
+ continue;
+ }
+ this.lowerBoundary = 128;
+ this.upperBoundary = 191;
+ this.codePoint = this.codePoint << 6 | byte & 63;
+ this.bytesSeen++;
+ if (this.bytesSeen !== this.bytesNeeded)
+ continue;
+ result += String.fromCodePoint(this.codePoint);
+ this.codePoint = 0;
+ this.bytesNeeded = 0;
+ this.bytesSeen = 0;
+ }
+ return result;
+ }
+ flush() {
+ const result = this.bytesNeeded > 0 ? "�" : "";
+ this.codePoint = 0;
+ this.bytesNeeded = 0;
+ this.bytesSeen = 0;
+ this.lowerBoundary = 128;
+ this.upperBoundary = 191;
+ return result;
+ }
+ };
+});
+
+// node_modules/text-decoder/index.js
+var require_text_decoder = __commonJS((exports, module) => {
+ var PassThroughDecoder = require_pass_through_decoder();
+ var UTF8Decoder = require_utf8_decoder();
+ module.exports = class TextDecoder {
+ constructor(encoding = "utf8") {
+ this.encoding = normalizeEncoding(encoding);
+ switch (this.encoding) {
+ case "utf8":
+ this.decoder = new UTF8Decoder;
+ break;
+ case "utf16le":
+ case "base64":
+ throw new Error("Unsupported encoding: " + this.encoding);
+ default:
+ this.decoder = new PassThroughDecoder(this.encoding);
+ }
+ }
+ get remaining() {
+ return this.decoder.remaining;
+ }
+ push(data) {
+ if (typeof data === "string")
+ return data;
+ return this.decoder.decode(data);
+ }
+ write(data) {
+ return this.push(data);
+ }
+ end(data) {
+ let result = "";
+ if (data)
+ result = this.push(data);
+ result += this.decoder.flush();
+ return result;
+ }
+ };
+ function normalizeEncoding(encoding) {
+ encoding = encoding.toLowerCase();
+ switch (encoding) {
+ case "utf8":
+ case "utf-8":
+ return "utf8";
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return "utf16le";
+ case "latin1":
+ case "binary":
+ return "latin1";
+ case "base64":
+ case "ascii":
+ case "hex":
+ return encoding;
+ default:
+ throw new Error("Unknown encoding: " + encoding);
+ }
+ }
+});
+
+// node_modules/streamx/index.js
+var require_streamx = __commonJS((exports, module) => {
+ var { EventEmitter } = __require("events");
+ var STREAM_DESTROYED = new Error("Stream was destroyed");
+ var PREMATURE_CLOSE = new Error("Premature close");
+ var queueTick = require_process_next_tick();
+ var FIFO = require_fast_fifo();
+ var TextDecoder = require_text_decoder();
+ var MAX = (1 << 29) - 1;
+ var OPENING = 1;
+ var PREDESTROYING = 2;
+ var DESTROYING = 4;
+ var DESTROYED = 8;
+ var NOT_OPENING = MAX ^ OPENING;
+ var NOT_PREDESTROYING = MAX ^ PREDESTROYING;
+ var READ_ACTIVE = 1 << 4;
+ var READ_UPDATING = 2 << 4;
+ var READ_PRIMARY = 4 << 4;
+ var READ_QUEUED = 8 << 4;
+ var READ_RESUMED = 16 << 4;
+ var READ_PIPE_DRAINED = 32 << 4;
+ var READ_ENDING = 64 << 4;
+ var READ_EMIT_DATA = 128 << 4;
+ var READ_EMIT_READABLE = 256 << 4;
+ var READ_EMITTED_READABLE = 512 << 4;
+ var READ_DONE = 1024 << 4;
+ var READ_NEXT_TICK = 2048 << 4;
+ var READ_NEEDS_PUSH = 4096 << 4;
+ var READ_READ_AHEAD = 8192 << 4;
+ var READ_FLOWING = READ_RESUMED | READ_PIPE_DRAINED;
+ var READ_ACTIVE_AND_NEEDS_PUSH = READ_ACTIVE | READ_NEEDS_PUSH;
+ var READ_PRIMARY_AND_ACTIVE = READ_PRIMARY | READ_ACTIVE;
+ var READ_EMIT_READABLE_AND_QUEUED = READ_EMIT_READABLE | READ_QUEUED;
+ var READ_RESUMED_READ_AHEAD = READ_RESUMED | READ_READ_AHEAD;
+ var READ_NOT_ACTIVE = MAX ^ READ_ACTIVE;
+ var READ_NON_PRIMARY = MAX ^ READ_PRIMARY;
+ var READ_NON_PRIMARY_AND_PUSHED = MAX ^ (READ_PRIMARY | READ_NEEDS_PUSH);
+ var READ_PUSHED = MAX ^ READ_NEEDS_PUSH;
+ var READ_PAUSED = MAX ^ READ_RESUMED;
+ var READ_NOT_QUEUED = MAX ^ (READ_QUEUED | READ_EMITTED_READABLE);
+ var READ_NOT_ENDING = MAX ^ READ_ENDING;
+ var READ_PIPE_NOT_DRAINED = MAX ^ READ_FLOWING;
+ var READ_NOT_NEXT_TICK = MAX ^ READ_NEXT_TICK;
+ var READ_NOT_UPDATING = MAX ^ READ_UPDATING;
+ var READ_NO_READ_AHEAD = MAX ^ READ_READ_AHEAD;
+ var READ_PAUSED_NO_READ_AHEAD = MAX ^ READ_RESUMED_READ_AHEAD;
+ var WRITE_ACTIVE = 1 << 18;
+ var WRITE_UPDATING = 2 << 18;
+ var WRITE_PRIMARY = 4 << 18;
+ var WRITE_QUEUED = 8 << 18;
+ var WRITE_UNDRAINED = 16 << 18;
+ var WRITE_DONE = 32 << 18;
+ var WRITE_EMIT_DRAIN = 64 << 18;
+ var WRITE_NEXT_TICK = 128 << 18;
+ var WRITE_WRITING = 256 << 18;
+ var WRITE_FINISHING = 512 << 18;
+ var WRITE_CORKED = 1024 << 18;
+ var WRITE_NOT_ACTIVE = MAX ^ (WRITE_ACTIVE | WRITE_WRITING);
+ var WRITE_NON_PRIMARY = MAX ^ WRITE_PRIMARY;
+ var WRITE_NOT_FINISHING = MAX ^ (WRITE_ACTIVE | WRITE_FINISHING);
+ var WRITE_DRAINED = MAX ^ WRITE_UNDRAINED;
+ var WRITE_NOT_QUEUED = MAX ^ WRITE_QUEUED;
+ var WRITE_NOT_NEXT_TICK = MAX ^ WRITE_NEXT_TICK;
+ var WRITE_NOT_UPDATING = MAX ^ WRITE_UPDATING;
+ var WRITE_NOT_CORKED = MAX ^ WRITE_CORKED;
+ var ACTIVE = READ_ACTIVE | WRITE_ACTIVE;
+ var NOT_ACTIVE = MAX ^ ACTIVE;
+ var DONE = READ_DONE | WRITE_DONE;
+ var DESTROY_STATUS = DESTROYING | DESTROYED | PREDESTROYING;
+ var OPEN_STATUS = DESTROY_STATUS | OPENING;
+ var AUTO_DESTROY = DESTROY_STATUS | DONE;
+ var NON_PRIMARY = WRITE_NON_PRIMARY & READ_NON_PRIMARY;
+ var ACTIVE_OR_TICKING = WRITE_NEXT_TICK | READ_NEXT_TICK;
+ var TICKING = ACTIVE_OR_TICKING & NOT_ACTIVE;
+ var IS_OPENING = OPEN_STATUS | TICKING;
+ var READ_PRIMARY_STATUS = OPEN_STATUS | READ_ENDING | READ_DONE;
+ var READ_STATUS = OPEN_STATUS | READ_DONE | READ_QUEUED;
+ var READ_ENDING_STATUS = OPEN_STATUS | READ_ENDING | READ_QUEUED;
+ var READ_READABLE_STATUS = OPEN_STATUS | READ_EMIT_READABLE | READ_QUEUED | READ_EMITTED_READABLE;
+ var SHOULD_NOT_READ = OPEN_STATUS | READ_ACTIVE | READ_ENDING | READ_DONE | READ_NEEDS_PUSH | READ_READ_AHEAD;
+ var READ_BACKPRESSURE_STATUS = DESTROY_STATUS | READ_ENDING | READ_DONE;
+ var READ_UPDATE_SYNC_STATUS = READ_UPDATING | OPEN_STATUS | READ_NEXT_TICK | READ_PRIMARY;
+ var READ_NEXT_TICK_OR_OPENING = READ_NEXT_TICK | OPENING;
+ var WRITE_PRIMARY_STATUS = OPEN_STATUS | WRITE_FINISHING | WRITE_DONE;
+ var WRITE_QUEUED_AND_UNDRAINED = WRITE_QUEUED | WRITE_UNDRAINED;
+ var WRITE_QUEUED_AND_ACTIVE = WRITE_QUEUED | WRITE_ACTIVE;
+ var WRITE_DRAIN_STATUS = WRITE_QUEUED | WRITE_UNDRAINED | OPEN_STATUS | WRITE_ACTIVE;
+ var WRITE_STATUS = OPEN_STATUS | WRITE_ACTIVE | WRITE_QUEUED | WRITE_CORKED;
+ var WRITE_PRIMARY_AND_ACTIVE = WRITE_PRIMARY | WRITE_ACTIVE;
+ var WRITE_ACTIVE_AND_WRITING = WRITE_ACTIVE | WRITE_WRITING;
+ var WRITE_FINISHING_STATUS = OPEN_STATUS | WRITE_FINISHING | WRITE_QUEUED_AND_ACTIVE | WRITE_DONE;
+ var WRITE_BACKPRESSURE_STATUS = WRITE_UNDRAINED | DESTROY_STATUS | WRITE_FINISHING | WRITE_DONE;
+ var WRITE_UPDATE_SYNC_STATUS = WRITE_UPDATING | OPEN_STATUS | WRITE_NEXT_TICK | WRITE_PRIMARY;
+ var WRITE_DROP_DATA = WRITE_FINISHING | WRITE_DONE | DESTROY_STATUS;
+ var asyncIterator = Symbol.asyncIterator || Symbol("asyncIterator");
+
+ class WritableState {
+ constructor(stream, { highWaterMark = 16384, map = null, mapWritable, byteLength, byteLengthWritable } = {}) {
+ this.stream = stream;
+ this.queue = new FIFO;
+ this.highWaterMark = highWaterMark;
+ this.buffered = 0;
+ this.error = null;
+ this.pipeline = null;
+ this.drains = null;
+ this.byteLength = byteLengthWritable || byteLength || defaultByteLength;
+ this.map = mapWritable || map;
+ this.afterWrite = afterWrite.bind(this);
+ this.afterUpdateNextTick = updateWriteNT.bind(this);
+ }
+ get ended() {
+ return (this.stream._duplexState & WRITE_DONE) !== 0;
+ }
+ push(data) {
+ if ((this.stream._duplexState & WRITE_DROP_DATA) !== 0)
+ return false;
+ if (this.map !== null)
+ data = this.map(data);
+ this.buffered += this.byteLength(data);
+ this.queue.push(data);
+ if (this.buffered < this.highWaterMark) {
+ this.stream._duplexState |= WRITE_QUEUED;
+ return true;
+ }
+ this.stream._duplexState |= WRITE_QUEUED_AND_UNDRAINED;
+ return false;
+ }
+ shift() {
+ const data = this.queue.shift();
+ this.buffered -= this.byteLength(data);
+ if (this.buffered === 0)
+ this.stream._duplexState &= WRITE_NOT_QUEUED;
+ return data;
+ }
+ end(data) {
+ if (typeof data === "function")
+ this.stream.once("finish", data);
+ else if (data !== undefined && data !== null)
+ this.push(data);
+ this.stream._duplexState = (this.stream._duplexState | WRITE_FINISHING) & WRITE_NON_PRIMARY;
+ }
+ autoBatch(data, cb) {
+ const buffer = [];
+ const stream = this.stream;
+ buffer.push(data);
+ while ((stream._duplexState & WRITE_STATUS) === WRITE_QUEUED_AND_ACTIVE) {
+ buffer.push(stream._writableState.shift());
+ }
+ if ((stream._duplexState & OPEN_STATUS) !== 0)
+ return cb(null);
+ stream._writev(buffer, cb);
+ }
+ update() {
+ const stream = this.stream;
+ stream._duplexState |= WRITE_UPDATING;
+ do {
+ while ((stream._duplexState & WRITE_STATUS) === WRITE_QUEUED) {
+ const data = this.shift();
+ stream._duplexState |= WRITE_ACTIVE_AND_WRITING;
+ stream._write(data, this.afterWrite);
+ }
+ if ((stream._duplexState & WRITE_PRIMARY_AND_ACTIVE) === 0)
+ this.updateNonPrimary();
+ } while (this.continueUpdate() === true);
+ stream._duplexState &= WRITE_NOT_UPDATING;
+ }
+ updateNonPrimary() {
+ const stream = this.stream;
+ if ((stream._duplexState & WRITE_FINISHING_STATUS) === WRITE_FINISHING) {
+ stream._duplexState = stream._duplexState | WRITE_ACTIVE;
+ stream._final(afterFinal.bind(this));
+ return;
+ }
+ if ((stream._duplexState & DESTROY_STATUS) === DESTROYING) {
+ if ((stream._duplexState & ACTIVE_OR_TICKING) === 0) {
+ stream._duplexState |= ACTIVE;
+ stream._destroy(afterDestroy.bind(this));
+ }
+ return;
+ }
+ if ((stream._duplexState & IS_OPENING) === OPENING) {
+ stream._duplexState = (stream._duplexState | ACTIVE) & NOT_OPENING;
+ stream._open(afterOpen.bind(this));
+ }
+ }
+ continueUpdate() {
+ if ((this.stream._duplexState & WRITE_NEXT_TICK) === 0)
+ return false;
+ this.stream._duplexState &= WRITE_NOT_NEXT_TICK;
+ return true;
+ }
+ updateCallback() {
+ if ((this.stream._duplexState & WRITE_UPDATE_SYNC_STATUS) === WRITE_PRIMARY)
+ this.update();
+ else
+ this.updateNextTick();
+ }
+ updateNextTick() {
+ if ((this.stream._duplexState & WRITE_NEXT_TICK) !== 0)
+ return;
+ this.stream._duplexState |= WRITE_NEXT_TICK;
+ if ((this.stream._duplexState & WRITE_UPDATING) === 0)
+ queueTick(this.afterUpdateNextTick);
+ }
+ }
+
+ class ReadableState {
+ constructor(stream, { highWaterMark = 16384, map = null, mapReadable, byteLength, byteLengthReadable } = {}) {
+ this.stream = stream;
+ this.queue = new FIFO;
+ this.highWaterMark = highWaterMark === 0 ? 1 : highWaterMark;
+ this.buffered = 0;
+ this.readAhead = highWaterMark > 0;
+ this.error = null;
+ this.pipeline = null;
+ this.byteLength = byteLengthReadable || byteLength || defaultByteLength;
+ this.map = mapReadable || map;
+ this.pipeTo = null;
+ this.afterRead = afterRead.bind(this);
+ this.afterUpdateNextTick = updateReadNT.bind(this);
+ }
+ get ended() {
+ return (this.stream._duplexState & READ_DONE) !== 0;
+ }
+ pipe(pipeTo, cb) {
+ if (this.pipeTo !== null)
+ throw new Error("Can only pipe to one destination");
+ if (typeof cb !== "function")
+ cb = null;
+ this.stream._duplexState |= READ_PIPE_DRAINED;
+ this.pipeTo = pipeTo;
+ this.pipeline = new Pipeline(this.stream, pipeTo, cb);
+ if (cb)
+ this.stream.on("error", noop);
+ if (isStreamx(pipeTo)) {
+ pipeTo._writableState.pipeline = this.pipeline;
+ if (cb)
+ pipeTo.on("error", noop);
+ pipeTo.on("finish", this.pipeline.finished.bind(this.pipeline));
+ } else {
+ const onerror = this.pipeline.done.bind(this.pipeline, pipeTo);
+ const onclose = this.pipeline.done.bind(this.pipeline, pipeTo, null);
+ pipeTo.on("error", onerror);
+ pipeTo.on("close", onclose);
+ pipeTo.on("finish", this.pipeline.finished.bind(this.pipeline));
+ }
+ pipeTo.on("drain", afterDrain.bind(this));
+ this.stream.emit("piping", pipeTo);
+ pipeTo.emit("pipe", this.stream);
+ }
+ push(data) {
+ const stream = this.stream;
+ if (data === null) {
+ this.highWaterMark = 0;
+ stream._duplexState = (stream._duplexState | READ_ENDING) & READ_NON_PRIMARY_AND_PUSHED;
+ return false;
+ }
+ if (this.map !== null) {
+ data = this.map(data);
+ if (data === null) {
+ stream._duplexState &= READ_PUSHED;
+ return this.buffered < this.highWaterMark;
+ }
+ }
+ this.buffered += this.byteLength(data);
+ this.queue.push(data);
+ stream._duplexState = (stream._duplexState | READ_QUEUED) & READ_PUSHED;
+ return this.buffered < this.highWaterMark;
+ }
+ shift() {
+ const data = this.queue.shift();
+ this.buffered -= this.byteLength(data);
+ if (this.buffered === 0)
+ this.stream._duplexState &= READ_NOT_QUEUED;
+ return data;
+ }
+ unshift(data) {
+ const pending = [this.map !== null ? this.map(data) : data];
+ while (this.buffered > 0)
+ pending.push(this.shift());
+ for (let i = 0;i < pending.length - 1; i++) {
+ const data2 = pending[i];
+ this.buffered += this.byteLength(data2);
+ this.queue.push(data2);
+ }
+ this.push(pending[pending.length - 1]);
+ }
+ read() {
+ const stream = this.stream;
+ if ((stream._duplexState & READ_STATUS) === READ_QUEUED) {
+ const data = this.shift();
+ if (this.pipeTo !== null && this.pipeTo.write(data) === false)
+ stream._duplexState &= READ_PIPE_NOT_DRAINED;
+ if ((stream._duplexState & READ_EMIT_DATA) !== 0)
+ stream.emit("data", data);
+ return data;
+ }
+ if (this.readAhead === false) {
+ stream._duplexState |= READ_READ_AHEAD;
+ this.updateNextTick();
+ }
+ return null;
+ }
+ drain() {
+ const stream = this.stream;
+ while ((stream._duplexState & READ_STATUS) === READ_QUEUED && (stream._duplexState & READ_FLOWING) !== 0) {
+ const data = this.shift();
+ if (this.pipeTo !== null && this.pipeTo.write(data) === false)
+ stream._duplexState &= READ_PIPE_NOT_DRAINED;
+ if ((stream._duplexState & READ_EMIT_DATA) !== 0)
+ stream.emit("data", data);
+ }
+ }
+ update() {
+ const stream = this.stream;
+ stream._duplexState |= READ_UPDATING;
+ do {
+ this.drain();
+ while (this.buffered < this.highWaterMark && (stream._duplexState & SHOULD_NOT_READ) === READ_READ_AHEAD) {
+ stream._duplexState |= READ_ACTIVE_AND_NEEDS_PUSH;
+ stream._read(this.afterRead);
+ this.drain();
+ }
+ if ((stream._duplexState & READ_READABLE_STATUS) === READ_EMIT_READABLE_AND_QUEUED) {
+ stream._duplexState |= READ_EMITTED_READABLE;
+ stream.emit("readable");
+ }
+ if ((stream._duplexState & READ_PRIMARY_AND_ACTIVE) === 0)
+ this.updateNonPrimary();
+ } while (this.continueUpdate() === true);
+ stream._duplexState &= READ_NOT_UPDATING;
+ }
+ updateNonPrimary() {
+ const stream = this.stream;
+ if ((stream._duplexState & READ_ENDING_STATUS) === READ_ENDING) {
+ stream._duplexState = (stream._duplexState | READ_DONE) & READ_NOT_ENDING;
+ stream.emit("end");
+ if ((stream._duplexState & AUTO_DESTROY) === DONE)
+ stream._duplexState |= DESTROYING;
+ if (this.pipeTo !== null)
+ this.pipeTo.end();
+ }
+ if ((stream._duplexState & DESTROY_STATUS) === DESTROYING) {
+ if ((stream._duplexState & ACTIVE_OR_TICKING) === 0) {
+ stream._duplexState |= ACTIVE;
+ stream._destroy(afterDestroy.bind(this));
+ }
+ return;
+ }
+ if ((stream._duplexState & IS_OPENING) === OPENING) {
+ stream._duplexState = (stream._duplexState | ACTIVE) & NOT_OPENING;
+ stream._open(afterOpen.bind(this));
+ }
+ }
+ continueUpdate() {
+ if ((this.stream._duplexState & READ_NEXT_TICK) === 0)
+ return false;
+ this.stream._duplexState &= READ_NOT_NEXT_TICK;
+ return true;
+ }
+ updateCallback() {
+ if ((this.stream._duplexState & READ_UPDATE_SYNC_STATUS) === READ_PRIMARY)
+ this.update();
+ else
+ this.updateNextTick();
+ }
+ updateNextTickIfOpen() {
+ if ((this.stream._duplexState & READ_NEXT_TICK_OR_OPENING) !== 0)
+ return;
+ this.stream._duplexState |= READ_NEXT_TICK;
+ if ((this.stream._duplexState & READ_UPDATING) === 0)
+ queueTick(this.afterUpdateNextTick);
+ }
+ updateNextTick() {
+ if ((this.stream._duplexState & READ_NEXT_TICK) !== 0)
+ return;
+ this.stream._duplexState |= READ_NEXT_TICK;
+ if ((this.stream._duplexState & READ_UPDATING) === 0)
+ queueTick(this.afterUpdateNextTick);
+ }
+ }
+
+ class TransformState {
+ constructor(stream) {
+ this.data = null;
+ this.afterTransform = afterTransform.bind(stream);
+ this.afterFinal = null;
+ }
+ }
+
+ class Pipeline {
+ constructor(src, dst, cb) {
+ this.from = src;
+ this.to = dst;
+ this.afterPipe = cb;
+ this.error = null;
+ this.pipeToFinished = false;
+ }
+ finished() {
+ this.pipeToFinished = true;
+ }
+ done(stream, err) {
+ if (err)
+ this.error = err;
+ if (stream === this.to) {
+ this.to = null;
+ if (this.from !== null) {
+ if ((this.from._duplexState & READ_DONE) === 0 || !this.pipeToFinished) {
+ this.from.destroy(this.error || new Error("Writable stream closed prematurely"));
+ }
+ return;
+ }
+ }
+ if (stream === this.from) {
+ this.from = null;
+ if (this.to !== null) {
+ if ((stream._duplexState & READ_DONE) === 0) {
+ this.to.destroy(this.error || new Error("Readable stream closed before ending"));
+ }
+ return;
+ }
+ }
+ if (this.afterPipe !== null)
+ this.afterPipe(this.error);
+ this.to = this.from = this.afterPipe = null;
+ }
+ }
+ function afterDrain() {
+ this.stream._duplexState |= READ_PIPE_DRAINED;
+ this.updateCallback();
+ }
+ function afterFinal(err) {
+ const stream = this.stream;
+ if (err)
+ stream.destroy(err);
+ if ((stream._duplexState & DESTROY_STATUS) === 0) {
+ stream._duplexState |= WRITE_DONE;
+ stream.emit("finish");
+ }
+ if ((stream._duplexState & AUTO_DESTROY) === DONE) {
+ stream._duplexState |= DESTROYING;
+ }
+ stream._duplexState &= WRITE_NOT_FINISHING;
+ if ((stream._duplexState & WRITE_UPDATING) === 0)
+ this.update();
+ else
+ this.updateNextTick();
+ }
+ function afterDestroy(err) {
+ const stream = this.stream;
+ if (!err && this.error !== STREAM_DESTROYED)
+ err = this.error;
+ if (err)
+ stream.emit("error", err);
+ stream._duplexState |= DESTROYED;
+ stream.emit("close");
+ const rs = stream._readableState;
+ const ws = stream._writableState;
+ if (rs !== null && rs.pipeline !== null)
+ rs.pipeline.done(stream, err);
+ if (ws !== null) {
+ while (ws.drains !== null && ws.drains.length > 0)
+ ws.drains.shift().resolve(false);
+ if (ws.pipeline !== null)
+ ws.pipeline.done(stream, err);
+ }
+ }
+ function afterWrite(err) {
+ const stream = this.stream;
+ if (err)
+ stream.destroy(err);
+ stream._duplexState &= WRITE_NOT_ACTIVE;
+ if (this.drains !== null)
+ tickDrains(this.drains);
+ if ((stream._duplexState & WRITE_DRAIN_STATUS) === WRITE_UNDRAINED) {
+ stream._duplexState &= WRITE_DRAINED;
+ if ((stream._duplexState & WRITE_EMIT_DRAIN) === WRITE_EMIT_DRAIN) {
+ stream.emit("drain");
+ }
+ }
+ this.updateCallback();
+ }
+ function afterRead(err) {
+ if (err)
+ this.stream.destroy(err);
+ this.stream._duplexState &= READ_NOT_ACTIVE;
+ if (this.readAhead === false && (this.stream._duplexState & READ_RESUMED) === 0)
+ this.stream._duplexState &= READ_NO_READ_AHEAD;
+ this.updateCallback();
+ }
+ function updateReadNT() {
+ if ((this.stream._duplexState & READ_UPDATING) === 0) {
+ this.stream._duplexState &= READ_NOT_NEXT_TICK;
+ this.update();
+ }
+ }
+ function updateWriteNT() {
+ if ((this.stream._duplexState & WRITE_UPDATING) === 0) {
+ this.stream._duplexState &= WRITE_NOT_NEXT_TICK;
+ this.update();
+ }
+ }
+ function tickDrains(drains) {
+ for (let i = 0;i < drains.length; i++) {
+ if (--drains[i].writes === 0) {
+ drains.shift().resolve(true);
+ i--;
+ }
+ }
+ }
+ function afterOpen(err) {
+ const stream = this.stream;
+ if (err)
+ stream.destroy(err);
+ if ((stream._duplexState & DESTROYING) === 0) {
+ if ((stream._duplexState & READ_PRIMARY_STATUS) === 0)
+ stream._duplexState |= READ_PRIMARY;
+ if ((stream._duplexState & WRITE_PRIMARY_STATUS) === 0)
+ stream._duplexState |= WRITE_PRIMARY;
+ stream.emit("open");
+ }
+ stream._duplexState &= NOT_ACTIVE;
+ if (stream._writableState !== null) {
+ stream._writableState.updateCallback();
+ }
+ if (stream._readableState !== null) {
+ stream._readableState.updateCallback();
+ }
+ }
+ function afterTransform(err, data) {
+ if (data !== undefined && data !== null)
+ this.push(data);
+ this._writableState.afterWrite(err);
+ }
+ function newListener(name) {
+ if (this._readableState !== null) {
+ if (name === "data") {
+ this._duplexState |= READ_EMIT_DATA | READ_RESUMED_READ_AHEAD;
+ this._readableState.updateNextTick();
+ }
+ if (name === "readable") {
+ this._duplexState |= READ_EMIT_READABLE;
+ this._readableState.updateNextTick();
+ }
+ }
+ if (this._writableState !== null) {
+ if (name === "drain") {
+ this._duplexState |= WRITE_EMIT_DRAIN;
+ this._writableState.updateNextTick();
+ }
+ }
+ }
+
+ class Stream extends EventEmitter {
+ constructor(opts) {
+ super();
+ this._duplexState = 0;
+ this._readableState = null;
+ this._writableState = null;
+ if (opts) {
+ if (opts.open)
+ this._open = opts.open;
+ if (opts.destroy)
+ this._destroy = opts.destroy;
+ if (opts.predestroy)
+ this._predestroy = opts.predestroy;
+ if (opts.signal) {
+ opts.signal.addEventListener("abort", abort.bind(this));
+ }
+ }
+ this.on("newListener", newListener);
+ }
+ _open(cb) {
+ cb(null);
+ }
+ _destroy(cb) {
+ cb(null);
+ }
+ _predestroy() {
+ }
+ get readable() {
+ return this._readableState !== null ? true : undefined;
+ }
+ get writable() {
+ return this._writableState !== null ? true : undefined;
+ }
+ get destroyed() {
+ return (this._duplexState & DESTROYED) !== 0;
+ }
+ get destroying() {
+ return (this._duplexState & DESTROY_STATUS) !== 0;
+ }
+ destroy(err) {
+ if ((this._duplexState & DESTROY_STATUS) === 0) {
+ if (!err)
+ err = STREAM_DESTROYED;
+ this._duplexState = (this._duplexState | DESTROYING) & NON_PRIMARY;
+ if (this._readableState !== null) {
+ this._readableState.highWaterMark = 0;
+ this._readableState.error = err;
+ }
+ if (this._writableState !== null) {
+ this._writableState.highWaterMark = 0;
+ this._writableState.error = err;
+ }
+ this._duplexState |= PREDESTROYING;
+ this._predestroy();
+ this._duplexState &= NOT_PREDESTROYING;
+ if (this._readableState !== null)
+ this._readableState.updateNextTick();
+ if (this._writableState !== null)
+ this._writableState.updateNextTick();
+ }
+ }
+ }
+
+ class Readable extends Stream {
+ constructor(opts) {
+ super(opts);
+ this._duplexState |= OPENING | WRITE_DONE | READ_READ_AHEAD;
+ this._readableState = new ReadableState(this, opts);
+ if (opts) {
+ if (this._readableState.readAhead === false)
+ this._duplexState &= READ_NO_READ_AHEAD;
+ if (opts.read)
+ this._read = opts.read;
+ if (opts.eagerOpen)
+ this._readableState.updateNextTick();
+ if (opts.encoding)
+ this.setEncoding(opts.encoding);
+ }
+ }
+ setEncoding(encoding) {
+ const dec = new TextDecoder(encoding);
+ const map = this._readableState.map || echo;
+ this._readableState.map = mapOrSkip;
+ return this;
+ function mapOrSkip(data) {
+ const next = dec.push(data);
+ return next === "" && (data.byteLength !== 0 || dec.remaining > 0) ? null : map(next);
+ }
+ }
+ _read(cb) {
+ cb(null);
+ }
+ pipe(dest, cb) {
+ this._readableState.updateNextTick();
+ this._readableState.pipe(dest, cb);
+ return dest;
+ }
+ read() {
+ this._readableState.updateNextTick();
+ return this._readableState.read();
+ }
+ push(data) {
+ this._readableState.updateNextTickIfOpen();
+ return this._readableState.push(data);
+ }
+ unshift(data) {
+ this._readableState.updateNextTickIfOpen();
+ return this._readableState.unshift(data);
+ }
+ resume() {
+ this._duplexState |= READ_RESUMED_READ_AHEAD;
+ this._readableState.updateNextTick();
+ return this;
+ }
+ pause() {
+ this._duplexState &= this._readableState.readAhead === false ? READ_PAUSED_NO_READ_AHEAD : READ_PAUSED;
+ return this;
+ }
+ static _fromAsyncIterator(ite, opts) {
+ let destroy;
+ const rs = new Readable({
+ ...opts,
+ read(cb) {
+ ite.next().then(push).then(cb.bind(null, null)).catch(cb);
+ },
+ predestroy() {
+ destroy = ite.return();
+ },
+ destroy(cb) {
+ if (!destroy)
+ return cb(null);
+ destroy.then(cb.bind(null, null)).catch(cb);
+ }
+ });
+ return rs;
+ function push(data) {
+ if (data.done)
+ rs.push(null);
+ else
+ rs.push(data.value);
+ }
+ }
+ static from(data, opts) {
+ if (isReadStreamx(data))
+ return data;
+ if (data[asyncIterator])
+ return this._fromAsyncIterator(data[asyncIterator](), opts);
+ if (!Array.isArray(data))
+ data = data === undefined ? [] : [data];
+ let i = 0;
+ return new Readable({
+ ...opts,
+ read(cb) {
+ this.push(i === data.length ? null : data[i++]);
+ cb(null);
+ }
+ });
+ }
+ static isBackpressured(rs) {
+ return (rs._duplexState & READ_BACKPRESSURE_STATUS) !== 0 || rs._readableState.buffered >= rs._readableState.highWaterMark;
+ }
+ static isPaused(rs) {
+ return (rs._duplexState & READ_RESUMED) === 0;
+ }
+ [asyncIterator]() {
+ const stream = this;
+ let error = null;
+ let promiseResolve = null;
+ let promiseReject = null;
+ this.on("error", (err) => {
+ error = err;
+ });
+ this.on("readable", onreadable);
+ this.on("close", onclose);
+ return {
+ [asyncIterator]() {
+ return this;
+ },
+ next() {
+ return new Promise(function(resolve, reject) {
+ promiseResolve = resolve;
+ promiseReject = reject;
+ const data = stream.read();
+ if (data !== null)
+ ondata(data);
+ else if ((stream._duplexState & DESTROYED) !== 0)
+ ondata(null);
+ });
+ },
+ return() {
+ return destroy(null);
+ },
+ throw(err) {
+ return destroy(err);
+ }
+ };
+ function onreadable() {
+ if (promiseResolve !== null)
+ ondata(stream.read());
+ }
+ function onclose() {
+ if (promiseResolve !== null)
+ ondata(null);
+ }
+ function ondata(data) {
+ if (promiseReject === null)
+ return;
+ if (error)
+ promiseReject(error);
+ else if (data === null && (stream._duplexState & READ_DONE) === 0)
+ promiseReject(STREAM_DESTROYED);
+ else
+ promiseResolve({ value: data, done: data === null });
+ promiseReject = promiseResolve = null;
+ }
+ function destroy(err) {
+ stream.destroy(err);
+ return new Promise((resolve, reject) => {
+ if (stream._duplexState & DESTROYED)
+ return resolve({ value: undefined, done: true });
+ stream.once("close", function() {
+ if (err)
+ reject(err);
+ else
+ resolve({ value: undefined, done: true });
+ });
+ });
+ }
+ }
+ }
+
+ class Writable extends Stream {
+ constructor(opts) {
+ super(opts);
+ this._duplexState |= OPENING | READ_DONE;
+ this._writableState = new WritableState(this, opts);
+ if (opts) {
+ if (opts.writev)
+ this._writev = opts.writev;
+ if (opts.write)
+ this._write = opts.write;
+ if (opts.final)
+ this._final = opts.final;
+ if (opts.eagerOpen)
+ this._writableState.updateNextTick();
+ }
+ }
+ cork() {
+ this._duplexState |= WRITE_CORKED;
+ }
+ uncork() {
+ this._duplexState &= WRITE_NOT_CORKED;
+ this._writableState.updateNextTick();
+ }
+ _writev(batch, cb) {
+ cb(null);
+ }
+ _write(data, cb) {
+ this._writableState.autoBatch(data, cb);
+ }
+ _final(cb) {
+ cb(null);
+ }
+ static isBackpressured(ws) {
+ return (ws._duplexState & WRITE_BACKPRESSURE_STATUS) !== 0;
+ }
+ static drained(ws) {
+ if (ws.destroyed)
+ return Promise.resolve(false);
+ const state = ws._writableState;
+ const pending = isWritev(ws) ? Math.min(1, state.queue.length) : state.queue.length;
+ const writes = pending + (ws._duplexState & WRITE_WRITING ? 1 : 0);
+ if (writes === 0)
+ return Promise.resolve(true);
+ if (state.drains === null)
+ state.drains = [];
+ return new Promise((resolve) => {
+ state.drains.push({ writes, resolve });
+ });
+ }
+ write(data) {
+ this._writableState.updateNextTick();
+ return this._writableState.push(data);
+ }
+ end(data) {
+ this._writableState.updateNextTick();
+ this._writableState.end(data);
+ return this;
+ }
+ }
+
+ class Duplex extends Readable {
+ constructor(opts) {
+ super(opts);
+ this._duplexState = OPENING | this._duplexState & READ_READ_AHEAD;
+ this._writableState = new WritableState(this, opts);
+ if (opts) {
+ if (opts.writev)
+ this._writev = opts.writev;
+ if (opts.write)
+ this._write = opts.write;
+ if (opts.final)
+ this._final = opts.final;
+ }
+ }
+ cork() {
+ this._duplexState |= WRITE_CORKED;
+ }
+ uncork() {
+ this._duplexState &= WRITE_NOT_CORKED;
+ this._writableState.updateNextTick();
+ }
+ _writev(batch, cb) {
+ cb(null);
+ }
+ _write(data, cb) {
+ this._writableState.autoBatch(data, cb);
+ }
+ _final(cb) {
+ cb(null);
+ }
+ write(data) {
+ this._writableState.updateNextTick();
+ return this._writableState.push(data);
+ }
+ end(data) {
+ this._writableState.updateNextTick();
+ this._writableState.end(data);
+ return this;
+ }
+ }
+
+ class Transform extends Duplex {
+ constructor(opts) {
+ super(opts);
+ this._transformState = new TransformState(this);
+ if (opts) {
+ if (opts.transform)
+ this._transform = opts.transform;
+ if (opts.flush)
+ this._flush = opts.flush;
+ }
+ }
+ _write(data, cb) {
+ if (this._readableState.buffered >= this._readableState.highWaterMark) {
+ this._transformState.data = data;
+ } else {
+ this._transform(data, this._transformState.afterTransform);
+ }
+ }
+ _read(cb) {
+ if (this._transformState.data !== null) {
+ const data = this._transformState.data;
+ this._transformState.data = null;
+ cb(null);
+ this._transform(data, this._transformState.afterTransform);
+ } else {
+ cb(null);
+ }
+ }
+ destroy(err) {
+ super.destroy(err);
+ if (this._transformState.data !== null) {
+ this._transformState.data = null;
+ this._transformState.afterTransform();
+ }
+ }
+ _transform(data, cb) {
+ cb(null, data);
+ }
+ _flush(cb) {
+ cb(null);
+ }
+ _final(cb) {
+ this._transformState.afterFinal = cb;
+ this._flush(transformAfterFlush.bind(this));
+ }
+ }
+
+ class PassThrough extends Transform {
+ }
+ function transformAfterFlush(err, data) {
+ const cb = this._transformState.afterFinal;
+ if (err)
+ return cb(err);
+ if (data !== null && data !== undefined)
+ this.push(data);
+ this.push(null);
+ cb(null);
+ }
+ function pipelinePromise(...streams) {
+ return new Promise((resolve, reject) => {
+ return pipeline(...streams, (err) => {
+ if (err)
+ return reject(err);
+ resolve();
+ });
+ });
+ }
+ function pipeline(stream, ...streams) {
+ const all = Array.isArray(stream) ? [...stream, ...streams] : [stream, ...streams];
+ const done = all.length && typeof all[all.length - 1] === "function" ? all.pop() : null;
+ if (all.length < 2)
+ throw new Error("Pipeline requires at least 2 streams");
+ let src = all[0];
+ let dest = null;
+ let error = null;
+ for (let i = 1;i < all.length; i++) {
+ dest = all[i];
+ if (isStreamx(src)) {
+ src.pipe(dest, onerror);
+ } else {
+ errorHandle(src, true, i > 1, onerror);
+ src.pipe(dest);
+ }
+ src = dest;
+ }
+ if (done) {
+ let fin = false;
+ const autoDestroy = isStreamx(dest) || !!(dest._writableState && dest._writableState.autoDestroy);
+ dest.on("error", (err) => {
+ if (error === null)
+ error = err;
+ });
+ dest.on("finish", () => {
+ fin = true;
+ if (!autoDestroy)
+ done(error);
+ });
+ if (autoDestroy) {
+ dest.on("close", () => done(error || (fin ? null : PREMATURE_CLOSE)));
+ }
+ }
+ return dest;
+ function errorHandle(s, rd, wr, onerror2) {
+ s.on("error", onerror2);
+ s.on("close", onclose);
+ function onclose() {
+ if (rd && s._readableState && !s._readableState.ended)
+ return onerror2(PREMATURE_CLOSE);
+ if (wr && s._writableState && !s._writableState.ended)
+ return onerror2(PREMATURE_CLOSE);
+ }
+ }
+ function onerror(err) {
+ if (!err || error)
+ return;
+ error = err;
+ for (const s of all) {
+ s.destroy(err);
+ }
+ }
+ }
+ function echo(s) {
+ return s;
+ }
+ function isStream(stream) {
+ return !!stream._readableState || !!stream._writableState;
+ }
+ function isStreamx(stream) {
+ return typeof stream._duplexState === "number" && isStream(stream);
+ }
+ function isEnded(stream) {
+ return !!stream._readableState && stream._readableState.ended;
+ }
+ function isFinished(stream) {
+ return !!stream._writableState && stream._writableState.ended;
+ }
+ function getStreamError(stream, opts = {}) {
+ const err = stream._readableState && stream._readableState.error || stream._writableState && stream._writableState.error;
+ return !opts.all && err === STREAM_DESTROYED ? null : err;
+ }
+ function isReadStreamx(stream) {
+ return isStreamx(stream) && stream.readable;
+ }
+ function isDisturbed(stream) {
+ return (stream._duplexState & OPENING) !== OPENING || (stream._duplexState & ACTIVE_OR_TICKING) !== 0;
+ }
+ function isTypedArray(data) {
+ return typeof data === "object" && data !== null && typeof data.byteLength === "number";
+ }
+ function defaultByteLength(data) {
+ return isTypedArray(data) ? data.byteLength : 1024;
+ }
+ function noop() {
+ }
+ function abort() {
+ this.destroy(new Error("Stream aborted."));
+ }
+ function isWritev(s) {
+ return s._writev !== Writable.prototype._writev && s._writev !== Duplex.prototype._writev;
+ }
+ module.exports = {
+ pipeline,
+ pipelinePromise,
+ isStream,
+ isStreamx,
+ isEnded,
+ isFinished,
+ isDisturbed,
+ getStreamError,
+ Stream,
+ Writable,
+ Readable,
+ Duplex,
+ Transform,
+ PassThrough
+ };
+});
+
+// node_modules/tar-stream/headers.js
+var require_headers = __commonJS((exports) => {
+ var b4a = require_b4a();
+ var ZEROS = "0000000000000000000";
+ var SEVENS = "7777777777777777777";
+ var ZERO_OFFSET = 48;
+ var USTAR_MAGIC = b4a.from([117, 115, 116, 97, 114, 0]);
+ var USTAR_VER = b4a.from([ZERO_OFFSET, ZERO_OFFSET]);
+ var GNU_MAGIC = b4a.from([117, 115, 116, 97, 114, 32]);
+ var GNU_VER = b4a.from([32, 0]);
+ var MASK = 4095;
+ var MAGIC_OFFSET = 257;
+ var VERSION_OFFSET = 263;
+ exports.decodeLongPath = function decodeLongPath(buf, encoding) {
+ return decodeStr(buf, 0, buf.length, encoding);
+ };
+ exports.encodePax = function encodePax(opts) {
+ let result = "";
+ if (opts.name)
+ result += addLength(" path=" + opts.name + `
+`);
+ if (opts.linkname)
+ result += addLength(" linkpath=" + opts.linkname + `
+`);
+ const pax = opts.pax;
+ if (pax) {
+ for (const key2 in pax) {
+ result += addLength(" " + key2 + "=" + pax[key2] + `
+`);
+ }
+ }
+ return b4a.from(result);
+ };
+ exports.decodePax = function decodePax(buf) {
+ const result = {};
+ while (buf.length) {
+ let i = 0;
+ while (i < buf.length && buf[i] !== 32)
+ i++;
+ const len = parseInt(b4a.toString(buf.subarray(0, i)), 10);
+ if (!len)
+ return result;
+ const b = b4a.toString(buf.subarray(i + 1, len - 1));
+ const keyIndex = b.indexOf("=");
+ if (keyIndex === -1)
+ return result;
+ result[b.slice(0, keyIndex)] = b.slice(keyIndex + 1);
+ buf = buf.subarray(len);
+ }
+ return result;
+ };
+ exports.encode = function encode(opts) {
+ const buf = b4a.alloc(512);
+ let name = opts.name;
+ let prefix = "";
+ if (opts.typeflag === 5 && name[name.length - 1] !== "/")
+ name += "/";
+ if (b4a.byteLength(name) !== name.length)
+ return null;
+ while (b4a.byteLength(name) > 100) {
+ const i = name.indexOf("/");
+ if (i === -1)
+ return null;
+ prefix += prefix ? "/" + name.slice(0, i) : name.slice(0, i);
+ name = name.slice(i + 1);
+ }
+ if (b4a.byteLength(name) > 100 || b4a.byteLength(prefix) > 155)
+ return null;
+ if (opts.linkname && b4a.byteLength(opts.linkname) > 100)
+ return null;
+ b4a.write(buf, name);
+ b4a.write(buf, encodeOct(opts.mode & MASK, 6), 100);
+ b4a.write(buf, encodeOct(opts.uid, 6), 108);
+ b4a.write(buf, encodeOct(opts.gid, 6), 116);
+ encodeSize(opts.size, buf, 124);
+ b4a.write(buf, encodeOct(opts.mtime.getTime() / 1000 | 0, 11), 136);
+ buf[156] = ZERO_OFFSET + toTypeflag(opts.type);
+ if (opts.linkname)
+ b4a.write(buf, opts.linkname, 157);
+ b4a.copy(USTAR_MAGIC, buf, MAGIC_OFFSET);
+ b4a.copy(USTAR_VER, buf, VERSION_OFFSET);
+ if (opts.uname)
+ b4a.write(buf, opts.uname, 265);
+ if (opts.gname)
+ b4a.write(buf, opts.gname, 297);
+ b4a.write(buf, encodeOct(opts.devmajor || 0, 6), 329);
+ b4a.write(buf, encodeOct(opts.devminor || 0, 6), 337);
+ if (prefix)
+ b4a.write(buf, prefix, 345);
+ b4a.write(buf, encodeOct(cksum(buf), 6), 148);
+ return buf;
+ };
+ exports.decode = function decode(buf, filenameEncoding, allowUnknownFormat) {
+ let typeflag = buf[156] === 0 ? 0 : buf[156] - ZERO_OFFSET;
+ let name = decodeStr(buf, 0, 100, filenameEncoding);
+ const mode = decodeOct(buf, 100, 8);
+ const uid = decodeOct(buf, 108, 8);
+ const gid = decodeOct(buf, 116, 8);
+ const size = decodeOct(buf, 124, 12);
+ const mtime = decodeOct(buf, 136, 12);
+ const type = toType(typeflag);
+ const linkname = buf[157] === 0 ? null : decodeStr(buf, 157, 100, filenameEncoding);
+ const uname = decodeStr(buf, 265, 32);
+ const gname = decodeStr(buf, 297, 32);
+ const devmajor = decodeOct(buf, 329, 8);
+ const devminor = decodeOct(buf, 337, 8);
+ const c = cksum(buf);
+ if (c === 8 * 32)
+ return null;
+ if (c !== decodeOct(buf, 148, 8))
+ throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");
+ if (isUSTAR(buf)) {
+ if (buf[345])
+ name = decodeStr(buf, 345, 155, filenameEncoding) + "/" + name;
+ } else if (isGNU(buf)) {
+ } else {
+ if (!allowUnknownFormat) {
+ throw new Error("Invalid tar header: unknown format.");
+ }
+ }
+ if (typeflag === 0 && name && name[name.length - 1] === "/")
+ typeflag = 5;
+ return {
+ name,
+ mode,
+ uid,
+ gid,
+ size,
+ mtime: new Date(1000 * mtime),
+ type,
+ linkname,
+ uname,
+ gname,
+ devmajor,
+ devminor,
+ pax: null
+ };
+ };
+ function isUSTAR(buf) {
+ return b4a.equals(USTAR_MAGIC, buf.subarray(MAGIC_OFFSET, MAGIC_OFFSET + 6));
+ }
+ function isGNU(buf) {
+ return b4a.equals(GNU_MAGIC, buf.subarray(MAGIC_OFFSET, MAGIC_OFFSET + 6)) && b4a.equals(GNU_VER, buf.subarray(VERSION_OFFSET, VERSION_OFFSET + 2));
+ }
+ function clamp(index, len, defaultValue) {
+ if (typeof index !== "number")
+ return defaultValue;
+ index = ~~index;
+ if (index >= len)
+ return len;
+ if (index >= 0)
+ return index;
+ index += len;
+ if (index >= 0)
+ return index;
+ return 0;
+ }
+ function toType(flag) {
+ switch (flag) {
+ case 0:
+ return "file";
+ case 1:
+ return "link";
+ case 2:
+ return "symlink";
+ case 3:
+ return "character-device";
+ case 4:
+ return "block-device";
+ case 5:
+ return "directory";
+ case 6:
+ return "fifo";
+ case 7:
+ return "contiguous-file";
+ case 72:
+ return "pax-header";
+ case 55:
+ return "pax-global-header";
+ case 27:
+ return "gnu-long-link-path";
+ case 28:
+ case 30:
+ return "gnu-long-path";
+ }
+ return null;
+ }
+ function toTypeflag(flag) {
+ switch (flag) {
+ case "file":
+ return 0;
+ case "link":
+ return 1;
+ case "symlink":
+ return 2;
+ case "character-device":
+ return 3;
+ case "block-device":
+ return 4;
+ case "directory":
+ return 5;
+ case "fifo":
+ return 6;
+ case "contiguous-file":
+ return 7;
+ case "pax-header":
+ return 72;
+ }
+ return 0;
+ }
+ function indexOf(block, num, offset, end) {
+ for (;offset < end; offset++) {
+ if (block[offset] === num)
+ return offset;
+ }
+ return end;
+ }
+ function cksum(block) {
+ let sum = 8 * 32;
+ for (let i = 0;i < 148; i++)
+ sum += block[i];
+ for (let j = 156;j < 512; j++)
+ sum += block[j];
+ return sum;
+ }
+ function encodeOct(val, n) {
+ val = val.toString(8);
+ if (val.length > n)
+ return SEVENS.slice(0, n) + " ";
+ return ZEROS.slice(0, n - val.length) + val + " ";
+ }
+ function encodeSizeBin(num, buf, off) {
+ buf[off] = 128;
+ for (let i = 11;i > 0; i--) {
+ buf[off + i] = num & 255;
+ num = Math.floor(num / 256);
+ }
+ }
+ function encodeSize(num, buf, off) {
+ if (num.toString(8).length > 11) {
+ encodeSizeBin(num, buf, off);
+ } else {
+ b4a.write(buf, encodeOct(num, 11), off);
+ }
+ }
+ function parse256(buf) {
+ let positive;
+ if (buf[0] === 128)
+ positive = true;
+ else if (buf[0] === 255)
+ positive = false;
+ else
+ return null;
+ const tuple = [];
+ let i;
+ for (i = buf.length - 1;i > 0; i--) {
+ const byte = buf[i];
+ if (positive)
+ tuple.push(byte);
+ else
+ tuple.push(255 - byte);
+ }
+ let sum = 0;
+ const l = tuple.length;
+ for (i = 0;i < l; i++) {
+ sum += tuple[i] * Math.pow(256, i);
+ }
+ return positive ? sum : -1 * sum;
+ }
+ function decodeOct(val, offset, length) {
+ val = val.subarray(offset, offset + length);
+ offset = 0;
+ if (val[offset] & 128) {
+ return parse256(val);
+ } else {
+ while (offset < val.length && val[offset] === 32)
+ offset++;
+ const end = clamp(indexOf(val, 32, offset, val.length), val.length, val.length);
+ while (offset < end && val[offset] === 0)
+ offset++;
+ if (end === offset)
+ return 0;
+ return parseInt(b4a.toString(val.subarray(offset, end)), 8);
+ }
+ }
+ function decodeStr(val, offset, length, encoding) {
+ return b4a.toString(val.subarray(offset, indexOf(val, 0, offset, offset + length)), encoding);
+ }
+ function addLength(str) {
+ const len = b4a.byteLength(str);
+ let digits = Math.floor(Math.log(len) / Math.log(10)) + 1;
+ if (len + digits >= Math.pow(10, digits))
+ digits++;
+ return len + digits + str;
+ }
+});
+
+// node_modules/tar-stream/extract.js
+var require_extract = __commonJS((exports, module) => {
+ var { Writable, Readable, getStreamError } = require_streamx();
+ var FIFO = require_fast_fifo();
+ var b4a = require_b4a();
+ var headers = require_headers();
+ var EMPTY2 = b4a.alloc(0);
+
+ class BufferList {
+ constructor() {
+ this.buffered = 0;
+ this.shifted = 0;
+ this.queue = new FIFO;
+ this._offset = 0;
+ }
+ push(buffer) {
+ this.buffered += buffer.byteLength;
+ this.queue.push(buffer);
+ }
+ shiftFirst(size) {
+ return this._buffered === 0 ? null : this._next(size);
+ }
+ shift(size) {
+ if (size > this.buffered)
+ return null;
+ if (size === 0)
+ return EMPTY2;
+ let chunk = this._next(size);
+ if (size === chunk.byteLength)
+ return chunk;
+ const chunks = [chunk];
+ while ((size -= chunk.byteLength) > 0) {
+ chunk = this._next(size);
+ chunks.push(chunk);
+ }
+ return b4a.concat(chunks);
+ }
+ _next(size) {
+ const buf = this.queue.peek();
+ const rem = buf.byteLength - this._offset;
+ if (size >= rem) {
+ const sub = this._offset ? buf.subarray(this._offset, buf.byteLength) : buf;
+ this.queue.shift();
+ this._offset = 0;
+ this.buffered -= rem;
+ this.shifted += rem;
+ return sub;
+ }
+ this.buffered -= size;
+ this.shifted += size;
+ return buf.subarray(this._offset, this._offset += size);
+ }
+ }
+
+ class Source extends Readable {
+ constructor(self2, header, offset) {
+ super();
+ this.header = header;
+ this.offset = offset;
+ this._parent = self2;
+ }
+ _read(cb) {
+ if (this.header.size === 0) {
+ this.push(null);
+ }
+ if (this._parent._stream === this) {
+ this._parent._update();
+ }
+ cb(null);
+ }
+ _predestroy() {
+ this._parent.destroy(getStreamError(this));
+ }
+ _detach() {
+ if (this._parent._stream === this) {
+ this._parent._stream = null;
+ this._parent._missing = overflow(this.header.size);
+ this._parent._update();
+ }
+ }
+ _destroy(cb) {
+ this._detach();
+ cb(null);
+ }
+ }
+
+ class Extract extends Writable {
+ constructor(opts) {
+ super(opts);
+ if (!opts)
+ opts = {};
+ this._buffer = new BufferList;
+ this._offset = 0;
+ this._header = null;
+ this._stream = null;
+ this._missing = 0;
+ this._longHeader = false;
+ this._callback = noop;
+ this._locked = false;
+ this._finished = false;
+ this._pax = null;
+ this._paxGlobal = null;
+ this._gnuLongPath = null;
+ this._gnuLongLinkPath = null;
+ this._filenameEncoding = opts.filenameEncoding || "utf-8";
+ this._allowUnknownFormat = !!opts.allowUnknownFormat;
+ this._unlockBound = this._unlock.bind(this);
+ }
+ _unlock(err) {
+ this._locked = false;
+ if (err) {
+ this.destroy(err);
+ this._continueWrite(err);
+ return;
+ }
+ this._update();
+ }
+ _consumeHeader() {
+ if (this._locked)
+ return false;
+ this._offset = this._buffer.shifted;
+ try {
+ this._header = headers.decode(this._buffer.shift(512), this._filenameEncoding, this._allowUnknownFormat);
+ } catch (err) {
+ this._continueWrite(err);
+ return false;
+ }
+ if (!this._header)
+ return true;
+ switch (this._header.type) {
+ case "gnu-long-path":
+ case "gnu-long-link-path":
+ case "pax-global-header":
+ case "pax-header":
+ this._longHeader = true;
+ this._missing = this._header.size;
+ return true;
+ }
+ this._locked = true;
+ this._applyLongHeaders();
+ if (this._header.size === 0 || this._header.type === "directory") {
+ this.emit("entry", this._header, this._createStream(), this._unlockBound);
+ return true;
+ }
+ this._stream = this._createStream();
+ this._missing = this._header.size;
+ this.emit("entry", this._header, this._stream, this._unlockBound);
+ return true;
+ }
+ _applyLongHeaders() {
+ if (this._gnuLongPath) {
+ this._header.name = this._gnuLongPath;
+ this._gnuLongPath = null;
+ }
+ if (this._gnuLongLinkPath) {
+ this._header.linkname = this._gnuLongLinkPath;
+ this._gnuLongLinkPath = null;
+ }
+ if (this._pax) {
+ if (this._pax.path)
+ this._header.name = this._pax.path;
+ if (this._pax.linkpath)
+ this._header.linkname = this._pax.linkpath;
+ if (this._pax.size)
+ this._header.size = parseInt(this._pax.size, 10);
+ this._header.pax = this._pax;
+ this._pax = null;
+ }
+ }
+ _decodeLongHeader(buf) {
+ switch (this._header.type) {
+ case "gnu-long-path":
+ this._gnuLongPath = headers.decodeLongPath(buf, this._filenameEncoding);
+ break;
+ case "gnu-long-link-path":
+ this._gnuLongLinkPath = headers.decodeLongPath(buf, this._filenameEncoding);
+ break;
+ case "pax-global-header":
+ this._paxGlobal = headers.decodePax(buf);
+ break;
+ case "pax-header":
+ this._pax = this._paxGlobal === null ? headers.decodePax(buf) : Object.assign({}, this._paxGlobal, headers.decodePax(buf));
+ break;
+ }
+ }
+ _consumeLongHeader() {
+ this._longHeader = false;
+ this._missing = overflow(this._header.size);
+ const buf = this._buffer.shift(this._header.size);
+ try {
+ this._decodeLongHeader(buf);
+ } catch (err) {
+ this._continueWrite(err);
+ return false;
+ }
+ return true;
+ }
+ _consumeStream() {
+ const buf = this._buffer.shiftFirst(this._missing);
+ if (buf === null)
+ return false;
+ this._missing -= buf.byteLength;
+ const drained = this._stream.push(buf);
+ if (this._missing === 0) {
+ this._stream.push(null);
+ if (drained)
+ this._stream._detach();
+ return drained && this._locked === false;
+ }
+ return drained;
+ }
+ _createStream() {
+ return new Source(this, this._header, this._offset);
+ }
+ _update() {
+ while (this._buffer.buffered > 0 && !this.destroying) {
+ if (this._missing > 0) {
+ if (this._stream !== null) {
+ if (this._consumeStream() === false)
+ return;
+ continue;
+ }
+ if (this._longHeader === true) {
+ if (this._missing > this._buffer.buffered)
+ break;
+ if (this._consumeLongHeader() === false)
+ return false;
+ continue;
+ }
+ const ignore = this._buffer.shiftFirst(this._missing);
+ if (ignore !== null)
+ this._missing -= ignore.byteLength;
+ continue;
+ }
+ if (this._buffer.buffered < 512)
+ break;
+ if (this._stream !== null || this._consumeHeader() === false)
+ return;
+ }
+ this._continueWrite(null);
+ }
+ _continueWrite(err) {
+ const cb = this._callback;
+ this._callback = noop;
+ cb(err);
+ }
+ _write(data, cb) {
+ this._callback = cb;
+ this._buffer.push(data);
+ this._update();
+ }
+ _final(cb) {
+ this._finished = this._missing === 0 && this._buffer.buffered === 0;
+ cb(this._finished ? null : new Error("Unexpected end of data"));
+ }
+ _predestroy() {
+ this._continueWrite(null);
+ }
+ _destroy(cb) {
+ if (this._stream)
+ this._stream.destroy(getStreamError(this));
+ cb(null);
+ }
+ [Symbol.asyncIterator]() {
+ let error = null;
+ let promiseResolve = null;
+ let promiseReject = null;
+ let entryStream = null;
+ let entryCallback = null;
+ const extract = this;
+ this.on("entry", onentry);
+ this.on("error", (err) => {
+ error = err;
+ });
+ this.on("close", onclose);
+ return {
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ next() {
+ return new Promise(onnext);
+ },
+ return() {
+ return destroy(null);
+ },
+ throw(err) {
+ return destroy(err);
+ }
+ };
+ function consumeCallback(err) {
+ if (!entryCallback)
+ return;
+ const cb = entryCallback;
+ entryCallback = null;
+ cb(err);
+ }
+ function onnext(resolve, reject) {
+ if (error) {
+ return reject(error);
+ }
+ if (entryStream) {
+ resolve({ value: entryStream, done: false });
+ entryStream = null;
+ return;
+ }
+ promiseResolve = resolve;
+ promiseReject = reject;
+ consumeCallback(null);
+ if (extract._finished && promiseResolve) {
+ promiseResolve({ value: undefined, done: true });
+ promiseResolve = promiseReject = null;
+ }
+ }
+ function onentry(header, stream, callback) {
+ entryCallback = callback;
+ stream.on("error", noop);
+ if (promiseResolve) {
+ promiseResolve({ value: stream, done: false });
+ promiseResolve = promiseReject = null;
+ } else {
+ entryStream = stream;
+ }
+ }
+ function onclose() {
+ consumeCallback(error);
+ if (!promiseResolve)
+ return;
+ if (error)
+ promiseReject(error);
+ else
+ promiseResolve({ value: undefined, done: true });
+ promiseResolve = promiseReject = null;
+ }
+ function destroy(err) {
+ extract.destroy(err);
+ consumeCallback(err);
+ return new Promise((resolve, reject) => {
+ if (extract.destroyed)
+ return resolve({ value: undefined, done: true });
+ extract.once("close", function() {
+ if (err)
+ reject(err);
+ else
+ resolve({ value: undefined, done: true });
+ });
+ });
+ }
+ }
+ }
+ module.exports = function extract(opts) {
+ return new Extract(opts);
+ };
+ function noop() {
+ }
+ function overflow(size) {
+ size &= 511;
+ return size && 512 - size;
+ }
+});
+
+// node_modules/tar-stream/constants.js
+var require_constants2 = __commonJS((exports, module) => {
+ var constants = {
+ S_IFMT: 61440,
+ S_IFDIR: 16384,
+ S_IFCHR: 8192,
+ S_IFBLK: 24576,
+ S_IFIFO: 4096,
+ S_IFLNK: 40960
+ };
+ try {
+ module.exports = __require("fs").constants || constants;
+ } catch {
+ module.exports = constants;
+ }
+});
+
+// node_modules/tar-stream/pack.js
+var require_pack = __commonJS((exports, module) => {
+ var { Readable, Writable, getStreamError } = require_streamx();
+ var b4a = require_b4a();
+ var constants = require_constants2();
+ var headers = require_headers();
+ var DMODE = 493;
+ var FMODE = 420;
+ var END_OF_TAR = b4a.alloc(1024);
+
+ class Sink extends Writable {
+ constructor(pack, header, callback) {
+ super({ mapWritable, eagerOpen: true });
+ this.written = 0;
+ this.header = header;
+ this._callback = callback;
+ this._linkname = null;
+ this._isLinkname = header.type === "symlink" && !header.linkname;
+ this._isVoid = header.type !== "file" && header.type !== "contiguous-file";
+ this._finished = false;
+ this._pack = pack;
+ this._openCallback = null;
+ if (this._pack._stream === null)
+ this._pack._stream = this;
+ else
+ this._pack._pending.push(this);
+ }
+ _open(cb) {
+ this._openCallback = cb;
+ if (this._pack._stream === this)
+ this._continueOpen();
+ }
+ _continuePack(err) {
+ if (this._callback === null)
+ return;
+ const callback = this._callback;
+ this._callback = null;
+ callback(err);
+ }
+ _continueOpen() {
+ if (this._pack._stream === null)
+ this._pack._stream = this;
+ const cb = this._openCallback;
+ this._openCallback = null;
+ if (cb === null)
+ return;
+ if (this._pack.destroying)
+ return cb(new Error("pack stream destroyed"));
+ if (this._pack._finalized)
+ return cb(new Error("pack stream is already finalized"));
+ this._pack._stream = this;
+ if (!this._isLinkname) {
+ this._pack._encode(this.header);
+ }
+ if (this._isVoid) {
+ this._finish();
+ this._continuePack(null);
+ }
+ cb(null);
+ }
+ _write(data, cb) {
+ if (this._isLinkname) {
+ this._linkname = this._linkname ? b4a.concat([this._linkname, data]) : data;
+ return cb(null);
+ }
+ if (this._isVoid) {
+ if (data.byteLength > 0) {
+ return cb(new Error("No body allowed for this entry"));
+ }
+ return cb();
+ }
+ this.written += data.byteLength;
+ if (this._pack.push(data))
+ return cb();
+ this._pack._drain = cb;
+ }
+ _finish() {
+ if (this._finished)
+ return;
+ this._finished = true;
+ if (this._isLinkname) {
+ this.header.linkname = this._linkname ? b4a.toString(this._linkname, "utf-8") : "";
+ this._pack._encode(this.header);
+ }
+ overflow(this._pack, this.header.size);
+ this._pack._done(this);
+ }
+ _final(cb) {
+ if (this.written !== this.header.size) {
+ return cb(new Error("Size mismatch"));
+ }
+ this._finish();
+ cb(null);
+ }
+ _getError() {
+ return getStreamError(this) || new Error("tar entry destroyed");
+ }
+ _predestroy() {
+ this._pack.destroy(this._getError());
+ }
+ _destroy(cb) {
+ this._pack._done(this);
+ this._continuePack(this._finished ? null : this._getError());
+ cb();
+ }
+ }
+
+ class Pack extends Readable {
+ constructor(opts) {
+ super(opts);
+ this._drain = noop;
+ this._finalized = false;
+ this._finalizing = false;
+ this._pending = [];
+ this._stream = null;
+ }
+ entry(header, buffer, callback) {
+ if (this._finalized || this.destroying)
+ throw new Error("already finalized or destroyed");
+ if (typeof buffer === "function") {
+ callback = buffer;
+ buffer = null;
+ }
+ if (!callback)
+ callback = noop;
+ if (!header.size || header.type === "symlink")
+ header.size = 0;
+ if (!header.type)
+ header.type = modeToType(header.mode);
+ if (!header.mode)
+ header.mode = header.type === "directory" ? DMODE : FMODE;
+ if (!header.uid)
+ header.uid = 0;
+ if (!header.gid)
+ header.gid = 0;
+ if (!header.mtime)
+ header.mtime = new Date;
+ if (typeof buffer === "string")
+ buffer = b4a.from(buffer);
+ const sink = new Sink(this, header, callback);
+ if (b4a.isBuffer(buffer)) {
+ header.size = buffer.byteLength;
+ sink.write(buffer);
+ sink.end();
+ return sink;
+ }
+ if (sink._isVoid) {
+ return sink;
+ }
+ return sink;
+ }
+ finalize() {
+ if (this._stream || this._pending.length > 0) {
+ this._finalizing = true;
+ return;
+ }
+ if (this._finalized)
+ return;
+ this._finalized = true;
+ this.push(END_OF_TAR);
+ this.push(null);
+ }
+ _done(stream) {
+ if (stream !== this._stream)
+ return;
+ this._stream = null;
+ if (this._finalizing)
+ this.finalize();
+ if (this._pending.length)
+ this._pending.shift()._continueOpen();
+ }
+ _encode(header) {
+ if (!header.pax) {
+ const buf = headers.encode(header);
+ if (buf) {
+ this.push(buf);
+ return;
+ }
+ }
+ this._encodePax(header);
+ }
+ _encodePax(header) {
+ const paxHeader = headers.encodePax({
+ name: header.name,
+ linkname: header.linkname,
+ pax: header.pax
+ });
+ const newHeader = {
+ name: "PaxHeader",
+ mode: header.mode,
+ uid: header.uid,
+ gid: header.gid,
+ size: paxHeader.byteLength,
+ mtime: header.mtime,
+ type: "pax-header",
+ linkname: header.linkname && "PaxHeader",
+ uname: header.uname,
+ gname: header.gname,
+ devmajor: header.devmajor,
+ devminor: header.devminor
+ };
+ this.push(headers.encode(newHeader));
+ this.push(paxHeader);
+ overflow(this, paxHeader.byteLength);
+ newHeader.size = header.size;
+ newHeader.type = header.type;
+ this.push(headers.encode(newHeader));
+ }
+ _doDrain() {
+ const drain = this._drain;
+ this._drain = noop;
+ drain();
+ }
+ _predestroy() {
+ const err = getStreamError(this);
+ if (this._stream)
+ this._stream.destroy(err);
+ while (this._pending.length) {
+ const stream = this._pending.shift();
+ stream.destroy(err);
+ stream._continueOpen();
+ }
+ this._doDrain();
+ }
+ _read(cb) {
+ this._doDrain();
+ cb();
+ }
+ }
+ module.exports = function pack(opts) {
+ return new Pack(opts);
+ };
+ function modeToType(mode) {
+ switch (mode & constants.S_IFMT) {
+ case constants.S_IFBLK:
+ return "block-device";
+ case constants.S_IFCHR:
+ return "character-device";
+ case constants.S_IFDIR:
+ return "directory";
+ case constants.S_IFIFO:
+ return "fifo";
+ case constants.S_IFLNK:
+ return "symlink";
+ }
+ return "file";
+ }
+ function noop() {
+ }
+ function overflow(self2, size) {
+ size &= 511;
+ if (size)
+ self2.push(END_OF_TAR.subarray(0, 512 - size));
+ }
+ function mapWritable(buf) {
+ return b4a.isBuffer(buf) ? buf : b4a.from(buf);
+ }
+});
+
+// node_modules/tar-stream/index.js
+var require_tar_stream = __commonJS((exports) => {
+ exports.extract = require_extract();
+ exports.pack = require_pack();
+});
+
+// node_modules/archiver/lib/plugins/tar.js
+var require_tar = __commonJS((exports, module) => {
+ var zlib = __require("zlib");
+ var engine = require_tar_stream();
+ var util = require_archiver_utils();
+ var Tar = function(options) {
+ if (!(this instanceof Tar)) {
+ return new Tar(options);
+ }
+ options = this.options = util.defaults(options, {
+ gzip: false
+ });
+ if (typeof options.gzipOptions !== "object") {
+ options.gzipOptions = {};
+ }
+ this.supports = {
+ directory: true,
+ symlink: true
+ };
+ this.engine = engine.pack(options);
+ this.compressor = false;
+ if (options.gzip) {
+ this.compressor = zlib.createGzip(options.gzipOptions);
+ this.compressor.on("error", this._onCompressorError.bind(this));
+ }
+ };
+ Tar.prototype._onCompressorError = function(err) {
+ this.engine.emit("error", err);
+ };
+ Tar.prototype.append = function(source, data, callback) {
+ var self2 = this;
+ data.mtime = data.date;
+ function append(err, sourceBuffer) {
+ if (err) {
+ callback(err);
+ return;
+ }
+ self2.engine.entry(data, sourceBuffer, function(err2) {
+ callback(err2, data);
+ });
+ }
+ if (data.sourceType === "buffer") {
+ append(null, source);
+ } else if (data.sourceType === "stream" && data.stats) {
+ data.size = data.stats.size;
+ var entry = self2.engine.entry(data, function(err) {
+ callback(err, data);
+ });
+ source.pipe(entry);
+ } else if (data.sourceType === "stream") {
+ util.collectStream(source, append);
+ }
+ };
+ Tar.prototype.finalize = function() {
+ this.engine.finalize();
+ };
+ Tar.prototype.on = function() {
+ return this.engine.on.apply(this.engine, arguments);
+ };
+ Tar.prototype.pipe = function(destination, options) {
+ if (this.compressor) {
+ return this.engine.pipe.apply(this.engine, [this.compressor]).pipe(destination, options);
+ } else {
+ return this.engine.pipe.apply(this.engine, arguments);
+ }
+ };
+ Tar.prototype.unpipe = function() {
+ if (this.compressor) {
+ return this.compressor.unpipe.apply(this.compressor, arguments);
+ } else {
+ return this.engine.unpipe.apply(this.engine, arguments);
+ }
+ };
+ module.exports = Tar;
+});
+
+// node_modules/buffer-crc32/dist/index.cjs
+var require_dist = __commonJS((exports, module) => {
+ function getDefaultExportFromCjs(x) {
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
+ }
+ var CRC_TABLE = new Int32Array([
+ 0,
+ 1996959894,
+ 3993919788,
+ 2567524794,
+ 124634137,
+ 1886057615,
+ 3915621685,
+ 2657392035,
+ 249268274,
+ 2044508324,
+ 3772115230,
+ 2547177864,
+ 162941995,
+ 2125561021,
+ 3887607047,
+ 2428444049,
+ 498536548,
+ 1789927666,
+ 4089016648,
+ 2227061214,
+ 450548861,
+ 1843258603,
+ 4107580753,
+ 2211677639,
+ 325883990,
+ 1684777152,
+ 4251122042,
+ 2321926636,
+ 335633487,
+ 1661365465,
+ 4195302755,
+ 2366115317,
+ 997073096,
+ 1281953886,
+ 3579855332,
+ 2724688242,
+ 1006888145,
+ 1258607687,
+ 3524101629,
+ 2768942443,
+ 901097722,
+ 1119000684,
+ 3686517206,
+ 2898065728,
+ 853044451,
+ 1172266101,
+ 3705015759,
+ 2882616665,
+ 651767980,
+ 1373503546,
+ 3369554304,
+ 3218104598,
+ 565507253,
+ 1454621731,
+ 3485111705,
+ 3099436303,
+ 671266974,
+ 1594198024,
+ 3322730930,
+ 2970347812,
+ 795835527,
+ 1483230225,
+ 3244367275,
+ 3060149565,
+ 1994146192,
+ 31158534,
+ 2563907772,
+ 4023717930,
+ 1907459465,
+ 112637215,
+ 2680153253,
+ 3904427059,
+ 2013776290,
+ 251722036,
+ 2517215374,
+ 3775830040,
+ 2137656763,
+ 141376813,
+ 2439277719,
+ 3865271297,
+ 1802195444,
+ 476864866,
+ 2238001368,
+ 4066508878,
+ 1812370925,
+ 453092731,
+ 2181625025,
+ 4111451223,
+ 1706088902,
+ 314042704,
+ 2344532202,
+ 4240017532,
+ 1658658271,
+ 366619977,
+ 2362670323,
+ 4224994405,
+ 1303535960,
+ 984961486,
+ 2747007092,
+ 3569037538,
+ 1256170817,
+ 1037604311,
+ 2765210733,
+ 3554079995,
+ 1131014506,
+ 879679996,
+ 2909243462,
+ 3663771856,
+ 1141124467,
+ 855842277,
+ 2852801631,
+ 3708648649,
+ 1342533948,
+ 654459306,
+ 3188396048,
+ 3373015174,
+ 1466479909,
+ 544179635,
+ 3110523913,
+ 3462522015,
+ 1591671054,
+ 702138776,
+ 2966460450,
+ 3352799412,
+ 1504918807,
+ 783551873,
+ 3082640443,
+ 3233442989,
+ 3988292384,
+ 2596254646,
+ 62317068,
+ 1957810842,
+ 3939845945,
+ 2647816111,
+ 81470997,
+ 1943803523,
+ 3814918930,
+ 2489596804,
+ 225274430,
+ 2053790376,
+ 3826175755,
+ 2466906013,
+ 167816743,
+ 2097651377,
+ 4027552580,
+ 2265490386,
+ 503444072,
+ 1762050814,
+ 4150417245,
+ 2154129355,
+ 426522225,
+ 1852507879,
+ 4275313526,
+ 2312317920,
+ 282753626,
+ 1742555852,
+ 4189708143,
+ 2394877945,
+ 397917763,
+ 1622183637,
+ 3604390888,
+ 2714866558,
+ 953729732,
+ 1340076626,
+ 3518719985,
+ 2797360999,
+ 1068828381,
+ 1219638859,
+ 3624741850,
+ 2936675148,
+ 906185462,
+ 1090812512,
+ 3747672003,
+ 2825379669,
+ 829329135,
+ 1181335161,
+ 3412177804,
+ 3160834842,
+ 628085408,
+ 1382605366,
+ 3423369109,
+ 3138078467,
+ 570562233,
+ 1426400815,
+ 3317316542,
+ 2998733608,
+ 733239954,
+ 1555261956,
+ 3268935591,
+ 3050360625,
+ 752459403,
+ 1541320221,
+ 2607071920,
+ 3965973030,
+ 1969922972,
+ 40735498,
+ 2617837225,
+ 3943577151,
+ 1913087877,
+ 83908371,
+ 2512341634,
+ 3803740692,
+ 2075208622,
+ 213261112,
+ 2463272603,
+ 3855990285,
+ 2094854071,
+ 198958881,
+ 2262029012,
+ 4057260610,
+ 1759359992,
+ 534414190,
+ 2176718541,
+ 4139329115,
+ 1873836001,
+ 414664567,
+ 2282248934,
+ 4279200368,
+ 1711684554,
+ 285281116,
+ 2405801727,
+ 4167216745,
+ 1634467795,
+ 376229701,
+ 2685067896,
+ 3608007406,
+ 1308918612,
+ 956543938,
+ 2808555105,
+ 3495958263,
+ 1231636301,
+ 1047427035,
+ 2932959818,
+ 3654703836,
+ 1088359270,
+ 936918000,
+ 2847714899,
+ 3736837829,
+ 1202900863,
+ 817233897,
+ 3183342108,
+ 3401237130,
+ 1404277552,
+ 615818150,
+ 3134207493,
+ 3453421203,
+ 1423857449,
+ 601450431,
+ 3009837614,
+ 3294710456,
+ 1567103746,
+ 711928724,
+ 3020668471,
+ 3272380065,
+ 1510334235,
+ 755167117
+ ]);
+ function ensureBuffer(input) {
+ if (Buffer.isBuffer(input)) {
+ return input;
+ }
+ if (typeof input === "number") {
+ return Buffer.alloc(input);
+ } else if (typeof input === "string") {
+ return Buffer.from(input);
+ } else {
+ throw new Error("input must be buffer, number, or string, received " + typeof input);
+ }
+ }
+ function bufferizeInt(num) {
+ const tmp = ensureBuffer(4);
+ tmp.writeInt32BE(num, 0);
+ return tmp;
+ }
+ function _crc32(buf, previous) {
+ buf = ensureBuffer(buf);
+ if (Buffer.isBuffer(previous)) {
+ previous = previous.readUInt32BE(0);
+ }
+ let crc = ~~previous ^ -1;
+ for (var n = 0;n < buf.length; n++) {
+ crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
+ }
+ return crc ^ -1;
+ }
+ function crc32() {
+ return bufferizeInt(_crc32.apply(null, arguments));
+ }
+ crc32.signed = function() {
+ return _crc32.apply(null, arguments);
+ };
+ crc32.unsigned = function() {
+ return _crc32.apply(null, arguments) >>> 0;
+ };
+ var bufferCrc32 = crc32;
+ var index = /* @__PURE__ */ getDefaultExportFromCjs(bufferCrc32);
+ module.exports = index;
+});
+
+// node_modules/archiver/lib/plugins/json.js
+var require_json = __commonJS((exports, module) => {
+ var inherits = __require("util").inherits;
+ var Transform = require_ours().Transform;
+ var crc32 = require_dist();
+ var util = require_archiver_utils();
+ var Json = function(options) {
+ if (!(this instanceof Json)) {
+ return new Json(options);
+ }
+ options = this.options = util.defaults(options, {});
+ Transform.call(this, options);
+ this.supports = {
+ directory: true,
+ symlink: true
+ };
+ this.files = [];
+ };
+ inherits(Json, Transform);
+ Json.prototype._transform = function(chunk, encoding, callback) {
+ callback(null, chunk);
+ };
+ Json.prototype._writeStringified = function() {
+ var fileString = JSON.stringify(this.files);
+ this.write(fileString);
+ };
+ Json.prototype.append = function(source, data, callback) {
+ var self2 = this;
+ data.crc32 = 0;
+ function onend(err, sourceBuffer) {
+ if (err) {
+ callback(err);
+ return;
+ }
+ data.size = sourceBuffer.length || 0;
+ data.crc32 = crc32.unsigned(sourceBuffer);
+ self2.files.push(data);
+ callback(null, data);
+ }
+ if (data.sourceType === "buffer") {
+ onend(null, source);
+ } else if (data.sourceType === "stream") {
+ util.collectStream(source, onend);
+ }
+ };
+ Json.prototype.finalize = function() {
+ this._writeStringified();
+ this.end();
+ };
+ module.exports = Json;
+});
+
+// node_modules/archiver/index.js
+var require_archiver = __commonJS((exports, module) => {
+ var Archiver = require_core();
+ var formats = {};
+ var vending = function(format, options) {
+ return vending.create(format, options);
+ };
+ vending.create = function(format, options) {
+ if (formats[format]) {
+ var instance = new Archiver(format, options);
+ instance.setFormat(format);
+ instance.setModule(new formats[format](options));
+ return instance;
+ } else {
+ throw new Error("create(" + format + "): format not registered");
+ }
+ };
+ vending.registerFormat = function(format, module2) {
+ if (formats[format]) {
+ throw new Error("register(" + format + "): format already registered");
+ }
+ if (typeof module2 !== "function") {
+ throw new Error("register(" + format + "): format module invalid");
+ }
+ if (typeof module2.prototype.append !== "function" || typeof module2.prototype.finalize !== "function") {
+ throw new Error("register(" + format + "): format module missing methods");
+ }
+ formats[format] = module2;
+ };
+ vending.isRegisteredFormat = function(format) {
+ if (formats[format]) {
+ return true;
+ }
+ return false;
+ };
+ vending.registerFormat("zip", require_zip3());
+ vending.registerFormat("tar", require_tar());
+ vending.registerFormat("json", require_json());
+ module.exports = vending;
+});
+
+// ../node_modules/ignore/index.js
+var require_ignore2 = __commonJS((exports, module) => {
+ function makeArray(subject) {
+ return Array.isArray(subject) ? subject : [subject];
+ }
+ var EMPTY2 = "";
+ var SPACE = " ";
+ var ESCAPE = "\\";
+ var REGEX_TEST_BLANK_LINE = /^\s+$/;
+ var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
+ var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
+ var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
+ var REGEX_SPLITALL_CRLF = /\r?\n/g;
+ var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
+ var SLASH = "/";
+ var TMP_KEY_IGNORE = "node-ignore";
+ if (typeof Symbol !== "undefined") {
+ TMP_KEY_IGNORE = Symbol.for("node-ignore");
+ }
+ var KEY_IGNORE = TMP_KEY_IGNORE;
+ var define2 = (object, key2, value) => Object.defineProperty(object, key2, { value });
+ var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
+ var RETURN_FALSE = () => false;
+ var sanitizeRange = (range) => range.replace(REGEX_REGEXP_RANGE, (match, from2, to) => from2.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY2);
+ var cleanRangeBackSlash = (slashes) => {
+ const { length } = slashes;
+ return slashes.slice(0, length - length % 2);
+ };
+ var REPLACERS = [
+ [
+ /^\uFEFF/,
+ () => EMPTY2
+ ],
+ [
+ /((?:\\\\)*?)(\\?\s+)$/,
+ (_3, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY2)
+ ],
+ [
+ /(\\+?)\s/g,
+ (_3, m1) => {
+ const { length } = m1;
+ return m1.slice(0, length - length % 2) + SPACE;
+ }
+ ],
+ [
+ /[\\$.|*+(){^]/g,
+ (match) => `\\${match}`
+ ],
+ [
+ /(?!\\)\?/g,
+ () => "[^/]"
+ ],
+ [
+ /^\//,
+ () => "^"
+ ],
+ [
+ /\//g,
+ () => "\\/"
+ ],
+ [
+ /^\^*\\\*\\\*\\\//,
+ () => "^(?:.*\\/)?"
+ ],
+ [
+ /^(?=[^^])/,
+ function startingReplacer() {
+ return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^";
+ }
+ ],
+ [
+ /\\\/\\\*\\\*(?=\\\/|$)/g,
+ (_3, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
+ ],
+ [
+ /(^|[^\\]+)(\\\*)+(?=.+)/g,
+ (_3, p1, p2) => {
+ const unescaped = p2.replace(/\\\*/g, "[^\\/]*");
+ return p1 + unescaped;
+ }
+ ],
+ [
+ /\\\\\\(?=[$.|*+(){^])/g,
+ () => ESCAPE
+ ],
+ [
+ /\\\\/g,
+ () => ESCAPE
+ ],
+ [
+ /(\\)?\[([^\]/]*?)(\\*)($|\])/g,
+ (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
+ ],
+ [
+ /(?:[^*])$/,
+ (match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)`
+ ],
+ [
+ /(\^|\\\/)?\\\*$/,
+ (_3, p1) => {
+ const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
+ return `${prefix}(?=$|\\/$)`;
+ }
+ ]
+ ];
+ var regexCache = Object.create(null);
+ var makeRegex = (pattern, ignoreCase) => {
+ let source = regexCache[pattern];
+ if (!source) {
+ source = REPLACERS.reduce((prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)), pattern);
+ regexCache[pattern] = source;
+ }
+ return ignoreCase ? new RegExp(source, "i") : new RegExp(source);
+ };
+ var isString = (subject) => typeof subject === "string";
+ var checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
+ var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF);
+
+ class IgnoreRule {
+ constructor(origin, pattern, negative, regex) {
+ this.origin = origin;
+ this.pattern = pattern;
+ this.negative = negative;
+ this.regex = regex;
+ }
+ }
+ var createRule = (pattern, ignoreCase) => {
+ const origin = pattern;
+ let negative = false;
+ if (pattern.indexOf("!") === 0) {
+ negative = true;
+ pattern = pattern.substr(1);
+ }
+ pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
+ const regex = makeRegex(pattern, ignoreCase);
+ return new IgnoreRule(origin, pattern, negative, regex);
+ };
+ var throwError = (message, Ctor) => {
+ throw new Ctor(message);
+ };
+ var checkPath = (path2, originalPath, doThrow) => {
+ if (!isString(path2)) {
+ return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
+ }
+ if (!path2) {
+ return doThrow(`path must not be empty`, TypeError);
+ }
+ if (checkPath.isNotRelative(path2)) {
+ const r = "`path.relative()`d";
+ return doThrow(`path should be a ${r} string, but got "${originalPath}"`, RangeError);
+ }
+ return true;
+ };
+ var isNotRelative = (path2) => REGEX_TEST_INVALID_PATH.test(path2);
+ checkPath.isNotRelative = isNotRelative;
+ checkPath.convert = (p) => p;
+
+ class Ignore {
+ constructor({
+ ignorecase = true,
+ ignoreCase = ignorecase,
+ allowRelativePaths = false
+ } = {}) {
+ define2(this, KEY_IGNORE, true);
+ this._rules = [];
+ this._ignoreCase = ignoreCase;
+ this._allowRelativePaths = allowRelativePaths;
+ this._initCache();
+ }
+ _initCache() {
+ this._ignoreCache = Object.create(null);
+ this._testCache = Object.create(null);
+ }
+ _addPattern(pattern) {
+ if (pattern && pattern[KEY_IGNORE]) {
+ this._rules = this._rules.concat(pattern._rules);
+ this._added = true;
+ return;
+ }
+ if (checkPattern(pattern)) {
+ const rule = createRule(pattern, this._ignoreCase);
+ this._added = true;
+ this._rules.push(rule);
+ }
+ }
+ add(pattern) {
+ this._added = false;
+ makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._addPattern, this);
+ if (this._added) {
+ this._initCache();
+ }
+ return this;
+ }
+ addPattern(pattern) {
+ return this.add(pattern);
+ }
+ _testOne(path2, checkUnignored) {
+ let ignored = false;
+ let unignored = false;
+ this._rules.forEach((rule) => {
+ const { negative } = rule;
+ if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
+ return;
+ }
+ const matched = rule.regex.test(path2);
+ if (matched) {
+ ignored = !negative;
+ unignored = negative;
+ }
+ });
+ return {
+ ignored,
+ unignored
+ };
+ }
+ _test(originalPath, cache, checkUnignored, slices) {
+ const path2 = originalPath && checkPath.convert(originalPath);
+ checkPath(path2, originalPath, this._allowRelativePaths ? RETURN_FALSE : throwError);
+ return this._t(path2, cache, checkUnignored, slices);
+ }
+ _t(path2, cache, checkUnignored, slices) {
+ if (path2 in cache) {
+ return cache[path2];
+ }
+ if (!slices) {
+ slices = path2.split(SLASH);
+ }
+ slices.pop();
+ if (!slices.length) {
+ return cache[path2] = this._testOne(path2, checkUnignored);
+ }
+ const parent = this._t(slices.join(SLASH) + SLASH, cache, checkUnignored, slices);
+ return cache[path2] = parent.ignored ? parent : this._testOne(path2, checkUnignored);
+ }
+ ignores(path2) {
+ return this._test(path2, this._ignoreCache, false).ignored;
+ }
+ createFilter() {
+ return (path2) => !this.ignores(path2);
+ }
+ filter(paths) {
+ return makeArray(paths).filter(this.createFilter());
+ }
+ test(path2) {
+ return this._test(path2, this._testCache, true);
+ }
+ }
+ var factory = (options) => new Ignore(options);
+ var isPathValid = (path2) => checkPath(path2 && checkPath.convert(path2), path2, RETURN_FALSE);
+ factory.isPathValid = isPathValid;
+ factory.default = factory;
+ module.exports = factory;
+ if (typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")) {
+ const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
+ checkPath.convert = makePosix;
+ const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
+ checkPath.isNotRelative = (path2) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path2) || isNotRelative(path2);
+ }
+});
+
+// node_modules/@drizzle-team/brocli/index.js
+var __create2 = Object.create;
+var __defProp2 = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames2 = Object.getOwnPropertyNames;
+var __getProtoOf2 = Object.getPrototypeOf;
+var __hasOwnProp2 = Object.prototype.hasOwnProperty;
+var __commonJS2 = (cb, mod) => function __require() {
+ return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames2(from))
+ if (!__hasOwnProp2.call(to, key) && key !== except)
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, mod));
+var require_clone = __commonJS2({
+ "node_modules/.pnpm/[email protected]/node_modules/clone/clone.js"(exports, module) {
+ var clone2 = function() {
+ function _instanceof(obj, type) {
+ return type != null && obj instanceof type;
+ }
+ var nativeMap;
+ try {
+ nativeMap = Map;
+ } catch (_2) {
+ nativeMap = function() {
+ };
+ }
+ var nativeSet;
+ try {
+ nativeSet = Set;
+ } catch (_2) {
+ nativeSet = function() {
+ };
+ }
+ var nativePromise;
+ try {
+ nativePromise = Promise;
+ } catch (_2) {
+ nativePromise = function() {
+ };
+ }
+ function clone3(parent, circular, depth, prototype, includeNonEnumerable) {
+ if (typeof circular === "object") {
+ depth = circular.depth;
+ prototype = circular.prototype;
+ includeNonEnumerable = circular.includeNonEnumerable;
+ circular = circular.circular;
+ }
+ var allParents = [];
+ var allChildren = [];
+ var useBuffer = typeof Buffer != "undefined";
+ if (typeof circular == "undefined")
+ circular = true;
+ if (typeof depth == "undefined")
+ depth = Infinity;
+ function _clone(parent2, depth2) {
+ if (parent2 === null)
+ return null;
+ if (depth2 === 0)
+ return parent2;
+ var child;
+ var proto;
+ if (typeof parent2 != "object") {
+ return parent2;
+ }
+ if (_instanceof(parent2, nativeMap)) {
+ child = new nativeMap;
+ } else if (_instanceof(parent2, nativeSet)) {
+ child = new nativeSet;
+ } else if (_instanceof(parent2, nativePromise)) {
+ child = new nativePromise(function(resolve, reject) {
+ parent2.then(function(value) {
+ resolve(_clone(value, depth2 - 1));
+ }, function(err) {
+ reject(_clone(err, depth2 - 1));
+ });
+ });
+ } else if (clone3.__isArray(parent2)) {
+ child = [];
+ } else if (clone3.__isRegExp(parent2)) {
+ child = new RegExp(parent2.source, __getRegExpFlags(parent2));
+ if (parent2.lastIndex)
+ child.lastIndex = parent2.lastIndex;
+ } else if (clone3.__isDate(parent2)) {
+ child = new Date(parent2.getTime());
+ } else if (useBuffer && Buffer.isBuffer(parent2)) {
+ if (Buffer.allocUnsafe) {
+ child = Buffer.allocUnsafe(parent2.length);
+ } else {
+ child = new Buffer(parent2.length);
+ }
+ parent2.copy(child);
+ return child;
+ } else if (_instanceof(parent2, Error)) {
+ child = Object.create(parent2);
+ } else {
+ if (typeof prototype == "undefined") {
+ proto = Object.getPrototypeOf(parent2);
+ child = Object.create(proto);
+ } else {
+ child = Object.create(prototype);
+ proto = prototype;
+ }
+ }
+ if (circular) {
+ var index = allParents.indexOf(parent2);
+ if (index != -1) {
+ return allChildren[index];
+ }
+ allParents.push(parent2);
+ allChildren.push(child);
+ }
+ if (_instanceof(parent2, nativeMap)) {
+ parent2.forEach(function(value, key) {
+ var keyChild = _clone(key, depth2 - 1);
+ var valueChild = _clone(value, depth2 - 1);
+ child.set(keyChild, valueChild);
+ });
+ }
+ if (_instanceof(parent2, nativeSet)) {
+ parent2.forEach(function(value) {
+ var entryChild = _clone(value, depth2 - 1);
+ child.add(entryChild);
+ });
+ }
+ for (var i in parent2) {
+ var attrs;
+ if (proto) {
+ attrs = Object.getOwnPropertyDescriptor(proto, i);
+ }
+ if (attrs && attrs.set == null) {
+ continue;
+ }
+ child[i] = _clone(parent2[i], depth2 - 1);
+ }
+ if (Object.getOwnPropertySymbols) {
+ var symbols = Object.getOwnPropertySymbols(parent2);
+ for (var i = 0;i < symbols.length; i++) {
+ var symbol = symbols[i];
+ var descriptor = Object.getOwnPropertyDescriptor(parent2, symbol);
+ if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
+ continue;
+ }
+ child[symbol] = _clone(parent2[symbol], depth2 - 1);
+ if (!descriptor.enumerable) {
+ Object.defineProperty(child, symbol, {
+ enumerable: false
+ });
+ }
+ }
+ }
+ if (includeNonEnumerable) {
+ var allPropertyNames = Object.getOwnPropertyNames(parent2);
+ for (var i = 0;i < allPropertyNames.length; i++) {
+ var propertyName = allPropertyNames[i];
+ var descriptor = Object.getOwnPropertyDescriptor(parent2, propertyName);
+ if (descriptor && descriptor.enumerable) {
+ continue;
+ }
+ child[propertyName] = _clone(parent2[propertyName], depth2 - 1);
+ Object.defineProperty(child, propertyName, {
+ enumerable: false
+ });
+ }
+ }
+ return child;
+ }
+ return _clone(parent, depth);
+ }
+ clone3.clonePrototype = function clonePrototype(parent) {
+ if (parent === null)
+ return null;
+ var c = function() {
+ };
+ c.prototype = parent;
+ return new c;
+ };
+ function __objToStr(o) {
+ return Object.prototype.toString.call(o);
+ }
+ clone3.__objToStr = __objToStr;
+ function __isDate(o) {
+ return typeof o === "object" && __objToStr(o) === "[object Date]";
+ }
+ clone3.__isDate = __isDate;
+ function __isArray(o) {
+ return typeof o === "object" && __objToStr(o) === "[object Array]";
+ }
+ clone3.__isArray = __isArray;
+ function __isRegExp(o) {
+ return typeof o === "object" && __objToStr(o) === "[object RegExp]";
+ }
+ clone3.__isRegExp = __isRegExp;
+ function __getRegExpFlags(re) {
+ var flags = "";
+ if (re.global)
+ flags += "g";
+ if (re.ignoreCase)
+ flags += "i";
+ if (re.multiline)
+ flags += "m";
+ return flags;
+ }
+ clone3.__getRegExpFlags = __getRegExpFlags;
+ return clone3;
+ }();
+ if (typeof module === "object" && module.exports) {
+ module.exports = clone2;
+ }
+ }
+});
+var require_quote = __commonJS2({
+ "node_modules/.pnpm/[email protected]/node_modules/shell-quote/quote.js"(exports, module) {
+ module.exports = function quote(xs) {
+ return xs.map(function(s) {
+ if (s && typeof s === "object") {
+ return s.op.replace(/(.)/g, "\\$1");
+ }
+ if (/["\s]/.test(s) && !/'/.test(s)) {
+ return "'" + s.replace(/(['\\])/g, "\\$1") + "'";
+ }
+ if (/["'\s]/.test(s)) {
+ return '"' + s.replace(/(["\\$`!])/g, "\\$1") + '"';
+ }
+ return String(s).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g, "$1\\$2");
+ }).join(" ");
+ };
+ }
+});
+var require_parse = __commonJS2({
+ "node_modules/.pnpm/[email protected]/node_modules/shell-quote/parse.js"(exports, module) {
+ var CONTROL = "(?:" + [
+ "\\|\\|",
+ "\\&\\&",
+ ";;",
+ "\\|\\&",
+ "\\<\\(",
+ "\\<\\<\\<",
+ ">>",
+ ">\\&",
+ "<\\&",
+ "[&;()|<>]"
+ ].join("|") + ")";
+ var controlRE = new RegExp("^" + CONTROL + "$");
+ var META = "|&;()<> \\t";
+ var SINGLE_QUOTE = '"((\\\\"|[^"])*?)"';
+ var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
+ var hash = /^#$/;
+ var SQ = "'";
+ var DQ = '"';
+ var DS = "$";
+ var TOKEN = "";
+ var mult = 4294967296;
+ for (i = 0;i < 4; i++) {
+ TOKEN += (mult * Math.random()).toString(16);
+ }
+ var i;
+ var startsWithToken = new RegExp("^" + TOKEN);
+ function matchAll(s, r) {
+ var origIndex = r.lastIndex;
+ var matches = [];
+ var matchObj;
+ while (matchObj = r.exec(s)) {
+ matches.push(matchObj);
+ if (r.lastIndex === matchObj.index) {
+ r.lastIndex += 1;
+ }
+ }
+ r.lastIndex = origIndex;
+ return matches;
+ }
+ function getVar(env, pre, key) {
+ var r = typeof env === "function" ? env(key) : env[key];
+ if (typeof r === "undefined" && key != "") {
+ r = "";
+ } else if (typeof r === "undefined") {
+ r = "$";
+ }
+ if (typeof r === "object") {
+ return pre + TOKEN + JSON.stringify(r) + TOKEN;
+ }
+ return pre + r;
+ }
+ function parseInternal(string2, env, opts) {
+ if (!opts) {
+ opts = {};
+ }
+ var BS = opts.escape || "\\";
+ var BAREWORD = "(\\" + BS + `['"` + META + `]|[^\\s'"` + META + "])+";
+ var chunker = new RegExp([
+ "(" + CONTROL + ")",
+ "(" + BAREWORD + "|" + SINGLE_QUOTE + "|" + DOUBLE_QUOTE + ")+"
+ ].join("|"), "g");
+ var matches = matchAll(string2, chunker);
+ if (matches.length === 0) {
+ return [];
+ }
+ if (!env) {
+ env = {};
+ }
+ var commented = false;
+ return matches.map(function(match) {
+ var s = match[0];
+ if (!s || commented) {
+ return;
+ }
+ if (controlRE.test(s)) {
+ return { op: s };
+ }
+ var quote = false;
+ var esc = false;
+ var out = "";
+ var isGlob = false;
+ var i2;
+ function parseEnvVar() {
+ i2 += 1;
+ var varend;
+ var varname;
+ var char = s.charAt(i2);
+ if (char === "{") {
+ i2 += 1;
+ if (s.charAt(i2) === "}") {
+ throw new Error("Bad substitution: " + s.slice(i2 - 2, i2 + 1));
+ }
+ varend = s.indexOf("}", i2);
+ if (varend < 0) {
+ throw new Error("Bad substitution: " + s.slice(i2));
+ }
+ varname = s.slice(i2, varend);
+ i2 = varend;
+ } else if (/[*@#?$!_-]/.test(char)) {
+ varname = char;
+ i2 += 1;
+ } else {
+ var slicedFromI = s.slice(i2);
+ varend = slicedFromI.match(/[^\w\d_]/);
+ if (!varend) {
+ varname = slicedFromI;
+ i2 = s.length;
+ } else {
+ varname = slicedFromI.slice(0, varend.index);
+ i2 += varend.index - 1;
+ }
+ }
+ return getVar(env, "", varname);
+ }
+ for (i2 = 0;i2 < s.length; i2++) {
+ var c = s.charAt(i2);
+ isGlob = isGlob || !quote && (c === "*" || c === "?");
+ if (esc) {
+ out += c;
+ esc = false;
+ } else if (quote) {
+ if (c === quote) {
+ quote = false;
+ } else if (quote == SQ) {
+ out += c;
+ } else {
+ if (c === BS) {
+ i2 += 1;
+ c = s.charAt(i2);
+ if (c === DQ || c === BS || c === DS) {
+ out += c;
+ } else {
+ out += BS + c;
+ }
+ } else if (c === DS) {
+ out += parseEnvVar();
+ } else {
+ out += c;
+ }
+ }
+ } else if (c === DQ || c === SQ) {
+ quote = c;
+ } else if (controlRE.test(c)) {
+ return { op: s };
+ } else if (hash.test(c)) {
+ commented = true;
+ var commentObj = { comment: string2.slice(match.index + i2 + 1) };
+ if (out.length) {
+ return [out, commentObj];
+ }
+ return [commentObj];
+ } else if (c === BS) {
+ esc = true;
+ } else if (c === DS) {
+ out += parseEnvVar();
+ } else {
+ out += c;
+ }
+ }
+ if (isGlob) {
+ return { op: "glob", pattern: out };
+ }
+ return out;
+ }).reduce(function(prev, arg) {
+ return typeof arg === "undefined" ? prev : prev.concat(arg);
+ }, []);
+ }
+ module.exports = function parse(s, env, opts) {
+ var mapped = parseInternal(s, env, opts);
+ if (typeof env !== "function") {
+ return mapped;
+ }
+ return mapped.reduce(function(acc, s2) {
+ if (typeof s2 === "object") {
+ return acc.concat(s2);
+ }
+ var xs = s2.split(RegExp("(" + TOKEN + ".*?" + TOKEN + ")", "g"));
+ if (xs.length === 1) {
+ return acc.concat(xs[0]);
+ }
+ return acc.concat(xs.filter(Boolean).map(function(x) {
+ if (startsWithToken.test(x)) {
+ return JSON.parse(x.split(TOKEN)[1]);
+ }
+ return x;
+ }));
+ }, []);
+ };
+ }
+});
+var require_shell_quote = __commonJS2({
+ "node_modules/.pnpm/[email protected]/node_modules/shell-quote/index.js"(exports) {
+ exports.quote = require_quote();
+ exports.parse = require_parse();
+ }
+});
+var BroCliError = class extends Error {
+ constructor(message, event) {
+ const errPrefix = "BroCli error: ";
+ super(message === undefined ? message : `${errPrefix}${message}`);
+ this.event = event;
+ }
+};
+var import_clone = __toESM2(require_clone(), 1);
+var getOptionTypeText = (option) => {
+ let result = "";
+ switch (option.type) {
+ case "boolean":
+ result = "";
+ break;
+ case "number": {
+ if ((option.minVal ?? option.maxVal) !== undefined) {
+ let text = "";
+ if (option.isInt)
+ text = text + `integer `;
+ if (option.minVal !== undefined)
+ text = text + `[${option.minVal};`;
+ else
+ text = text + `(∞;`;
+ if (option.maxVal !== undefined)
+ text = text + `${option.maxVal}]`;
+ else
+ text = text + `∞)`;
+ result = text;
+ break;
+ }
+ if (option.isInt) {
+ result = "integer";
+ break;
+ }
+ result = "number";
+ break;
+ }
+ case "string": {
+ if (option.enumVals) {
+ result = "[ " + option.enumVals.join(" | ") + " ]";
+ break;
+ }
+ result = "string";
+ break;
+ }
+ case "positional": {
+ result = `${option.isRequired ? "<" : "["}${option.enumVals ? option.enumVals.join("|") : option.name}${option.isRequired ? ">" : "]"}`;
+ break;
+ }
+ }
+ if (option.isRequired && option.type !== "positional")
+ result = "!" + result.length ? " " : "" + result;
+ return result;
+};
+var defaultEventHandler = async (event) => {
+ switch (event.type) {
+ case "command_help": {
+ const command2 = event.command;
+ const commandName = getCommandNameWithParents(command2);
+ const cliName = event.name;
+ const desc = command2.desc ?? command2.shortDesc;
+ const subs = command2.subcommands?.filter((s) => !s.hidden);
+ const subcommands = subs && subs.length ? subs : undefined;
+ const defaultGlobals = [
+ {
+ config: {
+ name: "--help",
+ aliases: ["-h"],
+ type: "boolean",
+ description: `help for ${commandName}`,
+ default: undefined
+ },
+ $output: undefined
+ },
+ {
+ config: {
+ name: "--version",
+ aliases: ["-v"],
+ type: "boolean",
+ description: `version${cliName ? ` for ${cliName}` : ""}`,
+ default: undefined
+ },
+ $output: undefined
+ }
+ ];
+ const globals = event.globals ? [...Object.values(event.globals), ...defaultGlobals] : defaultGlobals;
+ if (desc !== undefined) {
+ console.log(`
+${desc}`);
+ }
+ const opts = Object.values(command2.options ?? {}).filter((opt) => !opt.config.isHidden);
+ const positionals = opts.filter((opt) => opt.config.type === "positional");
+ const options = [...opts.filter((opt) => opt.config.type !== "positional"), ...globals];
+ console.log(`
+Usage:`);
+ if (command2.handler) {
+ console.log(` ${cliName ? cliName + " " : ""}${commandName}${positionals.length ? " " + positionals.map(({ config: p }) => getOptionTypeText(p)).join(" ") : ""} [flags]`);
+ } else
+ console.log(` ${cliName ? cliName + " " : ""}${commandName} [command]`);
+ if (command2.aliases) {
+ console.log(`
+Aliases:`);
+ console.log(` ${[command2.name, ...command2.aliases].join(", ")}`);
+ }
+ if (subcommands) {
+ console.log(`
+Available Commands:`);
+ const padding = 3;
+ const maxLength = subcommands.reduce((p, e) => e.name.length > p ? e.name.length : p, 0);
+ const paddedLength = maxLength + padding;
+ const preDescPad = 2 + paddedLength;
+ const data = subcommands.map((s) => ` ${s.name.padEnd(paddedLength)}${(() => {
+ const description = s.shortDesc ?? s.desc;
+ if (!description?.length)
+ return "";
+ const split = description.split(`
+`);
+ const first = split.shift();
+ const final = [first, ...split.map((s2) => "".padEnd(preDescPad) + s2)].join(`
+`);
+ return final;
+ })()}`).join(`
+`);
+ console.log(data);
+ }
+ if (options.length) {
+ const aliasLength = options.reduce((p, e) => {
+ const currentLength = e.config.aliases.reduce((pa, a) => pa + a.length, 0) + (e.config.aliases.length - 1) * 2 + 1;
+ return currentLength > p ? currentLength : p;
+ }, 0);
+ const paddedAliasLength = aliasLength > 0 ? aliasLength + 1 : 0;
+ const nameLength = options.reduce((p, e) => {
+ const typeLen = getOptionTypeText(e.config).length;
+ const length = typeLen > 0 ? e.config.name.length + 1 + typeLen : e.config.name.length;
+ return length > p ? length : p;
+ }, 0) + 3;
+ const preDescPad = paddedAliasLength + nameLength + 2;
+ const data = options.map(({ config: opt }) => ` ${`${opt.aliases.length ? opt.aliases.join(", ") + "," : ""}`.padEnd(paddedAliasLength)}${`${opt.name}${(() => {
+ const typeText = getOptionTypeText(opt);
+ return typeText.length ? " " + typeText : "";
+ })()}`.padEnd(nameLength)}${(() => {
+ if (!opt.description?.length) {
+ return opt.default !== undefined ? `default: ${JSON.stringify(opt.default)}` : "";
+ }
+ const split = opt.description.split(`
+`);
+ const first = split.shift();
+ const def = opt.default !== undefined ? ` (default: ${JSON.stringify(opt.default)})` : "";
+ const final = [first, ...split.map((s) => "".padEnd(preDescPad) + s)].join(`
+`) + def;
+ return final;
+ })()}`).join(`
+`);
+ console.log(`
+Flags:`);
+ console.log(data);
+ }
+ if (subcommands) {
+ console.log(`
+Use "${cliName ? cliName + " " : ""}${commandName} [command] --help" for more information about a command.
+`);
+ }
+ return true;
+ }
+ case "global_help": {
+ const cliName = event.name;
+ const desc = event.description;
+ const commands = event.commands.filter((c) => !c.hidden);
+ const defaultGlobals = [
+ {
+ config: {
+ name: "--help",
+ aliases: ["-h"],
+ type: "boolean",
+ description: `help${cliName ? ` for ${cliName}` : ""}`,
+ default: undefined
+ },
+ $output: undefined
+ },
+ {
+ config: {
+ name: "--version",
+ aliases: ["-v"],
+ type: "boolean",
+ description: `version${cliName ? ` for ${cliName}` : ""}`,
+ default: undefined
+ },
+ $output: undefined
+ }
+ ];
+ const globals = event.globals ? [...defaultGlobals, ...Object.values(event.globals)] : defaultGlobals;
+ if (desc !== undefined) {
+ console.log(`${desc}
+`);
+ }
+ console.log("Usage:");
+ console.log(` ${cliName ? cliName + " " : ""}[command]`);
+ if (commands.length) {
+ console.log(`
+Available Commands:`);
+ const padding = 3;
+ const maxLength = commands.reduce((p, e) => e.name.length > p ? e.name.length : p, 0);
+ const paddedLength = maxLength + padding;
+ const data = commands.map((c) => ` ${c.name.padEnd(paddedLength)}${(() => {
+ const desc2 = c.shortDesc ?? c.desc;
+ if (!desc2?.length)
+ return "";
+ const split = desc2.split(`
+`);
+ const first = split.shift();
+ const final = [first, ...split.map((s) => "".padEnd(paddedLength + 2) + s)].join(`
+`);
+ return final;
+ })()}`).join(`
+`);
+ console.log(data);
+ } else {
+ console.log(`
+No available commands.`);
+ }
+ const aliasLength = globals.reduce((p, e) => {
+ const currentLength = e.config.aliases.reduce((pa, a) => pa + a.length, 0) + (e.config.aliases.length - 1) * 2 + 1;
+ return currentLength > p ? currentLength : p;
+ }, 0);
+ const paddedAliasLength = aliasLength > 0 ? aliasLength + 1 : 0;
+ const nameLength = globals.reduce((p, e) => {
+ const typeLen = getOptionTypeText(e.config).length;
+ const length = typeLen > 0 ? e.config.name.length + 1 + typeLen : e.config.name.length;
+ return length > p ? length : p;
+ }, 0) + 3;
+ const preDescPad = paddedAliasLength + nameLength + 2;
+ const gData = globals.map(({ config: opt }) => ` ${`${opt.aliases.length ? opt.aliases.join(", ") + "," : ""}`.padEnd(paddedAliasLength)}${`${opt.name}${(() => {
+ const typeText = getOptionTypeText(opt);
+ return typeText.length ? " " + typeText : "";
+ })()}`.padEnd(nameLength)}${(() => {
+ if (!opt.description?.length) {
+ return opt.default !== undefined ? `default: ${JSON.stringify(opt.default)}` : "";
+ }
+ const split = opt.description.split(`
+`);
+ const first = split.shift();
+ const def = opt.default !== undefined ? ` (default: ${JSON.stringify(opt.default)})` : "";
+ const final = [first, ...split.map((s) => "".padEnd(preDescPad) + s)].join(`
+`) + def;
+ return final;
+ })()}`).join(`
+`);
+ console.log(`
+Flags:`);
+ console.log(gData);
+ return true;
+ }
+ case "version": {
+ return true;
+ }
+ case "error": {
+ let msg;
+ switch (event.violation) {
+ case "above_max": {
+ const matchedName = event.offender.namePart;
+ const data = event.offender.dataPart;
+ const option = event.option;
+ const max = option.maxVal;
+ msg = `Invalid value: number type argument '${matchedName}' expects maximal value of ${max} as an input, got: ${data}`;
+ break;
+ }
+ case "below_min": {
+ const matchedName = event.offender.namePart;
+ const data = event.offender.dataPart;
+ const option = event.option;
+ const min = option.minVal;
+ msg = `Invalid value: number type argument '${matchedName}' expects minimal value of ${min} as an input, got: ${data}`;
+ break;
+ }
+ case "expected_int": {
+ const matchedName = event.offender.namePart;
+ const data = event.offender.dataPart;
+ msg = `Invalid value: number type argument '${matchedName}' expects an integer as an input, got: ${data}`;
+ break;
+ }
+ case "invalid_boolean_syntax": {
+ const matchedName = event.offender.namePart;
+ const data = event.offender.dataPart;
+ msg = `Invalid syntax: boolean type argument '${matchedName}' must have it's value passed in the following formats: ${matchedName}=<value> | ${matchedName} <value> | ${matchedName}.
+Allowed values: true, false, 0, 1`;
+ break;
+ }
+ case "invalid_string_syntax": {
+ const matchedName = event.offender.namePart;
+ msg = `Invalid syntax: string type argument '${matchedName}' must have it's value passed in the following formats: ${matchedName}=<value> | ${matchedName} <value>`;
+ break;
+ }
+ case "invalid_number_syntax": {
+ const matchedName = event.offender.namePart;
+ msg = `Invalid syntax: number type argument '${matchedName}' must have it's value passed in the following formats: ${matchedName}=<value> | ${matchedName} <value>`;
+ break;
+ }
+ case "invalid_number_value": {
+ const matchedName = event.offender.namePart;
+ const data = event.offender.dataPart;
+ msg = `Invalid value: number type argument '${matchedName}' expects a number as an input, got: ${data}`;
+ break;
+ }
+ case "enum_violation": {
+ const matchedName = event.offender.namePart;
+ const data = event.offender.dataPart;
+ const option = event.option;
+ const values = option.enumVals;
+ msg = option.type === "positional" ? `Invalid value: value for the positional argument '${option.name}' must be either one of the following: ${values.join(", ")}; Received: ${data}` : `Invalid value: value for the argument '${matchedName}' must be either one of the following: ${values.join(", ")}; Received: ${data}`;
+ break;
+ }
+ case "unknown_command_error": {
+ const msg2 = `Unknown command: '${event.offender}'.
+Type '--help' to get help on the cli.`;
+ console.error(msg2);
+ return true;
+ }
+ case "unknown_subcommand_error": {
+ const cName = getCommandNameWithParents(event.command);
+ const msg2 = `Unknown command: ${cName} ${event.offender}.
+Type '${cName} --help' to get the help on command.`;
+ console.error(msg2);
+ return true;
+ }
+ case "missing_args_error": {
+ const { missing: missingOpts, command: command2 } = event;
+ msg = `Command '${command2.name}' is missing following required options: ${missingOpts.map((opt) => {
+ const name = opt.shift();
+ const aliases = opt;
+ if (aliases.length)
+ return `${name} [${aliases.join(", ")}]`;
+ return name;
+ }).join(", ")}`;
+ break;
+ }
+ case "unrecognized_args_error": {
+ const { command: command2, unrecognized } = event;
+ msg = `Unrecognized options for command '${command2.name}': ${unrecognized.join(", ")}`;
+ break;
+ }
+ case "unknown_error": {
+ const e = event.error;
+ console.error(typeof e === "object" && e !== null && "message" in e ? e.message : e);
+ return true;
+ }
+ }
+ console.error(msg);
+ return true;
+ }
+ }
+ return false;
+};
+var eventHandlerWrapper = (customEventHandler) => async (event) => await customEventHandler(event) ? true : await defaultEventHandler(event);
+var import_shell_quote = __toESM2(require_shell_quote(), 1);
+function isInt(value) {
+ return value === Math.floor(value);
+}
+var executeOrLog = async (target) => typeof target === "string" ? console.log(target) : target ? await target() : undefined;
+var generatePrefix = (name) => name.startsWith("-") ? name : name.length > 1 ? `--${name}` : `-${name}`;
+var validateOptions = (config) => {
+ const cloned = (0, import_clone.default)(config);
+ const entries = [];
+ const storedNames = [];
+ const cfgEntries = Object.entries(cloned);
+ for (const [key, value] of cfgEntries) {
+ const cfg = value._.config;
+ if (cfg.name === undefined)
+ cfg.name = key;
+ if (cfg.type === "positional")
+ continue;
+ if (cfg.name.includes("=")) {
+ throw new BroCliError(`Can't define option '${generatePrefix(cfg.name)}' - option names and aliases cannot contain '='!`);
+ }
+ for (const alias of cfg.aliases) {
+ if (alias.includes("=")) {
+ throw new BroCliError(`Can't define option '${generatePrefix(cfg.name)}' - option names and aliases cannot contain '='!`);
+ }
+ }
+ cfg.name = generatePrefix(cfg.name);
+ cfg.aliases = cfg.aliases.map((a) => generatePrefix(a));
+ }
+ for (const [key, value] of cfgEntries) {
+ const cfg = value._.config;
+ if (cfg.type === "positional") {
+ entries.push([key, { config: cfg, $output: undefined }]);
+ continue;
+ }
+ const reservedNames = ["--help", "-h", "--version", "-v"];
+ const allNames = [cfg.name, ...cfg.aliases];
+ for (const name of allNames) {
+ const match = reservedNames.find((n) => n === name);
+ if (match)
+ throw new BroCliError(`Can't define option '${cfg.name}' - name '${match}' is reserved!`);
+ }
+ for (const storage of storedNames) {
+ const nameOccupier = storage.find((e) => e === cfg.name);
+ if (!nameOccupier)
+ continue;
+ throw new BroCliError(`Can't define option '${cfg.name}' - name is already in use by option '${storage[0]}'!`);
+ }
+ for (const alias of cfg.aliases) {
+ for (const storage of storedNames) {
+ const nameOccupier = storage.find((e) => e === alias);
+ if (!nameOccupier)
+ continue;
+ throw new BroCliError(`Can't define option '${cfg.name}' - alias '${alias}' is already in use by option '${storage[0]}'!`);
+ }
+ }
+ const currentNames = [cfg.name, ...cfg.aliases];
+ storedNames.push(currentNames);
+ currentNames.forEach((name, idx) => {
+ if (currentNames.findIndex((e) => e === name) === idx)
+ return;
+ throw new BroCliError(`Can't define option '${cfg.name}' - duplicate alias '${name}'!`);
+ });
+ entries.push([key, { config: cfg, $output: undefined }]);
+ }
+ return Object.fromEntries(entries);
+};
+var assignParent = (parent, subcommands) => subcommands.forEach((e) => {
+ e.parent = parent;
+ if (e.subcommands)
+ assignParent(e, e.subcommands);
+});
+var command = (command2) => {
+ const allNames = command2.aliases ? [command2.name, ...command2.aliases] : [command2.name];
+ const cmd = (0, import_clone.default)(command2);
+ if (command2.subcommands && command2.options && Object.values(command2.options).find((opt) => opt._.config.type === "positional")) {
+ throw new BroCliError(`Can't define command '${cmd.name}' - command can't have subcommands and positional args at the same time!`);
+ }
+ if (!command2.handler && !command2.subcommands) {
+ throw new BroCliError(`Can't define command '${cmd.name}' - command without subcommands must have a handler present!`);
+ }
+ const processedOptions = command2.options ? validateOptions(command2.options) : undefined;
+ cmd.options = processedOptions;
+ cmd.name = cmd.name ?? cmd.aliases?.shift();
+ if (!cmd.name)
+ throw new BroCliError(`Can't define command without name!`);
+ cmd.aliases = cmd.aliases?.length ? cmd.aliases : undefined;
+ if (cmd.name.startsWith("-")) {
+ throw new BroCliError(`Can't define command '${cmd.name}' - command name can't start with '-'!`);
+ }
+ cmd.aliases?.forEach((a) => {
+ if (a.startsWith("-")) {
+ throw new BroCliError(`Can't define command '${cmd.name}' - command aliases can't start with '-'!`);
+ }
+ });
+ allNames.forEach((n, i) => {
+ if (n === "help") {
+ throw new BroCliError(`Can't define command '${cmd.name}' - 'help' is a reserved name. If you want to redefine help message - do so in runCli's config.`);
+ }
+ const lCaseName = n?.toLowerCase();
+ if (lCaseName === "0" || lCaseName === "1" || lCaseName === "true" || lCaseName === "false") {
+ throw new BroCliError(`Can't define command '${cmd.name}' - '${n}' is a reserved for boolean values name!`);
+ }
+ const idx = allNames.findIndex((an) => an === n);
+ if (idx !== i)
+ throw new BroCliError(`Can't define command '${cmd.name}' - duplicate alias '${n}'!`);
+ });
+ if (cmd.subcommands) {
+ assignParent(cmd, cmd.subcommands);
+ }
+ return cmd;
+};
+var getCommandInner = (commands, candidates, args, cliName, cliDescription) => {
+ const { data: arg, originalIndex: index } = candidates.shift();
+ const command2 = commands.find((c) => {
+ const names = c.aliases ? [c.name, ...c.aliases] : [c.name];
+ const res = names.find((name) => name === arg);
+ return res;
+ });
+ if (!command2) {
+ return {
+ command: command2,
+ args
+ };
+ }
+ const newArgs = removeByIndex(args, index);
+ if (!candidates.length || !command2.subcommands) {
+ return {
+ command: command2,
+ args: newArgs
+ };
+ }
+ const newCandidates = candidates.map((c) => ({ data: c.data, originalIndex: c.originalIndex - 1 }));
+ const subcommand = getCommandInner(command2.subcommands, newCandidates, newArgs, cliName, cliDescription);
+ if (!subcommand.command) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ violation: "unknown_subcommand_error",
+ name: cliName,
+ description: cliDescription,
+ command: command2,
+ offender: candidates[0].data
+ });
+ }
+ return subcommand;
+};
+var getCommand = (commands, args, cliName, cliDescription) => {
+ const candidates = [];
+ for (let i = 0;i < args.length; ++i) {
+ const arg = args[i];
+ if (arg === "--help" || arg === "-h" || arg === "--version" || arg === "-v") {
+ const lCaseNext = args[i + 1]?.toLowerCase();
+ if (lCaseNext === "0" || lCaseNext === "1" || lCaseNext === "true" || lCaseNext === "false")
+ ++i;
+ continue;
+ }
+ if (arg?.startsWith("-")) {
+ if (!arg.includes("="))
+ ++i;
+ continue;
+ }
+ candidates.push({
+ data: arg,
+ originalIndex: i
+ });
+ }
+ if (!candidates.length) {
+ return {
+ command: undefined,
+ args
+ };
+ }
+ const firstCandidate = candidates[0];
+ if (firstCandidate.data === "help") {
+ return {
+ command: "help",
+ args: removeByIndex(args, firstCandidate.originalIndex)
+ };
+ }
+ const { command: command2, args: argsRes } = getCommandInner(commands, candidates, args, cliName, cliDescription);
+ if (!command2) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ violation: "unknown_command_error",
+ commands,
+ name: cliName,
+ description: cliDescription,
+ offender: firstCandidate.data
+ });
+ }
+ return {
+ command: command2,
+ args: argsRes
+ };
+};
+var parseArg = (command2, options, positionals, arg, nextArg, cliName, cliDescription) => {
+ let data = undefined;
+ const argSplit = arg.split("=");
+ const hasEq = arg.includes("=");
+ const namePart = argSplit.shift();
+ const dataPart = hasEq ? argSplit.join("=") : nextArg;
+ let skipNext = !hasEq;
+ if (namePart === "--help" || namePart === "-h") {
+ return {
+ isHelp: true
+ };
+ }
+ if (namePart === "--version" || namePart === "-v") {
+ return {
+ isVersion: true
+ };
+ }
+ if (!arg.startsWith("-")) {
+ if (!positionals.length)
+ return {};
+ const pos = positionals.shift();
+ if (pos[1].enumVals && !pos[1].enumVals.find((val) => val === arg)) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ name: cliName,
+ description: cliDescription,
+ violation: "enum_violation",
+ command: command2,
+ option: pos[1],
+ offender: {
+ dataPart: arg
+ }
+ });
+ }
+ data = arg;
+ return {
+ data,
+ skipNext: false,
+ name: pos[0],
+ option: pos[1]
+ };
+ }
+ const option = options.find(([optKey, opt]) => {
+ const names = [opt.name, ...opt.aliases];
+ if (opt.type === "boolean") {
+ const match = names.find((name) => name === namePart);
+ if (!match)
+ return false;
+ let lcaseData = dataPart?.toLowerCase();
+ if (!hasEq && nextArg?.startsWith("-")) {
+ data = true;
+ skipNext = false;
+ return true;
+ }
+ if (lcaseData === undefined || lcaseData === "" || lcaseData === "true" || lcaseData === "1") {
+ data = true;
+ return true;
+ }
+ if (lcaseData === "false" || lcaseData === "0") {
+ data = false;
+ return true;
+ }
+ if (!hasEq) {
+ data = true;
+ skipNext = false;
+ return true;
+ }
+ throw new BroCliError(undefined, {
+ type: "error",
+ name: cliName,
+ description: cliDescription,
+ violation: "invalid_boolean_syntax",
+ option: opt,
+ command: command2,
+ offender: {
+ namePart,
+ dataPart
+ }
+ });
+ } else {
+ const match = names.find((name) => name === namePart);
+ if (!match)
+ return false;
+ if (opt.type === "string") {
+ if (!hasEq && nextArg === undefined) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ name: cliName,
+ description: cliDescription,
+ violation: "invalid_string_syntax",
+ option: opt,
+ command: command2,
+ offender: {
+ namePart,
+ dataPart
+ }
+ });
+ }
+ if (opt.enumVals && !opt.enumVals.find((val) => val === dataPart)) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ name: cliName,
+ description: cliDescription,
+ violation: "enum_violation",
+ option: opt,
+ command: command2,
+ offender: {
+ namePart,
+ dataPart
+ }
+ });
+ }
+ data = dataPart;
+ return true;
+ }
+ if (!hasEq && nextArg === undefined) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ name: cliName,
+ description: cliDescription,
+ violation: "invalid_number_syntax",
+ option: opt,
+ command: command2,
+ offender: {
+ namePart,
+ dataPart
+ }
+ });
+ }
+ const numData = Number(dataPart);
+ if (isNaN(numData)) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ name: cliName,
+ description: cliDescription,
+ violation: "invalid_number_value",
+ option: opt,
+ command: command2,
+ offender: {
+ namePart,
+ dataPart
+ }
+ });
+ }
+ if (opt.isInt && !isInt(numData)) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ name: cliName,
+ description: cliDescription,
+ violation: "expected_int",
+ option: opt,
+ command: command2,
+ offender: {
+ namePart,
+ dataPart
+ }
+ });
+ }
+ if (opt.minVal !== undefined && numData < opt.minVal) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ name: cliName,
+ description: cliDescription,
+ violation: "below_min",
+ option: opt,
+ command: command2,
+ offender: {
+ namePart,
+ dataPart
+ }
+ });
+ }
+ if (opt.maxVal !== undefined && numData > opt.maxVal) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ name: cliName,
+ description: cliDescription,
+ violation: "above_max",
+ option: opt,
+ command: command2,
+ offender: {
+ namePart,
+ dataPart
+ }
+ });
+ }
+ data = numData;
+ return true;
+ }
+ });
+ return {
+ data,
+ skipNext,
+ name: option?.[0],
+ option: option?.[1]
+ };
+};
+var parseOptions = (command2, args, cliName, cliDescription, omitKeysOfUndefinedOptions) => {
+ const options = command2.options;
+ let noOpts = !options;
+ const optEntries = Object.entries(options ?? {}).map((opt) => [opt[0], opt[1].config]);
+ const nonPositionalEntries = optEntries.filter(([key, opt]) => opt.type !== "positional");
+ const positionalEntries = optEntries.filter(([key, opt]) => opt.type === "positional");
+ const result = {};
+ const missingRequiredArr = [];
+ const unrecognizedArgsArr = [];
+ for (let i = 0;i < args.length; ++i) {
+ const arg = args[i];
+ const nextArg = args[i + 1];
+ const {
+ data,
+ name,
+ option,
+ skipNext,
+ isHelp,
+ isVersion
+ } = parseArg(command2, nonPositionalEntries, positionalEntries, arg, nextArg, cliName, cliDescription);
+ if (!option)
+ unrecognizedArgsArr.push(arg.split("=")[0]);
+ if (skipNext)
+ ++i;
+ if (isHelp)
+ return "help";
+ if (isVersion)
+ return "version";
+ result[name] = data;
+ }
+ for (const [optKey, option] of optEntries) {
+ const data = result[optKey] ?? option.default;
+ if (!omitKeysOfUndefinedOptions) {
+ result[optKey] = data;
+ } else {
+ if (data !== undefined)
+ result[optKey] = data;
+ }
+ if (option.isRequired && result[optKey] === undefined)
+ missingRequiredArr.push([option.name, ...option.aliases]);
+ }
+ if (missingRequiredArr.length) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ violation: "missing_args_error",
+ name: cliName,
+ description: cliDescription,
+ command: command2,
+ missing: missingRequiredArr
+ });
+ }
+ if (unrecognizedArgsArr.length) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ violation: "unrecognized_args_error",
+ name: cliName,
+ description: cliDescription,
+ command: command2,
+ unrecognized: unrecognizedArgsArr
+ });
+ }
+ return noOpts ? undefined : result;
+};
+var parseGlobals = (command2, globals, args, cliName, cliDescription, omitKeysOfUndefinedOptions) => {
+ if (!globals)
+ return;
+ const optEntries = Object.entries(globals).map((opt) => [opt[0], opt[1].config]);
+ const result = {};
+ const missingRequiredArr = [];
+ for (let i = 0;i < args.length; ++i) {
+ const arg = args[i];
+ const nextArg = args[i + 1];
+ const {
+ data,
+ name,
+ option,
+ skipNext,
+ isHelp,
+ isVersion
+ } = parseArg(command2, optEntries, [], arg, nextArg, cliName, cliDescription);
+ if (skipNext)
+ ++i;
+ if (isHelp)
+ return "help";
+ if (isVersion)
+ return "version";
+ if (!option)
+ continue;
+ delete args[i];
+ if (skipNext)
+ delete args[i - 1];
+ result[name] = data;
+ }
+ for (const [optKey, option] of optEntries) {
+ const data = result[optKey] ?? option.default;
+ if (!omitKeysOfUndefinedOptions) {
+ result[optKey] = data;
+ } else {
+ if (data !== undefined)
+ result[optKey] = data;
+ }
+ if (option.isRequired && result[optKey] === undefined)
+ missingRequiredArr.push([option.name, ...option.aliases]);
+ }
+ if (missingRequiredArr.length) {
+ throw new BroCliError(undefined, {
+ type: "error",
+ violation: "missing_args_error",
+ name: cliName,
+ description: cliDescription,
+ command: command2,
+ missing: missingRequiredArr
+ });
+ }
+ return Object.keys(result).length ? result : undefined;
+};
+var getCommandNameWithParents = (command2) => command2.parent ? `${getCommandNameWithParents(command2.parent)} ${command2.name}` : command2.name;
+var validateCommands = (commands, parent) => {
+ const storedNames = {};
+ for (const cmd of commands) {
+ const storageVals = Object.values(storedNames);
+ for (const storage of storageVals) {
+ const nameOccupier = storage.find((e) => e === cmd.name);
+ if (!nameOccupier)
+ continue;
+ throw new BroCliError(`Can't define command '${getCommandNameWithParents(cmd)}': name is already in use by command '${parent ? `${getCommandNameWithParents(parent)} ` : ""}${storage[0]}'!`);
+ }
+ if (cmd.aliases) {
+ for (const alias of cmd.aliases) {
+ for (const storage of storageVals) {
+ const nameOccupier = storage.find((e) => e === alias);
+ if (!nameOccupier)
+ continue;
+ throw new BroCliError(`Can't define command '${getCommandNameWithParents(cmd)}': alias '${alias}' is already in use by command '${parent ? `${getCommandNameWithParents(parent)} ` : ""}${storage[0]}'!`);
+ }
+ }
+ }
+ storedNames[cmd.name] = cmd.aliases ? [cmd.name, ...cmd.aliases] : [cmd.name];
+ if (cmd.subcommands)
+ cmd.subcommands = validateCommands(cmd.subcommands, cmd);
+ }
+ return commands;
+};
+var validateGlobalsInner = (commands, globals) => {
+ for (const c of commands) {
+ const { options } = c;
+ if (!options)
+ continue;
+ for (const { config: opt } of Object.values(options)) {
+ const foundNameOverlap = globals.find(({ config: g }) => g.name === opt.name);
+ if (foundNameOverlap) {
+ throw new BroCliError(`Global options overlap with option '${opt.name}' of command '${getCommandNameWithParents(c)}' on name`);
+ }
+ let foundAliasOverlap = opt.aliases.find((a) => globals.find(({ config: g }) => g.name === a)) ?? globals.find(({ config: g }) => opt.aliases.find((a) => a === g.name));
+ if (!foundAliasOverlap) {
+ for (const { config: g } of globals) {
+ foundAliasOverlap = g.aliases.find((gAlias) => opt.name === gAlias);
+ if (foundAliasOverlap)
+ break;
+ }
+ }
+ if (!foundAliasOverlap) {
+ for (const { config: g } of globals) {
+ foundAliasOverlap = g.aliases.find((gAlias) => opt.aliases.find((a) => a === gAlias));
+ if (foundAliasOverlap)
+ break;
+ }
+ }
+ if (foundAliasOverlap) {
+ throw new BroCliError(`Global options overlap with option '${opt.name}' of command '${getCommandNameWithParents(c)}' on alias '${foundAliasOverlap}'`);
+ }
+ }
+ if (c.subcommands)
+ validateGlobalsInner(c.subcommands, globals);
+ }
+};
+var validateGlobals = (commands, globals) => {
+ if (!globals)
+ return;
+ const globalEntries = Object.values(globals);
+ validateGlobalsInner(commands, globalEntries);
+};
+var removeByIndex = (arr, idx) => [...arr.slice(0, idx), ...arr.slice(idx + 1, arr.length)];
+var run = async (commands, config) => {
+ const eventHandler = config?.theme ? eventHandlerWrapper(config.theme) : defaultEventHandler;
+ const argSource = config?.argSource ?? process.argv;
+ const version = config?.version;
+ const help = config?.help;
+ const omitKeysOfUndefinedOptions = config?.omitKeysOfUndefinedOptions ?? false;
+ const cliName = config?.name;
+ const cliDescription = config?.description;
+ const globals = config?.globals;
+ try {
+ const processedCmds = validateCommands(commands);
+ const processedGlobals = globals ? validateOptions(globals) : undefined;
+ if (processedGlobals)
+ validateGlobals(processedCmds, processedGlobals);
+ let args = argSource.slice(2, argSource.length);
+ if (!args.length) {
+ return help !== undefined ? await executeOrLog(help) : await eventHandler({
+ type: "global_help",
+ description: cliDescription,
+ name: cliName,
+ commands: processedCmds,
+ globals: processedGlobals
+ });
+ }
+ const helpIndex = args.findIndex((arg) => arg === "--help" || arg === "-h");
+ if (helpIndex !== -1 && (helpIndex > 0 ? args[helpIndex - 1]?.startsWith("-") && !args[helpIndex - 1].includes("=") ? false : true : true)) {
+ const command3 = getCommand(processedCmds, args, cliName, cliDescription).command;
+ if (typeof command3 === "object") {
+ return command3.help !== undefined ? await executeOrLog(command3.help) : await eventHandler({
+ type: "command_help",
+ description: cliDescription,
+ name: cliName,
+ command: command3,
+ globals: processedGlobals
+ });
+ } else {
+ return help !== undefined ? await executeOrLog(help) : await eventHandler({
+ type: "global_help",
+ description: cliDescription,
+ name: cliName,
+ commands: processedCmds,
+ globals: processedGlobals
+ });
+ }
+ }
+ const versionIndex = args.findIndex((arg) => arg === "--version" || arg === "-v");
+ if (versionIndex !== -1 && (versionIndex > 0 ? args[versionIndex - 1]?.startsWith("-") ? false : true : true)) {
+ return version !== undefined ? await executeOrLog(version) : await eventHandler({
+ type: "version",
+ name: cliName,
+ description: cliDescription
+ });
+ }
+ const { command: command2, args: newArgs } = getCommand(processedCmds, args, cliName, cliDescription);
+ if (!command2) {
+ return help !== undefined ? await executeOrLog(help) : await eventHandler({
+ type: "global_help",
+ description: cliDescription,
+ name: cliName,
+ commands: processedCmds,
+ globals: processedGlobals
+ });
+ }
+ if (command2 === "help") {
+ let helpCommand;
+ let newestArgs = newArgs;
+ do {
+ const res = getCommand(processedCmds, newestArgs, cliName, cliDescription);
+ helpCommand = res.command;
+ newestArgs = res.args;
+ } while (helpCommand === "help");
+ return helpCommand ? helpCommand.help !== undefined ? await executeOrLog(helpCommand.help) : await eventHandler({
+ type: "command_help",
+ description: cliDescription,
+ name: cliName,
+ command: helpCommand,
+ globals: processedGlobals
+ }) : help !== undefined ? await executeOrLog(help) : await eventHandler({
+ type: "global_help",
+ description: cliDescription,
+ name: cliName,
+ commands: processedCmds,
+ globals: processedGlobals
+ });
+ }
+ const gOptionResult = parseGlobals(command2, processedGlobals, newArgs, cliName, cliDescription, omitKeysOfUndefinedOptions);
+ const optionResult = gOptionResult && (gOptionResult === "help" || gOptionResult === "version") ? gOptionResult : parseOptions(command2, globals ? newArgs.filter((a) => a !== undefined) : newArgs, cliName, cliDescription, omitKeysOfUndefinedOptions);
+ if (optionResult === "help" || gOptionResult === "help") {
+ return command2.help !== undefined ? await executeOrLog(command2.help) : await eventHandler({
+ type: "command_help",
+ description: cliDescription,
+ name: cliName,
+ command: command2,
+ globals: processedGlobals
+ });
+ }
+ if (optionResult === "version" || gOptionResult === "version") {
+ return version !== undefined ? await executeOrLog(version) : await eventHandler({
+ type: "version",
+ name: cliName,
+ description: cliDescription
+ });
+ }
+ if (command2.handler) {
+ if (config?.hook)
+ await config.hook("before", command2, gOptionResult);
+ await command2.handler(command2.transform ? await command2.transform(optionResult) : optionResult);
+ if (config?.hook)
+ await config.hook("after", command2, gOptionResult);
+ return;
+ } else {
+ return command2.help !== undefined ? await executeOrLog(command2.help) : await eventHandler({
+ type: "command_help",
+ description: cliDescription,
+ name: cliName,
+ command: command2,
+ globals: processedGlobals
+ });
+ }
+ } catch (e) {
+ if (e instanceof BroCliError) {
+ if (e.event)
+ await eventHandler(e.event);
+ else {
+ if (!config?.noExit)
+ console.error(e.message);
+ else
+ return e.message;
+ }
+ } else {
+ await eventHandler({
+ type: "error",
+ violation: "unknown_error",
+ name: cliName,
+ description: cliDescription,
+ error: e
+ });
+ }
+ if (!config?.noExit)
+ process.exit(1);
+ return;
+ }
+};
+var OptionBuilderBase = class _OptionBuilderBase {
+ _;
+ config = () => this._.config;
+ constructor(config) {
+ this._ = {
+ config: config ?? {
+ aliases: [],
+ type: "string"
+ },
+ $output: undefined
+ };
+ }
+ string(name) {
+ const config = this.config();
+ return new _OptionBuilderBase({ ...config, type: "string", name });
+ }
+ number(name) {
+ const config = this.config();
+ return new _OptionBuilderBase({ ...config, type: "number", name });
+ }
+ boolean(name) {
+ const config = this.config();
+ return new _OptionBuilderBase({ ...config, type: "boolean", name });
+ }
+ positional(displayName) {
+ const config = this.config();
+ return new _OptionBuilderBase({ ...config, type: "positional", name: displayName });
+ }
+ alias(...aliases) {
+ const config = this.config();
+ return new _OptionBuilderBase({ ...config, aliases });
+ }
+ desc(description) {
+ const config = this.config();
+ return new _OptionBuilderBase({ ...config, description });
+ }
+ hidden() {
+ const config = this.config();
+ return new _OptionBuilderBase({ ...config, isHidden: true });
+ }
+ required() {
+ const config = this.config();
+ return new _OptionBuilderBase({ ...config, isRequired: true });
+ }
+ default(value) {
+ const config = this.config();
+ const enums = config.enumVals;
+ if (enums && !enums.find((v) => value === v)) {
+ throw new Error(`Option enums [ ${enums.join(", ")} ] are incompatible with default value ${value}`);
+ }
+ return new _OptionBuilderBase({ ...config, default: value });
+ }
+ enum(...values) {
+ const config = this.config();
+ const defaultVal = config.default;
+ if (defaultVal !== undefined && !values.find((v) => defaultVal === v)) {
+ throw new Error(`Option enums [ ${values.join(", ")} ] are incompatible with default value ${defaultVal}`);
+ }
+ return new _OptionBuilderBase({ ...config, enumVals: values });
+ }
+ min(value) {
+ const config = this.config();
+ const maxVal = config.maxVal;
+ if (maxVal !== undefined && maxVal < value) {
+ throw new BroCliError("Unable to define option's min value to be higher than max value!");
+ }
+ return new _OptionBuilderBase({ ...config, minVal: value });
+ }
+ max(value) {
+ const config = this.config();
+ const minVal = config.minVal;
+ if (minVal !== undefined && minVal > value) {
+ throw new BroCliError("Unable to define option's max value to be lower than min value!");
+ }
+ return new _OptionBuilderBase({ ...config, maxVal: value });
+ }
+ int() {
+ const config = this.config();
+ return new _OptionBuilderBase({ ...config, isInt: true });
+ }
+};
+function string(name) {
+ return typeof name === "string" ? new OptionBuilderBase().string(name) : new OptionBuilderBase().string();
+}
+function number(name) {
+ return typeof name === "string" ? new OptionBuilderBase().number(name) : new OptionBuilderBase().number();
+}
+function boolean(name) {
+ return typeof name === "string" ? new OptionBuilderBase().boolean(name) : new OptionBuilderBase().boolean();
+}
+
+// src/constants.ts
+var API_BASE_URL = process.env.SC_API_BASE_URL || "https://screenpi.pe";
+
+// src/utils/credentials.ts
+import os from "os";
+import fs from "fs";
+import path from "path";
+
+class Credentials {
+ static configDir = path.join(os.homedir(), ".screenpipe");
+ static configFile = path.join(this.configDir, "config-developer.json");
+ static getApiKey() {
+ try {
+ if (!fs.existsSync(this.configFile)) {
+ return null;
+ }
+ const config = JSON.parse(fs.readFileSync(this.configFile, "utf-8"));
+ return config.apiKey || null;
+ } catch (error) {
+ return null;
+ }
+ }
+ static setApiKey(apiKey, developerId) {
+ if (!fs.existsSync(this.configDir)) {
+ fs.mkdirSync(this.configDir);
+ }
+ fs.writeFileSync(this.configFile, JSON.stringify({
+ apiKey,
+ developerId
+ }, null, 2));
+ }
+ static clearCredentials() {
+ if (fs.existsSync(this.configFile)) {
+ fs.unlinkSync(this.configFile);
+ }
+ }
+}
+
+// node_modules/chalk/source/vendor/ansi-styles/index.js
+var ANSI_BACKGROUND_OFFSET = 10;
+var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
+var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
+var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
+var styles = {
+ modifier: {
+ reset: [0, 0],
+ bold: [1, 22],
+ dim: [2, 22],
+ italic: [3, 23],
+ underline: [4, 24],
+ overline: [53, 55],
+ inverse: [7, 27],
+ hidden: [8, 28],
+ strikethrough: [9, 29]
+ },
+ color: {
+ black: [30, 39],
+ red: [31, 39],
+ green: [32, 39],
+ yellow: [33, 39],
+ blue: [34, 39],
+ magenta: [35, 39],
+ cyan: [36, 39],
+ white: [37, 39],
+ blackBright: [90, 39],
+ gray: [90, 39],
+ grey: [90, 39],
+ redBright: [91, 39],
+ greenBright: [92, 39],
+ yellowBright: [93, 39],
+ blueBright: [94, 39],
+ magentaBright: [95, 39],
+ cyanBright: [96, 39],
+ whiteBright: [97, 39]
+ },
+ bgColor: {
+ bgBlack: [40, 49],
+ bgRed: [41, 49],
+ bgGreen: [42, 49],
+ bgYellow: [43, 49],
+ bgBlue: [44, 49],
+ bgMagenta: [45, 49],
+ bgCyan: [46, 49],
+ bgWhite: [47, 49],
+ bgBlackBright: [100, 49],
+ bgGray: [100, 49],
+ bgGrey: [100, 49],
+ bgRedBright: [101, 49],
+ bgGreenBright: [102, 49],
+ bgYellowBright: [103, 49],
+ bgBlueBright: [104, 49],
+ bgMagentaBright: [105, 49],
+ bgCyanBright: [106, 49],
+ bgWhiteBright: [107, 49]
+ }
+};
+var modifierNames = Object.keys(styles.modifier);
+var foregroundColorNames = Object.keys(styles.color);
+var backgroundColorNames = Object.keys(styles.bgColor);
+var colorNames = [...foregroundColorNames, ...backgroundColorNames];
+function assembleStyles() {
+ const codes = new Map;
+ for (const [groupName, group] of Object.entries(styles)) {
+ for (const [styleName, style] of Object.entries(group)) {
+ styles[styleName] = {
+ open: `\x1B[${style[0]}m`,
+ close: `\x1B[${style[1]}m`
+ };
+ group[styleName] = styles[styleName];
+ codes.set(style[0], style[1]);
+ }
+ Object.defineProperty(styles, groupName, {
+ value: group,
+ enumerable: false
+ });
+ }
+ Object.defineProperty(styles, "codes", {
+ value: codes,
+ enumerable: false
+ });
+ styles.color.close = "\x1B[39m";
+ styles.bgColor.close = "\x1B[49m";
+ styles.color.ansi = wrapAnsi16();
+ styles.color.ansi256 = wrapAnsi256();
+ styles.color.ansi16m = wrapAnsi16m();
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
+ Object.defineProperties(styles, {
+ rgbToAnsi256: {
+ value(red, green, blue) {
+ if (red === green && green === blue) {
+ if (red < 8) {
+ return 16;
+ }
+ if (red > 248) {
+ return 231;
+ }
+ return Math.round((red - 8) / 247 * 24) + 232;
+ }
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
+ },
+ enumerable: false
+ },
+ hexToRgb: {
+ value(hex) {
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
+ if (!matches) {
+ return [0, 0, 0];
+ }
+ let [colorString] = matches;
+ if (colorString.length === 3) {
+ colorString = [...colorString].map((character) => character + character).join("");
+ }
+ const integer = Number.parseInt(colorString, 16);
+ return [
+ integer >> 16 & 255,
+ integer >> 8 & 255,
+ integer & 255
+ ];
+ },
+ enumerable: false
+ },
+ hexToAnsi256: {
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
+ enumerable: false
+ },
+ ansi256ToAnsi: {
+ value(code) {
+ if (code < 8) {
+ return 30 + code;
+ }
+ if (code < 16) {
+ return 90 + (code - 8);
+ }
+ let red;
+ let green;
+ let blue;
+ if (code >= 232) {
+ red = ((code - 232) * 10 + 8) / 255;
+ green = red;
+ blue = red;
+ } else {
+ code -= 16;
+ const remainder = code % 36;
+ red = Math.floor(code / 36) / 5;
+ green = Math.floor(remainder / 6) / 5;
+ blue = remainder % 6 / 5;
+ }
+ const value = Math.max(red, green, blue) * 2;
+ if (value === 0) {
+ return 30;
+ }
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
+ if (value === 2) {
+ result += 60;
+ }
+ return result;
+ },
+ enumerable: false
+ },
+ rgbToAnsi: {
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
+ enumerable: false
+ },
+ hexToAnsi: {
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
+ enumerable: false
+ }
+ });
+ return styles;
+}
+var ansiStyles = assembleStyles();
+var ansi_styles_default = ansiStyles;
+
+// node_modules/chalk/source/vendor/supports-color/index.js
+import process2 from "node:process";
+import os2 from "node:os";
+import tty from "node:tty";
+function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
+ const position = argv.indexOf(prefix + flag);
+ const terminatorPosition = argv.indexOf("--");
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
+}
+var { env } = process2;
+var flagForceColor;
+if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
+ flagForceColor = 0;
+} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
+ flagForceColor = 1;
+}
+function envForceColor() {
+ if ("FORCE_COLOR" in env) {
+ if (env.FORCE_COLOR === "true") {
+ return 1;
+ }
+ if (env.FORCE_COLOR === "false") {
+ return 0;
+ }
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
+ }
+}
+function translateLevel(level) {
+ if (level === 0) {
+ return false;
+ }
+ return {
+ level,
+ hasBasic: true,
+ has256: level >= 2,
+ has16m: level >= 3
+ };
+}
+function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
+ const noFlagForceColor = envForceColor();
+ if (noFlagForceColor !== undefined) {
+ flagForceColor = noFlagForceColor;
+ }
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
+ if (forceColor === 0) {
+ return 0;
+ }
+ if (sniffFlags) {
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
+ return 3;
+ }
+ if (hasFlag("color=256")) {
+ return 2;
+ }
+ }
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
+ return 1;
+ }
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
+ return 0;
+ }
+ const min = forceColor || 0;
+ if (env.TERM === "dumb") {
+ return min;
+ }
+ if (process2.platform === "win32") {
+ const osRelease = os2.release().split(".");
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
+ }
+ return 1;
+ }
+ if ("CI" in env) {
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env))) {
+ return 3;
+ }
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {
+ return 1;
+ }
+ return min;
+ }
+ if ("TEAMCITY_VERSION" in env) {
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
+ }
+ if (env.COLORTERM === "truecolor") {
+ return 3;
+ }
+ if (env.TERM === "xterm-kitty") {
+ return 3;
+ }
+ if ("TERM_PROGRAM" in env) {
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
+ switch (env.TERM_PROGRAM) {
+ case "iTerm.app": {
+ return version >= 3 ? 3 : 2;
+ }
+ case "Apple_Terminal": {
+ return 2;
+ }
+ }
+ }
+ if (/-256(color)?$/i.test(env.TERM)) {
+ return 2;
+ }
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
+ return 1;
+ }
+ if ("COLORTERM" in env) {
+ return 1;
+ }
+ return min;
+}
+function createSupportsColor(stream, options = {}) {
+ const level = _supportsColor(stream, {
+ streamIsTTY: stream && stream.isTTY,
+ ...options
+ });
+ return translateLevel(level);
+}
+var supportsColor = {
+ stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
+ stderr: createSupportsColor({ isTTY: tty.isatty(2) })
+};
+var supports_color_default = supportsColor;
+
+// node_modules/chalk/source/utilities.js
+function stringReplaceAll(string2, substring, replacer) {
+ let index = string2.indexOf(substring);
+ if (index === -1) {
+ return string2;
+ }
+ const substringLength = substring.length;
+ let endIndex = 0;
+ let returnValue = "";
+ do {
+ returnValue += string2.slice(endIndex, index) + substring + replacer;
+ endIndex = index + substringLength;
+ index = string2.indexOf(substring, endIndex);
+ } while (index !== -1);
+ returnValue += string2.slice(endIndex);
+ return returnValue;
+}
+function stringEncaseCRLFWithFirstIndex(string2, prefix, postfix, index) {
+ let endIndex = 0;
+ let returnValue = "";
+ do {
+ const gotCR = string2[index - 1] === "\r";
+ returnValue += string2.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? `\r
+` : `
+`) + postfix;
+ endIndex = index + 1;
+ index = string2.indexOf(`
+`, endIndex);
+ } while (index !== -1);
+ returnValue += string2.slice(endIndex);
+ return returnValue;
+}
+
+// node_modules/chalk/source/index.js
+var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
+var GENERATOR = Symbol("GENERATOR");
+var STYLER = Symbol("STYLER");
+var IS_EMPTY = Symbol("IS_EMPTY");
+var levelMapping = [
+ "ansi",
+ "ansi",
+ "ansi256",
+ "ansi16m"
+];
+var styles2 = Object.create(null);
+var applyOptions = (object, options = {}) => {
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
+ throw new Error("The `level` option should be an integer from 0 to 3");
+ }
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
+ object.level = options.level === undefined ? colorLevel : options.level;
+};
+var chalkFactory = (options) => {
+ const chalk = (...strings) => strings.join(" ");
+ applyOptions(chalk, options);
+ Object.setPrototypeOf(chalk, createChalk.prototype);
+ return chalk;
+};
+function createChalk(options) {
+ return chalkFactory(options);
+}
+Object.setPrototypeOf(createChalk.prototype, Function.prototype);
+for (const [styleName, style] of Object.entries(ansi_styles_default)) {
+ styles2[styleName] = {
+ get() {
+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
+ Object.defineProperty(this, styleName, { value: builder });
+ return builder;
+ }
+ };
+}
+styles2.visible = {
+ get() {
+ const builder = createBuilder(this, this[STYLER], true);
+ Object.defineProperty(this, "visible", { value: builder });
+ return builder;
+ }
+};
+var getModelAnsi = (model, level, type, ...arguments_) => {
+ if (model === "rgb") {
+ if (level === "ansi16m") {
+ return ansi_styles_default[type].ansi16m(...arguments_);
+ }
+ if (level === "ansi256") {
+ return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
+ }
+ return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
+ }
+ if (model === "hex") {
+ return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
+ }
+ return ansi_styles_default[type][model](...arguments_);
+};
+var usedModels = ["rgb", "hex", "ansi256"];
+for (const model of usedModels) {
+ styles2[model] = {
+ get() {
+ const { level } = this;
+ return function(...arguments_) {
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
+ return createBuilder(this, styler, this[IS_EMPTY]);
+ };
+ }
+ };
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
+ styles2[bgModel] = {
+ get() {
+ const { level } = this;
+ return function(...arguments_) {
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
+ return createBuilder(this, styler, this[IS_EMPTY]);
+ };
+ }
+ };
+}
+var proto = Object.defineProperties(() => {
+}, {
+ ...styles2,
+ level: {
+ enumerable: true,
+ get() {
+ return this[GENERATOR].level;
+ },
+ set(level) {
+ this[GENERATOR].level = level;
+ }
+ }
+});
+var createStyler = (open, close, parent) => {
+ let openAll;
+ let closeAll;
+ if (parent === undefined) {
+ openAll = open;
+ closeAll = close;
+ } else {
+ openAll = parent.openAll + open;
+ closeAll = close + parent.closeAll;
+ }
+ return {
+ open,
+ close,
+ openAll,
+ closeAll,
+ parent
+ };
+};
+var createBuilder = (self2, _styler, _isEmpty) => {
+ const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
+ Object.setPrototypeOf(builder, proto);
+ builder[GENERATOR] = self2;
+ builder[STYLER] = _styler;
+ builder[IS_EMPTY] = _isEmpty;
+ return builder;
+};
+var applyStyle = (self2, string2) => {
+ if (self2.level <= 0 || !string2) {
+ return self2[IS_EMPTY] ? "" : string2;
+ }
+ let styler = self2[STYLER];
+ if (styler === undefined) {
+ return string2;
+ }
+ const { openAll, closeAll } = styler;
+ if (string2.includes("\x1B")) {
+ while (styler !== undefined) {
+ string2 = stringReplaceAll(string2, styler.close, styler.open);
+ styler = styler.parent;
+ }
+ }
+ const lfIndex = string2.indexOf(`
+`);
+ if (lfIndex !== -1) {
+ string2 = stringEncaseCRLFWithFirstIndex(string2, closeAll, openAll, lfIndex);
+ }
+ return openAll + string2 + closeAll;
+};
+Object.defineProperties(createChalk.prototype, styles2);
+var chalk = createChalk();
+var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
+var source_default = chalk;
+
+// src/utils/colors.ts
+var colors = {
+ primary: source_default.cyan,
+ success: source_default.green,
+ error: source_default.red,
+ warning: source_default.yellow,
+ info: source_default.blue,
+ dim: source_default.gray,
+ highlight: source_default.magenta,
+ bold: source_default.bold,
+ header: (text) => source_default.bold.cyan(`
+${text}`),
+ subHeader: (text) => source_default.dim(`${text}`),
+ listItem: (text) => source_default.cyan(` * ${text}`),
+ label: (text) => source_default.bold.blue(`${text}:`),
+ value: (text) => source_default.white(`${text}`)
+};
+var symbols = {
+ success: "+",
+ error: "x",
+ warning: "!",
+ info: "i",
+ arrow: ">"
+};
+
+// src/commands/login.ts
+var loginCommand = command({
+ name: "login",
+ options: {
+ apiKey: string().required().desc("API key to login with")
+ },
+ handler: async (opts) => {
+ try {
+ console.log(colors.info(`
+${symbols.info} Validating API key...`));
+ const response = await fetch(`${API_BASE_URL}/api/plugins/dev-status`, {
+ method: "GET",
+ headers: {
+ Authorization: `Bearer ${opts.apiKey}`,
+ "Content-Type": "application/json"
+ }
+ });
+ if (!response.ok) {
+ const error = await response.json();
+ throw new Error(`Failed to validate API key ${error.error}`);
+ }
+ const data = await response.json();
+ if (data.data.needs_name) {
+ const inquirer2 = (await Promise.resolve().then(() => (init_esm14(), exports_esm))).default;
+ const { developerName } = await inquirer2.prompt([
+ {
+ type: "input",
+ name: "developerName",
+ message: "Enter your developer name:",
+ validate: (input) => {
+ if (input.length < 2) {
+ return "Developer name must be at least 2 characters";
+ }
+ if (input.length > 50) {
+ return "Developer name must be less than 50 characters";
+ }
+ return true;
+ }
+ }
+ ]);
+ const updateResponse = await fetch(`${API_BASE_URL}/api/plugins/dev-status`, {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${opts.apiKey}`,
+ "Content-Type": "application/json"
+ },
+ body: JSON.stringify({ developer_name: developerName })
+ });
+ if (!updateResponse.ok) {
+ const error = await updateResponse.json();
+ throw new Error(`Failed to set developer name: ${error.error}`);
+ }
+ const updateData = await updateResponse.json();
+ data.data.developer_name = updateData.data.developer_name;
+ }
+ console.log(colors.success(`
+${symbols.success} Successfully logged in!`));
+ console.log(colors.listItem(`${colors.label("Developer ID")} ${data.data.developer_id}`));
+ console.log(colors.listItem(`${colors.label("Developer Name")} ${data.data.developer_name}`));
+ Credentials.setApiKey(opts.apiKey, data.data.developer_id);
+ } catch (error) {
+ if (error instanceof Error) {
+ console.error(colors.error(`
+${symbols.error} Login failed: ${error.message}`));
+ } else {
+ console.error(colors.error(`
+${symbols.error} Login failed with unexpected error`));
+ }
+ process.exit(1);
+ }
+ }
+});
+// src/commands/logout.ts
+var logoutCommand = command({
+ name: "logout",
+ desc: "End current session",
+ handler: async () => {
+ Credentials.clearCredentials();
+ console.log(colors.success(`
+${symbols.success} Successfully logged out`));
+ console.log(colors.info(`${symbols.info} Thanks for using ScreenPipe! Come back soon.`));
+ }
+});
+// src/commands/publish.ts
+import fs2 from "fs";
+import path2 from "path";
+var import_archiver = __toESM(require_archiver(), 1);
+var import_ignore = __toESM(require_ignore2(), 1);
+import crypto from "crypto";
+var NEXTJS_FILES = {
+ required: ["package.json", ".next"],
+ optional: [
+ "package-lock.json",
+ "bun.lockb",
+ "next.config.js",
+ "next.config.mjs"
+ ]
+};
+var MAX_FILE_SIZE = 500 * 1024 * 1024;
+async function archiveNextJsProject(archive) {
+ const { required, optional } = NEXTJS_FILES;
+ const missingFiles = required.filter((file) => !fs2.existsSync(file));
+ if (missingFiles.length > 0) {
+ throw new Error(`Required files not found: ${missingFiles.join(", ")}. ` + "Make sure you're in the correct directory and the project is built.");
+ }
+ for (const file of required) {
+ if (file === ".next") {
+ archive.directory(".next", ".next", (entry) => {
+ return entry.name.startsWith(".next/cache/") ? false : entry;
+ });
+ } else {
+ archive.file(file, { name: file });
+ }
+ }
+ optional.filter((file) => fs2.existsSync(file)).forEach((file) => {
+ archive.file(file, { name: file });
+ });
+}
+function archiveStandardProject(archive, ig) {
+ archive.glob("**/*", {
+ ignore: [".git/**", "node_modules/**", ".next/cache/**"],
+ dot: true,
+ nodir: false,
+ mark: true
+ });
+}
+var publishCommand = command({
+ name: "publish",
+ desc: "Deploy new pipe (includes pricing for paid)",
+ options: {
+ name: string().required().desc("name of the pipe"),
+ verbose: boolean().desc("enable verbose logging").default(false)
+ },
+ handler: async (opts) => {
+ try {
+ if (opts.verbose) {
+ console.log(colors.dim(`${symbols.arrow} starting publish command...`));
+ }
+ const apiKey = Credentials.getApiKey();
+ if (!apiKey) {
+ console.error(colors.error(`${symbols.error} Not logged in. Please login first using ${colors.highlight("screenpipe login")}`));
+ process.exit(1);
+ }
+ if (opts.verbose) {
+ console.log(colors.dim(`${symbols.arrow} reading package.json...`));
+ }
+ let packageJson;
+ try {
+ packageJson = JSON.parse(fs2.readFileSync("package.json", "utf-8"));
+ } catch (error) {
+ console.error(colors.error(`${symbols.error} Failed to read package.json. Make sure you're in the correct directory.`));
+ process.exit(1);
+ }
+ if (!packageJson.name || !packageJson.version) {
+ console.error(colors.error(`${symbols.error} Package name and version are required in package.json`));
+ process.exit(1);
+ }
+ console.log(colors.info(`
+${symbols.info} Publishing ${colors.highlight(packageJson.name)} v${packageJson.version}...`));
+ console.log(colors.dim(`${symbols.arrow} Creating package archive...`));
+ const zipPath = path2.join(process.cwd(), `${packageJson.name}-${packageJson.version}.zip`);
+ const output = fs2.createWriteStream(zipPath);
+ const archive = import_archiver.default("zip", { zlib: { level: 9 } });
+ const ig = import_ignore.default();
+ if (fs2.existsSync(".gitignore")) {
+ ig.add(fs2.readFileSync(".gitignore").toString());
+ }
+ const isNextProject = fs2.existsSync("next.config.js") || fs2.existsSync("next.config.mjs") || fs2.existsSync("next.config.ts");
+ archive.pipe(output);
+ if (isNextProject) {
+ await archiveNextJsProject(archive);
+ } else {
+ archiveStandardProject(archive, ig);
+ }
+ await new Promise((resolve, reject) => {
+ output.on("close", resolve);
+ archive.on("error", reject);
+ archive.finalize();
+ });
+ if (opts.verbose) {
+ console.log(colors.dim(`${symbols.arrow} detected project type: ${isNextProject ? "nextjs" : "standard"}`));
+ console.log(colors.dim(`${symbols.arrow} starting archive creation...`));
+ }
+ const fileBuffer = fs2.readFileSync(zipPath);
+ const hashSum = crypto.createHash("sha256");
+ hashSum.update(fileBuffer);
+ const fileHash = hashSum.digest("hex");
+ const fileSize = fs2.statSync(zipPath).size;
+ if (fileSize > MAX_FILE_SIZE) {
+ console.error(colors.error(`${symbols.error} Package size (${(fileSize / 1024 / 1024).toFixed(2)}MB) exceeds maximum allowed size (${MAX_FILE_SIZE / 1024 / 1024}MB)`));
+ fs2.unlinkSync(zipPath);
+ process.exit(1);
+ }
+ let description = null;
+ try {
+ const readmeContent = fs2.readFileSync("README.md", "utf-8");
+ if (readmeContent) {
+ description = readmeContent;
+ }
+ } catch (error) {
+ console.log(colors.dim(`${symbols.arrow} No README.md found, required for description`));
+ }
+ if (!description) {
+ console.error(colors.error(`${symbols.error} Description is required`));
+ process.exit(1);
+ }
+ if (opts.verbose) {
+ console.log(colors.dim(`${symbols.arrow} calculating file hash...`));
+ }
+ try {
+ console.log(colors.dim(`${symbols.arrow} Getting upload URL...`));
+ const urlResponse = await fetch(`${API_BASE_URL}/api/plugins/publish`, {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${apiKey}`,
+ "Content-Type": "application/json"
+ },
+ body: JSON.stringify({
+ name: opts.name,
+ version: packageJson.version,
+ fileSize,
+ fileHash,
+ description
+ })
+ });
+ if (!urlResponse.ok) {
+ throw new Error(`Failed to get upload URL: ${await urlResponse.text()}`);
+ }
+ const { uploadUrl, path: path3 } = await urlResponse.json();
+ console.log(colors.dim(`${symbols.arrow} Uploading to storage...`));
+ const uploadResponse = await fetch(uploadUrl, {
+ method: "PUT",
+ headers: {
+ "Content-Type": "application/zip"
+ },
+ body: fileBuffer
+ });
+ if (!uploadResponse.ok) {
+ throw new Error("Failed to upload file to storage");
+ }
+ console.log(colors.dim(`${symbols.arrow} Finalizing upload...`));
+ const finalizeResponse = await fetch(`${API_BASE_URL}/api/plugins/publish/finalize`, {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${apiKey}`,
+ "Content-Type": "application/json"
+ },
+ body: JSON.stringify({
+ name: opts.name,
+ version: packageJson.version,
+ fileHash,
+ storagePath: path3,
+ description,
+ fileSize
+ })
+ });
+ if (!finalizeResponse.ok) {
+ throw new Error(`Failed to finalize upload: ${await finalizeResponse.text()}`);
+ }
+ const data = await finalizeResponse.json();
+ console.log(colors.success(`
+${symbols.success} Successfully published plugin!`));
+ console.log(colors.listItem(`${colors.label("Name")} ${packageJson.name}`));
+ console.log(colors.listItem(`${colors.label("Version")} ${packageJson.version}`));
+ console.log(colors.listItem(`${colors.label("Size")} ${(fileSize / 1024).toFixed(2)} KB`));
+ if (data.message) {
+ console.log(colors.info(`
+${symbols.info} ${data.message}`));
+ }
+ fs2.unlinkSync(zipPath);
+ if (opts.verbose) {
+ console.log(colors.dim(`${symbols.arrow} cleaned up temporary zip file`));
+ }
+ } catch (error) {
+ if (fs2.existsSync(zipPath)) {
+ fs2.unlinkSync(zipPath);
+ if (opts.verbose) {
+ console.log(colors.dim(`${symbols.arrow} cleaned up temporary zip file`));
+ }
+ }
+ if (error instanceof Error) {
+ console.error(colors.error(`
+${symbols.error} Publishing failed: ${error.message}`));
+ }
+ process.exit(1);
+ }
+ } catch (error) {
+ if (error instanceof Error) {
+ console.error(colors.error(`
+${symbols.error} Publishing failed: ${error.message}`));
+ } else {
+ console.error(colors.error(`
+${symbols.error} Publishing failed with unexpected error`));
+ }
+ process.exit(1);
+ }
+ }
+});
+// src/commands/create.ts
+import fs3 from "fs";
+var createCommand = command({
+ name: "create",
+ desc: "Create a new pipe",
+ options: {
+ name: string().required().desc("name of the pipe"),
+ paid: boolean().desc("set this flag to create a paid pipe"),
+ price: number().desc("price in USD (required for paid pipes)"),
+ source: string().desc("source code URL (e.g. GitHub repository)")
+ },
+ transform: (opts) => {
+ if (opts.paid && !opts.price) {
+ throw new Error("Price is required for paid pipes, i.e. --price <amount>");
+ }
+ if (opts.paid && opts.price && opts.price <= 0) {
+ throw new Error("Price must be positive for paid pipes");
+ }
+ return opts;
+ },
+ handler: async (opts) => {
+ try {
+ const apiKey = Credentials.getApiKey();
+ if (!apiKey) {
+ console.error(colors.error(`${symbols.error} Not logged in. Please login first using ${colors.highlight("screenpipe login")}`));
+ process.exit(1);
+ }
+ let packageJson;
+ try {
+ packageJson = JSON.parse(fs3.readFileSync("package.json", "utf-8"));
+ } catch (error) {
+ console.error(colors.error(`${symbols.error} Failed to read package.json. Make sure you're in the correct directory.`));
+ process.exit(1);
+ }
+ const isPaid = opts.paid || false;
+ const price = opts.price;
+ let description = null;
+ try {
+ const readmeContent = fs3.readFileSync("README.md", "utf-8");
+ if (readmeContent) {
+ description = readmeContent;
+ }
+ } catch (error) {
+ console.log(colors.dim(`${symbols.arrow} No README.md found, required for description`));
+ }
+ const response = await fetch(`${API_BASE_URL}/api/plugins/create`, {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${apiKey}`,
+ "Content-Type": "application/json"
+ },
+ body: JSON.stringify({
+ name: opts.name,
+ description,
+ is_paid: isPaid,
+ price: isPaid ? price : null,
+ source_url: opts.source || null
+ })
+ });
+ if (!response.ok) {
+ const errorData = await response.json();
+ throw new Error(errorData.error || "Failed to create plugin");
+ }
+ const data = await response.json();
+ console.log(colors.success(`
+${symbols.success} Successfully created pipe: ${colors.highlight(opts.name)}`));
+ console.log(colors.info(`
+${symbols.info} Plugin Details:`));
+ console.log(colors.listItem(`${colors.label("Name")} ${opts.name}`));
+ console.log(colors.listItem(`${colors.label("Type")} ${isPaid ? `Paid ($${price})` : "Free"}`));
+ if (opts.source) {
+ console.log(colors.listItem(`${colors.label("Source")} ${opts.source}`));
+ }
+ } catch (error) {
+ if (error instanceof Error) {
+ console.error(colors.error(`
+${symbols.error} Creating failed: ${error.message}`));
+ } else {
+ console.error(colors.error(`
+${symbols.error} Creating failed with unexpected error`));
+ }
+ process.exit(1);
+ }
+ }
+});
+// src/commands/list-versions.ts
+var listVersionsCommand = command({
+ name: "list-versions",
+ desc: "List all versions of a pipe",
+ options: {
+ name: string().required().desc("name of the pipe")
+ },
+ handler: async (opts) => {
+ try {
+ const response = await fetch(`${API_BASE_URL}/api/plugins/list-versions`, {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${Credentials.getApiKey()}`,
+ "Content-Type": "application/json"
+ },
+ body: JSON.stringify({
+ name: opts.name
+ })
+ });
+ if (!response.ok) {
+ const error = await response.json();
+ throw new Error(`Failed to list versions ${error.error}`);
+ }
+ const data = await response.json();
+ console.log(colors.header(`Plugin Information`));
+ console.log(colors.listItem(`${colors.label("Name")} ${opts.name}`));
+ console.log(colors.listItem(`${colors.label("ID")} ${data.plugin_id}`));
+ console.log(colors.header("Version History"));
+ data.versions.forEach((version) => {
+ const status = version.status === "published" ? colors.success(version.status) : colors.warning(version.status);
+ console.log(colors.primary(`
+ ${symbols.arrow} Version ${colors.bold(version.version)} ${colors.dim(`(${status})`)}`));
+ console.log(colors.listItem(`${colors.label("Created")} ${new Date(version.created_at).toLocaleString()}`));
+ console.log(colors.listItem(`${colors.label("Size")} ${(version.file_size / 1024).toFixed(2)} KB`));
+ console.log(colors.listItem(`${colors.label("Hash")} ${colors.dim(version.file_hash)}`));
+ if (version.changelog) {
+ console.log(colors.listItem(`${colors.label("Changelog")} ${version.changelog}`));
+ }
+ });
+ } catch (error) {
+ if (error instanceof Error) {
+ console.error(colors.error(`
+${symbols.error} List versions failed: ${error.message}`));
+ } else {
+ console.error(colors.error(`
+${symbols.error} List versions failed with unexpected error`));
+ }
+ process.exit(1);
+ }
+ }
+});
+// src/index.ts
+run([
+ loginCommand,
+ logoutCommand,
+ publishCommand,
+ createCommand,
+ listVersionsCommand
+], {
+ name: "screenpipe-dev",
+ description: "screenpipe development CLI tool"
+});
diff --git a/screenpipe-js/package.json b/screenpipe-js/package.json
new file mode 100644
index 000000000..f2cb9f4e9
--- /dev/null
+++ b/screenpipe-js/package.json
@@ -0,0 +1,32 @@
+{
+ "name": "@screenpipe/dev",
+ "version": "1.1.2",
+ "description": "screenpipe development CLI",
+ "type": "module",
+ "main": "dist/index.js",
+ "bin": {
+ "screenpipe-dev": "./dist/index.js"
+ },
+ "scripts": {
+ "build": "bun build ./src/index.ts --outdir ./dist --target node && chmod +x ./dist/index.js && bun link",
+ "start": "bun run dist/index.js",
+ "dev": "bun run src/index.ts"
+ },
+ "dependencies": {
+ "@drizzle-team/brocli": "^0.11.0",
+ "archiver": "^7.0.1",
+ "chalk": "^5.4.1",
+ "commander": "^11.1.0",
+ "inquirer": "^12.3.2",
+ "simple-git": "^3.27.0"
+ },
+ "devDependencies": {
+ "@types/archiver": "^6.0.3",
+ "@types/node": "^20.11.5",
+ "bun-types": "latest",
+ "typescript": "^5.3.3"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
+}
\ No newline at end of file
diff --git a/screenpipe-js/src/commands/create.ts b/screenpipe-js/src/commands/create.ts
new file mode 100644
index 000000000..321b4f2f6
--- /dev/null
+++ b/screenpipe-js/src/commands/create.ts
@@ -0,0 +1,133 @@
+import fs from "fs";
+import { boolean, command, number, string } from "@drizzle-team/brocli";
+import { Credentials } from "../utils/credentials";
+import { API_BASE_URL } from "../constants";
+import { colors, symbols } from "../utils/colors";
+
+export const createCommand = command({
+ name: "create",
+ desc: "Create a new pipe",
+ options: {
+ name: string().required().desc("name of the pipe"),
+ paid: boolean().desc("set this flag to create a paid pipe"),
+ price: number().desc("price in USD (required for paid pipes)"),
+ source: string().desc("source code URL (e.g. GitHub repository)"),
+ },
+ transform: (opts) => {
+ if (opts.paid && !opts.price) {
+ throw new Error(
+ "Price is required for paid pipes, i.e. --price <amount>"
+ );
+ }
+ if (opts.paid && opts.price && opts.price <= 0) {
+ throw new Error("Price must be positive for paid pipes");
+ }
+ return opts;
+ },
+ handler: async (opts) => {
+ try {
+ const apiKey = Credentials.getApiKey();
+ if (!apiKey) {
+ console.error(
+ colors.error(
+ `${
+ symbols.error
+ } Not logged in. Please login first using ${colors.highlight(
+ "screenpipe login"
+ )}`
+ )
+ );
+ process.exit(1);
+ }
+
+ let packageJson: {
+ description: string;
+ };
+
+ try {
+ packageJson = JSON.parse(fs.readFileSync("package.json", "utf-8"));
+ } catch (error) {
+ console.error(
+ colors.error(
+ `${symbols.error} Failed to read package.json. Make sure you're in the correct directory.`
+ )
+ );
+ process.exit(1);
+ }
+
+ const isPaid = opts.paid || false;
+ const price = opts.price;
+
+ // Read description from README.md
+ let description = null;
+ try {
+ const readmeContent = fs.readFileSync("README.md", "utf-8");
+ if (readmeContent) {
+ description = readmeContent;
+ }
+ } catch (error) {
+ console.log(
+ colors.dim(
+ `${symbols.arrow} No README.md found, required for description`
+ )
+ );
+ }
+
+ const response = await fetch(`${API_BASE_URL}/api/plugins/create`, {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${apiKey}`,
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ name: opts.name,
+ description: description,
+ is_paid: isPaid,
+ price: isPaid ? price : null,
+ source_url: opts.source || null,
+ }),
+ });
+
+ if (!response.ok) {
+ const errorData = await response.json();
+ throw new Error(errorData.error || "Failed to create plugin");
+ }
+
+ const data = await response.json();
+ console.log(
+ colors.success(
+ `\n${symbols.success} Successfully created pipe: ${colors.highlight(
+ opts.name
+ )}`
+ )
+ );
+
+ // Display additional info
+ console.log(colors.info(`\n${symbols.info} Plugin Details:`));
+ console.log(colors.listItem(`${colors.label("Name")} ${opts.name}`));
+ console.log(
+ colors.listItem(
+ `${colors.label("Type")} ${isPaid ? `Paid ($${price})` : "Free"}`
+ )
+ );
+ if (opts.source) {
+ console.log(
+ colors.listItem(`${colors.label("Source")} ${opts.source}`)
+ );
+ }
+ } catch (error) {
+ if (error instanceof Error) {
+ console.error(
+ colors.error(`\n${symbols.error} Creating failed: ${error.message}`)
+ );
+ } else {
+ console.error(
+ colors.error(
+ `\n${symbols.error} Creating failed with unexpected error`
+ )
+ );
+ }
+ process.exit(1);
+ }
+ },
+});
diff --git a/screenpipe-js/src/commands/index.ts b/screenpipe-js/src/commands/index.ts
new file mode 100644
index 000000000..c133f0b45
--- /dev/null
+++ b/screenpipe-js/src/commands/index.ts
@@ -0,0 +1,5 @@
+export { loginCommand } from './login';
+export { logoutCommand } from './logout';
+export { publishCommand } from './publish';
+export { createCommand } from './create';
+export { listVersionsCommand } from './list-versions';
\ No newline at end of file
diff --git a/screenpipe-js/src/commands/list-versions.ts b/screenpipe-js/src/commands/list-versions.ts
new file mode 100644
index 000000000..d8af8ec5c
--- /dev/null
+++ b/screenpipe-js/src/commands/list-versions.ts
@@ -0,0 +1,94 @@
+import { command, string } from "@drizzle-team/brocli";
+import { API_BASE_URL } from "../constants";
+import { Credentials } from "../utils/credentials";
+import { colors, symbols } from "../utils/colors";
+
+export const listVersionsCommand = command({
+ name: "list-versions",
+ desc: "List all versions of a pipe",
+ options: {
+ name: string().required().desc("name of the pipe"),
+ },
+ handler: async (opts) => {
+ try {
+ const response = await fetch(
+ `${API_BASE_URL}/api/plugins/list-versions`,
+ {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${Credentials.getApiKey()}`,
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ name: opts.name,
+ }),
+ }
+ );
+
+ if (!response.ok) {
+ const error = await response.json();
+ throw new Error(`Failed to list versions ${error.error}`);
+ }
+
+ const data = await response.json();
+ console.log(colors.header(`Plugin Information`));
+ console.log(colors.listItem(`${colors.label("Name")} ${opts.name}`));
+ console.log(colors.listItem(`${colors.label("ID")} ${data.plugin_id}`));
+
+ console.log(colors.header("Version History"));
+ data.versions.forEach((version: any) => {
+ const status =
+ version.status === "published"
+ ? colors.success(version.status)
+ : colors.warning(version.status);
+
+ console.log(
+ colors.primary(
+ `\n ${symbols.arrow} Version ${colors.bold(
+ version.version
+ )} ${colors.dim(`(${status})`)}`
+ )
+ );
+ console.log(
+ colors.listItem(
+ `${colors.label("Created")} ${new Date(
+ version.created_at
+ ).toLocaleString()}`
+ )
+ );
+ console.log(
+ colors.listItem(
+ `${colors.label("Size")} ${(version.file_size / 1024).toFixed(
+ 2
+ )} KB`
+ )
+ );
+ console.log(
+ colors.listItem(
+ `${colors.label("Hash")} ${colors.dim(version.file_hash)}`
+ )
+ );
+ if (version.changelog) {
+ console.log(
+ colors.listItem(`${colors.label("Changelog")} ${version.changelog}`)
+ );
+ }
+ });
+ } catch (error) {
+ if (error instanceof Error) {
+ console.error(
+ colors.error(
+ `\n${symbols.error} List versions failed: ${error.message}`
+ )
+ );
+ } else {
+ console.error(
+ colors.error(
+ `\n${symbols.error} List versions failed with unexpected error`
+ )
+ );
+ }
+ process.exit(1);
+ }
+ },
+});
diff --git a/screenpipe-js/src/commands/login.ts b/screenpipe-js/src/commands/login.ts
new file mode 100644
index 000000000..b76f3023c
--- /dev/null
+++ b/screenpipe-js/src/commands/login.ts
@@ -0,0 +1,82 @@
+import { command, string } from "@drizzle-team/brocli";
+import { API_BASE_URL } from "../constants";
+import { Credentials } from "../utils/credentials";
+import { colors, symbols } from "../utils/colors";
+
+export const loginCommand = command({
+ name: "login",
+ options: {
+ apiKey: string().required().desc("API key to login with"),
+ },
+ handler: async (opts) => {
+ try {
+ console.log(colors.info(`\n${symbols.info} Validating API key...`));
+
+ const response = await fetch(`${API_BASE_URL}/api/plugins/dev-status`, {
+ method: "GET",
+ headers: {
+ Authorization: `Bearer ${opts.apiKey}`,
+ "Content-Type": "application/json",
+ },
+ });
+
+ if (!response.ok) {
+ const error = await response.json();
+ throw new Error(`Failed to validate API key ${error.error}`);
+ }
+
+ const data = await response.json();
+
+ if (data.data.needs_name) {
+ const inquirer = (await import('inquirer')).default;
+
+ const { developerName } = await inquirer.prompt([
+ {
+ type: 'input',
+ name: 'developerName',
+ message: 'Enter your developer name:',
+ validate: (input: string) => {
+ if (input.length < 2) {
+ return 'Developer name must be at least 2 characters';
+ }
+ if (input.length > 50) {
+ return 'Developer name must be less than 50 characters';
+ }
+ return true;
+ }
+ }
+ ]);
+
+ const updateResponse = await fetch(`${API_BASE_URL}/api/plugins/dev-status`, {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${opts.apiKey}`,
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({ developer_name: developerName }),
+ });
+
+ if (!updateResponse.ok) {
+ const error = await updateResponse.json();
+ throw new Error(`Failed to set developer name: ${error.error}`);
+ }
+
+ const updateData = await updateResponse.json();
+ data.data.developer_name = updateData.data.developer_name;
+ }
+
+ console.log(colors.success(`\n${symbols.success} Successfully logged in!`));
+ console.log(colors.listItem(`${colors.label('Developer ID')} ${data.data.developer_id}`));
+ console.log(colors.listItem(`${colors.label('Developer Name')} ${data.data.developer_name}`));
+ Credentials.setApiKey(opts.apiKey, data.data.developer_id);
+
+ } catch (error) {
+ if (error instanceof Error) {
+ console.error(colors.error(`\n${symbols.error} Login failed: ${error.message}`));
+ } else {
+ console.error(colors.error(`\n${symbols.error} Login failed with unexpected error`));
+ }
+ process.exit(1);
+ }
+ }
+});
diff --git a/screenpipe-js/src/commands/logout.ts b/screenpipe-js/src/commands/logout.ts
new file mode 100644
index 000000000..28b5e9c05
--- /dev/null
+++ b/screenpipe-js/src/commands/logout.ts
@@ -0,0 +1,13 @@
+import { command } from "@drizzle-team/brocli";
+import { Credentials } from "../utils/credentials";
+import { colors, symbols } from "../utils/colors";
+
+export const logoutCommand = command({
+ name: "logout",
+ desc: "End current session",
+ handler: async () => {
+ Credentials.clearCredentials();
+ console.log(colors.success(`\n${symbols.success} Successfully logged out`));
+ console.log(colors.info(`${symbols.info} Thanks for using ScreenPipe! Come back soon.`));
+ }
+});
diff --git a/screenpipe-js/src/commands/publish.ts b/screenpipe-js/src/commands/publish.ts
new file mode 100644
index 000000000..d949c7442
--- /dev/null
+++ b/screenpipe-js/src/commands/publish.ts
@@ -0,0 +1,356 @@
+import fs from "fs";
+import path from "path";
+import { command, string, boolean } from "@drizzle-team/brocli";
+import { Credentials } from "../utils/credentials";
+import { API_BASE_URL } from "../constants";
+import archiver from "archiver";
+import crypto from "crypto";
+import ignore from "ignore";
+import { colors, symbols } from "../utils/colors";
+
+interface ProjectFiles {
+ required: string[];
+ optional: string[];
+}
+
+const NEXTJS_FILES: ProjectFiles = {
+ required: ["package.json", ".next"],
+ optional: [
+ "package-lock.json",
+ "bun.lockb",
+ "next.config.js",
+ "next.config.mjs",
+ ],
+};
+
+const MAX_FILE_SIZE = 500 * 1024 * 1024; // 500MB limit
+
+async function archiveNextJsProject(archive: archiver.Archiver): Promise<void> {
+ const { required, optional } = NEXTJS_FILES;
+
+ // Verify required files exist
+ const missingFiles = required.filter((file) => !fs.existsSync(file));
+ if (missingFiles.length > 0) {
+ throw new Error(
+ `Required files not found: ${missingFiles.join(", ")}. ` +
+ "Make sure you're in the correct directory and the project is built."
+ );
+ }
+
+ // Archive required files
+ for (const file of required) {
+ if (file === ".next") {
+ archive.directory(".next", ".next", (entry) => {
+ return entry.name.startsWith(".next/cache/") ? false : entry;
+ });
+ } else {
+ archive.file(file, { name: file });
+ }
+ }
+
+ // Archive optional files if they exist
+ optional
+ .filter((file) => fs.existsSync(file))
+ .forEach((file) => {
+ archive.file(file, { name: file });
+ });
+}
+
+function archiveStandardProject(
+ archive: archiver.Archiver,
+ ig: ReturnType<typeof ignore>
+): void {
+ archive.glob("**/*", {
+ ignore: [".git/**", "node_modules/**", ".next/cache/**"],
+ dot: true,
+ nodir: false,
+ mark: true,
+ });
+}
+
+export const publishCommand = command({
+ name: "publish",
+ desc: "Deploy new pipe (includes pricing for paid)",
+ options: {
+ name: string().required().desc("name of the pipe"),
+ verbose: boolean().desc("enable verbose logging").default(false),
+ },
+ handler: async (opts) => {
+ try {
+ if (opts.verbose) {
+ console.log(colors.dim(`${symbols.arrow} starting publish command...`));
+ }
+
+ const apiKey = Credentials.getApiKey();
+ if (!apiKey) {
+ console.error(
+ colors.error(
+ `${
+ symbols.error
+ } Not logged in. Please login first using ${colors.highlight(
+ "screenpipe login"
+ )}`
+ )
+ );
+ process.exit(1);
+ }
+
+ if (opts.verbose) {
+ console.log(colors.dim(`${symbols.arrow} reading package.json...`));
+ }
+ // Read package.json
+ let packageJson: { name: string; version: string };
+ try {
+ packageJson = JSON.parse(fs.readFileSync("package.json", "utf-8"));
+ } catch (error) {
+ console.error(
+ colors.error(
+ `${symbols.error} Failed to read package.json. Make sure you're in the correct directory.`
+ )
+ );
+ process.exit(1);
+ }
+
+ if (!packageJson.name || !packageJson.version) {
+ console.error(
+ colors.error(
+ `${symbols.error} Package name and version are required in package.json`
+ )
+ );
+ process.exit(1);
+ }
+
+ console.log(
+ colors.info(
+ `\n${symbols.info} Publishing ${colors.highlight(
+ packageJson.name
+ )} v${packageJson.version}...`
+ )
+ );
+ console.log(colors.dim(`${symbols.arrow} Creating package archive...`));
+
+ // Create temporary zip file
+ const zipPath = path.join(
+ process.cwd(),
+ `${packageJson.name}-${packageJson.version}.zip`
+ );
+ const output = fs.createWriteStream(zipPath);
+ const archive = archiver("zip", { zlib: { level: 9 } });
+
+ // Setup .gitignore rules
+ const ig = ignore();
+ if (fs.existsSync(".gitignore")) {
+ ig.add(fs.readFileSync(".gitignore").toString());
+ }
+
+ // Check if it's a Next.js project by looking for next.config.js or next.config.mjs
+ const isNextProject =
+ fs.existsSync("next.config.js") ||
+ fs.existsSync("next.config.mjs") ||
+ fs.existsSync("next.config.ts");
+
+ // Create zip file
+ archive.pipe(output);
+
+ if (isNextProject) {
+ await archiveNextJsProject(archive);
+ } else {
+ archiveStandardProject(archive, ig);
+ }
+
+ await new Promise((resolve, reject) => {
+ output.on("close", resolve);
+ archive.on("error", reject);
+ archive.finalize();
+ });
+
+ if (opts.verbose) {
+ console.log(
+ colors.dim(
+ `${symbols.arrow} detected project type: ${
+ isNextProject ? "nextjs" : "standard"
+ }`
+ )
+ );
+ console.log(
+ colors.dim(`${symbols.arrow} starting archive creation...`)
+ );
+ }
+
+ // Calculate file hash
+ const fileBuffer = fs.readFileSync(zipPath);
+ const hashSum = crypto.createHash("sha256");
+ hashSum.update(fileBuffer);
+ const fileHash = hashSum.digest("hex");
+ const fileSize = fs.statSync(zipPath).size;
+
+ if (fileSize > MAX_FILE_SIZE) {
+ console.error(
+ colors.error(
+ `${symbols.error} Package size (${(fileSize / 1024 / 1024).toFixed(
+ 2
+ )}MB) exceeds maximum allowed size (${
+ MAX_FILE_SIZE / 1024 / 1024
+ }MB)`
+ )
+ );
+ fs.unlinkSync(zipPath); // Clean up the zip file
+ process.exit(1);
+ }
+
+ let description = null;
+ try {
+ const readmeContent = fs.readFileSync("README.md", "utf-8");
+ if (readmeContent) {
+ description = readmeContent;
+ }
+ } catch (error) {
+ console.log(
+ colors.dim(
+ `${symbols.arrow} No README.md found, required for description`
+ )
+ );
+ }
+ if (!description) {
+ console.error(colors.error(`${symbols.error} Description is required`));
+ process.exit(1);
+ }
+
+ if (opts.verbose) {
+ console.log(colors.dim(`${symbols.arrow} calculating file hash...`));
+ }
+
+ // Replace the upload section with this:
+ try {
+ // First get the signed URL
+ console.log(colors.dim(`${symbols.arrow} Getting upload URL...`));
+
+ const urlResponse = await fetch(`${API_BASE_URL}/api/plugins/publish`, {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${apiKey}`,
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ name: opts.name,
+ version: packageJson.version,
+ fileSize,
+ fileHash,
+ description,
+ }),
+ });
+
+ if (!urlResponse.ok) {
+ throw new Error(
+ `Failed to get upload URL: ${await urlResponse.text()}`
+ );
+ }
+
+ const { uploadUrl, path } = await urlResponse.json();
+
+ // Upload directly to Supabase
+ console.log(colors.dim(`${symbols.arrow} Uploading to storage...`));
+ const uploadResponse = await fetch(uploadUrl, {
+ method: "PUT",
+ headers: {
+ "Content-Type": "application/zip",
+ },
+ body: fileBuffer,
+ });
+
+ if (!uploadResponse.ok) {
+ throw new Error("Failed to upload file to storage");
+ }
+
+ // Notify server that upload is complete
+ console.log(colors.dim(`${symbols.arrow} Finalizing upload...`));
+ const finalizeResponse = await fetch(
+ `${API_BASE_URL}/api/plugins/publish/finalize`,
+ {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${apiKey}`,
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ name: opts.name,
+ version: packageJson.version,
+ fileHash,
+ storagePath: path,
+ description,
+ fileSize,
+ }),
+ }
+ );
+
+ if (!finalizeResponse.ok) {
+ throw new Error(
+ `Failed to finalize upload: ${await finalizeResponse.text()}`
+ );
+ }
+
+ const data = await finalizeResponse.json();
+
+ // Success messages
+ console.log(
+ colors.success(`\n${symbols.success} Successfully published plugin!`)
+ );
+ console.log(
+ colors.listItem(`${colors.label("Name")} ${packageJson.name}`)
+ );
+ console.log(
+ colors.listItem(`${colors.label("Version")} ${packageJson.version}`)
+ );
+ console.log(
+ colors.listItem(
+ `${colors.label("Size")} ${(fileSize / 1024).toFixed(2)} KB`
+ )
+ );
+
+ if (data.message) {
+ console.log(colors.info(`\n${symbols.info} ${data.message}`));
+ }
+
+ // Cleanup zip file
+ fs.unlinkSync(zipPath);
+ if (opts.verbose) {
+ console.log(
+ colors.dim(`${symbols.arrow} cleaned up temporary zip file`)
+ );
+ }
+ } catch (error) {
+ // Cleanup zip file even if upload failed
+ if (fs.existsSync(zipPath)) {
+ fs.unlinkSync(zipPath);
+ if (opts.verbose) {
+ console.log(
+ colors.dim(`${symbols.arrow} cleaned up temporary zip file`)
+ );
+ }
+ }
+
+ if (error instanceof Error) {
+ console.error(
+ colors.error(
+ `\n${symbols.error} Publishing failed: ${error.message}`
+ )
+ );
+ }
+ process.exit(1);
+ }
+ } catch (error) {
+ if (error instanceof Error) {
+ console.error(
+ colors.error(`\n${symbols.error} Publishing failed: ${error.message}`)
+ );
+ } else {
+ console.error(
+ colors.error(
+ `\n${symbols.error} Publishing failed with unexpected error`
+ )
+ );
+ }
+ process.exit(1);
+ }
+ },
+});
diff --git a/screenpipe-js/src/constants.ts b/screenpipe-js/src/constants.ts
new file mode 100644
index 000000000..9a9436b9f
--- /dev/null
+++ b/screenpipe-js/src/constants.ts
@@ -0,0 +1 @@
+export const API_BASE_URL = process.env.SC_API_BASE_URL || "https://screenpi.pe";
diff --git a/screenpipe-js/src/index.ts b/screenpipe-js/src/index.ts
new file mode 100644
index 000000000..774afdd38
--- /dev/null
+++ b/screenpipe-js/src/index.ts
@@ -0,0 +1,23 @@
+#!/usr/bin/env bun
+import { run } from "@drizzle-team/brocli";
+import {
+ loginCommand,
+ logoutCommand,
+ publishCommand,
+ createCommand,
+ listVersionsCommand,
+} from "./commands";
+
+run(
+ [
+ loginCommand,
+ logoutCommand,
+ publishCommand,
+ createCommand,
+ listVersionsCommand,
+ ],
+ {
+ name: "screenpipe-dev",
+ description: "screenpipe development CLI tool",
+ }
+);
diff --git a/screenpipe-js/src/types.ts b/screenpipe-js/src/types.ts
new file mode 100644
index 000000000..e5ffad2ce
--- /dev/null
+++ b/screenpipe-js/src/types.ts
@@ -0,0 +1,15 @@
+export interface PipeOptions {
+ name?: string;
+ version?: string;
+}
+
+export interface CommandModule {
+ command: string;
+ description: string;
+ action: (...args: any[]) => Promise<void>;
+ options?: Array<{
+ flags: string;
+ description: string;
+ required?: boolean;
+ }>;
+}
\ No newline at end of file
diff --git a/screenpipe-js/src/utils/colors.ts b/screenpipe-js/src/utils/colors.ts
new file mode 100644
index 000000000..a3aa5969a
--- /dev/null
+++ b/screenpipe-js/src/utils/colors.ts
@@ -0,0 +1,25 @@
+import chalk from 'chalk';
+
+export const colors = {
+ primary: chalk.cyan,
+ success: chalk.green,
+ error: chalk.red,
+ warning: chalk.yellow,
+ info: chalk.blue,
+ dim: chalk.gray,
+ highlight: chalk.magenta,
+ bold: chalk.bold,
+ header: (text: string) => chalk.bold.cyan(`\n${text}`),
+ subHeader: (text: string) => chalk.dim(`${text}`),
+ listItem: (text: string) => chalk.cyan(` * ${text}`),
+ label: (text: string) => chalk.bold.blue(`${text}:`),
+ value: (text: string) => chalk.white(`${text}`),
+};
+
+export const symbols = {
+ success: '+',
+ error: 'x',
+ warning: '!',
+ info: 'i',
+ arrow: '>',
+};
\ No newline at end of file
diff --git a/screenpipe-js/src/utils/credentials.ts b/screenpipe-js/src/utils/credentials.ts
new file mode 100644
index 000000000..b600f864e
--- /dev/null
+++ b/screenpipe-js/src/utils/credentials.ts
@@ -0,0 +1,46 @@
+import os from "os";
+import fs from "fs";
+import path from "path";
+
+export class Credentials {
+ private static configDir = path.join(os.homedir(), ".screenpipe");
+ private static configFile = path.join(this.configDir, "config-developer.json");
+
+ static getApiKey(): string | null {
+ try {
+ if (!fs.existsSync(this.configFile)) {
+ return null;
+ }
+ const config = JSON.parse(fs.readFileSync(this.configFile, "utf-8"));
+ return config.apiKey || null;
+ } catch (error) {
+ return null;
+ }
+ }
+
+ static setApiKey(apiKey: string, developerId: string): void {
+ // Create .screenpipe directory if it doesn't exist
+ if (!fs.existsSync(this.configDir)) {
+ fs.mkdirSync(this.configDir);
+ }
+
+ // Save API key to config file
+ fs.writeFileSync(
+ this.configFile,
+ JSON.stringify(
+ {
+ apiKey,
+ developerId,
+ },
+ null,
+ 2
+ )
+ );
+ }
+
+ static clearCredentials(): void {
+ if (fs.existsSync(this.configFile)) {
+ fs.unlinkSync(this.configFile);
+ }
+ }
+}
diff --git a/screenpipe-js/tests/.gitignore b/screenpipe-js/tests/.gitignore
new file mode 100644
index 000000000..9b1ee42e8
--- /dev/null
+++ b/screenpipe-js/tests/.gitignore
@@ -0,0 +1,175 @@
+# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
+
+# Logs
+
+logs
+_.log
+npm-debug.log_
+yarn-debug.log*
+yarn-error.log*
+lerna-debug.log*
+.pnpm-debug.log*
+
+# Caches
+
+.cache
+
+# Diagnostic reports (https://nodejs.org/api/report.html)
+
+report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
+
+# Runtime data
+
+pids
+_.pid
+_.seed
+*.pid.lock
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+
+lib-cov
+
+# Coverage directory used by tools like istanbul
+
+coverage
+*.lcov
+
+# nyc test coverage
+
+.nyc_output
+
+# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
+
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+
+bower_components
+
+# node-waf configuration
+
+.lock-wscript
+
+# Compiled binary addons (https://nodejs.org/api/addons.html)
+
+build/Release
+
+# Dependency directories
+
+node_modules/
+jspm_packages/
+
+# Snowpack dependency directory (https://snowpack.dev/)
+
+web_modules/
+
+# TypeScript cache
+
+*.tsbuildinfo
+
+# Optional npm cache directory
+
+.npm
+
+# Optional eslint cache
+
+.eslintcache
+
+# Optional stylelint cache
+
+.stylelintcache
+
+# Microbundle cache
+
+.rpt2_cache/
+.rts2_cache_cjs/
+.rts2_cache_es/
+.rts2_cache_umd/
+
+# Optional REPL history
+
+.node_repl_history
+
+# Output of 'npm pack'
+
+*.tgz
+
+# Yarn Integrity file
+
+.yarn-integrity
+
+# dotenv environment variable files
+
+.env
+.env.development.local
+.env.test.local
+.env.production.local
+.env.local
+
+# parcel-bundler cache (https://parceljs.org/)
+
+.parcel-cache
+
+# Next.js build output
+
+.next
+out
+
+# Nuxt.js build / generate output
+
+.nuxt
+dist
+
+# Gatsby files
+
+# Comment in the public line in if your project uses Gatsby and not Next.js
+
+# https://nextjs.org/blog/next-9-1#public-directory-support
+
+# public
+
+# vuepress build output
+
+.vuepress/dist
+
+# vuepress v2.x temp and cache directory
+
+.temp
+
+# Docusaurus cache and generated files
+
+.docusaurus
+
+# Serverless directories
+
+.serverless/
+
+# FuseBox cache
+
+.fusebox/
+
+# DynamoDB Local files
+
+.dynamodb/
+
+# TernJS port file
+
+.tern-port
+
+# Stores VSCode versions used for testing VSCode extensions
+
+.vscode-test
+
+# yarn v2
+
+.yarn/cache
+.yarn/unplugged
+.yarn/build-state.yml
+.yarn/install-state.gz
+.pnp.*
+
+# IntelliJ based IDEs
+.idea
+
+# Finder (MacOS) folder config
+.DS_Store
diff --git a/screenpipe-js/tests/README.md b/screenpipe-js/tests/README.md
new file mode 100644
index 000000000..285674a22
--- /dev/null
+++ b/screenpipe-js/tests/README.md
@@ -0,0 +1,15 @@
+# tests
+
+To install dependencies:
+
+```bash
+bun install
+```
+
+To run:
+
+```bash
+bun run index.ts
+```
+
+This project was created using `bun init` in bun v1.1.43. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
diff --git a/screenpipe-js/tests/bun.lockb b/screenpipe-js/tests/bun.lockb
new file mode 100755
index 000000000..268efd9bf
Binary files /dev/null and b/screenpipe-js/tests/bun.lockb differ
diff --git a/screenpipe-js/tests/index.ts b/screenpipe-js/tests/index.ts
new file mode 100644
index 000000000..f67b2c645
--- /dev/null
+++ b/screenpipe-js/tests/index.ts
@@ -0,0 +1 @@
+console.log("Hello via Bun!");
\ No newline at end of file
diff --git a/screenpipe-js/tests/package.json b/screenpipe-js/tests/package.json
new file mode 100644
index 000000000..4411fb9e3
--- /dev/null
+++ b/screenpipe-js/tests/package.json
@@ -0,0 +1,16 @@
+{
+ "name": "tests",
+ "description": "Tests for the ScreenPipe CLI",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/neo773/screenpipe-test.git"
+ },
+ "module": "index.ts",
+ "type": "module",
+ "devDependencies": {
+ "@types/bun": "latest"
+ },
+ "peerDependencies": {
+ "typescript": "^5.0.0"
+ }
+}
\ No newline at end of file
diff --git a/screenpipe-js/tests/tsconfig.json b/screenpipe-js/tests/tsconfig.json
new file mode 100644
index 000000000..238655f2c
--- /dev/null
+++ b/screenpipe-js/tests/tsconfig.json
@@ -0,0 +1,27 @@
+{
+ "compilerOptions": {
+ // Enable latest features
+ "lib": ["ESNext", "DOM"],
+ "target": "ESNext",
+ "module": "ESNext",
+ "moduleDetection": "force",
+ "jsx": "react-jsx",
+ "allowJs": true,
+
+ // Bundler mode
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "verbatimModuleSyntax": true,
+ "noEmit": true,
+
+ // Best practices
+ "strict": true,
+ "skipLibCheck": true,
+ "noFallthroughCasesInSwitch": true,
+
+ // Some stricter flags (disabled by default)
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noPropertyAccessFromIndexSignature": false
+ }
+}
diff --git a/screenpipe-js/tsconfig.json b/screenpipe-js/tsconfig.json
new file mode 100644
index 000000000..037a15c29
--- /dev/null
+++ b/screenpipe-js/tsconfig.json
@@ -0,0 +1,16 @@
+{
+ "compilerOptions": {
+ "target": "ESNext",
+ "module": "ESNext",
+ "moduleResolution": "node",
+ "types": ["bun-types"],
+ "esModuleInterop": true,
+ "strict": true,
+ "skipLibCheck": true,
+ "forceConsistentCasingInFileNames": true,
+ "outDir": "dist",
+ "rootDir": "src"
+ },
+ "include": ["src/**/*"],
+ "exclude": ["node_modules", "dist"]
+}
\ No newline at end of file