docs: 仓库链接指向本镜像仓库
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s

This commit is contained in:
TanTan committed 2026-11-13 09:25:58 +08:00
1 parent f954252a34
commit e311ca3275
35554 files changed
+6229626 -4

No files matched your search

@@ -0,0 +1,73 @@
var $d7347c25ab757295$exports = require("./PortalProvider.main.js");
var $kxJqT$reactariainteractions = require("@react-aria/interactions");
var $kxJqT$reactariafocus = require("@react-aria/focus");
var $kxJqT$react = require("react");
var $kxJqT$reactdom = require("react-dom");
var $kxJqT$reactariassr = require("@react-aria/ssr");
var $kxJqT$reactariautils = require("@react-aria/utils");
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "Overlay", () => $745edbb83ab4296f$export$c6fdb837b070b4ff);
$parcel$export(module.exports, "useOverlayFocusContain", () => $745edbb83ab4296f$export$14c98a7594375490);
/*
* Copyright 2022 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
const $745edbb83ab4296f$export$a2200b96afd16271 = /*#__PURE__*/ (0, ($parcel$interopDefault($kxJqT$react))).createContext(null);
function $745edbb83ab4296f$export$c6fdb837b070b4ff(props) {
let isSSR = (0, $kxJqT$reactariassr.useIsSSR)();
let { portalContainer: portalContainer = isSSR ? null : document.body, isExiting: isExiting } = props;
let [contain, setContain] = (0, $kxJqT$react.useState)(false);
let contextValue = (0, $kxJqT$react.useMemo)(()=>({
contain: contain,
setContain: setContain
}), [
contain,
setContain
]);
let { getContainer: getContainer } = (0, $d7347c25ab757295$exports.useUNSAFE_PortalContext)();
if (!props.portalContainer && getContainer) portalContainer = getContainer();
if (!portalContainer) return null;
let contents = props.children;
if (!props.disableFocusManagement) contents = /*#__PURE__*/ (0, ($parcel$interopDefault($kxJqT$react))).createElement((0, $kxJqT$reactariafocus.FocusScope), {
restoreFocus: true,
contain: (props.shouldContainFocus || contain) && !isExiting
}, contents);
contents = /*#__PURE__*/ (0, ($parcel$interopDefault($kxJqT$react))).createElement($745edbb83ab4296f$export$a2200b96afd16271.Provider, {
value: contextValue
}, /*#__PURE__*/ (0, ($parcel$interopDefault($kxJqT$react))).createElement((0, $kxJqT$reactariainteractions.ClearPressResponder), null, contents));
return /*#__PURE__*/ (0, ($parcel$interopDefault($kxJqT$reactdom))).createPortal(contents, portalContainer);
}
function $745edbb83ab4296f$export$14c98a7594375490() {
let ctx = (0, $kxJqT$react.useContext)($745edbb83ab4296f$export$a2200b96afd16271);
let setContain = ctx === null || ctx === void 0 ? void 0 : ctx.setContain;
(0, $kxJqT$reactariautils.useLayoutEffect)(()=>{
setContain === null || setContain === void 0 ? void 0 : setContain(true);
}, [
setContain
]);
}
//# sourceMappingURL=Overlay.main.js.map
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB 0C 1C"},D:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},E:{"1":"A B C L M G 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC qC rC sC tC DD ED","2":"J ZB K D E F 2C ZC 3C 4C 5C"},F:{"1":"0 1 2 3 4 5 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB FD GD HD ID NC uC JD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC qC rC sC tC","2":"E ZC KD vC LD MD ND OD PD"},H:{"2":"hD"},I:{"1":"I","2":"TC J iD jD kD lD vC mD nD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD aC tD uD vD wD xD QC RC SC yD","2":"J oD"},Q:{"1":"zD"},R:{"1":"0D"},S:{"1":"1D 2D"}},B:2,C:"CSS font-variant-numeric",D:true};
@@ -0,0 +1,35 @@
import type {Config as TwMergeConfig} from "tailwind-merge";
import type {TVVariants} from "./index";
import type {TVGeneratedScreens} from "./generated";
export type TWMConfig = {
/**
* Whether to merge the class names with `tailwind-merge` library.
* It's avoid to have duplicate tailwind classes. (Recommended)
* @see https://github.com/dcastil/tailwind-merge/blob/v1.8.1/README.md
* @default true
*/
twMerge?: boolean;
/**
* The config object for `tailwind-merge` library.
* @see https://github.com/dcastil/tailwind-merge/blob/v1.8.1/docs/configuration.md
*/
twMergeConfig?: Partial<TwMergeConfig>;
};
export type TVConfig<
// @ts-expect-error
V extends TVVariants | undefined = undefined,
// @ts-expect-error
EV extends TVVariants | undefined = undefined,
> = {
/**
* Whether to enable responsive variant transform.
* Which variants or screens(breakpoints) for responsive variant transform.
* @default false
*/
responsiveVariants?:
| boolean
| TVGeneratedScreens[]
| {[K in keyof V | keyof EV]?: boolean | TVGeneratedScreens[]};
} & TWMConfig;
@@ -0,0 +1,298 @@
/**
* @file unicode 编码与postName对照表
* @author mengke01(kekee000@gmail.com)
*
* see:
* http://www.microsoft.com/typography/otspec/WGL4.htm
*/
export default {
0: 1,
1: 1,
2: 1,
3: 1,
4: 1,
5: 1,
6: 1,
7: 1,
8: 1,
9: 2,
10: 1,
11: 1,
12: 1,
13: 2,
14: 1,
15: 1,
16: 1,
17: 1,
18: 1,
19: 1,
20: 1,
21: 1,
22: 1,
23: 1,
24: 1,
25: 1,
26: 1,
27: 1,
28: 1,
29: 1,
30: 1,
31: 1,
32: 3,
33: 4,
34: 5,
35: 6,
36: 7,
37: 8,
38: 9,
39: 10,
40: 11,
41: 12,
42: 13,
43: 14,
44: 15,
45: 16,
46: 17,
47: 18,
48: 19,
49: 20,
50: 21,
51: 22,
52: 23,
53: 24,
54: 25,
55: 26,
56: 27,
57: 28,
58: 29,
59: 30,
60: 31,
61: 32,
62: 33,
63: 34,
64: 35,
65: 36,
66: 37,
67: 38,
68: 39,
69: 40,
70: 41,
71: 42,
72: 43,
73: 44,
74: 45,
75: 46,
76: 47,
77: 48,
78: 49,
79: 50,
80: 51,
81: 52,
82: 53,
83: 54,
84: 55,
85: 56,
86: 57,
87: 58,
88: 59,
89: 60,
90: 61,
91: 62,
92: 63,
93: 64,
94: 65,
95: 66,
96: 67,
97: 68,
98: 69,
99: 70,
100: 71,
101: 72,
102: 73,
103: 74,
104: 75,
105: 76,
106: 77,
107: 78,
108: 79,
109: 80,
110: 81,
111: 82,
112: 83,
113: 84,
114: 85,
115: 86,
116: 87,
117: 88,
118: 89,
119: 90,
120: 91,
121: 92,
122: 93,
123: 94,
124: 95,
125: 96,
126: 97,
160: 172,
161: 163,
162: 132,
163: 133,
164: 189,
165: 150,
166: 232,
167: 134,
168: 142,
169: 139,
170: 157,
171: 169,
172: 164,
174: 138,
175: 218,
176: 131,
177: 147,
178: 242,
179: 243,
180: 141,
181: 151,
182: 136,
184: 222,
185: 241,
186: 158,
187: 170,
188: 245,
189: 244,
190: 246,
191: 162,
192: 173,
193: 201,
194: 199,
195: 174,
196: 98,
197: 99,
198: 144,
199: 100,
200: 203,
201: 101,
202: 200,
203: 202,
204: 207,
205: 204,
206: 205,
207: 206,
208: 233,
209: 102,
210: 211,
211: 208,
212: 209,
213: 175,
214: 103,
215: 240,
216: 145,
217: 214,
218: 212,
219: 213,
220: 104,
221: 235,
222: 237,
223: 137,
224: 106,
225: 105,
226: 107,
227: 109,
228: 108,
229: 110,
230: 160,
231: 111,
232: 113,
233: 112,
234: 114,
235: 115,
236: 117,
237: 116,
238: 118,
239: 119,
240: 234,
241: 120,
242: 122,
243: 121,
244: 123,
245: 125,
246: 124,
247: 184,
248: 161,
249: 127,
250: 126,
251: 128,
252: 129,
253: 236,
254: 238,
255: 186,
262: 253,
263: 254,
268: 255,
269: 256,
273: 257,
286: 248,
287: 249,
304: 250,
305: 215,
321: 226,
322: 227,
338: 176,
339: 177,
350: 251,
351: 252,
352: 228,
353: 229,
376: 187,
381: 230,
382: 231,
402: 166,
710: 216,
711: 225,
728: 219,
729: 220,
730: 221,
731: 224,
733: 223,
960: 155,
8211: 178,
8212: 179,
8216: 182,
8217: 183,
8218: 196,
8220: 180,
8221: 181,
8222: 197,
8224: 130,
8225: 194,
8226: 135,
8230: 171,
8240: 198,
8249: 190,
8250: 191,
8355: 247,
8482: 140,
8486: 159,
8706: 152,
8710: 168,
8719: 154,
8721: 153,
8722: 239,
8725: 188,
8729: 195,
8730: 165,
8734: 146,
8747: 156,
8776: 167,
8800: 143,
8804: 148,
8805: 149,
9674: 185,
61441: 192,
61442: 193,
64257: 192,
64258: 193,
65535: 0 // 0xFFFF指向.notdef
};
@@ -0,0 +1,72 @@
import {ariaHideOutside as $5e3802645cc19319$export$1c3ebcada18427bf, keepVisible as $5e3802645cc19319$export$1020fa7f77e17884} from "./ariaHideOutside.mjs";
import {useOverlayPosition as $2a41e45df1593e64$export$d39e1813b3bdd0e1} from "./useOverlayPosition.mjs";
import {useOverlay as $a11501f3d1d39e6c$export$ea8f71083e90600f} from "./useOverlay.mjs";
import {usePreventScroll as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18} from "./usePreventScroll.mjs";
import {mergeProps as $m0yab$mergeProps} from "@react-aria/utils";
import {useEffect as $m0yab$useEffect} from "react";
/*
* Copyright 2022 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
let { triggerRef: triggerRef, popoverRef: popoverRef, groupRef: groupRef, isNonModal: isNonModal, isKeyboardDismissDisabled: isKeyboardDismissDisabled, shouldCloseOnInteractOutside: shouldCloseOnInteractOutside, ...otherProps } = props;
let isSubmenu = otherProps['trigger'] === 'SubmenuTrigger';
let { overlayProps: overlayProps, underlayProps: underlayProps } = (0, $a11501f3d1d39e6c$export$ea8f71083e90600f)({
isOpen: state.isOpen,
onClose: state.close,
shouldCloseOnBlur: true,
isDismissable: !isNonModal || isSubmenu,
isKeyboardDismissDisabled: isKeyboardDismissDisabled,
shouldCloseOnInteractOutside: shouldCloseOnInteractOutside
}, groupRef !== null && groupRef !== void 0 ? groupRef : popoverRef);
let { overlayProps: positionProps, arrowProps: arrowProps, placement: placement, triggerAnchorPoint: origin } = (0, $2a41e45df1593e64$export$d39e1813b3bdd0e1)({
...otherProps,
targetRef: triggerRef,
overlayRef: popoverRef,
isOpen: state.isOpen,
onClose: isNonModal && !isSubmenu ? state.close : null
});
(0, $49c51c25361d4cd2$export$ee0f7cc6afcd1c18)({
isDisabled: isNonModal || !state.isOpen
});
(0, $m0yab$useEffect)(()=>{
if (state.isOpen && popoverRef.current) {
var _groupRef_current, _groupRef_current1;
if (isNonModal) return (0, $5e3802645cc19319$export$1020fa7f77e17884)((_groupRef_current = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current !== void 0 ? _groupRef_current : popoverRef.current);
else return (0, $5e3802645cc19319$export$1c3ebcada18427bf)([
(_groupRef_current1 = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current1 !== void 0 ? _groupRef_current1 : popoverRef.current
], {
shouldUseInert: true
});
}
}, [
isNonModal,
state.isOpen,
popoverRef,
groupRef
]);
return {
popoverProps: (0, $m0yab$mergeProps)(overlayProps, positionProps),
arrowProps: arrowProps,
underlayProps: underlayProps,
placement: placement,
triggerAnchorPoint: origin
};
}
export {$f2f8a6077418541e$export$542a6fd13ac93354 as usePopover};
//# sourceMappingURL=usePopover.module.js.map
@@ -0,0 +1 @@
{"mappings":";;;AAAA;;;;;;;;;;CAUC;;AA8BM,SAAS,0CAAqB,KAAiC,EAAE,KAAuB,EAAE,GAAkC;IACjI,IAAI,cAAC,UAAU,EAAC,GAAG;IACnB,IAAI,gBAAC,YAAY,EAAC,GAAG,CAAA,GAAA,iBAAS,EAAE,OAAO;IAEvC,OAAO;QACL,YAAY;YACV,GAAG,YAAY;YACf,MAAM,MAAM,aAAa,KAAK,WAAW,eAAe,aAAa,IAAI;YACzE,iBAAiB;QACnB;IACF;AACF;AAgBO,SAAS,0CAAyB,KAAoD,EAAE,KAAuB,EAAE,GAAmB;IACzI,IAAI,cAA2B;QAC7B,YAAY,MAAM,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE;QAC3C,aAAY,UAAU;YACpB,MAAM,WAAW,CAAC,MAAM,EAAE,EAAE;QAC9B;QACA;YACE,MAAM,SAAS,CAAC,MAAM,EAAE;QAC1B;IACF;IAEA,IAAI,aAAC,SAAS,cAAE,UAAU,cAAE,UAAU,eAAE,WAAW,EAAC,GAAG,CAAA,GAAA,yCAAc,EAAE;QACrE,GAAG,KAAK;QACR,IAAI;QACJ,YAAY,MAAM,UAAU,IAAI,MAAM,UAAU;IAClD,GAAG,aAAa;IAChB,IAAI,MAAM,aAAa,KAAK,UAAU;QACpC,YAAY,IAAI,GAAG;QACnB,WAAW,CAAC,eAAe,GAAG,YAAY,UAAU;QACpD,OAAO,WAAW,CAAC,eAAe;IACpC;IAEA,OAAO;mBACL;oBACA;oBACA;qBACA;IACF;AACF","sources":["packages/@react-aria/button/src/useToggleButtonGroup.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n AnchorHTMLAttributes,\n ButtonHTMLAttributes,\n ElementType,\n HTMLAttributes,\n InputHTMLAttributes\n} from 'react';\nimport {AriaLabelingProps, DOMAttributes, Orientation, RefObject} from '@react-types/shared';\nimport {AriaToggleButtonGroupItemProps} from '@react-types/button';\nimport {ToggleButtonAria, useToggleButton} from './useToggleButton';\nimport {ToggleGroupProps, ToggleGroupState, ToggleState} from '@react-stately/toggle';\nimport {useToolbar} from '@react-aria/toolbar';\n\nexport interface AriaToggleButtonGroupProps extends ToggleGroupProps, AriaLabelingProps {\n /**\n * The orientation of the the toggle button group.\n * @default 'horizontal'\n */\n orientation?: Orientation\n}\n\nexport interface ToggleButtonGroupAria {\n /**\n * Props for the toggle button group container.\n */\n groupProps: DOMAttributes\n}\n\nexport function useToggleButtonGroup(props: AriaToggleButtonGroupProps, state: ToggleGroupState, ref: RefObject<HTMLElement | null>): ToggleButtonGroupAria {\n let {isDisabled} = props;\n let {toolbarProps} = useToolbar(props, ref);\n\n return {\n groupProps: {\n ...toolbarProps,\n role: state.selectionMode === 'single' ? 'radiogroup' : toolbarProps.role,\n 'aria-disabled': isDisabled\n }\n };\n}\n\nexport type {AriaToggleButtonGroupItemProps};\nexport interface AriaToggleButtonGroupItemOptions<E extends ElementType> extends Omit<AriaToggleButtonGroupItemProps<E>, 'children'> {}\n\n// Order with overrides is important: 'button' should be default\nexport function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<'button'>, state: ToggleGroupState, ref: RefObject<HTMLButtonElement | null>): ToggleButtonAria<ButtonHTMLAttributes<HTMLButtonElement>>;\nexport function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<'a'>, state: ToggleGroupState, ref: RefObject<HTMLAnchorElement | null>): ToggleButtonAria<AnchorHTMLAttributes<HTMLAnchorElement>>;\nexport function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<'div'>, state: ToggleGroupState, ref: RefObject<HTMLDivElement | null>): ToggleButtonAria<HTMLAttributes<HTMLDivElement>>;\nexport function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<'input'>, state: ToggleGroupState, ref: RefObject<HTMLInputElement | null>): ToggleButtonAria<InputHTMLAttributes<HTMLInputElement>>;\nexport function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<'span'>, state: ToggleGroupState, ref: RefObject<HTMLSpanElement | null>): ToggleButtonAria<HTMLAttributes<HTMLSpanElement>>;\nexport function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<ElementType>, state: ToggleGroupState, ref: RefObject<Element | null>): ToggleButtonAria<DOMAttributes>;\n/**\n * Provides the behavior and accessibility implementation for a toggle button component.\n * ToggleButtons allow users to toggle a selection on or off, for example switching between two states or modes.\n */\nexport function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<ElementType>, state: ToggleGroupState, ref: RefObject<any>): ToggleButtonAria<HTMLAttributes<any>> {\n let toggleState: ToggleState = {\n isSelected: state.selectedKeys.has(props.id),\n setSelected(isSelected) {\n state.setSelected(props.id, isSelected);\n },\n toggle() {\n state.toggleKey(props.id);\n }\n };\n\n let {isPressed, iLine truncated
@@ -0,0 +1,39 @@
// Maltese (Malta) [mt]
import dayjs from '../index';
var locale = {
name: 'mt',
weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
weekStart: 1,
weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
ordinal: function ordinal(n) {
return n;
},
formats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm'
},
relativeTime: {
future: 'f’ %s',
past: '%s ilu',
s: 'ftit sekondi',
m: 'minuta',
mm: '%d minuti',
h: 'siegħa',
hh: '%d siegħat',
d: 'ġurnata',
dd: '%d ġranet',
M: 'xahar',
MM: '%d xhur',
y: 'sena',
yy: '%d sni'
}
};
dayjs.locale(locale, null, true);
export default locale;
@@ -0,0 +1,8 @@
function _define_property(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });
} else obj[key] = value;
return obj;
}
export { _define_property as _ };
@@ -0,0 +1,588 @@
'use strict';
/**
* @fileoverview defineConfig helper
* @author Nicholas C. Zakas
*/
//-----------------------------------------------------------------------------
// Type Definitions
//-----------------------------------------------------------------------------
/** @import * as $eslintcore from "@eslint/core"; */
/** @typedef {$eslintcore.ConfigObject} Config */
/** @typedef {$eslintcore.LegacyConfigObject} LegacyConfig */
/** @typedef {$eslintcore.Plugin} Plugin */
/** @typedef {$eslintcore.RuleConfig} RuleConfig */
/** @import * as $typests from "./types.ts"; */
/** @typedef {$typests.ExtendsElement} ExtendsElement */
/** @typedef {$typests.SimpleExtendsElement} SimpleExtendsElement */
/** @typedef {$typests.ConfigWithExtends} ConfigWithExtends */
/** @typedef {$typests.InfiniteArray<Config>} InfiniteConfigArray */
/** @typedef {$typests.ConfigWithExtendsArray} ConfigWithExtendsArray */
//-----------------------------------------------------------------------------
// Helpers
//-----------------------------------------------------------------------------
const eslintrcKeys = [
"env",
"extends",
"globals",
"ignorePatterns",
"noInlineConfig",
"overrides",
"parser",
"parserOptions",
"reportUnusedDisableDirectives",
"root",
];
const allowedGlobalIgnoreKeys = new Set(["basePath", "ignores", "name"]);
/**
* Gets the name of a config object.
* @param {Config} config The config object.
* @param {string} indexPath The index path of the config object.
* @return {string} The name of the config object.
*/
function getConfigName(config, indexPath) {
if (config.name) {
return config.name;
}
return `UserConfig${indexPath}`;
}
/**
* Gets the name of an extension.
* @param {SimpleExtendsElement} extension The extension.
* @param {string} indexPath The index of the extension.
* @return {string} The name of the extension.
*/
function getExtensionName(extension, indexPath) {
if (typeof extension === "string") {
return extension;
}
if (extension.name) {
return extension.name;
}
return `ExtendedConfig${indexPath}`;
}
/**
* Determines if a config object is a legacy config.
* @param {Config|LegacyConfig} config The config object to check.
* @return {config is LegacyConfig} `true` if the config object is a legacy config.
*/
function isLegacyConfig(config) {
// eslintrc's plugins must be an array; while flat config's must be an object.
if (Array.isArray(config.plugins)) {
return true;
}
for (const key of eslintrcKeys) {
if (key in config) {
return true;
}
}
return false;
}
/**
* Determines if a config object is a global ignores config.
* @param {Config} config The config object to check.
* @return {boolean} `true` if the config object is a global ignores config.
*/
function isGlobalIgnores(config) {
return Object.keys(config).every(key => allowedGlobalIgnoreKeys.has(key));
}
/**
* Parses a plugin member ID (rule, processor, etc.) and returns
* the namespace and member name.
* @param {string} id The ID to parse.
* @returns {{namespace:string, name:string}} The namespace and member name.
*/
function getPluginMember(id) {
const firstSlashIndex = id.indexOf("/");
if (firstSlashIndex === -1) {
return { namespace: "", name: id };
}
let namespace = id.slice(0, firstSlashIndex);
/*
* Special cases:
* 1. The namespace is `@`, that means it's referring to the
* core plugin so `@` is the full namespace.
* 2. The namespace starts with `@`, that means it's referring to
* an npm scoped package. That means the namespace is the scope
* and the package name (i.e., `@eslint/core`).
*/
if (namespace[0] === "@" && namespace !== "@") {
const secondSlashIndex = id.indexOf("/", firstSlashIndex + 1);
if (secondSlashIndex !== -1) {
namespace = id.slice(0, secondSlashIndex);
return { namespace, name: id.slice(secondSlashIndex + 1) };
}
}
const name = id.slice(firstSlashIndex + 1);
return { namespace, name };
}
/**
* Normalizes the plugin config by replacing the namespace with the plugin namespace.
* @param {string} userNamespace The namespace of the plugin.
* @param {Plugin} plugin The plugin config object.
* @param {Config} config The config object to normalize.
* @return {Config} The normalized config object.
*/
function normalizePluginConfig(userNamespace, plugin, config) {
const pluginNamespace = plugin.meta?.namespace;
// don't do anything if the plugin doesn't have a namespace or rules
if (
!pluginNamespace ||
pluginNamespace === userNamespace ||
(!config.rules && !config.processor && !config.language)
) {
return config;
}
const result = { ...config };
// update the rules
if (result.rules) {
const ruleIds = Object.keys(result.rules);
/** @type {Record<string,RuleConfig|undefined>} */
const newRules = {};
for (let i = 0; i < ruleIds.length; i++) {
const ruleId = ruleIds[i];
const { namespace: ruleNamespace, name: ruleName } =
getPluginMember(ruleId);
if (ruleNamespace === pluginNamespace) {
newRules[`${userNamespace}/${ruleName}`] = result.rules[ruleId];
} else {
newRules[ruleId] = result.rules[ruleId];
}
}
result.rules = newRules;
}
// update the processor
if (typeof result.processor === "string") {
const { namespace: processorNamespace, name: processorName } =
getPluginMember(result.processor);
if (processorNamespace) {
if (processorNamespace === pluginNamespace) {
result.processor = `${userNamespace}/${processorName}`;
}
}
}
// update the language
if (typeof result.language === "string") {
const { namespace: languageNamespace, name: languageName } =
getPluginMember(result.language);
if (languageNamespace === pluginNamespace) {
result.language = `${userNamespace}/${languageName}`;
}
}
return result;
}
/**
* Deeply normalizes a plugin config, traversing recursively into an arrays.
* @param {string} userPluginNamespace The namespace of the plugin.
* @param {Plugin} plugin The plugin object.
* @param {Config|LegacyConfig|(Config|LegacyConfig)[]} pluginConfig The plugin config to normalize.
* @param {string} pluginConfigName The name of the plugin config.
* @return {InfiniteConfigArray} The normalized plugin config.
* @throws {TypeError} If the plugin config is a legacy config.
*/
function deepNormalizePluginConfig(
userPluginNamespace,
plugin,
pluginConfig,
pluginConfigName,
) {
// if it's an array then it's definitely a new config
if (Array.isArray(pluginConfig)) {
return pluginConfig.map(pluginSubConfig =>
deepNormalizePluginConfig(
userPluginNamespace,
plugin,
pluginSubConfig,
pluginConfigName,
),
);
}
// if it's a legacy config, throw an error
if (isLegacyConfig(pluginConfig)) {
throw new TypeError(
`Plugin config "${pluginConfigName}" is an eslintrc config and cannot be used in this context.`,
);
}
return normalizePluginConfig(userPluginNamespace, plugin, pluginConfig);
}
/**
* Finds a plugin config by name in the given config.
* @param {Config} config The config object.
* @param {string} pluginConfigName The name of the plugin config.
* @return {InfiniteConfigArray} The plugin config.
* @throws {TypeError} If the plugin config is not found or is a legacy config.
*/
function findPluginConfig(config, pluginConfigName) {
const { namespace: userPluginNamespace, name: configName } =
getPluginMember(pluginConfigName);
const plugin = config.plugins?.[userPluginNamespace];
if (!plugin) {
throw new TypeError(`Plugin "${userPluginNamespace}" not found.`);
}
const directConfig = plugin.configs?.[configName];
// Prefer direct config, but fall back to flat config if available
if (directConfig) {
// Arrays are always flat configs, and non-legacy configs can be used directly
if (Array.isArray(directConfig) || !isLegacyConfig(directConfig)) {
return deepNormalizePluginConfig(
userPluginNamespace,
plugin,
directConfig,
pluginConfigName,
);
}
}
// If it's a legacy config, or the config does not exist => look for the flat version
const flatConfig = plugin.configs?.[`flat/${configName}`];
if (
flatConfig &&
(Array.isArray(flatConfig) || !isLegacyConfig(flatConfig))
) {
return deepNormalizePluginConfig(
userPluginNamespace,
plugin,
flatConfig,
pluginConfigName,
);
}
// If we get here, then the config was either not found or is a legacy config
const message =
directConfig || flatConfig
? `Plugin config "${configName}" in plugin "${userPluginNamespace}" is an eslintrc config and cannot be used in this context.`
: `Plugin config "${configName}" not found in plugin "${userPluginNamespace}".`;
throw new TypeError(message);
}
/**
* Flattens an array while keeping track of the index path.
* @param {any[]} configList The array to traverse.
* @param {string} indexPath The index path of the value in a multidimensional array.
* @return {IterableIterator<{indexPath:string, value:any}>} The flattened list of values.
*/
function* flatTraverse(configList, indexPath = "") {
for (let i = 0; i < configList.length; i++) {
const newIndexPath = indexPath ? `${indexPath}[${i}]` : `[${i}]`;
// if it's an array then traverse it as well
if (Array.isArray(configList[i])) {
yield* flatTraverse(configList[i], newIndexPath);
continue;
}
yield { indexPath: newIndexPath, value: configList[i] };
}
}
/**
* Extends a list of config files by creating every combination of base and extension files.
* @param {(string|string[])[]} [baseFiles] The base files.
* @param {(string|string[])[]} [extensionFiles] The extension files.
* @return {(string|string[])[]} The extended files.
*/
function extendConfigFiles(baseFiles = [], extensionFiles = []) {
if (!extensionFiles.length) {
return baseFiles.concat();
}
if (!baseFiles.length) {
return extensionFiles.concat();
}
/** @type {(string|string[])[]} */
const result = [];
for (const baseFile of baseFiles) {
for (const extensionFile of extensionFiles) {
/*
* Each entry can be a string or array of strings. The end result
* needs to be an array of strings, so we need to be sure to include
* all of the items when there's an array.
*/
const entry = [];
if (Array.isArray(baseFile)) {
entry.push(...baseFile);
} else {
entry.push(baseFile);
}
if (Array.isArray(extensionFile)) {
entry.push(...extensionFile);
} else {
entry.push(extensionFile);
}
result.push(entry);
}
}
return result;
}
/**
* Extends a config object with another config object.
* @param {Config} baseConfig The base config object.
* @param {string} baseConfigName The name of the base config object.
* @param {Config} extension The extension config object.
* @param {string} extensionName The index of the extension config object.
* @return {Config} The extended config object.
*/
function extendConfig(baseConfig, baseConfigName, extension, extensionName) {
const result = { ...extension };
// for global ignores there is no further work to be done, we just keep everything
if (!isGlobalIgnores(extension)) {
// for files we need to create every combination of base and extension files
if (baseConfig.files) {
result.files = extendConfigFiles(baseConfig.files, extension.files);
}
// for ignores we just concatenation the extension ignores onto the base ignores
if (baseConfig.ignores) {
result.ignores = baseConfig.ignores.concat(extension.ignores ?? []);
}
}
result.name = `${baseConfigName} > ${extensionName}`;
// @ts-ignore -- ESLint types aren't updated yet
if (baseConfig.basePath) {
// @ts-ignore -- ESLint types aren't updated yet
result.basePath = baseConfig.basePath;
}
return result;
}
/**
* Processes a list of extends elements.
* @param {ConfigWithExtends} config The config object.
* @param {WeakMap<Config, string>} configNames The map of config objects to their names.
* @return {Config[]} The flattened list of config objects.
* @throws {TypeError} If the `extends` property is not an array or if nested `extends` is found.
*/
function processExtends(config, configNames) {
if (!config.extends) {
return [config];
}
if (!Array.isArray(config.extends)) {
throw new TypeError("The `extends` property must be an array.");
}
const {
/** @type {Config[]} */
extends: extendsList,
/** @type {Config} */
...configObject
} = config;
const extensionNames = new WeakMap();
// replace strings with the actual configs
const objectExtends = extendsList.map(extendsElement => {
if (typeof extendsElement === "string") {
const pluginConfig = findPluginConfig(config, extendsElement);
// assign names
if (Array.isArray(pluginConfig)) {
pluginConfig.forEach((pluginConfigElement, index) => {
extensionNames.set(
pluginConfigElement,
`${extendsElement}[${index}]`,
);
});
} else {
extensionNames.set(pluginConfig, extendsElement);
}
return pluginConfig;
}
return /** @type {Config} */ (extendsElement);
});
const result = [];
for (const { indexPath, value: extendsElement } of flatTraverse(
objectExtends,
)) {
const extension = /** @type {Config} */ (extendsElement);
if ("basePath" in extension) {
throw new TypeError("'basePath' in `extends` is not allowed.");
}
if ("extends" in extension) {
throw new TypeError("Nested 'extends' is not allowed.");
}
const baseConfigName = /** @type {string} */ (configNames.get(config));
const extensionName =
extensionNames.get(extendsElement) ??
getExtensionName(extendsElement, indexPath);
result.push(
extendConfig(
configObject,
baseConfigName,
extension,
extensionName,
),
);
}
/*
* If the base config object has only `ignores` and `extends`, then
* removing `extends` turns it into a global ignores, which is not what
* we want. So we need to check if the base config object is a global ignores
* and if so, we don't add it to the array.
*
* (The other option would be to add a `files` entry, but that would result
* in a config that didn't actually do anything because there are no
* other keys in the config.)
*/
if (!isGlobalIgnores(configObject)) {
result.push(configObject);
}
return result.flat();
}
/**
* Processes a list of config objects and arrays.
* @param {ConfigWithExtends[]} configList The list of config objects and arrays.
* @param {WeakMap<Config, string>} configNames The map of config objects to their names.
* @return {Config[]} The flattened list of config objects.
*/
function processConfigList(configList, configNames) {
return configList.flatMap(config => processExtends(config, configNames));
}
//-----------------------------------------------------------------------------
// Exports
//-----------------------------------------------------------------------------
/**
* Helper function to define a config array.
* @param {ConfigWithExtendsArray} args The arguments to the function.
* @returns {Config[]} The config array.
* @throws {TypeError} If no arguments are provided or if an argument is not an object.
*/
function defineConfig(...args) {
const configNames = new WeakMap();
const configs = [];
if (args.length === 0) {
throw new TypeError("Expected one or more arguments.");
}
// first flatten the list of configs and get the names
for (const { indexPath, value } of flatTraverse(args)) {
if (typeof value !== "object" || value === null) {
throw new TypeError(
`Expected an object but received ${String(value)}.`,
);
}
const config = /** @type {ConfigWithExtends} */ (value);
// save config name for easy reference later
configNames.set(config, getConfigName(config, indexPath));
configs.push(config);
}
return processConfigList(configs, configNames);
}
/**
* @fileoverview Global ignores helper function.
* @author Nicholas C. Zakas
*/
//-----------------------------------------------------------------------------
// Type Definitions
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Helpers
//-----------------------------------------------------------------------------
let globalIgnoreCount = 0;
//-----------------------------------------------------------------------------
// Exports
//-----------------------------------------------------------------------------
/**
* Creates a global ignores config with the given patterns.
* @param {string[]} ignorePatterns The ignore patterns.
* @param {string} [name] The name of the global ignores config.
* @returns {Config} The global ignores config.
* @throws {TypeError} If ignorePatterns is not an array or if it is empty.
*/
function globalIgnores(ignorePatterns, name) {
if (!Array.isArray(ignorePatterns)) {
throw new TypeError("ignorePatterns must be an array");
}
if (ignorePatterns.length === 0) {
throw new TypeError("ignorePatterns must contain at least one pattern");
}
const id = globalIgnoreCount++;
return {
name: name || `globalIgnores ${id}`,
ignores: ignorePatterns,
};
}
exports.defineConfig = defineConfig;
exports.globalIgnores = globalIgnores;
@@ -0,0 +1,16 @@
/**
* Adds a specified number of seconds to a date.
* 向日期添加指定数量的秒。
*
* @param date - The date to add seconds to. (要添加秒的日期。)
* @param seconds - The number of seconds to add. (要添加的秒数。)
* @returns A new date with the added seconds. (添加秒后的新日期。)
* @example
* ```ts
* // Adding 30 seconds to a date (向日期添加30秒)
* const originalDate = new Date('2023-10-01T12:00:00');
* addSeconds(originalDate, 30);
* console.log(originalDate.toISOString()); // Outputs: '2023-10-01T12:00:30.000Z' (输出: '2023-10-01T12:00:30.000Z')
* ```
*/
export default function addSeconds(date: Date, seconds: number): Date;
@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CRLNumber = exports.id_ce_cRLNumber = void 0;
const tslib_1 = require("tslib");
const asn1_schema_1 = require("@peculiar/asn1-schema");
const object_identifiers_1 = require("../object_identifiers");
exports.id_ce_cRLNumber = `${object_identifiers_1.id_ce}.20`;
let CRLNumber = class CRLNumber {
constructor(value = 0) {
this.value = value;
}
};
exports.CRLNumber = CRLNumber;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer })
], CRLNumber.prototype, "value", void 0);
exports.CRLNumber = CRLNumber = tslib_1.__decorate([
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice })
], CRLNumber);
@@ -0,0 +1,470 @@
import { TypeSystemPolicy } from '../../system/index.mjs';
import { Deref, Pushref } from '../deref/index.mjs';
import { Hash } from '../hash/index.mjs';
import { Kind } from '../../type/symbols/index.mjs';
import { KeyOfPattern } from '../../type/keyof/index.mjs';
import { ExtendsUndefinedCheck } from '../../type/extends/index.mjs';
import { TypeRegistry, FormatRegistry } from '../../type/registry/index.mjs';
import { TypeBoxError } from '../../type/error/index.mjs';
import { Never } from '../../type/never/index.mjs';
// ------------------------------------------------------------------
// ValueGuard
// ------------------------------------------------------------------
import { IsArray, IsUint8Array, IsDate, IsPromise, IsFunction, IsAsyncIterator, IsIterator, IsBoolean, IsNumber, IsBigInt, IsString, IsSymbol, IsInteger, IsNull, IsUndefined } from '../guard/index.mjs';
// ------------------------------------------------------------------
// KindGuard
// ------------------------------------------------------------------
import { IsSchema } from '../../type/guard/kind.mjs';
// ------------------------------------------------------------------
// Errors
// ------------------------------------------------------------------
export class ValueCheckUnknownTypeError extends TypeBoxError {
constructor(schema) {
super(`Unknown type`);
this.schema = schema;
}
}
// ------------------------------------------------------------------
// TypeGuards
// ------------------------------------------------------------------
function IsAnyOrUnknown(schema) {
return schema[Kind] === 'Any' || schema[Kind] === 'Unknown';
}
// ------------------------------------------------------------------
// Guards
// ------------------------------------------------------------------
function IsDefined(value) {
return value !== undefined;
}
// ------------------------------------------------------------------
// Types
// ------------------------------------------------------------------
function FromAny(schema, references, value) {
return true;
}
function FromArgument(schema, references, value) {
return true;
}
function FromArray(schema, references, value) {
if (!IsArray(value))
return false;
if (IsDefined(schema.minItems) && !(value.length >= schema.minItems)) {
return false;
}
if (IsDefined(schema.maxItems) && !(value.length <= schema.maxItems)) {
return false;
}
for (const element of value) {
if (!Visit(schema.items, references, element))
return false;
}
// prettier-ignore
if (schema.uniqueItems === true && !((function () { const set = new Set(); for (const element of value) {
const hashed = Hash(element);
if (set.has(hashed)) {
return false;
}
else {
set.add(hashed);
}
} return true; })())) {
return false;
}
// contains
if (!(IsDefined(schema.contains) || IsNumber(schema.minContains) || IsNumber(schema.maxContains))) {
return true; // exit
}
const containsSchema = IsDefined(schema.contains) ? schema.contains : Never();
const containsCount = value.reduce((acc, value) => (Visit(containsSchema, references, value) ? acc + 1 : acc), 0);
if (containsCount === 0) {
return false;
}
if (IsNumber(schema.minContains) && containsCount < schema.minContains) {
return false;
}
if (IsNumber(schema.maxContains) && containsCount > schema.maxContains) {
return false;
}
return true;
}
function FromAsyncIterator(schema, references, value) {
return IsAsyncIterator(value);
}
function FromBigInt(schema, references, value) {
if (!IsBigInt(value))
return false;
if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
return false;
}
if (IsDefined(schema.exclusiveMinimum) && !(value > schema.exclusiveMinimum)) {
return false;
}
if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
return false;
}
if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
return false;
}
if (IsDefined(schema.multipleOf) && !(value % schema.multipleOf === BigInt(0))) {
return false;
}
return true;
}
function FromBoolean(schema, references, value) {
return IsBoolean(value);
}
function FromConstructor(schema, references, value) {
return Visit(schema.returns, references, value.prototype);
}
function FromDate(schema, references, value) {
if (!IsDate(value))
return false;
if (IsDefined(schema.exclusiveMaximumTimestamp) && !(value.getTime() < schema.exclusiveMaximumTimestamp)) {
return false;
}
if (IsDefined(schema.exclusiveMinimumTimestamp) && !(value.getTime() > schema.exclusiveMinimumTimestamp)) {
return false;
}
if (IsDefined(schema.maximumTimestamp) && !(value.getTime() <= schema.maximumTimestamp)) {
return false;
}
if (IsDefined(schema.minimumTimestamp) && !(value.getTime() >= schema.minimumTimestamp)) {
return false;
}
if (IsDefined(schema.multipleOfTimestamp) && !(value.getTime() % schema.multipleOfTimestamp === 0)) {
return false;
}
return true;
}
function FromFunction(schema, references, value) {
return IsFunction(value);
}
function FromImport(schema, references, value) {
const definitions = globalThis.Object.values(schema.$defs);
const target = schema.$defs[schema.$ref];
return Visit(target, [...references, ...definitions], value);
}
function FromInteger(schema, references, value) {
if (!IsInteger(value)) {
return false;
}
if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
return false;
}
if (IsDefined(schema.exclusiveMinimum) && !(value > schema.exclusiveMinimum)) {
return false;
}
if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
return false;
}
if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
return false;
}
if (IsDefined(schema.multipleOf) && !(value % schema.multipleOf === 0)) {
return false;
}
return true;
}
function FromIntersect(schema, references, value) {
const check1 = schema.allOf.every((schema) => Visit(schema, references, value));
if (schema.unevaluatedProperties === false) {
const keyPattern = new RegExp(KeyOfPattern(schema));
const check2 = Object.getOwnPropertyNames(value).every((key) => keyPattern.test(key));
return check1 && check2;
}
else if (IsSchema(schema.unevaluatedProperties)) {
const keyCheck = new RegExp(KeyOfPattern(schema));
const check2 = Object.getOwnPropertyNames(value).every((key) => keyCheck.test(key) || Visit(schema.unevaluatedProperties, references, value[key]));
return check1 && check2;
}
else {
return check1;
}
}
function FromIterator(schema, references, value) {
return IsIterator(value);
}
function FromLiteral(schema, references, value) {
return value === schema.const;
}
function FromNever(schema, references, value) {
return false;
}
function FromNot(schema, references, value) {
return !Visit(schema.not, references, value);
}
function FromNull(schema, references, value) {
return IsNull(value);
}
function FromNumber(schema, references, value) {
if (!TypeSystemPolicy.IsNumberLike(value))
return false;
if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
return false;
}
if (IsDefined(schema.exclusiveMinimum) && !(value > schema.exclusiveMinimum)) {
return false;
}
if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
return false;
}
if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
return false;
}
if (IsDefined(schema.multipleOf) && !(value % schema.multipleOf === 0)) {
return false;
}
return true;
}
function FromObject(schema, references, value) {
if (!TypeSystemPolicy.IsObjectLike(value))
return false;
if (IsDefined(schema.minProperties) && !(Object.getOwnPropertyNames(value).length >= schema.minProperties)) {
return false;
}
if (IsDefined(schema.maxProperties) && !(Object.getOwnPropertyNames(value).length <= schema.maxProperties)) {
return false;
}
const knownKeys = Object.getOwnPropertyNames(schema.properties);
for (const knownKey of knownKeys) {
const property = schema.properties[knownKey];
if (schema.required && schema.required.includes(knownKey)) {
if (!Visit(property, references, value[knownKey])) {
return false;
}
if ((ExtendsUndefinedCheck(property) || IsAnyOrUnknown(property)) && !(knownKey in value)) {
return false;
}
}
else {
if (TypeSystemPolicy.IsExactOptionalProperty(value, knownKey) && !Visit(property, references, value[knownKey])) {
return false;
}
}
}
if (schema.additionalProperties === false) {
const valueKeys = Object.getOwnPropertyNames(value);
// optimization: value is valid if schemaKey length matches the valueKey length
if (schema.required && schema.required.length === knownKeys.length && valueKeys.length === knownKeys.length) {
return true;
}
else {
return valueKeys.every((valueKey) => knownKeys.includes(valueKey));
}
}
else if (typeof schema.additionalProperties === 'object') {
const valueKeys = Object.getOwnPropertyNames(value);
return valueKeys.every((key) => knownKeys.includes(key) || Visit(schema.additionalProperties, references, value[key]));
}
else {
return true;
}
}
function FromPromise(schema, references, value) {
return IsPromise(value);
}
function FromRecord(schema, references, value) {
if (!TypeSystemPolicy.IsRecordLike(value)) {
return false;
}
if (IsDefined(schema.minProperties) && !(Object.getOwnPropertyNames(value).length >= schema.minProperties)) {
return false;
}
if (IsDefined(schema.maxProperties) && !(Object.getOwnPropertyNames(value).length <= schema.maxProperties)) {
return false;
}
const [patternKey, patternSchema] = Object.entries(schema.patternProperties)[0];
const regex = new RegExp(patternKey);
// prettier-ignore
const check1 = Object.entries(value).every(([key, value]) => {
return (regex.test(key)) ? Visit(patternSchema, references, value) : true;
});
// prettier-ignore
const check2 = typeof schema.additionalProperties === 'object' ? Object.entries(value).every(([key, value]) => {
return (!regex.test(key)) ? Visit(schema.additionalProperties, references, value) : true;
}) : true;
const check3 = schema.additionalProperties === false
? Object.getOwnPropertyNames(value).every((key) => {
return regex.test(key);
})
: true;
return check1 && check2 && check3;
}
function FromRef(schema, references, value) {
return Visit(Deref(schema, references), references, value);
}
function FromRegExp(schema, references, value) {
const regex = new RegExp(schema.source, schema.flags);
if (IsDefined(schema.minLength)) {
if (!(value.length >= schema.minLength))
return false;
}
if (IsDefined(schema.maxLength)) {
if (!(value.length <= schema.maxLength))
return false;
}
return regex.test(value);
}
function FromString(schema, references, value) {
if (!IsString(value)) {
return false;
}
if (IsDefined(schema.minLength)) {
if (!(value.length >= schema.minLength))
return false;
}
if (IsDefined(schema.maxLength)) {
if (!(value.length <= schema.maxLength))
return false;
}
if (IsDefined(schema.pattern)) {
const regex = new RegExp(schema.pattern);
if (!regex.test(value))
return false;
}
if (IsDefined(schema.format)) {
if (!FormatRegistry.Has(schema.format))
return false;
const func = FormatRegistry.Get(schema.format);
return func(value);
}
return true;
}
function FromSymbol(schema, references, value) {
return IsSymbol(value);
}
function FromTemplateLiteral(schema, references, value) {
return IsString(value) && new RegExp(schema.pattern).test(value);
}
function FromThis(schema, references, value) {
return Visit(Deref(schema, references), references, value);
}
function FromTuple(schema, references, value) {
if (!IsArray(value)) {
return false;
}
if (schema.items === undefined && !(value.length === 0)) {
return false;
}
if (!(value.length === schema.maxItems)) {
return false;
}
if (!schema.items) {
return true;
}
for (let i = 0; i < schema.items.length; i++) {
if (!Visit(schema.items[i], references, value[i]))
return false;
}
return true;
}
function FromUndefined(schema, references, value) {
return IsUndefined(value);
}
function FromUnion(schema, references, value) {
return schema.anyOf.some((inner) => Visit(inner, references, value));
}
function FromUint8Array(schema, references, value) {
if (!IsUint8Array(value)) {
return false;
}
if (IsDefined(schema.maxByteLength) && !(value.length <= schema.maxByteLength)) {
return false;
}
if (IsDefined(schema.minByteLength) && !(value.length >= schema.minByteLength)) {
return false;
}
return true;
}
function FromUnknown(schema, references, value) {
return true;
}
function FromVoid(schema, references, value) {
return TypeSystemPolicy.IsVoidLike(value);
}
function FromKind(schema, references, value) {
if (!TypeRegistry.Has(schema[Kind]))
return false;
const func = TypeRegistry.Get(schema[Kind]);
return func(schema, value);
}
function Visit(schema, references, value) {
const references_ = IsDefined(schema.$id) ? Pushref(schema, references) : references;
const schema_ = schema;
switch (schema_[Kind]) {
case 'Any':
return FromAny(schema_, references_, value);
case 'Argument':
return FromArgument(schema_, references_, value);
case 'Array':
return FromArray(schema_, references_, value);
case 'AsyncIterator':
return FromAsyncIterator(schema_, references_, value);
case 'BigInt':
return FromBigInt(schema_, references_, value);
case 'Boolean':
return FromBoolean(schema_, references_, value);
case 'Constructor':
return FromConstructor(schema_, references_, value);
case 'Date':
return FromDate(schema_, references_, value);
case 'Function':
return FromFunction(schema_, references_, value);
case 'Import':
return FromImport(schema_, references_, value);
case 'Integer':
return FromInteger(schema_, references_, value);
case 'Intersect':
return FromIntersect(schema_, references_, value);
case 'Iterator':
return FromIterator(schema_, references_, value);
case 'Literal':
return FromLiteral(schema_, references_, value);
case 'Never':
return FromNever(schema_, references_, value);
case 'Not':
return FromNot(schema_, references_, value);
case 'Null':
return FromNull(schema_, references_, value);
case 'Number':
return FromNumber(schema_, references_, value);
case 'Object':
return FromObject(schema_, references_, value);
case 'Promise':
return FromPromise(schema_, references_, value);
case 'Record':
return FromRecord(schema_, references_, value);
case 'Ref':
return FromRef(schema_, references_, value);
case 'RegExp':
return FromRegExp(schema_, references_, value);
case 'String':
return FromString(schema_, references_, value);
case 'Symbol':
return FromSymbol(schema_, references_, value);
case 'TemplateLiteral':
return FromTemplateLiteral(schema_, references_, value);
case 'This':
return FromThis(schema_, references_, value);
case 'Tuple':
return FromTuple(schema_, references_, value);
case 'Undefined':
return FromUndefined(schema_, references_, value);
case 'Union':
return FromUnion(schema_, references_, value);
case 'Uint8Array':
return FromUint8Array(schema_, references_, value);
case 'Unknown':
return FromUnknown(schema_, references_, value);
case 'Void':
return FromVoid(schema_, references_, value);
default:
if (!TypeRegistry.Has(schema_[Kind]))
throw new ValueCheckUnknownTypeError(schema_);
return FromKind(schema_, references_, value);
}
}
/** Returns true if the value matches the given type. */
export function Check(...args) {
return args.length === 3 ? Visit(args[0], args[1], args[2]) : Visit(args[0], [], args[1]);
}
@@ -0,0 +1,24 @@
'use strict';
var $RangeError = require('es-errors/range');
var ToInteger = require('./ToInteger');
var ToLength = require('./ToLength');
var SameValueZero = require('./SameValueZero');
// https://262.ecma-international.org/8.0/#sec-toindex
module.exports = function ToIndex(value) {
if (typeof value === 'undefined') {
return 0;
}
var integerIndex = ToInteger(value);
if (integerIndex < 0) {
throw new $RangeError('index must be >= 0');
}
var index = ToLength(integerIndex);
if (!SameValueZero(integerIndex, index)) {
throw new $RangeError('index must be >= 0 and < 2 ** 53 - 1');
}
return index;
};
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=removeServiceNodeBindingIfContextFree.spec.d.ts.map
@@ -0,0 +1,43 @@
{
"name": "@react-aria/toolbar",
"version": "3.0.0-beta.21",
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"exports": {
"source": "./src/index.ts",
"types": [
"./dist/types.d.ts",
"./src/index.ts"
],
"import": "./dist/import.mjs",
"require": "./dist/main.js"
},
"source": "src/index.ts",
"files": [
"dist",
"src"
],
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/adobe/react-spectrum"
},
"dependencies": {
"@react-aria/focus": "^3.21.2",
"@react-aria/i18n": "^3.12.13",
"@react-aria/utils": "^3.31.0",
"@react-types/shared": "^3.32.1",
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
},
"gitHead": "0bda51183baa23306342af32a82012ea0fe0f2dc"
}
@@ -0,0 +1,4 @@
import type { Coordinates } from '../../types';
export declare function getScrollXCoordinate(element: Element | typeof window): number;
export declare function getScrollYCoordinate(element: Element | typeof window): number;
export declare function getScrollCoordinates(element: Element | typeof window): Coordinates;
@@ -0,0 +1,4 @@
/**
* https://tc39.es/ecma402/#sec-iswellformedcurrencycode
*/
export declare function IsWellFormedCurrencyCode(currency: string): boolean;
@@ -0,0 +1,8 @@
The MIT License (MIT)
Copyright (c) 2015 Dmitry Ivanov
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,24 @@
import Decimal from 'decimal.js';
import { NumberFormatLocaleInternalData, NumberFormatOptionsCompactDisplay, NumberFormatOptionsCurrencyDisplay, NumberFormatOptionsCurrencySign, NumberFormatOptionsNotation, NumberFormatOptionsStyle, NumberFormatOptionsUnitDisplay, NumberFormatPart, RoundingModeType, UseGroupingType } from '../types/number';
interface NumberResult {
formattedString: string;
roundedNumber: Decimal;
sign: -1 | 0 | 1;
exponent: number;
magnitude: number;
}
export default function formatToParts(numberResult: NumberResult, data: NumberFormatLocaleInternalData, pl: Intl.PluralRules, options: {
numberingSystem: string;
useGrouping?: UseGroupingType;
style: NumberFormatOptionsStyle;
notation: NumberFormatOptionsNotation;
compactDisplay?: NumberFormatOptionsCompactDisplay;
currency?: string;
currencyDisplay?: NumberFormatOptionsCurrencyDisplay;
currencySign?: NumberFormatOptionsCurrencySign;
unit?: string;
unitDisplay?: NumberFormatOptionsUnitDisplay;
roundingIncrement: number;
roundingMode: RoundingModeType;
}): NumberFormatPart[];
export {};
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 ECMAScript Shims
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2014 - 2019 Shinnosuke Watanabe
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,58 @@
/**
* Read a 64 bit varint as two JS numbers.
*
* Returns tuple:
* [0]: low bits
* [0]: high bits
*
* Copyright 2008 Google Inc. All rights reserved.
*
* See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175
*/
export declare function varint64read(this: ReaderLike): [number, number];
/**
* Write a 64 bit varint, given as two JS numbers, to the given bytes array.
*
* Copyright 2008 Google Inc. All rights reserved.
*
* See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344
*/
export declare function varint64write(lo: number, hi: number, bytes: number[]): void;
/**
* Parse decimal string of 64 bit integer value as two JS numbers.
*
* Returns tuple:
* [0]: minus sign?
* [1]: low bits
* [2]: high bits
*
* Copyright 2008 Google Inc.
*/
export declare function int64fromString(dec: string): [boolean, number, number];
/**
* Format 64 bit integer value (as two JS numbers) to decimal string.
*
* Copyright 2008 Google Inc.
*/
export declare function int64toString(bitsLow: number, bitsHigh: number): string;
/**
* Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)`
*
* Copyright 2008 Google Inc. All rights reserved.
*
* See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144
*/
export declare function varint32write(value: number, bytes: number[]): void;
/**
* Read an unsigned 32 bit varint.
*
* See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220
*/
export declare function varint32read(this: ReaderLike): number;
declare type ReaderLike = {
buf: Uint8Array;
pos: number;
len: number;
assertBounds(): void;
};
export {};
@@ -0,0 +1,24 @@
# @heroui/ripple
This is a component that creates a ripple effect on the screen.
Please refer to the [documentation](https://heroui.com/docs/components/button) for more information.
## Installation
```sh
yarn add @heroui/ripple
# or
npm i @heroui/ripple
```
## Contribution
Yes please! See the
[contributing guidelines](https://github.com/frontio-ai/heroui/blob/master/CONTRIBUTING.md)
for details.
## License
This project is licensed under the terms of the
[MIT license](https://github.com/frontio-ai/heroui/blob/master/LICENSE).
@@ -0,0 +1,39 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const {
definePrototypeMethodHandler,
} = require("../util/define-prototype-method-handler")
module.exports = {
meta: {
docs: {
description: "disallow the `Array.prototype.filter` method.",
category: "ES5",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-filter.html",
},
fixable: null,
messages: {
forbidden: "ES5 '{{name}}' method is forbidden.",
},
schema: [
{
type: "object",
properties: {
aggressive: { type: "boolean" },
},
additionalProperties: false,
},
],
type: "problem",
},
create(context) {
return definePrototypeMethodHandler(context, {
Array: ["filter"],
})
},
}
@@ -0,0 +1,67 @@
{
"name": "space-separated-tokens",
"version": "2.0.2",
"description": "Parse and stringify space separated tokens",
"license": "MIT",
"keywords": [
"dom",
"html",
"space",
"separated",
"tokens",
"parse",
"stringify"
],
"repository": "wooorm/space-separated-tokens",
"bugs": "https://github.com/wooorm/space-separated-tokens/issues",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"files": [
"index.d.ts",
"index.js"
],
"devDependencies": {
"@types/node": "^18.0.0",
"c8": "^7.0.0",
"prettier": "^2.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"xo": "^0.52.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "node --conditions development test.js",
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"
},
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
},
"xo": {
"prettier": true
},
"remarkConfig": {
"plugins": [
"preset-wooorm"
]
}
}
@@ -0,0 +1,623 @@
export default `flf2a$ 6 5 25 0 9 0
peaksslant.flf (C) 1994 by Victor Parada (vparada@inf.utfsm.cl) 94/09/23.
figlet 2.1 font based on peaks.flf, slanted using slantfigfont.
Try option "-m 1" to smush one "_" between fonts.
Latin fonts a' e' i' o' u' n~ and N~ replaces A" O" U" a" o" u" and B.
____@
____ @
____ @
____ @
____ @
____ @@
_/\\/\\_@
_/\\/\\_ @
_/\\/\\_ @
______ @
_/\\/\\_ @
______ @@
_/\\/\\/\\/\\_@
_/\\/\\/\\/\\_ @
_/\\__/\\___ @
__________ @
__________ @
__________ @@
___/\\/\\__/\\/\\___@
_/\\/\\/\\/\\/\\/\\/\\_ @
___/\\/\\__/\\/\\___ @
_/\\/\\/\\/\\/\\/\\/\\_ @
___/\\/\\__/\\/\\___ @
________________ @@
_____/\\/\\_____@
___/\\/\\/\\/\\/\\_ @
_/\\/\\/\\/\\_____ @
_____/\\/\\/\\/\\_ @
_/\\/\\/\\/\\/\\___ @
_____/\\/\\_____ @@
_/\\/\\____/\\/\\_@
_/\\/\\__/\\/\\___ @
_____/\\/\\_____ @
___/\\/\\__/\\/\\_ @
_/\\/\\____/\\/\\_ @
______________ @@
_____/\\/\\_______@
_____/\\/\\_______ @
___/\\/\\/\\__/\\/\\_ @
_/\\/\\____/\\/\\___ @
___/\\/\\/\\__/\\/\\_ @
________________ @@
_/\\/\\_@
_/\\/\\_ @
_/\\___ @
______ @
______ @
______ @@
___/\\/\\/\\_@
_/\\/\\/\\___ @
_/\\/\\_____ @
_/\\/\\/\\___ @
___/\\/\\/\\_ @
__________ @@
_/\\/\\/\\___@
___/\\/\\/\\_ @
_____/\\/\\_ @
___/\\/\\/\\_ @
_/\\/\\/\\___ @
__________ @@
___/\\/\\__/\\/\\___@
_____/\\/\\/\\_____ @
_/\\/\\/\\/\\/\\/\\/\\_ @
_____/\\/\\/\\_____ @
___/\\/\\__/\\/\\___ @
________________ @@
______________@
_____/\\/\\_____ @
_/\\/\\/\\/\\/\\/\\_ @
_____/\\/\\_____ @
______________ @
______________ @@
______@
______ @
______ @
_/\\/\\_ @
_/\\/\\_ @
_/\\___ @@
__________@
__________ @
_/\\/\\/\\/\\_ @
__________ @
__________ @
__________ @@
______@
______ @
______ @
_/\\/\\_ @
_/\\/\\_ @
______ @@
_________/\\/\\_@
_______/\\/\\___ @
_____/\\/\\_____ @
___/\\/\\_______ @
_/\\/\\_________ @
______________ @@
___/\\/\\/\\/\\___@
_/\\/\\____/\\/\\_ @
_/\\/\\__/\\/\\/\\_ @
_/\\/\\/\\__/\\/\\_ @
___/\\/\\/\\/\\___ @
______________ @@
___/\\/\\_@
_/\\/\\/\\_ @
___/\\/\\_ @
___/\\/\\_ @
___/\\/\\_ @
________ @@
_/\\/\\/\\/\\/\\___@
_________/\\/\\_ @
___/\\/\\/\\/\\___ @
_/\\/\\_________ @
_/\\/\\/\\/\\/\\/\\_ @
______________ @@
_/\\/\\/\\/\\/\\___@
_________/\\/\\_ @
___/\\/\\/\\/\\___ @
_________/\\/\\_ @
_/\\/\\/\\/\\/\\___ @
______________ @@
_____/\\/\\/\\___@
___/\\/\\/\\/\\___ @
_/\\/\\__/\\/\\___ @
_/\\/\\/\\/\\/\\/\\_ @
_______/\\/\\___ @
______________ @@
_/\\/\\/\\/\\/\\/\\_@
_/\\/\\_________ @
_/\\/\\/\\/\\/\\___ @
_________/\\/\\_ @
_/\\/\\/\\/\\/\\___ @
______________ @@
___/\\/\\/\\/\\___@
_/\\/\\_________ @
_/\\/\\/\\/\\/\\___ @
_/\\/\\____/\\/\\_ @
___/\\/\\/\\/\\___ @
______________ @@
_/\\/\\/\\/\\/\\/\\_@
_______/\\/\\___ @
_____/\\/\\_____ @
___/\\/\\_______ @
_/\\/\\_________ @
______________ @@
___/\\/\\/\\/\\___@
_/\\/\\____/\\/\\_ @
___/\\/\\/\\/\\___ @
_/\\/\\____/\\/\\_ @
___/\\/\\/\\/\\___ @
______________ @@
___/\\/\\/\\/\\___@
_/\\/\\____/\\/\\_ @
___/\\/\\/\\/\\/\\_ @
_________/\\/\\_ @
___/\\/\\/\\/\\___ @
______________ @@
_/\\/\\_@
_/\\/\\_ @
______ @
_/\\/\\_ @
_/\\/\\_ @
______ @@
_/\\/\\_@
_/\\/\\_ @
______ @
_/\\/\\_ @
_/\\/\\_ @
_/\\___ @@
_____/\\/\\_@
___/\\/\\___ @
_/\\/\\_____ @
___/\\/\\___ @
_____/\\/\\_ @
__________ @@
__________@
_/\\/\\/\\/\\_ @
__________ @
_/\\/\\/\\/\\_ @
__________ @
__________ @@
_/\\/\\_____@
___/\\/\\___ @
_____/\\/\\_ @
___/\\/\\___ @
_/\\/\\_____ @
__________ @@
_/\\/\\/\\/\\/\\___@
_________/\\/\\_ @
_____/\\/\\/\\___ @
______________ @
_____/\\/\\_____ @
______________ @@
___/\\/\\/\\/\\___@
_/\\/\\__/\\/\\/\\_ @
_/\\/\\__/\\/\\/\\_ @
_/\\/\\_________ @
___/\\/\\/\\/\\___ @
______________ @@
_____/\\/\\_____@
___/\\/\\/\\/\\___ @
_/\\/\\____/\\/\\_ @
_/\\/\\/\\/\\/\\/\\_ @
_/\\/\\____/\\/\\_ @
______________ @@
_/\\/\\/\\/\\/\\___@
_/\\/\\____/\\/\\_ @
_/\\/\\/\\/\\/\\___ @
_/\\/\\____/\\/\\_ @
_/\\/\\/\\/\\/\\___ @
______________ @@
___/\\/\\/\\/\\/\\_@
_/\\/\\_________ @
_/\\/\\_________ @
_/\\/\\_________ @
___/\\/\\/\\/\\/\\_ @
______________ @@
_/\\/\\/\\/\\/\\___@
_/\\/\\____/\\/\\_ @
_/\\/\\____/\\/\\_ @
_/\\/\\____/\\/\\_ @
_/\\/\\/\\/\\/\\___ @
______________ @@
_/\\/\\/\\/\\/\\/\\_@
_/\\___________ @
_/\\/\\/\\/\\/\\___ @
_/\\/\\_________ @
_/\\/\\/\\/\\/\\/\\_ @
______________ @@
_/\\/\\/\\/\\/\\/\\_@
_/\\/\\_________ @
_/\\/\\/\\/\\/\\___ @
_/\\/\\_________ @
_/\\/\\_________ @
______________ @@
___/\\/\\/\\/\\/\\_@
_/\\/\\_________ @
_/\\/\\__/\\/\\/\\_ @
_/\\/\\____/\\/\\_ @
___/\\/\\/\\/\\/\\_ @
______________ @@
_/\\/\\____/\\/\\_@
_/\\/\\____/\\/\\_ @
_/\\/\\/\\/\\/\\/\\_ @
_/\\/\\____/\\/\\_ @
_/\\/\\____/\\/\\_ @
______________ @@
_/\\/\\/\\/\\_@
___/\\/\\___ @
___/\\/\\___ @
___/\\/\\___ @
_/\\/\\/\\/\\_ @
__________ @@
_________/\\/\\_@
_________/\\/\\_ @
_________/\\/\\_ @
_/\\/\\____/\\/\\_ @
___/\\/\\/\\/\\___ @
______________ @@
_/\\/\\____/\\/\\_@
_/\\/\\__/\\/\\___ @
_/\\/\\/\\/\\_____ @
_/\\/\\__/\\/\\___ @
_/\\/\\____/\\/\\_ @
______________ @@
_/\\/\\_______@
_/\\/\\_______ @
_/\\/\\_______ @
_/\\/\\_______ @
_/\\/\\/\\/\\/\\_ @
____________ @@
_/\\/\\______/\\/\\_@
_/\\/\\/\\__/\\/\\/\\_ @
_/\\/\\/\\/\\/\\/\\/\\_ @
_/\\/\\__/\\__/\\/\\_ @
_/\\/\\______/\\/\\_ @
________________ @@
_/\\/\\____/\\/\\_@
_/\\/\\/\\__/\\/\\_ @
_/\\/\\/\\/\\/\\/\\_ @
_/\\/\\__/\\/\\/\\_ @
_/\\/\\____/\\/\\_ @
______________ @@
___/\\/\\/\\/\\___@
_/\\/\\____/\\/\\_ @
_/\\/\\____/\\/\\_ @
_/\\/\\____/\\/\\_ @
___/\\/\\/\\/\\___ @
______________ @@
_/\\/\\/\\/\\/\\___@
_/\\/\\____/\\/\\_ @
_/\\/\\/\\/\\/\\___ @
_/\\/\\_________ @
_/\\/\\_________ @
______________ @@
___/\\/\\/\\/\\___@
_/\\/\\____/\\/\\_ @
_/\\/\\____/\\/\\_ @
_/\\/\\__/\\/\\___ @
___/\\/\\/\\/\\/\\_ @
______________ @@
_/\\/\\/\\/\\/\\___@
_/\\/\\____/\\/\\_ @
_/\\/\\/\\/\\/\\___ @
_/\\/\\__/\\/\\___ @
_/\\/\\____/\\/\\_ @
______________ @@
___/\\/\\/\\/\\/\\_@
_/\\/\\_________ @
___/\\/\\/\\/\\___ @
_________/\\/\\_ @
_/\\/\\/\\/\\/\\___ @
______________ @@
_/\\/\\/\\/\\/\\/\\_@
_____/\\/\\_____ @
_____/\\/\\_____ @
_____/\\/\\_____ @
_____/\\/\\_____ @
______________ @@
_/\\/\\____/\\/\\_@
_/\\/\\____/\\/\\_ @
_/\\/\\____/\\/\\_ @
_/\\/\\____/\\/\\_ @
___/\\/\\/\\/\\___ @
______________ @@
_/\\/\\____/\\/\\_@
_/\\/\\____/\\/\\_ @
_/\\/\\____/\\/\\_ @
___/\\/\\/\\/\\___ @
_____/\\/\\_____ @
______________ @@
_/\\/\\______/\\/\\_@
_/\\/\\__/\\__/\\/\\_ @
_/\\/\\/\\/\\/\\/\\/\\_ @
_/\\/\\/\\__/\\/\\/\\_ @
_/\\/\\______/\\/\\_ @
________________ @@
_/\\/\\____/\\/\\_@
___/\\/\\/\\/\\___ @
_____/\\/\\_____ @
___/\\/\\/\\/\\___ @
_/\\/\\____/\\/\\_ @
______________ @@
_/\\/\\____/\\/\\_@
_/\\/\\____/\\/\\_ @
___/\\/\\/\\/\\___ @
_____/\\/\\_____ @
_____/\\/\\_____ @
______________ @@
_/\\/\\/\\/\\/\\/\\_@
_______/\\/\\___ @
_____/\\/\\_____ @
___/\\/\\_______ @
_/\\/\\/\\/\\/\\/\\_ @
______________ @@
_/\\/\\/\\/\\_@
_/\\/\\_____ @
_/\\/\\_____ @
_/\\/\\_____ @
_/\\/\\/\\/\\_ @
__________ @@
_/\\/\\_________@
___/\\/\\_______ @
_____/\\/\\_____ @
_______/\\/\\___ @
_________/\\/\\_ @
______________ @@
_/\\/\\/\\/\\_@
_____/\\/\\_ @
_____/\\/\\_ @
_____/\\/\\_ @
_/\\/\\/\\/\\_ @
__________ @@
___/\\/\\___@
_/\\/\\/\\/\\_ @
_/\\____/\\_ @
__________ @
__________ @
__________ @@
______________@
______________ @
______________ @
______________ @
______________ @
_/\\/\\/\\/\\/\\/\\_ @@
_/\\/\\_@
_/\\/\\_ @
___/\\_ @
______ @
______ @
______ @@
____________@
_/\\/\\/\\_____ @
_____/\\/\\___ @
_/\\/\\/\\/\\___ @
_/\\/\\/\\/\\/\\_ @
____________ @@
_/\\/\\_______@
_/\\/\\_______ @
_/\\/\\/\\/\\___ @
_/\\/\\__/\\/\\_ @
_/\\/\\/\\/\\___ @
____________ @@
____________@
___/\\/\\/\\/\\_ @
_/\\/\\_______ @
_/\\/\\_______ @
___/\\/\\/\\/\\_ @
____________ @@
_______/\\/\\_@
_______/\\/\\_ @
___/\\/\\/\\/\\_ @
_/\\/\\__/\\/\\_ @
___/\\/\\/\\/\\_ @
____________ @@
____________@
___/\\/\\/\\___ @
_/\\/\\/\\/\\/\\_ @
_/\\/\\_______ @
___/\\/\\/\\/\\_ @
____________ @@
___/\\/\\/\\_@
_/\\/\\_____ @
_/\\/\\/\\___ @
_/\\/\\_____ @
_/\\/\\_____ @
__________ @@
____________@
___/\\/\\/\\/\\_ @
_/\\/\\__/\\/\\_ @
___/\\/\\/\\/\\_ @
_______/\\/\\_ @
_/\\/\\/\\/\\___ @@
_/\\/\\_______@
_/\\/\\_______ @
_/\\/\\/\\/\\___ @
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
____________ @@
_/\\/\\___@
________ @
_/\\/\\___ @
_/\\/\\___ @
_/\\/\\/\\_ @
________ @@
_____/\\/\\_@
__________ @
_____/\\/\\_ @
_____/\\/\\_ @
_____/\\/\\_ @
_/\\/\\/\\___ @@
_/\\/\\_______@
_/\\/\\__/\\/\\_ @
_/\\/\\/\\/\\___ @
_/\\/\\/\\/\\___ @
_/\\/\\__/\\/\\_ @
____________ @@
_/\\/\\___@
_/\\/\\___ @
_/\\/\\___ @
_/\\/\\___ @
_/\\/\\/\\_ @
________ @@
________________@
_/\\/\\/\\__/\\/\\___ @
_/\\/\\/\\/\\/\\/\\/\\_ @
_/\\/\\__/\\__/\\/\\_ @
_/\\/\\______/\\/\\_ @
________________ @@
____________@
_/\\/\\/\\/\\___ @
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
____________ @@
____________@
___/\\/\\/\\___ @
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
___/\\/\\/\\___ @
____________ @@
____________@
_/\\/\\/\\/\\___ @
_/\\/\\__/\\/\\_ @
_/\\/\\/\\/\\___ @
_/\\/\\_______ @
_/\\/\\_______ @@
____________@
___/\\/\\/\\/\\_ @
_/\\/\\__/\\/\\_ @
___/\\/\\/\\/\\_ @
_______/\\/\\_ @
_______/\\/\\_ @@
____________@
_/\\/\\__/\\/\\_ @
_/\\/\\/\\/\\___ @
_/\\/\\_______ @
_/\\/\\_______ @
____________ @@
____________@
___/\\/\\/\\/\\_ @
_/\\/\\/\\/\\___ @
_______/\\/\\_ @
_/\\/\\/\\/\\___ @
____________ @@
___/\\/\\_____@
_/\\/\\/\\/\\/\\_ @
___/\\/\\_____ @
___/\\/\\_____ @
___/\\/\\/\\___ @
____________ @@
____________@
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
___/\\/\\/\\/\\_ @
____________ @@
____________@
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
___/\\/\\/\\___ @
_____/\\_____ @
____________ @@
________________@
_/\\/\\______/\\/\\_ @
_/\\/\\__/\\__/\\/\\_ @
_/\\/\\/\\/\\/\\/\\/\\_ @
___/\\/\\__/\\/\\___ @
________________ @@
____________@
_/\\/\\__/\\/\\_ @
___/\\/\\/\\___ @
___/\\/\\/\\___ @
_/\\/\\__/\\/\\_ @
____________ @@
____________@
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
___/\\/\\/\\/\\_ @
_______/\\/\\_ @
_/\\/\\/\\/\\___ @@
____________@
_/\\/\\/\\/\\/\\_ @
_____/\\/\\___ @
___/\\/\\_____ @
_/\\/\\/\\/\\/\\_ @
____________ @@
___/\\/\\/\\/\\_@
___/\\/\\_____ @
_/\\/\\_______ @
___/\\/\\_____ @
___/\\/\\/\\/\\_ @
____________ @@
_/\\/\\_@
_/\\/\\_ @
_/\\/\\_ @
_/\\/\\_ @
_/\\/\\_ @
_/\\/\\_ @@
_/\\/\\/\\/\\___@
_____/\\/\\___ @
_______/\\/\\_ @
_____/\\/\\___ @
_/\\/\\/\\/\\___ @
____________ @@
___/\\/\\__/\\/\\_@
_/\\/\\/\\/\\/\\/\\_ @
_/\\/\\__/\\/\\___ @
______________ @
______________ @
______________ @@
_______/\\/\\_@
_/\\/\\/\\_____ @
_____/\\/\\___ @
_/\\/\\/\\/\\___ @
_/\\/\\/\\/\\/\\_ @
____________ @@
_______/\\/\\_@
___/\\/\\/\\___ @
_/\\/\\/\\/\\/\\_ @
_/\\/\\_______ @
___/\\/\\/\\/\\_ @
____________ @@
___/\\/\\_@
________ @
_/\\/\\___ @
_/\\/\\___ @
_/\\/\\/\\_ @
________ @@
_______/\\/\\_@
___/\\/\\/\\___ @
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
___/\\/\\/\\___ @
____________ @@
_______/\\/\\_@
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
___/\\/\\/\\/\\_ @
____________ @@
_/\\/\\/\\/\\/\\_@
____________ @
_/\\/\\/\\/\\___ @
_/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\_ @
____________ @@
_/\\/\\/\\/\\/\\/\\_@
______________ @
_/\\/\\/\\__/\\/\\_ @
_/\\/\\__/\\/\\/\\_ @
_/\\/\\____/\\/\\_ @
______________ @@
`
@@ -0,0 +1,412 @@
flf2a$ 4 3 10 0 3
italic.flf Version 2
by: Bas Meijer meijer@info.win.tue.nl bas@damek.kth.se
fixed by: Ryan Youck youck@cs.uregina.ca
$@
$@
$@
@@
@
| @
. @
@@
// @
$$ @
@
@@
@
_|_|_ @
-|-|- @
@@
||_ @
(||$ @
_||) @
|| @@
@
0/ @
/0 @
@@
@
()/ @
(X @
@@
/ @
$ @
$ @
@@
$/ @
($ @
$\ @
@@
\$ @
$) @
/$ @
@@
$ $@
$\/$@
$/\$@
$ $@@
$ $@
$_|_$@
$ | $@
$ $@@
$@
$$@
,$@
$@@
$ $@
$__$@
$ $@
$ $@@
$@
$ $@
. $@
$@@
@
$/ @
/$ @
@@
__ @
/ ) @
(__/ @
@@
@
-/ @
/ @
@@
_ @
_) @
/__ @
@@
_ @
_) @
__) @
@@
@
(_/ @
/ @
@@
__ @
/_ @
__) @
@@
__ @
/_ @
(__) @
@@
___ @
_/ @
/ @
@@
_ @
(_) @
(__) @
@@
__ @
(__) @
__/ @
@@
@
. @
. @
@@
@
. @
, @
@@
$ $@
$/$@
$\$@
$ $@@
$ $@
$__$@
$--$@
$ $@@
$ $@
$\$@
$/$@
$ $@@
$ _ @
$ )@
$ . @
$ @@
@
@
@
@@
_ @
/_| @
( | @
@@
__ @
/ _) @
/(_) @
@@
_ @
/ ) @
(__ @
@@
__ @
/ ) @
/(_/ @
@@
___ @
(_ @
/__ @
@@
___ @
(_ $ @
/$ @
@@
__ @
/ _ @
(__) @
@@
@
)__/ @
/ / @
@@
@
/ @
( @
@@
@
/ @
(_/ @
@@
@
/__/ @
/ ) @
@@
@
/ @
(__ @
@@
@
/|/| @
/ | @
@@
@
/| ) @
/ |/ @
@@
__ @
/ ) @
(__/ @
@@
__ @
/__) @
/ $ @
@@
__ @
/ ) @
(__\ @
@@
__ @
/__) @
/ ($ @
@@
__ @
( @
__) @
@@
____ @
/ $ @
( @
@@
@
/ / @
(__/ @
@@
@
( / @
|_/ @
@@
@
( / @
|/|/ @
@@
@
\_) @
( \ @
@@
@
(__/ @
/$ @
@@
__ @
_/ @
/__ @
@@
_ @
|$ @
|_ @
@@
@
\ @
\ @
@@
_ @
$| @
_| @
@@
@
/\ @
$$ @
@@
@
@
__ @
@@
\ @
$ @
$ @
@@
@
_ @
(/ @
@@
@
/ @
() @
@@
@
_ @
($ @
@@
@
_/ @
(/ @
@@
@
_$@
(- @
@@
_ @
(_ @
/$ @
@@
@
_ @
(/ @
_/ @@
@
/ @
/) @
@@
@
' @
/ @
@@
@
' @
/ @
_/ @@
@
/ @
/( @
@@
@
/ @
( @
@@
@
_ @
//) @
@@
@
@
/) @
@@
@
@
() @
@@
@
@
/) @
/ @@
@
_ @
(/ @
/ @@
@
_ @
/$ @
@@
@
$_ @
_)$ @
@@
@
_/ @
/ @
@@
@
$ @
(/ @
@@
@
$$ @
\/ @
@@
@
$$ @
((/ @
@@
@
$$ @
)( @
@@
@
$ @
(/ @
/ @@
@
_ @
/_ @
@@
( @
< @
( @
@@
| @
| @
| @
@@
) @
> @
) @
@@
@
/\/ @
@
@@
o_o @
/_| @
( | @
@@
o__o @
/ ) @
(__/ @
@@
o o@
/ / @
(__/ @
@@
@
-_-@
(/ @
@@
@
-- @
() @
@@
@
- -@
(/ @
@@
__ @
/ _) @
/(_) @
/ @@
@@ -0,0 +1,76 @@
/**
* @file 用于国际化的字符串管理类
* @author mengke01(kekee000@gmail.com)
*/
function appendLanguage(store, languageList) {
languageList.forEach(item => {
const language = item[0];
store[language] = Object.assign(store[language] || {}, item[1]);
});
return store;
}
/**
* 管理国际化字符,根据lang切换语言版本
*
* @class I18n
* @param {Array} languageList 当前支持的语言列表
* @param {string=} defaultLanguage 默认语言
* languageList = [
* 'en-us', // 语言名称
* langObject // 语言字符串列表
* ]
*/
export default class I18n {
constructor(languageList, defaultLanguage) {
this.store = appendLanguage({}, languageList);
this.setLanguage(
defaultLanguage
|| typeof navigator !== 'undefined' && navigator.language && navigator.language.toLowerCase()
|| 'en-us'
);
}
/**
* 设置语言
*
* @param {string} language 语言
* @return {this}
*/
setLanguage(language) {
if (!this.store[language]) {
language = 'en-us';
}
this.lang = this.store[this.language = language];
return this;
}
/**
* 添加一个语言字符串
*
* @param {string} language 语言
* @param {Object} langObject 语言对象
* @return {this}
*/
addLanguage(language, langObject) {
appendLanguage(this.store, [[language, langObject]]);
return this;
}
/**
* 获取当前语言字符串
*
* @param {string} path 语言路径
* @return {string} 语言字符串
*/
get(path) {
const ref = path.split('.');
let refObject = this.lang;
let level;
while (refObject != null && (level = ref.shift())) {
refObject = refObject[level];
}
return refObject != null ? refObject : '';
}
}
@@ -0,0 +1 @@
{"mappings":";;;;;AAAA;;;;;;;;;;CAUC;;;;AA6BM,SAAS,yCAAW,KAAuB,EAAE,GAAkC;IACpF,MAAM,EACJ,cAAc,SAAS,EACvB,mBAAmB,cAAc,eACjC,cAAc,cACf,GAAG;IACJ,IAAI,CAAC,aAAa,aAAa,GAAG,CAAA,GAAA,eAAO,EAAE;IAC3C,4FAA4F;IAC5F,mFAAmF;IACnF,uDAAuD;IACvD,CAAA,GAAA,sBAAc,EAAE;YACiB;QAA/B,aAAa,CAAC,CAAE,CAAA,IAAI,OAAO,MAAI,6BAAA,IAAI,OAAO,CAAC,aAAa,cAAzB,iDAAA,2BAA2B,OAAO,CAAC,oBAAkB;IACtF;IACA,MAAM,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,gBAAQ;IAC5B,MAAM,gBAAgB,cAAc,SAAS,gBAAgB;IAC7D,IAAI,eAAe,CAAA,GAAA,yBAAiB,EAAE;IAEtC,MAAM,YAAkC,CAAC;QACvC,gCAAgC;QAChC,IAAI,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,MAAM,GACpC;QAEF,IACE,AAAC,gBAAgB,gBAAgB,EAAE,GAAG,KAAK,gBACvC,gBAAgB,cAAc,EAAE,GAAG,KAAK;YAC5C,IAAI,eACF,aAAa,aAAa;iBAE1B,aAAa,SAAS;eAEnB,IACL,AAAC,gBAAgB,gBAAgB,EAAE,GAAG,KAAK,eACvC,gBAAgB,cAAc,EAAE,GAAG,KAAK;YAC5C,IAAI,eACF,aAAa,SAAS;iBAEtB,aAAa,aAAa;eAEvB,IAAI,EAAE,GAAG,KAAK,OAAO;YAC1B,qDAAqD;YACrD,oDAAoD;YACpD,oDAAoD;YACpD,kDAAkD;YAClD,EAAE,eAAe;YACjB,YAAY,OAAO,GAAG,SAAS,aAAa;YAC5C,IAAI,EAAE,QAAQ,EACZ,aAAa,UAAU;iBAEvB,aAAa,SAAS;YAExB;QACF,OACE,wEAAwE;QACxE;QAGF,iEAAiE;QACjE,EAAE,eAAe;QACjB,EAAE,cAAc;IAClB;IAEA,qEAAqE;IACrE,MAAM,cAAc,CAAA,GAAA,aAAK,EAAsB;IAC/C,MAAM,SAAS,CAAC;QACd,IAAI,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,aAAa,KAAK,CAAC,YAAY,OAAO,EACpE,YAAY,OAAO,GAAG,EAAE,MAAM;IAElC;IAEA,+EAA+E;IAC/E,oFAAoF;IACpF,8EAA8E;IAC9E,MAAM,UAAU,CAAC;YAC0D;QAAzE,IAAI,YAAY,OAAO,IAAI,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,aAAa,OAAK,eAAA,IAAI,OAAO,cAAX,mCAAA,aAAa,QAAQ,CAAC,EAAE,MAAM,IAAG;gBACxG;aAAA,uBAAA,YAAY,OAAO,cAAnB,2CAAA,qBAAqB,KAAK;YAC1B,YAAY,OAAO,GAAG;QACxB;IACF;IAEA,OAAO;QACL,cAAc;YACZ,GAAG,CAAA,GAAA,qBAAa,EAAE,OAAO;gBAAC,WAAW;YAAI,EAAE;YAC3C,MAAM,CAAC,cAAc,YAAY;YACjC,oBAAoB;YACpB,cAAc;YACd,mBAAmB,aAAa,OAAO,iBAAiB;YACxD,kBAAkB,CAAC,cAAc,YAAY;YAC7C,gBAAgB,CAAC,cAAc,UAAU;YACzC,eAAe,CAAC,cAAc,SAAS;QACzC;IACF;AACF","sources":["packages/@react-aria/toolbar/src/useToolbar.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, Orientation, RefObject} from '@react-types/shared';\nimport {createFocusManager} from '@react-aria/focus';\nimport {filterDOMProps, useLayoutEffect} from '@react-aria/utils';\nimport {HTMLAttributes, KeyboardEventHandler, useRef, useState} from 'react';\nimport {useLocale} from '@react-aria/i18n';\n\nexport interface AriaToolbarProps extends AriaLabelingProps {\n /**\n * The orientation of the entire toolbar.\n * @default 'horizontal'\n */\n orientation?: Orientation\n}\n\nexport interface ToolbarAria {\n /**\n * Props for the toolbar container.\n */\n toolbarProps: HTMLAttributes<HTMLElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a toolbar.\n * A toolbar is a container for a set of interactive controls with arrow key navigation.\n * @param props - Props to be applied to the toolbar.\n * @param ref - A ref to a DOM element for the toolbar.\n */\nexport function useToolbar(props: AriaToolbarProps, ref: RefObject<HTMLElement | null>): ToolbarAria {\n const {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n orientation = 'horizontal'\n } = props;\n let [isInToolbar, setInToolbar] = useState(false);\n // should be safe because re-calling set state with the same value it already has is a no-op\n // this will allow us to react should a parent re-render and change its role though\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useLayoutEffect(() => {\n setInToolbar(!!(ref.current && ref.current.parentElement?.closest('[role=\"toolbar\"]')));\n });\n const {direction} = useLocale();\n const shouldReverse = direction === 'rtl' && orientation === 'horizontal';\n let focusManager = createFocusManager(ref);\n\n const onKeyDown: KeyboardEventHandler = (e) => {\n // don't handle portalled events\n if (!e.currentTarget.contains(e.target as HTMLElement)) {\n return;\n }\n if (\n (orientation === 'horizontal' && e.key === 'ArrowRight')\n || (orientation === 'vertical' && e.key === 'ArrowDown')) {\n if (shouldReverse) {\n focusManager.focusPrevious();\n } else {\n focusManager.focusNext();\n }\n } else if (\n (orientation === 'horizontal' && e.key === 'ArrowLeft')\n || (orientation === 'vertical' && e.key === 'ArrowUp')) {\n if (shouldReverse) {\n focusManager.focusNext();\n } else {\n focusManager.focusPrevious();\n }\n } else if (e.keyLine truncated
@@ -0,0 +1,9 @@
/**
* ValueType for "auto"
*/
const auto = {
test: (v) => v === "auto",
parse: (v) => v,
};
export { auto };
@@ -0,0 +1,17 @@
'use strict';
module.exports = function (fromEntries, t) {
var a = {};
var b = {};
var c = {};
var entries = [['a', a], ['b', b], ['c', c]];
var obj = { a: a, b: b, c: c };
t.deepEqual(fromEntries(entries), obj, 'entries -> obj');
t['throws'](function () { fromEntries(); }, 'entries throws on absent iterable');
t['throws'](function () { fromEntries(undefined); }, 'entries throws on undefined');
t['throws'](function () { fromEntries(null); }, 'entries throws on null');
t.deepEqual(fromEntries([['foo', 1], ['foo', 2]]), { foo: 2 }, 'works with a duplicate key');
};
@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = setFunctionName;
function setFunctionName(fn, name, prefix) {
if (typeof name === "symbol") {
name = name.description;
name = name ? "[" + name + "]" : "";
}
try {
Object.defineProperty(fn, "name", {
configurable: true,
value: prefix ? prefix + " " + name : name
});
} catch (_) {}
return fn;
}
//# sourceMappingURL=setFunctionName.js.map
@@ -0,0 +1,20 @@
var xd=Object.defineProperty;var Sd=e=>{throw TypeError(e)};var my=(e,t,a)=>t in e?xd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var wd=(e,t)=>{for(var a in t)xd(e,a,{get:t[a],enumerable:!0})};var Vi=(e,t,a)=>my(e,typeof t!="symbol"?t+"":t,a),hy=(e,t,a)=>t.has(e)||Sd("Cannot "+a);var gp=(e,t,a)=>t.has(e)?Sd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a);var ge=(e,t,a)=>(hy(e,t,"access private method"),a);var hd={};wd(hd,{parsers:()=>md});var md={};wd(md,{typescript:()=>t3});var yy=()=>()=>{},Ma=yy;var gy=(e,t,a,o)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(a,o):a.global?t.replace(a,o):t.split(a).join(o)},Er=gy;var Em="5.8";var bt=[],by=new Map;function r_(e){return e!==void 0?e.length:0}function qn(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let o=t(e[a],a);if(o)return o}}function vy(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let o=t(e[a],a);if(o!==void 0)return o}}function kd(e,t,a){let o=[];B.assertEqual(e.length,t.length);for(let m=0;m<e.length;m++)o.push(a(e[m],t[m],m));return o}function Yp(e,t){if(e!==void 0){for(let a=0;a<e.length;a++)if(!t(e[a],a))return!1}return!0}function Am(e,t,a){if(e!==void 0)for(let o=a??0;o<e.length;o++){let m=e[o];if(t(m,o))return m}}function bp(e,t,a){if(e===void 0)return-1;for(let o=a??0;o<e.length;o++)if(t(e[o],o))return o;return-1}function Ty(e,t,a=$p){if(e!==void 0){for(let o=0;o<e.length;o++)if(a(e[o],t))return!0}return!1}function Xr(e,t){if(e!==void 0){let a=e.length,o=0;for(;o<a&&t(e[o]);)o++;if(o<a){let m=e.slice(0,o);for(o++;o<a;){let v=e[o];t(v)&&m.push(v),o++}return m}}return e}function Np(e,t){let a;if(e!==void 0){a=[];for(let o=0;o<e.length;o++)a.push(t(e[o],o))}return a}function Cm(e){let t=[];for(let a=0;a<e.length;a++){let o=e[a];o&&(Qr(o)?Nn(t,o):t.push(o))}return t}function Dm(e,t){let a;if(e!==void 0)for(let o=0;o<e.length;o++){let m=t(e[o],o);m&&(Qr(m)?a=Nn(a,m):a=Dn(a,m))}return a??bt}function xy(e,t){let a;if(e!==void 0)for(let o=0;o<e.length;o++){let m=e[o],v=t(m,o);(a||m!==v||Qr(v))&&(a||(a=e.slice(0,o)),Qr(v)?Nn(a,v):a.push(v))}return a??e}function Sy(e,t){let a=[];if(e!==void 0)for(let o=0;o<e.length;o++){let m=t(e[o],o);m!==void 0&&a.push(m)}return a}function nn(e,t){if(e!==void 0)if(t!==void 0){for(let a=0;a<e.length;a++)if(t(e[a]))return!0}else return e.length>0;return!1}function Hp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function wy(e,t,a=$p){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!a(e[o],t[o],o))return!1;return!0}function Dn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Ip(e,t){return t<0?e.length+t:t}function Nn(e,t,a,o){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(a,o);a=a===void 0?0:Ip(t,a),o=o===void 0?t.length:Ip(t,o);for(let m=a;m<o&&m<t.length;m++)t[m]!==void 0&&e.push(t[m]);return e}function ky(e,t,a){return Ty(e,t,a)?!1:(e.push(t),!0)}function Ey(e,t,a){return e!==void 0?(ky(e,t,a),e):[t]}function Ay(e,t){return e.length===0?bt:e.slice().sort(t)}var a3=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e!==void 0&&(t=Ip(e,t),t<e.length))return e[t]};function Xp(e){return e===void 0||e.length===0?void 0:e[0]}function Fa(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Cy(e){return B.assert(e.length!==0),e[e.length-1]}function Dy(e){return e!==void 0&&e.length===1?e[0]:void 0}function Py(e,t,a,o,m){return Ny(e,a(t),a,o,m)}function Ny(e,t,a,o,m){if(!nn(e))return-1;let v=m??0,E=e.length-1;for(;v<=E;){let C=v+(E-v>>1),c=a(e[C],C);switch(o(c,t)){case-1:v=C+1;break;case 0:return C;case 1:E=C-1;break}}return~v}function Iy(e,t,a,o,m){if(e&&e.length>0){let v=e.length;if(v>0){let E=o===void 0||o<0?0:o,C=m===void 0||E+m>v-1?v-1:E+m,c;for(arguments.length<=2?(c=e[E],E++):c=a;E<=C;)c=t(c,e[E],E),E++;return c}}return a}var Pm=Object.prototype.hasOwnProperty;function Nr(e,t){return Pm.call(e,t)}function Oy(e){let t=[];for(let a in e)Pm.call(e,a)&&t.push(a);return t}function My(){let e=new Map;return e.add=Ly,e.remove=Jy,e}function Ly(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function Jy(e,t){let a=this.get(e);a!==void 0&&(Wy(a,t),a.length||this.delete(e))}function Qr(e){return Array.isArray(e)}function vp(e){return Qr(e)?e:[e]}function jy(e,t){return e!==void 0&&t(e)?e:void 0}function Cr(e,t){return e!==void 0&&t(e)?e:B.fail(`Invalid cast. The supplied value ${e} did not pass the test '${B.getFunctionName(t)}'.`)}function Ga(e){}function Ry(){return!0}function gt(e){return e}function Ed(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function er(e){let t=new Map;return a=>{let o=`${typeof a}:${a}`,m=t.get(o);return m===void 0&&!t.has(o)&&(m=e(a),t.set(o,m)),m}}function $p(e,t){return e===t}function Qp(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Uy(e,t){return $p(e,t)}function By(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Line truncated
Node ${Mt(J.kind)} was unexpected.`,me||y)}e.failBadSyntaxKind=y;function g(J,_e,me,Te){J||(_e=_e?`False expression: ${_e}`:"False expression.",me&&(_e+=`\r
Verbose Debug Information: `+(typeof me=="string"?me:me())),h(_e,Te||g))}e.assert=g;function x(J,_e,me,Te,Xe){if(J!==_e){let Ke=me?Te?`${me} ${Te}`:me:"";h(`Expected ${J} === ${_e}. ${Ke}`,Xe||x)}}e.assertEqual=x;function N(J,_e,me,Te){J>=_e&&h(`Expected ${J} < ${_e}. ${me||""}`,Te||N)}e.assertLessThan=N;function te(J,_e,me){J>_e&&h(`Expected ${J} <= ${_e}`,me||te)}e.assertLessThanOrEqual=te;function ue(J,_e,me){J<_e&&h(`Expected ${J} >= ${_e}`,me||ue)}e.assertGreaterThanOrEqual=ue;function ye(J,_e,me){J==null&&h(_e,me||ye)}e.assertIsDefined=ye;function fe(J,_e,me){return ye(J,_e,me||fe),J}e.checkDefined=fe;function M(J,_e,me){for(let Te of J)ye(Te,_e,me||M)}e.assertEachIsDefined=M;function ie(J,_e,me){return M(J,_e,me||ie),J}e.checkEachDefined=ie;function Ce(J,_e="Illegal value:",me){let Te=typeof J=="object"&&Nr(J,"kind")&&Nr(J,"pos")?"SyntaxKind: "+Mt(J.kind):JSON.stringify(J);return h(`${_e} ${Te}`,me||Ce)}e.assertNever=Ce;function V(J,_e,me,Te){W(1,"assertEachNode")&&g(_e===void 0||Yp(J,_e),me||"Unexpected node.",()=>`Node array did not pass test '${Tn(_e)}'.`,Te||V)}e.assertEachNode=V;function oe(J,_e,me,Te){W(1,"assertNode")&&g(J!==void 0&&(_e===void 0||_e(J)),me||"Unexpected node.",()=>`Node ${Mt(J==null?void 0:J.kind)} did not pass test '${Tn(_e)}'.`,Te||oe)}e.assertNode=oe;function G(J,_e,me,Te){W(1,"assertNotNode")&&g(J===void 0||_e===void 0||!_e(J),me||"Unexpected node.",()=>`Node ${Mt(J.kind)} should not have passed test '${Tn(_e)}'.`,Te||G)}e.assertNotNode=G;function dt(J,_e,me,Te){W(1,"assertOptionalNode")&&g(_e===void 0||J===void 0||_e(J),me||"Unexpected node.",()=>`Node ${Mt(J==null?void 0:J.kind)} did not pass test '${Tn(_e)}'.`,Te||dt)}e.assertOptionalNode=dt;function rr(J,_e,me,Te){W(1,"assertOptionalToken")&&g(_e===void 0||J===void 0||J.kind===_e,me||"Unexpected node.",()=>`Node ${Mt(J==null?void 0:J.kind)} was not a '${Mt(_e)}' token.`,Te||rr)}e.assertOptionalToken=rr;function vn(J,_e,me){W(1,"assertMissingNode")&&g(J===void 0,_e||"Unexpected node.",()=>`Node ${Mt(J.kind)} was unexpected'.`,me||vn)}e.assertMissingNode=vn;function ir(J){}e.type=ir;function Tn(J){if(typeof J!="function")return"";if(Nr(J,"name"))return J.name;{let _e=Function.prototype.toString.call(J),me=/^function\s+([\w$]+)\s*\(/.exec(_e);return me?me[1]:""}}e.getFunctionName=Tn;function Mn(J){return`{ name: ${f_(J.escapedName)}; flags: ${ct(J.flags)}; declarations: ${Np(J.declarations,_e=>Mt(_e.kind))} }`}e.formatSymbol=Mn;function Ge(J=0,_e,me){let Te=Or(_e);if(J===0)return Te.length>0&&Te[0][0]===0?Te[0][1]:"0";if(me){let Xe=[],Ke=J;for(let[st,Pt]of Te){if(st>J)break;st!==0&&st&J&&(Xe.push(Pt),Ke&=~st)}if(Ke===0)return Xe.join("|")}else for(let[Xe,Ke]of Te)if(Xe===J)return Ke;return J.toString()}e.formatEnum=Ge;let ar=new Map;function Or(J){let _e=ar.get(J);if(_e)return _e;let me=[];for(let Xe in J){let Ke=J[Xe];typeof Ke=="number"&&me.push([Ke,Xe])}let Te=Ay(me,(Xe,Ke)=>Nm(Xe[0],Ke[0]));return ar.set(J,Te),Te}function Mt(J){return Ge(J,Ie,!1)}e.formatSyntaxKind=Mt;function Fn(J){return Ge(J,Jm,!1)}e.formatSnippetKind=Fn;function Ln(J){return Ge(J,Ir,!1)}e.formatScriptKind=Ln;function Lt(J){return Ge(J,bn,!0)}e.formatNodeFlags=Lt;function vt(J){return Ge(J,Om,!0)}e.formatNodeCheckFlags=vt;function Qe(J){return Ge(J,Kp,!0)}e.formatModifierFlags=Qe;function zn(J){return Ge(J,Lm,!0)}e.formatTransformFlags=zn;function $t(J){return Ge(J,jm,!0)}e.formatEmitFlags=$t;function ct(J){return Ge(J,Zp,!0)}e.formatSymbolFlags=ct;function at(J){return Ge(J,rn,!0)}e.formatTypeFlags=at;function Ut(J){return Ge(J,Mm,!0)}e.formatSignatureFlags=Ut;function Jt(J){return Ge(J,ef,!0)}e.formatObjectFlags=Jt;function lt(J){return Ge(J,Mp,!0)}e.formatFlowFlags=lt;function sr(J){return Ge(J,Im,!0)}e.formatRelationComparisonResult=sr;function mt(J){return Ge(J,CheckMode,!0)}e.formatCheckMode=mt;function xn(J){return Ge(J,SignatureCheckMode,!0)}e.formatSignatureCheckMode=xn;function yt(J){return Ge(J,TypeFacts,!0)}e.formatTypeFacts=yt;let ln=!1,nt;function Bt(J){"__debugFlowFlags"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(){let _e=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",me=this.flags&-2048;return`${_e}${me?` (${lt(me)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,Mp,!0)}},__debugToString:{value(){return gr(this)}}})}function an(J){return ln&&(typeof Object.setPrototypeOf=="function"?(nt||(nt=Object.create(Object.prototype),Bt(nt)),Object.setPrototypeOf(J,nt)):Bt(J)),J}e.attachFlowNodeDebugInfo=an;let _r;function hr(J){"__tsDebuggerDisplay"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(_e){return _e=String(_e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${_e}`}}})}function yr(J){ln&&(typeLine truncated
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return Ce(this)}}}e.DebugTypeMapper=Mr;function Gn(J){return e.isDebugging?Object.setPrototypeOf(J,Mr.prototype):J}e.attachDebugPrototypeIfDebug=Gn;function De(J){return console.log(gr(J))}e.printControlFlowGraph=De;function gr(J){let _e=-1;function me(u){return u.id||(u.id=_e,_e--),u.id}let Te;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(Te||(Te={}));let Xe;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(Xe||(Xe={}));let Ke=2032,st=882,Pt=Object.create(null),Tt=[],ut=[],Lr=Se(J,new Set);for(let u of Tt)u.text=rt(u.flowNode,u.circular),be(u);let br=We(Lr),Jn=et(br);return Ye(Lr,0),un();function Yn(u){return!!(u.flags&128)}function Ei(u){return!!(u.flags&12)&&!!u.antecedent}function R(u){return!!(u.flags&Ke)}function Q(u){return!!(u.flags&st)}function K(u){let Oe=[];for(let Me of u.edges)Me.source===u&&Oe.push(Me.target);return Oe}function xe(u){let Oe=[];for(let Me of u.edges)Me.target===u&&Oe.push(Me.source);return Oe}function Se(u,Oe){let Me=me(u),U=Pt[Me];if(U&&Oe.has(u))return U.circular=!0,U={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(U),U;if(Oe.add(u),!U)if(Pt[Me]=U={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(U),Ei(u))for(let Fe of u.antecedent)we(U,Fe,Oe);else R(u)&&we(U,u.antecedent,Oe);return Oe.delete(u),U}function we(u,Oe,Me){let U=Se(Oe,Me),Fe={source:u,target:U};ut.push(Fe),u.edges.push(Fe),U.edges.push(Fe)}function be(u){if(u.level!==-1)return u.level;let Oe=0;for(let Me of xe(u))Oe=Math.max(Oe,be(Me)+1);return u.level=Oe}function We(u){let Oe=0;for(let Me of K(u))Oe=Math.max(Oe,We(Me));return Oe+1}function et(u){let Oe=L(Array(u),0);for(let Me of Tt)Oe[Me.level]=Math.max(Oe[Me.level],Me.text.length);return Oe}function Ye(u,Oe){if(u.lane===-1){u.lane=Oe,u.endLane=Oe;let Me=K(u);for(let U=0;U<Me.length;U++){U>0&&Oe++;let Fe=Me[U];Ye(Fe,Oe),Fe.endLane>u.endLane&&(Oe=Fe.endLane)}u.endLane=Oe}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function Sn(u){let Oe=gi(u);return qd(Oe,u,!1)}function rt(u,Oe){let Me=Ee(u.flags);if(Oe&&(Me=`${Me}#${me(u)}`),Yn(u)){let U=[],{switchStatement:Fe,clauseStart:sn,clauseEnd:Ve}=u.node;for(let $e=sn;$e<Ve;$e++){let Nt=Fe.caseBlock.clauses[$e];y6(Nt)?U.push("default"):U.push(Sn(Nt.expression))}Me+=` (${U.join(", ")})`}else Q(u)&&u.node&&(Me+=` (${Sn(u.node)})`);return Oe==="circularity"?`Circular(${Me})`:Me}function un(){let u=Jn.length,Oe=qy(Tt,0,Ve=>Ve.lane)+1,Me=L(Array(Oe),""),U=Jn.map(()=>Array(Oe)),Fe=Jn.map(()=>L(Array(Oe),0));for(let Ve of Tt){U[Ve.level][Ve.lane]=Ve;let $e=K(Ve);for(let kt=0;kt<$e.length;kt++){let It=$e[kt],qt=8;It.lane===Ve.lane&&(qt|=4),kt>0&&(qt|=1),kt<$e.length-1&&(qt|=2),Fe[Ve.level][It.lane]|=qt}$e.length===0&&(Fe[Ve.level][Ve.lane]|=16);let Nt=xe(Ve);for(let kt=0;kt<Nt.length;kt++){let It=Nt[kt],qt=4;kt>0&&(qt|=1),kt<Nt.length-1&&(qt|=2),Fe[Ve.level-1][It.lane]|=qt}}for(let Ve=0;Ve<u;Ve++)for(let $e=0;$e<Oe;$e++){let Nt=Ve>0?Fe[Ve-1][$e]:0,kt=$e>0?Fe[Ve][$e-1]:0,It=Fe[Ve][$e];It||(Nt&8&&(It|=12),kt&2&&(It|=3),Fe[Ve][$e]=It)}for(let Ve=0;Ve<u;Ve++)for(let $e=0;$e<Me.length;$e++){let Nt=Fe[Ve][$e],kt=Nt&4?"\u2500":" ",It=U[Ve][$e];It?(sn($e,It.text),Ve<u-1&&(sn($e," "),sn($e,qe(kt,Jn[Ve]-It.text.length)))):Ve<u-1&&sn($e,qe(kt,Jn[Ve]+1)),sn($e,ti(Nt)),sn($e,Nt&8&&Ve<u-1&&!U[Ve+1][$e]?"\u2500":" ")}return`
${Me.join(`
`)}
`;function sn(Ve,$e){Me[Ve]+=$e}}function ti(u){switch(u){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function L(u,Oe){if(u.fill)u.fill(Oe);else for(let Me=0;Me<u.length;Me++)u[Me]=Oe;return u}function qe(u,Oe){if(u.repeat)return Oe>0?u.repeat(Oe):"";let Me="";for(;Me.length<Oe;)Me+=u;return Me}}e.formatControlFlowGraph=gr})(B||(B={}));var s3=Date.now,Ad=()=>{},Yy=()=>{},cl,Ie=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyLine truncated
`,K=c;continue}c++}return B.assert(Se!==void 0),x=xe,Se}function Mt(R){let Q=c;if(c++,c>=W)return G(A.Unexpected_end_of_text),"";let K=V(c);switch(c++,K){case 48:if(c>=W||!mi(V(c)))return"\0";case 49:case 50:case 51:c<W&&xp(V(c))&&c++;case 52:case 53:case 54:case 55:if(c<W&&xp(V(c))&&c++,N|=2048,R&6){let we=parseInt(C.substring(Q+1,c),8);return R&4&&!(R&32)&&K!==48?G(A.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,Q,c-Q,"\\x"+we.toString(16).padStart(2,"0")):G(A.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,Q,c-Q,"\\x"+we.toString(16).padStart(2,"0")),String.fromCharCode(we)}return C.substring(Q,c);case 56:case 57:return N|=2048,R&6?(R&4&&!(R&32)?G(A.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,Q,c-Q):G(A.Escape_sequence_0_is_not_allowed,Q,c-Q,C.substring(Q,c)),String.fromCharCode(K)):C.substring(Q,c);case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(c<W&&V(c)===123){c-=2;let we=Fn(!!(R&6));return R&17||(N|=2048,R&6&&G(A.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,Q,c-Q)),we}for(;c<Q+6;c++)if(!(c<W&&Tp(V(c))))return N|=2048,R&6&&G(A.Hexadecimal_digit_expected),C.substring(Q,c);N|=1024;let xe=parseInt(C.substring(Q+2,c),16),Se=String.fromCharCode(xe);if(R&16&&xe>=55296&&xe<=56319&&c+6<W&&C.substring(c,c+2)==="\\u"&&V(c+2)!==123){let we=c,be=c+2;for(;be<we+6;be++)if(!Tp(V(be)))return Se;let We=parseInt(C.substring(we+2,be),16);if(We>=56320&&We<=57343)return c=be,Se+String.fromCharCode(We)}return Se;case 120:for(;c<Q+4;c++)if(!(c<W&&Tp(V(c))))return N|=2048,R&6&&G(A.Hexadecimal_digit_expected),C.substring(Q,c);return N|=4096,String.fromCharCode(parseInt(C.substring(Q+2,c),16));case 13:c<W&&V(c)===10&&c++;case 10:case 8232:case 8233:return"";default:return(R&16||R&4&&!(R&8)&&Dr(K,e))&&G(A.This_character_cannot_be_escaped_in_a_regular_expression,c-2,2),String.fromCharCode(K)}}function Fn(R){let Q=c;c+=3;let K=c,xe=Mn(1,!1),Se=xe?parseInt(xe,16):-1,we=!1;return Se<0?(R&&G(A.Hexadecimal_digit_expected),we=!0):Se>1114111&&(R&&G(A.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,K,c-K),we=!0),c>=W?(R&&G(A.Unexpected_end_of_text),we=!0):V(c)===125?c++:(R&&G(A.Unterminated_Unicode_escape_sequence),we=!0),we?(N|=2048,C.substring(Q,c)):(N|=8,Od(Se))}function Ln(){if(c+5<W&&V(c+1)===117){let R=c;c+=2;let Q=Tn(4,!1);return c=R,Q}return-1}function Lt(){if(ie(c+1)===117&&ie(c+2)===123){let R=c;c+=3;let Q=Mn(1,!1),K=Q?parseInt(Q,16):-1;return c=R,K}return-1}function vt(){let R="",Q=c;for(;c<W;){let K=ie(c);if(Dr(K,e))c+=zt(K);else if(K===92){if(K=Lt(),K>=0&&Dr(K,e)){R+=Fn(!0),Q=c;continue}if(K=Ln(),!(K>=0&&Dr(K,e)))break;N|=1024,R+=C.substring(Q,c),R+=Od(K),c+=6,Q=c}else break}return R+=C.substring(Q,c),R}function Qe(){let R=x.length;if(R>=2&&R<=12){let Q=x.charCodeAt(0);if(Q>=97&&Q<=122){let K=ag.get(x);if(K!==void 0)return g=K}}return g=80}function zn(R){let Q="",K=!1,xe=!1;for(;;){let Se=V(c);if(Se===95){N|=512,K?(K=!1,xe=!0):G(xe?A.Multiple_consecutive_numeric_separators_are_not_permitted:A.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(K=!0,!mi(Se)||Se-48>=R)break;Q+=C[c],c++,xe=!1}return V(c-1)===95&&G(A.Numeric_separators_are_not_allowed_here,c-1,1),Q}function $t(){return V(c)===110?(x+="n",N&384&&(x=Mb(x)+"n"),c++,10):(x=""+(N&128?parseInt(x.slice(2),2):N&256?parseInt(x.slice(2),8):+x),9)}function ct(){for(h=c,N=0;;){if(y=c,c>=W)return g=1;let R=ie(c);if(c===0&&R===35&&$m(C,c)){if(c=Qm(C,c),t)continue;return g=6}switch(R){case 10:case 13:if(N|=1,t){c++;continue}else return R===13&&c+1<W&&V(c+1)===10?c+=2:c++,g=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){c++;continue}else{for(;c<W&&a_(V(c));)c++;return g=5}case 33:return V(c+1)===61?V(c+2)===61?(c+=3,g=38):(c+=2,g=36):(c++,g=54);case 34:case 39:return x=ar(),g=11;case 96:return g=Or(!1);case 37:return V(c+1)===61?(c+=2,g=70):(c++,g=45);case 38:return V(c+1)===38?V(c+2)===61?(c+=3,g=77):(c+=2,g=56):V(c+1)===61?(c+=2,g=74):(c++,g=51);case 40:return c++,g=21;case 41:return c++,g=22;case 42:if(V(c+1)===61)return c+=2,g=67;if(V(c+1)===42)return V(c+2)===61?(c+=3,g=68):(c+=2,g=43);if(c++,ue&&(N&32768)===0&&N&1){N|=32768;continue}return g=42;case 43:return V(c+1)===43?(c+=2,g=46):V(c+1)===61?(c+=2,g=65):(c++,g=40);case 44:return c++,g=28;case 45:return V(c+1)===45?(c+=2,g=47):V(c+1)===61?(c+=2,g=66):(c++,g=41);case 46:return mi(V(c+1))?(rr(),g=9):V(c+1)===46&&V(c+2)===46?(c+=3,g=26):(c++,g=25);case 47:if(V(c+1)===47){for(c+=2;c<W&&!Pn(V(c));)c++;if(te=ln(te,C.slice(y,c),ug,y),t)continue;return g=2}if(V(c+1)===42){c+=2;let be=V(c)===42&&V(c+1)!==47,We=!1,et=y;for(;c<W;){let Ye=V(c);if(Ye===42&&V(c+1)===47){c+=2,We=!0;break}c++,Pn(Ye)&&(et=c,N|=1)}if(be&&at()&&(N|=2),te=ln(te,C.slice(et,c),pg,et),We||G(A.Asterisk_Slash_expected),t)continue;return We||(N|=4),g=3}return V(c+1)===61?(c+=2,g=69):(c++,g=44);case 48:if(c+2<W&&(V(c+1)===88||V(c+1)===120))return c+=2,x=Mn(1,!0),x||(G(A.Hexadecimal_digit_expected),x="0"),x="0x"+x,N|=64,g=$t();if(c+2<W&&(V(c+1)===66||V(c+1)===98))return c+=2,x=zn(2),x||(G(A.Binary_digit_expected),x="0"),x="0b"+x,N|=128,g=$t();if(c+2<W&&(V(c+1)===79||V(c+1)===111))return c+=2,x=zn(8),x||(G(A.Octal_digit_expected),x="0"),x="0o"+x,N|=256,g=$t();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return g=rr();case 58:return c++,g=59;case 59:return c++,g=27;case 60:if(Hi(C,c)){if(c=Ja(C,c,G),t)continue;return g=7}return V(c+1)===60?V(c+2)===61?(c+=3,g=71):(c+=2,g=48):V(c+1)===61?(c+=2,g=33):a===1&&V(c+1)===47&&V(c+2)!==42?(c+=2,g=31):(c++,g=30);case 61:if(Hi(C,c)){if(c=Ja(C,c,G),t)continue;return g=7}retuLine truncated
`)),o}function Wa(e){let t=e.emitNode;return t&&t.flags||0}function S2(e,t,a){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(a,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+a,e.length)}function ul(e){return e.kind===244&&e.expression.kind===11}function hf(e){return!!(Wa(e)&2097152)}function Fd(e){return hf(e)&&jf(e)}function w2(e){return Ze(e.name)&&!e.initializer}function zd(e){return hf(e)&&Qa(e)&&Yp(e.declarationList.declarations,w2)}function k2(e,t){let a=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Hp(xg(t,e.pos),Jp(t,e.pos)):Jp(t,e.pos);return Xr(a,o=>o.end<=e.end&&t.charCodeAt(o.pos+1)===42&&t.charCodeAt(o.pos+2)===42&&t.charCodeAt(o.pos+3)!==47)}function E2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function A2(e){return e&&e.kind===241&&mf(e.parent)}function Vd(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function ta(e){return!!e&&!!(e.flags&524288)}function C2(e){return!!e&&!!(e.flags&16777216)}function D2(e){for(;bl(e,!0);)e=e.right;return e}function P2(e){return Ze(e)&&e.escapedText==="exports"}function N2(e){return Ze(e)&&e.escapedText==="module"}function v1(e){return(dr(e)||T1(e))&&N2(e.expression)&&h_(e)==="exports"}function yf(e){let t=O2(e);return t===5||ta(e)?t:0}function I2(e){return r_(e.arguments)===3&&dr(e.expression)&&Ze(e.expression.expression)&&In(e.expression.expression)==="Object"&&In(e.expression.name)==="defineProperty"&&Al(e.arguments[1])&&m_(e.arguments[0],!0)}function T1(e){return $a(e)&&Al(e.argumentExpression)}function x_(e,t){return dr(e)&&(!t&&e.expression.kind===110||Ze(e.name)&&m_(e.expression,!0))||x1(e,t)}function x1(e,t){return T1(e)&&(!t&&e.expression.kind===110||xf(e.expression)||x_(e.expression,!0))}function m_(e,t){return xf(e)||x_(e,t)}function O2(e){if(Of(e)){if(!I2(e))return 0;let t=e.arguments[0];return P2(t)||v1(t)?8:x_(t)&&h_(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!C1(e.left)||M2(D2(e))?0:m_(e.left.expression,!0)&&h_(e.left)==="prototype"&&If(J2(e))?6:L2(e.left)}function M2(e){return p6(e)&&na(e.expression)&&e.expression.text==="0"}function gf(e){if(dr(e))return e.name;let t=vf(e.argumentExpression);return na(t)||El(t)?t:e}function h_(e){let t=gf(e);if(t){if(Ze(t))return t.escapedText;if(El(t)||na(t))return ja(t.text)}}function L2(e){if(e.expression.kind===110)return 4;if(v1(e))return 2;if(m_(e.expression,!0)){if(ub(e.expression))return 3;let t=e;for(;!Ze(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&h_(t)==="exports")&&x_(e))return 1;if(m_(e,!0)||$a(e)&&$2(e))return 5}return 0}function J2(e){for(;ea(e.right);)e=e.right;return e.right}function j2(e){return Pl(e)&&ea(e.expression)&&yf(e.expression)!==0&&ea(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function R2(e){switch(e.kind){case 243:let t=Bp(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Bp(e){return Qa(e)?Xp(e.declarationList.declarations):void 0}function U2(e){return wi(e)&&e.body&&e.body.kind===267?e.body:void 0}function bf(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function B2(e,t){let a;E2(e)&&h2(e)&&$i(e.initializer)&&(a=Nn(a,Wd(e,e.initializer.jsDoc)));let o=e;for(;o&&o.parent;){if($i(o)&&(a=Nn(a,Wd(e,o.jsDoc))),o.kind===169){a=Nn(a,(t?Mg:Og)(o));break}if(o.kind===168){a=Nn(a,(t?Jg:Lg)(o));break}o=F2(o)}return a||bt}function Wd(e,t){let a=Cy(t);return Dm(t,o=>{if(o===a){let m=Xr(o.tags,v=>q2(e,v));return o.tags===m?[o]:m}else return Xr(o.tags,k6)})}function q2(e,t){return!(zf(t)||D6(t))||!t.parent||!uh(t.parent)||!Dl(t.parent.parent)||t.parent.parent===e}function F2(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||U2(t)||bl(e))return t;if(t.parent&&(Bp(t.parent)===e||bl(t)))return t.parent;if(t.parent&&t.parent.parent&&(Bp(t.parent.parent)||R2(t.parent.parent)===e||j2(t.parent.parent)))return t.parent.parent}function vf(e,t){return Vf(e,t?-2147483647:1)}function z2(e){let t=V2(e);if(t&&ta(e)){let a=jg(e);if(a)return a.class}return t}function V2(e){let t=Tf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function W2(e){if(ta(e))return Rg(e).map(t=>t.cLine truncated
`,ee)+1)+4;function ne(Be){H||(H=X),Rn.push(Be),X+=Be.length}for(Fe();zi(5););zi(4)&&(O=0,X=0);e:for(;;){switch(u()){case 60:Na(Rn),pr||(pr=L()),de(q(X)),O=0,H=void 0;break;case 4:Rn.push(t.getTokenText()),O=0,X=0;break;case 42:let Be=t.getTokenText();O===1?(O=2,ne(Be)):(B.assert(O===0),O=1,X+=Be.length);break;case 5:B.assert(O!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let pt=t.getTokenText();H!==void 0&&X+pt.length>H&&Rn.push(pt.slice(H-X)),X+=pt.length;break;case 1:break e;case 82:O=2,ne(t.getTokenValue());break;case 19:O=2;let yn=t.getTokenFullStart(),on=t.getTokenEnd()-1,tn=s(on);if(tn){Zt||fr(Rn),Gr.push(P(h.createJSDocText(Rn.join("")),Zt??ee,yn)),Gr.push(tn),Rn=[],Zt=t.getTokenEnd();break}default:O=2,ne(t.getTokenText());break}O===2?sn(!1):Fe()}let re=Rn.join("").trimEnd();Gr.length&&re.length&&Gr.push(P(h.createJSDocText(re),Zt??ee,pr)),Gr.length&&Ae&&B.assertIsDefined(pr,"having parsed tags implies that the end of the comment span should be set");let Ne=Ae&&Ct(Ae,Yt,hn);return P(h.createJSDocComment(Gr.length?Ct(Gr,ee,pr):re.length?re:void 0,Ne),ee,Re)}function fr(O){for(;O.length&&(O[0]===`
`||O[0]==="\r");)O.shift()}function Na(O){for(;O.length;){let H=O[O.length-1].trimEnd();if(H==="")O.pop();else if(H.length<O[O.length-1].length){O[O.length-1]=H;break}else break}}function Zc(){for(;;){if(Fe(),u()===1)return!0;if(!(u()===5||u()===4))return!1}}function Ot(){if(!((u()===5||u()===4)&&Y(Zc)))for(;u()===5||u()===4;)Fe()}function kr(){if((u()===5||u()===4)&&Y(Zc))return"";let O=t.hasPrecedingLineBreak(),H=!1,X="";for(;O&&u()===42||u()===5||u()===4;)X+=t.getTokenText(),u()===4?(O=!0,H=!0,X=""):u()===42&&(O=!1),Fe();return H?X:""}function q(O){B.assert(u()===60);let H=t.getTokenStart();Fe();let X=pi(void 0),ne=kr(),re;switch(X.escapedText){case"author":re=Q0(H,X,O,ne);break;case"implements":re=Z0(H,X,O,ne);break;case"augments":case"extends":re=ey(H,X,O,ne);break;case"class":case"constructor":re=Fi(H,h.createJSDocClassTag,X,O,ne);break;case"public":re=Fi(H,h.createJSDocPublicTag,X,O,ne);break;case"private":re=Fi(H,h.createJSDocPrivateTag,X,O,ne);break;case"protected":re=Fi(H,h.createJSDocProtectedTag,X,O,ne);break;case"readonly":re=Fi(H,h.createJSDocReadonlyTag,X,O,ne);break;case"override":re=Fi(H,h.createJSDocOverrideTag,X,O,ne);break;case"deprecated":Gn=!0,re=Fi(H,h.createJSDocDeprecatedTag,X,O,ne);break;case"this":re=bd(H,X,O,ne);break;case"enum":re=iy(H,X,O,ne);break;case"arg":case"argument":case"param":return Kn(H,X,2,O);case"return":case"returns":re=H0(H,X,O,ne);break;case"template":re=Td(H,X,O,ne);break;case"type":re=yd(H,X,O,ne);break;case"typedef":re=ay(H,X,O,ne);break;case"callback":re=_y(H,X,O,ne);break;case"overload":re=oy(H,X,O,ne);break;case"satisfies":re=ty(H,X,O,ne);break;case"see":re=X0(H,X,O,ne);break;case"exception":case"throws":re=$0(H,X,O,ne);break;case"import":re=ny(H,X,O,ne);break;default:re=z(H,X,O,ne);break}return re}function n(O,H,X,ne){return ne||(X+=H-O),i(X,ne.slice(X))}function i(O,H){let X=L(),ne=[],re=[],Ne,Be=0,pt;function yn(Zn){pt||(pt=O),ne.push(Zn),O+=Zn.length}H!==void 0&&(H!==""&&yn(H),Be=1);let on=u();e:for(;;){switch(on){case 4:Be=0,ne.push(t.getTokenText()),O=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:B.assert(Be!==2&&Be!==3,"whitespace shouldn't come from the scanner while saving comment text");let Zn=t.getTokenText();pt!==void 0&&O+Zn.length>pt&&(ne.push(Zn.slice(pt-O)),Be=2),O+=Zn.length;break;case 19:Be=2;let el=t.getTokenFullStart(),Oa=t.getTokenEnd()-1,tl=s(Oa);tl?(re.push(P(h.createJSDocText(ne.join("")),Ne??X,el)),re.push(tl),ne=[],Ne=t.getTokenEnd()):yn(t.getTokenText());break;case 62:Be===3?Be=2:Be=3,yn(t.getTokenText());break;case 82:Be!==3&&(Be=2),yn(t.getTokenValue());break;case 42:if(Be===0){Be=1,O+=1;break}default:Be!==3&&(Be=2),yn(t.getTokenText());break}Be===2||Be===3?on=sn(Be===3):on=Fe()}fr(ne);let tn=ne.join("").trimEnd();if(re.length)return tn.length&&re.push(P(h.createJSDocText(tn),Ne??X)),Ct(re,X,t.getTokenEnd());if(tn.length)return tn}function s(O){let H=pe(f);if(!H)return;Fe(),Ot();let X=l(),ne=[];for(;u()!==20&&u()!==4&&u()!==1;)ne.push(t.getTokenText()),Fe();let re=H==="link"?h.createJSDocLink:H==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return P(re(X,ne.join("")),O,t.getTokenEnd())}function l(){if(wt(u())){let O=L(),H=Rt();for(;Le(25);)H=P(h.createQualifiedName(H,u()===81?Gt(80,!1):Rt()),O);for(;u()===81;)It(),Fe(),H=P(h.createJSDocMemberName(H,St()),O);return H}}function f(){if(kr(),u()===19&&Fe()===60&&wt(Fe())){let O=t.getTokenValue();if(S(O))return O}}function S(O){return O==="link"||O==="linkcode"||O==="linkplain"}function z(O,H,X,ne){return P(h.createJSDocUnknownTag(H,n(O,L(),X,ne)),O)}function de(O){O&&(Ae?Ae.push(O):(Ae=[O],Yt=O.pos),hn=O.end)}function Ue(){return kr(),u()===19?d():void 0}function en(){let O=zi(23);O&&Ot();let H=zi(62),X=dy();return H&&Fl(62),O&&(Ot(),ft(64)&&Et(),j(24)),{name:X,isBracketed:O}}function An(O){switch(O.kind){case 151:return!0;case 188:return An(O.elementType);default:return Df(O)&&Ze(O.typeName)&&O.typeName.escapedText==="Object"&&!O.typeArguments}}function Kn(O,H,X,ne){let re=Ue(),Ne=!re;kr();let{name:Be,isBracketed:pt}=en(),yn=kr();Ne&&!Y(f)&&(re=Ue());let on=n(O,L(),ne,yn),tn=Ia(re,Be,X,ne);tn&&(re=tn,Ne=!0);let Zn=X===1?h.createJSDocPropertyTag(H,Be,pt,re,Ne,on):h.createJSDocParameterTag(H,Be,pt,re,Ne,on);return P(Zn,O)}function Ia(O,H,X,ne){if(O&&An(O.type)){let re=L(),Ne,Be;for(;Ne=pe(()=>yp(X,ne,H));)Ne.kind===341||Ne.kind===348?Be=Dn(Be,Ne):Ne.kind===345&&un(Ne.tagName,A.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Be){let pt=P(h.createJSDocTypeLiteral(Be,O.type.kind===188),re);return P(h.createJSDocTypeExpression(pt),re)}}}function H0(O,H,X,ne){nn(Ae,A6)&&rt(H.pos,t.getTokenStart(),A._0_tag_already_specified,f_(H.escapedText));let re=Ue();return P(h.createJSDocReturnTag(H,re,n(O,L(),X,ne)),O)}function yd(O,H,X,ne){nn(Ae,zf)&&rt(H.pos,t.getTokenStart(),A._0_tag_already_specified,f_(H.escapedText));let re=d(!0),Ne=X!==void 0&&ne!==void 0?n(O,L(),X,ne):void 0;return P(h.createJSDocTypeTag(H,re,Ne),O)}fLine truncated
`&&m[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=My();return this.forEachChild(m),e;function t(v){let E=o(v);E&&e.add(E,v)}function a(v){let E=e.get(v);return E||e.set(v,E=[]),E}function o(v){let E=lf(v);return E&&(kf(E)&&dr(E.expression)?E.expression.name.text:u1(E)?getNameFromPropertyName(E):void 0)}function m(v){switch(v.kind){case 262:case 218:case 174:case 173:let E=v,C=o(E);if(C){let h=a(C),y=Fa(h);y&&E.parent===y.parent&&E.symbol===y.symbol?E.body&&!y.body&&(h[h.length-1]=E):h.push(E)}Ht(v,m);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(v),Ht(v,m);break;case 169:if(!S_(v,31))break;case 260:case 208:{let h=v;if(a2(h.name)){Ht(h.name,m);break}h.initializer&&m(h.initializer)}case 306:case 172:case 171:t(v);break;case 278:let c=v;c.exportClause&&(ih(c.exportClause)?qn(c.exportClause.elements,m):m(c.exportClause.name));break;case 272:let W=v.importClause;W&&(W.name&&t(W.name),W.namedBindings&&(W.namedBindings.kind===274?t(W.namedBindings):qn(W.namedBindings.elements,m)));break;case 226:yf(v)!==0&&t(v);default:Ht(v,m)}}}},dv=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return Hm(this,e)}};function mv(){return{getNodeConstructor:()=>Gf,getTokenConstructor:()=>xh,getIdentifierConstructor:()=>Sh,getPrivateIdentifierConstructor:()=>wh,getSourceFileConstructor:()=>fv,getSymbolConstructor:()=>lv,getTypeConstructor:()=>uv,getSignatureConstructor:()=>pv,getSourceMapSourceConstructor:()=>dv}}var hv=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],R3=[...hv,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];Tb(mv());var Ml=new Proxy({},{get:()=>!0});var Ch=Ml["4.8"];function nr(e,t=!1){var a;if(e!=null){if(Ch){if(t||Ol(e)){let o=i1(e);return o?[...o]:void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!Cl(o))}}function ra(e,t=!1){var a;if(e!=null){if(Ch){if(t||Wf(e)){let o=uf(e);return o?[...o]:void 0}return}return(a=e.decorators)==null?void 0:a.filter(Cl)}}var Ph={};var Ll=new Proxy({},{get:(e,t)=>t});var Nh=Ll,Ih=Ll;var D=Nh,Dt=Ih;var Oh=Ml["5.0"],le=Ie,bv=new Set([le.AmpersandAmpersandToken,le.BarBarToken,le.QuestionQuestionToken]),vv=new Set([Ie.AmpersandAmpersandEqualsToken,Ie.AmpersandEqualsToken,Ie.AsteriskAsteriskEqualsToken,Ie.AsteriskEqualsToken,Ie.BarBarEqualsToken,Ie.BarEqualsToken,Ie.CaretEqualsToken,Ie.EqualsToken,Ie.GreaterThanGreaterThanEqualsToken,Ie.GreaterThanGreaterThanGreaterThanEqualsToken,Ie.LessThanLessThanEqualsToken,Ie.MinusEqualsToken,Ie.PercentEqualsToken,Ie.PlusEqualsToken,Ie.QuestionQuestionEqualsToken,Ie.SlashEqualsToken]),Tv=new Set([le.AmpersandAmpersandToken,le.AmpersandToken,le.AsteriskAsteriskToken,le.AsteriskToken,le.BarBarToken,le.BarToken,le.CaretToken,le.EqualsEqualsEqualsToken,le.EqualsEqualsToken,le.ExclamationEqualsEqualsToken,le.ExclamationEqualsToken,le.GreaterThanEqualsToken,le.GreaterThanGreaterThanGreaterThanToken,le.GreaterThanGreaterThanToken,le.GreaterThanToken,le.InKeyword,le.InstanceOfKeyword,le.LessThanEqualsToken,le.LessThanLessThanToken,le.LessThanToken,le.MinusToken,le.PercentToken,le.PlusToken,le.SlashToken]);function xv(e){return vv.has(e.kind)}function Sv(e){return bv.has(e.kind)}function wv(e){return Tv.has(e.kind)}function Zr(e){return it(e)}function Mh(e){return e.kind!==le.SemicolonClassElement}function He(e,t){let a=nr(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function Lh(e){let t=nr(e);return t==null?null:t[t.length-1]??null}function Jh(e){return e.kind===le.CommaToken}function kv(e){return e.kind===le.SingleLineCommentTrivia||e.kind===le.MultiLineCommentTrivia}function Ev(e){return e.kind===le.JSDocComment}function jh(e){if(xv(e))return{type:D.AssignmentExpression,operator:Zr(e.kind)};if(Sv(e))return{type:D.LogicalExpression,operator:Zr(e.kind)};if(wv(e))return{type:D.BinaryExpression,operator:Zr(e.kind)};throw new Error(`Unexpected binary operator ${it(e.kind)}`)}function k_(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,lLine truncated
`);return t.length>1&&t.every(a=>a.trimStart()[0]==="*")}var ld=new WeakMap;function M4(e){return ld.has(e)||ld.set(e,O4(e)),ld.get(e)}var ud=M4;function L4(e){if(e.length<2)return;let t;for(let a=e.length-1;a>=0;a--){let o=e[a];if(t&&Xt(o)===cn(t)&&ud(o)&&ud(t)&&(e.splice(a+1,1),o.value+="*//*"+t.value,o.range=[cn(o),Xt(t)]),!od(o)&&!sa(o))throw new TypeError(`Unknown comment type: "${o.type}".`);t=o}}var S0=L4;var A_=null;function C_(e){if(A_!==null&&typeof A_.property){let t=A_;return A_=C_.prototype=null,t}return A_=C_.prototype=e??Object.create(null),new C_}var J4=10;for(let e=0;e<=J4;e++)C_();function pd(e){return C_(e)}function j4(e,t="type"){pd(e);function a(o){let m=o[t],v=e[m];if(!Array.isArray(v))throw Object.assign(new Error(`Missing visitor keys for '${m}'.`),{node:o});return v}return a}var w0=j4;var k0={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","typeParameters","typeArguments","arguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","typeParameters","typeArguments","arguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["decorators","key","value"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","typeParameters","typeArguments","arguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],ImportAttribute:["key","value"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["iLine truncated
`;e=Er(!1,e.replace(q4,"").replace(B4,""),W4,"$1");let a="";for(;a!==e;)a=e,e=Er(!1,e,V4,`${t}$1 $2${t}`);e=e.replace(N0,"").trimEnd();let o=Object.create(null),m=Er(!1,e,I0,"").replace(N0,"").trimEnd(),v;for(;v=I0.exec(e);){let E=Er(!1,v[2],z4,"");if(typeof o[v[1]]=="string"||Array.isArray(o[v[1]])){let C=o[v[1]];o[v[1]]=[...G4,...Array.isArray(C)?C:[C],E]}else o[v[1]]=E}return{comments:m,pragmas:o}}var L0=["noformat","noprettier"],J0=["format","prettier"];function Y4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}var j0=Y4;function R0(e){let t=j0(e);t&&(e=e.slice(t.length+1));let a=O0(e),{pragmas:o,comments:m}=M0(a);return{shebang:t,text:e,pragmas:o,comments:m}}function U0(e){let{pragmas:t}=R0(e);return J0.some(a=>Object.prototype.hasOwnProperty.call(t,a))}function B0(e){let{pragmas:t}=R0(e);return L0.some(a=>Object.prototype.hasOwnProperty.call(t,a))}function H4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:U0,hasIgnorePragma:B0,locStart:cn,locEnd:Xt,...e}}var q0=H4;var F0=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function X4(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var z0=X4;var V0="module",W0="script",G0=[V0,W0];function Y0(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return V0;if(/\.(?:cjs|cts)$/iu.test(e))return W0}}var $4={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function Q4(e){let{message:t,location:a}=e;if(!a)return e;let{start:o,end:m}=a;return y0(t,{loc:{start:{line:o.line,column:o.column+1},end:{line:m.line,column:m.column+1}},cause:e})}var K4=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function Z4(e,t){let a=[{...$4,filePath:t}],o=Y0(t);if(o?a=a.map(v=>({...v,sourceType:o})):a=G0.flatMap(v=>a.map(E=>({...E,sourceType:v}))),K4(t))return a;let m=F0.test(e);return[m,!m].flatMap(v=>a.map(E=>({...E,jsx:v})))}function e3(e,t){let a=t==null?void 0:t.filepath;typeof a!="string"&&(a=void 0);let o=z0(e),m=Z4(e,a),v;try{v=g0(m.map(E=>()=>h0(o,E)))}catch({errors:[E]}){throw Q4(E)}return P0(v,{parser:"typescript",text:e})}var t3=q0(e3);var r9=hd;export{r9 as default,md as parsers};
@@ -0,0 +1,19 @@
import { DateInput } from './types';
/**
* Calculates the difference in minutes between two dates.
* 计算两个日期之间的分钟差
*
* @param date - The first date to compare.
* @param input - The second date to compare.
* @param asFloat - Whether to return the result as a float.
* @returns The difference in minutes between the two dates.
* @example
* ```ts
* diffInMinutes(new Date(), new Date()); // 0
* diffInMinutes(new Date(), new Date(Date.now() + 1000 * 60)); // 1
* diffInMinutes(new Date(), new Date(Date.now() - 1000 * 60)); // -1
* diffInMinutes(new Date(), new Date(Date.now() + 1000 * 60 * 60 * 24)); // 1440
* diffInMinutes(new Date(), new Date(Date.now() - 1000 * 60 * 60 * 24)); // -1440
* ```
*/
export default function diffInMinutes(date: Date, input: DateInput, asFloat?: boolean): number;
@@ -0,0 +1 @@
{"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../src/config/flat/typescript.ts"],"names":[],"mappings":"AAYA,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAU,CAAA;AAErE,MAAM,aAAa,GAAG;IACpB,GAAG,oBAAoB;IACvB,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;CACE,CAAA;AAEV,eAAe;IACb,QAAQ,EAAE;QACR,qBAAqB,EAAE,aAAa;QACpC,kCAAkC,EAAE,CAAC,cAAc,EAAE,qBAAqB,CAAC;QAC3E,kBAAkB,EAAE;YAClB,2BAA2B,EAAE,CAAC,GAAG,oBAAoB,CAAC;SACvD;QACD,mBAAmB,EAAE;YACnB,UAAU,EAAE,IAAI;SACjB;KACF;IACD,KAAK,EAAE;QAIL,gBAAgB,EAAE,KAAK;KACxB;CAC6B,CAAA"}
@@ -0,0 +1,39 @@
// Malay [ms-my]
import dayjs from '../index';
var locale = {
name: 'ms-my',
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
weekStart: 1,
weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
ordinal: function ordinal(n) {
return n;
},
formats: {
LT: 'HH.mm',
LTS: 'HH.mm.ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY [pukul] HH.mm',
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
},
relativeTime: {
future: 'dalam %s',
past: '%s yang lepas',
s: 'beberapa saat',
m: 'seminit',
mm: '%d minit',
h: 'sejam',
hh: '%d jam',
d: 'sehari',
dd: '%d hari',
M: 'sebulan',
MM: '%d bulan',
y: 'setahun',
yy: '%d tahun'
}
};
dayjs.locale(locale, null, true);
export default locale;
@@ -0,0 +1,8 @@
import type { TSESLint } from '@typescript-eslint/utils';
export type Options = [
{
checkNever: boolean;
}
];
declare const _default: TSESLint.RuleModule<"meaninglessVoidOperator" | "removeVoid", Options, import("../../rules").ESLintPluginDocs, TSESLint.RuleListener>;
export default _default;
@@ -0,0 +1,22 @@
import { HTMLHeroUIProps } from '@heroui/system';
import { TableBodyProps as TableBodyProps$1 } from '@react-types/table';
import { ReactNode } from 'react';
interface TableBodyProps<T> extends TableBodyProps$1<T>, Omit<HTMLHeroUIProps<"tbody">, keyof TableBodyProps$1<T>> {
/**
* Provides content to display a loading component when the `loadingState` is `loading` or `loadingMore`.
*/
loadingContent?: ReactNode;
/**
* Whether the table data is currently loading.
* @default false
*/
isLoading?: boolean;
/**
* Provides content to display when there are no rows in the table.
* */
emptyContent?: ReactNode;
}
declare const TableBody: <T>(props: TableBodyProps<T>) => JSX.Element;
export { type TableBodyProps, TableBody as default };
@@ -0,0 +1,126 @@
#!/usr/bin/env node
'use strict';
/*eslint-disable no-console*/
var fs = require('fs');
var argparse = require('argparse');
var yaml = require('..');
////////////////////////////////////////////////////////////////////////////////
var cli = new argparse.ArgumentParser({
prog: 'js-yaml',
add_help: true
});
cli.add_argument('-v', '--version', {
action: 'version',
version: require('../package.json').version
});
cli.add_argument('-c', '--compact', {
help: 'Display errors in compact mode',
action: 'store_true'
});
// deprecated (not needed after we removed output colors)
// option suppressed, but not completely removed for compatibility
cli.add_argument('-j', '--to-json', {
help: argparse.SUPPRESS,
dest: 'json',
action: 'store_true'
});
cli.add_argument('-t', '--trace', {
help: 'Show stack trace on error',
action: 'store_true'
});
cli.add_argument('file', {
help: 'File to read, utf-8 encoded without BOM',
nargs: '?',
default: '-'
});
////////////////////////////////////////////////////////////////////////////////
var options = cli.parse_args();
////////////////////////////////////////////////////////////////////////////////
function readFile(filename, encoding, callback) {
if (options.file === '-') {
// read from stdin
var chunks = [];
process.stdin.on('data', function (chunk) {
chunks.push(chunk);
});
process.stdin.on('end', function () {
return callback(null, Buffer.concat(chunks).toString(encoding));
});
} else {
fs.readFile(filename, encoding, callback);
}
}
readFile(options.file, 'utf8', function (error, input) {
var output, isYaml;
if (error) {
if (error.code === 'ENOENT') {
console.error('File not found: ' + options.file);
process.exit(2);
}
console.error(
options.trace && error.stack ||
error.message ||
String(error));
process.exit(1);
}
try {
output = JSON.parse(input);
isYaml = false;
} catch (err) {
if (err instanceof SyntaxError) {
try {
output = [];
yaml.loadAll(input, function (doc) { output.push(doc); }, {});
isYaml = true;
if (output.length === 0) output = null;
else if (output.length === 1) output = output[0];
} catch (e) {
if (options.trace && err.stack) console.error(e.stack);
else console.error(e.toString(options.compact));
process.exit(1);
}
} else {
console.error(
options.trace && err.stack ||
err.message ||
String(err));
process.exit(1);
}
}
if (isYaml) console.log(JSON.stringify(output, null, ' '));
else console.log(yaml.dump(output));
});
@@ -0,0 +1,8 @@
export const PatternBoolean = '(true|false)';
export const PatternNumber = '(0|[1-9][0-9]*)';
export const PatternString = '(.*)';
export const PatternNever = '(?!.*)';
export const PatternBooleanExact = `^${PatternBoolean}$`;
export const PatternNumberExact = `^${PatternNumber}$`;
export const PatternStringExact = `^${PatternString}$`;
export const PatternNeverExact = `^${PatternNever}$`;
@@ -0,0 +1,3 @@
export * as KindGuard from './kind';
export * as TypeGuard from './type';
export * as ValueGuard from './value';
@@ -0,0 +1,7 @@
import { resolve } from 'node:path';
import url from 'node:url';
const rootDir = resolve(url.fileURLToPath(import.meta.url), "../../");
const distDir = resolve(url.fileURLToPath(import.meta.url), "../../dist");
export { distDir, rootDir };
@@ -0,0 +1 @@
{"name":"axe-core","version":"4.11.0","requiresBuild":false,"files":{"LICENSE":{"checkedAt":1794532118097,"integrity":"sha512-3HEmOO8y0jwqlfKVZLahXVGYBmA4dWDkqDPwNXLj7tGgUg5XCmezSEfeMvjw6whTN+Qxv1DwwIZGi+PYA4OSEg==","mode":420,"size":15921},"axe.js":{"checkedAt":1794532118100,"integrity":"sha512-Vx3XYsc/JLs+j8JSYiKPuBYBm+MxwtSpyXLC0MxlWWKhgHXzGO32XItEUtLmvq4iH4OVmv1Kw7m22seyUcS0dQ==","mode":420,"size":1257439},"axe.min.js":{"checkedAt":1794532118102,"integrity":"sha512-CevQHsfnMgdy60JFo75umdiKKbfu04Dq+XX8xDXR6g3KBGxGN5t7HTWJoDx/Fk/keWs6VhG0zlC5RZt4SKNsqw==","mode":420,"size":559816},"locales/_template.json":{"checkedAt":1794532118102,"integrity":"sha512-W0FdOFKkmzwb8LjK6IIVLmbaE+blOxHHyrqnnT6+3GPWdppIKTt3TNdG0CbOK+sweuQn0bYrrt8jTzf1c/eoKg==","mode":420,"size":58457},"locales/da.json":{"checkedAt":1794532118102,"integrity":"sha512-atoFhiM7SELuqrfVxsb763P9uL755omKH8iNsSEjPvjm305eWa/XfA2OESPTgtlz3Upd+b7sjq5YaD6xxBOMlQ==","mode":420,"size":34953},"locales/de.json":{"checkedAt":1794532118102,"integrity":"sha512-aPF6kiqc9tP6mJSd1rGqGvaNqypLAACPZZIp3GT/5O9vfBT86aufJjJWIybj/xjQmTbNqmYZNJ7HKhckm0O5kQ==","mode":420,"size":68991},"locales/el.json":{"checkedAt":1794532118103,"integrity":"sha512-jT2kav9L8K1MIIkSj9V5bAnawY80LrudftBtCnNNsQHg5J5jIYsqaWThP0c8IrM/u0HELfaeUbjuGnTlFmNUJQ==","mode":420,"size":94427},"locales/es.json":{"checkedAt":1794532118103,"integrity":"sha512-xndF1gdCbHf0aiuEeFdLV39v+Uu9//3sH4pG3Ytw/xawBQojMR24etX9/bHqMhkeHHoIrQ473mUVyiODA53VLg==","mode":420,"size":42024},"locales/eu.json":{"checkedAt":1794532118103,"integrity":"sha512-eZPChSFXBH6ln81tAvMoq3YLukdG071UvvWAfEu2UASyqhcBO4C7BdPJnRxnVqvbPljlFBMe6ElV85u0JpEMCQ==","mode":420,"size":40694},"locales/fr.json":{"checkedAt":1794532118104,"integrity":"sha512-nsiE3GC/nQJjx+FYdTMoAtViXHdI0OktyZKZ5s4f4In18/2uQ/Yte7YB5II6qSJScHVidT3jSyjFUifG1gZUbg==","mode":420,"size":57446},"locales/he.json":{"checkedAt":1794532118104,"integrity":"sha512-ixeWf2BWZJuNDCeQWGnogwzORF0KsOScdBLC3s0qTKowNjpUyqf6Ucn6t21wuCevGbowz5YvSdtlGwRJdDbdyA==","mode":420,"size":61686},"locales/it.json":{"checkedAt":1794532118104,"integrity":"sha512-SXu2nIiDl0/QrvY9vasKvC2NLrt5PVhrhbHJ2YLW15LmuTsS4kSL/Wy1V0ID8ZPT4lo5ti0DvBu/9dkWiZ0kXA==","mode":420,"size":66127},"locales/ja.json":{"checkedAt":1794532118105,"integrity":"sha512-v2u3a+ZZRHHBL/DfVyzpQk2UifP/UNNZ6Tqp4x39nojk1D6KUYaYJODFEWvhEiMC1q+lmz/5g00TBmcwk5Mx1A==","mode":420,"size":76978},"locales/ko.json":{"checkedAt":1794532118105,"integrity":"sha512-YyG3BKOfPWqkEjUa0bOzh8wGWwIF43t/a/JdzhxivIlRkgFbSUlGF1V1vx7Gb94r+iDkcagg18Vn5TfLXL28tg==","mode":420,"size":64687},"locales/nl.json":{"checkedAt":1794532118105,"integrity":"sha512-1M6ngMAwYGMfUS/kfH27dNCDDGMpLiZVmjXTXhjhlZsmidjCg6U9LchuCQr5rWYLz29pr4fpF1gV8FJZzMyiFA==","mode":420,"size":2669},"locales/no_NB.json":{"checkedAt":1794532118106,"integrity":"sha512-weXbbbtPkbO2jvcVBn57Wi7x9M4Ky3AFHbNP+iWuj8KWLZmx3ztTFhgCLJ8IBT4Fw7sFhrtJuyxZkFeOpAswJg==","mode":420,"size":35084},"package.json":{"checkedAt":1794532118106,"integrity":"sha512-zdwzZ+FnW5i+kEyYIhl2TjhxS43DABUDsM6EYajEqH4GkPtFNr87VqaM9P2Vg/tpBmsAjtYJmOMK6Dd4EzQtVw==","mode":420,"size":6821},"locales/pl.json":{"checkedAt":1794532118106,"integrity":"sha512-8KJLAFTczYbdN+p3G0XoeSM5hg6PSAbzydvpC5HHzmn72A2k/fkVEp/udfgvCPF1IVZnU+6IwUPK8BckY9pwGA==","mode":420,"size":62591},"locales/pt_BR.json":{"checkedAt":1794532118106,"integrity":"sha512-5LC+1vbbYAWxmIW7rll54E5k0+1E2n5GChsGpvAaN6OPBDSXEQ5rjTo5s8fCN0VrgIktkGX5yCRd+btTpHwEow==","mode":420,"size":51645},"locales/pt_PT.json":{"checkedAt":1794532118106,"integrity":"sha512-1d+Ta6d/N9VIwG6dKgz+Tw2TcOaZEA662myGiCWjzGqMqKgF/KiEjFjMU+6DOP/bXygBd+Lbe8FBpAFNw6UPXA==","mode":420,"size":64302},"locales/ru.json":{"checkedAt":1794532118107,"integrity":"sha512-A5xgEp/1uOncVEaxnRHbpJtdA7nfTVkdw/zwCLIhmfwmzz7uxd9nu2gjv65UPwKdj3vRyUKuatu0lipGqJr1uw==","mode":420,"size":91587},"sri-history.json":{"checkedAt":1794532118107,"integrity":"sha512-h4UrdHc7iuUpdSQq5vebPU1xzgt3rEl+5D0saz/SxDM1c3ZywzkU2jbf1jVxjCrF6U+BoVJxw4GxmoskbIIO7Q==","mode":420,"size":15953},"locales/zh_CN.json":{"checkedAt":1794532118107,"integrity":"sha512-/i9ErAazz1/ENzEfgVxqUi62nTyjgCpTQK4IybdaOa6homurrfXamAX/3J8ZKa4AKOsvMcpYQcxZDoolXWnLpQ==","mode":420,"size":52826},"locales/zh_TW.json":{"checkedAt":1794532118107,"integrity":"sha512-aaEDqD1I9590kcNE0UqkT6oeIZe8B6qhulwoL7eEq9jCMZTaCZYAaFe/ALDZpWIV1xuRluz792kQGIIh2wKc3g==","mode":420,"size":52195},"locales/README.md":{"checkedAt":1794532118107,"integrity":"sha512-o6NuDwPxKDlbGsf9wUJNJEYfrizASFkFuPTR5aJ7hLD87OPZ2mtofw+kISi6v+DrCY2yO2kV0G9j3nFhRy6uHg==","mode":420,"size":1034},"README.md":{"checkedAt":1794532118107,"integrity":"sha512-py2/lI4NFhlDcFMOmZHym37NUQvfc08LEDTkhsralkrkwOxrmvwRfOc9j81oUSNNL3SAuhxBHs0moUBUW4kkHQ==","mode":420,"size":10463},"axe.d.ts":{"checkedAt":1794532118108,"integrity":"sha512-/Fqj06hPY/V5mR9yLf1EA7lyOV9IKuJ/02Vn5Fm6nBKCNuro+tWSJIJ6U3/txUvFdmHlNqppNLLMAVlqfGlCww==","mode":420,"size":18774},"LICENSE-3RD-PARTY.txt":{"checkedAt":1794532118108,"integrity":"sha512-DuaVOdkfbuXbLine truncated
@@ -0,0 +1,8 @@
var $b983974c2ee1efb3$exports = {};
$b983974c2ee1efb3$exports = {
"dismiss": `Odstranit`
};
export {$b983974c2ee1efb3$exports as default};
//# sourceMappingURL=cs-CZ.module.js.map
@@ -0,0 +1,16 @@
/**
* @file woff数组转base64编码
* @author mengke01(kekee000@gmail.com)
*/
import bytes2base64 from './util/bytes2base64';
/**
* woff数组转base64编码
*
* @param {Array} arrayBuffer ArrayBuffer对象
* @return {string} base64编码
*/
export default function woff2base64(arrayBuffer) {
return 'data:font/woff;charset=utf-8;base64,' + bytes2base64(arrayBuffer);
}
@@ -0,0 +1,262 @@
[![npm version](https://img.shields.io/npm/v/espree.svg)](https://www.npmjs.com/package/espree)
[![npm downloads](https://img.shields.io/npm/dm/espree.svg)](https://www.npmjs.com/package/espree)
[![Build Status](https://github.com/eslint/js/workflows/CI/badge.svg)](https://github.com/js/espree/actions)
[![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=9348450)](https://www.bountysource.com/trackers/9348450-eslint?utm_source=9348450&utm_medium=shield&utm_campaign=TRACKER_BADGE)
# Espree
Espree started out as a fork of [Esprima](http://esprima.org) v1.2.2, the last stable published released of Esprima before work on ECMAScript 6 began. Espree is now built on top of [Acorn](https://github.com/ternjs/acorn), which has a modular architecture that allows extension of core functionality. The goal of Espree is to produce output that is similar to Esprima with a similar API so that it can be used in place of Esprima.
## Usage
Install:
```
npm i espree
```
To use in an ESM file:
```js
import * as espree from "espree";
const ast = espree.parse(code);
```
To use in a Common JS file:
```js
const espree = require("espree");
const ast = espree.parse(code);
```
## API
### `parse()`
`parse` parses the given code and returns a abstract syntax tree (AST). It takes two parameters.
- `code` [string]() - the code which needs to be parsed.
- `options (Optional)` [Object]() - read more about this [here](#options).
```js
import * as espree from "espree";
const ast = espree.parse(code);
```
**Example :**
```js
const ast = espree.parse('let foo = "bar"', { ecmaVersion: 6 });
console.log(ast);
```
<details><summary>Output</summary>
<p>
```
Node {
type: 'Program',
start: 0,
end: 15,
body: [
Node {
type: 'VariableDeclaration',
start: 0,
end: 15,
declarations: [Array],
kind: 'let'
}
],
sourceType: 'script'
}
```
</p>
</details>
### `tokenize()`
`tokenize` returns the tokens of a given code. It takes two parameters.
- `code` [string]() - the code which needs to be parsed.
- `options (Optional)` [Object]() - read more about this [here](#options).
Even if `options` is empty or undefined or `options.tokens` is `false`, it assigns it to `true` in order to get the `tokens` array
**Example :**
```js
import * as espree from "espree";
const tokens = espree.tokenize('let foo = "bar"', { ecmaVersion: 6 });
console.log(tokens);
```
<details><summary>Output</summary>
<p>
```
Token { type: 'Keyword', value: 'let', start: 0, end: 3 },
Token { type: 'Identifier', value: 'foo', start: 4, end: 7 },
Token { type: 'Punctuator', value: '=', start: 8, end: 9 },
Token { type: 'String', value: '"bar"', start: 10, end: 15 }
```
</p>
</details>
### `version`
Returns the current `espree` version
### `VisitorKeys`
Returns all visitor keys for traversing the AST from [eslint-visitor-keys](https://github.com/eslint/js/tree/main/packages/eslint-visitor-keys)
### `latestEcmaVersion`
Returns the latest ECMAScript supported by `espree`
### `supportedEcmaVersions`
Returns an array of all supported ECMAScript versions
## Options
```js
const options = {
// attach range information to each node
range: false,
// attach line/column location information to each node
loc: false,
// create a top-level comments array containing all comments
comment: false,
// create a top-level tokens array containing all tokens
tokens: false,
// Set to 3, 5 (the default), 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 or 17 to specify the version of ECMAScript syntax you want to use.
// You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11), 2021 (same as 12), 2022 (same as 13), 2023 (same as 14), 2024 (same as 15), 2025 (same as 16) or 2026 (same as 17) to use the year-based naming.
// You can also set "latest" to use the most recently supported version.
ecmaVersion: 3,
allowReserved: true, // only allowed when ecmaVersion is 3
// specify which type of script you're parsing ("script", "module", or "commonjs")
sourceType: "script",
// specify additional language features
ecmaFeatures: {
// enable JSX parsing
jsx: false,
// enable return in global scope (set to true automatically when sourceType is "commonjs")
globalReturn: false,
// enable implied strict mode (if ecmaVersion >= 5)
impliedStrict: false
}
}
```
## Esprima Compatibility Going Forward
The primary goal is to produce the exact same AST structure and tokens as Esprima, and that takes precedence over anything else. (The AST structure being the [ESTree](https://github.com/estree/estree) API with JSX extensions.) Separate from that, Espree may deviate from what Esprima outputs in terms of where and how comments are attached, as well as what additional information is available on AST nodes. That is to say, Espree may add more things to the AST nodes than Esprima does but the overall AST structure produced will be the same.
Espree may also deviate from Esprima in the interface it exposes.
## Contributing
Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/js/issues).
Espree is licensed under a permissive BSD 2-clause license.
## Security Policy
We work hard to ensure that Espree is safe for everyone and that security issues are addressed quickly and responsibly. Read the full [security policy](https://github.com/eslint/.github/blob/master/SECURITY.md).
## Build Commands
* `npm test` - run all tests
* `npm run lint` - run all linting
## Differences from Espree 2.x
* The `tokenize()` method does not use `ecmaFeatures`. Any string will be tokenized completely based on ECMAScript 6 semantics.
* Trailing whitespace no longer is counted as part of a node.
* `let` and `const` declarations are no longer parsed by default. You must opt-in by using an `ecmaVersion` newer than `5` or setting `sourceType` to `module`.
* The `esparse` and `esvalidate` binary scripts have been removed.
* There is no `tolerant` option. We will investigate adding this back in the future.
## Known Incompatibilities
In an effort to help those wanting to transition from other parsers to Espree, the following is a list of noteworthy incompatibilities with other parsers. These are known differences that we do not intend to change.
### Esprima 1.2.2
* Esprima counts trailing whitespace as part of each AST node while Espree does not. In Espree, the end of a node is where the last token occurs.
* Espree does not parse `let` and `const` declarations by default.
* Error messages returned for parsing errors are different.
* There are two addition properties on every node and token: `start` and `end`. These represent the same data as `range` and are used internally by Acorn.
### Esprima 2.x
* Esprima 2.x uses a different comment attachment algorithm that results in some comments being added in different places than Espree. The algorithm Espree uses is the same one used in Esprima 1.2.2.
## Frequently Asked Questions
### Why another parser
[ESLint](http://eslint.org) had been relying on Esprima as its parser from the beginning. While that was fine when the JavaScript language was evolving slowly, the pace of development increased dramatically and Esprima had fallen behind. ESLint, like many other tools reliant on Esprima, has been stuck in using new JavaScript language features until Esprima updates, and that caused our users frustration.
We decided the only way for us to move forward was to create our own parser, bringing us inline with JSHint and JSLint, and allowing us to keep implementing new features as we need them. We chose to fork Esprima instead of starting from scratch in order to move as quickly as possible with a compatible API.
With Espree 2.0.0, we are no longer a fork of Esprima but rather a translation layer between Acorn and Esprima syntax. This allows us to put work back into a community-supported parser (Acorn) that is continuing to grow and evolve while maintaining an Esprima-compatible parser for those utilities still built on Esprima.
### Have you tried working with Esprima?
Yes. Since the start of ESLint, we've regularly filed bugs and feature requests with Esprima and will continue to do so. However, there are some different philosophies around how the projects work that need to be worked through. The initial goal was to have Espree track Esprima and eventually merge the two back together, but we ultimately decided that building on top of Acorn was a better choice due to Acorn's plugin support.
### Why don't you just use Acorn?
Acorn is a great JavaScript parser that produces an AST that is compatible with Esprima. Unfortunately, ESLint relies on more than just the AST to do its job. It relies on Esprima's tokens and comment attachment features to get a complete picture of the source code. We investigated switching to Acorn, but the inconsistencies between Esprima and Acorn created too much work for a project like ESLint.
We are building on top of Acorn, however, so that we can contribute back and help make Acorn even better.
### What ECMAScript features do you support?
Espree supports all ECMAScript 2025 features and partially supports ECMAScript 2026 features.
Because ECMAScript 2026 is still under development, we are implementing features as they are finalized. Currently, Espree supports:
* [Explicit Resource Management](https://github.com/tc39/proposal-explicit-resource-management)
See [finished-proposals.md](https://github.com/tc39/proposals/blob/master/finished-proposals.md) to know what features are finalized.
### How do you determine which experimental features to support?
In general, we do not support experimental JavaScript features. We may make exceptions from time to time depending on the maturity of the features.
<!-- NOTE: This section is autogenerated. Do not manually edit.-->
<!--sponsorsstart-->
## Sponsors
The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate)
to get your logo on our READMEs and [website](https://eslint.org/sponsors).
<h3>Diamond Sponsors</h3>
<p><a href="https://www.ag-grid.com/"><img src="https://images.opencollective.com/ag-grid/bec0580/logo.png" alt="AG Grid" height="128"></a></p><h3>Platinum Sponsors</h3>
<p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="128"></a></p><h3>Gold Sponsors</h3>
<p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a> <a href="https://shopify.engineering/"><img src="https://avatars.githubusercontent.com/u/8085" alt="Shopify" height="96"></a></p><h3>Silver Sponsors</h3>
<p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301" alt="American Express" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3>
<p><a href="https://sentry.io"><img src="https://github.com/getsentry.png" alt="Sentry" height="32"></a> <a href="https://syntax.fm"><img src="https://github.com/syntaxfm.png" alt="Syntax" height="32"></a> <a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nolebase.ayaka.io"><img src="https://avatars.githubusercontent.com/u/11081491" alt="Neko" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p>
<h3>Technology Sponsors</h3>
Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.
<p><a href="https://netlify.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/netlify-icon.svg" alt="Netlify" height="32"></a> <a href="https://algolia.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/algolia-icon.svg" alt="Algolia" height="32"></a> <a href="https://1password.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/1password-icon.svg" alt="1Password" height="32"></a></p>
<!--sponsorsend-->
@@ -0,0 +1,317 @@
import {PackageJson} from 'type-fest';
export type FlagType = 'string' | 'boolean' | 'number';
/**
Callback function to determine if a flag is required during runtime.
@param flags - Contains the flags converted to camel-case excluding aliases.
@param input - Contains the non-flag arguments.
@returns True if the flag is required, otherwise false.
*/
export type IsRequiredPredicate = (flags: Readonly<AnyFlags>, input: readonly string[]) => boolean;
export interface Flag<Type extends FlagType, Default, IsMultiple = false> {
readonly type?: Type;
readonly alias?: string;
readonly default?: Default;
readonly isRequired?: boolean | IsRequiredPredicate;
readonly isMultiple?: IsMultiple;
}
type StringFlag = Flag<'string', string> | Flag<'string', string[], true>;
type BooleanFlag = Flag<'boolean', boolean> | Flag<'boolean', boolean[], true>;
type NumberFlag = Flag<'number', number> | Flag<'number', number[], true>;
type AnyFlag = StringFlag | BooleanFlag | NumberFlag;
type AnyFlags = Record<string, AnyFlag>;
export interface Options<Flags extends AnyFlags> {
/**
Pass in [`import.meta`](https://nodejs.org/dist/latest/docs/api/esm.html#esm_import_meta). This is used to find the correct package.json file.
*/
readonly importMeta: ImportMeta;
/**
Define argument flags.
The key is the flag name in camel-case and the value is an object with any of:
- `type`: Type of value. (Possible values: `string` `boolean` `number`)
- `alias`: Usually used to define a short flag alias.
- `default`: Default value when the flag is not specified.
- `isRequired`: Determine if the flag is required.
If it's only known at runtime whether the flag is required or not you can pass a Function instead of a boolean, which based on the given flags and other non-flag arguments should decide if the flag is required.
- `isMultiple`: Indicates a flag can be set multiple times. Values are turned into an array. (Default: false)
Multiple values are provided by specifying the flag multiple times, for example, `$ foo -u rainbow -u cat`. Space- or comma-separated values are *not* supported.
Note that flags are always defined using a camel-case key (`myKey`), but will match arguments in kebab-case (`--my-key`).
@example
```
flags: {
unicorn: {
type: 'string',
alias: 'u',
default: ['rainbow', 'cat'],
isMultiple: true,
isRequired: (flags, input) => {
if (flags.otherFlag) {
return true;
}
return false;
}
}
}
```
*/
readonly flags?: Flags;
/**
Description to show above the help text. Default: The package.json `"description"` property.
Set it to `false` to disable it altogether.
*/
readonly description?: string | false;
/**
The help text you want shown.
The input is reindented and starting/ending newlines are trimmed which means you can use a [template literal](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/template_strings) without having to care about using the correct amount of indent.
The description will be shown above your help text automatically.
Set it to `false` to disable it altogether.
*/
readonly help?: string | false;
/**
Set a custom version output. Default: The package.json `"version"` property.
Set it to `false` to disable it altogether.
*/
readonly version?: string | false;
/**
Automatically show the help text when the `--help` flag is present. Useful to set this value to `false` when a CLI manages child CLIs with their own help text.
This option is only considered when there is only one argument in `process.argv`.
*/
readonly autoHelp?: boolean;
/**
Automatically show the version text when the `--version` flag is present. Useful to set this value to `false` when a CLI manages child CLIs with their own version text.
This option is only considered when there is only one argument in `process.argv`.
*/
readonly autoVersion?: boolean;
/**
`package.json` as an `Object`. Default: Closest `package.json` upwards.
_You most likely don't need this option._
*/
readonly pkg?: Record<string, unknown>;
/**
Custom arguments object.
@default process.argv.slice(2)
*/
readonly argv?: readonly string[];
/**
Infer the argument type.
By default, the argument `5` in `$ foo 5` becomes a string. Enabling this would infer it as a number.
@default false
*/
readonly inferType?: boolean;
/**
Value of `boolean` flags not defined in `argv`.
If set to `undefined`, the flags not defined in `argv` will be excluded from the result. The `default` value set in `boolean` flags take precedence over `booleanDefault`.
_Note: If used in conjunction with `isMultiple`, the default flag value is set to `[]`._
__Caution: Explicitly specifying `undefined` for `booleanDefault` has different meaning from omitting key itself.__
@example
```
import meow from 'meow';
const cli = meow(`
Usage
$ foo
Options
--rainbow, -r Include a rainbow
--unicorn, -u Include a unicorn
--no-sparkles Exclude sparkles
Examples
$ foo
🌈 unicorns✨🌈
`, {
importMeta: import.meta,
booleanDefault: undefined,
flags: {
rainbow: {
type: 'boolean',
default: true,
alias: 'r'
},
unicorn: {
type: 'boolean',
default: false,
alias: 'u'
},
cake: {
type: 'boolean',
alias: 'c'
},
sparkles: {
type: 'boolean',
default: true
}
}
});
//{
// flags: {
// rainbow: true,
// unicorn: false,
// sparkles: true
// },
// unnormalizedFlags: {
// rainbow: true,
// r: true,
// unicorn: false,
// u: false,
// sparkles: true
// },
// …
//}
```
*/
// eslint-disable-next-line @typescript-eslint/ban-types
readonly booleanDefault?: boolean | null | undefined;
/**
Whether to use [hard-rejection](https://github.com/sindresorhus/hard-rejection) or not. Disabling this can be useful if you need to handle `process.on('unhandledRejection')` yourself.
@default true
*/
readonly hardRejection?: boolean;
/**
Whether to allow unknown flags or not.
@default true
*/
readonly allowUnknownFlags?: boolean;
}
type TypedFlag<Flag extends AnyFlag> =
Flag extends {type: 'number'}
? number
: Flag extends {type: 'string'}
? string
: Flag extends {type: 'boolean'}
? boolean
: unknown;
type PossiblyOptionalFlag<Flag extends AnyFlag, FlagType> =
Flag extends {isRequired: true}
? FlagType
: Flag extends {default: any}
? FlagType
: FlagType | undefined;
export type TypedFlags<Flags extends AnyFlags> = {
[F in keyof Flags]: Flags[F] extends {isMultiple: true}
? PossiblyOptionalFlag<Flags[F], Array<TypedFlag<Flags[F]>>>
: PossiblyOptionalFlag<Flags[F], TypedFlag<Flags[F]>>
};
export interface Result<Flags extends AnyFlags> {
/**
Non-flag arguments.
*/
input: string[];
/**
Flags converted to camelCase excluding aliases.
*/
flags: TypedFlags<Flags> & Record<string, unknown>;
/**
Flags converted camelCase including aliases.
*/
unnormalizedFlags: TypedFlags<Flags> & Record<string, unknown>;
/**
The `package.json` object.
*/
pkg: PackageJson;
/**
The help text used with `--help`.
*/
help: string;
/**
Show the help text and exit with code.
@param exitCode - The exit code to use. Default: `2`.
*/
showHelp: (exitCode?: number) => never;
/**
Show the version text and exit.
*/
showVersion: () => void;
}
/**
@param helpMessage - Shortcut for the `help` option.
@example
```
#!/usr/bin/env node
import meow from 'meow';
import foo from './index.js';
const cli = meow(`
Usage
$ foo <input>
Options
--rainbow, -r Include a rainbow
Examples
$ foo unicorns --rainbow
🌈 unicorns 🌈
`, {
importMeta: import.meta,
flags: {
rainbow: {
type: 'boolean',
alias: 'r'
}
}
});
//{
// input: ['unicorns'],
// flags: {rainbow: true},
// ...
//}
foo(cli.input[0], cli.flags);
```
*/
export default function meow<Flags extends AnyFlags>(helpMessage: string, options?: Options<Flags>): Result<Flags>;
export default function meow<Flags extends AnyFlags>(options?: Options<Flags>): Result<Flags>;
@@ -0,0 +1,25 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325
var CANCELATION_MESSAGE = {
type: 'cancelation',
msg: 'operation is manually canceled'
};
function makeCancelable(promise) {
var hasCanceled_ = false;
var wrappedPromise = new Promise(function (resolve, reject) {
promise.then(function (val) {
return hasCanceled_ ? reject(CANCELATION_MESSAGE) : resolve(val);
});
promise["catch"](reject);
});
return wrappedPromise.cancel = function () {
return hasCanceled_ = true;
}, wrappedPromise;
}
exports.CANCELATION_MESSAGE = CANCELATION_MESSAGE;
exports.default = makeCancelable;
@@ -0,0 +1,23 @@
import { IArray, IConst, IContext, IIdent, INumber, IOptional, IRef, IString, ITuple, IUnion } from './types';
/** Returns true if the value is a Array Parser */
export declare function IsArray(value: unknown): value is IArray;
/** Returns true if the value is a Const Parser */
export declare function IsConst(value: unknown): value is IConst;
/** Returns true if the value is a Context Parser */
export declare function IsContext(value: unknown): value is IContext;
/** Returns true if the value is a Ident Parser */
export declare function IsIdent(value: unknown): value is IIdent;
/** Returns true if the value is a Number Parser */
export declare function IsNumber(value: unknown): value is INumber;
/** Returns true if the value is a Optional Parser */
export declare function IsOptional(value: unknown): value is IOptional;
/** Returns true if the value is a Ref Parser */
export declare function IsRef(value: unknown): value is IRef;
/** Returns true if the value is a String Parser */
export declare function IsString(value: unknown): value is IString;
/** Returns true if the value is a Tuple Parser */
export declare function IsTuple(value: unknown): value is ITuple;
/** Returns true if the value is a Union Parser */
export declare function IsUnion(value: unknown): value is IUnion;
/** Returns true if the value is a Parser */
export declare function IsParser(value: unknown): value is IContext<unknown> | IUnion<unknown> | IArray<unknown> | IConst<unknown> | IIdent<unknown> | INumber<unknown> | IOptional<unknown> | IRef<unknown> | IString<unknown> | ITuple<unknown>;
@@ -0,0 +1 @@
{"version":3,"file":"remapping.d.ts","sourceRoot":"","sources":["../src/remapping.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACxE,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,IAAI,YAAY,EAChC,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,EACb,OAAO,GACR,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,KAAK,EAAE,cAAc,GAAG,cAAc,EAAE,EACxC,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAC1B,SAAS,CAKX"}
@@ -0,0 +1,18 @@
/**
* @import {Event} from 'micromark-util-types'
*/
import { subtokenize } from 'micromark-util-subtokenize';
/**
* @param {Array<Event>} events
* Events.
* @returns {Array<Event>}
* Events.
*/
export function postprocess(events) {
while (!subtokenize(events)) {
// Empty
}
return events;
}
@@ -0,0 +1 @@
{"version":3,"file":"tagged.js","sourceRoot":"","sources":["../../../../src/metadata/decorators/tagged.ts"],"names":[],"mappings":";;AASA,wBAYC;AArBD,sGAAmG;AACnG,oEAAiE;AACjE,6JAA0J;AAK1J,6CAA0C;AAE1C,SAAgB,MAAM,CACpB,GAAgB,EAChB,KAAc;IAEd,MAAM,cAAc,GAGlB,IAAA,yHAA2D,EACzD,IAAA,qCAAiB,EAAC,GAAG,EAAE,KAAK,CAAC,CAC9B,CAAC;IAEJ,OAAO,IAAA,uBAAU,EAAC,cAAc,EAAE,uEAAkC,CAAC,CAAC;AACxE,CAAC"}
@@ -0,0 +1,6 @@
[![Test coverage](https://codecov.io/gh/inversify/monorepo/branch/main/graph/badge.svg?flag=%40inversifyjs%2Fprototype-utils)](https://codecov.io/gh/inversify/monorepo/branch/main/graph/badge.svg?flag=%40inversifyjs%2Fprototype-utils)
[![npm version](https://img.shields.io/github/package-json/v/inversify/monorepo?filename=packages%2Ffoundation%2Flibraries%2Fprototype-utils%2Fpackage.json&style=plastic)](https://www.npmjs.com/package/@inversifyjs/prototype-utils)
# @inversifyjs/prototype-utils
Inversify reflect metadata utils package.
@@ -0,0 +1,67 @@
'use strict'
let Document = require('./document')
let LazyResult = require('./lazy-result')
let NoWorkResult = require('./no-work-result')
let Root = require('./root')
class Processor {
constructor(plugins = []) {
this.version = '8.5.6'
this.plugins = this.normalize(plugins)
}
normalize(plugins) {
let normalized = []
for (let i of plugins) {
if (i.postcss === true) {
i = i()
} else if (i.postcss) {
i = i.postcss
}
if (typeof i === 'object' && Array.isArray(i.plugins)) {
normalized = normalized.concat(i.plugins)
} else if (typeof i === 'object' && i.postcssPlugin) {
normalized.push(i)
} else if (typeof i === 'function') {
normalized.push(i)
} else if (typeof i === 'object' && (i.parse || i.stringify)) {
if (process.env.NODE_ENV !== 'production') {
throw new Error(
'PostCSS syntaxes cannot be used as plugins. Instead, please use ' +
'one of the syntax/parser/stringifier options as outlined ' +
'in your PostCSS runner documentation.'
)
}
} else {
throw new Error(i + ' is not a PostCSS plugin')
}
}
return normalized
}
process(css, opts = {}) {
if (
!this.plugins.length &&
!opts.parser &&
!opts.stringifier &&
!opts.syntax
) {
return new NoWorkResult(this, css, opts)
} else {
return new LazyResult(this, css, opts)
}
}
use(plugin) {
this.plugins = this.plugins.concat(this.normalize([plugin]))
return this
}
}
module.exports = Processor
Processor.default = Processor
Root.registerProcessor(Processor)
Document.registerProcessor(Processor)
@@ -0,0 +1,13 @@
/**
* @param {List} node
* @param {Parents | undefined} parent
* @param {State} state
* @param {Info} info
* @returns {string}
*/
export function list(node: List, parent: Parents | undefined, state: State, info: Info): string;
import type { List } from 'mdast';
import type { Parents } from 'mdast';
import type { State } from 'mdast-util-to-markdown';
import type { Info } from 'mdast-util-to-markdown';
//# sourceMappingURL=list.d.ts.map
@@ -0,0 +1,7 @@
export * from "./attribute";
export * from "./authenticated_safe";
export * from "./bags";
export * from "./mac_data";
export * from "./object_identifiers";
export * from "./pfx";
export * from "./safe_bag";
@@ -0,0 +1,3 @@
import type Quill from '../core.js';
declare const _default: WeakMap<Node, Quill>;
export default _default;
@@ -0,0 +1,6 @@
module.exports = {
"longPressMessage": `\u{9577}\u{6309}\u{6216}\u{6309} Alt+\u{5411}\u{4E0B}\u{9375}\u{4EE5}\u{958B}\u{555F}\u{529F}\u{80FD}\u{8868}`
};
//# sourceMappingURL=zh-TW.main.js.map
@@ -0,0 +1,67 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/arrow-left.tsx
var arrow_left_exports = {};
__export(arrow_left_exports, {
ArrowLeftIcon: () => ArrowLeftIcon
});
module.exports = __toCommonJS(arrow_left_exports);
var import_jsx_runtime = require("react/jsx-runtime");
var ArrowLeftIcon = ({ strokeWidth = 1.5, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
"svg",
{
"aria-hidden": "true",
fill: "none",
focusable: "false",
height: "1em",
role: "presentation",
viewBox: "0 0 24 24",
width: "1em",
...otherProps,
children: [
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
d: "M9.57 5.92993L3.5 11.9999L9.57 18.0699",
stroke: "currentColor",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeMiterlimit: "10",
strokeWidth
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
d: "M20.5 12H3.67004",
stroke: "currentColor",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeMiterlimit: "10",
strokeWidth
}
)
]
}
);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
ArrowLeftIcon
});
@@ -0,0 +1 @@
{"version":3,"sources":["type.js"],"names":["Object","defineProperty","exports","value","util_js_1","require","typeTokenizer","spacing","join","getJoiner","spec","curlies","lines","i","tokens","source","entries","type","description","ch","push","problems","code","message","line","number","critical","parts","offset","postDelimiter","length","slice","postType","splitSpace","default","trim","x","t","map"],"mappings":"AAAA;;AACAA,MAAM,CAACC,cAAP,CAAsBC,OAAtB,EAA+B,YAA/B,EAA6C;AAAEC,EAAAA,KAAK,EAAE;AAAT,CAA7C;;AACA,MAAMC,SAAS,GAAGC,OAAH,kBAAf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,SAASC,aAAT,CAAuBC,OAAO,GAAG,SAAjC,EAA4C;AACxC,QAAMC,IAAI,GAAGC,SAAS,CAACF,OAAD,CAAtB;AACA,SAAQG,IAAD,IAAU;AACb,QAAIC,OAAO,GAAG,CAAd;AACA,QAAIC,KAAK,GAAG,EAAZ;;AACA,SAAK,MAAM,CAACC,CAAD,EAAI;AAAEC,MAAAA;AAAF,KAAJ,CAAX,IAA8BJ,IAAI,CAACK,MAAL,CAAYC,OAAZ,EAA9B,EAAqD;AACjD,UAAIC,IAAI,GAAG,EAAX;AACA,UAAIJ,CAAC,KAAK,CAAN,IAAWC,MAAM,CAACI,WAAP,CAAmB,CAAnB,MAA0B,GAAzC,EACI,OAAOR,IAAP;;AACJ,WAAK,MAAMS,EAAX,IAAiBL,MAAM,CAACI,WAAxB,EAAqC;AACjC,YAAIC,EAAE,KAAK,GAAX,EACIR,OAAO;AACX,YAAIQ,EAAE,KAAK,GAAX,EACIR,OAAO;AACXM,QAAAA,IAAI,IAAIE,EAAR;AACA,YAAIR,OAAO,KAAK,CAAhB,EACI;AACP;;AACDC,MAAAA,KAAK,CAACQ,IAAN,CAAW,CAACN,MAAD,EAASG,IAAT,CAAX;AACA,UAAIN,OAAO,KAAK,CAAhB,EACI;AACP;;AACD,QAAIA,OAAO,KAAK,CAAhB,EAAmB;AACfD,MAAAA,IAAI,CAACW,QAAL,CAAcD,IAAd,CAAmB;AACfE,QAAAA,IAAI,EAAE,4BADS;AAEfC,QAAAA,OAAO,EAAE,kBAFM;AAGfC,QAAAA,IAAI,EAAEd,IAAI,CAACK,MAAL,CAAY,CAAZ,EAAeU,MAHN;AAIfC,QAAAA,QAAQ,EAAE;AAJK,OAAnB;AAMA,aAAOhB,IAAP;AACH;;AACD,UAAMiB,KAAK,GAAG,EAAd;AACA,UAAMC,MAAM,GAAGhB,KAAK,CAAC,CAAD,CAAL,CAAS,CAAT,EAAYiB,aAAZ,CAA0BC,MAAzC;;AACA,SAAK,MAAM,CAACjB,CAAD,EAAI,CAACC,MAAD,EAASG,IAAT,CAAJ,CAAX,IAAkCL,KAAK,CAACI,OAAN,EAAlC,EAAmD;AAC/CF,MAAAA,MAAM,CAACG,IAAP,GAAcA,IAAd;;AACA,UAAIJ,CAAC,GAAG,CAAR,EAAW;AACPC,QAAAA,MAAM,CAACG,IAAP,GAAcH,MAAM,CAACe,aAAP,CAAqBE,KAArB,CAA2BH,MAA3B,IAAqCX,IAAnD;AACAH,QAAAA,MAAM,CAACe,aAAP,GAAuBf,MAAM,CAACe,aAAP,CAAqBE,KAArB,CAA2B,CAA3B,EAA8BH,MAA9B,CAAvB;AACH;;AACD,OAACd,MAAM,CAACkB,QAAR,EAAkBlB,MAAM,CAACI,WAAzB,IAAwC,CAAC,GAAGd,SAAS,CAAC6B,UAAd,EAA0BnB,MAAM,CAACI,WAAP,CAAmBa,KAAnB,CAAyBd,IAAI,CAACa,MAA9B,CAA1B,CAAxC;AACAH,MAAAA,KAAK,CAACP,IAAN,CAAWN,MAAM,CAACG,IAAlB;AACH;;AACDU,IAAAA,KAAK,CAAC,CAAD,CAAL,GAAWA,KAAK,CAAC,CAAD,CAAL,CAASI,KAAT,CAAe,CAAf,CAAX;AACAJ,IAAAA,KAAK,CAACA,KAAK,CAACG,MAAN,GAAe,CAAhB,CAAL,GAA0BH,KAAK,CAACA,KAAK,CAACG,MAAN,GAAe,CAAhB,CAAL,CAAwBC,KAAxB,CAA8B,CAA9B,EAAiC,CAAC,CAAlC,CAA1B;AACArB,IAAAA,IAAI,CAACO,IAAL,GAAYT,IAAI,CAACmB,KAAD,CAAhB;AACA,WAAOjB,IAAP;AACH,GA5CD;AA6CH;;AACDR,OAAO,CAACgC,OAAR,GAAkB5B,aAAlB;;AACA,MAAM6B,IAAI,GAAIC,CAAD,IAAOA,CAAC,CAACD,IAAF,EAApB;;AACA,SAAS1B,SAAT,CAAmBF,OAAnB,EAA4B;AACxB,MAAIA,OAAO,KAAK,SAAhB,EACI,OAAQ8B,CAAD,IAAOA,CAAC,CAACC,GAAF,CAAMH,IAAN,EAAY3B,IAAZ,CAAiB,EAAjB,CAAd,CADJ,KAEK,IAAID,OAAO,KAAK,UAAhB,EACD,OAAQ8B,CAAD,IAAOA,CAAC,CAAC7B,IAAF,CAAO,IAAP,CAAd,CADC,KAGD,OAAOD,OAAP;AACP","sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst util_js_1 = require(\"../../util.js\");\n/**\n * Sets splits remaining `Spec.lines[].tokes.description` into `type` and `description`\n * tokens and populates Spec.type`\n *\n * @param {Spacing} spacing tells how to deal with a whitespace\n * for type values going over multiple lines\n */\nfunction typeTokenizer(spacing = 'compact') {\n const join = getJoiner(spacing);\n return (spec) => {\n let curlies = 0;\n let lines = [];\n for (const [i, { tokens }] of spec.source.entries()) {\n let type = '';\n if (i === 0 && tokens.description[0] !== '{')\n return spec;\n for (const ch of tokens.description) {\n if (ch === '{')\n curlies++;\n if (ch === '}')\n curlies--;\n type += ch;\n if (curlies === 0)\n break;\n }\n lines.push([tokens, type]);\n if (curlies === 0)\n break;\n }\n if (curlies !== 0) {\n spec.problems.push({\n code: 'spec:type:unpaired-curlies',\n message: 'unpaired curlies',\n line: spec.source[0].number,\n critical: true,\n });\n return spec;\n }\n const parts = [];\n const offset = lines[0][0].postDelimiter.length;\n for (const [i, [tokens, type]] of lines.entries()) {\n tokens.type = type;\n if (i > 0) {\n tokens.type = tokens.postDelimiter.slice(offset) + type;\n tokens.postDelimiter = tokens.postDelimiter.slice(0, offset);\n }\n [tokens.postType, tokens.description] = (0, util_js_1.splitSpace)(tokens.description.slice(type.length));\n parts.push(tokens.type);\n }\n parts[0] = parts[0].slice(1);\n parts[parts.length - 1] = parts[parts.length - 1].slice(0, -1);\n spec.type = join(parts);\n Line truncated
@@ -0,0 +1,36 @@
The package exports an array of strings. Each string is an identifier
for a license exception under the [Software Package Data Exchange
(SPDX)][SPDX] software license metadata standard.
[SPDX]: https://spdx.org
## Copyright and Licensing
### SPDX
"SPDX" is a federally registered United States trademark of The Linux
Foundation Corporation.
From version 2.0 of the [SPDX] specification:
> Copyright © 2010-2015 Linux Foundation and its Contributors. Licensed
> under the Creative Commons Attribution License 3.0 Unported. All other
> rights are expressly reserved.
The Linux Foundation and the SPDX working groups are good people. Only
they decide what "SPDX" means, as a standard and otherwise. I respect
their work and their rights. You should, too.
### This Package
> I created this package by copying exception identifiers out of the
> SPDX specification. That work was mechanical, routine, and required no
> creativity whatsoever. - Kyle Mitchell, package author
United States users concerned about intellectual property may wish to
discuss the following Supreme Court decisions with their attorneys:
- _Baker v. Selden_, 101 U.S. 99 (1879)
- _Feist Publications, Inc., v. Rural Telephone Service Co._,
499 U.S. 340 (1991)
@@ -0,0 +1 @@
export { _ as default } from "../esm/_is_native_function.js";
@@ -0,0 +1,59 @@
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */
/* Projects */
/* Language and Environment */
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
/* Modules */
"module": "commonjs", /* Specify what module code is generated. */
// "rootDir": "./", /* Specify the root folder within your source files. */
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
"resolveJsonModule": true, /* Enable importing .json files. */
/* JavaScript Support */
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
"maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
/* Emit */
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
"declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
"noEmit": true, /* Disable emitting files from a compilation. */
/* Interop Constraints */
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
/* Type Checking */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
"noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
"useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
"noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
"noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
"noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
"noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
/* Completeness */
// "skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"exclude": [
"coverage"
]
}
@@ -0,0 +1,235 @@
'use strict'
const fs = require('graceful-fs')
const path = require('path')
const mkdirs = require('../mkdirs').mkdirs
const pathExists = require('../path-exists').pathExists
const utimesMillis = require('../util/utimes').utimesMillis
const stat = require('../util/stat')
function copy (src, dest, opts, cb) {
if (typeof opts === 'function' && !cb) {
cb = opts
opts = {}
} else if (typeof opts === 'function') {
opts = { filter: opts }
}
cb = cb || function () {}
opts = opts || {}
opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now
opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber
// Warn about using preserveTimestamps on 32-bit node
if (opts.preserveTimestamps && process.arch === 'ia32') {
process.emitWarning(
'Using the preserveTimestamps option in 32-bit node is not recommended;\n\n' +
'\tsee https://github.com/jprichardson/node-fs-extra/issues/269',
'Warning', 'fs-extra-WARN0001'
)
}
stat.checkPaths(src, dest, 'copy', opts, (err, stats) => {
if (err) return cb(err)
const { srcStat, destStat } = stats
stat.checkParentPaths(src, srcStat, dest, 'copy', err => {
if (err) return cb(err)
if (opts.filter) return handleFilter(checkParentDir, destStat, src, dest, opts, cb)
return checkParentDir(destStat, src, dest, opts, cb)
})
})
}
function checkParentDir (destStat, src, dest, opts, cb) {
const destParent = path.dirname(dest)
pathExists(destParent, (err, dirExists) => {
if (err) return cb(err)
if (dirExists) return getStats(destStat, src, dest, opts, cb)
mkdirs(destParent, err => {
if (err) return cb(err)
return getStats(destStat, src, dest, opts, cb)
})
})
}
function handleFilter (onInclude, destStat, src, dest, opts, cb) {
Promise.resolve(opts.filter(src, dest)).then(include => {
if (include) return onInclude(destStat, src, dest, opts, cb)
return cb()
}, error => cb(error))
}
function startCopy (destStat, src, dest, opts, cb) {
if (opts.filter) return handleFilter(getStats, destStat, src, dest, opts, cb)
return getStats(destStat, src, dest, opts, cb)
}
function getStats (destStat, src, dest, opts, cb) {
const stat = opts.dereference ? fs.stat : fs.lstat
stat(src, (err, srcStat) => {
if (err) return cb(err)
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb)
else if (srcStat.isFile() ||
srcStat.isCharacterDevice() ||
srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb)
else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb)
else if (srcStat.isSocket()) return cb(new Error(`Cannot copy a socket file: ${src}`))
else if (srcStat.isFIFO()) return cb(new Error(`Cannot copy a FIFO pipe: ${src}`))
return cb(new Error(`Unknown file: ${src}`))
})
}
function onFile (srcStat, destStat, src, dest, opts, cb) {
if (!destStat) return copyFile(srcStat, src, dest, opts, cb)
return mayCopyFile(srcStat, src, dest, opts, cb)
}
function mayCopyFile (srcStat, src, dest, opts, cb) {
if (opts.overwrite) {
fs.unlink(dest, err => {
if (err) return cb(err)
return copyFile(srcStat, src, dest, opts, cb)
})
} else if (opts.errorOnExist) {
return cb(new Error(`'${dest}' already exists`))
} else return cb()
}
function copyFile (srcStat, src, dest, opts, cb) {
fs.copyFile(src, dest, err => {
if (err) return cb(err)
if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb)
return setDestMode(dest, srcStat.mode, cb)
})
}
function handleTimestampsAndMode (srcMode, src, dest, cb) {
// Make sure the file is writable before setting the timestamp
// otherwise open fails with EPERM when invoked with 'r+'
// (through utimes call)
if (fileIsNotWritable(srcMode)) {
return makeFileWritable(dest, srcMode, err => {
if (err) return cb(err)
return setDestTimestampsAndMode(srcMode, src, dest, cb)
})
}
return setDestTimestampsAndMode(srcMode, src, dest, cb)
}
function fileIsNotWritable (srcMode) {
return (srcMode & 0o200) === 0
}
function makeFileWritable (dest, srcMode, cb) {
return setDestMode(dest, srcMode | 0o200, cb)
}
function setDestTimestampsAndMode (srcMode, src, dest, cb) {
setDestTimestamps(src, dest, err => {
if (err) return cb(err)
return setDestMode(dest, srcMode, cb)
})
}
function setDestMode (dest, srcMode, cb) {
return fs.chmod(dest, srcMode, cb)
}
function setDestTimestamps (src, dest, cb) {
// The initial srcStat.atime cannot be trusted
// because it is modified by the read(2) system call
// (See https://nodejs.org/api/fs.html#fs_stat_time_values)
fs.stat(src, (err, updatedSrcStat) => {
if (err) return cb(err)
return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb)
})
}
function onDir (srcStat, destStat, src, dest, opts, cb) {
if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts, cb)
return copyDir(src, dest, opts, cb)
}
function mkDirAndCopy (srcMode, src, dest, opts, cb) {
fs.mkdir(dest, err => {
if (err) return cb(err)
copyDir(src, dest, opts, err => {
if (err) return cb(err)
return setDestMode(dest, srcMode, cb)
})
})
}
function copyDir (src, dest, opts, cb) {
fs.readdir(src, (err, items) => {
if (err) return cb(err)
return copyDirItems(items, src, dest, opts, cb)
})
}
function copyDirItems (items, src, dest, opts, cb) {
const item = items.pop()
if (!item) return cb()
return copyDirItem(items, item, src, dest, opts, cb)
}
function copyDirItem (items, item, src, dest, opts, cb) {
const srcItem = path.join(src, item)
const destItem = path.join(dest, item)
stat.checkPaths(srcItem, destItem, 'copy', opts, (err, stats) => {
if (err) return cb(err)
const { destStat } = stats
startCopy(destStat, srcItem, destItem, opts, err => {
if (err) return cb(err)
return copyDirItems(items, src, dest, opts, cb)
})
})
}
function onLink (destStat, src, dest, opts, cb) {
fs.readlink(src, (err, resolvedSrc) => {
if (err) return cb(err)
if (opts.dereference) {
resolvedSrc = path.resolve(process.cwd(), resolvedSrc)
}
if (!destStat) {
return fs.symlink(resolvedSrc, dest, cb)
} else {
fs.readlink(dest, (err, resolvedDest) => {
if (err) {
// dest exists and is a regular file or directory,
// Windows may throw UNKNOWN error. If dest already exists,
// fs throws error anyway, so no need to guard against it here.
if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlink(resolvedSrc, dest, cb)
return cb(err)
}
if (opts.dereference) {
resolvedDest = path.resolve(process.cwd(), resolvedDest)
}
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`))
}
// do not copy if src is a subdir of dest since unlinking
// dest in this case would result in removing src contents
// and therefore a broken symlink would be created.
if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) {
return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`))
}
return copyLink(resolvedSrc, dest, cb)
})
}
})
}
function copyLink (resolvedSrc, dest, cb) {
fs.unlink(dest, err => {
if (err) return cb(err)
return fs.symlink(resolvedSrc, dest, cb)
})
}
module.exports = copy
@@ -0,0 +1,58 @@
# internal-slot <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
Truly private storage, akin to the JS spec’s concept of internal slots.
Uses a WeakMap when available; a Map when not; and a regular object in even older engines. Performance and garbage collection behavior will reflect the environment’s capabilities accordingly.
## Example
```js
var SLOT = require('internal-slot');
var assert = require('assert');
var o = {};
assert.throws(function () { SLOT.assert(o, 'foo'); });
assert.equal(SLOT.has(o, 'foo'), false);
assert.equal(SLOT.get(o, 'foo'), undefined);
SLOT.set(o, 'foo', 42);
assert.equal(SLOT.has(o, 'foo'), true);
assert.equal(SLOT.get(o, 'foo'), 42);
assert.doesNotThrow(function () { SLOT.assert(o, 'foo'); });
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
## Security
Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
[package-url]: https://npmjs.org/package/internal-slot
[npm-version-svg]: https://versionbadg.es/ljharb/internal-slot.svg
[deps-svg]: https://david-dm.org/ljharb/internal-slot.svg
[deps-url]: https://david-dm.org/ljharb/internal-slot
[dev-deps-svg]: https://david-dm.org/ljharb/internal-slot/dev-status.svg
[dev-deps-url]: https://david-dm.org/ljharb/internal-slot#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/internal-slot.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/internal-slot.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/internal-slot.svg
[downloads-url]: https://npm-stat.com/charts.html?package=internal-slot
[codecov-image]: https://codecov.io/gh/ljharb/internal-slot/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/ljharb/internal-slot/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/internal-slot
[actions-url]: https://github.com/ljharb/internal-slot/actions
@@ -0,0 +1,22 @@
/**
* Parse spaces and tabs.
*
* There is no `nok` parameter:
*
* * line endings or spaces in markdown are often optional, in which case this
* factory can be used and `ok` will be switched to whether spaces were found
* or not
* * one line ending or space can be detected with
* `markdownLineEndingOrSpace(code)` right before using `factoryWhitespace`
*
* @param {Effects} effects
* Context.
* @param {State} ok
* State switched to when successful.
* @returns {State}
* Start state.
*/
export function factoryWhitespace(effects: Effects, ok: State): State;
import type { Effects } from 'micromark-util-types';
import type { State } from 'micromark-util-types';
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,47 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const { ReferenceTracker } = require("eslint-utils")
module.exports = {
meta: {
docs: {
description: "disallow `bigint` syntax and built-ins",
category: "ES2020",
recommended: false,
url:
"http://mysticatea.github.io/eslint-plugin-es/rules/no-bigint.html",
},
fixable: null,
messages: {
forbidden: "ES2020 BigInt is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
Literal(node) {
if (node.bigint != null) {
context.report({ messageId: "forbidden", node })
}
},
"Program:exit"() {
const tracker = new ReferenceTracker(context.getScope())
const references = tracker.iterateGlobalReferences({
BigInt: { [ReferenceTracker.READ]: true },
BigInt64Array: { [ReferenceTracker.READ]: true },
BigUint64Array: { [ReferenceTracker.READ]: true },
})
for (const { node } of references) {
context.report({ messageId: "forbidden", node })
}
},
}
},
}
@@ -0,0 +1 @@
{"name":"@uiw/react-codemirror","version":"4.25.4","requiresBuild":false,"files":{"dist/codemirror.js":{"checkedAt":1794532110760,"integrity":"sha512-qyh530F/aEYF4ngejYjoZezy8XoZX6ZfN32+zZWUjoLKJKMt9z9MB+DiD5RBsecwZCDbhQP7b7aR906KIj+ddg==","mode":420,"size":526066},"dist/codemirror.min.js":{"checkedAt":1794532110761,"integrity":"sha512-StcH9a0TzJawUzE0g0jDHsZ8R9MVmh/PZ9VZRU0uJUEjssaZVnYR4/qYXcLq0DovghQ1tjSZLpGB8zQVTawYfQ==","mode":420,"size":156212},"cjs/getDefaultExtensions.js":{"checkedAt":1794532110761,"integrity":"sha512-QIRjjFtoUgxB6iAFMtrtPNzR/02fM5OVAMrUERXK1VYh2shv+bCJvJ3A1V3BiwABuWofJlkVfBNqBWZlCn9dHA==","mode":420,"size":3135},"esm/getDefaultExtensions.js":{"checkedAt":1794532110761,"integrity":"sha512-YaiRD0slnAMToUh/aw9KIHaC0LHdc3xfzakJOfb1J3M6nge3qCY4zeSe3uqE6dXStlI2finwGdW6P4A7gP9esQ==","mode":420,"size":1623},"cjs/index.js":{"checkedAt":1794532110761,"integrity":"sha512-CFaFkmCpdjH4CsGcWDHlxdXS9awqsMTOTx/y/dvFyAtEzPBxhqvx0VXVoe7a7Oxrve6JiqMvXhh8INEA/x5bTw==","mode":420,"size":6546},"esm/index.js":{"checkedAt":1794532110761,"integrity":"sha512-wav1PiYeOn+9lsu9vCLWYeXuhnpWtkyxlFoDX69p2ClZRg2xHYfchnM1/acI8hsiBLRQgT4xZ+9YiaiClouWUQ==","mode":420,"size":2584},"cjs/theme/light.js":{"checkedAt":1794532110761,"integrity":"sha512-2zCo+E9Ej02Et6oBvz/FoYoy3uSN1n80HVmHjzZWFyJJAMS8J0Lg84n6krMPb/b1uIcBKTf43RUDKtaYE3EBww==","mode":420,"size":315},"esm/theme/light.js":{"checkedAt":1794532110761,"integrity":"sha512-yY/oTGsJB8yRrYqnURHnsY727rtkI3ssDFWWyo/CPftNbiTBiq8+Dzr+KXoJdvh9m1iVfbrfSzZ9ccCuSlBzug==","mode":420,"size":166},"cjs/timeoutLatch.js":{"checkedAt":1794532110761,"integrity":"sha512-2MrdYLCBiFhal+3ik7JjHysJUy2sxkFOvdpgM6XXjmMD6EFgVtGWWSlbgZnP7PZLJj8ETBdyKBP1CX7k01/nAA==","mode":420,"size":3674},"esm/timeoutLatch.js":{"checkedAt":1794532110762,"integrity":"sha512-X7khhD+rfuVEchILOQ7XFW2u8IYehqEGl1A1kuvLCXERVrY7tNUfnubIbIC3BtUU2zfwd+F2OK8oQCRWb2bjoA==","mode":420,"size":2079},"cjs/useCodeMirror.js":{"checkedAt":1794532110762,"integrity":"sha512-HLYhVc+UxtW4qvsMXtFxxoBdniGSj24z0o4IbtqIYQIPFfCv/PSr4+cctSVUHLjicaIN/6bu9bz760GzYEa+hA==","mode":420,"size":7803},"esm/useCodeMirror.js":{"checkedAt":1794532110762,"integrity":"sha512-Oj3OZapv6D4trEz+g7bp43dfmaHPCWr16s3AUgLCF9mA6nSmwZdB0HTopzfzajOp8zf011kL00LlCLRz4UM1Ig==","mode":420,"size":5216},"cjs/utils.js":{"checkedAt":1794532110762,"integrity":"sha512-NSKsfD5QE58LRjQ+g0STLBwoCoFRiqiHoJq9PzP3Rcq8BQW062Xppw+pM3ugWnVAgXh79EwEee2VYibZquI8fw==","mode":420,"size":903},"esm/utils.js":{"checkedAt":1794532110762,"integrity":"sha512-8KQlzIHRZ7pvoBqrH3eV2IV4+zgnLouwVrcu69xzUadwQRsSNgL96C8Qj5Q5I7Qjkr6EqOuX17sP3F6b2ODgDg==","mode":420,"size":693},"cjs/package.json":{"checkedAt":1794532110762,"integrity":"sha512-45xd0dtQbcCswWl4dRmcJAP7TbnFx4AWV6fhDyyOIz9VW7/JH5AGEcS8CYaxXj9cDY9VbpjsAoqfIP+SYLWhYA==","mode":420,"size":20},"esm/package.json":{"checkedAt":1794532100338,"integrity":"sha512-yJaw9MUXdELVmz7z3SYVp2blYklya3nL3pU6DnmPcM5rDXeD26fLnxMcB3WmvAQ/Uq9woAMNLTYvYRv/3m6T8Q==","mode":420,"size":18},"package.json":{"checkedAt":1794532110762,"integrity":"sha512-v/nEh+q59z5nzIvih2fYdy/Nokof8kbBKMn9FAA6VXUAusXbDi6+JEH/ycWFq97llRsn+GbhWokr6kBXUAkgVA==","mode":420,"size":1910},"README.md":{"checkedAt":1794532110763,"integrity":"sha512-3CoJW2HQpZ7khBo2rSkuuM3gCaLPvSkUzm1+zF2KBS8Bk9D1Fa7J/UgMid03/Ml76tkFhfa+MgtDTbOaV1VgiA==","mode":420,"size":52502},"cjs/getDefaultExtensions.d.ts":{"checkedAt":1794532110763,"integrity":"sha512-QCrXfOoCrbMPSAkAqlPJwmBE8oCRNHO5mbMMdRGpmJ7/+qr6G+FpueCvpmnov3IX632eGhgTMXmOIXr3NUdRHw==","mode":420,"size":563},"esm/getDefaultExtensions.d.ts":{"checkedAt":1794532110763,"integrity":"sha512-QCrXfOoCrbMPSAkAqlPJwmBE8oCRNHO5mbMMdRGpmJ7/+qr6G+FpueCvpmnov3IX632eGhgTMXmOIXr3NUdRHw==","mode":420,"size":563},"src/getDefaultExtensions.ts":{"checkedAt":1794532110763,"integrity":"sha512-RrC6yQn7LjM/yfi2mU7D9qvcYx2pStg0/gKeq96S7M7oExucH650xg0u2Qw+D0dXPaxajipTZrzHVKVRO9oUuA==","mode":420,"size":1936},"cjs/index.d.ts":{"checkedAt":1794532110763,"integrity":"sha512-ZNSZKWxCX3EinBAutfbKKCc1LJs9KCjInrR5GWDUjJwFb4pXR+J2lntHdFYaynkOf0QUGfx0BmCRAe85LvMLdg==","mode":420,"size":3886},"esm/index.d.ts":{"checkedAt":1794532110763,"integrity":"sha512-ZNSZKWxCX3EinBAutfbKKCc1LJs9KCjInrR5GWDUjJwFb4pXR+J2lntHdFYaynkOf0QUGfx0BmCRAe85LvMLdg==","mode":420,"size":3886},"cjs/theme/light.d.ts":{"checkedAt":1794532110763,"integrity":"sha512-uHlg1wq6Vx7M3TdQUDwOPKpyHLMO3zbhMGL4GQOIofb24Zoq3OKU/QbO0QTp71hhqXPncoXfVYEKaEkxuXEfwg==","mode":420,"size":85},"esm/theme/light.d.ts":{"checkedAt":1794532110763,"integrity":"sha512-uHlg1wq6Vx7M3TdQUDwOPKpyHLMO3zbhMGL4GQOIofb24Zoq3OKU/QbO0QTp71hhqXPncoXfVYEKaEkxuXEfwg==","mode":420,"size":85},"src/theme/light.ts":{"checkedAt":1794532110763,"integrity":"sha512-mofZ/nFbEIGQCExu+Rqyktpxz0od/BlBJMbJJCTfUcoxE/BHEZIZqPHWWrhiTSy/LOoH2RnW6B4obJEqqljbEA==","mode":420,"size":192},"cjs/timeoutLatch.d.ts":{"checkedAt":1794532110763,"integrity":"sha512-hTPO68cDU/ReEM1QBUElUi2Z6jzzUsZsBIcsFVNi2Es9IxVLlvkUAClf6g63Nri/cs6SmeaGWuUI+ZXzmWdrxg==","mode":420,"size":548}Line truncated
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=isNotParentBindingConstraintsWithName.spec.d.ts.map
@@ -0,0 +1,15 @@
import type NameManager from "./NameManager";
declare const HELPERS: {
[name: string]: string;
};
export declare class HelperManager {
readonly nameManager: NameManager;
helperNames: {
[baseName in keyof typeof HELPERS]?: string;
};
createRequireName: string | null;
constructor(nameManager: NameManager);
getHelperName(baseName: keyof typeof HELPERS): string;
emitHelpers(): string;
}
export {};
@@ -0,0 +1,11 @@
'use strict';
var getPrototypeOf = require('../');
var test = require('tape');
var runTests = require('./tests');
test('as a function', function (t) {
runTests(getPrototypeOf, t);
t.end();
});
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bindingIdentifierSymbol = void 0;
exports.bindingIdentifierSymbol = Symbol.for('@inversifyjs/container/bindingIdentifier');
//# sourceMappingURL=BindingIdentifier.js.map
@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2015 Arnout Kazemier, Martijn Swaagman, the Contributors.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
{"version":3,"file":"InjectFromOptionsLifecycle.d.ts","sourceRoot":"","sources":["../../../../src/metadata/models/InjectFromOptionsLifecycle.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9C,0BAA0B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAClD"}
@@ -0,0 +1,17 @@
import { _ as _get_prototype_of } from "./_get_prototype_of.js";
import { _ as _is_native_reflect_construct } from "./_is_native_reflect_construct.js";
import { _ as _possible_constructor_return } from "./_possible_constructor_return.js";
function _call_super(_this, derived, args) {
// Super
derived = _get_prototype_of(derived);
return _possible_constructor_return(
_this,
_is_native_reflect_construct()
// NOTE: This doesn't work if this.__proto__.constructor has been modified.
? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor)
: derived.apply(_this, args)
);
}
export { _call_super as _ };
@@ -0,0 +1,34 @@
import type React from 'react';
import type { PhotoRenderParams } from './types';
export interface PhotoViewProps {
/**
* 图片地址
*/
src?: string;
/**
* 自定义渲染,优先级比 src 低
*/
render?: (props: PhotoRenderParams) => React.ReactNode;
/**
* 自定义覆盖节点
*/
overlay?: React.ReactNode;
/**
* 自定义渲染节点宽度
*/
width?: number;
/**
* 自定义渲染节点高度
*/
height?: number;
/**
* 子节点,一般为缩略图
*/
children?: React.ReactElement;
/**
* 触发的事件
*/
triggers?: ('onClick' | 'onDoubleClick')[];
}
declare const PhotoView: React.FC<PhotoViewProps>;
export default PhotoView;
@@ -0,0 +1,23 @@
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $BigInt = GetIntrinsic('%BigInt%', true);
var $TypeError = require('es-errors/type');
var $SyntaxError = require('es-errors/syntax');
// https://262.ecma-international.org/11.0/#sec-stringtobigint
module.exports = function StringToBigInt(argument) {
if (typeof argument !== 'string') {
throw new $TypeError('`argument` must be a string');
}
if (!$BigInt) {
throw new $SyntaxError('BigInts are not supported in this environment');
}
try {
return $BigInt(argument);
} catch (e) {
return NaN;
}
};
@@ -0,0 +1,17 @@
/**
* https://tc39.es/ecma402/#sec-canonicalizetimezonename
* @param tz
*/
export function CanonicalizeTimeZoneName(tz, _a) {
var zoneNames = _a.zoneNames, uppercaseLinks = _a.uppercaseLinks;
var uppercasedTz = tz.toUpperCase();
var uppercasedZones = zoneNames.reduce(function (all, z) {
all[z.toUpperCase()] = z;
return all;
}, {});
var ianaTimeZone = uppercaseLinks[uppercasedTz] || uppercasedZones[uppercasedTz];
if (ianaTimeZone === 'Etc/UTC' || ianaTimeZone === 'Etc/GMT') {
return 'UTC';
}
return ianaTimeZone;
}
@@ -0,0 +1,16 @@
var CertificateIssuer_1;
import { __decorate } from "tslib";
import { AsnType, AsnTypeTypes } from "@peculiar/asn1-schema";
import { GeneralNames } from "../general_names";
import { id_ce } from "../object_identifiers";
export const id_ce_certificateIssuer = `${id_ce}.29`;
let CertificateIssuer = CertificateIssuer_1 = class CertificateIssuer extends GeneralNames {
constructor(items) {
super(items);
Object.setPrototypeOf(this, CertificateIssuer_1.prototype);
}
};
CertificateIssuer = CertificateIssuer_1 = __decorate([
AsnType({ type: AsnTypeTypes.Sequence })
], CertificateIssuer);
export { CertificateIssuer };
@@ -0,0 +1,30 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _isBrowser = _interopRequireDefault(require("../../../utils/isBrowser"));
var _isDocumentVisible = _interopRequireDefault(require("./isDocumentVisible"));
var _isOnline = _interopRequireDefault(require("./isOnline"));
// from swr
var listeners = new Set();
function subscribe(listener) {
listeners.add(listener);
return function unsubscribe() {
listeners.has(listener) && listeners["delete"](listener);
};
}
if (_isBrowser["default"]) {
var revalidate = function revalidate() {
if (!(0, _isDocumentVisible["default"])() || !(0, _isOnline["default"])()) return;
listeners.forEach(function (listener) {
return listener();
});
};
window.addEventListener('visibilitychange', revalidate, false);
window.addEventListener('focus', revalidate, false);
}
var _default = exports["default"] = subscribe;
@@ -0,0 +1 @@
{"mappings":";;;AAAA,kIAAkI;;;AAQ3H,SAAS,0CACd,IAA6B,EAC7B,SAAkC;IAElC,IAAI,CAAC,CAAA,GAAA,gBAAQ,KACX,OAAO,aAAa,OAAO,KAAK,QAAQ,CAAC,aAAa;IAGxD,IAAI,CAAC,QAAQ,CAAC,WACZ,OAAO;IAGT,IAAI,cAAqD;IAEzD,MAAO,gBAAgB,KAAM;QAC3B,IAAI,gBAAgB,MAClB,OAAO;QAGT,IAAI,AAAC,YAAgC,OAAO,KAAK,UAC/C,AAAC,YAAgC,YAAY,EAC7C,qBAAqB;QACrB,cAAc,AAAC,YAAgC,YAAY,CAAE,UAAU;aAClE,IAAI,CAAA,GAAA,yCAAW,EAAE,cACtB,4BAA4B;QAC5B,cAAc,YAAY,IAAI;aAE9B,cAAc,YAAY,UAAU;IAExC;IAEA,OAAO;AACT;AAKO,MAAM,4CAAmB,CAAC,MAAgB,QAAQ;QAOvD;IANA,IAAI,CAAC,CAAA,GAAA,gBAAQ,KACX,OAAO,IAAI,aAAa;IAE1B,IAAI,gBAAgC,IAAI,aAAa;IAErD,MAAO,iBAAiB,gBAAgB,mBACxC,4BAAA,cAAc,UAAU,cAAxB,gDAAA,0BAA0B,aAAa,EACrC,gBAAgB,cAAc,UAAU,CAAC,aAAa;IAGxD,OAAO;AACT;AAKO,SAAS,0CAAgC,KAAQ;IACtD,IAAI,CAAA,GAAA,gBAAQ,OAAO,AAAC,MAAM,MAAM,CAAiB,UAAU,EAAE;QAC3D,IAAI,MAAM,YAAY,EACpB,OAAO,MAAM,YAAY,EAAE,CAAC,EAAE;IAElC;IACA,OAAO,MAAM,MAAM;AACrB","sources":["packages/@react-aria/utils/src/shadowdom/DOMFunctions.ts"],"sourcesContent":["// Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16\n\nimport {isShadowRoot} from '../domHelpers';\nimport {shadowDOM} from '@react-stately/flags';\n\n/**\n * ShadowDOM safe version of Node.contains.\n */\nexport function nodeContains(\n node: Node | null | undefined,\n otherNode: Node | null | undefined\n): boolean {\n if (!shadowDOM()) {\n return otherNode && node ? node.contains(otherNode) : false;\n }\n\n if (!node || !otherNode) {\n return false;\n }\n\n let currentNode: HTMLElement | Node | null | undefined = otherNode;\n\n while (currentNode !== null) {\n if (currentNode === node) {\n return true;\n }\n\n if ((currentNode as HTMLSlotElement).tagName === 'SLOT' &&\n (currentNode as HTMLSlotElement).assignedSlot) {\n // Element is slotted\n currentNode = (currentNode as HTMLSlotElement).assignedSlot!.parentNode;\n } else if (isShadowRoot(currentNode)) {\n // Element is in shadow root\n currentNode = currentNode.host;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return false;\n}\n\n/**\n * ShadowDOM safe version of document.activeElement.\n */\nexport const getActiveElement = (doc: Document = document): Element | null => {\n if (!shadowDOM()) {\n return doc.activeElement;\n }\n let activeElement: Element | null = doc.activeElement;\n\n while (activeElement && 'shadowRoot' in activeElement &&\n activeElement.shadowRoot?.activeElement) {\n activeElement = activeElement.shadowRoot.activeElement;\n }\n\n return activeElement;\n};\n\n/**\n * ShadowDOM safe version of event.target.\n */\nexport function getEventTarget<T extends Event>(event: T): Element {\n if (shadowDOM() && (event.target as HTMLElement).shadowRoot) {\n if (event.composedPath) {\n return event.composedPath()[0] as Element;\n }\n }\n return event.target as Element;\n}\n"],"names":[],"version":3,"file":"DOMFunctions.module.js.map"}
@@ -0,0 +1,54 @@
"use strict";var bn=Object.defineProperty;var a=(t,e)=>bn(t,"name",{value:e,configurable:!0});var ct=require("node:os"),vn=require("tty"),Sn=require("esbuild"),Bn=require("./package-Dxt5kIHw.cjs"),he=require("./get-pipe-path-BoR10qr8.cjs"),_u=require("node:url"),$n=require("child_process"),z=require("path"),oe=require("fs"),ke=require("./node-features-roYmp9jK.cjs"),Tn=require("node:path"),xn=require("events"),_e=require("util"),On=require("stream"),Au=require("os"),ue=require("./index-BWFBUo6r.cjs"),Nn=require("node:net"),ft=require("node:fs"),Hn=require("./temporary-directory-B83uKxJF.cjs");require("module");const Pn="known-flag",Ln="unknown-flag",In="argument",{stringify:Ae}=JSON,kn=/\B([A-Z])/g,Mn=a(t=>t.replace(kn,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Gn}=Object.prototype,ye=a((t,e)=>Gn.call(t,e),"w$2"),Wn=a(t=>Array.isArray(t),"L$2"),yu=a(t=>typeof t=="function"?[t,!1]:Wn(t)?[t[0],!0]:yu(t.type),"b$2"),jn=a((t,e)=>t===Boolean?e!=="false":e,"d$2"),Un=a((t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),"m$1"),Kn=/[\s.:=]/,Vn=a(t=>{const e=`Flag name ${Ae(t)}`;if(t.length===0)throw new Error(`${e} cannot be empty`);if(t.length===1)throw new Error(`${e} must be longer than a character`);const u=t.match(Kn);if(u)throw new Error(`${e} cannot contain ${Ae(u?.[0])}`)},"B"),zn=a(t=>{const e={},u=a((r,n)=>{if(ye(e,r))throw new Error(`Duplicate flags named ${Ae(r)}`);e[r]=n},"r");for(const r in t){if(!ye(t,r))continue;Vn(r);const n=t[r],s=[[],...yu(n),n];u(r,s);const i=Mn(r);if(r!==i&&u(i,s),"alias"in n&&typeof n.alias=="string"){const{alias:D}=n,o=`Flag alias ${Ae(D)} for flag ${Ae(r)}`;if(D.length===0)throw new Error(`${o} cannot be empty`);if(D.length>1)throw new Error(`${o} must be a single character`);u(D,s)}}return e},"K$1"),Yn=a((t,e)=>{const u={};for(const r in t){if(!ye(t,r))continue;const[n,,s,i]=e[r];if(n.length===0&&"default"in i){let{default:D}=i;typeof D=="function"&&(D=D()),u[r]=D}else u[r]=s?n:n.pop()}return u},"_$2"),Me="--",qn=/[.:=]/,Xn=/^-{1,2}\w/,Qn=a(t=>{if(!Xn.test(t))return;const e=!t.startsWith(Me);let u=t.slice(e?1:2),r;const n=u.match(qn);if(n){const{index:s}=n;r=u.slice(s+1),u=u.slice(0,s)}return[u,r,e]},"N"),Zn=a((t,{onFlag:e,onArgument:u})=>{let r;const n=a((s,i)=>{if(typeof r!="function")return!0;r(s,i),r=void 0},"o");for(let s=0;s<t.length;s+=1){const i=t[s];if(i===Me){n();const o=t.slice(s+1);u?.(o,[s],!0);break}const D=Qn(i);if(D){if(n(),!e)continue;const[o,c,f]=D;if(f)for(let h=0;h<o.length;h+=1){n();const l=h===o.length-1;r=e(o[h],l?c:void 0,[s,h+1,l])}else r=e(o,c,[s])}else n(i,[s])&&u?.([i],[s])}n()},"$$1"),Jn=a((t,e)=>{for(const[u,r,n]of e.reverse()){if(r){const s=t[u];let i=s.slice(0,r);if(n||(i+=s.slice(r+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},"E"),wu=a((t,e=process.argv.slice(2),{ignore:u}={})=>{const r=[],n=zn(t),s={},i=[];return i[Me]=[],Zn(e,{onFlag(D,o,c){const f=ye(n,D);if(!u?.(f?Pn:Ln,D,o)){if(f){const[h,l]=n[D],p=jn(l,o),C=a((g,y)=>{r.push(c),y&&r.push(y),h.push(Un(l,g||""))},"p");return p===void 0?C:C(p)}ye(s,D)||(s[D]=[]),s[D].push(o===void 0?!0:o),r.push(c)}},onArgument(D,o,c){u?.(In,e[o[0]])||(i.push(...D),c?(i[Me]=D,e.splice(o[0])):r.push(o))}}),Jn(e,r),{flags:Yn(t,n),unknownFlags:s,_:i}},"U$2");var es=Object.create,Ge=Object.defineProperty,ts=Object.defineProperties,us=Object.getOwnPropertyDescriptor,rs=Object.getOwnPropertyDescriptors,ns=Object.getOwnPropertyNames,Ru=Object.getOwnPropertySymbols,ss=Object.getPrototypeOf,bu=Object.prototype.hasOwnProperty,is=Object.prototype.propertyIsEnumerable,vu=a((t,e,u)=>e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,"W$1"),We=a((t,e)=>{for(var u in e||(e={}))bu.call(e,u)&&vu(t,u,e[u]);if(Ru)for(var u of Ru(e))is.call(e,u)&&vu(t,u,e[u]);return t},"p"),ht=a((t,e)=>ts(t,rs(e)),"c"),Ds=a(t=>Ge(t,"__esModule",{value:!0}),"nD"),os=a((t,e)=>()=>(t&&(e=t(t=0)),e),"rD"),as=a((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"iD"),ls=a((t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ns(e))!bu.call(t,n)&&n!=="default"&&Ge(t,n,{get:a(()=>e[n],"get"),enumerable:!(r=us(e,n))||r.enumerable});return t},"oD"),cs=a((t,e)=>ls(Ds(Ge(t!=null?es(ss(t)):{},"default",{value:t,enumerable:!0})),t),"BD"),K=os(()=>{}),fs=as((t,e)=>{K(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uLine truncated
`).map(ae)),"b$1"),Cs=a(t=>{let e=[];for(let u of t){let{length:r}=u,n=r-e.length;for(let s=0;s<n;s+=1)e.push(0);for(let s=0;s<r;s+=1){let i=Bu(u[s]);i>e[s]&&(e[s]=i)}}return e},"k$1");K();var $u=/^\d+%$/,Tu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Fs=a((t,e)=>{var u;let r=[];for(let n=0;n<t.length;n+=1){let s=(u=e[n])!=null?u:"auto";if(typeof s=="number"||s==="auto"||s==="content-width"||typeof s=="string"&&$u.test(s)){r.push(ht(We({},Tu),{width:s,contentWidth:t[n]}));continue}if(s&&typeof s=="object"){let i=ht(We(We({},Tu),s),{contentWidth:t[n]});i.horizontalPadding=i.paddingLeft+i.paddingRight,r.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(s)}`)}return r},"sD");function gs(t,e){for(let u of t){let{width:r}=u;if(r==="content-width"&&(u.width=u.contentWidth),r==="auto"){let o=Math.min(20,u.contentWidth);u.width=o,u.autoOverflow=u.contentWidth-o}if(typeof r=="string"&&$u.test(r)){let o=Number.parseFloat(r.slice(0,-1))/100;u.width=Math.floor(e*o)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:n}=u,s=1,i=s+n;if(i>=e){let o=i-e,c=Math.ceil(u.paddingLeft/n*o),f=o-c;u.paddingLeft-=c,u.paddingRight-=f,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let D=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,D),s)}}a(gs,"aD");var xu=a(()=>Object.assign([],{columns:0}),"G$1");function ms(t,e){let u=[xu()],[r]=u;for(let n of t){let s=n.width+n.horizontalPadding;r.columns+s>e&&(r=xu(),u.push(r)),r.push(n),r.columns+=s}for(let n of u){let s=n.reduce((l,p)=>l+p.width+p.horizontalPadding,0),i=e-s;if(i===0)continue;let D=n.filter(l=>"autoOverflow"in l),o=D.filter(l=>l.autoOverflow>0),c=o.reduce((l,p)=>l+p.autoOverflow,0),f=Math.min(c,i);for(let l of o){let p=Math.floor(l.autoOverflow/c*f);l.width+=p,i-=p}let h=Math.floor(i/D.length);for(let l=0;l<D.length;l+=1){let p=D[l];l===D.length-1?p.width+=i:p.width+=h,i-=h}}return u}a(ms,"lD");function _s(t,e,u){let r=Fs(u,e);return gs(r,t),ms(r,t)}a(_s,"Z$1"),K(),K(),K();var dt=10,Ou=a((t=0)=>e=>`\x1B[${e+t}m`,"U$1"),Nu=a((t=0)=>e=>`\x1B[${38+t};5;${e}m`,"V$1"),Hu=a((t=0)=>(e,u,r)=>`\x1B[${38+t};2;${e};${u};${r}m`,"Y");function As(){let t=new Map,e={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],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]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[u,r]of Object.entries(e)){for(let[n,s]of Object.entries(r))e[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=e[n],t.set(s[0],s[1]);Object.defineProperty(e,u,{value:r,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Ou(),e.color.ansi256=Nu(),e.color.ansi16m=Hu(),e.bgColor.ansi=Ou(dt),e.bgColor.ansi256=Nu(dt),e.bgColor.ansi16m=Hu(dt),Object.defineProperties(e,{rgbToAnsi256:{value:a((u,r,n)=>u===r&&r===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),"value"),enumerable:!1},hexToRgb:{value:a(u=>{let r=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!r)return[0,0,0];let{colorString:n}=r.groups;n.length===3&&(n=n.split("").map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},"value"),enumerable:!1},hexToAnsi256:{value:a(u=>e.rgbToAnsi256(...e.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:a(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let r,n,s;if(u>=232)r=((u-232)*10+8)/255,n=r,s=r;else{u-=16;let o=u%36;r=Math.floor(u/36)/5,n=Math.floor(o/6)/5,s=o%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let D=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(D+=60),D},"value"),enumerable:!1},rgbToAnsi:{value:a((u,r,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,r,n)),"value"),enumerable:!1},hexToAnsi:{value:a(u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),"value"),enumerable:!1}}),e}a(As,"AD");var ys=As(),ws=ys,je=new Set(["\x1B","\x9B"]),Rs=39,Et="\x07",Pu="[",bs="]",Lu="m",pt=`${bs}8;;`,Iu=a(t=>`${je.values().next().value}${Pu}${t}${Lu}`,"J$1"),ku=a(t=>`${jLine truncated
`)];for(let[c,f]of o.entries()){if(r+=f,je.has(f)){let{groups:l}=new RegExp(`(?:\\${Pu}(?<code>\\d+)m|\\${pt}(?<uri>.*)${Et})`).exec(o.slice(c).join(""))||{groups:{}};if(l.code!==void 0){let p=Number.parseFloat(l.code);n=p===Rs?void 0:p}else l.uri!==void 0&&(s=l.uri.length===0?void 0:l.uri)}let h=ws.codes.get(Number(n));o[c+1]===`
`?(s&&(r+=ku("")),n&&h&&(r+=Iu(h))):f===`
`&&(n&&h&&(r+=Iu(n)),s&&(r+=ku(s)))}return r},"dD");function $s(t,e,u){return String(t).normalize().replace(/\r\n/g,`
`).split(`
`).map(r=>Bs(r,e,u)).join(`
`)}a($s,"T$1");var Mu=a(t=>Array.from({length:t}).fill(""),"X");function Ts(t,e){let u=[],r=0;for(let n of t){let s=0,i=n.map(o=>{var c;let f=(c=e[r])!=null?c:"";r+=1,o.preprocess&&(f=o.preprocess(f)),Bu(f)>o.width&&(f=$s(f,o.width,{hard:!0}));let h=f.split(`
`);if(o.postprocess){let{postprocess:l}=o;h=h.map((p,C)=>l.call(o,p,C))}return o.paddingTop&&h.unshift(...Mu(o.paddingTop)),o.paddingBottom&&h.push(...Mu(o.paddingBottom)),h.length>s&&(s=h.length),ht(We({},o),{lines:h})}),D=[];for(let o=0;o<s;o+=1){let c=i.map(f=>{var h;let l=(h=f.lines[o])!=null?h:"",p=Number.isFinite(f.width)?" ".repeat(f.width-ae(l)):"",C=f.paddingLeftString;return f.align==="right"&&(C+=p),C+=l,f.align==="left"&&(C+=p),C+f.paddingRightString}).join("");D.push(c)}u.push(D.join(`
`))}return u.join(`
`)}a(Ts,"P");function xs(t,e){if(!t||t.length===0)return"";let u=Cs(t),r=u.length;if(r===0)return"";let{stdoutColumns:n,columns:s}=hs(e);if(s.length>r)throw new Error(`${s.length} columns defined, but only ${r} columns found`);let i=_s(n,s,u);return t.map(D=>Ts(i,D)).join(`
`)}a(xs,"mD"),K();var Os=["<",">","=",">=","<="];function Ns(t){if(!Os.includes(t))throw new TypeError(`Invalid breakpoint operator: ${t}`)}a(Ns,"xD");function Hs(t){let e=Object.keys(t).map(u=>{let[r,n]=u.split(" ");Ns(r);let s=Number.parseInt(n,10);if(Number.isNaN(s))throw new TypeError(`Invalid breakpoint value: ${n}`);let i=t[u];return{operator:r,breakpoint:s,value:i}}).sort((u,r)=>r.breakpoint-u.breakpoint);return u=>{var r;return(r=e.find(({operator:n,breakpoint:s})=>n==="="&&u===s||n===">"&&u>s||n==="<"&&u<s||n===">="&&u>=s||n==="<="&&u<=s))==null?void 0:r.value}}a(Hs,"wD");const Ps=a(t=>t.replace(/[\W_]([a-z\d])?/gi,(e,u)=>u?u.toUpperCase():""),"S"),Ls=a(t=>t.replace(/\B([A-Z])/g,"-$1").toLowerCase(),"q"),Is={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:a(t=>t.trim(),"preprocess")},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function ks(t){let e=!1;return{type:"table",data:{tableData:Object.keys(t).sort((u,r)=>u.localeCompare(r)).map(u=>{const r=t[u],n="alias"in r;return n&&(e=!0),{name:u,flag:r,flagFormatted:`--${Ls(u)}`,aliasesEnabled:e,aliasFormatted:n?`-${r.alias}`:void 0}}).map(u=>(u.aliasesEnabled=e,[{type:"flagName",data:u},{type:"flagDescription",data:u}])),tableBreakpoints:Is}}}a(ks,"D");const Gu=a(t=>!t||(t.version??(t.help?t.help.version:void 0)),"A"),Wu=a(t=>{const e="parent"in t&&t.parent?.name;return(e?`${e} `:"")+t.name},"C");function Ms(t){const e=[];t.name&&e.push(Wu(t));const u=Gu(t)??("parent"in t&&Gu(t.parent));if(u&&e.push(`v${u}`),e.length!==0)return{id:"name",type:"text",data:`${e.join(" ")}
`}}a(Ms,"R");function Gs(t){const{help:e}=t;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
`}}a(Gs,"L");function Ws(t){const e=t.help||{};if("usage"in e)return e.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(e.usage)?e.usage.join(`
`):e.usage}}:void 0;if(t.name){const u=[],r=[Wu(t)];if(t.flags&&Object.keys(t.flags).length>0&&r.push("[flags...]"),t.parameters&&t.parameters.length>0){const{parameters:n}=t,s=n.indexOf("--"),i=s>-1&&n.slice(s+1).some(D=>D.startsWith("<"));r.push(n.map(D=>D!=="--"?D:i?"--":"[--]").join(" "))}if(r.length>1&&u.push(r.join(" ")),"commands"in t&&t.commands?.length&&u.push(`${t.name} <command>`),u.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:u.join(`
`)}}}}a(Ws,"T");function js(t){return!("commands"in t)||!t.commands?.length?void 0:{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:t.commands.map(e=>[e.options.name,e.options.help?e.options.help.description:""]),tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}a(js,"_");function Us(t){if(!(!t.flags||Object.keys(t.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:ks(t.flags),indentBody:0}}}a(Us,"k");function Ks(t){const{help:e}=t;if(!e||!e.examples||e.examples.length===0)return;let{examples:u}=e;if(Array.isArray(u)&&(u=u.join(`
`)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}a(Ks,"F");function Vs(t){if(!("alias"in t)||!t.alias)return;const{alias:e}=t;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(e)?e.join(", "):e}}}a(Vs,"H");const zs=a(t=>[Ms,Gs,Ws,js,Us,Ks,Vs].map(e=>e(t)).filter(Boolean),"U"),Ys=vn.WriteStream.prototype.hasColors();class qs{static{a(this,"M")}text(e){return e}bold(e){return Ys?`\x1B[1m${e}\x1B[22m`:e.toLocaleUpperCase()}indentText({text:e,spaces:u}){return e.replace(/^/gm," ".repeat(u))}heading(e){return this.bold(e)}section({title:e,body:u,indentBody:r=2}){return`${(e?`${this.heading(e)}
`:"")+(u?this.indentText({text:this.render(u),spaces:r}):"")}
`}table({tableData:e,tableOptions:u,tableBreakpoints:r}){return xs(e.map(n=>n.map(s=>this.render(s))),r?Hs(r):u)}flagParameter(e){return e===Boolean?"":e===String?"<string>":e===Number?"<number>":Array.isArray(e)?this.flagParameter(e[0]):"<value>"}flagOperator(e){return" "}flagName(e){const{flag:u,flagFormatted:r,aliasesEnabled:n,aliasFormatted:s}=e;let i="";if(s?i+=`${s}, `:n&&(i+=" "),i+=r,"placeholder"in u&&typeof u.placeholder=="string")i+=`${this.flagOperator(e)}${u.placeholder}`;else{const D=this.flagParameter("type"in u?u.type:u);D&&(i+=`${this.flagOperator(e)}${D}`)}return i}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){let u="description"in e?e.description??"":"";if("default"in e){let{default:r}=e;typeof r=="function"&&(r=r()),r&&(u+=` (default: ${this.flagDefault(r)})`)}return u}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(u=>this.render(u)).join(`
`);if("type"in e&&this[e.type]){const u=this[e.type];if(typeof u=="function")return u.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const Ft=/^[\w.-]+$/,{stringify:ee}=JSON,Xs=/[|\\{}()[\]^$+*?.]/;function gt(t){const e=[];let u,r;for(const n of t){if(r)throw new Error(`Invalid parameter: Spread parameter ${ee(r)} must be last`);const s=n[0],i=n[n.length-1];let D;if(s==="<"&&i===">"&&(D=!0,u))throw new Error(`Invalid parameter: Required parameter ${ee(n)} cannot come after optional parameter ${ee(u)}`);if(s==="["&&i==="]"&&(D=!1,u=n),D===void 0)throw new Error(`Invalid parameter: ${ee(n)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let o=n.slice(1,-1);const c=o.slice(-3)==="...";c&&(r=n,o=o.slice(0,-3));const f=o.match(Xs);if(f)throw new Error(`Invalid parameter: ${ee(n)}. Invalid character found ${ee(f[0])}`);e.push({name:o,required:D,spread:c})}return e}a(gt,"w");function mt(t,e,u,r){for(let n=0;n<e.length;n+=1){const{name:s,required:i,spread:D}=e[n],o=Ps(s);if(o in t)throw new Error(`Invalid parameter: ${ee(s)} is used more than once.`);const c=D?u.slice(n):u[n];if(D&&(n=e.length),i&&(!c||D&&c.length===0))return console.error(`Error: Missing required parameter ${ee(s)}
`),r(),process.exit(1);t[o]=c}}a(mt,"b");function Qs(t){return t===void 0||t!==!1}a(Qs,"W");function ju(t,e,u,r){const n={...e.flags},s=e.version;s&&(n.version={type:Boolean,description:"Show version"});const{help:i}=e,D=Qs(i);D&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const o=wu(n,r,{ignore:e.ignoreArgv}),c=a(()=>{console.log(e.version)},"f");if(s&&o.flags.version===!0)return c(),process.exit(0);const f=new qs,h=D&&i?.render?i.render:C=>f.render(C),l=a(C=>{const g=zs({...e,...C?{help:C}:{},flags:n});console.log(h(g,f))},"u");if(D&&o.flags.help===!0)return l(),process.exit(0);if(e.parameters){let{parameters:C}=e,g=o._;const y=C.indexOf("--"),B=C.slice(y+1),H=Object.create(null);if(y>-1&&B.length>0){C=C.slice(0,y);const $=o._["--"];g=g.slice(0,-$.length||void 0),mt(H,gt(C),g,l),mt(H,gt(B),$,l)}else mt(H,gt(C),g,l);Object.assign(o._,H)}const p={...o,showVersion:c,showHelp:l};return typeof u=="function"&&u(p),{command:t,...p}}a(ju,"x");function Zs(t,e){const u=new Map;for(const r of e){const n=[r.options.name],{alias:s}=r.options;s&&(Array.isArray(s)?n.push(...s):n.push(s));for(const i of n){if(u.has(i))throw new Error(`Duplicate command name found: ${ee(i)}`);u.set(i,r)}}return u.get(t)}a(Zs,"z");function Uu(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!Ft.test(t.name)))throw new Error(`Invalid script name: ${ee(t.name)}`);const r=u[0];if(t.commands&&Ft.test(r)){const n=Zs(r,t.commands);if(n)return ju(n.options.name,{...n.options,parent:t},n.callback,u.slice(1))}return ju(void 0,t,e,u)}a(Uu,"Z");function Js(t,e){if(!t)throw new Error("Command options are required");const{name:u}=t;if(t.name===void 0)throw new Error("Command name is required");if(!Ft.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}a(Js,"G");var ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ti(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}a(ti,"getDefaultExportFromCjs");var de={exports:{}},_t,Ku;function ui(){if(Ku)return _t;Ku=1,_t=r,r.sync=n;var t=oe;function e(s,i){var D=i.pathExt!==void 0?i.pathExt:process.env.PATHEXT;if(!D||(D=D.split(";"),D.indexOf("")!==-1))return!0;for(var o=0;o<D.length;o++){var c=D[o].toLowerCase();if(c&&s.substr(-c.length).toLowerCase()===c)return!0}return!1}a(e,"checkPathExt");function u(s,i,D){return!s.isSymbolicLink()&&!s.isFile()?!1:e(i,D)}a(u,"checkStat");function r(s,i,D){t.stat(s,function(o,c){D(o,o?!1:u(c,s,i))})}a(r,"isexe");function n(s,i){return u(t.statSync(s),s,i)}return a(n,"sync"),_t}a(ui,"requireWindows");var At,Vu;function ri(){if(Vu)return At;Vu=1,At=e,e.sync=u;var t=oe;function e(s,i,D){t.stat(s,function(o,c){D(o,o?!1:r(c,i))})}a(e,"isexe");function u(s,i){return r(t.statSync(s),i)}a(u,"sync");function r(s,i){return s.isFile()&&n(s,i)}a(r,"checkStat");function n(s,i){var D=s.mode,o=s.uid,c=s.gid,f=i.uid!==void 0?i.uid:process.getuid&&process.getuid(),h=i.gid!==void 0?i.gid:process.getgid&&process.getgid(),l=parseInt("100",8),p=parseInt("010",8),C=parseInt("001",8),g=l|p,y=D&C||D&p&&c===h||D&l&&o===f||D&g&&f===0;return y}return a(n,"checkMode"),At}a(ri,"requireMode");var Ue;process.platform==="win32"||ei.TESTING_WINDOWS?Ue=ui():Ue=ri();var ni=yt;yt.sync=si;function yt(t,e,u){if(typeof e=="function"&&(u=e,e={}),!u){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,n){yt(t,e||{},function(s,i){s?n(s):r(i)})})}Ue(t,e||{},function(r,n){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,n=!1),u(r,n)})}a(yt,"isexe$1");function si(t,e){try{return Ue.sync(t,e||{})}catch(u){if(e&&e.ignoreErrors||u.code==="EACCES")return!1;throw u}}a(si,"sync");const Ee=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",zu=z,ii=Ee?";":":",Yu=ni,qu=a(t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),"getNotFoundError"),Xu=a((t,e)=>{const u=e.colon||ii,r=t.match(/\//)||Ee&&t.match(/\\/)?[""]:[...Ee?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],n=Ee?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ee?n.split(u):[""];return Ee&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:r,pathExt:s,pathExtExe:n}},"getPathInfo"),Qu=a((t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:r,pathExt:n,pathExtExe:s}=Xu(t,e),i=[],D=a(c=>new Promise((f,h)=>{if(c===r.length)return e.all&&i.length?f(i):h(qu(t));const l=r[c],p=/^".*"$/.test(l)?l.slice(1,-1):l,C=zu.join(p,t),g=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+C:C;f(o(g,c,0))}),"step"),o=a((c,f,h)=>new Promise((l,p)=>{if(h===n.length)return l(D(f+1));const C=n[h];Yu(c+C,{pathExt:s},(g,y)=>{if(!g&&y)if(e.all)i.push(c+C);else return l(c+C);return l(o(c,f,h+1))})}),"subStep");return u?D(0).then(c=>u(null,c),u):D(0)},"which$1"),Di=a((t,e)=>{e=e||{};const{pathEnv:u,pathExt:r,Line truncated
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*/var Rr=a(function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var u=t.length;if(u<=1)return t;var r="";if(u>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),r="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),r+s.join("/")},"normalizePath$2"),wD=Ut.exports;Object.defineProperty(wD,"__esModule",{value:!0});const br=Fr,RD=Rr,vr="!",bD={returnIndex:!1},vD=a(t=>Array.isArray(t)?t:[t],"arrify$1"),SD=a((t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){const u=br(t,e);return r=>t===r||u(r)}return t instanceof RegExp?u=>t.test(u):u=>!1},"createPattern"),Sr=a((t,e,u,r)=>{const n=Array.isArray(u),s=n?u[0]:u;if(!n&&typeof s!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));const i=RD(s,!1);for(let o=0;o<e.length;o++){const c=e[o];if(c(i))return r?-1:!1}const D=n&&[i].concat(u.slice(1));for(let o=0;o<t.length;o++){const c=t[o];if(n?c(...D):c(i))return r?o:!0}return r?-1:!1},"matchPatterns"),Kt=a((t,e,u=bD)=>{if(t==null)throw new TypeError("anymatch: specify first argument");const r=typeof u=="boolean"?{returnIndex:u}:u,n=r.returnIndex||!1,s=vD(t),i=s.filter(o=>typeof o=="string"&&o.charAt(0)===vr).map(o=>o.slice(1)).map(o=>br(o,r)),D=s.filter(o=>typeof o!="string"||typeof o=="string"&&o.charAt(0)!==vr).map(o=>SD(o,r));return e==null?(o,c=!1)=>Sr(D,i,o,typeof c=="boolean"?c:!1):Sr(D,i,e,n)},"anymatch$1");Kt.default=Kt,Ut.exports=Kt;var BD=Ut.exports;/*!
* is-extglob <https://github.com/jonschlinkert/is-extglob>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/var $D=a(function(e){if(typeof e!="string"||e==="")return!1;for(var u;u=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(u[2])return!0;e=e.slice(u.index+u[0].length)}return!1},"isExtglob");/*!
* is-glob <https://github.com/jonschlinkert/is-glob>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/var TD=$D,Br={"{":"}","(":")","[":"]"},xD=a(function(t){if(t[0]==="!")return!0;for(var e=0,u=-2,r=-2,n=-2,s=-2,i=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||r!==-1&&t[e]==="["&&t[e+1]!=="]"&&(r<e&&(r=t.indexOf("]",e)),r>e&&(i===-1||i>r||(i=t.indexOf("\\",e),i===-1||i>r)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(i=t.indexOf("\\",e),i===-1||i>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(i=t.indexOf("\\",e),i===-1||i>s))||u!==-1&&t[e]==="("&&t[e+1]!=="|"&&(u<e&&(u=t.indexOf("|",e)),u!==-1&&t[u+1]!==")"&&(s=t.indexOf(")",u),s>u&&(i=t.indexOf("\\",u),i===-1||i>s))))return!0;if(t[e]==="\\"){var D=t[e+1];e+=2;var o=Br[D];if(o){var c=t.indexOf(o,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},"strictCheck"),OD=a(function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var u=t[e+1];e+=2;var r=Br[u];if(r){var n=t.indexOf(r,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1},"relaxedCheck"),$r=a(function(e,u){if(typeof e!="string"||e==="")return!1;if(TD(e))return!0;var r=xD;return u&&u.strict===!1&&(r=OD),r(e)},"isGlob"),ND=$r,HD=z.posix.dirname,PD=Au.platform()==="win32",Vt="/",LD=/\\/g,ID=/[\{\[].*[\}\]]$/,kD=/(^|[^\\])([\{\[]|\([^\)]+$)/,MD=/\\([\!\*\?\|\[\]\(\)\{\}])/g,GD=a(function(e,u){var r=Object.assign({flipBackslashes:!0},u);r.flipBackslashes&&PD&&e.indexOf(Vt)<0&&(e=e.replace(LD,Vt)),ID.test(e)&&(e+=Vt),e+="a";do e=HD(e);while(ND(e)||kD.test(e));return e.replace(MD,"$1")},"globParent"),Je={};(function(t){t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,u)=>e.nodes.find(r=>r.type===u),t.exceedsLimit=(e,u,r=1,n)=>n===!1||!t.isInteger(e)||!t.isInteger(u)?!1:(Number(u)-Number(e))/Number(r)>=n,t.escapeNode=(e,u=0,r)=>{let n=e.nodes[u];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0),t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((u,r)=>(r.type==="text"&&u.push(r.value),r.type==="range"&&(r.type="text"),u),[]),t.flatten=(...e)=>{const u=[],r=a(n=>{for(let s=0;s<n.length;s++){let i=n[s];Array.isArray(i)?r(i):i!==void 0&&u.push(i)}return u},"flat");return r(e),u}})(Je);const Tr=Je;var zt=a((t,e={})=>{let u=a((r,n={})=>{let s=e.escapeInvalid&&Tr.isInvalidBrace(n),i=r.invalid===!0&&e.escapeInvalid===!0,D="";if(r.value)return(s||i)&&Tr.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let o of r.nodes)D+=u(o);return D},"stringify");return u(t)},"stringify$4");/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/var WD=a(function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1},"isNumber$2");/*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/const xr=WD,le=a((t,e,u)=>{if(xr(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(xr(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...u};typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let n=String(r.relaxZeros),s=String(r.shorthand),i=String(r.capture),D=String(r.wrap),o=t+":"+e+"="+n+s+i+D;if(le.cache.hasOwnProperty(o))return le.cache[o].result;let c=Math.min(t,e),f=Math.max(t,e);if(Math.abs(c-f)===1){let g=t+"|"+e;return r.capture?`(${g})`:r.wrap===!1?g:`(?:${g})`}let h=Ir(t)||Ir(e),l={min:t,max:e,a:c,b:f},p=[],C=[];if(h&&(l.isPadded=h,l.maxLen=String(l.max).length),c<0){let g=f<0?Math.abs(f):1;C=Or(g,Math.abs(c),l,r),c=l.a=0}return f>=0&&(p=Or(c,f,l,r)),l.negatives=C,l.positives=p,l.result=jD(C,p),r.capture===!0?l.result=`(${l.result})`:r.wrap!==!1&&p.length+C.length>1&&(l.result=`(?:${l.result})`),le.cache[o]=l,l.result},"toRegexRange$1");function jD(t,e,u){let r=Yt(t,e,"-",!1)||[],n=Yt(e,t,"",!1)||[],s=Yt(t,e,"-?",!0)||[];return r.concat(s).concat(n).join("|")}a(jD,"collatePatterns");function UD(t,e){let u=1,r=1,n=Hr(t,u),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),u+=1,n=Hr(t,u);for(n=Pr(e+1,r)-1;t<n&&n<=e;)s.add(n),r+=1,n=Pr(e+1,r)-1;return s=[...s],s.sort(zD),s}a(UD,"splitToRanges");function KD(t,e,u){if(t===e)return{pattern:t,count:[],digits:0};let r=VD(t,e),n=r.length,s="",i=0;for(let D=0;D<n;D++){let[o,c]=r[D];o===c?s+=o:o!=="0"||c!=="9"?s+=YD(o,c):i++}return i&&(s+=u.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[i],digits:n}}a(KD,"rangeToPattern");function Or(t,e,u,r){let n=UD(t,e),s=[],i=t,D;for(let o=0;o<n.length;o++){let c=n[o],f=KD(String(i),String(c),r),h="";if(!u.isPadded&&D&&D.pattern===f.pattern){D.count.length>1&&D.count.pop(),D.count.push(f.count[0]),D.string=D.pattern+Lr(D.count),i=c+1;continue}u.isPadded&&(h=qD(c,u,r)),f.string=h+f.pattern+Lr(f.count),s.push(f),i=c+1,D=f}return s}a(Or,"splitToPatterns");function Yt(t,e,u,r,n){let s=[];for(let i of t){let{string:D}=i;!r&&!Nr(e,"string",D)&&s.push(u+D),r&&Nr(e,"string",D)&&s.push(u+D)}return s}a(Yt,"filterPatterns");function VD(t,e){let u=[];for(let r=0;r<t.length;r++)u.push([t[r],e[r]]);return u}a(VD,"zip");function zD(t,e){return t>e?1:e>t?-1:0}a(zD,"compare");function Nr(t,e,u){return t.some(r=>r[e]===u)}a(Nr,"contains");function Hr(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}a(Hr,"countNines");function Pr(t,e){return t-t%Math.pow(10,e)}a(Pr,"countZeros");function Lr(t){let[e=0,u=""]=t;return u||e>1?`{${e+(u?","+u:"")}}`:""}a(Lr,"toQuantifier");function YD(t,e,u){return`[${t}${e-t===1?"":"-"}${e}]`}a(YD,"toCharacterClass");function Ir(t){return/^-?(0+)\d/.test(t)}a(Ir,"hasPadding");function qD(t,e,u){if(!e.isPadded)return t;let r=Math.abs(e.maxLen-String(t).length),n=u.relaxZeros!==!1;switch(r){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${r}}`:`0{${r}}`}}a(qD,"padZeros"),le.cache={},le.clearCache=()=>le.cache={};var XD=le;/*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/const QD=_e,kr=XD,Mr=a(t=>t!==null&&typeof t=="object"&&!Array.isArray(t),"isObject"),ZD=a(t=>e=>t===!0?Number(e):String(e),"transform"),qt=a(t=>typeof t=="number"||typeof t=="string"&&t!=="","isValidValue"),ve=a(t=>Number.isInteger(+t),"isNumber"),Xt=a(t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},"zeros"),JD=a((t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,"stringify$3"),eo=a((t,e,u)=>{if(e>0){let r=t[0]==="-"?"-":"";r&&(t=t.slice(1)),t=r+t.padStart(r?e-1:e,"0")}return u===!1?String(t):t},"pad"),Gr=a((t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},"toMaxLen"),to=a((t,e)=>{t.negatives.sort((i,D)=>i<D?-1:i>D?1:0),t.positives.sort((i,D)=>i<D?-1:i>D?1:0);let u=e.capture?"":"?:",r="",n="",s;return t.positives.length&&(r=t.positives.join("|")),t.negatives.length&&(n=`-(${u}${t.negatives.join("|")})`),r&&n?s=`${r}|${n}`:s=r||n,e.wrap?`(${u}${s})`:s},"toSequence"),Wr=a((t,e,u,r)=>{if(u)return kr(t,e,{wrap:!1,...r});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},"toRange"),jr=a((t,e,u)=>{if(Array.isArray(t)){let r=u.wrap===!0,n=u.capture?"":"?:";return r?`(${n}${t.join("|")})`:t.join("|")}return kr(t,e,u)},"toRegex"),Ur=a((...t)=>new RangeError("Invalid range arguments: "+QD.inspect(...t)),"rangeError"),Kr=a((t,e,u)=>{if(u.strictRanges===!0)throw Ur([t,e]);return[]},"invalidRange"),uo=a((t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},"invalidStep"),ro=a((t,e,u=1,r={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(r.strictRanges===!0)throw Ur([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let i=n>s,D=String(t),o=String(e),c=String(u);u=Math.max(Math.abs(u),1);let f=Xt(D)||Xt(o)||Xt(c),h=f?Math.max(D.length,o.length,c.length):0,l=f===!1&&JD(t,e,r)===!1,p=r.transform||ZD(l);if(r.toRegex&&u===1)return Wr(Gr(t,h),Gr(e,h),!0,r);let C={negatives:[],positives:[]},g=a(H=>C[H<0?"negatives":"positives"].push(Math.abs(H)),"push"),y=[],B=0;for(;i?n>=s:n<=s;)r.toRegex===!0&&u>1?g(n):y.push(eo(p(n,B),h,l)),n=i?n-u:n+u,B++;return r.toRegex===!0?u>1?to(C,r):jr(y,null,{wrap:!1,...r}):y},"fillNumbers"),no=a((t,e,u=1,r={})=>{if(!ve(t)&&t.length>1||!ve(e)&&e.length>1)return Kr(t,e,r);let n=r.transform||(l=>String.fromCharCode(l)),s=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),D=s>i,o=Math.min(s,i),c=Math.max(s,i);if(r.toRegex&&u===1)return Wr(o,c,!1,r);let f=[],h=0;for(;D?s>=i:s<=i;)f.push(n(s,h)),s=D?s-u:s+u,h++;return r.toRegex===!0?jr(f,null,{wrap:!1,options:r}):f},"fillLetters"),et=a((t,e,u,r={})=>{if(e==null&&qt(t))return[t];if(!qt(t)||!qt(e))return Kr(t,e,r);if(typeof u=="function")return et(t,e,1,{transform:u});if(Mr(u))return et(t,e,0,u);let n={...r};return n.capture===!0&&(n.wrap=!0),u=u||n.step||1,ve(u)?ve(t)&&ve(e)?ro(t,e,u,n):no(t,e,Math.max(Math.abs(u),1),n):u!=null&&!Mr(u)?uo(u,n):et(t,e,1,u)},"fill$2");var Vr=et;const so=Vr,zr=Je,io=a((t,e={})=>{let u=a((r,n={})=>{let s=zr.isInvalidBrace(n),i=r.invalid===!0&&e.escapeInvalid===!0,D=s===!0||i===!0,o=e.escapeInvalid===!0?"\\":"",c="";if(r.isOpen===!0||r.isClose===!0)return o+r.value;if(r.type==="open")return D?o+r.value:"(";if(r.type==="close")return D?o+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":D?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let f=zr.reduce(r.nodes),h=so(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(r.nodes)for(let f of r.nodes)c+=u(f,r);return c},"walk");return u(t)},"compile$1");var Do=io;const oo=Vr,Yr=zt,Fe=Je,ce=a((t="",e="",u=!1)=>{let r=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?Fe.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)r.push(ce(s,e,u));else for(let s of e)u===!0&&typeof s=="string"&&(s=`{${s}}`),r.push(Array.isArray(s)?ce(n,s,u):n+s);return Fe.flatten(r)},"append"),ao=a((t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,r=a((n,s={})=>{n.queue=[];let i=s,D=s.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,D=i.queue;if(n.invalid||n.dollar){D.push(ce(D.pop(),Yr(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){D.push(ce(D.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Fe.reduce(n.nodes);if(Fe.exceedsLimit(...h,e.step,u))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=oo(...h,e);l.length===0&&(l=Yr(n,e)),D.push(ce(D.pop(),l)),n.nodes=[];return}let o=Fe.encloseBrace(n),c=n.queue,f=n;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,c=f.queue;for(let h=0;h<n.nodes.length;h++){let l=n.nodes[h];if(l.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(l.type==="close"){D.push(ce(D.pop(),c,o));continue}if(l.value&&l.type!=="open"){c.push(ce(c.pop(),l.value));continue}l.nodes&&r(l,n)}rLine truncated
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const fo=zt,{MAX_LENGTH:qr,CHAR_BACKSLASH:Qt,CHAR_BACKTICK:ho,CHAR_COMMA:Eo,CHAR_DOT:po,CHAR_LEFT_PARENTHESES:Co,CHAR_RIGHT_PARENTHESES:Fo,CHAR_LEFT_CURLY_BRACE:go,CHAR_RIGHT_CURLY_BRACE:mo,CHAR_LEFT_SQUARE_BRACKET:Xr,CHAR_RIGHT_SQUARE_BRACKET:Qr,CHAR_DOUBLE_QUOTE:_o,CHAR_SINGLE_QUOTE:Ao,CHAR_NO_BREAK_SPACE:yo,CHAR_ZERO_WIDTH_NOBREAK_SPACE:wo}=co,Ro=a((t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},r=typeof u.maxLength=="number"?Math.min(qr,u.maxLength):qr;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},s=[n],i=n,D=n,o=0,c=t.length,f=0,h=0,l;const p=a(()=>t[f++],"advance"),C=a(g=>{if(g.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&g.type==="text"){D.value+=g.value;return}return i.nodes.push(g),g.parent=i,g.prev=D,D=g,g},"push");for(C({type:"bos"});f<c;)if(i=s[s.length-1],l=p(),!(l===wo||l===yo)){if(l===Qt){C({type:"text",value:(e.keepEscaping?l:"")+p()});continue}if(l===Qr){C({type:"text",value:"\\"+l});continue}if(l===Xr){o++;let g;for(;f<c&&(g=p());){if(l+=g,g===Xr){o++;continue}if(g===Qt){l+=p();continue}if(g===Qr&&(o--,o===0))break}C({type:"text",value:l});continue}if(l===Co){i=C({type:"paren",nodes:[]}),s.push(i),C({type:"text",value:l});continue}if(l===Fo){if(i.type!=="paren"){C({type:"text",value:l});continue}i=s.pop(),C({type:"text",value:l}),i=s[s.length-1];continue}if(l===_o||l===Ao||l===ho){let g=l,y;for(e.keepQuotes!==!0&&(l="");f<c&&(y=p());){if(y===Qt){l+=y+p();continue}if(y===g){e.keepQuotes===!0&&(l+=y);break}l+=y}C({type:"text",value:l});continue}if(l===go){h++;let y={type:"brace",open:!0,close:!1,dollar:D.value&&D.value.slice(-1)==="$"||i.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};i=C(y),s.push(i),C({type:"open",value:l});continue}if(l===mo){if(i.type!=="brace"){C({type:"text",value:l});continue}let g="close";i=s.pop(),i.close=!0,C({type:g,value:l}),h--,i=s[s.length-1];continue}if(l===Eo&&h>0){if(i.ranges>0){i.ranges=0;let g=i.nodes.shift();i.nodes=[g,{type:"text",value:fo(i)}]}C({type:"comma",value:l}),i.commas++;continue}if(l===po&&h>0&&i.commas===0){let g=i.nodes;if(h===0||g.length===0){C({type:"text",value:l});continue}if(D.type==="dot"){if(i.range=[],D.value+=l,D.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,D.type="text";continue}i.ranges++,i.args=[];continue}if(D.type==="range"){g.pop();let y=g[g.length-1];y.value+=D.value+l,D=y,i.ranges--;continue}C({type:"dot",value:l});continue}C({type:"text",value:l})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach(B=>{B.nodes||(B.type==="open"&&(B.isOpen=!0),B.type==="close"&&(B.isClose=!0),B.nodes||(B.type="text"),B.invalid=!0)});let g=s[s.length-1],y=g.nodes.indexOf(i);g.nodes.splice(y,1,...i.nodes)}while(s.length>0);return C({type:"eos"}),n},"parse$1");var bo=Ro;const Zr=zt,vo=Do,So=lo,Bo=bo,q=a((t,e={})=>{let u=[];if(Array.isArray(t))for(let r of t){let n=q.create(r,e);Array.isArray(n)?u.push(...n):u.push(n)}else u=[].concat(q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u},"braces$1");q.parse=(t,e={})=>Bo(t,e),q.stringify=(t,e={})=>Zr(typeof t=="string"?q.parse(t,e):t,e),q.compile=(t,e={})=>(typeof t=="string"&&(t=q.parse(t,e)),vo(t,e)),q.expand=(t,e={})=>{typeof t=="string"&&(t=q.parse(t,e));let u=So(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?q.compile(t,e):q.expand(t,e);var $o=q,To=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgLine truncated
node `):t.flags.help&&(t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"}),console.log(`${"-".repeat(45)}
`));const e={eval:{type:String,alias:"e"},print:{type:String,alias:"p"}},{_:u,flags:r}=Uu({flags:{...e,inputType:String,test:Boolean},help:!1,ignoreArgv:ot(!1)}),n=mn({...yn,...e}),i=["print","eval"].find(c=>!!r[c]);if(i){const{inputType:c}=r,f=r[i],h=Sn.transformSync(f,{loader:"default",sourcefile:"/eval.ts",format:c==="module"?"esm":"cjs"});n.unshift(`--${i}`,h.code)}ke.isFeatureSupported(ke.testRunnerGlob)&&r.test&&u.length===0&&n.push("**/{test,test/**/*,test-*,*[.-_]test}.?(c|m)@(t|j)s");const D=await _n(),o=ir(n,{noCache:!!t.flags.noCache,tsconfigPath:t.flags.tsconfig});El(o,D),process.send&&o.on("message",c=>{process.send(c)}),o.send&&process.on("message",c=>{o.send(c)}),o.on("close",c=>{c===null&&(c=ct.constants.signals[o.signalCode]+128),process.exit(c)})});
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _graphicsDocumentRole = _interopRequireDefault(require("./graphics/graphicsDocumentRole"));
var _graphicsObjectRole = _interopRequireDefault(require("./graphics/graphicsObjectRole"));
var _graphicsSymbolRole = _interopRequireDefault(require("./graphics/graphicsSymbolRole"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
var ariaGraphicsRoles = [['graphics-document', _graphicsDocumentRole.default], ['graphics-object', _graphicsObjectRole.default], ['graphics-symbol', _graphicsSymbolRole.default]];
var _default = exports.default = ariaGraphicsRoles;
@@ -0,0 +1,26 @@
'use strict';
var $SyntaxError = require('es-errors/syntax');
var $TypeError = require('es-errors/type');
var callBound = require('call-bound');
var isInteger = require('math-intrinsics/isInteger');
var $BigIntToString = callBound('BigInt.prototype.toString', true);
// https://262.ecma-international.org/14.0/#sec-numeric-types-bigint-tostring
module.exports = function BigIntToString(x, radix) {
if (typeof x !== 'bigint') {
throw new $TypeError('Assertion failed: `x` must be a BigInt');
}
if (!isInteger(radix) || radix < 2 || radix > 36) {
throw new $TypeError('Assertion failed: `radix` must be an integer >= 2 and <= 36');
}
if (!$BigIntToString) {
throw new $SyntaxError('BigInt is not supported');
}
return $BigIntToString(x, radix); // steps 1 - 12
};
@@ -0,0 +1,18 @@
import { isMainThread, parentPort } from 'node:worker_threads';
import { i as init } from './init.BQhNfT0h.js';
if (isMainThread || !parentPort) throw new Error("Expected worker to be run in node:worker_threads");
function workerInit(options) {
const { runTests } = options;
init({
post: (response) => parentPort.postMessage(response),
on: (callback) => parentPort.on("message", callback),
off: (callback) => parentPort.off("message", callback),
teardown: () => parentPort.removeAllListeners("message"),
runTests: async (state) => runTests("run", state),
collectTests: async (state) => runTests("collect", state),
setup: options.setup
});
}
export { workerInit as w };
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.id_at_clearance = exports.id_at_role = exports.id_at = exports.id_aca_encAttrs = exports.id_aca_group = exports.id_aca_chargingIdentity = exports.id_aca_accessIdentity = exports.id_aca_authenticationInfo = exports.id_aca = exports.id_ce_targetInformation = exports.id_pe_ac_proxying = exports.id_pe_aaControls = exports.id_pe_ac_auditIdentity = void 0;
const asn1_x509_1 = require("@peculiar/asn1-x509");
exports.id_pe_ac_auditIdentity = `${asn1_x509_1.id_pe}.4`;
exports.id_pe_aaControls = `${asn1_x509_1.id_pe}.6`;
exports.id_pe_ac_proxying = `${asn1_x509_1.id_pe}.10`;
exports.id_ce_targetInformation = `${asn1_x509_1.id_ce}.55`;
exports.id_aca = `${asn1_x509_1.id_pkix}.10`;
exports.id_aca_authenticationInfo = `${exports.id_aca}.1`;
exports.id_aca_accessIdentity = `${exports.id_aca}.2`;
exports.id_aca_chargingIdentity = `${exports.id_aca}.3`;
exports.id_aca_group = `${exports.id_aca}.4`;
exports.id_aca_encAttrs = `${exports.id_aca}.6`;
exports.id_at = "2.5.4";
exports.id_at_role = `${exports.id_at}.72`;
exports.id_at_clearance = "2.5.1.5.55";
@@ -0,0 +1,6 @@
import {
InfoIcon
} from "./chunk-TQ5NV33I.mjs";
export {
InfoIcon
};
@@ -0,0 +1,310 @@
flf2a$ 3 2 30 -1 3
Mike by Michael Sullivan 1994
Figlet version of mikewriting generated by hand...
Minor errors fixed by Glenn Chappell <ggc@uiuc.edu> 27 Sep 1994
$$#
$$#
$$##
!#
#
##
||#
#
##
/~~_/ /~~_/ /~/#
/ _/ / _/ / / #
/_/ /_/ /_/ ##
|| #
||#
##
|/#
/|#
##
#
&#
##
/#
#
##
#
(#
##
#
)#
##
#
*#
##
#
+#
##
#
,#
##
#
-#
##
#
.#
##
#
/#
##
#
0#
##
#
1#
##
#
2#
##
#
3#
##
#
4#
##
#
5#
##
#
6#
##
#
7#
##
#
8#
##
#
9#
##
#
:#
##
#
;#
##
#
<#
##
#
=#
##
#
>#
##
?#
#
##
#
@#
##
#
//|#
##
| #
|/#
##
#
|_#
##
|#
\|#
##
_#
|/#
##
|\#
| #
##
#
/|#
|##
| #
|\#
##
#
_|#
##
#
|#
|##
|/#
| #
##
|#
|#
##
#
||\#
##
#
|\#
##
#
|#
##
#
|\#
| ##
#
| #
|/##
_#
| #
##
#
//#
##
_ #
|#
##
#
|/|#
##
#
|/#
##
#
||/#
##
#
\#
##
#
/#
/ ##
_#
_#
##
#
[#
##
#
\#
##
#
]#
##
#
^#
##
#
__#
##
\#
#
##
#
//|#
##
| #
|/#
##
#
|_#
##
|#
\|#
##
_#
|/#
##
|\#
| #
##
#
/|#
|##
| #
|\#
##
#
_|#
##
#
|#
|##
|/#
| #
##
|#
|#
##
#
||\#
##
#
|\#
##
#
|#
##
#
|\#
| ##
#
| #
|/##
_#
| #
##
#
//#
##
_ #
|#
##
#
|/|#
##
#
|/#
##
#
||/#
##
#
\#
##
#
/#
/ ##
_#
_#
##
#
#
##
#
#
##
#
#
##
#
#
##
#
#
##
#
#
##
#
#
##
#
#
##
#
#
##
#
#
##
#
#
##
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Jordan Harband
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/is-map
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,27 @@
# is-lambda
Returns `true` if the current environment is an [AWS
Lambda](https://aws.amazon.com/lambda/) server.
[![Build status](https://travis-ci.org/watson/is-lambda.svg?branch=master)](https://travis-ci.org/watson/is-lambda)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
## Installation
```
npm install is-lambda
```
## Usage
```js
var isLambda = require('is-lambda')
if (isLambda) {
console.log('The code is running on a AWS Lambda')
}
```
## License
MIT
@@ -0,0 +1,11 @@
name: 'Tests: node.js < 10'
on: [pull_request, push]
jobs:
tests:
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '< 10'
type: minors
command: npm run tests-only
@@ -0,0 +1,15 @@
# Installation
> `npm install --save @types/react`
# Summary
This package contains type definitions for react (https://react.dev/).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react.
### Additional Details
* Last updated: Wed, 12 Nov 2025 16:02:25 GMT
* Dependencies: [csstype](https://npmjs.com/package/csstype)
# Credits
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [John Reilly](https://github.com/johnnyreilly), [Benoit Benezech](https://github.com/bbenezech), [Patricio Zavolinsky](https://github.com/pzavolinsky), [Eric Anderson](https://github.com/ericanderson), [Dovydas Navickas](https://github.com/DovydasNavickas), [Josh Rutherford](https://github.com/theruther4d), [Guilherme Hübner](https://github.com/guilhermehubner), [Ferdy Budhidharma](https://github.com/ferdaber), [Johann Rakotoharisoa](https://github.com/jrakotoharisoa), [Olivier Pascal](https://github.com/pascaloliv), [Martin Hochel](https://github.com/hotell), [Frank Li](https://github.com/franklixuefei), [Jessica Franco](https://github.com/Jessidhia), [Saransh Kataria](https://github.com/saranshkataria), [Kanitkorn Sujautra](https://github.com/lukyth), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), [Victor Magalhães](https://github.com/vhfmag), [Priyanshu Rav](https://github.com/priyanshurav), [Dmitry Semigradsky](https://github.com/Semigradsky), and [Matt Pocock](https://github.com/mattpocock).
@@ -0,0 +1 @@
{"version":3,"file":"getBaseType.spec.d.ts","sourceRoot":"","sources":["../../../../src/prototype/calculations/getBaseType.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
'use strict';
/**
* Create a bound version of a function with a specified `this` context
*
* @param {Function} fn - The function to bind
* @param {*} thisArg - The value to be passed as the `this` parameter
* @returns {Function} A new function that will call the original function with the specified `this` context
*/
export default function bind(fn, thisArg) {
return function wrap() {
return fn.apply(thisArg, arguments);
};
}
@@ -0,0 +1,46 @@
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const { READ, ReferenceTracker } = require("@eslint-community/eslint-utils")
const { getSourceCode } = require("eslint-compat-utils")
module.exports = {
meta: {
docs: {
description: "disallow the `Number.isInteger` method.",
category: "ES2015",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-number-isinteger.html",
},
fixable: null,
messages: {
forbidden: "ES2015 '{{name}}' method is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"Program:exit"(program) {
const sourceCode = getSourceCode(context)
const tracker = new ReferenceTracker(
sourceCode.getScope(program),
)
for (const { node, path } of tracker.iterateGlobalReferences({
Number: {
isInteger: { [READ]: true },
},
})) {
context.report({
node,
messageId: "forbidden",
data: { name: path.join(".") },
})
}
},
}
},
}
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","260":"0 1 2 3 4 5 t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","260":"0 1 2 3 4 5 t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E 2C ZC 3C 4C 5C","260":"F","292":"qC rC sC tC DD ED","420":"A B C L M G 6C aC NC OC 7C 8C 9C bC cC PC AD QC dC eC fC gC hC BD RC iC jC kC lC mC CD SC nC oC pC"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g FD GD HD ID NC uC JD OC","260":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC KD vC LD MD ND OD","292":"qC rC sC tC","420":"PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD bC cC PC eD QC dC eC fC gC hC fD RC iC jC kC lC mC gD SC nC oC pC"},H:{"2":"hD"},I:{"2":"TC J iD jD kD lD vC mD nD","260":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","260":"H"},L:{"260":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 J oD pD qD rD sD aC tD uD vD wD xD QC RC SC yD","260":"7 8 9 AB BB CB DB EB FB"},Q:{"2":"zD"},R:{"2":"0D"},S:{"2":"1D 2D"}},B:5,C:"CSS Initial Letter",D:true};
Loaded 100 of 35554 files, more files were not shown because too many files have changed in this diff. Show more