docs: 仓库链接指向本镜像仓库
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run

This commit is contained in:
TanTan committed 2026-11-13 09:27:07 +08:00
1 parent fa9c73363d
commit 2a69b23b47
18210 files changed
+5101211 -16

No files matched your search

@@ -0,0 +1 @@
module.exports={C:{"62":0.00677,"115":0.01692,"120":0.12182,"121":0.16582,"150":0.00338,"153":0.01354,"154":0.00677,"155":0.06768,"156":0.03046,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 151 152 157 158 159 160 3.5 3.6"},D:{"76":0.22673,"77":0.01692,"87":0.00677,"93":0.05753,"97":0.00677,"101":0.01692,"103":0.15905,"104":0.09814,"105":0.11844,"106":0.12859,"107":0.09814,"108":0.09814,"109":0.15228,"110":0.09475,"111":0.09137,"112":0.11506,"116":0.18612,"117":0.09814,"118":0.37562,"119":0.21319,"120":0.32148,"123":0.00338,"124":0.09814,"126":0.00677,"127":0.00677,"128":0.02369,"130":0.00677,"131":0.15566,"133":0.27072,"134":0.04738,"135":0.07445,"136":0.05076,"137":0.07106,"138":0.07783,"139":0.08122,"140":0.05076,"141":0.08122,"142":0.24703,"144":0.04738,"145":0.12859,"146":0.02369,"147":0.00338,"148":0.1692,"149":0.34178,"150":0.8663,"151":3.14374,"152":6.20287,"153":3.81715,"154":0.53129,"155":0.01692,"156":0.00338,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 78 79 80 81 83 84 85 86 88 89 90 91 92 94 95 96 98 99 100 102 113 114 115 121 122 125 129 132 143 157"},F:{"101":0.00677,"131":0.03046,"133":0.00677,"134":0.03722,"135":0.38239,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 132 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00338,"119":0.1049,"120":0.12182,"133":0.01015,"140":0.00338,"145":0.00338,"147":0.02707,"149":0.03722,"150":0.11167,"151":0.2335,"152":1.99318,"153":1.95257,"154":0.53129,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 121 122 123 124 125 126 127 128 129 130 131 132 134 135 136 137 138 139 141 142 143 144 146 148"},E:{"4":0.00338,"27":0.03722,_:"5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.4 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.4 26.0 26.1 27.1 27.2 TP","14.1":0.00338,"15.6":0.06768,"16.1":0.09814,"16.5":0.01015,"16.6":0.01015,"17.0":0.00677,"17.6":0.02369,"18.2":0.01015,"18.3":0.00338,"18.5-18.7":0.00677,"26.2":0.01015,"26.3":0.13536,"26.4":0.02369,"26.5":0.09475,"26.6":0.47038},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00121,"5.0-5.1":0.00121,"6.0-6.1":0,"7.0-7.1":0.00243,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.01213,"11.0-11.2":0.00121,"11.3-11.4":0.00243,"12.0-12.1":0,"12.2-12.5":0.03155,"13.0-13.1":0,"13.2":0.00607,"13.3":0,"13.4-13.7":0.00121,"14.0-14.4":0.00485,"14.5-14.8":0.00728,"15.0-15.1":0.00728,"15.2-15.3":0.00485,"15.4":0.00607,"15.5":0.00728,"15.6-15.8":0.15774,"16.0":0.01213,"16.1":0.02184,"16.2":0.01213,"16.3":0.02669,"16.4":0.00607,"16.5":0.00971,"16.6-16.7":0.21962,"17.0":0.00849,"17.1":0.01213,"17.2":0.01213,"17.3":0.0182,"17.4":0.02548,"17.5":0.04975,"17.6-17.7":0.12862,"18.0":0.02669,"18.1":0.05339,"18.2":0.0728,"18.3":0.12619,"18.4":0.07887,"18.5-18.7":1.62956,"26.0":0.07887,"26.1":0.08008,"26.2":0.2087,"26.3":0.22569,"26.4":0.16502,"26.5":1.10538,"26.6":6.82038,"27.0":0.52296,"27.1":0,"27.2":0.01335},P:{"4":0.01012,"21":0.03037,"22":0.02024,"23":0.02024,"24":0.02024,"26":0.04049,"27":0.01012,"28":1.27536,"29":0.29354,"30":5.24315,_:"20 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.13158,"16.0":0.01012},I:{"0":0.02645,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.27787,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":51.12895},R:{_:"0"},M:{"0":0.0397},Q:{_:"14.9"},O:{"0":0.07278},H:{all:0}};
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2024 [Motion](https://motion.dev) B.V.
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 @@
module.exports={A:{A:{"1":"_V","2":"_b"},B:{"1":"_J"},C:{"1":"_zF","2":"_OC"},D:{"1":"_7D","2":"J"},E:{"1":"_YB","2":"_4"},F:{"1":"_aR","2":"_QD"},G:{"1":"_t","2":"_d"},H:{"2":"1D"},I:{"1":"_X","2":"fC _oK","130":"J"},J:{"1":"_B"},K:{"1":"_CB","2":"A"},L:{"1":"I"},M:{"1":"YC"},N:{"1":"_A"},O:{"1":"bC"},P:{"1":"_F"},Q:{"1":"JE"},R:{"1":"KE"},S:{"1":"_C"}},B:2,C:"WOFF - Web Open Font Format",D:true};
@@ -0,0 +1,22 @@
import type { MinimatchOptions } from './index.js';
/**
* Un-escape a string that has been escaped with {@link escape}.
*
* If the {@link MinimatchOptions.windowsPathsNoEscape} option is used, then
* square-bracket escapes are removed, but not backslash escapes.
*
* For example, it will turn the string `'[*]'` into `*`, but it will not
* turn `'\\*'` into `'*'`, because `\` is a path separator in
* `windowsPathsNoEscape` mode.
*
* When `windowsPathsNoEscape` is not set, then both square-bracket escapes and
* backslash escapes are removed.
*
* Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
* or unescaped.
*
* When `magicalBraces` is not set, escapes of braces (`{` and `}`) will not be
* unescaped.
*/
export declare const unescape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
//# sourceMappingURL=unescape.d.ts.map
@@ -0,0 +1 @@
module.exports={A:{D:{"1":"_5F","2":"_FC","33":"_wL _4N"},L:{"1":"I"},B:{"1":"_K","2":"_I"},C:{"1":"_LF","2":"_PK","33":"_oD _ZG"},M:{"1":"YC"},A:{"2":"_E"},F:{"1":"_OI","2":"_T","33":"_dF"},K:{"1":"H","2":"_D"},E:{"1":"_0I _ZN _OE","2":"_u XD","33":"_3E _FR"},G:{"1":"_AB","2":"_1","33":"_SD _JD"},P:{"1":"_U","2":"J"},I:{"1":"I","2":"_G"}},B:6,C:"isolate from unicode-bidi",D:undefined};
@@ -0,0 +1,17 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const JapaneseYen = createLucideIcon("JapaneseYen", [
["path", { d: "M12 9.5V21m0-11.5L6 3m6 6.5L18 3", key: "2ej80x" }],
["path", { d: "M6 15h12", key: "1hwgt5" }],
["path", { d: "M6 11h12", key: "wf4gp6" }]
]);
export { JapaneseYen as default };
//# sourceMappingURL=japanese-yen.js.map
@@ -0,0 +1,18 @@
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _index = require('../tokenizer/index');
var _charcodes = require('../util/charcodes');
var _base = require('./base');
var _statement = require('./statement');
function parseFile() {
// If enabled, skip leading hashbang line.
if (
_base.state.pos === 0 &&
_base.input.charCodeAt(0) === _charcodes.charCodes.numberSign &&
_base.input.charCodeAt(1) === _charcodes.charCodes.exclamationMark
) {
_index.skipLineComment.call(void 0, 2);
}
_index.nextToken.call(void 0, );
return _statement.parseTopLevel.call(void 0, );
} exports.parseFile = parseFile;
@@ -0,0 +1,35 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTypeOfPropertyOfName = getTypeOfPropertyOfName;
exports.getTypeOfPropertyOfType = getTypeOfPropertyOfType;
function getTypeOfPropertyOfName(checker, type, name, escapedName) {
// Most names are directly usable in the checker and aren't different from escaped names
if (!escapedName || !isSymbol(escapedName)) {
return checker.getTypeOfPropertyOfType(type, name);
}
// Symbolic names may differ in their escaped name compared to their human-readable name
// https://github.com/typescript-eslint/typescript-eslint/issues/2143
const escapedProperty = type
.getProperties()
.find(property => property.escapedName === escapedName);
return escapedProperty
? checker.getDeclaredTypeOfSymbol(escapedProperty)
: undefined;
}
function getTypeOfPropertyOfType(checker, type, property) {
return getTypeOfPropertyOfName(checker, type, property.getName(), property.getEscapedName());
}
// Symbolic names need to be specially handled because TS api is not sufficient for these cases.
// Source based on:
// https://github.com/microsoft/TypeScript/blob/0043abe982aae0d35f8df59f9715be6ada758ff7/src/compiler/utilities.ts#L3388-L3402
function isSymbol(escapedName) {
return isKnownSymbol(escapedName) || isPrivateIdentifierSymbol(escapedName);
}
// case for escapedName: "__@foo@10", name: "__@foo@10"
function isKnownSymbol(escapedName) {
return escapedName.startsWith('__@');
}
// case for escapedName: "__#1@#foo", name: "#foo"
function isPrivateIdentifierSymbol(escapedName) {
return escapedName.startsWith('__#');
}
@@ -0,0 +1 @@
{"version":3,"file":"cuboid.js","sources":["../../../src/icons/cuboid.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Cuboid\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMjEuMTIgNi40LTYuMDUtNC4wNmEyIDIgMCAwIDAtMi4xNy0uMDVMMi45NSA4LjQxYTIgMiAwIDAgMC0uOTUgMS43djUuODJhMiAyIDAgMCAwIC44OCAxLjY2bDYuMDUgNC4wN2EyIDIgMCAwIDAgMi4xNy4wNWw5Ljk1LTYuMTJhMiAyIDAgMCAwIC45NS0xLjdWOC4wNmEyIDIgMCAwIDAtLjg4LTEuNjZaIiAvPgogIDxwYXRoIGQ9Ik0xMCAyMnYtOEwyLjI1IDkuMTUiIC8+CiAgPHBhdGggZD0ibTEwIDE0IDExLjc3LTYuODciIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/cuboid\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Cuboid = createLucideIcon('Cuboid', [\n [\n 'path',\n {\n d: 'm21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z',\n key: '1u2ovd',\n },\n ],\n ['path', { d: 'M10 22v-8L2.25 9.15', key: '11pn4q' }],\n ['path', { d: 'm10 14 11.77-6.87', key: '1kt1wh' }],\n]);\n\nexport default Cuboid;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,iBAAiB,QAAU,CAAA,CAAA,CAAA;AAAA,CACxC,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAuB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACpD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACpD,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,84 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseUnionDef = exports.primitiveMappings = void 0;
const parseDef_js_1 = require("../parseDef.js");
exports.primitiveMappings = {
ZodString: "string",
ZodNumber: "number",
ZodBigInt: "integer",
ZodBoolean: "boolean",
ZodNull: "null",
};
function parseUnionDef(def, refs) {
if (refs.target === "openApi3")
return asAnyOf(def, refs);
const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
// This blocks tries to look ahead a bit to produce nicer looking schemas with type array instead of anyOf.
if (options.every((x) => x._def.typeName in exports.primitiveMappings &&
(!x._def.checks || !x._def.checks.length))) {
// all types in union are primitive and lack checks, so might as well squash into {type: [...]}
const types = options.reduce((types, x) => {
const type = exports.primitiveMappings[x._def.typeName]; //Can be safely casted due to row 43
return type && !types.includes(type) ? [...types, type] : types;
}, []);
return {
type: types.length > 1 ? types : types[0],
};
}
else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
// all options literals
const types = options.reduce((acc, x) => {
const type = typeof x._def.value;
switch (type) {
case "string":
case "number":
case "boolean":
return [...acc, type];
case "bigint":
return [...acc, "integer"];
case "object":
if (x._def.value === null)
return [...acc, "null"];
case "symbol":
case "undefined":
case "function":
default:
return acc;
}
}, []);
if (types.length === options.length) {
// all the literals are primitive, as far as null can be considered primitive
const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
return {
type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
enum: options.reduce((acc, x) => {
return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
}, []),
};
}
}
else if (options.every((x) => x._def.typeName === "ZodEnum")) {
return {
type: "string",
enum: options.reduce((acc, x) => [
...acc,
...x._def.values.filter((x) => !acc.includes(x)),
], []),
};
}
return asAnyOf(def, refs);
}
exports.parseUnionDef = parseUnionDef;
const asAnyOf = (def, refs) => {
const anyOf = (def.options instanceof Map
? Array.from(def.options.values())
: def.options)
.map((x, i) => (0, parseDef_js_1.parseDef)(x._def, {
...refs,
currentPath: [...refs.currentPath, "anyOf", `${i}`],
}))
.filter((x) => !!x &&
(!refs.strictUnions ||
(typeof x === "object" && Object.keys(x).length > 0)));
return anyOf.length ? { anyOf } : undefined;
};
@@ -0,0 +1 @@
{"version":3,"file":"decode_codepoint.js","sourceRoot":"https://raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/","sources":["decode_codepoint.ts"],"names":[],"mappings":";AAAA,qHAAqH;;;;AAErH,IAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACtB,CAAC,CAAC,EAAE,KAAK,CAAC;IACV,sDAAsD;IACtD,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,GAAG,CAAC;CACb,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,aAAa;AACtB,iHAAiH;AACjH,MAAA,MAAM,CAAC,aAAa,mCACpB,UAAU,SAAiB;IACvB,IAAI,MAAM,GAAG,EAAE,CAAC;IAEhB,IAAI,SAAS,GAAG,MAAM,EAAE;QACpB,SAAS,IAAI,OAAO,CAAC;QACrB,MAAM,IAAI,MAAM,CAAC,YAAY,CACzB,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CACxC,CAAC;QACF,SAAS,GAAG,MAAM,GAAG,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC;KAC5C;IAED,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzC,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEN;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,SAAiB;;IAC9C,IAAI,CAAC,SAAS,IAAI,MAAM,IAAI,SAAS,IAAI,MAAM,CAAC,IAAI,SAAS,GAAG,QAAQ,EAAE;QACtE,OAAO,MAAM,CAAC;KACjB;IAED,OAAO,MAAA,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC;AACjD,CAAC;AAND,4CAMC;AAED;;;;;;GAMG;AACH,SAAwB,eAAe,CAAC,SAAiB;IACrD,OAAO,IAAA,qBAAa,EAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;AACtD,CAAC;AAFD,kCAEC"}
@@ -0,0 +1,2 @@
import type { LibDefinition } from '../variable';
export declare const esnext_disposable: LibDefinition;
@@ -0,0 +1,2 @@
import type { LibDefinition } from '../variable';
export declare const es2024_object: LibDefinition;
@@ -0,0 +1,9 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
export { default } from './ice-cream-cone.js';
//# sourceMappingURL=ice-cream.js.map
@@ -0,0 +1,936 @@
export default `flf2a$ 9 8 13 16 16
Epic by Claude Martins 12/94
Figlet release 2.1 -- 12 Aug 1994
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
Explanation of first line:
flf2 - "magic number" for file identification
a - should always be \`a', for now
$ - the "hardblank" -- prints as a blank, but can't be smushed
9 - height of a character
8 - height of a character, not including descenders
13 - max line length (excluding comment lines) + a fudge factor
16 - default smushmode for this font
16 - number of comment lines
$$@
$$@
$$@
$$@
$$@
$$@
$$@
$$@
$$@@
_ @
( )@
| |@
| |@
| |@
(_)@
_ @
(_)@
@@
_ _ @
( )( )@
\\||/ @
@
@
@
@
@
@@
_ _ @
( ) ( ) @
_| |_| |_ @
(_ _ _)@
_| (_) |_ @
(_ _ _)@
| | | | @
(_) (_) @
@@
_ @
__|_|___@
( _____/@
| (|_|__ @
(_____ )@
/\\_|_|) |@
\\_______)@
|_| @
@@
@
/\\@
() / /@
/ / @
/ / @
/ / @
/ / ()@
\\/ @
@@
__ @
/__\\ @
( \\/ ) @
\\ / @
/ \\/\\@
/ /\\ /@
( \\/ \\@
\\___/\\/@
@@
_ @
( )@
|/ @
@
@
@
@
@
@@
_ @
/ )@
/ / @
( ( @
| | @
( ( @
\\ \\ @
\\_)@
@@
_ @
( \\ @
\\ \\ @
) )@
| |@
) )@
/ / @
(_/ @
@@
@
/\\ /\\ @
\\ \\ / / @
_) () (_ @
(_ _)@
) () ( @
/ / \\ \\ @
\\/ \\/ @
@@
_ @
( ) @
| | @
__| |__ @
(__ __)@
| | @
| | @
(_) @
@@
@
@
@
@
@
@
_ @
( )@
|/ @@
@
@
@
_____ @
(_____)@
@
@
@
@@
@
@
@
@
@
@
_ @
(_)@
@@
@
/\\@
/ /@
/ / @
/ / @
/ / @
/ / @
\\/ @
@@
_______ @
( __ )@
| ( ) |@
| | / |@
| (/ /) |@
| / | |@
| (__) |@
(_______)@
@@
__ @
/ \\ @
\\/) ) @
| | @
| | @
| | @
__) (_@
\\____/@
@@
_______ @
/ ___ )@
\\/ ) |@
/ )@
_/ / @
/ _/ @
( (__/\\@
\\_______/@
@@
______ @
/ ___ \\ @
\\/ \\ \\@
___) /@
(___ ( @
) \\@
/\\___/ /@
\\______/ @
@@
___ @
/ ) @
/ /) | @
/ (_) (_ @
(____ _)@
) ( @
| | @
(_) @
@@
_______ @
( ____ \\@
| ( \\/@
| (____ @
(_____ \\ @
) )@
/\\____) )@
\\______/ @
@@
______ @
/ ____ \\@
( ( \\/@
| (____ @
| ___ \\ @
| ( ) )@
( (___) )@
\\_____/ @
@@
______ @
/ ___ \\ @
\\/ ) )@
/ / @
/ / @
/ / @
/ / @
\\_/ @
@@
_____ @
/ ___ \\ @
( (___) )@
\\ / @
/ ___ \\ @
( ( ) )@
( (___) )@
\\_____/ @
@@
_____ @
/ ___ \\ @
( ( ) )@
( (___) |@
\\____ |@
) |@
/\\____) )@
\\______/ @
@@
@
@
_ @
(_)@
@
_ @
(_)@
@
@@
@
@
@
_ @
(_)@
@
_ @
( )@
|/ @@
_ @
/ )@
/ / @
/ / @
( ( @
\\ \\ @
\\ \\ @
\\_)@
@@
@
@
___ @
(___)@
___ @
(___)@
@
@
@@
_ @
( \\ @
\\ \\ @
\\ \\ @
) )@
/ / @
/ / @
(_/ @
@@
_____ @
/ ___ \\ @
( ( ) )@
\\/ / / @
( ( @
| | @
(_) @
_ @
(_) @@
_____ @
/ ___ \\ @
/ / _ \\ \\ @
( ( / \\ ) )@
| |(()// / @
( ( \\___/ @
\\ \\____/\\ @
\\______/ @
@@
_______ @
( ___ )@
| ( ) |@
| (___) |@
| ___ |@
| ( ) |@
| ) ( |@
|/ \\|@
@@
______ @
( ___ \\ @
| ( ) )@
| (__/ / @
| __ ( @
| ( \\ \\ @
| )___) )@
|/ \\___/ @
@@
_______ @
( ____ \\@
| ( \\/@
| | @
| | @
| | @
| (____/\\@
(_______/@
@@
______ @
( __ \\ @
| ( \\ )@
| | ) |@
| | | |@
| | ) |@
| (__/ )@
(______/ @
@@
_______ @
( ____ \\@
| ( \\/@
| (__ @
| __) @
| ( @
| (____/\\@
(_______/@
@@
_______ @
( ____ \\@
| ( \\/@
| (__ @
| __) @
| ( @
| ) @
|/ @
@@
_______ @
( ____ \\@
| ( \\/@
| | @
| | ____ @
| | \\_ )@
| (___) |@
(_______)@
@@
@
|\\ /|@
| ) ( |@
| (___) |@
| ___ |@
| ( ) |@
| ) ( |@
|/ \\|@
@@
_________@
\\__ __/@
) ( @
| | @
| | @
| | @
___) (___@
\\_______/@
@@
_________@
\\__ _/@
) ( @
| | @
| | @
| | @
|\\_) ) @
(____/ @
@@
_ @
| \\ /\\@
| \\ / /@
| (_/ / @
| _ ( @
| ( \\ \\ @
| / \\ \\@
|_/ \\/@
@@
_ @
( \\ @
| ( @
| | @
| | @
| | @
| (____/\\@
(_______/@
@@
_______ @
( )@
| () () |@
| || || |@
| |(_)| |@
| | | |@
| ) ( |@
|/ \\|@
@@
_ @
( ( /|@
| \\ ( |@
| \\ | |@
| (\\ \\) |@
| | \\ |@
| ) \\ |@
|/ )_)@
@@
_______ @
( ___ )@
| ( ) |@
| | | |@
| | | |@
| | | |@
| (___) |@
(_______)@
@@
_______ @
( ____ )@
| ( )|@
| (____)|@
| _____)@
| ( @
| ) @
|/ @
@@
_______ @
( ___ )@
| ( ) |@
| | | |@
| | | |@
| | /\\| |@
| (_\\ \\ |@
(____\\/_)@
@@
_______ @
( ____ )@
| ( )|@
| (____)|@
| __)@
| (\\ ( @
| ) \\ \\__@
|/ \\__/@
@@
_______ @
( ____ \\@
| ( \\/@
| (_____ @
(_____ )@
) |@
/\\____) |@
\\_______)@
@@
_________@
\\__ __/@
) ( @
| | @
| | @
| | @
| | @
)_( @
@@
@
|\\ /|@
| ) ( |@
| | | |@
| | | |@
| | | |@
| (___) |@
(_______)@
@@
@
|\\ /|@
| ) ( |@
| | | |@
( ( ) )@
\\ \\_/ / @
\\ / @
\\_/ @
@@
@
|\\ /|@
| ) ( |@
| | _ | |@
| |( )| |@
| || || |@
| () () |@
(_______)@
@@
@
|\\ /|@
( \\ / )@
\\ (_) / @
) _ ( @
/ ( ) \\ @
( / \\ )@
|/ \\|@
@@
@
|\\ /|@
( \\ / )@
\\ (_) / @
\\ / @
) ( @
| | @
\\_/ @
@@
_______ @
/ ___ )@
\\/ ) |@
/ )@
/ / @
/ / @
/ (_/\\@
(_______/@
@@
____ @
( __)@
| ( @
| | @
| | @
| | @
| (__ @
(____)@
@@
@
/\\ @
\\ \\ @
\\ \\ @
\\ \\ @
\\ \\ @
\\ \\@
\\/@
@@
____ @
(__ )@
) |@
| |@
| |@
| |@
__) |@
(____)@
@@
/\\ @
(/\\)@
@
@
@
@
@
@
@@
@
@
@
@
@
@
@
_____ @
(_____)@@
_ @
( )@
\\|@
@
@
@
@
@
@@
_______ @
( ___ )@
| ( ) |@
| (___) |@
| ___ |@
| ( ) |@
| ) ( |@
|/ \\|@
@@
______ @
( ___ \\ @
| ( ) )@
| (__/ / @
| __ ( @
| ( \\ \\ @
| )___) )@
|/ \\___/ @
@@
_______ @
( ____ \\@
| ( \\/@
| | @
| | @
| | @
| (____/\\@
(_______/@
@@
______ @
( __ \\ @
| ( \\ )@
| | ) |@
| | | |@
| | ) |@
| (__/ )@
(______/ @
@@
_______ @
( ____ \\@
| ( \\/@
| (__ @
| __) @
| ( @
| (____/\\@
(_______/@
@@
_______ @
( ____ \\@
| ( \\/@
| (__ @
| __) @
| ( @
| ) @
|/ @
@@
_______ @
( ____ \\@
| ( \\/@
| | @
| | ____ @
| | \\_ )@
| (___) |@
(_______)@
@@
@
|\\ /|@
| ) ( |@
| (___) |@
| ___ |@
| ( ) |@
| ) ( |@
|/ \\|@
@@
_________@
\\__ __/@
) ( @
| | @
| | @
| | @
___) (___@
\\_______/@
@@
_________@
\\__ _/@
) ( @
| | @
| | @
| | @
|\\_) ) @
(____/ @
@@
_ @
| \\ /\\@
| \\ / /@
| (_/ / @
| _ ( @
| ( \\ \\ @
| / \\ \\@
|_/ \\/@
@@
_ @
( \\ @
| ( @
| | @
| | @
| | @
| (____/\\@
(_______/@
@@
_______ @
( )@
| () () |@
| || || |@
| |(_)| |@
| | | |@
| ) ( |@
|/ \\|@
@@
_ @
( ( /|@
| \\ ( |@
| \\ | |@
| (\\ \\) |@
| | \\ |@
| ) \\ |@
|/ )_)@
@@
_______ @
( ___ )@
| ( ) |@
| | | |@
| | | |@
| | | |@
| (___) |@
(_______)@
@@
_______ @
( ____ )@
| ( )|@
| (____)|@
| _____)@
| ( @
| ) @
|/ @
@@
_______ @
( ___ )@
| ( ) |@
| | | |@
| | | |@
| | /\\| |@
| (_\\ \\ |@
(____\\/_)@
@@
_______ @
( ____ )@
| ( )|@
| (____)|@
| __)@
| (\\ ( @
| ) \\ \\__@
|/ \\__/@
@@
_______ @
( ____ \\@
| ( \\/@
| (_____ @
(_____ )@
) |@
/\\____) |@
\\_______)@
@@
_________@
\\__ __/@
) ( @
| | @
| | @
| | @
| | @
)_( @
@@
@
|\\ /|@
| ) ( |@
| | | |@
| | | |@
| | | |@
| (___) |@
(_______)@
@@
@
|\\ /|@
| ) ( |@
| | | |@
( ( ) )@
\\ \\_/ / @
\\ / @
\\_/ @
@@
@
|\\ /|@
| ) ( |@
| | _ | |@
| |( )| |@
| || || |@
| () () |@
(_______)@
@@
@
|\\ /|@
( \\ / )@
\\ (_) / @
) _ ( @
/ ( ) \\ @
( / \\ )@
|/ \\|@
@@
@
|\\ /|@
( \\ / )@
\\ (_) / @
\\ / @
) ( @
| | @
\\_/ @
@@
_______ @
/ ___ )@
\\/ ) |@
/ )@
/ / @
/ / @
/ (_/\\@
(_______/@
@@
__ @
( _)@
)( @
/ | @
\\ | @
)(_ @
(__)@
@
@@
_ @
( )@
| |@
(_)@
_ @
( )@
| |@
(_)@
@@
__ @
(_ ) @
)( @
| \\@
| /@
_)( @
(__) @
@
@@
_ @
/_\\_/)@
(/ \\_/ @
@
@
@
@
@
@@
__ __ @
(__) (__)@
_______ @
( ___ )@
| (___) |@
| ___ |@
| ) ( |@
|/ \\|@
@@
__ __ @
(__) (__)@
_______ @
( ___ )@
| ( ) |@
| | | |@
| (___) |@
(_______)@
@@
__ __ @
(__) (__)@
@
|\\ /|@
| ) ( |@
| | | |@
| (___) |@
(_______)@
@@
__ __ @
(__) (__)@
_______ @
( ___ )@
| (___) |@
| ___ |@
| ) ( |@
|/ \\|@
@@
__ __ @
(__) (__)@
_______ @
( ___ )@
| ( ) |@
| | | |@
| (___) |@
(_______)@
@@
__ __ @
(__) (__)@
@
|\\ /|@
| ) ( |@
| | | |@
| (___) |@
(_______)@
@@
______ @
( ___ \\ @
| (___) )@
| ___ / @
| (___)\\ @
| |\\___/ @
| ) @
|/ @
@@
`
@@ -0,0 +1,57 @@
import { GroupAnimationWithThen } from 'motion-dom';
import { removeItem } from 'motion-utils';
import { animateSequence } from './sequence.mjs';
import { animateSubject } from './subject.mjs';
function isSequence(value) {
return Array.isArray(value) && value.some(Array.isArray);
}
/**
* Creates an animation function that is optionally scoped
* to a specific element.
*/
function createScopedAnimate(options = {}) {
const { scope, reduceMotion } = options;
/**
* Implementation
*/
function scopedAnimate(subjectOrSequence, optionsOrKeyframes, options) {
let animations = [];
let animationOnComplete;
if (isSequence(subjectOrSequence)) {
const { onComplete, ...sequenceOptions } = optionsOrKeyframes || {};
if (typeof onComplete === "function") {
animationOnComplete = onComplete;
}
animations = animateSequence(subjectOrSequence, reduceMotion !== undefined
? { reduceMotion, ...sequenceOptions }
: sequenceOptions, scope);
}
else {
// Extract top-level onComplete so it doesn't get applied per-value
const { onComplete, ...rest } = options || {};
if (typeof onComplete === "function") {
animationOnComplete = onComplete;
}
animations = animateSubject(subjectOrSequence, optionsOrKeyframes, (reduceMotion !== undefined
? { reduceMotion, ...rest }
: rest), scope);
}
const animation = new GroupAnimationWithThen(animations);
if (animationOnComplete) {
animation.finished.then(animationOnComplete);
}
if (scope) {
scope.animations.push(animation);
animation.finished.then(() => {
removeItem(scope.animations, animation);
});
}
return animation;
}
return scopedAnimate;
}
const animate = createScopedAnimate();
export { animate, createScopedAnimate };
//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
{"version":3,"file":"message-square-share.js","sources":["../../../src/icons/message-square-share.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name MessageSquareShare\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEgMTJ2M2EyIDIgMCAwIDEtMiAySDdsLTQgNFY1YTIgMiAwIDAgMSAyLTJoNyIgLz4KICA8cGF0aCBkPSJNMTYgM2g1djUiIC8+CiAgPHBhdGggZD0ibTE2IDggNS01IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/message-square-share\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst MessageSquareShare = createLucideIcon('MessageSquareShare', [\n ['path', { d: 'M21 12v3a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h7', key: 'tqtdkg' }],\n ['path', { d: 'M16 3h5v5', key: '1806ms' }],\n ['path', { d: 'm16 8 5-5', key: '15mbrl' }],\n]);\n\nexport default MessageSquareShare;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,iBAAiB,oBAAsB,CAAA,CAAA,CAAA;AAAA,CAAA,CAChE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAmD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAChF,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC5C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,6 @@
import type { TSESLint } from '@typescript-eslint/utils';
export type MessageIds = 'noNonNull' | 'suggestOptionalChain';
declare const _default: TSESLint.RuleModule<MessageIds, [], import("../../rules").ESLintPluginDocs, TSESLint.RuleListener> & {
name: string;
};
export default _default;
@@ -0,0 +1,5 @@
import uk from "./uk.js";
/** @deprecated Use `uk` instead. */
export default function () {
return uk();
}
@@ -0,0 +1,143 @@
"use client";
import { CatchBoundary, ErrorComponent } from "./CatchBoundary.js";
import { matchContext } from "./matchContext.js";
import { useRouter } from "./useRouter.js";
import { Transitioner } from "./Transitioner.js";
import { SafeFragment } from "./SafeFragment.js";
import { Match } from "./Match.js";
import { replaceEqualDeep, rootRouteId } from "@tanstack/router-core";
import * as React$1 from "react";
import { jsx, jsxs } from "react/jsx-runtime";
import { useStore } from "@tanstack/react-store";
import { isServer } from "@tanstack/router-core/isServer";
//#region src/Matches.tsx
/**
* Internal component that renders the router's active match tree with
* suspense, error, and not-found boundaries. Rendered by `RouterProvider`.
*/
function Matches() {
const router = useRouter();
const PendingComponent = router.routesById[rootRouteId].options.pendingComponent ?? router.options.defaultPendingComponent;
const pendingElement = PendingComponent ? /* @__PURE__ */ jsx(PendingComponent, {}) : null;
const inner = /* @__PURE__ */ jsxs((isServer ?? router.isServer) || typeof document !== "undefined" && router.ssr ? SafeFragment : React$1.Suspense, {
fallback: pendingElement,
children: [!(isServer ?? router.isServer) && /* @__PURE__ */ jsx(Transitioner, {}), /* @__PURE__ */ jsx(MatchesInner, {})]
});
return router.options.InnerWrap ? /* @__PURE__ */ jsx(router.options.InnerWrap, { children: inner }) : inner;
}
function MatchesInner() {
const router = useRouter();
const _isServer = isServer ?? router.isServer;
const matchId = _isServer ? router.stores.firstId.get() : useStore(router.stores.firstId, (id) => id);
const resetKey = _isServer ? router.stores.loadedAt.get() : useStore(router.stores.loadedAt, (loadedAt) => loadedAt);
const matchComponent = matchId ? /* @__PURE__ */ jsx(Match, { matchId }) : null;
return /* @__PURE__ */ jsx(matchContext.Provider, {
value: matchId,
children: router.options.disableGlobalCatchBoundary ? matchComponent : /* @__PURE__ */ jsx(CatchBoundary, {
getResetKey: () => resetKey,
errorComponent: ErrorComponent,
onCatch: process.env.NODE_ENV !== "production" ? (error) => {
console.warn(`Warning: The following error wasn't caught by any route! At the very least, consider setting an 'errorComponent' in your RootRoute!`);
console.warn(`Warning: ${error.message || error.toString()}`);
} : void 0,
children: matchComponent
})
});
}
/**
* Create a matcher function for testing locations against route definitions.
*
* The returned function accepts standard navigation options (`to`, `params`,
* `search`, etc.) and returns either `false` (no match) or the matched params
* object when the route matches the current or pending location.
*
* Useful for conditional rendering and active UI states.
*
* @returns A `matchRoute(options)` function that returns `false` or params.
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/useMatchRouteHook
*/
function useMatchRoute() {
const router = useRouter();
if (!(isServer ?? router.isServer)) useStore(router.stores.matchRouteDeps, (d) => d);
return React$1.useCallback((opts) => {
const { pending, caseSensitive, fuzzy, includeSearch, ...rest } = opts;
return router.matchRoute(rest, {
pending,
caseSensitive,
fuzzy,
includeSearch
});
}, [router]);
}
/**
* Component that conditionally renders its children based on whether a route
* matches the provided `from`/`to` options. If `children` is a function, it
* receives the matched params object.
*
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/matchRouteComponent
*/
function MatchRoute(props) {
const params = useMatchRoute()(props);
if (typeof props.children === "function") return props.children(params);
return params ? props.children : null;
}
function useMatches(opts) {
const router = useRouter();
const previousResult = React$1.useRef(void 0);
if (isServer ?? router.isServer) {
const matches = router.stores.matches.get();
return opts?.select ? opts.select(matches) : matches;
}
return useStore(router.stores.matches, (matches) => {
const selected = opts?.select ? opts.select(matches) : matches;
if (opts?.structuralSharing ?? router.options.defaultStructuralSharing) {
const shared = replaceEqualDeep(previousResult.current, selected);
previousResult.current = shared;
return shared;
}
return selected;
});
}
/**
* Read the full array of active route matches or select a derived subset.
*
* Useful for debugging, breadcrumbs, or aggregating metadata across matches.
*
* @returns The array of matches (or the selected value).
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/useMatchesHook
*/
/**
* Read the full array of active route matches or select a derived subset.
*
* Useful for debugging, breadcrumbs, or aggregating metadata across matches.
*
* @link https://tanstack.com/router/latest/docs/framework/react/api/router/useMatchesHook
*/
function useParentMatches(opts) {
const contextMatchId = React$1.useContext(matchContext);
return useMatches({
select: (matches) => {
matches = matches.slice(0, matches.findIndex((d) => d.id === contextMatchId));
return opts?.select ? opts.select(matches) : matches;
},
structuralSharing: opts?.structuralSharing
});
}
/**
* Read the array of active route matches that are children of the current
* match (or selected parent) in the match tree.
*/
function useChildMatches(opts) {
const contextMatchId = React$1.useContext(matchContext);
return useMatches({
select: (matches) => {
matches = matches.slice(matches.findIndex((d) => d.id === contextMatchId) + 1);
return opts?.select ? opts.select(matches) : matches;
},
structuralSharing: opts?.structuralSharing
});
}
//#endregion
export { MatchRoute, Matches, useChildMatches, useMatchRoute, useMatches, useParentMatches };
//# sourceMappingURL=Matches.js.map
@@ -0,0 +1 @@
{"version":3,"file":"load-matches.cjs","names":[],"sources":["../../src/load-matches.ts"],"sourcesContent":["import { isServer } from '@tanstack/router-core/isServer'\nimport { invariant } from './invariant'\nimport { createControlledPromise, isPromise } from './utils'\nimport { isNotFound } from './not-found'\nimport { rootRouteId } from './root'\nimport { isRedirect } from './redirect'\nimport type { NotFoundError } from './not-found'\nimport type { ParsedLocation } from './location'\nimport type {\n AnyRoute,\n BeforeLoadContextOptions,\n LoaderFnContext,\n SsrContextOptions,\n} from './route'\nimport type { AnyRouteMatch, MakeRouteMatch } from './Matches'\nimport type { AnyRouter, SSROption, UpdateMatchFn } from './router'\n\n/**\n * An object of this shape is created when calling `loadMatches`.\n * It contains everything we need for all other functions in this file\n * to work. (It's basically the function's argument, plus a few mutable states)\n */\ntype InnerLoadContext = {\n /** the calling router instance */\n router: AnyRouter\n location: ParsedLocation\n /** mutable state, scoped to a `loadMatches` call */\n firstBadMatchIndex?: number\n /** mutable state, scoped to a `loadMatches` call */\n rendered?: boolean\n serialError?: unknown\n updateMatch: UpdateMatchFn\n matches: Array<AnyRouteMatch>\n preload?: boolean\n forceStaleReload?: boolean\n onReady?: () => Promise<void>\n sync?: boolean\n}\n\nconst triggerOnReady = (inner: InnerLoadContext): void | Promise<void> => {\n if (!inner.rendered) {\n inner.rendered = true\n return inner.onReady?.()\n }\n}\n\nconst hasForcePendingActiveMatch = (router: AnyRouter): boolean => {\n return router.stores.matchesId.get().some((matchId) => {\n return router.stores.matchStores.get(matchId)?.get()._forcePending\n })\n}\n\nconst resolvePreload = (inner: InnerLoadContext, matchId: string): boolean => {\n return !!(inner.preload && !inner.router.stores.matchStores.has(matchId))\n}\n\n/**\n * Builds the accumulated context from router options and all matches up to (and optionally including) the given index.\n * Merges __routeContext and __beforeLoadContext from each match.\n */\nconst buildMatchContext = (\n inner: InnerLoadContext,\n index: number,\n includeCurrentMatch: boolean = true,\n): Record<string, unknown> => {\n const context: Record<string, unknown> = {\n ...(inner.router.options.context ?? {}),\n }\n const end = includeCurrentMatch ? index : index - 1\n for (let i = 0; i <= end; i++) {\n const innerMatch = inner.matches[i]\n if (!innerMatch) continue\n const m = inner.router.getMatch(innerMatch.id)\n if (!m) continue\n Object.assign(context, m.__routeContext, m.__beforeLoadContext)\n }\n return context\n}\n\nconst getNotFoundBoundaryIndex = (\n inner: InnerLoadContext,\n err: NotFoundError,\n): number | undefined => {\n if (!inner.matches.length) {\n return undefined\n }\n\n const requestedRouteId = err.routeId\n const matchedRootIndex = inner.matches.findIndex(\n (m) => m.routeId === inner.router.routeTree.id,\n )\n const rootIndex = matchedRootIndex >= 0 ? matchedRootIndex : 0\n\n let startIndex = requestedRouteId\n ? inner.matches.findIndex((match) => match.routeId === requestedRouteId)\n : (inner.firstBadMatchIndex ?? inner.matches.length - 1)\n\n if (startIndex < 0) {\n startIndex = rootIndex\n }\n\n for (let i = startIndex; i >= 0; i--) {\n const match = inner.matches[i]!\n const route = inner.router.looseRoutesById[match.routeId]!\n if (route.options.notFoundComponent) {\n return i\n }\n }\n\n // If no boundary component is found, preserve explicit routeId targeting behavior,\n // otherwise default to root for untargeted notFounds.\n return requestedRouteId ? startIndex : rootIndex\n}\n\nconst handleRedirectAndNotFound = (\n inner: InnerLoadContext,\n match: AnyRouteMatch | undefined,\n err: unknown,\n): void => {\n if (!isRedirect(err) && !isNotFound(err)) return\n\n if (isRedirect(err) && err.redirectHandled && !err.options.reloadDocument) {\n throw err\n }\n\n // in case of a redirecting match during preload, the match does not exist\n if (match) {\n match._nonReactive.beforeLoadPromise?.resolve()\n match._nonReactive.loaderPromise?.resolve()\n match._nonReactive.beforeLoadPromise = undefined\n match._nonReactive.loaderPromise = undefined\n\n match._nonReactive.error = err\n\n inner.updateMatch(match.id, (prev) => ({\n ...prev,\n status: isRedirect(err)\n ? 'redirected'\n : isNotFound(err)\n ? 'notFound'\n : prev.status === 'pending'\n ? 'success'\n : prev.status,\n context: buildMatchContext(inner, match.index),\n isFetching: false,\n error: err,\n }))\n\n if (isNotFound(err) && !err.routeId) {\n // Stamp the throwing match's routeId so that the finalization step in\n // loadMatches knows where the notFound originLine truncated
@@ -0,0 +1,47 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const { modulesResolveHandler } = require("./ModulesUtils");
/** @typedef {import("./Resolver")} Resolver */
/** @typedef {import("./Resolver").ResolveStepHook} ResolveStepHook */
module.exports = class ModulesInHierarchicalDirectoriesPlugin {
/**
* @param {string | ResolveStepHook} source source
* @param {string | string[]} directories directories
* @param {string | ResolveStepHook} target target
*/
constructor(source, directories, target) {
this.source = source;
this.directories = /** @type {string[]} */ [...directories];
this.target = target;
}
/**
* @param {Resolver} resolver the resolver
* @returns {void}
*/
apply(resolver) {
const target = resolver.ensureHook(this.target);
resolver
.getHook(this.source)
.tapAsync(
"ModulesInHierarchicalDirectoriesPlugin",
(request, resolveContext, callback) => {
modulesResolveHandler(
resolver,
this.directories,
target,
request,
resolveContext,
callback,
);
},
);
}
};
@@ -0,0 +1 @@
{"version":3,"file":"move-down-right.js","sources":["../../../src/icons/move-down-right.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name MoveDownRight\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTkgMTNWMTlIMTMiIC8+CiAgPHBhdGggZD0iTTUgNUwxOSAxOSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/move-down-right\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst MoveDownRight = createLucideIcon('MoveDownRight', [\n ['path', { d: 'M19 13V19H13', key: '10vkzq' }],\n ['path', { d: 'M5 5L19 19', key: '5zm2fv' }],\n]);\n\nexport default MoveDownRight;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,iBAAiB,eAAiB,CAAA,CAAA,CAAA;AAAA,CAAA,CACtD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC7C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC7C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_E"},B:{"1":"_K","2":"_I"},C:{"1":"_GJ _lB","2":"_NP"},D:{"1":"_FN _dC _zD _TC _mD","2":"_4Q","260":"3B"},E:{"1":"_JB","2":"_5C","132":"_6H _mF"},F:{"1":"_bG _ZQ _iE _NG","2":"_SS","260":"qB"},G:{"1":"_9","2":"_EB","132":"_lC _FF"},H:{"2":"1D"},I:{"1":"I","2":"_G"},J:{"2":"_B"},K:{"1":"H","2":"_D"},L:{"1":"I"},M:{"1":"YC"},N:{"2":"_A"},O:{"1":"bC"},P:{"1":"_F"},Q:{"1":"JE"},R:{"1":"KE"},S:{"1":"_C"}},B:4,C:"CSS background-blend-mode",D:true};
@@ -0,0 +1,717 @@
flf2a$ 7 6 20 0 2
computer.flf by Mike Rosulek <mjr@netins.net>, 7/12/95. Check out my
homepage at: http://www.netins.net/showcase/mikewrld/
$ $#
$ $#
$ $#
$ $#
$ $#
$ $#
$ $##
8$ #
88$#
88$#
88$#
$ #
88$#
$##
8 8$#
" "$#
$ #
$ #
$ #
$ #
$ ##
dP dP$ #
888888888$#
dP dP$ #
888888888$ #
dP dP$ #
$ #
$ ##
ee8ee$#
8 8$#
8eeee$#
88$#
e 88$#
8ee88$#
8$ ##
8"8 dP$#
8e8 dP$ #
dP$ #
dP$ #
dP 8"8$#
dP 8e8$#
$ ##
888888$#
8 ,$ #
88eee8e$#
88 8$ #
88 8$ #
88eee8$ #
$ ##
88$#
8$#
$ #
$ #
$ #
$ #
$ ##
8"$#
8$ #
8$ #
8$ #
8$ #
8e$#
$ ##
"8$#
8$#
8$#
8$#
8$#
e8$#
$ ##
\|/$#
/|\$#
$ #
$ #
$ #
$ #
$ ##
$ #
$ #
8$ #
ee8ee$#
8$ #
$ #
$ ##
$ #
$ #
$ #
$ #
$ #
88$#
8$##
$ #
$ #
$ #
eeee$#
$ #
$ #
$ ##
$ #
$ #
$ #
$ #
$ #
88$#
$ ##
/$#
/$ #
/$ #
/$ #
/$ #
/$ #
$ ##
eeeeee$#
8 8$#
8 8$#
8 8$#
8 8$#
8eeee8$#
$ ##
88$ #
8$ #
8$ #
8$ #
8888$#
8888$#
$ ##
eeee$#
8$#
8$#
eee8$#
8$ #
8eee$#
$ ##
eeee$ #
8$ #
8$ #
eee8$ #
88$#
eee88$#
$ ##
88$ #
88$ #
88 88$#
88ee88$#
88$#
88$#
$ ##
eeeee$#
8$ #
8eeee$#
8$#
8$#
eeee8$#
$ ##
eeee$ #
8 8$ #
8$ #
8eeee$#
8 8$#
8eee8$#
$ ##
eeeee$#
8 8$#
e'$#
e'$ #
8$ #
8$ #
$ ##
eeeee$ #
8 8$ #
8eee8$ #
88 88$#
88 88$#
88eee88$#
$ ##
eeeee$#
8 8$#
8eee8$#
88$#
88$#
88$#
$ ##
$ #
$ #
$ #
88$#
$ #
88$#
$ ##
$ #
$ #
$ #
88$#
$ #
88$#
8$##
e8"$#
e8"$ #
e8"$ #
"8e$ #
"8e$ #
"8e$#
$ ##
$ #
$ #
$ #
eeeee$#
eeeee$#
$ #
$ ##
"8e$ #
"8e$ #
"8e$#
e8"$#
e8"$ #
e8"$ #
$ ##
8""""8$#
8$#
eeeee8$#
88$ #
""$ #
88$ #
$ ##
__$ #
.' `.$ #
/ eeee \$ #
| 8ee8 |$#
\ 88 8 /$ #
`.__.'$ #
$ ##
8""""8$#
8 8$#
8eeee8$#
88 8$#
88 8$#
88 8$#
$ ##
8""""8$ #
8 8$ #
8eeee8ee$#
88 8$#
88 8$#
88eeeee8$#
$ ##
8""""8$#
8 "$#
8e$ #
88$ #
88 e$#
88eee8$#
$ ##
8""""8$#
8 8$#
8e 8$#
88 8$#
88 8$#
88eee8$#
$ ##
8""""$#
8$ #
8eeee$#
88$ #
88$ #
88eee$#
$ ##
8""""$#
8$ #
8eeee$#
88$ #
88$ #
88$ #
$ ##
8""""8$#
8 "$#
8e$ #
88 ee$#
88 8$#
88eee8$#
$ ##
8 8$#
8 8$#
8eee8$#
88 8$#
88 8$#
88 8$#
$ ##
8$ #
8$ #
8e$#
88$#
88$#
88$#
$ ##
8$ #
8$ #
8e$#
88$#
e 88$#
8eee88$#
$ ##
8 8$ #
8 8$ #
8eee8e$#
88 8$#
88 8$#
88 8$#
$ ##
8$ #
8$ #
8e$ #
88$ #
88$ #
88eee$#
$ ##
8""8""8$#
8 8 8$#
8e 8 8$#
88 8 8$#
88 8 8$#
88 8 8$#
$ ##
8"""8$#
8 8$#
8e 8$#
88 8$#
88 8$#
88 8$#
$ ##
8"""88$#
8 8$#
8 8$#
8 8$#
8 8$#
8eeee8$#
$ ##
8""""8$#
8 8$#
8eeee8$#
88$ #
88$ #
88$ #
$ ##
8""""8$#
8 8$#
8 8$#
8 8$#
8 ___8$#
8e8888$#
$ ##
8"""8$ #
8 8$ #
8eee8e$#
88 8$#
88 8$#
88 8$#
$ ##
8""""8$#
8 $#
8eeeee$#
88$#
e 88$#
8eee88$#
$ ##
""8""$#
8$ #
8e$ #
88$ #
88$ #
88$ #
$ ##
8 8$#
8 8$#
8e 8$#
88 8$#
88 8$#
88ee8$#
$ ##
88 8$#
88 8$#
88 e8$#
"8 8$ #
8 8$ #
8ee8$ #
$ ##
8 8 8$#
8 8 8$#
8e 8 8$#
88 8 8$#
88 8 8$#
88ee8ee8$#
$ ##
8 8$#
8 8$#
eeeeee$#
88 8$#
88 8$#
88 8$#
$ ##
8 8$#
8 8$#
8eeee8$#
88$ #
88$ #
88$ #
$ ##
8""""8$#
8$#
eeeee8$#
88$ #
88$ #
88eee8$#
$ ##
8"$#
8 $#
8 $#
8 $#
8 $#
8e$#
$ ##
\$ #
\$ #
\$ #
\$ #
\$ #
\$#
$ ##
"8$#
8$#
8$#
8$#
8$#
e8$#
$ ##
/\$#
$ #
$ #
$ #
$ #
$ #
$ ##
$ #
$ #
$ #
$ #
$ #
$ #
eeeee$##
\$ #
\$#
$ #
$ #
$ #
$ #
$ ##
$ #
eeeee$#
8 8$#
8eee8$#
88 8$#
88 8$#
$ ##
$ #
eeeee$ #
8 8$ #
8eee8e$#
88 8$#
88eee8$#
$ ##
$ #
eeee$#
8 8$#
8e$ #
88$ #
88e8$#
$ ##
$ #
eeeee$#
8 8$#
8e 8$#
88 8$#
88ee8$#
$ ##
$ #
eeee$#
8$ #
8eee$#
88$ #
88ee$#
$ ##
$ #
eeee$#
8$ #
8eee$#
88$ #
88$ #
$ ##
$ #
eeeee$#
8 8$#
8e$ #
88 "8$#
88ee8$#
$ ##
$ #
e e$#
8 8$#
8eee8$#
88 8$#
88 8$#
$ ##
$ #
e$ #
8$ #
8e$#
88$#
88$#
$ ##
$ #
e$ #
8$ #
8e$#
e 88$#
8ee88$#
$ ##
$ #
e e$ #
8 8$ #
8eee8e$#
88 8$#
88 8$#
$ ##
$ #
e$ #
8$ #
8e$ #
88$ #
88eee$#
$ ##
$ #
eeeeeee$#
8 8 8$#
8e 8 8$#
88 8 8$#
88 8 8$#
$ ##
$ #
eeeee$#
8 8$#
8e 8$#
88 8$#
88 8$#
$ ##
$ #
eeeee$#
8 88$#
8 8$#
8 8$#
8eee8$#
$ ##
$ #
eeeee$#
8 8$#
8eee8$#
88$ #
88$ #
$ ##
$ #
eeeee$#
8 8$#
8 8$#
8 __8$#
8e888$#
$ ##
$ #
eeeee$ #
8 8$ #
8eee8e$#
88 8$#
88 8$#
$ ##
$ #
eeeee$#
8 "$#
8eeee$#
88$#
8ee88$#
$ ##
$ #
eeeee$#
8$ #
8e$ #
88$ #
88$ #
$ ##
$ #
e e$#
8 8$#
8e 8$#
88 8$#
88ee8$#
$ ##
$ #
ee e$#
88 8$#
88 e8$#
8 8$ #
8ee8$ #
$ ##
$ #
e e e$#
8 8 8$#
8e 8 8$#
88 8 8$#
88ee8ee8$#
$ ##
$ #
e e$#
8 8$#
eeeeee$#
88 8$#
88 8$#
$ ##
$ #
e e$#
8 8$#
8eeee8$#
88$ #
88$ #
$ ##
$ #
eeeee$#
" 8$#
eeee8$#
88$ #
88ee8$#
$ ##
/"$#
|$ #
|$ #
<$ #
|$ #
|$ #
\_$##
8$#
8$#
8$#
8$#
8$#
8$#
$ ##
"\$ #
|$ #
|$ #
>$#
|$ #
|$ #
_/$ ##
/\/$#
$ #
$ #
$ #
$ #
$ #
$ ##
"" ""$#
eeeee$#
8 8$#
8eee8$#
88 8$#
88 8$#
$ ##
"" ""$#
eeeee$#
8 88$#
8 8$#
8 8$#
8eee8$#
$ ##
"" ""$#
e e$#
8 8$#
8e 8$#
88 8$#
88ee8$#
$ ##
"" ""$#
eeeee$#
8 8$#
8eee8$#
88 8$#
88 8$#
$ ##
"" ""$#
eeeee$#
8 88$#
8 8$#
8 8$#
8eee8$#
$ ##
"" ""$#
e e$#
8 8$#
8e 8$#
88 8$#
88ee8$#
$ ##
$#
$#
$#
$#
$#
$#
$##
@@ -0,0 +1,148 @@
{
"name": "framer-motion",
"version": "12.38.0",
"description": "A simple and powerful JavaScript animation library",
"main": "dist/cjs/index.js",
"module": "dist/es/index.mjs",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/es/index.mjs",
"default": "./dist/cjs/index.js"
},
"./debug": {
"types": "./dist/debug.d.ts",
"require": "./dist/cjs/debug.js",
"import": "./dist/es/debug.mjs",
"default": "./dist/cjs/debug.js"
},
"./dom/mini": {
"types": "./dist/dom-mini.d.ts",
"require": "./dist/cjs/dom-mini.js",
"import": "./dist/es/dom-mini.mjs",
"default": "./dist/cjs/dom-mini.js"
},
"./dom": {
"types": "./dist/dom.d.ts",
"require": "./dist/cjs/dom.js",
"import": "./dist/es/dom.mjs",
"default": "./dist/cjs/dom.js"
},
"./client": {
"types": "./dist/types/client.d.ts",
"require": "./dist/cjs/client.js",
"import": "./dist/es/client.mjs",
"default": "./dist/cjs/client.js"
},
"./m": {
"types": "./dist/m.d.ts",
"require": "./dist/cjs/m.js",
"import": "./dist/es/m.mjs",
"default": "./dist/cjs/m.js"
},
"./mini": {
"types": "./dist/mini.d.ts",
"require": "./dist/cjs/mini.js",
"import": "./dist/es/mini.mjs",
"default": "./dist/cjs/mini.js"
},
"./projection": {
"types": "./dist/projection.d.ts",
"import": "./dist/es/projection.mjs",
"default": "./dist/es/projection.mjs"
},
"./package.json": "./package.json"
},
"types": "dist/types/index.d.ts",
"author": "Matt Perry",
"license": "MIT",
"repository": "https://github.com/motiondivision/motion/",
"sideEffects": false,
"keywords": [
"react animation",
"react",
"pose",
"react pose",
"animation",
"gestures",
"drag",
"spring",
"popmotion",
"framer",
"waapi"
],
"scripts": {
"eslint": "yarn run lint",
"lint": "yarn eslint src/**/*.ts",
"build": "yarn clean && tsc --noEmitOnError -p . && rollup -c && node ./scripts/check-bundle.js",
"dev": "yarn watch",
"clean": "rm -rf types dist lib",
"test": "yarn test-server && yarn test-client",
"test-client": "jest --config jest.config.json --max-workers=2",
"test-server": "jest --config jest.config.ssr.json",
"prettier": "prettier ./src/* --write",
"watch": "concurrently -c blue,red -n tsc --noEmitOnError ,rollup --kill-others \"tsc --noEmitOnError --watch -p . --preserveWatchOutput\" \"rollup --config --watch --no-watch.clearScreen\"",
"prepack": "yarn build && yarn measure",
"postpublish": "git push --tags",
"measure": "rollup -c ./rollup.size.config.mjs"
},
"dependencies": {
"motion-dom": "^12.38.0",
"motion-utils": "^12.36.0",
"tslib": "^2.4.0"
},
"devDependencies": {
"@radix-ui/react-dialog": "^1.1.15",
"@thednp/dommatrix": "^2.0.11",
"@types/three": "0.137.0",
"three": "0.137.0"
},
"peerDependencies": {
"@emotion/is-prop-valid": "*",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@emotion/is-prop-valid": {
"optional": true
},
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
},
"bundlesize": [
{
"path": "./dist/size-rollup-motion.js",
"maxSize": "34.9 kB"
},
{
"path": "./dist/size-rollup-m.js",
"maxSize": "6 kB"
},
{
"path": "./dist/size-rollup-dom-animation.js",
"maxSize": "17.85 kB"
},
{
"path": "./dist/size-rollup-dom-max.js",
"maxSize": "29.8 kB"
},
{
"path": "./dist/size-rollup-animate.js",
"maxSize": "19.1 kB"
},
{
"path": "./dist/size-rollup-scroll.js",
"maxSize": "5.2 kB"
},
{
"path": "./dist/size-rollup-waapi-animate.js",
"maxSize": "2.26 kB"
}
],
"gitHead": "0bfc9fe015f7170c538ca70ba4677ec59d83ee76"
}
@@ -0,0 +1,5 @@
import type { PreviewServer, ViteDevServer } from 'vite';
export declare function isDevServer(server: ViteDevServer | PreviewServer): server is ViteDevServer;
export declare const FS_PREFIX = "/@fs/";
export declare function fsPathFromId(id: string): string;
export declare function cleanUrl(url: string): string;
@@ -0,0 +1,7 @@
import * as ts from 'typescript';
/**
* Get the type name of a given type.
* @param typeChecker The context sensitive TypeScript TypeChecker.
* @param type The type to get the name of.
*/
export declare function getTypeName(typeChecker: ts.TypeChecker, type: ts.Type): string;
@@ -0,0 +1,634 @@
flf2a$ 6 5 18 -1 21
Figlet conversion by Kent Nassen (kentn@cyberspace.org) based on the
font designed by:
Article 2687 of rec.arts.ascii:
Path: news.itd.umich.edu!caen!math.ohio-state.edu!howland.reston.ans.net!news.sprintlink.net!sashimi.wwa.com!not-for-mail
From: dissel@nunic.nu.edu (David S. Issel)
Newsgroups: rec.arts.ascii,alt.ascii-art
Subject: Line: Smaller BLOOD font (5 line)
Date: 6 Nov 1994 15:06:30 -0600
Organization: National University
Lines: 73
Sender: boba@wwa.com
Approved: boba@wwa.com
Message-ID: <39jggm$in2@gagme.wwa.com>
NNTP-Posting-Host: gagme.wwa.com
Xref: news.itd.umich.edu rec.arts.ascii:2687 alt.ascii-art:15734
For those who thought that BLOOD was too big... I offer SBLOOD:
------------
$ $#
$ $#
$ $#
$ $#
$ $#
$ $##
$@@@#
$@@@#
$!@!#
$ #
$:.:#
$ ##
$@@ @@$#
$ @! @!#
$ $#
$ $#
$ $#
$ $##
$ @@@ @@@ #
$@@@!@@@@@#
$ @!@ !@! #
$!!!:!!!!:#
$ :: : : #
$ ##
$ @@@@@ #
$!@@!! #
$ !@@!! #
$ !!:!#
$ :.:.: #
$ ##
$ @@ @@#
$ @@!#
$ @@! #
$!!: #
$:. :: #
$ ##
$ @@@@@ #
$@@! @@@ #
$ !@!@! #
$!!: !!! #
$ :.: : .:#
$ ##
$ @@#
$!@$#
$ $#
$ $#
$ $#
$ $##
$ @@@#
$@@@ #
$!@! #
$!!! #
$ : :#
$ ##
$@@@ #
$ @@@#
$ !@!#
$ !!!#
$: : #
$ ##
$ @@@ @@@ #
$ @@!!@@ #
$!!!@@!@!!!#
$ !:::!! #
$ :.: .:: #
$ ##
$ @@@ #
$ @@@ #
$!@!@!@!#
$ !!! #
$ : : #
$ ##
$ $#
$ $#
$ $#
$ !!#
$ ::#
$.: ##
$ $#
$ $#
$@!@!@!@!#
$ $#
$ $#
$ $##
$ $#
$ $#
$ $#
$ $#
$::#
$ $##
$ @@@#
$ @@@ #
$ !!@ #
$ !!! #
$: : #
$ ##
$ @@@@@@ #
$@@! @@@#
$@!@ !@!#
$!!: !!!#
$ : : :: #
$ ##
$ @@@#
$ @@@#
$ !@!#
$ !!!#
$ : #
$ $##
$ @@@@@@ #
$@@ @@@#
$ .!!@! #
$ !!: #
$:.:: :::#
$ ##
$@@@@@@ #
$ @@!#
$ @!!!: #
$ !!:#
$::: :: #
$ ##
$@@@ @@@#
$@@! @@@#
$@!@!@!@!#
$ !!!#
$ : :#
$ ##
$@@@@@@@#
$!@@ #
$!!@@!! #
$ !:!#
$:: : : #
$ ##
$ @@@@@ #
$@@!@ #
$@!@!@!@ #
$!!: !!!#
$ : : :: #
$ ##
$@@@@@@@@#
$ @@!#
$ @!! #
$ .!!: #
$: : #
$ ##
$ @@@@@@ #
$@@! @@@#
$ !@!@!@ #
$!!: !!!#
$ :.:: : #
$ ##
$ @@@@@@ #
$@@! @@@#
$ @!@@!@!#
$ !!:#
$ : ::: #
$ ##
$ #
$@@#
$ #
$!!#
$ #
$ ##
$ #
$ @@#
$ #
$ !!#
$ ::#
$.: ##
$ #
$ @@@#
$ @@@ #
$!@! #
$ !!! #
$ :::##
$ $#
$@@@!@@@@#
$ $#
$!!!:!!!!#
$ $#
$ $##
$ #
$@@@ #
$ @@@ #
$ !@!#
$ !!! #
$::: ##
$ @@@@@@ #
$@@! @@@#
$ .!@! #
$ "" #
$ :: #
$ ##
$ @@@@@@@ #
$!@@ !@@#
$!@! @!@!@#
$:!! #
$ :: :: : #
$ ##
$ @@@@@@ #
$@@! @@@#
$@!@!@!@!#
$!!: !!!#
$ : : :#
$ ##
$@@@@@@@ #
$@@! @@@#
$@!@!@!@ #
$!!: !!!#
$:: : :: #
$ ##
$ @@@@@@@#
$!@@ #
$!@! #
$:!! #
$ :: :: :#
$ ##
$@@@@@@@ #
$@@! @@@#
$@!@ !@!#
$!!: !!!#
$:: : : #
$ ##
$@@@@@@@@#
$@@! #
$@!!!:! #
$!!: #
$: :: :::#
$ ##
$@@@@@@@@#
$@@! #
$@!!!:! #
$!!: #
$ : #
$ ##
$ @@@@@@@ #
$!@@ #
$!@! @!@!@#
$:!! !!:#
$ :: :: : #
$ ##
$@@@ @@@#
$@@! @@@#
$@!@!@!@!#
$!!: !!!#
$ : : :#
$ ##
$@@@#
$@@!#
$!!@#
$!!:#
$: #
$ ##
$ @@@#
$ @@!#
$ !!@#
$. .!! #
$::.:: #
$ ##
$@@@ @@@#
$@@! !@@#
$@!@@!@! #
$!!: :!! #
$ : :::#
$ ##
$@@@ #
$@@! #
$@!! #
$!!: #
$: ::.: :#
$ ##
$@@@@@@@@@@ #
$@@! @@! @@!#
$@!! !!@ @!@#
$!!: !!:#
$ : : #
$ ##
$@@@ @@@#
$@@!@!@@@#
$@!@@!!@!#
$!!: !!!#
$:: : #
$ ##
$ @@@@@@ #
$@@! @@@#
$@!@ !@!#
$!!: !!!#
$ : :. : #
$ ##
$@@@@@@@ #
$@@! @@@#
$@!@@!@! #
$!!: #
$ : #
$ ##
$ @@@@@@ #
$@@! @@@ #
$@!@ !@! #
$!!:!!:!: #
$ : :. :::#
$ ##
$@@@@@@@ #
$@@! @@@#
$@!@!!@! #
$!!: :!! #
$ : : :#
$ ##
$ @@@@@@#
$!@@ #
$ !@@!! #
$ !:!#
$::.: : #
$ ##
$@@@@@@@#
$ @@! #
$ @!! #
$ !!: #
$ : #
$ ##
$@@@ @@@#
$@@! @@@#
$@!@ !@!#
$!!: !!!#
$ :.:: : #
$ ##
$@@@ @@@#
$@@! @@@#
$@!@ !@!#
$ !: .:! #
$ :: #
$ ##
$@@@ @@@ @@@#
$@@! @@! @@!#
$@!! !!@ @!@#
$ !: !!: !! #
$ ::.: ::: #
$ ##
$@@@ @@@#
$@@! !@@#
$ !@@!@! #
$ !: :!! #
$::: :::#
$ ##
$@@@ @@@#
$@@! !@@#
$ !@!@! #
$ !!: #
$ .: #
$ ##
$@@@@@@@@#
$ @@!#
$ @!! #
$ !!: #
$:.::.: :#
$ ##
$@@@@@#
$@@@ #
$!!@ #
$!!! #
$: :.:#
$ ##
$@@@ #
$ @@@ #
$ !!@ #
$ !!! #
$ : :#
$ ##
$ @@@@#
$ @@@#
$ @!!#
$ !!!#
$:.: :#
$ ##
$ @@@@ #
$@!@ !@@#
$ $#
$ $#
$ $#
$ $##
$ $#
$ $#
$ $#
$ $#
$.......$#
$: :: : :##
$@@$#
$ @!#
$ $#
$ $#
$ $#
$ $##
$ @@@@@@ #
$@@! @@@#
$@!@!@!@!#
$!!: !!!#
$ : : :#
$ ##
$@@@@@@@ #
$@@! @@@#
$@!@!@!@ #
$!!: !!!#
$:: : :: #
$ ##
$ @@@@@@@#
$!@@ #
$!@! #
$:!! #
$ :: :: :#
$ ##
$@@@@@@@ #
$@@! @@@#
$@!@ !@!#
$!!: !!!#
$:: : : #
$ ##
$@@@@@@@@#
$@@! #
$@!!!:! #
$!!: #
$: :: :::#
$ ##
$@@@@@@@@#
$@@! #
$@!!!:! #
$!!: #
$ : #
$ ##
$ @@@@@@@ #
$!@@ #
$!@! @!@!@#
$:!! !!:#
$ :: :: : #
$ ##
$@@@ @@@#
$@@! @@@#
$@!@!@!@!#
$!!: !!!#
$ : : :#
$ ##
$@@@#
$@@!#
$!!@#
$!!:#
$: #
$ ##
$ @@@#
$ @@!#
$ !!@#
$. .!! #
$::.:: #
$ ##
$@@@ @@@#
$@@! !@@#
$@!@@!@! #
$!!: :!! #
$ : :::#
$ ##
$@@@ #
$@@! #
$@!! #
$!!: #
$: ::.: :#
$ ##
$@@@@@@@@@@ #
$@@! @@! @@!#
$@!! !!@ @!@#
$!!: !!:#
$ : : #
$ ##
$@@@ @@@#
$@@!@!@@@#
$@!@@!!@!#
$!!: !!!#
$:: : #
$ ##
$ @@@@@@ #
$@@! @@@#
$@!@ !@!#
$!!: !!!#
$ : :. : #
$ ##
$@@@@@@@ #
$@@! @@@#
$@!@@!@! #
$!!: #
$ : #
$ ##
$ @@@@@@ #
$@@! @@@ #
$@!@ !@! #
$!!:!!:!: #
$ : :. :::#
$ ##
$@@@@@@@ #
$@@! @@@#
$@!@!!@! #
$!!: :!! #
$ : : :#
$ ##
$ @@@@@@#
$!@@ #
$ !@@!! #
$ !:!#
$::.: : #
$ ##
$@@@@@@@#
$ @@! #
$ @!! #
$ !!: #
$ : #
$ ##
$@@@ @@@#
$@@! @@@#
$@!@ !@!#
$!!: !!!#
$ :.:: : #
$ ##
$@@@ @@@#
$@@! @@@#
$@!@ !@!#
$ !: .:! #
$ :: #
$ ##
$@@@ @@@ @@@#
$@@! @@! @@!#
$@!! !!@ @!@#
$ !: !!: !! #
$ ::.: ::: #
$ ##
$@@@ @@@#
$@@! !@@#
$ !@@!@! #
$ !: :!! #
$::: :::#
$ ##
$@@@ @@@#
$@@! !@@#
$ !@!@! #
$ !!: #
$ .: #
$ ##
$@@@@@@@@#
$ @@!#
$ @!! #
$ !!: #
$:.::.: :#
$ ##
$ @@@#
$ @@@#
$!!@ #
$ !!!#
$ : :#
$ ##
$ @@@#
$ @@@#
$ @!!#
$ !!!#
$ :.:#
$ . :##
$ @@@ #
$ @@@ #
$ @!!#
$ !!! #
$ : : #
$ ##
$ @@@ @@#
$@@ @@@$#
$ $#
$ $#
$ $#
$ $##
#
#
#
#
#
##
#
#
#
#
#
##
#
#
#
#
#
##
#
#
#
#
#
##
#
#
#
#
#
##
#
#
#
#
#
##
#
#
#
#
#
##
@@ -0,0 +1,14 @@
/**
* Take an array of times that represent repeated keyframes. For instance
* if we have original times of [0, 0.5, 1] then our repeated times will
* be [0, 0.5, 1, 1, 1.5, 2]. Loop over the times and scale them back
* down to a 0-1 scale.
*/
function normalizeTimes(times, repeat) {
for (let i = 0; i < times.length; i++) {
times[i] = times[i] / (repeat + 1);
}
}
export { normalizeTimes };
//# sourceMappingURL=normalize-times.mjs.map
@@ -0,0 +1 @@
{"version":3,"file":"bug.js","sources":["../../../src/icons/bug.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Bug\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtOCAyIDEuODggMS44OCIgLz4KICA8cGF0aCBkPSJNMTQuMTIgMy44OCAxNiAyIiAvPgogIDxwYXRoIGQ9Ik05IDcuMTN2LTFhMy4wMDMgMy4wMDMgMCAxIDEgNiAwdjEiIC8+CiAgPHBhdGggZD0iTTEyIDIwYy0zLjMgMC02LTIuNy02LTZ2LTNhNCA0IDAgMCAxIDQtNGg0YTQgNCAwIDAgMSA0IDR2M2MwIDMuMy0yLjcgNi02IDYiIC8+CiAgPHBhdGggZD0iTTEyIDIwdi05IiAvPgogIDxwYXRoIGQ9Ik02LjUzIDlDNC42IDguOCAzIDcuMSAzIDUiIC8+CiAgPHBhdGggZD0iTTYgMTNIMiIgLz4KICA8cGF0aCBkPSJNMyAyMWMwLTIuMSAxLjctMy45IDMuOC00IiAvPgogIDxwYXRoIGQ9Ik0yMC45NyA1YzAgMi4xLTEuNiAzLjgtMy41IDQiIC8+CiAgPHBhdGggZD0iTTIyIDEzaC00IiAvPgogIDxwYXRoIGQ9Ik0xNy4yIDE3YzIuMS4xIDMuOCAxLjkgMy44IDQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/bug\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Bug = createLucideIcon('Bug', [\n ['path', { d: 'm8 2 1.88 1.88', key: 'fmnt4t' }],\n ['path', { d: 'M14.12 3.88 16 2', key: 'qol33r' }],\n ['path', { d: 'M9 7.13v-1a3.003 3.003 0 1 1 6 0v1', key: 'd7y7pr' }],\n [\n 'path',\n {\n d: 'M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6',\n key: 'xs1cw7',\n },\n ],\n ['path', { d: 'M12 20v-9', key: '1qisl0' }],\n ['path', { d: 'M6.53 9C4.6 8.8 3 7.1 3 5', key: '32zzws' }],\n ['path', { d: 'M6 13H2', key: '82j7cp' }],\n ['path', { d: 'M3 21c0-2.1 1.7-3.9 3.8-4', key: '4p0ekp' }],\n ['path', { d: 'M20.97 5c0 2.1-1.6 3.8-3.5 4', key: '18gb23' }],\n ['path', { d: 'M22 13h-4', key: '1jl80f' }],\n ['path', { d: 'M17.2 17c2.1.1 3.8 1.9 3.8 4', key: 'k3fwyw' }],\n]);\n\nexport default Bug;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,iBAAiB,KAAO,CAAA,CAAA,CAAA;AAAA,CAAA,CAClC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC/C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACjD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAsC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CACnE,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA6B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1D,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA6B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC1D,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAgC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC7D,CAAC,CAAA,CAAA,CAAALine truncated
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019
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,284 @@
import {
DATE_MAX_YEAR,
DATE_MIN_YEAR,
DATE_SPLITS,
REFERENCE_YEAR,
} from '../../data/const'
import { sorted } from '../../utils/helper'
import { MatcherBaseClass, DateMatch, MatchOptions } from '../../types'
type DateMatchOptions = Pick<MatchOptions, 'password'>
/*
* -------------------------------------------------------------------------------
* date matching ----------------------------------------------------------------
* -------------------------------------------------------------------------------
*/
class MatchDate extends MatcherBaseClass {
/*
* a "date" is recognized as:
* any 3-tuple that starts or ends with a 2- or 4-digit year,
* with 2 or 0 separator chars (1.1.91 or 1191),
* maybe zero-padded (01-01-91 vs 1-1-91),
* a month between 1 and 12,
* a day between 1 and 31.
*
* note: this isn't true date parsing in that "feb 31st" is allowed,
* this doesn't check for leap years, etc.
*
* recipe:
* start with regex to find maybe-dates, then attempt to map the integers
* onto month-day-year to filter the maybe-dates into dates.
* finally, remove matches that are substrings of other matches to reduce noise.
*
* note: instead of using a lazy or greedy regex to find many dates over the full string,
* this uses a ^...$ regex against every substring of the password -- less performant but leads
* to every possible date match.
*/
match({ password }: DateMatchOptions) {
const matches: DateMatch[] = [
...this.getMatchesWithoutSeparator(password),
...this.getMatchesWithSeparator(password),
]
const filteredMatches = this.filterNoise(matches)
return sorted(filteredMatches)
}
getMatchesWithSeparator(password: string) {
const matches: DateMatch[] = []
const maybeDateWithSeparator = /^(\d{1,4})([\s/\\_.-])(\d{1,2})\2(\d{1,4})$/
// # dates with separators are between length 6 '1/1/91' and 10 '11/11/1991'
for (let i = 0; i <= Math.abs(password.length - 6); i += 1) {
for (let j = i + 5; j <= i + 9; j += 1) {
if (j >= password.length) {
break
}
const token = password.slice(i, j + 1 || 9e9)
const regexMatch = maybeDateWithSeparator.exec(token)
if (regexMatch != null) {
const dmy = this.mapIntegersToDayMonthYear([
parseInt(regexMatch[1], 10),
parseInt(regexMatch[3], 10),
parseInt(regexMatch[4], 10),
])
if (dmy != null) {
matches.push({
pattern: 'date',
token,
i,
j,
separator: regexMatch[2],
year: dmy.year,
month: dmy.month,
day: dmy.day,
})
}
}
}
}
return matches
}
// eslint-disable-next-line max-statements
getMatchesWithoutSeparator(password: string) {
const matches: DateMatch[] = []
const maybeDateNoSeparator = /^\d{4,8}$/
const metric = (candidate: DateMatch) =>
Math.abs(candidate.year - REFERENCE_YEAR)
// # dates without separators are between length 4 '1191' and 8 '11111991'
for (let i = 0; i <= Math.abs(password.length - 4); i += 1) {
for (let j = i + 3; j <= i + 7; j += 1) {
if (j >= password.length) {
break
}
const token = password.slice(i, j + 1 || 9e9)
if (maybeDateNoSeparator.exec(token)) {
const candidates: any[] = []
const index = token.length
const splittedDates = DATE_SPLITS[index as keyof typeof DATE_SPLITS]
splittedDates.forEach(([k, l]) => {
const dmy = this.mapIntegersToDayMonthYear([
parseInt(token.slice(0, k), 10),
parseInt(token.slice(k, l), 10),
parseInt(token.slice(l), 10),
])
if (dmy != null) {
candidates.push(dmy)
}
})
if (candidates.length > 0) {
/*
* at this point: different possible dmy mappings for the same i,j substring.
* match the candidate date that likely takes the fewest guesses: a year closest
* to 2000.
* (scoring.REFERENCE_YEAR).
*
* ie, considering '111504', prefer 11-15-04 to 1-1-1504
* (interpreting '04' as 2004)
*/
let bestCandidate = candidates[0]
let minDistance = metric(candidates[0])
candidates.slice(1).forEach((candidate) => {
const distance = metric(candidate)
if (distance < minDistance) {
bestCandidate = candidate
minDistance = distance
}
})
matches.push({
pattern: 'date',
token,
i,
j,
separator: '',
year: bestCandidate.year,
month: bestCandidate.month,
day: bestCandidate.day,
})
}
}
}
}
return matches
}
/*
* matches now contains all valid date strings in a way that is tricky to capture
* with regexes only. while thorough, it will contain some unintuitive noise:
*
* '2015_06_04', in addition to matching 2015_06_04, will also contain
* 5(!) other date matches: 15_06_04, 5_06_04, ..., even 2015 (matched as 5/1/2020)
*
* to reduce noise, remove date matches that are strict substrings of others
*/
filterNoise(matches: DateMatch[]) {
return matches.filter((match) => {
let isSubmatch = false
const matchesLength = matches.length
for (let o = 0; o < matchesLength; o += 1) {
const otherMatch = matches[o]
if (match !== otherMatch) {
if (otherMatch.i <= match.i && otherMatch.j >= match.j) {
isSubmatch = true
break
}
}
}
return !isSubmatch
})
}
/*
* given a 3-tuple, discard if:
* middle int is over 31 (for all dmy formats, years are never allowed in the middle)
* middle int is zero
* any int is over the max allowable year
* any int is over two digits but under the min allowable year
* 2 integers are over 31, the max allowable day
* 2 integers are zero
* all integers are over 12, the max allowable month
*/
// eslint-disable-next-line complexity, max-statements
mapIntegersToDayMonthYear(integers: number[]) {
if (integers[1] > 31 || integers[1] <= 0) {
return null
}
let over12 = 0
let over31 = 0
let under1 = 0
for (let o = 0, len1 = integers.length; o < len1; o += 1) {
const int = integers[o]
if ((int > 99 && int < DATE_MIN_YEAR) || int > DATE_MAX_YEAR) {
return null
}
if (int > 31) {
over31 += 1
}
if (int > 12) {
over12 += 1
}
if (int <= 0) {
under1 += 1
}
}
if (over31 >= 2 || over12 === 3 || under1 >= 2) {
return null
}
return this.getDayMonth(integers)
}
// eslint-disable-next-line max-statements
getDayMonth(integers: number[]) {
// first look for a four digit year: yyyy + daymonth or daymonth + yyyy
const possibleYearSplits: [number, number[]][] = [
[integers[2], integers.slice(0, 2)], // year last
[integers[0], integers.slice(1, 3)], // year first
]
const possibleYearSplitsLength = possibleYearSplits.length
for (let j = 0; j < possibleYearSplitsLength; j += 1) {
const [y, rest] = possibleYearSplits[j]
if (DATE_MIN_YEAR <= y && y <= DATE_MAX_YEAR) {
const dm = this.mapIntegersToDayMonth(rest)
if (dm != null) {
return {
year: y,
month: dm.month,
day: dm.day,
}
}
/*
* for a candidate that includes a four-digit year,
* when the remaining integers don't match to a day and month,
* it is not a date.
*/
return null
}
}
// given no four-digit year, two digit years are the most flexible int to match, so
// try to parse a day-month out of integers[0..1] or integers[1..0]
for (let k = 0; k < possibleYearSplitsLength; k += 1) {
const [y, rest] = possibleYearSplits[k]
const dm = this.mapIntegersToDayMonth(rest)
if (dm != null) {
return {
year: this.twoToFourDigitYear(y),
month: dm.month,
day: dm.day,
}
}
}
return null
}
mapIntegersToDayMonth(integers: number[]) {
const temp = [integers, integers.slice().reverse()]
// eslint-disable-next-line @typescript-eslint/prefer-for-of
for (let i = 0; i < temp.length; i += 1) {
const data = temp[i]
const day = data[0]
const month = data[1]
if (day >= 1 && day <= 31 && month >= 1 && month <= 12) {
return {
day,
month,
}
}
}
return null
}
twoToFourDigitYear(year: number) {
if (year > 99) {
return year
}
if (year > 50) {
// 87 -> 1987
return year + 1900
}
// 15 -> 2015
return year + 2000
}
}
export default MatchDate
@@ -0,0 +1,53 @@
/**
* Options for the Visitor constructor and visit function.
*/
interface VisitorOptions {
/**
* Fallback strategy for unknown node types.
* @default 'iteration'
*/
fallback?: "iteration" | ((node: any) => string[]);
/**
* Custom keys for child nodes by node type.
* @default {}
*/
childVisitorKeys?: Record<string, string[]>;
}
/**
* A visitor class for recursively traversing ECMAScript AST.
*/
declare class Visitor {
/**
* Creates a new Visitor instance.
* @param options Configuration options for the visitor.
*/
constructor(visitor?: Visitor | null, options?: VisitorOptions | null);
/**
* Visits a node, invoking the appropriate handler.
* @param node The AST node to visit.
*/
visit(node: any): void;
/**
* Visits the children of a node based on childVisitorKeys.
* @param node The AST node whose children to visit.
*/
visitChildren(node: any): void;
}
/**
* Visits an AST node with the specified visitor.
* @param ast The AST node to traverse.
* @param visitor A visitor instance or visitor object.
* @param options Configuration options for the traversal.
*/
declare function visit(
ast: any,
visitor?: Visitor | Record<string, (node: any) => void> | null,
options?: VisitorOptions,
): void;
export { visit, Visitor, type VisitorOptions };
@@ -0,0 +1,280 @@
import 'node:util';
import g, { stdin, stdout } from 'node:process';
import f from 'node:readline';
import { WriteStream } from 'node:tty';
function getDefaultExportFromCjs (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}
var src;
var hasRequiredSrc;
function requireSrc () {
if (hasRequiredSrc) return src;
hasRequiredSrc = 1;
const ESC = '\x1B';
const CSI = `${ESC}[`;
const beep = '\u0007';
const cursor = {
to(x, y) {
if (!y) return `${CSI}${x + 1}G`;
return `${CSI}${y + 1};${x + 1}H`;
},
move(x, y) {
let ret = '';
if (x < 0) ret += `${CSI}${-x}D`;
else if (x > 0) ret += `${CSI}${x}C`;
if (y < 0) ret += `${CSI}${-y}A`;
else if (y > 0) ret += `${CSI}${y}B`;
return ret;
},
up: (count = 1) => `${CSI}${count}A`,
down: (count = 1) => `${CSI}${count}B`,
forward: (count = 1) => `${CSI}${count}C`,
backward: (count = 1) => `${CSI}${count}D`,
nextLine: (count = 1) => `${CSI}E`.repeat(count),
prevLine: (count = 1) => `${CSI}F`.repeat(count),
left: `${CSI}G`,
hide: `${CSI}?25l`,
show: `${CSI}?25h`,
save: `${ESC}7`,
restore: `${ESC}8`
};
const scroll = {
up: (count = 1) => `${CSI}S`.repeat(count),
down: (count = 1) => `${CSI}T`.repeat(count)
};
const erase = {
screen: `${CSI}2J`,
up: (count = 1) => `${CSI}1J`.repeat(count),
down: (count = 1) => `${CSI}J`.repeat(count),
line: `${CSI}2K`,
lineEnd: `${CSI}K`,
lineStart: `${CSI}1K`,
lines(count) {
let clear = '';
for (let i = 0; i < count; i++)
clear += this.line + (i < count - 1 ? cursor.up() : '');
if (count)
clear += cursor.left;
return clear;
}
};
src = { cursor, scroll, erase, beep };
return src;
}
var srcExports = requireSrc();
var picocolors = {exports: {}};
var hasRequiredPicocolors;
function requirePicocolors () {
if (hasRequiredPicocolors) return picocolors.exports;
hasRequiredPicocolors = 1;
let p = process || {}, argv = p.argv || [], env = p.env || {};
let isColorSupported =
!(!!env.NO_COLOR || argv.includes("--no-color")) &&
(!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI);
let formatter = (open, close, replace = open) =>
input => {
let string = "" + input, index = string.indexOf(close, open.length);
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
};
let replaceClose = (string, close, replace, index) => {
let result = "", cursor = 0;
do {
result += string.substring(cursor, index) + replace;
cursor = index + close.length;
index = string.indexOf(close, cursor);
} while (~index)
return result + string.substring(cursor)
};
let createColors = (enabled = isColorSupported) => {
let f = enabled ? formatter : () => String;
return {
isColorSupported: enabled,
reset: f("\x1b[0m", "\x1b[0m"),
bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
italic: f("\x1b[3m", "\x1b[23m"),
underline: f("\x1b[4m", "\x1b[24m"),
inverse: f("\x1b[7m", "\x1b[27m"),
hidden: f("\x1b[8m", "\x1b[28m"),
strikethrough: f("\x1b[9m", "\x1b[29m"),
black: f("\x1b[30m", "\x1b[39m"),
red: f("\x1b[31m", "\x1b[39m"),
green: f("\x1b[32m", "\x1b[39m"),
yellow: f("\x1b[33m", "\x1b[39m"),
blue: f("\x1b[34m", "\x1b[39m"),
magenta: f("\x1b[35m", "\x1b[39m"),
cyan: f("\x1b[36m", "\x1b[39m"),
white: f("\x1b[37m", "\x1b[39m"),
gray: f("\x1b[90m", "\x1b[39m"),
bgBlack: f("\x1b[40m", "\x1b[49m"),
bgRed: f("\x1b[41m", "\x1b[49m"),
bgGreen: f("\x1b[42m", "\x1b[49m"),
bgYellow: f("\x1b[43m", "\x1b[49m"),
bgBlue: f("\x1b[44m", "\x1b[49m"),
bgMagenta: f("\x1b[45m", "\x1b[49m"),
bgCyan: f("\x1b[46m", "\x1b[49m"),
bgWhite: f("\x1b[47m", "\x1b[49m"),
blackBright: f("\x1b[90m", "\x1b[39m"),
redBright: f("\x1b[91m", "\x1b[39m"),
greenBright: f("\x1b[92m", "\x1b[39m"),
yellowBright: f("\x1b[93m", "\x1b[39m"),
blueBright: f("\x1b[94m", "\x1b[39m"),
magentaBright: f("\x1b[95m", "\x1b[39m"),
cyanBright: f("\x1b[96m", "\x1b[39m"),
whiteBright: f("\x1b[97m", "\x1b[39m"),
bgBlackBright: f("\x1b[100m", "\x1b[49m"),
bgRedBright: f("\x1b[101m", "\x1b[49m"),
bgGreenBright: f("\x1b[102m", "\x1b[49m"),
bgYellowBright: f("\x1b[103m", "\x1b[49m"),
bgBlueBright: f("\x1b[104m", "\x1b[49m"),
bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
bgCyanBright: f("\x1b[106m", "\x1b[49m"),
bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
}
};
picocolors.exports = createColors();
picocolors.exports.createColors = createColors;
return picocolors.exports;
}
var picocolorsExports = /*@__PURE__*/ requirePicocolors();
const e = /*@__PURE__*/getDefaultExportFromCjs(picocolorsExports);
function J({onlyFirst:t=false}={}){const F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(F,t?void 0:"g")}const Q=J();function T$1(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Q,"")}function O(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var P$1={exports:{}};(function(t){var u={};t.exports=u,u.eastAsianWidth=function(e){var s=e.charCodeAt(0),i=e.length==2?e.charCodeAt(1):0,D=s;return 55296<=s&&s<=56319&&56320<=i&&i<=57343&&(s&=1023,i&=1023,D=s<<10|i,D+=65536),D==12288||65281<=D&&D<=65376||65504<=D&&D<=65510?"F":D==8361||65377<=D&&D<=65470||65474<=D&&D<=65479||65482<=D&&D<=65487||65490<=D&&D<=65495||65498<=D&&D<=65500||65512<=D&&D<=65518?"H":4352<=D&&D<=4447||4515<=D&&D<=4519||4602<=D&&D<=4607||9001<=D&&D<=9002||11904<=D&&D<=11929||11931<=D&&D<=12019||12032<=D&&D<=12245||12272<=D&&D<=12283||12289<=D&&D<=12350||12353<=D&&D<=12438||12441<=D&&D<=12543||12549<=D&&D<=12589||12593<=D&&D<=12686||12688<=D&&D<=12730||12736<=D&&D<=12771||12784<=D&&D<=12830||12832<=D&&D<=12871||12880<=D&&D<=13054||13056<=D&&D<=19903||19968<=D&&D<=42124||42128<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||55216<=D&&D<=55238||55243<=D&&D<=55291||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65106||65108<=D&&D<=65126||65128<=D&&D<=65131||110592<=D&&D<=110593||127488<=D&&D<=127490||127504<=D&&D<=127546||127552<=D&&D<=127560||127568<=D&&D<=127569||131072<=D&&D<=194367||177984<=D&&D<=196605||196608<=D&&D<=262141?"W":32<=D&&D<=126||162<=D&&D<=163||165<=D&&D<=166||D==172||D==175||10214<=D&&D<=10221||10629<=D&&D<=10630?"Na":D==161||D==164||167<=D&&D<=168||D==170||173<=D&&D<=174||176<=D&&D<=180||182<=D&&D<=186||188<=D&&D<=191||D==198||D==208||215<=D&&D<=216||222<=D&&D<=225||D==230||232<=D&&D<=234||236<=D&&D<=237||D==240||242<=D&&D<=243||247<=D&&D<=250||D==252||D==254||D==257||D==273||D==275||D==283||294<=D&&D<=295||D==299||305<=D&&D<=307||D==312||319<=D&&D<=322||D==324||328<=D&&D<=331||D==333||338<=D&&D<=339||358<=D&&D<=359||D==363||D==462||D==464||D==466||D==468||D==470||D==472||D==474||D==476||D==593||D==609||D==708||D==711||713<=D&&D<=715||D==717||D==720||728<=D&&D<=731||D==733||D==735||768<=D&&D<=879||913<=D&&D<=929||931<=D&&D<=937||945<=D&&D<=961||963<=D&&D<=969||D==1025||1040<=D&&D<=1103||D==1105||D==8208||8211<=D&&D<=8214||8216<=D&&D<=8217||8220<=D&&D<=8221||8224<=D&&D<=8226||8228<=D&&D<=8231||D==8240||8242<=D&&D<=8243||D==8245||D==8251||D==8254||D==8308||D==8319||8321<=D&&D<=8324||D==8364||D==8451||D==8453||D==8457||D==8467||D==8470||8481<=D&&D<=8482||D==8486||D==8491||8531<=D&&D<=8532||8539<=D&&D<=8542||8544<=D&&D<=8555||8560<=D&&D<=8569||D==8585||8592<=D&&D<=8601||8632<=D&&D<=8633||D==8658||D==8660||D==8679||D==8704||8706<=D&&D<=8707||8711<=D&&D<=8712||D==8715||D==8719||D==8721||D==8725||D==8730||8733<=D&&D<=8736||D==8739||D==8741||8743<=D&&D<=8748||D==8750||8756<=D&&D<=8759||8764<=D&&D<=8765||D==8776||D==8780||D==8786||8800<=D&&D<=8801||8804<=D&&D<=8807||8810<=D&&D<=8811||8814<=D&&D<=8815||8834<=D&&D<=8835||8838<=D&&D<=8839||D==8853||D==8857||D==8869||D==8895||D==8978||9312<=D&&D<=9449||9451<=D&&D<=9547||9552<=D&&D<=9587||9600<=D&&D<=9615||9618<=D&&D<=9621||9632<=D&&D<=9633||9635<=D&&D<=9641||9650<=D&&D<=9651||9654<=D&&D<=9655||9660<=D&&D<=9661||9664<=D&&D<=9665||9670<=D&&D<=9672||D==9675||9678<=D&&D<=9681||9698<=D&&D<=9701||D==9711||9733<=D&&D<=9734||D==9737||9742<=D&&D<=9743||9748<=D&&D<=9749||D==9756||D==9758||D==9792||D==9794||9824<=D&&D<=9825||9827<=D&&D<=9829||9831<=D&&D<=9834||9836<=D&&D<=9837||D==9839||9886<=D&&D<=9887||9918<=D&&D<=9919||9924<=D&&D<=9933||9935<=D&&D<=9953||D==9955||9960<=D&&D<=9983||D==10045||D==10071||10102<=D&&D<=10111||11093<=D&&D<=11097||12872<=D&&D<=12879||57344<=D&&D<=63743||65024<=D&&D<=65039||D==65533||127232<=D&&D<=127242||127248<=D&&D<=127277||127280<=D&&D<=127337||127344<=D&&D<=127386||917760<=D&&D<=917999||983040<=D&&D<=1048573||1048576<=D&&D<=1114109?"A":"N"},u.characterLength=function(e){var s=this.eastAsianWidth(e);return s=="F"||s=="W"||s=="A"?2:1};function F(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.length=function(e){for(var s=F(e),i=0,D=0;D<s.length;D++)i=i+this.characterLength(s[D]);return i},u.slice=function(e,s,i){textLen=u.length(e),s=s||0,i=i||1,s<0&&(s=textLen+s),i<0&&(i=textLen+i);for(var D="",C=0,o=F(e),E=0;E<o.length;E++){var a=o[E],n=u.length(a);if(C>=s-(n==2?1:0))if(C+n<=i)D+=a;else break;C+=n;}return D};})(P$1);var X=P$1.exports;const DD=O(X);var uD=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\uLine truncated
`)];for(const[E,a]of o.entries()){if(e+=a,v.has(a)){const{groups:B}=new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`).exec(o.slice(E).join(""))||{groups:{}};if(B.code!==void 0){const p=Number.parseFloat(B.code);s=p===CD?void 0:p;}else B.uri!==void 0&&(i=B.uri.length===0?void 0:B.uri);}const n=iD.codes.get(Number(s));o[E+1]===`
`?(i&&(e+=z("")),s&&n&&(e+=V$1(n))):a===`
`&&(s&&n&&(e+=V$1(s)),i&&(e+=z(i)));}return e};function G(t,u,F){return String(t).normalize().replace(/\r\n/g,`
`).split(`
`).map(e=>oD(e,u,F)).join(`
`)}const aD=["up","down","left","right","space","enter","cancel"],c={actions:new Set(aD),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function k$1(t,u){if(typeof t=="string")return c.aliases.get(t)===u;for(const F of t)if(F!==void 0&&k$1(F,u))return true;return false}function lD(t,u){if(t===u)return;const F=t.split(`
`),e=u.split(`
`),s=[];for(let i=0;i<Math.max(F.length,e.length);i++)F[i]!==e[i]&&s.push(i);return s}globalThis.process.platform.startsWith("win");const S=Symbol("clack:cancel");function d$1(t,u){const F=t;F.isTTY&&F.setRawMode(u);}var AD=Object.defineProperty,pD=(t,u,F)=>u in t?AD(t,u,{enumerable:true,configurable:true,writable:true,value:F}):t[u]=F,h=(t,u,F)=>(pD(t,typeof u!="symbol"?u+"":u,F),F);class x{constructor(u,F=true){h(this,"input"),h(this,"output"),h(this,"_abortSignal"),h(this,"rl"),h(this,"opts"),h(this,"_render"),h(this,"_track",false),h(this,"_prevFrame",""),h(this,"_subscribers",new Map),h(this,"_cursor",0),h(this,"state","initial"),h(this,"error",""),h(this,"value");const{input:e=stdin,output:s=stdout,render:i,signal:D,...C}=u;this.opts=C,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=F,this._abortSignal=D,this.input=e,this.output=s;}unsubscribe(){this._subscribers.clear();}setSubscriber(u,F){const e=this._subscribers.get(u)??[];e.push(F),this._subscribers.set(u,e);}on(u,F){this.setSubscriber(u,{cb:F});}once(u,F){this.setSubscriber(u,{cb:F,once:true});}emit(u,...F){const e=this._subscribers.get(u)??[],s=[];for(const i of e)i.cb(...F),i.once&&s.push(()=>e.splice(e.indexOf(i),1));for(const i of s)i();}prompt(){return new Promise((u,F)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),u(S);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close();},{once:true});}const e=new WriteStream(0);e._write=(s,i,D)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),D();},this.input.pipe(e),this.rl=f.createInterface({input:this.input,output:e,tabSize:2,prompt:"",escapeCodeTimeout:50}),f.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),d$1(this.input,true),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(srcExports.cursor.show),this.output.off("resize",this.render),d$1(this.input,false),u(this.value);}),this.once("cancel",()=>{this.output.write(srcExports.cursor.show),this.output.off("resize",this.render),d$1(this.input,false),u(S);});})}onKeypress(u,F){if(this.state==="error"&&(this.state="active"),F?.name&&(!this._track&&c.aliases.has(F.name)&&this.emit("cursor",c.aliases.get(F.name)),c.actions.has(F.name)&&this.emit("cursor",F.name)),u&&(u.toLowerCase()==="y"||u.toLowerCase()==="n")&&this.emit("confirm",u.toLowerCase()==="y"),u===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),u&&this.emit("key",u.toLowerCase()),F?.name==="return"){if(this.opts.validate){const e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state="error",this.rl?.write(this.value));}this.state!=="error"&&(this.state="submit");}k$1([u,F?.name,F?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close();}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
`),d$1(this.input,false),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe();}restoreCursor(){const u=G(this._prevFrame,process.stdout.columns,{hard:true}).split(`
`).length-1;this.output.write(srcExports.cursor.move(-999,u*-1));}render(){const u=G(this._render(this)??"",process.stdout.columns,{hard:true});if(u!==this._prevFrame){if(this.state==="initial")this.output.write(srcExports.cursor.hide);else {const F=lD(this._prevFrame,u);if(this.restoreCursor(),F&&F?.length===1){const e=F[0];this.output.write(srcExports.cursor.move(0,e)),this.output.write(srcExports.erase.lines(1));const s=u.split(`
`);this.output.write(s[e]),this._prevFrame=u,this.output.write(srcExports.cursor.move(0,s.length-e-1));return}if(F&&F?.length>1){const e=F[0];this.output.write(srcExports.cursor.move(0,e)),this.output.write(srcExports.erase.down());const s=u.split(`
`).slice(e);this.output.write(s.join(`
`)),this._prevFrame=u;return}this.output.write(srcExports.erase.down());}this.output.write(u),this.state==="initial"&&(this.state="active"),this._prevFrame=u;}}}class fD extends x{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(u){super(u,false),this.value=!!u.initialValue,this.on("value",()=>{this.value=this._value;}),this.on("confirm",F=>{this.output.write(srcExports.cursor.move(0,-1)),this.value=F,this.state="submit",this.close();}),this.on("cursor",()=>{this.value=!this.value;});}}var bD=Object.defineProperty,mD=(t,u,F)=>u in t?bD(t,u,{enumerable:true,configurable:true,writable:true,value:F}):t[u]=F,Y=(t,u,F)=>(mD(t,typeof u!="symbol"?u+"":u,F),F);let wD=class extends x{constructor(u){super(u,false),Y(this,"options"),Y(this,"cursor",0),this.options=u.options,this.value=[...u.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:F})=>F===u.cursorAt),0),this.on("key",F=>{F==="a"&&this.toggleAll();}),this.on("cursor",F=>{switch(F){case "left":case "up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case "down":case "right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case "space":this.toggleValue();break}});}get _value(){return this.options[this.cursor].value}toggleAll(){const u=this.value.length===this.options.length;this.value=u?[]:this.options.map(F=>F.value);}toggleValue(){const u=this.value.includes(this._value);this.value=u?this.value.filter(F=>F!==this._value):[...this.value,this._value];}};var SD=Object.defineProperty,$D=(t,u,F)=>u in t?SD(t,u,{enumerable:true,configurable:true,writable:true,value:F}):t[u]=F,q=(t,u,F)=>($D(t,typeof u!="symbol"?u+"":u,F),F);class jD extends x{constructor(u){super(u,false),q(this,"options"),q(this,"cursor",0),this.options=u.options,this.cursor=this.options.findIndex(({value:F})=>F===u.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",F=>{switch(F){case "left":case "up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case "down":case "right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue();});}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value;}}class PD extends x{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return `${this.value}\u2588`;const u=this.value.slice(0,this.cursor),[F,...e$1]=this.value.slice(this.cursor);return `${u}${e.inverse(F)}${e$1.join("")}`}get cursor(){return this._cursor}constructor(u){super(u),this.on("finalize",()=>{this.value||(this.value=u.defaultValue);});}}
function ce(){return g.platform!=="win32"?g.env.TERM!=="linux":!!g.env.CI||!!g.env.WT_SESSION||!!g.env.TERMINUS_SUBLIME||g.env.ConEmuTask==="{cmd::Cmder}"||g.env.TERM_PROGRAM==="Terminus-Sublime"||g.env.TERM_PROGRAM==="vscode"||g.env.TERM==="xterm-256color"||g.env.TERM==="alacritty"||g.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const V=ce(),u=(t,n)=>V?t:n,le=u("❯", ">"),L=u("■", "x"),W=u("▲", "x"),C=u("✔", "√"),o=u(""),d=u(""),k=u("\u25CF",">"),P=u("\u25CB"," "),A=u("\u25FB","[\u2022]"),T=u("\u25FC","[+]"),F=u("\u25FB","[ ]"),w=t=>{switch(t){case "initial":case "active":return e.cyan(le);case "cancel":return e.red(L);case "error":return e.yellow(W);case "submit":return e.green(C)}},B=t=>{const{cursor:n,options:s,style:r}=t,i=t.maxItems??Number.POSITIVE_INFINITY,a=Math.max(process.stdout.rows-4,0),c=Math.min(a,Math.max(i,5));let l=0;n>=l+c-3?l=Math.max(Math.min(n-c+3,s.length-c),0):n<l+2&&(l=Math.max(n-2,0));const $=c<s.length&&l>0,p=c<s.length&&l+c<s.length;return s.slice(l,l+c).map((M,v,x)=>{const j=v===0&&$,E=v===x.length-1&&p;return j||E?e.dim("..."):r(M,v+l===n)})},he=t=>new PD({validate:t.validate,placeholder:t.placeholder,defaultValue:t.defaultValue,initialValue:t.initialValue,render(){const n=`${e.gray(o)}
${w(this.state)} ${t.message}
`,s=t.placeholder?e.inverse(t.placeholder[0])+e.dim(t.placeholder.slice(1)):e.inverse(e.hidden("_")),r=this.value?this.valueWithCursor:s;switch(this.state){case "error":return `${n.trim()}
${e.yellow(o)} ${r}
${e.yellow(d)} ${e.yellow(this.error)}
`;case "submit":return `${n}${e.gray(o)} ${e.dim(this.value||t.placeholder)}`;case "cancel":return `${n}${e.gray(o)} ${e.strikethrough(e.dim(this.value??""))}${this.value?.trim()?`
${e.gray(o)}`:""}`;default:return `${n}${e.cyan(o)} ${r}
${e.cyan(d)}
`}}}).prompt(),ye=t=>{const n=t.active??"Yes",s=t.inactive??"No";return new fD({active:n,inactive:s,initialValue:t.initialValue??true,render(){const r=`${e.gray(o)}
${w(this.state)} ${t.message}
`,i=this.value?n:s;switch(this.state){case "submit":return `${r}${e.gray(o)} ${e.dim(i)}`;case "cancel":return `${r}${e.gray(o)} ${e.strikethrough(e.dim(i))}
${e.gray(o)}`;default:return `${r}${e.cyan(o)} ${this.value?`${e.green(k)} ${n}`:`${e.dim(P)} ${e.dim(n)}`} ${e.dim("/")} ${this.value?`${e.dim(P)} ${e.dim(s)}`:`${e.green(k)} ${s}`}
${e.cyan(d)}
`}}}).prompt()},ve=t=>{const n=(s,r)=>{const i=s.label??String(s.value);switch(r){case "selected":return `${e.dim(i)}`;case "active":return `${e.green(k)} ${i} ${s.hint?e.dim(`(${s.hint})`):""}`;case "cancelled":return `${e.strikethrough(e.dim(i))}`;default:return `${e.dim(P)} ${e.dim(i)}`}};return new jD({options:t.options,initialValue:t.initialValue,render(){const s=`${e.gray(o)}
${w(this.state)} ${t.message}
`;switch(this.state){case "submit":return `${s}${e.gray(o)} ${n(this.options[this.cursor],"selected")}`;case "cancel":return `${s}${e.gray(o)} ${n(this.options[this.cursor],"cancelled")}
${e.gray(o)}`;default:return `${s}${e.cyan(o)} ${B({cursor:this.cursor,options:this.options,maxItems:t.maxItems,style:(r,i)=>n(r,i?"active":"inactive")}).join(`
${e.cyan(o)} `)}
${e.cyan(d)}
`}}}).prompt()},fe=t=>{const n=(s,r)=>{const i=s.label??String(s.value);return r==="active"?`${e.cyan(A)} ${i} ${s.hint?e.dim(`(${s.hint})`):""}`:r==="selected"?`${e.green(T)} ${e.dim(i)}`:r==="cancelled"?`${e.strikethrough(e.dim(i))}`:r==="active-selected"?`${e.green(T)} ${i} ${s.hint?e.dim(`(${s.hint})`):""}`:r==="submitted"?`${e.dim(i)}`:`${e.dim(F)} ${e.dim(i)}`};return new wD({options:t.options,initialValues:t.initialValues,required:t.required??true,cursorAt:t.cursorAt,validate(s){if(this.required&&s.length===0)return `Please select at least one option.
${e.reset(e.dim(`Press ${e.gray(e.bgWhite(e.inverse(" space ")))} to select, ${e.gray(e.bgWhite(e.inverse(" enter ")))} to submit`))}`},render(){const s=`${e.gray(o)}
${w(this.state)} ${t.message}
`,r=(i,a)=>{const c=this.value.includes(i.value);return a&&c?n(i,"active-selected"):c?n(i,"selected"):n(i,a?"active":"inactive")};switch(this.state){case "submit":return `${s}${e.gray(o)} ${this.options.filter(({value:i})=>this.value.includes(i)).map(i=>n(i,"submitted")).join(e.dim(", "))||e.dim("none")}`;case "cancel":{const i=this.options.filter(({value:a})=>this.value.includes(a)).map(a=>n(a,"cancelled")).join(e.dim(", "));return `${s}${e.gray(o)} ${i.trim()?`${i}
${e.gray(o)}`:""}`}case "error":{const i=this.error.split(`
`).map((a,c)=>c===0?`${e.yellow(d)} ${e.yellow(a)}`:` ${a}`).join(`
`);return `${s+e.yellow(o)} ${B({options:this.options,cursor:this.cursor,maxItems:t.maxItems,style:r}).join(`
${e.yellow(o)} `)}
${i}
`}default:return `${s}${e.cyan(o)} ${B({options:this.options,cursor:this.cursor,maxItems:t.maxItems,style:r}).join(`
${e.cyan(o)} `)}
${e.cyan(d)}
`}}}).prompt()};`${e.gray(o)} `;
const kCancel = Symbol.for("cancel");
async function prompt(message, opts = {}) {
const handleCancel = (value) => {
if (typeof value !== "symbol" || value.toString() !== "Symbol(clack:cancel)") {
return value;
}
switch (opts.cancel) {
case "reject": {
const error = new Error("Prompt cancelled.");
error.name = "ConsolaPromptCancelledError";
if (Error.captureStackTrace) {
Error.captureStackTrace(error, prompt);
}
throw error;
}
case "undefined": {
return void 0;
}
case "null": {
return null;
}
case "symbol": {
return kCancel;
}
default:
case "default": {
return opts.default ?? opts.initial;
}
}
};
if (!opts.type || opts.type === "text") {
return await he({
message,
defaultValue: opts.default,
placeholder: opts.placeholder,
initialValue: opts.initial
}).then(handleCancel);
}
if (opts.type === "confirm") {
return await ye({
message,
initialValue: opts.initial
}).then(handleCancel);
}
if (opts.type === "select") {
return await ve({
message,
options: opts.options.map(
(o) => typeof o === "string" ? { value: o, label: o } : o
),
initialValue: opts.initial
}).then(handleCancel);
}
if (opts.type === "multiselect") {
return await fe({
message,
options: opts.options.map(
(o) => typeof o === "string" ? { value: o, label: o } : o
),
required: opts.required,
initialValues: opts.initial
}).then(handleCancel);
}
throw new Error(`Unknown prompt type: ${opts.type}`);
}
export { kCancel, prompt };
@@ -0,0 +1 @@
{"version":3,"file":"circle-power.js","sources":["../../../src/icons/circle-power.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name CirclePower\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgN3Y0IiAvPgogIDxwYXRoIGQ9Ik03Ljk5OCA5LjAwM2E1IDUgMCAxIDAgOC0uMDA1IiAvPgogIDxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/circle-power\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst CirclePower = createLucideIcon('CirclePower', [\n ['path', { d: 'M12 7v4', key: 'xawao1' }],\n ['path', { d: 'M7.998 9.003a5 5 0 1 0 8-.005', key: '1pek45' }],\n ['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],\n]);\n\nexport default CirclePower;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,iBAAiB,aAAe,CAAA,CAAA,CAAA;AAAA,CAAA,CAClD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAiC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAC9D,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA;AAC3D,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,70 @@
(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.markdown=e()}})(function(){"use strict";var sm=Object.create;var Or=Object.defineProperty;var lm=Object.getOwnPropertyDescriptor;var cm=Object.getOwnPropertyNames;var fm=Object.getPrototypeOf,pm=Object.prototype.hasOwnProperty;var B=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Nr=(e,t)=>{for(var r in t)Or(e,r,{get:t[r],enumerable:!0})},xu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of cm(t))!pm.call(e,a)&&a!==r&&Or(e,a,{get:()=>t[a],enumerable:!(n=lm(t,a))||n.enumerable});return e};var At=(e,t,r)=>(r=e!=null?sm(fm(e)):{},xu(t||!e||!e.__esModule?Or(r,"default",{value:e,enumerable:!0}):r,e)),hm=e=>xu(Or({},"__esModule",{value:!0}),e);var bo=B((E8,Fo)=>{"use strict";Fo.exports=Cg;var sr=9,tn=10,_t=32,Fg=33,bg=58,Pt=91,Eg=92,Pi=93,lr=94,rn=96,nn=4,wg=1024;function Cg(e){var t=this.Parser,r=this.Compiler;yg(t)&&Ag(t,e),vg(r)&&Tg(r)}function yg(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function vg(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Ag(e,t){for(var r=t||{},n=e.prototype,a=n.blockTokenizers,u=n.inlineTokenizers,i=n.blockMethods,o=n.inlineMethods,s=a.definition,c=u.reference,l=[],f=-1,p=i.length,m;++f<p;)m=i[f],!(m==="newline"||m==="indentedCode"||m==="paragraph"||m==="footnoteDefinition")&&l.push([m]);l.push(["footnoteDefinition"]),r.inlineNotes&&(Oi(o,"reference","inlineNote"),u.inlineNote=d),Oi(i,"definition","footnoteDefinition"),Oi(o,"reference","footnoteCall"),a.definition=F,a.footnoteDefinition=D,u.footnoteCall=x,u.reference=k,n.interruptFootnoteDefinition=l,k.locator=c.locator,x.locator=w,d.locator=S;function D(C,g,v){for(var L=this,y=L.interruptFootnoteDefinition,E=L.offset,_=g.length+1,I=0,T=[],M,O,z,N,W,ie,h,Y,ae,b,ee,ce,te;I<_&&(N=g.charCodeAt(I),!(N!==sr&&N!==_t));)I++;if(g.charCodeAt(I++)===Pt&&g.charCodeAt(I++)===lr){for(O=I;I<_;){if(N=g.charCodeAt(I),N!==N||N===tn||N===sr||N===_t)return;if(N===Pi){z=I,I++;break}I++}if(!(z===void 0||O===z||g.charCodeAt(I++)!==bg)){if(v)return!0;for(M=g.slice(O,z),W=C.now(),ae=0,b=0,ee=I,ce=[];I<_;){if(N=g.charCodeAt(I),N!==N||N===tn)te={start:ae,contentStart:ee||I,contentEnd:I,end:I},ce.push(te),N===tn&&(ae=I+1,b=0,ee=void 0,te.end=ae);else if(b!==void 0)if(N===_t||N===sr)b+=N===_t?1:nn-b%nn,b>nn&&(b=void 0,ee=I);else{if(b<nn&&te&&(te.contentStart===te.contentEnd||Sg(y,a,L,[C,g.slice(I,wg),!0])))break;b=void 0,ee=I}I++}for(I=-1,_=ce.length;_>0&&(te=ce[_-1],te.contentStart===te.contentEnd);)_--;for(ie=C(g.slice(0,te.contentEnd));++I<_;)te=ce[I],E[W.line+I]=(E[W.line+I]||0)+(te.contentStart-te.start),T.push(g.slice(te.contentStart,te.end));return h=L.enterBlock(),Y=L.tokenizeBlock(T.join(""),W),h(),ie({type:"footnoteDefinition",identifier:M.toLowerCase(),label:M,children:Y})}}}function x(C,g,v){var L=g.length+1,y=0,E,_,I,T;if(g.charCodeAt(y++)===Pt&&g.charCodeAt(y++)===lr){for(_=y;y<L;){if(T=g.charCodeAt(y),T!==T||T===tn||T===sr||T===_t)return;if(T===Pi){I=y,y++;break}y++}if(!(I===void 0||_===I))return v?!0:(E=g.slice(_,I),C(g.slice(0,y))({type:"footnoteReference",identifier:E.toLowerCase(),label:E}))}}function d(C,g,v){var L=this,y=g.length+1,E=0,_=0,I,T,M,O,z,N,W;if(g.charCodeAt(E++)===lr&&g.charCodeAt(E++)===Pt){for(M=E;E<y;){if(T=g.charCodeAt(E),T!==T)return;if(N===void 0)if(T===Eg)E+=2;else if(T===Pt)_++,E++;else if(T===Pi)if(_===0){O=E,E++;break}else _--,E++;else if(T===rn){for(z=E,N=1;g.charCodeAt(z+N)===rn;)N++;E+=N}else E++;else if(T===rn){for(z=E,W=1;g.charCodeAt(z+W)===rn;)W++;E+=W,N===W&&(N=void 0),W=void 0}else E++}if(O!==void 0)return v?!0:(I=C.now(),I.column+=2,I.offset+=2,C(g.slice(0,E))({type:"footnote",children:L.tokenizeInline(g.slice(M,O),I)}))}}function k(C,g,v){var L=0;if(g.charCodeAt(L)===Fg&&L++,g.charCodeAt(L)===Pt&&g.charCodeAt(L+1)!==lr)return c.call(this,C,g,v)}function F(C,g,v){for(var L=0,y=g.charCodeAt(L);y===_t||y===sr;)y=g.charCodeAt(++L);if(y===Pt&&g.charCodeAt(L+1)!==lr)return s.call(this,C,g,v)}function w(C,g){return C.indexOf("[",g)}function S(C,g){return C.indexOf("^[",g)}}function Tg(e){var t=e.prototype.visitors,r=" ";t.footnote=n,t.footnoteReference=a,t.footnoteDefinition=u;function n(i){return"^["+this.all(i).join("")+"]"}function a(i){return"[^"+(i.label||i.identifier)+"]"}function u(i){for(var o=this.all(i).join(`
`).split(`
`),s=0,c=o.length,l;++s<c;)l=o[s],l!==""&&(o[s]=r+l);return"[^"+(i.label||i.identifier)+"]: "+o.join(`
`)}}function Oi(e,t,r){e.splice(e.indexOf(t),0,r)}function Sg(e,t,r,n){for(var a=e.length,u=-1;++u<a;)if(t[e[u][0]].apply(r,n))return!0;return!1}});var Ri=B(Ni=>{Ni.isRemarkParser=Lg;Ni.isRemarkCompiler=Ig;function Lg(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Ig(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var To=B((C8,Ao)=>{var Eo=Ri();Ao.exports=Pg;var wo=9,Co=32,an=36,qg=48,Bg=57,yo=92,_g=["math","math-inline"],vo="math-display";function Pg(e){let t=this.Parser,r=this.Compiler;Eo.isRemarkParser(t)&&Og(t,e),Eo.isRemarkCompiler(r)&&Ng(r,e)}function Og(e,t){let r=e.prototype,n=r.inlineMethods;u.locator=a,r.inlineTokenizers.math=u,n.splice(n.indexOf("text"),0,"math");function a(i,o){return i.indexOf("$",o)}function u(i,o,s){let c=o.length,l=!1,f=!1,p=0,m,D,x,d,k,F,w;if(o.charCodeAt(p)===yo&&(f=!0,p++),o.charCodeAt(p)===an){if(p++,f)return s?!0:i(o.slice(0,p))({type:"text",value:"$"});if(o.charCodeAt(p)===an&&(l=!0,p++),x=o.charCodeAt(p),!(x===Co||x===wo)){for(d=p;p<c;){if(D=x,x=o.charCodeAt(p+1),D===an){if(m=o.charCodeAt(p-1),m!==Co&&m!==wo&&(x!==x||x<qg||x>Bg)&&(!l||x===an)){k=p-1,p++,l&&p++,F=p;break}}else D===yo&&(p++,x=o.charCodeAt(p+1));p++}if(F!==void 0)return s?!0:(w=o.slice(d,k+1),i(o.slice(0,F))({type:"inlineMath",value:w,data:{hName:"span",hProperties:{className:_g.concat(l&&t.inlineMathDouble?[vo]:[])},hChildren:[{type:"text",value:w}]}}))}}}}function Ng(e){let t=e.prototype;t.visitors.inlineMath=r;function r(n){let a="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(vo)&&(a="$$"),a+n.value+a}}});var Bo=B((y8,qo)=>{var So=Ri();qo.exports=Ug;var Lo=10,cr=32,Mi=36,Io=`
`,Rg="$",Mg=2,zg=["math","math-display"];function Ug(){let e=this.Parser,t=this.Compiler;So.isRemarkParser(e)&&Hg(e),So.isRemarkCompiler(t)&&Vg(t)}function Hg(e){let t=e.prototype,r=t.blockMethods,n=t.interruptParagraph,a=t.interruptList,u=t.interruptBlockquote;t.blockTokenizers.math=i,r.splice(r.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),u.splice(u.indexOf("fencedCode")+1,0,["math"]);function i(o,s,c){var l=s.length,f=0;let p,m,D,x,d,k,F,w,S,C,g;for(;f<l&&s.charCodeAt(f)===cr;)f++;for(d=f;f<l&&s.charCodeAt(f)===Mi;)f++;if(k=f-d,!(k<Mg)){for(;f<l&&s.charCodeAt(f)===cr;)f++;for(F=f;f<l;){if(p=s.charCodeAt(f),p===Mi)return;if(p===Lo)break;f++}if(s.charCodeAt(f)===Lo){if(c)return!0;for(m=[],F!==f&&m.push(s.slice(F,f)),f++,D=s.indexOf(Io,f+1),D=D===-1?l:D;f<l;){for(w=!1,C=f,g=D,x=D,S=0;x>C&&s.charCodeAt(x-1)===cr;)x--;for(;x>C&&s.charCodeAt(x-1)===Mi;)S++,x--;for(k<=S&&s.indexOf(Rg,C)===x&&(w=!0,g=x);C<=g&&C-f<d&&s.charCodeAt(C)===cr;)C++;if(w)for(;g>C&&s.charCodeAt(g-1)===cr;)g--;if((!w||C!==g)&&m.push(s.slice(C,g)),w)break;f=D+1,D=s.indexOf(Io,f+1),D=D===-1?l:D}return m=m.join(`
`),o(s.slice(0,D))({type:"math",value:m,data:{hName:"div",hProperties:{className:zg.concat()},hChildren:[{type:"text",value:m}]}})}}}}function Vg(e){let t=e.prototype;t.visitors.math=r;function r(n){return`$$
`+n.value+`
$$`}}});var Po=B((v8,_o)=>{var Gg=To(),Wg=Bo();_o.exports=Yg;function Yg(e){var t=e||{};Wg.call(this,t),Gg.call(this,t)}});var Ft=B((A8,Oo)=>{Oo.exports=$g;var jg=Object.prototype.hasOwnProperty;function $g(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)jg.call(r,n)&&(e[n]=r[n])}return e}});var No=B((T8,zi)=>{typeof Object.create=="function"?zi.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:zi.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var zo=B((S8,Mo)=>{"use strict";var Kg=Ft(),Ro=No();Mo.exports=Qg;function Qg(e){var t,r,n;Ro(u,e),Ro(a,u),t=u.prototype;for(r in t)n=t[r],n&&typeof n=="object"&&(t[r]="concat"in n?n.concat():Kg(n));return u;function a(i){return e.apply(this,i)}function u(){return this instanceof u?e.apply(this,arguments):new a(arguments)}}});var Ho=B((L8,Uo)=>{"use strict";Uo.exports=Xg;function Xg(e,t,r){return n;function n(){var a=r||this,u=a[e];return a[e]=!t,i;function i(){a[e]=u}}}});var Go=B((I8,Vo)=>{"use strict";Vo.exports=Jg;function Jg(e){for(var t=String(e),r=[],n=/\r?\n|\r/g;n.exec(t);)r.push(n.lastIndex);return r.push(t.length+1),{toPoint:a,toPosition:a,toOffset:u};function a(i){var o=-1;if(i>-1&&i<r[r.length-1]){for(;++o<r.length;)if(r[o]>i)return{line:o+1,column:i-(r[o-1]||0)+1,offset:i}}return{}}function u(i){var o=i&&i.line,s=i&&i.column,c;return!isNaN(o)&&!isNaN(s)&&o-1 in r&&(c=(r[o-2]||0)+s-1||0),c>-1&&c<r[r.length-1]?c:-1}}});var Yo=B((q8,Wo)=>{"use strict";Wo.exports=Zg;var Ui="\\";function Zg(e,t){return r;function r(n){for(var a=0,u=n.indexOf(Ui),i=e[t],o=[],s;u!==-1;)o.push(n.slice(a,u)),a=u+1,s=n.charAt(a),(!s||i.indexOf(s)===-1)&&o.push(Ui),u=n.indexOf(Ui,a+1);return o.push(n.slice(a)),o.join("")}}});var jo=B((B8,ex)=>{ex.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var $o=B((_8,tx)=>{tx.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var bt=B((P8,Ko)=>{"use strict";Ko.exports=rx;function rx(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}});var Xo=B((O8,Qo)=>{"use strict";Qo.exports=nx;function nx(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}});var Ot=B((N8,Jo)=>{"use strict";Jo.exports=ix;function ix(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}});var es=B((R8,Zo)=>{"use strict";var ax=Ot(),ux=bt();Zo.exports=ox;function ox(e){return ax(e)||ux(e)}});var ts=B((M8,sx)=>{sx.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Line truncated
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRiLine truncated
`);_!==-1;)c++,E=_,_=y.indexOf(`
`,_+1);E===-1?l+=y.length:l=y.length-E,c in u&&(E!==-1?l+=u[c]:l<=u[c]&&(l=u[c]+1))}function F(){var y=[],E=c+1;return function(){for(var _=c+1;E<_;)y.push((u[E]||0)+1),E++;return y}}function w(){var y={line:c,column:l};return y.offset=a.toOffset(y),y}function S(y){this.start=y,this.end=w()}function C(y){r.slice(0,y.length)!==y&&a.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),w())}function g(){var y=w();return E;function E(_,I){var T=_.position,M=T?T.start:y,O=[],z=T&&T.end.line,N=y.line;if(_.position=new S(M),T&&I&&T.indent){if(O=T.indent,z<N){for(;++z<N;)O.push((u[z]||0)+1);O.push(y.column)}I=O.concat(I)}return _.position.indent=I||[],_}}function v(y,E){var _=E?E.children:i,I=_[_.length-1],T;return I&&y.type===I.type&&(y.type==="text"||y.type==="blockquote")&&bs(I)&&bs(y)&&(T=y.type==="text"?Bx:_x,y=T.call(a,I,y)),y!==I&&_.push(y),a.atStart&&i.length!==0&&a.exitStart(),y}function L(y){var E=F(),_=g(),I=w();return C(y),T.reset=M,M.test=O,T.test=O,r=r.slice(y.length),k(y),E=E(),T;function T(z,N){return _(v(_(z),N),E)}function M(){var z=T.apply(null,arguments);return c=I.line,l=I.column,r=y+r,z}function O(){var z=_({});return c=I.line,l=I.column,r=y+r,z.position}}}}function bs(e){var t,r;return e.type!=="text"||!e.position?!0:(t=e.position.start,r=e.position.end,t.line!==r.line||r.column-t.column===e.value.length)}function Bx(e,t){return e.value+=t.value,e}function _x(e,t){return this.options.commonmark||this.options.gfm?t:(e.children=e.children.concat(t.children),e)}});var vs=B((G8,ys)=>{"use strict";ys.exports=on;var Yi=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],ji=Yi.concat(["~","|"]),Cs=ji.concat([`
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);on.default=Yi;on.gfm=ji;on.commonmark=Cs;function on(e){var t=e||{};return t.commonmark?Cs:t.gfm?ji:Yi}});var Ts=B((W8,As)=>{"use strict";As.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var $i=B((Y8,Ss)=>{"use strict";Ss.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Ts()}});var Is=B((j8,Ls)=>{"use strict";var Px=Ft(),Ox=vs(),Nx=$i();Ls.exports=Rx;function Rx(e){var t=this,r=t.options,n,a;if(e==null)e={};else if(typeof e=="object")e=Px(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in Nx){if(a=e[n],a==null&&(a=r[n]),n!=="blocks"&&typeof a!="boolean"||n==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+n+"`");e[n]=a}return t.options=e,t.escape=Ox(e),t}});var _s=B(($8,Bs)=>{"use strict";Bs.exports=qs;function qs(e){if(e==null)return Hx;if(typeof e=="string")return Ux(e);if(typeof e=="object")return"length"in e?zx(e):Mx(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function Mx(e){return t;function t(r){var n;for(n in e)if(r[n]!==e[n])return!1;return!0}}function zx(e){for(var t=[],r=-1;++r<e.length;)t[r]=qs(e[r]);return n;function n(){for(var a=-1;++a<t.length;)if(t[a].apply(this,arguments))return!0;return!1}}function Ux(e){return t;function t(r){return!!(r&&r.type===e)}}function Hx(){return!0}});var Os=B((K8,Ps)=>{Ps.exports=Vx;function Vx(e){return e}});var zs=B((Q8,Ms)=>{"use strict";Ms.exports=sn;var Gx=_s(),Wx=Os(),Ns=!0,Rs="skip",Ki=!1;sn.CONTINUE=Ns;sn.SKIP=Rs;sn.EXIT=Ki;function sn(e,t,r,n){var a,u;typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),u=Gx(t),a=n?-1:1,i(e,null,[])();function i(o,s,c){var l=typeof o=="object"&&o!==null?o:{},f;return typeof l.type=="string"&&(f=typeof l.tagName=="string"?l.tagName:typeof l.name=="string"?l.name:void 0,p.displayName="node ("+Wx(l.type+(f?"<"+f+">":""))+")"),p;function p(){var m=c.concat(o),D=[],x,d;if((!t||u(o,s,c[c.length-1]||null))&&(D=Yx(r(o,c)),D[0]===Ki))return D;if(o.children&&D[0]!==Rs)for(d=(n?o.children.length:-1)+a;d>-1&&d<o.children.length;){if(x=i(o.children[d],d,m)(),x[0]===Ki)return x;d=typeof x[1]=="number"?x[1]:d+a}return D}}}function Yx(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[Ns,e]:[e]}});var Hs=B((X8,Us)=>{"use strict";Us.exports=cn;var ln=zs(),jx=ln.CONTINUE,$x=ln.SKIP,Kx=ln.EXIT;cn.CONTINUE=jx;cn.SKIP=$x;cn.EXIT=Kx;function cn(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),ln(e,t,a,n);function a(u,i){var o=i[i.length-1],s=o?o.children.indexOf(u):null;return r(u,s,o)}}});var Gs=B((J8,Vs)=>{"use strict";var Qx=Hs();Vs.exports=Xx;function Xx(e,t){return Qx(e,t?Jx:Zx),e}function Jx(e){delete e.position}function Zx(e){e.position=void 0}});var js=B((Z8,Ys)=>{"use strict";var Ws=Ft(),e1=Gs();Ys.exports=n1;var t1=`
`,r1=/\r\n|\r/g;function n1(){var e=this,t=String(e.file),r={line:1,column:1,offset:0},n=Ws(r),a;return t=t.replace(r1,t1),t.charCodeAt(0)===65279&&(t=t.slice(1),n.column++,n.offset++),a={type:"root",children:e.tokenizeBlock(t,n),position:{start:r,end:e.eof||Ws(r)}},e.options.position||e1(a,!0),a}});var Ks=B((eT,$s)=>{"use strict";var i1=/^[ \t]*(\n|$)/;$s.exports=a1;function a1(e,t,r){for(var n,a="",u=0,i=t.length;u<i&&(n=i1.exec(t.slice(u)),n!=null);)u+=n[0].length,a+=n[0];if(a!==""){if(r)return!0;e(a)}}});var fn=B((tT,Qs)=>{"use strict";var Ge="",Qi;Qs.exports=u1;function u1(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var r=e.length*t;if(Qi!==e||typeof Qi>"u")Qi=e,Ge="";else if(Ge.length>=r)return Ge.substr(0,r);for(;r>Ge.length&&t>1;)t&1&&(Ge+=e),t>>=1,e+=e;return Ge+=e,Ge=Ge.substr(0,r),Ge}});var Xi=B((rT,Xs)=>{"use strict";Xs.exports=o1;function o1(e){return String(e).replace(/\n+$/,"")}});var el=B((nT,Zs)=>{"use strict";var s1=fn(),l1=Xi();Zs.exports=p1;var Ji=`
`,Js=" ",Zi=" ",c1=4,f1=s1(Zi,c1);function p1(e,t,r){for(var n=-1,a=t.length,u="",i="",o="",s="",c,l,f;++n<a;)if(c=t.charAt(n),f)if(f=!1,u+=o,i+=s,o="",s="",c===Ji)o=c,s=c;else for(u+=c,i+=c;++n<a;){if(c=t.charAt(n),!c||c===Ji){s=c,o=c;break}u+=c,i+=c}else if(c===Zi&&t.charAt(n+1)===c&&t.charAt(n+2)===c&&t.charAt(n+3)===c)o+=f1,n+=3,f=!0;else if(c===Js)o+=c,f=!0;else{for(l="";c===Js||c===Zi;)l+=c,c=t.charAt(++n);if(c!==Ji)break;o+=l+c,s+=c}if(i)return r?!0:e(u)({type:"code",lang:null,meta:null,value:l1(i)})}});var nl=B((iT,rl)=>{"use strict";rl.exports=d1;var pn=`
`,pr=" ",Mt=" ",h1="~",tl="`",m1=3,D1=4;function d1(e,t,r){var n=this,a=n.options.gfm,u=t.length+1,i=0,o="",s,c,l,f,p,m,D,x,d,k,F,w,S;if(a){for(;i<u&&(l=t.charAt(i),!(l!==Mt&&l!==pr));)o+=l,i++;if(w=i,l=t.charAt(i),!(l!==h1&&l!==tl)){for(i++,c=l,s=1,o+=l;i<u&&(l=t.charAt(i),l===c);)o+=l,s++,i++;if(!(s<m1)){for(;i<u&&(l=t.charAt(i),!(l!==Mt&&l!==pr));)o+=l,i++;for(f="",D="";i<u&&(l=t.charAt(i),!(l===pn||c===tl&&l===c));)l===Mt||l===pr?D+=l:(f+=D+l,D=""),i++;if(l=t.charAt(i),!(l&&l!==pn)){if(r)return!0;S=e.now(),S.column+=o.length,S.offset+=o.length,o+=f,f=n.decode.raw(n.unescape(f),S),D&&(o+=D),D="",k="",F="",x="",d="";for(var C=!0;i<u;){if(l=t.charAt(i),x+=k,d+=F,k="",F="",l!==pn){x+=l,F+=l,i++;continue}for(C?(o+=l,C=!1):(k+=l,F+=l),D="",i++;i<u&&(l=t.charAt(i),l===Mt);)D+=l,i++;if(k+=D,F+=D.slice(w),!(D.length>=D1)){for(D="";i<u&&(l=t.charAt(i),l===c);)D+=l,i++;if(k+=D,F+=D,!(D.length<s)){for(D="";i<u&&(l=t.charAt(i),!(l!==Mt&&l!==pr));)k+=l,F+=l,i++;if(!l||l===pn)break}}}for(o+=x+k,i=-1,u=f.length;++i<u;)if(l=f.charAt(i),l===Mt||l===pr)p||(p=f.slice(0,i));else if(p){m=f.slice(i);break}return e(o)({type:"code",lang:p||f||null,meta:m||null,value:d})}}}}}});var Et=B((zt,il)=>{zt=il.exports=g1;function g1(e){return e.trim?e.trim():zt.right(zt.left(e))}zt.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};zt.right=function(e){if(e.trimRight)return e.trimRight();for(var t=/\s/,r=e.length;t.test(e.charAt(--r)););return e.slice(0,r+1)}});var hn=B((aT,al)=>{"use strict";al.exports=x1;function x1(e,t,r,n){for(var a=e.length,u=-1,i,o;++u<a;)if(i=e[u],o=i[1]||{},!(o.pedantic!==void 0&&o.pedantic!==r.options.pedantic)&&!(o.commonmark!==void 0&&o.commonmark!==r.options.commonmark)&&t[i[0]].apply(r,n))return!0;return!1}});var ll=B((uT,sl)=>{"use strict";var k1=Et(),F1=hn();sl.exports=b1;var ea=`
`,ul=" ",ta=" ",ol=">";function b1(e,t,r){for(var n=this,a=n.offset,u=n.blockTokenizers,i=n.interruptBlockquote,o=e.now(),s=o.line,c=t.length,l=[],f=[],p=[],m,D=0,x,d,k,F,w,S,C,g;D<c&&(x=t.charAt(D),!(x!==ta&&x!==ul));)D++;if(t.charAt(D)===ol){if(r)return!0;for(D=0;D<c;){for(k=t.indexOf(ea,D),S=D,C=!1,k===-1&&(k=c);D<c&&(x=t.charAt(D),!(x!==ta&&x!==ul));)D++;if(t.charAt(D)===ol?(D++,C=!0,t.charAt(D)===ta&&D++):D=S,F=t.slice(D,k),!C&&!k1(F)){D=S;break}if(!C&&(d=t.slice(D),F1(i,u,n,[e,d,!0])))break;w=S===D?F:t.slice(S,k),p.push(D-S),l.push(w),f.push(F),D=k+1}for(D=-1,c=p.length,m=e(l.join(ea));++D<c;)a[s]=(a[s]||0)+p[D],s++;return g=n.enterBlock(),f=n.tokenizeBlock(f.join(ea),o),g(),m({type:"blockquote",children:f})}}});var pl=B((oT,fl)=>{"use strict";fl.exports=w1;var cl=`
`,hr=" ",mr=" ",Dr="#",E1=6;function w1(e,t,r){for(var n=this,a=n.options.pedantic,u=t.length+1,i=-1,o=e.now(),s="",c="",l,f,p;++i<u;){if(l=t.charAt(i),l!==mr&&l!==hr){i--;break}s+=l}for(p=0;++i<=u;){if(l=t.charAt(i),l!==Dr){i--;break}s+=l,p++}if(!(p>E1)&&!(!p||!a&&t.charAt(i+1)===Dr)){for(u=t.length+1,f="";++i<u;){if(l=t.charAt(i),l!==mr&&l!==hr){i--;break}f+=l}if(!(!a&&f.length===0&&l&&l!==cl)){if(r)return!0;for(s+=f,f="",c="";++i<u&&(l=t.charAt(i),!(!l||l===cl));){if(l!==mr&&l!==hr&&l!==Dr){c+=f+l,f="";continue}for(;l===mr||l===hr;)f+=l,l=t.charAt(++i);if(!a&&c&&!f&&l===Dr){c+=l;continue}for(;l===Dr;)f+=l,l=t.charAt(++i);for(;l===mr||l===hr;)f+=l,l=t.charAt(++i);i--}return o.column+=s.length,o.offset+=s.length,s+=c+f,e(s)({type:"heading",depth:p,children:n.tokenizeInline(c,o)})}}}});var Dl=B((sT,ml)=>{"use strict";ml.exports=L1;var C1=" ",y1=`
`,hl=" ",v1="*",A1="-",T1="_",S1=3;function L1(e,t,r){for(var n=-1,a=t.length+1,u="",i,o,s,c;++n<a&&(i=t.charAt(n),!(i!==C1&&i!==hl));)u+=i;if(!(i!==v1&&i!==A1&&i!==T1))for(o=i,u+=i,s=1,c="";++n<a;)if(i=t.charAt(n),i===o)s++,u+=c+o,c="";else if(i===hl)c+=i;else return s>=S1&&(!i||i===y1)?(u+=c,r?!0:e(u)({type:"thematicBreak"})):void 0}});var ra=B((lT,gl)=>{"use strict";gl.exports=_1;var dl=" ",I1=" ",q1=1,B1=4;function _1(e){for(var t=0,r=0,n=e.charAt(t),a={},u,i=0;n===dl||n===I1;){for(u=n===dl?B1:q1,r+=u,u>1&&(r=Math.floor(r/u)*u);i<r;)a[++i]=t;n=e.charAt(++t)}return{indent:r,stops:a}}});var Fl=B((cT,kl)=>{"use strict";var P1=Et(),O1=fn(),N1=ra();kl.exports=z1;var xl=`
`,R1=" ",M1="!";function z1(e,t){var r=e.split(xl),n=r.length+1,a=1/0,u=[],i,o,s;for(r.unshift(O1(R1,t)+M1);n--;)if(o=N1(r[n]),u[n]=o.stops,P1(r[n]).length!==0)if(o.indent)o.indent>0&&o.indent<a&&(a=o.indent);else{a=1/0;break}if(a!==1/0)for(n=r.length;n--;){for(s=u[n],i=a;i&&!(i in s);)i--;r[n]=r[n].slice(s[i]+1)}return r.shift(),r.join(xl)}});var vl=B((fT,yl)=>{"use strict";var U1=Et(),H1=fn(),bl=bt(),V1=ra(),G1=Fl(),W1=hn();yl.exports=Z1;var na="*",Y1="_",El="+",ia="-",wl=".",We=" ",_e=`
`,mn=" ",Cl=")",j1="x",ut=4,$1=/\n\n(?!\s*$)/,K1=/^\[([ X\tx])][ \t]/,Q1=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,X1=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,J1=/^( {1,4}|\t)?/gm;function Z1(e,t,r){for(var n=this,a=n.options.commonmark,u=n.options.pedantic,i=n.blockTokenizers,o=n.interruptList,s=0,c=t.length,l=null,f,p,m,D,x,d,k,F,w,S,C,g,v,L,y,E,_,I,T,M=!1,O,z,N,W;s<c&&(D=t.charAt(s),!(D!==mn&&D!==We));)s++;if(D=t.charAt(s),D===na||D===El||D===ia)x=D,m=!1;else{for(m=!0,p="";s<c&&(D=t.charAt(s),!!bl(D));)p+=D,s++;if(D=t.charAt(s),!p||!(D===wl||a&&D===Cl)||r&&p!=="1")return;l=parseInt(p,10),x=D}if(D=t.charAt(++s),!(D!==We&&D!==mn&&(u||D!==_e&&D!==""))){if(r)return!0;for(s=0,L=[],y=[],E=[];s<c;){for(d=t.indexOf(_e,s),k=s,F=!1,W=!1,d===-1&&(d=c),f=0;s<c;){if(D=t.charAt(s),D===mn)f+=ut-f%ut;else if(D===We)f++;else break;s++}if(_&&f>=_.indent&&(W=!0),D=t.charAt(s),w=null,!W){if(D===na||D===El||D===ia)w=D,s++,f++;else{for(p="";s<c&&(D=t.charAt(s),!!bl(D));)p+=D,s++;D=t.charAt(s),s++,p&&(D===wl||a&&D===Cl)&&(w=D,f+=p.length+1)}if(w)if(D=t.charAt(s),D===mn)f+=ut-f%ut,s++;else if(D===We){for(N=s+ut;s<N&&t.charAt(s)===We;)s++,f++;s===N&&t.charAt(s)===We&&(s-=ut-1,f-=ut-1)}else D!==_e&&D!==""&&(w=null)}if(w){if(!u&&x!==w)break;F=!0}else!a&&!W&&t.charAt(k)===We?W=!0:a&&_&&(W=f>=_.indent||f>ut),F=!1,s=k;if(C=t.slice(k,d),S=k===s?C:t.slice(s,d),(w===na||w===Y1||w===ia)&&i.thematicBreak.call(n,e,C,!0))break;if(g=v,v=!F&&!U1(S).length,W&&_)_.value=_.value.concat(E,C),y=y.concat(E,C),E=[];else if(F)E.length!==0&&(M=!0,_.value.push(""),_.trail=E.concat()),_={value:[C],indent:f,trail:[]},L.push(_),y=y.concat(E,C),E=[];else if(v){if(g&&!a)break;E.push(C)}else{if(g||W1(o,i,n,[e,C,!0]))break;_.value=_.value.concat(E,C),y=y.concat(E,C),E=[]}s=d+1}for(O=e(y.join(_e)).reset({type:"list",ordered:m,start:l,spread:M,children:[]}),I=n.enterList(),T=n.enterBlock(),s=-1,c=L.length;++s<c;)_=L[s].value.join(_e),z=e.now(),e(_)(ek(n,_,z),O),_=L[s].trail.join(_e),s!==c-1&&(_+=_e),e(_);return I(),T(),O}}function ek(e,t,r){var n=e.offset,a=e.options.pedantic?tk:rk,u=null,i,o;return t=a.apply(null,arguments),e.options.gfm&&(i=t.match(K1),i&&(o=i[0].length,u=i[1].toLowerCase()===j1,n[r.line]+=o,t=t.slice(o))),{type:"listItem",spread:$1.test(t),checked:u,children:e.tokenizeBlock(t,r)}}function tk(e,t,r){var n=e.offset,a=r.line;return t=t.replace(X1,u),a=r.line,t.replace(J1,u);function u(i){return n[a]=(n[a]||0)+i.length,a++,""}}function rk(e,t,r){var n=e.offset,a=r.line,u,i,o,s,c,l,f;for(t=t.replace(Q1,p),s=t.split(_e),c=G1(t,V1(u).indent).split(_e),c[0]=o,n[a]=(n[a]||0)+i.length,a++,l=0,f=s.length;++l<f;)n[a]=(n[a]||0)+s[l].length-c[l].length,a++;return c.join(_e);function p(m,D,x,d,k){return i=D+x+d,o=k,Number(x)<10&&i.length%2===1&&(x=We+x),u=D+H1(We,x.length)+d,u+o}}});var Ll=B((pT,Sl)=>{"use strict";Sl.exports=sk;var aa=`
`,nk=" ",Al=" ",Tl="=",ik="-",ak=3,uk=1,ok=2;function sk(e,t,r){for(var n=this,a=e.now(),u=t.length,i=-1,o="",s,c,l,f,p;++i<u;){if(l=t.charAt(i),l!==Al||i>=ak){i--;break}o+=l}for(s="",c="";++i<u;){if(l=t.charAt(i),l===aa){i--;break}l===Al||l===nk?c+=l:(s+=c+l,c="")}if(a.column+=o.length,a.offset+=o.length,o+=s+c,l=t.charAt(++i),f=t.charAt(++i),!(l!==aa||f!==Tl&&f!==ik)){for(o+=l,c=f,p=f===Tl?uk:ok;++i<u;){if(l=t.charAt(i),l!==f){if(l!==aa)return;i--;break}c+=l}return r?!0:e(o+c)({type:"heading",depth:p,children:n.tokenizeInline(s,a)})}}});var oa=B(ua=>{"use strict";var lk="[a-zA-Z_:][a-zA-Z0-9:._-]*",ck="[^\"'=<>`\\u0000-\\u0020]+",fk="'[^']*'",pk='"[^"]*"',hk="(?:"+ck+"|"+fk+"|"+pk+")",mk="(?:\\s+"+lk+"(?:\\s*=\\s*"+hk+")?)",Il="<[A-Za-z][A-Za-z0-9\\-]*"+mk+"*\\s*\\/?>",ql="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Dk="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",dk="<[?].*?[?]>",gk="<![A-Za-z]+\\s+[^>]*>",xk="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";ua.openCloseTag=new RegExp("^(?:"+Il+"|"+ql+")");ua.tag=new RegExp("^(?:"+Il+"|"+ql+"|"+Dk+"|"+dk+"|"+gk+"|"+xk+")")});var Ol=B((mT,Pl)=>{"use strict";var kk=oa().openCloseTag;Pl.exports=_k;var Fk=" ",bk=" ",Bl=`
`,Ek="<",wk=/^<(script|pre|style)(?=(\s|>|$))/i,Ck=/<\/(script|pre|style)>/i,yk=/^<!--/,vk=/-->/,Ak=/^<\?/,Tk=/\?>/,Sk=/^<![A-Za-z]/,Lk=/>/,Ik=/^<!\[CDATA\[/,qk=/]]>/,_l=/^$/,Bk=new RegExp(kk.source+"\\s*$");function _k(e,t,r){for(var n=this,a=n.options.blocks.join("|"),u=new RegExp("^</?("+a+")(?=(\\s|/?>|$))","i"),i=t.length,o=0,s,c,l,f,p,m,D,x=[[wk,Ck,!0],[yk,vk,!0],[Ak,Tk,!0],[Sk,Lk,!0],[Ik,qk,!0],[u,_l,!0],[Bk,_l,!1]];o<i&&(f=t.charAt(o),!(f!==Fk&&f!==bk));)o++;if(t.charAt(o)===Ek){for(s=t.indexOf(Bl,o+1),s=s===-1?i:s,c=t.slice(o,s),l=-1,p=x.length;++l<p;)if(x[l][0].test(c)){m=x[l];break}if(m){if(r)return m[2];if(o=s,!m[1].test(c))for(;o<i;){if(s=t.indexOf(Bl,o+1),s=s===-1?i:s,c=t.slice(o+1,s),m[1].test(c)){c&&(o=s);break}o=s}return D=t.slice(0,o),e(D)({type:"html",value:D})}}}});var Pe=B((DT,Nl)=>{"use strict";Nl.exports=Nk;var Pk=String.fromCharCode,Ok=/\s/;function Nk(e){return Ok.test(typeof e=="number"?Pk(e):e.charAt(0))}});var Dn=B((dT,Rl)=>{"use strict";Rl.exports=Rk;function Rk(e){return String(e).replace(/\s+/g," ")}});var sa=B((gT,Ml)=>{"use strict";var Mk=Dn();Ml.exports=zk;function zk(e){return Mk(e).toLowerCase()}});var Yl=B((xT,Wl)=>{"use strict";var Uk=Pe(),Hk=sa();Wl.exports=Yk;var zl='"',Ul="'",Vk="\\",Ut=`
`,dn=" ",gn=" ",ca="[",dr="]",Gk="(",Wk=")",Hl=":",Vl="<",Gl=">";function Yk(e,t,r){for(var n=this,a=n.options.commonmark,u=0,i=t.length,o="",s,c,l,f,p,m,D,x;u<i&&(f=t.charAt(u),!(f!==gn&&f!==dn));)o+=f,u++;if(f=t.charAt(u),f===ca){for(u++,o+=f,l="";u<i&&(f=t.charAt(u),f!==dr);)f===Vk&&(l+=f,u++,f=t.charAt(u)),l+=f,u++;if(!(!l||t.charAt(u)!==dr||t.charAt(u+1)!==Hl)){for(m=l,o+=l+dr+Hl,u=o.length,l="";u<i&&(f=t.charAt(u),!(f!==dn&&f!==gn&&f!==Ut));)o+=f,u++;if(f=t.charAt(u),l="",s=o,f===Vl){for(u++;u<i&&(f=t.charAt(u),!!la(f));)l+=f,u++;if(f=t.charAt(u),f===la.delimiter)o+=Vl+l+f,u++;else{if(a)return;u-=l.length+1,l=""}}if(!l){for(;u<i&&(f=t.charAt(u),!!jk(f));)l+=f,u++;o+=l}if(l){for(D=l,l="";u<i&&(f=t.charAt(u),!(f!==dn&&f!==gn&&f!==Ut));)l+=f,u++;if(f=t.charAt(u),p=null,f===zl?p=zl:f===Ul?p=Ul:f===Gk&&(p=Wk),!p)l="",u=o.length;else if(l){for(o+=l+f,u=o.length,l="";u<i&&(f=t.charAt(u),f!==p);){if(f===Ut){if(u++,f=t.charAt(u),f===Ut||f===p)return;l+=Ut}l+=f,u++}if(f=t.charAt(u),f!==p)return;c=o,o+=l+f,u++,x=l,l=""}else return;for(;u<i&&(f=t.charAt(u),!(f!==dn&&f!==gn));)o+=f,u++;if(f=t.charAt(u),!f||f===Ut)return r?!0:(s=e(s).test().end,D=n.decode.raw(n.unescape(D),s,{nonTerminated:!1}),x&&(c=e(c).test().end,x=n.decode.raw(n.unescape(x),c)),e(o)({type:"definition",identifier:Hk(m),label:m,title:x||null,url:D}))}}}}function la(e){return e!==Gl&&e!==ca&&e!==dr}la.delimiter=Gl;function jk(e){return e!==ca&&e!==dr&&!Uk(e)}});var Kl=B((kT,$l)=>{"use strict";var $k=Pe();$l.exports=i0;var Kk=" ",xn=`
`,Qk=" ",Xk="-",Jk=":",Zk="\\",fa="|",e0=1,t0=2,jl="left",r0="center",n0="right";function i0(e,t,r){var n=this,a,u,i,o,s,c,l,f,p,m,D,x,d,k,F,w,S,C,g,v,L,y;if(n.options.gfm){for(a=0,w=0,c=t.length+1,l=[];a<c;){if(v=t.indexOf(xn,a),L=t.indexOf(fa,a+1),v===-1&&(v=t.length),L===-1||L>v){if(w<t0)return;break}l.push(t.slice(a,v)),w++,a=v+1}for(o=l.join(xn),u=l.splice(1,1)[0]||[],a=0,c=u.length,w--,i=!1,D=[];a<c;){if(p=u.charAt(a),p===fa){if(m=null,i===!1){if(y===!1)return}else D.push(i),i=!1;y=!1}else if(p===Xk)m=!0,i=i||null;else if(p===Jk)i===jl?i=r0:m&&i===null?i=n0:i=jl;else if(!$k(p))return;a++}if(i!==!1&&D.push(i),!(D.length<e0)){if(r)return!0;for(F=-1,C=[],g=e(o).reset({type:"table",align:D,children:C});++F<w;){for(S=l[F],s={type:"tableRow",children:[]},F&&e(xn),e(S).reset(s,g),c=S.length+1,a=0,f="",x="",d=!0;a<c;){if(p=S.charAt(a),p===Kk||p===Qk){x?f+=p:e(p),a++;continue}p===""||p===fa?d?e(p):((x||p)&&!d&&(o=x,f.length>1&&(p?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),k=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(x,k)},s)),e(f+p),f="",x=""):(f&&(x+=f,f=""),x+=p,p===Zk&&a!==c-2&&(x+=S.charAt(a+1),a++)),d=!1,a++}F||e(xn+u)}return g}}}});var Jl=B((FT,Xl)=>{"use strict";var a0=Et(),u0=Xi(),o0=hn();Xl.exports=c0;var s0=" ",gr=`
`,l0=" ",Ql=4;function c0(e,t,r){for(var n=this,a=n.options,u=a.commonmark,i=n.blockTokenizers,o=n.interruptParagraph,s=t.indexOf(gr),c=t.length,l,f,p,m,D;s<c;){if(s===-1){s=c;break}if(t.charAt(s+1)===gr)break;if(u){for(m=0,l=s+1;l<c;){if(p=t.charAt(l),p===s0){m=Ql;break}else if(p===l0)m++;else break;l++}if(m>=Ql&&p!==gr){s=t.indexOf(gr,s+1);continue}}if(f=t.slice(s+1),o0(o,i,n,[e,f,!0]))break;if(l=s,s=t.indexOf(gr,s+1),s!==-1&&a0(t.slice(l,s))===""){s=l;break}}return f=t.slice(0,s),r?!0:(D=e.now(),f=u0(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,D)}))}});var ec=B((bT,Zl)=>{"use strict";Zl.exports=f0;function f0(e,t){return e.indexOf("\\",t)}});var ic=B((ET,nc)=>{"use strict";var p0=ec();nc.exports=rc;rc.locator=p0;var h0=`
`,tc="\\";function rc(e,t,r){var n=this,a,u;if(t.charAt(0)===tc&&(a=t.charAt(1),n.escape.indexOf(a)!==-1))return r?!0:(a===h0?u={type:"break"}:u={type:"text",value:a},e(tc+a)(u))}});var pa=B((wT,ac)=>{"use strict";ac.exports=m0;function m0(e,t){return e.indexOf("<",t)}});var cc=B((CT,lc)=>{"use strict";var uc=Pe(),D0=fr(),d0=pa();lc.exports=da;da.locator=d0;da.notInLink=!0;var oc="<",ha=">",sc="@",ma="/",Da="mailto:",kn=Da.length;function da(e,t,r){var n=this,a="",u=t.length,i=0,o="",s=!1,c="",l,f,p,m,D;if(t.charAt(0)===oc){for(i++,a=oc;i<u&&(l=t.charAt(i),!(uc(l)||l===ha||l===sc||l===":"&&t.charAt(i+1)===ma));)o+=l,i++;if(o){if(c+=o,o="",l=t.charAt(i),c+=l,i++,l===sc)s=!0;else{if(l!==":"||t.charAt(i+1)!==ma)return;c+=ma,i++}for(;i<u&&(l=t.charAt(i),!(uc(l)||l===ha));)o+=l,i++;if(l=t.charAt(i),!(!o||l!==ha))return r?!0:(c+=o,p=c,a+=c+l,f=e.now(),f.column++,f.offset++,s&&(c.slice(0,kn).toLowerCase()===Da?(p=p.slice(kn),f.column+=kn,f.offset+=kn):c=Da+c),m=n.inlineTokenizers,n.inlineTokenizers={text:m.text},D=n.enterLink(),p=n.tokenizeInline(p,f),n.inlineTokenizers=m,D(),e(a)({type:"link",title:null,url:D0(c,{nonTerminated:!1}),children:p}))}}}});var pc=B((yT,fc)=>{"use strict";fc.exports=g0;function g0(e,t){var r=String(e),n=0,a;if(typeof t!="string")throw new Error("Expected character");for(a=r.indexOf(t);a!==-1;)n++,a=r.indexOf(t,a+t.length);return n}});var Dc=B((vT,mc)=>{"use strict";mc.exports=x0;var hc=["www.","http://","https://"];function x0(e,t){var r=-1,n,a,u;if(!this.options.gfm)return r;for(a=hc.length,n=-1;++n<a;)u=e.indexOf(hc[n],t),u!==-1&&(r===-1||u<r)&&(r=u);return r}});var Fc=B((AT,kc)=>{"use strict";var dc=pc(),k0=fr(),F0=bt(),ga=Ot(),b0=Pe(),E0=Dc();kc.exports=ka;ka.locator=E0;ka.notInLink=!0;var w0=33,C0=38,y0=41,v0=42,A0=44,T0=45,xa=46,S0=58,L0=59,I0=63,q0=60,gc=95,B0=126,_0="(",xc=")";function ka(e,t,r){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=t.length,o=-1,s=!1,c,l,f,p,m,D,x,d,k,F,w,S,C,g;if(a){if(t.slice(0,4)==="www.")s=!0,p=4;else if(t.slice(0,7).toLowerCase()==="http://")p=7;else if(t.slice(0,8).toLowerCase()==="https://")p=8;else return;for(o=p-1,f=p,c=[];p<i;){if(x=t.charCodeAt(p),x===xa){if(o===p-1)break;c.push(p),o=p,p++;continue}if(F0(x)||ga(x)||x===T0||x===gc){p++;continue}break}if(x===xa&&(c.pop(),p--),c[0]!==void 0&&(l=c.length<2?f:c[c.length-2]+1,t.slice(l,p).indexOf("_")===-1)){if(r)return!0;for(d=p,m=p;p<i&&(x=t.charCodeAt(p),!(b0(x)||x===q0));)p++,x===w0||x===v0||x===A0||x===xa||x===S0||x===I0||x===gc||x===B0||(d=p);if(p=d,t.charCodeAt(p-1)===y0)for(D=t.slice(m,p),k=dc(D,_0),F=dc(D,xc);F>k;)p=m+D.lastIndexOf(xc),D=t.slice(m,p),F--;if(t.charCodeAt(p-1)===L0&&(p--,ga(t.charCodeAt(p-1)))){for(d=p-2;ga(t.charCodeAt(d));)d--;t.charCodeAt(d)===C0&&(p=d)}return w=t.slice(0,p),C=k0(w,{nonTerminated:!1}),s&&(C="http://"+C),g=n.enterLink(),n.inlineTokenizers={text:u.text},S=n.tokenizeInline(w,e.now()),n.inlineTokenizers=u,g(),e(w)({type:"link",title:null,url:C,children:S})}}}});var Cc=B((TT,wc)=>{"use strict";var P0=bt(),O0=Ot(),N0=43,R0=45,M0=46,z0=95;wc.exports=Ec;function Ec(e,t){var r=this,n,a;if(!this.options.gfm||(n=e.indexOf("@",t),n===-1))return-1;if(a=n,a===t||!bc(e.charCodeAt(a-1)))return Ec.call(r,e,n+1);for(;a>t&&bc(e.charCodeAt(a-1));)a--;return a}function bc(e){return P0(e)||O0(e)||e===N0||e===R0||e===M0||e===z0}});var Tc=B((ST,Ac)=>{"use strict";var U0=fr(),yc=bt(),vc=Ot(),H0=Cc();Ac.exports=Ea;Ea.locator=H0;Ea.notInLink=!0;var V0=43,Fa=45,Fn=46,G0=64,ba=95;function Ea(e,t,r){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=0,o=t.length,s=-1,c,l,f,p;if(a){for(c=t.charCodeAt(i);yc(c)||vc(c)||c===V0||c===Fa||c===Fn||c===ba;)c=t.charCodeAt(++i);if(i!==0&&c===G0){for(i++;i<o;){if(c=t.charCodeAt(i),yc(c)||vc(c)||c===Fa||c===Fn||c===ba){i++,s===-1&&c===Fn&&(s=i);continue}break}if(!(s===-1||s===i||c===Fa||c===ba))return c===Fn&&i--,l=t.slice(0,i),r?!0:(p=n.enterLink(),n.inlineTokenizers={text:u.text},f=n.tokenizeInline(l,e.now()),n.inlineTokenizers=u,p(),e(l)({type:"link",title:null,url:"mailto:"+U0(l,{nonTerminated:!1}),children:f}))}}}});var Ic=B((LT,Lc)=>{"use strict";var W0=Ot(),Y0=pa(),j0=oa().tag;Lc.exports=Sc;Sc.locator=Y0;var $0="<",K0="?",Q0="!",X0="/",J0=/^<a /i,Z0=/^<\/a>/i;function Sc(e,t,r){var n=this,a=t.length,u,i;if(!(t.charAt(0)!==$0||a<3)&&(u=t.charAt(1),!(!W0(u)&&u!==K0&&u!==Q0&&u!==X0)&&(i=t.match(j0),!!i)))return r?!0:(i=i[0],!n.inLink&&J0.test(i)?n.inLink=!0:n.inLink&&Z0.test(i)&&(n.inLink=!1),e(i)({type:"html",value:i}))}});var wa=B((IT,qc)=>{"use strict";qc.exports=eF;function eF(e,t){var r=e.indexOf("[",t),n=e.indexOf("![",t);return n===-1||r<n?r:n}});var Mc=B((qT,Rc)=>{"use strict";var xr=Pe(),tF=wa();Rc.exports=Nc;Nc.locator=tF;var rF=`
`,nF="!",Bc='"',_c="'",Ht="(",kr=")",Ca="<",ya=">",Pc="[",Fr="\\",iF="]",Oc="`";function Nc(e,t,r){var n=this,a="",u=0,i=t.charAt(0),o=n.options.pedantic,s=n.options.commonmark,c=n.options.gfm,l,f,p,m,D,x,d,k,F,w,S,C,g,v,L,y,E,_;if(i===nF&&(k=!0,a=i,i=t.charAt(++u)),i===Pc&&!(!k&&n.inLink)){for(a+=i,v="",u++,S=t.length,y=e.now(),g=0,y.column+=u,y.offset+=u;u<S;){if(i=t.charAt(u),x=i,i===Oc){for(f=1;t.charAt(u+1)===Oc;)x+=i,u++,f++;p?f>=p&&(p=0):p=f}else if(i===Fr)u++,x+=t.charAt(u);else if((!p||c)&&i===Pc)g++;else if((!p||c)&&i===iF)if(g)g--;else{if(t.charAt(u+1)!==Ht)return;x+=Ht,l=!0,u++;break}v+=x,x="",u++}if(l){for(F=v,a+=v+x,u++;u<S&&(i=t.charAt(u),!!xr(i));)a+=i,u++;if(i=t.charAt(u),v="",m=a,i===Ca){for(u++,m+=Ca;u<S&&(i=t.charAt(u),i!==ya);){if(s&&i===rF)return;v+=i,u++}if(t.charAt(u)!==ya)return;a+=Ca+v+ya,L=v,u++}else{for(i=null,x="";u<S&&(i=t.charAt(u),!(x&&(i===Bc||i===_c||s&&i===Ht)));){if(xr(i)){if(!o)break;x+=i}else{if(i===Ht)g++;else if(i===kr){if(g===0)break;g--}v+=x,x="",i===Fr&&(v+=Fr,i=t.charAt(++u)),v+=i}u++}a+=v,L=v,u=a.length}for(v="";u<S&&(i=t.charAt(u),!!xr(i));)v+=i,u++;if(i=t.charAt(u),a+=v,v&&(i===Bc||i===_c||s&&i===Ht))if(u++,a+=i,v="",w=i===Ht?kr:i,D=a,s){for(;u<S&&(i=t.charAt(u),i!==w);)i===Fr&&(v+=Fr,i=t.charAt(++u)),u++,v+=i;if(i=t.charAt(u),i!==w)return;for(C=v,a+=v+i,u++;u<S&&(i=t.charAt(u),!!xr(i));)a+=i,u++}else for(x="";u<S;){if(i=t.charAt(u),i===w)d&&(v+=w+x,x=""),d=!0;else if(!d)v+=i;else if(i===kr){a+=v+w+x,C=v;break}else xr(i)?x+=i:(v+=w+x+i,x="",d=!1);u++}if(t.charAt(u)===kr)return r?!0:(a+=kr,L=n.decode.raw(n.unescape(L),e(m).test().end,{nonTerminated:!1}),C&&(D=e(D).test().end,C=n.decode.raw(n.unescape(C),D)),_={type:k?"image":"link",title:C||null,url:L},k?_.alt=n.decode.raw(n.unescape(F),y)||null:(E=n.enterLink(),_.children=n.tokenizeInline(F,y),E()),e(a)(_))}}}});var Hc=B((BT,Uc)=>{"use strict";var aF=Pe(),uF=wa(),oF=sa();Uc.exports=zc;zc.locator=uF;var va="link",sF="image",lF="shortcut",cF="collapsed",Aa="full",fF="!",bn="[",En="\\",wn="]";function zc(e,t,r){var n=this,a=n.options.commonmark,u=t.charAt(0),i=0,o=t.length,s="",c="",l=va,f=lF,p,m,D,x,d,k,F,w;if(u===fF&&(l=sF,c=u,u=t.charAt(++i)),u===bn){for(i++,c+=u,k="",w=0;i<o;){if(u=t.charAt(i),u===bn)F=!0,w++;else if(u===wn){if(!w)break;w--}u===En&&(k+=En,u=t.charAt(++i)),k+=u,i++}if(s=k,p=k,u=t.charAt(i),u===wn){if(i++,s+=u,k="",!a)for(;i<o&&(u=t.charAt(i),!!aF(u));)k+=u,i++;if(u=t.charAt(i),u===bn){for(m="",k+=u,i++;i<o&&(u=t.charAt(i),!(u===bn||u===wn));)u===En&&(m+=En,u=t.charAt(++i)),m+=u,i++;u=t.charAt(i),u===wn?(f=m?Aa:cF,k+=m+u,i++):m="",s+=k,k=""}else{if(!p)return;m=p}if(!(f!==Aa&&F))return s=c+s,l===va&&n.inLink?null:r?!0:(D=e.now(),D.column+=c.length,D.offset+=c.length,m=f===Aa?m:p,x={type:l+"Reference",identifier:oF(m),label:m,referenceType:f},l===va?(d=n.enterLink(),x.children=n.tokenizeInline(p,D),d()):x.alt=n.decode.raw(n.unescape(p),D)||null,e(s)(x))}}}});var Gc=B((_T,Vc)=>{"use strict";Vc.exports=pF;function pF(e,t){var r=e.indexOf("**",t),n=e.indexOf("__",t);return n===-1?r:r===-1||n<r?n:r}});var $c=B((PT,jc)=>{"use strict";var hF=Et(),Wc=Pe(),mF=Gc();jc.exports=Yc;Yc.locator=mF;var DF="\\",dF="*",gF="_";function Yc(e,t,r){var n=this,a=0,u=t.charAt(a),i,o,s,c,l,f,p;if(!(u!==dF&&u!==gF||t.charAt(++a)!==u)&&(o=n.options.pedantic,s=u,l=s+s,f=t.length,a++,c="",u="",!(o&&Wc(t.charAt(a)))))for(;a<f;){if(p=u,u=t.charAt(a),u===s&&t.charAt(a+1)===s&&(!o||!Wc(p))&&(u=t.charAt(a+2),u!==s))return hF(c)?r?!0:(i=e.now(),i.column+=2,i.offset+=2,e(l+c+l)({type:"strong",children:n.tokenizeInline(c,i)})):void 0;!o&&u===DF&&(c+=u,u=t.charAt(++a)),c+=u,a++}}});var Qc=B((OT,Kc)=>{"use strict";Kc.exports=FF;var xF=String.fromCharCode,kF=/\w/;function FF(e){return kF.test(typeof e=="number"?xF(e):e.charAt(0))}});var Jc=B((NT,Xc)=>{"use strict";Xc.exports=bF;function bF(e,t){var r=e.indexOf("*",t),n=e.indexOf("_",t);return n===-1?r:r===-1||n<r?n:r}});var nf=B((RT,rf)=>{"use strict";var EF=Et(),wF=Qc(),Zc=Pe(),CF=Jc();rf.exports=tf;tf.locator=CF;var yF="*",ef="_",vF="\\";function tf(e,t,r){var n=this,a=0,u=t.charAt(a),i,o,s,c,l,f,p;if(!(u!==yF&&u!==ef)&&(o=n.options.pedantic,l=u,s=u,f=t.length,a++,c="",u="",!(o&&Zc(t.charAt(a)))))for(;a<f;){if(p=u,u=t.charAt(a),u===s&&(!o||!Zc(p))){if(u=t.charAt(++a),u!==s){if(!EF(c)||p===s)return;if(!o&&s===ef&&wF(u)){c+=s;continue}return r?!0:(i=e.now(),i.column++,i.offset++,e(l+c+s)({type:"emphasis",children:n.tokenizeInline(c,i)}))}c+=s}!o&&u===vF&&(c+=u,u=t.charAt(++a)),c+=u,a++}}});var uf=B((MT,af)=>{"use strict";af.exports=AF;function AF(e,t){return e.indexOf("~~",t)}});var ff=B((zT,cf)=>{"use strict";var of=Pe(),TF=uf();cf.exports=lf;lf.locator=TF;var Cn="~",sf="~~";function lf(e,t,r){var n=this,a="",u="",i="",o="",s,c,l;if(!(!n.options.gfm||t.charAt(0)!==Cn||t.charAt(1)!==Cn||of(t.charAt(2))))for(s=1,c=t.length,l=e.now(),l.column+=2,l.offset+=2;++s<c;){if(a=t.charAt(s),a===Cn&&u===Cn&&(!i||!of(i)))return r?!0:e(sf+o+sf)({type:"delete",children:n.tokenizeInline(o,l)});o+=u,iLine truncated
`,t);r>t&&e.charAt(r-1)===" ";)r--;return r}});var bf=B((GT,Ff)=>{"use strict";var qF=xf();Ff.exports=kf;kf.locator=qF;var BF=" ",_F=`
`,PF=2;function kf(e,t,r){for(var n=t.length,a=-1,u="",i;++a<n;){if(i=t.charAt(a),i===_F)return a<PF?void 0:r?!0:(u+=i,e(u)({type:"break"}));if(i!==BF)return;u+=i}}});var wf=B((WT,Ef)=>{"use strict";Ef.exports=OF;function OF(e,t,r){var n=this,a,u,i,o,s,c,l,f,p,m;if(r)return!0;for(a=n.inlineMethods,o=a.length,u=n.inlineTokenizers,i=-1,p=t.length;++i<o;)f=a[i],!(f==="text"||!u[f])&&(l=u[f].locator,l||e.file.fail("Missing locator: `"+f+"`"),c=l.call(n,t,1),c!==-1&&c<p&&(p=c));s=t.slice(0,p),m=e.now(),n.decode(s,m,D);function D(x,d,k){e(k||x)({type:"text",value:x})}}});var Af=B((YT,vf)=>{"use strict";var NF=Ft(),yn=Ho(),RF=Go(),MF=Yo(),zF=Fs(),Ia=ws();vf.exports=Cf;function Cf(e,t){this.file=t,this.offset={},this.options=NF(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=RF(t).toOffset,this.unescape=MF(this,"escape"),this.decode=zF(this)}var oe=Cf.prototype;oe.setOptions=Is();oe.parse=js();oe.options=$i();oe.exitStart=yn("atStart",!0);oe.enterList=yn("inList",!1);oe.enterLink=yn("inLink",!1);oe.enterBlock=yn("inBlock",!1);oe.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];oe.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];oe.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];oe.blockTokenizers={blankLine:Ks(),indentedCode:el(),fencedCode:nl(),blockquote:ll(),atxHeading:pl(),thematicBreak:Dl(),list:vl(),setextHeading:Ll(),html:Ol(),definition:Yl(),table:Kl(),paragraph:Jl()};oe.inlineTokenizers={escape:ic(),autoLink:cc(),url:Fc(),email:Tc(),html:Ic(),link:Mc(),reference:Hc(),strong:$c(),emphasis:nf(),deletion:ff(),code:df(),break:bf(),text:wf()};oe.blockMethods=yf(oe.blockTokenizers);oe.inlineMethods=yf(oe.inlineTokenizers);oe.tokenizeBlock=Ia("block");oe.tokenizeInline=Ia("inline");oe.tokenizeFactory=Ia;function yf(e){var t=[],r;for(r in e)t.push(r);return t}});var If=B((jT,Lf)=>{"use strict";var UF=zo(),HF=Ft(),Tf=Af();Lf.exports=Sf;Sf.Parser=Tf;function Sf(e){var t=this.data("settings"),r=UF(Tf);r.prototype.options=HF(r.prototype.options,t,e),this.Parser=r}});var Bf=B(($T,qf)=>{"use strict";qf.exports=VF;function VF(e){if(e)throw e}});var qa=B((KT,_f)=>{_f.exports=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}});var Vf=B((QT,Hf)=>{"use strict";var vn=Object.prototype.hasOwnProperty,Uf=Object.prototype.toString,Pf=Object.defineProperty,Of=Object.getOwnPropertyDescriptor,Nf=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Uf.call(t)==="[object Array]"},Rf=function(t){if(!t||Uf.call(t)!=="[object Object]")return!1;var r=vn.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&vn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var a;for(a in t);return typeof a>"u"||vn.call(t,a)},Mf=function(t,r){Pf&&r.name==="__proto__"?Pf(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},zf=function(t,r){if(r==="__proto__")if(vn.call(t,r)){if(Of)return Of(t,r).value}else return;return t[r]};Hf.exports=function e(){var t,r,n,a,u,i,o=arguments[0],s=1,c=arguments.length,l=!1;for(typeof o=="boolean"&&(l=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s<c;++s)if(t=arguments[s],t!=null)for(r in t)n=zf(o,r),a=zf(t,r),o!==a&&(l&&a&&(Rf(a)||(u=Nf(a)))?(u?(u=!1,i=n&&Nf(n)?n:[]):i=n&&Rf(n)?n:{},Mf(o,{name:r,newValue:e(l,i,a)})):typeof a<"u"&&Mf(o,{name:r,newValue:a}));return o}});var Wf=B((XT,Gf)=>{"use strict";Gf.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var jf=B((JT,Yf)=>{"use strict";var GF=[].slice;Yf.exports=WF;function WF(e,t){var r;return n;function n(){var i=GF.call(arguments,0),o=e.length>i.length,s;o&&i.push(a);try{s=e.apply(null,i)}catch(c){if(o&&r)throw c;return a(c)}o||(s&&typeof s.then=="function"?s.then(u,a):s instanceof Error?a(s):u(s))}function a(){r||(r=!0,t.apply(null,arguments))}function u(i){a(null,i)}}});var Jf=B((ZT,Xf)=>{"use strict";var Kf=jf();Xf.exports=Qf;Qf.wrap=Kf;var $f=[].slice;function Qf(){var e=[],t={};return t.run=r,t.use=n,t;function r(){var a=-1,u=$f.call(arguments,0,-1),i=arguments[arguments.length-1];if(typeof i!="function")throw new Error("Expected function as last argument, not "+i);o.apply(null,[null].concat(u));function o(s){var c=e[++a],l=$f.call(arguments,0),f=l.slice(1),p=u.length,m=-1;if(s){i(s);return}for(;++m<p;)(f[m]===null||f[m]===void 0)&&(f[m]=u[m]);u=f,c?Kf(c,o).apply(null,u):i.apply(null,[nulLine truncated
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",VdashLine truncated
`;break}case-3:{i=`\r
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&a)continue;i=" ";break}default:i=String.fromCharCode(u)}a=u===-2,n.push(i)}return n.join("")}function oi(e){let n={constructs:Rr([ui,...(e||{}).extensions||[]]),content:a(Tu),defined:[],document:a(Lu),flow:a(_u),lazy:{},string:a(Ou),text:a(Nu)};return n;function a(u){return i;function i(o){return zu(n,u,o)}}}function si(e){for(;!Wr(e););return e}var Uu=/[\0\t\n\r]/g;function li(){let e=1,t="",r=!0,n;return a;function a(u,i,o){let s=[],c,l,f,p,m;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(i||void 0).decode(u)),f=0,t="",r&&(u.charCodeAt(0)===65279&&f++,r=void 0);f<u.length;){if(Uu.lastIndex=f,c=Uu.exec(u),p=c&&c.index!==void 0?c.index:u.length,m=u.charCodeAt(p),!c){t=u.slice(f);break}if(m===10&&f===p&&n)s.push(-3),n=void 0;else switch(n&&(s.push(-5),n=void 0),f<p&&(s.push(u.slice(f,p)),e+=p-f),m){case 0:{s.push(65533),e++;break}case 9:{for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:n=!0,e=1}f=p+1}return o&&(n&&s.push(-5),t&&s.push(t),s.push(null)),s}}var zD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Hu(e){return e.replace(zD,UD)}function UD(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let a=r.charCodeAt(1),u=a===120||a===88;return Mr(r.slice(u?2:1),u?16:10)}return Tt(r)||e}function Lt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Vu(e.position):"start"in e||"end"in e?Vu(e):"line"in e||"column"in e?ci(e):""}function ci(e){return Gu(e&&e.line)+":"+Gu(e&&e.column)}function Vu(e){return ci(e&&e.start)+"-"+ci(e&&e.end)}function Gu(e){return e&&typeof e=="number"?e:1}var Yu={}.hasOwnProperty;function fi(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),HD(r)(si(oi(r).document().write(li()(e,t,!0))))}function HD(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(du),autolinkProtocol:y,autolinkEmail:y,atxHeading:u(hu),blockQuote:u(Me),characterEscape:y,characterReference:y,codeFenced:u(ct),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:u(ct,i),codeText:u(yt,i),codeTextData:y,data:y,codeFlowValue:y,definition:u(Hn),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:u(tm),hardBreakEscape:u(mu),hardBreakTrailing:u(mu),htmlFlow:u(Du,i),htmlFlowData:y,htmlText:u(Du,i),htmlTextData:y,image:u(rm),label:i,link:u(du),listItem:u(nm),listItemValue:p,listOrdered:u(gu,f),listUnordered:u(gu),paragraph:u(im),reference:b,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:u(hu),strong:u(am),thematicBreak:u(om)},exit:{atxHeading:s(),atxHeadingSequence:C,autolink:s(),autolinkEmail:Xt,autolinkProtocol:se,blockQuote:s(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:te,characterReference:et,codeFenced:s(d),codeFencedFence:x,codeFencedFenceInfo:m,codeFencedFenceMeta:D,codeFlowValue:E,codeIndented:s(k),codeText:s(O),codeTextData:E,data:E,definition:s(),definitionDestinationString:S,definitionLabelString:F,definitionTitleString:w,emphasis:s(),hardBreakEscape:s(I),hardBreakTrailing:s(I),htmlFlow:s(T),htmlFlowData:E,htmlText:s(M),htmlTextData:E,image:s(N),label:ie,labelText:W,lineEnding:_,link:s(z),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ee,resourceDestinationString:h,resourceTitleString:Y,resource:ae,setextHeading:s(L),setextHeadingLineSequence:v,setextHeadingText:g,strong:s(),thematicBreak:s()}};ju(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(A){let P={type:"root",children:[]},V={stack:[P],tokenStack:[],config:t,enter:o,exit:c,buffer:i,resume:l,data:r},j=[],$=-1;for(;++$<A.length;)if(A[$][1].type==="listOrdered"||A[$][1].type==="listUnordered")if(A[$][0]==="enter")j.push($);else{let ye=j.pop();$=a(A,ye,$)}for($=-1;++$<A.length;){let ye=t[A[$][0]];Yu.call(ye,A[$][1].type)&&ye[A[$][1].type].call(Object.assign({sliceSerialize:A[$][2].sliceSerialize},V),A[$][1])}if(V.tokenStack.length>0){let ye=V.tokenStack[V.tokenStack.length-1];(ye[1]||Wu).call(V,void 0,ye[0])}for(P.position={start:it(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:it(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},$=-1;++$<t.transforms.length;)P=t.transforms[$](P)||P;return P}function a(A,P,V){let j=P-1,$=-1,ye=!1,ft,ze,Jt,Zt;for(;++j<=V;){let xe=A[j];switch(xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xe[0]==="enter"?$++:$--,Zt=void 0;break}case"lineEndingBlank":{xe[0]==="enter"&&(ft&&!Zt&&!$&&!Jt&&(Jt=j),Zt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Zt=void 0}if(!$&&xe[0]==="enter"&&xe[1].type==="listItemPrefix"||$===-1&&xe[0]==="exit"&&(xe[1].type==="listUnordered"||xe[1].type==="listOrdered")){if(ft){let vt=j;for(ze=void 0;vt--;){let Ue=A[vt];if(Ue[1].type==="lineEnding"||Ue[1].type==="lineEndingBlank"){if(Ue[0]=Line truncated
`,ur);if(r===-1)return;let n=e.slice(ur,r).trim(),a=e.indexOf(`
${t}`,r),u=n;if(u||(u=t==="+++"?"toml":"yaml"),a===-1&&t==="---"&&u==="yaml"&&(a=e.indexOf(`
...`,r)),a===-1)return;let i=a+1+ur,o=e.charAt(i+1);if(!/\s?/.test(o))return;let s=e.slice(0,i),c;return{language:u,explicitLanguage:n||null,value:e.slice(r+1,a),startDelimiter:t,endDelimiter:s.slice(-ur),raw:s,start:{line:1,column:0,index:0},end:{index:s.length,get line(){return c??(c=s.split(`
`)),c.length},get column(){return c??(c=s.split(`
`)),K(0,c,-1).length}},[Jr]:!0}}function yd(e){let t=Cd(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return so(r)+e.slice(r.length)}}:{content:e}}var Ve=yd;function bi(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,a=r.indexOf(t);for(;a!==-1;)n++,a=r.indexOf(t,a+t.length);return n}function ve(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Bt=(function(e){if(e==null)return Sd;if(typeof e=="function")return Zr(e);if(typeof e=="object")return Array.isArray(e)?vd(e):Ad(e);if(typeof e=="string")return Td(e);throw new Error("Expected function, string, or object as test")});function vd(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Bt(e[r]);return Zr(n);function n(...a){let u=-1;for(;++u<t.length;)if(t[u].apply(this,a))return!0;return!1}}function Ad(e){let t=e;return Zr(r);function r(n){let a=n,u;for(u in e)if(a[u]!==t[u])return!1;return!0}}function Td(e){return Zr(t);function t(r){return r&&r.type===e}}function Zr(e){return t;function t(r,n,a){return!!(Ld(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function Sd(){return!0}function Ld(e){return e!==null&&typeof e=="object"&&"type"in e}var lo=[],co=!0,Ei=!1,fo="skip";function wi(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;let u=Bt(a),i=n?-1:1;o(e,void 0,[])();function o(s,c,l){let f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){let m=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=lo,D,x,d;if((!t||u(s,c,l[l.length-1]||void 0))&&(m=Id(r(s,l)),m[0]===Ei))return m;if("children"in s&&s.children){let k=s;if(k.children&&m[0]!==fo)for(x=(n?k.children.length:-1)+i,d=l.concat(k);x>-1&&x<k.children.length;){let F=k.children[x];if(D=o(F,x,d)(),D[0]===Ei)return D;x=typeof D[1]=="number"?D[1]:x+i}}return m}}}function Id(e){return Array.isArray(e)?e:typeof e=="number"?[co,e]:e==null?lo:[e]}function Ci(e,t,r){let a=Bt((r||{}).ignore||[]),u=qd(t),i=-1;for(;++i<u.length;)wi(e,"text",o);function o(c,l){let f=-1,p;for(;++f<l.length;){let m=l[f],D=p?p.children:void 0;if(a(m,D?D.indexOf(m):void 0,p))return;p=m}if(p)return s(c,l)}function s(c,l){let f=l[l.length-1],p=u[i][0],m=u[i][1],D=0,d=f.children.indexOf(c),k=!1,F=[];p.lastIndex=0;let w=p.exec(c.value);for(;w;){let S=w.index,C={index:w.index,input:w.input,stack:[...l,c]},g=m(...w,C);if(typeof g=="string"&&(g=g.length>0?{type:"text",value:g}:void 0),g===!1?p.lastIndex=S+1:(D!==S&&F.push({type:"text",value:c.value.slice(D,S)}),Array.isArray(g)?F.push(...g):g&&F.push(g),D=S+w[0].length,k=!0),!p.global)break;w=p.exec(c.value)}return k?(D<c.value.length&&F.push({type:"text",value:c.value.slice(D)}),f.children.splice(d,1,...F)):F=[c],d+F.length}}function qd(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let a=r[n];t.push([Bd(a[0]),_d(a[1])])}return t}function Bd(e){return typeof e=="string"?new RegExp(ve(e),"g"):e}function _d(e){return typeof e=="function"?e:function(){return e}}function vi(){return{transforms:[zd],enter:{literalAutolink:Pd,literalAutolinkEmail:yi,literalAutolinkHttp:yi,literalAutolinkWww:yi},exit:{literalAutolink:Md,literalAutolinkEmail:Rd,literalAutolinkHttp:Od,literalAutolinkWww:Nd}}}function Pd(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function yi(e){this.config.enter.autolinkProtocol.call(this,e)}function Od(e){this.config.exit.autolinkProtocol.call(this,e)}function Nd(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Rd(e){this.config.exit.autolinkEmail.call(this,e)}function Md(e){this.exit(e)}function zd(e){Ci(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ud],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Hd]],{ignore:["link","linkReference"]})}function Ud(e,t,r,n,a){let u="";if(!po(a)||(/^w/i.test(t)&&(r=t+r,t="",u="http://"),!Vd(r)))return!1;let i=Gd(r+n);if(!i[0])return!1;let o={type:"link",title:null,url:u+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[o,{type:"text",value:i[1]}]:o}function Hd(e,t,r,n){return!po(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Vd(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Gd(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),a=bi(e,"("),u=bi(e,")");for(;n!==-1&&a>u;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),u++;return[e,r]}function po(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||Ie(r)||Dt(r))Line truncated
`),n=r===-1?t:t.slice(0,r);if(Tp(n))return e(n)({type:Ap(n)?"export":"import",value:n})};Ua.notInBlock=!0;Ua.locator=e=>Tp(e)?-1:1;var Sp=(e,t)=>{let r=Lb.exec(t);if(r)return e(r[0])({type:"esComment",value:r[1].trim()})};Sp.locator=(e,t)=>e.indexOf("{",t);var Lp=function(){let{Parser:e}=this,{blockTokenizers:t,blockMethods:r,inlineTokenizers:n,inlineMethods:a}=e.prototype;t.esSyntax=Ua,n.esComment=Sp,r.splice(r.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};var De="string",de="array",st="cursor",Ae="indent",Te="align",je="trim",ke="group",Fe="fill",be="if-break",$e="indent-if-break",Ke="line-suffix",Qe="line-suffix-boundary",ge="line",Xe="label",Se="break-parent",Sn=new Set([st,Ae,Te,je,ke,Fe,be,$e,Ke,Qe,ge,Xe,Se]);function Ip(e,t,r){if(!e.has(t)){let n=r(t);e.set(t,n)}return e.get(t)}function qb(e){if(typeof e=="string")return De;if(Array.isArray(e))return de;if(!e)return;let{type:t}=e;if(Sn.has(t))return t}var me=qb;var Bb=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function _b(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
Expected it to be 'string' or 'object'.`;if(me(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Bb([...Sn].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var Ha=class extends Error{name="InvalidDocError";constructor(t){super(_b(t)),this.doc=t}},wt=Ha;var qp={};function Pb(e,t,r,n){let a=[e];for(;a.length>0;){let u=a.pop();if(u===qp){r(a.pop());continue}r&&a.push(u,qp);let i=me(u);if(!i)throw new wt(u);if(t?.(u)!==!1)switch(i){case de:case Fe:{let o=i===de?u:u.parts;for(let s=o.length,c=s-1;c>=0;--c)a.push(o[c]);break}case be:a.push(u.flatContents,u.breakContents);break;case ke:if(n&&u.expandedStates)for(let o=u.expandedStates.length,s=o-1;s>=0;--s)a.push(u.expandedStates[s]);else a.push(u.contents);break;case Te:case Ae:case $e:case Xe:case Ke:a.push(u.contents);break;case De:case st:case je:case Qe:case ge:case Se:break;default:throw new wt(u)}}}var Bp=Pb;function Ob(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){return Ip(r,u,a)}function a(u){switch(me(u)){case de:return t(u.map(n));case Fe:return t({...u,parts:u.parts.map(n)});case be:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case ke:{let{expandedStates:i,contents:o}=u;return i?(i=i.map(n),o=i[0]):o=n(o),t({...u,contents:o,expandedStates:i})}case Te:case Ae:case $e:case Xe:case Ke:return t({...u,contents:n(u.contents)});case De:case st:case je:case Qe:case ge:case Se:return t(u);default:throw new wt(u)}}}function _p(e){if(e.length>0){let t=K(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Pp(e){let t=new Set,r=[];function n(u){if(u.type===Se&&_p(r),u.type===ke){if(r.push(u),t.has(u))return!1;t.add(u)}}function a(u){u.type===ke&&r.pop().break&&_p(r)}Bp(e,n,a,!0)}function Je(e,t=wr){return Ob(e,r=>typeof r=="string"?Ln(t,r.split(`
`)):r)}var Le=ar,In=ar,Op=ar,Np=ar;function Cr(e){return Le(e),{type:Ae,contents:e}}function we(e,t){return Np(e),Le(t),{type:Te,contents:t,n:e}}function yr(e){return we({type:"root"},e)}var Wt={type:Se};function Yt(e){return Op(e),{type:Fe,parts:e}}function jt(e,t={}){return Le(e),In(t.expandedStates,!0),{type:ke,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Rp(e,t="",r={}){return Le(e),t!==""&&Le(t),{type:be,breakContents:e,flatContents:t,groupId:r.groupId}}function Ln(e,t){Le(e),In(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}var qn={type:ge},Bn={type:ge,soft:!0},vr={type:ge,hard:!0},Z=[vr,Wt],Nb={type:ge,hard:!0,literal:!0},wr=[Nb,Wt];var Rb="cr",Mb="crlf";var zb="\r",Ub=`\r
`,Hb=`
`,Vb=Hb;function Mp(e){return e===Rb?zb:e===Mb?Ub:Vb}var zp=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uLine truncated
`?J(0,d,`
`,a):d;k&&(c.write(k),i.length>0&&(u+=Ar(k)));break}case de:for(let k=d.length-1;k>=0;k--)i.push({indent:D,mode:x,doc:d[k]});break;case st:c.markPosition();break;case Ae:i.push({indent:Qp(D,t),mode:x,doc:d.contents});break;case Te:i.push({indent:Kp(D,d.n,t),mode:x,doc:d.contents});break;case je:u-=c.trim();break;case ke:{let k=(function(){if(x===Ne&&!o)return{indent:D,mode:d.break?Ce:Ne,doc:d.contents};o=!1;let w=n-u,S=s.length>0,C={indent:D,mode:Ne,doc:d.contents};if(!d.break&&Pn(C,i,w,S,r))return C;if(!d.expandedStates)return{indent:D,mode:Ce,doc:d.contents};if(!d.break)for(let g=1;g<d.expandedStates.length-1;g++){let v={indent:D,mode:Ne,doc:d.expandedStates[g]};if(Pn(v,i,w,S,r))return v}return{indent:D,mode:Ce,doc:K(0,d.expandedStates,-1)}})();i.push(k),d.id&&(r[d.id]=k.mode);break}case Fe:{let k=n-u,F=d[Ka]??0,{parts:w}=d,S=w.length-F;if(S===0)break;let C=w[F+0],g=w[F+1],v={indent:D,mode:Ne,doc:C},L={indent:D,mode:Ce,doc:C},y=Pn(v,[],k,s.length>0,r,!0);if(S===1){y?i.push(v):i.push(L);break}let E={indent:D,mode:Ne,doc:g},_={indent:D,mode:Ce,doc:g};if(S===2){y?i.push(E,v):i.push(_,L);break}let I=w[F+2],T={indent:D,mode:x,doc:{...d,[Ka]:F+2}},O=Pn({indent:D,mode:Ne,doc:[C,g,I]},[],k,s.length>0,r,!0);i.push(T),O?i.push(E,v):y?i.push(_,v):i.push(_,L);break}case be:case $e:{let k=d.groupId?r[d.groupId]:x;if(k===Ce){let F=d.type===be?d.breakContents:d.negate?d.contents:Cr(d.contents);F&&i.push({indent:D,mode:x,doc:F})}if(k===Ne){let F=d.type===be?d.flatContents:d.negate?Cr(d.contents):d.contents;F&&i.push({indent:D,mode:x,doc:F})}break}case Ke:s.push({indent:D,mode:x,doc:d.contents});break;case Qe:s.length>0&&i.push({indent:D,mode:x,doc:vr});break;case ge:switch(x){case Ne:if(!d.hard){d.soft||(c.write(" "),u+=1);break}o=!0;case Ce:if(s.length>0){i.push({indent:D,mode:x,doc:d},...s.reverse()),s.length=0;break}d.literal?(c.write(a),u=0,D.root&&(D.root.value&&c.write(D.root.value),u=D.root.length)):(c.trim(),c.write(a+D.value),u=D.length);break}break;case Xe:i.push({indent:D,mode:x,doc:d.contents});break;case Se:break;default:throw new wt(d)}i.length===0&&s.length>0&&(i.push(...s.reverse()),s.length=0)}let{text:l,positions:f}=c.finish();if(f.length!==2)return{formatted:l};let[p,m]=f;return{formatted:l,cursorNodeStart:p,cursorNodeText:l.slice(p,m)}}var Zb=Array.prototype.toReversed??function(){return[...this].reverse()},eE=qt("toReversed",function(){if(Array.isArray(this))return Zb}),Zp=eE;function tE(){let e=globalThis,t=e.process?.platform;if(typeof t=="string")return t.startsWith("win");let r=e.Deno?.build?.os;return typeof r=="string"?r==="windows":e.navigator?.platform?.startsWith("Win")??!1}var rE=tE();function eh(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function nE(e){return e=eh(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function iE(e){e=eh(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function Qa(e){return rE?iE(e):nE(e)}var th=e=>String(e).split(/[/\\]/).pop(),rh=e=>String(e).startsWith("file:");function nh(e,t){if(!t)return;let r=th(t).toLowerCase();return e.find(({filenames:n})=>n?.some(a=>a.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(a=>r.endsWith(a)))}function aE(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var uE=void 0;function ih(e,t){if(t){if(rh(t))try{t=Qa(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function oE(e,t){let r=Zp(0,e.plugins).flatMap(a=>a.languages??[]);return(aE(r,t.language)??nh(r,t.physicalFile)??nh(r,t.file)??ih(r,t.physicalFile)??ih(r,t.file)??uE?.(r,t.physicalFile))?.parsers[0]}var Xa=oE;function sE(e){return!!e?.[Jr]}var Ja=sE;var lE=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=t;function t(r,n){let{frontMatter:a}=Ve(n);if(a)return r(a.raw)({...a,type:"frontMatter"})}t.onlyAtStart=!0},ah=lE;var uh=/(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{16ff2}-\u{16ff6}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b128}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b168}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b81e}\u{2b820}-\u{2cead}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{33479}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01eLine truncated
`:" "});continue}if((a===0||a===r.length-1)&&u==="")continue;let i=u.split(new RegExp(`(${uh.source})`,"u"));for(let[o,s]of i.entries())if(!((o===0||o===i.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:$t,isCJ:!1,hasLeadingPunctuation:Ze.test(s[0]),hasTrailingPunctuation:Ze.test(K(0,s,-1))});continue}if(Ze.test(s)){n({type:"word",value:s,kind:Tr,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(cE.test(s)){n({type:"word",value:s,kind:Ct,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:s,kind:Re,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return t;function n(a){let u=K(0,t,-1);u?.type==="word"&&!i($t,Tr)&&[u.value,a.value].every(o=>!/\u3000/.test(o))&&t.push({type:"whitespace",value:""}),t.push(a);function i(o,s){return u.kind===o&&a.kind===s||u.kind===s&&a.kind===o}}}function lt(e,t){let r=t.originalText.slice(e.position.start.offset,e.position.end.offset);if(t.parser!=="mdx"){let u=e.children[0];u&&(r=t.originalText.slice(e.position.start.offset,u.position.start.offset))}let{numberText:n,leadingSpaces:a}=r.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/).groups;return{number:Number(n),leadingSpaces:a}}function eu(e,t){return!e.ordered||e.children.length<2||lt(e.children[1],t).number!==1?!1:lt(e.children[0],t).number!==0?!0:e.children.length>2&&lt(e.children[2],t).number===1}function On(e,t){let{value:r}=e;return e.position.end.offset===t.length&&r.endsWith(`
`)&&t.endsWith(`
`)?r.slice(0,-1):r}function Ee(e,t){return(function r(n,a,u){let i={...t(n,a,u)};return i.children&&(i.children=i.children.map((o,s)=>r(o,s,[i,...u]))),i})(e,null,[])}function Nn(e){if(e?.type!=="link"||e.children.length!==1)return!1;let[t]=e.children;return pt(e)===pt(t)&&ht(e)===ht(t)}function Ir(e){let t;if(e.type==="html")t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let r;e.type==="esComment"?r=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(r=e.children[0]),r&&(t=r.value.match(/^prettier-ignore(?:-(start|end))?$/))}return t?t[1]||"next":!1}function qr(e,t){return r(e,t,n=>n.ordered===e.ordered);function r(n,a,u){let i=-1;for(let o of a.children)if(o.type===n.type&&u(o)?i++:i=-1,o===n)return i}}function oh(e){return e.index>0&&Ir(e.previous)==="next"}function Kt(e){let{start:t,end:r}=e.position;return t.line!==r.line}var Qt=e=>e?.type==="whitespace"&&e.value===`
`;function fE(){return e=>Ee(e,(t,r,[n])=>t.type!=="html"||vp.test(t.value)||Sr.has(n.type)?t:{...t,type:"jsx"})}var sh=fE;var pE=function(){let e=this.Parser.prototype,t=e.inlineMethods;t.splice(t.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=r;function r(n,a){let u=a.match(/^(\{%.*?%\}|\{\{.*?\}\})/s);if(u)return n(u[0])({type:"liquidNode",value:u[0]})}r.locator=function(n,a){return n.indexOf("{",a)}},lh=pE;var hE=function(){let e="wikiLink",t=/^\[\[(?<linkContents>.+?)\]\]/s,r=this.Parser.prototype,n=r.inlineMethods;n.splice(n.indexOf("link"),0,e),r.inlineTokenizers.wikiLink=a;function a(u,i){let o=t.exec(i);if(o){let s=o.groups.linkContents.trim();return u(o[0])({type:e,value:s})}}a.locator=function(u,i){return u.indexOf("[",i)}},ch=hE;function tu(e){let t=(0,mh.default)().use(hh.default,{commonmark:!0,blocks:[yp]}).use(fh.default).use(ah).use(ph.default).use(Lp).use(lh).use(sh).use(ch);return t.run(t.parse(e))}var Dh="format";var dh=/<!--\s*@(?:noformat|noprettier)\s*-->|\{\s*\/\*\s*@(?:noformat|noprettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:noformat|noprettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/m,gh=/<!--\s*@(?:format|prettier)\s*-->|\{\s*\/\*\s*@(?:format|prettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:format|prettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/m;var Rn=e=>Ve(e).content.trimStart().match(gh)?.index===0,xh=e=>Ve(e).content.trimStart().match(dh)?.index===0,kh=e=>{let{frontMatter:t}=Ve(e),r=`<!-- @${Dh} -->`;return t?`${t.raw}
${r}
${e.slice(t.end.index)}`:`${r}
${e}`};function Fh(e){return{astFormat:"mdast",hasPragma:Rn,hasIgnorePragma:xh,locStart:pt,locEnd:ht,parse:e}}var mE=Fh(_i),DE=Fh(tu);var pu={};Nr(pu,{mdast:()=>fw});function dE(e,t){let r=e.matchAll(new RegExp(`(?:${ve(t)})+`,"g"));return r.reduce||(r=[...r]),r.reduce((n,[a])=>Math.max(n,a.length),0)/t.length}var Mn=dE;function gE(e,t){let{node:r}=e;switch(r.type){case"code":{let{lang:n}=r;if(!n)return;let a;return n==="angular-ts"?a=Xa(t,{language:"typescript"}):n==="angular-html"?a="angular":a=Xa(t,{language:n}),a?async u=>{let i={parser:a};n==="ts"||n==="typescript"?i.filepath="dummy.ts":n==="tsx"&&(i.filepath="dummy.tsx");let o=await u(t.parser==="mdx"?On(r,t.originalText):r.value,i),s=t.__inJsTemplate?"~":"`",c=s.repeat(Math.max(3,Mn(r.value,s)+1));return yr([c,r.lang,r.meta?" "+r.meta:"",Z,Je(o),Z,c])}:void 0}case"import":case"export":return n=>n(r.value,{__onHtmlBindingRoot:a=>xE(a,r.type),parser:"babel"});case"jsx":return n=>n(`<$>${r.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}function xE(e,t){let{program:{body:r}}=e;if(r.some(n=>!(n.type==="ImportDeclaration"||n.type==="ExportDefaultDeclaration"||n.type==="ExportNamedDeclaration")))throw new Error(`Unexpected '${t}' in MDX.`)}var bh=gE;var nu=At(Dn(),1);var kE=new Set(["position","raw"]);function iu(e,t,r){if((e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete t.value,e.type==="list"&&delete t.isAligned,(e.type==="list"||e.type==="listItem")&&delete t.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(t.value=J(0,e.value,`
`," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(t.label=(0,nu.default)(e.label)),e.type==="imageReference"&&e.referenceType==="collapsed"&&(t.alt=(0,nu.default)(e.alt)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")t.url=J(0,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(t.title=J(0,e.title,/\\(?=["')])/g,"")),r?.type==="root"&&r.children.length>0&&(r.children[0]===e||Ja(r.children[0])&&r.children[1]===e)&&e.type==="html"&&Rn(e.value))return null}iu.ignoredProperties=kE;function au(e,t){let r=t.originalText.slice(e.node.position.start.offset,e.node.position.end.offset);return t.parser==="mdx"?r:e.node.type==="list"&&e.findAncestor(n=>n.type==="blockquote")&&t.proseWrap!=="always"?r.replace(/\n>\s*$/,""):r}var jh=At(Dn(),1);function FE(e,t){let r=e.match(new RegExp(`(${ve(t)})+`,"g"));if(r===null)return 1;let n=new Map,a=0;for(let u of r){let i=u.length/t.length;n.set(i,!0),i>a&&(a=i)}for(let u=1;u<a;u++)if(!n.get(u))return u;return a+1}var Eh=FE;var wh=Object.freeze({character:"'",codePoint:39}),Ch=Object.freeze({character:'"',codePoint:34}),bE=Object.freeze({preferred:wh,alternate:Ch}),EE=Object.freeze({preferred:Ch,alternate:wh});function yh(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?bE:EE,{length:a}=e,u=0,i=0;for(let o=0;o<a;o++){let s=e.charCodeAt(o);s===r.codePoint?u++:s===n.codePoint&&i++}return(u>i?n:r).character}var uu=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},vh=uu;function ue(e,t,r,n={}){let{processor:a=r}=n,u=[];return e.each(()=>{let i=a(e);i!==!1&&(u.length>0&&wE(e)&&(u.push(Z),yE(e,t)&&u.push(Z)),u.push(i))},"children"),u}function wE({node:e,parent:t}){let r=Za.has(e.type)&&!(e.type==="liquidNode"&&!Sr.has(t.type)),n=e.type==="html"&&Sr.has(t.type);return!r&&!n}var CE=new Set(["listItem","definition"]);function yE(e,t){let{node:r,previous:n,parent:a}=e;if(t.parser==="mdx"){if(Ah(n,t)||r.type==="list"&&a.type==="listItem"&&(n.type==="code"||n.type==="paragraph")&&n.position.end.line+1<r.position.start.line)return!0}else{if(Kt(r)&&r.position.start.line<n.position.end.line)return!1;if(vE(e)||r.type==="list"&&a.type==="listItem"&&(n.type==="code"||n.type==="paragraph")&&n.position.end.line+1<r.position.start.line)return!0}let i=n.type===r.type&&CE.has(r.type),o;t.parser==="mdx"?o=a.type==="listItem"&&(r.type==="list"||!Ah(a,t)):o=a.type==="listItem"&&(r.type==="list"||!e.callParent(Th));let s=Ir(n)==="next",c=r.type==="html"&&n.type==="html"&&n.position.end.line+1===r.position.start.line,l=t.parser!=="mdx"&&r.type==="html"&&n.type==="paragraph"&&n.position.end.line+1===r.position.start.line,f=r.type==="html"&&a.type==="listItem"&&n.type==="paragraph"&&n.position.end.line+1===r.position.start.line,p=(r.type==="liquidNode"||n.type==="liquidNode")&&n.position.end.line+1===r.position.start.line;return!(i||o||s||c||l||f||p)}function Ah(e,t){return e.type==="listItem"&&(e.spread||t.originalText.charAt(e.position.end.offset-1)===`
`)}function Th({node:e,parent:t,next:r}){return e.type==="listItem"&&(e.spread||t.type==="list"&&r?.type==="listItem"&&e.position.end.line+1<r.position.start.line)}function vE(e){return e.index===0?!1:Th({node:e.previous,parent:e.parent,next:e.node})}function AE(e,t,r){return["#".repeat(e.node.depth)+" ",ue(e,t,r)]}function TE(e,t,r){let{originalText:n}=t,{node:a}=e,u=a.position.end.offset,i=n.lastIndexOf(`
`,u-1)+1,o=n.slice(i,u),s=Math.max(o.indexOf("="),o.indexOf("-")),c=o.slice(s);return[ue(e,t,r),Z,c]}function Sh(e,t,r){return t.parser!=="mdx"&&Kt(e.node)?TE(e,t,r):AE(e,t,r)}var SE=999999999;function qh(e,t,r){let{node:n}=e,a=qr(n,e.parent),u=eu(n,t),i=LE(e);return ue(e,t,r,{processor(){let o=c(),{node:s}=e;if(s.children.length===2&&s.children[1].type==="html"&&s.children[0].position.start.column!==s.children[1].position.start.column)return[o,Lh(e,t,r,o)];return[o,we(" ".repeat(o.length),Lh(e,t,r,o))];function c(){let l=n.ordered?(e.isFirst?n.start:u?1:Math.min(n.start+e.index,SE))+(a%2===0?". ":") "):a%2===0?"- ":"* ",f=n.isAligned&&n.ordered?_h(l,t):l;if(f.length>=i)return f;f=f.trimEnd();let p=Math.min(i-f.length,4);p>0&&(f+=" ".repeat(p));let m=Math.min(i-f.length,3);return m>0&&(f=" ".repeat(m)+f),f}}})}function Lh(e,t,r,n){let{node:a}=e,u=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[u,ue(e,t,r,{processor({node:i,isFirst:o}){if(o&&i.type!=="list"||i.type==="html")return we(" ".repeat(u.length),r());if(i.type==="code"&&i.isIndented)return r();let s=" ".repeat(Ph(t.tabWidth-n.length,0,3));return[s,we(s,r())]}})]}function LE(e){let{node:t,next:r}=e;return t.checked===null||!(r?.type==="code"&&r.isIndented)?0:4+[.../^[ \t]*/.exec(r.value)?.[0]??""].reduce((a,u)=>a+(u===" "?4:1),0)+1}function Bh(e,t,r){let{node:n}=e,a=qr(n,e.parent),u=eu(n,t);return ue(e,t,r,{processor(){let i=s(),{node:o}=e;if(o.children.length===2&&o.children[1].type==="html"&&o.children[0].position.start.column!==o.children[1].position.start.column)return[i,Ih(e,t,r,i)];return[i,we(" ".repeat(i.length),Ih(e,t,r,i))];function s(){let c=n.ordered?(e.isFirst?n.start:u?1:n.start+e.index)+(a%2===0?". ":") "):a%2===0?"- ":"* ";return(n.isAligned||n.hasIndentedCodeblock)&&n.ordered?_h(c,t):c}}})}function Ih(e,t,r,n){let{node:a}=e,u=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[u,ue(e,t,r,{processor({node:i,isFirst:o}){if(o&&i.type!=="list")return we(" ".repeat(u.length),r());if(i.type==="code"&&i.isIndented)return r();let s=" ".repeat(Ph(t.tabWidth-n.length,0,3));return[s,we(s,r())]}})]}function _h(e,t){let r=n();return e+" ".repeat(r>=4?0:r);function n(){let a=e.length%t.tabWidth;return a===0?0:t.tabWidth-a}}function Ph(e,t,r){return Math.max(t,Math.min(e,r))}function Oh(e,t,r){let n=e.map(r,"children");return IE(n)}function IE(e){let t=[""];return(function r(n){for(let a of n){let u=me(a);if(u===de){r(a);continue}let i=a,o=[];u===Fe&&([i,...o]=a.parts),t.push([t.pop(),i],...o)}})(e),Yt(t)}function Nh(e,t){let r=[""];return e.each(()=>{let{node:n}=e,a=t();switch(n.type){case"whitespace":if(me(a)!==De){r.push(a,"");break}default:r.push([r.pop(),a])}},"children"),Yt(r)}function Rh(e,t,r){let{node:n}=e,a=[],u=e.map(()=>e.map(({index:f})=>{let p=Jp(r(),t).formatted,m=Ar(p);return a[f]=Math.max(a[f]??3,m),{text:p,width:m}},"children"),"children"),i=s(!1);if(t.proseWrap!=="never")return[Wt,i];let o=s(!0);return[Wt,jt(Rp(o,i))];function s(f){return Ln(vr,[l(u[0],f),c(f),...u.slice(1).map(p=>l(p,f))].map(p=>`| ${p.join(" | ")} |`))}function c(f){return a.map((p,m)=>{if(t.parser!=="mdx"&&m>=u[0].length)return null;let D=n.align[m],x=D==="center"||D==="left"?":":"-",d=D==="center"||D==="right"?":":"-",k=f?"-":"-".repeat(p-2);return`${x}${k}${d}`}).filter(p=>p!==null)}function l(f,p){return f.map(({text:m,width:D},x)=>{if(p)return m;let d=a[x]-D,k=n.align[x],F=0;k==="right"?F=d:k==="center"&&(F=Math.floor(d/2));let w=d-F;return`${" ".repeat(F)}${m}${" ".repeat(w)}`})}}var qE=new Set(["tableCell","link","wikiLink"]),Mh=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function BE({parent:e}){if(e.usesCJSpaces===void 0){let t={" ":0,"":0},{children:r}=e;for(let n=1;n<r.length-1;++n){let a=r[n];if(a.type==="whitespace"&&(a.value===" "||a.value==="")){let u=r[n-1].kind,i=r[n+1].kind;(u===Re&&i===$t||u===$t&&i===Re)&&++t[a.value]}}e.usesCJSpaces=t[" "]>t[""]}return e.usesCJSpaces}function _E(e,t){if(t)return!0;let{previous:r,next:n}=e;if(!r||!n)return!0;let a=r.kind,u=n.kind;return zh(a)&&zh(u)||a===Ct&&u===Re||u===Ct&&a===Re?!0:a===Tr||u===Tr||a===Re&&u===Re?!1:Mh.has(n.value[0])||Mh.has(K(0,r.value,-1))?!0:r.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:BE(e)}function zh(e){return e===$t||e===Ct}function PE(e,t,r,n,a){if(r!=="always"||e.hasAncestor(o=>qE.has(o.type)||o.type==="heading"&&(a.parser==="mdx"||!Kt(o))))return!1;if(n)return t!=="";let{previous:u,next:i}=e;return!u||!i?!0:t===""?!1:u.kind===Ct&&i.kind===Re||i.kind===Ct&&u.kind===Re?!0:!(u.isCJ||i.isCJ)}function ou(e,t,r,n,a){if(r==="preserve"&&t===`
`)return Z;let u=t===" "||t===`
`&&_E(e,n);return PE(e,t,r,n,a)?u?qn:Bn:u?" ":""}var OE=/^(?:=+|-+)$/;function Uh(e,t){let{node:r}=e,n=e.findAncestor(u=>u.type==="emphasis"||u.type==="strong"),a=r.value;return n?(e.isFirst&&(a.startsWith("*")||a.startsWith("_"))&&e.callParent(()=>e.isFirst)&&e.grandparent===n&&(a=`\\${a}`),a=J(0,a,/(\\+|^|.)(\*+|_+)($|.)/g,(u,i,o,s)=>[...i].every(c=>c==="\\")&&i.length%2===1?u:NE(K(0,i,-1)||K(1,e.previous?.value,-1),o,s[0]||e.next?.value[0])?`${i}\\${o}${s}`:u),a):t.proseWrap==="preserve"&&e.parent.type==="sentence"&&OE.test(a)&&Qt(e.previous)&&(e.isLast||Qt(e.next))?`\\${a}`:a}function NE(e,t,r){if(!e||!r)return null;let n=/[\p{Space_Separator}\t\n\f\r]/u.test(r),a=/[\p{Space_Separator}\t\n\f\r]/u.test(e),u=Ze.test(r),i=Ze.test(e),o=!n&&(!u||u&&(a||i)),s=!a&&(!i||i&&(n||u));return t[0]==="*"?o||s:o?!s||i:s?!o||u:!1}function Hh(e){let{node:t}=e,r=J(0,J(0,t.value,"*","\\*"),new RegExp([`(^|${Ze.source})(_+)`,`(_+)(${Ze.source}|$)`].join("|"),"gu"),(u,i,o,s,c)=>J(0,o?`${i}${o}`:`${s}${c}`,"_","\\_")),n=(u,i,o)=>u.type==="sentence"&&o===0,a=(u,i,o)=>Nn(u.children[o-1]);return r!==t.value&&(e.match(void 0,n,a)||e.match(void 0,n,(u,i,o)=>u.type==="emphasis"&&o===0,a))&&(r=r.replace(/^(\\?[*_])+/,u=>J(0,u,"\\",""))),r}function Vh(e){let{previous:t,next:r}=e;return t?.type==="sentence"&&K(0,t.children,-1)?.type==="word"&&!K(0,t.children,-1).hasTrailingPunctuation&&!/[\p{Space_Separator}\t\n\f\r]$/u.test(K(0,t.children,-1).value)||r?.type==="sentence"&&r.children[0]?.type==="word"&&!r.children[0].hasLeadingPunctuation&&!/^[\p{Space_Separator}\t\n\f\r]/u.test(r.children[0].value)}function RE(e){let{siblings:t,index:r}=e;if(!t||typeof r!="number")return!1;let n=t[r+2];return n?.type==="whitespace"&&n.value===""}function ME(e){if(!Qt(e.node)||e.next?.value!=="-")return!1;let t=e.siblings[e.index+2];return!t||Qt(t)}function lu(e,t,r){let{node:n}=e;if(UE(e)){let a=[""],u=Lr(t.originalText.slice(n.position.start.offset,n.position.end.offset));for(let i of u){if(i.type==="word"){a.push([a.pop(),i.value]);continue}let o=ou(e,i.value,t.proseWrap,!0,t);if(me(o)===De){a.push([a.pop(),o]);continue}a.push(o,"")}return Yt(a)}switch(n.type){case"root":return n.children.length===0?"":[zE(e,t,r),Z];case"paragraph":return Oh(e,t,r);case"sentence":return Nh(e,r);case"word":return t.parser!=="mdx"?Uh(e,t):Hh(e);case"whitespace":{let{next:a}=e,u=a&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(a.value)&&!RE(e)&&!(t.proseWrap==="preserve"&&ME(e))?"never":t.proseWrap;return ou(e,n.value,u,!1,t)}case"emphasis":{let a;if(Nn(n.children[0]))a=t.originalText[n.position.start.offset];else{let u=Vh(e),i=e.callParent(({node:o})=>o.type==="strong"&&Vh(e));a=u||i||e.hasAncestor(o=>o.type==="emphasis")?"*":"_"}return[a,ue(e,t,r),a]}case"strong":return["**",ue(e,t,r),"**"];case"delete":return["~~",ue(e,t,r),"~~"];case"inlineCode":{let a=t.proseWrap==="preserve"?n.value:J(0,n.value,`
`," ");t.parser!=="mdx"&&e.hasAncestor(s=>s.type==="tableCell")&&(a=J(0,a,"|","\\|"));let u=Eh(a,"`"),i="`".repeat(u),o=a.startsWith("`")||a.endsWith("`")||/^[\n ]/.test(a)&&/[\n ]$/.test(a)&&/[^\n ]/.test(a)?" ":"";return[i,o,a,o,i]}case"wikiLink":{let a;return t.proseWrap==="preserve"?a=n.value:a=J(0,n.value,/[\t\n]+/g," "),["[[",a,"]]"]}case"link":switch(t.originalText[n.position.start.offset]){case"<":{let a="mailto:";return["<",n.url.startsWith(a)&&t.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+a.length)!==a?n.url.slice(a.length):n.url,">"]}case"[":return["[",ue(e,t,r),"](",t.parser!=="mdx"&&n.url===""?"<>":su(n.url,")"),Un(n.title,t),")"];default:return t.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",Yh(n,t),"](",t.parser!=="mdx"&&n.url===""?"<>":su(n.url,")"),Un(n.title,t),")"];case"blockquote":return["> ",we("> ",ue(e,t,r))];case"heading":return Sh(e,t,r);case"code":{if(n.isIndented){let i=" ".repeat(4);return we(i,[i,Je(n.value,Z)])}let a=t.__inJsTemplate?"~":"`",u=a.repeat(Math.max(3,Mn(n.value,a)+1));return[u,n.lang||"",n.meta?" "+n.meta:"",Z,Je(t.parser==="mdx"?On(n,t.originalText):n.value,Z),Z,u]}case"html":{let{parent:a,isLast:u}=e,i=a.type==="root"&&u?n.value.trimEnd():n.value,o=/^<!--.*-->$/s.test(i);return Je(i,o?Z:yr(wr))}case"list":return t.parser==="mdx"?Bh(e,t,r):qh(e,t,r);case"thematicBreak":{let{ancestors:a}=e,u=a.findIndex(o=>o.type==="list");return u===-1?"---":qr(a[u],a[u+1])%2===0?"***":"---"}case"linkReference":return["[",ue(e,t,r),"]",n.referenceType==="full"?zn(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":{let a=Yh(n,t);return n.referenceType==="full"?["![",a,"]",zn(n)]:[...t.parser==="mdx"?["![",a,"]"]:["!",zn(n)],n.referenceType==="collapsed"?"[]":""]}case"definition":{let a=t.proseWrap==="always"?qn:" ";return jt([zn(n),":",Cr([a,t.parser!=="mdx"&&n.url===""?"<>":su(n.url),n.title===null?"":[a,Un(n.title,t,!1)]])])}case"footnote":return["[^",ue(e,t,r),"]"];case"footnoteReference":return Wh(n);case"footnoteDefinition":{let a=n.children.length===1&&n.children[0].type==="paragraph"&&(t.proseWrap==="never"||t.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[Wh(n),": ",a?ue(e,t,r):jt([we(" ".repeat(4),ue(e,t,r,{processor:({isFirst:u})=>u?jt([Bn,r()]):r()}))])]}case"table":return Rh(e,t,r);case"tableCell":return ue(e,t,r);case"break":return/\s/.test(t.originalText[n.position.start.offset])?[" ",yr(wr)]:["\\",Z];case"liquidNode":return Je(n.value,Z);case"import":case"export":case"jsx":return n.value.trimEnd();case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",n.meta?" "+n.meta:"",Z,n.value?[Je(n.value,Z),Z]:"","$$"];case"inlineMath":return t.originalText.slice(pt(n),ht(n));case"text":return Je(n.value,Z);default:throw new vh(n,"Markdown")}}function zE(e,t,r){let n=[],a=null,{children:u}=e.node;for(let[i,o]of u.entries())switch(Ir(o)){case"start":a===null&&(a={index:i,offset:o.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:i,offset:o.position.start.offset}}),a=null);break;default:break}return ue(e,t,r,{processor({index:i}){if(n.length>0){let o=n[0];if(i===o.start.index)return[Gh(u[o.start.index]),t.originalText.slice(o.start.offset,o.end.offset),Gh(u[o.end.index])];if(o.start.index<i&&i<o.end.index)return!1;if(i===o.end.index)return n.shift(),!1}return r()}})}function Gh(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function UE(e){let t=e.findAncestor(r=>r.type==="linkReference"||r.type==="imageReference");return t&&(t.type!=="linkReference"||t.referenceType!=="full")}var HE=(e,t)=>{for(let r of t)e=J(0,e,r,encodeURIComponent(r));return e};function su(e,t=[]){let r=[" ",...Array.isArray(t)?t:[t]];return new RegExp(r.map(n=>ve(n)).join("|")).test(e)?`<${HE(e,"<>")}>`:e}function Un(e,t,r=!0){if(!e)return"";if(r)return" "+Un(e,t,!1);if(t.parser==="mdx"&&(e=J(0,e,/\\(?=["')])/g,"")),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=yh(e,t.singleQuote);return e=J(0,e,"\\","\\\\"),e=J(0,e,n,`\\${n}`),`${n}${e}${n}`}function zn(e,t){let r=(0,jh.default)(e.label);return t?.parser==="mdx"?`[${r}]`:`[${J(0,r,/[\\[\]]/g,a=>`\\${a}`)}]`}function Wh(e){return`[^${e.label}]`}function Yh(e,t){return t.parser!=="mdx"&&e.originalAltText?e.originalAltText:e.alt||""}var cu=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#e,n=0;for(let a=0;a<t.length&&r.has(t.charAt(a));a++)n++;return n}getTrailingWhitespaceCount(t){let r=this.#e,n=0;for(let a=t.length-1;a>=0&&r.has(t.charAt(a));a--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))Line truncated
`)){if(n.length===0)continue;let a=this.getLeadingWhitespaceCount(n);if(a===0)return 0;n.length!==a&&a<r&&(r=a)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(t){let r=this.#t(t);return r===0?t:t.split(`
`).map(n=>n.slice(r)).join(`
`)}},$h=cu;var VE=[" ",`
`,"\f","\r"," "],GE=new $h(VE),Br=GE;function WE(e){let t=0;for(let r of e)if(r===">")t++;else if(r!==" "&&r!==" ")break;return t}function YE(e,t){let r=/[ \t]*(?:>|\\>|&gt;|&GT;|&#0*62;|&#[xX]0*3[eE];)[ \t]*/y,n=[],{lastIndex:a}=r,u;for(;u=r.exec(e);)n.push(u.index),a=r.lastIndex;if(t===0)return e.slice(a);let i=K(0,n,-t);return i===null?e:e.slice(i)}var jE=/(?<!\\)(?:\\\\)*(?:&NewLine;|&#0*10;|&#[Xx]0*[Aa];)/g;function Kh(e,t){let r=e.split(`
`),n=t.value.split(`
`),a=0;return r.map((i,o)=>{let s=n[a++],c=i.matchAll(jE);if(a+=[...c].length,o===0)return i;let l=WE(s);return YE(i,l)}).join(`
`)}var $E=/^\\?.$/su,KE=/^\n *>[ >]*$/;function QE(e,t){return t.parser==="mdx"?e=XE(e,t):e=JE(e,t),e=ew(e),t.parser==="mdx"?e=iw(e,t):e=nw(e,t),t.parser!=="mdx"&&(e=aw(e,t)),t.parser==="mdx"?e=ow(e,t):e=uw(e,t),t.parser==="mdx"?e=tw(e):e=rw(e),e}function XE(e,t){return Ee(e,r=>{if(r.type!=="text")return r;let{value:n}=r;if(n==="*"||n==="_"||!$E.test(n)||r.position.end.offset-r.position.start.offset===n.length)return r;let a=t.originalText.slice(r.position.start.offset,r.position.end.offset);return KE.test(a)?r:{...r,value:a}})}function JE(e,t){return Ee(e,r=>(r.type==="text"&&(r.raw=t.originalText.slice(r.position.start.offset,r.position.end.offset)),r))}function ZE(e,t,r){return Ee(e,n=>{if(!n.children)return n;let a=[],u,i;for(let o of n.children)u&&t(u,o)?(o=r(u,o),a.splice(-1,1,o),i||(i=!0)):a.push(o),u=o;return i?{...n,children:a}:n})}function ew(e){return ZE(e,(t,r)=>t.type==="text"&&r.type==="text",(t,r)=>({type:"text",value:t.value+r.value,position:{start:t.position.start,end:r.position.end}}))}function tw(e){return Ee(e,(t,r,[n])=>{if(t.type!=="text")return t;let{value:a}=t;return n.type==="paragraph"&&(r===0&&(a=Br.trimStart(a)),r===n.children.length-1&&(a=Br.trimEnd(a))),{type:"sentence",position:t.position,children:Lr(a)}})}function rw(e){let t=new Set,r=new Set;return n(e,(u,i)=>{if(u.type==="wikiLink"){a(i);return}if(u.type==="text"){if(u.raw.includes("[["))for(let o of i)o.type==="paragraph"&&t.add(o);u.raw.includes("]]")&&a(i)}}),Ee(e,(u,i,o)=>{if(u.type!=="text")return u;let s=u.raw,c=o.findIndex(f=>f?.type==="paragraph"||f?.type==="heading"),l=c===-1?void 0:o[c];if(l){o.slice(c+1).some(p=>p?.type==="blockquote")&&(s=Kh(s,u));let f=o[0];f?.type==="paragraph"&&(i===0&&(s=Br.trimStart(s)),i===f.children.length-1&&(s=Br.trimEnd(s)))}return l&&r.has(l.position)?{type:"text",position:u.position,value:s}:{type:"sentence",position:u.position,children:Lr(s)}});function n(u,i){return(function o(s,c){if(i(s,c),s.children)for(let l of s.children)o(l,[s,...c])})(u,[])}function a(u){for(let i of u)i.type==="paragraph"&&t.has(i)&&r.add(i.position)}}function nw(e,t){return Ee(e,r=>{if(r.type!=="code")return r;let n=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(r.position.start.offset,r.position.end.offset));return r.isIndented=n,r})}function iw(e,t){return Ee(e,(r,n,a)=>{if(r.type==="code"){let u=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(r.position.start.offset,r.position.end.offset));if(r.isIndented=u,u)for(let i=0;i<a.length;i++){let o=a[i];if(o.hasIndentedCodeblock)break;o.type==="list"&&(o.hasIndentedCodeblock=!0)}}return r})}function aw(e,t){let{originalText:r}=t;return Ee(e,n=>{if(n.type==="image"||n.type==="imageReference")return n.originalAltText=Qh(r,n.position.start.offset,n.position.end.offset),n;if(n.type!=="link"||!n.url)return n;let a=Qh(r,n.position.start.offset,n.position.end.offset);return a&&/[[\]]/.test(a)&&(n.originalLabelText=a),n})}function Qh(e,t,r){let n=e.indexOf("[",t);if(n===-1||n>=r)return null;let a=1,u=n+1;for(;u<r;){let i=e[u];if(i==="\\"){u+=2;continue}if(i==="[")a++;else if(i==="]"&&(a--,a===0))return e.slice(n+1,u);u++}return null}function uw(e,t){return Ee(e,(a,u,i)=>{if(a.type==="list"&&a.children.length>0){for(let s=0;s<i.length;s++){let c=i[s];if(c.type==="list"&&!c.isAligned)return a.isAligned=!1,a}let o=i[0]?.children[u+1];if(o?.type==="code"&&o.isIndented)return a.isAligned=!1,a;a.isAligned=n(a)}return a});function r(a){return a.children.length===0?-1:a.children[0].position.start.column-1}function n(a){if(!a.ordered)return!0;let[u,i]=a.children;if(lt(u,t).leadingSpaces.length>1)return!0;let s=r(u);if(s===-1)return!1;if(a.children.length===1)return s%t.tabWidth===0;let c=r(i);return s!==c?!1:s%t.tabWidth===0?!0:lt(i,t).leadingSpaces.length>1}}function ow(e,t){return Ee(e,(a,u,i)=>{if(a.type==="list"&&a.children.length>0){for(let o=0;o<i.length;o++){let s=i[o];if(s.type==="list"&&!s.isAligned)return a.isAligned=!1,a}a.isAligned=n(a)}return a});function r(a){return a.children.length===0?-1:a.children[0].position.start.column-1}function n(a){if(!a.ordered)return!0;let[u,i]=a.children;if(lt(u,t).leadingSpaces.length>1)return!0;let s=r(u);if(s===-1)return!1;if(a.children.length===1)return s%t.tabWidth===0;let c=r(i);return s!==c?!1:s%t.tabWidth===0?!0:lt(i,t).leadingSpaces.length>1}}var Xh=QE;var _r=null;function Pr(e){if(_r!==null&&typeof _r.property){let t=_r;return _r=Pr.prototype=null,t}return _r=Pr.prototype=e??Object.create(null),new Pr}var sw=10;for(let e=0;e<=sw;e++)Pr();function fu(e){return Pr(e)}function lw(e,t="type"){fu(e);function r(n){let a=n[t],u=e[a];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return u}return r}var Jh=lw;var le=[["children"]],Zh={root:le[0],paragraph:le[0],sentence:le[0],word:[],whitespace:[],emphasis:le[0],strong:le[0],delete:le[0],inlineCode:[],wikiLink:[],link:le[0],image:[],blockquote:le[0],heading:le[0],code:[],html:[],list:le[0],thematicBreak:[],linkReference:le[0],imageReferLine truncated
@@ -0,0 +1,160 @@
import { Autocomplete } from './utility'
/**
* The header type declaration of `undici`.
*/
export type IncomingHttpHeaders = Record<string, string | string[] | undefined>
type HeaderNames = Autocomplete<
| 'Accept'
| 'Accept-CH'
| 'Accept-Charset'
| 'Accept-Encoding'
| 'Accept-Language'
| 'Accept-Patch'
| 'Accept-Post'
| 'Accept-Ranges'
| 'Access-Control-Allow-Credentials'
| 'Access-Control-Allow-Headers'
| 'Access-Control-Allow-Methods'
| 'Access-Control-Allow-Origin'
| 'Access-Control-Expose-Headers'
| 'Access-Control-Max-Age'
| 'Access-Control-Request-Headers'
| 'Access-Control-Request-Method'
| 'Age'
| 'Allow'
| 'Alt-Svc'
| 'Alt-Used'
| 'Authorization'
| 'Cache-Control'
| 'Clear-Site-Data'
| 'Connection'
| 'Content-Disposition'
| 'Content-Encoding'
| 'Content-Language'
| 'Content-Length'
| 'Content-Location'
| 'Content-Range'
| 'Content-Security-Policy'
| 'Content-Security-Policy-Report-Only'
| 'Content-Type'
| 'Cookie'
| 'Cross-Origin-Embedder-Policy'
| 'Cross-Origin-Opener-Policy'
| 'Cross-Origin-Resource-Policy'
| 'Date'
| 'Device-Memory'
| 'ETag'
| 'Expect'
| 'Expect-CT'
| 'Expires'
| 'Forwarded'
| 'From'
| 'Host'
| 'If-Match'
| 'If-Modified-Since'
| 'If-None-Match'
| 'If-Range'
| 'If-Unmodified-Since'
| 'Keep-Alive'
| 'Last-Modified'
| 'Link'
| 'Location'
| 'Max-Forwards'
| 'Origin'
| 'Permissions-Policy'
| 'Priority'
| 'Proxy-Authenticate'
| 'Proxy-Authorization'
| 'Range'
| 'Referer'
| 'Referrer-Policy'
| 'Retry-After'
| 'Sec-Fetch-Dest'
| 'Sec-Fetch-Mode'
| 'Sec-Fetch-Site'
| 'Sec-Fetch-User'
| 'Sec-Purpose'
| 'Sec-WebSocket-Accept'
| 'Server'
| 'Server-Timing'
| 'Service-Worker-Navigation-Preload'
| 'Set-Cookie'
| 'SourceMap'
| 'Strict-Transport-Security'
| 'TE'
| 'Timing-Allow-Origin'
| 'Trailer'
| 'Transfer-Encoding'
| 'Upgrade'
| 'Upgrade-Insecure-Requests'
| 'User-Agent'
| 'Vary'
| 'Via'
| 'WWW-Authenticate'
| 'X-Content-Type-Options'
| 'X-Frame-Options'
>
type IANARegisteredMimeType = Autocomplete<
| 'audio/aac'
| 'video/x-msvideo'
| 'image/avif'
| 'video/av1'
| 'application/octet-stream'
| 'image/bmp'
| 'text/css'
| 'text/csv'
| 'application/vnd.ms-fontobject'
| 'application/epub+zip'
| 'image/gif'
| 'application/gzip'
| 'text/html'
| 'image/x-icon'
| 'text/calendar'
| 'image/jpeg'
| 'text/javascript'
| 'application/json'
| 'application/ld+json'
| 'audio/x-midi'
| 'audio/mpeg'
| 'video/mp4'
| 'video/mpeg'
| 'audio/ogg'
| 'video/ogg'
| 'application/ogg'
| 'audio/opus'
| 'font/otf'
| 'application/pdf'
| 'image/png'
| 'application/rtf'
| 'image/svg+xml'
| 'image/tiff'
| 'video/mp2t'
| 'font/ttf'
| 'text/plain'
| 'application/wasm'
| 'video/webm'
| 'audio/webm'
| 'image/webp'
| 'font/woff'
| 'font/woff2'
| 'application/xhtml+xml'
| 'application/xml'
| 'application/zip'
| 'video/3gpp'
| 'video/3gpp2'
| 'model/gltf+json'
| 'model/gltf-binary'
>
type KnownHeaderValues = {
'content-type': IANARegisteredMimeType
}
export type HeaderRecord = {
[K in HeaderNames | Lowercase<HeaderNames>]?: Lowercase<K> extends keyof KnownHeaderValues
? KnownHeaderValues[Lowercase<K>]
: string
}
@@ -0,0 +1 @@
{"version":3,"file":"hop-off.js","sources":["../../../src/icons/hop-off.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name HopOff\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTAuODIgMTYuMTJjMS42OS42IDMuOTEuNzkgNS4xOC44NS4yOC4wMS41My0uMDkuNy0uMjciIC8+CiAgPHBhdGggZD0iTTExLjE0IDIwLjU3Yy41Mi4yNCAyLjQ0IDEuMTIgNC4wOCAxLjM3LjQ2LjA2Ljg2LS4yNS45LS43MS4xMi0xLjUyLS4zLTMuNDMtLjUtNC4yOCIgLz4KICA8cGF0aCBkPSJNMTYuMTMgMjEuMDVjMS42NS42MyAzLjY4Ljg0IDQuODcuOTFhLjkuOSAwIDAgMCAuNy0uMjYiIC8+CiAgPHBhdGggZD0iTTE3Ljk5IDUuNTJhMjAuODMgMjAuODMgMCAwIDEgMy4xNSA0LjUuOC44IDAgMCAxLS42OCAxLjEzYy0xLjE3LjEtMi41LjAyLTMuOS0uMjUiIC8+CiAgPHBhdGggZD0iTTIwLjU3IDExLjE0Yy4yNC41MiAxLjEyIDIuNDQgMS4zNyA0LjA4LjA0LjMtLjA4LjU5LS4zMS43NSIgLz4KICA8cGF0aCBkPSJNNC45MyA0LjkzYTEwIDEwIDAgMCAwLS42NyAxMy40Yy4zNS40My45Ni40IDEuMTctLjEyLjY5LTEuNzEgMS4wNy01LjA3IDEuMDctNi43MSAxLjM0LjQ1IDMuMS45IDQuODguNjJhLjg1Ljg1IDAgMCAwIC40OC0uMjQiIC8+CiAgPHBhdGggZD0iTTUuNTIgMTcuOTljMS4wNS45NSAyLjkxIDIuNDIgNC41IDMuMTVhLjguOCAwIDAgMCAxLjEzLS42OGMuMi0yLjM0LS4zMy01LjMtMS41Ny04LjI4IiAvPgogIDxwYXRoIGQ9Ik04LjM1IDIuNjhhMTAgMTAgMCAwIDEgOS45OCAxLjU4Yy40My4zNS40Ljk2LS4xMiAxLjE3LTEuNS42LTQuMy45OC02LjA3IDEuMDUiIC8+CiAgPHBhdGggZD0ibTIgMiAyMCAyMCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/hop-off\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst HopOff = createLucideIcon('HopOff', [\n ['path', { d: 'M10.82 16.12c1.69.6 3.91.79 5.18.85.28.01.53-.09.7-.27', key: 'qyzcap' }],\n [\n 'path',\n {\n d: 'M11.14 20.57c.52.24 2.44 1.12 4.08 1.37.46.06.86-.25.9-.71.12-1.52-.3-3.43-.5-4.28',\n key: 'y078lb',\n },\n ],\n ['path', { d: 'M16.13 21.05c1.65.63 3.68.84 4.87.91a.9.9 0 0 0 .7-.26', key: '1utre3' }],\n [\n 'path',\n {\n d: 'M17.99 5.52a20.83 20.83 0 0 1 3.15 4.5.8.8 0 0 1-.68 1.13c-1.17.1-2.5.02-3.9-.25',\n key: '17o9hm',\n },\n ],\n ['path', { d: 'M20.57 11.14c.24.52 1.12 2.44 1.37 4.08.04.3-.08.59-.31.75', key: '1d1n4p' }],\n [\n 'path',\n {\n d: 'M4.93 4.93a10 10 0 0 0-.67 13.4c.35.43.96.4 1.17-.12.69-1.71 1.07-5.07 1.07-6.71 1.34.45 3.1.9 4.88.62a.85.85 0 0 0 .48-.24',\n key: '9uv3tt',\n },\n ],\n [\n 'path',\n {\n d: 'M5.52 17.99c1.05.95 2.91 2.42 4.5 3.15a.8.8 0 0 0 1.13-.68c.2-2.34-.33-5.3-1.57-8.28',\n key: '1292wz',\n },\n ],\n [\n 'path',\n {\n d: 'M8.35 2.68a10 10 0 0 1 9.98 1.58c.43.35.4.96-.12 1.17-1.5.6-4.3.98-6.07 1.05',\n key: '7ozu9p',\n },\n ],\n ['path', { d: 'm2 2 20 20', key: '1ooewy' }],\n]);\n\nexport default HopOff;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,iBAAiB,QAAU,CAAA,CAAA,CAAA;AAAA,CAAA,CACxC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA0D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CACvF,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA0D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CACvF,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAALine truncated
@@ -0,0 +1,5 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
//#region src/request/constants.ts
const GET_MATCH_RESULT = Symbol();
//#endregion
exports.GET_MATCH_RESULT = GET_MATCH_RESULT;
@@ -0,0 +1,8 @@
import { a as MS_IN_HOUR } from "./constants-BuFquuHl.mjs";
import addMilliseconds from "./addMilliseconds.mjs";
function addHours(date, hours) {
return addMilliseconds(date, hours * MS_IN_HOUR);
}
export {
addHours as default
};
@@ -0,0 +1 @@
{"version":3,"file":"activity-square.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,3 @@
declare const HeadersPlugin: any;
export default HeadersPlugin;
//# sourceMappingURL=headers.d.ts.map
@@ -0,0 +1 @@
module.exports={C:{"59":0.00424,"115":0.2414,"119":0.00424,"120":0.27951,"121":0.57173,"123":0.00424,"124":0.01271,"125":0.00424,"127":0.00424,"129":0.00424,"135":0.00424,"136":0.01271,"138":0.00424,"139":0.00424,"140":0.03388,"142":0.01271,"144":0.02965,"146":0.00424,"149":0.03388,"150":0.01271,"151":0.04235,"152":0.03388,"153":0.01694,"154":0.19058,"155":0.82159,"156":0.62255,"157":0.02541,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 122 126 128 130 131 132 133 134 137 141 143 145 147 148 158 159 160 3.5 3.6"},D:{"49":0.00424,"62":0.00424,"63":0.00424,"67":0.00424,"68":0.00847,"69":0.00424,"70":0.00424,"72":0.00424,"79":0.00424,"83":0.00424,"91":0.00424,"101":0.00847,"103":0.05082,"104":0.04659,"105":0.05082,"106":0.04659,"107":0.05082,"108":0.04235,"109":0.43621,"110":0.04659,"111":0.06353,"112":0.05506,"113":0.00424,"114":0.02541,"116":0.10164,"117":0.05506,"118":0.52091,"119":0.62255,"120":0.6776,"121":0.01271,"122":0.01694,"123":0.01271,"124":0.06353,"125":0.00424,"126":0.00424,"128":0.24563,"130":0.00847,"131":0.11011,"132":0.00847,"133":0.1694,"134":0.08047,"135":0.09317,"136":0.09317,"137":0.08047,"138":0.1694,"139":0.16093,"140":0.09317,"141":0.10164,"142":0.31339,"143":0.01694,"144":0.02541,"145":0.06353,"146":0.13976,"147":0.05929,"148":0.05082,"149":0.90629,"150":0.65219,"151":2.39701,"152":8.67328,"153":7.56795,"154":1.58813,"155":0.02541,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 64 65 66 71 73 74 75 76 77 78 80 81 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 102 115 127 129 156 157"},F:{"29":0.00424,"52":0.00424,"54":0.00424,"55":0.00424,"56":0.00847,"95":0.00424,"100":0.00424,"101":0.02541,"105":0.00424,"106":0.01694,"107":0.00424,"114":0.01271,"116":0.00424,"121":0.00424,"122":0.00424,"132":0.00424,"133":0.01271,"134":0.072,"135":0.5802,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 102 103 104 108 109 110 111 112 113 115 117 118 119 120 123 124 125 126 127 131 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00847,"109":0.01271,"114":0.00424,"119":0.28798,"120":0.35998,"122":0.01271,"124":0.00424,"132":0.00424,"133":0.00424,"134":0.00424,"137":0.00424,"138":0.00424,"139":0.00424,"140":0.00847,"143":0.00424,"144":0.14399,"145":0.00847,"146":0.00424,"147":0.03812,"148":0.00424,"149":0.02541,"150":0.02965,"151":0.19905,"152":1.97775,"153":2.24032,"154":0.52091,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 121 123 125 126 127 128 129 130 131 135 136 141 142"},E:{"27":0.17364,_:"4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.4 16.0 16.1 16.2 16.3 27.1 27.2 TP","11.1":0.00424,"13.1":0.00424,"14.1":0.00424,"15.5":0.01694,"15.6":0.02541,"16.4":0.00424,"16.5":0.00424,"16.6":0.03812,"17.0":0.00424,"17.1":0.01271,"17.2":0.00424,"17.3":0.00424,"17.4":0.00424,"17.5":0.00424,"17.6":0.06776,"18.0":0.00424,"18.1":0.00424,"18.2":0.01271,"18.3":0.00847,"18.4":0.00847,"18.5-18.7":0.05506,"26.0":0.00424,"26.1":0.02541,"26.2":0.02965,"26.3":0.02118,"26.4":0.04235,"26.5":0.18634,"26.6":1.694},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00085,"5.0-5.1":0.00085,"6.0-6.1":0,"7.0-7.1":0.0017,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.00852,"11.0-11.2":0.00085,"11.3-11.4":0.0017,"12.0-12.1":0,"12.2-12.5":0.02215,"13.0-13.1":0,"13.2":0.00426,"13.3":0,"13.4-13.7":0.00085,"14.0-14.4":0.00341,"14.5-14.8":0.00511,"15.0-15.1":0.00511,"15.2-15.3":0.00341,"15.4":0.00426,"15.5":0.00511,"15.6-15.8":0.11075,"16.0":0.00852,"16.1":0.01533,"16.2":0.00852,"16.3":0.01874,"16.4":0.00426,"16.5":0.00682,"16.6-16.7":0.1542,"17.0":0.00596,"17.1":0.00852,"17.2":0.00852,"17.3":0.01278,"17.4":0.01789,"17.5":0.03493,"17.6-17.7":0.0903,"18.0":0.01874,"18.1":0.03748,"18.2":0.05112,"18.3":0.0886,"18.4":0.05537,"18.5-18.7":1.14413,"26.0":0.05537,"26.1":0.05623,"26.2":0.14653,"26.3":0.15846,"26.4":0.11586,"26.5":0.7761,"26.6":4.78864,"27.0":0.36718,"27.1":0,"27.2":0.00937},P:{"4":0.00943,"20":0.01887,"22":0.03774,"23":0.00943,"24":0.01887,"25":0.00943,"26":0.0283,"27":0.0283,"28":0.54716,"29":0.51886,"30":4.03767,_:"21 5.0-5.4 6.2-6.4 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.16981,"8.2":0.00943,"19.0":0.00943},I:{"0":0.02304,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.83002,_:"10 11 12 1Line truncated
@@ -0,0 +1,45 @@
import { urlAlphabet } from './url-alphabet/index.js'
let random = bytes => crypto.getRandomValues(new Uint8Array(bytes))
let customRandom = (alphabet, defaultSize, getRandom) => {
let mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 1
let step = -~((1.6 * mask * defaultSize) / alphabet.length)
return (size = defaultSize) => {
if (size <= 0) return ''
let id = ''
while (true) {
let bytes = getRandom(step)
let j = step | 0
while (j--) {
id += alphabet[bytes[j] & mask] || ''
if (id.length === size) return id
}
}
}
}
let customAlphabet = (alphabet, size = 21) =>
customRandom(alphabet, size, random)
let nanoid = (size = 21) =>
crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {
byte &= 63
if (byte < 36) {
id += byte.toString(36)
} else if (byte < 62) {
id += (byte - 26).toString(36).toUpperCase()
} else if (byte > 62) {
id += '-'
} else {
id += '_'
}
return id
}, '')
export { nanoid, customAlphabet, customRandom, urlAlphabet, random }
@@ -0,0 +1 @@
{"version":3,"names":["_debug","data","require","_path","_async","_moduleTypes","_url","_importMetaResolve","_fs","debug","buildDebug","EXACT_RE","BABEL_PLUGIN_PREFIX_RE","BABEL_PRESET_PREFIX_RE","BABEL_PLUGIN_ORG_RE","BABEL_PRESET_ORG_RE","OTHER_PLUGIN_ORG_RE","OTHER_PRESET_ORG_RE","OTHER_ORG_DEFAULT_RE","resolvePlugin","exports","resolveStandardizedName","bind","resolvePreset","loadPlugin","name","dirname","filepath","loader","isAsync","value","requireModule","loadPreset","standardizeName","type","path","isAbsolute","isPreset","replace","resolveAlternativesHelper","standardizedName","error","code","message","oppositeType","transformName","tryRequireResolve","id","v","w","split","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","tryImportMetaResolve","options","importMetaResolve","resolveStandardizedNameForRequire","it","res","next","done","resolveStandardizedNameForImport","parentUrl","pathToFileURL","join","href","fileURLToPath","allowAsync","supportsESM","resolved","existsSync","Object","assign","e","e2","LOADING_MODULES","Set","has","add","loadCodeDefault","err","delete"],"sources":["../../../src/config/files/plugins.ts"],"sourcesContent":["/**\n * This file handles all logic for converting string-based configuration references into loaded objects.\n */\n\nimport buildDebug from \"debug\";\nimport path from \"node:path\";\nimport type { Handler } from \"gensync\";\nimport { isAsync } from \"../../gensync-utils/async.ts\";\nimport loadCodeDefault, { supportsESM } from \"./module-types.ts\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\n\nimport { resolve as importMetaResolve } from \"../../vendor/import-meta-resolve.js\";\n\nimport { createRequire } from \"node:module\";\nimport { existsSync } from \"node:fs\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:plugins\");\n\nconst EXACT_RE = /^module:/;\nconst BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-plugin-)/;\nconst BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-preset-)/;\nconst BABEL_PLUGIN_ORG_RE = /^(@babel\\/)(?!plugin-|[^/]+\\/)/;\nconst BABEL_PRESET_ORG_RE = /^(@babel\\/)(?!preset-|[^/]+\\/)/;\nconst OTHER_PLUGIN_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-plugin(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_PRESET_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-preset(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;\n\nexport const resolvePlugin = resolveStandardizedName.bind(null, \"plugin\");\nexport const resolvePreset = resolveStandardizedName.bind(null, \"preset\");\n\nexport function* loadPlugin(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePlugin(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"plugin\", loader, filepath);\n debug(\"Loaded plugin %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nexport function* loadPreset(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePreset(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"preset\", loader, filepath);\n\n debug(\"Loaded preset %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nfunction standardizeName(type: \"plugin\" | \"preset\", name: string) {\n // Let absolute and relative paths through.\n if (path.isAbsolute(name)) return name;\n\n const isPreset = type === \"preset\";\n\n return (\n name\n // foo -> babel-preset-foo\n .replace(\n isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE,\n `babel-${type}-`,\n )\n // @babel/es2015 -> @babel/preset-es2015\n .replace(\n isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE,\n `$1${type}-`,\n )\n // @foo/mypreset -> @foo/babel-preset-mypreset\n .replace(\n isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE,\n `$1babel-${type}-`,\n )\n // @foo -> @foo/babel-preset\n .replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`)\n // module:mypreset -> mypreset\n .replace(EXACT_RE, \"\")\n );\n}\n\ntype Result<T> = { error: Error; value: null } | { error: null; value: T };\n\nfunction* resolveAlternativesHelper(\n type: \"plugin\" | \"preset\",\n name: string,\n): Iterator<string, string, Result<string>> {\n const standardizedName = standardizeName(type, name);\n const { error, value } = yield standardizedName;\n if (!error) return value;\n\n // @ts-expect-error code may not index error\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n if (standardizedName !== name && !(yield name).error) {\n error.message += `\\n- If you want to resolve \"${name}\", use \"module:${name}\"`;\n }\n\n if (!(yield standardizeName(type, \"@babel/\" + name)).error) {\n error.message += `\\n- DiLine truncated
@@ -0,0 +1 @@
{"version":3,"file":"rows-2.js","sources":["../../../src/icons/rows-2.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Rows2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik0zIDEyaDE4IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/rows-2\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Rows2 = createLucideIcon('Rows2', [\n ['rect', { width: '18', height: '18', x: '3', y: '3', rx: '2', key: 'afitv7' }],\n ['path', { d: 'M3 12h18', key: '1i2n21' }],\n]);\n\nexport default Rows2;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,iBAAiB,OAAS,CAAA,CAAA,CAAA;AAAA,CAAA,CACtC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC9E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC3C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,248 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("@typescript-eslint/utils");
const util_1 = require("../util");
const getESLintCoreRule_1 = require("../util/getESLintCoreRule");
const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-magic-numbers');
// Extend base schema with additional property to ignore TS numeric literal types
const schema = (0, util_1.deepMerge)(
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- https://github.com/microsoft/TypeScript/issues/17002
Array.isArray(baseRule.meta.schema)
? baseRule.meta.schema[0]
: baseRule.meta.schema, {
properties: {
ignoreEnums: {
type: 'boolean',
description: 'Whether enums used in TypeScript are considered okay.',
},
ignoreNumericLiteralTypes: {
type: 'boolean',
description: 'Whether numbers used in TypeScript numeric literal types are considered okay.',
},
ignoreReadonlyClassProperties: {
type: 'boolean',
description: 'Whether `readonly` class properties are considered okay.',
},
ignoreTypeIndexes: {
type: 'boolean',
description: 'Whether numbers used to index types are okay.',
},
},
});
exports.default = (0, util_1.createRule)({
name: 'no-magic-numbers',
meta: {
type: 'suggestion',
// defaultOptions, -- base rule does not use defaultOptions
docs: {
description: 'Disallow magic numbers',
extendsBaseRule: true,
frozen: true,
},
messages: baseRule.meta.messages,
schema: [schema],
},
defaultOptions: [
{
detectObjects: false,
enforceConst: false,
ignore: [],
ignoreArrayIndexes: false,
ignoreEnums: false,
ignoreNumericLiteralTypes: false,
ignoreReadonlyClassProperties: false,
ignoreTypeIndexes: false,
},
],
create(context, [options]) {
const rules = baseRule.create(context);
const ignored = new Set((options.ignore ?? []).map(normalizeIgnoreValue));
return {
Literal(node) {
// If it’s not a numeric literal we’re not interested
if (typeof node.value !== 'number' && typeof node.value !== 'bigint') {
return;
}
// This will be `true` if we’re configured to ignore this case (eg. it’s
// an enum and `ignoreEnums` is `true`). It will be `false` if we’re not
// configured to ignore this case. It will remain `undefined` if this is
// not one of our exception cases, and we’ll fall back to the base rule.
let isAllowed;
// Check if the node is ignored
if (ignored.has(normalizeLiteralValue(node, node.value))) {
isAllowed = true;
}
// Check if the node is a TypeScript enum declaration
else if (isParentTSEnumDeclaration(node)) {
isAllowed = options.ignoreEnums === true;
}
// Check TypeScript specific nodes for Numeric Literal
else if (isTSNumericLiteralType(node)) {
isAllowed = options.ignoreNumericLiteralTypes === true;
}
// Check if the node is a type index
else if (isAncestorTSIndexedAccessType(node)) {
isAllowed = options.ignoreTypeIndexes === true;
}
// Check if the node is a readonly class property
else if (isParentTSReadonlyPropertyDefinition(node)) {
isAllowed = options.ignoreReadonlyClassProperties === true;
}
// If we’ve hit a case where the ignore option is true we can return now
if (isAllowed === true) {
return;
}
// If the ignore option is *not* set we can report it now
if (isAllowed === false) {
let fullNumberNode = node;
let raw = node.raw;
if (node.parent.type === utils_1.AST_NODE_TYPES.UnaryExpression &&
// the base rule only shows the operator for negative numbers
// https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/lib/rules/no-magic-numbers.js#L126
node.parent.operator === '-') {
fullNumberNode = node.parent;
raw = `${node.parent.operator}${node.raw}`;
}
context.report({
node: fullNumberNode,
messageId: 'noMagic',
data: { raw },
});
return;
}
// Let the base rule deal with the rest
rules.Literal(node);
},
};
},
});
/**
* Convert the value to bigint if it's a string. Otherwise, return the value as-is.
* @param value The value to normalize.
* @returns The normalized value.
*/
function normalizeIgnoreValue(value) {
if (typeof value === 'string') {
return BigInt(value.slice(0, -1));
}
return value;
}
/**
* Converts the node to its numeric value, handling prefixed numbers (-1 / +1)
* @param node the node to normalize.
* @param value the node's value.
*/
function normalizeLiteralValue(node, value) {
if (node.parent.type === utils_1.AST_NODE_TYPES.UnaryExpression &&
['-', '+'].includes(node.parent.operator) &&
node.parent.operator === '-') {
return -value;
}
return value;
}
/**
* Gets the true parent of the literal, handling prefixed numbers (-1 / +1)
*/
function getLiteralParent(node) {
if (node.parent.type === utils_1.AST_NODE_TYPES.UnaryExpression &&
['-', '+'].includes(node.parent.operator)) {
return node.parent.parent;
}
return node.parent;
}
/**
* Checks if the node grandparent is a Typescript type alias declaration
* @param node the node to be validated.
* @returns true if the node grandparent is a Typescript type alias declaration
* @private
*/
function isGrandparentTSTypeAliasDeclaration(node) {
return node.parent?.parent?.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration;
}
/**
* Checks if the node grandparent is a Typescript union type and its parent is a type alias declaration
* @param node the node to be validated.
* @returns true if the node grandparent is a Typescript union type and its parent is a type alias declaration
* @private
*/
function isGrandparentTSUnionType(node) {
if (node.parent?.parent?.type === utils_1.AST_NODE_TYPES.TSUnionType) {
return isGrandparentTSTypeAliasDeclaration(node.parent);
}
return false;
}
/**
* Checks if the node parent is a Typescript enum member
* @param node the node to be validated.
* @returns true if the node parent is a Typescript enum member
* @private
*/
function isParentTSEnumDeclaration(node) {
const parent = getLiteralParent(node);
return parent?.type === utils_1.AST_NODE_TYPES.TSEnumMember;
}
/**
* Checks if the node parent is a Typescript literal type
* @param node the node to be validated.
* @returns true if the node parent is a Typescript literal type
* @private
*/
function isParentTSLiteralType(node) {
return node.parent?.type === utils_1.AST_NODE_TYPES.TSLiteralType;
}
/**
* Checks if the node is a valid TypeScript numeric literal type.
* @param node the node to be validated.
* @returns true if the node is a TypeScript numeric literal type.
* @private
*/
function isTSNumericLiteralType(node) {
// For negative numbers, use the parent node
if (node.parent?.type === utils_1.AST_NODE_TYPES.UnaryExpression &&
node.parent.operator === '-') {
node = node.parent;
}
// If the parent node is not a TSLiteralType, early return
if (!isParentTSLiteralType(node)) {
return false;
}
// If the grandparent is a TSTypeAliasDeclaration, ignore
if (isGrandparentTSTypeAliasDeclaration(node)) {
return true;
}
// If the grandparent is a TSUnionType and it's parent is a TSTypeAliasDeclaration, ignore
if (isGrandparentTSUnionType(node)) {
return true;
}
return false;
}
/**
* Checks if the node parent is a readonly class property
* @param node the node to be validated.
* @returns true if the node parent is a readonly class property
* @private
*/
function isParentTSReadonlyPropertyDefinition(node) {
const parent = getLiteralParent(node);
if (parent?.type === utils_1.AST_NODE_TYPES.PropertyDefinition && parent.readonly) {
return true;
}
return false;
}
/**
* Checks if the node is part of a type indexed access (eg. Foo[4])
* @param node the node to be validated.
* @returns true if the node is part of an indexed access
* @private
*/
function isAncestorTSIndexedAccessType(node) {
// Handle unary expressions (eg. -4)
let ancestor = getLiteralParent(node);
// Go up another level while we’re part of a type union (eg. 1 | 2) or
// intersection (eg. 1 & 2)
while (ancestor?.parent?.type === utils_1.AST_NODE_TYPES.TSUnionType ||
ancestor?.parent?.type === utils_1.AST_NODE_TYPES.TSIntersectionType) {
ancestor = ancestor.parent;
}
return ancestor?.parent?.type === utils_1.AST_NODE_TYPES.TSIndexedAccessType;
}
@@ -0,0 +1 @@
{"version":3,"file":"file-key-2.js","sources":["../../../src/icons/file-key-2.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name FileKey2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNCAyMmgxNGEyIDIgMCAwIDAgMi0yVjdsLTUtNUg2YTIgMiAwIDAgMC0yIDJ2NiIgLz4KICA8cGF0aCBkPSJNMTQgMnY0YTIgMiAwIDAgMCAyIDJoNCIgLz4KICA8Y2lyY2xlIGN4PSI0IiBjeT0iMTYiIHI9IjIiIC8+CiAgPHBhdGggZD0ibTEwIDEwLTQuNSA0LjUiIC8+CiAgPHBhdGggZD0ibTkgMTEgMSAxIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/file-key-2\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst FileKey2 = createLucideIcon('FileKey2', [\n ['path', { d: 'M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6', key: 'rc0qvx' }],\n ['path', { d: 'M14 2v4a2 2 0 0 0 2 2h4', key: 'tnqrlb' }],\n ['circle', { cx: '4', cy: '16', r: '2', key: '1ehqvc' }],\n ['path', { d: 'm10 10-4.5 4.5', key: '7fwrp6' }],\n ['path', { d: 'm9 11 1 1', key: 'wa6s5q' }],\n]);\n\nexport default FileKey2;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,iBAAiB,UAAY,CAAA,CAAA,CAAA;AAAA,CAAA,CAC5C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAmD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAChF,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CACxD,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,EAAK,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CAAA,CACvD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC/C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC5C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,40 @@
import {isTopLevelDeclaration} from "../parser/tokenizer";
import {TokenType as tt} from "../parser/tokenizer/types";
export const EMPTY_DECLARATION_INFO = {
typeDeclarations: new Set(),
valueDeclarations: new Set(),
};
/**
* Get all top-level identifiers that should be preserved when exported in TypeScript.
*
* Examples:
* - If an identifier is declared as `const x`, then `export {x}` should be preserved.
* - If it's declared as `type x`, then `export {x}` should be removed.
* - If it's declared as both `const x` and `type x`, then the export should be preserved.
* - Classes and enums should be preserved (even though they also introduce types).
* - Imported identifiers should be preserved since we don't have enough information to
* rule them out. --isolatedModules disallows re-exports, which catches errors here.
*/
export default function getDeclarationInfo(tokens) {
const typeDeclarations = new Set();
const valueDeclarations = new Set();
for (let i = 0; i < tokens.tokens.length; i++) {
const token = tokens.tokens[i];
if (token.type === tt.name && isTopLevelDeclaration(token)) {
if (token.isType) {
typeDeclarations.add(tokens.identifierNameForToken(token));
} else {
valueDeclarations.add(tokens.identifierNameForToken(token));
}
}
}
return {typeDeclarations, valueDeclarations};
}
@@ -0,0 +1,69 @@
import Agent from './agent'
import Dispatcher from './dispatcher'
import { Interceptable, MockInterceptor } from './mock-interceptor'
import MockDispatch = MockInterceptor.MockDispatch
import { MockCallHistory } from './mock-call-history'
export default MockAgent
/** A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead. */
declare class MockAgent<TMockAgentOptions extends MockAgent.Options = MockAgent.Options> extends Dispatcher {
constructor (options?: TMockAgentOptions)
/** Creates and retrieves mock Dispatcher instances which can then be used to intercept HTTP requests. If the number of connections on the mock agent is set to 1, a MockClient instance is returned. Otherwise a MockPool instance is returned. */
get<TInterceptable extends Interceptable>(origin: string): TInterceptable
get<TInterceptable extends Interceptable>(origin: RegExp): TInterceptable
get<TInterceptable extends Interceptable>(origin: ((origin: string) => boolean)): TInterceptable
/** Dispatches a mocked request. */
dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean
/** Closes the mock agent and waits for registered mock pools and clients to also close before resolving. */
close (): Promise<void>
/** Disables mocking in MockAgent. */
deactivate (): void
/** Enables mocking in a MockAgent instance. When instantiated, a MockAgent is automatically activated. Therefore, this method is only effective after `MockAgent.deactivate` has been called. */
activate (): void
/** Define host matchers so only matching requests that aren't intercepted by the mock dispatchers will be attempted. */
enableNetConnect (): void
enableNetConnect (host: string): void
enableNetConnect (host: RegExp): void
enableNetConnect (host: ((host: string) => boolean)): void
/** Causes all requests to throw when requests are not matched in a MockAgent intercept. */
disableNetConnect (): void
/** get call history. returns the MockAgent call history or undefined if the option is not enabled. */
getCallHistory (): MockCallHistory | undefined
/** clear every call history. Any MockCallHistoryLog will be deleted on the MockCallHistory instance */
clearCallHistory (): void
/** Enable call history. Any subsequence calls will then be registered. */
enableCallHistory (): this
/** Disable call history. Any subsequence calls will then not be registered. */
disableCallHistory (): this
pendingInterceptors (): MockAgent.PendingInterceptor[]
assertNoPendingInterceptors (options?: {
pendingInterceptorsFormatter?: MockAgent.PendingInterceptorsFormatter;
}): void
}
declare namespace MockAgent {
/** An interceptor that was registered on a mock dispatcher and has not been consumed yet. */
export interface PendingInterceptor extends MockDispatch {
origin: string;
}
export interface PendingInterceptorsFormatter {
format(pendingInterceptors: readonly PendingInterceptor[]): string;
}
/** MockAgent options. */
export interface Options extends Agent.Options {
/** A custom agent to be encapsulated by the MockAgent. */
agent?: Dispatcher;
/** Ignore trailing slashes in the path */
ignoreTrailingSlash?: boolean;
/** Accept URLs with search parameters using non standard syntaxes. default false */
acceptNonStandardSearchParameters?: boolean;
/** Enable call history. you can either call MockAgent.enableCallHistory(). default false */
enableCallHistory?: boolean
}
}
@@ -0,0 +1,267 @@
import { K as isSingleLine, M as getTokenBeforeClosingBracket, f as createRule, g as import_ast_utils } from "../utils.js";
function validateClosingSlash(context, node, option) {
const sourceCode = context.sourceCode;
let adjacent;
if ("selfClosing" in node && node.selfClosing) {
const lastTokens = sourceCode.getLastTokens(node, 2);
adjacent = !sourceCode.isSpaceBetween(lastTokens[0], lastTokens[1]);
if (option === "never") {
if (!adjacent) context.report({
node,
messageId: "selfCloseSlashNoSpace",
loc: {
start: lastTokens[0].loc.start,
end: lastTokens[1].loc.end
},
fix(fixer) {
return fixer.removeRange([lastTokens[0].range[1], lastTokens[1].range[0]]);
}
});
} else if (option === "always" && adjacent) context.report({
node,
messageId: "selfCloseSlashNeedSpace",
loc: {
start: lastTokens[0].loc.start,
end: lastTokens[1].loc.end
},
fix(fixer) {
return fixer.insertTextBefore(lastTokens[1], " ");
}
});
} else {
const firstTokens = sourceCode.getFirstTokens(node, 2);
adjacent = !sourceCode.isSpaceBetween(firstTokens[0], firstTokens[1]);
if (option === "never") {
if (!adjacent) context.report({
node,
messageId: "closeSlashNoSpace",
loc: {
start: firstTokens[0].loc.start,
end: firstTokens[1].loc.end
},
fix(fixer) {
return fixer.removeRange([firstTokens[0].range[1], firstTokens[1].range[0]]);
}
});
} else if (option === "always" && adjacent) context.report({
node,
messageId: "closeSlashNeedSpace",
loc: {
start: firstTokens[0].loc.start,
end: firstTokens[1].loc.end
},
fix(fixer) {
return fixer.insertTextBefore(firstTokens[1], " ");
}
});
}
}
function validateBeforeSelfClosing(context, node, option) {
const sourceCode = context.sourceCode;
const leftToken = getTokenBeforeClosingBracket(node);
const closingSlash = sourceCode.getTokenAfter(leftToken);
if (!isSingleLine(node) && option === "proportional-always") {
if ((0, import_ast_utils.isTokenOnSameLine)(leftToken, closingSlash)) {
context.report({
node,
messageId: "beforeSelfCloseNeedNewline",
loc: leftToken.loc.end,
fix(fixer) {
return fixer.insertTextBefore(closingSlash, "\n");
}
});
return;
}
}
if (!(0, import_ast_utils.isTokenOnSameLine)(leftToken, closingSlash)) return;
const adjacent = !sourceCode.isSpaceBetween(leftToken, closingSlash);
if ((option === "always" || option === "proportional-always") && adjacent) context.report({
node,
messageId: "beforeSelfCloseNeedSpace",
loc: closingSlash.loc.start,
fix(fixer) {
return fixer.insertTextBefore(closingSlash, " ");
}
});
else if (option === "never" && !adjacent) context.report({
node,
messageId: "beforeSelfCloseNoSpace",
loc: closingSlash.loc.start,
fix(fixer) {
const previousToken = sourceCode.getTokenBefore(closingSlash);
return fixer.removeRange([previousToken.range[1], closingSlash.range[0]]);
}
});
}
function validateAfterOpening(context, node, option) {
const sourceCode = context.sourceCode;
const openingToken = sourceCode.getTokenBefore(node.name);
if (option === "allow-multiline") {
if (openingToken.loc.start.line !== node.name.loc.start.line) return;
}
const adjacent = !sourceCode.isSpaceBetween(openingToken, node.name);
if (option === "never" || option === "allow-multiline") {
if (!adjacent) context.report({
node,
messageId: "afterOpenNoSpace",
loc: {
start: openingToken.loc.start,
end: node.name.loc.start
},
fix(fixer) {
return fixer.removeRange([openingToken.range[1], node.name.range[0]]);
}
});
} else if (option === "always" && adjacent) context.report({
node,
messageId: "afterOpenNeedSpace",
loc: {
start: openingToken.loc.start,
end: node.name.loc.start
},
fix(fixer) {
return fixer.insertTextBefore(node.name, " ");
}
});
}
function validateBeforeClosing(context, node, option) {
if (!("selfClosing" in node && node.selfClosing)) {
const sourceCode = context.sourceCode;
const leftToken = option === "proportional-always" ? getTokenBeforeClosingBracket(node) : sourceCode.getLastTokens(node, 2)[0];
const closingToken = sourceCode.getTokenAfter(leftToken);
if (!isSingleLine(node) && option === "proportional-always") {
if ((0, import_ast_utils.isTokenOnSameLine)(leftToken, closingToken)) {
context.report({
node,
messageId: "beforeCloseNeedNewline",
loc: leftToken.loc.end,
fix(fixer) {
return fixer.insertTextBefore(closingToken, "\n");
}
});
return;
}
}
if (leftToken.loc.start.line !== closingToken.loc.start.line) return;
const adjacent = !sourceCode.isSpaceBetween(leftToken, closingToken);
if (option === "never" && !adjacent) context.report({
node,
messageId: "beforeCloseNoSpace",
loc: {
start: leftToken.loc.end,
end: closingToken.loc.start
},
fix(fixer) {
return fixer.removeRange([leftToken.range[1], closingToken.range[0]]);
}
});
else if (option === "always" && adjacent) context.report({
node,
loc: {
start: leftToken.loc.end,
end: closingToken.loc.start
},
messageId: "beforeCloseNeedSpace",
fix(fixer) {
return fixer.insertTextBefore(closingToken, " ");
}
});
else if (option === "proportional-always" && node.type === "JSXOpeningElement" && adjacent !== isSingleLine(node)) context.report({
node,
messageId: "beforeCloseNeedSpace",
loc: {
start: leftToken.loc.end,
end: closingToken.loc.start
},
fix(fixer) {
return fixer.insertTextBefore(closingToken, " ");
}
});
}
}
var jsx_tag_spacing_default = createRule({
name: "jsx-tag-spacing",
meta: {
type: "layout",
docs: { description: "Enforce whitespace in and around the JSX opening and closing brackets" },
fixable: "whitespace",
schema: [{
type: "object",
properties: {
closingSlash: {
type: "string",
enum: [
"always",
"never",
"allow"
]
},
beforeSelfClosing: {
type: "string",
enum: [
"always",
"proportional-always",
"never",
"allow"
]
},
afterOpening: {
type: "string",
enum: [
"always",
"allow-multiline",
"never",
"allow"
]
},
beforeClosing: {
type: "string",
enum: [
"always",
"proportional-always",
"never",
"allow"
]
}
},
additionalProperties: false
}],
defaultOptions: [{
closingSlash: "never",
beforeSelfClosing: "always",
afterOpening: "never",
beforeClosing: "allow"
}],
messages: {
selfCloseSlashNoSpace: "Whitespace is forbidden between `/` and `>`; write `/>`",
selfCloseSlashNeedSpace: "Whitespace is required between `/` and `>`; write `/ >`",
closeSlashNoSpace: "Whitespace is forbidden between `<` and `/`; write `</`",
closeSlashNeedSpace: "Whitespace is required between `<` and `/`; write `< /`",
beforeSelfCloseNoSpace: "A space is forbidden before closing bracket",
beforeSelfCloseNeedSpace: "A space is required before closing bracket",
beforeSelfCloseNeedNewline: "A newline is required before closing bracket",
afterOpenNoSpace: "A space is forbidden after opening bracket",
afterOpenNeedSpace: "A space is required after opening bracket",
beforeCloseNoSpace: "A space is forbidden before closing bracket",
beforeCloseNeedSpace: "Whitespace is required before closing bracket",
beforeCloseNeedNewline: "A newline is required before closing bracket"
}
},
create(context, [options]) {
const { closingSlash, beforeSelfClosing, afterOpening, beforeClosing } = options;
return {
JSXOpeningElement(node) {
if (closingSlash !== "allow" && node.selfClosing) validateClosingSlash(context, node, closingSlash);
if (afterOpening !== "allow") validateAfterOpening(context, node, afterOpening);
if (beforeSelfClosing !== "allow" && node.selfClosing) validateBeforeSelfClosing(context, node, beforeSelfClosing);
if (beforeClosing !== "allow") validateBeforeClosing(context, node, beforeClosing);
},
JSXClosingElement(node) {
if (afterOpening !== "allow") validateAfterOpening(context, node, afterOpening);
if (closingSlash !== "allow") validateClosingSlash(context, node, closingSlash);
if (beforeClosing !== "allow") validateBeforeClosing(context, node, beforeClosing);
}
};
}
});
export { jsx_tag_spacing_default as t };
@@ -0,0 +1 @@
{"version":3,"file":"parentheses.js","sources":["../../../src/icons/parentheses.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Parentheses\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOCAyMXMtNC0zLTQtOSA0LTkgNC05IiAvPgogIDxwYXRoIGQ9Ik0xNiAzczQgMyA0IDktNCA5LTQgOSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/parentheses\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Parentheses = createLucideIcon('Parentheses', [\n ['path', { d: 'M8 21s-4-3-4-9 4-9 4-9', key: 'uto9ud' }],\n ['path', { d: 'M16 3s4 3 4 9-4 9-4 9', key: '4w2vsq' }],\n]);\n\nexport default Parentheses;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,iBAAiB,aAAe,CAAA,CAAA,CAAA;AAAA,CAAA,CAClD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA0B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACvD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACxD,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,520 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
const boolSchema_1 = require("./boolSchema");
const dataType_1 = require("./dataType");
const applicability_1 = require("./applicability");
const dataType_2 = require("./dataType");
const defaults_1 = require("./defaults");
const keyword_1 = require("./keyword");
const subschema_1 = require("./subschema");
const codegen_1 = require("../codegen");
const names_1 = require("../names");
const resolve_1 = require("../resolve");
const util_1 = require("../util");
const errors_1 = require("../errors");
// schema compilation - generates validation function, subschemaCode (below) is used for subschemas
function validateFunctionCode(it) {
if (isSchemaObj(it)) {
checkKeywords(it);
if (schemaCxtHasRules(it)) {
topSchemaObjCode(it);
return;
}
}
validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
}
exports.validateFunctionCode = validateFunctionCode;
function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
if (opts.code.es5) {
gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {
gen.code((0, codegen_1._) `"use strict"; ${funcSourceUrl(schema, opts)}`);
destructureValCxtES5(gen, opts);
gen.code(body);
});
}
else {
gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body));
}
}
function destructureValCxt(opts) {
return (0, codegen_1._) `{${names_1.default.instancePath}="", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._) `, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`;
}
function destructureValCxtES5(gen, opts) {
gen.if(names_1.default.valCxt, () => {
gen.var(names_1.default.instancePath, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.instancePath}`);
gen.var(names_1.default.parentData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentData}`);
gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentDataProperty}`);
gen.var(names_1.default.rootData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.rootData}`);
if (opts.dynamicRef)
gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`);
}, () => {
gen.var(names_1.default.instancePath, (0, codegen_1._) `""`);
gen.var(names_1.default.parentData, (0, codegen_1._) `undefined`);
gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `undefined`);
gen.var(names_1.default.rootData, names_1.default.data);
if (opts.dynamicRef)
gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `{}`);
});
}
function topSchemaObjCode(it) {
const { schema, opts, gen } = it;
validateFunction(it, () => {
if (opts.$comment && schema.$comment)
commentKeyword(it);
checkNoDefault(it);
gen.let(names_1.default.vErrors, null);
gen.let(names_1.default.errors, 0);
if (opts.unevaluated)
resetEvaluated(it);
typeAndKeywords(it);
returnResults(it);
});
return;
}
function resetEvaluated(it) {
// TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated
const { gen, validateName } = it;
it.evaluated = gen.const("evaluated", (0, codegen_1._) `${validateName}.evaluated`);
gen.if((0, codegen_1._) `${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._) `${it.evaluated}.props`, (0, codegen_1._) `undefined`));
gen.if((0, codegen_1._) `${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._) `${it.evaluated}.items`, (0, codegen_1._) `undefined`));
}
function funcSourceUrl(schema, opts) {
const schId = typeof schema == "object" && schema[opts.schemaId];
return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._) `/*# sourceURL=${schId} */` : codegen_1.nil;
}
// schema compilation - this function is used recursively to generate code for sub-schemas
function subschemaCode(it, valid) {
if (isSchemaObj(it)) {
checkKeywords(it);
if (schemaCxtHasRules(it)) {
subSchemaObjCode(it, valid);
return;
}
}
(0, boolSchema_1.boolOrEmptySchema)(it, valid);
}
function schemaCxtHasRules({ schema, self }) {
if (typeof schema == "boolean")
return !schema;
for (const key in schema)
if (self.RULES.all[key])
return true;
return false;
}
function isSchemaObj(it) {
return typeof it.schema != "boolean";
}
function subSchemaObjCode(it, valid) {
const { schema, gen, opts } = it;
if (opts.$comment && schema.$comment)
commentKeyword(it);
updateContext(it);
checkAsyncSchema(it);
const errsCount = gen.const("_errs", names_1.default.errors);
typeAndKeywords(it, errsCount);
// TODO var
gen.var(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);
}
function checkKeywords(it) {
(0, util_1.checkUnknownRules)(it);
checkRefsAndKeywords(it);
}
function typeAndKeywords(it, errsCount) {
if (it.opts.jtd)
return schemaKeywords(it, [], false, errsCount);
const types = (0, dataType_1.getSchemaTypes)(it.schema);
const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types);
schemaKeywords(it, types, !checkedTypes, errsCount);
}
function checkRefsAndKeywords(it) {
const { schema, errSchemaPath, opts, self } = it;
if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self.RULES)) {
self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`);
}
}
function checkNoDefault(it) {
const { schema, opts } = it;
if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) {
(0, util_1.checkStrictMode)(it, "default is ignored in the schema root");
}
}
function updateContext(it) {
const schId = it.schema[it.opts.schemaId];
if (schId)
it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId);
}
function checkAsyncSchema(it) {
if (it.schema.$async && !it.schemaEnv.$async)
throw new Error("async schema in sync schema");
}
function commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) {
const msg = schema.$comment;
if (opts.$comment === true) {
gen.code((0, codegen_1._) `${names_1.default.self}.logger.log(${msg})`);
}
else if (typeof opts.$comment == "function") {
const schemaPath = (0, codegen_1.str) `${errSchemaPath}/$comment`;
const rootName = gen.scopeValue("root", { ref: schemaEnv.root });
gen.code((0, codegen_1._) `${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`);
}
}
function returnResults(it) {
const { gen, schemaEnv, validateName, ValidationError, opts } = it;
if (schemaEnv.$async) {
// TODO assign unevaluated
gen.if((0, codegen_1._) `${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._) `new ${ValidationError}(${names_1.default.vErrors})`));
}
else {
gen.assign((0, codegen_1._) `${validateName}.errors`, names_1.default.vErrors);
if (opts.unevaluated)
assignEvaluated(it);
gen.return((0, codegen_1._) `${names_1.default.errors} === 0`);
}
}
function assignEvaluated({ gen, evaluated, props, items }) {
if (props instanceof codegen_1.Name)
gen.assign((0, codegen_1._) `${evaluated}.props`, props);
if (items instanceof codegen_1.Name)
gen.assign((0, codegen_1._) `${evaluated}.items`, items);
}
function schemaKeywords(it, types, typeErrors, errsCount) {
const { gen, schema, data, allErrors, opts, self } = it;
const { RULES } = self;
if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) {
gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition)); // TODO typecast
return;
}
if (!opts.jtd)
checkStrictTypes(it, types);
gen.block(() => {
for (const group of RULES.rules)
groupKeywords(group);
groupKeywords(RULES.post);
});
function groupKeywords(group) {
if (!(0, applicability_1.shouldUseGroup)(schema, group))
return;
if (group.type) {
gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers));
iterateKeywords(it, group);
if (types.length === 1 && types[0] === group.type && typeErrors) {
gen.else();
(0, dataType_2.reportTypeError)(it);
}
gen.endIf();
}
else {
iterateKeywords(it, group);
}
// TODO make it "ok" call?
if (!allErrors)
gen.if((0, codegen_1._) `${names_1.default.errors} === ${errsCount || 0}`);
}
}
function iterateKeywords(it, group) {
const { gen, schema, opts: { useDefaults }, } = it;
if (useDefaults)
(0, defaults_1.assignDefaults)(it, group.type);
gen.block(() => {
for (const rule of group.rules) {
if ((0, applicability_1.shouldUseRule)(schema, rule)) {
keywordCode(it, rule.keyword, rule.definition, group.type);
}
}
});
}
function checkStrictTypes(it, types) {
if (it.schemaEnv.meta || !it.opts.strictTypes)
return;
checkContextTypes(it, types);
if (!it.opts.allowUnionTypes)
checkMultipleTypes(it, types);
checkKeywordTypes(it, it.dataTypes);
}
function checkContextTypes(it, types) {
if (!types.length)
return;
if (!it.dataTypes.length) {
it.dataTypes = types;
return;
}
types.forEach((t) => {
if (!includesType(it.dataTypes, t)) {
strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`);
}
});
narrowSchemaTypes(it, types);
}
function checkMultipleTypes(it, ts) {
if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) {
strictTypesError(it, "use allowUnionTypes to allow union type keyword");
}
}
function checkKeywordTypes(it, ts) {
const rules = it.self.RULES.all;
for (const keyword in rules) {
const rule = rules[keyword];
if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it.schema, rule)) {
const { type } = rule.definition;
if (type.length && !type.some((t) => hasApplicableType(ts, t))) {
strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`);
}
}
}
}
function hasApplicableType(schTs, kwdT) {
return schTs.includes(kwdT) || (kwdT === "number" && schTs.includes("integer"));
}
function includesType(ts, t) {
return ts.includes(t) || (t === "integer" && ts.includes("number"));
}
function narrowSchemaTypes(it, withTypes) {
const ts = [];
for (const t of it.dataTypes) {
if (includesType(withTypes, t))
ts.push(t);
else if (withTypes.includes("integer") && t === "number")
ts.push("integer");
}
it.dataTypes = ts;
}
function strictTypesError(it, msg) {
const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;
msg += ` at "${schemaPath}" (strictTypes)`;
(0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes);
}
class KeywordCxt {
constructor(it, def, keyword) {
(0, keyword_1.validateKeywordUsage)(it, def, keyword);
this.gen = it.gen;
this.allErrors = it.allErrors;
this.keyword = keyword;
this.data = it.data;
this.schema = it.schema[keyword];
this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data;
this.schemaValue = (0, util_1.schemaRefOrVal)(it, this.schema, keyword, this.$data);
this.schemaType = def.schemaType;
this.parentSchema = it.schema;
this.params = {};
this.it = it;
this.def = def;
if (this.$data) {
this.schemaCode = it.gen.const("vSchema", getData(this.$data, it));
}
else {
this.schemaCode = this.schemaValue;
if (!(0, keyword_1.validSchemaType)(this.schema, def.schemaType, def.allowUndefined)) {
throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`);
}
}
if ("code" in def ? def.trackErrors : def.errors !== false) {
this.errsCount = it.gen.const("_errs", names_1.default.errors);
}
}
result(condition, successAction, failAction) {
this.failResult((0, codegen_1.not)(condition), successAction, failAction);
}
failResult(condition, successAction, failAction) {
this.gen.if(condition);
if (failAction)
failAction();
else
this.error();
if (successAction) {
this.gen.else();
successAction();
if (this.allErrors)
this.gen.endIf();
}
else {
if (this.allErrors)
this.gen.endIf();
else
this.gen.else();
}
}
pass(condition, failAction) {
this.failResult((0, codegen_1.not)(condition), undefined, failAction);
}
fail(condition) {
if (condition === undefined) {
this.error();
if (!this.allErrors)
this.gen.if(false); // this branch will be removed by gen.optimize
return;
}
this.gen.if(condition);
this.error();
if (this.allErrors)
this.gen.endIf();
else
this.gen.else();
}
fail$data(condition) {
if (!this.$data)
return this.fail(condition);
const { schemaCode } = this;
this.fail((0, codegen_1._) `${schemaCode} !== undefined && (${(0, codegen_1.or)(this.invalid$data(), condition)})`);
}
error(append, errorParams, errorPaths) {
if (errorParams) {
this.setParams(errorParams);
this._error(append, errorPaths);
this.setParams({});
return;
}
this._error(append, errorPaths);
}
_error(append, errorPaths) {
;
(append ? errors_1.reportExtraError : errors_1.reportError)(this, this.def.error, errorPaths);
}
$dataError() {
(0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError);
}
reset() {
if (this.errsCount === undefined)
throw new Error('add "trackErrors" to keyword definition');
(0, errors_1.resetErrorsCount)(this.gen, this.errsCount);
}
ok(cond) {
if (!this.allErrors)
this.gen.if(cond);
}
setParams(obj, assign) {
if (assign)
Object.assign(this.params, obj);
else
this.params = obj;
}
block$data(valid, codeBlock, $dataValid = codegen_1.nil) {
this.gen.block(() => {
this.check$data(valid, $dataValid);
codeBlock();
});
}
check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) {
if (!this.$data)
return;
const { gen, schemaCode, schemaType, def } = this;
gen.if((0, codegen_1.or)((0, codegen_1._) `${schemaCode} === undefined`, $dataValid));
if (valid !== codegen_1.nil)
gen.assign(valid, true);
if (schemaType.length || def.validateSchema) {
gen.elseIf(this.invalid$data());
this.$dataError();
if (valid !== codegen_1.nil)
gen.assign(valid, false);
}
gen.else();
}
invalid$data() {
const { gen, schemaCode, schemaType, def, it } = this;
return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema());
function wrong$DataType() {
if (schemaType.length) {
/* istanbul ignore if */
if (!(schemaCode instanceof codegen_1.Name))
throw new Error("ajv implementation error");
const st = Array.isArray(schemaType) ? schemaType : [schemaType];
return (0, codegen_1._) `${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`;
}
return codegen_1.nil;
}
function invalid$DataSchema() {
if (def.validateSchema) {
const validateSchemaRef = gen.scopeValue("validate$data", { ref: def.validateSchema }); // TODO value.code for standalone
return (0, codegen_1._) `!${validateSchemaRef}(${schemaCode})`;
}
return codegen_1.nil;
}
}
subschema(appl, valid) {
const subschema = (0, subschema_1.getSubschema)(this.it, appl);
(0, subschema_1.extendSubschemaData)(subschema, this.it, appl);
(0, subschema_1.extendSubschemaMode)(subschema, appl);
const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined };
subschemaCode(nextContext, valid);
return nextContext;
}
mergeEvaluated(schemaCxt, toName) {
const { it, gen } = this;
if (!it.opts.unevaluated)
return;
if (it.props !== true && schemaCxt.props !== undefined) {
it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName);
}
if (it.items !== true && schemaCxt.items !== undefined) {
it.items = util_1.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName);
}
}
mergeValidEvaluated(schemaCxt, valid) {
const { it, gen } = this;
if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {
gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name));
return true;
}
}
}
exports.KeywordCxt = KeywordCxt;
function keywordCode(it, keyword, def, ruleType) {
const cxt = new KeywordCxt(it, def, keyword);
if ("code" in def) {
def.code(cxt, ruleType);
}
else if (cxt.$data && def.validate) {
(0, keyword_1.funcKeywordCode)(cxt, def);
}
else if ("macro" in def) {
(0, keyword_1.macroKeywordCode)(cxt, def);
}
else if (def.compile || def.validate) {
(0, keyword_1.funcKeywordCode)(cxt, def);
}
}
const JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
const RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
function getData($data, { dataLevel, dataNames, dataPathArr }) {
let jsonPointer;
let data;
if ($data === "")
return names_1.default.rootData;
if ($data[0] === "/") {
if (!JSON_POINTER.test($data))
throw new Error(`Invalid JSON-pointer: ${$data}`);
jsonPointer = $data;
data = names_1.default.rootData;
}
else {
const matches = RELATIVE_JSON_POINTER.exec($data);
if (!matches)
throw new Error(`Invalid JSON-pointer: ${$data}`);
const up = +matches[1];
jsonPointer = matches[2];
if (jsonPointer === "#") {
if (up >= dataLevel)
throw new Error(errorMsg("property/index", up));
return dataPathArr[dataLevel - up];
}
if (up > dataLevel)
throw new Error(errorMsg("data", up));
data = dataNames[dataLevel - up];
if (!jsonPointer)
return data;
}
let expr = data;
const segments = jsonPointer.split("/");
for (const segment of segments) {
if (segment) {
data = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`;
expr = (0, codegen_1._) `${expr} && ${data}`;
}
}
return expr;
function errorMsg(pointerType, up) {
return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
}
}
exports.getData = getData;
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"unescape.d.ts","sourceRoot":"","sources":["../../src/unescape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,QAAQ,GACnB,GAAG,MAAM,EACT,2CAGG,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,GAAG,eAAe,CAAM,WAczE,CAAA"}
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_E"},B:{"2":"_J"},C:{"2":"_S"},D:{"2":"_Q"},E:{"1":"K _AO","2":"_TB","132":"_vL _xE _7E _pE"},F:{"2":"_c"},G:{"1":"_NM","2":"_OB","132":"_jD _vI _aG _pE"},H:{"2":"1D"},I:{"2":"_P"},J:{"2":"_B"},K:{"2":"_N"},L:{"2":"I"},M:{"2":"YC"},N:{"2":"_A"},O:{"2":"bC"},P:{"2":"_F"},Q:{"2":"JE"},R:{"2":"KE"},S:{"2":"_C"}},B:4,C:"CSS hanging-punctuation",D:true};
@@ -0,0 +1,587 @@
'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.ExtensionConfigObject} ExtensionConfigObject */
/** @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}`;
if (baseConfig.basePath) {
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 @@
{"version":3,"file":"search-code.js","sources":["../../../src/icons/search-code.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name SearchCode\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTMgMTMuNSAyLTIuNS0yLTIuNSIgLz4KICA8cGF0aCBkPSJtMjEgMjEtNC4zLTQuMyIgLz4KICA8cGF0aCBkPSJNOSA4LjUgNyAxMWwyIDIuNSIgLz4KICA8Y2lyY2xlIGN4PSIxMSIgY3k9IjExIiByPSI4IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/search-code\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst SearchCode = createLucideIcon('SearchCode', [\n ['path', { d: 'm13 13.5 2-2.5-2-2.5', key: '1rvxrh' }],\n ['path', { d: 'm21 21-4.3-4.3', key: '1qie3q' }],\n ['path', { d: 'M9 8.5 7 11l2 2.5', key: '6ffwbx' }],\n ['circle', { cx: '11', cy: '11', r: '8', key: '4ej97u' }],\n]);\n\nexport default SearchCode;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,iBAAiB,YAAc,CAAA,CAAA,CAAA;AAAA,CAAA,CAChD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAwB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACrD,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC/C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAClD,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA;AAC1D,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1 @@
{"version":3,"file":"items2020.js","sourceRoot":"","sources":["../../../lib/vocabularies/applicator/items2020.ts"],"names":[],"mappings":";;AAOA,mDAA4C;AAC5C,6CAAoD;AACpD,kCAAqC;AACrC,uDAAyD;AAIzD,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA,2BAA2B,GAAG,QAAQ;IACvE,MAAM,EAAE,CAAC,EAAC,MAAM,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,EAAE,CAAC,IAAA,WAAC,EAAA,WAAW,GAAG,GAAG;CAChD,CAAA;AAED,MAAM,GAAG,GAA0B;IACjC,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;IACjC,MAAM,EAAE,aAAa;IACrB,KAAK;IACL,IAAI,CAAC,GAAe;QAClB,MAAM,EAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,GAAG,CAAA;QACtC,MAAM,EAAC,WAAW,EAAC,GAAG,YAAY,CAAA;QAClC,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;QACf,IAAI,IAAA,wBAAiB,EAAC,EAAE,EAAE,MAAM,CAAC;YAAE,OAAM;QACzC,IAAI,WAAW;YAAE,IAAA,yCAAuB,EAAC,GAAG,EAAE,WAAW,CAAC,CAAA;;YACrD,GAAG,CAAC,EAAE,CAAC,IAAA,oBAAa,EAAC,GAAG,CAAC,CAAC,CAAA;IACjC,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"}
@@ -0,0 +1,241 @@
#include "Watcher.hh"
#include <unordered_set>
using namespace Napi;
struct WatcherHash {
std::size_t operator() (WatcherRef const &k) const {
return std::hash<std::string>()(k->mDir);
}
};
struct WatcherCompare {
size_t operator() (WatcherRef const &a, WatcherRef const &b) const {
return *a == *b;
}
};
static std::unordered_set<WatcherRef , WatcherHash, WatcherCompare>& getSharedWatchers() {
static std::unordered_set<WatcherRef , WatcherHash, WatcherCompare>* sharedWatchers =
new std::unordered_set<WatcherRef , WatcherHash, WatcherCompare>();
return *sharedWatchers;
}
WatcherRef Watcher::getShared(std::string dir, std::unordered_set<std::string> ignorePaths, std::unordered_set<Glob> ignoreGlobs) {
WatcherRef watcher = std::make_shared<Watcher>(dir, ignorePaths, ignoreGlobs);
auto found = getSharedWatchers().find(watcher);
if (found != getSharedWatchers().end()) {
return *found;
}
getSharedWatchers().insert(watcher);
return watcher;
}
void removeShared(Watcher *watcher) {
for (auto it = getSharedWatchers().begin(); it != getSharedWatchers().end(); it++) {
if (it->get() == watcher) {
getSharedWatchers().erase(it);
break;
}
}
// Free up memory.
if (getSharedWatchers().size() == 0) {
getSharedWatchers().rehash(0);
}
}
Watcher::Watcher(std::string dir, std::unordered_set<std::string> ignorePaths, std::unordered_set<Glob> ignoreGlobs)
: mDir(dir),
mIgnorePaths(ignorePaths),
mIgnoreGlobs(ignoreGlobs) {
mDebounce = Debounce::getShared();
mDebounce->add(this, [this] () {
triggerCallbacks();
});
}
Watcher::~Watcher() {
mDebounce->remove(this);
}
void Watcher::wait() {
std::unique_lock<std::mutex> lk(mMutex);
mCond.wait(lk);
}
void Watcher::notify() {
std::unique_lock<std::mutex> lk(mMutex);
mCond.notify_all();
if (mCallbacks.size() > 0 && mEvents.size() > 0) {
// We must release our lock before calling into the debouncer
// to avoid a deadlock: the debouncer thread itself will require
// our lock from its thread when calling into `triggerCallbacks`
// while holding its own debouncer lock.
lk.unlock();
mDebounce->trigger();
}
}
struct CallbackData {
std::string error;
std::vector<Event> events;
CallbackData(std::string error, std::vector<Event> events) : error(error), events(events) {}
};
Value callbackEventsToJS(const Env &env, std::vector<Event> &events) {
EscapableHandleScope scope(env);
Array arr = Array::New(env, events.size());
uint32_t currentEventIndex = 0;
for (auto eventIterator = events.begin(); eventIterator != events.end(); eventIterator++) {
arr.Set(currentEventIndex++, eventIterator->toJS(env));
}
return scope.Escape(arr);
}
void callJSFunction(Napi::Env env, Function jsCallback, CallbackData *data) {
HandleScope scope(env);
auto err = data->error.size() > 0 ? Error::New(env, data->error).Value() : env.Null();
auto events = callbackEventsToJS(env, data->events);
jsCallback.Call({err, events});
delete data;
// Throw errors from the callback as fatal exceptions
// If we don't handle these node segfaults...
if (env.IsExceptionPending()) {
Napi::Error err = env.GetAndClearPendingException();
napi_fatal_exception(env, err.Value());
}
}
void Watcher::notifyError(std::exception &err) {
std::unique_lock<std::mutex> lk(mMutex);
for (auto it = mCallbacks.begin(); it != mCallbacks.end(); it++) {
CallbackData *data = new CallbackData(err.what(), {});
it->tsfn.BlockingCall(data, callJSFunction);
}
clearCallbacks();
}
// This function is called from the debounce thread.
void Watcher::triggerCallbacks() {
std::unique_lock<std::mutex> lk(mMutex);
if (mCallbacks.size() > 0 && (mEvents.size() > 0 || mEvents.hasError())) {
auto error = mEvents.getError();
auto events = mEvents.getEvents();
mEvents.clear();
for (auto it = mCallbacks.begin(); it != mCallbacks.end(); it++) {
it->tsfn.BlockingCall(new CallbackData(error, events), callJSFunction);
}
}
}
// This should be called from the JavaScript thread.
bool Watcher::watch(Function callback) {
std::unique_lock<std::mutex> lk(mMutex);
auto it = findCallback(callback);
if (it != mCallbacks.end()) {
return false;
}
auto tsfn = ThreadSafeFunction::New(
callback.Env(),
callback,
"Watcher callback",
0, // Unlimited queue
1 // Initial thread count
);
mCallbacks.push_back(Callback {
tsfn,
Napi::Persistent(callback),
std::this_thread::get_id()
});
return true;
}
// This should be called from the JavaScript thread.
std::vector<Callback>::iterator Watcher::findCallback(Function callback) {
for (auto it = mCallbacks.begin(); it != mCallbacks.end(); it++) {
// Only consider callbacks created by the same thread, or V8 will panic.
if (it->threadId == std::this_thread::get_id() && it->ref.Value() == callback) {
return it;
}
}
return mCallbacks.end();
}
// This should be called from the JavaScript thread.
bool Watcher::unwatch(Function callback) {
std::unique_lock<std::mutex> lk(mMutex);
bool removed = false;
auto it = findCallback(callback);
if (it != mCallbacks.end()) {
it->tsfn.Release();
it->ref.Unref();
mCallbacks.erase(it);
removed = true;
}
if (removed && mCallbacks.size() == 0) {
unref();
return true;
}
return false;
}
void Watcher::unref() {
if (mCallbacks.size() == 0) {
removeShared(this);
}
}
void Watcher::destroy() {
std::unique_lock<std::mutex> lk(mMutex);
clearCallbacks();
}
// Private because it doesn't lock.
void Watcher::clearCallbacks() {
for (auto it = mCallbacks.begin(); it != mCallbacks.end(); it++) {
it->tsfn.Release();
it->ref.Unref();
}
mCallbacks.clear();
unref();
}
bool Watcher::isIgnored(std::string path) {
for (auto it = mIgnorePaths.begin(); it != mIgnorePaths.end(); it++) {
auto dir = *it + DIR_SEP;
if (*it == path || path.compare(0, dir.size(), dir) == 0) {
return true;
}
}
auto basePath = mDir + DIR_SEP;
if (path.rfind(basePath, 0) != 0) {
return false;
}
auto relativePath = path.substr(basePath.size());
for (auto it = mIgnoreGlobs.begin(); it != mIgnoreGlobs.end(); it++) {
if (it->isIgnored(relativePath)) {
return true;
}
}
return false;
}