docs: 仓库链接指向本镜像仓库
Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped

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,238 @@
import { createReactiveSystem, ReactiveFlags } from "./alien.js";
function toObserver(nextHandler, errorHandler, completionHandler) {
const isObserver = typeof nextHandler === "object";
const self = isObserver ? nextHandler : void 0;
return {
next: (isObserver ? nextHandler.next : nextHandler)?.bind(self),
error: (isObserver ? nextHandler.error : errorHandler)?.bind(self),
complete: (isObserver ? nextHandler.complete : completionHandler)?.bind(
self
)
};
}
const queuedEffects = [];
let cycle = 0;
const { link, unlink, propagate, checkDirty, shallowPropagate } = createReactiveSystem({
update(atom) {
return atom._update();
},
// eslint-disable-next-line no-shadow
notify(effect2) {
queuedEffects[queuedEffectsLength++] = effect2;
effect2.flags &= ~ReactiveFlags.Watching;
},
unwatched(atom) {
if (atom.depsTail !== void 0) {
atom.depsTail = void 0;
atom.flags = ReactiveFlags.Mutable | ReactiveFlags.Dirty;
purgeDeps(atom);
}
}
});
let notifyIndex = 0;
let queuedEffectsLength = 0;
let activeSub;
let batchDepth = 0;
function batch(fn) {
try {
++batchDepth;
fn();
} finally {
if (!--batchDepth) {
flush();
}
}
}
function purgeDeps(sub) {
const depsTail = sub.depsTail;
let dep = depsTail !== void 0 ? depsTail.nextDep : sub.deps;
while (dep !== void 0) {
dep = unlink(dep, sub);
}
}
function flush() {
if (batchDepth > 0) {
return;
}
while (notifyIndex < queuedEffectsLength) {
const effect2 = queuedEffects[notifyIndex];
queuedEffects[notifyIndex++] = void 0;
effect2.notify();
}
notifyIndex = 0;
queuedEffectsLength = 0;
}
function createAsyncAtom(getValue, options) {
const ref = {};
const atom = createAtom(() => {
getValue().then(
(data) => {
const internalAtom = ref.current;
if (internalAtom._update({ status: "done", data })) {
const subs = internalAtom.subs;
if (subs !== void 0) {
propagate(subs);
shallowPropagate(subs);
flush();
}
}
},
(error) => {
const internalAtom = ref.current;
if (internalAtom._update({ status: "error", error })) {
const subs = internalAtom.subs;
if (subs !== void 0) {
propagate(subs);
shallowPropagate(subs);
flush();
}
}
}
);
return { status: "pending" };
}, options);
ref.current = atom;
return atom;
}
function createAtom(valueOrFn, options) {
const isComputed = typeof valueOrFn === "function";
const getter = valueOrFn;
const atom = {
_snapshot: isComputed ? void 0 : valueOrFn,
subs: void 0,
subsTail: void 0,
deps: void 0,
depsTail: void 0,
flags: isComputed ? ReactiveFlags.None : ReactiveFlags.Mutable,
get() {
if (activeSub !== void 0) {
link(atom, activeSub, cycle);
}
return atom._snapshot;
},
subscribe(observerOrFn) {
const obs = toObserver(observerOrFn);
const observed = { current: false };
const e = effect(() => {
atom.get();
if (!observed.current) {
observed.current = true;
} else {
obs.next?.(atom._snapshot);
}
});
return {
unsubscribe: () => {
e.stop();
}
};
},
_update(getValue) {
const prevSub = activeSub;
const compare = options?.compare ?? Object.is;
if (isComputed) {
activeSub = atom;
++cycle;
atom.depsTail = void 0;
} else if (getValue === void 0) {
return false;
}
if (isComputed) {
atom.flags = ReactiveFlags.Mutable | ReactiveFlags.RecursedCheck;
}
try {
const oldValue = atom._snapshot;
const newValue = typeof getValue === "function" ? getValue(oldValue) : getValue === void 0 && isComputed ? getter(oldValue) : getValue;
if (oldValue === void 0 || !compare(oldValue, newValue)) {
atom._snapshot = newValue;
return true;
}
return false;
} finally {
activeSub = prevSub;
if (isComputed) {
atom.flags &= ~ReactiveFlags.RecursedCheck;
}
purgeDeps(atom);
}
}
};
if (isComputed) {
atom.flags = ReactiveFlags.Mutable | ReactiveFlags.Dirty;
atom.get = function() {
const flags = atom.flags;
if (flags & ReactiveFlags.Dirty || flags & ReactiveFlags.Pending && checkDirty(atom.deps, atom)) {
if (atom._update()) {
const subs = atom.subs;
if (subs !== void 0) {
shallowPropagate(subs);
}
}
} else if (flags & ReactiveFlags.Pending) {
atom.flags = flags & ~ReactiveFlags.Pending;
}
if (activeSub !== void 0) {
link(atom, activeSub, cycle);
}
return atom._snapshot;
};
} else {
atom.set = function(valueOrFn2) {
if (atom._update(valueOrFn2)) {
const subs = atom.subs;
if (subs !== void 0) {
propagate(subs);
shallowPropagate(subs);
flush();
}
}
};
}
return atom;
}
function effect(fn) {
const run = () => {
const prevSub = activeSub;
activeSub = effectObj;
++cycle;
effectObj.depsTail = void 0;
effectObj.flags = ReactiveFlags.Watching | ReactiveFlags.RecursedCheck;
try {
return fn();
} finally {
activeSub = prevSub;
effectObj.flags &= ~ReactiveFlags.RecursedCheck;
purgeDeps(effectObj);
}
};
const effectObj = {
deps: void 0,
depsTail: void 0,
subs: void 0,
subsTail: void 0,
flags: ReactiveFlags.Watching | ReactiveFlags.RecursedCheck,
notify() {
const flags = this.flags;
if (flags & ReactiveFlags.Dirty || flags & ReactiveFlags.Pending && checkDirty(this.deps, this)) {
run();
} else {
this.flags = ReactiveFlags.Watching;
}
},
stop() {
this.flags = ReactiveFlags.None;
this.depsTail = void 0;
purgeDeps(this);
}
};
run();
return effectObj;
}
export {
batch,
createAsyncAtom,
createAtom,
flush,
toObserver
};
//# sourceMappingURL=atom.js.map
@@ -0,0 +1,65 @@
# date-manip
[![npm package](https://nodei.co/npm/date-manip.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/date-manip)
[![NPM Version](https://img.shields.io/npm/v/date-manip.svg?style=flat)](https://npmjs.org/package/date-manip)
[![NPM Downloads](https://img.shields.io/npm/dm/date-manip.svg?style=flat)](https://npmjs.org/package/date-manip)
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/date-manip/badge)](https://www.jsdelivr.com/package/npm/date-manip)
---
## Introduction
`date-manip` is a lightweight and modular JavaScript library for handling date operations with high performance. It provides a rich set of features, including date arithmetic (addition/subtraction), formatting, comparison, and more.
Whether you're building a small utility or a large-scale application, `date-manip` simplifies complex date manipulations while maintaining efficiency and flexibility.
## Features
- **Modularity**: Supports modular import and on-demand loading.
- **High Performance**: Optimized performance for various scenarios.
- **Chaining**: Supports chaining, making the code more concise.
- **Rich Features**: Supports date addition and subtraction, formatting, comparison, and other operations.
## Documentation
For detailed usage instructions and API references, please visit the official documentation:
👉 [View Full Documentation](https://fengxinming.github.io/util/modules/date-manip/)
## Quick Start
### Installation
Install `date-manip` via npm:
```bash
npm install date-manip
```
### Basic Usage
Here’s a quick example to get you started:
```javascript
import { addDays, format } from 'date-manip';
// Add 5 days to the current date
const newDate = addDays(new Date(), 5);
// Format the date as "YYYY-MM-DD"
console.log(format(newDate, 'YYYY-MM-DD'));
```
## Contributing
We welcome contributions from the community! If you find a bug or want to suggest an improvement, feel free to open an issue or submit a pull request.
### How to Contribute
1. Fork the repository.
2. Create a new branch for your changes.
3. Submit a pull request with a clear description of your changes.
## License
This project is licensed under the [MIT License](LICENSE).
@@ -0,0 +1,23 @@
/**
* @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 FilePen = createLucideIcon("FilePen", [
["path", { d: "M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5", key: "1couwa" }],
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
[
"path",
{
d: "M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",
key: "1y4qbx"
}
]
]);
export { FilePen as default };
//# sourceMappingURL=file-pen.js.map
@@ -0,0 +1,19 @@
/**
* @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 Heading3 = createLucideIcon("Heading3", [
["path", { d: "M4 12h8", key: "17cfdx" }],
["path", { d: "M4 18V6", key: "1rz3zl" }],
["path", { d: "M12 18V6", key: "zqpxq5" }],
["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
]);
export { Heading3 as default };
//# sourceMappingURL=heading-3.js.map
@@ -0,0 +1,2 @@
export type Primitive = string | number | symbol | bigint | boolean | null | undefined;
export type Scalars = Primitive | Primitive[];
@@ -0,0 +1,40 @@
'use strict';
var _const = require('../../data/const.cjs');
var helper = require('../../utils/helper.cjs');
var types = require('../../types.cjs');
/*
* -------------------------------------------------------------------------------
* regex matching ---------------------------------------------------------------
* -------------------------------------------------------------------------------
*/
class MatchRegex extends types.MatcherBaseClass {
match({
password
}) {
const matches = [];
Object.keys(_const.REGEXEN).forEach(name => {
const regex = _const.REGEXEN[name];
regex.lastIndex = 0; // keeps regexMatch stateless
let regexMatch;
while (regexMatch = regex.exec(password)) {
if (regexMatch) {
const token = regexMatch[0];
matches.push({
pattern: 'regex',
token,
i: regexMatch.index,
j: regexMatch.index + regexMatch[0].length - 1,
regexName: name,
regexMatch
});
}
}
});
return helper.sorted(matches);
}
}
module.exports = MatchRegex;
//# sourceMappingURL=matching.cjs.map
@@ -0,0 +1,68 @@
import _copy from './copy/index.js'
import _empty from './empty/index.js'
import _ensure from './ensure/index.js'
import _json from './json/index.js'
import _mkdirs from './mkdirs/index.js'
import _move from './move/index.js'
import _outputFile from './output-file/index.js'
import _pathExists from './path-exists/index.js'
import _remove from './remove/index.js'
// NOTE: Only exports fs-extra's functions; fs functions must be imported from "node:fs" or "node:fs/promises"
export const copy = _copy.copy
export const copySync = _copy.copySync
export const emptyDirSync = _empty.emptyDirSync
export const emptydirSync = _empty.emptydirSync
export const emptyDir = _empty.emptyDir
export const emptydir = _empty.emptydir
export const createFile = _ensure.createFile
export const createFileSync = _ensure.createFileSync
export const ensureFile = _ensure.ensureFile
export const ensureFileSync = _ensure.ensureFileSync
export const createLink = _ensure.createLink
export const createLinkSync = _ensure.createLinkSync
export const ensureLink = _ensure.ensureLink
export const ensureLinkSync = _ensure.ensureLinkSync
export const createSymlink = _ensure.createSymlink
export const createSymlinkSync = _ensure.createSymlinkSync
export const ensureSymlink = _ensure.ensureSymlink
export const ensureSymlinkSync = _ensure.ensureSymlinkSync
export const readJson = _json.readJson
export const readJSON = _json.readJSON
export const readJsonSync = _json.readJsonSync
export const readJSONSync = _json.readJSONSync
export const writeJson = _json.writeJson
export const writeJSON = _json.writeJSON
export const writeJsonSync = _json.writeJsonSync
export const writeJSONSync = _json.writeJSONSync
export const outputJson = _json.outputJson
export const outputJSON = _json.outputJSON
export const outputJsonSync = _json.outputJsonSync
export const outputJSONSync = _json.outputJSONSync
export const mkdirs = _mkdirs.mkdirs
export const mkdirsSync = _mkdirs.mkdirsSync
export const mkdirp = _mkdirs.mkdirp
export const mkdirpSync = _mkdirs.mkdirpSync
export const ensureDir = _mkdirs.ensureDir
export const ensureDirSync = _mkdirs.ensureDirSync
export const move = _move.move
export const moveSync = _move.moveSync
export const outputFile = _outputFile.outputFile
export const outputFileSync = _outputFile.outputFileSync
export const pathExists = _pathExists.pathExists
export const pathExistsSync = _pathExists.pathExistsSync
export const remove = _remove.remove
export const removeSync = _remove.removeSync
export default {
..._copy,
..._empty,
..._ensure,
..._json,
..._mkdirs,
..._move,
..._outputFile,
..._pathExists,
..._remove
}
@@ -0,0 +1,82 @@
{
"name": "commander",
"version": "14.0.3",
"description": "the complete solution for node.js command-line programs",
"keywords": [
"commander",
"command",
"option",
"parser",
"cli",
"argument",
"args",
"argv"
],
"author": "TJ Holowaychuk <tj@vision-media.ca>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/tj/commander.js.git"
},
"scripts": {
"check": "npm run check:type && npm run check:lint && npm run check:format",
"check:format": "prettier --check .",
"check:lint": "eslint .",
"check:type": "npm run check:type:js && npm run check:type:ts",
"check:type:ts": "tsd && tsc -p tsconfig.ts.json",
"check:type:js": "tsc -p tsconfig.js.json",
"fix": "npm run fix:lint && npm run fix:format",
"fix:format": "prettier --write .",
"fix:lint": "eslint --fix .",
"test": "jest && npm run check:type:ts",
"test-all": "jest && npm run test-esm && npm run check",
"test-esm": "node ./tests/esm-imports-test.mjs"
},
"files": [
"index.js",
"lib/*.js",
"esm.mjs",
"typings/index.d.ts",
"typings/esm.d.mts",
"package-support.json"
],
"type": "commonjs",
"main": "./index.js",
"exports": {
".": {
"require": {
"types": "./typings/index.d.ts",
"default": "./index.js"
},
"import": {
"types": "./typings/esm.d.mts",
"default": "./esm.mjs"
},
"default": "./index.js"
},
"./esm.mjs": {
"types": "./typings/esm.d.mts",
"import": "./esm.mjs"
}
},
"devDependencies": {
"@eslint/js": "^9.4.0",
"@types/jest": "^30.0.0",
"@types/node": "^22.7.4",
"eslint": "^9.17.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-jest": "^29.0.1",
"globals": "^16.0.0",
"jest": "^30.0.3",
"prettier": "^3.2.5",
"ts-jest": "^29.0.3",
"tsd": "^0.33.0",
"typescript": "^5.0.4",
"typescript-eslint": "^8.12.2"
},
"types": "typings/index.d.ts",
"engines": {
"node": ">=20"
},
"support": true
}
@@ -0,0 +1,19 @@
/**
* @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 MonitorPause = createLucideIcon("MonitorPause", [
["path", { d: "M10 13V7", key: "1u13u9" }],
["path", { d: "M14 13V7", key: "1vj9om" }],
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
["path", { d: "M12 17v4", key: "1riwvh" }],
["path", { d: "M8 21h8", key: "1ev6f3" }]
]);
export { MonitorPause as default };
//# sourceMappingURL=monitor-pause.js.map
@@ -0,0 +1 @@
{"version":3,"file":"gridstack.js","sourceRoot":"","sources":["../src/gridstack.ts"],"names":[],"mappings":"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 truncated
@@ -0,0 +1,58 @@
{
"name": "@humanfs/node",
"version": "0.16.8",
"description": "The Node.js bindings of the humanfs library.",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
"import": {
"types": "./dist/index.d.ts",
"default": "./src/index.js"
}
},
"files": [
"dist",
"src"
],
"scripts": {
"build": "tsc",
"prepare": "npm run build",
"pretest": "npm run build",
"test": "mocha ./tests/"
},
"repository": {
"type": "git",
"url": "git+https://github.com/humanwhocodes/humanfs.git",
"directory": "packages/node"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"filesystem",
"fs",
"hfs",
"files"
],
"author": "Nicholas C. Zakas",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/humanwhocodes/humanfs/issues"
},
"homepage": "https://github.com/humanwhocodes/humanfs#readme",
"engines": {
"node": ">=18.18.0"
},
"devDependencies": {
"@types/node": "^20.9.4",
"@humanfs/test": "^0.15.0",
"mocha": "^10.2.0",
"typescript": "^5.2.2"
},
"dependencies": {
"@humanwhocodes/retry": "^0.4.0",
"@humanfs/core": "^0.19.2",
"@humanfs/types": "^0.15.0"
}
}
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,8CAA2B;AAC3B,yCAAyC;AAAhC,8FAAA,MAAM,OAAK;AACpB,+CAA4B;AAC5B,2CAA2C;AAAlC,+FAAA,OAAO,OAAK;AACrB,8CAA2B;AAC3B,4CAAyB;AACzB,qCAAqC;AAA5B,4FAAA,IAAI,OAAK;AAClB,UAAU;AACV,4CAAyB;AACzB,6CAA0B;AAC1B,2CAAwB;AACxB,kDAA+B;AAC/B,+CAA4B;AAC5B,2CAA2C;AAAlC,+FAAA,OAAO,OAAK;AACrB,oDAAmC;AACnC,8CAA2B;AAC3B,8CAA2B;AAC3B,yCAAyC;AAAhC,8FAAA,MAAM,OAAK;AACpB,mDAAgC","sourcesContent":["export {\n type TarOptionsWithAliasesAsync,\n type TarOptionsWithAliasesAsyncFile,\n type TarOptionsWithAliasesAsyncNoFile,\n type TarOptionsWithAliasesSyncNoFile,\n type TarOptionsWithAliases,\n type TarOptionsWithAliasesFile,\n type TarOptionsWithAliasesSync,\n type TarOptionsWithAliasesSyncFile,\n} from './options.js'\n\nexport * from './create.js'\nexport { create as c } from './create.js'\nexport * from './extract.js'\nexport { extract as x } from './extract.js'\nexport * from './header.js'\nexport * from './list.js'\nexport { list as t } from './list.js'\n// classes\nexport * from './pack.js'\nexport * from './parse.js'\nexport * from './pax.js'\nexport * from './read-entry.js'\nexport * from './replace.js'\nexport { replace as r } from './replace.js'\nexport * as types from './types.js'\nexport * from './unpack.js'\nexport * from './update.js'\nexport { update as u } from './update.js'\nexport * from './write-entry.js'\n"]}
@@ -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 SquareX = createLucideIcon("SquareX", [
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
["path", { d: "m9 9 6 6", key: "z0biqf" }]
]);
export { SquareX as default };
//# sourceMappingURL=square-x.js.map
@@ -0,0 +1 @@
{"version":3,"file":"goal.js","sources":["../../../src/icons/goal.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Goal\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMTNWMmw4IDQtOCA0IiAvPgogIDxwYXRoIGQ9Ik0yMC41NjEgMTAuMjIyYTkgOSAwIDEgMS0xMi41NS01LjI5IiAvPgogIDxwYXRoIGQ9Ik04LjAwMiA5Ljk5N2E1IDUgMCAxIDAgOC45IDIuMDIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/goal\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 Goal = createLucideIcon('Goal', [\n ['path', { d: 'M12 13V2l8 4-8 4', key: '5wlwwj' }],\n ['path', { d: 'M20.561 10.222a9 9 0 1 1-12.55-5.29', key: '1c0wjv' }],\n ['path', { d: 'M8.002 9.997a5 5 0 1 0 8.9 2.02', key: 'gb1g7m' }],\n]);\n\nexport default Goal;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,iBAAiB,MAAQ,CAAA,CAAA,CAAA;AAAA,CAAA,CACpC,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,CAAuC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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,CACpE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAmC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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;AAClE,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,13 @@
{
"all": true,
"check-coverage": false,
"instrumentation": false,
"sourceMap": false,
"reporter": ["text-summary", "text", "html", "json"],
"exclude": [
"coverage",
"example",
"test",
"test-core-js.js"
]
}
@@ -0,0 +1,25 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createSyntaxError = createSyntaxError;
function createSyntaxError(node, err) {
const syntaxError = new SyntaxError(err); // $FlowExpectedError[prop-missing]
syntaxError.loc = {
line: node.loc.start.line,
column: node.loc.start.column
};
return syntaxError;
}
@@ -0,0 +1 @@
{"version":3,"file":"panel-right-close.js","sources":["../../../src/icons/panel-right-close.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name PanelRightClose\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik0xNSAzdjE4IiAvPgogIDxwYXRoIGQ9Im04IDkgMyAzLTMgMyIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/panel-right-close\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 PanelRightClose = createLucideIcon('PanelRightClose', [\n ['rect', { width: '18', height: '18', x: '3', y: '3', rx: '2', key: 'afitv7' }],\n ['path', { d: 'M15 3v18', key: '14nvp0' }],\n ['path', { d: 'm8 9 3 3-3 3', key: '12hl5m' }],\n]);\n\nexport default PanelRightClose;\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,CAAkB,iBAAiB,iBAAmB,CAAA,CAAA,CAAA;AAAA,CAAA,CAC1D,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,CAAA;AAAA,CAAA,CACzC,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;AAC/C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1 @@
{"version":3,"names":["_nonIterableRest","TypeError"],"sources":["../../src/helpers/nonIterableRest.js"],"sourcesContent":["/* @minVersion 7.0.0-beta.0 */\n\nexport default function _nonIterableRest() {\n throw new TypeError(\n \"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\",\n );\n}\n"],"mappings":";;;;;;AAEe,SAASA,gBAAgBA,CAAA,EAAG;EACzC,MAAM,IAAIC,SAAS,CACjB,2IACF,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,33 @@
import { m as BindingReplacePluginConfig } from "./shared/binding-D26QphWG.mjs";
import { F as BuiltinPlugin } from "./shared/define-config-BhJ90aEv.mjs";
import { t as esmExternalRequirePlugin } from "./shared/constructors-BbWPse2X.mjs";
//#region src/builtin-plugin/replace-plugin.d.ts
/**
* Replaces targeted strings in files while bundling.
*
* @example
* **Basic usage**
* ```js
* replacePlugin({
* 'process.env.NODE_ENV': JSON.stringify('production'),
* __buildVersion: 15
* })
* ```
* @example
* **With options**
* ```js
* replacePlugin({
* 'process.env.NODE_ENV': JSON.stringify('production'),
* __buildVersion: 15
* }, {
* preventAssignment: false,
* })
* ```
*
* @see https://rolldown.rs/builtin-plugins/replace
* @category Builtin Plugins
*/
declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
//#endregion
export { esmExternalRequirePlugin, replacePlugin };
@@ -0,0 +1 @@
{"version":3,"file":"baby.js","sources":["../../../src/icons/baby.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Baby\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOSAxMmguMDEiIC8+CiAgPHBhdGggZD0iTTE1IDEyaC4wMSIgLz4KICA8cGF0aCBkPSJNMTAgMTZjLjUuMyAxLjIuNSAyIC41czEuNS0uMiAyLS41IiAvPgogIDxwYXRoIGQ9Ik0xOSA2LjNhOSA5IDAgMCAxIDEuOCAzLjkgMiAyIDAgMCAxIDAgMy42IDkgOSAwIDAgMS0xNy42IDAgMiAyIDAgMCAxIDAtMy42QTkgOSAwIDAgMSAxMiAzYzIgMCAzLjUgMS4xIDMuNSAyLjVzLS45IDIuNS0yIDIuNWMtLjggMC0xLjUtLjQtMS41LTEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/baby\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 Baby = createLucideIcon('Baby', [\n ['path', { d: 'M9 12h.01', key: '157uk2' }],\n ['path', { d: 'M15 12h.01', key: '1k8ypt' }],\n ['path', { d: 'M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5', key: '1u7htd' }],\n [\n 'path',\n {\n d: 'M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1',\n key: '5yv0yz',\n },\n ],\n]);\n\nexport default Baby;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,iBAAiB,MAAQ,CAAA,CAAA,CAAA;AAAA,CAAA,CACpC,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,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC3C,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,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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;AACF,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,9 @@
{
"rules": {
"array-bracket-newline": 0,
"array-element-newline": 0,
"max-statements-per-line": [2, { "max": 2 }],
"no-invalid-this": 0,
"no-magic-numbers": 0,
}
}
@@ -0,0 +1,503 @@
[
[
"//www.g.com/error\n/bleh/bleh",
{
"host": "www.g.com",
"path": "/error%0A/bleh/bleh",
"reference": "relative"
}
],
[
"https://fastify.org",
{
"scheme": "https",
"host": "fastify.org",
"path": "",
"reference": "absolute"
}
],
[
"/definitions/Record%3Cstring%2CPerson%3E",
{
"path": "/definitions/Record%3Cstring%2CPerson%3E",
"reference": "relative"
}
],
[
"//10.10.10.10",
{
"host": "10.10.10.10",
"path": "",
"reference": "relative"
}
],
[
"//10.10.000.10",
{
"host": "10.10.0.10",
"path": "",
"reference": "relative"
}
],
[
"//[2001:db8::7%en0]",
{
"host": "2001:db8::7%en0",
"path": "",
"reference": "relative"
}
],
[
"//[2001:dbZ::1]:80",
{
"host": "[2001:dbz::1]",
"port": 80,
"path": "",
"error": "URI host is malformed.",
"reference": "relative"
}
],
[
"//[2001:db8::1]:80",
{
"host": "2001:db8::1",
"port": 80,
"path": "",
"reference": "relative"
}
],
[
"//[2001:db8::001]:80",
{
"host": "2001:db8::1",
"port": 80,
"path": "",
"reference": "relative"
}
],
[
"uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body",
{
"scheme": "uri",
"userinfo": "user:pass",
"host": "example.com",
"port": 123,
"path": "/one/two.three",
"query": "q1=a1&q2=a2",
"fragment": "body",
"reference": "uri"
}
],
[
"http://user:pass@example.com:123/one/space in.url?q1=a1&q2=a2#body",
{
"scheme": "http",
"userinfo": "user:pass",
"host": "example.com",
"port": 123,
"path": "/one/space%20in.url",
"query": "q1=a1&q2=a2",
"fragment": "body",
"reference": "uri"
}
],
[
"http://User:Pass@example.com:123/one/space in.url?q1=a1&q2=a2#body",
{
"scheme": "http",
"userinfo": "User:Pass",
"host": "example.com",
"port": 123,
"path": "/one/space%20in.url",
"query": "q1=a1&q2=a2",
"fragment": "body",
"reference": "uri"
}
],
[
"http://A%3AB@example.com:123/one/space",
{
"scheme": "http",
"userinfo": "A%3AB",
"host": "example.com",
"port": 123,
"path": "/one/space",
"reference": "absolute"
}
],
[
"//[::ffff:129.144.52.38]",
{
"host": "::ffff:129.144.52.38",
"path": "",
"reference": "relative"
}
],
[
"uri://10.10.10.10.example.com/en/process",
{
"scheme": "uri",
"host": "10.10.10.10.example.com",
"path": "/en/process",
"reference": "absolute"
}
],
[
"//[2606:2800:220:1:248:1893:25c8:1946]/test",
{
"host": "2606:2800:220:1:248:1893:25c8:1946",
"path": "/test",
"reference": "relative"
}
],
[
"ws://example.com/chat",
{
"scheme": "ws",
"host": "example.com",
"reference": "absolute",
"secure": false,
"resourceName": "/chat"
}
],
[
"ws://example.com/foo?bar=baz",
{
"scheme": "ws",
"host": "example.com",
"reference": "absolute",
"secure": false,
"resourceName": "/foo?bar=baz"
}
],
[
"wss://example.com/?bar=baz",
{
"scheme": "wss",
"host": "example.com",
"reference": "absolute",
"secure": true,
"resourceName": "/?bar=baz"
}
],
[
"wss://example.com/chat",
{
"scheme": "wss",
"host": "example.com",
"reference": "absolute",
"secure": true,
"resourceName": "/chat"
}
],
[
"wss://example.com/foo?bar=baz",
{
"scheme": "wss",
"host": "example.com",
"reference": "absolute",
"secure": true,
"resourceName": "/foo?bar=baz"
}
],
[
"wss://example.com/?bar=baz",
{
"scheme": "wss",
"host": "example.com",
"reference": "absolute",
"secure": true,
"resourceName": "/?bar=baz"
}
],
[
"urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
{
"scheme": "urn",
"reference": "absolute",
"nid": "uuid",
"uuid": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
}
],
[
"urn:uuid:notauuid-7dec-11d0-a765-00a0c91e6bf6",
{
"scheme": "urn",
"reference": "absolute",
"nid": "uuid",
"uuid": "notauuid-7dec-11d0-a765-00a0c91e6bf6",
"error": "UUID is not valid."
}
],
[
"urn:example:%D0%B0123,z456",
{
"scheme": "urn",
"reference": "absolute",
"nid": "example",
"nss": "%D0%B0123,z456"
}
],
[
"//[2606:2800:220:1:248:1893:25c8:1946:43209]",
{
"host": "[2606:2800:220:1:248:1893:25c8:1946:43209]",
"path": "",
"error": "URI host is malformed.",
"reference": "relative"
}
],
[
"http://foo.bar",
{
"scheme": "http",
"host": "foo.bar",
"path": "",
"reference": "absolute"
}
],
[
"http://",
{
"scheme": "http",
"host": "",
"path": "",
"reference": "absolute",
"error": "HTTP URIs must have a host."
}
],
[
"#/$defs/stringMap",
{
"path": "",
"fragment": "/$defs/stringMap",
"reference": "same-document"
}
],
[
"#/$defs/string%20Map",
{
"path": "",
"fragment": "/$defs/string%20Map",
"reference": "same-document"
}
],
[
"#/$defs/string Map",
{
"path": "",
"fragment": "/$defs/string%20Map",
"reference": "same-document"
}
],
[
"//?json=%7B%22foo%22%3A%22bar%22%7D",
{
"host": "",
"path": "",
"query": "json=%7B%22foo%22%3A%22bar%22%7D",
"reference": "relative"
}
],
[
"mailto:chris@example.com",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"chris@example.com"
]
}
],
[
"mailto:infobot@example.com?subject=current-issue",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"infobot@example.com"
],
"subject": "current-issue"
}
],
[
"mailto:infobot@example.com?body=send%20current-issue",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"infobot@example.com"
],
"body": "send current-issue"
}
],
[
"mailto:infobot@example.com?body=send%20current-issue%0D%0Asend%20index",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"infobot@example.com"
],
"body": "send current-issue\r\nsend index"
}
],
[
"mailto:list@example.org?In-Reply-To=%3C3469A91.D10AF4C@example.com%3E",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"list@example.org"
],
"headers": {
"In-Reply-To": "<3469A91.D10AF4C@example.com>"
}
}
],
[
"mailto:majordomo@example.com?body=subscribe%20bamboo-l",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"majordomo@example.com"
],
"body": "subscribe bamboo-l"
}
],
[
"mailto:joe@example.com?cc=bob@example.com&body=hello",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"joe@example.com"
],
"body": "hello",
"headers": {
"cc": "bob@example.com"
}
}
],
[
"mailto:gorby%25kremvax@example.com",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"gorby%kremvax@example.com"
]
}
],
[
"mailto:unlikely%3Faddress@example.com?blat=foop",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"unlikely?address@example.com"
],
"headers": {
"blat": "foop"
}
}
],
[
"mailto:Mike%26family@example.org",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"Mike&family@example.org"
]
}
],
[
"mailto:%22not%40me%22@example.org",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"\"not@me\"@example.org"
]
}
],
[
"mailto:%22oh%5C%5Cno%22@example.org",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"\"oh\\\\no\"@example.org"
]
}
],
[
"mailto:%22%5C%5C%5C%22it's%5C%20ugly%5C%5C%5C%22%22@example.org",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"\"\\\\\\\"it's\\ ugly\\\\\\\"\"@example.org"
]
}
],
[
"mailto:user@example.org?subject=caf%C3%A9",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"user@example.org"
],
"subject": "café"
}
],
[
"mailto:user@example.org?subject=%3D%3Futf-8%3FQ%3Fcaf%3DC3%3DA9%3F%3D",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"user@example.org"
],
"subject": "=?utf-8?Q?caf=C3=A9?="
}
],
[
"mailto:user@example.org?subject=%3D%3Fiso-8859-1%3FQ%3Fcaf%3DE9%3F%3D",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"user@example.org"
],
"subject": "=?iso-8859-1?Q?caf=E9?="
}
],
[
"mailto:user@example.org?subject=caf%C3%A9&body=caf%C3%A9",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"user@example.org"
],
"subject": "café",
"body": "café"
}
],
[
"mailto:user@%E7%B4%8D%E8%B1%86.example.org?subject=Test&body=NATTO",
{
"scheme": "mailto",
"reference": "absolute",
"to": [
"user@xn--99zt52a.example.org"
],
"subject": "Test",
"body": "NATTO"
}
]
]
@@ -0,0 +1,81 @@
'use strict';
var helper = require('./utils/helper.cjs');
var matching$7 = require('./matcher/date/matching.cjs');
var matching$6 = require('./matcher/dictionary/matching.cjs');
var l33t = require('./matcher/dictionary/variants/matching/l33t.cjs');
var reverse = require('./matcher/dictionary/variants/matching/reverse.cjs');
var matching$5 = require('./matcher/regex/matching.cjs');
var matching$4 = require('./matcher/repeat/matching.cjs');
var matching$3 = require('./matcher/sequence/matching.cjs');
var matching$2 = require('./matcher/spatial/matching.cjs');
var matching$1 = require('./matcher/separator/matching.cjs');
var matching = require('./matcher/wordSequence/matching.cjs');
/*
* -------------------------------------------------------------------------------
* Omnimatch combine matchers ---------------------------------------------------------------
* -------------------------------------------------------------------------------
*/
class Matching {
constructor(options) {
this.options = options;
this.matchers = {};
this.matchers = {
date: new matching$7(this.options),
dictionary: new matching$6(this.options),
dictionaryL33t: new l33t(this.options),
dictionaryReverse: new reverse(this.options),
regex: new matching$5(this.options),
repeat: new matching$4(this.options),
sequence: new matching$3(this.options),
spatial: new matching$2(this.options),
separator: new matching$1(this.options),
wordSequence: new matching(this.options)
};
Object.entries(this.options.matchers).forEach(([key, Matcher]) => {
this.matchers[key] = new Matcher.Matching(this.options);
});
}
processResult(matches, promises, result) {
if (result instanceof Promise) {
const wrappedPromise = result.then(response => {
helper.extend(matches, response);
return response;
});
promises.push(wrappedPromise);
} else {
helper.extend(matches, result);
}
}
handlePromises(matches, promises) {
if (promises.length > 0) {
return new Promise((resolve, reject) => {
Promise.all(promises).then(() => {
resolve(helper.sorted(matches));
}).catch(error => {
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
reject(error);
});
});
}
return helper.sorted(matches);
}
match(password, userInputsOptions) {
const matches = [];
const promises = [];
Object.values(this.matchers).forEach(matcher => {
const result = matcher.match({
password,
omniMatch: this,
userInputsOptions
});
// extends matches and promises by references
this.processResult(matches, promises, result);
});
return this.handlePromises(matches, promises);
}
}
module.exports = Matching;
//# sourceMappingURL=Matching.cjs.map
@@ -0,0 +1,66 @@
import { createAtom, toObserver } from './atom'
import type { Atom, Observer, Subscription } from './types'
export class Store<T> {
private atom: Atom<T>
constructor(getValue: (prev?: NoInfer<T>) => T)
constructor(initialValue: T)
constructor(valueOrFn: T | ((prev?: T) => T)) {
// createAtom has overloads that return ReadonlyAtom<T> for functions and Atom<T> for values
// Store always needs Atom<T> for setState, so we assert the return type
this.atom = createAtom(
valueOrFn as T | ((prev?: NoInfer<T>) => T),
) as Atom<T>
}
public setState(updater: (prev: T) => T) {
this.atom.set(updater)
}
public get state() {
return this.atom.get()
}
public get() {
return this.state
}
public subscribe(
observerOrFn: Observer<T> | ((value: T) => void),
): Subscription {
return this.atom.subscribe(toObserver(observerOrFn))
}
}
export class ReadonlyStore<T> implements Omit<Store<T>, 'setState'> {
private atom: Atom<T>
constructor(getValue: (prev?: NoInfer<T>) => T)
constructor(initialValue: T)
constructor(valueOrFn: T | ((prev?: T) => T)) {
// createAtom has overloads that return ReadonlyAtom<T> for functions and Atom<T> for values
// Store always needs Atom<T> for setState, so we assert the return type
this.atom = createAtom(
valueOrFn as T | ((prev?: NoInfer<T>) => T),
) as Atom<T>
}
public get state() {
return this.atom.get()
}
public get() {
return this.state
}
public subscribe(
observerOrFn: Observer<T> | ((value: T) => void),
): Subscription {
return this.atom.subscribe(toObserver(observerOrFn))
}
}
export function createStore<T>(
getValue: (prev?: NoInfer<T>) => T,
): ReadonlyStore<T>
export function createStore<T>(initialValue: T): Store<T>
export function createStore<T>(
valueOrFn: T | ((prev?: T) => T),
): Store<T> | ReadonlyStore<T> {
if (typeof valueOrFn === 'function') {
return new ReadonlyStore(valueOrFn as (prev?: NoInfer<T>) => T)
}
return new Store(valueOrFn)
}
@@ -0,0 +1,27 @@
'use strict'
const fs = require('../fs')
const { checkPath } = require('./utils')
const getMode = options => {
const defaults = { mode: 0o777 }
if (typeof options === 'number') return options
return ({ ...defaults, ...options }).mode
}
module.exports.makeDir = async (dir, options) => {
checkPath(dir)
return fs.mkdir(dir, {
mode: getMode(options),
recursive: true
})
}
module.exports.makeDirSync = (dir, options) => {
checkPath(dir)
return fs.mkdirSync(dir, {
mode: getMode(options),
recursive: true
})
}
@@ -0,0 +1,2 @@
// Only Node.JS has a process variable that is of [[Class]] process
module.exports.isNode = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';
@@ -0,0 +1,23 @@
const require_cfWorkerProvider = require('./cfWorkerProvider-BwbPzsdI.cjs');
//#region src/shimsBrowser.ts
/**
* Stub process object for non-Node.js environments.
* StdioServerTransport is not supported in Cloudflare Workers/browser environments.
*/
function notSupported() {
throw new Error("StdioServerTransport is not supported in this environment. Use StreamableHTTPServerTransport instead.");
}
const process = {
get stdin() {
return notSupported();
},
get stdout() {
return notSupported();
}
};
//#endregion
exports.DefaultJsonSchemaValidator = require_cfWorkerProvider.CfWorkerJsonSchemaValidator;
exports.process = process;
//# sourceMappingURL=shimsBrowser.cjs.map
@@ -0,0 +1,23 @@
/**
* @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 BookDown = createLucideIcon("BookDown", [
["path", { d: "M12 13V7", key: "h0r20n" }],
[
"path",
{
d: "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",
key: "k3hazp"
}
],
["path", { d: "m9 10 3 3 3-3", key: "zt5b4y" }]
]);
export { BookDown as default };
//# sourceMappingURL=book-down.js.map
@@ -0,0 +1,413 @@
export default `flf2a$ 4 3 10 0 3
italic.flf Version 2
by: Bas Meijer meijer@info.win.tue.nl bas@damek.kth.se
fixed by: Ryan Youck youck@cs.uregina.ca
$@
$@
$@
@@
@
| @
. @
@@
// @
$$ @
@
@@
@
_|_|_ @
-|-|- @
@@
||_ @
(||$ @
_||) @
|| @@
@
0/ @
/0 @
@@
@
()/ @
(X @
@@
/ @
$ @
$ @
@@
$/ @
($ @
$\\ @
@@
\\$ @
$) @
/$ @
@@
$ $@
$\\/$@
$/\\$@
$ $@@
$ $@
$_|_$@
$ | $@
$ $@@
$@
$$@
,$@
$@@
$ $@
$__$@
$ $@
$ $@@
$@
$ $@
. $@
$@@
@
$/ @
/$ @
@@
__ @
/ ) @
(__/ @
@@
@
-/ @
/ @
@@
_ @
_) @
/__ @
@@
_ @
_) @
__) @
@@
@
(_/ @
/ @
@@
__ @
/_ @
__) @
@@
__ @
/_ @
(__) @
@@
___ @
_/ @
/ @
@@
_ @
(_) @
(__) @
@@
__ @
(__) @
__/ @
@@
@
. @
. @
@@
@
. @
, @
@@
$ $@
$/$@
$\\$@
$ $@@
$ $@
$__$@
$--$@
$ $@@
$ $@
$\\$@
$/$@
$ $@@
$ _ @
$ )@
$ . @
$ @@
@
@
@
@@
_ @
/_| @
( | @
@@
__ @
/ _) @
/(_) @
@@
_ @
/ ) @
(__ @
@@
__ @
/ ) @
/(_/ @
@@
___ @
(_ @
/__ @
@@
___ @
(_ $ @
/$ @
@@
__ @
/ _ @
(__) @
@@
@
)__/ @
/ / @
@@
@
/ @
( @
@@
@
/ @
(_/ @
@@
@
/__/ @
/ ) @
@@
@
/ @
(__ @
@@
@
/|/| @
/ | @
@@
@
/| ) @
/ |/ @
@@
__ @
/ ) @
(__/ @
@@
__ @
/__) @
/ $ @
@@
__ @
/ ) @
(__\\ @
@@
__ @
/__) @
/ ($ @
@@
__ @
( @
__) @
@@
____ @
/ $ @
( @
@@
@
/ / @
(__/ @
@@
@
( / @
|_/ @
@@
@
( / @
|/|/ @
@@
@
\\_) @
( \\ @
@@
@
(__/ @
/$ @
@@
__ @
_/ @
/__ @
@@
_ @
|$ @
|_ @
@@
@
\\ @
\\ @
@@
_ @
$| @
_| @
@@
@
/\\ @
$$ @
@@
@
@
__ @
@@
\\ @
$ @
$ @
@@
@
_ @
(/ @
@@
@
/ @
() @
@@
@
_ @
($ @
@@
@
_/ @
(/ @
@@
@
_$@
(- @
@@
_ @
(_ @
/$ @
@@
@
_ @
(/ @
_/ @@
@
/ @
/) @
@@
@
' @
/ @
@@
@
' @
/ @
_/ @@
@
/ @
/( @
@@
@
/ @
( @
@@
@
_ @
//) @
@@
@
@
/) @
@@
@
@
() @
@@
@
@
/) @
/ @@
@
_ @
(/ @
/ @@
@
_ @
/$ @
@@
@
$_ @
_)$ @
@@
@
_/ @
/ @
@@
@
$ @
(/ @
@@
@
$$ @
\\/ @
@@
@
$$ @
((/ @
@@
@
$$ @
)( @
@@
@
$ @
(/ @
/ @@
@
_ @
/_ @
@@
( @
< @
( @
@@
| @
| @
| @
@@
) @
> @
) @
@@
@
/\\/ @
@
@@
o_o @
/_| @
( | @
@@
o__o @
/ ) @
(__/ @
@@
o o@
/ / @
(__/ @
@@
@
-_-@
(/ @
@@
@
-- @
() @
@@
@
- -@
(/ @
@@
__ @
/ _) @
/(_) @
/ @@
`
@@ -0,0 +1,6 @@
{
"private": true,
"types": "../dist/types/client.d.ts",
"main": "../dist/cjs/client.js",
"module": "../dist/es/client.mjs"
}
@@ -0,0 +1,2 @@
import { n as AjvJsonSchemaValidator, r as addFormats, t as Ajv } from "../ajvProvider-FOQRM7up.cjs";
export { Ajv, AjvJsonSchemaValidator, addFormats };
@@ -0,0 +1,7 @@
import { a as addObject, b as addNumber } from "./addObject-CJjLNrjF.mjs";
function subtract(date, num, unit) {
return typeof num === "object" && num !== null ? addObject(date, num, -1) : addNumber(date, -num, unit);
}
export {
subtract as default
};
@@ -0,0 +1,18 @@
/**
* @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 ArrowUpDown = createLucideIcon("ArrowUpDown", [
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
["path", { d: "M17 20V4", key: "1ejh1v" }],
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
["path", { d: "M7 4v16", key: "1glfcx" }]
]);
export { ArrowUpDown as default };
//# sourceMappingURL=arrow-up-down.js.map
@@ -0,0 +1,22 @@
/**
* @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 MessageSquareHeart = createLucideIcon("MessageSquareHeart", [
["path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z", key: "1lielz" }],
[
"path",
{
d: "M14.8 7.5a1.84 1.84 0 0 0-2.6 0l-.2.3-.3-.3a1.84 1.84 0 1 0-2.4 2.8L12 13l2.7-2.7c.9-.9.8-2.1.1-2.8",
key: "1blaws"
}
]
]);
export { MessageSquareHeart as default };
//# sourceMappingURL=message-square-heart.js.map
@@ -0,0 +1,2 @@
import { PatternRouter } from "./router.js";
export { PatternRouter };
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"_V","2":"_b"},B:{"1":"_J"},C:{"1":"_S"},D:{"1":"_Q"},E:{"1":"_R"},F:{"1":"_c"},G:{"1":"_M"},H:{"1":"1D"},I:{"1":"_P"},J:{"1":"_B"},K:{"1":"_N"},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:1,C:"XHTML served as application/xhtml+xml",D:true};
@@ -0,0 +1,17 @@
/**
* Verification using a JWK Embedded in a JWS Header
*
* @module
*/
import type * as types from '../types.d.ts';
/**
* EmbeddedJWK is an implementation of a GetKeyFunction intended to be used with the JWS/JWT verify
* operations whenever you need to opt-in to verify signatures with a public key embedded in the
* token's "jwk" (JSON Web Key) Header Parameter. It is recommended to combine this with the verify
* function's `algorithms` option to define accepted JWS "alg" (Algorithm) Header Parameter values.
*
* This function is exported (as a named export) from the main `'jose'` module entry point as well
* as from its subpath export `'jose/jwk/embedded'`.
*
*/
export declare function EmbeddedJWK(protectedHeader?: types.JWSHeaderParameters, token?: types.FlattenedJWSInput): Promise<types.CryptoKey>;
@@ -0,0 +1 @@
{"version":3,"file":"shrink.js","sources":["../../../src/icons/shrink.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Shrink\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTUgMTUgNiA2bS02LTZ2NC44bTAtNC44aDQuOCIgLz4KICA8cGF0aCBkPSJNOSAxOS44VjE1bTAgMEg0LjJNOSAxNWwtNiA2IiAvPgogIDxwYXRoIGQ9Ik0xNSA0LjJWOW0wIDBoNC44TTE1IDlsNi02IiAvPgogIDxwYXRoIGQ9Ik05IDQuMlY5bTAgMEg0LjJNOSA5IDMgMyIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/shrink\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 Shrink = createLucideIcon('Shrink', [\n ['path', { d: 'm15 15 6 6m-6-6v4.8m0-4.8h4.8', key: '17vawe' }],\n ['path', { d: 'M9 19.8V15m0 0H4.2M9 15l-6 6', key: 'chjx8e' }],\n ['path', { d: 'M15 4.2V9m0 0h4.8M15 9l6-6', key: 'lav6yq' }],\n ['path', { d: 'M9 4.2V9m0 0H4.2M9 9 3 3', key: '1pxi2q' }],\n]);\n\nexport default Shrink;\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,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,CAAA,CAC9D,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,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA8B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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,CAC3D,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAA4B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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;AAC3D,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,49 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var index_exports = {};
__export(index_exports, {
usePrevious: () => usePrevious
});
module.exports = __toCommonJS(index_exports);
// src/use-previous.tsx
var React = __toESM(require("react"));
function usePrevious(value) {
const ref = React.useRef({ value, previous: value });
return React.useMemo(() => {
if (ref.current.value !== value) {
ref.current.previous = ref.current.value;
ref.current.value = value;
}
return ref.current.previous;
}, [value]);
}
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_E"},B:{"1":"_K","36":"_I"},C:{"1":"_pF","33":"_jC _ME","130":"_pL"},D:{"1":"_qF","36":"_kF"},E:{"1":"_JB","2":"_k","36":"mB _DI"},F:{"1":"_MF","2":"_T","36":"_CE 0B"},G:{"1":"_9","2":"_sC","36":"_0O _FF"},H:{"2":"1D"},I:{"1":"I","36":"_G"},J:{"36":"_B"},K:{"1":"H","2":"_D"},L:{"1":"I"},M:{"1":"YC"},N:{"36":"_A"},O:{"1":"bC"},P:{"1":"_xB","36":"_3B"},Q:{"1":"JE"},R:{"1":"KE"},S:{"1":"ME","33":"LE"}},B:5,C:"::placeholder CSS pseudo-element",D:true};
@@ -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 SquareArrowOutUpRight = createLucideIcon("SquareArrowOutUpRight", [
["path", { d: "M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6", key: "y09zxi" }],
["path", { d: "m21 3-9 9", key: "mpx6sq" }],
["path", { d: "M15 3h6v6", key: "1q9fwt" }]
]);
export { SquareArrowOutUpRight as default };
//# sourceMappingURL=square-arrow-out-up-right.js.map
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_E"},B:{"2":"_I","132":"_K"},C:{"2":"_o _2J _L","322":"_TL _PN"},D:{"2":"_DR","66":"_IJ _fM","132":"_H _uH"},E:{"2":"_7J","578":"_YE"},F:{"2":"_bR","66":"_nC _YL _DD","132":"_MN _qD"},G:{"2":"_M"},H:{"2":"1D"},I:{"2":"_P"},J:{"2":"_B"},K:{"2":"_D","132":"H"},L:{"132":"I"},M:{"322":"YC"},N:{"2":"_A"},O:{"2":"bC"},P:{"2":"_rO","132":"_cJ"},Q:{"2":"JE"},R:{"2":"KE"},S:{"2":"LE","322":"ME"}},B:4,C:"WebXR Device API",D:true};
@@ -0,0 +1 @@
{"version":3,"names":["isModule","path","node","sourceType"],"sources":["../src/is-module.ts"],"sourcesContent":["import type { NodePath } from \"@babel/traverse\";\nimport type * as t from \"@babel/types\";\n\n/**\n * A small utility to check if a file qualifies as a module.\n */\nexport default function isModule(path: NodePath<t.Program>) {\n return path.node.sourceType === \"module\";\n}\n"],"mappings":";;;;;;AAMe,SAASA,QAAQA,CAACC,IAAyB,EAAE;EAC1D,OAAOA,IAAI,CAACC,IAAI,CAACC,UAAU,KAAK,QAAQ;AAC1C","ignoreList":[]}
@@ -0,0 +1,22 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var module$1 = require('module');
var url = require('url');
var path = require('path');
/**
* @fileoverview Universal module importer
*/
//-----------------------------------------------------------------------------
// Helpers
//-----------------------------------------------------------------------------
const __filename$1 = url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('module-importer.cjs', document.baseURI).href)));
const __dirname$1 = path.dirname(__filename$1);
const require$1 = module$1.createRequire(__dirname$1 + "/");
const { ModuleImporter } = require$1("./module-importer.cjs");
exports.ModuleImporter = ModuleImporter;
@@ -0,0 +1,15 @@
This package includes data derived from OpenSubtitles via OPUS in commonWords.json
(https://opus.nlpl.eu/).
Source dataset: OpenSubtitles 2024
Provider: Helsinki-NLP / OPUS
License: ODC-BY (Open Data Commons Attribution License)
Original data is attributed to subtitle contributors and rights holders.
This package contains a processed derivative:
- tokenized text
- frequency aggregation
- normalization and filtering
Any redistribution of this package must retain this notice.
@@ -0,0 +1,41 @@
{
"name": "commander",
"version": "4.1.1",
"description": "the complete solution for node.js command-line programs",
"keywords": [
"commander",
"command",
"option",
"parser"
],
"author": "TJ Holowaychuk <tj@vision-media.ca>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/tj/commander.js.git"
},
"scripts": {
"lint": "eslint index.js \"tests/**/*.js\"",
"test": "jest && npm run test-typings",
"test-typings": "tsc -p tsconfig.json"
},
"main": "index",
"files": [
"index.js",
"typings/index.d.ts"
],
"dependencies": {},
"devDependencies": {
"@types/jest": "^24.0.23",
"@types/node": "^12.12.11",
"eslint": "^6.7.0",
"eslint-plugin-jest": "^22.21.0",
"jest": "^24.8.0",
"standard": "^14.3.1",
"typescript": "^3.7.2"
},
"typings": "typings/index.d.ts",
"engines": {
"node": ">= 6"
}
}
@@ -0,0 +1,178 @@
//#region src/helper/css/common.ts
const PSEUDO_GLOBAL_SELECTOR = ":-hono-global";
const isPseudoGlobalSelectorRe = new RegExp(`^${PSEUDO_GLOBAL_SELECTOR}{(.*)}$`);
const DEFAULT_STYLE_ID = "hono-css";
const SELECTOR = Symbol();
const CLASS_NAME = Symbol();
const STYLE_STRING = Symbol();
const SELECTORS = Symbol();
const EXTERNAL_CLASS_NAMES = Symbol();
const CSS_ESCAPED = Symbol();
const IS_CSS_ESCAPED = Symbol();
/**
* @experimental
* `rawCssString` is an experimental feature.
* The API might be changed.
*/
const rawCssString = (value) => {
return { [CSS_ESCAPED]: value };
};
/**
* Used the goober'code as a reference:
* https://github.com/cristianbote/goober/blob/master/src/core/to-hash.js
* MIT License, Copyright (c) 2019 Cristian Bote
*/
const toHash = (str) => {
let i = 0, out = 11;
while (i < str.length) out = 101 * out + str.charCodeAt(i++) >>> 0;
return "css-" + out;
};
const normalizeLabel = (label) => {
return label.trim().replace(/\s+/g, "-");
};
const isValidClassName = (name) => /^-?[_a-zA-Z][_a-zA-Z0-9-]*$/.test(name);
const hasUnsafeSelectorChar = (name) => /[<{}]/.test(name);
const RESERVED_KEYFRAME_NAMES = /* @__PURE__ */ new Set([
"default",
"inherit",
"initial",
"none",
"revert",
"revert-layer",
"unset"
]);
const isValidKeyframeName = (name) => isValidClassName(name) && !RESERVED_KEYFRAME_NAMES.has(name.toLowerCase());
const defaultOnInvalidSlug = (slug) => {
console.warn(`Invalid slug: ${slug}`);
};
const cssStringReStr = ["\"(?:(?:\\\\[\\s\\S]|[^\"\\\\])*)\"", "'(?:(?:\\\\[\\s\\S]|[^'\\\\])*)'"].join("|");
const minifyCssRe = new RegExp([
"(" + cssStringReStr + ")",
"(?:" + [
"^\\s+",
"\\/\\*.*?\\*\\/\\s*",
"\\/\\/.*\\n\\s*",
"\\s+$"
].join("|") + ")",
"\\s*;\\s*(}|$)\\s*",
"\\s*([{};:,])\\s*",
"(\\s)\\s+"
].join("|"), "g");
const minify = (css) => {
return css.replace(minifyCssRe, (_, $1, $2, $3, $4) => $1 || $2 || $3 || $4 || "");
};
const buildStyleString = (strings, values) => {
const selectors = [];
const externalClassNames = [];
const label = strings[0].match(/^\s*\/\*(.*?)\*\//)?.[1] || "";
let styleString = "";
for (let i = 0, len = strings.length; i < len; i++) {
styleString += strings[i];
let vArray = values[i];
if (typeof vArray === "boolean" || vArray === null || vArray === void 0) continue;
if (!Array.isArray(vArray)) vArray = [vArray];
for (let j = 0, len = vArray.length; j < len; j++) {
let value = vArray[j];
if (typeof value === "boolean" || value === null || value === void 0) continue;
if (typeof value === "string") {
if (/([\\"'\/])/.test(value)) styleString += value.replace(/([\\"']|(?<=<)\/)/g, "\\$1");
else styleString += value;
} else if (typeof value === "number") styleString += value;
else if (value[CSS_ESCAPED]) styleString += value[CSS_ESCAPED];
else if (value[CLASS_NAME].startsWith("@keyframes ")) {
selectors.push(value);
styleString += ` ${value[CLASS_NAME].substring(11)} `;
} else {
if (strings[i + 1]?.match(/^\s*{/)) {
selectors.push(value);
value = `.${value[CLASS_NAME]}`;
} else {
selectors.push(...value[SELECTORS]);
externalClassNames.push(...value[EXTERNAL_CLASS_NAMES]);
value = value[STYLE_STRING];
const valueLen = value.length;
if (valueLen > 0) {
const lastChar = value[valueLen - 1];
if (lastChar !== ";" && lastChar !== "}") value += ";";
}
}
styleString += `${value || ""}`;
}
}
}
return [
label,
minify(styleString),
selectors,
externalClassNames
];
};
const cssCommon = (strings, values, classNameSlug, onInvalidSlug) => {
let [label, thisStyleString, selectors, externalClassNames] = buildStyleString(strings, values);
const isPseudoGlobal = isPseudoGlobalSelectorRe.exec(thisStyleString);
if (isPseudoGlobal) thisStyleString = isPseudoGlobal[1];
const hash = toHash(label + thisStyleString);
let customSlug;
if (classNameSlug) {
const slug = classNameSlug(hash, normalizeLabel(label), thisStyleString);
if (slug) {
if (isValidClassName(slug)) customSlug = slug;
else (onInvalidSlug || defaultOnInvalidSlug)(slug);
}
}
const selector = (isPseudoGlobal ? PSEUDO_GLOBAL_SELECTOR : "") + (customSlug || hash);
const className = (isPseudoGlobal ? selectors.map((s) => s[CLASS_NAME]) : [selector, ...externalClassNames]).join(" ");
return {
[SELECTOR]: selector,
[CLASS_NAME]: className,
[STYLE_STRING]: thisStyleString,
[SELECTORS]: selectors,
[EXTERNAL_CLASS_NAMES]: externalClassNames
};
};
const cxCommon = (args) => {
for (let i = 0, len = args.length; i < len; i++) {
const arg = args[i];
if (typeof arg === "string") args[i] = {
[SELECTOR]: "",
[CLASS_NAME]: "",
[STYLE_STRING]: "",
[SELECTORS]: [],
[EXTERNAL_CLASS_NAMES]: hasUnsafeSelectorChar(arg) ? [] : [arg]
};
}
return args;
};
const keyframesCommon = (strings, values, classNameSlug, onInvalidSlug) => {
const [label, styleString] = buildStyleString(strings, values);
const hash = toHash(label + styleString);
let customSlug;
if (classNameSlug) {
const slug = classNameSlug(hash, normalizeLabel(label), styleString);
if (slug) {
if (isValidKeyframeName(slug)) customSlug = slug;
else (onInvalidSlug || defaultOnInvalidSlug)(slug);
}
}
return {
[SELECTOR]: "",
[CLASS_NAME]: `@keyframes ${customSlug || hash}`,
[STYLE_STRING]: styleString,
[SELECTORS]: [],
[EXTERNAL_CLASS_NAMES]: []
};
};
let viewTransitionNameIndex = 0;
const viewTransitionCommon = ((strings, values, classNameSlug, onInvalidSlug) => {
if (!strings) strings = [`/* h-v-t ${viewTransitionNameIndex++} */`];
const content = Array.isArray(strings) ? cssCommon(strings, values, classNameSlug, onInvalidSlug) : strings;
const transitionName = content[CLASS_NAME];
const res = cssCommon(["view-transition-name:", ""], [transitionName], classNameSlug, onInvalidSlug);
content[CLASS_NAME] = PSEUDO_GLOBAL_SELECTOR + content[CLASS_NAME];
content[STYLE_STRING] = content[STYLE_STRING].replace(/(?<=::view-transition(?:[a-z-]*)\()(?=\))/g, transitionName);
res[CLASS_NAME] = res[SELECTOR] = transitionName;
res[SELECTORS] = [...content[SELECTORS], content];
return res;
});
//#endregion
export { CLASS_NAME, DEFAULT_STYLE_ID, EXTERNAL_CLASS_NAMES, IS_CSS_ESCAPED, PSEUDO_GLOBAL_SELECTOR, SELECTOR, SELECTORS, STYLE_STRING, buildStyleString, cssCommon, cxCommon, isPseudoGlobalSelectorRe, keyframesCommon, minify, rawCssString, viewTransitionCommon };
@@ -0,0 +1,47 @@
import crypto from 'crypto'
import { urlAlphabet } from '../url-alphabet/index.js'
let random = bytes =>
new Promise((resolve, reject) => {
crypto.randomFill(Buffer.allocUnsafe(bytes), (err, buf) => {
if (err) {
reject(err)
} else {
resolve(buf)
}
})
})
let customAlphabet = (alphabet, defaultSize = 21) => {
let mask = (2 << (31 - Math.clz32((alphabet.length - 1) | 1))) - 1
let step = Math.ceil((1.6 * mask * defaultSize) / alphabet.length)
let tick = (id, size = defaultSize) =>
random(step).then(bytes => {
let i = step
while (i--) {
id += alphabet[bytes[i] & mask] || ''
if (id.length >= size) return id
}
return tick(id, size)
})
return (size = defaultSize) => {
if (size <= 0) return Promise.resolve('')
return tick('', size)
}
}
let nanoid = (size = 21) =>
random((size |= 0)).then(bytes => {
let id = ''
while (size--) {
id += urlAlphabet[bytes[size] & 63]
}
return id
})
export { nanoid, customAlphabet, random }
@@ -0,0 +1,12 @@
import { isSVGElement } from './is-svg-element.mjs';
/**
* Checks if an element is specifically an SVGSVGElement (the root SVG element)
* in a way that works across iframes
*/
function isSVGSVGElement(element) {
return isSVGElement(element) && element.tagName === "svg";
}
export { isSVGSVGElement };
//# sourceMappingURL=is-svg-svg-element.mjs.map
@@ -0,0 +1,497 @@
/**
* @fileoverview Rule to check for max length on a line.
* @author Matt DuVall <http://www.mattduvall.com>
* @deprecated in ESLint v8.53.0
*/
"use strict";
//------------------------------------------------------------------------------
// Constants
//------------------------------------------------------------------------------
const OPTIONS_SCHEMA = {
type: "object",
properties: {
code: {
type: "integer",
minimum: 0,
},
comments: {
type: "integer",
minimum: 0,
},
tabWidth: {
type: "integer",
minimum: 0,
},
ignorePattern: {
type: "string",
},
ignoreComments: {
type: "boolean",
},
ignoreStrings: {
type: "boolean",
},
ignoreUrls: {
type: "boolean",
},
ignoreTemplateLiterals: {
type: "boolean",
},
ignoreRegExpLiterals: {
type: "boolean",
},
ignoreTrailingComments: {
type: "boolean",
},
},
additionalProperties: false,
};
const OPTIONS_OR_INTEGER_SCHEMA = {
anyOf: [
OPTIONS_SCHEMA,
{
type: "integer",
minimum: 0,
},
],
};
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
module.exports = {
meta: {
deprecated: {
message: "Formatting rules are being moved out of ESLint core.",
url: "https://eslint.org/blog/2023/10/deprecating-formatting-rules/",
deprecatedSince: "8.53.0",
availableUntil: "11.0.0",
replacedBy: [
{
message:
"ESLint Stylistic now maintains deprecated stylistic core rules.",
url: "https://eslint.style/guide/migration",
plugin: {
name: "@stylistic/eslint-plugin",
url: "https://eslint.style",
},
rule: {
name: "max-len",
url: "https://eslint.style/rules/max-len",
},
},
],
},
type: "layout",
docs: {
description: "Enforce a maximum line length",
recommended: false,
url: "https://eslint.org/docs/latest/rules/max-len",
},
schema: [
OPTIONS_OR_INTEGER_SCHEMA,
OPTIONS_OR_INTEGER_SCHEMA,
OPTIONS_SCHEMA,
],
messages: {
max: "This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.",
maxComment:
"This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}.",
},
},
create(context) {
/*
* Inspired by http://tools.ietf.org/html/rfc3986#appendix-B, however:
* - They're matching an entire string that we know is a URI
* - We're matching part of a string where we think there *might* be a URL
* - We're only concerned about URLs, as picking out any URI would cause
* too many false positives
* - We don't care about matching the entire URL, any small segment is fine
*/
const URL_REGEXP = /[^:/?#]:\/\/[^?#]/u;
const sourceCode = context.sourceCode;
/**
* Computes the length of a line that may contain tabs. The width of each
* tab will be the number of spaces to the next tab stop.
* @param {string} line The line.
* @param {number} tabWidth The width of each tab stop in spaces.
* @returns {number} The computed line length.
* @private
*/
function computeLineLength(line, tabWidth) {
let extraCharacterCount = 0;
line.replace(/\t/gu, (match, offset) => {
const totalOffset = offset + extraCharacterCount,
previousTabStopOffset = tabWidth
? totalOffset % tabWidth
: 0,
spaceCount = tabWidth - previousTabStopOffset;
extraCharacterCount += spaceCount - 1; // -1 for the replaced tab
});
return Array.from(line).length + extraCharacterCount;
}
// The options object must be the last option specified…
const options = Object.assign({}, context.options.at(-1));
// …but max code length…
if (typeof context.options[0] === "number") {
options.code = context.options[0];
}
// …and tabWidth can be optionally specified directly as integers.
if (typeof context.options[1] === "number") {
options.tabWidth = context.options[1];
}
const maxLength = typeof options.code === "number" ? options.code : 80,
tabWidth =
typeof options.tabWidth === "number" ? options.tabWidth : 4,
ignoreComments = !!options.ignoreComments,
ignoreStrings = !!options.ignoreStrings,
ignoreTemplateLiterals = !!options.ignoreTemplateLiterals,
ignoreRegExpLiterals = !!options.ignoreRegExpLiterals,
ignoreTrailingComments =
!!options.ignoreTrailingComments || !!options.ignoreComments,
ignoreUrls = !!options.ignoreUrls,
maxCommentLength = options.comments;
let ignorePattern = options.ignorePattern || null;
if (ignorePattern) {
ignorePattern = new RegExp(ignorePattern, "u");
}
//--------------------------------------------------------------------------
// Helpers
//--------------------------------------------------------------------------
/**
* Tells if a given comment is trailing: it starts on the current line and
* extends to or past the end of the current line.
* @param {string} line The source line we want to check for a trailing comment on
* @param {number} lineNumber The one-indexed line number for line
* @param {ASTNode} comment The comment to inspect
* @returns {boolean} If the comment is trailing on the given line
*/
function isTrailingComment(line, lineNumber, comment) {
return (
comment &&
comment.loc.start.line === lineNumber &&
lineNumber <= comment.loc.end.line &&
(comment.loc.end.line > lineNumber ||
comment.loc.end.column === line.length)
);
}
/**
* Tells if a comment encompasses the entire line.
* @param {string} line The source line with a trailing comment
* @param {number} lineNumber The one-indexed line number this is on
* @param {ASTNode} comment The comment to remove
* @returns {boolean} If the comment covers the entire line
*/
function isFullLineComment(line, lineNumber, comment) {
const start = comment.loc.start,
end = comment.loc.end,
isFirstTokenOnLine = !line
.slice(0, comment.loc.start.column)
.trim();
return (
comment &&
(start.line < lineNumber ||
(start.line === lineNumber && isFirstTokenOnLine)) &&
(end.line > lineNumber ||
(end.line === lineNumber && end.column === line.length))
);
}
/**
* Check if a node is a JSXEmptyExpression contained in a single line JSXExpressionContainer.
* @param {ASTNode} node A node to check.
* @returns {boolean} True if the node is a JSXEmptyExpression contained in a single line JSXExpressionContainer.
*/
function isJSXEmptyExpressionInSingleLineContainer(node) {
if (
!node ||
!node.parent ||
node.type !== "JSXEmptyExpression" ||
node.parent.type !== "JSXExpressionContainer"
) {
return false;
}
const parent = node.parent;
return parent.loc.start.line === parent.loc.end.line;
}
/**
* Gets the line after the comment and any remaining trailing whitespace is
* stripped.
* @param {string} line The source line with a trailing comment
* @param {ASTNode} comment The comment to remove
* @returns {string} Line without comment and trailing whitespace
*/
function stripTrailingComment(line, comment) {
// loc.column is zero-indexed
return line.slice(0, comment.loc.start.column).replace(/\s+$/u, "");
}
/**
* Ensure that an array exists at [key] on `object`, and add `value` to it.
* @param {Object} object the object to mutate
* @param {string} key the object's key
* @param {any} value the value to add
* @returns {void}
* @private
*/
function ensureArrayAndPush(object, key, value) {
if (!Array.isArray(object[key])) {
object[key] = [];
}
object[key].push(value);
}
/**
* Retrieves an array containing all strings (" or ') in the source code.
* @returns {ASTNode[]} An array of string nodes.
*/
function getAllStrings() {
return sourceCode.ast.tokens.filter(
token =>
token.type === "String" ||
(token.type === "JSXText" &&
sourceCode.getNodeByRangeIndex(token.range[0] - 1)
.type === "JSXAttribute"),
);
}
/**
* Retrieves an array containing all template literals in the source code.
* @returns {ASTNode[]} An array of template literal nodes.
*/
function getAllTemplateLiterals() {
return sourceCode.ast.tokens.filter(
token => token.type === "Template",
);
}
/**
* Retrieves an array containing all RegExp literals in the source code.
* @returns {ASTNode[]} An array of RegExp literal nodes.
*/
function getAllRegExpLiterals() {
return sourceCode.ast.tokens.filter(
token => token.type === "RegularExpression",
);
}
/**
*
* reduce an array of AST nodes by line number, both start and end.
* @param {ASTNode[]} arr array of AST nodes
* @returns {Object} accululated AST nodes
*/
function groupArrayByLineNumber(arr) {
const obj = {};
for (let i = 0; i < arr.length; i++) {
const node = arr[i];
for (let j = node.loc.start.line; j <= node.loc.end.line; ++j) {
ensureArrayAndPush(obj, j, node);
}
}
return obj;
}
/**
* Returns an array of all comments in the source code.
* If the element in the array is a JSXEmptyExpression contained with a single line JSXExpressionContainer,
* the element is changed with JSXExpressionContainer node.
* @returns {ASTNode[]} An array of comment nodes
*/
function getAllComments() {
const comments = [];
sourceCode.getAllComments().forEach(commentNode => {
const containingNode = sourceCode.getNodeByRangeIndex(
commentNode.range[0],
);
if (isJSXEmptyExpressionInSingleLineContainer(containingNode)) {
// push a unique node only
if (comments.at(-1) !== containingNode.parent) {
comments.push(containingNode.parent);
}
} else {
comments.push(commentNode);
}
});
return comments;
}
/**
* Check the program for max length
* @param {ASTNode} node Node to examine
* @returns {void}
* @private
*/
function checkProgramForMaxLength(node) {
// split (honors line-ending)
const lines = sourceCode.lines,
// list of comments to ignore
comments =
ignoreComments || maxCommentLength || ignoreTrailingComments
? getAllComments()
: [];
// we iterate over comments in parallel with the lines
let commentsIndex = 0;
const strings = getAllStrings();
const stringsByLine = groupArrayByLineNumber(strings);
const templateLiterals = getAllTemplateLiterals();
const templateLiteralsByLine =
groupArrayByLineNumber(templateLiterals);
const regExpLiterals = getAllRegExpLiterals();
const regExpLiteralsByLine = groupArrayByLineNumber(regExpLiterals);
lines.forEach((line, i) => {
// i is zero-indexed, line numbers are one-indexed
const lineNumber = i + 1;
/*
* if we're checking comment length; we need to know whether this
* line is a comment
*/
let lineIsComment = false;
let textToMeasure;
/*
* We can short-circuit the comment checks if we're already out of
* comments to check.
*/
if (commentsIndex < comments.length) {
let comment;
// iterate over comments until we find one past the current line
do {
comment = comments[++commentsIndex];
} while (comment && comment.loc.start.line <= lineNumber);
// and step back by one
comment = comments[--commentsIndex];
if (isFullLineComment(line, lineNumber, comment)) {
lineIsComment = true;
textToMeasure = line;
} else if (
ignoreTrailingComments &&
isTrailingComment(line, lineNumber, comment)
) {
textToMeasure = stripTrailingComment(line, comment);
// ignore multiple trailing comments in the same line
let lastIndex = commentsIndex;
while (
isTrailingComment(
textToMeasure,
lineNumber,
comments[--lastIndex],
)
) {
textToMeasure = stripTrailingComment(
textToMeasure,
comments[lastIndex],
);
}
} else {
textToMeasure = line;
}
} else {
textToMeasure = line;
}
if (
(ignorePattern && ignorePattern.test(textToMeasure)) ||
(ignoreUrls && URL_REGEXP.test(textToMeasure)) ||
(ignoreStrings && stringsByLine[lineNumber]) ||
(ignoreTemplateLiterals &&
templateLiteralsByLine[lineNumber]) ||
(ignoreRegExpLiterals && regExpLiteralsByLine[lineNumber])
) {
// ignore this line
return;
}
const lineLength = computeLineLength(textToMeasure, tabWidth);
const commentLengthApplies = lineIsComment && maxCommentLength;
if (lineIsComment && ignoreComments) {
return;
}
const loc = {
start: {
line: lineNumber,
column: 0,
},
end: {
line: lineNumber,
column: textToMeasure.length,
},
};
if (commentLengthApplies) {
if (lineLength > maxCommentLength) {
context.report({
node,
loc,
messageId: "maxComment",
data: {
lineLength,
maxCommentLength,
},
});
}
} else if (lineLength > maxLength) {
context.report({
node,
loc,
messageId: "max",
data: {
lineLength,
maxLength,
},
});
}
});
}
//--------------------------------------------------------------------------
// Public API
//--------------------------------------------------------------------------
return {
Program: checkProgramForMaxLength,
};
},
};
@@ -0,0 +1,21 @@
{
"versions": [
{
"version": "*",
"target": {
"node": "active"
},
"response": {
"type": "time-permitting",
"paid": false,
"contact": {
"name": "node-addon-api team",
"url": "https://github.com/nodejs/node-addon-api/issues"
}
},
"backing": [ { "project": "https://github.com/nodejs" },
{ "foundation": "https://openjsf.org/" }
]
}
]
}
@@ -0,0 +1,81 @@
{
"name": "get-proto",
"version": "1.0.1",
"description": "Robustly get the [[Prototype]] of an object",
"main": "index.js",
"exports": {
".": "./index.js",
"./Reflect.getPrototypeOf": "./Reflect.getPrototypeOf.js",
"./Object.getPrototypeOf": "./Object.getPrototypeOf.js",
"./package.json": "./package.json"
},
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"pretest": "npm run --silent lint",
"test": "npm run tests-only",
"posttest": "npx npm@\">=10.2\" audit --production",
"tests-only": "nyc tape 'test/**/*.js'",
"prelint": "evalmd README.md",
"lint": "eslint --ext=js,mjs .",
"postlint": "tsc && attw -P",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/ljharb/get-proto.git"
},
"keywords": [
"get",
"proto",
"prototype",
"getPrototypeOf",
"[[Prototype]]"
],
"author": "Jordan Harband <ljharb@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/ljharb/get-proto/issues"
},
"homepage": "https://github.com/ljharb/get-proto#readme",
"dependencies": {
"dunder-proto": "^1.0.1",
"es-object-atoms": "^1.0.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.2",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.3",
"@types/tape": "^5.8.0",
"auto-changelog": "^2.5.0",
"eslint": "=8.8.0",
"evalmd": "^0.0.19",
"in-publish": "^2.0.1",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.9.0",
"typescript": "next"
},
"engines": {
"node": ">= 0.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"publishConfig": {
"ignore": [
".github/workflows"
]
},
"testling": {
"files": "test/index.js"
}
}
@@ -0,0 +1,125 @@
import { mixNumber } from '../../utils/mix/number.mjs';
import { hasTransform } from '../utils/has-transform.mjs';
/**
* Scales a point based on a factor and an originPoint
*/
function scalePoint(point, scale, originPoint) {
const distanceFromOrigin = point - originPoint;
const scaled = scale * distanceFromOrigin;
return originPoint + scaled;
}
/**
* Applies a translate/scale delta to a point
*/
function applyPointDelta(point, translate, scale, originPoint, boxScale) {
if (boxScale !== undefined) {
point = scalePoint(point, boxScale, originPoint);
}
return scalePoint(point, scale, originPoint) + translate;
}
/**
* Applies a translate/scale delta to an axis
*/
function applyAxisDelta(axis, translate = 0, scale = 1, originPoint, boxScale) {
axis.min = applyPointDelta(axis.min, translate, scale, originPoint, boxScale);
axis.max = applyPointDelta(axis.max, translate, scale, originPoint, boxScale);
}
/**
* Applies a translate/scale delta to a box
*/
function applyBoxDelta(box, { x, y }) {
applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);
applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);
}
const TREE_SCALE_SNAP_MIN = 0.999999999999;
const TREE_SCALE_SNAP_MAX = 1.0000000000001;
/**
* Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms
* in a tree upon our box before then calculating how to project it into our desired viewport-relative box
*
* This is the final nested loop within updateLayoutDelta for future refactoring
*/
function applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {
const treeLength = treePath.length;
if (!treeLength)
return;
// Reset the treeScale
treeScale.x = treeScale.y = 1;
let node;
let delta;
for (let i = 0; i < treeLength; i++) {
node = treePath[i];
delta = node.projectionDelta;
/**
* TODO: Prefer to remove this, but currently we have motion components with
* display: contents in Framer.
*/
const { visualElement } = node.options;
if (visualElement &&
visualElement.props.style &&
visualElement.props.style.display === "contents") {
continue;
}
if (isSharedTransition &&
node.options.layoutScroll &&
node.scroll &&
node !== node.root) {
translateAxis(box.x, -node.scroll.offset.x);
translateAxis(box.y, -node.scroll.offset.y);
}
if (delta) {
// Incoporate each ancestor's scale into a cumulative treeScale for this component
treeScale.x *= delta.x.scale;
treeScale.y *= delta.y.scale;
// Apply each ancestor's calculated delta into this component's recorded layout box
applyBoxDelta(box, delta);
}
if (isSharedTransition && hasTransform(node.latestValues)) {
transformBox(box, node.latestValues, node.layout?.layoutBox);
}
}
/**
* Snap tree scale back to 1 if it's within a non-perceivable threshold.
* This will help reduce useless scales getting rendered.
*/
if (treeScale.x < TREE_SCALE_SNAP_MAX &&
treeScale.x > TREE_SCALE_SNAP_MIN) {
treeScale.x = 1.0;
}
if (treeScale.y < TREE_SCALE_SNAP_MAX &&
treeScale.y > TREE_SCALE_SNAP_MIN) {
treeScale.y = 1.0;
}
}
function translateAxis(axis, distance) {
axis.min += distance;
axis.max += distance;
}
/**
* Apply a transform to an axis from the latest resolved motion values.
* This function basically acts as a bridge between a flat motion value map
* and applyAxisDelta
*/
function transformAxis(axis, axisTranslate, axisScale, boxScale, axisOrigin = 0.5) {
const originPoint = mixNumber(axis.min, axis.max, axisOrigin);
// Apply the axis delta to the final axis
applyAxisDelta(axis, axisTranslate, axisScale, originPoint, boxScale);
}
function resolveAxisTranslate(value, axis) {
if (typeof value === "string") {
return (parseFloat(value) / 100) * (axis.max - axis.min);
}
return value;
}
/**
* Apply a transform to a box from the latest resolved motion values.
*/
function transformBox(box, transform, sourceBox) {
const resolveBox = sourceBox ?? box;
transformAxis(box.x, resolveAxisTranslate(transform.x, resolveBox.x), transform.scaleX, transform.scale, transform.originX);
transformAxis(box.y, resolveAxisTranslate(transform.y, resolveBox.y), transform.scaleY, transform.scale, transform.originY);
}
export { applyAxisDelta, applyBoxDelta, applyPointDelta, applyTreeDeltas, scalePoint, transformAxis, transformBox, translateAxis };
//# sourceMappingURL=delta-apply.mjs.map
@@ -0,0 +1 @@
module.exports={C:{"78":0.00492,"115":0.07878,"120":0.00492,"121":0.01477,"123":0.00985,"124":0.00985,"125":0.00492,"133":0.00492,"136":0.00985,"140":0.04924,"143":0.00492,"146":0.00492,"147":0.00492,"148":0.00985,"149":0.00985,"150":0.01477,"151":0.00985,"152":0.02954,"153":0.05909,"154":0.27574,"155":0.87155,"156":0.82723,"157":0.02462,_:"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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 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 126 127 128 129 130 131 132 134 135 137 138 139 141 142 144 145 158 159 160 3.5 3.6"},D:{"39":0.02462,"40":0.02462,"41":0.02462,"42":0.02954,"43":0.02954,"44":0.02462,"45":0.02462,"46":0.02462,"47":0.02954,"48":0.02954,"49":0.03447,"50":0.02954,"51":0.02462,"52":0.02462,"53":0.02954,"54":0.02954,"55":0.02462,"56":0.02954,"57":0.02954,"58":0.02954,"59":0.02954,"60":0.02954,"70":0.00985,"87":0.00985,"88":0.00985,"103":0.05416,"104":0.00985,"105":0.00985,"106":0.00985,"107":0.00985,"108":0.01477,"109":0.26097,"110":0.00985,"111":0.0197,"112":0.00985,"116":0.11325,"117":0.00985,"118":0.02954,"119":0.02462,"120":0.04432,"121":0.00985,"122":0.03447,"123":0.02954,"124":0.02954,"125":0.00985,"126":0.02954,"127":0.00985,"128":0.05909,"130":0.00985,"131":0.05909,"132":0.00985,"133":0.08863,"134":0.07386,"135":0.07878,"136":0.07878,"137":0.07878,"138":0.20681,"139":0.08371,"140":0.09356,"141":0.08863,"142":0.25605,"143":0.04924,"144":0.05909,"145":0.05909,"146":0.07386,"147":0.09848,"148":0.20188,"149":0.27574,"150":0.87647,"151":2.62449,"152":10.33548,"153":8.57268,"154":1.97945,"155":0.02462,_:"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 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 89 90 91 92 93 94 95 96 97 98 99 100 101 102 113 114 115 129 156 157"},F:{"95":0.00985,"101":0.00985,"133":0.0197,"134":0.1428,"135":0.61058,_:"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 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 131 132 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.06401,"119":0.00492,"120":0.00985,"122":0.00985,"123":0.00492,"134":0.00492,"138":0.00492,"140":0.00492,"141":0.00985,"142":0.02462,"143":0.00985,"144":0.00492,"145":0.00985,"146":0.01477,"147":0.01477,"148":0.0197,"149":0.02462,"150":0.11325,"151":0.42839,"152":3.18583,"153":3.61914,"154":0.8814,_:"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 124 125 126 127 128 129 130 131 132 133 135 136 137 139"},E:{"14":0.00985,"27":0.22158,_:"4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 15.4 16.0 17.0 27.1 TP","12.1":0.02462,"13.1":0.05416,"14.1":0.03447,"15.1":0.00492,"15.5":0.01477,"15.6":0.16249,"16.1":0.02462,"16.2":0.03447,"16.3":0.02462,"16.4":0.00985,"16.5":0.01477,"16.6":0.2659,"17.1":0.30036,"17.2":0.01477,"17.3":0.0197,"17.4":0.03447,"17.5":0.05416,"17.6":0.23143,"18.0":0.01477,"18.1":0.03447,"18.2":0.02462,"18.3":0.07386,"18.4":0.02462,"18.5-18.7":0.07878,"26.0":0.02954,"26.1":0.03447,"26.2":0.11818,"26.3":0.14772,"26.4":0.09356,"26.5":0.62535,"26.6":3.27938,"27.2":0.00492},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.02684,"11.0-11.2":0,"11.3-11.4":0.00732,"12.0-12.1":0,"12.2-12.5":0.07808,"13.0-13.1":0,"13.2":0.01708,"13.3":0,"13.4-13.7":0.00244,"14.0-14.4":0.00488,"14.5-14.8":0.00976,"15.0-15.1":0.0122,"15.2-15.3":0.00976,"15.4":0.00976,"15.5":0.0122,"15.6-15.8":0.25864,"16.0":0.00976,"16.1":0.02928,"16.2":0.01464,"16.3":0.02196,"16.4":0.00488,"16.5":0.0122,"16.6-16.7":0.40993,"17.0":0.00976,"17.1":0.01464,"17.2":0.00976,"17.3":0.02684,"17.4":0.03416,"17.5":0.06588,"17.6-17.7":0.25132,"18.0":0.03172,"18.1":0.07076,"18.2":0.2196,"18.3":0.29524,"18.4":0.22692,"18.5-18.7":2.84264,"26.0":0.07564,"26.1":0.10492,"26.2":0.31964,"26.3":0.32696,"26.4":0.21228,"26.5":1.83002,"26.6":15.45517,"27.0":0.82717,"27.1":0,"27.2":0.01952},P:{"21":0.00921,"23":0.00921,"24":0.01843,"26":0.01843,"27":0.01843,"28":0.05528,"29":0.11977,"30":2.69025,_:"4 20 22 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.02537,"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.16243,_:"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":23.18829},R:{_:"0"},M:{"0":0.5Line truncated
@@ -0,0 +1,7 @@
import Options from '../../Options';
import { MatchEstimated } from '../../types';
declare const _default: (options: Options, match: MatchEstimated) => {
warning: string;
suggestions: string[];
};
export default _default;
@@ -0,0 +1,64 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.u = exports.types = exports.r = exports.t = exports.x = exports.c = void 0;
__exportStar(require("./create.js"), exports);
var create_js_1 = require("./create.js");
Object.defineProperty(exports, "c", { enumerable: true, get: function () { return create_js_1.create; } });
__exportStar(require("./extract.js"), exports);
var extract_js_1 = require("./extract.js");
Object.defineProperty(exports, "x", { enumerable: true, get: function () { return extract_js_1.extract; } });
__exportStar(require("./header.js"), exports);
__exportStar(require("./list.js"), exports);
var list_js_1 = require("./list.js");
Object.defineProperty(exports, "t", { enumerable: true, get: function () { return list_js_1.list; } });
// classes
__exportStar(require("./pack.js"), exports);
__exportStar(require("./parse.js"), exports);
__exportStar(require("./pax.js"), exports);
__exportStar(require("./read-entry.js"), exports);
__exportStar(require("./replace.js"), exports);
var replace_js_1 = require("./replace.js");
Object.defineProperty(exports, "r", { enumerable: true, get: function () { return replace_js_1.replace; } });
exports.types = __importStar(require("./types.js"));
__exportStar(require("./unpack.js"), exports);
__exportStar(require("./update.js"), exports);
var update_js_1 = require("./update.js");
Object.defineProperty(exports, "u", { enumerable: true, get: function () { return update_js_1.update; } });
__exportStar(require("./write-entry.js"), exports);
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"foreignNames.d.ts","sourceRoot":"","sources":["../../src/foreignNames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,qBAwCxB,CAAC;AACF,eAAO,MAAM,cAAc,qBA8D1B,CAAC"}
@@ -0,0 +1,54 @@
import * as React from 'react';
/**
* React.use if available (React 19+), undefined otherwise.
* Use dynamic lookup to avoid Webpack compilation errors with React 18.
*/
export declare const reactUse: (<T>(usable: Promise<T> | React.Context<T>) => T) | undefined;
export declare function useStableCallback<T extends (...args: Array<any>) => any>(fn: T): T;
export declare const useLayoutEffect: typeof React.useLayoutEffect;
/**
* Taken from https://www.developerway.com/posts/implementing-advanced-use-previous-hook#part3
*/
export declare function usePrevious<T>(value: T): T | null;
/**
* React hook to wrap `IntersectionObserver`.
*
* This hook will create an `IntersectionObserver` and observe the ref passed to it.
*
* When the intersection changes, the callback will be called with the `IntersectionObserverEntry`.
*
* @param ref - The ref to observe
* @param intersectionObserverOptions - The options to pass to the IntersectionObserver
* @param options - The options to pass to the hook
* @param callback - The callback to call when the intersection changes
* @returns The IntersectionObserver instance
* @example
* ```tsx
* const MyComponent = () => {
* const ref = React.useRef<HTMLDivElement>(null)
* useIntersectionObserver(
* ref,
* (entry) => { doSomething(entry) },
* { rootMargin: '10px' },
* { disabled: false }
* )
* return <div ref={ref} />
* ```
*/
export declare function useIntersectionObserver<T extends Element>(ref: React.RefObject<T | null>, callback: (entry: IntersectionObserverEntry | undefined) => void, intersectionObserverOptions?: IntersectionObserverInit, options?: {
disabled?: boolean;
}): void;
/**
* React hook to take a `React.ForwardedRef` and returns a `ref` that can be used on a DOM element.
*
* @param ref - The forwarded ref
* @returns The inner ref returned by `useRef`
* @example
* ```tsx
* const MyComponent = React.forwardRef((props, ref) => {
* const innerRef = useForwardedRef(ref)
* return <div ref={innerRef} />
* })
* ```
*/
export declare function useForwardedRef<T>(ref?: React.ForwardedRef<T>): React.RefObject<T | null>;
@@ -0,0 +1,13 @@
/**
* @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 Check = createLucideIcon("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
export { Check as default };
//# sourceMappingURL=check.js.map
@@ -0,0 +1,62 @@
'use strict';
const { tokenChars } = require('./validation');
/**
* Parses the `Sec-WebSocket-Protocol` header into a set of subprotocol names.
*
* @param {String} header The field value of the header
* @return {Set} The subprotocol names
* @public
*/
function parse(header) {
const protocols = new Set();
let start = -1;
let end = -1;
let i = 0;
for (i; i < header.length; i++) {
const code = header.charCodeAt(i);
if (end === -1 && tokenChars[code] === 1) {
if (start === -1) start = i;
} else if (
i !== 0 &&
(code === 0x20 /* ' ' */ || code === 0x09) /* '\t' */
) {
if (end === -1 && start !== -1) end = i;
} else if (code === 0x2c /* ',' */) {
if (start === -1) {
throw new SyntaxError(`Unexpected character at index ${i}`);
}
if (end === -1) end = i;
const protocol = header.slice(start, end);
if (protocols.has(protocol)) {
throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`);
}
protocols.add(protocol);
start = end = -1;
} else {
throw new SyntaxError(`Unexpected character at index ${i}`);
}
}
if (start === -1 || end !== -1) {
throw new SyntaxError('Unexpected end of input');
}
const protocol = header.slice(start, i);
if (protocols.has(protocol)) {
throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`);
}
protocols.add(protocol);
return protocols;
}
module.exports = { parse };
@@ -0,0 +1 @@
module.exports={C:{"99":0.0078,"115":0.0078,"124":0.0078,"125":0.0078,"126":0.02144,"153":0.26117,"155":0.03703,"156":0.02924,_:"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 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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 154 157 158 159 160 3.5 3.6"},D:{"56":0.0078,"93":0.05262,"103":0.04483,"104":0.02144,"105":0.02924,"107":0.01559,"109":0.5886,"110":0.01559,"111":0.08186,"116":0.06042,"117":0.0078,"118":0.04483,"119":0.02144,"124":0.0078,"126":0.0078,"128":0.0078,"131":0.02144,"133":0.04483,"136":0.01559,"138":0.0078,"141":0.0078,"142":0.0078,"144":0.04483,"147":0.06627,"148":0.11109,"149":0.12669,"150":0.41124,"151":2.35829,"152":7.01445,"153":2.57463,"154":0.35082,_:"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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 102 106 108 112 113 114 115 120 121 122 123 125 127 129 130 132 134 135 137 139 140 143 145 146 155 156 157"},F:{"95":0.05262,"135":0.02144,_:"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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 131 132 133 134 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.04483,"92":0.0078,"120":0.0078,"134":0.0078,"137":0.0078,"143":0.0078,"147":0.0078,"148":0.0078,"149":0.07406,"150":0.03703,"151":0.11889,"152":0.67825,"153":1.30583,"154":0.26117,_:"12 13 14 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 109 110 111 112 113 114 115 116 117 118 119 121 122 123 124 125 126 127 128 129 130 131 132 133 135 136 138 139 140 141 142 144 145 146"},E:{"27":0.04483,_:"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 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.2 16.3 16.4 16.5 17.0 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.3 18.5-18.7 26.1 26.2 26.4 27.1 27.2 TP","16.1":0.0078,"16.6":0.09745,"17.1":0.0078,"17.6":0.03703,"18.4":0.01559,"26.0":0.08186,"26.3":0.0078,"26.5":0.08186,"26.6":0.26896},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00139,"5.0-5.1":0.00139,"6.0-6.1":0,"7.0-7.1":0.00278,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.01392,"11.0-11.2":0.00139,"11.3-11.4":0.00278,"12.0-12.1":0,"12.2-12.5":0.03619,"13.0-13.1":0,"13.2":0.00696,"13.3":0,"13.4-13.7":0.00139,"14.0-14.4":0.00557,"14.5-14.8":0.00835,"15.0-15.1":0.00835,"15.2-15.3":0.00557,"15.4":0.00696,"15.5":0.00835,"15.6-15.8":0.18096,"16.0":0.01392,"16.1":0.02506,"16.2":0.01392,"16.3":0.03062,"16.4":0.00696,"16.5":0.01114,"16.6-16.7":0.25196,"17.0":0.00974,"17.1":0.01392,"17.2":0.01392,"17.3":0.02088,"17.4":0.02923,"17.5":0.05707,"17.6-17.7":0.14755,"18.0":0.03062,"18.1":0.06125,"18.2":0.08352,"18.3":0.14477,"18.4":0.09048,"18.5-18.7":1.86948,"26.0":0.09048,"26.1":0.09187,"26.2":0.23943,"26.3":0.25892,"26.4":0.18931,"26.5":1.26813,"26.6":7.82453,"27.0":0.59996,"27.1":0,"27.2":0.01531},P:{"24":0.01037,"29":0.09334,"30":1.65945,_:"4 20 21 22 23 25 26 27 28 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.00805,"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},K:{"0":2.42335,_:"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":62.41427},R:{_:"0"},M:{"0":0.30594},Q:{_:"14.9"},O:{"0":0.12882},H:{all:0}};